/* Atom Architects. Trilogy standard: deep navy base, one accent (electric cyan #17E0FF), off-white text. */
:root {
  --navy: #0B0F1A;
  --navy-2: #111a33;
  --ink: #F4F6FA;
  --muted: #a9b8d4;
  --dim: #7186a8;
  --cyan: #17E0FF;
  --cyan-soft: rgba(23, 224, 255, .16);
  --gold: #FFD46B;
  --glass: rgba(16, 26, 52, .72);
  --edge: rgba(150, 210, 255, .18);
  --edge-hi: rgba(23, 224, 255, .55);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--navy); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45;
  overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
p { margin: 0; }
.ic { width: 22px; height: 22px; flex: none; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

#bg, #board, #fx { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#bg { z-index: 0; }
#fx { z-index: 40; pointer-events: none; }
.screen { position: fixed; inset: 0; z-index: 2; }

/* ---------- buttons ---------- */
.btn {
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--edge);
  background: rgba(20, 34, 66, .7); font-weight: 600; font-size: 16px; letter-spacing: .02em; cursor: pointer;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--edge-hi); }
.btn:active { transform: scale(.97); }
.btn.primary {
  background: linear-gradient(180deg, #3cf0ff, #10b8e0); color: #04121f; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(23,224,255,.4), 0 10px 30px rgba(23,224,255,.28);
}
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(23,224,255,.7), 0 12px 38px rgba(23,224,255,.45); }
.btn.big { min-height: 60px; font-size: 20px; padding: 14px 56px; letter-spacing: .08em; text-transform: uppercase; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff9aa6; border-color: rgba(255,120,140,.35); }
.icon-btn {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--edge); background: rgba(14, 24, 48, .6); cursor: pointer; backdrop-filter: blur(10px);
}
.icon-btn:hover { border-color: var(--edge-hi); }
.glass {
  background: linear-gradient(160deg, rgba(40, 70, 140, .22), rgba(8, 12, 30, .3) 60%), var(--glass);
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 70px rgba(0,0,0,.5);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* ---------- title ---------- */
#title { display: flex; align-items: center; justify-content: center; padding: 72px 16px 56px; overflow-y: auto; }
.backlink {
  position: absolute; left: max(16px, env(safe-area-inset-left)); top: 14px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px 0 8px; color: var(--muted); text-decoration: none; font-size: 15px; border-radius: 999px;
}
.backlink:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.corner { position: absolute; right: max(16px, env(safe-area-inset-right)); top: 12px; }
.title-wrap { width: min(560px, 100%); text-align: center; margin: auto; }
.kicker { color: var(--cyan); letter-spacing: .24em; text-transform: uppercase; font-size: 15px; font-weight: 600; }
.logo {
  margin: 10px 0 6px; font-weight: 800; font-size: clamp(48px, 13vw, 96px); line-height: .92; letter-spacing: .01em;
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 0 40px rgba(23,224,255,.35);
}
.logo span:first-child { background: linear-gradient(180deg, #fff, #bff7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo span:last-child { font-size: .58em; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.tagline { color: var(--muted); font-size: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 16px; border-radius: 999px;
  color: #04121f; background: linear-gradient(90deg, #9ff6ff, #17E0FF); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px;
}
.menu { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 104px; padding: 14px 8px;
  border-radius: var(--r); border: 1px solid var(--edge); background: rgba(14, 24, 50, .62); backdrop-filter: blur(12px);
  cursor: pointer; transition: border-color .2s, transform .15s;
}
.tile:hover { border-color: var(--edge-hi); }
.tile:active { transform: scale(.97); }
.tile .ic { width: 28px; height: 28px; color: var(--cyan); }
.t-name { font-weight: 700; font-size: 16px; }
.t-sub { color: var(--muted); font-size: 15px; }
.tile.locked { opacity: .62; }
.tile.locked .ic { color: var(--dim); }
.tile.fresh::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.6s infinite;
}
.title-stats { margin-top: 22px; color: var(--muted); font-size: 15px; }
.early { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--dim); font-size: 15px; letter-spacing: .06em; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }

