:root {
  --bg: #04070d;
  --bg-soft: #0b1018;
  --surface: rgba(9, 15, 24, 0.94);
  --surface-2: rgba(14, 22, 36, 0.98);
  --border: rgba(214, 170, 84, 0.16);
  --border-strong: rgba(246, 201, 106, 0.38);
  --text: #eef4ff;
  --muted: #9ca8be;
  --accent: #b97a24;
  --accent-2: #f5c15a;
  --success: #22c55e;
  --danger: #f87171;
  --felt-1: #0d4738;
  --felt-2: #07251d;
  --shadow: 0 24px 80px rgba(1, 7, 18, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 760px at 50% -12%, rgba(245, 193, 90, 0.15), transparent 56%),
    radial-gradient(820px 520px at 100% 0%, rgba(166, 116, 37, 0.16), transparent 44%),
    radial-gradient(720px 420px at 0% 12%, rgba(255, 218, 132, 0.06), transparent 36%),
    linear-gradient(180deg, #060b13 0%, #03060d 52%, #02040a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.surface {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-banner,
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

.hero-copy,
.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-lockup {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: #08111f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 18px 40px rgba(245, 193, 90, 0.18);
}

.brand-copy h1,
.section-title,
.panel-title,
.card-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.4vw, 1.8rem);
  line-height: 1.1;
}

.brand-copy p,
.muted,
.helper,
.footer-note,
.table-note,
.chat-meta,
.rule-list,
.card-copy,
.kicker {
  margin: 0;
  color: var(--muted);
}

.hero-actions,
.stack-inline,
.form-row,
.toolbar,
.actions,
.call-stack,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill,
.badge,
.mini-chip,
.rank-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(8, 15, 28, 0.74);
  color: var(--text);
  font-size: 0.88rem;
}

.pill strong,
.score-pill strong,
.money {
  color: #fdd173;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #061120;
  box-shadow: 0 18px 36px rgba(245, 193, 90, 0.18);
}

.btn.secondary {
  background: rgba(8, 15, 28, 0.74);
  border-color: var(--border);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

.btn.small {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.input,
.select,
textarea.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(5, 10, 20, 0.88);
  color: var(--text);
  outline: none;
}

.input:focus,
.select:focus,
textarea.input:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.grid-3,
.grid-2,
.link-grid,
.stats-grid,
.top-grid,
.bottom-grid {
  display: grid;
  gap: 16px;
}

.grid-3,
.stats-grid,
.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-block {
  padding: 22px 24px;
}

.link-card,
.info-card,
.stat-card,
.panel-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 16, 30, 0.92), rgba(14, 22, 38, 0.95));
}

.link-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-2);
  margin-bottom: 12px;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 900;
}

.flash {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.18);
}

.flash.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(20, 83, 45, 0.22);
}

.flash.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(120, 53, 15, 0.22);
}

.table-wrap {
  overflow: auto;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
}

.table th {
  color: #bfd0ee;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(9, 16, 30, 0.82);
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.empty-row {
  text-align: center;
  color: var(--muted);
}

.footer-line {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-list,
.rule-list {
  padding-left: 18px;
  line-height: 1.6;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.board-surface {
  padding: 18px;
}

.board-top {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.player-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.player-badge {
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(6, 12, 24, 0.82);
  color: var(--muted);
}

.player-badge strong {
  color: var(--text);
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.score-pill {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(6, 12, 24, 0.76);
}

.score-pill span {
  color: var(--muted);
  font-size: 0.82rem;
}

.score-pill strong {
  font-size: 1.5rem;
}

.score-pill.you {
  text-align: right;
}

.room-chip {
  justify-self: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  font-weight: 800;
}

.table-felt {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px;
  min-height: 690px;
  background:
    radial-gradient(520px 280px at 50% 28%, rgba(255,255,255,0.08), transparent 55%),
    radial-gradient(880px 420px at 50% 50%, rgba(255,255,255,0.05), transparent 50%),
    linear-gradient(180deg, var(--felt-1), var(--felt-2));
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.table-felt::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border: 10px solid rgba(3, 25, 19, 0.32);
  box-shadow: inset 0 0 0 2px rgba(236, 253, 245, 0.08);
  pointer-events: none;
}

.felt-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 640px;
}

.hand-zone {
  display: grid;
  gap: 10px;
}

.hand-zone.yours {
  align-self: end;
}

.hand-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hand-head strong {
  font-size: 1.04rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  min-height: 158px;
}

.cards-player {
  align-items: flex-end;
}

.cardc,
.mesa-card {
  width: 96px;
  height: 144px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(1, 7, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 10, 20, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
}

.cardc.playable {
  cursor: pointer;
}

.cardc.playable:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 34px rgba(1, 7, 18, 0.55);
}

.cardc.disabled {
  opacity: 0.78;
}

.mesa-zone {
  display: grid;
  align-content: center;
  gap: 16px;
}

.status-banner {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 9, 18, 0.46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.call-stack {
  justify-content: center;
}

.call-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(5, 10, 20, 0.65);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
}

.call-pill.active {
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
}

.mesa-cards {
  display: flex;
  justify-content: center;
  gap: 18px;
  min-height: 154px;
}

.mesa-cards[data-max="8"] {
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  row-gap: 18px;
}

.mesa-cards[data-max="8"] .mesa-card,
.mesa-cards[data-max="8"] .cardc {
  width: 78px;
  height: 118px;
  border-radius: 18px;
}

.mesa-cards[data-max="8"] .mesa-card-wrap {
  min-width: 82px;
}

.mesa-cards[data-max="8"] .mesa-owner {
  font-size: 0.72rem;
}

.actions {
  justify-content: center;
  min-height: 48px;
}

.actions button {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(3, 9, 18, 0.56);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.actions button.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #05111f;
  border-color: transparent;
}

.actions button.warn {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.action-caption {
  color: rgba(241, 245, 249, 0.85);
  text-align: center;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.chat-surface,
.rules-surface {
  padding: 20px;
}

.chat-messages {
  margin-top: 14px;
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.chat-line {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
}

.chat-line b {
  color: #f8fafc;
}

.form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rank-chip {
  justify-content: space-between;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}

.copy-stack {
  display: grid;
  gap: 14px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-card {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.login-side,
.login-panel {
  padding: 30px;
}

.login-side {
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(245, 158, 11, 0.18), transparent 60%),
    radial-gradient(520px 260px at 100% 100%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.94), rgba(6, 11, 20, 0.98));
}

.legal-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

pre.json-box {
  padding: 14px;
  border-radius: 18px;
  overflow: auto;
  background: rgba(6, 12, 24, 0.8);
  border: 1px solid var(--border);
  color: #d7e5ff;
  font-size: 0.84rem;
}

@media (max-width: 1120px) {
  .game-grid,
  .hero-split,
  .login-card {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 16px;
  }

  .grid-3,
  .grid-2,
  .link-grid,
  .stats-grid,
  .top-grid,
  .side-stack {
    grid-template-columns: 1fr;
  }

  .hero-banner,
  .panel-head,
  .brand-lockup,
  .hand-head,
  .toolbar,
  .hero-actions {
    align-items: flex-start;
  }

  .hero-banner,
  .panel-head {
    flex-direction: column;
  }

  .scoreboard {
    grid-template-columns: 1fr;
  }

  .score-pill.you {
    text-align: left;
  }

  .room-chip {
    justify-self: start;
  }

  .table-felt {
    min-height: 0;
    padding: 16px;
  }

  .felt-layout {
    min-height: 0;
  }

  .cardc,
  .mesa-card {
    width: 82px;
    height: 123px;
  }

  .form-inline {
    grid-template-columns: 1fr;
  }

  .invite-buttons {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 24px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-logo-large {
    width: 90px;
    height: 90px;
    border-radius: 24px;
  }

  .section-block,
  .hero-banner,
  .panel-head,
  .chat-surface,
  .rules-surface {
    padding: 18px;
  }

  .cardc,
  .mesa-card {
    width: 72px;
    height: 108px;
    border-radius: 16px;
  }
}


.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
  background: rgba(8, 15, 28, 0.74);
}

.brand-logo-large {
  width: 112px;
  height: 112px;
  border-radius: 28px;
}

.brand-lockup-top {
  align-items: flex-start;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.invite-strip {
  padding: 22px 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.invite-copy {
  display: grid;
  gap: 10px;
}

.invite-actions {
  display: grid;
  gap: 12px;
}

.invite-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-input {
  font-size: 0.92rem;
}

#inviteFeedback.success-text,
#inviteLobbyFeedback.success-text {
  color: #b7f7c4;
}

#inviteFeedback.error-text,
#inviteLobbyFeedback.error-text {
  color: #ffb8b8;
}


@media (max-width: 860px) {
  .invite-buttons {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-logo-large {
    width: 90px;
    height: 90px;
    border-radius: 24px;
  }
}



.player-badge {
  display: grid;
  gap: 4px;
}

.player-badge span {
  font-size: 0.82rem;
  color: var(--muted);
}

.player-badge.you {
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.16);
}

.team-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.team-pill {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(6, 12, 24, 0.76);
}

.team-pill span {
  color: var(--muted);
  font-size: 0.82rem;
}

.team-pill strong {
  font-size: 1.5rem;
  color: #fdd173;
}

.team-pill.you-team {
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.18);
}

.team-pill.winner {
  border-color: rgba(34, 197, 94, 0.34);
}

.felt-layout-modern {
  grid-template-rows: auto 1fr auto;
}

.other-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.other-players-grid[data-max="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.other-players-grid[data-max="8"] .mini-seat {
  min-height: 138px;
}

.other-players-grid .mini-seat[data-seat]::after {
  content: attr(data-seat);
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
  background: rgba(8, 15, 28, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-seat {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 9, 18, 0.34);
  min-height: 150px;
}

.mini-seat.partner {
  border-color: rgba(56, 189, 248, 0.22);
}

.mini-seat.rival {
  border-color: rgba(245, 158, 11, 0.18);
}

.mini-seat.turn {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.mini-seat.empty-seat {
  place-items: center;
  color: var(--muted);
}

.mini-seat-head {
  display: grid;
  gap: 4px;
}

.mini-seat-head strong {
  font-size: 0.98rem;
}

.mini-seat-head span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: capitalize;
}

.cards-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cardc.mini {
  width: 54px;
  height: 82px;
  border-radius: 14px;
}

.mini-empty,
.mesa-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.mesa-card-wrap {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.mesa-owner {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.action-caption {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .team-scoreboard {
    grid-template-columns: 1fr;
  }

  .other-players-grid {
    grid-template-columns: 1fr;
  }

  .other-players-grid[data-max="8"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cardc.mini {
    width: 48px;
    height: 74px;
  }
}

@media (max-width: 560px) {
  .team-pill {
    padding: 12px 14px;
  }

  .other-players-grid[data-max="8"] {
    grid-template-columns: 1fr 1fr;
  }

  .mesa-cards[data-max="8"] {
    max-width: 100%;
    gap: 10px;
    row-gap: 12px;
  }

  .mesa-cards[data-max="8"] .mesa-card,
  .mesa-cards[data-max="8"] .cardc {
    width: 64px;
    height: 98px;
    border-radius: 14px;
  }

  .mesa-cards[data-max="8"] .mesa-card-wrap {
    min-width: 66px;
  }

  .cardc.mini {
    width: 42px;
    height: 64px;
    border-radius: 12px;
  }
}


body.login-page,
body.game-page {
  padding-bottom: 0;
}

.page-shell-app {
  padding-bottom: 86px;
}

.top-nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 36px rgba(1, 7, 18, 0.35);
}

.top-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  border: 1px solid transparent;
}

.top-nav-link.active {
  color: #07101f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 24px rgba(245, 193, 90, 0.18);
}

.hero-banner-glow {
  position: relative;
  overflow: hidden;
}

.hero-banner-glow::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 193, 90, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-brand {
  width: 100px;
  height: 100px;
}

.badge-glow {
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18), 0 0 32px rgba(245, 158, 11, 0.12);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-feature {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(6, 12, 24, 0.68);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

.login-copy-block {
  margin-top: 20px;
}

.modern-login-card {
  position: relative;
}

.brand-logo-hero {
  width: 148px;
  height: 148px;
  border-radius: 32px;
}

.gsi-box {
  margin-top: 18px;
}

.demo-login-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(6, 12, 24, 0.68);
}

.btn-block {
  width: 100%;
  justify-content: center;
  display: inline-flex;
}

.deck-spotlight,
.deck-mini-panel {
  display: grid;
  gap: 14px;
}

.deck-preview-image {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 13, 25, 0.72);
  box-shadow: 0 22px 42px rgba(1, 7, 18, 0.32);
}

.deck-preview-image.compact {
  border-radius: 18px;
}

.spotlight-head,
.side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rooms-grid,
.market-grid,
.owned-decks-grid {
  display: grid;
  gap: 16px;
}

.rooms-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owned-decks-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.room-card,
.market-card,
.owned-deck-card,
.empty-state-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 16, 30, 0.94), rgba(12, 20, 35, 0.96));
  padding: 18px;
}

.room-card-head,
.market-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.room-card-metrics,
.market-meta,
.room-card-actions,
.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.room-card-actions,
.market-actions {
  margin-top: 16px;
}

.market-card {
  overflow: hidden;
  padding: 0;
}

.market-card-media {
  position: relative;
  padding: 14px;
  background: rgba(4, 9, 18, 0.72);
}

.market-card-media img {
  width: 100%;
  border-radius: 20px;
}

.market-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 12, 24, 0.86);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fdd173;
  font-size: 0.82rem;
  font-weight: 700;
}

.market-card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.owned-deck-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.owned-deck-card img {
  width: 100%;
  border-radius: 16px;
}

.owned-deck-card.active {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18), 0 16px 30px rgba(245, 158, 11, 0.08);
}

.owned-deck-copy {
  display: grid;
  gap: 4px;
}

.owned-deck-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.invite-strip-compact {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.actions-sticky-mobile {
  position: relative;
}

.emotes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.emote-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8, 15, 28, 0.74);
  color: var(--text);
  cursor: pointer;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
}

.mobile-tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(5, 10, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(1, 7, 18, 0.55);
}

.mobile-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
  border-radius: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.mobile-tab.active {
  color: #07101f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.app-toast-stack {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.app-toast {
  min-width: 220px;
  max-width: min(92vw, 360px);
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(6, 12, 24, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 42px rgba(1, 7, 18, 0.45);
  animation: toastIn .18s ease;
}

.app-toast.success {
  border-color: rgba(34, 197, 94, 0.34);
}

.app-toast.error {
  border-color: rgba(248, 113, 113, 0.34);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .rooms-grid,
  .market-grid,
  .owned-decks-grid {
    grid-template-columns: 1fr;
  }

  .invite-strip-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .top-nav {
    display: none;
  }

  .mobile-tabbar {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand,
  .brand-logo-hero {
    width: 92px;
    height: 92px;
  }

  .actions-sticky-mobile {
    position: sticky;
    bottom: 8px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(3, 9, 18, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
  }
}

@media (max-width: 560px) {
  .page-shell-app {
    padding-bottom: 96px;
  }

  .mobile-tabbar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 18px;
  }

  .market-card-body,
  .room-card {
    padding: 16px;
  }

  .hero-actions {
    width: 100%;
  }
}


.login-actions-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.login-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.login-divider::before {
  margin-right: 10px;
}

.login-divider::after {
  margin-left: 10px;
}

.google-btn-mount {
  min-height: 46px;
  display: flex;
  align-items: center;
}

.login-cta-row {
  display: grid;
  gap: 10px;
}

/* Final polish: mobile table, classic cards, compact UI, voice toggle */
.cardc,
.mesa-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.92), rgba(255,255,255,0) 24%),
    linear-gradient(180deg, rgba(255,248,232,0.98), rgba(243,229,199,0.96));
  border: 1px solid rgba(255, 214, 150, 0.24);
  box-shadow:
    0 18px 34px rgba(1, 7, 18, 0.42),
    0 0 0 1px rgba(255, 226, 164, 0.08) inset;
}

.cardc::before,
.mesa-card::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 216, 151, 0.26);
  pointer-events: none;
  z-index: 2;
}

.cardc::after,
.mesa-card::after {
  content: "";
  position: absolute;
  inset: auto -8% 54% auto;
  width: 76%;
  height: 62%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 68%);
  pointer-events: none;
  z-index: 2;
}

.cardc img,
.mesa-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: saturate(1.08) contrast(1.03) drop-shadow(0 4px 8px rgba(8,15,28,0.08));
}

.card-art.suit-oro {
  box-shadow:
    0 18px 34px rgba(245, 158, 11, 0.18),
    0 18px 34px rgba(1, 7, 18, 0.42),
    0 0 0 1px rgba(255, 226, 164, 0.08) inset;
}

.card-art.suit-espada {
  box-shadow:
    0 18px 34px rgba(59, 130, 246, 0.16),
    0 18px 34px rgba(1, 7, 18, 0.42),
    0 0 0 1px rgba(255, 226, 164, 0.08) inset;
}

.card-art.suit-copa {
  box-shadow:
    0 18px 34px rgba(244, 63, 94, 0.14),
    0 18px 34px rgba(1, 7, 18, 0.42),
    0 0 0 1px rgba(255, 226, 164, 0.08) inset;
}

.card-art.suit-basto {
  box-shadow:
    0 18px 34px rgba(34, 197, 94, 0.14),
    0 18px 34px rgba(1, 7, 18, 0.42),
    0 0 0 1px rgba(255, 226, 164, 0.08) inset;
}

