/* Slingstar — site styles. Pixel panels, neon accents, no rounded corners. */

@font-face {
  font-family: 'PressStart';
  src: url('/fonts/PressStart2P-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Pixelify';
  src: url('/fonts/PixelifySans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pixelify';
  src: url('/fonts/PixelifySans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0d1a;
  --bg2: #141127;
  --panel: #1b1733;
  --panel2: #221c3f;
  --line: #342f5c;
  --ink: #ece9ff;
  --muted: #9a93c0;
  --cyan: #5ee3ff;
  --pink: #ff5c8a;
  --yellow: #ffcc4d;
  --green: #63e07a;
  --orange: #ff9a3d;
  --purple: #b57dff;
  --pixel: 4px;
  --wrap: 1120px;
  --display: 'PressStart', 'Courier New', monospace;
  --body: 'Pixelify', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
}

/* CJK has no pixel face here: fall back to the system UI stack. */
.lang-ja, .lang-ko, .lang-zh_Hans {
  --body: system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans CJK JP', 'Noto Sans CJK KR', 'Noto Sans CJK SC', sans-serif;
}
.lang-ja h2, .lang-ko h2, .lang-zh_Hans h2,
.lang-ja h3, .lang-ko h3, .lang-zh_Hans h3 { letter-spacing: 0; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1000px 600px at 80% -10%, rgba(94, 227, 255, .10), transparent 60%),
    radial-gradient(800px 500px at 10% 20%, rgba(255, 92, 138, .08), transparent 60%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 760px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: #06121a; padding: 10px 16px; font-family: var(--display); font-size: 11px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------- typography */

h1, h2, h3 { font-family: var(--display); line-height: 1.35; letter-spacing: .5px; margin: 0 0 .6em; }
h1 { font-size: clamp(22px, 4vw, 34px); color: var(--cyan); }
h2 { font-size: clamp(17px, 2.6vw, 24px); color: var(--ink); }
h3 { font-size: clamp(13px, 1.7vw, 15px); color: var(--yellow); }
p { margin: 0 0 1em; }

.band > .wrap > h2 { margin-bottom: .3em; }
.sub { color: var(--muted); max-width: 62ch; margin-bottom: 2.2em; }

.eyebrow {
  font-family: var(--display); font-size: 10px; letter-spacing: 2px; color: var(--yellow);
  text-transform: uppercase; margin-bottom: 1.4em;
}

/* ---------------------------------------------------------- pixel panel */

.card, .tipbox, .phone, .table-wrap, .faq-item, .store, .picker-list {
  background: var(--panel);
  border: var(--pixel) solid var(--line);
  box-shadow: 0 var(--pixel) 0 0 rgba(0, 0, 0, .55);
}

/* ---------------------------------------------------------- header */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 26, .86);
  backdrop-filter: blur(8px);
  border-bottom: var(--pixel) solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-icon { image-rendering: pixelated; }
.brand-a { color: var(--cyan); }
.brand-b { color: var(--pink); }

.nav { display: flex; gap: 20px; margin-inline-start: auto; font-size: 16px; }
.nav a { color: var(--ink); opacity: .82; }
.nav a:hover { color: var(--cyan); opacity: 1; text-decoration: none; }
.nav-support { color: var(--yellow) !important; }

.lang { position: relative; }
.lang-btn {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--panel); border: 3px solid var(--line); padding: 6px 12px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--cyan); }
.globe { color: var(--cyan); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: var(--panel2); border: 3px solid var(--line); box-shadow: 0 6px 0 0 rgba(0, 0, 0, .5);
  display: none; min-width: 190px; padding: 6px; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 8px 12px; color: var(--ink); font-size: 16px; }
.lang-menu a:hover { background: var(--panel); color: var(--cyan); text-decoration: none; }
.lang-menu a[aria-current] { color: var(--yellow); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 4px 0; }

@media (max-width: 900px) {
  .nav {
    position: absolute; top: 64px; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--bg2); border-bottom: var(--pixel) solid var(--line); padding: 8px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; order: 3; }
  .lang { margin-inline-start: auto; }
}

