:root {
  color-scheme: dark;
  --ink: #0b0d10;
  --ink-soft: #11151a;
  --panel: rgba(20, 23, 28, 0.84);
  --panel-solid: #14171c;
  --line: rgba(255, 248, 237, 0.12);
  --line-strong: rgba(255, 248, 237, 0.22);
  --cream: #fff8ed;
  --muted: #9b9da1;
  --muted-strong: #c7c4be;
  --orange: #ff6a3d;
  --orange-deep: #dc4820;
  --mint: #b8f5df;
  --yellow: #ffcf56;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  color: var(--cream);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.11;
}

.ambient-one {
  top: -250px;
  left: -180px;
  background: var(--orange);
}

.ambient-two {
  right: -300px;
  bottom: -280px;
  background: #42d2b3;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  border-bottom: 1px solid var(--line);
}

.app-label {
  color: #65686e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--cream);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--orange);
  box-shadow: 0 7px 18px rgba(255, 106, 61, 0.25);
}

.brand-mark svg {
  width: 23px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.privacy-pill,
.ready-status,
.count-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-pill {
  padding: 8px 12px;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px var(--mint);
}

.hero {
  padding: 76px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
}

.eyebrow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 106, 61, 0.4);
  border-radius: 50%;
  font-size: 9px;
}

h1 {
  max-width: 900px;
  margin: 20px 0 22px;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 em {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin-top: 44px;
}

.machine,
.list-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.machine {
  padding: 28px;
}

.list-panel {
  padding: 26px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.panel-heading h2,
.panel-heading h1 {
  margin: 7px 0 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ready-status {
  padding: 7px 10px;
}

.ready-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.ready-status.is-spinning .status-dot {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: pulse 0.7s ease-in-out infinite alternate;
}

.ready-status.is-spinning #ready-status-text,
.ready-status.is-complete #ready-status-text {
  background: transparent;
  box-shadow: none;
  animation: none;
}

.ready-status.is-complete .status-dot {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 207, 86, 0.7);
}

.loot-stage {
  position: relative;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 64%, rgba(255, 106, 61, 0.11), transparent 32%),
    linear-gradient(180deg, #0a0c0f 0%, #101318 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.7);
  perspective: 900px;
  isolation: isolate;
  transition: border-color 500ms ease, box-shadow 500ms ease;
}

.loot-stage::before,
.loot-stage::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 30%;
  content: "";
  pointer-events: none;
}

.loot-stage::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.8), transparent);
}

.loot-stage::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(5, 6, 8, 0.8), transparent);
}

.stage-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(transparent, black 45%, black);
  transform: perspective(500px) rotateX(58deg) scale(1.5) translateY(40%);
  transform-origin: bottom;
}

.stage-vignette {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 14, 0.05), rgba(9, 11, 14, 0.75)),
    radial-gradient(circle at 50% 70%, transparent 5%, rgba(0, 0, 0, 0.48) 68%);
}

.energy-ring {
  position: absolute;
  z-index: 0;
  bottom: 50px;
  left: 50%;
  border: 1px solid rgba(255, 106, 61, 0.28);
  border-radius: 50%;
  opacity: 0.16;
  transform: translateX(-50%) rotateX(67deg);
}

.energy-ring-one {
  width: 280px;
  height: 160px;
}

.energy-ring-two {
  width: 390px;
  height: 210px;
}

.energy-ring-three {
  width: 510px;
  height: 265px;
}

.stage-flash {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
}

.reward-beam {
  position: absolute;
  z-index: 2;
  top: -40px;
  bottom: 105px;
  left: 50%;
  width: 230px;
  background: linear-gradient(90deg, transparent, rgba(255, 207, 86, 0.3), rgba(255, 248, 237, 0.58), rgba(255, 207, 86, 0.3), transparent);
  clip-path: polygon(37% 100%, 63% 100%, 100% 0, 0 0);
  filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scaleY(0.05);
  transform-origin: bottom;
}

.loot-particles {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}