.cards-player {
  gap: 0;
  padding: 10px 12px 2px;
  perspective: 960px;
}

.cards-player .cardc {
  --fan-rotate: 0deg;
  --fan-offset: 0px;
  margin-inline: -6px;
  transform-origin: center 120%;
  transform: translateY(var(--fan-offset)) rotate(var(--fan-rotate));
}

.cards-player .cardc:nth-child(1) {
  --fan-rotate: -10deg;
  --fan-offset: 10px;
}

.cards-player .cardc:nth-child(2) {
  --fan-rotate: 0deg;
  --fan-offset: 0px;
  z-index: 2;
}

.cards-player .cardc:nth-child(3) {
  --fan-rotate: 10deg;
  --fan-offset: 10px;
}

.cardc.playable:hover {
  transform: translateY(calc(var(--fan-offset, 0px) - 18px)) rotate(var(--fan-rotate, 0deg)) scale(1.03);
  box-shadow: 0 26px 42px rgba(1, 7, 18, 0.56);
}

.cardc.playable:active {
  transform: translateY(calc(var(--fan-offset, 0px) - 10px)) rotate(var(--fan-rotate, 0deg)) scale(0.99);
}

.cards-mini {
  gap: 0;
}

.cards-mini .cardc.mini {
  margin-right: -10px;
  box-shadow: 0 12px 24px rgba(1, 7, 18, 0.36);
}

.cards-mini .cardc.mini:last-child {
  margin-right: 0;
}

.mesa-zone {
  gap: 18px;
}

.mesa-cards {
  align-items: flex-start;
}

.mesa-card-wrap {
  min-width: 96px;
}

.mesa-card-wrap.enter {
  animation: mesaDrop 320ms cubic-bezier(.2, .85, .2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 70ms);
}

.mesa-card-wrap:nth-child(odd) .mesa-card {
  transform: rotate(-4deg);
}

.mesa-card-wrap:nth-child(even) .mesa-card {
  transform: rotate(4deg);
}

@keyframes mesaDrop {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.table-felt {
  background:
    radial-gradient(520px 260px at 50% 42%, rgba(16, 185, 129, 0.18), transparent 64%),
    radial-gradient(240px 140px at 50% 45%, rgba(251, 191, 36, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(9, 33, 25, 0.46), rgba(4, 12, 10, 0.16));
}

.status-banner {
  background:
    linear-gradient(180deg, rgba(10, 19, 34, 0.86), rgba(6, 12, 24, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 14px 30px rgba(1, 7, 18, 0.22);
}

.call-pill {
  background: rgba(5, 10, 20, 0.84);
}

.side-stack-game {
  align-content: start;
}

.table-tools-panel {
  gap: 14px;
}

.compact-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compact-input {
  flex: 1 1 220px;
}

.small-text {
  font-size: 0.84rem;
}

.pill.soft {
  background: rgba(9, 16, 30, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

.compact-note {
  min-height: 20px;
  margin-top: 0;
}

.deck-preview-image-game {
  max-height: 178px;
  object-fit: cover;
}

.emote-pill {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.emote-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.08);
}

[data-voice-toggle].is-muted {
  opacity: 0.82;
  border-color: rgba(248, 113, 113, 0.22);
}

@media (max-width: 860px) {
  .cards-player {
    padding: 6px 2px 0;
  }

  .cards-player .cardc {
    margin-inline: -10px;
  }

  .mesa-card-wrap {
    min-width: 82px;
  }

  .compact-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .cards-player .cardc {
    margin-inline: -12px;
  }

  .cardc::before,
  .mesa-card::before {
    inset: 2px;
  }

  .mesa-card-wrap {
    min-width: 72px;
  }
}

/* --- final live/spectator polish --- */
.room-card.is-live {
  border-color: rgba(56, 189, 248, 0.26);
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.08);
}

.room-card.is-yours {
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.1);
}

.status-live,
.live-chip {
  border-color: rgba(56, 189, 248, 0.28);
  color: #bfe8ff;
}

.full-chip {
  border-color: rgba(245, 158, 11, 0.3);
}

.owner-chip {
  border-color: rgba(245, 158, 11, 0.34);
  color: #ffe08a;
}

.live-pill {
  border-color: rgba(56, 189, 248, 0.3);
  color: #c6eeff;
}

.rooms-floating-dock {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 50;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}

.rooms-floating-head {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.rooms-floating-label {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.84);
  border: 1px solid rgba(140, 171, 221, 0.16);
  color: var(--muted);
  font-size: 0.78rem;
  box-shadow: 0 16px 34px rgba(1, 7, 18, 0.22);
}

.rooms-floating-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(140, 171, 221, 0.18);
  background: rgba(8, 15, 28, 0.92);
  color: #dbeafe;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(1, 7, 18, 0.22);
  cursor: pointer;
}

.rooms-floating-list {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.rooms-floating-dock.is-collapsed .rooms-floating-list {
  display: none;
}

.rooms-floating-dock.has-turn .rooms-floating-label {
  color: #d1fae5;
  border-color: rgba(34, 197, 94, 0.34);
}

.room-fab {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.94), rgba(12, 22, 40, 0.96));
  border: 1px solid rgba(140, 171, 221, 0.18);
  box-shadow: 0 18px 32px rgba(1, 7, 18, 0.26);
  pointer-events: auto;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.room-fab:hover {
  transform: translateY(-2px) scale(1.02);
}

.room-fab.is-open {
  border-color: rgba(34, 197, 94, 0.28);
}

.room-fab.is-live {
  border-color: rgba(56, 189, 248, 0.34);
}

.room-fab.is-yours {
  border-color: rgba(245, 158, 11, 0.38);
}

.room-fab.is-current {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14), 0 18px 32px rgba(1, 7, 18, 0.26);
}

.room-fab.is-turn {
  border-color: rgba(34, 197, 94, 0.78);
  background: radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.26), rgba(8, 15, 28, 0.94) 72%);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14), 0 18px 32px rgba(1, 7, 18, 0.3);
  animation: room-fab-turn-pulse 1.2s ease-in-out infinite alternate;
}

.room-fab-turn {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f8fffb;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 18px rgba(21, 128, 61, 0.32);
}

.room-fab-code {
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.room-fab-count {
  font-size: 0.68rem;
  color: var(--muted);
}

@keyframes room-fab-turn-pulse {
  from {
    transform: translateY(-1px) scale(1);
  }
  to {
    transform: translateY(-2px) scale(1.05);
  }
}

.clock-banner {
  display: none;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 16px;
  border: 1px solid rgba(140, 171, 221, 0.16);
  background: rgba(8, 15, 28, 0.74);
  color: #dbeafe;
  font-size: 0.9rem;
  text-align: center;
}

.clock-banner.visible {
  display: block;
}

.clock-banner.danger {
  border-color: rgba(248, 113, 113, 0.34);
  color: #ffd1d1;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.08);
}

.spectator-hand {
  min-height: 122px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  border: 1px dashed rgba(140, 171, 221, 0.18);
  background: rgba(8, 15, 28, 0.46);
  padding: 18px;
}

.chat-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
}

.chat-line.spectator {
  border-left: 2px solid rgba(56, 189, 248, 0.26);
  padding-left: 10px;
}

@media (max-width: 860px) {
  .rooms-floating-dock {
    right: 12px;
    bottom: 92px;
  }

  .rooms-floating-list {
    gap: 8px;
  }

  .room-fab {
    width: 60px;
    height: 60px;
  }

  .rooms-floating-label {
    font-size: 0.72rem;
  }
}

@media (max-width: 560px) {
  .rooms-floating-dock {
    right: 10px;
    bottom: 92px;
    gap: 8px;
  }

  .rooms-floating-head {
    gap: 6px;
  }

  .rooms-floating-toggle {
    width: 30px;
    height: 30px;
  }

  .room-fab {
    width: 56px;
    height: 56px;
  }

  .room-fab-code {
    font-size: 0.76rem;
  }

  .room-fab-count {
    font-size: 0.62rem;
  }
}


/* --- production copy and focused board layout --- */
.game-page .hero-banner {
  padding: 14px 16px;
  gap: 12px;
}

.game-page .hero-banner .brand-copy p {
  font-size: 0.92rem;
}

.game-page .game-grid {
  grid-template-columns: minmax(0, 1120px);
  justify-content: center;
  max-width: 1120px;
  margin: 18px auto 0;
}

.game-page .board-surface {
  padding: 16px;
}

.game-page .table-felt {
  max-width: 1040px;
  margin: 0 auto;
}

.game-page .side-stack-game {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}

.game-page .chat-surface,
.game-page .deck-mini-panel {
  min-height: 100%;
}

.game-page .section-title {
  line-height: 1.05;
}

@media (max-width: 1120px) {
  .game-page .side-stack-game {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .game-page .hero-banner {
    padding: 12px 14px;
  }

  .game-page .game-grid,
  .game-page .side-stack-game {
    max-width: none;
    margin-inline: 0;
  }

  .game-page .side-stack-game {
    grid-template-columns: 1fr;
  }
}

/* PokerVip Hold'em rebuild */
.poker-shell {
  max-width: 1520px;
}

.poker-room-header {
  padding-block: 14px;
}

.poker-grid {
  align-items: start;
}

.board-focus-shell {
  display: grid;
  gap: 18px;
}

.compact-board-top {
  gap: 14px;
}

.single-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.poker-board-surface {
  overflow: visible;
}

.poker-table-wrap {
  display: grid;
  gap: 16px;
}

.table-status-panel {
  display: grid;
  gap: 10px;
}

.community-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  flex-wrap: wrap;
}

.community-placeholder {
  color: rgba(224, 230, 245, 0.8);
  font-size: 0.95rem;
}

.poker-table-oval {
  position: relative;
  min-height: 760px;
  border-radius: 42px;
  background:
    radial-gradient(circle at center, rgba(29, 109, 80, 0.24) 0%, rgba(9, 63, 46, 0.56) 38%, rgba(4, 22, 18, 0.96) 100%),
    linear-gradient(135deg, rgba(19, 33, 61, 0.9), rgba(5, 12, 24, 0.96));
  border: 1px solid rgba(219, 178, 83, 0.25);
  box-shadow: inset 0 0 0 2px rgba(219, 178, 83, 0.08), 0 28px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.poker-table-oval::before {
  content: '';
  position: absolute;
  inset: 8% 8%;
  border-radius: 50% / 38%;
  border: 3px solid rgba(219, 178, 83, 0.28);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.board-center-cluster {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 66vw);
  display: grid;
  gap: 12px;
  justify-items: center;
  z-index: 2;
}

.dealer-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 194, 84, 0.5);
  background: rgba(7, 12, 21, 0.86);
  color: #f6d37a;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.seat-ring {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.seat-node {
  position: absolute;
  width: clamp(150px, 12vw, 190px);
  min-height: 126px;
  padding: 12px 12px 10px;
  border-radius: 22px;
  background: rgba(7, 15, 26, 0.82);
  border: 1px solid rgba(94, 128, 170, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.seat-node.is-me {
  border-color: rgba(245, 194, 84, 0.6);
  box-shadow: 0 18px 36px rgba(245, 194, 84, 0.14);
}

.seat-node.is-turn {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(89, 221, 169, 0.65);
  box-shadow: 0 0 0 1px rgba(89, 221, 169, 0.2), 0 18px 38px rgba(17, 86, 62, 0.28);
}

.seat-node.is-folded {
  opacity: 0.55;
}

.seat-node.is-allin {
  border-color: rgba(255, 109, 109, 0.65);
}

.seat-node.is-empty {
  opacity: 0.7;
  justify-content: center;
}

.seat-head,
.seat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seat-name {
  font-weight: 700;
  color: #f4f7ff;
}

.seat-stack {
  font-size: 0.84rem;
  color: rgba(214, 222, 242, 0.82);
}

.seat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seat-badge,
.showdown-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(27, 40, 64, 0.9);
  color: #d6e0f8;
  font-size: 0.74rem;
  font-weight: 700;
}

.showdown-label {
  background: rgba(244, 196, 82, 0.16);
  color: #f7d37d;
}

.seat-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.seat-cards.ghost {
  min-height: 58px;
}

.seat-footer {
  font-size: 0.78rem;
  color: rgba(217, 223, 236, 0.78);
}

.seat-1 { left: 50%; top: 5%; transform: translateX(-50%); }
.seat-2 { right: 11%; top: 13%; }
.seat-3 { right: 3%; top: 34%; }
.seat-4 { right: 11%; bottom: 18%; }
.seat-5 { left: 50%; bottom: 6%; transform: translateX(-50%); }
.seat-6 { left: 11%; bottom: 18%; }
.seat-7 { left: 3%; top: 34%; }
.seat-8 { left: 11%; top: 13%; }

.your-seat-panel {
  padding: 18px 20px 22px;
  border-radius: 26px;
  background: rgba(6, 15, 27, 0.88);
  border: 1px solid rgba(96, 124, 168, 0.22);
}

.modern-hand {
  display: flex;
  gap: 14px;
  justify-content: center;
  min-height: 168px;
}

.poker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bet-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bet-input {
  max-width: 120px;
  text-align: center;
}

.pv-card {
  position: relative;
  width: 92px;
  height: 132px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(240,236,230,0.98));
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  overflow: hidden;
}

.pv-card.small {
  width: 54px;
  height: 78px;
  border-radius: 12px;
}

.pv-card.placeholder {
  background: rgba(255,255,255,0.08);
  border-style: dashed;
  box-shadow: none;
}

.pv-card.is-back {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 40%),
    linear-gradient(135deg, rgba(10,26,54,0.98), rgba(22,60,122,0.98));
  border: 1px solid rgba(245, 194, 84, 0.2);
}

.pv-card-back-inner {
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 2px solid rgba(245, 194, 84, 0.58);
  background-image: radial-gradient(rgba(245, 194, 84, 0.3) 1px, transparent 1px);
  background-size: 12px 12px;
}

.pv-card.red {
  color: #c93f50;
}

.pv-card.black {
  color: #20252f;
}

.pv-card-corner {
  position: absolute;
  display: grid;
  justify-items: center;
  line-height: 1;
}

.pv-card-corner.top { top: 8px; left: 8px; }
.pv-card-corner.bottom { right: 8px; bottom: 8px; transform: rotate(180deg); }
.pv-card.small .pv-card-corner.top { top: 5px; left: 5px; }
.pv-card.small .pv-card-corner.bottom { right: 5px; bottom: 5px; }

.pv-card-rank {
  font-weight: 800;
  font-size: 1.15rem;
}

.pv-card-suit {
  font-size: 1rem;
}

.pv-card.small .pv-card-rank { font-size: 0.8rem; }
.pv-card.small .pv-card-suit { font-size: 0.72rem; }

.pv-card-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 3.6rem;
  opacity: 0.88;
}

.pv-card.small .pv-card-center {
  font-size: 1.9rem;
}

.compact-empty {
  padding: 14px;
}

.poker-side-stack {
  width: min(380px, 100%);
}

.theme-criollo .poker-table-oval {
  background:
    radial-gradient(circle at center, rgba(29, 109, 80, 0.24) 0%, rgba(9, 63, 46, 0.56) 38%, rgba(4, 22, 18, 0.96) 100%),
    linear-gradient(135deg, rgba(19, 33, 61, 0.9), rgba(5, 12, 24, 0.96));
}

.theme-noche_neon .poker-table-oval {
  background:
    radial-gradient(circle at center, rgba(75, 25, 102, 0.34) 0%, rgba(19, 8, 44, 0.72) 38%, rgba(5, 6, 20, 0.98) 100%),
    linear-gradient(135deg, rgba(27, 16, 70, 0.92), rgba(6, 10, 28, 0.96));
}

.theme-oro_real .poker-table-oval {
  background:
    radial-gradient(circle at center, rgba(100, 69, 16, 0.36) 0%, rgba(51, 31, 8, 0.82) 38%, rgba(15, 11, 6, 0.98) 100%),
    linear-gradient(135deg, rgba(50, 35, 11, 0.94), rgba(9, 8, 7, 0.96));
}

.theme-campeones .poker-table-oval {
  background:
    radial-gradient(circle at center, rgba(102, 21, 47, 0.34) 0%, rgba(44, 11, 26, 0.76) 38%, rgba(11, 9, 15, 0.98) 100%),
    linear-gradient(135deg, rgba(45, 17, 29, 0.94), rgba(8, 10, 17, 0.96));
}

.theme-coleccion_digital .poker-table-oval {
  background:
    radial-gradient(circle at center, rgba(20, 78, 88, 0.28) 0%, rgba(10, 21, 34, 0.84) 38%, rgba(3, 8, 14, 0.98) 100%),
    linear-gradient(135deg, rgba(14, 26, 38, 0.94), rgba(4, 9, 15, 0.96));
}

