/* Ulfsino wordmark in header, footer and the play bar. */
.brand .brand-mark { display: none !important; }
.brand::before { content: none !important; display: none !important; }
.brand .logo-img {
  display: block !important;
  width: 148px;
  height: auto;
  object-fit: contain;
}
.play-bar .brand .logo-img { width: 118px; }
.foot .brand .logo-img { width: 156px; }

/* How it works / House manner is removed from the floor. */
.land-section:has(.land-steps) {
  display: none !important;
}

/* Phone pass: 360 Android, 375 iPhone 13 mini / SE, 390 iPhone 14, 430 large phones. */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
input, select, textarea {
  font-size: 16px;
}

@media (max-width: 430px) {
  :root { --frame: calc(100% - 24px); }
  .brand .logo-img { width: 124px; }
  .play-bar .brand .logo-img { width: 104px; }

  .land-top,
  .top {
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 8px;
  }
  .brand-mark { letter-spacing: 0.08em; font-size: 11px; }
  .land-top .top-end { gap: 6px; }
  .ghost-link, .btn, .menu-btn, .chip-btn {
    min-height: 40px;
  }
  .btn { padding: 10px 14px; }
  .btn.tiny { min-height: 36px; padding: 7px 12px; }

  .land-offer { gap: 10px; }
  .land-hero {
    aspect-ratio: 4 / 5;
    min-height: 0;
    border-radius: 14px;
  }
  .land-hero-copy {
    padding: 48px 14px 14px;
  }
  .land-hero-copy h1 {
    font-size: 30px;
    line-height: 0.92;
  }
  .land-game { letter-spacing: 0.08em; font-size: 12px; margin-top: 8px; }
  .land-terms { font-size: 14px; margin-top: 8px; }
  .land-cta { gap: 8px; margin-top: 14px; }
  .land-cta .btn { flex: 1 1 120px; }
  .land-legal { font-size: 11px; line-height: 1.4; }

  .land-section { padding: 28px 0 4px; }
  .land-floor { padding: 28px 0 12px; }
  .land-head h2,
  .land-section > .land-head h2,
  .band-head h2 {
    font-size: 22px;
  }
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tile-link:hover { transform: none; }
  .tile-meta, .tile h3, .tile-link h3 { font-size: 13px; }
  .play-pill { opacity: 1; transform: none; position: static; display: inline-flex; margin: 8px 10px 10px; }

  .land-section.land-facts,
  .land-steps,
  .metrics,
  .flow,
  .facts.three,
  .foot-grid,
  .till-board,
  .till-pots,
  .crew-board,
  .cash-steps {
    grid-template-columns: 1fr;
  }
  .land-steps article,
  .metrics article,
  .flow article { padding: 16px; }
  .land-trust {
    justify-content: flex-start;
    gap: 8px 12px;
    padding: 22px 0 calc(28px + env(safe-area-inset-bottom));
  }
  .land-trust span { white-space: normal; }
  .land-poker-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .land-poker-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  .wallet-chip {
    flex-wrap: wrap;
    white-space: normal;
    max-width: 100%;
  }
  .top-search { min-width: 0; }
  .page-head, .studio-hero-top, .cta-bar { flex-direction: column; align-items: flex-start; }
  .studio-hero h1 { font-size: 40px; }

  .auth-modal,
  .terms-draw,
  .wg-modal {
    padding: 0;
    align-items: end;
  }
  .auth-card,
  .terms-card,
  .wg-card,
  .picker-card {
    width: 100%;
    max-height: min(92dvh, 760px);
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    transform: none;
  }
  .wg-rail { grid-template-columns: repeat(2, 1fr); }
  .wg-actions .btn { width: 100%; min-width: 0; }

  .play-shell {
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .play-bar {
    padding: 6px 10px;
    padding-top: max(6px, env(safe-area-inset-top));
  }
  .play-bar .title { max-width: 34vw; }
  .play-promo { padding: 8px 10px; }
  .play-frame, .play-shell iframe, .play-stage {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .crew-mate,
  .ops-check {
    grid-template-columns: 1fr;
  }
  .ops-check em { grid-column: 1; }
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  .till-hero, .till-book, .till-board, .cash-warn, .session-banner {
    width: var(--frame);
  }
}

@media (max-width: 375px) {
  :root { --frame: calc(100% - 20px); }
  .land-hero-copy h1 { font-size: 28px; }
  .land-cta { flex-direction: column; align-items: stretch; }
  .land-cta .btn, .land-cta .ghost-link { width: 100%; text-align: center; }
  .tile-grid { gap: 8px; }
  .studio-hero h1, .hero h1 { font-size: 34px; }
}