.loot-particle {
  position: absolute;
  bottom: 118px;
  left: 50%;
  width: var(--size);
  height: var(--size);
  border-radius: 2px;
  background: var(--particle-color);
  box-shadow: 0 0 10px var(--particle-color);
  opacity: 0;
}

.candidate-display {
  position: absolute;
  z-index: 15;
  top: 42px;
  left: 50%;
  display: flex;
  width: min(430px, 74%);
  min-height: 98px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 86, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(100deg, transparent, rgba(255, 207, 86, 0.06), transparent),
    rgba(12, 14, 17, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  padding: 15px 24px;
  text-align: center;
  transform: translateX(-50%) translateY(38px) scale(0.84);
  transition: opacity 420ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1), border-color 400ms ease;
  backdrop-filter: blur(8px);
}

.candidate-display::before,
.candidate-display::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  content: "";
  opacity: 0.5;
}

.candidate-display::before {
  left: 0;
  border-top: 1px solid var(--orange);
  border-left: 1px solid var(--orange);
  border-radius: 17px 0 0;
}

.candidate-display::after {
  right: 0;
  border-right: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  border-radius: 0 0 17px;
}

.candidate-display span {
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.candidate-display strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin-top: 7px;
  color: var(--cream);
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-shadow: 0 0 18px rgba(255, 248, 237, 0.2);
  white-space: nowrap;
}

.candidate-display.is-ticking strong {
  animation: candidateTick 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.candidate-display i {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: 0 0 12px var(--orange);
}

.lootbox {
  position: absolute;
  z-index: 7;
  bottom: 46px;
  left: 50%;
  width: 240px;
  height: 190px;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  animation: crateFloat 3s ease-in-out infinite;
  will-change: transform;
}

.box-shadow {
  position: absolute;
  z-index: -1;
  right: -35px;
  bottom: 4px;
  left: -35px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  filter: blur(13px);
}

.box-lid {
  position: absolute;
  z-index: 6;
  top: 26px;
  left: 0;
  width: 240px;
  height: 62px;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.17, 0.84, 0.18, 1.08), filter 600ms ease;
}

.lid-face,
.base-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 207, 86, 0.32);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, #39332d 0%, #201e1c 100%);
  clip-path: polygon(7% 0, 93% 0, 100% 25%, 100% 100%, 0 100%, 0 25%);
  box-shadow: inset 0 -12px 25px rgba(0, 0, 0, 0.32);
}

.lid-top {
  position: absolute;
  z-index: -1;
  top: -18px;
  left: 15px;
  width: 210px;
  height: 30px;
  border: 1px solid rgba(255, 207, 86, 0.27);
  background: linear-gradient(180deg, #50463b, #292622);
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  transform: rotateX(58deg);
  transform-origin: bottom;
}

.lid-band,
.base-band {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  border-right: 1px solid rgba(255, 207, 86, 0.38);
  border-left: 1px solid rgba(255, 207, 86, 0.38);
  background: linear-gradient(90deg, #292723, #4a4035 50%, #292723);
  transform: translateX(-50%);
}

.lid-bolt {
  position: absolute;
  z-index: 4;
  top: 25px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 207, 86, 0.6);
  border-radius: 50%;
  background: #171718;
}

.lid-bolt-left { left: 22px; }
.lid-bolt-right { right: 22px; }

.box-base {
  position: absolute;
  z-index: 4;
  top: 84px;
  left: 7px;
  width: 226px;
  height: 96px;
}

.box-base .base-face {
  border-color: rgba(255, 207, 86, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, #2e2b28 0%, #171719 100%);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
}

.base-left,
.base-right {
  position: absolute;
  z-index: -1;
  top: 6px;
  bottom: 6px;
  width: 28px;
  background: #171719;
}

.base-left {
  left: -13px;
  clip-path: polygon(100% 0, 100% 100%, 0 88%, 0 12%);
}

.base-right {
  right: -13px;
  clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
}

.base-band {
  width: 44px;
  clip-path: polygon(0 0, 100% 0, 89% 100%, 11% 100%);
}

.base-line {
  position: absolute;
  z-index: 2;
  top: 23px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 61, 0.65));
  box-shadow: 0 0 8px rgba(255, 106, 61, 0.45);
}

