:root {
  --bg: #060706;
  --bg-alt: #0b0d0b;
  --card: #101210;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6f3;
  --muted: #9aa39a;
  --accent: #9dff2e;
  --accent-dim: #6bb821;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --fs-scale: 1;
  --radius: 18px;
}

html { font-size: calc(16px * var(--fs-scale)); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.accent { color: var(--accent); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 6, 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  border: 1px solid var(--accent-dim);
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--accent) !important;
}
.nav__cta:hover { background: var(--accent); color: var(--bg) !important; }

/* One continuous film.
 * The stage stays pinned for the whole sequence; segments hand over on their
 * shared boundary frame, so the picture never jumps between them.
 * In "anim" mode each segment plays at native speed with scroll held.
 * With animation off, the clips are skipped and each segment shows its
 * closing pose right away. */
.film {
  position: relative;
  height: 400vh; /* one viewport per segment */
}
.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #050604;
}

.film__video,
.film__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: 1;
  background: #050604;
}
.film__video {
  opacity: 0;
  transition: opacity 0.25s linear;
}
.film__video.is-active { opacity: 1; }

/* Animation off: the clips step aside and each segment's closing pose is
   shown immediately, so the reader never waits for a performance. */
.film__still { display: none; z-index: 1; }
body.no-anim .film__video { display: none; }
body.no-anim .film__still { display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.film__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: background 1s ease;
  background:
    linear-gradient(90deg, rgba(4, 6, 4, 0.92) 0%, rgba(4, 6, 4, 0.72) 40%, rgba(4, 6, 4, 0.2) 66%, rgba(4, 6, 4, 0.4) 100%),
    linear-gradient(180deg, rgba(4, 6, 4, 0.7) 0%, rgba(4, 6, 4, 0) 32%, rgba(4, 6, 4, 0.55) 100%);
}
.film__scrim.is-soft {
  background:
    linear-gradient(90deg, rgba(4, 6, 4, 0.55) 0%, rgba(4, 6, 4, 0.2) 45%, rgba(4, 6, 4, 0.05) 75%),
    linear-gradient(180deg, rgba(4, 6, 4, 0.5) 0%, rgba(4, 6, 4, 0) 35%, rgba(4, 6, 4, 0.5) 100%);
}

.film__copy {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(calc(-50% + 26px));
  max-width: 620px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}
.film__copy.is-visible {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}
.film__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.film__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
}
.film__copy p {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 430px;
  margin-bottom: 34px;
}
.film__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 999px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: #06110a;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(157, 255, 46, 0.25);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent; /* <button> would otherwise keep the UA default */
}
.btn--ghost:hover { border-color: var(--accent-dim); color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}


/* Stands in for the scroll wheel where there isn't one. */
.next-step {
  position: absolute;
  right: 8%;
  bottom: 44px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent-dim);
  background: rgba(9, 12, 9, 0.72);
  backdrop-filter: blur(10px);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.4s ease;
}
.next-step:hover {
  background: var(--accent);
  color: #06110a;
  transform: translateY(-2px);
}
.next-step__arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.next-step:hover .next-step__arrow { transform: translateX(4px); }
.next-step.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Playback controls, bottom right */
.controls {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 11, 9, 0.82);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.ctrl:hover { border-color: var(--accent-dim); color: var(--text); }
.ctrl--icon { padding: 9px 12px; font-size: 0.95rem; }

.ctrl__switch {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #242a20;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.ctrl__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6e7a68;
  transition: transform 0.25s ease, background 0.25s ease;
}
.ctrl[aria-pressed="true"] .ctrl__switch { background: rgba(157, 255, 46, 0.28); }
.ctrl[aria-pressed="true"] .ctrl__knob {
  transform: translateX(16px);
  background: var(--accent);
}
.ctrl[aria-pressed="true"] .ctrl__label { color: var(--accent); }

