/* Run and Gun 2 Online - one page, a night arena: dark floor, ball orange, scoreboard LEDs, court lines */
:root {
  --ink: #090a0f;
  --ink-2: #0f1118;
  --ink-3: #161923;
  --line: rgba(255, 255, 255, .09);
  --text: #eef0f6;
  --muted: #9ba1b0;
  --orange: #ff6a1a;
  --orange-2: #ffa043;
  --wood: #d99a57;
  --led: #ff4433;
  --led-amber: #ffb340;
  --display: "Anton", "Black Han Sans", Impact, "Arial Narrow", sans-serif;
  --display-ko: "Black Han Sans", "Anton", "Malgun Gothic", sans-serif;
  --body: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.7 var(--body);
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(9, 10, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 20px/1 var(--display); letter-spacing: .04em; }
.brand b { font-weight: 400; color: var(--orange); }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.links a.dl { color: var(--ink); background: var(--orange); font-weight: 700; }
.links a.dl:hover { background: var(--orange-2); color: var(--ink); }
.lang {
  font: 700 12px/1 var(--body); letter-spacing: .08em; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; cursor: pointer;
}
.lang:hover { border-color: rgba(255, 255, 255, .3); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 94vh, 900px);
  display: flex; align-items: center;
  background: radial-gradient(120% 90% at 70% 30%, #1a1410 0%, var(--ink) 60%);
}
#court { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 10, 15, .92) 0%, rgba(9, 10, 15, .72) 30%, rgba(9, 10, 15, 0) 58%),
    linear-gradient(0deg, var(--ink) 0%, rgba(9, 10, 15, 0) 22%),
    linear-gradient(180deg, rgba(9, 10, 15, .6) 0%, rgba(9, 10, 15, 0) 18%);
}
.hero-copy { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter) 80px; }
.hero-copy > * { max-width: 560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
h1 { margin: 18px 0 22px; line-height: .86; }
.h-main {
  display: block; font: 400 clamp(60px, 10.5vw, 148px)/.86 var(--display); letter-spacing: .005em;
  background: linear-gradient(180deg, #fff 35%, #ffd2ad 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.h-online { font: 400 clamp(44px, 7.4vw, 104px)/.9 var(--display); color: transparent; -webkit-text-stroke: 2px var(--orange); letter-spacing: .02em; }
.h-ko { font: 400 clamp(20px, 2.2vw, 28px)/1.2 var(--display-ko); color: var(--orange); }
.lede { font-size: clamp(16px, 1.5vw, 18px); color: #cfd3dd; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 16px/1 var(--body); padding: 16px 24px; border-radius: 999px; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary {
  color: #1a0b02; background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 10px 30px -8px rgba(255, 106, 26, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 106, 26, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .5); }
.btn.big { padding: 20px 30px; font-size: 18px; }
.meta { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* the LED board in the corner: score + shot clock */
.board {
  position: absolute; right: var(--gutter); top: calc(84px + env(safe-area-inset-top, 0px));
  display: flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: #050507; border: 1px solid #23252e; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.board .cell { display: flex; flex-direction: column; align-items: center; padding: 8px 14px 6px; background: #0c0d12; border-radius: 7px; min-width: 74px; }
.board .lbl { font: 700 10px/1 var(--body); letter-spacing: .2em; color: #7d8291; }
.board .num {
  font: 400 34px/1.15 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .06em;
  color: var(--led); text-shadow: 0 0 10px rgba(255, 68, 51, .75), 0 0 2px #ffb3a8;
}
.board .clock .num { color: var(--led-amber); text-shadow: 0 0 10px rgba(255, 179, 64, .7), 0 0 2px #ffe2b0; }
.board .num.flash { animation: flash .9s ease-out; }
@keyframes flash { 0%, 30% { color: #fff; text-shadow: 0 0 18px #fff; } 100% { } }

html.no-webgl .hero { background: linear-gradient(90deg, var(--ink) 30%, rgba(9, 10, 15, .4)), url(shot_game.jpg) right center / cover no-repeat; }
html.no-webgl #court, html.no-webgl .board { display: none; }

/* ---------------------------------------------------------------- stats strip */
.stats {
  max-width: var(--wrap); margin: -36px auto 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(22, 25, 35, .9), rgba(15, 17, 24, .9));
  backdrop-filter: blur(10px);
}
.stat { padding: 26px var(--gutter) 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n { font: 400 clamp(38px, 4.4vw, 56px)/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .45em; color: var(--orange); margin-left: 4px; font-family: var(--display-ko); }
.stat .l { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- sections */
section.features, section.start, section.download { padding-block: clamp(80px, 11vw, 140px); }
.head { max-width: 680px; margin-bottom: 44px; }
.kicker { font: 400 14px/1 var(--display); letter-spacing: .3em; color: var(--orange); margin-bottom: 14px; }
h2 { font: 400 clamp(34px, 4.6vw, 58px)/1.08 var(--display-ko); letter-spacing: -.005em; }
html[lang="en"] h2 { font-family: var(--display); letter-spacing: .01em; }
.sub { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* the two team monitors */
.screens {
  margin: 0 0 56px; position: relative;
  border-radius: 16px; overflow: hidden; border: 1px solid #2a2d38;
  box-shadow: 0 40px 90px -30px rgba(255, 106, 26, .35), 0 0 0 6px #0d0f15;
}
.screens::after { /* the seam between the two monitors */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; transform: translateX(-50%);
  background: #0d0f15;
}
.screens figcaption {
  position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr 1fr;
  font-size: 13px; font-weight: 500; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}
.screens figcaption span { padding: 30px 18px 12px; }

.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feat li { background: var(--ink); padding: 28px 26px 30px; position: relative; }
.feat li::before { /* a little three-point arc */
  content: ""; display: block; width: 34px; height: 17px; margin-bottom: 18px;
  border: 2px solid var(--orange); border-bottom: 0; border-radius: 34px 34px 0 0;
}
.feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- start */
.start { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); position: relative; overflow: hidden; }
.start::before { /* the free-throw circle and lane, very faint */
  content: ""; position: absolute; right: -180px; top: 60px; width: 520px; height: 520px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .04); pointer-events: none;
}
.start-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2;
  font: 400 44px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--orange);
}
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.launcher { margin: 0; }
.launcher img { border-radius: 12px; border: 1px solid #2a2d38; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.launcher figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.mode { position: relative; padding: 26px 24px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); }
.mode .tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--orange-2); margin-bottom: 10px; }
.mode p:not(.tag) { color: #c5c9d4; font-size: 15px; }
.mode code { display: inline-block; margin-top: 14px; font: 500 13px/1 ui-monospace, Consolas, monospace; color: var(--led-amber); background: #0a0b10; border: 1px solid #2b2e39; padding: 7px 10px; border-radius: 6px; }

/* ---------------------------------------------------------------- download */
.dl-panel {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 106, 26, .28), rgba(255, 106, 26, 0) 60%),
    linear-gradient(135deg, #1b1510, #0f1016 60%);
  border: 1px solid rgba(255, 160, 67, .22);
}
.dl-panel::before { /* a centre circle, very faint */
  content: ""; position: absolute; pointer-events: none; border: 2px solid rgba(255, 255, 255, .05);
  width: 360px; height: 360px; border-radius: 50%; right: -120px; bottom: -180px;
}
.dl-copy { position: relative; }
.dl-copy .btn { margin-top: 28px; }
.dl-note { margin-top: 12px; font-size: 14px; color: var(--orange-2); }
.req { margin: 0; position: relative; display: grid; gap: 0; border-top: 1px solid var(--line); }
.req div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.req dt { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.req dd { margin: 0; font-size: 15px; }
.rom-note {
  margin-top: 20px; padding: 14px 18px; border-radius: 12px; font-size: 14px;
  color: #ffd9a8; background: rgba(255, 160, 67, .08); border: 1px solid rgba(255, 160, 67, .25);
}

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot p { font-size: 13px; color: #6f7584; }
.foot p + p { margin-top: 6px; }

/* ---------------------------------------------------------------- reveal (only with JS; the page reads fine without it) */
html.js .rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js .rv:not(.in) { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv:not(.in) { opacity: 1; transform: none; }
  .board .num.flash { animation: none; }
}

/* ---------------------------------------------------------------- narrow */
@media (max-width: 960px) {
  .feat { grid-template-columns: 1fr 1fr; }
  .start-grid { grid-template-columns: 1fr; }
  .dl-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links a:not(.dl) { display: none; }
  .hero { align-items: flex-end; min-height: 640px; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(9, 10, 15, .92) 34%, rgba(9, 10, 15, 0) 62%),
      linear-gradient(180deg, rgba(9, 10, 15, .6) 0%, rgba(9, 10, 15, 0) 18%);
  }
  .hero-copy { padding-top: 300px; padding-bottom: 72px; }
  .board { top: calc(70px + env(safe-area-inset-top, 0px)); }
  .board .cell { min-width: 58px; padding: 6px 10px 4px; }
  .board .num { font-size: 26px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feat { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .screens figcaption { font-size: 11px; }
  .screens figcaption span { padding: 20px 10px 8px; }
  .req div { grid-template-columns: 80px 1fr; }
}
@media (max-width: 420px) {
  .brand span { font-size: 17px; }
  .nav { gap: 12px; }
}
