/* Ankai Journey. Tokens and shapes from the Claude Design handoff
   (Ankai Journey.dc.html). Dark mode only. One accent. */

:root {
  --void: #080808;
  --frame: #0c0c0c;
  --panel: #111111;
  --panel-2: #161616;
  --line: #2a2a2a;
  --line-2: #222222;
  --rule: #1c1c1c;
  --text: #EDEDED;
  --text-2: #d8d8d8;
  --dim: #8c8c8c;
  --dim-2: #666666;
  --faint: #555555;
  --signal: #C8F400;
  --signal-hi: #dfff4d;
  --signal-deep: #1a1f08;
  --cut: 10px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--void); color: var(--text); }
body {
  font-family: var(--sans);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
::selection { background: rgba(200, 244, 0, .3); }
a { color: var(--signal); }

@keyframes spin { from { transform: rotate(0) } to { transform: rotate(360deg) } }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }
@keyframes nudge { 0%, 100% { transform: translateX(0) } 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }

/* ---------- shell ---------- */
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--frame); position: relative; }
.screen { padding-top: var(--safe-t); padding-bottom: calc(var(--nav-h) + var(--safe-b) + 14px); }
.screen.full { padding-bottom: var(--safe-b); min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-left: 28px; padding-right: 28px; }

.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--frame); border-top: 1px solid var(--line-2); display: flex; z-index: 10;
}
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; }
.nav .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .05em; color: var(--faint); }
.nav button[aria-current="page"] .lbl { color: var(--signal); }

.glyph { display: inline-grid; grid-template-columns: repeat(7, var(--c)); grid-template-rows: repeat(7, var(--c)); gap: 1px; flex-shrink: 0; }
.glyph i { display: block; }

.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); margin-bottom: 14px; text-transform: uppercase; }
.pad { padding: 20px 16px 28px; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--signal); color: var(--void); font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  padding: 14px 32px;
}
.btn-primary:active { background: var(--signal-hi); }
.btn-primary.sm { font-size: 12px; padding: 10px 18px; min-height: 44px; letter-spacing: .06em; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid var(--signal); color: var(--signal); font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .08em; padding: 12px 26px;
}
.btn-outline:active { background: var(--signal-deep); }
.chip {
  min-height: 44px; min-width: 56px; padding: 6px 14px; font-family: var(--mono); font-size: 11px;
  border: 1px solid #333; color: var(--dim); display: inline-flex; align-items: center; justify-content: center;
}
.chip[aria-pressed="true"] { border-color: var(--signal); color: var(--signal); }
.back { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); min-height: 48px; padding: 0 16px; position: absolute; top: var(--safe-t); left: 0; display: flex; align-items: center; }

/* ---------- sync + banners ---------- */
.sync { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--faint); padding: 8px 16px 0; min-height: 20px; }
.sync .dot { width: 6px; height: 6px; background: var(--faint); }
.sync.pending .dot { background: var(--signal); animation: pulse 1.4s ease-in-out infinite; }
.sync.offline .dot { background: transparent; border: 1px solid var(--dim); }
.sync.error { color: var(--signal); }
.notice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; line-height: 1.55; color: var(--text-2); display: flex; gap: 12px; align-items: flex-start; }
.notice .x { margin-left: auto; color: var(--dim); font-family: var(--mono); font-size: 12px; min-width: 32px; min-height: 32px; }
.notice.alert { border-color: var(--signal); }

