:root {
  --ink: #111111;
  --paper: #fbf6e8;
  --soft: #f2e8d1;
  --red: #e53e3d;
  --green: #168a61;
  --blue: #235b8f;
  --muted: #615c52;
  --line: rgba(17, 17, 17, .16);
  --shadow: 6px 6px 0 rgba(17, 17, 17, .92);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: #111;
  border-bottom: 4px solid var(--red);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-svg {
  display: block;
  width: clamp(190px, 24vw, 270px);
  height: auto;
}

.footer-logo-svg {
  width: min(260px, 100%);
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  color: #f8f1df;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid #f8f1df;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #f8f1df;
}

.hero,
.section,
.legal-page {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17,17,17,.88), rgba(35,91,143,.76)),
    url("/assets/img/table.webp") center right / contain no-repeat,
    var(--ink);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border: 2px solid var(--red);
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.02;
  text-transform: uppercase;
}

h1 { font-size: clamp(44px, 8vw, 92px); max-width: 880px; }
h2 { font-size: clamp(30px, 5vw, 54px); margin-bottom: 24px; }
h3 { font-size: 24px; }

.hero p,
.section-lead,
.legal-page p,
.feature p,
.upgrade-card p { color: var(--muted); }
.hero p { color: #ded7c9; max-width: 620px; font-size: 18px; }

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button:disabled { opacity: .55; cursor: not-allowed; }

.hero-panel,
.feature,
.upgrade-card,
.game-panel,
.mini-card {
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-panel { padding: 24px; color: var(--ink); }
.hero-panel img { display: block; margin: 0 auto 18px; max-height: 260px; object-fit: contain; }
.hero-panel p { color: var(--muted); }

.features,
.upgrade-grid,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mt-24 { margin-top: 24px; }

.feature,
.upgrade-card,
.mini-card { padding: 24px; }

.feature b,
.price {
  display: block;
  color: var(--red);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 40px;
  align-items: center;
}

.dark-band {
  background: var(--ink);
  color: #fff;
}

.dark-band p { color: #d6cfbf; }

.game-layout {
  display: grid;
  grid-template-columns: minmax(280px, 680px) minmax(260px, 360px);
  gap: 24px;
  align-items: start;
}

.game-panel { padding: clamp(16px, 3vw, 28px); }
.wheel-wrap { display: grid; place-items: center; }
.wheel-wrap canvas { width: min(100%, 520px); aspect-ratio: 1; }

.controls {
  display: grid;
  gap: 14px;
}

.controls label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font: inherit;
}

.balance {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.result {
  min-height: 64px;
  padding: 12px;
  border: 2px dashed var(--line);
  background: var(--soft);
}

.history {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.history li { padding: 8px 10px; background: var(--soft); }
.history .win { color: var(--green); font-weight: 800; }
.history .lose { color: var(--red); font-weight: 800; }

.legal-page {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page article {
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.legal-page h1 { color: var(--ink); font-size: clamp(38px, 7vw, 72px); }
.legal-page h2 { margin-top: 34px; font-size: 26px; }
.legal-page ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.legal-page li + li { margin-top: 8px; }

.site-footer {
  padding: 40px clamp(16px, 4vw, 48px) 24px;
  background: #111;
  color: #f8f1df;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 28px;
}

.site-footer p { color: #cfc6b4; margin: 10px 0 0; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: #f8f1df; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #cfc6b4;
}

.cookie-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 14px;
  background: #111;
  color: #fff;
  border: 2px solid var(--red);
  z-index: 30;
}

.cookie-note.is-visible { display: flex; }
.cookie-note p { margin: 0; font-size: 14px; }
.cookie-note a { color: #fff; }
.cookie-note button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 9px 12px;
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
  }
  .site-nav.is-open { display: flex; }
  .hero,
  .split,
  .game-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .features,
  .upgrade-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; background-size: cover; }
  .footer-bottom,
  .cookie-note { flex-direction: column; align-items: flex-start; }
}