.base-line-left { left: 18px; }
.base-line-right { right: 18px; transform: scaleX(-1); }

.box-core {
  position: absolute;
  z-index: 10;
  top: 73px;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 207, 86, 0.48);
  background: #1b1918;
  box-shadow: 0 0 0 6px #2b2926, 0 0 0 7px rgba(255, 207, 86, 0.16);
  transform: translateX(-50%) rotate(45deg);
}

.box-core span {
  width: 17px;
  height: 17px;
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange);
  transform: rotate(45deg);
}

.loot-prompt {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: #696c72;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 250ms ease;
}

.loot-prompt span {
  color: var(--orange);
}

.loot-prompt p {
  margin: 0;
}

.spin-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 13px 4px 0;
}

.spin-step {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.spin-step::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 106, 61, 0.55);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms ease;
}

.spin-step.is-active::after {
  animation: stepLoad 1.4s linear infinite;
}

.spin-step.is-done::after {
  transform: scaleX(1);
}

.loot-stage.phase-charge,
.loot-stage.phase-shake,
.loot-stage.phase-open,
.loot-stage.phase-reveal {
  border-color: rgba(255, 106, 61, 0.42);
  box-shadow: inset 0 0 90px rgba(255, 106, 61, 0.08), 0 0 40px rgba(255, 106, 61, 0.07);
}

.loot-stage.phase-charge .loot-prompt,
.loot-stage.phase-shake .loot-prompt,
.loot-stage.phase-open .loot-prompt,
.loot-stage.phase-reveal .loot-prompt,
.loot-stage.is-complete .loot-prompt {
  opacity: 0;
}

.loot-stage.phase-charge .lootbox {
  animation: crateCharge 0.72s ease-in-out infinite alternate;
}

.loot-stage.phase-charge .box-core span,
.loot-stage.phase-shake .box-core span {
  animation: coreCharge 0.45s ease-in-out infinite alternate;
}

.loot-stage.phase-charge .energy-ring,
.loot-stage.phase-shake .energy-ring {
  animation: ringCharge 1.4s ease-out infinite;
}

.loot-stage.phase-shake .lootbox {
  animation: crateShake 0.16s linear infinite;
}

.loot-stage.phase-shake .candidate-display,
.loot-stage.phase-open .candidate-display,
.loot-stage.phase-reveal .candidate-display,
.loot-stage.is-complete .candidate-display {
  opacity: 1;
}

.loot-stage.phase-shake .candidate-display {
  transform: translateX(-50%) translateY(24px) scale(0.88);
}

.loot-stage.phase-open .candidate-display,
.loot-stage.phase-reveal .candidate-display,
.loot-stage.is-complete .candidate-display {
  transform: translateX(-50%) translateY(0) scale(1);
}

.loot-stage.phase-open .lootbox,
.loot-stage.phase-reveal .lootbox,
.loot-stage.is-complete .lootbox {
  animation: crateSettle 1s cubic-bezier(0.17, 0.84, 0.2, 1) both;
}

.loot-stage.phase-open .box-lid,
.loot-stage.phase-reveal .box-lid,
.loot-stage.is-complete .box-lid {
  filter: drop-shadow(0 0 18px rgba(255, 207, 86, 0.28));
  transform: translateY(-34px) rotateX(-112deg);
}

.loot-stage.phase-open .reward-beam,
.loot-stage.phase-reveal .reward-beam,
.loot-stage.is-complete .reward-beam {
  opacity: 0.72;
  transform: translateX(-50%) scaleY(1);
  transition: transform 900ms cubic-bezier(0.17, 0.84, 0.18, 1), opacity 350ms ease;
}

.loot-stage.phase-open .stage-flash {
  animation: boxFlash 1s ease-out;
}

