/* =====================================================================
   Firsthoro — Premium Mutelu Theme (the only stylesheet)
   ---------------------------------------------------------------------
   Dark, elegant, mysterious yet inviting (NOT scary). Gold / burgundy.
   Contains: design tokens (:root), global base, background ambiance,
   the full component class catalog, the wheel layout, responsive rules,
   and prefers-reduced-motion overrides.
   Headings: "Trirong" (Thai serif). Body: "Prompt".
   All component classes here are relied upon by every page/script.
   ===================================================================== */

/* ----------------------------- TOKENS ------------------------------ */
:root {
  /* Surfaces */
  --bg: #0a0710;
  --bg-2: #160a1c;
  --burgundy: #3d0d1c;
  --burgundy-2: #5a1228;
  --panel: #1a1022;
  --panel-2: #241430;

  /* Accents */
  --gold: #d4af37;
  --gold-2: #f3d27a;
  --gold-soft: #a7822c;
  --silver: #cfd3dc;

  /* Text & lines */
  --text: #f6ecd6;
  --muted: #b9a98a;
  --line: rgba(212, 175, 55, 0.28);
  --danger: #e0556b;
  --ok: #7bd88f;

  /* Derived / utility tokens */
  --gold-glow: rgba(212, 175, 55, 0.45);
  --gold-glow-soft: rgba(212, 175, 55, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Fonts */
  --font-head: "Trirong", "Prompt", Georgia, serif;
  --font-body: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------------------------- RESET / BASE -------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  position: relative;
  overflow-x: hidden;
}

/* Background ambiance layers: deep radial burgundy glow + star specks.
   Implemented with fixed pseudo-elements so they don't scroll-jank. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(90, 18, 40, 0.55), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(61, 13, 28, 0.45), transparent 55%),
    radial-gradient(900px 900px at 0% 100%, rgba(36, 20, 48, 0.5), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* Faint constellation specks — a tiny set of radial dots, GPU-cheap. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(243, 210, 122, 0.9), transparent),
    radial-gradient(1.4px 1.4px at 78% 14%, rgba(243, 210, 122, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 33% 67%, rgba(207, 211, 220, 0.6), transparent),
    radial-gradient(1.8px 1.8px at 64% 78%, rgba(243, 210, 122, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 88% 56%, rgba(207, 211, 220, 0.5), transparent),
    radial-gradient(1.4px 1.4px at 50% 38%, rgba(243, 210, 122, 0.6), transparent),
    radial-gradient(1.1px 1.1px at 22% 88%, rgba(207, 211, 220, 0.5), transparent);
  animation: fh-twinkle 6s ease-in-out infinite alternate;
}

@keyframes fh-twinkle {
  from { opacity: 0.35; }
  to   { opacity: 0.7; }
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--gold);
}

/* ----------------------------- LAYOUT ------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(36px, 7vw, 80px);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(30px, 7vw, 78px);
  isolation: isolate;
}

.hero-section--register {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(10, 7, 16, 0.28), rgba(10, 7, 16, 0.82) 72%, var(--bg) 100%),
    url("/assets/images/generated/firsthoro-hero-mobile.webp");
  background-size: cover;
  background-position: center 28%;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  pointer-events: none;
  filter: saturate(1.06) contrast(1.04);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 7, 16, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-logo {
  width: min(520px, 84vw);
  margin-inline: auto;
  padding: 4px 6px;
  border-radius: 0;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 18px rgba(243, 210, 122, 0.18));
}

.hero-lead {
  max-width: 640px;
  margin-inline: auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.hero-stats {
  justify-content: center;
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-live-card {
  width: min(100%, 560px);
  margin: 16px auto 0;
  padding: 14px;
  border: 1px solid rgba(243, 210, 122, 0.36);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 20% 0%, rgba(243, 210, 122, 0.18), transparent 36%),
    linear-gradient(140deg, rgba(10, 7, 16, 0.78), rgba(36, 20, 48, 0.72));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(243, 210, 122, 0.1);
}

.hero-live-topline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold-2);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(243, 210, 122, 0.45);
  animation: fh-live-dot 1.8s ease-out infinite;
}

.hero-live-countdown {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(243, 210, 122, 0.26);
}

.hero-live-note {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-live-btn {
  min-width: 178px;
}

.hero-live-card[data-urgency="soon"] {
  border-color: rgba(243, 210, 122, 0.7);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(243, 210, 122, 0.16);
}

.hero-live-card[data-urgency="hot"],
.hero-live-card[data-urgency="live"] {
  border-color: rgba(243, 210, 122, 0.9);
  background:
    radial-gradient(circle at 18% 0%, rgba(243, 210, 122, 0.28), transparent 40%),
    linear-gradient(140deg, rgba(61, 13, 28, 0.86), rgba(10, 7, 16, 0.78));
  box-shadow: 0 20px 48px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(243, 210, 122, 0.2);
  animation: fh-live-card-pulse 1.6s ease-in-out infinite;
}

.hero-live-card[data-urgency="hot"] .hero-live-btn,
.hero-live-card[data-urgency="live"] .hero-live-btn {
  background: linear-gradient(95deg, var(--gold-soft), var(--gold) 45%, var(--gold-2));
  color: #2a1206;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14), 0 14px 32px rgba(212, 175, 55, 0.32);
}

@keyframes fh-live-dot {
  0% { box-shadow: 0 0 0 0 rgba(243, 210, 122, 0.45); }
  72% { box-shadow: 0 0 0 12px rgba(243, 210, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 210, 122, 0); }
}

@keyframes fh-live-card-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ---------------------------- TYPOGRAPHY --------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; }

/* Gradient gold text for headings / highlights. */
.gold-text {
  background: linear-gradient(95deg, var(--gold-soft) 0%, var(--gold) 35%, var(--gold-2) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted {
  color: var(--muted);
}

/* ----------------------------- DIVIDER ----------------------------- */
.divider {
  height: 1px;
  border: 0;
  margin-block: 28px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--gold-soft) 50%, var(--line) 80%, transparent);
  position: relative;
}
/* A small gilded diamond at the divider center for a mutelu touch. */
.divider::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.8rem;
  background: var(--bg);
  padding-inline: 10px;
}

