/* =====================================================================
   Game screen: layout for phones / tablets / laptops, plus the arena (void, astronauts, robots, tethers).
   Loaded after space.css. The arena itself is transparent: the page's space backdrop shows through.
   ===================================================================== */

/* ---------- Layout ---------- */
body.in-game #gameScreen:not(.hidden) {
  display: flex; flex-direction: column; gap: .4rem;
  width: 100%; max-width: 46rem; margin: 0 auto;
  padding: .4rem max(.7rem, env(safe-area-inset-left)) calc(.5rem + env(safe-area-inset-bottom)) max(.7rem, env(safe-area-inset-right));
  overflow-x: hidden; overflow-y: auto;
}
body.in-game #gameScreen > * { flex-shrink: 0; }
.gs-left, .gs-right { display: contents; }
.gs-hud { display: flex; align-items: stretch; gap: .45rem; min-width: 0; }
#gameScreen .gs-hud > * { margin: 0; }

/* HUD: mode chip + round info share one line */
#gameScreen .mode-banner { flex: 0 1 auto; min-width: 0; padding: .3rem .65rem; gap: .5rem; border-radius: 12px; position: static; }
#gameScreen .mode-banner .mb-ic { width: 26px; height: 26px; border-radius: 8px; }
#gameScreen .mode-banner .mb-ic svg { width: 15px; height: 15px; }
#gameScreen .mb-title { font-size: 13.5px; line-height: 1.15; }
#gameScreen .mb-sub { display: none; }
#gameScreen .mb-chip { display: none; }
#gameScreen #roundBar { flex: 1 1 0; min-width: 0; margin: 0; padding: 0 .1rem; gap: .5rem; font-size: 11.5px; justify-content: flex-end; }
#gameScreen #roundLabel { color: var(--ink-2) !important; font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
#gameScreen #history { justify-content: flex-end; }
#gameScreen #targetLabel { color: var(--muted); }

/* Players: a single row of slim chips */
#gameScreen .player-grid { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 6px; width: 100%; max-width: none; margin: 0; }
#gameScreen .player-grid.n1 { --cols: 1; max-width: 22rem; margin: 0 auto; }
#gameScreen .player-grid.n2 { --cols: 2; }
#gameScreen .player-grid.n3 { --cols: 3; }
#gameScreen .player-grid.n4 { --cols: 4; }
#gameScreen .player-grid.n5, #gameScreen .player-grid.n6 { --cols: 3; }
#gameScreen .player-card { padding: .32rem .6rem; gap: .5rem; border-radius: 12px; min-height: 0; }
#gameScreen .player-card .p-avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
#gameScreen .player-card .p-avatar svg { width: 15px; height: 15px; }
#gameScreen .player-card .p-name { font-size: 13px; }
#gameScreen .player-card .p-sub { display: none; }
#gameScreen .player-card .p-score { font-size: 20px; }
#gameScreen .player-card .hearts { margin-top: 1px; }
#gameScreen .player-card .hearts svg { width: 11px; height: 11px; }
#gameScreen .player-card .pmarks { margin-top: 1px; }
#gameScreen .player-card .p-turn { font-size: 9px; padding: 1px 5px; }
#gameScreen .player-grid.n4 .p-turn, #gameScreen .player-grid.n5 .p-turn, #gameScreen .player-grid.n6 .p-turn { display: none !important; }
@media (max-width: 480px) {
  #gameScreen .player-grid.dense .player-card .p-avatar { display: none; }
  #gameScreen .player-grid.n2 .p-turn { display: none !important; }
}

/* Bonus quest: one slim strip */
#gameScreen .dq-bar { margin: 0; padding: .3rem .6rem; gap: .5rem; align-items: center; border-radius: 12px; }
#gameScreen .dq-bar > svg { width: 16px; height: 16px; margin: 0; }
#gameScreen .dq-head { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
#gameScreen .dq-text { font-size: 11.5px; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#gameScreen .dq-prog { font-size: 12px; white-space: nowrap; }
#gameScreen .away-bar { margin: 0; padding: .35rem .6rem; }

/* The scene takes whatever room is left */
#gameScreen .arena-panel { position: relative; flex: 1 1 0; min-height: 110px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; pointer-events: none; }
#gameScreen .arena { position: absolute; inset: 0; overflow: visible; }
#gameScreen .arena > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
body.arena-off #gameScreen .arena-panel { display: none; }
body.arena-off #gameScreen .word-stage { flex: 1 1 auto; }