@media (max-width: 860px) {
  .film__copy { left: 6%; max-width: 84%; }
  .film__video, .film__frame { object-position: 68% center; }
  .controls { right: 12px; bottom: 12px; }
  .ctrl__label { display: none; }
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint span {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--accent), transparent);
}

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 120px 32px; }
.section--alt { background: var(--bg-alt); max-width: none; }
.section--alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 60px; }
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.card__icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature__num {
  display: block;
  font-family: var(--font-display);
  color: var(--accent-dim);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.feature h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

.cta-band {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 32px 140px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin-bottom: 18px;
}
.cta-band p { color: var(--muted); margin-bottom: 34px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer__logo { height: 26px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .film__copy p { max-width: none; }
  .cards, .features { grid-template-columns: 1fr; }
}

/* ==================================================================
   Shop — catalogue with filters and sorting
   ================================================================== */
.page-shop { background: var(--bg); }
.nav__links a.is-current { color: var(--accent); }

.shop-head {
  padding: 150px 8% 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.shop-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}
.shop-head p { color: var(--muted); max-width: 520px; }

.shop {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 8% 120px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 46px;
  align-items: start;
}

/* Filters */
.filters {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
}
.filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.filters__head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.filters__reset {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.filters__reset:hover { color: var(--accent); }

.filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.filter-group:first-of-type { border-top: 0; }
.filter-group h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.filter-list { display: flex; flex-direction: column; gap: 9px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--text);
}
.check input {
  appearance: none;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0a0c0a;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked::after {
  content: "✓";
  display: block;
  color: #06110a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 15px;
}
.check em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.price-range { display: flex; gap: 10px; margin-bottom: 14px; }
.price-range label { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.price-range span { font-size: 0.72rem; color: var(--muted); }
.price-range input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0a0c0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.price-range input:focus { outline: none; border-color: var(--accent-dim); }
.price-range__note { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.price-range__note strong { color: var(--accent); font-weight: 500; }

.price-slider {
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #242a20;
  cursor: pointer;
}
.price-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.price-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* Results */
.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.results__count { color: var(--muted); font-size: 0.9rem; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort span { font-size: 0.8rem; color: var(--muted); }
.sort select {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.85rem;
  cursor: pointer;
}
.sort select:focus { outline: none; border-color: var(--accent-dim); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-dim);
  background: rgba(157, 255, 46, 0.08);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  cursor: pointer;
}
.chip:hover { background: rgba(157, 255, 46, 0.18); }
.chip span { opacity: 0.7; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.card-p {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card-p:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.card-p.is-out { opacity: 0.72; }

.card-p__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a0d0a;
  overflow: hidden;
}
.card-p__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-p:hover .card-p__media img { transform: scale(1.05); }

.card-p__badge,
.card-p__out {
  position: absolute;
  top: 12px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
}
.card-p__badge { left: 12px; background: var(--accent); color: #06110a; }
.card-p__out { right: 12px; background: rgba(6, 8, 6, 0.85); color: var(--muted); border: 1px solid var(--line); }

.card-p__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-p__cat {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 8px;
}
.card-p__body h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.card-p__body p { color: var(--muted); font-size: 0.87rem; flex: 1; }
.card-p__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-p__price { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.card-p__mat { font-size: 0.75rem; color: var(--muted); }

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; gap: 26px; padding: 20px 6% 90px; }
  .filters { position: static; }
  .shop-head { padding: 120px 6% 30px; }
  .results__bar { flex-direction: column; align-items: flex-start; }
}

/* ==================================================================
   Wheel of fortune — club members spin for a reward
   ================================================================== */
.wheel-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 8% 110px;
}

/* Join gate */
.gate { display: flex; justify-content: center; padding: 20px 0 40px; }
.gate__card {
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 34px;
}
.gate__card h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 10px; }
.gate__card > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input {
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #0a0c0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus { outline: none; border-color: var(--accent-dim); }
.field__error { color: #ff8f6b; font-size: 0.85rem; margin-bottom: 14px; }
.gate__card .btn { width: 100%; text-align: center; border: 0; cursor: pointer; }

/* Wheel */
.wheel-area {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 56px;
  align-items: center;
  padding: 20px 0 60px;
}
.wheel-wrap { position: relative; aspect-ratio: 1; }

.wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #0d100d;
  box-shadow: 0 0 0 2px var(--accent-dim), 0 30px 70px rgba(0, 0, 0, 0.6);
  transition: transform 4.6s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.wheel__labels { position: absolute; inset: 0; }
.wheel__label {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  transform-origin: 50% 50%;
  pointer-events: none;
}
.wheel__label em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.wheel__label.is-jackpot em { color: #06110a; }

.wheel__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24%;
  aspect-ratio: 1;
  z-index: 2;
  border-radius: 50%;
  background: #0a0c0a;
  border: 2px solid var(--accent-dim);
  display: grid;
  place-items: center;
}
.wheel__hub img { width: 58%; }

.wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid var(--accent);
  z-index: 3;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.wheel-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.member { display: flex; flex-direction: column; }
.member__hi { font-family: var(--font-display); font-size: 1.25rem; }
.member__mail { color: var(--muted); font-size: 0.85rem; }

.wheel__spin { border: 0; cursor: pointer; font-size: 1rem; padding: 16px 40px; }
.wheel__spin:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.wheel__status { color: var(--muted); font-size: 0.88rem; }

.result {
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  background: rgba(157, 255, 46, 0.07);
  padding: 18px 22px;
  width: 100%;
}
.result__label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.result__prize { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin: 4px 0 10px; }
.result__code { font-size: 0.9rem; color: var(--muted); }
.result__code.is-code {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--text);
  background: #0a0c0a;
  border: 1px dashed var(--accent-dim);
  border-radius: 9px;
  padding: 9px 13px;
  display: inline-block;
}

.history { width: 100%; }
.history h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.history ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.history li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.history em { font-style: normal; color: var(--muted); font-family: var(--font-display); font-size: 0.8rem; }

.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.linkish:hover { color: var(--accent); }

/* Prize table */
.prize-table {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  max-width: 620px;
}
.prize-table h2 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 18px; }
.prize-table ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.prize-table li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.prize-table em { font-style: normal; color: var(--muted); font-family: var(--font-display); font-size: 0.85rem; }
.disclaimer { color: var(--muted); font-size: 0.8rem; margin-top: 18px; }

@media (max-width: 900px) {
  .wheel-page { padding: 10px 6% 80px; }
  .wheel-area { grid-template-columns: 1fr; gap: 32px; }
  .wheel-wrap { max-width: 380px; margin: 0 auto; }
}

/* `hidden` must win over the display values set above. */
[hidden] { display: none !important; }

/* ==================================================================
   Admin
   ================================================================== */
.nav__login { color: var(--accent) !important; }

.page-admin { background: var(--bg); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 100px 20px; }
.admin-login .gate__card h2 { margin-bottom: 8px; }
.admin-login .gate__card > p { margin-bottom: 22px; }
.admin-login .btn { width: 100%; border: 0; cursor: pointer; }

.admin { max-width: 1100px; margin: 0 auto; padding: 120px 6% 100px; }
.admin__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.admin__head h1 { font-family: var(--font-display); font-size: 2rem; }
.admin__actions { display: flex; align-items: center; gap: 14px; }
.admin__actions .btn { border: 0; cursor: pointer; }

.save-state { font-size: 0.84rem; color: var(--muted); }
.save-state.is-dirty { color: #ffcf6b; }
.save-state.is-ok { color: var(--accent); }
.save-state.is-error { color: #ff8f6b; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 10px 14px;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.panel { display: none; }
.panel.is-active { display: block; }
.panel__hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
.panel__hint code {
  background: #0a0c0a;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.82em;
}
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.btn--sm { padding: 9px 18px; font-size: 0.82rem; cursor: pointer; }

.group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.group summary {
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.group summary::marker { color: var(--accent-dim); }
.group__body { padding: 6px 18px 20px; display: flex; flex-direction: column; gap: 12px; }

.edit-row { display: flex; flex-direction: column; gap: 5px; }
.edit-row > span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.edit-row input,
.edit-row textarea,
.edit-row select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0a0c0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
}
.edit-row input:focus,
.edit-row textarea:focus,
.edit-row select:focus { outline: none; border-color: var(--accent-dim); }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

.product summary img { width: 42px; height: 32px; object-fit: cover; border-radius: 6px; }
.product summary em { font-style: normal; color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.product summary .tag {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.danger {
  align-self: flex-start;
  background: none;
  border: 1px solid rgba(255, 120, 90, 0.4);
  color: #ff8f6b;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  cursor: pointer;
}
.danger:hover { background: rgba(255, 120, 90, 0.12); }

.cat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.cat-cols h3 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 12px; }
.tax-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.tax-row input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0a0c0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.tax-row code { font-size: 0.75rem; color: var(--muted); }
.tax-row .danger { padding: 6px 12px; }

.account-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 22px;
  margin-bottom: 16px;
  max-width: 460px;
}
.account-box h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 14px; }
.account-box .btn { border: 0; cursor: pointer; }

/* ==================================================================
   Product detail & basket
   ================================================================== */
.nav__cart { display: inline-flex; align-items: center; gap: 7px; }
.nav__cart.is-current { color: var(--accent); }
.cart-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #06110a;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.detail { max-width: 1200px; margin: 0 auto; padding: 130px 8% 110px; }
.detail__loading, .detail__missing { padding: 60px 0; color: var(--muted); }
.detail__missing h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--text); margin-bottom: 10px; }
.detail__missing .btn { margin-top: 20px; }

.crumbs { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs strong { color: var(--text); font-weight: 500; }

.detail__main { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; }
.detail__media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #0a0d0a;
  aspect-ratio: 4 / 3;
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }

.detail__info h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.detail__price { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); margin-bottom: 18px; }
.detail__desc { color: var(--muted); margin-bottom: 24px; }

.specs { border-top: 1px solid var(--line); margin-bottom: 26px; }
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.specs dt { color: var(--muted); }

.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.buy .btn { border: 0; cursor: pointer; flex: 1; min-width: 190px; }
.buy__note { margin-top: 12px; font-size: 0.87rem; color: var(--accent); }
.buy__note a { text-decoration: underline; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button {
  width: 40px; height: 46px;
  background: none; border: 0;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
}
.qty button:hover { color: var(--accent); }
.qty input {
  width: 46px; height: 46px;
  border: 0; background: none;
  color: var(--text);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 32px; height: 36px; font-size: 1rem; }
.qty--sm input { width: 38px; height: 36px; font-size: 0.88rem; }

.detail__ship { margin-top: 22px; font-size: 0.84rem; color: var(--muted); }

.related { margin-top: 80px; }
.related h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 22px; }

/* Basket */
.basket {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 8% 110px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.basket__empty { padding: 50px 0; }
.basket__empty h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.basket__empty p { color: var(--muted); margin-bottom: 22px; }

.line {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.line__media { border-radius: 12px; overflow: hidden; background: #0a0d0a; aspect-ratio: 4/3; }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__body { display: flex; flex-direction: column; gap: 3px; }
.line__name { font-family: var(--font-display); font-size: 1rem; }
.line__name:hover { color: var(--accent); }
.line__unit { color: var(--muted); font-size: 0.82rem; }
.line__flag { color: #ffcf6b; font-size: 0.78rem; }
.line__price { font-family: var(--font-display); font-size: 1rem; min-width: 92px; text-align: right; }
.line__remove {
  background: none; border: 0;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}
.line__remove:hover { color: #ff8f6b; }

.basket__summary {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
}
.basket__summary h2 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; }
.sum { margin-bottom: 14px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.92rem; }
.sum dt { color: var(--muted); }
.sum__total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px !important;
  font-family: var(--font-display);
  font-size: 1.1rem !important;
}
.sum__total dt { color: var(--text) !important; }
.sum__total dd { color: var(--accent); }
.sum__note { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.basket__summary .btn { width: 100%; text-align: center; border: 0; cursor: pointer; margin-bottom: 12px; }
.basket__summary .linkish { display: block; margin: 0 auto; }

@media (max-width: 900px) {
  .detail { padding: 110px 6% 80px; }
  .detail__main { grid-template-columns: 1fr; gap: 28px; }
  .basket { grid-template-columns: 1fr; padding: 10px 6% 80px; }
  .basket__summary { position: static; }
  .line { grid-template-columns: 64px 1fr auto; row-gap: 10px; }
  .line__price { grid-column: 2 / -1; text-align: left; }
  .line__remove { grid-row: 1; grid-column: 3; }
}

/* Image picker inside the product editor */
.pic { display: flex; align-items: center; gap: 10px; }
.pic__preview {
  width: 54px; height: 40px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.pic input[type="text"] { flex: 1; }
.pic__btn {
  white-space: nowrap;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  cursor: pointer;
}
.pic__btn:hover { background: rgba(157, 255, 46, 0.12); }

/* ==================================================================
   Story page
   ================================================================== */
.story-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 8% 90px;
  overflow: hidden;
}
.story-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.story-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,6,4,0.93) 0%, rgba(4,6,4,0.72) 45%, rgba(4,6,4,0.3) 75%),
    linear-gradient(180deg, rgba(4,6,4,0.8) 0%, rgba(4,6,4,0) 35%, rgba(4,6,4,0.9) 100%);
}
.story-hero__copy { position: relative; z-index: 2; max-width: 620px; }
.story-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 20px;
}
.story-hero p { color: var(--muted); font-size: 1.05rem; max-width: 460px; }
.story-hero .scroll-hint { z-index: 2; }

.story { max-width: 1100px; margin: 0 auto; padding: 90px 8% 40px; }

.chapter {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.chapter--flip { grid-template-columns: 60px 1fr 340px; }
.chapter__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-dim);
  padding-top: 6px;
}
.chapter__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 16px;
}
.chapter__body p { color: var(--muted); margin-bottom: 14px; max-width: 620px; }
.chapter__media { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.chapter__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.chapter__media figcaption {
  padding: 11px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--card);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0 70px;
}
.number { text-align: center; }
.number strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.1;
}
.number span { color: var(--muted); font-size: 0.85rem; }