/* ---------------------------- SURFACES ----------------------------- */
.card,
.panel {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card {
  padding: clamp(22px, 4vw, 40px);
}

.panel {
  padding: clamp(16px, 3vw, 26px);
}

/* Subtle inner gold hairline highlight for depth. */
.card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(243, 210, 122, 0.08);
}

.card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(243, 210, 122, 0.08) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-35%);
  animation: fh-surface-sheen 8s var(--ease) infinite;
}

@keyframes fh-surface-sheen {
  0%, 58%, 100% { opacity: 0; transform: translateX(-42%); }
  68% { opacity: 1; }
  82% { opacity: 0; transform: translateX(42%); }
}

/* ----------------------------- BUTTONS ----------------------------- */
.btn {
  --btn-bg: var(--panel-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s var(--ease);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 38%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0;
}
.btn:hover::after,
.btn:focus-visible::after {
  animation: fh-button-sheen 0.85s var(--ease);
}
@keyframes fh-button-sheen {
  0% { left: -45%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--gold-glow-soft);
  border-color: var(--gold-soft);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary gilded button — gradient gold with dark text. */
.btn-gold {
  background: linear-gradient(95deg, var(--gold-soft), var(--gold) 45%, var(--gold-2));
  color: #2a1206;
  border-color: var(--gold-2);
  box-shadow: 0 10px 26px var(--gold-glow-soft);
}
.btn-gold:hover {
  box-shadow: 0 14px 34px var(--gold-glow);
  filter: brightness(1.04);
}

/* Ghost button — transparent with gold hairline. */
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--gold-2);
}
.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
}