/* ---------- bars & scroll screens ---------- */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(11,15,26,.95), rgba(11,15,26,.75)); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.bar h2 { margin: 0; font-size: 20px; letter-spacing: .04em; flex: 1; }
.bar-stat { color: var(--muted); font-size: 15px; white-space: nowrap; }
.scroll { position: absolute; inset: 69px 0 0 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px 40px; }

/* ---------- level map ---------- */
.map-inner { width: min(860px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.chapter { padding: 18px; border-radius: 22px; }
.chapter.locked { opacity: .55; }
.ch-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ch-num { color: var(--cyan); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 15px; }
.ch-name { font-size: 22px; font-weight: 700; margin: 0; }
.ch-prog { margin-left: auto; color: var(--muted); font-size: 15px; }
.ch-blurb { color: var(--muted); font-size: 15px; margin-top: 2px; }
.nodes { display: grid; grid-template-columns: repeat(7, minmax(0, 72px)); justify-content: space-between; gap: 8px; margin-top: 14px; padding-bottom: 8px; }
.node {
  position: relative; aspect-ratio: 1; min-height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--edge); background: radial-gradient(circle at 35% 30%, rgba(120,200,255,.25), rgba(14,24,50,.8) 70%);
  font-weight: 700; font-size: 18px; cursor: pointer; transition: transform .15s, border-color .2s, box-shadow .2s;
}
.node:hover { border-color: var(--edge-hi); }
.node:active { transform: scale(.94); }
.node.done { border-color: rgba(23,224,255,.5); box-shadow: 0 0 18px rgba(23,224,255,.18); }
.node.next { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(23,224,255,.25), 0 0 26px rgba(23,224,255,.45); animation: glowNode 2s ease-in-out infinite; }
.node.locked { cursor: default; color: var(--dim); background: rgba(10,16,32,.7); }
.node.locked .ic { width: 18px; height: 18px; }
.node .st { position: absolute; bottom: -2px; left: 50%; transform: translate(-50%, 50%); display: flex; gap: 1px; }
.node .st .ic { width: 13px; height: 13px; color: rgba(255,255,255,.18); }
.node .st .ic.on { color: var(--gold); filter: drop-shadow(0 0 4px rgba(255,212,107,.6)); }
@media (max-width: 560px) { .nodes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; } .chapter { padding: 16px 14px 20px; } }
.node-label { text-align: center; font-size: 15px; color: var(--muted); margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes glowNode { 50% { box-shadow: 0 0 0 5px rgba(23,224,255,.12), 0 0 34px rgba(23,224,255,.6); } }
.map-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- play ---------- */
#play { touch-action: none; }
#board { z-index: 0; touch-action: none; outline: none; }
.hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: flex-start; gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); pointer-events: none;
}
.hud > * { pointer-events: auto; }
.goal { flex: 1; min-width: 0; padding: 6px 4px; }
.goal-k { color: var(--cyan); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-t { font-size: 20px; font-weight: 700; line-height: 1.25; margin-top: 2px; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.goal-t .clue { font-weight: 600; font-size: 18px; }
.goal-t sub, .res-formula sub, .card-formula sub, .f sub { font-size: .68em; }
.goal-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.goal-row .goal-k { flex: 1; min-width: 0; }
.meter { display: flex; align-items: center; gap: 8px; flex: none; }
.live-stars { display: flex; gap: 1px; }
.live-stars .ic { width: 18px; height: 18px; color: rgba(255,255,255,.2); transition: color .3s; }
.live-stars .ic.on { color: var(--gold); }
.moves { color: var(--muted); font-size: 15px; white-space: nowrap; }
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 8px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(0deg, rgba(8,12,24,.94) 60%, rgba(8,12,24,0));
}
.coach { text-align: center; color: #d9f9ff; font-size: 16px; min-height: 24px; margin: 0 auto 8px; max-width: 640px; text-shadow: 0 1px 10px #000; }
.coach:empty { display: none; }
.dock-row { display: flex; gap: 10px; align-items: center; justify-content: center; max-width: 980px; margin: 0 auto; }
.tray { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; min-width: 0; }
.tray::-webkit-scrollbar { display: none; }
.atom-btn {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--edge);
  background: rgba(16, 28, 56, .75); display: grid; place-items: center; cursor: grab; touch-action: none; padding: 0;
  transition: border-color .2s, transform .15s, opacity .2s;
}
.atom-btn img { width: 56px; height: 56px; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.atom-btn:hover { border-color: var(--edge-hi); }
.atom-btn.empty { opacity: .3; cursor: default; }
.atom-btn .cnt {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: #e9fbff; color: #04121f; font-weight: 800; font-size: 15px; line-height: 24px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.atom-btn .slots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.atom-btn .slots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 5px var(--cyan); }
.atom-btn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }
.tools { display: flex; gap: 8px; flex: none; }
.tool {
  min-width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--edge); background: rgba(16, 28, 56, .75);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-size: 15px; padding: 0 8px;
}
.tool:hover { border-color: var(--edge-hi); }
.tool:disabled { opacity: .35; cursor: default; }
.tool.attn { border-color: var(--cyan); box-shadow: 0 0 18px rgba(23,224,255,.5); }
@media (max-width: 640px) {
  .dock-row { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .tools { justify-content: center; }
  .tool { flex: 1; flex-direction: row; gap: 6px; height: 48px; max-width: 140px; }
  .tray { justify-content: center; flex-wrap: wrap; overflow: visible; gap: 8px 10px; }
  .atom-btn { width: 60px; height: 60px; }
  .atom-btn img { width: 52px; height: 52px; }
  .toast { top: calc(env(safe-area-inset-top, 0px) + 112px); bottom: auto; transform: translate(-50%, -12px); }
  .toast.show { transform: translate(-50%, 0); }
  .goal-t { font-size: 18px; }
}

/* ---------- result ---------- */
.result {
  position: absolute; z-index: 5; right: max(24px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  width: min(420px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto; border-radius: 26px; padding: 24px;
  animation: rise .5s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rise { from { opacity: 0; transform: translateY(calc(-50% + 40px)); } }
.res-k { color: var(--cyan); letter-spacing: .16em; text-transform: uppercase; font-size: 15px; font-weight: 700; }
.res-name { margin: 4px 0 0; font-size: 30px; line-height: 1.1; }
.res-formula { font-size: 20px; color: var(--muted); margin-top: 2px; }
.res-stars { display: flex; gap: 10px; margin: 14px 0 4px; }
.res-stars .ic { width: 44px; height: 44px; color: rgba(255,255,255,.12); transform: scale(.4); opacity: 0; transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .2s, color .2s; }
.res-stars .ic.show { transform: scale(1); opacity: 1; }
.res-stars .ic.on { color: var(--gold); filter: drop-shadow(0 0 10px rgba(255,212,107,.7)); }
.res-criteria { color: var(--muted); font-size: 15px; }
.res-points { font-size: 20px; font-weight: 700; margin-top: 8px; color: #dffaff; }
.res-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--cyan-soft); border: 1px solid rgba(23,224,255,.4); color: #c9f8ff; }
.chip.gold { background: rgba(255,212,107,.14); border-color: rgba(255,212,107,.45); color: #ffe7a8; }
.fact { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--edge); display: grid; gap: 8px; font-size: 16px; color: #dce6f6; }
.fact p:last-child { color: var(--muted); }
.res-actions, .row-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.res-actions .btn, .row-btns .btn { flex: 1 1 auto; white-space: nowrap; padding-inline: 16px; }
#play.done .dock, #play.done .meter { opacity: 0; pointer-events: none; transition: opacity .4s; }
@media (max-width: 760px) {
  .result { left: 12px; right: 12px; width: auto; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; max-height: 62%; padding: 20px; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px); } }
  .res-name { font-size: 26px; }
  .res-stars .ic { width: 38px; height: 38px; }
}

/* ---------- cabinet ---------- */
.cab-inner { width: min(1100px, 100%); margin: 0 auto; }
.cab-head { display: grid; gap: 10px; margin-bottom: 18px; }
.cab-count { font-size: 22px; font-weight: 700; }
.progress { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1d7bff, var(--cyan)); box-shadow: 0 0 12px var(--cyan); transition: width .8s ease; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; cursor: pointer; font-size: 15px; }
.tab[aria-selected="true"] { background: var(--cyan-soft); border-color: var(--edge-hi); color: #d8fbff; }
.cab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.mcard {
  position: relative; border-radius: 18px; padding: 10px 10px 12px; text-align: left; cursor: pointer; border: 1px solid var(--edge);
  background: linear-gradient(170deg, rgba(40,80,160,.25), rgba(10,16,34,.85)); overflow: hidden; transition: transform .15s, border-color .2s;
}
.mcard:hover { border-color: var(--edge-hi); transform: translateY(-2px); }
.mcard canvas { display: block; margin: 0 auto; }
.mcard .nm { font-weight: 700; font-size: 16px; margin-top: 4px; }
.mcard .f { color: var(--muted); font-size: 15px; }
.mcard.unknown { background: rgba(10,16,32,.7); }
.mcard.unknown .nm { color: var(--dim); }
.mcard .src { position: absolute; top: 8px; left: 10px; font-size: 15px; color: var(--dim); }
.mcard.new::after { content: "New"; position: absolute; top: 8px; right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--cyan); color: #04121f; font-weight: 700; font-size: 15px; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 14, .66); backdrop-filter: blur(4px); }
.sheet { width: min(460px, 100%); max-height: calc(100% - 16px); overflow-y: auto; border-radius: 24px; padding: 22px; animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
.sheet.small { width: min(380px, 100%); }
.sheet h2 { margin: 0 0 12px; font-size: 24px; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.card-sheet { text-align: center; }
.card-sheet canvas { width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 3; display: block; margin: 0 auto 6px; }
.card-sheet .fact { text-align: left; }
.card-alt { color: var(--muted); font-size: 15px; margin-top: -8px; }
.card-formula { font-size: 22px; color: #cdefff; margin-top: 4px; }
.switch { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--edge); font-size: 17px; cursor: pointer; }
.switch span { order: -1; }
.switch input { appearance: none; width: 52px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.15); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--cyan); }
.switch input:checked::after { transform: translateX(22px); }
.help { margin: 14px 0; font-size: 15px; color: #d4deef; }
.help summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: 16px; list-style: none; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--cyan); }
.help[open] summary::after { content: "–"; }
.help ul { padding-left: 20px; margin: 4px 0 10px; display: grid; gap: 6px; }
.muted { color: var(--muted); font-size: 15px; }
.nb-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.nb-list li { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--edge); background: rgba(10,18,40,.6); font-size: 15px; }
.nb-list li b { display: block; font-size: 16px; }
.nb-list li.found { border-color: rgba(23,224,255,.4); }
.nb-list li.found b { color: var(--cyan); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 190px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100% - 32px)); padding: 12px 20px; border-radius: 16px; text-align: center; font-size: 16px;
  background: rgba(12, 22, 46, .92); border: 1px solid var(--edge-hi); box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: rgba(255,150,120,.6); }
