/* Aurora: UNO, Memory, Mosaic, Taboo and the topic / scene picker
   Owned by the "games-a" screen group, and only by it. Loaded after /style.css and
   /aurora/base.css, so a rule here overrides both. Never edit style.css or
   base.css from here: use the tokens (--au-*, --ink, --muted...) and the base
   pieces (.card, .btn.brand, .au-hero, .au-tile, .au-chip, .au-stat, .au-ring,
   .au-progress, .seg/.tabs, .au-row, .au-dock...) described in base.css.
   Scope every rule to this group's own classes.

   The rules these screens follow:
   - the game surface is glass (.card or the same recipe); one orange 3D
     action per screen (.btn.brand, or the live draw pile in UNO);
   - the game's own hue (--g, "r g b", set by the React root from
     web/shared/hues.ts; a category's hue in the scene picker) appears only as
     a soft glow in a corner or a glowing dot, never as a fill or a border;
   - "it is your go" and "you can pick this" are teal, like the focus ring;
   - cards and tiles: radius 22, Outfit for words and numerals, and a lip
     that sinks when pressed;
   - UNO's four colours are game content and keep their hues, moved onto
     the night palette (a lit gradient face, a soft shadow). */

/* ===================================================================
   Shared bits
   =================================================================== */

/* A glass key: the answer buttons of UNO and Mosaic. Glass like every .btn,
   with a short lip under it that sinks when it is pressed. */
