/* OpenRelay GAME — full port of the Starmint design system (Miku macaron palette, DESIGN.md §3).
   Same or- vocabulary as the relay console (tunan868.xyz); legacy game classes (.card/.button/…)
   are re-skinned onto the same tokens at the bottom so every page shares one design language. */

/* ---------- fonts (self-hosted, latin only; CJK falls back to the system faces) ---------- */
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/static/fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Orbitron'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/static/fonts/Orbitron-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Orbitron Boot'; font-weight: 400 900; font-display: block; src: url('/static/fonts/Orbitron-latin.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --or-bg: #fffdfb; --or-bg2: #faf6f3;
  --or-ink: #34313c; --or-ink2: #4b4756; --or-mute: #777381; --or-faint: #a7a2ae;
  --or-line: rgba(52, 49, 60, .1); --or-line2: rgba(52, 49, 60, .17);
  --or-miku: #73ddd4; --or-miku-soft: #cff4ef; --or-teal: #23a297;
  --or-pink: #f6b8cf; --or-pink-soft: #fce3ec; --or-rose: #d9678f;
  --or-lav: #cfc5f7; --or-lav-soft: #eee9ff; --or-violet: #8b7be0;
  --or-butter: #ffe6a7; --or-amber: #c9962e;
  --or-ok: #1e7f6b; --or-bad: #b23a5b; --or-info: #5a4fa8;
  --or-miku-rgb: 115, 221, 212; --or-pink-rgb: 246, 184, 207; --or-lav-rgb: 207, 197, 247; --or-ink-rgb: 52, 49, 60;
  --or-glass: rgba(255, 255, 255, .72);
  --or-solid: #73ddd4; --or-on: #1f4744; --or-onk: 31, 71, 68; --or-onac: #b23a5b;
  --or-grad: linear-gradient(90deg, #73ddd4, #f6b8cf, #cfc5f7);
  --or-grad-on: linear-gradient(90deg, #f6b8cf, #cfc5f7, #ffffff);
  --or-display: 'Orbitron', ui-sans-serif, system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --or-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'PingFang SC', 'Microsoft YaHei', monospace;
  --or-sans: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', ui-sans-serif, system-ui, sans-serif;
  --or-ease: cubic-bezier(.2, .8, .2, 1); --or-spring: cubic-bezier(.34, 1.56, .64, 1); --or-glide: cubic-bezier(.32, .72, 0, 1);
  --or-out: cubic-bezier(.16, 1, .3, 1);
  /* legacy game variables mapped onto the same palette */
  --bg-primary: var(--or-bg); --bg-card: rgba(255, 255, 255, .86); --ink: var(--or-ink); --muted: var(--or-mute);
  --line: var(--or-line); --primary: var(--or-teal); --primary-hover: #12685f; --green: var(--or-teal);
  --accent: var(--or-miku-soft); --accent-text: var(--or-teal); --mint: var(--or-miku); --pink: var(--or-pink);
  --lav: var(--or-lav); --soft: rgba(var(--or-ink-rgb), .04); --danger: var(--or-bad); --radius: 6px;
  --font-family: var(--or-sans); --font-mono: var(--or-mono); color-scheme: light;
}
html.dark {
  --or-bg: #22212a; --or-bg2: #1d1c24;
  --or-ink: #edebf2; --or-ink2: #cfcbd8; --or-mute: #a7a2ae; --or-faint: #77727f;
  --or-line: rgba(237, 235, 242, .1); --or-line2: rgba(237, 235, 242, .17);
  --or-miku: #5fc7be; --or-miku-soft: #1c3a38; --or-teal: #7fdcd2;
  --or-pink: #e8a3bd; --or-pink-soft: #3a2430; --or-rose: #f2a0be;
  --or-lav: #b9aeeb; --or-lav-soft: #2a2740; --or-violet: #c3b8f5;
  --or-butter: #f0d08a; --or-amber: #f0d08a;
  --or-ok: #7fdcc8; --or-bad: #f2a0be; --or-info: #c3b8f5;
  --or-miku-rgb: 95, 199, 190; --or-pink-rgb: 232, 163, 189; --or-lav-rgb: 185, 174, 235; --or-ink-rgb: 237, 235, 242;
  --or-glass: rgba(43, 41, 52, .72);
  --or-solid: #5fc7be; --or-on: #17302e; --or-onk: 23, 48, 46; --or-onac: #7b2347;
  --or-grad: linear-gradient(90deg, #5fc7be, #e8a3bd, #b9aeeb);
  --or-grad-on: linear-gradient(90deg, #e8a3bd, #b9aeeb, #edebf2);
  --bg-card: rgba(43, 41, 52, .82); --primary-hover: #a4e8e0; color-scheme: dark;
}

/* ---------- base ---------- */
html.or-on { background: var(--or-bg); scrollbar-gutter: stable; }
html.or-on body { background: var(--or-bg); color: var(--or-ink); overflow-x: clip; }
body { font-family: var(--or-sans); color: var(--or-ink); -webkit-font-smoothing: antialiased; }
::selection { background: rgba(var(--or-miku-rgb), .35); }
html.or-on ::-webkit-scrollbar { width: 10px; height: 10px; }
html.or-on ::-webkit-scrollbar-thumb { background: rgba(var(--or-ink-rgb), .14); border-radius: 10px; border: 3px solid var(--or-bg); }
html.or-on ::-webkit-scrollbar-track { background: transparent; }
a { color: inherit; text-decoration: none; }
.or-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden], .hide { display: none !important; }

/* ---------- ambient ---------- */
.or-aurora { position: fixed; left: -30vmax; top: -30vmax; width: 160vmax; height: 160vmax; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 30% 35%, rgba(var(--or-miku-rgb), .2), transparent 70%), radial-gradient(closest-side at 70% 28%, rgba(var(--or-pink-rgb), .18), transparent 70%), radial-gradient(closest-side at 55% 75%, rgba(var(--or-lav-rgb), .2), transparent 70%);
  animation: or-drift 38s ease-in-out infinite alternate; will-change: transform; }
@keyframes or-drift { 0% { transform: translate3d(-4vmax, -2vmax, 0) rotate(0); } 100% { transform: translate3d(4vmax, 3vmax, 0) rotate(16deg); } }
.or-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(var(--or-ink-rgb), .035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--or-ink-rgb), .035) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%); }
.or-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.or-scan { position: fixed; left: 0; right: 0; top: 0; height: 140px; z-index: 60; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(var(--or-miku-rgb), .08) 70%, rgba(var(--or-miku-rgb), .5) 99%, transparent); }
.or-scan.go { animation: or-sweep 1s var(--or-ease); }
@keyframes or-sweep { 0% { opacity: 0; transform: translateY(-140px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(100vh); } }

/* ---------- top bar ---------- */
.or-bar { position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 44; display: flex; align-items: center; gap: 22px; padding: 0 28px;
  background: linear-gradient(rgba(255, 253, 251, .94), rgba(255, 253, 251, .72) 70%, rgba(255, 253, 251, 0)); }
html.dark .or-bar { background: linear-gradient(rgba(34, 33, 42, .94), rgba(34, 33, 42, .72) 70%, rgba(34, 33, 42, 0)); }
.or-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.or-mark { width: 30px; height: 30px; }
.or-mark .o { fill: none; stroke: var(--or-ink); stroke-width: 6; stroke-linejoin: round; }
.or-mark .i { fill: none; stroke: var(--or-teal); stroke-width: 5; stroke-linejoin: round; transform-origin: 50px 50px; transition: transform .8s var(--or-spring); }
.or-brand:hover .or-mark .i { transform: rotate(60deg) scale(.86); }
.or-mark .c { fill: var(--or-pink); transform-origin: 50px 50px; animation: or-pulse 2.4s ease-in-out infinite; }
@keyframes or-pulse { 50% { transform: scale(.6); opacity: .6; } }
.or-brand b { font-family: var(--or-display); font-weight: 700; letter-spacing: .32em; font-size: 13px; }
.or-crumb { display: flex; align-items: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--or-line); font-family: var(--or-mono); font-size: 11px; letter-spacing: .22em; color: var(--or-mute); height: 20px; white-space: nowrap; }
.or-crumb .ix { color: var(--or-teal); }
.or-crumb .nm { color: var(--or-ink); font-weight: 600; min-width: 9ch; }
.or-crumb .ix:empty, .or-crumb .ix:empty + .sl { display: none; }
.or-bar-r { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.or-clock { font-family: var(--or-mono); font-size: 12px; letter-spacing: .14em; color: var(--or-ink2); font-variant-numeric: tabular-nums; }
.or-ping { display: flex; align-items: center; gap: 8px; font-family: var(--or-mono); font-size: 11px; color: var(--or-mute); letter-spacing: .1em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.or-ping i { width: 6px; height: 6px; border-radius: 50%; background: var(--or-miku); animation: or-ring 2s infinite; }
.or-ping.bad i { background: var(--or-rose); animation: none; }
@keyframes or-ring { 0% { box-shadow: 0 0 0 0 rgba(var(--or-miku-rgb), .6); } 100% { box-shadow: 0 0 0 10px rgba(var(--or-miku-rgb), 0); } }
.or-hex { width: 30px; height: 30px; flex: none; display: grid; place-items: center; font-family: var(--or-display); font-size: 12px; font-style: normal; font-weight: 700; color: var(--or-on);
  background: linear-gradient(135deg, var(--or-miku), var(--or-lav)); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.or-hex.lg { width: 40px; height: 40px; font-size: 15px; }
.or-bar-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--or-line); background: var(--or-glass); font-family: var(--or-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; color: var(--or-ink2); transition: border-color .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.or-bar-btn:hover { border-color: rgba(var(--or-miku-rgb), .8); color: var(--or-teal); box-shadow: 0 0 0 4px rgba(var(--or-miku-rgb), .15); }

/* ---------- theme switch ---------- */
.or-theme { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--or-line); border-radius: 50%; background: var(--or-glass); color: var(--or-ink2); transition: border-color .3s, box-shadow .3s, color .3s, transform .5s var(--or-spring); }
.or-theme:hover { border-color: rgba(var(--or-miku-rgb), .9); box-shadow: 0 0 0 4px rgba(var(--or-miku-rgb), .15); color: var(--or-teal); }
.or-theme:active { transform: scale(.88); }
.or-theme:focus-visible { outline: 2px solid var(--or-teal); outline-offset: 2px; }
.or-theme svg { width: 20px; height: 20px; overflow: visible; transition: transform .8s var(--or-spring); }
.or-theme .s { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .8s var(--or-spring); }
.or-theme .m { transform: translate(10px, -10px); transition: transform .8s var(--or-ease); }
.or-theme .rays { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transform-box: view-box; transform-origin: 12px 12px; transition: transform .8s var(--or-spring), opacity .45s; }
html.dark .or-theme svg { transform: rotate(-30deg); }
html.dark .or-theme .s { transform: scale(1.6); }
html.dark .or-theme .m { transform: none; }
html.dark .or-theme .rays { transform: rotate(-120deg) scale(.3); opacity: 0; }
html.or-vt::view-transition-old(root), html.or-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.or-vt::view-transition-new(root) { z-index: 2; }
html.or-vt *:not(.or-theme, .or-theme *), html.or-vt *::before, html.or-vt *::after { transition: none !important; }
html.or-theming, html.or-theming *, html.or-theming *::before, html.or-theming *::after { transition: background-color .6s, color .6s, border-color .6s, fill .6s, stroke .6s, box-shadow .6s !important; }

/* ---------- boot ---------- */
.or-boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--or-bg); clip-path: circle(150% at var(--bx, 50%) var(--by, 50%)); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1); }
.or-boot.done { clip-path: circle(0% at var(--bx, 50%) var(--by, 50%)); pointer-events: none; }
.or-bt { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.or-bt svg { width: 84px; height: 84px; }
.or-bt path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: or-draw 1.2s var(--or-ease) forwards; }
.or-bt .o { stroke: var(--or-ink); }
.or-bt .i { stroke: var(--or-teal); animation-delay: .25s; }
.or-bt circle { fill: var(--or-pink); transform-origin: 50px 50px; animation: or-pop .5s .8s var(--or-spring) both; }
@keyframes or-draw { to { stroke-dashoffset: 0; } }
@keyframes or-pop { from { transform: scale(0); } }
.or-bt .ln { width: 160px; height: 1px; background: var(--or-line); overflow: hidden; }
.or-bt .ln i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--or-miku), var(--or-pink), transparent); animation: or-load 1.1s ease-in-out var(--ld, 0ms) infinite; }
@keyframes or-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.or-bt b { font-family: 'Orbitron Boot', var(--or-display); font-size: 12px; font-weight: 600; letter-spacing: .6em; padding-left: .6em; }
.or-boot.warm .or-bt path { animation: none; stroke-dashoffset: 0; }
.or-boot.warm .or-bt circle { animation: none; }

