/* koreanstake landing — no build step, no framework. Served with a strict CSP (no inline styles). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0f;
  --bg-2: #0f1117;
  --surface: #12141c;
  --surface-2: #171a24;
  --line: #232735;
  --line-2: #2e3344;
  --text: #eceef4;
  --text-2: #a4a9ba;
  --text-3: #6c7180;
  --accent: #ff4d5a;
  --accent-2: #4d7cff;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 20px 50px -20px rgb(0 0 0 / .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  font-feature-settings: "cv11", "ss03";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-aurora {
  position: absolute; inset: -20% -10% auto; height: 90vh; filter: blur(90px) saturate(1.1); opacity: .38;
  background:
    radial-gradient(40% 55% at 22% 30%, oklch(62% .22 20 / .55), transparent 70%),
    radial-gradient(35% 50% at 70% 20%, oklch(62% .2 262 / .5), transparent 70%),
    radial-gradient(30% 40% at 55% 70%, oklch(75% .17 60 / .35), transparent 70%);
  will-change: transform;
  animation: drift 26s var(--ease-out) infinite alternate;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 100%);
}
.bg-grain {  /* tiled 160px noise: far cheaper than a full-viewport feTurbulence filter */
  position: absolute; inset: 0; opacity: .16; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 5%, 0) scale(1.12); }
}

/* ---------- layout ---------- */
.top, main, .foot { width: min(1180px, 100% - clamp(32px, 6vw, 96px)); margin-inline: auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 34px; height: 34px; padding: 6px; border-radius: 10px; fill: var(--bg); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 20px -8px var(--accent); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--text-2); font-weight: 500; margin-left: .22em; }

.live { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex-shrink: 1; padding: 8px 13px 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in oklab, var(--surface) 80%, transparent); font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; backdrop-filter: blur(8px); }
.live-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: 0; }
.live-dot[data-state="ok"] { background: var(--ok); color: var(--ok); }
.live-dot[data-state="ok"]::after { animation: ping 2.4s ease-out infinite; }
.live-dot[data-state="partial"] { background: var(--warn); }
.live-dot[data-state="down"] { background: var(--bad); }
.live-dot[data-state="loading"] { animation: pulse 1.2s ease-in-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 12vh, 140px) 0 clamp(48px, 8vh, 96px); max-width: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.eyebrow-line { width: 28px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1.display { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -.04em; }
h1 .line { display: block; }
.glow { color: var(--text-2); }
.lede { margin-top: 24px; max-width: 56ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px;
  border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; cursor: pointer;
  transition: transform .25s var(--ease-out), background .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 10px 30px -12px rgb(255 255 255 / .5); }
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgb(255 255 255 / .6); }
.btn-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateY(3px); }
.btn-ghost { background: color-mix(in oklab, var(--surface) 70%, transparent); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn-ghost[disabled] { opacity: .5; cursor: default; transform: none; }

/* ---------- games ---------- */
.games { padding: 8px 0 24px; scroll-margin-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
h2.display { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.025em; }
.section-sub { color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.card {
  --hue: 220;
  --tint: oklch(70% .19 var(--hue));
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); perspective: 1200px;
}
.card-link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s var(--ease-out);
  will-change: transform;
}
.card-link::before {  /* cursor-tracking sheen */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgb(255 255 255 / .10), transparent 45%);
  transition: opacity .35s;
}
.card-link:hover, .card-link:focus-visible { border-color: color-mix(in oklab, var(--tint) 45%, var(--line)); box-shadow: var(--shadow), 0 30px 80px -30px color-mix(in oklab, var(--tint) 60%, transparent); }
.card-link:hover::before { opacity: 1; }
.card-link:focus-visible { outline-offset: 4px; }

.media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .8s var(--ease-out), filter .5s; filter: saturate(1.02); }
.card-link:hover .media img { transform: scale(1.07); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--surface) 92%, transparent) 100%); pointer-events: none; }

.status {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: 999px;
  background: rgb(8 9 12 / .72); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--text); font-variant-numeric: tabular-nums;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: pulse 1.2s ease-in-out infinite; }
.status[data-status="online"] .status-dot { background: var(--ok); box-shadow: 0 0 0 3px rgb(52 211 153 / .18); animation: none; }
.status[data-status="busy"] .status-dot { background: var(--ok); box-shadow: 0 0 0 3px rgb(52 211 153 / .18); animation: none; }
.status[data-status="offline"] .status-dot { background: var(--bad); animation: none; }
.status[data-status="unknown"] .status-dot { background: var(--text-3); animation: none; }

.body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; flex: 1; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.title { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.025em; line-height: 1.1; }
.badge { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in oklab, var(--tint) 85%, white); padding: 4px 9px; border-radius: 6px; background: color-mix(in oklab, var(--tint) 14%, transparent); border: 1px solid color-mix(in oklab, var(--tint) 28%, transparent); }
.desc { color: var(--text-2); font-size: 15px; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tags li { font-size: 12.5px; color: var(--text-2); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.play { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.play-arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.card-link:hover .play-arrow { transform: translateX(5px); }
.card[data-game="boomer"] { --hue: 32; }
.card[data-game="gtai"] { --hue: 240; }

/* ---------- colophon + footer ---------- */

.colophon { margin: 44px 0 0; padding: 4px 0; color: var(--text-2); font-size: 14.5px; max-width: 72ch; }
.colophon summary { cursor: pointer; font-weight: 600; color: var(--text); padding: 10px 0; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.colophon summary::-webkit-details-marker { display: none; }
.colophon summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .25s; margin-left: 2px; }
.colophon[open] summary::before { transform: rotate(45deg); }
.colophon p { padding-bottom: 8px; text-wrap: pretty; }

.foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 48px 0 40px; color: var(--text-3); font-size: 13.5px; }
.foot-sep { opacity: .5; }

/* ---------- motion + hover guards ---------- */
@media (hover: none) {
  .card-link { transform: none !important; }
  .card-link::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .card-link { transform: none !important; }
}
@media (max-width: 560px) {
  .top { padding: 16px 0; }
  .body { padding: 18px 18px 20px; }
  .title { font-size: 20px; }
}