.uno-opt.btn, .mos-opt.btn {
  --lip: 3px; --key-lip: rgb(var(--fg) / 0.1); --key-drop: rgba(0, 0, 0, 0.6); --key-hl: var(--au-highlight);
  min-height: 54px; border-radius: var(--au-r-btn);
  font: 600 16px/1.2 var(--display); letter-spacing: -0.005em;
  box-shadow: inset 0 1px 0 var(--key-hl), inset 0 0 0 1px var(--line-hi), 0 var(--lip) 0 var(--key-lip), 0 12px 22px -14px var(--key-drop);
}
:root[data-theme="light"] :is(.uno-opt.btn, .mos-opt.btn) { --key-lip: rgba(30, 70, 130, 0.14); --key-drop: rgba(30, 70, 130, 0.45); --key-hl: #fff; }
.uno-opt.btn:active:not(:disabled), .mos-opt.btn:active:not(:disabled) { --lip: 1px; transform: translateY(2px); }
.uno-opt-sub, .mos-sub { font-family: var(--font); font-size: 11.5px; font-weight: 600; }

/* A score chip with an avatar (Memory, Mosaic, the end of UNO). */
.mem-score {
  gap: 7px; min-height: 34px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: linear-gradient(var(--au-glass-flat) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge);
}
.mem-score b { font: 700 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.mem-score.turn { border: 0; box-shadow: inset 0 1px 0 var(--au-highlight), 0 0 0 2px var(--au-teal), 0 0 18px -4px color-mix(in srgb, var(--au-teal) 70%, transparent); }
.mem-score .cm-avatar { box-shadow: none; }

/* The line that says how the last answer went (UNO, Mosaic). */
.uno-last, .mos-last {
  border-radius: var(--au-r-small); padding: 8px 8px 8px 12px; color: var(--ink);
  background: linear-gradient(var(--au-glass-flat) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge);
}
.uno-last.ok, .mos-last.ok { background: linear-gradient(90deg, color-mix(in srgb, var(--au-teal) 20%, transparent), color-mix(in srgb, var(--au-teal) 6%, transparent)), linear-gradient(var(--au-glass-base) 0 0); }
.uno-last.bad, .mos-last.bad { background: linear-gradient(90deg, color-mix(in srgb, var(--bad) 20%, transparent), color-mix(in srgb, var(--bad) 6%, transparent)), linear-gradient(var(--au-glass-base) 0 0); }
:is(.uno-last, .mos-last) > span:first-child { display: flex; flex: none; }
:is(.uno-last, .mos-last) > span:first-child .i { width: 18px; height: 18px; }
:is(.uno-last, .mos-last).ok > span:first-child .i { color: var(--au-teal); }
:is(.uno-last, .mos-last).bad > span:first-child .i { color: var(--bad); }

/* ===================================================================
   UNO de palabras
   =================================================================== */

/* The four colours on the night palette: a lit top, the colour, a deep
   bottom, and a dark ink for the word on the white oval. */
.uno, .uno-sheet {
  --u-red: #ef3e55; --u-red-hi: #ff7487; --u-red-lo: #b01d3a; --u-red-ink: #9e1230;
  --u-yellow: #ffb81f; --u-yellow-hi: #ffd86e; --u-yellow-lo: #d98400; --u-yellow-ink: #7a4c00;
  --u-green: #1fb877; --u-green-hi: #55e2a4; --u-green-lo: #10804f; --u-green-ink: #0d5636;
  --u-blue: #3577f0; --u-blue-hi: #6ea8ff; --u-blue-lo: #1c4cbc; --u-blue-ink: #0e3586;
  --u-wild: #141b36; --u-wild-hi: #2b3766; --u-wild-lo: #070b1c;
}
.c-red { --uc-hi: var(--u-red-hi); --uc-lo: var(--u-red-lo); }
.c-yellow { --uc-hi: var(--u-yellow-hi); --uc-lo: var(--u-yellow-lo); }
.c-green { --uc-hi: var(--u-green-hi); --uc-lo: var(--u-green-lo); }
.c-blue { --uc-hi: var(--u-blue-hi); --uc-lo: var(--u-blue-lo); }
.c-wild { --uc-hi: var(--u-wild-hi); --uc-lo: var(--u-wild-lo); }

.uno { gap: 16px; }

/* ---------- one card ---------- */
.uno-card {
  border-radius: calc(var(--cw) * 0.15);
  border: calc(var(--cw) * 0.045) solid rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(120% 60% at 22% 0, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(165deg, var(--uc-hi, var(--uc)), var(--uc) 52%, var(--uc-lo, var(--uc)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(4, 10, 25, 0.28),
    0 12px 24px -12px rgba(0, 0, 0, 0.7);
}
/* The oval: white, faintly lit from the top. */
.uno-card::before {
  background: linear-gradient(180deg, #ffffff, #e8eff9);
  box-shadow: inset 0 -2px 5px rgba(13, 33, 64, 0.12);
}
.uno-card.c-wild::before {
  background: conic-gradient(from 10deg, var(--u-red) 0 25%, var(--u-yellow) 0 50%, var(--u-green) 0 75%, var(--u-blue) 0);
  box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(154, 131, 255, 0.45);
}
.uc-corner { font-weight: 800; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.uc-word { font-weight: 700; letter-spacing: -0.01em; text-shadow: none; }
.uc-sub { text-shadow: none; }
.uc-big { font-weight: 800; }
.uc-ask { border-width: 1.5px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
:root[data-theme="light"] .uno-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(13, 33, 64, 0.16), 0 12px 22px -12px rgba(30, 70, 130, 0.55); }

/* The back: the night sky with its two glows, and the penguin on a disc of ice. */
.uno-back {
  background:
    radial-gradient(90% 60% at 100% 0, rgba(154, 131, 255, 0.55), transparent 70%),
    radial-gradient(80% 50% at 0 100%, rgba(62, 230, 200, 0.32), transparent 70%),
    linear-gradient(160deg, #1c4b8c, #132f62 55%, #0e2248);
}
.uno-back::before { background: radial-gradient(60% 60% at 50% 30%, #f4fbff, #bfe2f7 45%, #6fa9d6); box-shadow: 0 0 16px rgba(62, 230, 200, 0.35); }
.uno-back .uc-oval img { filter: drop-shadow(0 3px 6px rgba(4, 10, 25, 0.45)); }

/* ---------- the others, round the top ---------- */
.uno-opps { gap: 10px; }
.uno-seat {
  min-width: 92px; padding: 10px 12px 10px; border: 0; border-radius: var(--au-r-tile);
  background-color: var(--au-glass-base); background-image: var(--au-glass); box-shadow: var(--au-shadow);
  transition: box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out), opacity var(--dur-3);
}
.uno-seat.turn {
  border: 0; transform: translateY(2px);
  box-shadow: var(--au-shadow), 0 0 0 2px var(--au-teal), 0 0 26px -6px color-mix(in srgb, var(--au-teal) 75%, transparent);
}
.us-back {
  border-radius: 4px; border-color: rgba(255, 255, 255, 0.9);
  background: radial-gradient(90% 60% at 100% 0, rgba(154, 131, 255, 0.6), transparent 70%), linear-gradient(160deg, #1c4b8c, #0e2248);
  box-shadow: 0 3px 6px rgba(4, 10, 25, 0.45);
}
.us-name { font: 600 13.5px/1.2 var(--display); letter-spacing: -0.005em; }
.us-count {
  top: 6px; right: 6px; min-width: 24px; height: 22px; padding: 0 7px;
  font: 700 12.5px/1 var(--display); font-variant-numeric: tabular-nums;
  background: rgb(var(--fg) / 0.14); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--au-highlight);
}
.us-count.one { background: linear-gradient(180deg, var(--u-red-hi), var(--u-red)); color: #fff; box-shadow: 0 0 14px -2px var(--u-red); }

/* ---------- the timer ring: teal, then gold, then red ---------- */
.ur-track { stroke: rgb(var(--fg) / 0.12); }
.ur-fill { stroke: var(--au-teal); animation-name: ga-uno-ring; }
@keyframes ga-uno-ring {
  0% { stroke-dashoffset: 0; stroke: var(--au-teal); }
  70% { stroke: var(--au-gold); }
  100% { stroke-dashoffset: var(--len); stroke: var(--bad); }
}

/* ---------- the middle of the table ---------- */
/* Glass, lit from inside by the colour in play. */
.uno-center {
  --uc: transparent;
  gap: clamp(16px, 4vw, 40px); padding: 22px 14px 24px; border: 0; border-radius: var(--au-r-card);
  background-color: var(--au-glass-base);
  background-image:
    radial-gradient(55% 75% at 50% 50%, color-mix(in srgb, var(--uc) 30%, transparent), transparent 72%),
    radial-gradient(160px 130px at calc(100% - 8px) 0, rgb(var(--g, 62 230 200) / 0.26), transparent 72%),
    var(--au-glass);
  box-shadow: var(--au-shadow);
}
:root[data-theme="light"] .uno-center { background-image: radial-gradient(55% 75% at 50% 50%, color-mix(in srgb, var(--uc) 22%, transparent), transparent 72%), radial-gradient(160px 130px at calc(100% - 8px) 0, rgb(var(--g, 62 230 200) / 0.18), transparent 72%), var(--au-glass); }

.uno-drawpile .d1 { transition: transform var(--dur-3) var(--ease-spring), box-shadow var(--dur-2); }
/* My go and nothing to play: the pile is the one orange thing on the table. */
.uno-drawpile.live .d1 { box-shadow: 0 0 0 3px #ff7a1a, 0 14px 28px -10px rgba(255, 122, 26, 0.8); }
.uno-drawpile.live:active .d1 { transform: translateY(2px) rotate(-1deg); }
.udp-label {
  bottom: -10px; padding: 4px 10px; border: 0; border-radius: 999px; color: var(--ink);
  font: 700 12.5px/1.2 var(--display); font-variant-numeric: tabular-nums;
  background: var(--panel-solid); box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line-hi), 0 6px 14px -6px rgba(0, 0, 0, 0.55);
}
.uno-drawpile.live .udp-label {
  color: #fff; background: linear-gradient(180deg, #ffa04d, #ff7a1a);
  box-shadow: 0 3px 0 #c24f05, 0 10px 20px -8px rgba(255, 122, 26, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.uno-drawpile.live:active .udp-label { transform: translate(-50%, 2px); box-shadow: 0 1px 0 #c24f05, 0 6px 12px -8px rgba(255, 122, 26, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.uno-pilecard { border-radius: 16px; }
.uno-pile-meaning { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.uno-dot {
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), transparent 42%), var(--uc);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 0 22px 2px var(--uc);
}
.uno-dot.c-wild { background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), transparent 42%), conic-gradient(var(--u-red) 0 25%, var(--u-yellow) 0 50%, var(--u-green) 0 75%, var(--u-blue) 0); }
.uno-now-topic { font: 600 13px/1.2 var(--display); }
.uno-now-topic .i { color: var(--uc, var(--muted)); }

/* The four topics: glass chips, each with its colour as a glowing icon. */
.uno-legend { gap: 8px; }
.uno-topic {
  min-height: 32px; padding: 5px 12px 5px 9px; border: 0; color: var(--ink); font-size: 12.5px; font-weight: 700;
  background: linear-gradient(var(--au-glass-flat) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge);
  transition: box-shadow var(--dur-3), background var(--dur-3);
}
.uno-topic .i { color: var(--uc); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--uc) 70%, transparent)); }
.uno-topic.on {
  color: var(--ink);
  background: linear-gradient(color-mix(in srgb, var(--uc) 20%, transparent) 0 0), linear-gradient(var(--au-glass-flat) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1.5px var(--uc), 0 0 18px -4px var(--uc);
}
.uno-topic.on .i { color: var(--uc); }

/* ---------- whose turn, and what just happened ---------- */
.uno-turn { font: 600 16px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink-2); }
.uno-turn.mine { color: var(--au-teal); font-size: 20px; font-weight: 700; }
.uno-turn.mine .i { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--au-teal) 60%, transparent)); }
.uno-last { max-width: 100%; }
.uno-news { font-weight: 600; }

/* ---------- UNO! ---------- */
.uno-call {
  --lip: 5px;
  border: 0; padding: 12px 30px 11px;
  background: linear-gradient(180deg, #ff8a5c, #ef3e55 70%);
  box-shadow: 0 var(--lip) 0 #a3172f, 0 18px 34px -12px rgba(239, 62, 85, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: box-shadow var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.uno-call:not(.must):active { transform: translateY(3px); box-shadow: 0 2px 0 #a3172f, 0 10px 20px -10px rgba(239, 62, 85, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.uno-call-word { font-weight: 800; letter-spacing: 0.03em; text-shadow: 0 2px 0 rgba(120, 10, 30, 0.45); }
.uno-call-left { font-weight: 700; }
.uno-said { font-weight: 800; color: var(--u-red-hi); text-shadow: 0 0 18px rgba(239, 62, 85, 0.5); }

/* ---------- my hand ---------- */
.uno-hand-wrap {
  padding: 14px 0 6px; border: 0; border-radius: var(--au-r-card);
  background-color: var(--au-glass-base);
  background-image: radial-gradient(150px 120px at calc(100% - 8px) 0, rgb(var(--g, 62 230 200) / 0.22), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow);
  transition: box-shadow var(--dur-3);
}
.uno-hand-wrap.mine { border: 0; box-shadow: var(--au-shadow), 0 0 0 2px color-mix(in srgb, var(--au-teal) 75%, transparent), 0 0 34px -10px color-mix(in srgb, var(--au-teal) 70%, transparent); }
.uno-hand-head { gap: 9px; padding: 0 16px; }
.uno-hand-head b { font: 600 16px/1.2 var(--display); letter-spacing: -0.01em; }
.uno-hand-head .muted { font-size: 13px; font-weight: 600; }
.uno-hand-head .cm-avatar { box-shadow: none; }
.uno-hand { padding: 30px 18px 16px; scrollbar-width: thin; scrollbar-color: rgb(var(--fg) / 0.2) transparent; }
.uno-slot { border-radius: 14px; transition: transform var(--dur-3) var(--ease-spring), filter var(--dur-3); }
.uno-slot .uno-card { transition: box-shadow var(--dur-2), transform var(--dur-1) var(--ease-out); }
.uno-slot:focus-visible { outline: 2px solid var(--au-teal); outline-offset: 3px; }
/* What I can play wears the teal ring; what I cannot sinks into the table. */
.uno-hand-wrap.mine .uno-slot:not(.can) { filter: saturate(0.35) brightness(0.72); }
.uno-hand-wrap.mine .uno-slot.can .uno-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 0 0 3px var(--au-teal), 0 14px 28px -10px color-mix(in srgb, var(--au-teal) 75%, transparent);
}
/* Pressed, the card sinks a little into the hand. */
.uno-slot:active .uno-card { transform: translateY(3px) scale(0.98); }
:root[data-theme="light"] .uno-hand-wrap.mine .uno-slot:not(.can) { filter: saturate(0.4) brightness(0.9) opacity(0.75); }

/* ---------- the question a card asks, from the bottom ---------- */
.uno-sheet {
  gap: 14px; padding: 26px 18px calc(18px + env(safe-area-inset-bottom));
  border: 0; border-radius: var(--au-r-sheet) var(--au-r-sheet) 0 0;
  background: var(--au-sheet); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge), 0 -26px 60px -18px rgba(0, 0, 0, 0.7);
  animation: ga-uno-sheet var(--dur-3) var(--ease-out) both;
}
.uno-sheet::before { content: ''; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-hi); }
@keyframes ga-uno-sheet { from { transform: translate(-50%, 60px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
:root[data-theme="light"] .uno-sheet { box-shadow: inset 0 1px 0 #fff, 0 -20px 50px -20px rgba(30, 70, 130, 0.45); }
.uno-sheet-head { font: 600 17px/1.25 var(--display); letter-spacing: -0.01em; }
.uno-sheet-head b { font-weight: 600; }
.uno-type input { font: 600 18px/1.2 var(--display); }
.uno-colors { gap: 12px; }
.uno-color {
  --lip: 4px;
  min-height: 58px; border: 0; border-radius: var(--au-r-btn); font: 700 15.5px/1.2 var(--display);
  background: linear-gradient(180deg, var(--uc-hi), var(--uc));
  box-shadow: 0 var(--lip) 0 var(--uc-lo), 0 14px 26px -14px var(--uc), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1), filter var(--dur-2);
}
.uno-color.c-yellow { color: #3d2600; text-shadow: none; }
@media (hover: hover) and (pointer: fine) { .uno-color:hover { transform: none; filter: brightness(1.06); } }
.uno-color:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--uc-lo), 0 8px 16px -10px var(--uc), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

/* ---------- the end ---------- */
.uno-end { gap: 14px; }
.uno-end-word { font-weight: 800; background-image: linear-gradient(135deg, var(--u-red-hi), #ffa04d 50%, var(--u-yellow-hi)); filter: drop-shadow(0 6px 18px rgba(239, 62, 85, 0.35)); }
.uno-end h2 { font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; }

/* ---------- widths ---------- */
/* A desktop: the table in a centred column of its own, bigger cards. */
@media (min-width: 1024px) {
  .uno { width: 100%; max-width: 960px; margin: 0 auto; gap: 18px; }
  .uno-card { --cw: 92px; }
  .uno-card.big { --cw: 136px; }
  .uno-card.mid { --cw: 96px; }
  .uno-center { padding: 28px 24px 30px; gap: 48px; }
  .uno-drawpile { width: 100px; height: 140px; }
  .uno-drawpile .uno-card { --cw: 86px; }
  .uno-hand { padding: 34px 26px 18px; }
  .uno-slot { margin-left: -12px; }
  .uno-pile-meaning { max-width: 190px; font-size: 14px; }
}
/* A phone: the table fits, and the hand scrolls in its own row. */
@media (max-width: 480px) {
  .uno { gap: 12px; }
  .uno-card { --cw: 70px; }
  .uno-slot { margin-left: -18px; }
  .uno-hand { padding: 28px 14px 14px; }
  .uno-center { padding: 16px 8px 20px; }
  .uno-seat { min-width: 78px; padding: 8px 8px 8px; }
  .uno-colors { gap: 10px; }
}

/* ===================================================================
   The topic / scene picker (Memory, Mosaic)
   =================================================================== */

.tp { gap: 20px; }
.tp-head h2 { font: 700 clamp(26px, 3vw, 34px)/1.08 var(--display); letter-spacing: -0.025em; }
.tp-head p { margin-top: 6px; font-size: 15px; }

.tp-wait {
  padding: 13px 16px; border: 0; border-radius: var(--au-r-mission); font-weight: 600;
  background-color: var(--au-glass-base);
  background-image: radial-gradient(140px 90px at calc(100% - 6px) 0, color-mix(in srgb, var(--au-violet) 32%, transparent), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow);
}
.tp-wait-dots i { background: var(--au-violet); box-shadow: 0 0 8px color-mix(in srgb, var(--au-violet) 70%, transparent); }

/* The two big choices: glass cards, a glow in the corner, the icon in a glass disc. */
.tp-feature { gap: 12px; }
.tp-big {
  --hue: var(--au-teal);
  position: relative; gap: 14px; padding: 16px 18px; border: 0; border-radius: var(--au-r-card);
  background-color: var(--au-glass-base);
  background-image: radial-gradient(150px 120px at calc(100% - 8px) 0, color-mix(in srgb, var(--hue) 34%, transparent), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow), 0 4px 0 rgb(var(--fg) / 0.06);
  transition: transform var(--dur-1) var(--ease-out), filter var(--dur-2), box-shadow var(--dur-2);
}
.tp-random, .tp-mine { border: 0; background-color: var(--au-glass-base); }
.tp-mine { --hue: var(--au-violet); }
@media (hover: hover) and (pointer: fine) { .tp-big:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); box-shadow: var(--au-shadow), 0 5px 0 rgb(var(--fg) / 0.06); } }
.tp-big:active:not(:disabled) { transform: translateY(2px); box-shadow: var(--au-shadow), 0 1px 0 rgb(var(--fg) / 0.06); }
.tp-big-i, .tp-random .tp-big-i, .tp-mine .tp-big-i {
  width: 48px; height: 48px; border-radius: 50%; color: var(--hue);
  background: linear-gradient(var(--au-glass-hi) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge), 0 0 22px -6px color-mix(in srgb, var(--hue) 80%, transparent);
}
.tp-big-t b { font: 600 17px/1.2 var(--display); letter-spacing: -0.01em; }
.tp-big-t > span { font-size: 13px; font-weight: 600; }
.tp-meter { height: 6px; background: var(--line-hi); }
.tp-meter span { min-width: 9px; background: var(--au-progress); }
.tp-mine.short { opacity: 1; }
.tp-mine.short .tp-big-t b { color: var(--ink-2); }

/* A category: a section title with its icon glowing in the category's hue. */
.tp-group { gap: 12px; }
.tp-sub { gap: 10px; font: 600 var(--au-fs-section)/1.2 var(--display); letter-spacing: -0.01em; padding: 0 2px; }
.tp-sub-i {
  width: 30px; height: 30px; border-radius: 50%; color: rgb(var(--g));
  background: linear-gradient(var(--au-glass-flat) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), 0 0 16px -4px rgb(var(--g) / 0.8);
}
.tp-sub-i .i { width: 16px; height: 16px; }

/* A scene: a game tile. Glass, the hue's glow in the top-right, the icon in
   a glass disc, the level a chip, the name in Outfit. */
.tp-grid { gap: 10px; }
.tp-tile {
  position: relative; gap: 6px; padding: 14px 14px 13px; border: 0; border-radius: var(--au-r-tile);
  background-color: var(--au-glass-base);
  background-image: radial-gradient(120px 110px at calc(100% - 6px) 0, rgb(var(--g) / 0.34), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow), 0 4px 0 rgb(var(--fg) / 0.06);
  transition: transform var(--dur-1) var(--ease-out), filter var(--dur-2), box-shadow var(--dur-2);
  animation: tp-in var(--dur-4) var(--ease-out) backwards; animation-delay: calc(var(--i) * 18ms);
}
:root[data-theme="light"] .tp-tile { background-image: radial-gradient(120px 110px at calc(100% - 6px) 0, rgb(var(--g) / 0.26), transparent 72%), var(--au-glass); }
/* style.css lifts a hovered tile on any pointer; here only a real mouse does. */
.tp-tile:hover:not(:disabled) { border-color: transparent; transform: none; box-shadow: var(--au-shadow), 0 4px 0 rgb(var(--fg) / 0.06); }
@media (hover: hover) and (pointer: fine) {
  .tp-tile:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); box-shadow: var(--au-shadow), 0 5px 0 rgb(var(--fg) / 0.06); }
}
.tp-tile:active:not(:disabled) { transform: translateY(2px); box-shadow: var(--au-shadow), 0 1px 0 rgb(var(--fg) / 0.06); }
/* The one open for the room to look at. */
.tp-tile.open, .tp-tile.open:hover:not(:disabled) {
  transform: translateY(-1px); border-color: transparent;
  box-shadow: var(--au-shadow), 0 0 0 2px var(--au-teal), 0 0 26px -8px color-mix(in srgb, var(--au-teal) 75%, transparent);
}
.tp-tile:focus-visible, .tp-big:focus-visible { outline: 2px solid var(--au-teal); outline-offset: 2px; }
.tp-tile-top { margin-bottom: 6px; }
.tp-tile-i {
  width: 40px; height: 40px; border-radius: 50%; color: rgb(var(--g));
  background: linear-gradient(var(--au-glass-flat) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge), 0 0 18px -6px rgb(var(--g) / 0.9);
}
.tp-level {
  font: 700 11px/1 var(--display); letter-spacing: 0.04em; padding: 5px 8px; border-radius: 999px; color: var(--ink-2);
  background: linear-gradient(var(--au-glass-flat) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge);
}
.tp-level.big { font-size: 13px; padding: 7px 10px; }
.tp-name { font: 600 15px/1.2 var(--display); letter-spacing: -0.01em; }
.tp-blurb { font-size: 12.5px; font-weight: 500; }
.tp.watching .tp-tile:not(.open), .tp.watching .tp-big { opacity: 0.7; }

/* The scene, opened: a sheet with the category's glow; from the bottom on a phone. */
.tp-backdrop { background: var(--au-backdrop); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tp-scene {
  gap: 16px; padding: 24px; border: 0; border-radius: var(--au-r-sheet);
  background:
    radial-gradient(260px 200px at calc(100% + 30px) -30px, rgb(var(--g) / 0.3), transparent 70%),
    var(--au-sheet);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge), 0 40px 80px -24px rgba(0, 0, 0, 0.7);
  animation: tp-pop var(--dur-3) var(--ease-out);
}
:root[data-theme="light"] .tp-scene { background: radial-gradient(260px 200px at calc(100% + 30px) -30px, rgb(var(--g) / 0.22), transparent 70%), var(--au-sheet); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -24px rgba(30, 70, 130, 0.45); }
.tp-scene-i {
  width: 56px; height: 56px; border-radius: 50%; color: rgb(var(--g));
  background: linear-gradient(var(--au-glass-hi) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge), 0 0 28px -6px rgb(var(--g) / 0.9);
}
.tp-scene-t h2 { font: 700 24px/1.12 var(--display); letter-spacing: -0.02em; }
.tp-scene-t p { font-size: 14.5px; }
.tp-x {
  width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink);
  background: linear-gradient(rgb(var(--fg) / 0.12) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line-hi);
  transition: filter var(--dur-2), transform var(--dur-1);
}
.tp-x:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .tp-x:hover { filter: brightness(1.15); } }
.tp-phrase {
  padding: 14px 16px; border: 0; border-radius: var(--au-r-mission);
  background: linear-gradient(var(--au-glass-flat) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge);
}
.tp-phrase-l { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--au-teal); filter: none; }
.tp-phrase-row b { font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; }
.tp-words li { border-bottom-color: var(--line-hi); }
.tp-w b { font: 600 16px/1.25 var(--display); }
.tp-say {
  width: 36px; height: 36px; color: var(--au-teal);
  background: linear-gradient(var(--au-glass-flat) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge);
  transition: transform var(--dur-1), filter var(--dur-2);
}
.tp-say:hover { background: linear-gradient(var(--au-glass-hi) 0 0), linear-gradient(var(--au-glass-base) 0 0); }
.tp-say:active { transform: translateY(1px) scale(0.96); }
.tp-more.link-btn { color: var(--au-teal); text-decoration: none; font-weight: 700; }
.tp-looking { font-weight: 600; }