/* ----------------------------- FIELDS ------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.gate-box {
  padding: clamp(16px, 4vw, 24px);
  margin-bottom: 24px;
  border: 1px solid rgba(243, 210, 122, 0.42);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 12% 0%, rgba(243, 210, 122, 0.18), transparent 32%),
    linear-gradient(150deg, rgba(36, 20, 48, 0.92), rgba(10, 7, 16, 0.82));
  box-shadow: inset 0 1px 0 rgba(243, 210, 122, 0.1), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.gate-box h3 {
  margin-top: 10px;
  margin-bottom: 8px;
}

.gate-warning {
  margin: 12px 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(243, 210, 122, 0.5);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-2);
  font-weight: 700;
  line-height: 1.55;
}

.gate-box .btn {
  margin-top: 6px;
  width: 100%;
}

.gate-box.is-accepted {
  border-color: rgba(123, 216, 143, 0.5);
  background:
    radial-gradient(circle at 12% 0%, rgba(123, 216, 143, 0.14), transparent 32%),
    linear-gradient(150deg, rgba(36, 20, 48, 0.92), rgba(10, 7, 16, 0.82));
}

.gate-box.is-accepted .btn[disabled] {
  opacity: 1;
  color: #d9ffe1;
  border-color: rgba(123, 216, 143, 0.72);
  background: rgba(123, 216, 143, 0.16);
}

.registration-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.registration-fields[disabled] {
  opacity: 0.78;
}

.field > label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}
.field .req {
  color: var(--gold-2);
  margin-left: 2px;
}
.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea,
.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(10, 7, 16, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(185, 169, 138, 0.6);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow-soft);
  background: rgba(10, 7, 16, 0.85);
}

/* Native select arrow styled in gold. */
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) center,
    calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option {
  background: var(--panel);
  color: var(--text);
}

/* Inline validation error state. */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(224, 85, 107, 0.18);
}
.field .error-text {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1em;
}

/* ----------------------- RADIO / CHECKBOX -------------------------- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* .radio is the styled wrapper label around an <input type=radio>. */
.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(10, 7, 16, 0.45);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-size: 0.95rem;
}
.radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}
.radio .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  flex: 0 0 auto;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.radio:hover {
  border-color: var(--gold-soft);
}
.radio input:checked ~ .dot {
  background: radial-gradient(circle, var(--gold-2) 38%, transparent 42%);
  box-shadow: 0 0 0 1px var(--gold);
}
.radio input:checked ~ .label-text {
  color: var(--gold-2);
}
.radio:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 0 2px var(--gold-glow-soft);
}
.radio input:focus-visible ~ .dot {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* .checkbox wraps an <input type=checkbox> + consent text. */
.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.55;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.checkbox .box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--gold-soft);
  background: rgba(10, 7, 16, 0.6);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  margin-top: 2px;
}
.checkbox .box::after {
  content: "✓";
  color: #2a1206;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.checkbox input:checked ~ .box {
  background: linear-gradient(95deg, var(--gold), var(--gold-2));
  border-color: var(--gold-2);
}
.checkbox input:checked ~ .box::after {
  opacity: 1;
  transform: scale(1);
}
.checkbox input:focus-visible ~ .box {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ----------------------------- BRAND ------------------------------- */
/* The clickable logo (admin login hook lives on .brand-logo). */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  user-select: none;
  background: none;
  border: 0;
  min-height: 44px;
  padding: 4px 0;
  color: inherit;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}
.brand-logo .mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, var(--panel-2), var(--burgundy));
  color: var(--gold-2);
  font-size: 1.1rem;
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.25);
}

.brand-logo__image {
  width: clamp(132px, 21vw, 184px);
  height: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 10px rgba(243, 210, 122, 0.16));
  transition: transform 0.18s var(--ease), filter 0.24s var(--ease);
}

.brand-logo:hover .brand-logo__image,
.brand-logo:focus-visible .brand-logo__image {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(243, 210, 122, 0.28));
}

.brand-logo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-glow-soft);
}