.loot-stage.phase-open .loot-particle,
.loot-stage.phase-reveal .loot-particle {
  animation: lootSpark var(--particle-duration) cubic-bezier(0.17, 0.84, 0.2, 1) var(--particle-delay) both;
}

.loot-stage.phase-reveal .candidate-display {
  border-color: rgba(255, 207, 86, 0.5);
  box-shadow: 0 0 42px rgba(255, 207, 86, 0.09), 0 22px 55px rgba(0, 0, 0, 0.4);
  animation: rewardHover 1.5s ease-in-out infinite alternate;
}

.loot-stage.is-complete {
  border-color: rgba(255, 207, 86, 0.36);
  box-shadow: inset 0 0 90px rgba(255, 207, 86, 0.06), 0 0 40px rgba(255, 207, 86, 0.06);
}

.loot-stage.is-complete .candidate-display {
  border-color: rgba(255, 207, 86, 0.68);
  background:
    linear-gradient(100deg, transparent, rgba(255, 207, 86, 0.12), transparent),
    rgba(18, 17, 15, 0.88);
  box-shadow: 0 0 50px rgba(255, 207, 86, 0.13), 0 22px 55px rgba(0, 0, 0, 0.4);
  animation: rewardHover 1.8s ease-in-out infinite alternate;
}

.loot-stage.is-complete .candidate-display span,
.loot-stage.is-complete .candidate-display strong {
  color: var(--yellow);
}

.loot-stage.is-complete .reward-beam {
  opacity: 0.28;
}

/* Casino draw machine */
.casino-stage {
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 207, 86, 0.13), transparent 32%),
    radial-gradient(circle at 12% 12%, rgba(171, 33, 42, 0.16), transparent 32%),
    linear-gradient(180deg, #08110f 0%, #0b0d10 58%, #100c0c 100%);
}

.casino-stage .stage-grid {
  background:
    linear-gradient(rgba(255, 207, 86, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 207, 86, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
}

.casino-halo {
  position: absolute;
  z-index: 0;
  bottom: 10px;
  left: 50%;
  border: 1px solid rgba(255, 207, 86, 0.18);
  border-radius: 50%;
  opacity: 0.35;
  transform: translateX(-50%) rotateX(68deg);
}

.casino-halo-one {
  width: 390px;
  height: 190px;
}

.casino-halo-two {
  width: 520px;
  height: 250px;
  border-style: dashed;
}

.slot-machine {
  position: absolute;
  z-index: 8;
  bottom: 30px;
  left: 50%;
  width: 310px;
  height: 230px;
  border: 2px solid rgba(255, 207, 86, 0.56);
  border-radius: 28px 28px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04)),
    linear-gradient(160deg, #3b241d 0%, #1c1717 55%, #101214 100%);
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.28),
    inset 0 -28px 38px rgba(0, 0, 0, 0.38),
    0 28px 35px rgba(0, 0, 0, 0.48);
  transform: translateX(-50%);
  animation: slotFloat 3s ease-in-out infinite;
  will-change: transform;
}

.casino-marquee {
  position: absolute;
  top: 10px;
  right: 13px;
  left: 13px;
  display: flex;
  height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 207, 86, 0.48);
  border-radius: 16px 16px 9px 9px;
  background:
    radial-gradient(circle at center, rgba(255, 106, 61, 0.13), transparent 70%),
    #121315;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 207, 86, 0.06);
}

.casino-marquee strong {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 207, 86, 0.44);
}

.marquee-bulbs {
  position: absolute;
  right: 11px;
  left: 11px;
  display: flex;
  justify-content: space-between;
}

.bulbs-top { top: 5px; }
.bulbs-bottom { bottom: 5px; }

.marquee-bulbs i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d5530;
  box-shadow: 0 0 0 transparent;
  animation: bulbGlow 1.5s ease-in-out infinite alternate;
}

.marquee-bulbs i:nth-child(even) {
  animation-delay: -0.75s;
}

