/* ── Mongolian Poker — Luxe Casino theme ──────────────────
   Deep felt green + near-black, gold accents, serif display
   headings (Noto Serif) over a clean sans body (Noto Sans) —
   both with full Mongolian Cyrillic (Ө, Ү …) coverage. */
:root {
  --bg-0: #06100b;
  --felt-hi: #1a6b46;
  --felt-mid: #0f4e32;
  --felt-lo: #082f1f;
  --felt-edge: #062316;
  --gold: #d4af37;
  --gold-hi: #f4e3a1;
  --gold-deep: #8a6d1c;
  --cream: #f7f2e4;
  --ink: #1a1409;
  --suit-red: #b3202e;
  --panel: rgba(8, 30, 21, .72);
  --panel-2: rgba(13, 42, 30, .9);
  --line: rgba(212, 175, 55, .28);
  --text: #f3ead2;
  --text-dim: rgba(243, 234, 210, .62);
  --danger: #ff8a94;
  --good: #7fe3a6;
  --back-1: #155740;   /* card-back gradient (felt-toned) */
  --back-2: #0a2c1d;
  /* Usion GameTok is edge to edge: the felt runs under the notch and the home
     indicator, every control stays inside these insets. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
/* Red-velvet skin — same gold/cream accents over a crimson table */
body.skin-red {
  --bg-0: #160407;
  --felt-hi: #8a2433;
  --felt-mid: #5e1722;
  --felt-lo: #380b13;
  --felt-edge: #2a0810;
  --panel: rgba(42, 8, 14, .72);
  --panel-2: rgba(60, 14, 22, .9);
  --back-1: #6e1a26;
  --back-2: #2a0a0f;
}

/* Table-colour toggle (green ↔ red velvet) */
.skin-toggle {
  position: fixed; top: calc(var(--safe-top) + 8px); left: max(28px, calc(var(--safe-left) + 8px)); z-index: 70;
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  border: 2px solid var(--gold); cursor: pointer;
  background: linear-gradient(135deg, #1a6b46 0 50%, #8a2433 50% 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.skin-toggle:active { transform: scale(.94); }

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Form controls don't inherit the body font by default — without this,
   buttons fall back to Arial, which renders Mongolian Ү/Ө poorly. */
button, input, select, textarea { font-family: inherit; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212,175,55,.10) 0%, rgba(0,0,0,0) 42%),
    radial-gradient(circle at 50% 38%, var(--felt-hi) 0%, var(--felt-mid) 40%, var(--felt-lo) 74%, var(--bg-0) 100%);
  font-family: "Noto Sans", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.game-container {
  width: 100%;
  max-width: 460px;
  height: 100vh;
  height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 10px) max(10px, var(--safe-right)) calc(var(--safe-bottom) + 10px) max(10px, var(--safe-left));
  overflow: hidden;
}

/* Shared round profile photo. The text initial stays underneath the image, so a
   missing or broken avatar URL automatically has a readable fallback. */
.player-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--felt-hi), var(--felt-lo));
  color: var(--gold-hi);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}
.player-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--felt-lo);
}
.player-avatar.bot-avatar { background: linear-gradient(145deg, #725d25, #2d260f); }

/* Voice activity belongs to the portrait; the turn countdown stays independent. */
.player-avatar.is-speaking {
  border-color: #83efb3;
  outline: 2px solid #6ce5a1;
  outline-offset: 2px;
  animation: voice-profile-pulse .85s ease-in-out infinite;
}
@keyframes voice-profile-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(87,227,151,.12), 0 0 8px rgba(87,227,151,.25); }
  50% { box-shadow: 0 0 0 6px rgba(87,227,151,.04), 0 0 14px rgba(87,227,151,.5); }
}
@media (prefers-reduced-motion: reduce) {
  .player-avatar.is-speaking { animation: none; box-shadow: 0 0 8px rgba(87,227,151,.3); }
}

/* The countdown is the avatar border: a full yellow ring at rest which drains
   clockwise during that player's turn. */