/* --------------------------- BADGE / TAG --------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-2);
}

.badge-warn {
  border-color: rgba(243, 210, 122, 0.72);
  background: linear-gradient(95deg, rgba(212, 175, 55, 0.22), rgba(90, 18, 40, 0.38));
  box-shadow: 0 0 18px var(--gold-glow-soft);
}

.badge-ok {
  border-color: rgba(123, 216, 143, 0.72);
  background: linear-gradient(95deg, rgba(123, 216, 143, 0.18), rgba(212, 175, 55, 0.12));
  color: #d9ffe1;
}

.badge-danger {
  border-color: rgba(224, 85, 107, 0.72);
  background: rgba(224, 85, 107, 0.14);
  color: #ffd3da;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--burgundy);
  color: var(--text);
  border: 1px solid var(--line);
}

/* --------------------------- WINNER CARD --------------------------- */
.winner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-soft);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(90, 18, 40, 0.25));
  box-shadow: 0 6px 20px var(--gold-glow-soft);
  position: relative;
  overflow: hidden;
}
.winner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 20%, rgba(243, 210, 122, 0.2), transparent 34%);
  opacity: 0.75;
}
.winner-card .rank {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #2a1206;
  background: linear-gradient(95deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 14px var(--gold-glow);
}
.winner-card .who {
  font-weight: 600;
  font-size: 1.08rem;
}

.winner-name {
  font-weight: 700;
  font-size: 1.06rem;
}

.winner-rank {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 700;
}

.winner-info {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.winner-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.claim-timer {
  width: fit-content;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(243, 210, 122, 0.42);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-2);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.claim-timer.is-expired {
  border-color: rgba(224, 85, 107, 0.72);
  background: rgba(224, 85, 107, 0.14);
  color: #ffd3da;
}

.claim-timer.is-contacted {
  border-color: rgba(123, 216, 143, 0.72);
  background: rgba(123, 216, 143, 0.14);
  color: #d9ffe1;
}

.winner-claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.claim-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.claim-status.is-pending {
  color: var(--gold-2);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(243, 210, 122, 0.42);
}

.claim-status.is-contacted {
  color: #d9ffe1;
  background: rgba(123, 216, 143, 0.16);
  border-color: rgba(123, 216, 143, 0.62);
}

.winner-claim-btn {
  min-width: 92px;
}

/* Sparkle accent in the corner of each winner card. */
.winner-card::after {
  content: "✦";
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--gold-2);
  opacity: 0.5;
  font-size: 0.9rem;
}

.btn-sm {
  min-height: 36px;
  padding: 9px 13px;
  font-size: 0.82rem;
}

.btn-danger {
  border-color: rgba(224, 85, 107, 0.58);
  color: #ffd3da;
}

/* ------------------------ CUSTOMER CLAIM FLOW ---------------------- */
.claim-page .site-header {
  position: relative;
  z-index: 3;
}

.claim-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 88px 0 34px;
}

.claim-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 7, 16, 0.15), rgba(10, 7, 16, 0.82)),
    radial-gradient(circle at 50% 28%, rgba(212, 175, 55, 0.18), transparent 42%);
  pointer-events: none;
}

.claim-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.claim-hero__lead {
  max-width: 620px;
  margin-top: 10px;
}

.claim-shell {
  display: grid;
  gap: 16px;
  margin-top: -22px;
  padding-bottom: 44px;
  position: relative;
  z-index: 2;
}

.claim-summary {
  border-color: rgba(243, 210, 122, 0.36);
}

.claim-summary h2 {
  margin: 10px 0 4px;
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.claim-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.claim-step {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(26, 16, 34, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.claim-step.is-active {
  color: #160a1c;
  border-color: rgba(243, 210, 122, 0.82);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.22);
}

.claim-card {
  width: 100%;
}

.claim-card h2 {
  margin-top: 0;
}

.claim-primary {
  width: 100%;
}

.claim-code-input {
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.claim-support {
  margin: 12px 0 0;
  font-size: 0.86rem;
  text-align: center;
}

.claim-card textarea {
  min-height: 310px;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------------------------- COUNTDOWN ---------------------------- */
.countdown {
  display: inline-flex;
  gap: 10px;
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
}
.countdown .unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 7, 16, 0.55);
}
.countdown .unit b {
  font-size: 1.6rem;
  color: var(--gold-2);
  line-height: 1;
}
.countdown .unit span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Live draw stage shown above the wheel during the public broadcast. */
.live-draw-stage {
  width: min(100%, 620px);
  margin: 18px auto 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 210, 122, 0.35);
  background:
    linear-gradient(135deg, rgba(10, 7, 16, 0.82), rgba(36, 20, 48, 0.74)),
    linear-gradient(90deg, rgba(212, 175, 55, 0.14), rgba(123, 216, 143, 0.06));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(246, 236, 214, 0.04);
  text-align: left;
}

.live-draw-stage__signal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(10, 7, 16, 0.62);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.16);
}

.live-draw-stage__signal::before,
.live-draw-stage__signal::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(243, 210, 122, 0.36);
}

.live-draw-stage__signal::after {
  inset: 13px;
  border-color: rgba(123, 216, 143, 0.34);
}

.live-draw-stage__signal span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(185, 169, 138, 0.12);
}

.live-draw-stage__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-draw-stage__label {
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  text-transform: uppercase;
}

.live-draw-stage__copy strong {
  font-family: var(--font-head);
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
}

.live-draw-stage__copy span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.live-draw-stage__meter {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 7, 16, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.live-draw-stage__meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--ok));
  transition: width 0.35s var(--ease);
  box-shadow: 0 0 18px rgba(243, 210, 122, 0.45);
}

