:root {
  color-scheme: dark;
  --page: #111118;
  --panel: #1a1923;
  --surface: #201e2c;
  --line: #333140;
  --text: #f6f4fb;
  --muted: #b9b4c9;
  --subtle: #a59eb8;
  --accent: #d1fc76;
  --lavender: #c9b5ff;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--text); background: var(--page); }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--lavender); text-underline-offset: .22em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #191b13; }
section[id], main[id] { scroll-margin-top: 24px; }
.symbols { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
svg:not(.symbols) { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 3; padding: 10px 14px; background: var(--accent); color: #172211; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.site-header { background: #15141d; border-bottom: 1px solid #2c2a37; }
.header-row { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; font-weight: 760; letter-spacing: -.025em; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.brand-sub { display: block; margin-top: 4px; color: var(--subtle); font: 700 9px/1 var(--mono); letter-spacing: .15em; }
nav { display: flex; align-items: center; gap: 10px; }
nav a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 670; border-radius: 7px; white-space: nowrap; }
nav a:hover, .nav-current { background: #262337; color: var(--text); }
.nav-current { color: var(--lavender); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 760; white-space: nowrap; }
.button svg, .archive-link svg, .checked svg, summary svg { width: 17px; height: 17px; flex: 0 0 auto; }
.header-play { border-color: #3e3851; background: #211d2e; }
.header-play:hover, .secondary:hover { border-color: var(--lavender); }
.primary { background: var(--accent); color: #1a240f; }
.primary:hover { background: #e0ffa8; }
.secondary { border-color: #4a435a; background: #211f2c; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: stretch;
  min-height: 350px;
  margin-block: 30px 22px;
  overflow: hidden;
  border: 1px solid #433951;
  border-radius: 18px;
  background: linear-gradient(105deg, #201b2d 0%, #201a30 48%, #2b2041 100%);
}
.hero-content { z-index: 1; padding: 40px 0 38px 44px; }
.eyebrow, .section-index, .art-label, .art-caption { font: 650 11px/1.3 var(--mono); letter-spacing: .115em; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #ded0ff; }
.signal { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #caff6864; }
.hero h1 { max-width: 540px; margin-block: 15px 14px; font-size: clamp(43px, 5.3vw, 76px); letter-spacing: -.057em; font-weight: 820; line-height: .99; }
.hero h1 span { color: var(--accent); }
.hero-content > p { max-width: 420px; color: #d2c9e3; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-art { position: relative; min-width: 0; overflow: hidden; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-label, .art-caption { position: absolute; z-index: 1; color: #c9b7e2; font-size: 10px; }
.art-label { top: 23px; right: 24px; }
.art-label b { margin-left: 5px; color: var(--accent); }
.art-caption { bottom: 22px; right: 24px; display: flex; align-items: center; gap: 7px; }
.art-caption span { width: 18px; height: 2px; background: #a889df; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel-heading { margin-bottom: 18px; }
.section-index { color: var(--subtle); margin-bottom: 9px; }
.section-index b { color: var(--lavender); margin-right: 6px; }
.heading-line { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; row-gap: 6px; }
h2 { font-size: clamp(24px, 3.1vw, 34px); letter-spacing: -.052em; line-height: 1.16; font-weight: 800; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid #454051; border-radius: 5px; font: 650 10px/1.5 var(--mono); white-space: nowrap; }
.live { color: var(--accent); background: #252c20; border-color: #435136; }
.live .signal { width: 5px; height: 5px; flex-basis: 5px; }
.neutral { color: var(--muted); background: #262432; }
.checked { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.checked svg { width: 15px; height: 15px; color: var(--lavender); }
.checked time { color: #e4def0; font-weight: 650; }

.code-list { display: grid; gap: 9px; }
.code-row { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px; background: var(--surface); border: 1px solid #3b354d; border-radius: 9px; }
.reward-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: var(--lavender); background: #312749; border: 1px solid #493b68; }
.reward-icon.box { color: #f9c999; background: #392a2e; border-color: #614239; }
.reward-icon.palette { color: #c5f484; background: #273325; border-color: #45563a; }
.code-info code { font: 780 20px/1.25 var(--mono); letter-spacing: -.045em; color: #fff; overflow-wrap: anywhere; }
.code-info p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.copy-button { display: flex; justify-content: center; align-items: center; gap: 7px; min-width: 91px; min-height: 44px; padding-inline: 8px; color: var(--accent); background: #283126; border: 1px solid #46583b; border-radius: 7px; font-size: 13px; font-weight: 760; cursor: pointer; }
.copy-button svg { width: 16px; height: 16px; }
.copy-button:hover, .copy-button[data-copied] { color: #1a240f; background: var(--accent); border-color: var(--accent); }
.copy-feedback { position: fixed; z-index: 2; bottom: 18px; left: 50%; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 10px 14px; border: 1px solid #596b43; border-radius: 8px; background: #252c20; color: var(--accent); font-size: 13px; pointer-events: none; }
.copy-feedback:empty { padding: 0; border: 0; }
.microcopy, .section-note { color: var(--muted); font-size: 12px; margin-top: 13px; }
.archive-link { display: inline-flex; gap: 5px; align-items: center; min-height: 36px; margin-top: 4px; font-size: 13px; font-weight: 700; }
.empty { padding: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; }

.steps { display: grid; gap: 15px; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.steps li > span { display: grid; place-items: center; height: 29px; border: 1px solid #4b3e69; border-radius: 6px; background: #312748; color: #d9c8ff; font: 700 12px/1 var(--mono); }
.steps h3 { font-size: 14px; line-height: 1.45; }
.steps p { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.steps strong, .success-note strong, .faq-item strong { color: var(--text); }
.success-note { padding-left: 10px; margin-top: 14px; border-left: 2px solid #80a84d; color: var(--muted); font-size: 12px; }
details summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
.chevron { margin-left: auto; }
details[open] > summary .chevron { transform: rotate(180deg); }
.screens { margin-top: 16px; border: 1px solid #443a58; background: #231f32; border-radius: 8px; }
.screens summary { min-height: 42px; padding: 6px 11px; color: #e2d5fc; font-size: 12px; font-weight: 650; }
.screens summary:hover { color: var(--accent); }
.screens-body { display: grid; gap: 11px; padding: 4px 11px 12px; }
.screens-body img { border: 1px solid #4d4260; border-radius: 5px; max-height: 124px; object-fit: contain; }
.screens-body figcaption, .credit { margin-top: 4px; color: var(--subtle); font-size: 11px; }

.secondary-grid { margin-top: 20px; }
.history-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.history-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 10px; padding: 10px 12px; background: var(--surface); }
.history-row code { font: 700 14px/1.2 var(--mono); overflow-wrap: anywhere; }
.reported-expired { color: #f7c2bd; background: #3b252b; border-color: #6f4149; }
.unconfirmed { color: #f3d4a3; background: #3a2e25; border-color: #665039; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { min-height: 47px; padding: 8px 0; font-size: 14px; font-weight: 680; }
.faq-item summary:hover { color: var(--lavender); }
.faq-item div { padding: 0 0 12px; color: var(--muted); font-size: 13px; }
.faq-item p + p { margin-top: 8px; }
.updates { margin-block: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #201b2e; border-color: #423852; }
.updates h2 { font-size: clamp(22px, 3vw, 29px); }
.updates p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.updates-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer { background: #15141d; border-top: 1px solid #2c2a37; }
.footer-row { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--subtle); font-size: 12px; }
.footer-brand { font-size: 13px; }
.error-page { padding-block: 40px; }
.error-page p { margin-block: 10px 20px; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 42px); }
  .hero-content { padding-left: 28px; }
  .hero { min-height: 320px; }
  .dashboard { gap: 14px; }
  .panel { padding: 18px; }
  .updates { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { flex-wrap: wrap; column-gap: 8px; row-gap: 2px; padding-top: 11px; }
  .header-row nav { order: 3; width: 100%; gap: 3px; }
  nav a { padding: 9px 11px; min-height: 40px; }
  .header-row > .button { min-height: 38px; padding-inline: 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; margin-block: 16px 14px; border-radius: 14px; }
  .hero-content { padding: 23px 19px 6px; }
  .hero h1 { font-size: clamp(29px, 9.3vw, 54px); margin-block: 12px 10px; max-width: 460px; }
  .hero-content > p { font-size: 14px; }
  .hero-actions { margin-top: 17px; }
  .hero-art { height: 158px; }
  .hero-art img { object-fit: contain; }
  .art-label, .art-caption { right: 13px; font-size: 8px; }
  .art-label { top: 10px; }
  .art-caption { bottom: 10px; }
  .dashboard { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .panel-heading { margin-bottom: 14px; }
  .secondary-grid, .updates { margin-top: 14px; }
  .footer-row { flex-wrap: wrap; padding-block: 16px; gap: 8px 14px; }
  .footer-row p { width: 100%; order: 3; }
}

@media (max-width: 380px) {
  .hero-actions .button { font-size: 12px; padding-inline: 10px; }
  .hero-art { height: 140px; }
  .code-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .reward-icon { display: none; }
  .copy-button { min-width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