@media (max-width: 1180px) {
  .poker-grid {
    grid-template-columns: 1fr;
  }

  .poker-side-stack {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .poker-table-oval {
    min-height: 1080px;
  }

  .board-center-cluster {
    width: min(500px, 84vw);
    top: 48%;
  }

  .seat-node {
    width: min(180px, 44vw);
  }

  .seat-1 { left: 50%; top: 2%; transform: translateX(-50%); }
  .seat-2 { right: 4%; top: 14%; }
  .seat-3 { right: 2%; top: 36%; }
  .seat-4 { right: 4%; bottom: 20%; }
  .seat-5 { left: 50%; bottom: 8%; transform: translateX(-50%); }
  .seat-6 { left: 4%; bottom: 20%; }
  .seat-7 { left: 2%; top: 36%; }
  .seat-8 { left: 4%; top: 14%; }
}

@media (max-width: 720px) {
  .poker-table-oval {
    min-height: 1180px;
    border-radius: 28px;
  }

  .board-center-cluster {
    width: min(92vw, 460px);
    top: 47%;
  }

  .community-row {
    gap: 8px;
  }

  .pv-card {
    width: 74px;
    height: 108px;
  }

  .pv-card.small {
    width: 44px;
    height: 64px;
  }

  .seat-node {
    width: min(160px, 42vw);
    padding: 10px 10px 8px;
  }

  .poker-actions {
    position: sticky;
    bottom: 6px;
    z-index: 20;
    padding: 10px;
    border-radius: 18px;
    background: rgba(7, 15, 26, 0.86);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  .bet-box {
    width: 100%;
  }

  .bet-input {
    flex: 1;
    max-width: none;
  }
}

/* --- PokerVip definitive polish --- */
.top-nav {
  justify-content: space-between;
  align-items: center;
}

.top-nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.top-nav-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav-logout {
  white-space: nowrap;
}

.top-nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(9, 16, 30, 0.82);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(1, 7, 18, 0.22);
}

.top-nav-avatar,
.seat-avatar,
.chat-avatar,
.profile-hero-avatar,
.profile-preview-avatar {
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #173563, #09111f);
}

.top-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.top-nav-name {
  font-weight: 700;
  color: #f5f8ff;
}

.mobile-tab.mobile-tab-exit {
  color: #ffd48a;
}

.room-fab.is-current {
  box-shadow: 0 0 0 4px rgba(245, 194, 84, 0.18), 0 18px 32px rgba(1, 7, 18, 0.26);
  transform: scale(1.04);
}

.orientation-guard[hidden] {
  display: none !important;
}

.orientation-guard {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 7, 15, 0.84);
  backdrop-filter: blur(14px);
}

.orientation-card {
  width: min(480px, 100%);
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 16, 30, 0.96), rgba(6, 11, 20, 0.98));
  border: 1px solid rgba(245, 194, 84, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.orientation-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 24px;
}

.orientation-card h2 {
  margin: 0 0 8px;
}

.orientation-card p {
  margin: 0;
  color: var(--muted);
}

.orientation-actions {
  justify-content: center;
  margin-top: 18px;
}

body.needs-landscape {
  overflow: hidden;
}

.table-felt-logo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  transform: translate(-50%, -50%);
  background: url('../brand/felt-pokervip.svg') center/contain no-repeat;
  opacity: 0.52;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.22));
}

.board-center-cluster,
.seat-node {
  position: relative;
  z-index: 2;
}

.player-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.player-badge strong,
.player-badge span {
  display: block;
}

.seat-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  color: #f6f9ff;
}

.avatar-xs {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.avatar-md,
.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.24);
}

.profile-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(8, 15, 28, 0.68);
}

.profile-preview-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.profile-form-grid {
  display: grid;
  gap: 14px;
}

.profile-upload-field {
  display: grid;
  gap: 8px;
}

.chat-messages {
  max-height: 320px;
}

.chat-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
}

.chat-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.chat-meta-row strong {
  color: #f5f8ff;
  font-size: 0.92rem;
}

.chat-time {
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-bubble p {
  margin: 0;
  color: #dbe5f6;
  line-height: 1.45;
}

.chat-item.spectator .chat-bubble {
  border-left: 2px solid rgba(56, 189, 248, 0.26);
}

.pv-card {
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.85), rgba(255,255,255,0.18) 24%, transparent 42%),
    linear-gradient(165deg, rgba(255,255,255,0.98), rgba(243,236,227,0.98) 58%, rgba(228,220,209,0.98));
}

.pv-card .pv-card-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.48), transparent 30%, transparent 70%, rgba(255,255,255,0.18));
  pointer-events: none;
}

.pv-card-brand-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f6d37d;
  background: linear-gradient(135deg, rgba(18, 37, 67, 0.94), rgba(8, 16, 30, 0.94));
  border: 1px solid rgba(245, 194, 84, 0.42);
}

.pv-card.small .pv-card-brand-mark {
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  font-size: 0.52rem;
  padding: 0 5px;
}

.pv-card-wordmark {
  position: absolute;
  inset: auto 0 10px;
  text-align: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: rgba(24, 46, 84, 0.18);
}

.pv-card.small .pv-card-wordmark {
  font-size: 0.36rem;
  bottom: 6px;
  letter-spacing: 0.22em;
}

.pv-card-center-echo {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: 0.08;
}

.pv-card.small .pv-card-center-echo {
  font-size: 2.4rem;
}

.pv-card.is-back {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.1), transparent 28%),
    linear-gradient(145deg, rgba(8,22,44,0.98), rgba(19,54,96,0.98) 52%, rgba(8,16,30,0.98));
}

.pv-card-back-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: rgba(255, 240, 199, 0.86);
  text-transform: uppercase;
}

.pv-card.small .pv-card-back-brand {
  font-size: 0.46rem;
  letter-spacing: 0.18em;
}

.pv-card-back-mark {
  position: absolute;
  inset: auto auto 14px 50%;
  transform: translateX(-50%);
  color: rgba(255, 240, 199, 0.78);
  font-weight: 900;
  font-size: 1.4rem;
}

.pv-card.small .pv-card-back-mark {
  bottom: 8px;
  font-size: 0.9rem;
}

.card-deal-anim {
  animation: pvDealIn 260ms ease both;
}

@keyframes pvDealIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .top-nav {
    gap: 12px;
  }

  .top-nav-main {
    width: 100%;
  }

  .top-nav-profile {
    margin-left: auto;
  }

  .table-felt-logo {
    width: min(62vw, 420px);
    height: min(62vw, 420px);
  }
}

@media (max-width: 720px) {
  .top-nav-profile {
    width: 100%;
    justify-content: center;
  }

  .poker-table-oval {
    min-height: 1220px;
  }

  .table-felt-logo {
    width: min(78vw, 360px);
    height: min(78vw, 360px);
    opacity: 0.4;
  }

  .orientation-card {
    padding: 22px 18px;
  }

  .profile-preview-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .mobile-tabbar {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .mobile-tabbar::-webkit-scrollbar {
    display: none;
  }

  .mobile-tab {
    flex: 0 0 auto;
    min-width: 82px;
  }
}

.theme-criollo .pv-card.is-back {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.1), transparent 28%),
    linear-gradient(145deg, rgba(7,22,44,0.98), rgba(20,68,118,0.98) 52%, rgba(8,16,30,0.98));
}

.theme-noche_neon .pv-card.is-back {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(145deg, rgba(32,10,68,0.98), rgba(10,16,45,0.98) 52%, rgba(4,10,24,0.98));
}

.theme-noche_neon .pv-card-brand-mark,
.theme-noche_neon .pv-card-back-brand,
.theme-noche_neon .pv-card-back-mark {
  color: #87f6ff;
}

.theme-oro_real .pv-card.is-back {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(145deg, rgba(58,33,10,0.98), rgba(116,72,22,0.98) 52%, rgba(18,11,6,0.98));
}

.theme-oro_real .pv-card-brand-mark,
.theme-oro_real .pv-card-back-brand,
.theme-oro_real .pv-card-back-mark {
  color: #ffd97c;
}

.theme-campeones .pv-card.is-back {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(145deg, rgba(77,18,42,0.98), rgba(25,14,32,0.98) 52%, rgba(11,9,15,0.98));
}

.theme-campeones .pv-card-brand-mark,
.theme-campeones .pv-card-back-brand,
.theme-campeones .pv-card-back-mark {
  color: #ffda80;
}

.theme-coleccion_digital .pv-card.is-back {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(145deg, rgba(10,35,46,0.98), rgba(8,18,31,0.98) 52%, rgba(4,9,15,0.98));
}

.theme-coleccion_digital .pv-card-brand-mark,
.theme-coleccion_digital .pv-card-back-brand,
.theme-coleccion_digital .pv-card-back-mark {
  color: #7eeeff;
}

/* --- PokerVip final table symmetry + mobile first-person --- */
.seat-ring {
  overflow: visible;
}

.seat-node {
  left: 50%;
  top: 50%;
  width: clamp(142px, 11.4vw, 176px);
  min-height: 116px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  gap: 7px;
  z-index: 2;
}

.seat-node[data-display-pos="5"],
.seat-node.is-me {
  z-index: 3;
}

.seat-node.is-turn {
  transform: translate(-50%, -50%) scale(1.03);
}

.seat-head {
  align-items: flex-start;
}

.seat-badges {
  justify-content: flex-end;
}

.seat-name {
  font-size: 0.98rem;
}

.seat-stack,
.seat-footer {
  font-size: 0.76rem;
}

.seat-badge,
.showdown-label {
  min-height: 22px;
  font-size: 0.7rem;
}

.seat-ring.layout-2 .seat-node {
  width: clamp(170px, 16vw, 208px);
}

.seat-ring.layout-4 .seat-node {
  width: clamp(154px, 13vw, 192px);
}

.seat-ring.layout-6 .seat-node {
  width: clamp(146px, 11.8vw, 182px);
}

.seat-ring.layout-8 .seat-node {
  width: clamp(138px, 10.9vw, 172px);
}

.seat-ring.is-first-person .seat-node.is-me {
  border-color: rgba(245, 194, 84, 0.72);
  box-shadow: 0 0 0 1px rgba(245, 194, 84, 0.22), 0 18px 40px rgba(245, 194, 84, 0.18);
}

.seat-ring.is-first-person .seat-node.is-me .seat-footer {
  color: #f7d37d;
}

.board-center-cluster {
  pointer-events: none;
}

.board-center-cluster > * {
  pointer-events: auto;
}

.mobile-table-dock,
.mobile-panel-close {
  display: none;
}