.live-draw-stage__progress {
  grid-column: 1 / -1;
  color: var(--gold-2);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.live-draw-stage[data-phase="arming"] .live-draw-stage__signal span,
.live-draw-stage[data-phase="spinning"] .live-draw-stage__signal span {
  background: var(--gold-2);
  box-shadow: 0 0 0 6px rgba(243, 210, 122, 0.14), 0 0 18px var(--gold-glow);
  animation: fh-live-pulse 1.15s ease-in-out infinite;
}

.live-draw-stage[data-phase="spinning"] {
  border-color: rgba(243, 210, 122, 0.68);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44), 0 0 28px var(--gold-glow-soft);
}

.live-draw-stage[data-phase="done"] .live-draw-stage__signal span {
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(123, 216, 143, 0.13), 0 0 16px rgba(123, 216, 143, 0.5);
}

@keyframes fh-live-pulse {
  0%, 100% { transform: scale(0.86); opacity: 0.72; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* ----------------------------- TOAST ------------------------------- */
.toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fh-toast-in 0.3s var(--ease);
  border-left: 4px solid var(--gold);
}
.toast.toast-out {
  animation: fh-toast-out 0.3s var(--ease) forwards;
}
.toast.success { border-left-color: var(--ok); }
.toast.error   { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--gold); }
.toast .icon { flex: 0 0 auto; }

@keyframes fh-toast-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fh-toast-out {
  to { opacity: 0; transform: translateY(-12px); }
}

/* ----------------------------- MODAL ------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(6, 4, 10, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
  animation: fh-fade 0.22s var(--ease);
}
.modal {
  width: min(94vw, 400px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  animation: fh-pop 0.26s var(--ease);
}
.modal h3 {
  margin-top: 0;
}
.detail-backdrop {
  background: rgba(6, 4, 10, 0.94) !important;
  backdrop-filter: blur(10px);
}
.detail-modal {
  width: min(94vw, 560px);
  padding-top: 34px;
  background: linear-gradient(160deg, #170d20 0%, #21122e 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(212, 175, 55, 0.16);
}
.detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.detail-row {
  display: grid;
  gap: 2px;
}
.detail-label {
  font-size: 0.8rem;
}
.detail-value {
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}
.detail-reason {
  white-space: pre-wrap;
  line-height: 1.55;
}

/* ---- Admin registrant cards (clean, scannable, mobile-first) ---- */
.reg-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 760px) {
  .reg-list { grid-template-columns: 1fr 1fr; }
}
.reg-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.reg-card.is-inactive { opacity: 0.6; }
.reg-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reg-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  word-break: break-word;
}
.reg-card__meta {
  font-size: 0.9rem;
  word-break: break-word;
}
.reg-card__claim,
.reg-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.reg-card__actions .btn,
.reg-card__claim .btn {
  width: auto;
  flex: 0 0 auto;
}
.reg-empty {
  text-align: center;
  padding: 24px 8px;
}
.modal .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal .modal-close:hover {
  color: var(--gold-2);
}

@keyframes fh-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fh-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----------------------------- WHEEL ------------------------------- */
.wheel-wrap {
  position: relative;
  width: min(86vw, 460px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.wheel-wrap::before {
  content: "LIVE DRAW";
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 122, 0.48);
  background: rgba(10, 7, 16, 0.74);
  color: var(--gold-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.34);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.wheel-wrap::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(243, 210, 122, 0);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

body[data-draw-phase="arming"] .wheel-wrap::before,
body[data-draw-phase="spinning"] .wheel-wrap::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

body[data-draw-phase="spinning"] .wheel-wrap::after {
  border-color: rgba(243, 210, 122, 0.42);
  box-shadow: 0 0 42px rgba(243, 210, 122, 0.18), inset 0 0 28px rgba(243, 210, 122, 0.08);
  animation: fh-wheel-live-glow 1.45s ease-in-out infinite;
}

body[data-draw-phase="spinning"] .wheel-pointer {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px var(--gold-glow));
}

@keyframes fh-wheel-live-glow {
  0%, 100% { transform: scale(0.99); opacity: 0.7; }
  50% { transform: scale(1.015); opacity: 1; }
}
/* The rotating render target (SVG/canvas) lives in #wheel. */
.wheel-wrap #wheel,
.wheel-wrap .wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--gold-soft);
  box-shadow:
    0 0 0 8px rgba(10, 7, 16, 0.7),
    0 0 40px var(--gold-glow),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
