:root {
  --gold: #ffd43b;
  --gold-strong: #ffb000;
  --gold-deep: #ff8c00;
  --lime: #39ff14;
  --pink: #ff2d78;
  --cyan: #00d4ff;
  --bg: #04050a;
  --bg-soft: rgba(13, 14, 28, 0.92);
  --bg-panel: rgba(11, 16, 30, 0.88);
  --border: rgba(255, 212, 59, 0.18);
  --border-strong: rgba(255, 212, 59, 0.35);
  --text-soft: rgba(255, 255, 255, 0.64);
  --text-faint: rgba(255, 255, 255, 0.36);
  --shadow-gold: 0 0 40px rgba(255, 176, 0, 0.18);
  --wheel-size: min(92vw, 580px);
}

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

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

body {
  overflow-x: hidden;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 176, 0, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.08), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 45, 120, 0.07), transparent 35%),
    #04050a;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.45;
  z-index: 0;
}

body[data-spin-mode="true"] #fallingCanvas {
  opacity: 0.08;
}

#stars,
#fallingCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#fallingCanvas {
  opacity: 0.2;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.app-main {
  display: grid;
  justify-items: center;
}

.hero-header {
  width: min(1080px, 100%);
  margin-inline: auto;
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero-kicker,
.section-eyebrow {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.75rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.hero-title {
  margin: 0.35rem 0 0.6rem;
  font-family: "Bebas Neue", cursive;
  font-size: clamp(3.5rem, 10vw, 6.8rem);
  letter-spacing: 0.14em;
  line-height: 0.92;
  background: linear-gradient(135deg, #ffe57c 0%, var(--gold-strong) 35%, #fff 50%, var(--gold-strong) 65%, #ffe57c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 176, 0, 0.45));
}

.hero-copy {
  width: min(620px, 100%);
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.screen {
  display: none;
}

.screen.screen-active {
  display: block;
}

#registerScreen.screen-active {
  display: grid;
  justify-items: center;
  gap: 1.85rem;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.card,
.modal-card,
.win-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 20, 38, 0.96), rgba(8, 10, 20, 0.96));
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card-topline {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-strong), var(--gold), transparent);
}

.register-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 2.4rem 2rem 2rem;
}

.section-title,
.section-heading h2,
.wheel-copy h2,
.modal-title,
.win-prize-title {
  margin: 0;
  font-family: "Bebas Neue", cursive;
  letter-spacing: 0.08em;
  line-height: 1;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 2.6rem);
  color: var(--gold);
}

.section-subtitle,
.section-heading p,
.wheel-copy p {
  color: var(--text-soft);
}

.section-subtitle {
  margin: 0.55rem 0 1.7rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-subtitle span {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.45);
}

.register-form {
  display: grid;
  gap: 1rem;
}

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

.field span {
  color: rgba(255, 212, 59, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 212, 59, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.field input.field-invalid {
  border-color: rgba(255, 45, 120, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.12);
}

.field-error {
  min-height: 1rem;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 600;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.35rem;
  font-family: "Bebas Neue", cursive;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  color: #120b00;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-strong), #ffe164);
  box-shadow: 0 8px 28px rgba(255, 176, 0, 0.33);
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -26%;
  width: 36%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 2.3s linear 2;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:disabled,
.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.primary-btn-large {
  width: 100%;
}

.ghost-btn {
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: "Bebas Neue", cursive;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.ticket-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.25rem;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.24);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-dot,
.win-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.8);
  animation: pulse-dot 0.9s ease-in-out infinite alternate;
}

.debug-tools {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  width: min(1080px, calc(100vw - 2rem));
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(6, 11, 24, 0.92);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(10px);
}

.debug-tools.is-visible {
  display: grid;
}

.debug-tools-label {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
}

.debug-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.debug-btn {
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.debug-inline-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.catalog-section {
  margin-top: 1.8rem;
  width: 100%;
}

.catalog-section-register {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.catalog-section-register .section-heading {
  margin-inline: auto;
  text-align: center;
}

.catalog-section-register .section-heading p {
  margin-inline: auto;
}

.catalog-section-game {
  margin-top: 2rem;
  width: min(1080px, 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2,
.wheel-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold);
}

.section-heading p,
.wheel-copy p {
  margin: 0.45rem 0 0;
  max-width: 60ch;
}

.section-heading.compact {
  margin-bottom: 0.8rem;
}

.prize-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.prize-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(13, 18, 34, 0.95), rgba(8, 11, 22, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prize-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 212, 59, 0.26);
}

.prize-card.is-highlighted {
  border-color: rgba(255, 212, 59, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 212, 59, 0.35), 0 0 24px rgba(255, 176, 0, 0.16);
}

.prize-card.is-won {
  border-color: rgba(57, 255, 20, 0.75);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25), 0 0 24px rgba(57, 255, 20, 0.13);
}

.prize-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 212, 59, 0.14), rgba(255, 176, 0, 0.05));
  border: 1px solid rgba(255, 212, 59, 0.12);
}