/* ---------- layout ---------- */
.wrap, .or-main { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 96px 32px 150px; min-height: 100svh; overflow-x: clip; }
.or-ghost { position: absolute; top: 52px; left: 18px; right: 0; overflow: hidden; z-index: -1; font-family: var(--or-display); font-weight: 900; font-size: clamp(90px, 16vw, 240px); line-height: 1; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(var(--or-lav-rgb), .55); pointer-events: none; user-select: none; white-space: nowrap; animation: or-ghostIn 1.4s var(--or-ease) both; }
@keyframes or-ghostIn { from { opacity: 0; transform: translateX(-40px); letter-spacing: .18em; } }
html.dark .or-ghost { -webkit-text-stroke-color: rgba(185, 174, 235, .2); }
.or-rv { animation: or-rise .8s var(--or-ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes or-rise { from { opacity: 0; transform: translateY(18px); } }
.or-head { display: flex; align-items: flex-end; gap: 16px; margin: 4px 0 28px; flex-wrap: wrap; }
.or-head .big { font-family: var(--or-display); font-size: 60px; font-weight: 800; line-height: .9; font-variant-numeric: tabular-nums; }
.or-head .lbl { font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .28em; color: var(--or-mute); padding-bottom: 4px; }
.or-head .lbl b { display: block; margin-bottom: 6px; font-family: var(--or-sans); font-size: 18px; font-weight: 700; letter-spacing: .04em; color: var(--or-ink); }
.or-head .sp { flex: 1; }
.or-head p { flex-basis: 100%; padding-right: max(0px, calc(100% - 680px)); margin: 0; font-size: 13px; line-height: 1.7; color: var(--or-mute); }

/* ---------- primitives ---------- */
.or-panel, .card, .journey .card { position: relative; border: 1px solid var(--or-line); border-radius: 6px;
  background: radial-gradient(420px circle at var(--mx, -600px) var(--my, -600px), rgba(var(--or-miku-rgb), calc(.16 * var(--sa, 0))), transparent 45%), var(--or-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 48px -34px rgba(var(--or-ink-rgb), .28); }
html.dark .or-panel, html.dark .card, html.dark .journey .card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 48px -30px rgba(0, 0, 0, .7); }
.or-panel::before, .or-panel::after, .card::before, .journey .card::before, .card::after, .journey .card::after { content: ''; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--or-miku); pointer-events: none; opacity: .85; transition: width .45s var(--or-ease), height .45s var(--or-ease), opacity .3s; }
.or-panel::before, .card::before, .journey .card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.or-panel::after, .card::after, .journey .card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; border-color: var(--or-pink); }
.or-panel:hover::before, .or-panel:hover::after, .card:hover::before, .card:hover::after, .journey .card:hover::before, .journey .card:hover::after { width: 24px; height: 24px; opacity: 1; }
.or-ph, .card > h2:first-child, .journey .card > h2:first-child, .card .section-head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--or-mute); }
.or-ph::before, .card > h2:first-child::before, .journey .card > h2:first-child::before, .card .section-head h2::before { content: ''; width: 6px; height: 6px; background: var(--or-miku); transform: rotate(45deg); flex: none; }
.or-ph b { font-family: var(--or-sans); font-size: 12px; letter-spacing: .08em; font-weight: 600; color: var(--or-ink2); text-transform: none; white-space: nowrap; }
.or-ph .r { margin-left: auto; }
.or-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--or-miku); animation: or-ring 1.8s infinite; flex: none; }
.or-chip, .badge, .pill { font-style: normal; font-size: 9px; letter-spacing: .2em; color: var(--or-teal); border: 1px solid rgba(var(--or-miku-rgb), .8); border-radius: 999px; padding: 2px 8px 1px; white-space: nowrap; display: inline-block; background: rgba(var(--or-miku-rgb), .1); }
.or-chip.pink, .badge.warn, .badge.off { color: var(--or-bad); border-color: rgba(var(--or-pink-rgb), .95); background: rgba(var(--or-pink-rgb), .12); }
.or-chip.lav { color: var(--or-info); border-color: var(--or-lav); background: rgba(var(--or-lav-rgb), .14); }
.or-chip.dim { color: var(--or-mute); border-color: var(--or-line2); background: rgba(var(--or-ink-rgb), .03); }
.or-seg { position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--or-line); border-radius: 999px; background: var(--or-glass); }
.or-seg button { position: relative; z-index: 1; height: 26px; padding: 0 12px; border-radius: 999px; font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--or-mute); transition: color .3s; white-space: nowrap; }
.or-seg button:hover { color: var(--or-ink); }
.or-seg button.on { color: var(--or-on); }
.or-seg .sk { position: absolute; top: 3px; left: 3px; height: 26px; width: 0; border-radius: 999px; background: var(--or-solid); transition: left .5s var(--or-spring), width .5s var(--or-spring); }
.or-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 22px; background: var(--or-solid); color: var(--or-on); font-family: var(--or-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: transform .35s var(--or-spring), opacity .2s, filter .2s; }
.or-btn:hover { filter: brightness(1.04) saturate(1.1); }
.or-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--or-pink), var(--or-lav), #fff, var(--or-pink)); background-size: 200% 100%; animation: or-flow 3s linear infinite; }
@keyframes or-flow { to { background-position: 200% 0; } }
.or-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.or-btn.alt { background: rgba(var(--or-ink-rgb), .06); color: var(--or-ink); }
.or-btn.alt::after { display: none; }
.or-btn.pink { background: var(--or-pink); color: #5a1f36; }
.or-btn.wide { width: 100%; height: 50px; }
.or-btn.sm { height: 34px; padding: 0 16px; font-size: 10.5px; letter-spacing: .16em; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.or-btn[disabled], button[disabled], .button[disabled] { opacity: .5; pointer-events: none; }
.or-btn.busy { pointer-events: none; }
.or-btn.busy::after { height: 2px; background: linear-gradient(90deg, transparent, #fff, var(--or-pink), transparent) no-repeat; background-size: 40% 100%; animation: or-busy 1s linear infinite; }
@keyframes or-busy { from { background-position: -70% 0; } to { background-position: 170% 0; } }
.or-ib { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--or-ink2); transition: background .2s, color .2s, transform .35s var(--or-spring); }
.or-ib:hover { background: rgba(var(--or-miku-rgb), .2); color: var(--or-teal); transform: scale(1.1); }
.or-ib svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.or-in, input[type="text"], input[type="number"], input[type="password"], select, textarea { height: 38px; padding: 0 14px; border: 1px solid var(--or-line); border-radius: 6px; background: rgba(255, 255, 255, .8); font-family: var(--or-mono); font-size: 12.5px; color: var(--or-ink); outline: none; transition: border-color .25s, box-shadow .25s; }
textarea { height: auto; min-height: 74px; line-height: 1.6; }
.or-in:focus, input:focus, select:focus, textarea:focus { border-color: var(--or-miku); box-shadow: 0 0 0 4px rgba(var(--or-miku-rgb), .2); }
.or-in::placeholder, input::placeholder, textarea::placeholder { color: var(--or-faint); letter-spacing: .08em; font-size: 11.5px; }
html.dark .or-in, html.dark input[type="text"], html.dark input[type="number"], html.dark input[type="password"], html.dark select, html.dark textarea { background: rgba(29, 28, 36, .72); }
.or-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 130px; font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .24em; color: var(--or-faint); list-style: none; text-align: center; }
.or-empty svg { width: 120px; height: 34px; fill: none; stroke: var(--or-lav); stroke-width: 1.4; stroke-dasharray: 6 6; animation: or-dash 1.4s linear infinite; }
@keyframes or-dash { to { stroke-dashoffset: -24; } }
.or-empty span { max-width: 32ch; line-height: 1.8; }
.or-k { display: block; font-family: var(--or-mono); font-size: 9.5px; letter-spacing: .22em; color: var(--or-faint); text-transform: uppercase; }
.or-v { display: block; }
small.or-u { font-size: .55em; color: var(--or-mute); font-weight: 500; margin: 0 .15em; }
.or-code, code { font-family: var(--or-mono); font-size: .92em; padding: 1px 6px; border-radius: 4px; background: rgba(var(--or-miku-rgb), .16); color: var(--or-ink); }

/* ---------- toasts ---------- */
.or-toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.or-toast { display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 18px; background: var(--or-ink); color: var(--or-bg); border-radius: 999px; font-size: 12.5px; letter-spacing: .06em; box-shadow: 0 16px 30px -14px rgba(var(--or-ink-rgb), .6); animation: or-tin .5s var(--or-spring) both; }
.or-toast.out { animation: or-tout .35s var(--or-ease) forwards; }
.or-toast i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--or-miku); }
.or-toast.err i { background: var(--or-pink); }
@keyframes or-tin { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
@keyframes or-tout { to { opacity: 0; transform: translateY(-10px) scale(.95); } }
html.dark .or-toast { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8); }