.values { margin-bottom: 40px; }
.values h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 28px; }
.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.values__grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 26px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.values__grid article:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.values__icon { color: var(--accent); font-size: 1.4rem; display: block; margin-bottom: 14px; }
.values__grid h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 9px; }
.values__grid p { color: var(--muted); font-size: 0.9rem; }

.story__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==================================================================
   Contact page
   ================================================================== */
.contact {
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 8% 110px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  align-items: start;
}
.contact__form {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 30px;
}
.contact__form .btn { border: 0; cursor: pointer; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form select,
.contact__form textarea {
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #0a0c0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  resize: vertical;
}
.contact__form select:focus,
.contact__form textarea:focus { outline: none; border-color: var(--accent-dim); }
.contact__note { color: var(--muted); font-size: 0.8rem; margin-top: 14px; }

.contact__side { display: flex; flex-direction: column; gap: 18px; }
.contact__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
}
.contact__card h2 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 16px; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; flex-direction: column; gap: 3px; }
.contact__list span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact__list a { color: var(--accent); }
.contact__list a:hover { text-decoration: underline; }
.contact__list strong { font-weight: 400; font-size: 0.92rem; }

.faq { border-top: 1px solid var(--line); padding: 12px 0; }
.faq:first-of-type { border-top: 0; padding-top: 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 4px 0;
}
.faq summary::marker { color: var(--accent-dim); }
.faq p { color: var(--muted); font-size: 0.87rem; padding: 8px 0 4px; }

