/* nekohost.lol - OLED black, neon neko. ネコホスト */

:root {
  --bg: #000000;
  --surface: #0a0910;
  --surface-2: #110f19;
  --surface-3: #171423;
  --ink: #f8f3ff;
  --ink-2: #cbc2de;
  --muted: #8b83a2;
  --border: #1d1a29;
  --border-strong: #2e2a40;
  --pink: #ff4fa3;
  --pink-soft: #ff8cc6;
  --pink-100: #2a0f1f;
  --pink-50: #160a12;
  --lilac: #a77bff;
  --lilac-100: #1b1430;
  --lilac-200: #2d2350;
  --cyan: #5ee7ff;
  --cyan-100: #0c2028;
  --mint: #2fd39b;
  --mint-100: #0d241c;
  --gold: #ffd166;
  /* status palette (reserved for state - always paired with an icon + label) */
  --good: #0ca30c;
  --good-bg: #0b1f0d;
  --warn: #fab219;
  --warn-bg: #241a05;
  --serious: #ec835a;
  --serious-bg: #26140c;
  --critical: #d03b3b;
  --critical-bg: #260c0e;
  --neutral: #7d7690;
  --neutral-bg: #15131c;
  --glow: 0 0 0 1px rgba(255, 79, 163, 0.35), 0 10px 40px -10px rgba(255, 79, 163, 0.45);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow: 0 20px 60px -30px rgba(167, 123, 255, 0.35);
  --radius: 20px;
  --radius-sm: 13px;
  --grad: linear-gradient(120deg, #ff4fa3 0%, #a77bff 55%, #5ee7ff 100%);
  --font-display: 'M PLUS Rounded 1c', 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #000; scrollbar-color: #2e2a40 #000; }
* { scrollbar-color: #2e2a40 transparent; scrollbar-width: thin; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--pink-soft); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--surface-3); padding: .12em .45em; border-radius: 6px; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
::selection { background: rgba(255, 79, 163, .35); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.inline { display: inline; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jp { font-family: var(--font-display); letter-spacing: .08em; }

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; transition: transform .25s; filter: drop-shadow(0 0 10px rgba(255, 79, 163, .35)); }
.brand:hover img { transform: rotate(-8deg) scale(1.07); }
.brand b { color: var(--pink); }
.brand em { font-style: normal; color: var(--lilac); }
.brand .jp { display: block; font-size: .58rem; color: var(--muted); font-weight: 700; margin-top: -.25rem; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 800; font-size: .93rem; padding: .3rem .05rem; border-bottom: 2px solid transparent; }
.nav-links > a:not(.btn):hover, .nav-links > a.active { color: var(--ink); border-bottom-color: var(--pink); }
.nav-links .nav-admin { color: var(--lilac) !important; }
.balance-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--ink) !important; font-weight: 800; font-size: .88rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.balance-pill:hover { border-color: var(--pink); }
.balance-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; padding: .45rem .8rem; border-radius: 12px; border: 1px solid var(--border-strong); font-weight: 800; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] .nav-links { display: flex; }
@media (max-width: 900px) {
  .nav-inner > .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-menu .nav-links { position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .75rem; min-width: 220px; box-shadow: var(--shadow); gap: .35rem; }
}

/* -------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--ink); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 800; font-size: .98rem; line-height: 1;
  padding: .78rem 1.2rem; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); border-color: var(--pink); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .pick input:focus-visible + .pick-body { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-primary { --btn-bg: linear-gradient(120deg, #ff4fa3, #a77bff); --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 8px 30px -10px rgba(255, 79, 163, .8); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(255, 79, 163, 1); border-color: transparent; }
.btn-ghost { --btn-bg: transparent; }
.btn-soft { --btn-bg: var(--lilac-100); --btn-bd: var(--lilac-200); }
.btn-good { --btn-bg: #0d2a1c; --btn-bd: #1e5a3d; --btn-fg: #6ff0b8; }
.btn-danger { --btn-bg: transparent; --btn-fg: #ff7b7b; --btn-bd: #4a1a1f; }
.btn-danger:hover { --btn-bg: var(--critical-bg); border-color: var(--critical); }
.btn-danger-solid { --btn-bg: #b3262e; --btn-fg: #fff; --btn-bd: transparent; }
.btn-sm { font-size: .85rem; padding: .5rem .85rem; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.6rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--pink-soft); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.card-lg { padding: 2rem; }
.card h2, .card h3 { margin-top: 0; }
.card h2 { font-size: 1.3rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-title h2, .card-title h3 { margin: 0; }
.card.danger { border-color: #3a1519; }
.card.glow { box-shadow: var(--glow); border-color: transparent; }
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-soft); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.page-head { padding: 2.4rem 0 1.4rem; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3rem; }

/* ---------------------------------------------------------------- forms */
.field { display: block; margin-bottom: 1rem; }
.field > span:first-child, .label { display: block; font-weight: 800; font-size: .86rem; margin-bottom: .4rem; color: var(--ink-2); }
.help { display: block; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #07060b;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .7rem .9rem;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: #5f5876; }
input:hover, select:hover, textarea:hover { border-color: #463f60; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(255, 79, 163, .2); }
input:disabled { opacity: .6; }
textarea { min-height: 96px; resize: vertical; }
textarea.mono, input.mono { font-family: var(--font-mono); font-size: .84rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; margin-bottom: .6rem; cursor: pointer; color: var(--ink-2); }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--pink); flex: 0 0 auto; }
.input-group { display: flex; gap: .5rem; }
.input-group > input, .input-group > select { flex: 1; min-width: 0; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.9rem; min-width: 0; }
legend { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin-bottom: .8rem; padding: 0; display: flex; align-items: center; gap: .6rem; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #000; font-size: .85rem; font-weight: 800; }

.picks { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.picks-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-body { display: block; height: 100%; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: var(--radius-sm); padding: .95rem 1rem; transition: border-color .12s, box-shadow .12s, transform .12s; }
.pick:hover .pick-body { border-color: #4a4266; transform: translateY(-1px); }
.pick input:checked + .pick-body { border-color: var(--pink); box-shadow: var(--glow); background: var(--pink-50); }
.pick input:checked + .pick-body::after { content: '✓'; position: absolute; top: .55rem; right: .7rem; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #000; font-size: .78rem; font-weight: 900; display: grid; place-items: center; }
.pick input:disabled + .pick-body { opacity: .35; cursor: not-allowed; }
.pick-title { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; display: block; }
.pick-sub { color: var(--muted); font-size: .83rem; display: block; }
.pick-price { font-weight: 800; color: var(--pink-soft); display: block; margin-top: .35rem; }
.pick .os { margin-bottom: .45rem; }

/* --------------------------------------------------------------- alerts */
.alert { border-radius: var(--radius-sm); padding: .85rem 1.1rem; margin: 1rem 0; font-weight: 600; border: 1px solid; display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.alert::before { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: #000; margin-top: 1px; }
.alert-success { background: var(--good-bg); border-color: #164d18; }
.alert-success::before { content: '\2713'; background: #3ad13a; }
.alert-error { background: var(--critical-bg); border-color: #5a1b20; }
.alert-error::before { content: '!'; background: #ff6b6b; }
.alert-info { background: var(--lilac-100); border-color: var(--lilac-200); }
.alert-info::before { content: 'i'; background: var(--lilac); font-family: Georgia, serif; font-style: italic; }
.alert-warn { background: var(--warn-bg); border-color: #5c4108; }
.alert-warn::before { content: '!'; background: var(--warn); }
.announce { background: linear-gradient(90deg, #2a0f1f, #1b1430, #0c2028); text-align: center; padding: .55rem 16px; font-weight: 800; font-size: .9rem; border-bottom: 1px solid var(--border); }

/* ---------------------------------------------- state badges (icon + label) */
.state { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .7rem .28rem .55rem; border-radius: 999px; font-weight: 800; font-size: .8rem; color: var(--ink); background: var(--neutral-bg); border: 1px solid var(--border-strong); white-space: nowrap; }
.state-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral); flex: 0 0 auto; }
.state-good { background: var(--good-bg); border-color: #164d18; }
.state-good .state-icon { background: #22d322; box-shadow: 0 0 10px #22d322; }
.state-neutral .state-icon { border-radius: 2px; }
.state-warn { background: var(--warn-bg); border-color: #5c4108; }
.state-warn .state-icon { background: transparent; border: 2px solid var(--warn); border-top-color: transparent; animation: spin .9s linear infinite; }
.state-critical { background: var(--critical-bg); border-color: #5a1b20; }
.state-critical .state-icon { background: #ff5252; border-radius: 2px; transform: rotate(45deg); }
.state-serious { background: var(--serious-bg); border-color: #5a2c17; }
.state-serious .state-icon { background: var(--serious); border-radius: 2px; width: 9px; height: 9px; }
.state-unknown .state-icon { background: transparent; border: 2px dashed var(--neutral); }
.state-lg { font-size: .92rem; padding: .42rem .95rem .42rem .75rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .state-warn .state-icon { animation: none; border-top-color: var(--warn); } }

.tag { display: inline-block; font-size: .74rem; font-weight: 800; padding: .14rem .5rem; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); vertical-align: middle; border: 1px solid var(--border-strong); }
.tag-pink { background: var(--pink-100); border-color: #4a1836; color: var(--ink); }
.tag-lilac { background: var(--lilac-100); border-color: var(--lilac-200); color: var(--ink); }
.tag-cyan { background: var(--cyan-100); border-color: #164452; color: var(--ink); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-right: .35rem; }
.dot-good { background: #22d322; }
.dot-critical { background: #ff5252; border-radius: 2px; transform: rotate(45deg); }
.dot-neutral { background: var(--neutral); border-radius: 2px; }

/* rarity: colour is identity only - the label is always written out */
.rar { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .78rem; padding: .18rem .6rem; border-radius: 999px; border: 1px solid var(--rc); color: var(--ink); background: color-mix(in srgb, var(--rc) 16%, #000); white-space: nowrap; }
.rar::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--rc); transform: rotate(45deg); }

.os { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .8rem; flex: 0 0 auto; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.os-sm { width: 26px; height: 26px; border-radius: 8px; font-size: .68rem; }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .72rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #0e0c15; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { font-weight: 800; }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: .55rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; font-size: .86rem; }
.kv dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.amount-pos { color: #6ff0b8; }
.amount-neg { color: var(--ink-2); }

/* ------------------------------------------------ stat tiles + meters */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.tile-label { font-size: .84rem; color: var(--muted); font-weight: 700; }
.tile-value { font-family: var(--font-body); font-weight: 800; font-size: 2rem; line-height: 1.15; margin-top: .2rem; }
.tile-sub { font-size: .8rem; color: var(--ink-2); margin-top: .15rem; }
.meter { --tone: var(--lilac); --track: var(--lilac-100); height: 9px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--tone); transition: width .5s ease; }
.meter.tone-warn { --tone: var(--warn); --track: var(--warn-bg); }
.meter.tone-critical { --tone: var(--critical); --track: var(--critical-bg); }
.meter-row { display: grid; grid-template-columns: 74px 1fr minmax(90px, max-content); gap: .75rem; align-items: center; font-size: .86rem; margin: .55rem 0; }
.meter-row .meter-label { font-weight: 800; color: var(--ink-2); }
.meter-row .meter-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 700; }

/* --------------------------------------------------------------- landing */
.hero { padding: 3rem 0 1rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(255, 79, 163, .14), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; position: relative; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-art img { width: 100%; height: auto; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img, .box-art img { animation: none !important; } }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.hero-points li { font-weight: 800; font-size: .86rem; color: var(--ink-2); padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { width: 100%; max-width: 480px; margin: 0 auto; } }

.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: border-color .2s; }
.feature:hover { border-color: var(--border-strong); }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--pink-100); color: var(--pink); margin-bottom: .9rem; border: 1px solid #4a1836; }
.feature:nth-child(3n+2) .feature-icon { background: var(--lilac-100); color: var(--lilac); border-color: var(--lilac-200); }
.feature:nth-child(3n) .feature-icon { background: var(--cyan-100); color: var(--cyan); border-color: #164452; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .94rem; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: .55rem; background: var(--surface); border: 1px solid var(--border-strong); padding: .38rem .9rem .38rem .42rem; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .6rem; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--pink); font-size: 1.4rem; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 2.4rem 2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; background: #07060b; border: 1px solid var(--border-strong); box-shadow: var(--glow); }
.cta-band h2 { margin: 0; }
.cta-band p { margin: .3rem 0 0; color: var(--ink-2); }
.cta-band img { width: 110px; height: auto; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2rem 0 2.5rem; color: var(--muted); font-size: .88rem; }
.footer .row-between a { color: var(--ink-2); text-decoration: none; font-weight: 800; }
.footer .row-between a:hover { color: var(--pink); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ shop */
.shop-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 440px)); justify-content: center; }
.box-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 1.5rem; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; color: inherit; text-decoration: none; }
.box-card:hover { border-color: transparent; box-shadow: var(--glow); transform: translateY(-3px); color: inherit; }
.box-card.soldout { opacity: .55; }
.box-art { display: grid; place-items: center; margin: -.3rem 0 .4rem; }
.box-art img { width: 210px; height: auto; animation: bob 5s ease-in-out infinite; }
.box-card h3 { font-size: 1.45rem; margin-bottom: .1rem; }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; }
.price-big small { font-size: .95rem; color: var(--muted); font-weight: 700; }
.odds { margin: 1rem 0; }
.odds-bar { display: flex; gap: 2px; height: 14px; border-radius: 6px; overflow: hidden; background: #000; }
.odds-bar span { display: block; height: 100%; background: var(--rc); min-width: 3px; border-radius: 3px; }
.odds-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .55rem; font-size: .8rem; color: var(--ink-2); }
.odds-legend span { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.odds-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--rc); transform: rotate(45deg); }
.stock-line { font-weight: 800; font-size: .86rem; color: var(--ink-2); }
.box-hero { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: center; padding: 2rem 0 1rem; }
.box-hero img { width: 100%; filter: drop-shadow(0 0 40px rgba(255, 79, 163, .35)); }
@media (max-width: 760px) { .box-hero { grid-template-columns: 1fr; } .box-hero img { max-width: 240px; margin: 0 auto; display: block; } }
.disclaimer { border: 1px dashed #5c4108; background: var(--warn-bg); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .88rem; color: var(--ink-2); }
.disclaimer strong { color: var(--ink); }

/* reveal (order page) */
.reveal { text-align: center; padding: 2rem 0 1rem; }
.reveal-stage { position: relative; height: 260px; display: grid; place-items: center; }
.reveal-box { width: 240px; transition: transform .3s; }
.reveal.playing .reveal-box { animation: shake .55s ease-in-out 3, pop .45s ease-in 1.65s forwards; }
.reveal-card { opacity: 0; transform: scale(.85) translateY(10px); transition: opacity .6s, transform .6s cubic-bezier(.2, 1.4, .4, 1); }
.reveal.done .reveal-card { opacity: 1; transform: none; }
.reveal.done .reveal-stage { display: none; }
.reveal-card .rar { font-size: 1rem; padding: .35rem .95rem; }
.reveal-card .specs-big { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 1.2rem 0; }
.reveal-card .specs-big span { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 14px; padding: .7rem 1rem; font-weight: 800; }
.reveal-card .specs-big b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.reveal-card .item-name { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: .6rem 0 .2rem; }
.burst { position: absolute; inset: 0; pointer-events: none; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.03); } 75% { transform: rotate(7deg) scale(1.03); } }
@keyframes pop { to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .reveal.playing .reveal-box { animation: none; } }

/* ------------------------------------------------------------ auth pages */
.auth-wrap { display: grid; place-items: center; padding: 3rem 16px; }
.auth-card { width: 100%; max-width: 440px; position: relative; }
.auth-card .mascot { width: 120px; display: block; margin: -4.6rem auto .4rem; filter: drop-shadow(0 0 20px rgba(255, 79, 163, .4)); }
.auth-card h1 { font-size: 1.8rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: -.3rem; }

/* ------------------------------------------------------- dashboard + VPS */
.vps-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.vps-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.25rem; transition: transform .15s, border-color .15s, box-shadow .15s; }
.vps-card:hover { transform: translateY(-2px); border-color: transparent; box-shadow: var(--glow); color: inherit; }
.vps-card .head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.vps-card .head > div { min-width: 0; flex: 1; }
.vps-card h3 { margin: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vps-card .specs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .7rem 0 .2rem; }
.vps-card .conn { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); background: #07060b; border: 1px solid var(--border); padding: .45rem .7rem; border-radius: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vps-card .term { font-size: .8rem; color: var(--muted); margin-top: .6rem; font-weight: 700; }
.empty { text-align: center; padding: 3rem 1rem; }
.empty img { width: 220px; height: auto; margin-bottom: .5rem; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 1.2rem; }

.vps-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 2rem 0 1rem; }
.vps-head .title { display: flex; gap: .9rem; align-items: center; min-width: 0; }
.vps-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); overflow-wrap: anywhere; }
.power-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.power-bar form { display: inline; }
.copy-field { display: flex; align-items: center; gap: .5rem; background: #07060b; border: 1px solid var(--border); border-radius: 10px; padding: .45rem .5rem .45rem .8rem; font-family: var(--font-mono); font-size: .86rem; }
.copy-field code { background: none; padding: 0; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.copy-btn { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--ink-2); border-radius: 8px; padding: .3rem .6rem; font-weight: 800; font-size: .76rem; cursor: pointer; font-family: var(--font-body); }
.copy-btn:hover { color: var(--pink); border-color: var(--pink); }
.cmd { background: #07060b; border: 1px solid var(--lilac-200); border-radius: var(--radius-sm); padding: 1rem; font-family: var(--font-mono); font-size: .85rem; overflow-x: auto; white-space: nowrap; color: var(--cyan); }
.task-line { color: var(--ink-2); font-weight: 800; font-size: .9rem; }
.error-line { color: #ff8080; font-weight: 800; font-size: .9rem; }
.section-anchor { scroll-margin-top: 90px; }

/* -------------------------------------------------------------- console */
body.console-page { background: #000; }
.console-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem 16px; background: #07060b; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.console-bar .brand { font-size: 1.05rem; }
.console-bar .brand img { width: 30px; height: 30px; }
.console-bar .spacer { flex: 1; }
.console-status { font-weight: 800; font-size: .86rem; color: var(--ink-2); }
#screen { position: absolute; inset: 0; top: var(--bar-h, 56px); background: #000; }
.console-type { display: none; gap: .5rem; padding: .55rem 16px; background: #07060b; border-bottom: 1px solid var(--border); }
.console-type.open { display: flex; }

/* ---------------------------------------------------------------- admin */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; padding-top: 1.75rem; }
.admin-side { position: sticky; top: 88px; align-self: start; }
.admin-side nav { display: flex; flex-direction: column; gap: .2rem; }
.admin-side a { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 800; border: 1px solid transparent; }
.admin-side a:hover { background: var(--surface-2); color: var(--ink); }
.admin-side a.active { background: var(--pink-50); border-color: #4a1836; color: var(--ink); }
.admin-side a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-side .side-title { font-family: var(--font-display); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .5rem .8rem; }
.admin-main { min-width: 0; }
.admin-main .page-head { padding-top: 0; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; gap: 1rem; }
  .admin-side { position: static; }
  .admin-side nav { flex-direction: row; overflow-x: auto; padding-bottom: .25rem; }
  .admin-side a { white-space: nowrap; }
  .admin-side .side-title { display: none; }
}
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; min-width: 160px; flex: 1 1 160px; }
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; align-items: center; }
pre.serial { background: #07060b; color: #e9defa; padding: 1rem; border-radius: var(--radius-sm); max-height: 460px; overflow: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
details.inline-edit > summary { cursor: pointer; font-weight: 800; color: var(--pink-soft); list-style: none; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
details.inline-edit[open] > summary { margin-bottom: 1rem; }
.qr { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 6px; }
.qr svg { width: 100%; height: 100%; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose li { margin: .35rem 0; color: var(--ink-2); }
.prose p { color: var(--ink-2); }

.error-page { text-align: center; padding: 3.5rem 16px; }
.error-page .code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; }
.error-page img { width: 200px; }

@media (forced-colors: active) {
  .state-icon, .dot, .rar::before, .odds-bar span { forced-color-adjust: none; }
}