.reels-frame {
  position: absolute;
  top: 73px;
  left: 50%;
  display: grid;
  width: 250px;
  height: 105px;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 207, 86, 0.4);
  border-radius: 12px;
  background: #090a0c;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.reel-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 86, 0.22);
  border-radius: 7px;
  background: linear-gradient(180deg, #f6e9cd 0%, #fff9eb 50%, #e1cda7 100%);
  box-shadow: inset 0 12px 16px rgba(73, 38, 21, 0.2), inset 0 -12px 16px rgba(73, 38, 21, 0.2);
  mask-image: linear-gradient(transparent 0, black 25%, black 75%, transparent 100%);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-52px);
  will-change: transform, filter;
}

.reel-strip span {
  display: grid;
  width: 100%;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  color: #8c261f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 1px rgba(255, 255, 255, 0.7);
}

.reel-window:nth-child(2) .reel-strip span {
  color: #161719;
}

.payline {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange) 16%, var(--orange) 84%, transparent);
  box-shadow: 0 0 8px rgba(255, 106, 61, 0.75);
  opacity: 0.7;
  transform: translateY(-50%);
}

.machine-footer {
  position: absolute;
  right: 34px;
  bottom: 14px;
  left: 34px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #bd9760;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.18em;
}

.machine-footer i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 207, 86, 0.5));
}

.machine-footer i:last-child {
  transform: scaleX(-1);
}

.machine-lever {
  position: absolute;
  top: 82px;
  right: -40px;
  width: 44px;
  height: 110px;
  transform-origin: 10px 90px;
  transition: transform 650ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.machine-lever::before {
  position: absolute;
  right: 27px;
  bottom: 7px;
  width: 14px;
  height: 34px;
  border: 2px solid rgba(255, 207, 86, 0.45);
  border-radius: 6px;
  background: #171719;
  content: "";
}

.machine-lever span {
  position: absolute;
  right: 9px;
  bottom: 34px;
  width: 7px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(90deg, #765e3e, #f1c776, #765e3e);
  transform: rotate(17deg);
  transform-origin: bottom;
}

.machine-lever i {
  position: absolute;
  top: 0;
  right: 0;
  width: 23px;
  height: 23px;
  border: 2px solid rgba(255, 207, 86, 0.58);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8b67, #a42720 70%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 106, 61, 0.2);
}

.casino-stage.phase-charge .slot-machine {
  animation: casinoCharge 0.8s ease-in-out infinite alternate;
}

.casino-stage.phase-charge .machine-lever {
  transform: rotate(34deg);
}

.casino-stage.phase-charge .casino-halo,
.casino-stage.phase-shake .casino-halo,
.casino-stage.phase-open .casino-halo {
  animation: casinoHalo 1.5s ease-out infinite;
}

.casino-stage.phase-shake .slot-machine {
  animation: casinoRattle 0.14s linear infinite;
}

.casino-stage.phase-shake .reel-strip {
  filter: blur(2.2px);
  animation: reelSpin 0.34s linear infinite;
}

.casino-stage.phase-shake .reel-two .reel-strip { animation-delay: -0.12s; }
.casino-stage.phase-shake .reel-three .reel-strip { animation-delay: -0.24s; }

.casino-stage.phase-shake .marquee-bulbs i,
.casino-stage.phase-open .marquee-bulbs i {
  animation-duration: 0.28s;
}

.casino-stage.phase-open .slot-machine,
.casino-stage.phase-reveal .slot-machine,
.casino-stage.is-complete .slot-machine {
  animation: casinoSettle 900ms cubic-bezier(0.17, 0.84, 0.2, 1) both;
}

.casino-stage.phase-open .reel-strip {
  filter: blur(0.8px);
  animation: reelSlow 0.95s cubic-bezier(0.3, 0.65, 0.4, 1) infinite;
}

.casino-stage.phase-open .reel-two .reel-strip { animation-duration: 1.08s; }
.casino-stage.phase-open .reel-three .reel-strip { animation-duration: 1.2s; }

.casino-stage.phase-reveal .reel-one .reel-strip {
  animation: reelLockOne 1.35s cubic-bezier(0.08, 0.7, 0.15, 1) forwards;
}

.casino-stage.phase-reveal .reel-two .reel-strip {
  animation: reelLockTwo 1.55s cubic-bezier(0.08, 0.7, 0.15, 1) forwards;
}

.casino-stage.phase-reveal .reel-three .reel-strip {
  animation: reelLockThree 1.75s cubic-bezier(0.08, 0.7, 0.15, 1) forwards;
}

.casino-stage.is-complete .reel-one .reel-strip { transform: translateY(-156px); }
.casino-stage.is-complete .reel-two .reel-strip { transform: translateY(-208px); }
.casino-stage.is-complete .reel-three .reel-strip { transform: translateY(-104px); }

.casino-stage.is-complete .casino-marquee {
  border-color: rgba(255, 207, 86, 0.78);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 207, 86, 0.16);
}

.casino-stage.is-complete .marquee-bulbs i {
  background: var(--yellow);
  box-shadow: 0 0 9px rgba(255, 207, 86, 0.8);
}

.draw-copy {
  min-height: 62px;
  padding-top: 18px;
  text-align: center;
}

.draw-status {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.draw-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.draw-button {
  position: relative;
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(255, 106, 61, 0.19);
  color: #130e0b;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.draw-button:hover:not(:disabled) {
  background: #ff7d55;
  box-shadow: 0 16px 36px rgba(255, 106, 61, 0.28);
  transform: translateY(-2px);
}

.draw-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.995);
}

