/* winyourduels.lol: parody. Self-hosted fonts, no external requests. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/fonts/mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/fonts/mono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0d110f;
  --bg-2: #111714;
  --bg-3: #161e1a;
  --line: #24302a;
  --line-2: #33413a;
  --text: #f3f6f4;
  --text-2: #b4bdb8;
  --muted: #84908a;
  --mint: #04f7a4;
  --mint-2: #00d4aa;
  --mint-wash: rgba(4, 247, 164, .10);
  --red: #ff5c7a;
  --violet: #8b8ef5;
  --radius: 12px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JB Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* blueprint grid */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--mint); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(13,17,15,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 15px/1 var(--mono); letter-spacing: -.01em; }
.brand__tld { color: var(--mint); }
.brand__mark { width: 18px; height: 18px; border: 2px solid var(--mint); border-radius: 4px; position: relative; transform: rotate(45deg); }
.brand__mark::after { content: ""; position: absolute; inset: 3px; background: var(--mint); border-radius: 1px; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; }
.status strong { color: var(--text); font-weight: 700; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255,92,122,.18); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { opacity: .25; } }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { white-space: nowrap; padding: 10px 28px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-right: 1px solid var(--line); }
.ticker b { color: var(--text); font-weight: 700; margin-left: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- shared ---------- */
.eyebrow { margin: 0 0 14px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--mint); }
.h2 { margin: 0 0 10px; font-weight: 900; font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.lead { margin: 0 0 32px; max-width: 60ch; color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.section { padding: clamp(64px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.grid2 { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(17,23,20,.72); }
.corner { position: absolute; width: 12px; height: 12px; border-color: var(--mint); border-style: solid; border-width: 0; pointer-events: none; }
.corner.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--violet); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn--primary { background: var(--mint); color: #04130c; }
.btn--primary:hover { background: #5dffc6; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 11vw, 132px) 0 clamp(64px, 10vw, 112px); overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -30%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(4,247,164,.16) 0%, rgba(4,247,164,.04) 38%, transparent 64%); pointer-events: none; z-index: -1; }
.hero__title { margin: 0 0 clamp(28px, 5vw, 48px); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.055em; font-size: clamp(3.4rem, 15.5vw, 11.5rem); }
.hero__title > span { display: block; }
@media (max-width: 560px) {
  .hero__title { font-size: 25vw; line-height: .84; }
  .hero__l1 > span { display: block; }
  .hero__cta .btn { flex: 1 1 100%; }
}
.hero__accent { color: var(--mint); text-shadow: 0 0 42px rgba(4,247,164,.35); }
.counter { padding: clamp(22px, 4vw, 36px) clamp(20px, 4vw, 40px); max-width: 860px; }
.counter__label { margin: 0 0 12px; font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); }
.counter__value { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--mono); font-size: clamp(1.25rem, 4vw, 2.3rem); line-height: 1.2; color: var(--text-2); }
.counter__value b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.25em; }
.unit { white-space: nowrap; }
.counter__note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- stages ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
@media (min-width: 640px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stages { grid-template-columns: repeat(5, 1fr); } .stage { min-height: 210px; } }
.stage { position: relative; padding: 22px 20px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.stage:hover { border-color: var(--mint); transform: translateY(-2px); }
.stage__n { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.stage__name { margin: 14px 0 10px; font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.stage__quote { margin: 0; color: var(--text-2); font-size: .98rem; }
.stage__quote--big { font: 700 1.3rem/1.25 var(--mono); color: var(--mint); }
.stage__cite { margin: auto 0 0; padding-top: 14px; font: 400 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; }
.stage--current { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset; }
.stage--final { background: linear-gradient(160deg, rgba(4,247,164,.12), var(--bg-2) 60%); border-color: rgba(4,247,164,.45); }
.here { position: absolute; top: -11px; right: 14px; padding: 4px 9px; border-radius: 999px; background: var(--violet); color: #0b0c22; font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.progress { margin-top: 24px; }
.progress__bar { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 54%; border-radius: inherit; background: linear-gradient(90deg, var(--mint-2), var(--violet)); }
.progress__txt { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- fleeing button ---------- */
.arena { height: clamp(300px, 46vw, 400px); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.arena__switch { position: absolute; left: 24px; top: 22px; margin: 0; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.switch { display: inline-block; padding: 5px 9px; border-radius: 6px; background: rgba(255,92,122,.14); color: var(--red); border: 1px solid rgba(255,92,122,.4); font-weight: 700; }
.flee { position: absolute; left: 0; top: 0; z-index: 2; padding: 16px 26px; border: 0; border-radius: 12px; background: var(--mint); color: #04130c; font: 700 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 6px rgba(4,247,164,.12), 0 18px 50px -18px rgba(4,247,164,.6); transition: transform .22s cubic-bezier(.2,.9,.25,1.2); will-change: transform; touch-action: none; }
.flee.is-denied { background: var(--red); color: #22040b; box-shadow: 0 0 0 6px rgba(255,92,122,.15); animation: shake .45s ease; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.arena__taunt { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font: 400 13px/1.4 var(--mono); color: var(--text-2); min-height: 1.4em; }
.arena__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 14px; }
.arena__result { margin: 0; font-weight: 900; font-size: clamp(1.15rem, 3vw, 1.6rem); letter-spacing: -.02em; min-height: 1.4em; color: var(--red); }
.arena__count { margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- hotline ---------- */
.hotline { padding: clamp(24px, 4vw, 40px); text-align: center; }
.hotline__label { margin: 0 0 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.hotline__num { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 18px 16px; border-radius: 12px; border: 1px solid var(--mint); background: rgba(4,247,164,.06); color: var(--mint); font: 700 clamp(1.05rem, 4.2vw, 1.7rem)/1.1 var(--mono); letter-spacing: .02em; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.hotline__num:hover { background: rgba(4,247,164,.13); }
.hotline__num:active { transform: scale(.99); }
.hotline__icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.hotline.is-ringing .hotline__icon { animation: ring .5s ease-in-out infinite; }
@keyframes ring { 0%, 100% { rotate: 0deg; } 25% { rotate: -14deg; } 75% { rotate: 14deg; } }
.wave { display: flex; justify-content: center; align-items: center; gap: 4px; height: 40px; margin: 20px 0 6px; }
.wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--line-2); transition: background-color .2s ease; }
.hotline.is-ringing .wave i { background: var(--mint); animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.2s; } .wave i:nth-child(3n) { animation-delay: -.45s; } .wave i:nth-child(5n) { animation-delay: -.65s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 34px; } }
.hotline__status { margin: 0; min-height: 3em; color: var(--text-2); font-size: .98rem; }

/* ---------- calculator ---------- */
.calc { padding: clamp(24px, 4vw, 36px); }
.calc__label { display: block; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.calc__row { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font-family: var(--mono); font-size: 16px; }
.calc__input::placeholder { color: #66716b; }
.calc__input:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px rgba(4,247,164,.18); }
.calc__run { margin-top: 20px; }
.calc__bar { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.calc__bar span { display: block; height: 100%; width: 0; background: var(--mint); border-radius: inherit; transition: width .35s ease; }
.calc__step { margin: 10px 0 0; font-size: 13px; color: var(--text-2); min-height: 1.4em; }
.calc__out { margin-top: 18px; }
.calc__out:empty { display: none; }
.calc__who { margin: 0; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); overflow-wrap: anywhere; }
.calc__pct { margin: 2px 0 4px; font-weight: 900; font-size: clamp(4rem, 14vw, 6.5rem); line-height: 1; letter-spacing: -.05em; color: var(--text); }
.calc__pct small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.calc__msg { margin: 0; font: 700 1.05rem/1.35 var(--mono); color: var(--mint); }
.calc__fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pop { animation: pop .45s cubic-bezier(.2,.9,.25,1.3); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(6px); } }

/* ---------- chart ---------- */
.chartcard { padding: clamp(18px, 3.5vw, 32px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); min-width: 0; }
.tile__k { margin: 0 0 4px; font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.tile__v { margin: 0; font-weight: 900; font-size: clamp(1.1rem, 3.6vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__v small { font-size: .55em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.legend { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.legend__key { width: 22px; height: 2px; border-radius: 2px; background: var(--mint); }
.chart { position: relative; width: 100%; height: clamp(260px, 42vw, 400px); touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis text { fill: var(--muted); font: 400 11px var(--mono); }
.chart .ann line { stroke: var(--text-2); stroke-width: 1; opacity: .55; shape-rendering: crispEdges; }
.chart .ann rect { fill: var(--bg); stroke: var(--line-2); }
.chart .ann text { fill: var(--text); font: 700 11px var(--mono); letter-spacing: .02em; }
.chart .line { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#washGrad); }
.chart .dot { fill: var(--mint); stroke: var(--bg-2); stroke-width: 2; }
.chart .lbl { fill: var(--text); font: 700 12px var(--mono); }
.chart .lbl-sub { fill: var(--muted); font: 400 11px var(--mono); }
.chart .cross { stroke: var(--text-2); stroke-width: 1; opacity: .6; shape-rendering: crispEdges; }
.chart .empty { fill: var(--muted); font: 400 13px var(--mono); }
.tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 8px; background: #0a0d0c; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.45); font: 400 12px/1.45 var(--mono); color: var(--text-2); white-space: nowrap; }
.tip b { color: var(--text); font-size: 14px; }
.chartcard { position: relative; }
.chart__foot { margin: 12px 0 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.table { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.table summary { cursor: pointer; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
.table__wrap { overflow-x: auto; margin-top: 12px; }
.table table { width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table th { color: var(--muted); font-weight: 400; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }

/* ---------- eligibility heatmap ---------- */
.heat { position: relative; padding: clamp(18px, 3.5vw, 32px); }
.heat__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin-bottom: 18px; }
.heat__title { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.heat__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-2); }
.heat__legend li { display: inline-flex; align-items: center; gap: 8px; }
.heat__legend b { color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw--ok { background: #1f9d55; }
.sw--no { background: #d8354f; }
.heat__grid { display: grid; gap: 3px; align-items: center; font-family: var(--mono); }
.heat__rl { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.heat__hl { font-size: 10px; color: var(--muted); text-align: center; }
.heat__c { aspect-ratio: 1 / 1; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.92); cursor: help; transition: background-color .5s ease, transform .2s ease; }
.heat__c.e { background: var(--bg-3); cursor: default; }
.heat__c.l1 { background: #5a1a26; } .heat__c.l2 { background: #85223a; } .heat__c.l3 { background: #b42c46; } .heat__c.l4 { background: #e03a58; }
.heat__c.ok { background: #1f9d55; transform: scale(1.12); }
.heat__c.bump { transform: scale(1.18); }
.heat__c:hover { outline: 1px solid var(--text); outline-offset: 1px; }
.heat__foot { margin: 14px 0 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; min-height: 1.4em; }
@media (max-width: 699px) { .heat__c { font-size: 0; } }

/* ---------- gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); height: 100%; display: flex; flex-direction: column; }
.zoom { display: block; padding: 0; border: 0; background: #000; cursor: zoom-in; width: 100%; }
.zoom { overflow: hidden; }
.zoom img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.zoom img.pos-right { object-position: 100% 50%; }
.zoom:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: auto; padding: 14px 16px 16px; font-weight: 600; color: var(--text); border-top: 1px solid var(--line); }
.lightbox { padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); max-width: min(92vw, 960px); max-height: 92vh; color: var(--text); }
.lightbox::backdrop { background: rgba(4,6,5,.86); backdrop-filter: blur(4px); }
.lightbox img { max-height: calc(92vh - 2px); width: auto; margin: 0 auto; }
.lightbox__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(13,17,15,.85); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 8vw, 88px) 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.footer__big { margin: 0 0 12px; font-weight: 900; font-size: clamp(1.5rem, 5vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; }
.footer__small { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .06em; }

@media (max-width: 520px) {
  .status { letter-spacing: .08em; padding: 6px 10px; }
  .brand { font-size: 14px; }
  .tiles { gap: 8px; }
  .tile { padding: 10px; }
  .tile__k { font-size: 10px; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
}
@media (forced-colors: active) {
  .chart .line { stroke: CanvasText; }
  .flee, .btn--primary { border: 2px solid ButtonText; }
}
