:root {
  --bg: #1c1c1c;
  --bg-elevated: #242424;
  --ink: #f7f1e6;
  --ink-soft: rgba(247, 241, 230, 0.72);
  --gold: #8b744b;
  --gold-deep: #6e5a3c;
  --gold-soft: #a38a5e;
  --line: rgba(139, 116, 75, 0.35);
  --danger: #c47878;
  --success: #c6b089;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body.page-mobile {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(139, 116, 75, 0.22), transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(139, 116, 75, 0.1), transparent 40%),
    linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.shell-demo {
  width: min(100%, 520px);
}

.brand {
  text-align: center;
  margin-bottom: 1.75rem;
  animation: rise 0.7s ease both;
}

.brand-compact {
  margin-bottom: 1.25rem;
}

.brand-logo {
  width: min(100%, 280px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.brand-logo-sm {
  width: min(72%, 220px);
}

.brand-eyebrow {
  margin: 0.9rem 0 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.brand-tagline {
  margin: 0.75rem auto 0;
  max-width: 22rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.45;
  font-size: 1.02rem;
}

.register-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.2rem 1.4rem;
  background: rgba(36, 36, 36, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.8s ease 0.08s both;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}

.field input {
  width: 100%;
  border: 1px solid rgba(247, 241, 230, 0.14);
  background: rgba(20, 20, 20, 0.85);
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(139, 116, 75, 0.2);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.consent input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  margin-top: 0.4rem;
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--gold);
  color: #1c1c1c;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.btn-spin {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.35rem 1rem;
  background: linear-gradient(145deg, #a38a5e, #8b744b 45%, #6e5a3c);
  color: #1c1c1c;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: pulse-btn 2.4s ease-in-out infinite;
}

.btn-spin:hover:not(:disabled) {
  transform: scale(1.02);
}

.btn-spin:disabled {
  animation: none;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
  line-height: 1.35;
}

.play-panel,
.demo-panel {
  text-align: center;
  padding: 1.35rem 1.1rem 1.6rem;
  background: rgba(36, 36, 36, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.65s ease both;
}

.greeting {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.play-hint {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.45;
}

.play-message {
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--success);
  font-weight: 600;
  animation: rise 0.45s ease both;
}

.demo-wheel-wrap {
  position: relative;
  width: min(86vw, 360px);
  height: min(86vw, 360px);
  margin: 1.1rem auto 0.4rem;
  display: grid;
  place-items: center;
}

.demo-wheel-wrap #demo-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(247, 241, 230, 0.08),
    0 0 0 10px rgba(139, 116, 75, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.4);
  background: #141414;
}

.demo-wheel-wrap .wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--gold-soft);
  z-index: 3;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}

.demo-wheel-wrap .wheel-center {
  position: absolute;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  background: linear-gradient(145deg, #a38a5e, #5f4e34);
  color: #1c1c1c;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 3.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 2px rgba(247, 241, 230, 0.2);
  z-index: 2;
}

.demo-result {
  margin-top: 1rem;
  animation: rise 0.45s ease both;
}

.demo-result-label {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: 0.75rem;
}

.demo-result-prize {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1.2;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-btn {
  0%,
  100% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 18px 48px rgba(139, 116, 75, 0.28);
  }
}