/* Word + controls */
#gameScreen .word-stage { flex: 0 0 auto; min-height: 0; padding: .1rem .25rem 0; }
#gameScreen #statusTitle { font-size: 17px; line-height: 1.2; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
html:not(.dark) #gameScreen #statusTitle { text-shadow: 0 1px 10px rgba(255,255,255,.6); }
#gameScreen #statusSub { font-size: 12.5px; margin-top: .1rem; }
#gameScreen #tiles { margin-top: .5rem; }
#gameScreen #wordNote { margin-top: .3rem; min-height: 14px; font-size: 11.5px; }
#gameScreen .coach { margin: 0; padding: .4rem .6rem; }
#gameScreen .act-bar { margin: 0; }
@media (max-height: 760px) and (max-width: 700px) {
  #gameScreen #statusSub { display: none; }
  #gameScreen #wordNote { display: none; }
  #gameScreen #tiles { margin-top: .3rem; }
  #gameScreen .act-bar { flex-wrap: nowrap; }
  #gameScreen .act-bar > button.btn-secondary { flex: 0 0 44px; padding: 0; height: 42px; }
  #gameScreen .act-bar > button.btn-secondary span:not(.cont-count) { display: none; }
  #gameScreen .act-bar #btnPlay { flex: 1 1 auto; order: 0; height: 42px; max-width: none; }
  #gameScreen .dq-text { -webkit-line-clamp: 1; }
}

/* Tablet in portrait: more room for the scene and bigger keys */
@media (min-width: 700px) and (orientation: portrait) {
  body.in-game #gameScreen:not(.hidden) { max-width: 52rem; gap: .6rem; }
  #gameScreen .mb-sub { display: block; }
  #gameScreen .player-card { padding: .45rem .8rem; }
}

/* Laptops, desktops and tablets on their side: the scene on the left, the board on the right */
@media (min-width: 760px) and (orientation: landscape) {
  body.in-game #gameScreen:not(.hidden) {
    display: grid; max-width: 1480px; gap: 0 clamp(.8rem, 2.4vw, 2rem);
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); grid-template-rows: auto minmax(0, 1fr);
    padding-top: .6rem; overflow: hidden;
  }
  #gameScreen > #netBanner { grid-column: 1 / -1; grid-row: 1; margin-bottom: .4rem; }
  #gameScreen .gs-left, #gameScreen .gs-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: .5rem; grid-row: 2; }
  #gameScreen .gs-left { grid-column: 1; }
  #gameScreen .gs-right { grid-column: 2; justify-content: flex-end; }
  #gameScreen .gs-right > * { flex-shrink: 0; }
  #gameScreen .gs-left > * { flex-shrink: 0; }
  #gameScreen .gs-left > .arena-panel { flex: 1 1 0; }
  #gameScreen .gs-right > .word-stage { flex: 1 1 auto; justify-content: center; min-height: 80px; }
  #gameScreen .mb-sub { display: block; font-size: 12px; }
  #gameScreen .mb-title { font-size: 14.5px; }
  #gameScreen .gs-hud { align-items: center; }
  #gameScreen .mode-banner { flex: 1 1 auto; }
  #gameScreen #roundBar { flex: 0 1 38%; font-size: 12px; }
  #gameScreen .player-card { padding: .4rem .75rem; }
  #gameScreen .player-card .p-sub { display: block; font-size: 11.5px; }
  #gameScreen .player-grid.dense .p-sub { display: none; }
  #gameScreen .player-grid.n5, #gameScreen .player-grid.n6 { --cols: 3; }
  #gameScreen .dq-text { -webkit-line-clamp: 2; font-size: 12px; }
  #gameScreen #statusTitle { font-size: clamp(18px, 2.6dvh, 24px); }
  #gameScreen #statusSub { display: block; font-size: 13px; }
  #gameScreen #wordNote { display: block; }
  #gameScreen .tile { width: clamp(38px, 7dvh, 62px); height: clamp(46px, 8.4dvh, 72px); font-size: clamp(22px, 4dvh, 34px); }
  #gameScreen .tiles.long .tile { width: clamp(32px, 5.6dvh, 48px); height: clamp(40px, 6.8dvh, 58px); font-size: clamp(19px, 3.3dvh, 27px); }
  #gameScreen .key { max-width: none; height: clamp(36px, 6.2dvh, 56px); }
}
/* Phones on their side */
@media (max-height: 520px) and (orientation: landscape) {
  body.in-game #gameScreen:not(.hidden) { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); padding-top: .3rem; }
  #gameScreen .mode-banner .mb-ic, #gameScreen .player-card .p-avatar { display: none; }
  #gameScreen .mb-sub, #gameScreen #statusSub, #gameScreen #wordNote { display: none !important; }
  #gameScreen .coach-text { display: none; }
  #gameScreen .key { height: clamp(26px, 9dvh, 38px); }
  #gameScreen .act-bar > button.btn-secondary span:not(.cont-count) { display: none; }
  #gameScreen .tile { width: 34px; height: 40px; font-size: 20px; }
  #gameScreen .gs-right > .word-stage { min-height: 0; }
}