/* ---------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; border-bottom: var(--pixel) solid var(--line); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-in {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 92px) 0;
}
.hero-copy { max-width: 620px; }
.logo { font-size: clamp(34px, 7vw, 62px); margin: 0 0 .25em; line-height: 1.1; }
.logo .brand-a { color: var(--cyan); text-shadow: 0 4px 0 #14506b; display: block; }
.logo .brand-b { color: var(--pink); text-shadow: 0 4px 0 #6b1c36; display: block; margin-inline-start: 1.2em; }
.tagline { font-size: clamp(20px, 2.6vw, 26px); color: var(--yellow); margin-bottom: .6em; }
.hero-text { color: var(--ink); opacity: .88; max-width: 52ch; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: default; }
.store-icon {
  width: 22px; height: 26px; background: var(--ink);
  clip-path: polygon(50% 0, 62% 14%, 62% 22%, 100% 46%, 86% 100%, 50% 84%, 14% 100%, 0 46%, 38% 22%, 38% 14%);
  opacity: .9;
}
.store-icon.play {
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
  width: 20px; background: var(--green);
}
.store-txt { display: flex; flex-direction: column; line-height: 1.2; }
.store-txt b { font-family: var(--display); font-size: 12px; }
.store-txt i { font-style: normal; font-size: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.chips li {
  font-size: 14px; color: var(--cyan); border: 2px solid rgba(94, 227, 255, .35);
  padding: 4px 10px; background: rgba(94, 227, 255, .07);
}

.btn {
  display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: 1px;
  background: var(--cyan); color: #04121a; padding: 14px 22px;
  border: var(--pixel) solid #0b2b38; box-shadow: 0 var(--pixel) 0 0 #0b2b38; transition: transform .08s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--cyan); border-color: var(--cyan); box-shadow: 0 var(--pixel) 0 0 rgba(94, 227, 255, .3); }
.btn.big { font-size: 14px; padding: 18px 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-phone { display: flex; justify-content: center; }
.phone { padding: 10px; background: #08070f; border-color: #2b2650; max-width: 320px; }
.phone img { display: block; image-rendering: auto; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-phone { order: -1; }
  .phone { max-width: 240px; }
  .logo .brand-b { margin-inline-start: 0; }
}

/* ---------------------------------------------------------- bands */