.profile-timer {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.profile-timer > .seat-timer {
  position: absolute;
  inset: -3px;
  z-index: 2;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  pointer-events: none;
}

/* ── Opponents (seated around the table, shown as fanned card backs) ── */
.opponents { position: absolute; inset: var(--safe-top) 0 0; pointer-events: none; z-index: 3; }
.opp {
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 124px;
}
.opp--top   { top: 6px;  left: 50%; transform: translateX(-50%); }
/* The side seats sit ABOVE the played cards, never level with them. A 13-card
   fan is ~110px wide, so with one on each side barely 150px of a phone screen is
   left in the middle — narrower than a five-card combo, which means the two will
   always overlap horizontally. Clearance has to come from the vertical. */
.opp--left  { top: 17%;  left: 2px;  width: 110px; }
.opp--right { top: 17%;  right: 2px; width: 110px; }
.opp-name {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  max-width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .2px;
}
.opp-profile-timer { width: 38px; height: 38px; }
.opp-avatar { width: 100%; height: 100%; }
/* Per-seat countdown ring. pathLength=100 drives the arc with a 0–100 offset. */
.seat-timer { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.seat-timer svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.seat-timer .ring-bg { fill: none; stroke: rgba(0,0,0,.5); stroke-width: 3; }
.seat-timer .ring-fg {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.seat-timer.live .ring-fg { stroke: var(--gold); }
.seat-timer.warn { animation: pulseTime 1s ease-in-out infinite; }
@keyframes pulseTime { 50% { opacity: .62; } }

.opp-pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-score { flex: 0 0 auto; margin-left: 2px; font-family: "Noto Serif", serif; font-weight: 800; color: var(--gold-hi); }
.opp-fan {
  display: flex; justify-content: center; padding: 4px;
  border: 2px solid transparent; border-radius: 8px;
  transition: box-shadow .25s, border-color .25s;
}
.opp.turn .opp-fan { border-color: var(--gold); box-shadow: 0 0 16px rgba(212,175,55,.5); }
.opp.done { opacity: .5; }
.mini-back {
  width: 17px; height: 24px; border-radius: 3px; flex: 0 0 auto;
  margin-left: -10px;
  background:
    repeating-linear-gradient(45deg, rgba(212,175,55,.5) 0 2px, rgba(212,175,55,0) 2px 5px),
    linear-gradient(160deg, var(--back-1), var(--back-2));
  border: 1px solid var(--gold-deep);
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.opp-fan .mini-back:first-child { margin-left: 0; }
/* The side seats are the only ones level with the played cards, and on a short
   phone there is no room to lift them clear: the band between the top seat and
   the cards is narrower than a seat block. So they also have to stop reaching
   into the middle — a tighter fan keeps all 13 backs visible in ~75px instead of
   ~110px, which is what actually guarantees no collision at any height. */
.opp--left .mini-back, .opp--right .mini-back { margin-left: -13px; }
/* Short screens have the least room of all: the table area shrinks, so the
   played cards ride higher and meet the side seats head on. Compact those seats
   — smaller avatar, shorter and tighter fan — so they clear the cards sideways
   even when there is no height left to lift them into. */
@media (max-height: 740px) {
  .opp--left, .opp--right { top: 12%; }
  .opp-profile-timer { width: 30px; height: 30px; }
  .opp .mini-back { width: 13px; height: 19px; margin-left: -10px; }
  .opp--left .mini-back, .opp--right .mini-back { margin-left: -10px; }
}
.opp-count { font-size: 10px; font-weight: 600; color: var(--text-dim); }
.opp-action {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px;
}
.opp-action.pass { background: rgba(179,32,46,.28); color: #ffc4c9; }
.opp-action.play { background: rgba(212,175,55,.18); color: var(--gold-hi); }
.opp-action.win  { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #3c2f06; }

/* ── Table ── */
.table-area {
  flex: 1; min-height: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
/* felt ring evoking the centre of a card table */
.table-area::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(440px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, rgba(0,0,0,0) 62%);
  border: 1px solid rgba(212,175,55,.16);
  box-shadow: inset 0 0 60px rgba(0,0,0,.35);
  pointer-events: none;
}
.turn-line {
  position: relative;
  max-width: min(86vw, 340px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: "Noto Serif", serif;
  font-size: 16px; font-weight: 800; letter-spacing: .3px;
  color: var(--text);
  padding: 7px 18px; border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  min-height: 32px;
}
/* With a seat on each side, the line has only the corridor between them: 110px
   of seat plus its 2px offset on either side. Running past that is what put a
   long name on top of the neighbour's label. Inside the corridor it can never
   touch them, at any name length. */
body.has-side-seats .turn-line {
  max-width: calc(100vw - 232px);
  font-size: 14px; padding: 7px 12px;
}
.turn-line.mine {
  color: #2a210a;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: var(--gold-hi);
  box-shadow: 0 4px 16px rgba(212,175,55,.4);
}
.table-combo { position: relative; display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; min-height: clamp(120px, 26vh, 200px); max-width: 96%; max-height: 52vh; overflow: hidden; }
.table-label { position: relative; font-size: 12px; font-weight: 600; color: var(--text-dim); min-height: 16px; letter-spacing: .2px; }

/* ── Playing cards ── */
.card {
  position: relative;
  font-family: "Inter", system-ui, sans-serif;   /* ranks are Latin-only; Inter renders J/Q/K crisply */
  font-size: 12px;                 /* base; children use em */
  border-radius: 9px;
  background: linear-gradient(158deg, #ffffff 0%, var(--cream) 70%, #ece3cc 100%);
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.06);
  border: 1.5px solid transparent;
  overflow: hidden;
}
.card.red { color: var(--suit-red); }
.card .corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .82; font-weight: 800; }
.card .corner.tl { top: .35em; left: .42em; }
.card .corner.br { bottom: .35em; right: .42em; transform: rotate(180deg); }
.card .corner b { font-size: 1.18em; letter-spacing: -.5px; }
.card .corner i { font-style: normal; font-size: 1em; }
.card .pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5em; opacity: .9; }

.table-combo .card { width: clamp(58px, 15vw, 72px); height: auto; aspect-ratio: 5 / 7; font-size: clamp(14px, 3.6vw, 17px); }

/* trick history — each play in the current trick, older ones faded + colour-tinted */
.tp-play {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
/* previous plays pile up behind the latest one (only their tops peek out) */
.tp-play:not(:first-child) { margin-top: clamp(-66px, -15vw, -52px); }
.tp-play:not(.latest) { filter: grayscale(0.6) brightness(0.82); }   /* previous plays: subtle gray tone */
.tp-play.latest { z-index: 3; }
.tp-play:first-child { margin-top: 0; }
.tp-meta { font-size: 10px; font-weight: 700; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.tp-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.tp-owner {
  position: absolute;
  left: 2px;
  bottom: 2px;
  z-index: 12;
  display: flex; align-items: center; justify-content: center;
  width: 17px; height: 17px;
  padding: 1px;
  border-radius: 999px;
  background: rgba(7, 25, 15, .7);
  border: 1px solid rgba(245,218,113,.22);
  box-shadow: 0 2px 8px rgba(0,0,0,.32);
  pointer-events: none;
}
.tp-avatar { width: 13px; height: 13px; font-size: 7px; }
.tp-play.latest .tp-owner {
  background: rgba(10, 36, 20, .86);
  border-color: rgba(245,218,113,.5);
}
.tp-cards { position: relative; display: flex; }
/* all plays use the same readable card size; they stack via the vertical overlap above */
.tp-cards .card { width: clamp(52px, 13.5vw, 66px); height: auto; aspect-ratio: 5 / 7; font-size: clamp(13px, 3.3vw, 16px); margin-left: -16px; }
.tp-cards .card:first-child { margin-left: 0; }

/* ── My hand (fanned) ── */
.me-area { margin-top: 8px; }
.me-bar { display: flex; align-items: center; gap: 8px; padding: 0 6px 6px; }
.me-profile-timer { width: 36px; height: 36px; }
.me-avatar { width: 100%; height: 100%; font-size: 14px; }
.me-name { font-family: "Noto Serif", serif; font-size: 14px; font-weight: 800; color: var(--gold-hi); }
.me-score { font-family: "Noto Serif", serif; font-size: 14px; font-weight: 800; color: var(--gold-hi); }
.me-status { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-dim); text-align: right; }
.me-status.good { color: var(--good); }
.me-status.bad { color: var(--danger); }

.hand {
  display: flex; justify-content: center; align-items: flex-end;
  height: 122px; padding: 40px 6px 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hand .card {
  width: 52px; height: 74px; font-size: 13px;
  flex: 0 0 auto;                 /* margin-left is set per-card by layoutHand() in JS */
  position: relative; z-index: 1; /* unselected cards sit in front */
  cursor: pointer;
  touch-action: none;
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s, border-color .14s;
}
/* chosen cards rise up from BEHIND the fan (face-up, only the top peeks out) */
.hand .card.sel {
  transform: translateY(-34px);
  z-index: 0;
  border-color: var(--gold);
  box-shadow: 0 -3px 12px rgba(212,175,55,.55);
}
.hand .card.dragging {
  z-index: 30;
  cursor: grabbing;
  transition: none;
  border-color: var(--gold-hi);
  box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 0 2px rgba(245,218,113,.45);
}
.hand .card.drop-before,
.hand .card.drop-after {
  overflow: visible;
}
.hand .card.drop-before::before,
.hand .card.drop-after::after {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -8px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 0 2px rgba(42,33,10,.5), 0 0 16px rgba(245,218,113,.8);
  pointer-events: none;
}
.hand .card.drop-before::before { left: -10px; }
.hand .card.drop-after::after { right: -10px; }

/* ── Controls ── */
.controls { display: flex; gap: 9px; margin-top: 8px; }
.ctrl-btn {
  flex: 1 1 0;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s, filter .2s;
}
.ctrl-btn:active { transform: scale(.97); }
.ctrl-btn.primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #2a210a; border-color: var(--gold-hi);
  box-shadow: 0 4px 14px rgba(212,175,55,.35);
}
.ctrl-btn:disabled { background: rgba(255,255,255,.06); color: rgba(243,234,210,.32); border-color: rgba(255,255,255,.08); box-shadow: none; cursor: default; }

/* ── Overlays ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(3, 10, 7, .68);
  display: none; align-items: center; justify-content: center;
  z-index: 50; padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px);
  backdrop-filter: blur(4px);
}
.overlay.show { display: flex; }
.overlay-card {
  position: relative;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(212,175,55,.12), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, var(--felt-mid), var(--felt-lo));
  background-color: var(--felt-lo);
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  padding: 26px 22px;
  width: 100%; max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(212,175,55,.18);
  max-height: min(94vh, 100%); overflow-y: auto;
}
.setup-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 16px; }
.setup-title {
  font-family: "Noto Serif", serif;
  font-size: 27px; font-weight: 900; line-height: 1.05; letter-spacing: .5px;
  color: var(--gold-hi);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.title-ace {
  position: relative; display: inline-block;
  width: 50px; height: 68px;
  border-radius: 9px; border: 1.5px solid var(--gold);
  background: linear-gradient(158deg, #fff, var(--cream));
  color: var(--ink); text-shadow: none;
  box-shadow: 0 5px 14px rgba(0,0,0,.45), 0 0 16px rgba(212,175,55,.3);
}
.title-ace b { position: absolute; top: 5px; left: 7px; font-family: "Noto Sans", sans-serif; font-size: 14px; font-weight: 800; line-height: 1; }
.title-ace i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 32px; }
.setup-sub { font-size: 12.5px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.5; }
.count-label { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 9px; }
.count-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.count-btn {
  width: 54px; height: 54px; border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text);
  font-family: "Noto Serif", serif; font-size: 22px; font-weight: 800; cursor: pointer;
  transition: transform .1s, box-shadow .2s;
}
.count-btn:active { transform: scale(.95); }
.count-btn.selected {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: var(--gold-hi); color: #2a210a;
  box-shadow: 0 4px 16px rgba(212,175,55,.4);
}
.name-label { display: block; font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 2px; text-align: left; margin-bottom: 20px; }
.ps-name {
  display: block; width: 100%; margin-top: 7px;
  background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 14px; font-weight: 600; padding: 11px 13px;
}
.ps-name:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,.25); }
.btn-confirm {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #2a210a; border: 1px solid var(--gold-hi); border-radius: 13px;
  padding: 14px; font-size: 16px; font-weight: 800; letter-spacing: 1px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(212,175,55,.4);
}
.btn-confirm:active { transform: scale(.98); }
.setup-foot { font-size: 11px; color: var(--text-dim); margin-top: 14px; }

.waiting-card { text-align: center; }

/* Start menu: Online / Bots / Invite */
.menu-card .setup-head { margin-bottom: 22px; }
.menu-btn {
  position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 18px;
  width: 100%; min-height: 76px; margin-top: 14px; padding: 12px 22px;
  text-align: left;
  border-radius: 18px; cursor: pointer;
  font-family: "Noto Sans", sans-serif; font-size: 20px; font-weight: 700;
  color: #f2ecd2;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.35);
  transition: transform .12s ease, filter .12s ease;
}
.menu-btn:first-of-type { margin-top: 0; }
.menu-btn.primary {
  color: #2a1a04;
  background: linear-gradient(180deg, #efce72, #e2b44e);
  border-color: #f4dc8c;
  box-shadow: 0 8px 22px rgba(212,175,55,.32);
}
.menu-btn:active { transform: scale(.97); }
.menu-btn:disabled { filter: saturate(.4) brightness(.8); cursor: default; }
.menu-ico {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(180deg, #2c6a46, #154a2d);
  border: 1px solid rgba(212,175,55,.35);
  box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.menu-ico svg { width: 24px; height: 24px; fill: none; stroke: #efc862; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-ico svg.fill { fill: #efc862; stroke: none; }
.menu-label { min-width: 0; }

/* Online waiting room (ready / host-start lobby) */
.lobby-card { text-align: center; }
.lobby-title { font-family: "Noto Serif", serif; font-size: 22px; font-weight: 800; color: var(--gold-hi); margin: 4px 0 2px; }
.lobby-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; text-align: left; }
.lobby-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px; padding: 10px 13px;
}
.lobby-row.me { border-color: var(--line); }
.lobby-avatar { width: 36px; height: 36px; font-size: 13px; }
.lobby-name { flex: 1; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-tag { font-size: 9px; font-weight: 800; color: var(--gold); letter-spacing: .5px; margin-left: 4px; }
.lobby-badge { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; }
.lobby-badge.ready { background: rgba(127,227,166,.18); color: var(--good); }
.lobby-badge.wait  { background: rgba(255,255,255,.08); color: var(--text-dim); }
/* Match length picker in the waiting room. Compact variant of the setup-screen
   count buttons so three of them sit on one row inside the narrower lobby card.
   Non-hosts see the same row read-only (.readonly) rather than a hidden control,
   so everyone can check the target before readying up. */
.lobby-limit { margin: 2px 0 14px; }
.lobby-limit .count-label { margin-bottom: 7px; }
.lobby-limit .count-row { gap: 8px; margin-bottom: 0; }
.lobby-limit .count-btn { flex: 1; width: auto; height: 42px; font-size: 17px; border-radius: 11px; }
.lobby-limit.readonly .count-btn { cursor: default; opacity: .55; }
.lobby-limit.readonly .count-btn.selected { opacity: 1; box-shadow: none; }
.lobby-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.ctrl-btn.btn-ready-on { background: rgba(127,227,166,.2); color: var(--good); border-color: rgba(127,227,166,.45); box-shadow: none; }
.overlay-text { font-family: "Noto Serif", serif; font-size: 18px; font-weight: 800; margin-top: 12px; color: var(--gold-hi); }
.spinner {
  width: 46px; height: 46px; margin: 0 auto;
  border: 3px solid rgba(212,175,55,.2); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Results / scoreboard */
.result-title { font-family: "Noto Serif", serif; font-size: 22px; font-weight: 800; color: var(--gold-hi); margin-bottom: 16px; }
.scoreboard { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; text-align: left; }
.sb-row {
  display: flex; align-items: center; gap: 9px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.05);
  border-radius: 11px; padding: 10px 13px;
}
.sb-row.lead { background: linear-gradient(90deg, rgba(212,175,55,.22), rgba(212,175,55,.06)); border-color: var(--line); }
.sb-rank { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.sb-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.sb-name { flex: 1; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-delta { font-size: 12px; font-weight: 800; }
.sb-score { font-family: "Noto Serif", serif; font-size: 17px; font-weight: 800; width: 52px; text-align: right; color: var(--gold-hi); }
.sb-score small { font-size: 10px; opacity: .6; font-weight: 600; }

.countdown { font-size: 13px; font-weight: 600; color: var(--text-dim); padding: 4px 0 10px; }
.cd-num { font-weight: 800; color: var(--gold-hi); }
.cd-num.pop { animation: cdPop .4s ease; }
@keyframes cdPop {
  0% { opacity: .35; }
  100% { opacity: 1; }
}
.reveal-actions { display: flex; gap: 9px; }
.reveal-actions button { flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 12px; font-size: 14px; font-weight: 800; cursor: pointer; }
.btn-next { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #2a210a; border-color: var(--gold-hi); }
.btn-quit { background: var(--panel-2); color: var(--text); }

.winner-emoji { font-size: 50px; }
.winner-label { font-size: 13px; letter-spacing: 4px; color: var(--gold); margin-top: 4px; }
.winner-name { font-family: "Noto Serif", serif; font-size: 28px; font-weight: 900; color: var(--gold-hi); margin: 4px 0 16px; }
/* Rematch status line ("X wants a rematch" / "waiting for the host…") */
.rematch-status { min-height: 18px; font-size: 13px; opacity: .75; margin: 6px 0 2px; }

/* Toast */
.toast {
  position: fixed; top: 24%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  background: var(--panel-2); border: 1px solid var(--gold-deep);
  border-radius: 14px; padding: 12px 26px;
  font-family: "Noto Serif", serif; font-size: 16px; font-weight: 800; color: var(--gold-hi);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ── Quick chat (emoji reactions + canned phrases) ──────── */
.chat-toggle {
  position: fixed; top: calc(var(--safe-top) + 8px); right: max(8px, var(--safe-right)); z-index: 70;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  display: none; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; cursor: pointer;
  border: 2px solid var(--gold); color: var(--gold-hi);
  background: var(--panel-2);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.chat-toggle.show-btn { display: flex; }
.chat-toggle:active { transform: scale(.94); }

/* Same native Usion voice channel as Muushig; accessible in lobby and results. */
.voice-toggle {
  position: fixed; top: calc(var(--safe-top) + 8px);
  right: calc(max(8px, var(--safe-right)) + 44px); z-index: 72;
  width: 34px; height: 34px; border-radius: 50%; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); background: var(--panel-2); color: var(--gold-hi);
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.voice-toggle[hidden] { display: none; }
.voice-toggle svg { width: 20px; height: 20px; }
.voice-toggle.on { background: #2f8f5b; color: #fff; }
.voice-toggle.on .voice-slash { display: none; }
.voice-toggle.busy { opacity: .65; }
.voice-toggle:active { transform: scale(.94); }
.voice-toggle:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.voice-count {
  position: absolute; top: -5px; right: -5px; min-width: 16px; padding: 0 3px;
  border-radius: 9px; background: var(--gold-hi); color: var(--ink);
  font-size: 10px; font-weight: 800; line-height: 16px; pointer-events: none;
}

.chat-picker {
  --chat-keyboard-inset: 0px;
  position: fixed; top: calc(var(--safe-top) + 48px); right: max(8px, var(--safe-right)); z-index: 71;
  width: min(320px, calc(100vw - 16px));
  background: var(--panel-2);
  border: 1px solid var(--gold-deep); border-radius: 16px;
  padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: top right;
  pointer-events: none; transition: opacity .18s, transform .18s;
}
.chat-picker.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-emojis {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.chat-emoji {
  aspect-ratio: 1; padding: 0; border-radius: 10px; cursor: pointer;
  font-size: 19px; line-height: 1;
  border: 1px solid transparent; background: rgba(255,255,255,.05);
  transition: background .12s, transform .08s;
}
.chat-emoji:hover { background: rgba(212,175,55,.16); }
.chat-emoji:active { transform: scale(.9); }
.chat-phrases { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chat-phrase {
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--text);
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  transition: background .12s, transform .08s;
}
.chat-phrase:hover { background: rgba(212,175,55,.16); border-color: var(--gold-deep); }
.chat-phrase:active { transform: scale(.95); }
.chat-custom-toggle { flex-basis: 100%; }
.custom-chat-form { display: flex; gap: 7px; margin-top: 10px; }
.custom-chat-form[hidden] { display: none; }
.custom-chat-back, .custom-chat-send {
  min-height: 42px; border-radius: 11px; cursor: pointer; font-weight: 800;
}
.custom-chat-back {
  flex: 0 0 42px; border: 1px solid var(--line); background: rgba(255,255,255,.06);
  color: var(--text); font-size: 22px;
}
.custom-chat-input {
  min-width: 0; flex: 1; min-height: 42px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 11px; outline: none;
  background: rgba(0,0,0,.22); color: var(--text); font: 600 16px/1.25 "Noto Sans", sans-serif;
}
.custom-chat-input::placeholder { color: var(--text-dim); }
.custom-chat-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.13); }
.custom-chat-send {
  padding: 8px 13px; border: 0; background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #2a210a; font-size: 11px;
}
@media (max-width: 760px), (pointer: coarse) {
  .chat-toggle.custom-mode { visibility: hidden; pointer-events: none; }
  .chat-picker.custom-mode {
    top: auto; right: max(8px, var(--safe-right));
    bottom: calc(var(--safe-bottom) + 8px + var(--chat-keyboard-inset));
    width: min(440px, calc(100vw - 16px)); padding: 8px; transform-origin: bottom center;
  }
  .chat-picker.custom-mode .chat-emojis,
  .chat-picker.custom-mode .chat-phrases { display: none; }
  .chat-picker.custom-mode .custom-chat-form { margin: 0; }
}

/* Floating reaction bubbles over seats */
.reaction-layer { position: fixed; inset: 0; z-index: 62; pointer-events: none; }
.reaction-bubble {
  position: fixed; max-width: 60vw; white-space: normal; overflow-wrap: anywhere;
  opacity: 0; transform: translateY(6px) scale(.6);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,1.4,.5,1);
  will-change: transform, opacity;
}
.reaction-bubble.pop { opacity: 1; transform: translateY(0) scale(1); }
.reaction-bubble.out { opacity: 0; transform: translateY(-10px) scale(.9); transition: opacity .4s, transform .4s; }
.reaction-bubble.is-emoji { font-size: 32px; line-height: 1; filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)); }
.reaction-bubble.is-text {
  padding: 7px 13px; border-radius: 14px;
  font-family: "Noto Serif", serif; font-size: 14px; font-weight: 800;
  color: var(--ink); background: var(--cream);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* ── Tournament ─────────────────────────────────────────────
   Inherits the felt card, gold accents and Noto type. The menu tile matches
   the other modes; only its trophy icon is a touch brighter. */
.menu-btn.tour .menu-ico svg { stroke: #ffc83d; }

.tour-card { max-width: 420px; text-align: left; padding: 14px 18px 22px; }
.tour-top { display: flex; align-items: center; min-height: 36px; }
.tour-back {
  background: none; border: 0; color: var(--gold-hi); cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 6px 8px 6px 0; min-height: 36px;
}
.tour-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 2px 0 14px; }
.tour-cup {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(180deg, #4a3300, #2b1d00); border: 1px solid #ffc83d;
  box-shadow: 0 6px 16px rgba(0,0,0,.4), 0 0 18px rgba(255,200,61,.22);
}
.tour-cup svg { width: 30px; height: 30px; fill: none; stroke: #ffc83d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour-title { font-family: "Noto Serif", serif; font-size: 25px; font-weight: 900; color: var(--gold-hi); margin-top: 6px; }
.tour-when { font-size: 15px; font-weight: 700; color: var(--text); }
.tour-countdown { font-family: "Noto Serif", serif; font-size: 19px; font-weight: 800; color: #ffc83d; font-variant-numeric: tabular-nums; min-height: 0; }
.tour-countdown:empty { display: none; }
.tour-meta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tour-count { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.tour-pill {
  font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--text-dim);
}
.tour-pill.st-registered, .tour-pill.st-waiting, .tour-pill.st-qualified { background: rgba(127,227,166,.18); color: var(--good); }
.tour-pill.st-playing { background: rgba(255,200,61,.2); color: #ffc83d; }
.tour-pill.st-champion { background: linear-gradient(180deg, #ffd45e, #ffc83d); color: #352000; }
.tour-pill.st-eliminated, .tour-pill.st-cancelled { background: rgba(255,138,148,.14); color: var(--danger); }
.tour-note { font-size: 13px; line-height: 1.5; color: var(--text); text-align: center; margin: 0 0 14px; }
.tour-note:empty { display: none; }
.tour-primary { display: block; }
.tour-primary:disabled { filter: saturate(.4) brightness(.8); cursor: default; }
.tour-secondary {
  display: block; margin: 10px auto 0; background: none; border: 0; cursor: pointer;
  color: var(--text-dim); font-size: 13px; font-weight: 700; text-decoration: underline; padding: 8px;
}
.tour-champion {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid #ffc83d;
  background: linear-gradient(180deg, rgba(255,200,61,.18), rgba(255,200,61,.06));
}
.tour-champ-cup { font-size: 26px; }
.tour-champ-label { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #ffc83d; }
.tour-champ-name { font-family: "Noto Serif", serif; font-size: 19px; font-weight: 800; color: var(--gold-hi); }
.tour-body { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.tour-section {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--gold);
  margin: 10px 0 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.tour-section:first-child { margin-top: 0; }
.tour-stage-count { font-size: 11px; letter-spacing: .3px; font-weight: 700; color: var(--text-dim); }
.tour-empty { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.tour-row, .tour-seat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tour-row {
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; padding: 8px 12px;
}
.tour-row.me { border-color: var(--line); }
.tour-avatar { width: 32px; height: 32px; font-size: 12px; flex: 0 0 auto; }
.tour-avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.tour-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-tag { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #352000; background: #ffc83d; border-radius: 999px; padding: 2px 8px; }
.tour-table {
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 7px;
}
.tour-table.mine { border-color: #ffc83d; box-shadow: inset 0 0 0 1px rgba(255,200,61,.25); }
.tour-table-head { display: flex; justify-content: space-between; align-items: center; }
.tour-table-no { font-size: 12px; font-weight: 800; color: var(--text-dim); letter-spacing: .4px; }
.tour-seat.lost { opacity: .45; }
.tour-seat.won .tour-name { color: var(--good); }
.tour-win { color: var(--good); font-weight: 900; font-size: 15px; }
.tour-rules { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.tour-rules summary { cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--gold); padding: 6px 0; }
.tour-rules ul { margin: 6px 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.tour-rules li { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
/* The tournament screen is a full card: the corner skin toggle would sit on its back button. */
body.tour-open .skin-toggle, body.tour-open .chat-toggle, body.tour-open .voice-toggle { display: none !important; }
.tour-stage-head > span:first-child { font-size: 13px; letter-spacing: .4px; color: var(--gold-hi); }

/* Latest champion strip on the menu, and the champion's banner + share */
.champ-strip {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: -6px 0 16px; padding: 9px 14px;
  border-radius: 14px; border: 1px solid rgba(255,200,61,.55); cursor: pointer; text-align: left;
  background: linear-gradient(90deg, rgba(255,200,61,.22), rgba(255,200,61,.06)); color: var(--text);
}
.champ-strip[hidden] { display: none; }
.champ-strip-cup { font-size: 20px; }
.champ-strip-avatar { width: 30px; height: 30px; font-size: 12px; flex: 0 0 auto; }
.champ-strip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.champ-strip-label { font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; color: #ffc83d; }
.champ-strip-name { font-family: "Noto Serif", serif; font-size: 16px; font-weight: 800; color: var(--gold-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ-strip-date { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.tour-prize { margin: 0 0 16px; }
.tour-banner { display: block; width: 100%; aspect-ratio: 1200 / 630; border-radius: 12px; margin: 6px 0 12px;
  background: rgba(0,0,0,.3); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.btn-confirm.tour-share { background: linear-gradient(180deg, #ffd45e, #ffc83d); border-color: #ffe08a; color: #352000; margin-bottom: 10px; }
.btn-confirm.tour-share:disabled { filter: saturate(.5) brightness(.85); cursor: default; }
.tour-share-hint { font-size: 12px; color: var(--text-dim); text-align: center; }
.tour-share-hint:empty { display: none; }
/* Champions leaderboard, trophies on entrants, live table scores */
.tour-trophies { font-size: 12px; font-weight: 800; color: #ffc83d; white-space: nowrap; }
.tour-rank { width: 22px; text-align: center; font-family: "Noto Serif", serif; font-weight: 900; font-size: 15px; color: var(--text-dim); flex: 0 0 auto; }
.tour-rank.top1 { color: #ffd45e; } .tour-rank.top2 { color: #d9dde3; } .tour-rank.top3 { color: #e0a36b; }
.tour-live { font-size: 10px; font-weight: 800; letter-spacing: .4px; color: #ff8a94; margin-left: auto; margin-right: 8px; }
.tour-score { font-size: 13px; font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.tour-score.out { color: var(--danger); font-weight: 700; font-size: 12px; }

/* Watching another table: the bracket's button, and the game table in spectator mode */
.tour-watch-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 8px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  font: 800 11px/1.2 "Noto Sans", sans-serif; letter-spacing: .3px;
  color: var(--gold-hi); background: rgba(255,255,255,.06); border: 1px solid rgba(212,175,55,.45);
}
.tour-watch-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tour-watch-btn:active { transform: scale(.96); }
.tour-table-head .tour-live + .tour-watch-btn { margin-left: 0; }
.spec-exit, .spec-viewers { display: none; }
body.spectating .spec-exit {
  position: fixed; z-index: 72; top: calc(var(--safe-top) + 8px); left: max(28px, calc(var(--safe-left) + 8px));
  display: flex; align-items: center; gap: 4px; padding: 6px 14px 6px 10px; border-radius: 999px; cursor: pointer;
  font: 800 13px/1.2 "Noto Sans", sans-serif; color: #2a1a04;
  background: linear-gradient(180deg, #efce72, #e2b44e); border: 1px solid #f4dc8c;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
body.spectating .spec-exit:active { transform: scale(.95); }
body.spectating .spec-viewers:not([hidden]) {
  position: fixed; z-index: 72; top: calc(var(--safe-top) + 10px); right: max(8px, var(--safe-right));
  display: flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,.45); border: 1px solid rgba(212,175,55,.4); pointer-events: none;
}
.spec-viewers svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.table-viewers {
  position: fixed; z-index: 70; top: calc(var(--safe-top) + 46px); left: max(28px, calc(var(--safe-left) + 8px));
  display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: var(--gold-hi);
  background: rgba(0,0,0,.45); border: 1px solid rgba(212,175,55,.4); pointer-events: none;
}
.table-viewers[hidden] { display: none; }
.table-viewers svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body.spectating .table-viewers, body.tour-open .table-viewers { display: none; }
body.spectating .controls { visibility: hidden; }
body.spectating .skin-toggle, body.spectating .chat-toggle, body.spectating .voice-toggle { display: none !important; }
.hand .card.spec-back {
  background:
    repeating-linear-gradient(45deg, rgba(212,175,55,.5) 0 2px, rgba(212,175,55,0) 2px 6px),
    linear-gradient(160deg, var(--back-1), var(--back-2));
  border-color: rgba(212,175,55,.55);
}

/* Daily reminder: an offer card after registering, then a one-line switch */
.tour-remind {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25);
}
.tour-remind.offer { border-color: #ffc83d; background: linear-gradient(180deg, rgba(255,200,61,.16), rgba(255,200,61,.05)); padding: 12px 14px; }
.tour-remind-ico { font-size: 18px; }
.tour-remind-text { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.tour-remind.offer .tour-remind-text { font-weight: 700; }
.tour-remind.blocked .tour-remind-text { color: var(--danger); }
.tour-remind-actions { display: flex; gap: 8px; width: 100%; }
.tour-remind-actions .tour-remind-btn { flex: 1; }
.tour-remind-btn {
  min-height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 800; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
}
.tour-remind-btn.primary { color: #352000; background: linear-gradient(180deg, #ffd45e, #ffc83d); border-color: #ffe08a; }
.tour-remind-btn:disabled { opacity: .6; cursor: default; }

/* Invitation on opening the app */
#tourInviteOverlay { z-index: 60; }
.tour-invite-card { max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 22px 18px; }
.tour-invite-title { font-family: "Noto Serif", serif; font-size: 22px; font-weight: 900; line-height: 1.25; color: var(--gold-hi); margin: 10px 0 2px; }
.tour-invite-meta { font-size: 12.5px; color: var(--text-dim); margin: 2px 0 16px; }
.tour-invite-card .btn-confirm { margin-bottom: 0; }
.tour-invite-card .tour-secondary { margin-top: 6px; text-decoration: none; font-size: 14px; }