@media (max-width: 900px) {
  .story-hero { padding: 120px 6% 80px; }
  .story { padding: 60px 6% 30px; }
  .chapter, .chapter--flip { grid-template-columns: 40px 1fr; }
  .chapter__media { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; padding: 10px 6% 80px; }
  .two-up { grid-template-columns: 1fr; }
}

/* ==================================================================
   Club — points, weekly game, rewards
   ================================================================== */
.club { max-width: 1150px; margin: 0 auto; padding: 10px 8% 110px; }

.club__top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  margin-bottom: 46px;
}
.balance, .earn, .game, .rewards, .ledger {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 26px;
}
.balance__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.balance__value {
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1.1;
  color: var(--accent);
  margin: 4px 0 18px;
}
.balance__who { font-size: 0.82rem; color: var(--muted); margin: 16px 0 10px; }

.level__row { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 7px; }
.level__row span:first-child { font-family: var(--font-display); color: var(--text); }
.level__row span:last-child { color: var(--muted); }
.level__bar { height: 6px; border-radius: 999px; background: #242a20; overflow: hidden; }
.level__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.6s ease; }

.earn h2, .rewards h2, .ledger h2 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 16px; }
.earn__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.earn__list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.earn__list em { font-style: normal; font-family: var(--font-display); color: var(--accent); }
.earn__list .btn { text-align: center; }
.earn__list .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.earn__note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* Game */
.game { margin-bottom: 46px; }
.game__head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.game__head h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 8px; }
.game__head p { color: var(--muted); font-size: 0.9rem; max-width: 440px; }
.game__score { text-align: right; }
.game__score span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.game__score strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); }
.game__score em { display: block; font-style: normal; font-size: 0.8rem; color: var(--muted); }