.band { padding: clamp(48px, 7vw, 90px) 0; }
.band.alt { background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)); border-block: var(--pixel) solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid.modes { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.pilots { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (min-width: 900px) { .grid.pilots { grid-template-columns: repeat(3, 1fr); } }
.cards.two { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 2em; }

.card { padding: 22px; }
.card h2, .card h3 { margin-bottom: .5em; }
.card p { color: var(--ink); opacity: .86; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block; font-family: var(--display); font-size: 9px; letter-spacing: 1px;
  color: var(--bg); background: var(--yellow); padding: 4px 8px; margin-bottom: 12px;
}
.mode-duel .tag { background: var(--pink); }
.mode-daily .tag { background: var(--orange); }
.mode-career .tag { background: var(--green); }
.mode-practice .tag { background: var(--cyan); }
.mode-duel { border-color: rgba(255, 92, 138, .5); }
.mode-daily { border-color: rgba(255, 154, 61, .5); }
.mode-career { border-color: rgba(99, 224, 122, .5); }
.mode-practice { border-color: rgba(94, 227, 255, .5); }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-inline-start: 22px; margin-bottom: 8px; font-size: 16px; color: var(--muted); }
.ticks li::before { content: '▸'; position: absolute; inset-inline-start: 0; color: var(--cyan); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding: 24px; background: var(--panel2); border-inline-start: var(--pixel) solid var(--cyan); }
.step-key { font-family: var(--display); font-size: 26px; color: rgba(94, 227, 255, .25); display: block; margin-bottom: 8px; }
.step h3 { color: var(--cyan); }
.step p { margin: 0; color: var(--ink); opacity: .85; }
.steps .step:nth-child(2) { border-color: var(--yellow); }
.steps .step:nth-child(2) h3, .steps .step:nth-child(2) .step-key { color: var(--yellow); }
.steps .step:nth-child(3) { border-color: var(--pink); }
.steps .step:nth-child(3) h3, .steps .step:nth-child(3) .step-key { color: var(--pink); }

.tipbox { padding: 22px 26px; border-color: rgba(255, 204, 77, .45); }
.tipbox h3 { color: var(--yellow); }
.tipbox ul { margin: 0; padding-inline-start: 20px; }
.tipbox li { margin-bottom: 8px; color: var(--ink); opacity: .88; }
.tipbox li:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- league */

.tiers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 30px; }
.tier {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 11px;
  padding: 10px 14px; background: var(--panel); border: 3px solid var(--line);
}
.tier-dot { width: 10px; height: 10px; display: inline-block; }
.tier-0 .tier-dot { background: #c07a3e; } .tier-0 { color: #d9a06a; }
.tier-1 .tier-dot { background: #c8d0e0; } .tier-1 { color: #dfe5f0; }
.tier-2 .tier-dot { background: var(--yellow); } .tier-2 { color: var(--yellow); }
.tier-3 .tier-dot { background: #7de0d0; } .tier-3 { color: #7de0d0; }
.tier-4 .tier-dot { background: var(--cyan); } .tier-4 { color: var(--cyan); }
.tier-5 .tier-dot { background: var(--purple); } .tier-5 { color: var(--purple); }
.tier-6 .tier-dot { background: var(--pink); } .tier-6 { color: var(--pink); box-shadow: 0 0 18px rgba(255, 92, 138, .35); }

.facts { list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0 0 26px; }
.facts li { display: flex; align-items: baseline; gap: 14px; border-inline-start: var(--pixel) solid var(--line); padding-inline-start: 16px; }
.facts b { font-family: var(--display); font-size: 30px; color: var(--cyan); }
.facts span { color: var(--muted); font-size: 16px; }
.league-text { max-width: 70ch; color: var(--ink); opacity: .88; }

.fair-card h3 { color: var(--green); }

/* ---------------------------------------------------------- pilots */

.pilot { text-align: center; }
.pilot img { image-rendering: pixelated; margin-bottom: 8px; }
.pilot h3 { color: var(--ink); margin-bottom: .4em; }
.pilot p { font-size: 15px; color: var(--muted); min-height: 3em; }
.stats { display: grid; gap: 6px; margin: 14px 0; text-align: start; }
.stat { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.stat > span { min-width: 74px; }
.bar { display: flex; gap: 3px; }
.bar i { width: 14px; height: 10px; background: rgba(255, 255, 255, .10); display: block; }
.stat:nth-child(1) .bar i.on { background: var(--cyan); }
.stat:nth-child(2) .bar i.on { background: var(--orange); }
.stat:nth-child(3) .bar i.on { background: var(--yellow); }
.stat:nth-child(4) .bar i.on { background: var(--pink); }
.cost { font-family: var(--display); font-size: 11px; color: var(--yellow); }
.cost i { font-style: normal; font-family: var(--body); font-size: 15px; margin-inline-end: 6px; }
.cost.free { color: var(--green); }

/* ---------------------------------------------------------- gallery */

.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; border: var(--pixel) solid var(--line); background: #08070f; }
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.press-gallery { margin-top: 24px; }

/* ---------------------------------------------------------- faq */

.faq { display: grid; gap: 12px; }
.faq-item { padding: 0; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-family: var(--display); font-size: 12px; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--cyan); font-size: 18px; }
.faq-item[open] summary::after { content: '–'; }
.faq-item[open] summary { color: var(--cyan); }
.faq-a { padding: 0 20px 18px; color: var(--ink); opacity: .86; }
.faq-a p { margin: 0; }

.cta { background: linear-gradient(180deg, rgba(255, 92, 138, .10), transparent); }

/* ---------------------------------------------------------- documents */

.doc { padding: 40px 0 70px; }
.doc-in { max-width: 820px; }
.doc h1 { margin-bottom: .4em; }
.doc h2 { color: var(--pink); margin-top: 1.8em; font-size: clamp(15px, 2vw, 19px); }
.doc h3 { color: var(--yellow); margin-top: 1.4em; }
.doc .lede { font-size: 20px; color: var(--ink); }
.doc-meta { color: var(--muted); font-size: 15px; margin-bottom: 2em; }
.crumb { font-size: 15px; margin-bottom: 1.6em; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 2px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
th { color: var(--cyan); font-weight: 400; background: rgba(94, 227, 255, .06); }
.facts-table th { width: 36%; white-space: nowrap; }

/* ---------------------------------------------------------- footer */

.foot { border-top: var(--pixel) solid var(--line); background: #0b0a15; padding: 50px 0 20px; }
.foot-in { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.foot-brand p { color: var(--muted); font-size: 16px; max-width: 34ch; }
.foot-brand .brand { font-size: 14px; margin-bottom: 12px; }
.foot-col h3 { font-size: 11px; color: var(--muted); margin-bottom: 1em; }
.foot-col a { display: block; color: var(--ink); opacity: .8; font-size: 16px; margin-bottom: 8px; }
.foot-col a:hover { color: var(--cyan); opacity: 1; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 2px solid var(--line); margin-top: 36px; padding-top: 18px; color: var(--muted); font-size: 14px;
}
.foot-langs { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-langs a { color: var(--muted); }
@media (max-width: 800px) { .foot-in { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------- picker / 404 */

.picker { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.picker-list { list-style: none; padding: 16px; display: grid; gap: 4px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.picker-list a { display: block; padding: 10px 14px; color: var(--ink); }
.picker-list a:hover { background: var(--panel2); color: var(--cyan); text-decoration: none; }

/* ---------------------------------------------------------- motion */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero-canvas { display: none; }
}
