:root {
  --bg: #0a1016;
  --panel: #0f1a22;
  --line: rgba(255, 255, 255, .1);
  --text: #eef3f6;
  --muted: #93a4b1;
  --lemon: #ffc61a;
  --lemon-2: #ff9a0a;
  --lime: #8be04a;
  --fz: #ff6a2b;
  --fz-2: #ff3d3d;
  --display: "Rajdhani", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --accent: var(--lemon);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 500 18px/1.55 var(--display);
  background:
    radial-gradient(900px 600px at 8% -5%, rgba(255, 198, 26, .11), transparent 70%),
    radial-gradient(800px 600px at 100% 40%, rgba(139, 224, 74, .07), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  background-attachment: fixed;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--lemon); color: #111; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- maintenance banner ---------- */
.maint { padding: 10px 22px; text-align: center; background: var(--lemon-2); color: #1a1000; font-weight: 600; }
.maint[hidden] { display: none; }
.maint span:not(:empty) { margin-left: .6em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(10, 16, 22, .78); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.brand img { border-radius: 50%; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 17px; }
.nav-links a:hover { color: var(--text); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--muted); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: #5d6b76; }
.pill[data-state="online"] { color: var(--text); }
.pill[data-state="online"] i { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.pill[data-state="maintenance"] { color: var(--text); border-color: rgba(255, 154, 10, .6); }
.pill[data-state="maintenance"] i { background: var(--lemon-2); box-shadow: 0 0 10px var(--lemon-2); }

/* ---------- hero ---------- */
.hero { padding: 54px 0 30px; }
h1 { margin: 0; font-size: clamp(46px, 9vw, 104px); line-height: .95; font-weight: 700; letter-spacing: -.005em; }
.hero p { margin: 16px 0 0; max-width: 46ch; color: var(--muted); font-size: 21px; }
.note { margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(255, 198, 26, .45); border-radius: 8px; color: var(--text); background: rgba(255, 198, 26, .08); }
.note[hidden] { display: none; }

/* ---------- the two choices ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; display: block; cursor: pointer; --accent: var(--lemon); --mx: 50%; --my: 0%; }
.choice.forza { --accent: var(--fz); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }

.panel {
  position: relative;
  height: 100%;
  min-height: 470px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #101b24, #0b131a);
  transition: border-color .25s, box-shadow .25s, opacity .25s, filter .25s;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.choice:hover .panel::before, .choice input:checked + .panel::before { opacity: 1; }
.choice:hover .panel { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.choice input:focus-visible + .panel { outline: 2px solid #fff; outline-offset: 3px; }
.choice input:checked + .panel {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 60px -18px color-mix(in srgb, var(--accent) 55%, transparent);
}
.choices:has(input:checked) .choice input:not(:checked) + .panel { opacity: .6; filter: saturate(.65); }

.art { position: relative; height: 270px; display: grid; place-items: center; }
.art img {
  max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.art { overflow: hidden; }
.choice.lemon .art img { height: 270px; transform: scale(1.16); }
.choice.forza .art img { height: 250px; }
.choice input:checked + .panel .art img { transform: scale(1.06); }
.choice.lemon input:checked + .panel .art img { transform: scale(1.22); }

.txt { position: relative; }
.name { margin: 0; min-height: 44px; display: flex; align-items: center; font-size: 38px; line-height: 1.05; font-weight: 700; }
.choice.forza .name { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.about { margin: 8px 0 0; color: var(--muted); max-width: 42ch; }
.choice.forza .about { font-size: 16px; }
.tags { margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tags span { padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.state { margin: 14px 0 0; height: 24px; font-size: 16px; color: var(--muted); }
.state::before { content: "Select"; }
.choice input:checked + .panel .state { color: var(--accent); font-weight: 700; }
.choice input:checked + .panel .state::before { content: "Selected"; }

/* ---------- details ---------- */
.details { margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.empty { padding: 34px 28px; color: var(--muted); }
.empty p { margin: 0; }
.empty p:first-child { color: var(--text); font-size: 22px; font-weight: 600; }
.empty[hidden], .grid[hidden] { display: none; }

.grid { display: block; }
.col-info { padding: 30px 28px 32px; }
.col-info h3 { margin: 0; font-size: 34px; line-height: 1.1; }
.blurb { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }

.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin: 22px 0 0; font-size: 16px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; min-width: 0; }
.hash { font: 400 12px/1.5 var(--mono); word-break: break-all; color: #c2cfd9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.dl {
  display: inline-block; padding: 15px 30px; font: 700 22px var(--display); letter-spacing: .02em; text-decoration: none;
  color: #1a1100; border-radius: 8px;
  background: linear-gradient(90deg, var(--lemon), var(--lemon-2));
  box-shadow: 0 10px 30px -10px rgba(255, 198, 26, .6);
  transition: transform .15s, filter .15s;
}
.dl.is-forza { background: linear-gradient(90deg, var(--fz), var(--fz-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 106, 43, .6); }
.dl:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dl:active { transform: translateY(1px); }
.ghost {
  padding: 14px 18px; font: 600 17px var(--display); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.hint { margin: 12px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { margin: 56px 0 0; max-width: 760px; }
.faq h2 { margin: 0 0 14px; font-size: 40px; line-height: 1.1; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lemon); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }

.foot { margin-top: 64px; padding: 26px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.foot p { margin: 0; }

.toast {
  position: fixed; left: 0; right: 0; bottom: 26px; z-index: 40;
  width: max-content; max-width: calc(100vw - 32px); margin-inline: auto;
  padding: 12px 20px; border-radius: 8px;
  background: #e9f1f6; color: #0a1016; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; translate: 0 24px;
  transition: translate .3s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility .3s;
}
.toast.show { opacity: 1; visibility: visible; translate: 0 0; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .choices { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .art { height: 220px; }
  .choice.lemon .art img { height: 220px; }
  .choice.forza .art img { height: 200px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-info { padding: 24px 18px 26px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