@media (min-width: 1024px) {
  .tp-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .tp-scene { width: min(600px, 100%); padding: 26px; }
}
@media (max-width: 560px) {
  .tp-tile { padding: 12px 12px 11px; }
  .tp-name { font-size: 14px; }
  .tp-big { padding: 14px 16px; }
  .tp-big-i, .tp-random .tp-big-i, .tp-mine .tp-big-i { width: 42px; height: 42px; }
  .tp-scene {
    position: relative; border-radius: var(--au-r-sheet) var(--au-r-sheet) 0 0;
    padding: 28px 18px calc(20px + env(safe-area-inset-bottom));
  }
  .tp-scene::before { content: ''; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-hi); }
}

/* ===================================================================
   Memory
   =================================================================== */

/* The bar over the board: glass, Memory's glow in the corner. */
.mem-bar.card {
  gap: 12px 16px; padding: 14px 16px;
  background-image: radial-gradient(170px 120px at calc(100% - 8px) 0, rgb(var(--g, 167 139 250) / 0.3), transparent 72%), var(--au-glass);
}
.mem-turn { gap: 8px; font: 600 16px/1.2 var(--display); letter-spacing: -0.01em; }
.mem-turn b { font-weight: 700; }
.mem-turn.mine { color: var(--au-teal); }
.mem-turn.mine > span:first-child .i { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--au-teal) 60%, transparent)); }
.mem-turn .pill .timer { font-variant-numeric: tabular-nums; }
.mem-streak { color: var(--brand-3); }
.mem-langs { font-size: 13px; font-weight: 600; gap: 6px; }
.mem-langs .flag { width: 18px; height: 13px; border-radius: 3px; }
/* Each language holds its arrow, flag and name apart, so the arrow never
   touches the flag ("Russian ↔ 🇬🇧 English"). */