/* ---------- modal sheet ---------- */
.or-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(255, 253, 251, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s; }
html.dark .or-modal { background: rgba(20, 19, 25, .66); }
.or-modal.open { opacity: 1; pointer-events: auto; }
.or-sheet { position: relative; width: min(480px, 100%); padding: 28px 28px 24px; background: #fff; border: 1px solid var(--or-line); border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(var(--or-ink-rgb), .4);
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .75s var(--or-ease); }
html.dark .or-sheet { background: #2b2934; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); }
.or-modal.open .or-sheet { clip-path: circle(1600px at var(--ox, 50%) var(--oy, 50%)); }
.or-sheet::before, .or-sheet::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--or-miku); pointer-events: none; }
.or-sheet::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.or-sheet::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-color: var(--or-pink); }
.or-sheet h3 { margin: 0; font-family: var(--or-display); font-size: 18px; font-weight: 700; letter-spacing: .14em; }
.or-sheet h3 + p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--or-mute); }
.or-fl { margin-top: 20px; }
.or-fl > .or-k { margin-bottom: 9px; }
.or-fl .or-in { width: 100%; }
.or-sheet .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.or-sheet .err { margin: 12px 0 0; font-size: 12.5px; color: var(--or-bad); }
.or-secret { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 12px 12px 16px; border: 1px dashed rgba(var(--or-miku-rgb), .9); border-radius: 8px; background: rgba(var(--or-miku-rgb), .1); }
.or-secret code { flex: 1; min-width: 0; font-family: var(--or-mono); font-size: 13px; word-break: break-all; user-select: all; }

/* ---------- dock ---------- */
.or-dock { --di: 46px; --sep: 13px; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(var(--or-ink-rgb), .08);
  box-shadow: inset 0 1px 0 #fff, 0 24px 50px -22px rgba(var(--or-ink-rgb), .4), 0 0 0 6px rgba(255, 255, 255, .45); animation: or-dockIn 1s .3s var(--or-spring) backwards; }
@keyframes or-dockIn { from { opacity: 0; transform: translate(-50%, 40px) scale(.9); } }
html.dark .or-dock { background: rgba(43, 41, 52, .92); border-color: rgba(237, 235, 242, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 50px -22px rgba(0, 0, 0, .8), 0 0 0 6px rgba(34, 33, 42, .45); }
.or-di { position: relative; z-index: 1; display: flex; align-items: center; height: 44px; padding: 0 calc((var(--di) - 20px) / 2); border-radius: 999px; color: var(--or-ink2); transition: color .3s; }
.or-di svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--or-spring); }
.or-di span { width: 0; overflow: hidden; white-space: nowrap; font-family: var(--or-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: width .5s var(--or-glide), margin .5s var(--or-glide), opacity .14s; }
.or-di.on { color: var(--or-on); }
.or-di.on span { width: var(--lw, 0px); opacity: 1; margin-left: 10px; transition: width .5s var(--or-glide), margin .5s var(--or-glide), opacity .3s .12s; }
.or-di:not(.on):hover, .or-grp.open:not(.on) { color: var(--or-teal); }
.or-di:not(.on):hover svg { transform: translateY(-3px) scale(1.1); }
.or-di:not(.on)::after { content: attr(aria-label); position: absolute; left: 50%; bottom: 58px; padding: 6px 10px; border-radius: 4px; background: var(--or-ink); color: var(--or-bg); font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .16em; white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); transition: opacity .2s, transform .3s var(--or-ease); pointer-events: none; }
.or-di:not(.on):hover::after { opacity: 1; transform: translate(-50%, 0); }
.or-grp.open::after { display: none; }
.or-grp u { position: absolute; left: 50%; bottom: 5px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; opacity: .45; transition: transform .4s var(--or-spring), opacity .3s; }
.or-grp.on u { opacity: .7; }
.or-grp.open u { transform: scale(1.8); opacity: 1; }
.or-sep { width: 1px; height: 22px; margin: 0 calc((var(--sep) - 1px) / 2); background: var(--or-line); flex: none; }
.or-di.or-medi { padding: 0 calc((var(--di) - 30px) / 2); }
.or-medi .or-hex { transition: transform .45s var(--or-spring), filter .3s; }
.or-medi:not(.on):hover .or-hex, .or-medi.open .or-hex { transform: translateY(-3px) scale(1.08); filter: saturate(1.2) brightness(1.04); }
.or-medi.on .or-hex { transform: scale(.86); }
.or-medi u { bottom: 3px; }
.or-puck { position: absolute; top: 6px; left: 6px; height: 44px; width: 46px; border-radius: 999px; background: var(--or-solid); box-shadow: 0 10px 22px -10px rgba(var(--or-miku-rgb), .9); transition: left .5s var(--or-glide), width .5s var(--or-glide), opacity .3s, transform .4s var(--or-spring); }
.or-puck::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; border-radius: 2px; background: var(--or-grad-on); }
.or-puck.off { opacity: 0; transform: scale(.6); }
html.dark .or-puck { box-shadow: 0 10px 26px -12px rgba(95, 199, 190, .6); }
html.or-quiet .or-dock * { transition: none !important; }

/* ---------- flyout ---------- */
.or-fly { position: fixed; left: 0; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 46; display: none; width: calc(var(--cols, 2) * 124px + (var(--cols, 2) - 1) * 8px + 28px); max-width: calc(100vw - 24px); padding: 14px;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--or-line); border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff, 0 34px 70px -30px rgba(var(--or-ink-rgb), .45);
  transform-origin: var(--ax, 50%) calc(100% + 14px); opacity: 0; transform: translateY(16px) scale(.86); pointer-events: none;
  clip-path: inset(30% 0 0 0 round 12px); transition: opacity .25s var(--or-ease), transform .5s var(--or-spring), clip-path .5s var(--or-ease); }
