/* =============================================================================
   ÉrettMax: Vice City neon theme (plain CSS, no build step)
   Dark only. Order: fonts, tokens, base, layout, components, site shell, landing,
   study pages, dashboard, games, protection, print.
   ========================================================================== */

/* ---- Self-hosted fonts (no request to Google: GDPR). latin-ext carries ő and ű. ---- */
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-italic-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: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-500-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: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-600-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: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-700-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-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; }

/* ---- Tokens ---- */
:root {
  color-scheme: dark;
  --obsidian: #090a0f;
  --night: #0b0b14;
  --surface: rgb(19 21 34 / 0.75);
  --surface-solid: #131522;
  --surface-2: #1a1c2e;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);

  --vice-pink: #ff007f;
  --vice-orange: #ff7a00;
  --vice-purple: #7928ca;
  --neon-cyan: #00f0ff;
  --ok: #2ee59d;
  --warn: #ffb020;
  --err: #ff4d6d;

  --fg: #f3f4f6;
  --fg-muted: #9ca3af;
  --fg-dim: #6b7280;

  --glow-pink: 0 0 20px rgb(255 0 127 / 0.25);
  --glow-pink-lg: 0 0 36px rgb(255 0 127 / 0.5);
  --glow-cyan: 0 0 18px rgb(0 240 255 / 0.3);

  --gradient-sunset: linear-gradient(135deg, #ff7a00 0%, #ff007f 50%, #7928ca 100%);
  --gradient-sunset-text: linear-gradient(165deg, #ffa63d 0%, #ff4d63 34%, #ff007f 60%, #b85cf5 100%);

  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-hud: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;
  --gutter: 1rem;
  --header-h: 3.75rem;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--obsidian); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--obsidian); color: var(--fg);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
::selection { background: rgb(255 0 127 / 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
a { color: var(--neon-cyan); text-underline-offset: 3px; }
a:hover { color: #7ff7ff; }
img, svg, canvas, video { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.3rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
button { font: inherit; color: inherit; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 0.75rem; top: -4rem; z-index: 100; background: var(--neon-cyan); color: var(--obsidian); padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 0.75rem; color: var(--obsidian); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Type helpers ---- */
.title { font-family: var(--font-display); font-style: italic; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.hud { font-family: var(--font-hud); }
.text-sunset { background-image: var(--gradient-sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.strong { font-weight: 700; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.tabular { font-variant-numeric: tabular-nums; }
.pink { color: var(--vice-pink); } .cyan { color: var(--neon-cyan); } .orange { color: var(--vice-orange); } .green { color: var(--ok); } .red { color: var(--err); }
.h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
.h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.h3 { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: 1.125rem; line-height: 1.65; color: #d4d7de; max-width: 40rem; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 46rem; }
.wrap-form { max-width: 28rem; }
.page { padding-block: 2rem 4rem; }
.page-head { margin-bottom: 1.75rem; }
.page-head .lead { margin-top: 0.75rem; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.stack-sm { --gap: 0.5rem; } .stack-md { --gap: 1rem; } .stack-lg { --gap: 2rem; } .stack-xl { --gap: 3rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 0.75rem); }
.row-between { justify-content: space-between; }
.row-end { justify-content: flex-end; }
.row-top { align-items: flex-start; }
.gap-sm { --gap: 0.4rem; } .gap-md { --gap: 0.75rem; } .gap-lg { --gap: 1.25rem; }
.grow { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: var(--gap, 1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 16rem)), 1fr)); }
.cols-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.cols-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.cols-4 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.mt-0 { margin-top: 0 !important; } .mt-sm { margin-top: 0.5rem; } .mt-md { margin-top: 1rem; } .mt-lg { margin-top: 2rem; } .mb-md { margin-bottom: 1rem; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 1.25rem;
}
.card-lg { padding: 1.6rem; }
.card-sm { padding: 0.9rem 1rem; border-radius: var(--radius); }
.card-pink { border-color: rgb(255 0 127 / 0.4); background: linear-gradient(135deg, rgb(255 0 127 / 0.08), rgb(121 40 202 / 0.08)), var(--surface); }
.card-cyan { border-color: rgb(0 240 255 / 0.35); background: linear-gradient(135deg, rgb(0 240 255 / 0.06), transparent), var(--surface); }
.card-orange { border-color: rgb(255 122 0 / 0.45); background: rgb(255 122 0 / 0.08); }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.card-link:hover { border-color: rgb(255 0 127 / 0.55); box-shadow: var(--glow-pink); transform: translateY(-2px); color: inherit; }
.card h2, .card h3 { margin-bottom: 0.5rem; }
.glass { background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.6rem 1.25rem; border-radius: 0.8rem; border: 1px solid transparent;
  font: 700 0.95rem/1.2 var(--font-hud); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  background: var(--surface-2); color: var(--fg); transition: filter 0.15s, box-shadow 0.2s, transform 0.1s, background 0.15s;
}
.btn:hover { color: var(--fg); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--gradient-sunset); color: #fff; box-shadow: var(--glow-pink); }
.btn-primary:hover { color: #fff; box-shadow: var(--glow-pink-lg); }
.btn-cyan { background: var(--neon-cyan); color: var(--obsidian); box-shadow: var(--glow-cyan); }
.btn-cyan:hover { color: var(--obsidian); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); }
.btn-danger { background: rgb(255 77 109 / 0.15); border-color: rgb(255 77 109 / 0.55); color: #ff9db0; }
.btn-ok { background: rgb(46 229 157 / 0.15); border-color: rgb(46 229 157 / 0.55); color: #8ff3c8; }
.btn-sm { min-height: 2.15rem; padding: 0.35rem 0.8rem; font-size: 0.84rem; border-radius: 0.65rem; }
.btn-lg { min-height: 3.25rem; padding: 0.8rem 1.7rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--neon-cyan); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn .spinner { width: 1em; height: 1em; }
.spinner { display: inline-block; border: 2px solid rgb(255 255 255 / 0.25); border-top-color: currentColor; border-radius: 50%; width: 1.1rem; height: 1.1rem; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Badges and chips ---- */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-strong); font: 600 0.75rem/1.5 var(--font-hud); letter-spacing: 0.04em; color: var(--fg-muted); white-space: nowrap; }
.badge-pink { color: #ff7fbd; border-color: rgb(255 0 127 / 0.55); background: rgb(255 0 127 / 0.1); }
.badge-cyan { color: var(--neon-cyan); border-color: rgb(0 240 255 / 0.5); background: rgb(0 240 255 / 0.08); }
.badge-orange { color: #ffae5c; border-color: rgb(255 122 0 / 0.55); background: rgb(255 122 0 / 0.1); }
.badge-ok { color: var(--ok); border-color: rgb(46 229 157 / 0.5); background: rgb(46 229 157 / 0.08); }
.badge-err { color: #ff9db0; border-color: rgb(255 77 109 / 0.55); background: rgb(255 77 109 / 0.1); }
.badge-gold { color: #ffe36e; border-color: rgb(255 227 110 / 0.6); background: rgb(255 227 110 / 0.1); }
/* The GTA-style "waiting for approval" strip */
.badge-wait { gap: 0.55rem; padding: 0.35rem 0.9rem; color: #ffd27a; border-color: rgb(255 176 32 / 0.65); background: repeating-linear-gradient(135deg, rgb(255 176 32 / 0.12) 0 10px, rgb(255 176 32 / 0.04) 10px 20px); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-wait::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---- Forms ---- */
.field { display: block; }
.field + .field { margin-top: 1rem; }
.field > label, .label { display: block; margin-bottom: 0.4rem; font: 600 0.9rem/1.3 var(--font-hud); color: #d9dce3; }
.input, 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%; min-height: 2.9rem; padding: 0.65rem 0.9rem; border-radius: 0.75rem;
  border: 1px solid var(--line-strong); background: rgb(9 10 15 / 0.7); color: var(--fg);
  font: inherit; font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgb(0 240 255 / 0.18); }
input::placeholder, textarea::placeholder { color: var(--fg-dim); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%); background-position: calc(100% - 1.2rem) 1.15rem, calc(100% - 0.85rem) 1.15rem; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; padding-right: 2.2rem; }
select option { background: #131522; color: var(--fg); }
input[type="file"] { width: 100%; color: var(--fg-muted); }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--vice-pink); flex: none; }
.check { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.check input { margin-top: 0.2rem; }
.hint { margin-top: 0.35rem; font-size: 0.82rem; color: var(--fg-muted); }
.field-error { margin-top: 0.35rem; font-size: 0.85rem; color: #ff9db0; }
.input-sm { min-height: 2.25rem; padding: 0.35rem 0.65rem; font-size: 0.9rem; }
.input-row { display: flex; gap: 0.5rem; }
.input-row > input { flex: 1; min-width: 0; }

/* ---- Alerts ---- */
.alert { padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgb(255 255 255 / 0.04); line-height: 1.55; }
.alert strong { font-weight: 700; }
.alert-info { border-color: rgb(0 240 255 / 0.4); background: rgb(0 240 255 / 0.06); }
.alert-ok { border-color: rgb(46 229 157 / 0.45); background: rgb(46 229 157 / 0.07); }
.alert-warn { border-color: rgb(255 176 32 / 0.5); background: rgb(255 176 32 / 0.08); }
.alert-err { border-color: rgb(255 77 109 / 0.55); background: rgb(255 77 109 / 0.08); }

/* ---- Progress ---- */
.bar { height: 0.6rem; border-radius: 999px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--p, 0%); background: var(--gradient-sunset); border-radius: inherit; transition: width 0.6s cubic-bezier(0.16, 0.84, 0.24, 1); box-shadow: 0 0 14px rgb(255 0 127 / 0.5); }
.bar-cyan > i { background: linear-gradient(90deg, #00b3c4, var(--neon-cyan)); box-shadow: 0 0 14px rgb(0 240 255 / 0.45); }
.bar-thick { height: 0.9rem; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 600 0.78rem/1.3 var(--font-hud); text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-muted); background: rgb(255 255 255 / 0.03); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgb(255 255 255 / 0.025); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; -webkit-overflow-scrolling: touch; }
.tab { flex: none; padding: 0.7rem 1rem; font: 600 0.92rem/1.2 var(--font-hud); color: var(--fg-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"], .tab.is-active { color: var(--fg); border-bottom-color: var(--vice-pink); }

/* ---- Dialog (modal) ---- */
dialog.modal { padding: 0; border: 0; background: transparent; color: var(--fg); width: min(92vw, 34rem); max-height: 90vh; overflow: visible; }
dialog.modal::backdrop { background: rgb(9 10 15 / 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { position: relative; background: var(--night); border: 1px solid rgb(0 240 255 / 0.35); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 0 60px -10px rgb(0 240 255 / 0.45); max-height: 88vh; overflow: auto; }
.modal-card.pink { border-color: rgb(255 0 127 / 0.45); box-shadow: 0 0 60px -10px rgb(255 0 127 / 0.45); }
.modal-close { position: absolute; right: 0.7rem; top: 0.7rem; width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; border: 0; background: transparent; color: var(--fg-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgb(255 255 255 / 0.1); color: var(--fg); }

/* ---- Toasts (non-blocking messages) ---- */
.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: flex; flex-direction: column; gap: 0.6rem; width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: var(--radius); background: #12141f; border: 1px solid var(--line-strong); box-shadow: 0 10px 40px rgb(0 0 0 / 0.55); animation: toast-in 0.28s cubic-bezier(0.16, 0.84, 0.24, 1) both; font-size: 0.93rem; line-height: 1.5; }
.toast::before { content: ""; width: 0.55rem; height: 0.55rem; margin-top: 0.4rem; border-radius: 50%; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); flex: none; }
.toast-ok { border-color: rgb(46 229 157 / 0.5); } .toast-ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast-err { border-color: rgb(255 77 109 / 0.6); } .toast-err::before { background: var(--err); box-shadow: 0 0 10px var(--err); }
.toast-xp { border-color: rgb(255 0 127 / 0.6); } .toast-xp::before { background: var(--vice-pink); box-shadow: 0 0 10px var(--vice-pink); }
.toast.is-leaving { animation: toast-out 0.25s ease-in both; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }

/* ---- Stars (wanted level) ---- */
.stars { display: inline-flex; gap: 0.15rem; font-size: 1.15rem; line-height: 1; }
.stars .on { color: #ffd23f; text-shadow: 0 0 10px rgb(255 210 63 / 0.7); }
.stars .off { color: rgb(255 255 255 / 0.18); }

/* ---- Site header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(9 10 15 / 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand-name { font: italic 900 1.3rem/1 var(--font-display); letter-spacing: -0.02em; }
.logo-mark { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; align-items: center; gap: 0.15rem; flex: 1; min-width: 0; }
.nav a { padding: 0.45rem 0.75rem; border-radius: 0.6rem; color: var(--fg-muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: rgb(255 255 255 / 0.06); color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: rgb(255 0 127 / 0.14); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-xp { display: none; align-items: center; gap: 0.6rem; padding: 0.3rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 0.82rem/1 var(--font-hud); text-decoration: none; color: var(--fg); }
.header-xp:hover { color: var(--fg); border-color: rgb(255 0 127 / 0.6); }
.header-xp b { color: var(--vice-pink); }
.nav-toggle { display: none; width: 2.6rem; height: 2.6rem; border-radius: 0.7rem; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; margin-left: auto; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 0.7rem; right: 0.7rem; height: 2px; background: var(--fg); border-radius: 2px; content: ""; }
.nav-toggle span { top: 1.2rem; }
.nav-toggle span::before { left: 0; right: 0; top: -6px; }
.nav-toggle span::after { left: 0; right: 0; top: 6px; }
@media (min-width: 1180px) { .header-xp { display: inline-flex; } }
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav, .header-actions { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding-bottom: 0.9rem; gap: 0.25rem; }
  .nav a { padding: 0.7rem 0.8rem; }
  .site-header.is-open .nav, .site-header.is-open .header-actions { display: flex; }
  .site-header.is-open .header-actions { flex-direction: row; flex-wrap: wrap; }
}

.verify-banner { border-bottom: 1px solid rgb(255 122 0 / 0.4); background: rgb(255 122 0 / 0.1); }
.verify-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding-block: 0.7rem; font-size: 0.92rem; }

/* ---- Site footer ---- */
.site-footer { position: relative; margin-top: 3rem; border-top: 1px solid var(--line); background: rgb(11 11 20 / 0.7); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--vice-pink), transparent); opacity: 0.7; }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.5rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid h2 { font: 600 0.9rem/1.3 var(--font-hud); margin-bottom: 0.75rem; color: var(--fg); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.footer-grid a { color: var(--fg-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.1rem 1.6rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--fg-muted); }
.dev-credit { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.dev-credit b { font-family: var(--font-hud); color: var(--neon-cyan); text-shadow: 0 0 14px rgb(0 240 255 / 0.35); transition: text-shadow 0.2s; }
.dev-credit:hover b { text-shadow: 0 0 18px rgb(0 240 255 / 0.85); }

/* ---- Support widget ---- */
.support { position: relative; overflow: hidden; border: 1px solid rgb(255 0 127 / 0.3); border-radius: var(--radius-lg); padding: 1rem 1.2rem; background: linear-gradient(135deg, rgb(255 0 127 / 0.07), transparent 55%, rgb(121 40 202 / 0.08)); }
.support-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.support-title svg { color: var(--vice-pink); flex: none; }
.support-amounts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.support-amounts a { display: inline-flex; padding: 0.35rem 0.8rem; border: 1px solid rgb(255 0 127 / 0.4); border-radius: 0.6rem; background: rgb(255 0 127 / 0.1); color: var(--fg); font: 600 0.9rem/1.3 var(--font-hud); text-decoration: none; font-variant-numeric: tabular-nums; }
.support-amounts a:hover { background: rgb(255 0 127 / 0.22); color: var(--fg); }
.support-close { position: absolute; right: 0.5rem; top: 0.5rem; }

/* ---- Prose (rendered Markdown) ---- */
.prose { line-height: 1.8; color: #e6e8ee; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font: italic 900 1.55rem/1.15 var(--font-display); margin-top: 2.2rem; color: #fff; scroll-margin-top: 5rem; }
.prose h3 { font: 700 1.2rem/1.3 var(--font-hud); margin-top: 1.6rem; color: #fff; scroll-margin-top: 5rem; }
.prose h4 { font: 700 1.05rem/1.3 var(--font-hud); margin-top: 1.2rem; }
.prose strong { color: #fff; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4rem; } .prose li + li { margin-top: 0.35rem; }
.prose ul li::marker { color: var(--vice-pink); } .prose ol li::marker { color: var(--vice-orange); font-weight: 700; }
.prose blockquote { margin-left: 0; padding: 0.6rem 1rem; border: 1px solid rgb(255 0 127 / 0.35); background: rgb(255 0 127 / 0.06); border-radius: var(--radius-sm); color: #d7d9e0; }
.prose blockquote::before { content: "„"; color: var(--vice-pink); font: italic 900 1.6rem/1 var(--font-display); margin-right: 0.35rem; }
.prose code { padding: 0.1em 0.4em; border-radius: 0.35rem; background: rgb(255 255 255 / 0.08); }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: var(--radius); background: #0b0c14; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose .table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.prose th, .prose td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: rgb(255 255 255 / 0.05); font: 600 0.82rem/1.3 var(--font-hud); }
.prose hr { margin-block: 2rem; }
.prose a { color: var(--neon-cyan); }
.prose-narrow { max-width: 44rem; }

/* ---- Small helpers ---- */
.plain-list { list-style: none; padding: 0; }
.plain-list > li + li { margin-top: 0.85rem; }
.inline-form { display: inline; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.missing-data { background: rgb(255 176 32 / 0.18); color: #ffd27a; border-radius: 0.3rem; padding: 0 0.35rem; }
.section { padding-block: 4rem; }
.section-alt { background: linear-gradient(180deg, transparent, rgb(255 255 255 / 0.025), transparent); border-block: 1px solid var(--line); }
.crumbs { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--fg-muted); text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.facts { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 0.5rem 1rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--fg-muted); font-size: 0.9rem; } .facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; } }
.toc-list { padding-left: 1.2rem; font-size: 0.9rem; } .toc-list li + li { margin-top: 0.3rem; }
.toc-list a { color: var(--fg-muted); text-decoration: none; } .toc-list a:hover { color: var(--fg); }
.locked-list { padding-left: 1.2rem; color: var(--fg-muted); } .locked-list li::marker { content: "🔒  "; }

/* ---- Landing ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 5rem 12rem; }
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(9 10 15 / 0.9) 0%, rgb(9 10 15 / 0.55) 48%, rgb(9 10 15 / 0) 85%), linear-gradient(180deg, rgb(9 10 15 / 0.55), transparent 35%); }
@media (max-width: 959px) { .hero-scene::after { background: linear-gradient(180deg, rgb(9 10 15 / 0.85) 0%, rgb(9 10 15 / 0.55) 60%, rgb(9 10 15 / 0.2) 100%); } }
.hero-sun { position: absolute; left: 50%; bottom: 14%; width: min(40rem, 96vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(180deg, #ffd23f 0%, #ff8a1f 40%, #ff007f 75%, #7928ca 100%); -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 62%, transparent 62% 64%, #000 64% 74%, transparent 74% 77%, #000 77% 86%, transparent 86% 90%, #000 90% 100%); mask-image: repeating-linear-gradient(180deg, #000 0 62%, transparent 62% 64%, #000 64% 74%, transparent 74% 77%, #000 77% 86%, transparent 86% 90%, #000 90% 100%); filter: drop-shadow(0 0 60px rgb(255 0 127 / 0.55)); opacity: 0.9; animation: sun-rise 1.7s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
@media (min-width: 960px) { .hero-sun { left: 72%; } }
.hero-horizon { position: absolute; left: 0; right: 0; bottom: 14%; height: 2px; background: var(--vice-pink); box-shadow: 0 0 24px var(--vice-pink); }
.hero-floor { position: absolute; left: -10%; right: -10%; bottom: 0; height: 18%; background-color: #12041f; background-image: linear-gradient(to right, rgb(0 240 255 / 0.55) 1px, transparent 1px), linear-gradient(to bottom, rgb(0 240 255 / 0.55) 1px, transparent 1px); background-size: 72px 36px; transform: perspective(300px) rotateX(58deg); transform-origin: center top; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
.palm { position: absolute; bottom: 16%; height: clamp(11rem, 30vw, 22rem); opacity: 0.95; }
.palm-l { left: 2%; } .palm-r { right: 3%; transform: scaleX(-1); }
@keyframes sun-rise { from { transform: translateX(-50%) translateY(22%); opacity: 0; } to { transform: translateX(-50%); opacity: 0.9; } }
.palm { bottom: 12%; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.hero-kicker { color: var(--neon-cyan); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5.6rem); margin-top: 0.75rem; padding-right: 0.08em; text-wrap: balance; filter: drop-shadow(0 0 28px rgb(255 0 127 / 0.35)); }
.rise { animation: rise-in 0.8s cubic-bezier(0.16, 0.84, 0.24, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.hud-preview { padding: 1.25rem; border-radius: var(--radius-lg); background: rgb(9 3 22 / 0.78); border: 1px solid rgb(255 0 127 / 0.45); box-shadow: var(--glow-pink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hud-preview-head { display: flex; justify-content: space-between; align-items: center; }
.mini { padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.05); border: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::after { content: "+"; color: var(--vice-pink); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 0.6rem; }

/* ---- Calculator ---- */
.calc { display: grid; gap: 1.25rem; }
.calc-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.5rem; margin-top: 0.35rem; }
.calc-grade { display: grid; gap: 0.2rem; } .calc-grade select { min-height: 2.5rem; padding-block: 0.4rem; }
.calc-exam { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .calc-exam input { width: 5rem; } .calc-exam select { width: 6.5rem; }
.calc-pick { display: grid; gap: 0.4rem; padding: 0.6rem 0 0.2rem 1.6rem; }
.calc-total { margin: 0.75rem 0; display: flex; align-items: baseline; gap: 0.5rem; } .calc-total .title { font-size: 3.4rem; }
.calc-lines { margin: 0; display: grid; gap: 0.35rem; } .calc-lines > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.3rem; } .calc-lines dt { color: var(--fg-muted); } .calc-lines dd { margin: 0; }

/* ---- Subjects and topics ---- */
.subject-card { position: relative; padding-left: 1.6rem; } .subject-card:disabled { opacity: 0.5; cursor: not-allowed; }
.subject-dot { position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px; border-radius: 4px; background: var(--accent, var(--vice-pink)); box-shadow: 0 0 14px var(--accent, var(--vice-pink)); }
.topic-card h3 { font-size: 1.1rem; }

/* ---- Auth ---- */
.auth-card .tabs { margin-bottom: 1.25rem; }
.page-auth .page { padding-block: 3rem 5rem; }

/* ---- Note page ---- */
.note-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .note-layout { grid-template-columns: minmax(0, 1fr) 16rem; } .note-toc { position: sticky; top: 5rem; align-self: start; } }
.note-body { max-width: 46rem; font-size: 1.05rem; }
[data-guard-state="pending"] .guard-content { visibility: hidden; }
.protected-content, .protected-content * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected-content .allow-select, .protected-content .allow-select *, .protected-content input, .protected-content textarea { -webkit-user-select: text; user-select: text; }
.protected-content img { -webkit-user-drag: none; }
.print-notice { display: none; }

/* Quiz */
.quiz-question { font: 700 1.3rem/1.4 var(--font-sans); margin-bottom: 1rem; }
.quiz-options { display: grid; gap: 0.6rem; }
.quiz-option { display: flex; gap: 0.9rem; align-items: flex-start; text-align: left; width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgb(255 255 255 / 0.03); color: var(--fg); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.quiz-option:hover:not(:disabled) { border-color: var(--neon-cyan); background: rgb(0 240 255 / 0.06); }
.quiz-option:disabled { cursor: default; }
.quiz-letter { flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 0.5rem; background: rgb(255 255 255 / 0.08); font: 700 0.9rem/1 var(--font-hud); }
.quiz-option.is-chosen { border-color: var(--warn); }
.quiz-option.is-correct { border-color: var(--ok); background: rgb(46 229 157 / 0.1); } .quiz-option.is-correct .quiz-letter { background: var(--ok); color: #04130c; }
.quiz-option.is-wrong { border-color: var(--err); background: rgb(255 77 109 / 0.1); } .quiz-option.is-wrong .quiz-letter { background: var(--err); color: #19030a; }
.quiz-feedback { margin-top: 1rem; padding: 0; } .quiz-feedback.is-ok, .quiz-feedback.is-bad { padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid; }
.quiz-feedback.is-ok { border-color: rgb(46 229 157 / 0.5); background: rgb(46 229 157 / 0.07); } .quiz-feedback.is-bad { border-color: rgb(255 77 109 / 0.5); background: rgb(255 77 109 / 0.07); }

/* Chat */
.chat-log { max-height: 26rem; overflow-y: auto; display: grid; gap: 0.7rem; padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(9 10 15 / 0.5); }
.chat-msg { max-width: 88%; padding: 0.65rem 0.9rem; border-radius: 1rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-ai { justify-self: start; background: rgb(0 240 255 / 0.08); border: 1px solid rgb(0 240 255 / 0.3); border-bottom-left-radius: 0.25rem; }
.chat-me { justify-self: end; background: rgb(255 0 127 / 0.12); border: 1px solid rgb(255 0 127 / 0.4); border-bottom-right-radius: 0.25rem; }
.chat-wait { opacity: 0.7; font-style: italic; } .chat-err { justify-self: start; border: 1px solid rgb(255 77 109 / 0.6); background: rgb(255 77 109 / 0.08); }
.chat-form { display: flex; gap: 0.6rem; align-items: flex-end; } .chat-form textarea { min-height: 3rem; }

/* Essay result, step checker, explainer */
.eval .bar { height: 0.5rem; }
.step-lines { list-style: none; padding: 0; margin-top: 0.75rem; display: grid; gap: 0.5rem; counter-reset: line; }
.step-line { counter-increment: line; display: grid; gap: 0.15rem 0.75rem; grid-template-columns: 2rem 1fr auto; align-items: start; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.step-line::before { content: counter(line); font: 700 0.85rem/1.8 var(--font-hud); color: var(--fg-muted); }
.step-line code { grid-column: 2; color: var(--fg); overflow-wrap: anywhere; } .step-line .small { grid-column: 2; color: var(--fg-muted); } .step-line .badge { grid-column: 3; grid-row: 1; }
.step-line.is-error { border-color: rgb(255 77 109 / 0.6); background: rgb(255 77 109 / 0.07); } .step-line.is-ok { border-color: rgb(46 229 157 / 0.25); }
.task-text { white-space: normal; color: #dfe2e9; overflow-wrap: anywhere; }
.explain-text { padding: 1rem; border-radius: var(--radius); border: 1px solid rgb(0 240 255 / 0.3); background: rgb(0 240 255 / 0.04); }

/* ---- Dashboard ---- */
.dash-head { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 800px) { .dash-head { grid-template-columns: 1fr minmax(18rem, 26rem); } }
.dash-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1fr) 22rem; } }
.panic-card { display: grid; gap: 0.2rem; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid rgb(255 0 127 / 0.6); background: radial-gradient(120% 140% at 0% 0%, rgb(255 0 127 / 0.35), transparent 60%), linear-gradient(135deg, #2a0620, #14061f); box-shadow: var(--glow-pink); text-decoration: none; color: var(--fg); }
.panic-card:hover { box-shadow: var(--glow-pink-lg); color: var(--fg); }
.panic-label { color: var(--neon-cyan); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.panic-title { font-size: clamp(2rem, 6vw, 3.2rem); color: #fff; text-shadow: 0 0 26px var(--vice-pink); } .panic-sub { color: #e6d3df; }
.mission.is-done { opacity: 0.65; }
.locked-box { padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px dashed rgb(255 176 32 / 0.55); background: rgb(255 176 32 / 0.06); }
.invite-box { padding: 0.8rem 1rem; border-radius: var(--radius); background: rgb(0 240 255 / 0.05); border: 1px solid rgb(0 240 255 / 0.25); }
.theme-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.theme-swatch { display: grid; gap: 0.35rem; padding: 0.6rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgb(255 255 255 / 0.03); cursor: pointer; text-align: left; }
.theme-swatch:disabled { opacity: 0.45; cursor: not-allowed; } .theme-swatch.is-active { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.swatch-dots { display: flex; gap: 0.3rem; } .swatch-dots i { width: 1rem; height: 1rem; border-radius: 50%; display: block; }
.share-canvas { width: 100%; height: auto; max-height: 28rem; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #07030f; }

/* ---- Games ---- */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid rgb(0 240 255 / 0.5); box-shadow: var(--glow-cyan), inset 0 0 40px rgb(0 0 0 / 0.6); background: #07101a; margin-top: 0.75rem; }
.minimap { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.map-sea { fill: #08121d; } .map-grid { stroke: rgb(0 240 255 / 0.08); stroke-width: 1; }
.map-land { fill: #121b2b; stroke: rgb(0 240 255 / 0.35); stroke-width: 1.2; } .map-land.is-home { fill: #1d1530; stroke: rgb(255 0 127 / 0.8); stroke-width: 1.8; }
.map-pin { fill: var(--vice-pink); stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 8px var(--vice-pink)); } .map-pin-ring { fill: none; stroke: var(--vice-pink); stroke-width: 2; opacity: 0.5; }
.map-link { stroke: #fff; stroke-width: 2; stroke-dasharray: 6 6; opacity: 0.7; }
.map-radius { fill-opacity: 0.18; stroke-width: 3; } .map-radius.is-ok { fill: var(--ok); stroke: var(--ok); } .map-radius.is-bad { fill: var(--err); stroke: var(--err); }
.map-target { fill: var(--neon-cyan); stroke: #fff; stroke-width: 2; }
.map-info { margin-top: 0.75rem; display: grid; gap: 0.3rem; }
.panic-card-face { padding: 1.4rem; } .panic-back { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }

/* ---- Vice Radio HUD ---- */
.radio { position: fixed; left: 0.75rem; bottom: 0.75rem; z-index: 60; width: min(17.5rem, calc(100vw - 1.5rem)); border-radius: var(--radius); border: 1px solid rgb(0 240 255 / 0.4); background: rgb(9 3 22 / 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--glow-cyan); font-family: var(--font-hud); }
.radio.is-focus { border-color: rgb(255 0 127 / 0.7); box-shadow: var(--glow-pink); }
.radio.is-collapsed { width: auto; }
.radio-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0.4rem 0.4rem 0.8rem; }
.radio-title { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--neon-cyan); }
.radio-collapse, .radio-btn { width: 2rem; height: 2rem; flex: none; border: 1px solid var(--line-strong); border-radius: 0.5rem; background: rgb(255 255 255 / 0.05); color: var(--fg); cursor: pointer; line-height: 1; }
.radio-panel { padding: 0 0.8rem 0.8rem; display: grid; gap: 0.6rem; }
.radio-row { display: flex; align-items: center; gap: 0.5rem; }
.radio-station { width: auto; flex: 1; padding: 0 0.5rem; font-size: 0.78rem; }
.radio-vol { width: 100%; min-height: 0; padding: 0; accent-color: var(--vice-pink); background: none; border: 0; }
.radio-timer { justify-content: space-between; } .radio-clock { font-size: 1.5rem; font-weight: 700; }
.radio-focus { padding: 0.4rem 0.7rem; border-radius: 0.5rem; border: 1px solid var(--vice-pink); background: rgb(255 0 127 / 0.14); color: var(--fg); font: 600 0.8rem/1.2 var(--font-hud); cursor: pointer; }
.radio-status { font-size: 0.72rem; color: var(--fg-muted); line-height: 1.4; }
@media (max-width: 640px) { .radio { bottom: 0.5rem; left: 0.5rem; } .toast-stack { bottom: 4.5rem; } }

/* ---- Legal pages ---- */
.legal-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 16rem minmax(0, 1fr); } .legal-toc { position: sticky; top: 5rem; align-self: start; } }
.legal-section { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.legal-section:last-child { border-bottom: 0; }
.legal-body .prose { font-size: 0.98rem; } .legal-body .prose h3 { margin-top: 1.4rem; }
.dev-card { padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid rgb(0 240 255 / 0.35); background: rgb(0 240 255 / 0.05); }
.dev-card h3 { font: italic 800 1.3rem/1.2 var(--font-display); margin: 0 0 0.6rem; }

/* ---- Print: only a copyright notice ---- */
@media print {
  .protected-page > *:not(.print-notice) { display: none !important; }
  .protected-page .print-notice { display: block !important; padding: 4rem 2rem; text-align: center; font: 700 20pt/1.5 Georgia, serif; color: #000; }
  html, body.protected-page { background: #fff !important; }
}

/* @@PAGES@@ (more page styles can be added above this line) */