/* Fixed pointer at the TOP of the wheel. */
.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 30px solid var(--gold-2);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}
/* Decorative center hub. */
.wheel-wrap .wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold-soft) 70%);
  border: 3px solid var(--bg);
  box-shadow: 0 0 18px var(--gold-glow);
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--burgundy);
  font-size: 1.4rem;
}

/* ---------------------------- SPINNER ------------------------------ */
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--gold-2);
  animation: fh-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes fh-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------- UTILITIES ----------------------------- */
.hidden {
  display: none !important;
}

/* Honeypot field: visually hidden but present in the DOM for bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.text-center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Hero stat chips (pool count / next draw). */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 7, 16, 0.5);
  min-width: 140px;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--gold-2);
  line-height: 1.1;
}
.stat .lbl {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Page header bar. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.site-header__inner,
.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.site-nav,
.admin-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.page-wheel header .section {
  padding-block: 18px 8px;
}
.page-wheel .brand-logo {
  justify-content: center;
}
.wheel-title {
  margin-bottom: 14px;
}
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding-block: 32px;
}

.fh-version-stamp {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 25;
  max-width: calc(100vw - 20px);
  padding: 3px 7px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  background: rgba(10, 7, 16, 0.58);
  color: rgba(246, 236, 214, 0.58);
  font-size: 0.66rem;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(8px);
}

/* Consent box styling within forms. */
.consent-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 7, 16, 0.45);
  padding: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.consent-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.consent-box li {
  margin-bottom: 10px;
  color: var(--muted);
}
.consent-box li strong {
  color: var(--text);
}

/* Simple data table (used by admin/winners). */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table th {
  color: var(--gold-2);
  font-weight: 600;
  font-family: var(--font-head);
}
.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 7, 16, 0.28);
}

.table-scroll::after {
  content: "";
  display: block;
  height: 1px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--gold-2);
  font-weight: 600;
  font-family: var(--font-head);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.admin-table__reason {
  max-width: 260px;
  white-space: normal;
}

.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table__claim {
  min-width: 190px;
}

.admin-table__claim .claim-timer,
.admin-draw-status .claim-timer {
  margin-top: 0;
  font-size: 0.78rem;
}

.claim-deadline {
  margin-top: 6px;
  font-size: 0.76rem;
}