/* ---------- today ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.head .day { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.head .day span { color: var(--faint); }
.head .sub { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; }
.head .streak { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--signal); text-align: right; }
.head .streak-l { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--faint); text-align: right; }
.xpbar { position: relative; height: 10px; background: var(--rule); margin-bottom: 6px; }
.xpbar > i { position: absolute; inset: 0 auto 0 0; background: var(--signal); }
.xpmeta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--faint); margin-bottom: 20px; }

.quest { margin-bottom: 10px; border: 1px solid var(--line); background: var(--panel); }
.quest-row { display: flex; align-items: center; gap: 12px; padding: 0 0 0 14px; min-height: 64px; width: 100%; text-align: left; }
.quest-row .t { font-size: 15px; font-weight: 600; }
.quest-row .s { font-size: 12px; color: var(--dim-2); margin-top: 1px; }
.quest-row .grow { flex: 1; min-width: 0; padding: 14px 0; }
.check { flex-shrink: 0; width: 56px; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.check b { width: 26px; height: 26px; border: 1px solid #444; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; color: var(--void); font-weight: 400; }
.done .check b { border-color: var(--signal); background: var(--signal); }
.done .quest-row .t { color: var(--faint); }
.pend { font-family: var(--mono); font-size: 9px; color: var(--signal); letter-spacing: .08em; margin-left: 6px; }
.expand { padding: 0 14px 16px; border-top: 1px solid var(--line-2); }
.phase { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.phase .r { display: flex; justify-content: space-between; font-size: 13px; }
.phase .r span:last-child { font-family: var(--mono); color: var(--dim); }
.phase .d { font-size: 12px; color: var(--dim-2); margin-top: 4px; }
.phase.on { border-left: 2px solid var(--signal); padding-left: 10px; }
.phase.on .r span:last-child { color: var(--signal); }
.phase.past .r span { color: var(--faint); }
.counts { font-family: var(--mono); font-size: 11px; color: var(--signal); padding: 10px 0 2px; }
.close-line { font-size: 12px; color: var(--dim); font-style: italic; line-height: 1.6; margin-top: 10px; }
.close-line.big { font-size: 15px; color: var(--text-2); }
.timer { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--signal); margin: 14px 0 2px; letter-spacing: .04em; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.stepper button { width: 44px; height: 44px; font-family: var(--mono); font-size: 18px; color: var(--dim); }
.stepper output { min-width: 64px; text-align: center; font-family: var(--mono); font-size: 14px; }
.para { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 12px 0 4px; }
.hint { font-size: 12px; color: var(--dim); line-height: 1.6; }
.ex { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ex .a { font-size: 13px; font-weight: 600; }
.ex .b { font-size: 12px; color: var(--dim); margin-top: 2px; }
.field { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; padding: 12px; border-radius: 0; }
.field:focus { border-color: var(--signal); outline: none; }
textarea.field { min-height: 96px; resize: none; line-height: 1.5; }
input.field.mono { font-family: var(--mono); }
.stamp { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 8px; }

.panel { padding: 14px; border: 1px solid var(--line); background: var(--panel); }
.well { margin: 20px 0 14px; }
.well .r { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--dim); }
.well .v { font-family: var(--mono); color: var(--signal); }
input[type=range] { width: 100%; accent-color: var(--signal); height: 44px; margin: 0 0 6px; }
input[type=range].unset { opacity: .45; }

.recovery { display: flex; align-items: center; gap: 12px; padding: 0 0 0 14px; border: 1px solid var(--line); background: var(--panel); width: 100%; text-align: left; min-height: 64px; }
.recovery.done { border-color: var(--signal); }
.recovery.suggest { border-color: var(--signal); box-shadow: inset 2px 0 0 var(--signal); }

/* ---------- kin ---------- */
.ezari { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.ezari .fin { position: absolute; width: 14px; height: 34px; background: #3a3a30; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ezari .side { position: absolute; top: 74px; width: 30px; height: 14px; background: #3a3a30; }
.ezari .side.l { left: 2px; clip-path: polygon(0 0, 100% 30%, 100% 100%); }
.ezari .side.r { right: 2px; clip-path: polygon(100% 0, 0 30%, 0 100%); }
.ezari .head-orb { position: absolute; top: 30px; left: 20px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2c2c28, #121210); }
.ezari .body { position: absolute; inset: 0; transition: transform .3s; }
.ezari .eye { position: absolute; display: grid; grid-template-columns: repeat(3, 4px); grid-template-rows: repeat(3, 4px); gap: 1px; transition: top .3s; }
.ezari .foot { position: absolute; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid #3a3a30; }
.ezari.float .body { animation: hover 4s ease-in-out infinite; }
@keyframes hover { 0%, 100% { translate: 0 0 } 50% { translate: 0 -4px } }
.caption { font-size: 15px; color: var(--dim); font-style: italic; text-align: center; margin-bottom: 22px; }
.notes { margin-bottom: 14px; padding: 16px; }
.notes p { font-size: 14px; line-height: 1.7; color: var(--text-2); margin: 0 0 10px; }
.notes p:last-child { margin-bottom: 0; }
.notes .k { color: var(--signal); }
.notes .foot-note { font-size: 12px; color: var(--dim-2); border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 12px; line-height: 1.6; }
.checklist label { display: flex; gap: 12px; align-items: center; min-height: 48px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--rule); }
.checklist input { width: 22px; height: 22px; accent-color: var(--signal); flex-shrink: 0; }
.urgent { margin-top: 12px; padding: 14px; background: var(--signal); color: var(--void); font-weight: 600; font-size: 15px; line-height: 1.5; }
.urgent a { color: var(--void); }
.locked-kin { border: 1px dashed #333; padding: 20px; text-align: center; }
.locked-kin .sil { width: 56px; height: 56px; background: var(--panel-2); margin: 0 auto 12px; clip-path: polygon(15% 100%, 0 40%, 25% 0, 75% 0, 100% 40%, 85% 100%); }
.locked-kin .t { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--faint); }
.locked-kin .s { font-size: 12px; color: var(--dim-2); margin-top: 6px; }
.locked-kin.open { border: 1px solid var(--signal); }
.locked-kin.open .sil { background: #201e18; position: relative; }
.locked-kin.open .t { color: var(--signal); }

/* ---------- progress ---------- */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 22px; }
.totals div { padding: 12px; border-right: 1px solid var(--line); }
.totals div:last-child { border-right: 0; }
.totals b { display: block; font-family: var(--mono); font-size: 18px; color: var(--signal); }
.totals span { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--faint); }
.stat { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stat .n { width: 66px; font-size: 12px; color: var(--dim); flex-shrink: 0; }
.stat .cubes { display: flex; gap: 2px; flex: 1; }
.stat .cubes i { flex: 1; aspect-ratio: 1; background: var(--rule); border: 1px solid var(--line); }
.stat .cubes i.on { background: var(--signal); border-color: var(--signal); }
.stat .c { width: 44px; text-align: right; font-family: var(--mono); font-size: 10px; color: var(--faint); flex-shrink: 0; }
.ranks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.rank { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--rule); font-size: 13px; color: var(--faint); }
.rank i { width: 6px; height: 6px; border-radius: 50%; background: #333; }
.rank.on { background: var(--signal-deep); border-color: var(--signal); color: var(--text); font-weight: 600; }
.rank.on i { background: var(--signal); }
.rank.past { color: var(--dim); }
.move { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.move span:last-child { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: var(--dim); }
.move.drilling span:last-child { color: var(--text); }
.move.mastered span:last-child { color: var(--signal); }
.bench { margin-bottom: 22px; }
.bench .h, .bench .b { display: grid; grid-template-columns: 1.3fr .7fr .8fr .8fr .8fr; align-items: center; }
.bench .h { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--faint); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.bench .b { font-size: 11px; padding: 0; border-bottom: 1px solid #1a1a1a; min-height: 44px; width: 100%; text-align: left; }
.bench .b span { color: var(--dim-2); }
.bench .b span:first-child { color: var(--text-2); }
.bench .b span:last-child { color: var(--signal); font-family: var(--mono); }
.bench-edit { padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.bench-edit .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bench-edit label { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .08em; display: block; }
.bench-edit .field { font-family: var(--mono); padding: 10px; margin-top: 4px; }
.gate-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; width: 100%; text-align: left; min-height: 64px; }
.gate-card .n { font-size: 14px; font-weight: 600; }
.gate-card .d { font-size: 11px; color: var(--dim-2); margin-top: 2px; }
.gate-card .st { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.gate-card.open { border-color: var(--signal); }
.gate-card.open .st { color: var(--signal); }
.journal .e { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.journal .q { font-size: 12px; color: var(--dim); }
.journal .a { font-size: 14px; color: var(--text-2); margin-top: 4px; line-height: 1.55; white-space: pre-wrap; }
.journal .m { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .08em; margin-top: 6px; }
.empty { text-align: center; padding: 28px 0; }
.empty .glyph { opacity: .4; margin-bottom: 16px; }

/* ---------- full-screen frames ---------- */
.full .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--dim); margin-bottom: 16px; }
.full h1 { font-size: 26px; font-weight: 600; line-height: 1.3; margin: 0 0 14px; }
.full .lead { font-size: 14px; color: var(--dim); line-height: 1.6; margin-bottom: 30px; }
.full form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.err { font-size: 13px; color: var(--signal); min-height: 20px; }
.spinner { width: 48px; height: 48px; border: 2px solid var(--line-2); border-top-color: var(--signal); margin-bottom: 20px; animation: spin 1s linear infinite; }

.door { position: relative; width: 180px; height: 320px; margin-bottom: 28px; }
.door .l { position: absolute; inset: 0; background: #1c1c18; clip-path: polygon(28% 0, 72% 0, 100% 18%, 100% 100%, 0 100%, 0 18%); transition: transform .5s; }
.door .r { position: absolute; inset: 0 0 0 50%; background: #161612; clip-path: polygon(0 0, 44% 0, 72% 18%, 100% 18%, 100% 100%, 0 100%); transition: transform .5s; }
.door .seam { position: absolute; top: 18%; left: 50%; width: 3px; height: 72%; background: var(--signal); box-shadow: 0 0 10px var(--signal); transform: translateX(-50%); transition: all .5s; }
.door .ring { position: absolute; inset: -18px; border: 1px dashed #2a2a22; border-radius: 50%; pointer-events: none; }
.door.open .l { transform: translateX(-12px); }
.door.open .r { transform: translateX(12px); }
.door.open .seam { width: 10px; box-shadow: 0 0 28px var(--signal); }
.door.shake { animation: nudge .3s ease-in-out 2; }
.trial-notes { max-width: 340px; font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0 0 24px; }

.reveal-sil { width: 150px; height: 150px; position: relative; margin-bottom: 26px; display: flex; align-items: center; justify-content: center; }
.reveal-sil .s { width: 100px; height: 70px; background: #201e18; clip-path: polygon(15% 100%, 0 40%, 25% 0, 75% 0, 100% 40%, 85% 100%); }
.reveal-sil .core { position: absolute; width: 14px; height: 14px; background: var(--signal); border-radius: 50%; top: 46px; animation: pulse 1.4s ease-in-out infinite; }
.reveal-name { font-family: var(--mono); font-size: 22px; letter-spacing: .1em; min-height: 30px; margin-bottom: 10px; }
.dots { display: flex; gap: 6px; margin-bottom: 20px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #333; }
.dots i.on { background: var(--signal); }

.desktop-block { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.desktop-block .card { width: min(92vw, 520px); background: var(--panel); border: 1px solid var(--line); padding: 48px 32px; text-align: center; --cut: 14px; }
.desktop-block .k { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--signal); margin: 20px 0 10px; }
.desktop-block .t { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.desktop-block .s { font-size: 14px; color: var(--dim); line-height: 1.6; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 12px); max-width: 440px; width: calc(100% - 32px); background: var(--panel); border: 1px solid var(--signal); color: var(--text); font-size: 13px; padding: 12px 14px; z-index: 20; }

/* ---------- program content + timers ---------- */
.timer-panel { margin: 12px 0 6px; padding: 14px; border: 1px solid var(--signal); background: var(--signal-deep); }
.timer-panel .timer { margin: 2px 0; font-size: 44px; }
.seg-name { font-size: 12px; letter-spacing: .12em; color: var(--signal); }
.ex .r2 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ex .dose { font-size: 12px; color: var(--signal); text-align: right; flex-shrink: 0; max-width: 55%; }
.ex .dose sup { color: var(--dim); margin-left: 2px; }
.ex .b { line-height: 1.5; }
.rules { margin: 10px 0 4px; padding: 0 0 0 16px; }
.rules li { font-size: 12px; color: var(--dim); line-height: 1.55; margin-bottom: 4px; }
.sub-head { font-size: 10px; letter-spacing: .12em; color: var(--faint); margin: 18px 0 4px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.phase em { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; margin-left: 4px; }
.phase .d { line-height: 1.5; }

/* ---------- profile: character sheet ---------- */
.sheet { border: 1px solid var(--line); background: var(--panel); padding: 16px; --cut: 14px; }
.sheet-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sheet-name { font-size: 22px; font-weight: 600; }
.sheet-rank { font-size: 11px; letter-spacing: .12em; color: var(--signal); margin-top: 4px; }
.sheet-rank span { color: var(--faint); }
.genesis { width: 84px; min-height: 108px; flex-shrink: 0; border: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; --cut: 8px; }
.genesis.has { border-color: var(--signal); background: linear-gradient(160deg, #1a1f08, #0f0f0f); }
.genesis b { font-size: 13px; color: var(--text); }
.genesis small { font-size: 8px; letter-spacing: .1em; color: var(--faint); }
.order { margin-top: 14px; padding: 10px 12px; border: 1px dashed #333; font-size: 14px; color: var(--dim); }
.order span { font-size: 9px; letter-spacing: .12em; color: var(--faint); margin-right: 8px; }
.order.resolved { border-style: solid; border-color: var(--line); color: var(--text); }
.patches { display: flex; padding-left: 4px; margin-bottom: 6px; min-height: 52px; }
.patch { width: 48px; height: 52px; margin-left: -10px; background: var(--panel-2); border: 1px solid var(--signal); display: flex; align-items: center; justify-content: center; --cut: 8px; position: relative; z-index: calc(10 - var(--i, 0)); transform: rotate(calc((var(--i, 0) - 1) * 4deg)); box-shadow: 0 0 0 2px var(--panel); }
.patch:first-child { margin-left: 0; }
.patch.ghost { border: 1px dashed #333; background: transparent; }
.stat-line { display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid var(--rule); min-height: 48px; }
.stat-line > span { font-size: 9px; letter-spacing: .12em; color: var(--faint); width: 64px; flex-shrink: 0; }
.stat-line b { font-weight: 600; font-size: 14px; flex: 1; }
.stat-line b.small { font-size: 13px; font-weight: 400; color: var(--text-2); }
.stat-line i { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--signal); }
.sample { display: inline-block; font-size: 8px; letter-spacing: .1em; color: var(--void); background: var(--dim); padding: 2px 5px; vertical-align: middle; margin-left: 6px; font-weight: 700; }
.buff { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.buff > span { font-size: 9px; letter-spacing: .12em; color: var(--faint); width: 64px; flex-shrink: 0; padding-top: 3px; }
.buff b { display: block; font-size: 13px; font-weight: 600; }
.buff small { display: block; font-size: 12px; color: var(--dim); margin-top: 3px; line-height: 1.45; }
.mini-bar { height: 6px; background: var(--rule); margin-top: 6px; position: relative; }
.mini-bar i { position: absolute; inset: 0 auto 0 0; background: var(--signal); }
.rank .tag { margin-left: auto; font-size: 9px; letter-spacing: .1em; color: var(--signal); }
.rank.next { border-style: dashed; border-color: #333; color: var(--dim); }
.rank.next .tag { color: var(--dim); }
.link-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; min-height: 64px; }
.link-row > span:not(.glyph) { flex: 1; }
.link-row b { display: block; font-size: 15px; }
.link-row small { display: block; font-size: 12px; color: var(--dim-2); margin-top: 2px; }
.link-row i { font-style: normal; color: var(--signal); font-family: var(--mono); }

/* ---------- match history, settings ---------- */
.screen.sub { min-height: 100dvh; padding-bottom: calc(var(--safe-b) + 24px); }
.match { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule); min-height: 60px; }
.match .o { width: 44px; font-size: 10px; letter-spacing: .08em; color: var(--dim); flex-shrink: 0; }
.match.win .o { color: var(--signal); }
.match .w { flex: 1; min-width: 0; }
.match .w b { display: block; font-size: 14px; font-weight: 600; }
.match .w small { display: block; font-size: 12px; color: var(--dim-2); margin-top: 2px; }
.match .dmg { font-size: 11px; color: var(--dim); }
.match-detail { padding: 6px 0 14px 56px; border-bottom: 1px solid var(--line); }
.match-detail div { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--text-2); }
.match-detail span { font-size: 9px; letter-spacing: .1em; color: var(--faint); }
.device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); min-height: 56px; }
.device b { display: block; font-size: 14px; font-weight: 600; }
.device small { display: block; font-size: 12px; color: var(--dim-2); margin-top: 2px; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 14px; border-bottom: 1px solid var(--rule); }
.toggle input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--signal); }

/* ---------- the Binding ---------- */
.bind h1 { max-width: 320px; }
.sigil { background: #fff; padding: 10px; width: min(78vw, 300px); border: 2px solid var(--signal); box-shadow: 0 0 40px rgba(200, 244, 0, .25); margin: 8px 0 14px; --cut: 14px; }
.sigil svg { display: block; width: 100%; height: auto; }
.sigil-time { font-size: 30px; font-weight: 700; color: var(--signal); margin-bottom: 4px; }
