:root {
  color-scheme: dark;
  --ink: #f6f7fc;
  --muted: #b5bed1;
  --background: #101522;
  --panel: #181f30;
  --edge: #353f55;
  --blue: #b4d6ff;
  --red: #ff8278;
  --gold: #ffd279;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: white; }
button { font: inherit; }
button[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: 12px auto auto 12px; padding: 10px 14px; background: #101522; transform: translateY(-150%); }
.skip:focus { transform: none; }
.bar { border-bottom: 1px solid var(--edge); background: #131927; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand b, .footer-brand { letter-spacing: .08em; font-weight: 950; }
.brand small { display: block; font: 700 .64rem/1.6 ui-monospace, monospace; letter-spacing: .18em; color: var(--blue); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--blue); color: var(--background); border-radius: 8px; }
nav { display: flex; gap: 6px; }
nav a { display: block; padding: 9px 13px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 680; white-space: nowrap; }
nav a:hover, nav [aria-current] { background: #273449; color: var(--ink); }
.button { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; justify-content: center; gap: .7em; padding: 9px 15px; color: var(--ink); border: 1px solid var(--edge); border-radius: 8px; font-weight: 750; text-decoration: none; }
.button:hover { background: #2b3c59; }
.button.primary { color: #101522; border-color: var(--blue); background: var(--blue); }
.button.primary:hover { background: #dbebff; }
.header-play { justify-self: end; }
.intro { padding-block: clamp(48px, 7vw, 88px) 28px; }
.eyebrow, .section-head > span { color: var(--blue); font: 700 .73rem/1.6 ui-monospace, monospace; letter-spacing: .12em; }
.section-number { display: inline-block; padding: 2px 6px; margin-right: 7px; border: 1px solid #496284; border-radius: 4px; }
h1 { margin-block: 10px 13px; max-width: 15ch; font-size: clamp(2.85rem, 6.9vw, 6rem); line-height: .98; letter-spacing: -.048em; font-weight: 950; }
h1 span { color: var(--red); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { line-height: 1.22; }
.lede { max-width: 49ch; font-size: clamp(1.06rem, 2vw, 1.23rem); color: var(--muted); }
.date-chip { width: fit-content; margin-top: 20px; padding: 5px 11px; background: #202c42; border: 1px solid #344d6b; border-radius: 20px; color: #d0e4ff; font-size: .8rem; }
.date-chip span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: var(--blue); vertical-align: .14em; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 15px; }
.code-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.code-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--edge); border-radius: 10px; background: var(--panel); }
.tile-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #4e4938; border-radius: 8px; background: #302b25; color: var(--gold); }
.code-card code { color: var(--gold); font-size: clamp(.87rem, 3vw, 1.03rem); font-weight: 800; letter-spacing: .04em; }
.code-card p { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.copy { cursor: pointer; min-width: 94px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #526580; border-radius: 7px; background: #263450; color: var(--ink); font-size: .83rem; font-weight: 700; }
.copy:hover { background: #36496d; }
.copy svg { width: 16px; height: 16px; }
.copy-status { min-height: 1.55em; color: var(--blue); margin-top: 8px; font-size: .88rem; }
.fine { color: var(--muted); font-size: .84rem; max-width: 70ch; }
.panel { border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); padding: clamp(16px, 3vw, 24px); }
.panel p:not(.eyebrow) { color: var(--muted); margin-top: 8px; }
.howto { border-top: 3px solid var(--blue); }
.howto h2 { margin-top: 8px; }
.steps { padding-left: 1.45em; margin-block: 15px 19px; color: var(--muted); }
.steps li { padding-left: .38em; margin-block: .65em; }
.steps li::marker { color: var(--blue); font-weight: 800; }
.steps b { color: var(--ink); }
.section { padding-block: 48px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.footer { border-top: 1px solid var(--edge); padding-block: 25px; margin-top: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-brand { text-decoration: none; color: var(--ink); }
.footer-brand span { color: var(--blue); font-size: .76em; }
.footer p { color: var(--muted); font-size: .86rem; }
@media (max-width: 730px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 10px; padding-block: 10px; }
  .header-play { grid-column: 2; grid-row: 1; font-size: .86rem; }
  nav { grid-column: 1/-1; }
  nav a { min-height: 44px; font-size: .9rem; }
  .two-column, .mini-grid { grid-template-columns: 1fr; }
  .section { padding-block: 32px; }
}
@media (max-width: 375px) {
  .code-card { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .code-card .tile-icon { display: none; }
}

/* Arena and task routes */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.arena {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 22%, #1e3657 0, transparent 51%),
    radial-gradient(ellipse at 98% 95%, #462730 0, transparent 38%),
    repeating-linear-gradient(128deg, #ffffff06 0 1px, transparent 1px 25px),
    #141b2c;
}
.hero { min-height: 435px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 76px); padding-block: clamp(36px, 6vw, 80px); }
.hero h1 { margin-block: 14px; font-size: clamp(3.5rem, 7.3vw, 7rem); }
.hero-copy .fine { margin-top: 18px; }
.hero-art { position: relative; padding: 10px 10px 7px; background: #101522; border: 1px solid #6e8aab; border-radius: 13px; box-shadow: 10px 10px 0 #e67a713b; }
.hero-art img { width: 100%; border-radius: 7px; }
.art-tag { position: absolute; top: 21px; left: 21px; padding: 5px 9px; border-radius: 4px; background: #101522; color: var(--ink); font: 700 .64rem/1.35 ui-monospace, monospace; letter-spacing: .08em; }
.art-tag span { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--red); }
figcaption { padding: 6px 2px 0; font-size: .73rem; color: var(--muted); }
.ticker { border-block: 1px solid var(--edge); background: #1a2233; }
.ticker-inner { min-height: 68px; padding-block: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 21px; }
.ticker-inner > b { color: var(--gold); font: 800 .74rem/1.5 ui-monospace, monospace; letter-spacing: .1em; }
.ticker-inner a { margin-left: auto; font-weight: 750; }
.ticker-codes { display: flex; gap: 5px 8px; flex-wrap: wrap; }
.ticker-codes code { color: #e4eaf8; background: #101522; border: 1px solid var(--edge); border-radius: 5px; padding: 3px 6px; font-size: .75rem; }
.route-card { display: block; text-decoration: none; color: var(--ink); min-height: 176px; }
.route-card:hover { border-color: #81a8d5; background: #202a3d; }
.route-card h3 { display: flex; justify-content: space-between; gap: 7px; margin-top: 15px; font-size: 1.23rem; }
.route-card h3 span { color: var(--blue); }
.card-top { display: flex; justify-content: space-between; align-items: start; font: 700 .68rem/1.6 ui-monospace, monospace; color: var(--muted); letter-spacing: .12em; }
.route-card:nth-child(2) .tile-icon { color: var(--blue); background: #263450; border-color: #496284; }
.route-card:nth-child(3) .tile-icon { color: var(--red); background: #35292e; border-color: #654048; }
.support { border-top: 1px solid var(--edge); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.support h2 { margin-top: 5px; }
.support p:not(.eyebrow) { color: var(--muted); margin-block: 8px; max-width: 54ch; }
.redeem-jump { display: none; }
.redeem-shot { margin-top: 19px; }
.redeem-shot img { width: 100%; border-radius: 7px; }
.guide-section { padding-block: 25px 36px; scroll-margin-top: 16px; }
.guide-section + .guide-section { border-top: 1px solid var(--edge); }
.guide-intro { margin: -3px 0 19px; max-width: 72ch; color: var(--muted); }
.guide-intro strong { color: var(--ink); }
.starter h3, .roster-grid h3 { margin-top: 7px; font-size: 1.3rem; }
.starter { border-top: 3px solid var(--gold); }
.starter:nth-child(2) { border-top-color: var(--red); }
.starter:nth-child(3) { border-top-color: var(--blue); }
.weapon { display: inline-block; padding: 3px 8px; margin-top: 9px; border: 1px solid var(--edge); border-radius: 4px; font-size: .82rem; }
.fight-note { margin-top: 18px; border-left: 3px solid var(--blue); }
.fight-note h3 { margin-top: 5px; }
.fight-note p { max-width: 76ch; }
.match-grid { display: grid; gap: 7px; margin-top: 14px; }
details { border: 1px solid var(--edge); background: #141b2c; border-radius: 8px; }
summary { cursor: pointer; min-height: 44px; padding: 10px 14px; font-weight: 750; }
summary::marker { color: var(--blue); }
details p { color: var(--muted); padding: 0 14px 13px; max-width: 76ch; }
@media (max-width: 730px) {
  .hero, .support { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-right: 8px; }
  .hero-art { width: min(100%, 550px); }
  .redeem-jump { display: inline-block; margin-top: 12px; padding: 5px 0; }
  .ticker-inner a { margin-left: 0; }
}

.reward-preview { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; margin-bottom: 44px; }
.reward-preview h2 { margin-top: 6px; }
.reward-preview a { display: inline-block; margin-top: 10px; }
.reward-preview .redeem-shot { margin: 0; max-width: 380px; justify-self: end; }
.intro > p + .button { margin-top: 18px; }
@media (max-width: 730px) {
  .reward-preview { grid-template-columns: 1fr; margin-bottom: 32px; }
  .reward-preview .redeem-shot { justify-self: start; }
}