.mem-lang { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mem-arrow { margin: 0 3px 0 1px; color: var(--muted); font-weight: 500; }
.mem-found { color: var(--muted); font-variant-numeric: tabular-nums; }

/* The board: tiles with a lip that sinks under a tap, radius 22 where there is room. */
.mem-board { --mem-r: clamp(12px, 2.4vw, 22px); gap: 12px; }
.mem-back, .mem-face { border-radius: var(--mem-r); }
.mem-back {
  border: 0;
  background:
    radial-gradient(90% 90% at 100% 0, rgb(var(--g, 154 131 255) / 0.5), transparent 65%),
    radial-gradient(80% 80% at 0 100%, rgba(62, 230, 200, 0.24), transparent 70%),
    linear-gradient(160deg, #1c4b8c, #132f62 55%, #0e2248);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 0 #091733, 0 14px 24px -14px rgba(0, 0, 0, 0.75);
  transition: transform var(--dur-1) var(--ease-out), filter var(--dur-2), box-shadow var(--dur-1);
}
/* A quiet back: the round logo mark at 60% over a faint dot grid, so sixteen
   of them read as one calm surface and the faces stand out. */
.mem-back::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 1.6px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(120% 120% at 50% 50%, #000 30%, transparent 85%); mask: radial-gradient(120% 120% at 50% 50%, #000 30%, transparent 85%);
}
.mem-back img { position: relative; width: auto; height: auto; max-height: 50%; max-width: 40%; opacity: 0.6; border-radius: 50%; filter: drop-shadow(0 4px 8px rgba(4, 10, 25, 0.45)); }
:root[data-theme="light"] .mem-back { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 0 #0c2550, 0 12px 22px -12px rgba(30, 70, 130, 0.55); }
.mem-card:not(.up):active .mem-back { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 0 #091733, 0 8px 14px -10px rgba(0, 0, 0, 0.75); }
.mem-card:focus-visible { outline: 2px solid var(--au-teal); outline-offset: 3px; border-radius: var(--mem-r); }
.mem-face {
  border: 0; gap: 3px;
  background-color: var(--panel-solid);
  background-image: var(--au-glass);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line-hi), 0 4px 0 rgb(var(--fg) / 0.08), 0 14px 24px -14px rgba(0, 0, 0, 0.6);
}
:root[data-theme="light"] .mem-face { background-image: linear-gradient(180deg, #ffffff, #f1f7fe); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px var(--line), 0 4px 0 rgba(30, 70, 130, 0.12), 0 12px 22px -14px rgba(30, 70, 130, 0.4); }
/* A pair found: the finder's colour as a ring and a glow (it is who, not a hue). */
.mem-card.matched .mem-face { border: 0; box-shadow: inset 0 1px 0 var(--au-highlight), 0 0 0 3px var(--by), 0 0 24px -4px var(--by); }
/* The face never spills: the flag sits in its corner, the word wraps inside
   the card and is clipped to its lines, the transliteration to one. */
.mem-face { overflow: hidden; padding: 26px 12px 10px; align-content: center; justify-items: center; }
/* The flag sits inside the rounded corner, clear of the curve, as a small
   rounded chip rather than a stamp on the edge. */
.mem-flag { top: 12px; left: 14px; line-height: 0; }
.mem-flag .flag { width: 18px; height: 13px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(var(--fg) / 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.35); }
.mem-text {
  font: 700 clamp(14px, 2vw, 20px)/1.15 var(--display); letter-spacing: -0.01em;
  max-width: 100%; overflow-wrap: anywhere; hyphens: auto;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.mem-text.long { font-size: clamp(12.5px, 1.6vw, 17px); }
.mem-sub { font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-emoji { font-size: 24px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25)); }
.mem-emoji img { width: 26px; height: 26px; }

/* Desktop: the bar and the board share the edges of the game header above
   them (up to a comfortable width, then centred), and the rows take their
   height from the window so the 4x4 board fits under the bar. */
@media (min-width: 1024px) {
  .mem-play { width: 100%; max-width: 1120px; margin: 0 auto; }
  .mem-board {
    max-width: none; gap: 14px;
    grid-auto-rows: clamp(104px, calc((100dvh - 380px) / 4), 168px);
  }
  .mem-board .mem-card { aspect-ratio: auto; height: 100%; }
}
/* Below desktop the AI translator button floats over the bottom right of the
   page: room under the board lets the last row scroll clear of it. */
@media (max-width: 1023px) {
  .mem-play { padding-bottom: 88px; }
}
/* Phone: four portrait cards a row, the bar in two even rows (whose go and
   the clock; languages and scores). */
@media (max-width: 480px) {
  .mem-board { gap: 8px; }
  .mem-board .mem-card { aspect-ratio: 4 / 5; }
  .mem-board { --mem-r: 16px; }
  .mem-bar.card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 10px 10px; padding: 12px 14px;
  }
  .mem-turn { grid-column: 1 / -1; min-height: 32px; flex-wrap: nowrap; font-size: 15px; }
  .mem-turn > :is(b, span:not(.pill)):not(:first-child) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mem-turn > :first-child, .mem-turn > .pill { flex: none; }
  .mem-turn > .pill:not(.mem-streak) { margin-left: auto; }
  .mem-langs { min-width: 0; min-height: 34px; flex-wrap: wrap; gap: 2px 6px; font-size: 12.5px; }
  .mem-scores { margin-left: 0; justify-content: flex-end; }
  .mem-bar.card:has(.mem-score + .mem-score + .mem-score) .mem-scores { grid-column: 1 / -1; justify-content: flex-start; }
  .mem-bar.card > .btn { grid-column: 1 / -1; }
  .mem-face { padding: 20px 5px 6px; gap: 1px; }
  .mem-flag { top: 8px; left: 9px; }
  .mem-flag .flag { width: 14px; height: 10px; }
  .mem-emoji { font-size: 18px; }
  .mem-emoji img { width: 20px; height: 20px; }
  .mem-text { font-size: clamp(12px, 3.6vw, 15px); -webkit-line-clamp: 3; line-clamp: 3; }
  .mem-text.long { font-size: clamp(10.5px, 3vw, 12.5px); }
  .mem-sub { font-size: 9.5px; }
}

/* ===================================================================
   Mosaic
   =================================================================== */

/* The picture's column is a glass card; the board in it a dark well of
   beads (an icy one by day) with Mosaic's glow in the corner. */
.mos-left {
  gap: 12px; padding: 16px; border-radius: var(--au-r-card);
  background-color: var(--au-glass-base);
  background-image: radial-gradient(170px 130px at calc(100% - 8px) 0, rgb(var(--g, 56 189 248) / 0.28), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow);
}
.mos-board {
  --mos-paper: #e6eef9;
  width: min(100%, 440px); gap: 3px; padding: 12px; border-radius: var(--au-r-tile);
  background: linear-gradient(180deg, #0a1835, #060f25);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 0 var(--au-highlight);
}
.mos-bead { border-radius: 32%; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.mos-bead.on {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0 12%, transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.06) 21% 30%, transparent 31%),
    var(--c);
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.32), 0 1px 2px rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] .mos-board {
  --mos-paper: #ffffff;
  background: linear-gradient(180deg, #d5e5f6, #c6dbf1);
  box-shadow: inset 0 2px 10px rgba(30, 70, 130, 0.22), inset 0 0 0 1px rgba(13, 33, 64, 0.06), 0 1px 0 #fff;
}
:root[data-theme="light"] .mos-bead:not(.on) { background: rgba(13, 33, 64, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
:root[data-theme="light"] .mos-bead.on { box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(30, 70, 130, 0.25); }

.mos-progress {
  gap: 7px; min-height: 30px; padding: 4px 12px; border-radius: 999px; color: var(--ink-2);
  font: 600 14px/1 var(--display); font-variant-numeric: tabular-nums;
  background: linear-gradient(var(--au-glass-flat) 0 0); box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--au-edge);
}
.mos-progress .i { color: rgb(var(--g, 56 189 248)); width: 16px; height: 16px; }
.mos-left .mem-scores { justify-content: center; margin-left: 0; }

/* The question: glass, the picture big, the word in Outfit. */
.mos-q.card { gap: 14px; background-image: radial-gradient(170px 130px at calc(100% - 8px) 0, rgb(var(--g, 56 189 248) / 0.26), transparent 72%), var(--au-glass); }
.mos-prompt { gap: 14px; }
.mos-prompt .muted { font-size: 13px; font-weight: 600; }
.mos-q-emoji { font-size: 48px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28)); }
.mos-q-emoji img { width: 52px; height: 52px; }
.mos-q-word { font: 700 26px/1.1 var(--display); letter-spacing: -0.02em; }
.mos-options { gap: 10px; }
.mos-last { font-size: 13.5px; }
.mos-guess.card { gap: 12px; }
.mos-guess > b { font: 600 var(--au-fs-card)/1.2 var(--display); }
.mos-guess-note { font-size: 13.5px; font-weight: 600; }
.mos-end.card { gap: 14px; }
.mos-name { gap: 14px; }

/* Off the phone, a long answer ("забронировать столик") wraps inside its key
   instead of pushing the answers card past its column: the tracks may shrink
   below a word's width and every box in the column may too. Whole words wrap
   first (break-word, not anywhere); the type follows the column so a long
   word ("вегетарианское") mostly fits, and when it still does not, the
   answer's lang (web/mosaic) lets hyphens:auto break it with a hyphen. Every
   row is as tall as the tallest, so the 2x2 keys stay a grid. */
@media (min-width: 481px) {
  .mos-right { container: mos-right / inline-size; }
  .mos-right, .mos-q.card, .mos-guess.card, .mos-end.card { min-width: 0; }
  .mos-options { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .mos-opt.btn { min-width: 0; padding-inline: 10px; font-size: clamp(14px, 4.2cqi, 18px); overflow-wrap: break-word; hyphens: auto; }
}
/* Too narrow for two keys of a long word side by side (1024-1180px): one per row. */
@container mos-right (max-width: 340px) {
  .mos-options { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  /* Two equal columns: next to the sidebar the stage is ~770px, and a fixed
     480px picture left the answers only ~270px. */
  .mos-layout { width: 100%; max-width: 1000px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .mos-left { padding: 20px; }
  .mos-board { width: min(100%, 440px); }
}
@media (max-width: 480px) {
  .mos-left { padding: 12px; }
  .mos-board { width: 100%; padding: 9px; gap: 2px; }
  .mos-q-word { font-size: 23px; }
}

/* ===================================================================
   Taboo
   =================================================================== */

/* The banners over a turn: glass, not the old orange. */
.taboo-play .banner {
  border: 0; border-radius: var(--au-r-card); padding: 16px 18px;
  color: var(--ink); font: 600 17px/1.3 var(--display); letter-spacing: -0.01em;
  background-color: var(--au-glass-base);
  background-image: radial-gradient(170px 120px at calc(100% - 8px) 0, rgb(var(--g, 248 113 113) / 0.26), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow);
}
.taboo-play .banner .i { color: var(--au-teal); }
.taboo-play .banner.soft { font-size: 15.5px; }
.taboo-play .hero-icon {
  border: 0; border-radius: 50%; color: var(--au-teal);
  background: linear-gradient(var(--au-glass-hi) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), 0 0 28px -6px color-mix(in srgb, var(--au-teal) 70%, transparent);
}

/* The card the describer holds: a night island (in the day too), Taboo's
   glow top-right, the word big in Outfit, the forbidden words as chips. */
.taboo-card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 420px; padding: 26px 22px 24px; border: 0; border-radius: var(--au-r-hero);
  background:
    radial-gradient(300px 240px at calc(100% + 40px) -40px, rgb(var(--g, 248 113 113) / 0.42), transparent 70%),
    radial-gradient(240px 200px at -40px calc(100% + 30px), rgba(154, 131, 255, 0.32), transparent 70%),
    linear-gradient(160deg, #1c4b8c, #132f62 55%, #0e2248);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 22px 44px -20px rgba(0, 0, 0, 0.65);
  animation: ga-card-in var(--dur-5) var(--ease-spring);
}
:root[data-theme="light"] .taboo-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 34px -18px rgba(30, 70, 130, 0.45); }
.taboo-card > .muted:first-child { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--au-teal); }
.taboo-card .word { margin-top: 6px; font: 700 clamp(34px, 6vw, 44px)/1.05 var(--display); letter-spacing: -0.025em; color: #fff; overflow-wrap: anywhere; }
.taboo-card .forbidden {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.taboo-card .forbidden > .muted { flex-basis: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.taboo-card .forbidden > .muted .i { color: #ff8197; width: 15px; height: 15px; }
.taboo-card .forbidden > span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px; border-radius: 999px;
  font: 600 16px/1.2 var(--display); color: #ffb3c0;
  background: linear-gradient(rgba(255, 93, 122, 0.16) 0 0), linear-gradient(rgba(255, 255, 255, 0.04) 0 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 93, 122, 0.35);
}
@keyframes ga-card-in { from { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(0.94); } to { opacity: 1; transform: none; } }

/* The play area follows the stage column like Pictionary and Pronunciation
   (banners and cards full width, in line with the game header and tip);
   only the held card keeps its narrow measure (max-width above, centred by
   style.css's margin: 0 auto). */
@media (min-width: 1024px) {
  .taboo-play { width: 100%; }
}

/* The words the people here saved (the old vocabulary board's "mine" chip). */
.vt-chip.mem-mine { border-color: transparent; background: linear-gradient(color-mix(in srgb, var(--au-teal) 14%, transparent) 0 0), linear-gradient(var(--au-glass-base) 0 0); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--au-teal) 55%, transparent); }
.vt-chip.mem-mine .vt-icon { color: var(--au-teal); }

/* ===================================================================
   Less motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  .taboo-card, .uno-sheet, .tp-tile, .tp-scene { animation: none !important; }
  .uno-slot, .uno-slot .uno-card, .uno-seat, .mem-back, .tp-tile, .tp-big, .uno-color, .uno-call { transition: none; }
}
