:root {
  --bg-top: #131820;
  --bg-bottom: #1c2330;
  --panel: #202735;
  --panel-soft: #293243;
  --text: #edf2fb;
  --muted: rgba(237, 242, 251, 0.72);
  --glass-border: rgba(214, 223, 236, 0.18);
  --shadow: 0 28px 80px rgba(5, 9, 16, 0.45);
  --glow: #f3cb73;
  --accent: #b18a34;
  --accent-strong: #f4d991;
  --deep: #161d28;
  --surface: #252e3d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 205, 102, 0.08), transparent 24%),
    linear-gradient(180deg, #111722, #1a2230 46%, #212c3d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      -58deg,
      rgba(255, 219, 130, 0.05) 0 22px,
      rgba(255, 219, 130, 0) 22px 46px
    );
  background-size: 240px 240px;
  background-position: 0 0;
  opacity: 0.34;
  pointer-events: none;
  animation: stripeDrift 12s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

body.is-embedded {
  background: transparent;
}

body.is-embedded::before,
body.is-embedded::after {
  display: none;
}

body.is-embedded .layout {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.is-embedded .game-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  border-radius: 0;
}

body.is-embedded .game-screen {
  min-height: 100vh;
  border-radius: 0;
  padding: clamp(1rem, 2vw, 1.75rem);
  box-shadow: none;
}

.layout {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem 0;
}

.game-shell {
  width: min(1180px, 100%);
  min-height: min(92vh, 1100px);
  position: relative;
  padding: 0.9rem;
  border-radius: 36px;
}

.game-screen {
  min-height: 0;
  height: 100%;
  border-radius: 28px;
  padding: clamp(1.25rem, 2vw, 2rem);
  position: relative;
  background:
    radial-gradient(circle at top, rgba(255, 218, 128, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(19, 24, 34, 0.96), rgba(23, 29, 40, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -18px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.corner-logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.corner-logo {
  position: absolute;
  width: min(18vw, 200px);
  opacity: 0.072;
  mix-blend-mode: screen;
  filter:
    saturate(0.8)
    blur(2.6px)
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.corner-top-left {
  top: 8%;
  left: 18%;
}

.corner-top-right {
  top: 10%;
  right: 18%;
}

.corner-bottom-left {
  left: 12%;
  bottom: 22%;
}

.corner-bottom-right {
  right: 14%;
  bottom: 20%;
}

.screen-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-symbol {
  position: absolute;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  line-height: 1;
  user-select: none;
  opacity: 0.14;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
  animation: floatSymbol 12s ease-in-out infinite;
}

.bg-bell {
  color: rgba(246, 221, 162, 0.7);
  text-shadow: 0 0 20px rgba(243, 203, 115, 0.24);
}

.bg-seven {
  color: rgba(255, 92, 92, 0.46);
  text-shadow: 0 0 18px rgba(255, 84, 84, 0.18);
}

.bg-clover {
  color: rgba(114, 236, 150, 0.5);
  text-shadow: 0 0 18px rgba(114, 236, 150, 0.18);
}

.bg-strawberry {
  opacity: 0.12;
}

.bell-a {
  top: 12%;
  left: 12%;
  font-size: clamp(4.2rem, 7vw, 6.4rem);
  transform: rotate(-18deg);
}

.bell-b {
  right: 18%;
  bottom: 16%;
  font-size: clamp(3.2rem, 5vw, 5rem);
  transform: rotate(16deg);
  animation-delay: -4s;
}

.seven-a {
  top: 18%;
  right: 24%;
  font-size: clamp(5rem, 9vw, 8rem);
  transform: rotate(18deg);
  animation-delay: -2s;
}

.seven-b {
  left: 17%;
  bottom: 14%;
  font-size: clamp(4rem, 7vw, 6.2rem);
  transform: rotate(-20deg);
  animation-delay: -6s;
}

.clover-a {
  top: 56%;
  left: 10%;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  transform: rotate(-14deg);
  animation-delay: -3s;
}

.strawberry-a {
  top: 20%;
  left: 58%;
  font-size: clamp(3rem, 4.8vw, 4.4rem);
  transform: rotate(14deg);
  animation-delay: -5s;
}

.game-screen > :not(.corner-logos):not(.screen-atmosphere) {
  position: relative;
  z-index: 1;
}

.glass-card {
  border: 1px solid var(--glass-border);
  border-radius: 32px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.prize-list {
  display: grid;
  gap: 0.7rem;
}

.prize-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  background: rgba(13, 19, 28, 0.56);
  border: 1px solid rgba(214, 223, 236, 0.08);
  border-radius: 18px;
}

.prize-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  box-shadow: 0 0 20px currentColor;
}

.prize-main strong,
.result-card h2 {
  display: block;
  font-family: "Sora", sans-serif;
}

.prize-main span,
.result-card p {
  color: var(--muted);
}

.prize-odds {
  font-weight: 700;
  color: #f6dda2;
}

.wheel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: min(84vh, 980px);
}

.wheel-shell {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: min(62vmin, 560px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 230, 160, 0.12), transparent 36%),
    linear-gradient(180deg, #1a202a, #0f141d 58%, #1e2633);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 30px rgba(0, 0, 0, 0.42),
    0 24px 50px rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.wheel-shell::before {
  content: "";
  position: absolute;
  inset: 2.3%;
  border-radius: 50%;
  border: 2px solid rgba(244, 217, 145, 0.2);
  box-shadow:
    inset 0 0 0 10px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 232, 177, 0.06);
}

.wheel-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  border: 18px solid rgba(250, 231, 177, 0.98);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.08),
    inset 0 -18px 28px rgba(0, 0, 0, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.24);
}

.wheel-core {
  position: absolute;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid rgba(253, 232, 179, 0.92);
  background:
    radial-gradient(circle at 30% 26%, #fff2ca, #ffc55f 48%, #f0901c 76%, #7f4200 100%);
  color: #4f1e00;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.34),
    inset 0 -16px 26px rgba(166, 83, 8, 0.24),
    0 0 28px rgba(243, 172, 60, 0.25),
    0 14px 34px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
  z-index: 5;
}

.wheel-core:hover {
  transform: scale(1.035);
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.38),
    inset 0 -16px 26px rgba(166, 83, 8, 0.24),
    0 0 32px rgba(243, 172, 60, 0.32),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

.wheel-core:active {
  transform: scale(0.98);
}

.core-logo {
  width: 58%;
  height: 58%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}

.pointer {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  z-index: 4;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 46px solid #f6dda2;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.34));
}

.spin-button {
  position: absolute;
  left: 50%;
  bottom: 2.75rem;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 1rem 2.6rem;
  min-width: 18rem;
  width: auto;
  max-width: calc(100% - 3rem);
  background:
    linear-gradient(180deg, #c7a34c, #8e6420);
  color: #f5f7fb;
  font: 800 1rem "Sora", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -12px 18px rgba(90, 53, 7, 0.24),
    0 16px 32px rgba(8, 12, 18, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
  z-index: 6;
  white-space: nowrap;
}

.spin-button:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -12px 18px rgba(90, 53, 7, 0.24),
    0 18px 36px rgba(8, 12, 18, 0.34);
  filter: brightness(1.03);
}

.spin-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.mode-switch {
  position: absolute;
  right: 1.2rem;
  top: 2rem;
  width: 15rem;
  padding: 0.35rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: linear-gradient(180deg, rgba(30, 36, 48, 0.96), rgba(16, 21, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(8, 12, 18, 0.24);
}

.mode-button {
  border: 0;
  min-height: 2.85rem;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font: 800 0.84rem "Sora", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mode-button.is-active {
  background: linear-gradient(180deg, rgba(243, 203, 115, 0.28), rgba(145, 100, 29, 0.34));
  color: #fff3cf;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.spin-status {
  position: absolute;
  right: 1.2rem;
  top: 5.6rem;
  width: 15rem;
  margin: 0;
  text-align: right;
  color: rgba(237, 242, 251, 0.74);
  font-size: 0.82rem;
}

.code-panel,
.selection-panel {
  position: absolute;
  width: min(24rem, calc(100% - 19rem));
  padding: 1rem;
  background: linear-gradient(180deg, rgba(31, 38, 50, 0.96), rgba(15, 20, 30, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(8, 12, 18, 0.24);
}

.code-panel {
  top: 50%;
  left: 50%;
  display: grid;
  gap: 1rem;
  transform: translate(-50%, -50%);
  width: min(42rem, calc(100% - 3rem));
  z-index: 6;
}

.selection-panel {
  left: 1.2rem;
  bottom: 2rem;
  display: grid;
  gap: 0.9rem;
}

.selection-panel.is-floating {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(52rem, calc(100% - 3rem));
  z-index: 7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(4, 7, 14, 0.42);
}

.selection-panel.is-floating::before {
  content: "";
  position: absolute;
  inset: -1.2rem;
  border-radius: 40px;
  background: rgba(6, 10, 18, 0.34);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.is-hidden {
  display: none !important;
}

.code-panel.is-floating::before {
  content: "";
  position: absolute;
  inset: -1.2rem;
  border-radius: 40px;
  background: rgba(6, 10, 18, 0.34);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.panel-section,
.selection-head {
  display: grid;
  gap: 0.55rem;
}

.panel-kicker {
  margin: 0;
  color: #f6dda2;
  letter-spacing: 0.18em;
  font: 800 0.7rem "Sora", sans-serif;
  text-transform: uppercase;
}

.panel-section h2,
.selection-head h2,
.generator-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.panel-section h2,
.selection-head h2 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.generator-head h3 {
  font-size: 1rem;
}

.panel-note,
.panel-feedback {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.panel-feedback {
  min-height: 1.25rem;
}

.panel-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(246, 221, 162, 0.24), rgba(255, 255, 255, 0.05));
}

.code-redeem-row,
.generator-controls {
  display: grid;
  gap: 0.65rem;
}

.code-redeem-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.code-entry-shell {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.code-entry-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(237, 242, 251, 0.5);
  font: 700 0.68rem "Sora", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.code-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.code-slot {
  min-height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(246, 221, 162, 0.2);
  background:
    linear-gradient(180deg, rgba(28, 35, 48, 0.98), rgba(10, 14, 22, 0.98));
  color: rgba(237, 242, 251, 0.34);
  font: 800 1rem "Sora", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.code-slot.is-filled {
  border-color: rgba(246, 221, 162, 0.42);
  color: #fff0bf;
  background:
    linear-gradient(180deg, rgba(50, 42, 23, 0.98), rgba(21, 18, 11, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.code-slot.is-active {
  transform: translateY(-1px);
  border-color: rgba(246, 221, 162, 0.72);
  color: #fff7dc;
  box-shadow:
    0 0 0 1px rgba(246, 221, 162, 0.16),
    0 12px 22px rgba(0, 0, 0, 0.2);
}

.generator-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.generator-controls {
  grid-template-columns: 5rem auto;
  align-items: center;
}

.code-input,
.count-input {
  width: 100%;
  border: 1px solid rgba(246, 221, 162, 0.24);
  border-radius: 16px;
  background: rgba(10, 15, 24, 0.72);
  color: var(--text);
  font: 700 0.96rem "Sora", sans-serif;
  outline: none;
}

.code-input {
  min-height: 3.15rem;
  padding: 0.9rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

.count-input {
  min-height: 2.8rem;
  padding: 0.75rem 0.9rem;
  text-align: center;
}

.panel-button {
  border: 0;
  border-radius: 16px;
  min-height: 3.15rem;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(180deg, #d5b154, #9a6c1d);
  color: white;
  font: 800 0.8rem "Sora", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -12px 18px rgba(90, 53, 7, 0.22),
    0 14px 28px rgba(8, 12, 18, 0.28);
}

.panel-button-secondary {
  min-height: 2.8rem;
  background: linear-gradient(180deg, rgba(243, 203, 115, 0.24), rgba(121, 86, 28, 0.5));
  color: #fff3cf;
}

.generated-code-list,
.selection-results {
  display: grid;
  gap: 0.7rem;
}

.generated-code-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.generated-code-item,
.selection-card {
  border-radius: 18px;
  border: 1px solid rgba(214, 223, 236, 0.08);
  background: rgba(11, 16, 24, 0.62);
}

.generated-code-item {
  padding: 0.8rem 0.9rem;
  font: 800 0.94rem "Sora", sans-serif;
  letter-spacing: 0.18em;
  color: #fff1bf;
  text-align: center;
}

.selection-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-card {
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.selection-card.is-empty {
  opacity: 0.5;
  border-style: dashed;
}

.selection-card.is-selected {
  border-color: color-mix(in srgb, var(--accent) 64%, white);
  box-shadow: 0 0 0 1px rgba(255, 220, 152, 0.14);
}

.selection-step {
  margin: 0;
  color: #f6dda2;
  font: 800 0.68rem "Sora", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.selection-card strong {
  font: 800 1rem "Sora", sans-serif;
}

.selection-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.selection-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(243, 203, 115, 0.12);
  color: #f7e4ab;
  font: 700 0.7rem "Sora", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.select-result-button {
  border: 0;
  border-radius: 14px;
  min-height: 2.7rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(180deg, #c7a34c, #8e6420);
  color: white;
  font: 800 0.74rem "Sora", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.result-label {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #f0d792;
}

.win-modal h2 {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.win-modal p {
  margin: 0;
}

.win-overlay {
  --win-color: #f3cb73;
  position: fixed;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 40;
}

.win-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.win-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--win-color) 22%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.08), rgba(4, 7, 14, 0.42));
  backdrop-filter: blur(2px);
}

.win-modal {
  position: relative;
  width: min(100%, 980px);
  min-height: 8.2rem;
  padding: 1.05rem 1.2rem 1.05rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  text-align: left;
  border-radius: 34px;
  background:
    radial-gradient(circle at 38% 50%, color-mix(in srgb, var(--win-color) 18%, transparent), transparent 32%),
    linear-gradient(90deg, rgba(12, 18, 30, 0.98), rgba(20, 27, 40, 0.98) 40%, rgba(15, 21, 32, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 26px rgba(0, 0, 0, 0.18),
    0 0 0 1px color-mix(in srgb, var(--win-color) 26%, rgba(255, 255, 255, 0.08)),
    0 0 34px color-mix(in srgb, var(--win-color) 24%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.18, 0.89, 0.32, 1.08), opacity 220ms ease;
}

.win-overlay.is-visible .win-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.win-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 36%, rgba(0, 0, 0, 0.1)),
    radial-gradient(circle at center, color-mix(in srgb, var(--win-color) 20%, transparent), transparent 48%);
  pointer-events: none;
}

.win-modal::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--win-color) 18%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.win-modal-track {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -58deg,
      color-mix(in srgb, var(--win-color) 12%, transparent) 0 18px,
      rgba(255, 255, 255, 0) 18px 42px
    );
  opacity: 0.28;
  animation: stripeDrift 12s linear infinite;
  pointer-events: none;
}

.win-modal-badge {
  position: relative;
  z-index: 1;
  width: clamp(4.8rem, 8vw, 6.25rem);
  aspect-ratio: 1;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 26%, #fff1bf, #f7c85c 46%, #d18a1a 76%, #6d3b00 100%);
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.24),
    inset 0 -16px 24px rgba(120, 58, 5, 0.34),
    0 14px 28px rgba(0, 0, 0, 0.26);
}

.win-badge-ring {
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  border: 2px solid rgba(255, 243, 208, 0.44);
  box-shadow: inset 0 0 0 1px rgba(125, 66, 0, 0.24);
}

.win-badge-icon {
  position: relative;
  z-index: 1;
  font: 900 clamp(2rem, 4vw, 2.85rem) "Sora", sans-serif;
  color: #fff8e6;
  text-shadow:
    0 2px 0 rgba(118, 59, 0, 0.4),
    0 10px 18px rgba(0, 0, 0, 0.28);
}

.win-modal-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.32rem;
  padding-left: 0.15rem;
}

.win-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--win-color) 74%, white);
}

.overlay-button {
  position: relative;
  z-index: 1;
  min-width: 10.5rem;
  border: 0;
  border-radius: 22px;
  padding: 0.95rem 1.45rem;
  background:
    linear-gradient(180deg, #d5b154, #9a6c1d);
  color: white;
  font: 800 0.9rem "Sora", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -10px 16px rgba(108, 68, 5, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.3);
}

.win-modal h2 {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 3.45rem);
  line-height: 0.92;
}

.win-modal p {
  margin: 0;
  font-size: 1.02rem;
}

.confetti {
  position: fixed;
  top: -5vh;
  width: 42px;
  height: 42px;
  opacity: 0.9;
  border-radius: 12px;
  animation: fall linear forwards;
  pointer-events: none;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.slot-symbol {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 18px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.slot-seven {
  background: linear-gradient(180deg, #fff6d0, #d64040 42%, #8e1111);
  color: #fff9f0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  font-size: 1.55rem;
}

.slot-clover {
  background: linear-gradient(180deg, #e8ffd7, #61d76a 42%, #13853c);
  color: #f4fff0;
  font-size: 1.3rem;
}

.slot-clover::before {
  content: "☘";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #f4fff0;
}

.slot-clover {
  color: transparent;
}

.slot-strawberry {
  background: linear-gradient(180deg, #ffe2e2, #ff6681 45%, #c71a37);
  color: transparent;
}

.slot-strawberry::before {
  content: "🍓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift), 110vh, 0) rotate(720deg);
    opacity: 0.92;
  }
}

@keyframes stripeDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 240px 0;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes floatSymbol {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@media (max-width: 980px) {
  .layout {
    padding: 0.75rem 0;
  }

  .game-shell {
    min-height: auto;
  }

  .game-screen {
    padding: 1rem;
  }

  .corner-logo {
    width: min(17vw, 140px);
    opacity: 0.065;
  }

  .bell-b,
  .seven-b {
    display: none;
  }

  .wheel-stage {
    width: 100%;
    min-height: 920px;
  }

  .wheel-shell {
    width: min(68vmin, 520px);
  }

  .spin-button {
    bottom: 2rem;
    min-width: 16rem;
    padding: 0.95rem 2rem;
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100%, calc(100% - 0.6rem));
    padding: 0.35rem 0;
  }

  .wheel-shell {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    transform-origin: center center;
    width: min(88vw, 25rem);
    margin: 0 auto;
  }

  .game-shell {
    width: 100%;
    min-height: auto;
    padding: 0.2rem;
    border-radius: 14px;
  }

  .game-screen {
    padding: 0.55rem 0.45rem 0.9rem;
    border-radius: 16px;
  }

  .corner-logo {
    width: min(24vw, 90px);
    opacity: 0.06;
  }

  .corner-top-left,
  .corner-top-right {
    top: 10%;
  }

  .corner-top-left {
    left: 10%;
  }

  .corner-top-right {
    right: 10%;
  }

  .corner-bottom-left,
  .corner-bottom-right {
    bottom: 18%;
  }

  .corner-bottom-left {
    left: 8%;
  }

  .corner-bottom-right {
    right: 8%;
  }

  .bg-symbol {
    opacity: 0.1;
  }

  .bell-a {
    top: 8%;
    left: 4%;
    font-size: 3rem;
  }

  .seven-a {
    top: 11%;
    right: 6%;
    font-size: 3.5rem;
  }

  .clover-a {
    top: 68%;
    left: 4%;
    font-size: 2.8rem;
  }

  .strawberry-a {
    top: 18%;
    left: 72%;
    font-size: 2.5rem;
  }

  .wheel-stage {
    min-height: auto;
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding-top: 7rem;
    padding-bottom: 1.2rem;
  }

  .wheel-core {
    width: 29%;
  }

  .core-logo {
    width: 62%;
    height: 62%;
  }

  .spin-button {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: min(100%, 30rem);
    min-width: 0;
    margin-top: 0.15rem;
    padding: 0.95rem 1.4rem;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .spin-button:hover,
  .spin-button:active {
    transform: none;
  }

  .win-modal {
    width: calc(100% - 1rem);
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    border-radius: 28px;
    padding: 1rem;
    gap: 0.8rem;
  }

  .win-modal-badge {
    width: 4.5rem;
    border-radius: 22px;
  }

  .win-badge-ring {
    border-radius: 16px;
  }

  .win-modal-content {
    padding-left: 0;
    justify-items: center;
  }

  .win-modal h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .win-modal p {
    font-size: 0.98rem;
  }

  .overlay-button {
    width: min(100%, 15rem);
  }
}