.mobile-panel-tools-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) and (orientation: portrait) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .poker-room-header,
  .poker-grid,
  .mobile-table-dock,
  .rooms-floating-dock {
    visibility: hidden;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.mobile-table-fixed {
    overscroll-behavior: none;
  }

  body.mobile-table-fixed .page-shell.poker-shell {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    padding: 0;
  }

  body.mobile-table-fixed .poker-room-header {
    display: none;
  }

  body.mobile-table-fixed .game-grid.poker-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: none;
    margin: 0;
    height: 100dvh;
  }

  body.mobile-table-fixed .poker-board-surface {
    height: 100dvh;
    min-height: 100dvh;
    padding: 6px 8px 10px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.98), rgba(3, 7, 12, 1));
  }

  body.mobile-table-fixed .board-focus-shell {
    height: 100%;
    grid-template-rows: auto 1fr;
    gap: 6px;
  }

  body.mobile-table-fixed .board-top.compact-board-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
  }

  body.mobile-table-fixed #players-strip {
    display: none;
  }

  body.mobile-table-fixed .single-scoreboard {
    justify-content: center;
    gap: 6px;
  }

  body.mobile-table-fixed .single-scoreboard .pill {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  body.mobile-table-fixed .poker-table-wrap {
    height: 100%;
    min-height: 0;
    gap: 8px;
    grid-template-rows: auto 1fr;
  }

  body.mobile-table-fixed .table-status-panel {
    gap: 6px;
  }

  body.mobile-table-fixed .status-banner,
  body.mobile-table-fixed .clock-banner,
  body.mobile-table-fixed .call-stack {
    font-size: 0.76rem;
    min-height: 0;
    text-align: center;
  }

  body.mobile-table-fixed .poker-table-oval {
    height: 100%;
    min-height: 0;
    border-radius: 28px;
  }

  body.mobile-table-fixed .poker-table-oval::before {
    inset: 9% 6.5%;
    border-width: 2px;
  }

  body.mobile-table-fixed .table-felt-logo {
    width: min(36vh, 44vw);
    height: min(36vh, 44vw);
    opacity: 0.38;
  }

  body.mobile-table-fixed .board-center-cluster {
    width: min(57vw, 430px);
    gap: 8px;
  }

  body.mobile-table-fixed .dealer-chip {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  body.mobile-table-fixed .community-row {
    min-height: 86px;
    gap: 6px;
  }

  body.mobile-table-fixed .community-row .pv-card {
    width: 58px;
    height: 84px;
    border-radius: 12px;
  }

  body.mobile-table-fixed .community-row .pv-card-center {
    font-size: 2.2rem;
  }

  body.mobile-table-fixed .community-row .pv-card-center-echo {
    font-size: 3.1rem;
  }

  body.mobile-table-fixed .poker-actions {
    gap: 6px;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(7, 15, 26, 0.82);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  }

  body.mobile-table-fixed .poker-actions .btn,
  body.mobile-table-fixed .poker-actions .input {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  body.mobile-table-fixed .bet-box {
    gap: 6px;
  }

  body.mobile-table-fixed .seat-node {
    width: min(112px, 18vw);
    min-height: 82px;
    padding: 7px 7px 6px;
    gap: 5px;
    border-radius: 18px;
  }

  body.mobile-table-fixed .seat-node .seat-name {
    font-size: 0.78rem;
    line-height: 1;
  }

  body.mobile-table-fixed .seat-node .seat-stack,
  body.mobile-table-fixed .seat-node .seat-footer {
    font-size: 0.63rem;
  }

  body.mobile-table-fixed .seat-node .seat-badge,
  body.mobile-table-fixed .seat-node .showdown-label {
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.6rem;
  }

  body.mobile-table-fixed .seat-node .avatar-md,
  body.mobile-table-fixed .seat-node .chat-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  body.mobile-table-fixed .seat-node .seat-cards {
    gap: 3px;
  }

  body.mobile-table-fixed .seat-node .pv-card.small {
    width: 28px;
    height: 40px;
    border-radius: 8px;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-brand-mark,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-wordmark,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-back-brand,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-back-mark {
    display: none;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-rank {
    font-size: 0.6rem;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-suit {
    font-size: 0.54rem;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-center,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-center-echo {
    font-size: 1.1rem;
  }

  body.mobile-table-fixed .seat-node[data-display-pos="5"] {
    width: min(148px, 23vw);
    min-height: 98px;
    padding: 8px 9px;
  }

  body.mobile-table-fixed .seat-node[data-display-pos="5"] .seat-cards .pv-card.small {
    width: 32px;
    height: 46px;
  }

  body.mobile-table-fixed .your-seat-panel {
    display: none;
  }

  body.mobile-table-fixed .poker-side-stack {
    position: fixed;
    right: 10px;
    top: 10px;
    bottom: 62px;
    width: min(320px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    padding-top: 42px;
    display: grid;
    gap: 10px;
    z-index: 85;
    transform: translateX(calc(100% + 24px));
    transition: transform 180ms ease;
    pointer-events: none;
  }

  body.mobile-table-fixed .poker-side-stack.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.mobile-table-fixed .poker-side-stack [data-panel-section] {
    display: none;
  }

  body.mobile-table-fixed .poker-side-stack[data-panel="chat"] [data-panel-section="chat"],
  body.mobile-table-fixed .poker-side-stack[data-panel="mesa"] [data-panel-section="mesa"] {
    display: block;
  }

  body.mobile-table-fixed .poker-side-stack .surface {
    max-height: calc(100dvh - 72px);
    overflow: auto;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  }

  body.mobile-table-fixed .chat-messages {
    max-height: 34dvh;
  }

  body.mobile-table-fixed .mobile-panel-close {
    display: inline-flex;
  }

  body.mobile-table-fixed .mobile-table-dock {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 90;
  }

  body.mobile-table-fixed .mobile-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(6, 13, 24, 0.88);
    color: #eff4ff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    font-weight: 800;
    backdrop-filter: blur(12px);
  }

  body.mobile-table-fixed .mobile-dock-btn.active,
  body.mobile-table-fixed .mobile-dock-btn.exit {
    border-color: rgba(245, 194, 84, 0.34);
  }

  body.mobile-table-fixed .rooms-floating-dock {
    left: 10px;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 91;
    align-items: flex-start;
  }

  body.mobile-table-fixed .rooms-floating-head {
    background: rgba(5, 12, 22, 0.84);
    border-radius: 999px;
    padding: 4px 8px;
    backdrop-filter: blur(12px);
  }

  body.mobile-table-fixed .rooms-floating-label {
    display: none;
  }

  body.mobile-table-fixed .rooms-floating-list {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 42vw;
    gap: 6px;
  }

  body.mobile-table-fixed .room-fab {
    width: 50px;
    height: 50px;
  }

  body.mobile-table-fixed .room-fab-code {
    font-size: 0.7rem;
  }

  body.mobile-table-fixed .room-fab-count {
    font-size: 0.56rem;
  }
}


/* --- PokerVip symmetry final fix --- */
.game-page .game-grid.poker-grid {
  max-width: min(1420px, calc(100vw - 20px));
}

.poker-board-surface {
  padding: clamp(10px, 1.2vw, 16px);
}

.board-focus-shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

.poker-table-wrap {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
}

.poker-table-oval {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  height: clamp(640px, 72vh, 860px);
  min-height: clamp(640px, 72vh, 860px);
  aspect-ratio: 16 / 10;
}

.poker-table-oval::before {
  inset: 9.5% 7.5%;
}

.seat-ring {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.seat-node {
  width: clamp(132px, 8.8vw, 156px);
  min-height: 108px;
  padding: 10px 11px 9px;
  gap: 7px;
  border-radius: 20px;
  transform: translate(-50%, -50%);
}

.seat-node.is-turn {
  transform: translate(-50%, -50%) scale(1.03);
}

.seat-ring.layout-2 .seat-node {
  width: clamp(164px, 11.5vw, 194px);
}

.seat-ring.layout-4 .seat-node {
  width: clamp(148px, 10.2vw, 176px);
}

.seat-ring.layout-6 .seat-node {
  width: clamp(138px, 9.5vw, 164px);
}

.seat-ring.layout-8 .seat-node {
  width: clamp(128px, 8.6vw, 152px);
}

.seat-name {
  font-size: 0.95rem;
}

.seat-stack,
.seat-footer {
  font-size: 0.75rem;
}

.seat-badge,
.showdown-label {
  font-size: 0.68rem;
  min-height: 21px;
}

.seat-identity {
  gap: 8px;
}

@media (max-width: 1180px) {
  .poker-table-oval {
    height: clamp(600px, 68vh, 780px);
    min-height: clamp(600px, 68vh, 780px);
  }

  .seat-ring.layout-8 .seat-node {
    width: clamp(120px, 9.2vw, 144px);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.mobile-table-fixed {
    overscroll-behavior: none;
    touch-action: manipulation;
  }

  body.mobile-table-fixed .page-shell.poker-shell {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  body.mobile-table-fixed .game-grid.poker-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: none;
    margin: 0;
    height: 100dvh;
  }

  body.mobile-table-fixed .poker-room-header,
  body.mobile-table-fixed .your-seat-panel,
  body.mobile-table-fixed #players-strip {
    display: none !important;
  }

  body.mobile-table-fixed .poker-board-surface {
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.98), rgba(2, 7, 12, 1));
  }

  body.mobile-table-fixed .board-focus-shell {
    height: 100dvh;
    max-width: none;
    grid-template-rows: 1fr;
    gap: 0;
  }

  body.mobile-table-fixed .board-top.compact-board-top {
    position: fixed;
    left: 50%;
    top: max(10px, env(safe-area-inset-top));
    transform: translateX(-50%);
    z-index: 70;
    width: min(92vw, 560px);
    margin: 0;
    pointer-events: none;
  }

  body.mobile-table-fixed .single-scoreboard {
    justify-content: center;
    gap: 6px;
  }

  body.mobile-table-fixed .single-scoreboard .pill {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  body.mobile-table-fixed .poker-table-wrap {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: 1fr;
    gap: 0;
  }

  body.mobile-table-fixed .table-status-panel {
    position: fixed;
    left: 50%;
    top: max(48px, calc(env(safe-area-inset-top) + 42px));
    transform: translateX(-50%);
    width: min(92vw, 560px);
    gap: 5px;
    z-index: 72;
    pointer-events: none;
  }

  body.mobile-table-fixed .status-banner,
  body.mobile-table-fixed .clock-banner,
  body.mobile-table-fixed .call-stack {
    min-height: 0;
    padding: 6px 10px;
    text-align: center;
    font-size: 0.72rem;
  }

  body.mobile-table-fixed .poker-table-oval {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  body.mobile-table-fixed .poker-table-oval::before {
    inset: 11.5% 8%;
    border-width: 2px;
  }

  body.mobile-table-fixed .table-felt-logo {
    width: min(38vh, 48vw);
    height: min(38vh, 48vw);
    opacity: 0.34;
  }

  body.mobile-table-fixed .board-center-cluster {
    width: min(54vw, 360px);
    gap: 8px;
  }

  body.mobile-table-fixed .dealer-chip {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  body.mobile-table-fixed .community-row {
    min-height: 82px;
    gap: 6px;
  }

  body.mobile-table-fixed .community-row .pv-card {
    width: 56px;
    height: 82px;
    border-radius: 12px;
  }

  body.mobile-table-fixed .community-row .pv-card-center {
    font-size: 2.1rem;
  }

  body.mobile-table-fixed .community-row .pv-card-center-echo {
    font-size: 2.9rem;
  }

  body.mobile-table-fixed .poker-actions {
    gap: 6px;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(7, 15, 26, 0.82);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  }

  body.mobile-table-fixed .poker-actions .btn,
  body.mobile-table-fixed .poker-actions .input {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  body.mobile-table-fixed .seat-node {
    width: min(88px, 11.4vw);
    min-height: 70px;
    padding: 5px 6px;
    gap: 4px;
    border-radius: 16px;
  }

  body.mobile-table-fixed .seat-ring.layout-2 .seat-node {
    width: min(118px, 15vw);
  }

  body.mobile-table-fixed .seat-ring.layout-4 .seat-node {
    width: min(102px, 13vw);
  }

  body.mobile-table-fixed .seat-ring.layout-6 .seat-node {
    width: min(94px, 12vw);
  }

  body.mobile-table-fixed .seat-ring.layout-8 .seat-node {
    width: min(86px, 10.8vw);
  }

  body.mobile-table-fixed .seat-node .seat-identity {
    gap: 5px;
  }

  body.mobile-table-fixed .seat-node .avatar-md,
  body.mobile-table-fixed .seat-node .chat-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.64rem;
  }

  body.mobile-table-fixed .seat-node .seat-name {
    font-size: 0.7rem;
    line-height: 1;
  }

  body.mobile-table-fixed .seat-node .seat-stack,
  body.mobile-table-fixed .seat-node .seat-footer {
    font-size: 0.58rem;
    line-height: 1.15;
  }

  body.mobile-table-fixed .seat-node .seat-badge,
  body.mobile-table-fixed .seat-node .showdown-label {
    min-height: 17px;
    padding: 0 5px;
    font-size: 0.56rem;
  }

  body.mobile-table-fixed .seat-node .seat-cards {
    gap: 3px;
  }

  body.mobile-table-fixed .seat-node .pv-card.small {
    width: 24px;
    height: 36px;
    border-radius: 8px;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-brand-mark,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-wordmark,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-back-brand,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-back-mark {
    display: none;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-rank {
    font-size: 0.54rem;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-suit {
    font-size: 0.48rem;
  }

  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-center,
  body.mobile-table-fixed .seat-node .pv-card.small .pv-card-center-echo {
    font-size: 0.95rem;
  }

  body.mobile-table-fixed .seat-node[data-display-pos="5"] {
    width: min(116px, 15vw);
    min-height: 76px;
  }

  body.mobile-table-fixed .seat-node[data-display-pos="5"] .seat-cards .pv-card.small {
    width: 28px;
    height: 40px;
  }

  body.mobile-table-fixed .poker-side-stack {
    position: fixed;
    right: 10px;
    top: 10px;
    bottom: 62px;
    width: min(300px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    padding-top: 42px;
    display: grid;
    gap: 10px;
    z-index: 85;
    transform: translateX(calc(100% + 24px));
    transition: transform 180ms ease;
    pointer-events: none;
  }

  body.mobile-table-fixed .poker-side-stack.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.mobile-table-fixed .poker-side-stack [data-panel-section] {
    display: none;
  }

  body.mobile-table-fixed .poker-side-stack[data-panel="chat"] [data-panel-section="chat"],
  body.mobile-table-fixed .poker-side-stack[data-panel="mesa"] [data-panel-section="mesa"] {
    display: block;
  }

  body.mobile-table-fixed .poker-side-stack .surface {
    max-height: calc(100dvh - 72px);
    overflow: auto;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  }

  body.mobile-table-fixed .chat-messages {
    max-height: 34dvh;
  }

  body.mobile-table-fixed .mobile-panel-close {
    display: inline-flex;
  }

  body.mobile-table-fixed .mobile-table-dock {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 88;
  }
}

/* === PokerVip final symmetry + admin/live updates === */
.live-entry-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.live-entry-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-seat-preview {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 10px;
  padding: 12px;
}

.live-seat-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(120, 138, 170, 0.28);
  border: 1px solid rgba(245, 194, 84, 0.18);
  box-shadow: inset 0 0 0 1px rgba(5, 8, 14, 0.4);
}

.live-seat-dot.filled {
  background: radial-gradient(circle at 30% 30%, #ffd88a 0%, #ff8b34 55%, #9a4a12 100%);
  box-shadow: 0 0 18px rgba(255, 145, 48, 0.28);
}

.btn-xl {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 1.1rem;
  font-weight: 900;
}

body.game-page.poker-game-page {
  overflow-x: hidden;
}

body.game-page.poker-game-page .poker-room-header {
  display: none;
}

body.game-page.poker-game-page .game-grid.poker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
  max-width: min(1540px, calc(100vw - 20px));
  margin: 10px auto 0;
}

body.game-page.poker-game-page .poker-board-surface {
  padding: 12px;
  min-height: calc(100dvh - 20px);
}

body.game-page.poker-game-page .board-focus-shell {
  height: 100%;
  max-width: none;
  margin: 0;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

body.game-page.poker-game-page .board-top.compact-board-top {
  gap: 8px;
  margin: 0;
}

body.game-page.poker-game-page #players-strip {
  display: none;
}

body.game-page.poker-game-page .single-scoreboard {
  justify-content: center;
  gap: 8px;
}

body.game-page.poker-game-page .single-scoreboard .pill {
  padding: 8px 11px;
}

body.game-page.poker-game-page .poker-table-wrap {
  height: 100%;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

body.game-page.poker-game-page .table-status-panel {
  gap: 8px;
}

body.game-page.poker-game-page .poker-table-oval {
  width: 100%;
  max-width: none;
  height: calc(100dvh - 120px);
  min-height: 680px;
  max-height: calc(100dvh - 120px);
  aspect-ratio: auto;
  border-radius: 36px;
}

body.game-page.poker-game-page .poker-table-oval::before {
  inset: 8.5% 7.25%;
}

body.game-page.poker-game-page .table-felt-logo {
  opacity: 0.28;
}

body.game-page.poker-game-page .seat-ring {
  overflow: visible;
}

body.game-page.poker-game-page .seat-node {
  width: clamp(120px, 8vw, 148px);
  min-height: 94px;
  padding: 8px 9px 7px;
  gap: 5px;
  border-radius: 18px;
  transform: translate(-50%, -50%);
}

body.game-page.poker-game-page .seat-node.is-turn {
  transform: translate(-50%, -50%) scale(1.04);
}

body.game-page.poker-game-page .seat-node.is-me {
  width: clamp(146px, 9.6vw, 182px);
  z-index: 3;
}

body.game-page.poker-game-page .seat-node .seat-head {
  align-items: flex-start;
}

body.game-page.poker-game-page .seat-node .seat-identity {
  gap: 7px;
  align-items: center;
}

body.game-page.poker-game-page .seat-node .avatar-md,
body.game-page.poker-game-page .seat-node .chat-avatar {
  width: 32px;
  height: 32px;
}

body.game-page.poker-game-page .seat-node .seat-name {
  font-size: 0.88rem;
  line-height: 1.05;
}

body.game-page.poker-game-page .seat-node .seat-stack,
body.game-page.poker-game-page .seat-node .seat-footer {
  font-size: 0.7rem;
  line-height: 1.15;
}

body.game-page.poker-game-page .seat-node .seat-badges {
  gap: 4px;
}

body.game-page.poker-game-page .seat-node .seat-badge,
body.game-page.poker-game-page .seat-node .showdown-label {
  min-height: 20px;
  padding: 0 6px;
  font-size: 0.62rem;
}

body.game-page.poker-game-page .seat-node .seat-cards {
  gap: 4px;
}

body.game-page.poker-game-page .seat-node .pv-card.small {
  width: 28px;
  height: 42px;
  border-radius: 9px;
}

body.game-page.poker-game-page .seat-node.is-me .pv-card.small {
  width: 34px;
  height: 50px;
}

body.game-page.poker-game-page .seat-ring.layout-2 .seat-node {
  width: clamp(154px, 10vw, 188px);
}

body.game-page.poker-game-page .seat-ring.layout-4 .seat-node {
  width: clamp(138px, 9.2vw, 168px);
}

body.game-page.poker-game-page .seat-ring.layout-6 .seat-node {
  width: clamp(126px, 8.6vw, 156px);
}

body.game-page.poker-game-page .seat-ring.layout-8 .seat-node {
  width: clamp(118px, 7.8vw, 146px);
}

body.game-page.poker-game-page .seat-ring.layout-9 .seat-node {
  width: clamp(112px, 7.4vw, 138px);
}

body.game-page.poker-game-page .seat-ring.layout-9 .seat-node.is-me {
  width: clamp(136px, 8.8vw, 168px);
}

body.game-page.poker-game-page .your-seat-panel {
  display: none !important;
}

body.game-page.poker-game-page .poker-side-stack {
  position: sticky;
  top: 10px;
  height: calc(100dvh - 20px);
  max-height: calc(100dvh - 20px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
}

body.game-page.poker-game-page .chat-surface {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0;
}

body.game-page.poker-game-page .table-tools-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

body.game-page.poker-game-page .chat-messages {
  min-height: 0;
  overflow: auto;
}

@media (max-width: 1280px) {
  body.game-page.poker-game-page .game-grid.poker-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  body.game-page.poker-game-page .poker-table-oval {
    height: calc(100dvh - 118px);
    min-height: 620px;
    max-height: calc(100dvh - 118px);
  }

  body.game-page.poker-game-page .seat-ring.layout-9 .seat-node {
    width: clamp(104px, 7vw, 130px);
  }
}

@media (max-width: 1100px) {
  .live-entry-block {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body.game-page.poker-game-page .game-grid.poker-grid {
    grid-template-columns: 1fr;
    max-width: min(1100px, calc(100vw - 16px));
  }

  body.game-page.poker-game-page .poker-side-stack {
    position: fixed;
    right: 10px;
    top: 10px;
    bottom: 58px;
    width: min(340px, calc(100vw - 20px));
    height: auto;
    max-height: calc(100dvh - 68px);
    z-index: 80;
    transform: translateX(calc(100% + 24px));
    transition: transform 180ms ease;
    pointer-events: none;
  }

  body.game-page.poker-game-page .poker-side-stack.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.game-page.poker-game-page .poker-side-stack [data-panel-section] {
    display: none;
  }

  body.game-page.poker-game-page .poker-side-stack[data-panel="chat"] [data-panel-section="chat"],
  body.game-page.poker-game-page .poker-side-stack[data-panel="mesa"] [data-panel-section="mesa"] {
    display: grid;
  }

  body.game-page.poker-game-page .mobile-table-dock {
    display: flex;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  html,
  body,
  body.mobile-table-fixed {
    width: 100vw;
    height: 100dvh;
    overflow: hidden !important;
  }

  body.mobile-table-fixed .page-shell.poker-shell,
  body.mobile-table-fixed .game-grid.poker-grid,
  body.mobile-table-fixed .poker-board-surface,
  body.mobile-table-fixed .board-focus-shell,
  body.mobile-table-fixed .poker-table-wrap {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
  }

  body.mobile-table-fixed .poker-room-header,
  body.mobile-table-fixed #players-strip,
  body.mobile-table-fixed .your-seat-panel {
    display: none !important;
  }

  body.mobile-table-fixed .board-focus-shell {
    grid-template-rows: 1fr;
  }

  body.mobile-table-fixed .board-top.compact-board-top {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 520px);
    z-index: 70;
    pointer-events: none;
  }

  body.mobile-table-fixed .single-scoreboard {
    justify-content: center;
    gap: 6px;
  }

  body.mobile-table-fixed .single-scoreboard .pill {
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  body.mobile-table-fixed .table-status-panel {
    position: fixed;
    top: max(44px, calc(env(safe-area-inset-top) + 34px));
    left: 50%;
    transform: translateX(-50%);
    width: min(88vw, 500px);
    z-index: 71;
    gap: 5px;
    pointer-events: none;
  }

  body.mobile-table-fixed .status-banner,
  body.mobile-table-fixed .clock-banner,
  body.mobile-table-fixed .call-stack {
    padding: 5px 9px;
    min-height: 0;
    font-size: 0.68rem;
    text-align: center;
  }

  body.mobile-table-fixed .poker-table-oval {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  body.mobile-table-fixed .poker-table-oval::before {
    inset: 12% 6.5%;
    border-width: 2px;
  }

  body.mobile-table-fixed .table-felt-logo {
    width: min(34vh, 42vw);
    height: min(34vh, 42vw);
    opacity: 0.28;
  }

  body.mobile-table-fixed .board-center-cluster {
    width: min(60vw, 360px);
    gap: 6px;
  }

  body.mobile-table-fixed .community-row {
    min-height: 70px;
    gap: 5px;
  }

  body.mobile-table-fixed .community-row .pv-card {
    width: 48px;
    height: 70px;
  }

  body.mobile-table-fixed .poker-actions {
    position: fixed;
    left: 50%;
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 46px));
    transform: translateX(-50%);
    width: min(92vw, 560px);
    z-index: 75;
    gap: 5px;
    padding: 7px 8px;
  }

  body.mobile-table-fixed .poker-actions .btn,
  body.mobile-table-fixed .poker-actions .input {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.74rem;
  }

  body.mobile-table-fixed .seat-node {
    width: min(82px, 12vw);
    min-height: 62px;
    padding: 4px 5px;
    gap: 3px;
    border-radius: 14px;
  }

  body.mobile-table-fixed .seat-ring.layout-9 .seat-node {
    width: min(74px, 10.8vw);
  }

  body.mobile-table-fixed .seat-node.is-me {
    width: min(106px, 15.5vw);
  }

  body.mobile-table-fixed .seat-node .seat-badges {
    display: none;
  }

  body.mobile-table-fixed .seat-node .avatar-md,
  body.mobile-table-fixed .seat-node .chat-avatar {
    width: 20px;
    height: 20px;
  }

  body.mobile-table-fixed .seat-node .seat-name {
    font-size: 0.62rem;
  }

  body.mobile-table-fixed .seat-node .seat-stack,
  body.mobile-table-fixed .seat-node .seat-footer {
    font-size: 0.52rem;
  }

  body.mobile-table-fixed .seat-node .pv-card.small {
    width: 18px;
    height: 28px;
  }

  body.mobile-table-fixed .seat-node.is-me .pv-card.small {
    width: 22px;
    height: 32px;
  }

  body.mobile-table-fixed .poker-side-stack {
    top: 10px;
    right: 10px;
    bottom: 54px;
    width: min(290px, calc(100vw - 20px));
    max-height: calc(100dvh - 64px);
  }

  body.mobile-table-fixed .mobile-table-dock {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: max(6px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 90;
  }

  body.mobile-table-fixed .rooms-floating-dock {
    right: 6px;
    bottom: 56px;
    z-index: 76;
  }
}


/* === PokerVip final layout polish === */
body.game-page.poker-game-page .page-shell.poker-shell {
  width: min(1560px, calc(100% - 18px));
  padding-top: 12px;
}

body.game-page.poker-game-page .game-grid.poker-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body.game-page.poker-game-page .board-surface {
  padding: 12px 14px 16px;
}

body.game-page.poker-game-page .board-focus-shell {
  display: grid;
  gap: 12px;
}

body.game-page.poker-game-page #players-strip {
  display: none !important;
}

body.game-page.poker-game-page .single-scoreboard {
  justify-content: center;
  gap: 8px;
}

body.game-page.poker-game-page .table-status-panel {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 560px);
  z-index: 8;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

body.game-page.poker-game-page .status-banner,
body.game-page.poker-game-page .clock-banner,
body.game-page.poker-game-page .call-stack {
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.game-page.poker-game-page .poker-table-wrap {
  display: grid;
  gap: 12px;
}

body.game-page.poker-game-page .poker-table-oval {
  width: min(100%, 1220px);
  height: min(72vh, 740px);
  min-height: 560px;
  max-height: 740px;
  margin: 0 auto;
  border-radius: 44px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(20,86,67,.98) 0%, rgba(8,41,32,.99) 58%, rgba(4,16,21,.98) 100%);
  box-shadow: inset 0 0 120px rgba(0,0,0,.35), 0 26px 60px rgba(0,0,0,.28);
}

body.game-page.poker-game-page .poker-table-oval::before {
  inset: 8.5% 8%;
  border-radius: 50% / 39%;
}

body.game-page.poker-game-page .table-felt-logo {
  width: min(38vw, 420px);
  height: min(38vw, 420px);
  background: url('../brand/logo-pokervip-512.png') center/contain no-repeat;
  opacity: 0.16;
  filter: none;
}

body.game-page.poker-game-page .seat-ring {
  position: absolute;
  inset: 0;
  overflow: visible;
}

body.game-page.poker-game-page .seat-node {
  position: absolute;
  width: clamp(126px, 10vw, 156px);
  min-height: 106px;
  padding: 10px 10px 18px;
  gap: 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6,12,24,.92), rgba(9,17,32,.96));
  border: 1px solid rgba(245,194,84,.24);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

body.game-page.poker-game-page .seat-node.is-empty {
  opacity: 0.88;
}

body.game-page.poker-game-page .seat-node.is-me {
  width: clamp(150px, 11vw, 184px);
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(245,194,84,.22), 0 18px 34px rgba(0,0,0,.34);
}

body.game-page.poker-game-page .seat-node.is-turn {
  box-shadow: 0 0 0 1px rgba(255,184,64,.55), 0 0 0 6px rgba(255,184,64,.08), 0 18px 34px rgba(0,0,0,.34);
}

body.game-page.poker-game-page .seat-node .seat-head {
  align-items: flex-start;
}

body.game-page.poker-game-page .seat-node .seat-identity {
  gap: 8px;
  align-items: flex-start;
}

body.game-page.poker-game-page .seat-node .avatar-md,
body.game-page.poker-game-page .seat-node .chat-avatar {
  width: 32px;
  height: 32px;
}

body.game-page.poker-game-page .seat-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.game-page.poker-game-page .seat-node .seat-name {
  font-size: 0.9rem;
  line-height: 1.05;
}

body.game-page.poker-game-page .seat-node .seat-stack,
body.game-page.poker-game-page .seat-node .seat-footer {
  font-size: 0.72rem;
  line-height: 1.15;
}

body.game-page.poker-game-page .seat-node .seat-badges {
  display: none !important;
}

body.game-page.poker-game-page .seat-node .seat-cards {
  justify-content: center;
  gap: 4px;
  min-height: 42px;
}

body.game-page.poker-game-page .seat-node .pv-card.small {
  width: 28px;
  height: 40px;
  border-radius: 9px;
}

body.game-page.poker-game-page .seat-ring.layout-9 .seat-node {
  width: clamp(112px, 8.2vw, 142px);
}

body.game-page.poker-game-page .seat-ring.layout-9 .seat-node.is-me {
  width: clamp(144px, 10vw, 176px);
}

body.game-page.poker-game-page .seat-turnbar {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

body.game-page.poker-game-page .seat-turnbar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

body.game-page.poker-game-page .seat-turnbar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #25d366 0%, #ffd44d 55%, #ef4444 100%);
  box-shadow: 0 0 12px rgba(255,212,77,.3);
}

body.game-page.poker-game-page .seat-turnbar-label {
  font-size: 0.64rem;
  color: #ffd48a;
  justify-self: end;
  line-height: 1;
}

body.game-page.poker-game-page .seat-pucks {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 4;
}

body.game-page.poker-game-page .seat-puck {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.64rem;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #07111f;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 12px rgba(0,0,0,.28);
}

body.game-page.poker-game-page .seat-puck.dealer {
  background: linear-gradient(135deg, #f9f3c5, #f3c556);
}

body.game-page.poker-game-page .seat-puck.blind {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
}

body.game-page.poker-game-page .seat-puck.blind.strong {
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
}

body.game-page.poker-game-page .your-seat-panel {
  display: grid !important;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5,11,22,.92), rgba(9,16,30,.96));
}

body.game-page.poker-game-page .modern-hand {
  justify-content: center;
  min-height: 130px;
  gap: 12px;
}

body.game-page.poker-game-page .poker-side-stack {
  position: static;
  top: auto;
  height: auto;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  overflow: visible;
}

body.game-page.poker-game-page .chat-surface,
body.game-page.poker-game-page .table-tools-panel {
  min-height: 270px;
}

body.game-page.poker-game-page .chat-messages {
  max-height: 220px;
  overflow: auto;
}

body.game-page.poker-game-page .mobile-table-dock {
  display: none;
}

body.needs-landscape {
  overflow: auto;
}

@media (max-width: 1200px) {
  body.game-page.poker-game-page .seat-ring.layout-9 .seat-node {
    width: clamp(102px, 7.4vw, 128px);
  }

  body.game-page.poker-game-page .poker-side-stack {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1040px) {
  body.game-page.poker-game-page .poker-side-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  body.game-page.poker-game-page,
  body.mobile-table-portrait,
  body.needs-landscape,
  body.allow-mobile-scroll {
    overflow: auto !important;
  }

  .orientation-guard {
    position: sticky;
    inset: auto;
    top: 0;
    display: block;
    padding: 10px;
    background: linear-gradient(180deg, rgba(2,7,15,.94), rgba(2,7,15,.72));
    backdrop-filter: blur(10px);
  }

  .orientation-card {
    width: min(100%, 580px);
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 18px;
    text-align: left;
  }

  .orientation-logo {
    margin: 0 0 10px;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  html,
  body,
  body.mobile-table-fixed {
    width: 100vw;
    height: 100dvh;
    overflow: hidden !important;
  }

  body.mobile-table-fixed .page-shell.poker-shell {
    width: 100vw;
    height: 100dvh;
    padding: 0;
  }

  body.mobile-table-fixed .poker-room-header {
    display: none !important;
  }

  body.mobile-table-fixed .game-grid.poker-grid {
    grid-template-columns: 1fr;
    gap: 0;
    height: 100dvh;
  }

  body.mobile-table-fixed .board-surface {
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    height: 100dvh;
  }

  body.mobile-table-fixed .poker-table-wrap {
    height: 100dvh;
  }

  body.mobile-table-fixed .board-top.compact-board-top {
    position: fixed;
    top: max(4px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    z-index: 70;
  }

  body.mobile-table-fixed .poker-table-oval {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  body.mobile-table-fixed .poker-table-oval::before {
    inset: 12% 5.75%;
  }

  body.mobile-table-fixed .table-status-panel {
    top: max(38px, calc(env(safe-area-inset-top) + 28px));
    width: min(88vw, 520px);
  }

  body.mobile-table-fixed .table-felt-logo {
    width: min(42vh, 44vw);
    height: min(42vh, 44vw);
    opacity: 0.14;
  }

  body.mobile-table-fixed .board-center-cluster {
    width: min(60vw, 400px);
    gap: 6px;
  }

  body.mobile-table-fixed .community-row .pv-card {
    width: 46px;
    height: 68px;
  }

  body.mobile-table-fixed .poker-actions {
    position: fixed;
    left: 50%;
    bottom: max(54px, calc(env(safe-area-inset-bottom) + 42px));
    transform: translateX(-50%);
    width: min(94vw, 640px);
    z-index: 75;
  }

  body.mobile-table-fixed .your-seat-panel {
    display: none !important;
  }

  body.mobile-table-fixed .seat-node {
    width: min(80px, 12.5vw);
    min-height: 62px;
    padding: 4px 5px 14px;
    border-radius: 14px;
  }

  body.mobile-table-fixed .seat-node.is-me {
    width: min(98px, 15vw);
  }

  body.mobile-table-fixed .seat-node .avatar-md,
  body.mobile-table-fixed .seat-node .chat-avatar {
    width: 20px;
    height: 20px;
  }

  body.mobile-table-fixed .seat-node .seat-name {
    font-size: 0.62rem;
  }

  body.mobile-table-fixed .seat-node .seat-stack,
  body.mobile-table-fixed .seat-node .seat-footer {
    font-size: 0.52rem;
  }

  body.mobile-table-fixed .seat-turnbar {
    gap: 2px;
  }

  body.mobile-table-fixed .seat-turnbar-track {
    height: 4px;
  }

  body.mobile-table-fixed .seat-turnbar-label {
    font-size: 0.5rem;
  }

  body.mobile-table-fixed .seat-node .pv-card.small {
    width: 18px;
    height: 26px;
  }

  body.mobile-table-fixed .seat-pucks {
    bottom: -12px;
  }

  body.mobile-table-fixed .seat-puck {
    min-width: 20px;
    height: 20px;
    font-size: 0.52rem;
    padding: 0 5px;
  }

  body.mobile-table-fixed .poker-side-stack {
    top: 8px;
    right: 8px;
    bottom: 54px;
    width: min(300px, calc(100vw - 16px));
    max-height: calc(100dvh - 62px);
  }

  body.mobile-table-fixed .mobile-table-dock {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: max(4px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 90;
  }

  body.mobile-table-fixed .rooms-floating-dock {
    right: 6px;
    bottom: 54px;
    z-index: 76;
  }
}

/* mobile poker view override */
@media (max-width: 900px) {
  html,
  body,
  body.game-page.poker-game-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  body.game-page.poker-game-page .rooms-floating-dock {
    display: block !important;
  }
}

/* --- Final app-style lobby polish ----------------------------------------- */
.pv-lobby-shell .pv-app-hero {
  gap: 16px;
}

.pv-lobby-shell .pv-entry-surface,
.pv-lobby-shell .section-block {
  overflow: hidden;
}

.pv-lobby-shell .pv-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pv-lobby-shell .pv-entry-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(245,194,84,.12);
  background: linear-gradient(180deg, rgba(7,13,24,.84), rgba(10,18,34,.96));
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.pv-lobby-shell .pv-entry-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.pv-lobby-shell .pv-entry-card p {
  margin: 0;
  color: var(--muted);
}

.pv-lobby-shell .pv-entry-card .btn {
  width: 100%;
  justify-content: center;
}

.pv-lobby-shell .pv-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.pv-lobby-shell .pv-entry-card-alt {
  align-content: space-between;
}

.pv-lobby-shell .pv-myrooms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pv-lobby-shell .pv-myroom-pill {
  display: inline-grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(245,194,84,.12);
  background: rgba(7,13,24,.8);
  text-decoration: none;
  color: inherit;
}

.pv-lobby-shell .pv-myroom-pill strong {
  font-size: 1rem;
}

.pv-lobby-shell .app-panel-head {
  align-items: flex-start;
}

@media (max-width: 980px) {
  .pv-lobby-shell .pv-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pv-lobby-shell .pv-entry-grid {
    grid-template-columns: 1fr;
  }

  .pv-lobby-shell .pv-entry-card {
    padding: 16px;
    border-radius: 20px;
  }

  .pv-lobby-shell .pv-myrooms-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* === PokerVIP V1 floating active tables === */
.rooms-floating-dock {
  z-index: 1700;
  transition: box-shadow .18s ease, transform .18s ease;
}

.rooms-floating-dock.is-draggable {
  will-change: transform, left, top;
}

.rooms-floating-dock.is-dragging {
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 18px 36px rgba(0,0,0,.28);
}

.rooms-floating-head {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.rooms-floating-head:active {
  cursor: grabbing;
}

.rooms-floating-dock[data-positioned="1"] {
  right: auto !important;
  bottom: auto !important;
}

@media (max-width: 900px) {
  .rooms-floating-dock {
    max-width: min(172px, calc(100vw - 18px));
    min-width: 118px;
    border-radius: 20px;
  }

  .rooms-floating-head {
    padding: 8px 10px;
    gap: 6px;
  }

  .rooms-floating-label {
    font-size: .72rem;
  }

  .room-fab {
    min-height: 40px;
    border-radius: 14px;
  }

  .room-fab-code {
    font-size: .84rem;
  }

  .room-fab-count {
    font-size: .68rem;
  }
}


/* --- Hotfix V1.0.1: login mobile priority + shared nick ------------------ */
body.login-page {
  overflow-x: hidden;
}

.login-nick-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(6, 12, 24, 0.72);
}

.login-nick-box label {
  font-weight: 700;
}

.login-nick-note {
  font-size: 0.85rem;
}

@media (max-width: 1120px) {
  .login-shell {
    min-height: 100dvh;
    place-items: start stretch;
    padding: max(12px, env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom));
  }

  .login-card.modern-login-card {
    width: 100%;
    margin: 0;
  }

  .login-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .login-side,
  .login-panel {
    padding: 18px;
  }

  .login-copy-block {
    margin-top: 14px;
  }

  .brand-lockup-top {
    align-items: flex-start;
  }

  .brand-copy h1 {
    font-size: 1.45rem;
  }

  .login-nick-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .login-actions-stack {
    gap: 14px;
  }

  .google-btn-mount {
    min-height: 52px;
  }
}


/* --- Hotfix V1.0.2: login mobile safe viewport + field visibility ------- */
body.login-page {
  min-height: 100dvh;
}

body.login-page .login-shell {
  min-height: 100dvh;
}

body.login-page .login-nick-box .input {
  min-height: 50px;
  font-size: 16px;
}

@media (max-width: 860px) {
  body.login-page .login-shell {
    display: block;
  }

  body.login-page .login-card.modern-login-card {
    width: 100%;
    overflow: visible;
  }

  body.login-page .feature-grid {
    grid-template-columns: 1fr;
  }

  body.login-page .login-side,
  body.login-page .login-panel {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  body.login-page .login-shell {
    padding: max(10px, env(safe-area-inset-top)) 10px calc(14px + env(safe-area-inset-bottom));
  }

  body.login-page .login-side,
  body.login-page .login-panel {
    padding: 16px;
  }

  body.login-page .brand-logo-hero {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }
}


/* --- Hotfix V1.0.3: login mobile access + compact hero ------------------ */
.login-panel-compact-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.login-panel-compact-brand .brand-logo-hero.compact {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  flex: 0 0 auto;
}

.login-panel-compact-brand .brand-copy h1 {
  font-size: 1.35rem;
}

.login-panel-compact-brand .brand-copy p {
  font-size: 0.94rem;
  line-height: 1.35;
}

.login-primary-access {
  margin-top: 0;
  gap: 14px;
}

.login-access-head {
  display: grid;
  gap: 6px;
}

.login-access-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.login-access-note {
  line-height: 1.45;
}

.login-pin-row {
  display: grid;
  gap: 8px;
}

.login-enter-btn {
  min-height: 52px;
}

.login-unavailable-note {
  margin-top: 0;
}

@media (max-width: 700px) {
  body.login-page .login-card.modern-login-card {
    grid-template-columns: 1fr;
  }

  body.login-page .login-side {
    display: none;
  }

  body.login-page .login-panel-compact-brand {
    display: flex;
  }

  body.login-page .login-panel {
    order: 0;
  }
}

@media (max-width: 520px) {
  body.login-page .login-panel-compact-brand {
    margin-bottom: 14px;
  }

  body.login-page .login-panel-compact-brand .brand-logo-hero.compact {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  body.login-page .login-panel-compact-brand .brand-copy h1 {
    font-size: 1.18rem;
  }

  body.login-page .login-panel-compact-brand .brand-copy p {
    font-size: 0.86rem;
  }

  body.login-page .login-nick-box,
  body.login-page .login-primary-access,
  body.login-page .gsi-box,
  body.login-page .flash {
    border-radius: 18px;
  }

  body.login-page .login-primary-access {
    padding: 14px;
  }

  body.login-page .login-enter-btn {
    min-height: 54px;
    font-size: 1rem;
  }
}

/* === PokerVIP V1.5 premium login + promo modal ========================= */
body.premium-login-page {
  min-height: 100dvh;
  background: radial-gradient(circle at top, rgba(240,191,88,.12), transparent 28%), linear-gradient(180deg, #050914 0%, #08111f 46%, #04070e 100%);
}

body.premium-login-page.app-launch-modal-open {
  overflow: hidden;
}

.premium-login-shell {
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(18px, 3vw, 28px);
}

.premium-login-card {
  width: min(1120px, 100%);
  min-height: calc(100dvh - clamp(36px, 6vw, 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(8,14,25,.96), rgba(5,9,17,.985));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 64px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.04);
}

.premium-login-side {
  position: relative;
  min-height: 100%;
  display: grid;
  align-content: end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(5,8,15,.2), rgba(5,8,15,.55));
}

.premium-login-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--login-promo-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.05) contrast(1.02);
  opacity: .28;
}

.premium-login-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,16,.14) 0%, rgba(8,12,20,.25) 26%, rgba(6,10,18,.88) 100%);
}

.login-promo-media,
.login-promo-copy {
  position: relative;
  z-index: 1;
}

.login-promo-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.login-promo-media img {
  width: min(100%, 460px);
  max-height: min(76dvh, 920px);
  object-fit: contain;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.42));
}

.login-promo-copy {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(8,13,22,.64), rgba(7,11,19,.84));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.login-promo-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  color: var(--text);
}

.login-promo-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.premium-login-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.premium-login-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  min-height: 0;
}

.premium-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.premium-login-nick-box,
.premium-login-primary-access,
.premium-login-actions .gsi-box {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6,11,19,.74), rgba(4,8,15,.92));
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 18px 38px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.03);
}

.premium-login-nick-box label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.premium-login-nick-box .input,
.premium-login-primary-access .input {
  min-height: 56px;
  border-radius: 18px;
}

.premium-login-actions {
  display: grid;
  gap: 16px;
}

.login-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
  letter-spacing: .02em;
}

.login-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(255,255,255,.07);
}

.login-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: linear-gradient(180deg, #08111f, #07101d);
}

.premium-login-primary-access {
  display: grid;
  gap: 16px;
}

.login-cta-row-sticky {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding-top: 6px;
  background: linear-gradient(180deg, rgba(8,12,20,0), rgba(8,12,20,.92) 42%, rgba(8,12,20,.98) 100%);
}

.login-enter-btn {
  min-height: 58px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.premium-login-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.app-launch-modal[hidden] {
  display: none !important;
}

.app-launch-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5,8,14,.82);
  backdrop-filter: blur(16px);
  z-index: 4600;
}

.app-launch-modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10,15,25,.985), rgba(7,11,19,.995));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 34px 72px rgba(0,0,0,.44);
}

.app-launch-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,11,19,.72);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0,0,0,.26);
}