.prize-thumb img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.prize-emoji {
  font-size: 1.7rem;
}

.prize-name {
  font-weight: 700;
  font-size: 1rem;
}

.prize-price {
  margin-top: 0.1rem;
  color: #ffe57c;
  font-size: 0.84rem;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1080px, 100%);
  margin-inline: auto;
  padding: 1rem 1.25rem;
}

.player-panel,
.status-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: "Bebas Neue", cursive;
  font-size: 1.4rem;
  color: #161000;
  background: linear-gradient(135deg, var(--gold-deep), #ffe164);
}

.player-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--gold);
}

.player-email {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.status-block {
  text-align: center;
}

.status-value {
  font-family: "Bebas Neue", cursive;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--gold);
}

.timer-value {
  color: var(--pink);
}

.status-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.game-main {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  width: min(1080px, 100%);
  margin-inline: auto;
  gap: 1rem;
  margin-top: 1.35rem;
  align-items: start;
}

.wheel-panel,
.game-side {
  width: 100%;
  max-width: 1080px;
  padding: 1.5rem;
}

.wheel-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-copy {
  margin-bottom: 1.1rem;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.wheel-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, var(--wheel-size));
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}

.wheel-disc {
  position: absolute;
  inset: 0;
  transform: rotate(0rad);
  will-change: transform;
}

.wheel-frame-canvas,
.wheel-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.wheel-frame-canvas {
  z-index: 3;
  pointer-events: none;
}

.wheel-canvas {
  z-index: 2;
}

.spin-btn {
  width: min(100%, 360px);
  margin: 1.4rem auto 0;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
}

.result-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 68px;
  width: min(100%, 420px);
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 20, 0.82);
  text-align: center;
}

.result-text {
  font-family: "Bebas Neue", cursive;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.result-display.is-win .result-text {
  color: var(--lime);
}

.result-display.is-lose .result-text {
  color: #ff7aa8;
}

.history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.history-chip {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.history-chip.is-win {
  color: var(--lime);
  border-color: rgba(57, 255, 20, 0.75);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.18);
}

.history-chip.is-lose {
  color: #ff7aa8;
  border-color: rgba(255, 45, 120, 0.45);
}

.history-chip.is-current {
  color: var(--gold);
  border-color: rgba(255, 212, 59, 0.72);
  box-shadow: 0 0 14px rgba(255, 176, 0, 0.2);
}

.support-note {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 212, 59, 0.06);
  border: 1px solid rgba(255, 212, 59, 0.12);
  color: var(--text-soft);
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 4, 10, 0.86);
  backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: min(440px, 100%);
  padding: 2.4rem 2rem;
  text-align: center;
}

.modal-card-lose {
  border-color: rgba(255, 45, 120, 0.4);
}

.modal-emoji {
  display: block;
  font-size: 3.3rem;
  margin-bottom: 0.7rem;
}

.modal-title {
  font-size: 2.25rem;
  color: var(--gold);
}

.modal-title-lose {
  color: var(--pink);
}

.modal-body,
.modal-footnote {
  color: var(--text-soft);
}

.modal-count {
  margin: 1.1rem 0 1.4rem;
  font-family: "Bebas Neue", cursive;
  font-size: 1.7rem;
  color: var(--gold);
}

.wait-timer {
  font-family: "Bebas Neue", cursive;
  font-size: 3rem;
  color: var(--pink);
  line-height: 1;
  margin: 1rem 0;
  text-shadow: 0 0 20px rgba(255, 45, 120, 0.45);
}