.draw-button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.36;
}

.button-label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.button-label svg,
.winner-actions svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-shine {
  position: absolute;
  top: -100%;
  left: -50%;
  width: 30%;
  height: 300%;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(20deg);
}

.draw-button:hover .button-shine {
  animation: shine 0.7s ease;
}

.winner-card {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  padding: 30px 22px 22px;
  border: 1px solid rgba(255, 207, 86, 0.27);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(255, 207, 86, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
  animation: reveal 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.winner-glow {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 250px;
  height: 180px;
  border-radius: 50%;
  background: var(--yellow);
  filter: blur(80px);
  opacity: 0.1;
  transform: translateX(-50%);
}

.winner-label {
  margin: 0;
  color: var(--yellow);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.winner-label span {
  margin-inline: 5px;
}

.winner-card h3 {
  position: relative;
  margin: 11px 0 24px;
  color: var(--cream);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1.1;
  word-break: break-word;
}

.winner-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.button-secondary,
.button-danger {
  display: inline-flex;
  min-height: 43px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.button-danger {
  border: 1px solid rgba(255, 106, 61, 0.26);
  background: rgba(255, 106, 61, 0.09);
  color: #ff9677;
}

.button-secondary:hover,
.button-danger:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.history {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.history > p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-list {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.history-item {
  max-width: 130px;
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item:first-child {
  border-color: rgba(255, 207, 86, 0.26);
  color: var(--yellow);
}

.count-badge {
  padding: 7px 10px;
  color: var(--cream);
}

.add-form {
  margin-bottom: 26px;
}

.add-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 600;
}

.input-row {
  display: flex;
  gap: 7px;
}

.input-row input {
  min-width: 0;
  height: 47px;
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: #0d1014;
  color: var(--cream);
  padding: 0 14px;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-row input::placeholder {
  color: #606369;
}

.input-row input:focus {
  border-color: rgba(255, 106, 61, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.09);
}

.input-row button {
  display: grid;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.input-row button:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

.input-row button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.form-message {
  min-height: 16px;
  margin: 7px 2px 0;
  color: #64676c;
  font-size: 9px;
}

.form-message.is-error {
  color: #ff9272;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.list-toolbar p {
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-button {
  border: 0;
  background: transparent;
  color: #707278;
  cursor: pointer;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover:not(:disabled) {
  color: #ff9677;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.items-list {
  max-height: 376px;
  overflow-y: auto;
  margin-right: -8px;
  padding: 8px 8px 2px 0;
  scrollbar-color: #3c4046 transparent;
  scrollbar-width: thin;
}

.item-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 51px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  animation: itemIn 0.25s ease both;
}

.item-index {
  color: #5b5e64;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
}

.item-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #dedbd4;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-actions {
  display: flex;
  opacity: 0;
  transition: opacity 150ms ease;
}

.item-row:hover .item-actions,
.item-row:focus-within .item-actions {
  opacity: 1;
}

.icon-button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #74777d;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--cream);
}

.icon-button.delete:hover {
  color: #ff8e6c;
}

.icon-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.item-edit-input {
  min-width: 0;
  height: 32px;
  flex: 1;
  border: 1px solid rgba(255, 106, 61, 0.55);
  border-radius: 8px;
  outline: 0;
  background: #0d1014;
  color: var(--cream);
  padding-inline: 9px;
  font-size: 12px;
}

.empty-state {
  padding: 38px 12px 32px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.empty-icon svg {
  width: 28px;
  fill: none;
  stroke: #64676c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--muted-strong);
  font-size: 13px;
}

.empty-state p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.list-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 19px 0 0;
  color: #66696f;
  font-size: 9px;
  line-height: 1.5;
}

.list-note svg {
  width: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 22px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: #5e6167;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.confirm-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #171a1f;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65);
  color: var(--cream);
  padding: 30px;
  text-align: center;
}

.confirm-dialog::backdrop {
  background: rgba(5, 6, 8, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid rgba(255, 106, 61, 0.3);
  border-radius: 50%;
  background: rgba(255, 106, 61, 0.08);
  color: var(--orange);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.confirm-dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.confirm-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 24px;
}

.confetti-layer {
  position: fixed;
  z-index: 99;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -24px;
  width: 8px;
  height: 15px;
  border-radius: 2px;
  animation: confettiFall var(--duration) cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes pulse {
  to { opacity: 0.35; }
}

@keyframes slotFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes casinoCharge {
  from { filter: brightness(1); transform: translateX(-50%) translateY(0) scale(1); }
  to { filter: brightness(1.18); transform: translateX(-50%) translateY(-5px) scale(1.012); }
}

@keyframes casinoRattle {
  0%, 100% { transform: translateX(-50%) rotate(0); }
  25% { transform: translateX(calc(-50% - 3px)) rotate(-0.45deg); }
  50% { transform: translateX(calc(-50% + 3px)) rotate(0.45deg); }
  75% { transform: translateX(calc(-50% - 2px)) rotate(-0.25deg); }
}

@keyframes casinoSettle {
  0% { transform: translateX(-50%) translateY(-2px) scale(1.01); }
  55% { transform: translateX(-50%) translateY(5px) scale(0.99); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes casinoHalo {
  0% { opacity: 0; transform: translateX(-50%) rotateX(68deg) scale(0.68); }
  45% { opacity: 0.52; }
  100% { opacity: 0; transform: translateX(-50%) rotateX(68deg) scale(1.16); }
}

@keyframes bulbGlow {
  from { background: #6d5530; box-shadow: 0 0 0 transparent; }
  to { background: var(--yellow); box-shadow: 0 0 9px rgba(255, 207, 86, 0.8); }
}

@keyframes reelSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-364px); }
}

@keyframes reelSlow {
  0% { transform: translateY(0); }
  72% { transform: translateY(-310px); }
  100% { transform: translateY(-364px); }
}

@keyframes reelLockOne {
  from { filter: blur(0.8px); transform: translateY(0); }
  82% { filter: blur(0); transform: translateY(-168px); }
  91% { transform: translateY(-150px); }
  to { filter: blur(0); transform: translateY(-156px); }
}

@keyframes reelLockTwo {
  from { filter: blur(0.8px); transform: translateY(0); }
  82% { filter: blur(0); transform: translateY(-220px); }
  91% { transform: translateY(-202px); }
  to { filter: blur(0); transform: translateY(-208px); }
}

@keyframes reelLockThree {
  from { filter: blur(0.8px); transform: translateY(0); }
  82% { filter: blur(0); transform: translateY(-116px); }
  91% { transform: translateY(-98px); }
  to { filter: blur(0); transform: translateY(-104px); }
}

@keyframes crateFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes crateCharge {
  from { transform: translateX(-50%) translateY(0) scale(1); filter: brightness(1); }
  to { transform: translateX(-50%) translateY(-7px) scale(1.018); filter: brightness(1.12); }
}

@keyframes crateShake {
  0%, 100% { transform: translateX(-50%) rotate(0); }
  20% { transform: translateX(calc(-50% - 7px)) rotate(-1.4deg); }
  40% { transform: translateX(calc(-50% + 6px)) rotate(1.1deg); }
  60% { transform: translateX(calc(-50% - 4px)) rotate(-0.7deg); }
  80% { transform: translateX(calc(-50% + 3px)) rotate(0.6deg); }
}

@keyframes crateSettle {
  0% { transform: translateX(-50%) translateY(-3px) scale(1.02); }
  45% { transform: translateX(-50%) translateY(12px) scale(0.97); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes coreCharge {
  from { background: var(--orange); box-shadow: 0 0 10px var(--orange); transform: rotate(45deg) scale(0.7); }
  to { background: var(--yellow); box-shadow: 0 0 26px var(--yellow), 0 0 60px rgba(255, 106, 61, 0.55); transform: rotate(45deg) scale(1.1); }
}

@keyframes ringCharge {
  0% { opacity: 0; transform: translateX(-50%) rotateX(67deg) scale(0.65); }
  35% { opacity: 0.48; }
  100% { opacity: 0; transform: translateX(-50%) rotateX(67deg) scale(1.18); }
}

@keyframes boxFlash {
  0% { opacity: 0; }
  12% { opacity: 0.78; }
  30% { opacity: 0.18; }
  100% { opacity: 0; }
}

@keyframes lootSpark {
  0% { opacity: 0; transform: translate(-50%, 0) rotate(0) scale(0.3); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--particle-x)), var(--particle-y)) rotate(var(--particle-rotation)) scale(0.1); }
}

@keyframes rewardHover {
  from { transform: translateX(-50%) translateY(-2px) scale(1); }
  to { transform: translateX(-50%) translateY(4px) scale(1.006); }
}

@keyframes candidateTick {
  0% { opacity: 0; filter: blur(5px); transform: translateY(7px) scale(0.96); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes stepLoad {
  0% { transform: scaleX(0); }
  75%, 100% { transform: scaleX(1); }
}

@keyframes shine {
  to { left: 120%; }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
}

@keyframes itemIn {
  from { opacity: 0; transform: translateY(6px); }
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translate3d(0, -10px, 0) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), 105vh, 0) rotate(var(--spin)); }
}

@media (max-width: 880px) {
  .hero {
    padding-top: 58px;
  }

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

  .list-panel {
    grid-row: 1;
  }

  .items-list {
    max-height: 270px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    height: 72px;
  }

  .privacy-pill {
    width: 9px;
    height: 9px;
    overflow: hidden;
    border: 0;
    padding: 0;
    font-size: 0;
  }

  .privacy-dot {
    width: 8px;
    height: 8px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  h1 {
    margin-top: 17px;
    font-size: clamp(45px, 14vw, 68px);
  }

  .intro {
    font-size: 14px;
  }

  .machine,
  .list-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .panel-heading {
    margin-bottom: 22px;
  }

  .panel-heading h2,
  .panel-heading h1 {
    font-size: 20px;
  }

  .loot-stage {
    height: 360px;
  }

  .slot-machine {
    bottom: 34px;
    width: 258px;
    height: 220px;
  }

  .reels-frame {
    width: 210px;
  }

  .machine-lever {
    right: -29px;
  }

  .candidate-display {
    top: 32px;
    width: calc(100% - 32px);
  }

  .candidate-display strong {
    font-size: 24px;
  }

  .energy-ring-three {
    width: 400px;
  }

  .winner-actions {
    flex-direction: column;
  }

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

  .footer {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .confetti {
    display: none;
  }
}