.app-launch-modal-media {
  position: relative;
  aspect-ratio: 9 / 16;
  min-height: 0;
  overflow: hidden;
}

.app-launch-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-launch-modal-copy {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.app-launch-modal-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.02;
}

.app-launch-modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .premium-login-shell {
    padding: 0;
  }

  .premium-login-card {
    min-height: 100dvh;
    border-radius: 0;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .premium-login-side {
    min-height: min(40dvh, 420px);
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .login-promo-media {
    align-items: center;
  }

  .login-promo-media img {
    width: min(100%, 360px);
    max-height: 36dvh;
  }

  .login-promo-copy {
    margin-top: 12px;
    padding: 14px;
    gap: 10px;
  }

  .login-promo-copy h1 {
    font-size: clamp(1.5rem, 7vw, 2.4rem);
  }

  .premium-login-panel {
    position: relative;
    gap: 14px;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    overflow: auto;
  }
}

@media (max-width: 680px) {
  .premium-login-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .premium-login-side {
    min-height: min(34dvh, 340px);
    padding: 12px;
  }

  .login-promo-copy {
    display: none;
  }

  .premium-login-panel {
    padding-top: 14px;
  }

  .premium-login-nick-box,
  .premium-login-primary-access,
  .premium-login-actions .gsi-box {
    padding: 16px;
    border-radius: 22px;
  }

  .app-launch-modal {
    padding: 10px;
  }

  .app-launch-modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
  }
}

