:root {
  color-scheme: dark;
  --bg: #12100d;
  --panel: #1c1813;
  --panel-2: #251f17;
  --ink: #f6ead6;
  --muted: #c3af93;
  --dim: #8e7a60;
  --line: #3d3225;
  --accent: #f0b35b;
  --accent-2: #c66b3d;
  --ok: #8fbf7a;
  --warn: #f0b35b;
  --danger: #df6f55;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 179, 91, 0.12), transparent 32rem),
    linear-gradient(180deg, #17130f 0%, var(--bg) 42%, #0d0c0a 100%);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid rgba(246, 234, 214, 0.08);
  background: rgba(18, 16, 13, 0.86);
  backdrop-filter: blur(16px);
}
.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
}
nav a, .lang-switch a { text-decoration: none; }
nav a:hover, .lang-switch a:hover { color: var(--accent); }
.lang-switch {
  display: flex;
  gap: 0.35rem;
  color: var(--dim);
  font-size: 0.86rem;
}
main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  padding: clamp(4rem, 9vw, 7rem) 0 3rem;
}
.eyebrow, .stamp, .status-pill, .meta {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}
h1 {
  margin: 0.15rem 0 1rem;
  font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: 0.84;
  letter-spacing: -0.09em;
}
.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  background: var(--accent);
  color: #1b1308;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button.secondary { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.execution-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(150deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
}
.execution-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -22% 20%;
  height: 170px;
  border: 1px solid rgba(240, 179, 91, 0.28);
  border-radius: 999px 999px 0 0;
  transform: rotate(-8deg);
}
.execution-card h2 { margin: 4rem 0 1rem; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 0.95; letter-spacing: -0.06em; }
.execution-card p:last-child { color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
section { padding: 3rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.07em; }
.section-head p { max-width: 560px; color: var(--muted); line-height: 1.55; }
.bets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bet-card, .template-shell, .rules {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(28, 24, 19, 0.78);
  box-shadow: 0 16px 46px rgba(0,0,0,0.18);
}
.bet-card { padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.bet-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.bet-status { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.55rem; color: var(--muted); font-size: 0.78rem; }
.bet-card h3 { margin: 0; font-size: 1.45rem; letter-spacing: -0.04em; }
.bet-field { margin: 0; color: var(--muted); line-height: 1.45; }
.bet-field strong { display: block; color: var(--ink); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 0.2rem; }
.bet-field.kill strong { color: var(--danger); }
.feed-status { grid-column: 1 / -1; color: var(--muted); }
.template-shell { padding: 1rem; }
pre {
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #0b0a08;
  color: #f6ead6;
  border: 1px solid rgba(246, 234, 214, 0.08);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.copy-result { color: var(--muted); min-height: 1.4em; }
.rules { padding: 1.4rem 1.8rem; margin-bottom: 4rem; }
ol { color: var(--muted); line-height: 1.8; padding-left: 1.5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  nav { order: 3; width: 100%; margin-left: 0; }
  .hero, .bets-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  h1 { font-size: clamp(3.6rem, 18vw, 6.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