.win-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow-y: auto;
  padding: 1.6rem 1rem 3rem;
  background: radial-gradient(circle at 50% 15%, rgba(57, 255, 20, 0.12), transparent 28%), rgba(4, 5, 10, 0.97);
}

.win-screen.is-open {
  display: block;
}

.win-card {
  width: min(640px, 100%);
  margin: 0 auto;
  border: 2px solid rgba(255, 212, 59, 0.82);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.08), 0 0 90px rgba(255, 176, 0, 0.18);
}

.win-rainbow {
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--lime), var(--cyan), var(--gold), var(--pink));
  background-size: 300%;
  animation: shimmer 3.2s linear infinite;
}

.win-top,
.win-details,
.win-actions {
  padding-inline: 2rem;
}

.win-top {
  padding-top: 2rem;
  text-align: center;
}

.win-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.38rem 1rem;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.24);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.win-title {
  margin: 1rem 0 0.3rem;
  font-family: "Bebas Neue", cursive;
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  letter-spacing: 0.1em;
  line-height: 0.95;
  background: linear-gradient(135deg, #ffe57c 0%, #fff 38%, var(--gold-strong) 60%, #ffe57c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.win-user {
  font-family: "Bebas Neue", cursive;
  font-size: clamp(1.9rem, 6vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--lime);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.35);
}

.win-subtitle {
  color: var(--text-soft);
}

.win-media {
  position: relative;
  margin: 1.4rem 2rem 0;
  padding: 1rem;
  border-radius: 24px;
  border: 2px solid rgba(255, 212, 59, 0.7);
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.95), rgba(17, 12, 5, 0.92));
}

.win-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  background: var(--lime);
  color: #081000;
  font-family: "Bebas Neue", cursive;
  letter-spacing: 0.1em;
}

.win-image,
.win-placeholder {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.win-image {
  object-fit: contain;
  padding: 1.4rem;
}

.win-placeholder {
  display: grid;
  place-items: center;
  font-size: 8rem;
}

.win-prize-title {
  font-size: 2.2rem;
  color: #fff;
}

.win-prize-meta {
  margin: 0.35rem 0 1rem;
  color: var(--text-faint);
}

.win-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.win-box {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.win-box-product {
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(145deg, rgba(255, 212, 59, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 212, 59, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 18px rgba(255, 176, 0, 0.08);
}

.win-box-label {
  color: rgba(255, 212, 59, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  font-weight: 700;
}

.win-box-product .win-box-label {
  color: rgba(255, 221, 110, 0.96);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.win-box-value,
.win-box-highlight {
  font-size: 1.08rem;
  color: #fff;
}

.win-box-highlight {
  color: var(--lime);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.22);
}

.win-box-product .win-box-highlight {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  line-height: 0.98;
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.26);
}

.win-box-strike {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.84rem;
  text-decoration: line-through;
}

.win-box-product .win-box-strike {
  color: rgba(255, 244, 196, 0.78);
  font-family: "Bebas Neue", cursive;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 90, 130, 0.72);
}

.win-box-shipping {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(57, 255, 20, 0.13), rgba(0, 212, 255, 0.06));
  border-color: rgba(57, 255, 20, 0.28);
}

.win-shipping-cost {
  font-family: "Bebas Neue", cursive;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  letter-spacing: 0.06em;
  color: var(--lime);
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.32);
}

.win-shipping-note {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.win-banner {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 2rem 0;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 212, 59, 0.28);
  background: rgba(255, 212, 59, 0.06);
}

.win-banner strong,
.win-first strong {
  color: var(--gold);
}

.win-banner span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.win-banner-icon {
  font-size: 2rem;
}

.win-first {
  margin: 0.9rem 2rem 0;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 212, 59, 0.26);
  background: rgba(255, 176, 0, 0.05);
  text-align: center;
  color: rgba(255, 239, 186, 0.92);
}