@media (max-width: 680px) and (max-height: 760px) {
  .premium-login-side {
    min-height: min(28dvh, 260px);
  }

  .premium-login-panel {
    gap: 12px;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
  }

  .premium-login-nick-box,
  .premium-login-primary-access,
  .premium-login-actions .gsi-box {
    padding: 14px;
    border-radius: 20px;
  }

  .premium-login-nick-box .input,
  .premium-login-primary-access .input,
  .login-enter-btn {
    min-height: 52px;
  }

  .premium-login-footnote {
    gap: 8px;
  }
}

/* === V1.11 mobile-native shell === */
:root {
  --app-shell-bottom: calc(92px + env(safe-area-inset-bottom));
  --app-shell-top: calc(12px + env(safe-area-inset-top));
}

.mobile-tabbar.app-native-tabbar {
  display: none;
}

.mobile-tabbar.app-native-tabbar .mobile-tab {
  appearance: none;
  border: 0;
  background: none;
}

.mobile-tabbar.app-native-tabbar .mobile-tab-iconic,
.mobile-tabbar.app-native-tabbar .mobile-tab-fab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 16px;
  color: rgba(231, 239, 255, 0.72);
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.mobile-tabbar.app-native-tabbar .mobile-tab-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-tabbar.app-native-tabbar .mobile-tab-icon svg {
  width: 20px;
  height: 20px;
}

.mobile-tabbar.app-native-tabbar .mobile-tab-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: .68rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-tabbar.app-native-tabbar .mobile-tab-iconic.active {
  color: #f8fbff;
  background: linear-gradient(180deg, rgba(17, 27, 45, .98), rgba(8, 13, 23, .98));
  border: 1px solid rgba(244, 198, 91, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 24px rgba(0,0,0,.22);
}

.mobile-tabbar.app-native-tabbar .mobile-tab-fab {
  min-height: 64px;
  background: linear-gradient(180deg, rgba(244, 198, 91, .42), rgba(117, 71, 19, .34));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff7db;
}

.mobile-tabbar.app-native-tabbar .mobile-tab-fab.active {
  box-shadow: 0 0 0 1px rgba(244,198,91,.16), 0 16px 30px rgba(0,0,0,.3), 0 0 26px rgba(244,198,91,.18);
}

.mobile-tabbar.app-native-tabbar .mobile-tab-plus {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

body.mobile-more-sheet-open {
  overflow: hidden;
}

.mobile-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  background: rgba(4, 8, 14, .76);
  backdrop-filter: blur(16px);
}

.mobile-more-sheet.is-open {
  display: flex;
}

.mobile-more-sheet-card {
  width: min(100%, 480px);
  padding: 18px;
  border-radius: 26px;
}

.mobile-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.mobile-more-head strong {
  display: block;
  font-size: 1.08rem;
}

.mobile-more-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
}

.mobile-more-grid {
  display: grid;
  gap: 10px;
}

.mobile-more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8, 13, 22, .8);
  color: var(--text);
}

.mobile-more-item.active {
  border-color: rgba(244, 198, 91, .28);
  background: linear-gradient(180deg, rgba(18, 28, 44, .98), rgba(10, 15, 25, .98));
}

.mobile-more-item-exit {
  border-color: rgba(255, 107, 125, .18);
}

.mobile-more-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.mobile-more-icon svg {
  width: 20px;
  height: 20px;
}

.mobile-more-copy {
  display: grid;
  gap: 2px;
}

.mobile-more-copy strong {
  font-size: .95rem;
}

@media (max-width: 860px) {
  body:not(.game-page) {
    padding-bottom: var(--app-shell-bottom);
  }

  body:not(.game-page) .page-shell-app {
    width: 100%;
    max-width: none;
    padding: var(--app-shell-top) 12px calc(var(--app-shell-bottom) + 8px);
  }

  body:not(.game-page) .surface {
    border-radius: 24px;
  }

  body:not(.game-page) .hero-banner,
  body:not(.game-page) .panel-head {
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  body:not(.game-page) .section-block,
  body:not(.game-page) .link-card,
  body:not(.game-page) .info-card,
  body:not(.game-page) .stat-card,
  body:not(.game-page) .panel-card,
  body:not(.game-page) .room-card,
  body:not(.game-page) .market-card-body,
  body:not(.game-page) .owned-deck-card,
  body:not(.game-page) .empty-state-card {
    padding: 16px;
  }

  body:not(.game-page) .brand-lockup {
    align-items: flex-start;
    gap: 12px;
  }

  body:not(.game-page) .brand-logo,
  body:not(.game-page) .hero-brand {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  body:not(.game-page) .brand-copy h1,
  body:not(.game-page) .section-title,
  body:not(.game-page) .panel-title,
  body:not(.game-page) .card-title {
    font-size: clamp(1.12rem, 5.2vw, 1.55rem);
  }

  body:not(.game-page) .hero-actions {
    width: 100%;
    gap: 8px;
  }

  body:not(.game-page) .hero-actions .pill,
  body:not(.game-page) .badge,
  body:not(.game-page) .mini-chip {
    font-size: .78rem;
    padding: 7px 10px;
  }

  body:not(.game-page) .hero-split,
  body:not(.game-page) .top-grid,
  body:not(.game-page) .grid-2,
  body:not(.game-page) .grid-3,
  body:not(.game-page) .stats-grid,
  body:not(.game-page) .link-grid,
  body:not(.game-page) .rooms-grid,
  body:not(.game-page) .market-grid,
  body:not(.game-page) .owned-decks-grid,
  body:not(.game-page) .bottom-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.game-page) .deck-preview-image,
  body:not(.game-page) .market-card-media img,
  body:not(.game-page) .owned-deck-card img {
    border-radius: 18px;
  }

  body:not(.game-page) .page-shell .footer-line,
  body:not(.game-page) .footer-line {
    padding-bottom: 10px;
  }

  .mobile-tabbar.app-native-tabbar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 72;
    display: grid;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr 1fr;
    gap: 8px;
    padding: 9px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(7, 11, 18, .96), rgba(4, 7, 12, .985));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 36px rgba(0,0,0,.42);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar.app-native-tabbar .mobile-tab {
    min-width: 0;
  }

  body:not(.game-page) .rooms-floating-dock:not([data-positioned="1"]) {
    right: 10px !important;
    left: auto !important;
    bottom: calc(var(--app-shell-bottom) + 10px) !important;
    top: auto !important;
  }
}

@media (max-width: 560px) {
  .mobile-tabbar.app-native-tabbar {
    grid-template-columns: 1fr 1fr 60px 1fr 1fr 1fr;
    gap: 6px;
    padding: 8px;
    border-radius: 20px;
  }

  .mobile-tabbar.app-native-tabbar .mobile-tab-iconic,
  .mobile-tabbar.app-native-tabbar .mobile-tab-fab {
    min-height: 54px;
    padding: 7px 4px;
  }

  .mobile-tabbar.app-native-tabbar .mobile-tab-fab {
    min-height: 60px;
  }

  .mobile-tabbar.app-native-tabbar .mobile-tab-label {
    font-size: .62rem;
  }

  .mobile-more-sheet-card {
    padding: 16px;
    border-radius: 24px;
  }
}

/* === PokerVIP V1.12 native lobby shell + app presets === */
body[data-app-preset="gg"] {
  --app-preset-accent: rgba(34, 211, 238, 0.18);
  --app-preset-accent-strong: #2dd4bf;
  --app-preset-card: linear-gradient(180deg, rgba(7, 17, 30, 0.92), rgba(8, 21, 34, 0.98));
  --app-preset-border: rgba(56, 189, 248, 0.14);
}

body[data-app-preset="stars"] {
  --app-preset-accent: rgba(96, 165, 250, 0.15);
  --app-preset-accent-strong: #60a5fa;
  --app-preset-card: linear-gradient(180deg, rgba(11, 18, 29, 0.96), rgba(12, 19, 31, 0.98));
  --app-preset-border: rgba(148, 163, 184, 0.15);
}

body[data-app-preset="vip"] {
  --app-preset-accent: rgba(245, 194, 84, 0.16);
  --app-preset-accent-strong: #f5c254;
  --app-preset-card: linear-gradient(180deg, rgba(11, 16, 28, 0.94), rgba(12, 18, 30, 0.98));
  --app-preset-border: rgba(245, 194, 84, 0.18);
}

body[data-app-preset] .surface,
body[data-app-preset] .room-card,
body[data-app-preset] .link-card,
body[data-app-preset] .market-card,
body[data-app-preset] .info-card,
body[data-app-preset] .stat-card,
body[data-app-preset] .panel-card {
  background: var(--app-preset-card, linear-gradient(180deg, rgba(9, 16, 30, 0.92), rgba(14, 22, 38, 0.95)));
  border-color: var(--app-preset-border, rgba(255,255,255,0.08));
}

body[data-app-preset] .top-nav,
body[data-app-preset] .mobile-tabbar.app-native-tabbar,
body[data-app-preset] .mobile-more-sheet-card,
body[data-app-preset] .rooms-floating-dock {
  border-color: var(--app-preset-border, rgba(255,255,255,0.08));
  box-shadow: 0 18px 42px rgba(1, 7, 18, 0.52), 0 0 0 1px rgba(255,255,255,0.02), 0 0 0 1px var(--app-preset-accent, transparent);
}

body[data-app-preset] .btn.primary,
body[data-app-preset] .mobile-tabbar.app-native-tabbar .mobile-tab-fab,
body[data-app-preset] .mobile-tabbar.app-native-tabbar .mobile-tab-fab.active {
  box-shadow: 0 14px 30px rgba(1, 7, 18, 0.45), 0 0 0 1px rgba(255,255,255,0.04), 0 0 18px var(--app-preset-accent, transparent);
}

body[data-app-preset="stars"] .btn.primary,
body[data-app-preset="stars"] .mobile-tabbar.app-native-tabbar .mobile-tab-fab,
body[data-app-preset="stars"] .mobile-tabbar.app-native-tabbar .mobile-tab-fab.active {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
}

body[data-app-preset="vip"] .btn.primary,
body[data-app-preset="vip"] .mobile-tabbar.app-native-tabbar .mobile-tab-fab,
body[data-app-preset="vip"] .mobile-tabbar.app-native-tabbar .mobile-tab-fab.active {
  background: linear-gradient(135deg, #f5c254, #f59e0b);
  color: #08101f;
}

.top-nav-presets,
.app-preset-toolbar,
.mobile-more-presets-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav-preset,
.mobile-preset-pill,
.native-segment,
.native-filter-chip {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 13, 25, 0.82);
  color: var(--muted);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease;
}

.top-nav-preset,
.mobile-preset-pill {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.top-nav-preset.is-active,
.mobile-preset-pill.is-active,
.native-segment.is-active,
.native-filter-chip.is-active {
  color: #07101f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  transform: translateY(-1px);
}

body[data-app-preset="stars"] .top-nav-preset.is-active,
body[data-app-preset="stars"] .mobile-preset-pill.is-active,
body[data-app-preset="stars"] .native-segment.is-active,
body[data-app-preset="stars"] .native-filter-chip.is-active {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
}

body[data-app-preset="vip"] .top-nav-preset.is-active,
body[data-app-preset="vip"] .mobile-preset-pill.is-active,
body[data-app-preset="vip"] .native-segment.is-active,
body[data-app-preset="vip"] .native-filter-chip.is-active {
  background: linear-gradient(135deg, #f5c254, #f59e0b);
}

.top-nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-more-presets {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-more-presets-label,
.native-toolbar-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.app-native-shell {
  max-width: 1440px;
}

.native-lobby-hero {
  display: grid;
  gap: 18px;
}

.brand-mark-vip {
  width: 74px;
  height: 74px;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 13, 24, 0.98));
  border: 1px solid rgba(245, 194, 84, 0.24);
  box-shadow: 0 18px 48px rgba(245, 193, 90, 0.16), inset 0 1px 0 rgba(255,255,255,0.04);
}

.brand-mark-vip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.native-lobby-hero-copy {
  gap: 8px;
}

.brand-wordmark {
  width: min(360px, 52vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.24));
}

.native-lobby-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.native-lobby-kicker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 194, 84, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #f5d690;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.native-vip-blurb {
  max-width: 56ch;
}

.native-lobby-hero-lockup {
  align-items: center;
}

