/* Tron Agent. One stylesheet for every page. Dark only: the art is night. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0b0808; --ink-2: #120d0d; --ink-3: #1a1313; --line: #2b1f1f; --line-2: #3d2a2a;
  --bone: #f4efe4; --bone-2: #cfc6b8; --ash: #9a8f86; --ash-2: #6f6660;
  --blood: #ed1c24; --blood-2: #ff3b44; --blood-deep: #7d0e13; --blood-ink: #2a0b0d;
  --sub: #ffe14a; --up: #8fe6ad; --down: #ff6b74;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
  --wrap: 1240px; --pad: clamp(16px, 4vw, 40px); --nav: 60px; --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 16px/1.55 var(--body); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; }
img, canvas, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--sub); outline-offset: 2px; }
::selection { background: var(--blood); color: var(--bone); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain over everything, very quiet */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.jp { font-family: var(--jp); font-weight: 700; letter-spacing: .08em; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--ash); }
.red { color: var(--blood-2); }

/* ---------- type */
.display { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; }
.h1 { font-size: clamp(38px, 7.4vw, 104px); }
.h2 { font-size: clamp(30px, 5vw, 64px); }
.h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.02; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--bone-2); max-width: 60ch; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-2); }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--blood); flex: none; }
.kicker .jp { color: var(--blood-2); letter-spacing: .1em; text-transform: none; font-size: 13px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--blood); color: #fff; font: 800 14px/1 var(--display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--blood); border-radius: var(--r); transition: background .15s, color .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn--wide { width: 100%; }
.link { color: var(--bone); border-bottom: 1px solid var(--blood); padding-bottom: 1px; }
.link:hover { color: var(--blood-2); }
.arrow::after { content: "\2192"; font-family: var(--mono); }