/* ---------- Round-end cinematic: everything but the scene fades away ---------- */
#gameScreen .gs-hud, #gameScreen .player-grid, #gameScreen .dq-bar, #gameScreen .away-bar, #gameScreen .word-stage, #gameScreen .coach, #gameScreen .act-bar, #gameScreen .kbd {
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
}
body.cinematic #gameScreen .gs-hud, body.cinematic #gameScreen .player-grid, body.cinematic #gameScreen .dq-bar, body.cinematic #gameScreen .away-bar,
body.cinematic #gameScreen .word-stage, body.cinematic #gameScreen .coach, body.cinematic #gameScreen .act-bar, body.cinematic #gameScreen .kbd {
  opacity: 0; pointer-events: none; filter: blur(3px);
}
body.cinematic #gameScreen .kbd, body.cinematic #gameScreen .act-bar { transform: translateY(14px); }
body.cinematic .app-header { opacity: .25; transition: opacity .5s; }

/* ---------- The scene ---------- */
.arena svg { shape-rendering: geometricPrecision; }
.ar-cam { will-change: transform; }

/* the void: a pitch-black oblong core, a thin lensed rim (blue at one edge, ember orange, pale gold) and broken streaks of heat */
.ar-edge { fill: none; opacity: .95; filter: drop-shadow(0 0 4px rgba(255,150,80,.75)); }
.ar-band { stroke-linecap: round; stroke-linejoin: round; mix-blend-mode: screen; }
html:not(.dark) .ar-band { mix-blend-mode: normal; }
.ar-streak { fill: none; stroke-linecap: round; mix-blend-mode: screen; filter: drop-shadow(0 0 3px rgba(240,120,60,.6)); }
html:not(.dark) .ar-streak { mix-blend-mode: normal; }
.ar-ember { pointer-events: none; mix-blend-mode: screen; filter: drop-shadow(0 0 1.5px rgba(255,140,70,.9)); }
html:not(.dark) .ar-ember { mix-blend-mode: normal; }
.ar-shock { fill: none; stroke: #f0b884; }
.ar-l-auraBack { mix-blend-mode: screen; }

/* name / odds bubbles */
.ar-bubble path { fill: rgba(9,14,20,.72); stroke: var(--pc); stroke-width: 1.2; }
.ar-bt { fill: #f1f4f7; font: 700 12px var(--f-display); letter-spacing: .04em; }
.ar-bn { fill: #d3dbe2; font: 600 10px var(--f-body); letter-spacing: .02em; }
html:not(.dark) .ar-bubble path { fill: rgba(255,255,255,.78); }
html:not(.dark) .ar-bt { fill: #16222d; }
html:not(.dark) .ar-bn { fill: #3b4c5c; }

/* tethers: braided graphite cable, ribbed, with a warm edge light */
.ar-rope-g path, .ar-rope-g circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ar-rope-halo { stroke: var(--pc); mix-blend-mode: screen; filter: blur(2px); }
html:not(.dark) .ar-rope-halo { mix-blend-mode: normal; }
.ar-rope-out { stroke: #0a1017; opacity: .85; }
.ar-rope-base { stroke: #56626e; }
.ar-rope-ribs { stroke: #232b34; opacity: .75; stroke-linecap: butt; }
.ar-rope-light { stroke: rgba(235,242,248,.45); }
.ar-rope-rim { stroke: #e7a469; opacity: .55; }
.ar-rope-strand { stroke: #8c98a4; fill: none; }
.ar-rope-twist { stroke: #c9d3dd; }
.ar-rope-twist.b { stroke: #3a4652; }
.ar-rope-pulse { stroke: var(--pc); mix-blend-mode: screen; stroke-linecap: butt; filter: blur(.6px); }
html:not(.dark) .ar-rope-pulse { mix-blend-mode: normal; }
.ar-rope-clip { fill: #29323b; stroke: #0a1017; stroke-width: 1; }
.ar-spark { fill: #ffd9ad; filter: drop-shadow(0 0 3px rgba(255,170,100,.9)); }
html:not(.dark) .ar-rope-base { stroke: #6b7885; }
html:not(.dark) .ar-rope-out { stroke: #1d2a36; opacity: .8; }

/* ---------- Characters ---------- */
.ar-av { --ar-suit: #c9d2dc; --ar-suit-d: #7d8996; --ar-suit-l: #eef3f8; --ar-outline: #0b1219; --ar-rim: #f0a96b; --ar-dark: #101a24; }
html:not(.dark) .ar-av { --ar-suit: #eef2f6; --ar-suit-d: #a3b0bd; --ar-suit-l: #ffffff; --ar-outline: #1c2935; --ar-rim: #e39a5c; }
.ar-av.bot { --ar-suit: #6f7782; --ar-suit-d: #3f444d; --ar-suit-l: #a1a8b1; --ar-dark: #0e1116; --ar-rim: #e0955a; }
html:not(.dark) .ar-av.bot { --ar-suit: #7f8d9b; --ar-suit-d: #4b5865; --ar-suit-l: #b7c3cf; }
.ar-av path, .ar-av circle, .ar-av rect, .ar-av ellipse { stroke-linecap: round; stroke-linejoin: round; }
.ar-limb path { fill: none; }
.ar-limb .lo { stroke: var(--ar-outline); }
.ar-limb .lb { stroke: var(--ar-suit); }
.ar-limb .lh { stroke: var(--ar-suit-l); opacity: .75; }
.ar-limb .lr { stroke: var(--ar-rim); opacity: .55; }
.ar-limb.back .lb { stroke: var(--ar-suit-d); }
.ar-limb.back .lh { opacity: .25; }
.ar-limb.back .lr { opacity: .2; }
.ar-boot .bb { fill: color-mix(in srgb, var(--pc) 62%, #1a222b); stroke: var(--ar-outline); }
.ar-boot .bs { fill: none; stroke: #0b1219; stroke-linecap: round; }
.ar-boot .bc { fill: none; stroke: var(--ar-suit); stroke-linecap: butt; }
.ar-boot .bh { fill: none; stroke: #fff; opacity: .28; }
.ar-boot.back .bb { fill: color-mix(in srgb, var(--pc) 40%, #10171e); }
.ar-boot.back .bc { stroke: var(--ar-suit-d); }
.ar-glove .gf { fill: color-mix(in srgb, var(--pc) 70%, #1a222b); stroke: var(--ar-outline); }
.ar-glove .gt { fill: color-mix(in srgb, var(--pc) 70%, #1a222b); stroke: var(--ar-outline); stroke-linejoin: round; }
.ar-glove .gl { fill: none; stroke: #0b1219; opacity: .45; stroke-linecap: round; }
.ar-glove .gc { fill: var(--ar-suit); stroke: var(--ar-outline); }
.ar-glove.back .gf, .ar-glove.back .gt { fill: color-mix(in srgb, var(--pc) 45%, #10171e); }
.ar-glove.back .gc { fill: var(--ar-suit-d); }
.bot .ar-glove .gc { fill: var(--ar-suit-d); }
.ar-torso .to { fill: var(--ar-outline); stroke: var(--ar-outline); }
.ar-torso .tb { fill: var(--ar-suit); stroke: none; }
.ar-torso .th { fill: none; stroke: var(--ar-suit-l); opacity: .7; }
.ar-torso .tr { fill: none; stroke: var(--ar-rim); opacity: .6; }
.ar-torso .tbelt { stroke: var(--pc); fill: none; opacity: .9; }
.ar-torso .cp { fill: var(--ar-dark); stroke: var(--ar-outline); stroke-width: .8; }
.ar-torso .cl { display: none; }
.ar-torso .cl2 { fill: var(--ar-rim); }
.ar-torso .tseam { fill: none; stroke: #e0955a; opacity: .35; }
.ar-pack .pk { fill: var(--ar-suit-d); stroke: var(--ar-outline); }
.ar-pack .pk2 { stroke: var(--ar-outline); opacity: .6; fill: none; }
.ar-pack .pk3 { stroke: var(--pc); opacity: .8; fill: none; }
/* helmets */
.ar-head .hs { fill: var(--ar-suit); stroke: var(--ar-outline); stroke-width: .08; }
.astro .ar-head .hband { fill: none; stroke: var(--pc); stroke-width: .12; opacity: .9; }
.astro .ar-head .vz { fill: var(--ar-outline); stroke: none; }
.astro .ar-head .vz2 { fill: color-mix(in srgb, var(--pc) 28%, #0a1824); opacity: .95; }
.astro .ar-head .vg { fill: none; stroke: #fff; stroke-width: .07; opacity: .6; }
.astro .ar-head .vg2 { fill: none; stroke: var(--ar-rim); stroke-width: .06; opacity: .6; }
.astro .ar-head .lamp { fill: var(--pc); }
.ar-head .hr { fill: none; stroke: var(--ar-rim); stroke-width: .07; opacity: .75; }
.ar-head .hl { fill: none; stroke: var(--ar-suit-l); stroke-width: .06; opacity: .8; }
.bot .ar-head .hs { fill: var(--ar-suit); stroke: var(--ar-outline); stroke-width: .07; }
.bot .ar-head .hf { fill: var(--ar-dark); stroke: none; }
.bot .ar-head .vz { fill: var(--pc); filter: drop-shadow(0 0 .12px var(--pc)); }
.bot .ar-head .vz2 { fill: var(--pc); opacity: .55; }
.bot .ar-head .beam path { fill: var(--pc); mix-blend-mode: screen; }
.bot .ar-head .bm3 { opacity: .07; } .bot .ar-head .bm2 { opacity: .1; } .bot .ar-head .bm1 { opacity: .16; }
html:not(.dark) .bot .ar-head .beam path { mix-blend-mode: normal; }
.bot .ar-head .ear { fill: var(--ar-suit-d); stroke: var(--ar-outline); stroke-width: .05; }
.bot .ar-head .ear2 { fill: var(--pc); opacity: .85; }
.bot .ar-head .ant { fill: none; stroke: var(--ar-suit-d); stroke-width: .07; }
.bot .ar-head .antl { fill: var(--pc); filter: drop-shadow(0 0 .1px var(--pc)); }
/* mechanical gliders (daily bonus quest) */
.ar-wing .wb { stroke: var(--ar-outline); stroke-linejoin: round; }
.ar-wing.near .wb { fill: #b4bfca; }
.ar-wing.far .wb { fill: #5a6672; }
html:not(.dark) .ar-wing.near .wb { fill: #d8e0e7; }
html:not(.dark) .ar-wing.far .wb { fill: #8f9ca9; }
.ar-wing .wr { fill: none; stroke: var(--ar-outline); opacity: .45; }
.ar-wing .wl { fill: none; stroke: #f0b27a; stroke-linecap: round; opacity: .85; }
.ar-wing .wf { fill: none; stroke: var(--pc); opacity: .7; stroke-linecap: round; }
.ar-wing .wt { fill: var(--pc); filter: drop-shadow(0 0 3px var(--pc)); }
.ar-wing.far { opacity: .92; }
.ar-wing-strut { fill: none; stroke: var(--ar-suit-d); stroke-linecap: round; }
.ar-wing-glow { fill: #ffe2bd; filter: drop-shadow(0 0 6px var(--pc)); }
.ar-wing-trail { fill: none; stroke: #ffe2bd; stroke-linecap: round; }

/* quest toast */
.quest-toast { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top, 0px)); transform: translate(-50%, 8px) scale(.94); z-index: 70; display: flex; gap: 12px; align-items: center; padding: 11px 20px 11px 14px; border-radius: 16px; background: rgba(12,18,26,.88); color: #eef2f6; border: 1px solid rgba(240,170,110,.6); box-shadow: 0 14px 40px -14px rgba(0,0,0,.7), 0 0 0 4px rgba(240,170,110,.12); font: 600 12px var(--f-body); letter-spacing: .04em; opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.9,.3,1.2), opacity .35s; max-width: calc(100vw - 32px); }
.quest-toast.on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.quest-toast > svg { width: 26px; height: 26px; color: #f0b27a; flex-shrink: 0; }
.quest-toast .qt-txt { display: flex; flex-direction: column; gap: 2px; }
.quest-toast b { color: #f0b27a; font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
.quest-toast .qt-txt > span { opacity: .85; }
html:not(.dark) .quest-toast { background: rgba(255,255,255,.94); color: #16222d; }
/* While the camera is on the player after a completed quest, the controls dim for a moment. */
body.quest-spot #gameScreen .kbd, body.quest-spot #gameScreen .act-bar { opacity: .3; pointer-events: none; }
#gameScreen .kbd, #gameScreen .act-bar { transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) {
  body.cinematic #gameScreen .kbd, body.cinematic #gameScreen .act-bar { transform: none; }
  #gameScreen .gs-hud, #gameScreen .player-grid, #gameScreen .word-stage, #gameScreen .kbd { transition: opacity .2s; }
}

/* word rarity label in the round card */
.rarity { font-weight: 700; }
.rarity.r0 { color: var(--moss-d); } .rarity.r1 { color: var(--ink-3); } .rarity.r2 { color: var(--ochre-d); } .rarity.r3 { color: var(--brick); }
.dstats { display: flex; gap: .5rem; margin-top: .6rem; }
.dstats > span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: .45rem .3rem; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dstats b { font-family: var(--f-tile); font-size: 20px; color: var(--ink); letter-spacing: 0; text-transform: none; line-height: 1.2; }


.rar { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-left: .45rem; padding: 1px 5px; border-radius: 5px; background: var(--soft); vertical-align: middle; }
.rar.r0 { color: var(--moss-d); } .rar.r1 { color: var(--ink-3); } .rar.r2 { color: var(--ochre-d); } .rar.r3 { color: var(--brick); }
.word-chip { display: inline-flex; align-items: center; }
.word-chip .rar { background: rgba(0,0,0,.18); }
html:not(.dark) .word-chip .rar { background: rgba(255,255,255,.5); }
.place-note { margin: 0 0 .5rem; font-size: 13.5px; line-height: 1.45; }
.place-note .pos { margin-right: .4rem; }

/* daily result: points and their breakdown */
.dpoints { display: block; font: 600 15px var(--f-body); }
.dpoints b { font: 700 28px var(--f-display); color: var(--terra); margin-right: 6px; }
.dbreak { display: block; margin-top: 8px; }
.dp-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dp-row b { font-weight: 700; }
.dp-row.dim { opacity: .6; }

.ar-glove .gt { display: none; }


/* Adaptive quality (see Arena._governor): step 1 drops glows and additive blending, step 2 also drops the blur filters. */
.ar-lq1 .ar-edge, .ar-lq1 .ar-streak, .ar-lq1 .ar-ember, .ar-lq1 .ar-spark, .ar-lq1 .ar-wing .wt, .ar-lq1 .ar-wing-glow,
.ar-lq1 .bot .ar-head .vz, .ar-lq1 .bot .ar-head .antl, .ar-lq1 .ar-rope-halo, .ar-lq1 .ar-rope-pulse { filter: none; }
.ar-lq1 .ar-band, .ar-lq1 .ar-streak, .ar-lq1 .ar-ember, .ar-lq1 .ar-rope-halo, .ar-lq1 .ar-rope-pulse, .ar-lq1 .ar-l-auraBack,
.ar-lq1 .bot .ar-head .beam path { mix-blend-mode: normal; }
.ar-lq2 g[filter], .ar-lq2 use[filter] { filter: none; }
.ar-lq2 .ar-rope-halo { display: none; }

/* Bonus quest strip: tap to read the whole thing (phones clip it to one or two lines while playing). */
#gameScreen .dq-bar { cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; }
#gameScreen .dq-bar .dq-chev { width: 14px; height: 14px; flex-shrink: 0; opacity: .6; transition: transform .2s; }
#gameScreen .dq-bar.open .dq-chev { transform: rotate(180deg); }
#gameScreen .dq-bar.open .dq-text { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }

/* Phones: the Continue button keeps its word (the other two are well-known icons), with its remaining count. */
@media (max-width: 900px), (max-height: 520px) {
  #gameScreen .act-bar > button#btnCont { flex: 0 0 auto; width: auto; padding: 0 .7rem; gap: .35rem; }
  #gameScreen .act-bar > button#btnCont span:not(.cont-count) { display: inline !important; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
}