.native-lobby-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.native-preset-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.native-lobby-browser {
  margin-top: 18px;
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.native-browser-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.native-browser-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.native-format-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.native-format-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--app-preset-border, rgba(255,255,255,0.08));
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.88), rgba(10, 18, 34, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.native-format-card strong {
  font-size: 1.04rem;
}

.native-format-card p,
.native-format-card span {
  margin: 0;
}

.native-format-card p {
  color: var(--muted);
}

.native-format-topline,
.native-format-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.native-format-metrics {
  font-size: 0.82rem;
  color: var(--muted);
}

.native-format-card-alt {
  align-content: space-between;
  text-decoration: none;
  color: inherit;
}

.native-browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.native-segmented,
.native-chip-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.native-segment {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.native-filter-chip {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.native-browser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.native-browser-main {
  min-width: 0;
}

.native-browser-tablehead,
.native-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) .8fr .7fr .7fr minmax(0, 1.1fr) auto;
  gap: 12px;
  align-items: center;
}

.native-browser-tablehead {
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.native-browser-tablehead .right {
  text-align: right;
}

.native-room-list {
  display: grid;
  gap: 10px;
}

.native-room-row {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(6, 12, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.native-room-row:hover,
.native-room-row:focus-visible,
.native-room-row.is-selected {
  border-color: var(--app-preset-border, rgba(245,194,84,.28));
  box-shadow: 0 18px 34px rgba(1, 7, 18, 0.28), 0 0 0 1px rgba(255,255,255,0.02), 0 0 0 1px var(--app-preset-accent, transparent);
  transform: translateY(-1px);
  outline: none;
}

.native-room-cell {
  display: grid;
  gap: 4px;
}

.native-room-cell strong,
.native-room-copy strong {
  font-size: 0.98rem;
}

.native-room-cell span,
.native-room-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.native-room-cell-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.native-room-avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.92rem;
  color: #f5c254;
  border: 1px solid rgba(245, 194, 84, 0.22);
  background: radial-gradient(circle at top, rgba(22, 38, 62, 0.96), rgba(6, 12, 24, 0.88));
}

.native-room-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.native-room-cell-status {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.status-dot-open { background: #22c55e; }
.status-dot-live { background: #22d3ee; }
.status-dot-mine { background: #f5c254; }
.status-dot-full { background: #f97316; }

.native-browser-detail {
  display: grid;
  gap: 16px;
  padding: 22px;
  position: sticky;
  top: 88px;
  border-radius: 28px;
}

.native-detail-head {
  display: grid;
  gap: 8px;
}

.native-detail-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.native-detail-head p,
.native-detail-copy {
  margin: 0;
  color: var(--muted);
}

.native-detail-stats,
.mobile-native-sheet-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.native-detail-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 15, 29, 0.82);
  border: 1px solid rgba(255,255,255,0.06);
}

.native-detail-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.native-detail-stat strong {
  font-size: 0.98rem;
}

.native-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.native-detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.native-myroom-grid {
  gap: 12px;
}

.native-myroom-pill {
  min-width: 180px;
  border-color: var(--app-preset-border, rgba(255,255,255,0.08));
}

.mobile-native-sheet {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 7, 16, 0.58);
  backdrop-filter: blur(10px);
}

.mobile-native-sheet.is-open {
  display: flex;
}

.mobile-native-sheet-card {
  width: min(100%, 560px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--app-preset-border, rgba(255,255,255,0.08));
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.98), rgba(10, 18, 34, 1));
  box-shadow: 0 24px 54px rgba(1, 7, 18, 0.6);
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.mobile-native-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mobile-native-sheet-head h3,
.mobile-native-sheet-head p {
  margin: 0;
}

#nativeDetailBadge.is-open,
#nativeLobbySheetBadge.is-open,
.badge.is-open { box-shadow: 0 0 0 1px rgba(34,197,94,.15); }
#nativeDetailBadge.is-live,
#nativeLobbySheetBadge.is-live { background: rgba(34, 211, 238, 0.16); color: #8be8ff; }
#nativeDetailBadge.is-mine,
#nativeLobbySheetBadge.is-mine { background: rgba(245, 194, 84, 0.18); color: #f8d983; }
#nativeDetailBadge.is-full,
#nativeLobbySheetBadge.is-full { background: rgba(249, 115, 22, 0.16); color: #fdba74; }
#nativeDetailBadge.is-open,
#nativeLobbySheetBadge.is-open { background: rgba(34, 197, 94, 0.16); color: #86efac; }

.mobile-native-sheet-open {
  overflow: hidden;
}

.native-browser-summary .mini-chip {
  border-color: rgba(245, 194, 84, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.native-format-card {
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.92), rgba(12, 19, 31, 0.98));
}

.native-format-card strong,
.native-detail-head h3,
.native-room-copy strong,
.native-room-cell strong {
  letter-spacing: 0.01em;
}

.native-room-row {
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.82), rgba(6, 11, 20, 0.76));
}

.native-room-avatar {
  background: radial-gradient(circle at top, rgba(28, 43, 66, 0.98), rgba(8, 13, 24, 0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.native-browser-detail {
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.96), rgba(11, 18, 30, 0.98));
  border: 1px solid rgba(245, 194, 84, 0.14);
  box-shadow: 0 24px 54px rgba(1, 7, 18, 0.52), inset 0 1px 0 rgba(255,255,255,0.03);
}

.push-optin-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1960;
  width: min(920px, calc(100% - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(245, 194, 84, 0.18);
  background: linear-gradient(180deg, rgba(9, 15, 24, 0.96), rgba(12, 19, 31, 0.98));
  box-shadow: 0 24px 54px rgba(1, 7, 18, 0.62), 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
}

.push-optin-copy {
  display: grid;
  gap: 6px;
}

.push-optin-copy strong {
  font-size: 1.04rem;
}

.push-optin-copy p {
  margin: 0;
  color: var(--muted);
}

.push-optin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

body.push-optin-visible:not(.game-page) .rooms-floating-dock:not([data-positioned="1"]) {
  bottom: calc(var(--app-shell-bottom, 0px) + 128px) !important;
}

@media (max-width: 1220px) {
  .native-format-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .native-browser-layout {
    grid-template-columns: 1fr 320px;
  }

  .top-nav-presets {
    display: none;
  }
}

@media (max-width: 980px) {
  body:not(.game-page) .page-shell-app {
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }

  body:not(.game-page) .surface,
  body:not(.game-page) .section-block {
    border-radius: 24px;
  }

  .native-lobby-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .native-preset-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .native-format-rail {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-inline: -4px;
    padding-inline: 4px;
    scroll-snap-type: x proximity;
  }

  .native-format-rail::-webkit-scrollbar {
    display: none;
  }

  .native-format-card {
    min-width: min(82vw, 290px);
    scroll-snap-align: start;
  }

  .native-browser-head,
  .native-browser-toolbar {
    display: grid;
  }

  .native-browser-layout {
    grid-template-columns: 1fr;
  }

  .native-browser-detail,
  .native-browser-tablehead {
    display: none;
  }

  .native-room-list {
    gap: 12px;
  }

  .native-room-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
  }

  .native-room-cell {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .native-room-cell-main,
  .native-room-cell-status {
    grid-template-columns: auto 1fr;
  }

  .native-room-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch;
  }

  .native-room-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .native-room-copy strong {
    font-size: 1.06rem;
  }
}

@media (max-width: 640px) {
  .native-lobby-hero-lockup {
    grid-template-columns: 1fr;
  }

  .native-lobby-hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .native-segmented,
  .native-chip-row,
  .mobile-more-presets-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .native-segmented-tight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .native-segment,
  .native-filter-chip,
  .mobile-preset-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .native-detail-stats,
  .mobile-native-sheet-stats,
  .native-detail-actions {
    grid-template-columns: 1fr;
  }

  .mobile-native-sheet {
    padding: 8px;
  }
}


@media (max-width: 980px) {
  .push-optin-banner {
    bottom: calc(var(--app-shell-bottom, 0px) + 12px);
    width: min(100%, calc(100% - 18px));
  }
}

@media (max-width: 640px) {
  .brand-wordmark {
    width: min(280px, 72vw);
  }

  .native-lobby-kicker {
    gap: 6px;
  }

  .push-optin-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .push-optin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .push-optin-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === V1.13 production minimal ========================================= */
body.app-page-minimal .copy-optional,
body.app-page-minimal .native-detail-copy:empty,
body.app-page-minimal .login-nick-note:empty,
body.app-page-minimal .login-access-note:empty,
body.app-page-minimal .mobile-more-head span:empty,
body.app-page-minimal .brand-copy p:empty,
body.app-page-minimal .card-copy:empty,
body.app-page-minimal .legal-note:empty,
body.app-page-minimal .native-format-card p:empty,
body.app-page-minimal .native-room-cell span:empty,
body.app-page-minimal .native-room-copy span:empty,
body.app-page-minimal .premium-login-footnote:empty,
body.app-page-minimal .table-menu-warning p:empty,
body.app-page-minimal .ux-preset-field .small-text:empty {
  display: none !important;
}

body.app-page-minimal .hero-banner,
body.app-page-minimal .panel-head {
  padding: 18px 20px;
}

body.app-page-minimal .section-block {
  padding: 20px;
}

body.app-page-minimal .brand-copy,
body.app-page-minimal .hero-copy {
  gap: 2px;
}

body.app-page-minimal .hero-actions {
  gap: 8px;
}

body.app-page-minimal .hero-split,
body.app-page-minimal .top-grid,
body.app-page-minimal .link-grid,
body.app-page-minimal .stats-grid {
  gap: 14px;
}

body.app-page-minimal .badge-row {
  gap: 8px;
}

body.app-page-minimal .footer-line {
  display: none;
}

body.app-page-minimal .native-browser-head {
  align-items: center;
}

body.app-page-minimal .native-browser-summary {
  gap: 6px;
}

body.app-page-minimal .native-room-row {
  padding: 12px 14px;
}

body.app-page-minimal .native-browser-detail {
  gap: 14px;
}

body.app-page-minimal .rooms-floating-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

body.app-page-minimal .mobile-more-head {
  margin-bottom: 10px;
}

body.app-page-minimal .mobile-more-presets-label {
  font-size: 0.78rem;
}

body.app-page-minimal .login-panel-compact-brand {
  margin-bottom: 12px;
}

body.app-page-minimal .login-promo-copy-minimal {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
}

body.app-page-minimal .login-primary-access {
  padding: 16px;
}

body.app-page-minimal .native-format-card,
body.app-page-minimal .link-card,
body.app-page-minimal .stat-card,
body.app-page-minimal .market-card,
body.app-page-minimal .owned-deck-card {
  box-shadow: none;
}

/* === V1.21 native mobile login splash + shell ============================ */
.app-mobile-launch-splash {
  display: none;
}

@keyframes appMobileLaunchProgress {
  0% { width: 10%; opacity: .84; }
  38% { width: 52%; opacity: 1; }
  72% { width: 84%; opacity: 1; }
  100% { width: 100%; opacity: 1; }
}

@media (max-width: 860px) {
  body.mobile-launch-active {
    overflow: hidden !important;
  }

  body.native-mobile-auth {
    min-height: 100dvh;
    background: #040811;
  }

  body.native-mobile-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
      linear-gradient(180deg, rgba(4,8,16,.08) 0%, rgba(4,8,16,.14) 22%, rgba(4,8,16,.42) 58%, rgba(4,8,16,.82) 100%),
      var(--login-mobile-image) center center / cover no-repeat;
  }

  body.native-mobile-auth::after {
    content: "";
    position: fixed;
    inset: auto 0 0 0;
    height: 34dvh;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4,8,16,0), rgba(4,8,16,.9));
  }

  .app-mobile-launch-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    align-content: end;
    padding: max(18px, env(safe-area-inset-top)) 18px calc(env(safe-area-inset-bottom) + 20px);
    background:
      linear-gradient(180deg, rgba(3,7,15,.04) 0%, rgba(3,7,15,.12) 32%, rgba(3,7,15,.38) 65%, rgba(3,7,15,.88) 100%),
      var(--app-splash-image) center center / cover no-repeat;
    transition: opacity .34s ease, visibility .34s ease;
  }

  .app-mobile-launch-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .app-mobile-launch-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(255,255,255,.06), transparent 28%);
    pointer-events: none;
  }

  .app-mobile-launch-footer {
    position: relative;
    display: grid;
    gap: 8px;
    align-items: end;
  }

  .app-mobile-launch-progress {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  }

  .app-mobile-launch-progress span {
    display: block;
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #34d399, #f5c254);
    box-shadow: 0 0 18px rgba(96,165,250,.26);
    animation: appMobileLaunchProgress 1.25s ease-out forwards;
  }

  .app-mobile-launch-label {
    justify-self: center;
    color: rgba(245,248,255,.78);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
  }

  body.native-mobile-auth .premium-login-shell {
    min-height: 100dvh;
    padding: 0;
    display: grid;
    align-items: end;
  }

  body.native-mobile-auth .premium-login-card {
    width: 100%;
    min-height: 100dvh;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    align-items: end;
  }

  body.native-mobile-auth .premium-login-side {
    display: none !important;
  }

  body.native-mobile-auth .premium-login-panel {
    width: 100%;
    margin-top: auto;
    padding: 18px 18px calc(env(safe-area-inset-bottom) + 18px);
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(6,11,20,.54), rgba(5,9,18,.94));
    backdrop-filter: blur(20px);
    box-shadow: 0 -20px 48px rgba(0,0,0,.38);
    max-height: min(62dvh, 580px);
    overflow: auto;
  }

  body.native-mobile-auth .premium-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  body.native-mobile-auth .brand-logo.compact {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
  }

  body.native-mobile-auth .premium-login-brand .badge {
    font-size: .72rem;
    letter-spacing: .12em;
  }

  body.native-mobile-auth .premium-login-brand .section-title {
    font-size: clamp(1.24rem, 5.6vw, 1.58rem);
    line-height: 1.05;
  }

  body.native-mobile-auth .login-actions-stack,
  body.native-mobile-auth .premium-login-actions {
    gap: 12px;
  }

  body.native-mobile-auth .premium-login-nick-box,
  body.native-mobile-auth .premium-login-primary-access,
  body.native-mobile-auth .premium-login-actions .gsi-box {
    padding: 14px;
    border-radius: 20px;
    background: rgba(4, 9, 18, 0.68);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: none;
  }

  body.native-mobile-auth .premium-login-nick-box .input,
  body.native-mobile-auth .premium-login-primary-access .input {
    min-height: 52px;
    border-radius: 16px;
    font-size: 16px;
  }

  body.native-mobile-auth .login-cta-row-sticky {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom) + 2px);
    margin-top: 8px;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(4,8,16,0), rgba(4,8,16,.96) 42%);
  }

  body.native-mobile-auth .login-enter-btn {
    min-height: 54px;
    border-radius: 18px;
    font-size: .98rem;
    letter-spacing: .01em;
  }

  body.native-mobile-auth .flash {
    margin-bottom: 10px;
  }

  body.app-page-minimal:not(.game-page):not(.login-page) {
    background: #050913;
  }

  body.app-page-minimal:not(.game-page):not(.login-page) .page-shell-app {
    max-width: none;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(env(safe-area-inset-bottom) + 94px);
  }

  body.app-page-minimal:not(.game-page):not(.login-page) .surface,
  body.app-page-minimal:not(.game-page):not(.login-page) .section-block,
  body.app-page-minimal:not(.game-page):not(.login-page) .panel-card,
  body.app-page-minimal:not(.game-page):not(.login-page) .room-card,
  body.app-page-minimal:not(.game-page):not(.login-page) .market-card,
  body.app-page-minimal:not(.game-page):not(.login-page) .owned-deck-card {
    border-radius: 24px;
  }
}


/* === V1.3b mobile brand lock + native lobby polish ======================= */
body[data-app-preset-lock] .top-nav-presets,
body[data-app-preset-lock] .mobile-more-presets,
body[data-app-preset-lock] .native-preset-toolbar {
  display: none !important;
}

body[data-app-preset-lock] {
  --app-preset-accent: rgba(245, 194, 84, 0.16);
  --app-preset-accent-strong: #f5c254;
  --app-preset-card: linear-gradient(180deg, rgba(11, 16, 28, 0.94), rgba(12, 18, 30, 0.98));
  --app-preset-border: rgba(245, 194, 84, 0.18);
}

body.app-page-home[data-app-preset-lock],
body.app-page-lobby[data-app-preset-lock] {
  background-attachment: fixed;
}

.pv-home-shell,
.pv-lobby-shell {
  max-width: 1440px;
}

.brand-wordmark-bright {
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.28));
}

.native-home-hero,
.native-lobby-hero {
  position: relative;
  overflow: hidden;
}

.native-home-hero::before,
.native-lobby-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 220px at 50% 40%, rgba(245, 194, 84, 0.10), transparent 62%),
    radial-gradient(420px 220px at 18% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(460px 260px at 82% 22%, rgba(245, 194, 84, 0.12), transparent 62%);
  opacity: 0.95;
}

.native-home-hero > *,
.native-lobby-hero > * {
  position: relative;
  z-index: 1;
}

.native-home-hero-copy,
.native-lobby-hero-copy {
  gap: 10px;
}

.native-home-hero-actions,
.native-lobby-hero-actions {
  gap: 10px;
}

.native-home-hero-actions .pill,
.native-lobby-hero-actions .pill {
  min-height: 44px;
}

body.app-page-lobby[data-app-preset-lock] .native-browser-summary .mini-chip:nth-child(2) {
  background: rgba(245, 194, 84, 0.14);
  border-color: rgba(245, 194, 84, 0.24);
  color: #f7dc9a;
}