/* ---------- nav */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); z-index: 60; display: flex; align-items: center; gap: 18px; padding-inline: var(--pad); background: rgba(11, 8, 8, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--blood); object-fit: cover; }
.brand__name { font: 900 15px/1 var(--display); font-stretch: 118%; letter-spacing: .04em; }
.nav__links { display: flex; gap: 2px; margin-left: 10px; }
.nav__links a { padding: 10px 12px; font: 600 13px/1 var(--body); color: var(--bone-2); border-radius: var(--r); }
.nav__links a:hover { color: var(--bone); background: var(--ink-3); }
.nav__links a[aria-current="page"] { color: var(--bone); box-shadow: inset 0 -2px 0 var(--blood); border-radius: 0; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.onair { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--bone-2); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); white-space: nowrap; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: var(--blood); animation: blink 1.6s steps(2, start) infinite; }
.onair b { color: var(--bone); font-weight: 700; }
@keyframes blink { to { visibility: hidden; } }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r); color: var(--bone-2); }
.iconbtn:hover { color: var(--bone); border-color: var(--bone-2); }
.iconbtn svg { width: 15px; height: 15px; fill: currentColor; }
.nav__burger { display: none; width: 42px; height: 42px; position: relative; border: 1px solid var(--line); border-radius: var(--r); }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--bone); transition: transform .2s, top .2s; }
.nav__burger::before { top: 15px; } .nav__burger::after { top: 24px; }
.nav__burger[aria-expanded="true"]::before { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"]::after { top: 20px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: var(--nav) 0 0 0; z-index: 59; background: var(--ink); padding: 18px var(--pad) 32px; display: none; flex-direction: column; gap: 4px; overflow-y: auto; }
.sheet.open { display: flex; }
.sheet a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font: 900 26px/1 var(--display); font-stretch: 125%; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.sheet a .jp { font-size: 13px; color: var(--blood-2); }
.sheet .btn { margin-top: 18px; }
main { padding-top: var(--nav); }

/* ---------- the screen: a letterboxed frame with on-screen display and subtitles */
.screen { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.screen__cut { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease; will-change: opacity, transform; }
.screen__cut.on { opacity: 1; animation: push 9s linear forwards; }
@keyframes push { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); } }
.screen::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0, 0, 0, .72) 100%), linear-gradient(to top, rgba(11, 8, 8, 1) 0, rgba(11, 8, 8, .0) 34%), linear-gradient(to right, rgba(11, 8, 8, .88) 0, rgba(11, 8, 8, .35) 46%, transparent 72%); }
.screen > * { position: relative; z-index: 3; }
.screen > .screen__cut { position: absolute; z-index: 1; }
.osd { font: 600 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, .8); }
.osd i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--blood); margin-right: 8px; animation: blink 1.6s steps(2, start) infinite; }
.sub { font: 800 clamp(15px, 2vw, 25px)/1.28 var(--body); font-stretch: 100%; color: var(--sub); text-align: center; text-wrap: balance; max-width: 34em; margin-inline: auto; paint-order: stroke fill; -webkit-text-stroke: 5px #000; text-shadow: 0 2px 0 #000; letter-spacing: .005em; }
.sub small { display: block; margin-top: 6px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; -webkit-text-stroke: 3px #000; }
.sub.swap { animation: subin .28s ease both; }
@keyframes subin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- sections */
.sec { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.sec--tight { padding-block: clamp(40px, 6vw, 72px); }
.sec--line { border-top: 1px solid var(--line); }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec__head .lead { margin-top: 2px; }
.ep { font: 700 12px/1 var(--mono); letter-spacing: .16em; color: var(--blood-2); text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.ep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.split--flip > :first-child { order: 2; }

/* ---------- cards, frames */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2vw, 24px); }
.card--flat { background: transparent; }
.frame { position: relative; border: 1px solid var(--line-2); background: #000; overflow: hidden; border-radius: var(--r); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--wide { aspect-ratio: 16 / 9; } .frame--tall { aspect-ratio: 4 / 5; }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); }
.frame__tag { position: absolute; left: 10px; top: 10px; z-index: 2; }
.frame__sub { position: absolute; left: 4%; right: 4%; bottom: 5%; z-index: 2; }
.frame__sub .sub { font-size: clamp(13px, 1.5vw, 19px); -webkit-text-stroke-width: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--blood); color: #fff; border-radius: 2px; }
.tag--ink { background: rgba(0, 0, 0, .78); border: 1px solid var(--line-2); color: var(--bone); }
.tag--bone { background: var(--bone); color: var(--ink); }

/* ---------- stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.stat { padding: clamp(14px, 2vw, 24px); border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat__n { font: 900 clamp(24px, 3.4vw, 46px)/1 var(--display); font-stretch: 118%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat__l { margin-top: 8px; font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }

/* ---------- pills */
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 4px 8px; font: 800 10px/1.1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; border: 1px solid transparent; }
.pill--buy { background: var(--bone); color: var(--ink); }
.pill--sell { background: var(--blood); color: #fff; }
.pill--hold { border-color: var(--line-2); color: var(--ash); }
.pill--on { border-color: var(--up); color: var(--up); } .pill--off { border-color: var(--line-2); color: var(--ash); }
.pill--house { background: var(--blood-ink); border-color: var(--blood-deep); color: var(--blood-2); }
.sym { display: inline-flex; align-items: center; gap: 8px; font: 800 14px/1 var(--display); font-stretch: 110%; letter-spacing: .02em; }
.sym img { width: 22px; height: 22px; border-radius: 50%; background: var(--bone); object-fit: cover; flex: none; }
.sym__dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 9px/1 var(--mono); background: var(--ink-3); border: 1px solid var(--line-2); color: var(--bone-2); flex: none; }

/* ---------- tables that become cards on phones */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: var(--ink-2); }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl a.rowlink { display: block; }
.tbl__name { font-weight: 700; } .tbl__sub { font-size: 12px; color: var(--ash); margin-top: 2px; }

/* ---------- diary entries */
.diary { display: grid; gap: 0; }
.diary li { display: grid; grid-template-columns: 112px 58px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.diary__when { font: 500 11px/1.35 var(--mono); color: var(--ash); letter-spacing: .04em; }
.diary__when b { display: block; color: var(--bone-2); font-weight: 600; }
.diary__what { min-width: 0; }
.diary__what strong { font: 800 13px/1.2 var(--display); font-stretch: 110%; letter-spacing: .03em; margin-right: 8px; }
.diary__what span { color: var(--bone-2); font-size: 14.5px; }
.diary__what a { color: var(--ash); font-size: 12px; display: block; margin-top: 3px; }
.diary__what a:hover { color: var(--bone); }

/* ---------- forms */
.field { display: grid; gap: 8px; }
.field > label, .label { font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); display: flex; justify-content: space-between; gap: 10px; }
.field > label b, .label b { color: var(--bone); font-weight: 700; }
.input, .select { width: 100%; min-height: 46px; padding: 0 12px; background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--bone); font-size: 15px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--bone-2); }
textarea.input { padding: 12px; min-height: 96px; resize: vertical; line-height: 1.45; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--blood); border: 2px solid var(--bone); border-radius: 50%; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--blood); border: 2px solid var(--bone); border-radius: 50%; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { min-height: 44px; padding: 6px 10px; font: 700 12px/1.15 var(--body); color: var(--bone-2); border-left: 1px solid var(--line-2); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.seg button .jp { display: block; font-size: 10px; margin-bottom: 3px; color: var(--blood-2); letter-spacing: .1em; }
.seg button[aria-pressed="true"] .jp { color: var(--blood-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 7px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 12.5px/1 var(--body); color: var(--bone-2); background: var(--ink); }
.chip img, .chip .sym__dot { width: 20px; height: 20px; }
.chip:hover { border-color: var(--bone-2); color: var(--bone); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip[disabled] { opacity: .35; cursor: not-allowed; }
.note { font-size: 13px; color: var(--ash); }
.note--warn { color: var(--sub); }
.err { color: var(--down); font-size: 14px; }

/* ---------- chart */
.chart { position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 220px; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart__tip { position: absolute; z-index: 2; pointer-events: none; padding: 8px 10px; background: rgba(0, 0, 0, .9); border: 1px solid var(--line-2); border-radius: var(--r); font: 500 11px/1.5 var(--mono); white-space: nowrap; transform: translate(-50%, -110%); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bone-2); }
.legend i { display: inline-block; width: 18px; height: 3px; margin-right: 7px; vertical-align: middle; background: currentColor; }
.legend .l-agent i { background: var(--blood-2); } .legend .l-hold i { background: none; border-top: 2px dashed var(--bone-2); height: 0; } .legend .l-cash i { background: var(--ash-2); }
.spark { width: 110px; height: 30px; }

/* ---------- KPI row */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { background: var(--ink-2); padding: 14px; min-width: 0; }
.kpi__l { font: 600 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.kpi__n { margin-top: 7px; font: 800 clamp(18px, 2vw, 24px)/1 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- visual novel box (FAQ) */
.vn { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-2); overflow: hidden; }
.vn__face { position: relative; background: var(--blood-ink); }
.vn__face img { width: 100%; height: 100%; object-fit: cover; }
.vn__body { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; align-content: start; }
.vn__name { justify-self: start; }
.vn__q { display: flex; flex-wrap: wrap; gap: 8px; }
.vn__a { font-size: clamp(15px, 1.4vw, 17px); color: var(--bone); min-height: 5.2em; }
.vn__a::after { content: "\25BC"; color: var(--blood-2); font-size: 10px; margin-left: 8px; animation: blink 1s steps(2, start) infinite; }

/* ---------- dialog, toast */
.dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); }
.dialog__box { width: min(100%, 440px); max-height: 90vh; overflow: auto; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.dialog__box h3 { font: 900 22px/1 var(--display); font-stretch: 120%; text-transform: uppercase; }
.walletopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r); text-align: left; font-weight: 700; }
.walletopt:hover { border-color: var(--bone); }
.walletopt img { width: 28px; height: 28px; border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 85; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 16px; background: var(--bone); color: var(--ink); font-weight: 700; font-size: 14px; border-radius: var(--r); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.toast--bad { background: var(--blood); color: #fff; }

/* ---------- stamp (the red seal that lands when an agent is launched) */
.stamp { display: inline-grid; place-items: center; padding: 10px 16px; border: 3px solid var(--blood); color: var(--blood-2); font: 900 22px/1 var(--display); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-7deg); border-radius: 3px; animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(2.2); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }

/* ---------- footer */
.foot { border-top: 1px solid var(--line); padding-block: 44px 28px; color: var(--ash); font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot h4 { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-2); margin-bottom: 14px; }
.foot li { margin-bottom: 9px; } .foot a:hover { color: var(--bone); }
.foot__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; display: grid; gap: 8px; }
.foot .brand__name { color: var(--bone); }

/* ---------- page header (inner pages) */
.phead { padding-block: clamp(28px, 5vw, 56px) clamp(18px, 3vw, 30px); display: grid; gap: 14px; }
.phead h1 { font-size: clamp(34px, 6vw, 76px); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.tabs button { min-height: 40px; padding: 0 14px; font: 700 12.5px/1 var(--body); color: var(--bone-2); border-left: 1px solid var(--line-2); white-space: nowrap; }
.tabs button:first-child { border-left: 0; }
.tabs button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.empty { padding: 36px 16px; text-align: center; color: var(--ash); border: 1px dashed var(--line-2); border-radius: var(--r); }
.skel { background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r); min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- phones and small tablets */
@media (max-width: 1140px) {
  .nav__links { display: none; } .nav__burger { display: block; }
}
@media (max-width: 980px) {
  .onair span { display: none; }
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); } .split--flip > :first-child { order: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --nav: 56px; }
  body { font-size: 15.5px; }
  .brand__name { font-size: 13px; }
  .nav { gap: 8px; } .nav__right { gap: 6px; }
  .nav .iconbtn { display: none; }
  .nav #wallet-btn { padding: 0 10px; font-size: 11px; letter-spacing: .03em; }
  .onair { padding: 8px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .diary li { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
  .diary__when { grid-column: 1 / -1; display: flex; gap: 10px; } .diary__when b { display: inline; }
  .vn { grid-template-columns: minmax(0, 1fr); } .vn__face { aspect-ratio: 16 / 7; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; padding: 6px 12px; background: var(--ink-2); }
  .tbl td { border: 0; padding: 7px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; }
  .tbl td::before { content: attr(data-l); font: 600 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); text-align: left; flex: none; }
  .tbl td.tbl__lead { justify-content: flex-start; text-align: left; padding-bottom: 9px; border-bottom: 1px solid var(--line); margin-bottom: 3px; }
  .tbl td.tbl__lead::before { display: none; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .chart { aspect-ratio: 4 / 3; }
  .kpis, .screening .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub { -webkit-text-stroke-width: 4px; }
  .toolbar { align-items: stretch; } .tabs { width: 100%; overflow-x: auto; } .tabs button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- studio */
.studio { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; padding-bottom: 80px; }
.studio__build, .studio__screen { display: grid; gap: clamp(14px, 2vw, 20px); min-width: 0; }
.studio__screen { position: sticky; top: calc(var(--nav) + 14px); }
.step__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.step__head .note { margin-left: auto; }
.step__n { font: 700 12px/1 var(--mono); letter-spacing: .1em; color: var(--blood-2); }
.rules { margin-top: 16px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.rules div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 11px 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.rules div:first-child { border-top: 0; }
.rules dt { font: 700 10px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.rules dd { color: var(--bone); }
.ruleset { margin-top: 16px; }
.ruleset__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ruleset__head .tabs button { min-height: 30px; padding: 0 10px; font-size: 11px; }
.cond { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; background: var(--ink); }
.cond .select, .cond .input { min-height: 38px; width: auto; font-size: 13.5px; padding-left: 10px; }
.cond .input { width: 84px; }
.cond .select { padding-right: 28px; max-width: 100%; }
.cond__x { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ash); font: 600 16px/1 var(--mono); }
.cond__x:hover { color: var(--bone); border-color: var(--bone-2); }
.cond__shift { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--mono); color: var(--ash); }
.cond__shift .input { width: 62px; }
.screening__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.verdict { margin: 12px 0 14px; font-size: clamp(15px, 1.4vw, 17px); color: var(--bone); min-height: 3em; }
.verdict b { color: var(--sub); font-weight: 800; }
.screening .kpis { margin-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screening .diary li { grid-template-columns: 54px minmax(0, 1fr); }
.tradelist { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.tradelist summary { cursor: pointer; font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); list-style: none; display: flex; justify-content: space-between; }
.tradelist summary::-webkit-details-marker { display: none; }
.tradelist summary b { color: var(--bone); }
.tradelist .diary { max-height: 320px; overflow-y: auto; margin-top: 8px; }
.tradelist .diary li { grid-template-columns: 96px 54px minmax(0, 1fr); }
.launch { display: grid; gap: 14px; }
.launch .step__head { margin-bottom: 0; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--bone-2); align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blood); margin: 1px 0 0; }
.launched { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--blood-deep); background: var(--blood-ink); border-radius: var(--r); }
.launched img { border-radius: var(--r); }
.launched .stamp { justify-self: start; margin-bottom: 10px; }
@media (max-width: 980px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio__screen { position: static; }
}
@media (max-width: 640px) {
  .tradelist .diary li { grid-template-columns: 54px minmax(0, 1fr); }
  .cond .select { flex: 1 1 120px; }
}

/* ---------- agent and market pages */
.agent { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; padding-bottom: 80px; }
.agent__main, .agent__side { display: grid; gap: clamp(14px, 2vw, 20px); min-width: 0; }
.phead #name { overflow-wrap: anywhere; font-size: clamp(30px, 5.4vw, 68px); }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.facts div:first-child { border-top: 0; }
.facts dt { font: 700 10px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.facts dd { overflow-wrap: anywhere; }
.facts dd a { border-bottom: 1px solid var(--blood); }
.bigprice { font: 900 clamp(34px, 6vw, 72px)/1 var(--display); font-stretch: 118%; font-variant-numeric: tabular-nums; }
.dash { display: grid; gap: 14px; }
.dash__card { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(70px, .5fr)) auto; gap: 14px; align-items: center; }
.dash__card .num { font-family: var(--mono); text-align: right; }
.dash__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 980px) { .agent { grid-template-columns: minmax(0, 1fr); } .agent__side .frame { display: none; } }
@media (max-width: 760px) {
  .dash__card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash__card > :first-child, .dash__btns { grid-column: 1 / -1; } .dash__btns { justify-content: flex-start; }
  .dash__card .num { text-align: left; }
}

