/* =====================================================================
   Space theme: a quiet deep-space backdrop behind everything, translucent glass surfaces,
   muted colours, squared "space-flight" lettering. Loaded after styles.css.
   ===================================================================== */
html { background: var(--sand); }
body { background: transparent !important; position: relative; }
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
#app { position: relative; z-index: 1; }
.modal, .chat-panel, .chat-peek, .react-layer { z-index: 60; }
body.space-off #space { display: none; }

/* ---- Header ---- */
.app-header { background: var(--cream) !important; border-bottom: 1px solid var(--line) !important; box-shadow: none; -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
.brand-name { font-family: var(--f-display) !important; font-weight: 700 !important; letter-spacing: .12em !important; font-size: 15px !important; }
.icon-btn { border-radius: 10px; color: var(--ink-3); }
.icon-btn:hover { background: var(--soft); color: var(--ink); }

/* ---- Buttons ---- */
.btn-primary { background: var(--terra); color: var(--on-accent); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); border-radius: 12px; font-weight: 600; letter-spacing: .01em; transition: background .15s, transform .08s, box-shadow .15s; }
.btn-primary:hover:not(:disabled) { background: var(--terra-d); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 3px 10px -6px rgba(0,0,0,.5); }
.btn-secondary { background: var(--soft); color: var(--ink-2); border: 1px solid var(--line-2) !important; box-shadow: none; border-radius: 12px; font-weight: 500; }
.btn-secondary:hover:not(:disabled) { background: var(--soft); border-color: var(--bark) !important; color: var(--ink); }
.btn-secondary:active:not(:disabled) { transform: translateY(1px); }
.account-btn { background: var(--terra) !important; color: var(--on-accent) !important; border: 1px solid rgba(255,255,255,.14); }
.account-btn:hover { background: var(--terra-d) !important; }
.account-btn.signed-in { background: var(--soft) !important; color: var(--ink) !important; border-color: var(--line-2); }
html.dark .account-btn.signed-in { color: var(--ink) !important; }
.home-play { font-family: var(--f-display) !important; letter-spacing: .22em; font-weight: 700; font-size: 17px !important; border-radius: 14px; background: var(--terra) !important; color: var(--on-accent) !important; border: 1px solid rgba(255,255,255,.16) !important; box-shadow: 0 14px 34px -14px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.12) !important; min-width: 220px; padding-left: 2rem; padding-right: 2rem; }
.home-play:hover:not(:disabled) { background: var(--terra-d) !important; }