body.app-page-lobby[data-app-preset-lock] .native-room-row,
body.app-page-lobby[data-app-preset-lock] .native-format-card,
body.app-page-home[data-app-preset-lock] .stat-card,
body.app-page-home[data-app-preset-lock] .link-card,
body.app-page-home[data-app-preset-lock] .deck-spotlight {
  box-shadow: 0 18px 38px rgba(1, 7, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.app-page-lobby[data-app-preset-lock] .native-room-list,
body.app-page-lobby[data-app-preset-lock] .native-format-rail {
  scrollbar-width: none;
}

body.app-page-lobby[data-app-preset-lock] .native-room-list::-webkit-scrollbar,
body.app-page-lobby[data-app-preset-lock] .native-format-rail::-webkit-scrollbar {
  display: none;
}

body.app-page-home[data-app-preset-lock] .native-home-kicker,
body.app-page-lobby[data-app-preset-lock] .native-lobby-kicker {
  justify-content: flex-start;
}

body.app-page-home[data-app-preset-lock] .native-home-hero-actions,
body.app-page-lobby[data-app-preset-lock] .native-lobby-hero-actions {
  align-items: stretch;
}

body.app-page-home[data-app-preset-lock] .native-home-hero-actions .pill,
body.app-page-lobby[data-app-preset-lock] .native-lobby-hero-actions .pill {
  background: rgba(5, 10, 20, 0.7);
}

@media (max-width: 860px) {
  body.app-page-home[data-app-preset-lock] .page-shell-app,
  body.app-page-lobby[data-app-preset-lock] .page-shell-app {
    gap: 12px;
  }

  body.app-page-home[data-app-preset-lock] .native-home-hero,
  body.app-page-lobby[data-app-preset-lock] .native-lobby-hero {
    padding-top: max(18px, env(safe-area-inset-top));
    gap: 14px;
  }

  body.app-page-home[data-app-preset-lock] .native-home-hero-lockup,
  body.app-page-lobby[data-app-preset-lock] .native-lobby-hero-lockup {
    width: 100%;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  body.app-page-home[data-app-preset-lock] .native-home-brand-mark,
  body.app-page-lobby[data-app-preset-lock] .brand-mark-vip {
    display: none;
  }

  body.app-page-home[data-app-preset-lock] .native-home-hero-copy,
  body.app-page-lobby[data-app-preset-lock] .native-lobby-hero-copy {
    width: 100%;
    justify-items: center;
    text-align: center;
  }

  body.app-page-home[data-app-preset-lock] .brand-wordmark-bright,
  body.app-page-lobby[data-app-preset-lock] .brand-wordmark-bright {
    width: min(92vw, 420px);
    max-width: 100%;
    margin: 0 auto;
  }

  body.app-page-home[data-app-preset-lock] .native-home-hero-copy .badge,
  body.app-page-home[data-app-preset-lock] .native-home-kicker,
  body.app-page-lobby[data-app-preset-lock] .native-lobby-hero-copy .badge,
  body.app-page-lobby[data-app-preset-lock] .native-lobby-kicker,
  body.app-page-lobby[data-app-preset-lock] .native-vip-blurb {
    display: none !important;
  }

  body.app-page-home[data-app-preset-lock] .native-home-hero-actions,
  body.app-page-lobby[data-app-preset-lock] .native-lobby-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.app-page-home[data-app-preset-lock] .native-home-hero-actions .pill,
  body.app-page-lobby[data-app-preset-lock] .native-lobby-hero-actions .pill {
    justify-content: center;
    min-width: 0;
  }

  body.app-page-home[data-app-preset-lock] .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body.app-page-home[data-app-preset-lock] .badge-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-page-home[data-app-preset-lock] .badge-row .btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
  }

  body.app-page-lobby[data-app-preset-lock] .native-lobby-browser {
    margin-top: 0;
  }

  body.app-page-lobby[data-app-preset-lock] .native-browser-head {
    align-items: center;
  }
}

@media (max-width: 560px) {
  body.app-page-home[data-app-preset-lock] .page-shell-app,
  body.app-page-lobby[data-app-preset-lock] .page-shell-app {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.app-page-home[data-app-preset-lock] .brand-wordmark-bright,
  body.app-page-lobby[data-app-preset-lock] .brand-wordmark-bright {
    width: min(94vw, 360px);
  }

  body.app-page-home[data-app-preset-lock] .badge-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  body.app-page-home[data-app-preset-lock] .section-block,
  body.app-page-lobby[data-app-preset-lock] .section-block,
  body.app-page-home[data-app-preset-lock] .hero-banner,
  body.app-page-lobby[data-app-preset-lock] .hero-banner {
    border-radius: 26px;
  }
}

/* wide dark watermark on table */
body.game-page.poker-game-page .table-felt-logo,
body.mobile-table-fixed .table-felt-logo {
  background: url('../brand/logo-pokervip-wordmark-light.svg') center/contain no-repeat !important;
  aspect-ratio: 3.92 / 1;
  height: auto !important;
  filter: saturate(0.88) brightness(0.7) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

body.game-page.poker-game-page .table-felt-logo {
  width: min(54vw, 660px) !important;
  opacity: 0.12 !important;
}

@media (max-width: 980px) {
  body.game-page.poker-game-page .table-felt-logo {
    width: min(66vw, 520px) !important;
  }
}

@media (max-width: 720px) {
  body.game-page.poker-game-page .table-felt-logo {
    width: min(74vw, 430px) !important;
    opacity: 0.10 !important;
  }
}

body.mobile-table-fixed .table-felt-logo {
  width: min(72vw, 420px) !important;
  opacity: 0.08 !important;
}


/* === V1.3c flat native refinement + tournament banners ==================== */
.brand-wordmark-wide,
.tournaments-wordmark {
  width: min(430px, 64vw);
  max-width: 100%;
}

body.app-page-minimal:not(.game-page):not(.login-page) {
  --pv-flat-surface: rgba(7, 12, 22, 0.96);
  --pv-flat-surface-2: rgba(9, 15, 27, 0.985);
  --pv-flat-border: rgba(245, 194, 84, 0.14);
}

body.app-page-minimal:not(.game-page):not(.login-page) .surface,
body.app-page-minimal:not(.game-page):not(.login-page) .section-block,
body.app-page-minimal:not(.game-page):not(.login-page) .panel-card,
body.app-page-minimal:not(.game-page):not(.login-page) .room-card,
body.app-page-minimal:not(.game-page):not(.login-page) .market-card,
body.app-page-minimal:not(.game-page):not(.login-page) .owned-deck-card,
body.app-page-minimal:not(.game-page):not(.login-page) .native-browser-detail,
body.app-page-minimal:not(.game-page):not(.login-page) .native-myroom-pill {
  background: linear-gradient(180deg, var(--pv-flat-surface), var(--pv-flat-surface-2)) !important;
  border-color: var(--pv-flat-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(1, 7, 18, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .hero-banner,
body.app-page-minimal:not(.game-page):not(.login-page) .panel-head {
  border-radius: 20px !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .hero-banner-glow::after {
  opacity: 0.12;
  width: 280px;
  height: 280px;
}

body.app-page-minimal:not(.game-page):not(.login-page) .native-home-hero::before,
body.app-page-minimal:not(.game-page):not(.login-page) .native-lobby-hero::before {
  opacity: 0.26;
}

body.app-page-minimal:not(.game-page):not(.login-page) .brand-mark,
body.app-page-minimal:not(.game-page):not(.login-page) .brand-mark-vip,
body.app-page-minimal:not(.game-page):not(.login-page) .card-icon,
body.app-page-minimal:not(.game-page):not(.login-page) .native-room-avatar {
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .pill,
body.app-page-minimal:not(.game-page):not(.login-page) .badge,
body.app-page-minimal:not(.game-page):not(.login-page) .mini-chip,
body.app-page-minimal:not(.game-page):not(.login-page) .status-chip,
body.app-page-minimal:not(.game-page):not(.login-page) .rank-chip,
body.app-page-minimal:not(.game-page):not(.login-page) .top-nav-preset,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-preset-pill,
body.app-page-minimal:not(.game-page):not(.login-page) .native-segment,
body.app-page-minimal:not(.game-page):not(.login-page) .native-filter-chip {
  border-radius: 14px !important;
  background: rgba(7, 12, 22, 0.92);
  box-shadow: none !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .btn,
body.app-page-minimal:not(.game-page):not(.login-page) .top-nav-link,
body.app-page-minimal:not(.game-page):not(.login-page) .top-nav-profile,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-tabbar.app-native-tabbar .mobile-tab-iconic,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-tabbar.app-native-tabbar .mobile-tab-fab,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-more-item {
  border-radius: 14px !important;
  box-shadow: none !important;
  transform: none !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .btn.primary,
body.app-page-minimal:not(.game-page):not(.login-page) .top-nav-link.active,
body.app-page-minimal:not(.game-page):not(.login-page) .top-nav-preset.is-active,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-preset-pill.is-active,
body.app-page-minimal:not(.game-page):not(.login-page) .native-segment.is-active,
body.app-page-minimal:not(.game-page):not(.login-page) .native-filter-chip.is-active,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-tabbar.app-native-tabbar .mobile-tab-fab,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-tabbar.app-native-tabbar .mobile-tab-fab.active {
  background: linear-gradient(180deg, #f5c254, #e0a73b) !important;
  color: #08101f !important;
  border-color: rgba(245, 194, 84, 0.22) !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .btn.secondary,
body.app-page-minimal:not(.game-page):not(.login-page) .btn.ghost,
body.app-page-minimal:not(.game-page):not(.login-page) .top-nav-link,
body.app-page-minimal:not(.game-page):not(.login-page) .top-nav-profile,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-tabbar.app-native-tabbar .mobile-tab-iconic,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-more-item {
  background: rgba(8, 13, 24, 0.94) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .btn[disabled] {
  opacity: 0.64;
  cursor: default;
}

body.app-page-minimal:not(.game-page):not(.login-page) .top-nav,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-tabbar.app-native-tabbar,
body.app-page-minimal:not(.game-page):not(.login-page) .mobile-more-sheet-card,
body.app-page-minimal:not(.game-page):not(.login-page) .rooms-floating-dock {
  border-radius: 18px !important;
  background: rgba(6, 11, 20, 0.96) !important;
  box-shadow: 0 12px 28px rgba(1, 7, 18, 0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.app-page-minimal:not(.game-page):not(.login-page) .mobile-tabbar.app-native-tabbar .mobile-tab-iconic.active {
  background: rgba(12, 19, 31, 0.98) !important;
  color: #f8fbff;
  border: 1px solid rgba(245, 194, 84, 0.16);
}

body.app-page-lobby[data-app-preset-lock] .native-room-row,
body.app-page-lobby[data-app-preset-lock] .native-format-card,
body.app-page-home[data-app-preset-lock] .stat-card,
body.app-page-home[data-app-preset-lock] .link-card,
body.app-page-home[data-app-preset-lock] .deck-spotlight {
  box-shadow: none !important;
}

body.app-page-lobby[data-app-preset-lock] .native-room-row,
body.app-page-lobby[data-app-preset-lock] .native-format-card,
body.app-page-home[data-app-preset-lock] .stat-card,
body.app-page-home[data-app-preset-lock] .link-card,
body.app-page-home[data-app-preset-lock] .deck-spotlight,
body.app-page-lobby[data-app-preset-lock] .native-browser-detail {
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.96), rgba(10, 16, 28, 0.985)) !important;
}

body.app-page-lobby[data-app-preset-lock] .native-room-row:hover,
body.app-page-lobby[data-app-preset-lock] .native-room-row:focus-visible,
body.app-page-lobby[data-app-preset-lock] .native-room-row.is-selected {
  transform: none !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.98), rgba(12, 19, 31, 1)) !important;
  border-color: rgba(245, 194, 84, 0.24) !important;
}

body.app-page-lobby[data-app-preset-lock] .native-browser-summary .mini-chip:nth-child(2),
body.app-page-lobby[data-app-preset-lock] .native-browser-summary .mini-chip:nth-child(3) {
  background: rgba(245, 194, 84, 0.08);
  border-color: rgba(245, 194, 84, 0.18);
  color: #f5deb0;
}

.tournaments-hero,
.tournaments-shell-block {
  overflow: hidden;
}

.tournaments-hero-lockup,
.tournaments-hero-copy {
  width: 100%;
}

.tournaments-hero-copy {
  gap: 10px;
}

.tournaments-hero-actions {
  justify-content: flex-end;
}

.tournaments-hero-actions .pill {
  min-height: 44px;
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tournament-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 194, 84, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(10, 17, 28, 0.995));
}

.tournament-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06101b;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tournament-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-card-media-meta {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tournament-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.tournament-card-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.tournament-card-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.08;
}

.tournament-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 13, 24, 0.94);
  color: #f3d796;
  font-weight: 800;
}

.tournament-card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tournament-stat {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(7, 12, 22, 0.92);
}

.tournament-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.tournament-stat strong {
  font-size: 0.96rem;
}

.tournament-card-copy {
  margin: 0;
  color: var(--muted);
}

.tournament-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tournament-card-actions form {
  margin: 0;
}

.tournament-registered-chip {
  border-color: rgba(34, 197, 94, 0.22) !important;
  background: rgba(22, 101, 52, 0.14) !important;
  color: #c8f7d0 !important;
}

.tournament-status-running .tournament-card-media-meta .badge {
  background: rgba(127, 29, 29, 0.64);
  border-color: rgba(248, 113, 113, 0.34);
  color: #fee2e2;
}

.tournament-status-finished .tournament-card-media-meta .badge {
  background: rgba(36, 48, 66, 0.86);
  border-color: rgba(148, 163, 184, 0.18);
  color: #dbe3f3;
}

body.game-page.poker-game-page .table-felt-logo,
body.mobile-table-fixed .table-felt-logo {
  width: min(84vw, 720px) !important;
  max-width: 76%;
  aspect-ratio: 1760 / 360 !important;
  height: auto !important;
  background: url('../brand/logo-pokervip-wordmark-dark-wide.png') center center / contain no-repeat !important;
  transform: translate(-50%, -50%) !important;
  filter: saturate(0.78) brightness(0.72) !important;
  opacity: 0.10 !important;
}

@media (max-width: 980px) {
  .tournament-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.game-page.poker-game-page .table-felt-logo,
  body.mobile-table-fixed .table-felt-logo {
    width: min(86vw, 620px) !important;
    max-width: 82%;
    background-position: center center !important;
  }
}

@media (max-width: 860px) {
  body.app-page-home[data-app-preset-lock] .brand-wordmark-wide,
  body.app-page-lobby[data-app-preset-lock] .brand-wordmark-wide,
  .tournaments-wordmark {
    width: min(92vw, 390px);
  }

  .tournaments-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournaments-hero-actions .pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .tournament-grid {
    grid-template-columns: 1fr;
  }

  .tournament-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.game-page.poker-game-page .table-felt-logo,
  body.mobile-table-fixed .table-felt-logo {
    width: min(90vw, 500px) !important;
    max-width: 88%;
    background-position: center center !important;
    opacity: 0.11 !important;
  }
}

@media (max-width: 560px) {
  .tournament-card-body {
    padding: 14px;
  }

  .tournament-card-title {
    font-size: 1.08rem;
  }

  .tournament-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-card-actions .pill,
  .tournament-card-actions .btn,
  .tournament-card-actions form {
    width: 100%;
  }

  .tournament-card-actions form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === V1.3e home promo + live tables ======================================== */
.home-feature-shell,
.home-secondary-shell {
  align-items: stretch;
}

.home-promo-panel,
.home-live-panel {
  display: grid;
  gap: 16px;
}

.home-featured-tournament {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(245, 194, 84, 0.12);
  background: rgba(5, 11, 20, 0.54);
}

.home-featured-tournament-media {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(245, 194, 84, 0.12);
  background: rgba(4, 9, 18, 0.7);
}

.home-featured-tournament-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-featured-tournament-overlay {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-featured-tournament-body {
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.home-featured-tournament-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-inline-actions {
  align-items: stretch;
}

.home-inline-actions .btn {
  justify-content: center;
}

.home-mini-tournaments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-mini-tournament {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 194, 84, 0.1);
  background: rgba(7, 13, 24, 0.62);
  color: inherit;
  text-decoration: none;
}

.home-mini-tournament span {
  color: rgba(255,255,255,.68);
  font-size: .8rem;
}

.home-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-live-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(245, 194, 84, 0.1);
  background: rgba(7, 13, 24, 0.62);
}

.home-live-card.is-joined {
  border-color: rgba(80, 194, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.home-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-live-head h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}

.home-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-open-rooms-strip {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.home-open-rooms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-open-rooms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-open-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 194, 84, 0.14);
  background: rgba(5, 10, 20, 0.72);
  color: inherit;
  text-decoration: none;
}

.home-open-room-pill span {
  color: rgba(255,255,255,.68);
  font-size: .82rem;
}

.home-empty-state {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(245, 194, 84, 0.16);
  background: rgba(7, 13, 24, 0.44);
}

.home-empty-state.compact {
  min-height: 100%;
  align-content: center;
}

.home-dock-note {
  margin: 0;
}

@media (max-width: 980px) {
  .home-featured-tournament {
    grid-template-columns: 1fr;
  }

  .home-featured-tournament-media {
    min-height: 200px;
  }
}

@media (max-width: 860px) {
  .home-live-grid,
  .home-mini-tournaments {
    grid-template-columns: 1fr;
  }

  .home-featured-tournament-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-open-rooms-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