html.dark .or-fly { background: rgba(43, 41, 52, .97); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 34px 70px -30px rgba(0, 0, 0, .85); }
.or-fly.show { display: block; }
.or-fly.open { opacity: 1; transform: none; pointer-events: auto; clip-path: inset(-20px -20px -20px -20px round 12px); }
.or-fly::before, .or-fly::after { content: ''; position: absolute; pointer-events: none; }
.or-fly::before { top: 6px; left: 6px; width: 12px; height: 12px; border-top: 1.5px solid var(--or-miku); border-left: 1.5px solid var(--or-miku); }
.or-fly::after { left: calc(var(--ax, 50%) - 7px); bottom: -7px; width: 13px; height: 13px; background: #fff; border-right: 1px solid var(--or-line); border-bottom: 1px solid var(--or-line); transform: rotate(45deg); }
html.dark .or-fly::after { background: #2b2934; }
.or-fly-h { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--or-mute); }
.or-fly-h b { font-weight: 600; color: var(--or-ink); }
.or-fly-h::after { content: ''; order: 1; flex: 1; height: 1px; background: linear-gradient(90deg, var(--or-line), transparent); }
.or-fly-h i { font-style: normal; order: 2; color: var(--or-teal); }
.or-fly-g { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.or-ft { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 12px 12px; border: 1px solid var(--or-line); border-radius: 8px; background: linear-gradient(160deg, #fff, var(--or-bg2)); overflow: hidden; text-align: left;
  transition: transform .45s var(--or-spring), border-color .3s, box-shadow .3s, background .3s; animation: or-ftIn .55s var(--or-ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes or-ftIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
html.dark .or-ft { background: linear-gradient(160deg, #312e3b, #29272f); }
.or-ft::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120px circle at 0 0, rgba(var(--or-miku-rgb), .2), transparent 70%); opacity: 0; transition: opacity .3s; }
.or-ft:hover { border-color: rgba(var(--or-miku-rgb), .7); box-shadow: 0 14px 26px -18px rgba(var(--or-miku-rgb), .9); transform: translateY(-3px); }
.or-ft:hover::before { opacity: 1; }
.or-ft-i { position: relative; width: 34px; height: 34px; display: grid; place-items: center; color: var(--or-ink2); transition: color .3s, transform .6s var(--or-spring); }
.or-ft-i::before { content: ''; position: absolute; inset: 0; background: rgba(var(--or-ink-rgb), .05); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); transition: background .3s; }
.or-ft-i svg { position: relative; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.or-ft:hover .or-ft-i { color: var(--or-teal); transform: rotate(-8deg) scale(1.08); }
.or-ft:hover .or-ft-i::before { background: rgba(var(--or-miku-rgb), .22); }
.or-ft b { position: relative; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.or-ft em { position: absolute; top: 10px; right: 11px; font-style: normal; font-family: var(--or-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--or-faint); }
.or-ft.on { background: var(--or-solid); border-color: var(--or-solid); color: var(--or-on); }
.or-ft.on .or-ft-i { color: var(--or-onac); }
.or-ft.on .or-ft-i::before { background: rgba(255, 255, 255, .35); }
.or-ft.on em { color: rgba(var(--or-onk), .5); }
.or-ft.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--or-grad-on); }
.or-fly-id { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; margin-bottom: 12px; border-bottom: 1px dashed var(--or-line); }
.or-fly-id > div { min-width: 0; flex: 1; }
.or-fly-id b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-fly-id > div > i { display: block; margin-top: 3px; font-style: normal; font-family: var(--or-mono); font-size: 10.5px; color: var(--or-mute); letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-fly-id em { flex: none; padding: 3px 7px; border: 1px solid rgba(var(--or-miku-rgb), .9); border-radius: 3px; font-style: normal; font-family: var(--or-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .2em; color: var(--or-teal); }
.or-fly-id em.admin { border-color: var(--or-lav); color: var(--or-violet); }
.or-fly-id em.guest { border-color: var(--or-line2); color: var(--or-mute); }
.or-fly-out { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px dashed var(--or-line); border-radius: 8px; color: var(--or-mute);
  transition: color .25s, border-color .25s, background .25s, padding .35s var(--or-ease); animation: or-ftIn .55s var(--or-ease) backwards; animation-delay: var(--d, 0ms); }
.or-fly-out svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.or-fly-out b { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.or-fly-out:hover { color: var(--or-bad); border-color: rgba(var(--or-pink-rgb), .9); background: var(--or-pink-soft); padding-left: 16px; }
html.dark .or-fly-out:hover { background: rgba(232, 163, 189, .1); }

/* ---------- status / data furniture ---------- */
.or-gauge { position: relative; height: 8px; border-radius: 999px; background: rgba(var(--or-ink-rgb), .06); overflow: hidden; }
.or-gauge i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 999px; background: var(--or-grad); transition: width 1.4s var(--or-ease); }
.or-cd { font-family: var(--or-display); font-size: 30px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.or-cd small { font-family: var(--or-mono); font-size: 10px; font-weight: 500; letter-spacing: .24em; color: var(--or-mute); margin-left: 10px; }
.or-kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.or-kvs .or-v { margin-top: 5px; font-family: var(--or-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-kvs .or-v.warn { color: var(--or-bad); }
.or-fd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 12px; padding: 11px 4px; border-bottom: 1px dashed var(--or-line); animation: or-slideIn .6s var(--or-ease) both; animation-delay: var(--d, 0ms); }
.or-fd:last-child { border-bottom: 0; }
.or-fd .t { font-family: var(--or-mono); font-size: 11px; color: var(--or-mute); grid-row: span 2; padding-top: 1px; font-variant-numeric: tabular-nums; }
.or-fd .m { font-family: var(--or-mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-fd .c { font-family: var(--or-mono); font-size: 12px; font-weight: 600; text-align: right; white-space: nowrap; }
.or-fd.new { animation: or-slideIn .6s var(--or-ease) both, or-flash 1.8s ease-out; }
@keyframes or-slideIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes or-flash { 0% { background: rgba(var(--or-miku-rgb), .25); } 100% { background: transparent; } }
.or-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--or-miku); margin-right: 8px; vertical-align: 1px; }
.or-dot.err { background: var(--or-pink); }
.or-dot.wait { background: var(--or-butter); }
.or-live { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--or-line); font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .22em; color: var(--or-mute); background: var(--or-glass); transition: all .3s; }
.or-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--or-faint); }
.or-live.on { color: var(--or-ink); border-color: rgba(var(--or-miku-rgb), .9); background: rgba(var(--or-miku-rgb), .14); }
.or-live.on i { background: var(--or-miku); animation: or-ring 1.6s infinite; }
.or-st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10px; letter-spacing: .1em; background: rgba(var(--or-miku-rgb), .18); color: var(--or-ok); }
.or-st.err { background: var(--or-pink-soft); color: var(--or-bad); }
.or-st.wait { background: rgba(255, 230, 167, .5); color: #8a6414; }
html.dark .or-st.wait { background: rgba(240, 208, 138, .14); color: var(--or-amber); }
.or-sig { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 10px; }
.or-sig i { flex: 1; min-height: 2px; height: calc(var(--h, 0) * 20px + 2px); border-radius: 1px; background: linear-gradient(var(--or-miku), var(--or-teal)); opacity: .7; transform-origin: bottom; transition: height .8s var(--or-ease); transition-delay: calc(var(--n, 0) * 25ms); }
.or-ro { position: relative; padding: 16px 18px 14px; overflow: hidden; }
.or-ro-k { font-family: var(--or-mono); font-size: 10px; letter-spacing: .26em; color: var(--or-mute); }
.or-ro-v { margin-top: 8px; font-family: var(--or-display); font-weight: 700; font-size: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.or-ro-v.ok { color: var(--or-ok); }
.or-ro-v.bad { color: var(--or-bad); }
.or-ro-s { margin-top: 4px; font-size: 11px; color: var(--or-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-alert { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; padding: 18px 22px; }
.or-alert > .or-hexi { width: 44px; height: 48px; flex: none; display: grid; place-items: center; color: var(--or-on); background: linear-gradient(135deg, var(--or-butter), var(--or-pink)); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.or-alert > .or-hexi svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.or-alert .tx { flex: 1; min-width: 220px; }
.or-alert .tx b { display: block; font-size: 15px; font-weight: 700; }
.or-alert .tx span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: var(--or-mute); }
.or-pact { margin-top: 14px; padding: 14px 16px; border-radius: 6px; background: repeating-linear-gradient(-45deg, rgba(var(--or-pink-rgb), .14) 0 10px, transparent 10px 20px), rgba(255, 255, 255, .5); border: 1px dashed rgba(var(--or-pink-rgb), .9); font-size: 12.5px; line-height: 1.7; color: var(--or-ink2); }
html.dark .or-pact { background: repeating-linear-gradient(-45deg, rgba(232, 163, 189, .08) 0 10px, transparent 10px 20px), rgba(29, 28, 36, .4); }
.or-pact b { display: block; margin-bottom: 4px; color: var(--or-bad); font-size: 12px; letter-spacing: .1em; }

/* ---------- leaderboard: podium + rows ---------- */
.or-lb-bar { display: flex; height: 6px; min-width: 0; border-radius: 3px; overflow: hidden; background: rgba(var(--or-ink-rgb), .07); }
.or-lb-bar i { height: 100%; transition: width .8s var(--or-ease); }
.or-lb-bar .ok { background: linear-gradient(90deg, var(--or-miku), var(--or-teal)); }
.or-lb-bar .em { background: var(--or-lav); }
.or-lb-bar .bad { background: linear-gradient(90deg, var(--or-pink), var(--or-rose)); }
.or-lb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.or-lb-who .av { flex: none; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-family: var(--or-sans); font-weight: 700; color: #fff; background: var(--c, var(--or-teal)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); width: 30px; height: 30px; font-size: 13px; }
.or-lb-who .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--or-ink); }
.or-lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: 'p2 p1 p3'; align-items: end; gap: 18px; margin: 40px 0 18px; }
.or-lb-step { position: relative; grid-area: p1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 20px 18px; text-align: center; --m1: var(--or-butter); --m2: var(--or-amber); }
.or-lb-step.p1 { padding-top: 46px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 230, 167, .7), 0 34px 60px -36px rgba(201, 150, 46, .6); }
.or-lb-step.p2 { grid-area: p2; --m1: var(--or-lav); --m2: var(--or-violet); }
.or-lb-step.p3 { grid-area: p3; --m1: var(--or-pink); --m2: var(--or-rose); }
.or-lb-step.me { outline: 2px solid rgba(var(--or-miku-rgb), .7); outline-offset: 3px; }
.or-lb-step .medal { position: absolute; top: -22px; left: 50%; width: 40px; height: 44px; margin-left: -20px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--m1), var(--m2)); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  font-family: var(--or-display); font-size: 17px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .22); }
.or-lb-step.p1 .medal { top: -28px; width: 50px; height: 56px; margin-left: -25px; font-size: 22px; }
.or-lb-step .or-lb-who { flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.or-lb-step .or-lb-who .av { width: 52px; height: 52px; margin-inline: calc(50% - 26px); font-size: 20px; }
.or-lb-step .or-lb-who .tx { font-size: 15px; }
.or-lb-step .hero { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.or-lb-step.p1 .hero { width: 116px; height: 116px; }
.or-lb-step .hero .v { font-family: var(--or-display); font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.or-lb-step .hero .v.positive { color: var(--or-ok); }
.or-lb-step .hero .v.negative { color: var(--or-bad); }
.or-lb-step.p1 .hero .v { font-size: 25px; }
.or-lb-step .hero.grind { width: auto; height: auto; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.or-lb-step .hero.grind .v { font-size: 42px; line-height: 1; color: var(--or-bad); }
.or-lb-step .hero.grind .k { font-size: 11.5px; letter-spacing: .1em; color: var(--or-mute); }
.or-lb-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.or-lb-ring circle { fill: none; stroke-width: 6; }
.or-lb-ring .trk { stroke: rgba(var(--or-ink-rgb), .08); }
.or-lb-ring .arc { stroke: var(--m2); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--or-ease); filter: drop-shadow(0 0 4px var(--m1)); }
.or-lb-step .sub { font-size: 12px; color: var(--or-mute); }
.or-lb-step .sub b { font-family: var(--or-mono); font-weight: 600; color: var(--or-ink); }
.or-lb-step .or-lb-bar { width: 100%; }
.or-lb-list { padding: 4px 0; }
.or-lb-h, .or-lb-row { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1.2fr) 110px; gap: 14px; align-items: center; padding: 0 20px; }
.or-lb-h { height: 42px; font-family: var(--or-mono); font-size: 9.5px; letter-spacing: .2em; color: var(--or-faint); border-bottom: 1px solid var(--or-line); }
.or-lb-row { position: relative; min-height: 56px; border-bottom: 1px dashed var(--or-line); animation: or-slideIn .55s var(--or-ease) backwards; animation-delay: var(--d, 0ms); transition: background .2s; }
.or-lb-row:last-child { border-bottom: 0; }
.or-lb-row:hover { background: rgba(var(--or-miku-rgb), .07); }
.or-lb-row.me { background: linear-gradient(90deg, rgba(var(--or-miku-rgb), .18), rgba(var(--or-miku-rgb), .04)); }
.or-lb-row.me::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--or-miku); }
.or-lb-row .rk { display: flex; align-items: baseline; gap: 6px; font-family: var(--or-display); font-size: 15px; font-weight: 700; color: var(--or-ink2); font-variant-numeric: tabular-nums; }
.or-lb-row .n { font-family: var(--or-mono); font-size: 13px; color: var(--or-ink2); text-align: right; font-variant-numeric: tabular-nums; }
.or-lb-row .n.main { font-family: var(--or-display); font-size: 15px; font-weight: 700; color: var(--or-ink); }
.or-lb-row .n.main.bad { color: var(--or-bad); }
.or-lb-row .n.main.ok { color: var(--or-ok); }
html.dark .or-lb-step.p1 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(240, 208, 138, .35), 0 34px 60px -30px rgba(0, 0, 0, .7); }
.or-lb-pin { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 44; width: max-content; max-width: calc(100vw - 32px); margin: 0 auto; display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 20px;
  border: 1px solid rgba(var(--or-miku-rgb), .9); border-radius: 999px; background: var(--or-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -20px rgba(var(--or-ink-rgb), .45); font-size: 12.5px; color: var(--or-ink); white-space: nowrap; animation: or-rise .5s var(--or-ease) backwards; }
.or-lb-pin .rk { font-family: var(--or-display); font-size: 16px; font-weight: 800; color: var(--or-teal); }
.or-lb-pin .tx { font-weight: 600; }
.or-lb-pin .n { font-family: var(--or-mono); font-size: 12px; }
.or-lb-pin .dim { color: var(--or-mute); }
html.dark .or-lb-pin { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); }

/* ---------- steps + terminal (gate / technical details) ---------- */
.or-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.or-step { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.or-step.wide { grid-column: 1 / -1; }
.or-step-h { display: flex; align-items: center; gap: 14px; }
.or-step-h i { width: 38px; height: 42px; flex: none; display: grid; place-items: center; font-style: normal; font-family: var(--or-display); font-size: 13px; font-weight: 700; color: var(--or-on); background: linear-gradient(135deg, var(--or-miku), var(--or-lav)); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.or-step-h b { font-size: 16px; font-weight: 700; }
.or-step-h span { display: block; margin-top: 3px; font-family: var(--or-mono); font-size: 10px; letter-spacing: .24em; color: var(--or-faint); }
.or-step p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--or-ink2); }
.or-step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--or-ink2); }
.or-step li { display: flex; gap: 10px; line-height: 1.7; }
.or-step li::before { content: '✦'; flex: none; color: var(--or-pink); font-size: 11px; line-height: 1.9; }
.or-term { border: 1px solid var(--or-line); border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .6); }
html.dark .or-term { background: rgba(29, 28, 36, .6); }
.or-term-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--or-line); background: rgba(var(--or-miku-rgb), .08); }
.or-term-h .dots { display: flex; gap: 6px; }
.or-term-h .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--or-pink); }
.or-term-h .dots i:nth-child(2) { background: var(--or-butter); }
.or-term-h .dots i:nth-child(3) { background: var(--or-miku); }
.or-term pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--or-mono); font-size: 12px; line-height: 1.7; color: var(--or-ink); }