/* ---------- landing: the broadcast */
.hero { min-height: min(100svh, 940px); display: grid; grid-template-rows: auto 1fr auto auto; padding-top: 18px; }
.hero__osd { display: flex; justify-content: space-between; gap: 12px; padding-inline: var(--pad); }
.hero__body { display: grid; gap: 22px; align-content: end; padding-block: 28px 18px; }
.hero__body .h1 { font-size: clamp(36px, 5.2vw, 82px); text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.hero__body .h1 span { display: block; }
/* each cut is framed so the face stays clear of the headline on wide screens */
.hero .c-a04 { background-size: auto 126%; background-position: 0% 30%; }
.hero .c-a01 { background-position: 100% 40%; }
.hero .c-m01 { background-position: 60% 50%; }
.hero__body .lead { max-width: 54ch; color: var(--bone); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__sub { padding: 6px var(--pad) 22px; min-height: 5.6em; display: grid; align-items: end; }
.ticker { border-top: 1px solid var(--line); background: rgba(11, 8, 8, .86); overflow: hidden; white-space: nowrap; position: relative; }
.ticker__run { display: inline-flex; gap: 34px; padding: 12px 17px; animation: tick 70s linear infinite; }
.ticker:hover .ticker__run { animation-play-state: paused; }
.ticker a { display: inline-flex; gap: 9px; align-items: center; font: 600 12.5px/1 var(--mono); color: var(--bone-2); }
.ticker a b { color: var(--bone); font: 800 13px/1 var(--display); font-stretch: 110%; }
.ticker img, .ticker .sym__dot { width: 18px; height: 18px; border-radius: 50%; }
@keyframes tick { to { transform: translateX(-50%); } }

/* manga page */
.manga { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.manga .frame:nth-child(1) { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 420px; }
.manga .frame { aspect-ratio: 16 / 10; }
.manga .frame img { transition: transform 1.2s ease; }
.manga .frame:hover img { transform: scale(1.04); }

/* the little replay on the landing page */
.mini { display: grid; gap: 14px; }
.mini .chart { aspect-ratio: 16 / 8; min-height: 200px; }
.mini .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini__row { display: grid; gap: 8px; }

/* the red thread */
.thread { position: relative; height: 420vh; background: #060404; border-block: 1px solid var(--line); }
.thread__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; }
.thread__stick canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.thread__head { position: relative; z-index: 2; align-self: start; padding: calc(var(--nav) + 26px) var(--pad) 0; display: grid; gap: 12px; pointer-events: none; }
.thread__head .h2 { max-width: 14ch; }
.thread__hud { position: absolute; z-index: 2; right: var(--pad); top: calc(var(--nav) + 26px); text-align: right; font: 600 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-2); }
.thread__hud b { display: block; font: 900 clamp(22px, 3vw, 40px)/1 var(--display); font-stretch: 118%; letter-spacing: 0; color: var(--bone); margin-bottom: 4px; }
.thread__sub { position: absolute; z-index: 2; left: 0; right: 0; bottom: 7svh; padding-inline: var(--pad); }
.thread__bar { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 3svh; height: 2px; background: var(--line); }
.thread__bar i { display: block; height: 100%; width: 0; background: var(--blood); }

/* strategy cards */
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.castcard { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.castcard .frame { border: 0; border-radius: 0; aspect-ratio: 4 / 4.2; }
.castcard .frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--ink-2) 2%, transparent 46%); }
.castcard__body { padding: 0 18px 18px; display: grid; gap: 12px; margin-top: -54px; position: relative; z-index: 2; }
.castcard__jp { font-family: var(--jp); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; color: var(--blood-2); letter-spacing: .04em; text-shadow: 0 2px 0 #000; }
.castcard dl { display: grid; gap: 8px; font-size: 14px; }
.castcard dt { font: 700 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.castcard dd { color: var(--bone-2); }
.castcard__n { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.castcard__n b { font: 900 22px/1 var(--display); font-stretch: 112%; letter-spacing: 0; }

/* lists */
.rulelist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rulelist li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rulelist .jp { color: var(--blood-2); font-size: 15px; line-height: 1.5; }
.rulelist b { display: block; font: 800 16px/1.25 var(--display); font-stretch: 108%; margin-bottom: 3px; }
.rulelist span { color: var(--bone-2); font-size: 14.5px; }
.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font: 900 34px/1 var(--display); font-stretch: 118%; color: var(--blood); }
.steps b { display: block; font: 800 17px/1.25 var(--display); font-stretch: 108%; margin-bottom: 4px; }
.steps span { color: var(--bone-2); font-size: 14.5px; }
.mkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mk { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.mk:hover { border-color: var(--bone-2); }
.mk img, .mk .sym__dot { width: 26px; height: 26px; border-radius: 50%; }
.mk b { display: block; font: 800 13px/1.1 var(--display); font-stretch: 110%; }
.mk span { font: 500 11.5px/1.3 var(--mono); color: var(--ash); white-space: nowrap; }
.bubble { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px 14px 14px 3px; background: var(--ink-2); font-size: 14.5px; max-width: 46ch; }
.bubble--me { border-radius: 14px 14px 3px 14px; background: var(--blood-ink); border-color: var(--blood-deep); justify-self: end; }
.bubble small { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.bubbles { display: grid; gap: 10px; }
.cta { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.cta .screen { padding-block: clamp(70px, 12vw, 150px); }
.cta .h1 { max-width: 13ch; }

@media (max-width: 980px) {
  .manga { grid-template-columns: minmax(0, 1fr); } .manga .frame:nth-child(1) { grid-row: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .cast { grid-template-columns: minmax(0, 1fr); } .castcard { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto; }
  .castcard .frame { aspect-ratio: auto; min-height: 100%; } .castcard .frame::before { background: linear-gradient(to left, var(--ink-2) 0, transparent 40%); }
  .castcard__body { margin-top: 0; padding: 16px 16px 16px 4px; }
}
@media (max-width: 640px) {
  .hero { min-height: min(100svh, 820px); }
  .hero .c-a04, .hero .c-a01, .hero .c-m01 { background-size: cover; background-position: 50% 20%; }
  .hero .c-a01 { background-position: 78% 20%; }
  .hero .c-a06 { background-position: 70% 50%; }
  .screen::after { background: radial-gradient(120% 90% at 50% 30%, transparent 30%, rgba(0, 0, 0, .6) 100%), linear-gradient(to top, rgba(11, 8, 8, 1) 0, rgba(11, 8, 8, .86) 38%, rgba(11, 8, 8, .25) 70%, transparent 100%); }
  .hero__osd .osd { font-size: 10px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__sub { min-height: 6.4em; }
  .rulelist li, .steps li { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .steps li::before { font-size: 26px; }
  .castcard { grid-template-columns: minmax(0, 1fr); } .castcard .frame { aspect-ratio: 16 / 11; } .castcard .frame::before { background: linear-gradient(to top, var(--ink-2) 2%, transparent 50%); }
  .castcard__body { margin-top: -40px; padding: 0 16px 16px; }
  .thread { height: 360vh; }
  .thread__hud { top: auto; bottom: 22svh; right: var(--pad); }
  .mkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-bottom: 90px; }
.docs__toc { position: sticky; top: calc(var(--nav) + 16px); display: grid; gap: 2px; border-left: 1px solid var(--line); max-height: calc(100vh - var(--nav) - 32px); overflow-y: auto; }
.docs__toc a { padding: 8px 14px; font-size: 13.5px; color: var(--ash); border-left: 2px solid transparent; margin-left: -1px; }
.docs__toc a:hover { color: var(--bone); }
.docs__toc a.on { color: var(--bone); border-left-color: var(--blood); }
.docs__body { max-width: 760px; min-width: 0; }
.docs__body section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + 16px); }
.docs__body section:last-child { border-bottom: 0; }
.docs__body h2 { margin-bottom: 18px; font-size: clamp(24px, 3vw, 34px); }
.docs__body h3 { margin: 26px 0 10px; font: 800 17px/1.25 var(--display); font-stretch: 108%; }
.docs__body h3 .jp { font-size: 13px; margin-left: 6px; }
.docs__body p { color: var(--bone-2); margin-bottom: 14px; }
.docs__body ul, .docs__body ol { color: var(--bone-2); margin: 0 0 14px 0; display: grid; gap: 8px; }
.docs__body ul li { padding-left: 18px; position: relative; }
.docs__body ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--blood); }
.docs__body ol { counter-reset: d; }
.docs__body ol li { counter-increment: d; padding-left: 30px; position: relative; }
.docs__body ol li::before { content: counter(d); position: absolute; left: 0; top: 0; font: 700 13px/1.7 var(--mono); color: var(--blood-2); }
.docs__body b { color: var(--bone); font-weight: 700; }
.docs__body a { color: var(--bone); border-bottom: 1px solid var(--blood); }
.docs__body a:hover { color: var(--blood-2); }
.docs__body .rules { margin: 10px 0 14px; }
.tblwrap { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.tbl--plain td, .tbl--plain th { font-size: 14px; vertical-align: top; }
.tbl--plain tr:last-child td { border-bottom: 0; }
.tbl--plain td:first-child { color: var(--bone); font-weight: 600; white-space: nowrap; }
.tbl--plain td.mono { font-weight: 500; font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; min-width: 190px; }
.code { background: #050303; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font: 500 12.5px/1.6 var(--mono); color: var(--bone-2); overflow-x: auto; margin-bottom: 14px; white-space: pre; }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__toc { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); max-height: none; gap: 0; }
  .docs__toc a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 10px 12px; }
  .docs__toc a.on { border-bottom-color: var(--blood); }
}
@media (max-width: 640px) {
  .tbl--plain, .tbl--plain tbody, .tbl--plain tr, .tbl--plain td { display: revert; width: auto; }
  .tbl--plain thead { display: table-header-group; }
  .tbl--plain tr { border: 0; border-radius: 0; margin: 0; padding: 0; background: none; }
  .tbl--plain td { display: table-cell; text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
  .tbl--plain td::before { display: none; }
  .tbl--plain td:first-child { white-space: normal; }
}
