/* Tricky Quest: In Range: the shared look for splash, phone and TV. A dungeon at night: deep blue, paper cards,
   amber for the party, red for the monster. No web fonts, no remote anything: the party rig is offline, so every
   asset is local (test/pages.test.ts fails on an external URL). */
:root {
  --night: #0e1420; --night2: #172033; --night3: #22304a; --line: #33456a;
  --ink: #f2f0e6; --dim: #9fb0cf; --paper: #fff4d6; --inkd: #2a1f0c;
  --amber: #ffb84a; --amber2: #e08a1c; --storm: #8a7dff; --storm2: #5b4fd6;
  --good: #58d68d; --bad: #ff6b6b;
  /* the kit's shared end screen (client/endscreen.ts), in this game's colours */
  --cs-end-bg: radial-gradient(120% 90% at 50% -10%, #22304a 0%, #0e1420 62%); --cs-end-fg: #f2f0e6; --cs-end-dim: #9fb0cf;
  --cs-end-accent: #ffb84a; --cs-end-win: #ffb84a; --cs-end-loss: #8a7dff;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); font: 500 16px/1.4 var(--body); background: var(--night) radial-gradient(ellipse at 50% -10%, var(--night3), var(--night) 70%) fixed;
  -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 { color: var(--amber); font-size: 34px; line-height: 1.1; }
h2 { color: var(--paper); font-size: 20px; }
button { background: var(--night3); border: 1.5px solid var(--line); color: var(--ink); padding: 10px 14px; border-radius: 12px;
  font: inherit; font-weight: 700; cursor: pointer; }
button.primary { background: var(--amber); border-color: var(--amber); color: var(--inkd); }
button:disabled { opacity: .38; cursor: default; }
select, input { font: inherit; padding: 8px; border-radius: 8px; background: var(--night2); color: var(--ink); border: 1.5px solid var(--line); }
a { color: var(--amber); }
.muted, .hint, .tagg { color: var(--dim); }
.tagg { font-size: 13px; margin-left: 6px; }
.av { border-radius: 50%; vertical-align: middle; margin-right: 4px; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(160px); background: var(--paper); color: var(--inkd);
  padding: 10px 18px; border-radius: 10px; transition: transform .25s; z-index: 50; max-width: 92vw; font-weight: 700; }
#toast.show { transform: translateX(-50%) translateY(0); }
#conn { position: fixed; top: 8px; right: 8px; background: var(--bad); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 13px; display: none; z-index: 60; }
#conn.show { display: block; }

/* ---- kit phone shell: join + lobby ---- */
.join, .lobbyv { max-width: 480px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 12px; }
.join input { font-size: 20px; padding: 12px; }
.join button, .lobbyv button { font-size: 17px; padding: 12px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.btnrow button { flex: 1 1 auto; }
.seat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: #0006; border-radius: 10px; margin: 4px 0; }
.levers { display: grid; gap: 8px; }
.levers label { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--dim); font-weight: 700; }

/* ---- shared pieces: card, meter, monster, hearts, ladder, trick ---- */
.pc { display: inline-grid; grid-template-rows: 1fr 1fr; place-items: center; width: 2.9em; height: 4em; padding: .25em 0; border-radius: .45em; background: var(--paper);
  border: .12em solid #cbbf9c; color: #1b1b22; font: 800 1em/1 var(--body); box-shadow: 0 .12em .3em #0007; }
.pc b { font-size: 1.45em; } .pc i { font-style: normal; font-size: 1.5em; }
.pc.red { color: #c0392b; }
.pc.ghost { background: #ffffff0d; border: .12em dashed #ffffff2e; box-shadow: none; }

.meter { display: grid; gap: 4px; }
.m-top { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.m-name { color: var(--dim); white-space: nowrap; } .m-name em { font-style: normal; font-weight: 600; font-size: .8em; opacity: .8; }
.meter.red .m-name { color: #ff9a8c; } .meter.black .m-name { color: #c9d4ea; }
.m-need { font: 700 1.25em var(--display); color: var(--paper); white-space: nowrap; }
.m-total { margin-left: auto; white-space: nowrap; color: var(--dim); } .m-total b { font-size: 1.3em; color: var(--ink); }
.m-track { position: relative; height: 16px; border-radius: 8px; background: #ffffff14; overflow: hidden; }
.m-band { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #58d68d55 0 6px, #58d68d33 6px 12px); border-left: 2px solid var(--good); border-right: 2px solid var(--good); }
.m-fill { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 0 6px 6px 0; background: var(--amber); transition: width .35s ease-out; }
.meter.hit .m-fill { background: var(--good); } .meter.over .m-fill { background: var(--bad); }
.meter.hit .m-total b { color: var(--good); } .meter.over .m-total b { color: var(--bad); } .meter.under .m-total b { color: var(--amber); }
.meter.side { opacity: .8; } .meter.side .m-track { height: 10px; } .meter.side .m-fill { top: 2px; bottom: 2px; }

.hearts { display: inline-flex; gap: 3px; } .hearts i { font-style: normal; color: #ffffff26; font-size: 1.3em; line-height: 1; } .hearts i.on { color: #ff5d6c; text-shadow: 0 0 8px #ff5d6c88; }
.mon { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mon-icon { font-size: 1.9em; line-height: 1; } .mon-name { font: 700 1.25em var(--display); color: var(--amber); }
.mon-hp { display: inline-flex; gap: 4px; } .mon-hp i { width: 14px; height: 14px; border-radius: 50%; background: #ffffff1c; border: 1.5px solid #ffffff30; } .mon-hp i.on { background: var(--bad); border-color: #ffb3b3; box-shadow: 0 0 6px #ff6b6b99; }
.mon-bite { color: var(--dim); font-size: .85em; font-weight: 600; }
.ladder { display: inline-flex; gap: 6px; } .rung { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 99px; background: #ffffff10; font-size: .85em; opacity: .55; }
.rung b { font-size: .85em; } .rung.now { opacity: 1; background: #ffb84a2e; outline: 1.5px solid var(--amber); } .rung.dead { opacity: .35; text-decoration: line-through; }

.trick { display: flex; justify-content: center; gap: 8px; align-items: flex-start; }
.trick.done { opacity: .55; }
.play { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.play-name { font-size: .72em; font-weight: 700; color: var(--dim); max-width: 5.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play.win .pc { outline: .14em solid var(--amber); } .play.win .play-name { color: var(--amber); }
.play-tags { display: flex; gap: 3px; min-height: 1.2em; }
.tag { font-size: .62em; font-weight: 800; padding: 1px 5px; border-radius: 99px; white-space: nowrap; } .tag.cast { background: #58d68d33; color: var(--good); } .tag.pow { background: #8a7dff44; color: #cfc8ff; }

/* ---- the phone: a fixed skeleton that never scrolls the page (the rig's panels are 960x540 with
   no scrollbar: a control below the fold there is not a control) ---- */
.g { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto; gap: 7px;
  padding: max(8px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; overflow: hidden; }
.g-head { display: flex; align-items: center; gap: 8px; min-height: 40px; min-width: 0; }
.g-ladder { margin-left: auto; } .g-hearts { white-space: nowrap; }
.help { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 20px; }
.help.pulse { animation: helppulse 1.6s ease-in-out infinite; border-color: var(--amber); }
@keyframes helppulse { 50% { box-shadow: 0 0 0 6px #ffb84a55; } }
#cs-pres-slot { display: flex; justify-content: center; min-height: 0; }
.g-mon { background: var(--night2); border-radius: 12px; padding: 6px 10px; }
.g-meters { display: grid; gap: 6px; font-size: 14px; }
.g-trick { display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 0; font-size: clamp(14px, 4.4vw, 19px); overflow: hidden; }
.g-verdict { font-weight: 800; padding: 3px 12px; border-radius: 99px; background: var(--night3); } .g-verdict.good { color: var(--good); } .g-verdict.epic { color: #2a1f0c; background: linear-gradient(100deg, #ffd27a, #fff4d6 45%, #ffb84a); font-size: 1.35em; padding: 6px 18px; box-shadow: 0 0 22px #ffb84aaa; } .g-verdict.bad { color: var(--bad); } .g-verdict.meh { color: var(--amber); }
.g-next { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .g-next span { padding: 4px 10px; border-radius: 99px; background: var(--night2); color: var(--dim); font-weight: 700; font-size: 14px; } .g-next span.rdy { color: var(--good); }
.g-coach { background: var(--night2); border-left: 4px solid var(--amber); border-radius: 6px 12px 12px 6px; padding: 7px 12px; font-size: 14px; line-height: 1.3; min-height: 52px; display: flex; align-items: center; }
.g:not(.mine) .g-coach { border-left-color: var(--line); color: var(--dim); }
.g-mine { display: grid; gap: 7px; }
.g-me { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.g-me b { color: var(--ink); } .me-coin { margin-left: auto; color: #ffd27a; font-weight: 800; }
.me-pow i, .t-pow i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ffffff22; margin-left: 2px; } .me-pow i.on, .t-pow i.on { background: #8a7dff; box-shadow: 0 0 6px #8a7dffaa; }
.g-hand { display: flex; gap: 6px; justify-content: center; min-height: 88px; align-items: center; font-size: clamp(15px, 4.6vw, 21px); }
.g-none { color: var(--dim); font-size: 15px; }
.g-hand .pc { cursor: pointer; opacity: .45; transition: transform .12s, box-shadow .12s, opacity .12s; }
.g-hand .pc.can { opacity: 1; }
.g-hand .pc.powonly { opacity: .8; border-style: dashed; border-color: #8a7dff; }
.g-hand .pc.picked { transform: translateY(-10px); box-shadow: 0 0 0 3px var(--good), 0 8px 18px #0008; opacity: 1; }
.g-hand .pc:disabled { opacity: 1; cursor: default; }
.g-pre { min-height: 38px; font-size: 13.5px; line-height: 1.3; color: var(--dim); } .g-pre b { color: var(--ink); } .g-pre i { color: #cfc8ff; }
.g-btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.g-btns button { min-height: 48px; padding: 6px 8px; font-size: 16px; line-height: 1.15; }
.g-btns .pow.on { background: #8a7dff; border-color: #8a7dff; color: #fff; }
.g-btns [hidden] { display: none; }

/* The kit's pill (table-dock.ts: "Table", or "Sound") opens the sheet with what happened, and the phone's
   sound switches. Its own spot is the bottom right corner, which is where Play lives, so it is moved
   up beside "?" and the header keeps a gap for it (.g-pillgap). Off the top centre and the top right:
   the rig's launcher owns those on a panel. */
body.phone #cs-pill { top: max(8px, env(safe-area-inset-top)); bottom: auto; left: 60px; right: auto; height: 40px; width: 96px; padding: 0 6px;
  font-size: 13.5px; white-space: nowrap; text-align: center; }
.g-pillgap { flex: none; width: 96px; }
@media (max-width: 719px) { .g-ladder .rung b { display: none; } .g-ladder .rung { padding: 2px 4px; } .g-ladder .ladder { gap: 3px; } .mon { gap: 8px; } }
@media (max-height: 700px) and (max-width: 719px) { .g-coach { min-height: 40px; font-size: 13px; } .g-pre { min-height: 34px; font-size: 12.5px; } .mon-bite { display: none; } }

/* A rig panel or a phone on its side: use the width. The table left, your hand right. Nothing a player
   presses is below the fold, and the top centre stays clear for the launcher's own strip. */
@media (min-width: 720px) and (max-height: 640px) {
  .g { max-width: none; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: 16px; padding: 8px 16px 10px; }
  .g-head, #cs-pres-slot { grid-column: 1 / -1; }
  .g-mon { grid-column: 1; grid-row: 2; } .g-meters { grid-column: 1; grid-row: 3; } .g-trick { grid-column: 1; grid-row: 4; }
  .g-coach { grid-column: 2; grid-row: 2; } .g-mine { grid-column: 2; grid-row: 3 / 5; align-content: center; }
  #cs-pres-slot { grid-row: 5; }
  body.phone #cs-pill { left: 64px; top: 8px; }
  .g-hand { font-size: 20px; }
  .g-trick { font-size: 14px; }
  .lobbyv { max-width: 900px; grid-template-columns: 1fr 1fr; align-items: start; padding: 44px 16px 10px; gap: 8px 16px; }
  .lobbyv h1 { grid-column: 1 / -1; font-size: 26px; }
  .lobbyv > div:nth-child(2) { grid-row: span 4; }
  .join { padding-top: 44px; }
}

/* ---- coach marks (table/client/coach.ts draws them; these are its classes) ---- */
.coach { position: fixed; inset: 0; z-index: 2300; color: var(--ink); -webkit-user-select: none; user-select: none; animation: cmin .18s ease-out; }
@keyframes cmin { from { opacity: 0; } to { opacity: 1; } }
.cm-svg { position: absolute; inset: 0; display: block; }
.cm-dim { fill: rgba(4, 7, 14, .82); }
.cm-ring { fill: none; stroke: var(--amber); stroke-width: 2; }
.cm-ln { stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }
.cm-dot { fill: var(--amber); stroke: var(--inkd); stroke-width: 1.5; }
.cm-call { position: absolute; padding: 9px 12px 10px; border-radius: 14px; font-size: 14.5px; line-height: 1.33; background: var(--night2); border: 1.5px solid var(--amber); box-shadow: 0 10px 28px #000a; }
.cm-call .cm-n { float: left; width: 22px; height: 22px; margin: 0 8px 0 0; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--inkd); font: 700 13px/1 var(--body); }
.cm-call .cm-t { font: 700 15.5px/22px var(--display); color: var(--paper); }
.cm-call .cm-b { margin-top: 3px; clear: both; } .cm-call .cm-b b { color: #fff; }
.cm-measure { visibility: hidden; left: -9999px; top: 0; pointer-events: none; }
.cm-none { text-align: center; }
.cm-pager { position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 16px; background: #0a0f1af7; border: 1px solid var(--line); box-shadow: 0 8px 26px #000a; }
.cm-pager button { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 12px; }
.cm-pager .cm-close { width: 44px; padding: 0; font-size: 26px; line-height: 1; border-radius: 50%; flex: none; }
.cm-pager .cm-count { flex: 1; text-align: center; color: var(--dim); font-weight: 700; white-space: nowrap; }
.cm-last { position: absolute; left: 8px; right: 8px; display: flex; overflow: auto; overscroll-behavior: contain; }
.cm-lastin { margin: auto; width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; padding: 14px 16px 16px; border-radius: 18px; border: 2px solid var(--amber); background: var(--night2); font-size: 15px; line-height: 1.4; -webkit-user-select: text; user-select: text; }
.cm-lastin .cm-kick { text-align: center; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--amber); }
.cm-lastin h2 { margin: 0 0 8px; text-align: center; font-size: 22px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.cm-lastin ul { margin: 0; padding-left: 1.2em; } .cm-lastin li { margin: 0 0 6px; } .cm-lastin b { color: #fff; }

/* ---- splash + help ---- */
.wrap { max-width: 860px; margin: 0 auto; padding: 28px 18px 60px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); }
.tag { font-size: 1.2em; color: var(--dim); margin: 6px 0 4px; }
.cta { display: inline-block; margin: 14px 10px 6px 0; padding: 12px 20px; border-radius: 14px; background: var(--amber); color: var(--inkd); font-weight: 800; text-decoration: none; }
.cta.alt { background: var(--night3); color: var(--ink); border: 1.5px solid var(--line); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 26px; }
.how div { background: var(--night2); border-radius: 14px; padding: 12px 14px; } .how h3 { color: var(--amber); margin-bottom: 4px; }
.rooms { margin-top: 30px; } .rooms .room { display: flex; justify-content: space-between; align-items: center; background: var(--night2); border-radius: 12px; padding: 10px 14px; margin: 6px 0; }
.rooms .code { font-family: var(--display); color: var(--amber); letter-spacing: 3px; font-size: 22px; }
#rejoin { display: none; background: var(--night2); border-left: 4px solid var(--amber); border-radius: 8px; padding: 12px 16px; margin-top: 18px; } #rejoin.show { display: block; }
footer { margin-top: 40px; color: var(--dim); font-size: .9em; }
.helppage h2 { margin: 26px 0 6px; } .helppage li { margin-bottom: 6px; } .helppage .back { text-decoration: none; font-weight: 700; }
.helppage figure { margin: 22px 0; } .helppage figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.helppage figure.phone img { max-width: 300px; margin: 0 auto; }
.helppage figcaption { color: var(--dim); margin-top: 8px; font-size: .95em; }

/* ---- the trailer button and player (shared/trailer.ts; the player Deep Frontiers and DEKK use) ---- */
.tq-introbtn { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 18px 9px 10px; border-radius: 999px; font: 800 16px/1 var(--body); color: var(--paper);
  background: linear-gradient(180deg, #ffb84a2e, #ffb84a14); border: 1.5px solid var(--amber); box-shadow: 0 0 18px #ffb84a2e; cursor: pointer; }
.tq-introbtn:hover, .tq-introbtn:focus-visible { background: #ffb84a40; outline: none; box-shadow: 0 0 22px #ffb84a66; }
.tq-introbtn .pl { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--amber); animation: tq-sonar 2.4s ease-out infinite; }
.tq-introbtn .pl::after { content: ''; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--inkd); }
.tq-introbtn.alt { border-color: var(--line); background: var(--night3); box-shadow: none; } .tq-introbtn.alt .pl { background: var(--dim); animation: none; }
.tq-introbtn.wide { width: 100%; justify-content: center; }
@keyframes tq-sonar { 0% { box-shadow: 0 0 0 0 #ffb84a8c; } 80%, 100% { box-shadow: 0 0 0 12px #ffb84a00; } }
.introrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 4px; }
.lobbyv .introrow { margin: 0; } .lobbyv .tq-introbtn { font-size: 16px; padding: 9px 18px 9px 10px; }
.tq-learnlink { font-weight: 800; }
.tq-intro { position: fixed; inset: 0; z-index: 2147483100; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  background: radial-gradient(80vw 60vh at 50% 45%, #22304acc, transparent 70%), #05080fe6; animation: tq-intro-in .2s ease-out; }
@keyframes tq-intro-in { from { opacity: 0; } }
.tq-intro .box { width: min(1100px, 100%, calc((100dvh - 110px) * 16 / 9)); border-radius: 18px; overflow: hidden; background: #05080f; border: 1.5px solid var(--amber); box-shadow: 0 0 50px #ffb84a38, 0 30px 80px #000b; }
.tq-intro .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; background: var(--night2); border-bottom: 1px solid var(--line); }
.tq-intro .bar .t { font: 700 16px var(--display); color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tq-intro .bar .t b { color: var(--dim); font-weight: 600; }
.tq-intro .x { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; }
.tq-intro video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
body.tq-intro-on { overflow: hidden; }
.tq-intro-none { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2147483100; background: var(--paper); color: var(--inkd); padding: 10px 18px; border-radius: 10px; font-weight: 700; max-width: 92vw; box-shadow: 0 8px 26px #000a; }

/* ---- the front page (client/splash/main.ts fills the lists from the rules file) ---- */
.sp-shots { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 1fr); gap: 14px; align-items: end; margin-top: 26px; }
.sp-shots:has(figure:only-child) { grid-template-columns: minmax(0, 1fr); }
.sp-shots figure { margin: 0; } .sp-shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 14px 40px #0009; }
.sp-shots figcaption { color: var(--dim); font-size: .9em; margin-top: 6px; }
.sp-sec { margin-top: 30px; } .sp-sec h2 { margin-bottom: 4px; } .sp-sec p { margin: 0 0 10px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sp-card { position: relative; display: grid; gap: 2px; align-content: start; background: var(--night2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sp-card .ic { font-size: 34px; line-height: 1.1; } .sp-card b { font: 700 18px var(--display); color: var(--amber); } .sp-card .st { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.sp-card em { font-style: normal; font-size: 14px; color: var(--dim); } .sp-card i { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 12px; color: var(--dim); }
.sp-bonuses { display: flex; flex-wrap: wrap; gap: 8px; } .sp-bonus { background: var(--paper); color: #1b1b22; border-radius: 99px; padding: 6px 14px; font-weight: 700; } .sp-bonus b { font-size: 1.2em; } .sp-bonus.red b { color: #c0392b; }
@media (max-width: 620px) { .sp-shots { grid-template-columns: minmax(0, 1fr); } .sp-shots figure.ph { max-width: 240px; margin: 0 auto; } }

/* ---- the tutorial, /learn/ (client/splash/learn.ts) ---- */
body.learn .wrap { max-width: 780px; padding-bottom: 110px; }
.ln-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--dim); font-size: 14px; } .ln-home { font: 700 18px var(--display); color: var(--amber); text-decoration: none; }
.ln-film { margin: 14px 0 6px; } .ln-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); background: #000; } .ln-film figcaption { color: var(--dim); font-size: 14px; margin-top: 6px; }
.ln-page h1 { font-size: 32px; margin: 16px 0 8px; } .ln-text { font-size: 18px; line-height: 1.5; margin: 0 0 16px; } .ln-text b { color: #fff; }
.ln-art { display: grid; gap: 12px; }
.ln-scene { display: grid; gap: 14px; padding: 14px; border-radius: 16px; background: #0006; border: 1px solid var(--line); }
.ln-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; } .ln-hearts { font-size: 20px; }
.ln-meters { display: grid; gap: 8px; font-size: 15px; } .ln-trick { display: grid; justify-items: center; gap: 8px; font-size: 19px; } .ln-trick .trick.done { opacity: 1; }
.ln-hand { display: grid; justify-items: center; gap: 6px; } .ln-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 17px; } .ln-cap { color: var(--dim); font-size: 14px; }
.ln-mons, .ln-heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ln-mons > div, .ln-heroes > div { display: grid; gap: 2px; align-content: start; background: var(--night2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ln-mons .ic, .ln-heroes .ic { font-size: 28px; line-height: 1.1; } .ln-mons b, .ln-heroes b { font: 700 16px var(--display); color: var(--amber); } .ln-mons span, .ln-heroes span { font-size: 14px; } .ln-mons em { font-style: normal; font-size: 13.5px; color: var(--dim); }
.ln-go { display: flex; flex-wrap: wrap; gap: 4px; }
.ln-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px max(16px, calc((100vw - 780px) / 2 + 16px)) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--night) 35%); }
.ln-nav > button, .ln-next { flex: none; padding: 13px 20px; border-radius: 12px; font: 800 17px var(--body); text-decoration: none; } .ln-next { background: var(--amber); border: 1.5px solid var(--amber); color: var(--inkd); }
.ln-dots { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.ln-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1.5px solid var(--dim); background: none; } .ln-dots button.on { background: var(--amber); border-color: var(--amber); }
@media (max-width: 560px) { .ln-page h1 { font-size: 26px; } .ln-text { font-size: 16.5px; } .ln-trick { font-size: 16px; } .ln-dots button { width: 9px; height: 9px; } .ln-nav > button, .ln-next { padding: 12px 14px; font-size: 15.5px; } }