.toast.big { font-size: 18px; font-weight: 700; }
@media (min-width: 641px) { .toast { bottom: 130px; } }

/* ---------- finale ---------- */
.finale { position: fixed; inset: 0; z-index: 35; background: #03050c; }
#finaleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.finale-line { position: absolute; left: 0; right: 0; top: 12%; text-align: center; font-size: clamp(20px, 4vw, 34px); font-weight: 700; letter-spacing: .06em; color: #e8fcff; text-shadow: 0 0 30px rgba(23,224,255,.6); transition: opacity 1s; padding: 0 16px; }
.skip { position: absolute; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
.finale-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; border-radius: 28px; padding: 24px; text-align: center; animation: pop .6s cubic-bezier(.2,.9,.3,1.2); }
.finale-panel h2 { margin: 4px 0 6px; font-size: 32px; background: linear-gradient(90deg, #fff, #9ff6ff, #17E0FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.medal { width: 110px; height: 110px; filter: drop-shadow(0 0 20px rgba(23,224,255,.6)); }
.fp-stats { color: var(--muted); font-size: 16px; }
.share { display: grid; gap: 6px; text-align: left; margin-top: 16px; font-size: 15px; color: var(--muted); }
.share input { min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(5,10,24,.8); color: var(--ink); font: inherit; font-size: 15px; }
.finale-panel > .btn { margin-top: 10px; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.reduce *, .reduce *::before, .reduce *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { flex-direction: row; min-height: 60px; padding: 10px 16px; text-align: left; gap: 12px; }
  .tile .t-name { flex: 1; }
  .node { font-size: 18px; }
  .bar h2 { font-size: 18px; }
}