/* ---------- landing / access gate ---------- */
.or-land { position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.or-floor { position: fixed; left: 0; right: 0; bottom: 0; height: 30vh; z-index: 0; perspective: 420px; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 95%); mask-image: linear-gradient(to top, #000 5%, transparent 95%); }
.or-floor i { position: absolute; left: -50%; right: -50%; top: 0; height: 200%; transform: rotateX(72deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgba(var(--or-miku-rgb), .45) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--or-pink-rgb), .4) 1px, transparent 1px); background-size: 64px 64px; animation: or-floor 3.6s linear infinite; }
@keyframes or-floor { to { background-position: 0 64px, 0 0; } }
.or-ltop { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 32px; }
.or-ltop .r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.or-lreactor { position: absolute; left: 50%; top: 50%; translate: -50% -52%; width: min(88vh, 92vw, 820px); aspect-ratio: 1; pointer-events: none; }
.or-lreactor svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.or-lreactor .spin { transform-origin: 300px 300px; animation: or-spin linear infinite; }
.or-lreactor .r1 { animation-duration: 70s; }
.or-lreactor .r2 { animation-duration: 44s; animation-direction: reverse; }
.or-lreactor .r3 { animation-duration: 26s; }
.or-lreactor .r4 { animation-duration: 110s; animation-direction: reverse; }
.or-lreactor .glow { animation: or-breathe 5s ease-in-out infinite; transform-origin: 300px 300px; }
@keyframes or-breathe { 50% { opacity: .55; transform: scale(.95); } }
@keyframes or-spin { to { transform: rotate(360deg); } }
.or-lreactor .ln-a { stroke: rgba(var(--or-ink-rgb), .14); }
.or-lreactor .ln-b { stroke: rgba(var(--or-miku-rgb), .55); }
.or-lreactor .ln-c { stroke: rgba(var(--or-lav-rgb), .8); }
.or-lreactor .ln-d { stroke: rgba(var(--or-pink-rgb), .8); }
.or-lreactor .note { font-family: var(--or-sans); font-size: 18px; fill: var(--or-pink); }
.or-center { position: relative; z-index: 3; display: grid; place-items: center; padding: 0 16px; }
.or-center > * { grid-area: 1 / 1; }
.or-home { text-align: center; }
.or-hx { transition: opacity .5s var(--or-out), transform .8s var(--or-out), filter .5s var(--or-out); }
.or-hx:nth-child(1) { transition-delay: .16s; } .or-hx:nth-child(2) { transition-delay: .21s; } .or-hx:nth-child(3) { transition-delay: .26s; } .or-hx:nth-child(4) { transition-delay: .31s; } .or-hx:nth-child(5) { transition-delay: .36s; }
.or-land h1 { margin: 0; font-family: var(--or-display); font-weight: 900; font-size: clamp(38px, 8.4vw, 112px); line-height: 1; letter-spacing: .12em; padding-left: .12em;
  background: linear-gradient(100deg, var(--or-ink) 0%, var(--or-ink2) 30%, var(--or-teal) 44%, var(--or-rose) 52%, var(--or-violet) 58%, var(--or-ink2) 70%, var(--or-ink) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: or-sheen 8s ease-in-out infinite; }
@keyframes or-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.or-land .eyebrow { margin-bottom: 22px; font-family: var(--or-mono); font-size: 11px; letter-spacing: .3em; color: var(--or-teal); }
.or-land .eyebrow i { font-style: normal; color: var(--or-pink); margin: 0 10px; }
.or-land .tag { margin-top: 22px; font-size: clamp(17px, 2vw, 24px); font-weight: 700; letter-spacing: .14em; }
.or-land .desc { max-width: 520px; margin: 12px auto 0; font-size: 13px; line-height: 1.8; color: var(--or-mute); }
.or-go { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.or-go .or-btn { height: 46px; padding: 0 26px; }
.or-btn .arrow { transition: transform .2s; }
.or-btn:hover .arrow { transform: translateX(4px); }
.or-tele { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; padding: 0 16px; font-family: var(--or-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--or-faint); }
.or-tele div { display: flex; gap: 12px; align-items: baseline; }
.or-tele b { font-family: var(--or-display); font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--or-ink); font-variant-numeric: tabular-nums; text-transform: none; }
.or-intro { animation: or-intro 1.4s var(--or-out) both; }
.or-intro.d1 { animation-delay: .15s; } .or-intro.d2 { animation-delay: .3s; } .or-intro.d3 { animation-delay: .45s; } .or-intro.d4 { animation-delay: .6s; }
@keyframes or-intro { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.or-lfoot { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; text-align: center; font-family: var(--or-mono); font-size: 10px; letter-spacing: .2em; color: var(--or-faint); }
/* access card */
.or-access { position: relative; z-index: 4; width: min(460px, calc(100vw - 32px)); visibility: hidden; }
.or-land.auth .or-access { visibility: visible; }
.or-acard { position: relative; display: block; padding: 22px 26px 26px; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .74)); border: 1px solid var(--or-line);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 1px 0 #fff inset, 0 40px 90px -50px rgba(var(--or-miku-rgb), .9), 0 12px 32px -22px rgba(var(--or-ink-rgb), .25); }
html.dark .or-acard { background: linear-gradient(180deg, rgba(43, 41, 52, .9), rgba(34, 33, 42, .78)); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 90px -40px rgba(0, 0, 0, .85); }
.or-acard.open { animation: or-crtOpen .9s var(--or-out) .14s backwards; }
@keyframes or-crtOpen { 0% { clip-path: inset(calc(50% - 1px) 50% calc(50% - 1px) 50%); } 32% { clip-path: inset(calc(50% - 1px) 0 calc(50% - 1px) 0); } 100% { clip-path: inset(-60px -60px -110px -60px); } }
.or-beam { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; z-index: 6; pointer-events: none; background: linear-gradient(90deg, transparent, var(--or-miku) 20%, var(--or-pink) 50%, var(--or-lav) 80%, transparent); box-shadow: 0 0 14px 1px rgba(var(--or-miku-rgb), .8); opacity: 0; }
.or-acard.open .or-beam { animation: or-beamOpen .9s var(--or-out) .14s backwards; }
@keyframes or-beamOpen { 0% { opacity: 1; transform: scaleX(0); } 32% { opacity: 1; transform: scaleX(1); } 60%, 100% { opacity: 0; transform: scaleX(1); } }
.or-cb { position: absolute; width: 14px; height: 14px; border: 0 solid var(--or-miku); pointer-events: none; transition: width .35s var(--or-out), height .35s var(--or-out); }
.or-cb.tl { left: -1px; top: -1px; border-width: 2px 0 0 2px; --dx: -10px; --dy: -10px; }
.or-cb.tr { right: -1px; top: -1px; border-width: 2px 2px 0 0; --dx: 10px; --dy: -10px; border-color: var(--or-pink); }
.or-cb.bl { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; --dx: -10px; --dy: 10px; border-color: var(--or-lav); }
.or-cb.br { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; --dx: 10px; --dy: 10px; }
.or-acard:focus-within .or-cb { width: 22px; height: 22px; }
.or-acard.open .st { animation: or-stIn .75s var(--or-out) backwards; animation-delay: calc(.5s + var(--i, 0) * 60ms); }
@keyframes or-stIn { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } }
.or-ach { display: flex; align-items: center; gap: 10px; }
.or-ach .tag { display: flex; align-items: center; gap: 10px; font-family: var(--or-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.or-ach .tag svg { width: 16px; height: 16px; }
.or-ach .esc { margin-left: auto; height: 24px; padding: 0 9px; border: 1px solid var(--or-line); background: rgba(255, 255, 255, .6); color: var(--or-faint); font-family: var(--or-mono); font-size: 10px; letter-spacing: .2em; transition: color .2s, border-color .2s; }
html.dark :is(.or-ach .esc, .or-tabs) { background: rgba(29, 28, 36, .6); }
.or-ach .esc:hover { color: var(--or-teal); border-color: rgba(var(--or-miku-rgb), .9); }
.or-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 22px; padding: 3px; border: 1px solid var(--or-line); border-radius: 999px; background: rgba(255, 255, 255, .55); }
.or-tabs button { position: relative; z-index: 1; height: 34px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--or-mute); transition: color .35s; }
.or-tabs button.on { color: var(--or-on); }
.or-tabs .pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--or-solid); box-shadow: 0 8px 18px -10px rgba(var(--or-miku-rgb), .9); transition: transform .6s var(--or-spring); }
.or-tabs .pill::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px; background: var(--or-grad-on); }
.or-tabs.two .pill { transform: translateX(100%); }
.or-tabs.solo { grid-template-columns: 1fr; }
.or-tabs.solo .pill { width: calc(100% - 6px); transform: none; }
.or-anote { margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: var(--or-ink2); }
.or-anote.dim { color: var(--or-mute); font-size: 12px; }
.or-discord { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; margin-bottom: 14px; color: #fff; background: #5865f2; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); position: relative; transition: transform .35s var(--or-spring), filter .2s; }
.or-discord:hover { filter: brightness(1.08); }
.or-discord svg { width: 22px; height: 22px; fill: currentColor; }
.or-discord::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--or-pink), var(--or-lav), #fff, var(--or-pink)); background-size: 200% 100%; animation: or-flow 3s linear infinite; }
.or-f { padding-bottom: 16px; }
.or-f label { display: flex; justify-content: space-between; margin-bottom: 4px; font-family: var(--or-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--or-faint); transition: color .25s; }
.or-f:focus-within label { color: var(--or-teal); }
.or-iw { position: relative; display: flex; align-items: center; border-bottom: 1px solid rgba(var(--or-ink-rgb), .16); }
.or-iw::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--or-grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--or-out); }
.or-f:focus-within .or-iw::after { transform: scaleX(1); }
.or-iw input { flex: 1; min-width: 0; height: 42px; padding: 0 2px; border: 0; outline: 0; border-radius: 0; background: transparent; font: 15px/1 var(--or-sans); color: var(--or-ink); letter-spacing: .02em; box-shadow: none !important; }
.or-iw input:-webkit-autofill { -webkit-text-fill-color: var(--or-ink); caret-color: var(--or-ink); transition: background-color 600000s 0s; }
.or-aerr { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 2px 0 16px; font-size: 13px; line-height: 1.5; color: var(--or-bad); }
.or-aerr::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 6px; background: var(--or-pink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.or-afoot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--or-line); font-size: 12px; line-height: 1.7; color: var(--or-mute); }
.or-afoot a { color: var(--or-teal); text-decoration: underline; text-underline-offset: 3px; }
/* hand-off ripples */
@property --or-rr { syntax: '<length>'; inherits: false; initial-value: 0px; }
.or-rips i { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; --c: var(--or-miku-rgb);
  background: radial-gradient(circle at var(--ox, 50%) var(--oy, 50%), transparent calc(var(--or-rr) - 28px), rgba(var(--c), .5) calc(var(--or-rr) - 1px), transparent var(--or-rr)); }