.admin-table__empty {
  text-align: center;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.admin-actions__month {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.admin-actions__buttons {
  display: flex;
  flex: 2 1 420px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-reg__head,
.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-overview,
.stat-grid {
  width: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 7, 16, 0.5);
}

.stat-card__value {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-draw-status {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.winners-hero {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.winners-hero__lead {
  max-width: 640px;
  margin-inline: auto;
}

.winners-empty,
.winners-note {
  margin-top: 22px;
}

.winners-empty__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* --------------------------- RESPONSIVE ---------------------------- */
@media (max-width: 720px) {
  .container {
    padding-inline: 16px;
  }
  .section {
    padding-block: 30px;
  }
  .hero-section {
    padding-block: 20px 34px;
  }
  .hero-logo {
    width: min(350px, 88vw);
    border-radius: 18px;
  }
  .hero-lead {
    font-size: 0.96rem;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-live-card {
    margin-top: 14px;
    padding: 13px;
  }
  .hero-live-countdown {
    font-size: 1.55rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .site-header {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .site-header__inner,
  .admin-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav,
  .admin-header__actions,
  .admin-actions,
  .admin-actions__buttons {
    width: 100%;
    justify-content: stretch;
  }
  .site-nav .btn,
  .admin-header__actions .btn,
  .admin-actions__buttons .btn {
    flex: 1 1 150px;
  }
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .countdown .unit {
    min-width: 48px;
  }
  .countdown .unit b {
    font-size: 1.3rem;
  }
  .fh-version-stamp {
    position: static;
    display: block;
    width: max-content;
    max-width: calc(100vw - 16px);
    margin: 4px 8px 8px auto;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 6px;
    font-size: 0.58rem;
    opacity: 0.64;
  }
  .live-draw-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 15px;
  }
  .live-draw-stage__copy {
    align-items: center;
  }
  .live-draw-stage__copy strong {
    font-size: 1.08rem;
  }
  .live-draw-stage__copy span:last-child {
    font-size: 0.86rem;
  }
  .wheel-wrap {
    width: min(88vw, 430px);
  }
}

@media (max-width: 460px) {
  body { font-size: 15px; }
  .modal-backdrop { padding: 16px; }
  .modal { max-height: calc(100vh - 32px); }
  .claim-timer { max-width: 100%; word-break: break-word; }
  h1 { font-size: clamp(1.75rem, 9vw, 2.35rem); }
  h2 { font-size: clamp(1.35rem, 7vw, 1.85rem); }
  .btn {
    width: 100%;
    min-height: 46px;
    padding-inline: 18px;
  }
  .brand-logo {
    justify-content: center;
  }
  .brand-logo__image {
    width: min(136px, 42vw);
  }
  .site-header {
    justify-content: center;
    text-align: center;
    padding-block: 12px;
  }
  .site-header > .btn {
    flex: 1 1 100%;
  }
  .claim-page .site-header__inner {
    width: 100%;
    gap: 12px;
  }
  .claim-page .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .claim-page .site-nav .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.82rem;
    white-space: normal;
  }
  .hero-section--register {
    background-position: center top;
  }
  .hero-bg-image {
    object-position: center top;
  }
  .hero-logo {
    width: min(278px, 78vw);
    padding: 4px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-stats .stat:nth-child(1) { order: 1; }
  .hero-stats .stat:nth-child(3) { order: 2; }
  .hero-stats .stat:nth-child(2) {
    order: 3;
    grid-column: 1 / -1;
  }
  .hero-live-card {
    padding: 12px;
  }
  .hero-live-countdown {
    font-size: 1.35rem;
  }
  .hero-live-note {
    font-size: 0.84rem;
  }
  .hero-live-btn {
    width: 100%;
  }
  .claim-hero {
    min-height: 250px;
    padding: 74px 0 28px;
  }
  .claim-shell {
    margin-top: -14px;
    gap: 12px;
  }
  .claim-steps {
    gap: 6px;
  }
  .claim-step {
    min-height: 34px;
    padding: 7px 6px;
    font-size: 0.74rem;
  }
  .claim-code-input {
    font-size: 1.55rem;
    letter-spacing: 0.22em;
  }
  .winner-claim-btn {
    flex: 1 1 100%;
  }
  .stat {
    flex: 1 1 auto;
    padding: 13px 14px;
    min-width: 0;
  }
  .stat .num {
    font-size: 1.34rem;
    overflow-wrap: anywhere;
  }
  .field input[type="text"],
  .field input[type="tel"],
  .field input[type="password"],
  .field input[type="email"],
  .field input[type="number"],
  .field select,
  .field textarea,
  .input {
    min-height: 48px;
    font-size: 16px;
  }
  .radio-group {
    display: grid;
    grid-template-columns: 1fr;
  }
  .radio {
    min-height: 46px;
  }
  .card {
    padding: 20px 16px;
  }
  .panel,
  .consent-box {
    padding: 16px;
  }
  .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .countdown .unit {
    min-width: 0;
  }
  .wheel-wrap {
    width: min(86vw, 360px);
  }
  .live-draw-stage {
    margin-top: 16px;
    gap: 10px;
  }
  .live-draw-stage__signal {
    width: 46px;
    height: 46px;
  }
  .live-draw-stage__progress {
    font-size: 0.8rem;
  }
  .wheel-wrap::before {
    top: 12px;
    font-size: 0.64rem;
    padding: 4px 10px;
  }
  .winner-card {
    align-items: flex-start;
    padding: 16px;
  }
  .winner-claim {
    align-items: flex-start;
    flex-direction: column;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .admin-table {
    min-width: 900px;
  }
}

/* ----------------------- REDUCED MOTION ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body::after {
    animation: none;
    opacity: 0.4;
  }
  .live-draw-stage__signal span,
  body[data-draw-phase="spinning"] .wheel-wrap::after {
    animation: none !important;
  }
  .live-draw-stage__meter span {
    transition: none;
  }
  .card::after,
  .panel::after,
  .btn::after {
    animation: none !important;
  }
  /* Wheel still rotates (driven by JS transform), but no CSS twinkle. */
  .spinner {
    animation: fh-spin 1.2s linear infinite; /* keep a gentle spin for feedback */
  }
}
