@font-face { font-family: Exposure; src: url('/fonts/exposure.woff2') format('woff2'); font-display: swap; font-weight: 400; }
@font-face { font-family: Geist; src: url('/fonts/geist-sans.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }
@font-face { font-family: Geist Mono; src: url('/fonts/geist-mono.woff2') format('woff2'); font-display: swap; font-weight: 400; }

/* CodeWall tokens (codewall.ai), shared with the stream page. */
:root {
  color-scheme: dark;
  --bg: #000;
  --light: #f0f0f0;
  --text: #ffffffeb;
  --muted: #ffffffa6;
  --dim: #ffffff6b;
  --border: #ffffff14;
  --border-strong: #ffffff29;
  --orange: #f99c00;
  --red: #fb2c36;
  --green: #00bb7f;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "Roboto Mono", monospace;
  --display: Exposure, Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, p, dl, dd, ol { margin: 0; padding: 0; }
a { color: inherit; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.top img { display: block; height: 22px; width: auto; }
.top nav { display: flex; gap: 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

.hero { padding: 56px 0 40px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 8vw, 88px); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.hero p { max-width: 640px; margin-top: 20px; font-size: 19px; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: end; }
.hero > :not(.balance) { grid-column: 1; }
.balance { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: grid; gap: 6px; min-width: 240px; padding: 22px 24px; border: 1px solid var(--border-strong); border-radius: 12px; }
.balance-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.balance-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.balance.live .balance-label i { background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
.balance strong { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--orange); white-space: nowrap; }
.balance:not(.live) strong { color: var(--dim); }
.balance strong small { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.balance a { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.balance a:not([href]) { text-decoration: none; }

.stream { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: #0a0a0a; }
.stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-poster { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 24px; }
.stream-poster strong { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 44px); color: #fff; }
.stream-poster span { font-family: var(--mono); font-size: 14px; color: var(--dim); }
.stream-poster a { color: var(--light); }
.live-mark { display: inline-flex; align-items: center; gap: 8px; justify-self: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.live-mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }


.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; padding-bottom: 40px; }
.rules article { padding: 28px; border-radius: 12px; }
.rules h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.rules ol { list-style: none; display: grid; gap: 10px; }
.rules li { padding-left: 20px; position: relative; }
.rules li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: currentColor; opacity: .5; }
.win { background: var(--light); color: #111; }
.win h2 { color: #000; }
.win a { color: #000; }
.rules code { font-family: var(--mono); font-size: .92em; }
.fine { border: 1px solid var(--border-strong); color: var(--muted); }
.fine h2 { color: #fff; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 0 40px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 13px; color: var(--dim); }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  .page { padding: 0 16px; }
  .top nav { gap: 14px; font-size: 12px; }
  .hero { padding: 32px 0 28px; }
  .hero p { font-size: 17px; }
  .hero { grid-template-columns: 1fr; }
  .balance { grid-column: 1; grid-row: auto; margin-top: 24px; min-width: 0; }
  .rules { grid-template-columns: 1fr; margin-top: 24px; }
  .rules article { padding: 22px; }
}