.or-rips i:nth-child(2) { --c: var(--or-pink-rgb); }
.or-rips i:nth-child(3) { --c: var(--or-lav-rgb); }
.or-rips.go i { animation: or-rip 1.5s cubic-bezier(.2, .7, .3, 1) forwards; }
.or-rips.go i:nth-child(2) { animation-delay: .14s; }
.or-rips.go i:nth-child(3) { animation-delay: .28s; }
@keyframes or-rip { 0% { --or-rr: 0px; opacity: 0; } 10% { opacity: 1; } 70% { opacity: .7; } 100% { --or-rr: 120vmax; opacity: 0; } }

/* ═════════════════════════════════════════════════════════════════════
   Re-skin of the legacy game markup onto the same design language.
   ═════════════════════════════════════════════════════════════════════ */

/* buttons: every legacy button becomes the chamfered Starmint button */
button, .button { font: inherit; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; cursor: pointer; white-space: nowrap;
  background: rgba(var(--or-ink-rgb), .06); color: var(--or-ink); font-family: var(--or-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: filter .2s, background .25s, color .25s, transform .35s var(--or-spring); text-decoration: none; }
button:hover, .button:hover { filter: brightness(1.03); background: rgba(var(--or-miku-rgb), .22); color: var(--or-teal); }
button.primary, .button.primary, .journey button.primary, .journey a.primary { background: var(--or-solid); color: var(--or-on); font-weight: 700; }
button.primary:hover, .button.primary:hover { background: var(--or-solid); color: var(--or-on); }
button.primary::after, .button.primary::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--or-pink), var(--or-lav), #fff, var(--or-pink)); background-size: 200% 100%; animation: or-flow 3s linear infinite; }
button.danger { background: var(--or-pink-soft); color: var(--or-bad); }
button.danger:hover { background: rgba(var(--or-pink-rgb), .5); color: var(--or-bad); }
.text-button { border: 0; background: transparent; clip-path: none; height: auto; padding: 4px 6px; color: var(--or-mute); letter-spacing: .08em; }
.text-button:hover { background: transparent; color: var(--or-teal); filter: none; }
button:focus-visible, .button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--or-teal); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }

/* headings inside cards + section heads */
.card h2, .journey .card h2 { font-size: 12px; font-weight: 600; margin: 0; letter-spacing: .1em; color: var(--or-ink2); }
.card .section-head h2 { margin: 0; }
.section-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.section-head > a { font-size: 12px; color: var(--or-mute); transition: color .2s; }
.section-head > a:hover { color: var(--or-teal); }

/* messages */
.msg { font-size: 13px; margin-top: 10px; overflow-wrap: anywhere; }
.msg.err, .risk, .error-detail { color: var(--or-bad); }
.msg.ok { color: var(--or-ok); }
.msg:empty, .msg.muted { margin-top: 0; }

/* key-value lists */
.kv { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 10px 20px; margin: 0; }
.kv dt { color: var(--or-faint); font-family: var(--or-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; align-self: center; }
.kv dd { margin: 0; font-family: var(--or-mono); font-size: 12.5px; overflow-wrap: anywhere; text-align: right; }
.journey .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.journey .metrics > div { padding: 12px 14px 10px; border: 1px dashed var(--or-line); border-radius: 6px; background: rgba(var(--or-ink-rgb), .02); }
.journey .metrics strong { display: block; font-family: var(--or-display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--or-ink); }
.journey .metrics strong.positive { color: var(--or-ok); }
.journey .metrics strong.negative { color: var(--or-bad); }
.journey .metrics span { font-size: 10px; font-family: var(--or-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--or-faint); }
.price strong, .hero-result .big, .balance strong, .confirm-box .big, .position-score, .journey .hero-result .big { font-family: var(--or-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.price strong { font-size: 34px; }

/* tables: mono heads, dashed rows, mint wash on hover */
.table-scroll { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 12px 12px; text-align: left; border-bottom: 1px dashed var(--or-line); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--or-mute); font-weight: 500; font-family: var(--or-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; background: rgba(var(--or-ink-rgb), .02); border-bottom: 1px solid var(--or-line2); white-space: nowrap; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background-color: rgba(var(--or-miku-rgb), .08); }
td.num { font-family: var(--or-mono); text-align: right; font-variant-numeric: tabular-nums; }

/* notices: hazard-stripe pact; event strip: hexagon alert banner */
.notice, .journey .notice, .preview, .journey .preview { margin: 14px 0; padding: 14px 16px; border-radius: 6px; background: repeating-linear-gradient(-45deg, rgba(var(--or-pink-rgb), .14) 0 10px, transparent 10px 20px), rgba(255, 255, 255, .5); border: 1px dashed rgba(var(--or-pink-rgb), .9); font-size: 12.5px; line-height: 1.7; color: var(--or-ink2); }
html.dark .notice, html.dark .journey .notice, html.dark .preview, html.dark .journey .preview { background: repeating-linear-gradient(-45deg, rgba(232, 163, 189, .08) 0 10px, transparent 10px 20px), rgba(29, 28, 36, .4); }
.event-strip { position: relative; display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin: 0 0 22px; padding: 18px 22px; border: 1px solid var(--or-line); border-radius: 6px; background: var(--or-glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 48px -34px rgba(var(--or-ink-rgb), .28); }
html.dark .event-strip { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 48px -30px rgba(0, 0, 0, .7); }
.event-strip > strong { display: flex; align-items: center; gap: 10px; flex: none; font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--or-mute); }
.event-strip > strong::before { content: ''; width: 6px; height: 6px; background: var(--or-miku); transform: rotate(45deg); flex: none; }
.event-strip > span { flex: 1; min-width: 220px; font-size: 13px; line-height: 1.7; }
.event-strip > details { flex-basis: 100%; }
.event-strip details summary { cursor: pointer; color: var(--or-teal); font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .16em; }
.event-item { border-top: 1px dashed var(--or-line); margin-top: 8px; padding-top: 6px; overflow-wrap: anywhere; }

/* details/summary: mono toggle */
details > summary { cursor: pointer; color: var(--or-mute); font-family: var(--or-mono); font-size: 11px; letter-spacing: .1em; width: fit-content; transition: color .2s; }
details > summary:hover { color: var(--or-teal); }
details > summary::marker { color: var(--or-miku); }
.technical { border-top: 1px dashed var(--or-line2); margin-top: 18px; padding-top: 14px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--or-mono); font-size: 11px; line-height: 1.7; padding: 12px 14px; margin: 10px 0 0; border: 1px solid var(--or-line); border-radius: 8px; background: rgba(var(--or-ink-rgb), .035); color: var(--or-ink2); }

/* records / statements: feed rows */
.journey .record { position: relative; display: grid; gap: 4px; padding: 13px 2px 13px 16px; border-bottom: 1px dashed var(--or-line); animation: or-slideIn .55s var(--or-ease) backwards; }
.journey .record:last-child { border-bottom: 0; }
.journey .record::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: rgba(var(--or-miku-rgb), .55); transform: scaleY(.5); transition: transform .35s var(--or-ease); }
.journey .record:hover::before { transform: scaleY(1); }
.journey .record .row { justify-content: space-between; align-items: flex-start; gap: 8px; }
.journey .record strong { font-size: 13.5px; }
.journey .record strong.positive { color: var(--or-ok); }
.journey .record strong.negative { color: var(--or-bad); }

/* leaderboard rows rendered by journey-pages.js */
.rank-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border-bottom: 1px dashed var(--or-line); animation: or-slideIn .55s var(--or-ease) backwards; animation-delay: var(--d, 0ms); transition: background .2s; }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(var(--or-miku-rgb), .07); }
.rank-row .rank { font-family: var(--or-display); font-size: 14px; font-weight: 700; color: var(--or-ink2); font-variant-numeric: tabular-nums; }
.rank-row .nickname { overflow-wrap: anywhere; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.rank-row .nickname .av { width: 30px; height: 30px; font-size: 13px; }
.rank-row.mine, .rank-row.me { background: linear-gradient(90deg, rgba(var(--or-miku-rgb), .18), rgba(var(--or-miku-rgb), .04)); }
.rank-row.mine::before, .rank-row.me::before { content: ''; }
.rank-row .score { text-align: right; font-family: var(--or-display); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-row .score.positive { color: var(--or-ok); }
.rank-row .score.negative { color: var(--or-bad); }
.rank-row .score small { font-family: var(--or-mono); font-size: 10px; color: var(--or-mute); letter-spacing: .1em; }

/* trade page: choice tiles, amount box, presets */
.directions { display: flex; gap: 10px; margin-bottom: 16px; }
.direction { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; height: auto; background: rgba(var(--or-ink-rgb), .03); border: 1px solid var(--or-line); clip-path: none; color: var(--or-ink2); text-align: left; letter-spacing: .06em; }
.direction b { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.direction span { font-size: 11px; color: var(--or-mute); font-weight: 500; }
.direction:hover { background: rgba(var(--or-miku-rgb), .14); color: var(--or-teal); transform: translateY(-2px); }
.direction.selected { background: var(--or-solid); border-color: var(--or-solid); color: var(--or-on); }
.direction.selected span { color: var(--or-onac); }
.amount { display: flex; align-items: center; border: 1px solid var(--or-line); border-radius: 6px; background: rgba(255, 255, 255, .8); padding: 0 14px; }
html.dark .amount { background: rgba(29, 28, 36, .72); }
.amount input { width: 100%; border: 0; box-shadow: none !important; padding: 8px 0; font-size: 20px; font-weight: 700; font-family: var(--or-display); font-variant-numeric: tabular-nums; background: transparent; }
.amount input:focus { box-shadow: none !important; }
.amount span { flex-shrink: 0; color: var(--or-mute); font-family: var(--or-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.presets { display: flex; gap: 6px; margin: 8px 0 12px; }
.presets button { height: 26px; padding: 0 12px; font-size: 10px; border-radius: 999px; clip-path: none; background: rgba(var(--or-ink-rgb), .04); }
.check { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 8px; }
legend, .field-label { display: block; font-family: var(--or-mono); font-weight: 600; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; color: var(--or-faint); }
.confirm-box, .journey .confirm-box { margin-top: 14px; padding: 16px 18px; border: 1px dashed rgba(var(--or-miku-rgb), .9); border-radius: 8px; background: rgba(var(--or-miku-rgb), .1); }

/* admin: tabs strip + fields */
.ops-nav { position: sticky; top: 72px; z-index: 30; display: flex; gap: 4px; align-items: center; padding: 5px; margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--or-line); border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 18px 40px -30px rgba(var(--or-ink-rgb), .45); }
.ops-nav::-webkit-scrollbar { display: none; }
html.dark .ops-nav { background: rgba(43, 41, 52, .9); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .85); }
.ops-nav button { height: 30px; padding: 0 14px; border-radius: 999px; clip-path: none; background: transparent; color: var(--or-mute); font-size: 11px; }
.ops-nav button small { font-size: 9px; opacity: .6; margin-right: 7px; font-weight: 500; }
.ops-nav button:hover { background: rgba(var(--or-miku-rgb), .14); color: var(--or-teal); }
.ops-nav button.is-active { background: var(--or-solid); color: var(--or-on); font-weight: 700; }
.ops-nav button.is-active small { opacity: .8; }
.stat-explainer { font-size: 12.5px; line-height: 1.7; padding: 14px 16px; background: rgba(var(--or-lav-rgb), .14); border: 1px dashed var(--or-lav); border-radius: 6px; margin: 18px 0; color: var(--or-ink2); }
.field { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.field > label { flex: 0 0 190px; color: var(--or-ink2); font-size: 13px; }
.field input, .field select { min-width: 0; }
.ops-state { display: flex; gap: 10px; align-items: center; font-size: 12px; margin: 0 0 20px; }

/* gate steps */
.gate-step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--or-line); }
.gate-step:last-child { border-bottom: 0; }
.gate-step b { color: var(--or-teal); font-family: var(--or-display); font-size: 15px; }
.gate-step p { margin: 4px 0 0; }

/* footer */
footer, .journey footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 30px 0 8px; padding-top: 18px; border-top: 1px dashed var(--or-line2); font-family: var(--or-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--or-faint); }
footer a { color: var(--or-mute); transition: color .2s; }
footer a:hover { color: var(--or-teal); }
footer details { margin-left: auto; text-transform: none; letter-spacing: .06em; }
footer details p { text-transform: none; letter-spacing: 0; font-size: 11.5px; line-height: 1.7; }

/* legacy topbar / intro / page-heading (replaced markup keeps a safe fallback face) */
.relay-bar { display: none; }
.page-heading { display: flex; align-items: flex-end; gap: 16px; margin: 4px 0 28px; }
.page-heading .index { font-family: var(--or-display); font-size: 60px; font-weight: 800; line-height: .9; color: var(--or-ink); font-variant-numeric: tabular-nums; }
.page-heading h1 { font-size: 18px; margin: 0 0 6px; font-weight: 700; letter-spacing: .04em; }
.page-heading p { margin: 0; color: var(--or-mute); font-size: 13px; }
.eyebrow { font-family: var(--or-mono); font-size: 10px; letter-spacing: .28em; color: var(--or-teal); }
.intro .eyebrow { display: block; margin-bottom: 10px; }
.intro h1 { font-family: var(--or-display); font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: .04em; margin: 0 0 10px; line-height: 1.1; }
.intro p { margin: 0; max-width: 680px; font-size: 13px; line-height: 1.7; color: var(--or-mute); }
.intro .how { margin-top: 14px; }
.player-nav, .topbar, .brand { display: none; }

/* chart tint (chart.js draws plain SVG; colours ride the tokens) */
#price-chart { background: transparent; border: 1px solid var(--or-line); border-radius: 6px; }
#price-chart text { fill: var(--or-mute); font-family: var(--or-mono); }
#price-chart > path { stroke: var(--or-line); }
#price-chart polyline { stroke: var(--or-teal); }
#price-chart .or-line-glow { filter: drop-shadow(0 6px 8px rgba(var(--or-miku-rgb), .35)); }

/* admin grids + event editor + exchange steps (legacy markup, same language) */
.grid2, .ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.event-workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 28px; }
.event-editor .event-field { margin-bottom: 18px; }
.event-editor input, .event-editor select, .event-editor textarea { width: 100%; min-width: 0; }
.event-editor .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.event-editor label { display: block; font-size: 12px; margin-bottom: 7px; color: var(--or-mute); }
.event-preview { padding: 22px; background: rgba(var(--or-ink-rgb), .03); border: 1px dashed var(--or-line); border-radius: 8px; align-self: start; }
.event-preview h3 { font-size: 18px; margin: 12px 0; }
.event-preview p { font-size: 13px; color: var(--or-mute); }
.event-preview .preview-meta { font: 11px var(--or-mono); color: var(--or-teal); }
.event-list { margin-top: 26px; }
.event-item .row { justify-content: space-between; }
.event-item h3 { font-size: 14px; margin: 0; }
.event-item p { font-size: 12px; color: var(--or-mute); margin: 6px 0; }
.event-item { padding: 16px 0; border-top: 1px dashed var(--or-line); }
.rule-help { font-size: 12px; color: var(--or-mute); max-width: 430px; }
.technical .card, .ops-wrap .card { overflow: visible; }
.step-list { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.step-list li { padding: 5px 12px; border: 1px solid var(--or-line); border-radius: 999px; font-family: var(--or-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--or-mute); background: rgba(var(--or-ink-rgb), .03); }
.step-list .current { color: var(--or-on); background: var(--or-solid); border-color: var(--or-solid); }
.card h2.login-title { font-family: var(--or-sans); font-size: 17px; font-weight: 700; letter-spacing: .02em; color: var(--or-ink); text-transform: none; }
.card h2.login-title::before { display: none; }
.journey .login { margin-bottom: 20px; }
.or-land.gate .or-center { grid-auto-flow: column; gap: clamp(20px, 4vw, 72px); align-items: center; padding: 0 clamp(16px, 3vw, 48px); }
.or-land.gate .or-center > * { grid-area: auto; }
.or-land.gate .or-home h1 { font-size: clamp(38px, 6.2vw, 88px); }
.or-land.gate .or-access { visibility: visible; }
@media (max-width: 900px) { .or-land.gate .or-center { grid-auto-flow: row; gap: 26px; } }
.or-acard .or-go { margin-top: 18px; justify-content: flex-start; }

/* responsive */
@media (max-width: 820px) {
  .grid2, .ops-grid, .event-workspace { grid-template-columns: 1fr; }
  .wrap, .or-main { padding: 84px 16px 140px; }
  .or-bar { padding: 0 16px; gap: 14px; }
  .or-crumb, .or-clock { display: none; }
  .or-ping span { display: none; }
  .or-head .big, .page-heading .index { font-size: 44px; }
  .or-head p { padding-right: 0; }
  .journey .metrics { gap: 8px; }
  .or-guide { grid-template-columns: minmax(0, 1fr); }
  .or-lb-podium { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'p1' 'p2' 'p3'; gap: 30px; margin-top: 34px; }
  .or-lb-step, .or-lb-step.p1 { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who hero' 'sub hero' 'bar bar'; align-items: center; gap: 8px 14px; padding: 30px 16px 14px; text-align: left; }
  .or-lb-step .medal, .or-lb-step.p1 .medal { left: 16px; margin-left: 0; top: -22px; width: 40px; height: 44px; font-size: 17px; }
  .or-lb-step .or-lb-who { grid-area: who; flex-wrap: nowrap; justify-content: flex-start; }
  .or-lb-step .or-lb-who .av { width: 38px; height: 38px; margin-inline: 0; font-size: 15px; }
  .or-lb-step .hero, .or-lb-step.p1 .hero { grid-area: hero; width: 78px; height: 78px; }
  .or-lb-step .hero .v, .or-lb-step.p1 .hero .v { font-size: 16px; }
  .or-lb-step .sub { grid-area: sub; }
  .or-lb-step .or-lb-bar { grid-area: bar; }
  .or-dock { --di: 40px; --sep: 7px; }
  .rank-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 12px; }
  .ops-nav { top: 64px; }
  .field > label { flex: 0 0 100%; }
  .kv { grid-template-columns: 110px 1fr; font-size: 12px; }
  .or-tele { gap: 10px 22px; bottom: 46px; letter-spacing: .16em; }
  .or-lfoot { font-size: 9px; letter-spacing: .1em; padding: 0 12px; }
  .or-ltop { padding: 0 16px; height: 60px; }
}
@media (max-width: 440px) {
  .or-dock { --di: 36px; --sep: 5px; }
  .or-di.on span { width: 0; opacity: 0; margin-left: 0; }
  .or-lb-pin .dim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