.track {
  position: relative;
  height: 62px;
  border-radius: 12px;
  background: #0a0d0a;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 20px;
}
.track__zone { position: absolute; top: 0; bottom: 0; }
.track__zone--outer { left: 25%; right: 25%; background: rgba(157, 255, 46, 0.10); }
.track__zone--mid   { left: 40%; right: 40%; background: rgba(157, 255, 46, 0.20); }
.track__zone--bull  { left: 48.5%; right: 48.5%; background: var(--accent); }
.track__marker {
  position: absolute;
  top: 6px; bottom: 6px;
  width: 4px;
  margin-left: -2px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}
.track__marker.is-stopped { background: var(--accent); box-shadow: 0 0 18px var(--accent); }

.game__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.game__actions .btn { border: 0; cursor: pointer; min-width: 170px; }
.game__actions .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.game__status { color: var(--muted); font-size: 0.88rem; }
.game__result {
  margin-top: 20px;
  border: 1px solid var(--accent-dim);
  background: rgba(157, 255, 46, 0.07);
  border-radius: 14px;
  padding: 18px 22px;
}
.game__result strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); margin-bottom: 5px; }
.game__result p { color: var(--muted); font-size: 0.9rem; }

/* Rewards */
.rewards { margin-bottom: 46px; }
.rewards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.reward {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0a0d0a;
}
.reward.is-locked { opacity: 0.55; }
.reward strong { font-family: var(--font-display); font-size: 1rem; }
.reward span { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.reward .btn { border: 0; cursor: pointer; text-align: center; }
.reward .btn:disabled { cursor: not-allowed; }

/* Ledger */
.ledger ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ledger li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.89rem;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.ledger code {
  background: #0a0c0a;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.78em;
  color: var(--accent);
}
.ledger em { font-style: normal; font-family: var(--font-display); }
.ledger em.is-plus { color: var(--accent); }
.ledger em.is-minus { color: #ffcf6b; }
.ledger__empty { color: var(--muted); border-bottom: 0; }

@media (max-width: 900px) {
  .club { padding: 10px 6% 80px; }
  .club__top { grid-template-columns: 1fr; }
  .earn__list li { grid-template-columns: 1fr auto; row-gap: 8px; }
  .earn__list .btn { grid-column: 1 / -1; }
  .game__head { flex-direction: column; }
  .game__score { text-align: left; }
}

/* ==================================================================
   Visual designer — live preview with theme controls
   ================================================================== */
.designer { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }

.designer__side {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 20px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.designer__group { padding: 16px 0; border-top: 1px solid var(--line); }
.designer__group:first-child { border-top: 0; padding-top: 0; }
.designer__group h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.designer__side select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0a0c0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.designer__side .edit-row { margin-bottom: 12px; }
.designer__side .edit-row b { color: var(--accent); font-weight: 500; }

.designer__widths { display: flex; gap: 6px; margin-top: 10px; }
.wbtn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  cursor: pointer;
}
.wbtn:hover { color: var(--text); }
.wbtn.is-active { border-color: var(--accent-dim); color: var(--accent); }

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 0.85rem;
  cursor: pointer;
}
.color-row input[type="color"] {
  width: 34px; height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.color-row span { flex: 1; }
.color-row code { font-size: 0.72rem; color: var(--muted); }

.designer__stage {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070907;
  padding: 14px;
  overflow: hidden;
}
.designer__frame { margin: 0 auto; transition: max-width 0.3s ease; }
.designer__frame[data-width="tablet"] { max-width: 768px; }
.designer__frame[data-width="mobile"] { max-width: 390px; }
.designer__frame iframe {
  width: 100%;
  height: 72vh;
  min-height: 520px;
  border: 0;
  border-radius: 10px;
  background: #050604;
  display: block;
}

@media (max-width: 1000px) {
  .designer { grid-template-columns: 1fr; }
  .designer__side { position: static; max-height: none; }
}


/* ==================================================================
   Mobile navigation
   ================================================================== */
.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(9, 11, 9, 0.6);
  cursor: pointer;
  flex-shrink: 0;
}
.nav__burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: background 0.2s ease;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }

body.nav-open .nav__burger span { background: transparent; }
body.nav-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav__burger span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__inner { padding: 0 20px; }
  .nav__burger { display: inline-flex; }

  /* A backdrop-filter on .nav would make it the containing block for the
     fixed panel, trapping it inside the 67px bar. Drop it while open. */
  body.nav-open .nav { backdrop-filter: none; background: rgba(6, 7, 6, 0.96); }
  /* Keep the close button tappable above the open panel. */
  body.nav-open .nav__burger { position: relative; z-index: 101; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 88px 22px 30px;
    background: rgba(8, 10, 8, 0.97);
    backdrop-filter: blur(14px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 99;
  }
  body.nav-open .nav__links { transform: translateX(0); }

  .nav__links a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__cta,
  .nav__cta:hover {
    margin-top: 18px;
    border-radius: 999px;
    text-align: center;
    padding: 14px 18px;
    background: var(--accent);
    color: #06110a !important;
    border: 0;
  }
  .nav__cart { justify-content: space-between; }
}