/* ---- Glass surfaces ---- */
.player-card, .choice-card, .opt-card, .auth-box, .mode-banner, .account-menu, .lobby-row, .stat-card, .dq-bar, .coach, .res-board .res-row, .game-summary, .res-vote {
  background: var(--cream); border: 1px solid var(--line) !important; border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.modal-panel { background: var(--surface); border: 1px solid var(--line-2) !important; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.modal-backdrop { background: rgba(3,8,14,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html:not(.dark) .modal-backdrop { background: rgba(30,50,70,.35); }
.choice-card { transition: transform .15s, border-color .15s, background .15s; }
.choice-card:hover { transform: translateY(-1px); border-color: var(--line-2) !important; background: color-mix(in srgb, var(--cream) 80%, var(--terra) 8%); }
.choice-card:active { transform: translateY(0); }
.choice-ic { border: 1px solid var(--line-2); background: var(--soft); color: var(--pc, var(--terra)); border-radius: 12px; }
.choice-title { font-family: var(--f-display); letter-spacing: .1em; font-size: 15px; font-weight: 700; }
.player-card.active { border-color: var(--pc) !important; box-shadow: 0 0 0 1px var(--pc), 0 10px 30px -18px rgba(0,0,0,.55); }
.res-board .res-row { box-shadow: none; }
.seg { border: 1px solid var(--line-2); background: var(--soft); border-radius: 12px; }
.seg button.active { background: var(--terra); color: var(--on-accent); outline: none; box-shadow: none; }
.mini-seg button.active { background: var(--terra); color: var(--on-accent); outline: none; }
.toast { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
html.dark .toast, html.dark .chat-peek { background: var(--surface); color: var(--ink); }
.chat-form input, .custom-words, .ch-input, input[type="text"], input[type="email"], input[type="password"] { background: var(--soft-2); color: var(--ink); }

/* ---- Headings & lettering ---- */
h1.font-display, h2.font-display { letter-spacing: .08em; font-weight: 700; }
#statusTitle, #resTitle, #chTitle, #infoTitle, #confirmTitle { font-family: var(--f-display); letter-spacing: .04em; font-weight: 700; text-shadow: none; }
#statusSub { text-shadow: none; }
.tile { font-family: var(--f-tile); font-weight: 700; border: 2px solid var(--pc); border-bottom-width: 4px; background: var(--cream); color: var(--ink); box-shadow: none; border-radius: 10px; }
.tile.ghost { background: transparent; }
.tile.new { animation: tilePop .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes tilePop { 0% { transform: scale(.7); opacity: .4; } 100% { transform: none; opacity: 1; } }
.key { border: 1px solid var(--line-2); border-bottom-width: 3px; background: var(--cream); font-family: var(--f-display); font-weight: 700; color: var(--ink-2); border-radius: 9px; }
.key:hover:not(:disabled) { background: var(--soft); }
.key:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 1px; }
.key.sel { background: var(--pc); color: #fff; border-color: var(--pc); }
.p-avatar { border: 1px solid var(--line-2); border-radius: 12px; color: #fff; }
.p-score { font-family: var(--f-tile); }

/* ---- Wordmark: plain squared letters that drift in space ---- */
#homeScreen .wm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; animation: none; }
#homeScreen h1 { font-family: var(--f-display) !important; font-weight: 700 !important; letter-spacing: .1em; line-height: 1.12; animation: spaceBob 7s ease-in-out infinite; will-change: transform; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: .1em; }
.wordmark .wm-word { display: inline-flex; }
.wordmark .wm-word:nth-child(2) { font-size: .46em; letter-spacing: .14em; color: var(--muted); margin: .2em 0 .12em; padding-left: .14em; }
/* the logo is a transparent overlay (no box, no background) that bobs in step with the wordmark under it */
/* the logo now carries the whole name, so it is large */
.home-logo { width: min(400px, 94vw); width: min(400px, 94vw, 58dvh); aspect-ratio: 600 / 632; height: auto; display: block; border-radius: 0; box-shadow: none !important; border: 0 !important; background: none; animation: spaceBob 7s ease-in-out infinite; will-change: transform; pointer-events: none; user-select: none; margin-bottom: -6px; }
@keyframes spaceBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-7px) rotate(.35deg); } 50% { transform: translateY(-2px) rotate(0deg); } 75% { transform: translateY(-8px) rotate(-.35deg); } }
@media (prefers-reduced-motion: reduce) { #homeScreen h1, .home-logo, .tile.new { animation: none !important; } }
#homeScreen { text-shadow: none; }
#homeScreen .btn-primary, #homeScreen .auth-box { text-shadow: none; }

/* ---- Footer ---- */
.app-footer { color: var(--dim); border-top: 1px solid var(--line); background: transparent; }

/* ---- Legibility pass ---- */
[data-tc] { color: var(--tc-src, var(--ink)); }
html:not(.dark) [data-tc] { color: color-mix(in srgb, var(--tc-src, #16222d) 52%, #0b1219); }
:root { --btn: var(--terra); }
html.dark { --btn: #98602e; }
.btn-primary, .account-btn, .home-play, .seg button.active, .mini-seg button.active { background: var(--btn) !important; color: #fff !important; }
.btn-primary:hover:not(:disabled), .account-btn:hover, .home-play:hover:not(:disabled) { background: var(--terra-d) !important; }
html.dark .btn-primary:hover:not(:disabled), html.dark .account-btn:hover, html.dark .home-play:hover:not(:disabled) { background: #85521f !important; }
.account-btn.signed-in { background: var(--soft) !important; color: var(--ink) !important; }
.p-avatar { color: #0b1219 !important; }
.key.sel { color: #0b1219; }
.app-footer, .app-footer a { color: var(--muted); }
html:not(.dark) { --muted: #44586a; --dim: #566a7c; --bark: #3b4e60; }
html.dark { --muted: #9aaab8; --dim: #8394a4; }
.crumb.muted, .crumb { color: var(--ink-3); }
.res-row .delta.neg { color: #f0a090; }
html:not(.dark) .res-row .delta.neg { color: #8f3a2a; }
html:not(.dark) .text-zinc-400, html:not(.dark) .text-zinc-500 { color: var(--muted) !important; }
button.crumb { color: color-mix(in srgb, var(--pc) 40%, var(--ink)); }
.btn-primary:disabled { background: var(--soft) !important; color: var(--muted) !important; border-color: var(--line-2); box-shadow: none; opacity: 1; cursor: not-allowed; }

/* Anything that used the ink colour as a button fill must be readable in dark mode too */
.lobby-join, .opt-card.active .opt-icon, .gs-badge, .chat-send, .d-go, .d-rank.top { background: var(--btn) !important; color: #fff !important; }
.lobby-join:hover, .chat-send:hover, .d-go:hover { background: var(--terra-d) !important; }
html.dark .lobby-join:hover, html.dark .chat-send:hover, html.dark .d-go:hover { background: #85521f !important; }
html.dark .toast, html.dark .chat-peek { background: var(--surface) !important; color: var(--ink) !important; }
.invite-banner { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line-2); }

/* ---- One typeface everywhere: Void Display (Inter only fills in symbols it does not have) ---- */
html, body, button, input, select, textarea, option { font-family: var(--f-display) !important; font-synthesis: none; }
body { letter-spacing: .015em; word-spacing: .12em; }
.wordmark { text-shadow: 0 0 28px rgba(150,190,230,.28); }
.wordmark .wm-word { color: var(--ink); }
.wordmark .wm-word:nth-child(2) { color: var(--muted); }
:root { --f-body: 'Void Display', 'Inter', system-ui, sans-serif; }

#shootLayer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.shoot { position: absolute; left: 0; top: 0; display: block; border-radius: 99px; transform-origin: 100% 50%; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(90deg, rgba(180,210,255,0), rgba(220,235,255,.4) 70%, rgba(255,240,220,.95)); }
.shoot::after { content: ''; position: absolute; right: -1px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgb(255,246,230); }
html:not(.dark) .shoot { background: linear-gradient(90deg, rgba(70,90,240,0), rgba(70,90,240,.55) 70%, rgba(86,70,230,.95)); }
html:not(.dark) .shoot::after { background: rgb(52,40,190); box-shadow: 0 0 6px rgba(90,120,255,.9); }

/* In a game, blurred glass over a moving backdrop is re-computed every frame: switch it off so the arena stays smooth. */
body.in-game .app-header, body.in-game .player-card, body.in-game .choice-card, body.in-game .opt-card, body.in-game .dq-bar, body.in-game .coach, body.in-game .game-summary, body.in-game .res-vote, body.in-game .res-board .res-row, body.in-game .lobby-row, body.in-game .mode-banner { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Short intro text on the home screen (also read by search engines) */
.home-about { text-transform: none; letter-spacing: 0; font-family: var(--f-body); margin-top: 2.25rem; max-width: 26rem; color: var(--muted); font-size: 12.5px; line-height: 1.55; text-align: center; }
.home-about h2 { font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 .35rem; font-weight: 700; }
.home-about p { margin: 0; }

/* ---- Crimson buttons: every main button shares the void's red gradient (white text, readable in light and dark) ---- */
:root { --btn-grad: linear-gradient(135deg, #e0364a 0%, #b81c34 48%, #7d0f26 100%); --btn-grad-h: linear-gradient(135deg, #ee4a5d 0%, #c8243d 48%, #8e1430 100%); }
.btn-primary, .account-btn, .home-play, .seg button.active, .mini-seg button.active, .lobby-join, .opt-card.active .opt-icon, .gs-badge, .chat-send, .d-go, .d-rank.top { background: var(--btn-grad) !important; color: #fff !important; text-shadow: 0 1px 1px rgba(40,0,10,.35); }
.btn-primary:hover:not(:disabled), .account-btn:hover, .home-play:hover:not(:disabled), .lobby-join:hover, .chat-send:hover, .d-go:hover,
html.dark .btn-primary:hover:not(:disabled), html.dark .account-btn:hover, html.dark .home-play:hover:not(:disabled), html.dark .lobby-join:hover, html.dark .chat-send:hover, html.dark .d-go:hover { background: var(--btn-grad-h) !important; }
.account-btn.signed-in { background: var(--soft) !important; color: var(--ink) !important; text-shadow: none; }
.btn-primary:disabled { background: var(--soft) !important; color: var(--muted) !important; text-shadow: none; }
.home-play { box-shadow: 0 14px 34px -14px rgba(180,20,45,.6), inset 0 1px 0 rgba(255,255,255,.18) !important; }
html.dark .account-btn:not(.signed-in), html.dark .btn-primary:not(:disabled), html.dark .home-play { background: var(--btn-grad) !important; color: #fff !important; }
html.dark .account-btn:not(.signed-in):hover { background: var(--btn-grad-h) !important; }

/* ---------- Daily twists ---------- */
.tile.opening { border-style: dashed; background: color-mix(in srgb, var(--pc) 10%, var(--cream)); }
.tile.poltergeist { border-style: dotted; color: #7c5cd6; background: color-mix(in srgb, #a78bfa 14%, var(--cream)); animation: ghostIn .6s ease-out; }
@keyframes ghostIn { 0% { opacity: 0; transform: translateY(-14px) scale(.7); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
.tile.faded { color: color-mix(in srgb, var(--pc) 55%, transparent); background: transparent; border-style: dashed; font-size: .8em; }
.tile.faded.fresh { animation: inkFade 1s ease-out; }
@keyframes inkFade { 0% { color: var(--ink); background: var(--cream); border-style: solid; } 100% { color: color-mix(in srgb, var(--pc) 55%, transparent); } }
.kbd .key.banned { opacity: .28; text-decoration: line-through; filter: saturate(0); cursor: not-allowed; }
.kbd .key { position: relative; }
.kbd.scrabble .key .pts { position: absolute; right: 5px; bottom: 3px; font-size: .55em; line-height: 1; font-weight: 700; opacity: .75; }
.dbl-btn.armed { background: var(--pc, #6366f1); color: #fff; border-color: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, #6366f1) 30%, transparent); }
.guess-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.guess-grid .key { height: 40px; text-transform: uppercase; font-weight: 700; }
.guess-grid .key:disabled { opacity: .3; }
.guess-big { font-size: 1.4em; letter-spacing: .05em; }
@media (prefers-reduced-motion: reduce) { .tile.poltergeist, .tile.faded.fresh { animation: none !important; } }

/* =====================================================================
   Guided tour banner + modal, and the Concise / Detailed tabs
   ===================================================================== */
.tut-banner { width: 100%; display: flex; align-items: center; gap: .85rem; text-align: left; margin-bottom: 1rem; padding: .85rem 1rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--terra) 55%, var(--line-2)); background: linear-gradient(135deg, color-mix(in srgb, var(--terra) 20%, var(--cream)), var(--cream)); color: var(--ink); cursor: pointer; position: relative; transition: transform .15s, border-color .15s; }
.tut-banner:hover { transform: translateY(-1px); border-color: var(--terra); }
.tut-banner-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--btn-grad, var(--terra)); color: #fff; }
.tut-banner-ic svg { width: 22px; height: 22px; }
.tut-banner-t { display: block; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .02em; line-height: 1.2; }
.tut-banner-s { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.tut-banner-go { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: 13px; padding: .4rem .75rem; border-radius: 999px; background: var(--btn-grad, var(--terra)); color: #fff; }
.tut-banner-go svg { width: 15px; height: 15px; }
/* "Tap me": bounces and glows until the tour has been opened once */
.tut-banner.tut-attn { animation: tutJump 1.9s cubic-bezier(.3,.7,.4,1) infinite; }
.tut-banner.tut-attn::after { content: ''; position: absolute; inset: -2px; border-radius: 18px; border: 2px solid var(--terra); opacity: 0; pointer-events: none; animation: tutRing 1.9s ease-out infinite; }
.tut-banner.tut-attn .tut-banner-go { animation: tutNudge 1.9s ease-in-out infinite; }
@keyframes tutJump { 0%, 52%, 100% { transform: translateY(0); } 12% { transform: translateY(-9px); } 24% { transform: translateY(0); } 34% { transform: translateY(-4px); } 44% { transform: translateY(0); } }
@keyframes tutRing { 0%, 8% { opacity: .85; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.06, 1.35); } }
@keyframes tutNudge { 0%, 50%, 100% { transform: translateX(0); } 62% { transform: translateX(5px); } 74% { transform: translateX(0); } }

/* Concise / Detailed in Settings: the concise tab hides the long descriptions */
#settingsModal[data-tab="concise"] .s-detail { display: none !important; }
.view-tabs[role="tablist"] button { flex: 1; justify-content: center; }
.concise-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.concise-list li { display: flex; gap: .6rem; align-items: baseline; }
.concise-list li > i, .concise-list li > svg { flex: none; width: 16px; height: 16px; color: var(--terra); transform: translateY(3px); }
.concise-list b { color: var(--ink); }
.concise-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.concise-tags span { font-size: 12.5px; font-weight: 600; padding: .28rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--soft); color: var(--ink-2); }

/* One-line descriptions for every setting (Concise tab); the Detailed tab shows the longer text instead where there is one */
.s-short { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: .5rem; }
.s-short b { color: var(--ink); font-weight: 600; }
#settingsModal[data-tab="detailed"] .s-short.s-has-detail { display: none; }

/* ---- Tutorial on the game screen (tutorial.js) ---- */
.tut-bar { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; margin: 0 0 .5rem; }
.tut-bar.hidden { display: none; }
.tut-skip { align-self: center; font-size: 12.5px; color: var(--muted); padding: .2rem .5rem; }
.tut-skip:hover { color: var(--ink); text-decoration: underline; }
.tut-extra { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.tut-extra:empty { display: none; }
.tut-seg { width: 100%; flex-wrap: wrap; }
.tut-pills { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.tut-pill { font-size: 13px; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--cream); }
.tut-pill.ok { border-color: #2fb344; color: #5fd47a; } .tut-pill.bad { border-color: #e8342f; color: #ff7d78; text-decoration: line-through; text-decoration-color: rgba(255,125,120,.6); }
.tut-note { font-size: 13px; color: var(--ink-3); text-align: center; } .tut-note b { color: var(--ink); }
.coach.tut-bad { border-color: #e8342f !important; animation: tutShake .35s; } .coach.tut-good { border-color: #2fb344 !important; }
@keyframes tutShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
body.tutorial .coach .coach-head .ml-auto { display: none; }
body.tutorial #coachText { display: block !important; font-size: 14px; line-height: 1.55; }
body.tutorial #gameScreen .coach-text { display: block; }
.tut-glow { animation: tutGlow 1.4s ease-in-out infinite; }
@keyframes tutGlow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--terra) 0%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--terra) 55%, transparent); } }
.tut-hd { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; } .tut-hd.done { background: color-mix(in srgb, var(--terra) 55%, var(--line-2)); } .tut-hd.on { background: var(--terra); transform: scale(1.3); }
.tile.tut-hit { box-shadow: 0 0 0 4px rgba(232,52,47,.55); } .tile.tut-gain { box-shadow: 0 0 0 4px rgba(47,179,68,.55); }
.tut-odds { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .tut-glow, .coach.tut-bad { animation: none !important; } }

/* Speaker button in the header */
#btnSound .snd-off { display: none; }
#btnSound.is-off .snd-on { display: none; }
#btnSound.is-off .snd-off { display: inline-block; }
#btnSound.is-off { opacity: .75; }

/* Emblems */
.d-badge.emb { background: transparent; width: 72px; height: 72px; }
.d-badge.emb .emblem, .res-icon .emblem { width: 100%; height: 100%; }
.d-badge.emb svg { width: 72px; height: 72px; }
.emblem.win { color: #d9a21b; } .emblem.lose { color: #7c7a95; } .emblem.flag { color: #8a8aa0; }
.res-icon:has(.emblem) { background: transparent; width: 56px; height: 56px; }
.res-icon .emblem { width: 56px !important; height: 56px !important; }

.tut-banner.tut-bottom { margin-top: 1.5rem; margin-bottom: 0; }

.choice-card.hidden { display: none !important; }
.q-ex { display: block; margin-top: 3px; opacity: .78; font-size: .93em; }

.tut-card { position: relative; }
.tut-card.tut-attn { margin-bottom: .75rem; animation: tutJump 1.9s cubic-bezier(.3,.7,.4,1) infinite; }
.tut-card.tut-attn::after { content: ''; position: absolute; inset: -2px; border-radius: 18px; border: 2px solid var(--terra); opacity: 0; pointer-events: none; animation: tutRing 1.9s ease-out infinite; }
#btnArena.is-off { opacity: .7; position: relative; }
#btnArena.is-off::after { content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; background: currentColor; transform: rotate(-45deg); border-radius: 2px; }

/* Game settings line under the mode banner (phones/tablets; the header badge covers wide screens) */
.match-line { display: block; margin-top: .6rem; padding: .5rem .8rem; border-radius: 14px; font-size: 12px; line-height: 1.45; letter-spacing: .03em; color: var(--ink-3); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); text-transform: uppercase; }
@media (min-width: 1280px) { .match-line { display: none; } }
.rule-summary-btn { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--ink-2, var(--ink)); font-weight: 600; letter-spacing: .04em; }
.rule-summary-btn:hover { border-color: var(--terra); }
.rule-summary-btn svg { width: 18px; height: 18px; }

/* ======================================================================
   Round 80 follow-up 23: presentation overhaul. No more icon tiles, boxed cards or pill tags.
   ====================================================================== */
/* --- option cards: a slab with a bold colour edge, a clipped corner and a big glyph bleeding off the right-hand side --- */
.choice-card { position: relative; overflow: hidden; min-height: 84px; padding: 1rem 5.2rem 1rem 1.25rem; gap: 0;
  border: 0 !important; border-left: 5px solid var(--pc) !important; border-radius: 4px 26px 4px 26px !important;
  background: linear-gradient(100deg, color-mix(in srgb, var(--pc) 20%, var(--cream)) 0%, var(--cream) 62%) !important;
  box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--pc) 70%, #000), inset 0 0 0 1px color-mix(in srgb, var(--pc) 22%, transparent); }
.choice-card:hover { transform: translateX(3px); background: linear-gradient(100deg, color-mix(in srgb, var(--pc) 30%, var(--cream)) 0%, var(--cream) 70%) !important; border-color: var(--pc) !important; }
.choice-card .choice-ic { position: absolute; right: -14px; top: 50%; width: 112px; height: 112px; margin: -56px 0 0; border: 0; border-radius: 0; background: none; color: var(--pc);
  transform: rotate(-12deg); transition: transform .25s; }
.choice-card:hover .choice-ic { transform: rotate(-4deg) scale(1.06); }
.choice-card .choice-ic svg { width: 100%; height: 100%; stroke-width: 1.2; opacity: .75; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--pc) 55%, transparent)); }
.choice-card > svg:last-child, .choice-card > i[data-lucide="chevron-right"] { display: none; }
.choice-card .choice-title { font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.choice-card .choice-desc { margin-top: 4px; max-width: 24ch; }
.choice-card.tut-card .choice-ic svg { opacity: .7; }
@media (max-width: 480px) { .choice-card { min-height: 76px; padding: .8rem 4.6rem .8rem 1.05rem; } .choice-card .choice-ic { width: 96px; height: 96px; margin-top: -48px; right: -12px; } }

/* --- bare icons everywhere else: the glyph itself, bigger, with a soft glow, no tile --- */
.opt-icon, .mb-ic, .d-quest-ic { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.opt-icon { color: var(--bark); width: 40px; height: 40px; } .opt-icon svg { width: 34px; height: 34px; stroke-width: 1.5; }
.opt-card.active .opt-icon { color: var(--terra) !important; background: none !important; } .opt-card.active .opt-icon svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--terra) 60%, transparent)); }
.mode-banner .mb-ic { width: auto; height: auto; color: var(--mb-c) !important; } .mode-banner .mb-ic svg { width: 28px; height: 28px; stroke-width: 1.6; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mb-c) 55%, transparent)); }
#gameScreen .mode-banner .mb-ic svg { width: 24px; height: 24px; }

/* --- daily start: a poster, not a form --- */
#dailyScreen .d-hero { position: relative; background: none; border: 0; box-shadow: none; padding: 1.2rem .25rem 1rem; text-align: left; }
#dailyScreen .d-hero > * { position: relative; }
#dailyScreen .d-hero .d-badge { position: absolute !important; right: -22px; top: -8px; width: 190px; height: 190px; margin: 0; z-index: 0; border-radius: 0; background: none !important; color: var(--ochre); transform: rotate(14deg); opacity: .9; }
#dailyScreen .d-hero .d-badge svg { width: 100%; height: 100%; stroke-width: .9; opacity: .3; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--ochre) 55%, transparent)); }
#dailyScreen .d-hero .d-badge.emb { position: absolute !important; right: -4px; top: 0; width: 104px; height: 104px; margin: 0; transform: rotate(8deg); opacity: 1; }
#dailyScreen .d-hero .d-badge.emb svg { opacity: 1; stroke-width: 1.4; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--ochre) 50%, transparent)); }
#dailyScreen .d-hero .d-badge.muted { right: -10px; top: -6px; width: 140px; height: 140px; }
#dailyScreen .d-hero .d-badge.muted svg { opacity: .35; }
#dailyScreen .d-hero h2 { font-size: clamp(2rem, 9vw, 2.9rem); }
#dailyScreen .d-hero:has(.d-badge.emb) h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); max-width: 6em; margin-top: .2rem; }
/* result: a big score, then a ledger with dotted leaders instead of pills and boxes */
#dailyScreen .d-total { margin-top: .6rem !important; font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
#dailyScreen .d-total span { display: block; font-size: clamp(4rem, 22vw, 5.6rem); letter-spacing: -.02em; line-height: .9; margin: 0 0 .1rem; background: linear-gradient(180deg, #ffd24d, #e07a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
#dailyScreen .d-break { display: block; max-width: 22rem; margin-top: 1rem !important; }
#dailyScreen .d-break span { display: flex; align-items: baseline; gap: .5rem; padding: .3rem 0; border-radius: 0; background: none !important; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
#dailyScreen .d-break span::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted var(--line-2); transform: translateY(-3px); }
#dailyScreen .d-break span b { order: 2; margin: 0; font-size: 15px; }
#dailyScreen .d-break span.on { color: var(--ink-2); } #dailyScreen .d-break span.on b { color: var(--moss-d); }
#dailyScreen .d-stats { display: flex !important; justify-content: flex-start !important; max-width: none; }
#dailyScreen .d-stats > div { border: 0; padding: 0; display: flex; align-items: baseline; gap: .55rem; }
#dailyScreen .d-stats .d-big { font-size: 44px; color: var(--ochre); }
#dailyScreen .d-stats .d-lbl { font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
#dailyScreen .d-hero .flex.gap-2 { margin-left: 0; max-width: none; }
#dailyScreen .d-hero .btn-secondary { border-radius: 4px 16px 4px 16px; background: transparent; border: 1.5px solid var(--ochre) !important; color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
#dailyScreen .d-hero .btn-secondary svg { color: var(--ochre); }

/* the bonus quest: a gold ticket with perforated edges and a tear-off bonus stub */
.d-quest { position: relative; gap: 0; padding: .95rem 0 .95rem 1.25rem; border: 0 !important; border-radius: 6px; color: #2a1b04;
  background: linear-gradient(135deg, #ffd24d, #f0a020) !important;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  box-shadow: none; }
.d-quest .d-quest-ic { display: none; }
.d-quest .d-quest-k { color: #6b4300; letter-spacing: .14em; }
.d-quest .d-quest-t { color: #1c1202; font-size: 18px; }
.d-quest .d-quest-d { color: #3b2806; }
.d-quest .d-quest-d b { color: #1c1202; }
.d-quest .d-quest-b { align-self: stretch; display: grid; place-items: center; min-width: 74px; margin-left: .8rem; padding: 0 .9rem 0 .8rem; border-left: 2px dotted rgba(60,36,0,.45); font-size: 24px; color: #1c1202; }
.d-quest.done { background: linear-gradient(135deg, #7be08a, #2fb344) !important; } .d-quest.done .d-quest-k, .d-quest.done .d-quest-b { color: #07310f; }
.d-quest.missed { background: var(--soft) !important; color: var(--muted); } .d-quest.missed .d-quest-t, .d-quest.missed .d-quest-d, .d-quest.missed .d-quest-k, .d-quest.missed .d-quest-b { color: var(--muted); }
@media (max-width: 480px) { .d-quest { flex-wrap: nowrap; align-items: stretch; } .d-quest > div:nth-child(2) { flex: 1 1 auto; } .d-quest-b { margin-left: .6rem; font-size: 20px; min-width: 60px; } }

/* the rules: one printed spec line between two rules, not a pile of pills */
.d-rules { gap: 0; justify-content: flex-start; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: .55rem 0; }
.d-rules span { height: auto; padding: 0; border-radius: 0; background: none; font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.d-rules span:not(:last-child)::after { content: '/'; margin: 0 .65em; color: var(--ochre); font-weight: 700; }
.d-rules svg { display: none; }
#dailyScreen .d-hero .btn-primary { margin-left: 0; }

/* ======================================================================
   Mission control pass: the same cards, now in the game's own language. Quiet palette: ink, hairlines, one amber accent.
   ====================================================================== */
/* option cards: a dark glass slab, a hairline frame with crop marks, a sector number, and a glyph sitting inside an orbit ring */
section { counter-reset: sector; }
.choice-card { counter-increment: sector; background: color-mix(in srgb, var(--cream) 92%, transparent) !important; border-left: 3px solid color-mix(in srgb, var(--pc) 80%, var(--cream)) !important; border-radius: 3px !important;
  box-shadow: inset 0 0 0 1px var(--line-2) !important; padding-top: 1.55rem; }
.choice-card:hover { background: color-mix(in srgb, var(--cream) 80%, var(--pc) 10%) !important; transform: translateX(2px); }
.choice-card::before { content: 'SECTOR ' counter(sector, decimal-leading-zero); position: absolute; left: 1.25rem; top: .5rem; font-family: var(--f-display); font-size: 9.5px; letter-spacing: .26em; color: var(--dim); }
.choice-card::after { content: ''; position: absolute; right: 16px; top: 50%; width: 92px; height: 92px; margin-top: -46px; border-radius: 50%; border: 1px solid var(--line-2); pointer-events: none;
  box-shadow: 0 0 0 10px transparent; background: radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 62%); }
.choice-card .choice-ic { right: 14px; width: 96px; height: 96px; margin-top: -48px; transform: none; z-index: 1; color: color-mix(in srgb, var(--pc) 75%, var(--ink)); }
.choice-card:hover .choice-ic { transform: rotate(-8deg); }
.choice-card .choice-ic svg { padding: 22px; stroke-width: 1.4; opacity: .9; filter: none; }
.choice-card .choice-title { font-size: 16px; letter-spacing: .14em; }
.choice-card.tut-card.tut-attn::after { inset: -2px; width: auto; height: auto; margin: 0; border-radius: 4px; background: none; box-shadow: none; }
@media (max-width: 480px) { .choice-card { padding-top: 1.45rem; } .choice-card .choice-ic { width: 84px; height: 84px; margin-top: -42px; right: 12px; } .choice-card::after { width: 80px; height: 80px; margin-top: -40px; right: 14px; } .choice-card .choice-ic svg { padding: 19px; } }

/* hero: a kicker, and orbit rings instead of a giant glyph */
.d-kick { font-family: var(--f-display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ochre); }
#dailyScreen .d-hero .d-kick + h2 { margin-top: .35rem !important; }
#dailyScreen .d-hero .d-badge:not(.emb):not(.muted) { right: -70px; top: 6px; width: 230px; height: 230px; border-radius: 50%; transform: none; background: none !important; border: 1px solid var(--line-2); opacity: .45;
  box-shadow: inset 0 0 0 28px transparent, 0 0 0 34px transparent; }
#dailyScreen .d-hero .d-badge:not(.emb):not(.muted)::before { content: ''; position: absolute; inset: 34px; border-radius: 50%; border: 1px dashed var(--line-2); }
#dailyScreen .d-hero .d-badge:not(.emb):not(.muted)::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ochre); left: 18px; top: 38px; box-shadow: 0 0 10px var(--ochre); }
#dailyScreen .d-hero .d-badge:not(.emb):not(.muted) svg { position: absolute; inset: 78px; width: 74px; height: 74px; opacity: .55; stroke-width: 1.2; filter: none; }

/* the assignment: a briefing card with crop marks and a stamped reward, no fill colour */
.d-quest { padding: 1.1rem 1rem 1.05rem 1.3rem !important; border-radius: 2px !important; color: var(--ink) !important; -webkit-mask: none !important; mask: none !important;
  background: color-mix(in srgb, var(--cream) 94%, transparent) !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; }
.d-quest::before { content: ''; position: absolute; inset: 4px; pointer-events: none; --c: var(--ochre);
  background:
    linear-gradient(var(--c),var(--c)) 0 0 / 12px 1.5px, linear-gradient(var(--c),var(--c)) 0 0 / 1.5px 12px,
    linear-gradient(var(--c),var(--c)) 100% 0 / 12px 1.5px, linear-gradient(var(--c),var(--c)) 100% 0 / 1.5px 12px,
    linear-gradient(var(--c),var(--c)) 0 100% / 12px 1.5px, linear-gradient(var(--c),var(--c)) 0 100% / 1.5px 12px,
    linear-gradient(var(--c),var(--c)) 100% 100% / 12px 1.5px, linear-gradient(var(--c),var(--c)) 100% 100% / 1.5px 12px; background-repeat: no-repeat; }
.d-quest .d-quest-k { color: var(--ochre) !important; letter-spacing: .24em; font-size: 10px; }
.d-quest .d-quest-t { color: var(--ink) !important; font-size: 19px; margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }
.d-quest .d-quest-d { color: var(--ink-3) !important; }
.d-quest .d-quest-d b { color: var(--ink) !important; }
.d-quest .d-quest-b { align-self: center; flex-direction: column; min-width: 0; width: 76px; height: 76px; margin-left: .9rem; padding: 0; border: 1.5px dashed var(--ochre); border-radius: 50%; transform: rotate(-9deg);
  color: var(--ochre) !important; font-size: 20px; line-height: 1; text-decoration: none !important; display: flex; align-items: center; justify-content: center; }
.d-quest .d-quest-b::after { content: 'REWARD'; display: block; margin-top: 4px; font-family: var(--f-display); font-size: 8.5px; letter-spacing: .22em; }
.d-quest.done { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--moss) 60%, transparent) !important; background: color-mix(in srgb, var(--cream) 94%, transparent) !important; }
.d-quest.done .d-quest-k, .d-quest.done .d-quest-b { color: var(--moss) !important; } .d-quest.done .d-quest-b { border-color: var(--moss); border-style: solid; } .d-quest.done .d-quest-b::after { content: 'EARNED'; }
.d-quest.missed { box-shadow: inset 0 0 0 1px var(--line) !important; } .d-quest.missed .d-quest-k, .d-quest.missed .d-quest-b, .d-quest.missed .d-quest-t, .d-quest.missed .d-quest-d { color: var(--dim) !important; } .d-quest.missed .d-quest-b { border-color: var(--dim); text-decoration: line-through !important; }
.d-quest.done::before { --c: var(--moss); }
@media (max-width: 480px) { .d-quest .d-quest-b { width: 64px; height: 64px; font-size: 17px; margin-left: .5rem; } .d-quest-b { min-width: 0; } }

/* flight parameters: a labelled telemetry readout */
.d-rules { border-top: 0; border-bottom: 0; border-left: 2px solid var(--ochre); padding: .15rem 0 .15rem .8rem; position: relative; }
.d-rules-k { flex: 0 0 100%; font-style: normal; font-family: var(--f-display); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin-bottom: .35rem; }
.d-rules-k::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .6em; border-radius: 50%; background: var(--moss); box-shadow: 0 0 6px var(--moss); vertical-align: 1px; }

/* result: mission report */
#dailyScreen .d-total { font-size: 11px; letter-spacing: .3em; }
#dailyScreen .d-total span { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; text-shadow: 0 0 28px color-mix(in srgb, var(--ochre) 45%, transparent); }
#dailyScreen .d-stats .d-big { color: var(--ink); }
#dailyScreen .d-hero .btn-secondary { border-radius: 2px; border: 1px solid var(--line-2) !important; border-left: 3px solid var(--ochre) !important; background: color-mix(in srgb, var(--cream) 90%, transparent); }

/* ---- Round 1 / game settings: never share a row. Row 1 = mode + round; row 2 = the full settings line (phones, tablets, laptops below 1280px). ---- */
@media (max-width: 1279.98px) {
  #gameScreen .gs-hud { flex-wrap: wrap; align-items: center; row-gap: .4rem; }
  #gameScreen .gs-hud .mode-banner { order: 1; flex: 1 1 auto; }
  #gameScreen .gs-hud #roundBar { order: 2; flex: 0 0 auto; margin: 0; padding: .25rem .65rem; border: 1px solid var(--line-2); border-radius: 12px; justify-content: center; max-width: 46%; }
  #gameScreen .gs-hud #roundBar #history { display: none; }
  #gameScreen .gs-hud #roundLabel { font-family: var(--f-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
  #gameScreen .gs-hud .match-line { order: 3; flex: 1 1 100%; margin: 0; font-size: 12px; color: var(--ink-2, var(--ink)); }
}

/* tutorial rules checklist */
.tut-list { width: 100%; border: 1px solid var(--line-2); border-radius: 4px; border-left: 3px solid var(--ochre); background: color-mix(in srgb, var(--cream) 90%, transparent); }
.tl-head { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .8rem; font-family: var(--f-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2, var(--ink)); }
.tl-head span { flex: 1; text-align: left; } .tl-head b { color: var(--ochre); letter-spacing: .08em; } .tl-head svg { width: 16px; height: 16px; }
.tl-list { list-style: none; margin: 0; padding: 0 .5rem .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2px .5rem; }
.tl-item { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 34px; padding: .25rem .4rem; border-radius: 3px; font-size: 13px; text-align: left; color: var(--ink-3); }
.tl-item:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tl-item.now { color: var(--ink); font-weight: 700; }
.tl-box { flex: none; display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--line-2); border-radius: 3px; }
.tl-item.done .tl-box { border-color: var(--moss); background: var(--moss); color: #fff; } .tl-item.done { color: var(--ink-2, var(--ink)); }
.tl-item.now:not(.done) .tl-box { border-color: var(--ochre); }
@media (max-width: 380px) { .tl-list { grid-template-columns: 1fr; } }
.match-line:empty, .mb-chip:empty { display: none !important; }
@media (max-width: 1279.98px) {
  body.tutorial #gameScreen .gs-hud #roundBar { order: 3; flex: 1 1 100%; max-width: none; border: 0; padding: 0 .1rem; justify-content: center; }
  body.tutorial #gameScreen .gs-hud #roundBar #history { display: flex; justify-content: center; }
  body.tutorial #gameScreen .gs-hud #roundLabel { display: none; }
}

/* ======================================================================
   Follow-up 25: signs with a blinking status lamp, a real mission report, and a crew roster.
   ====================================================================== */
@keyframes ledBlink { 0%, 55% { opacity: 1; box-shadow: 0 0 7px var(--led, #46e08a); } 56%, 100% { opacity: .22; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { :root { --nb: 1; } @keyframes ledBlink { 0%, 100% { opacity: 1; } } }

/* kicker signs (the small label above a page title) */
#whereKicker, #multiKicker, #setupKicker, .d-kick, .d-quest-k, .d-rules-k, .section-label { position: relative; display: inline-flex; align-items: center; gap: .7em; font-family: var(--f-display); font-size: 10px !important; font-weight: 600; letter-spacing: .26em !important; text-transform: uppercase; color: var(--ink-3) !important;
  padding: 3px 10px 3px 9px; border: 1px solid var(--line-2); border-radius: 2px; background: color-mix(in srgb, var(--cream) 85%, transparent); margin-bottom: .45rem; font-style: normal; }
#whereKicker:empty, #setupKicker:empty { display: none; }
#whereKicker::before, #multiKicker::before, #setupKicker::before, .d-kick::before, .d-quest-k::before, .d-rules-k::before, .section-label::before { content: ''; flex: none; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: var(--led, #46e08a); animation: ledBlink 1.8s steps(1) infinite; }
.d-quest-k::before { --led: #ffb43a; }
.section-label .text-zinc-400 { color: var(--dim) !important; letter-spacing: .12em; }

/* option cards: the sector sign sits in the title, its lamp beside it; the planet ring belongs to the glyph so it travels with it */
.choice-card { padding-top: 1rem !important; }
.choice-card::before { content: '' !important; position: absolute; left: calc(1.25rem + 8px); top: calc(1rem + 8px); width: 6px; height: 6px; border-radius: 50%; background: #46e08a; animation: ledBlink 1.8s steps(1) infinite; z-index: 1; --led: #46e08a; }
.choice-card:nth-child(2n)::before { animation-delay: .6s; } .choice-card:nth-child(3n)::before { animation-delay: 1.2s; }
.choice-card:not(.tut-attn)::after { content: none !important; }
.choice-card .choice-title::before { content: 'SECTOR ' counter(sector, decimal-leading-zero); display: block; width: max-content; margin-bottom: 7px; padding: 3px 9px 3px 22px; border: 1px solid var(--line-2); border-radius: 2px; font-family: var(--f-display); font-size: 9.5px; font-weight: 600; letter-spacing: .26em; color: var(--ink-3); background: color-mix(in srgb, var(--cream) 80%, transparent); }
.choice-card .choice-ic::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 62%); }
@media (max-width: 480px) { .choice-card { padding-top: .9rem !important; } .choice-card::before { top: calc(.9rem + 8px); left: calc(1.05rem + 8px); } }

/* the daily screen: no stray glyphs, aligned text */
#dailyScreen .d-badge { display: none !important; }
#dailyScreen .d-hero { padding: .4rem 0 1rem; text-align: left; }
#dailyScreen .d-hero h2 { max-width: none; text-transform: none; letter-spacing: 0; font-size: clamp(1.6rem, 7vw, 2.3rem); line-height: 1.05; margin: 0; }
#dailyScreen .d-lede { margin: .55rem 0 0; max-width: 34em; color: var(--ink-3); font-size: 15px; line-height: 1.55; text-align: left; }
#dailyScreen .d-hero .btn-primary { max-width: none; margin-left: 0; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); border-radius: 0; }

/* mission brief: a hazard-striped header strip, a lamp, and the reward stamped on the right */
.d-quest { overflow: hidden; padding-top: 1.55rem !important; }
.d-quest::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ochre) 70%, transparent) 0 8px, transparent 8px 16px); opacity: .85; }
.d-quest.done::after { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--moss) 70%, transparent) 0 8px, transparent 8px 16px); }
.d-quest.missed::after { opacity: .25; }
.d-quest .d-quest-k { margin-bottom: .35rem; }

/* mission report */
.d-report { position: relative; padding: 0 0 1.1rem !important; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--cream) 92%, transparent) !important; border-radius: 2px; overflow: hidden; }
.d-report > *:not(.d-rep-head) { margin-left: 1.1rem; margin-right: 1.1rem; }
.d-report .d-rep-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 1.1rem; border-bottom: 1px solid var(--line-2); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink) 6%, transparent) 0 8px, transparent 8px 16px); }
.d-report .d-sign { display: inline-flex; align-items: center; gap: .7em; font-family: var(--f-display); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.d-report .d-sign .led { width: 7px; height: 7px; border-radius: 50%; background: #46e08a; --led: #46e08a; animation: ledBlink 1.8s steps(1) infinite; }
.d-report.bad .d-sign .led { background: #ff5a5a; --led: #ff5a5a; }
.d-rep-no { font-family: var(--f-display); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); text-align: right; }
.d-stamp { position: absolute; right: 1rem; top: 3.4rem; transform: rotate(-11deg); padding: .25rem .7rem; border: 2px solid; border-radius: 3px; font-family: var(--f-display); font-size: 15px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; pointer-events: none; }
.d-report.ok .d-stamp { color: #46e08a; } .d-report.bad .d-stamp { color: #ff6a6a; }
.d-status { margin-top: 1.1rem; } .d-status small, .d-total small { display: block; font-family: var(--f-display); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.d-status h2 { margin-top: .15rem !important; font-size: clamp(1.4rem, 6vw, 1.9rem) !important; text-transform: uppercase !important; letter-spacing: .06em !important; }
#dailyScreen .d-report .d-total { margin-top: 1rem !important; font-size: 10px; letter-spacing: .3em; }
#dailyScreen .d-report .d-total span { display: block; margin-top: .2rem; font-size: clamp(3.2rem, 17vw, 4.6rem); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
#dailyScreen .d-report .d-break { max-width: none; margin-top: .8rem !important; border-top: 1px solid var(--line-2); padding-top: .5rem; }
#dailyScreen .d-report .d-stats { margin-top: 1rem !important; }
#dailyScreen .d-report .d-quest { margin-top: 1rem; }
@media (max-width: 420px) { .d-stamp { top: 3.7rem; font-size: 12px; } }

/* crew roster: the setup screen's player list and buttons */
#playerList { counter-reset: seat; display: grid; gap: 0 !important; }
.prow { counter-increment: seat; position: relative; height: 62px; padding: 0 .3rem 0 .2rem !important; border: 0 !important; border-bottom: 1px solid var(--line-2) !important; border-left: 3px solid var(--pc) !important; border-radius: 0 !important; background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 10%, transparent), transparent 55%) !important; gap: .8rem !important; margin: 0 !important; }
.prow::before { content: 'SEAT ' counter(seat, decimal-leading-zero); font-family: var(--f-display); font-size: 9px; letter-spacing: .22em; color: var(--dim); width: 4.4em; flex: none; padding-left: .5rem; }
.prow .p-avatar.sm { width: 36px; height: 36px; border-radius: 50% !important; box-shadow: 0 0 0 2px var(--bg, #0b0f17), 0 0 0 3.5px var(--pc); }
.prow .tag { background: none !important; border: 1px solid var(--line-2); border-radius: 2px !important; letter-spacing: .16em; text-transform: uppercase; font-family: var(--f-display); font-size: 9.5px !important; }
.add-row { height: 46px !important; border: 0 !important; border-left: 2px solid var(--ochre) !important; border-right: 2px solid var(--ochre) !important; border-radius: 0 !important; margin-top: .9rem !important; font-family: var(--f-display); font-size: 12px !important; letter-spacing: .2em; text-transform: uppercase; background: color-mix(in srgb, var(--cream) 70%, transparent); }
.rule-summary-btn { border: 1px solid var(--line-2) !important; border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); font-family: var(--f-display); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; background: color-mix(in srgb, var(--cream) 85%, transparent) !important; }
.rule-summary-btn::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffb43a; margin-right: .2rem; animation: ledBlink 1.8s steps(1) infinite; --led: #ffb43a; }
#btnStart, #btnLobbyStart { border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); letter-spacing: .1em; text-transform: uppercase; box-shadow: none !important; }

/* tutorial: the live arena runs as in a real game; the coach panel always sits on top of it */
body.tutorial #coachBar, body.tutorial #tutBar { position: relative; z-index: 4; }
body.tutorial #coachBar { background: color-mix(in srgb, var(--cream) 96%, transparent); }
.d-rules .d-rules-k { order: -1; flex: 0 0 auto; } .d-rules::before { content: ''; flex: 0 0 100%; order: 0; height: 0; }
.d-rules { padding-top: .1rem; }
.d-report .d-sign { white-space: nowrap; } .d-rep-no { white-space: nowrap; }
.d-report .d-total { position: relative; }
.d-report > .d-total .d-stamp, .d-report .d-total .d-stamp { position: absolute; right: 0; top: 50%; margin: 0 !important; width: max-content; transform: translateY(-40%) rotate(-11deg); }
.prow::before { white-space: nowrap; width: 5.4em; }
.choice-card::before { top: calc(1rem + 15px) !important; }
@media (max-width: 480px) { .choice-card::before { top: calc(.9rem + 15px) !important; } }


/* ======================================================================
   Update 8: boards, hazard signs, seat plates, popups, tutorial intro
   ====================================================================== */
:root { --board-g: #2fb86a; --haz: #f2b705; --haz-ink: #16130a; }

/* the background-animation toggle only appears where there is a background animation (the game table) */
#btnArena { display: none !important; }
body.in-game:not(.tutorial) #btnArena { display: inline-flex !important; }

/* BOARD: a plain rectangle holding its phrase, with a thick steady green bar down its left side */
#whereKicker, #multiKicker, #setupKicker { display: none !important; }
#whereKicker, #multiKicker, #setupKicker, .section-label, #crumbMode, #crumbStyle {
  position: relative; display: inline-flex; align-items: center; height: auto; gap: .6em; padding: 5px 12px 5px 16px !important; border: 1px solid var(--line-2) !important; border-left: 8px solid var(--board-g) !important; border-radius: 2px !important;
  background: color-mix(in srgb, var(--cream) 88%, transparent) !important; color: var(--ink-2, var(--ink)) !important; font-family: var(--f-display); font-size: 11px !important; font-weight: 600; letter-spacing: .24em !important; text-transform: uppercase; box-shadow: none !important; }
#whereKicker::before, #multiKicker::before, #setupKicker::before, .section-label::before { content: none !important; display: none !important; }
#crumbMode svg, #crumbStyle svg { display: none; }
#crumbMode:disabled { opacity: 1; }
.crumb-sep { display: none !important; }
.crumb-inner { gap: .6rem; padding: .55rem 1rem; }
.section-label { margin-bottom: .55rem; }

/* SECTOR label: just the words, a laser underline exactly as wide as the words, and a small L-shaped cap in the option's colour at the top right and bottom left */
.choice-card::before { display: none !important; content: none !important; }
.choice-card .choice-title::before { display: block; width: max-content; position: relative; margin: 0 0 1px -1px !important; padding: 4px 3px 9px 3px !important; border: 0 !important; border-radius: 0 !important; background-color: transparent !important;
  font-size: 8px !important; line-height: 9px !important; font-weight: 700 !important; letter-spacing: .24em !important; color: var(--ink-3) !important;
  background-repeat: no-repeat !important;
  background-image:
    linear-gradient(var(--pc), var(--pc)), linear-gradient(var(--pc), var(--pc)),
    linear-gradient(var(--pc), var(--pc)), linear-gradient(var(--pc), var(--pc)),
    linear-gradient(var(--pc), var(--pc)), linear-gradient(color-mix(in srgb, var(--pc) 30%, transparent), color-mix(in srgb, var(--pc) 30%, transparent)) !important;
  background-size: 6px 2px, 2px 6px, 6px 2px, 2px 6px, calc(100% - 8px) 2px, calc(100% - 8px) 4px !important;
  background-position: right 0 top 0, right 0 top 0, left 0 bottom 0, left 0 bottom 0, left 3px bottom 5px, left 3px bottom 4px !important; }

/* lamps that remain are steady */
.rule-summary-btn::before { animation: none !important; }   /* the settings button's lamp is steady; the mission report, brief and parameters keep their blinking lamps */

/* mission number: a clear hash mark */
.hashno { display: inline-flex; align-items: baseline; gap: .08em; font-variant-numeric: tabular-nums; }
.hashno i { font-style: normal; font-weight: 800; color: var(--ochre); margin-right: .05em; font-size: 1.05em; }

/* SEAT plate: row number, a little helmet, and the seat letter, like a boarding-pass seat tag */
.prow::before { content: var(--seat-row, "13") "\2003\2003" counter(seat, upper-alpha) !important; white-space: pre; flex: none; width: 5.6rem !important; height: 36px; margin: 0 .9rem 0 .7rem; padding: 0 !important; display: grid; place-items: center; text-align: center;
  font-family: var(--f-display); font-size: 17px !important; font-weight: 800; letter-spacing: .04em !important; color: var(--ink) !important; border: 1.5px solid var(--line-2); border-radius: 5px; outline: 1px solid var(--line); outline-offset: 2px;
  background: color-mix(in srgb, var(--cream) 70%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aa0b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15a7 7 0 1 1 14 0v3H5z'/%3E%3Cpath d='M8.5 13.5h7'/%3E%3C/svg%3E") center / 20px no-repeat; }
.prow { gap: 0 !important; }
.prow .p-avatar.sm { margin-right: .8rem; }

/* POPUPS: same instrument-panel language, kept quiet */
.modal-panel { border-radius: 3px !important; position: relative; overflow: hidden; padding-top: 1.55rem; background: color-mix(in srgb, var(--surface) 96%, transparent); }
.modal-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--haz) 55%, transparent) 0 8px, transparent 8px 16px); }
.modal-panel h2, .modal-panel .font-display.text-xl { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem !important; border-left: 6px solid var(--board-g); padding-left: .7rem; line-height: 1.2; }
.modal-panel .res-icon { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 50% !important; width: 44px; height: 44px; position: relative; flex: none; }
.modal-panel .res-icon::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--pc, #8aa0b4) 24%, transparent), transparent 65%); }
.modal-panel .res-icon svg { position: relative; }
.modal-panel .view-tabs, .modal-panel .mini-seg, .modal-panel .seg { border-radius: 2px !important; }
.modal-panel .view-tabs button, .modal-panel .seg button, .modal-panel .mini-seg button { border-radius: 2px !important; font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.modal-panel .btn-primary, .modal-panel .btn-secondary { border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); letter-spacing: .08em; text-transform: uppercase; box-shadow: none !important; }
.modal-panel .section-label { margin-top: .2rem; }

/* tutorial: calm decorative void (the real artwork turning slowly), a training badge, and the first-visit intro */
.tut-badge { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 .6rem; padding: 7px 12px; border-radius: 2px; color: var(--haz-ink); background-color: var(--haz);
  background-image: repeating-linear-gradient(-45deg, var(--haz-ink) 0 4px, transparent 4px 8px), repeating-linear-gradient(-45deg, var(--haz-ink) 0 4px, transparent 4px 8px); background-size: 100% 3px; background-position: top, bottom; background-repeat: repeat-x; }
.tut-badge span { font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; padding-block: 3px; }
.tut-badge small { font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .85; text-align: right; }
.tut-intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(3,8,14,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tut-intro-card { width: min(100%, 24rem); text-align: center; padding: 1.4rem 1.3rem 1.1rem; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.tut-intro-card h2 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; margin: .9rem 0 .4rem; }
.tut-intro-card p { color: var(--ink-3); font-size: 15px; line-height: 1.5; margin-bottom: 1.1rem; }
.ti-sign { display: inline-block; padding: 9px 18px 8px; color: var(--haz-ink); font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; background-color: var(--haz);
  background-image: repeating-linear-gradient(-45deg, var(--haz-ink) 0 4px, transparent 4px 8px), repeating-linear-gradient(-45deg, var(--haz-ink) 0 4px, transparent 4px 8px); background-size: 100% 3px; background-position: top, bottom; background-repeat: repeat-x; }
.tut-intro-card .btn-primary { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); border-radius: 0; letter-spacing: .1em; text-transform: uppercase; }
.hashno i { font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 1.1em; }
.tut-badge span { white-space: nowrap; letter-spacing: .24em; } .tut-badge small { font-size: 10.5px; line-height: 1.25; }

/* narrow phones: the title gives way to the icons so none are pushed out of the header */
@media (max-width: 520px) { .brand-name { display: none !important; } }

/* the game table's own header: the mode and the round are boards too */
#gameScreen .mode-banner { background: color-mix(in srgb, var(--cream) 88%, transparent) !important; border: 1px solid var(--line-2) !important; border-left: 8px solid var(--board-g) !important; border-radius: 2px !important; box-shadow: none !important; }
#gameScreen .mode-banner .mb-ic { display: none !important; }
#gameScreen .mode-banner .mb-title { font-family: var(--f-display); font-size: 12px !important; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2, var(--ink)) !important; }
#gameScreen #roundLabel { display: inline-flex; align-items: center; padding: 5px 12px 5px 16px; border: 1px solid var(--line-2); border-left: 8px solid var(--board-g); border-radius: 2px !important; background: color-mix(in srgb, var(--cream) 88%, transparent) !important; font-family: var(--f-display); font-size: 11px !important; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2, var(--ink)) !important; }
#gameScreen .gs-hud #roundBar { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }


/* ======================================================================
   Update 11
   ====================================================================== */
/* popups: solid, clearly framed panels with a solid tape strip; titles in a board */
.modal-panel { background: #121b26 !important; border: 2px solid color-mix(in srgb, var(--ink) 40%, var(--line-2)) !important; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4) !important; }
html:not(.dark) .modal-panel { background: #f7f9fc !important; box-shadow: 0 30px 80px -20px rgba(20,40,60,.55), 0 0 0 1px rgba(20,40,60,.25) !important; }
.modal-panel::before { height: 7px; background: repeating-linear-gradient(-45deg, #c9a227 0 8px, #2b2614 8px 16px); }
.modal-panel .seg, .modal-panel .view-tabs { border-color: color-mix(in srgb, var(--ink) 38%, var(--line-2)) !important; }
.modal-panel h2:not(#resTitle):not(#chTitle):not(#infoTitle) { display: block; width: fit-content; max-width: 100%; border: 1px solid var(--line-2); border-left: 8px solid var(--board-g); padding: 6px 14px 6px 12px; background: color-mix(in srgb, var(--cream) 88%, transparent); }
#resTitle, #chTitle, #infoTitle { border: 0; padding-left: 0; letter-spacing: .04em; text-transform: none; }
.modal-panel .res-icon:has(.emblem)::before { display: none; }
.res-icon:has(.emblem) { width: 60px; height: 60px; }
.res-icon .emblem.win { color: #d9a92b; } .res-icon .emblem.lose { color: #8a98a8; }

/* result popup: the heading is a board, its bar green for a win and red for a loss */
#resKicker { display: inline-flex; align-items: center; padding: 5px 12px 5px 14px; margin-bottom: 8px; border: 1px solid var(--line-2); border-left: 8px solid var(--board-g); border-radius: 2px; background: color-mix(in srgb, var(--cream) 88%, transparent); font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2, var(--ink)) !important; }
#resKicker[data-out="lose"] { border-left-color: #e5484d; }
#resKicker[data-out="win"] { border-left-color: var(--board-g); }

/* the mission number reads the same as its figure */
.hashno i { color: inherit !important; font-size: 1.15em !important; font-weight: 700 !important; margin-right: .06em; }

/* verdict stamps, a little larger */
.d-stamp { font-size: 20px; padding: .32rem .85rem; border-width: 2.5px; }
@media (max-width: 420px) { .d-stamp { font-size: 16px; } }

/* seat tag: a small, plain label */
.prow::before { content: "SEAT " var(--seat-row, "4") counter(seat, upper-alpha) !important; white-space: nowrap; width: auto !important; height: auto; margin: 0 .75rem 0 .5rem; padding: 2px 6px !important; display: inline-block; font-size: 9.5px !important; font-weight: 600; letter-spacing: .16em !important; color: var(--ink-3) !important; border: 1px solid var(--line-2); border-radius: 2px; outline: 0; background: none !important; }

/* the round chip is not used by the tutorial: no empty box beside the header */
body.tutorial #gameScreen #roundLabel, #gameScreen #roundLabel:empty { display: none !important; }
/* popup title boards fit their words, even inside a row that would stretch them; the close button stays at the far end */
.modal-panel h2:not(#resTitle):not(#chTitle):not(#infoTitle) { flex: 0 1 auto !important; width: fit-content !important; margin-right: auto; }

/* ALT sector placement: label tucked into the card's top-left corner, titles shifted left */
.choice-card .choice-title { position: static !important; margin-left: 52px !important; }
.choice-card .choice-title::before { position: absolute !important; left: 4px !important; top: 5px !important; margin: 0 !important; }
.choice-card .choice-desc { margin-left: 52px !important; max-width: 22ch !important; }
.choice-card:has(.choice-desc) .choice-title { margin-top: 8px !important; }
/* in-game mode banner: title and chip only, no byline */
#mbSub { display: none !important; }
/* in-game mode board: only as wide as its words */
#gameScreen .gs-hud .mode-banner { flex: 0 0 auto !important; width: fit-content !important; max-width: 100%; align-self: flex-start; }
/* the two header boards beside each other are exactly the same height and type */
#gameScreen .gs-hud .mode-banner, #gameScreen .gs-hud #roundLabel { box-sizing: border-box !important; height: 38px !important; padding-top: 0 !important; padding-bottom: 0 !important; display: flex !important; align-items: center !important; }
#gameScreen .gs-hud #roundLabel { font-size: 12px !important; letter-spacing: .24em !important; }
#gameScreen .gs-hud .mode-banner { padding-right: 14px !important; }
#gameScreen .gs-hud .mode-banner, #gameScreen .gs-hud #roundLabel { padding-left: 16px !important; padding-right: 12px !important; gap: 0 !important; }
#gameScreen .gs-hud .mode-banner .mb-title, #gameScreen .gs-hud #roundLabel { line-height: 14px !important; margin: 0 !important; }
#gameScreen .gs-hud .mode-banner .mb-text { margin: 0 !important; padding: 0 !important; }
/* the settings line stays readable over the moon and planets: solid glass with a soft blur */
#gameScreen .match-line { background: color-mix(in srgb, var(--cream) 94%, transparent) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink) !important; }
/* turn messages wrap instead of being cut off with an ellipsis */
#statusSub, #statusMain { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; text-wrap: balance; }

/* tutorial intro: compact */
.tut-intro-card { padding: 1.1rem 1.2rem .9rem !important; }
.tut-intro-card h2 { margin: 0 0 .3rem !important; font-size: 1.35rem !important; }
.tut-intro-card p { margin-bottom: .9rem !important; font-size: 14.5px !important; line-height: 1.45 !important; }

/* Mode icons: the last block of the tower. Red + tipping = Avoid the word, green + steady = Build the word. */
svg .wov-avoid { --wc: #ff5a5a; stroke: var(--wc); }
svg .wov-build { --wc: #34e08a; stroke: var(--wc); }
svg .wov-flash { fill: var(--wc); fill-opacity: .85; animation: wovFlash 1.1s steps(1, end) infinite; }
svg .wov-rays { animation: wovRays 1.1s steps(1, end) infinite; }
svg .wov-fall { fill: var(--wc); animation: wovFall 1.6s ease-in infinite; }
@keyframes wovFlash { 0% { fill-opacity: .9; filter: drop-shadow(0 0 3px var(--wc)); } 50% { fill-opacity: .12; filter: none; } }
@keyframes wovRays { 50% { opacity: .15; } }
@keyframes wovFall { 0% { transform: translateY(-1px); opacity: 1; } 100% { transform: translateY(2.5px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { svg .wov-flash, svg .wov-rays, svg .wov-fall { animation: none; } }

/* Daily-mission leaderboard: two long tab names, plain Rank / Username / Points rows */
.lb-tabs button { height: auto; min-height: 46px; padding: .35rem .5rem; line-height: 1.2; white-space: normal; font-size: 12.5px; }
.lb-tabs button i, .lb-tabs button svg { flex-shrink: 0; }
.lb-head { display: flex; gap: .6rem; padding: 0 .75rem .35rem; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lb-head span:first-child { width: 2rem; text-align: center; } .lb-head span:nth-child(2) { flex: 1; } .lb-head span:last-child { width: 84px; text-align: right; }
.lb-row .lb-val { min-width: 3rem; text-align: right; }
.lb-rank { width: auto; min-width: 2.6rem; justify-content: center; font-size: 13px; } .lb-rank.long { font-size: 11px; letter-spacing: -.01em; }
.lb-head span:first-child { width: 2.6rem; }