.win-actions {
  display: grid;
  gap: 0.8rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.claim-btn {
  width: 100%;
  font-size: clamp(1.45rem, 4vw, 1.8rem);
}

.win-footnote {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.jackpot-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: radial-gradient(circle at 50% 36%, rgba(255, 212, 59, 0.26), rgba(3, 4, 8, 0.97) 70%);
  backdrop-filter: blur(4px);
}

.jackpot-overlay.is-open {
  display: flex;
}

.jackpot-inner {
  position: relative;
  text-align: center;
}

.jackpot-coin {
  display: grid;
  place-items: center;
  width: 170px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-size: 4.4rem;
  background: conic-gradient(from 0deg, var(--gold-deep), #ffe57c, #fff6cc, var(--gold-strong), var(--gold-deep));
  box-shadow: 0 0 0 8px rgba(255, 176, 0, 0.66), 0 0 70px rgba(255, 212, 59, 0.42);
  animation: coin-bounce 0.62s ease-in-out infinite alternate;
}

.jackpot-word,
.jackpot-winner,
.jackpot-prize {
  font-family: "Bebas Neue", cursive;
}

.jackpot-word {
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold-deep), #fff 42%, var(--gold-strong) 68%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(255, 212, 59, 0.2);
}

.jackpot-winner {
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.1em;
}

.jackpot-prize {
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--lime);
  letter-spacing: 0.08em;
}

.jackpot-stars {
  margin-top: 0.5rem;
  font-size: 1.8rem;
  letter-spacing: 0.18em;
}

.jackpot-beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.jackpot-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 60vh;
  transform-origin: top center;
  border-radius: 3px;
  animation: beam-spin 2.2s linear infinite;
}

.jackpot-skip {
  margin-top: 1.5rem;
}

.confetti-piece,
.jackpot-bill {
  position: fixed;
  pointer-events: none;
}

.confetti-piece {
  top: -12px;
  z-index: 81;
  animation: confetti-fall linear forwards;
}

.jackpot-bill {
  z-index: 82;
  font-size: 2rem;
  animation: bill-fall linear forwards;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) skewX(-20deg);
  }
  100% {
    transform: translateX(520%) skewX(-20deg);
  }
}

@keyframes pulse-dot {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@keyframes blinka {
  from {
    opacity: 0.32;
    box-shadow: 0 0 4px rgba(255, 212, 59, 0.5);
  }
  to {
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 212, 59, 0.95), 0 0 24px rgba(255, 176, 0, 0.8);
  }
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes coin-bounce {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.04) translateY(-10px);
  }
}

@keyframes beam-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bill-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(540deg) scale(0.85);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .game-side {
    order: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --wheel-size: min(calc(100vw - 0.75rem), 470px);
  }

  .app-shell {
    width: min(calc(100% - 0.35rem), 100%);
    padding-top: 0.8rem;
  }

  #registerScreen.screen-active {
    width: 100%;
    gap: 1.35rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-panel {
    width: 100%;
    justify-content: space-between;
  }

  .wheel-panel,
  .game-side,
  .register-card {
    padding: 1.15rem 0.65rem;
  }

  .debug-tools {
    position: sticky;
    top: 0.6rem;
    left: auto;
    transform: none;
    margin: 0 auto 0.9rem;
    width: min(100%, 460px);
  }

  .prize-catalog {
    grid-template-columns: 1fr 1fr;
  }

  .win-top,
  .win-details,
  .win-actions {
    padding-inline: 1rem;
  }

  .win-media,
  .win-banner,
  .win-first {
    margin-inline: 1rem;
  }

  .win-grid {
    grid-template-columns: 1fr;
  }

  .win-box-shipping {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --wheel-size: min(calc(100vw - 0.2rem), 500px);
  }

  .app-shell {
    width: calc(100% - 0.15rem);
  }

  .wheel-panel,
  .game-side,
  .register-card {
    padding: 1rem 0.45rem;
  }

  .wheel-copy {
    margin-bottom: 0.7rem;
  }

  .wheel-copy p {
    font-size: 0.9rem;
  }

  .spin-btn {
    width: min(100%, 94%);
    margin-top: 1rem;
  }

  .result-display {
    width: min(100%, 96%);
  }

  .hero-kicker,
  .section-eyebrow {
    letter-spacing: 0.24em;
    font-size: 0.68rem;
  }

  .prize-catalog {
    grid-template-columns: 1fr;
  }

  .prize-card {
    grid-template-columns: 54px 1fr;
  }

  .status-value {
    font-size: 2rem;
  }

  .jackpot-coin {
    width: 132px;
    font-size: 3.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
