:root {
  color-scheme: dark;
  --bg: #111217;
  --panel: rgba(25, 28, 38, 0.82);
  --panel-strong: #202533;
  --ink: #f6f7fb;
  --muted: #9ea7b8;
  --gold: #ffd35a;
  --amber: #ff9f3f;
  --cyan: #49d7ff;
  --mint: #47ef9a;
  --rose: #ff4f78;
  --violet: #8b6cff;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(73, 215, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 79, 120, 0.13), transparent 30%),
    linear-gradient(135deg, #101118 0%, #171a22 48%, #101318 100%);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.app-shell {
  width: min(1920px, 100vw);
  height: min(1080px, 100vh);
  min-width: 1120px;
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(12px, 1.1vw, 22px);
  display: grid;
  grid-template-columns: 220px minmax(720px, 1fr) 220px;
  gap: clamp(10px, 0.9vw, 18px);
  align-items: stretch;
}

.app-shell > * {
  min-width: 0;
}

.control-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(12px, 0.85vw, 16px);
  background: linear-gradient(180deg, rgba(35, 39, 52, 0.88), rgba(20, 22, 30, 0.9));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.8vw, 14px);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #151515;
  font-weight: 900;
  background: conic-gradient(from 210deg, var(--gold), var(--cyan), var(--rose), var(--gold));
  box-shadow: 0 0 32px rgba(255, 211, 90, 0.26);
}

.eyebrow,
.panel-heading p {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(19px, 1.15vw, 24px);
}

h2 {
  font-size: clamp(22px, 1.25vw, 27px);
}

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

.stat-grid article,
.hero-result,
.client-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.stat-grid span,
.field-group label,
.hero-result span,
.client-note span,
.history-item span {
  color: var(--muted);
  font-size: 12px;
}

.stat-grid strong,
.hero-result strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.field-group {
  display: grid;
  gap: 9px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.amount-field {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 7px;
}

.icon-button,
.secondary-button,
.chip-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button {
  font-size: 22px;
  font-weight: 800;
}

.amount-field input {
  width: auto;
  min-width: 0;
  border: 1px solid rgba(255, 211, 90, 0.34);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
  font-weight: 900;
}

input[type="range"] {
  accent-color: var(--gold);
}

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

.chip-row button {
  color: var(--muted);
  font-weight: 800;
}

.chip-row button.active,
.secondary-button[aria-pressed="true"] {
  color: #14161d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--amber));
}

.machine-stage {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-rows: 12px minmax(0, 1fr) 64px;
  gap: 14px;
  align-content: center;
}

.top-lightbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.top-lightbar span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--rose));
  box-shadow: 0 0 22px rgba(73, 215, 255, 0.42);
  animation: pulseLamp 1.4s ease-in-out infinite alternate;
}

.top-lightbar span:nth-child(2n) {
  animation-delay: 0.25s;
}

.monitor {
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(12px, 1.25vw, 18px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #242936 0%, #11141c 100%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.035), var(--shadow);
}

.monitor-header,
.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monitor-header {
  height: 42px;
  color: var(--muted);
  font-size: 13px;
}

.monitor-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

.screen-grid {
  height: calc(100% - 98px);
  min-height: 0;
  display: grid;
  grid-template-columns: 74px minmax(620px, 1fr) 74px;
  gap: 10px;
}

.ticker-board,
.multiplier-board,
.reel-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 6, 12, 0.68);
}

.ticker-board,
.multiplier-board {
  padding: 9px;
}

.ticker-board p,
.multiplier-board p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#hotList,
.history-list {
  display: grid;
  gap: 8px;
}

.hot-pill,
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hot-pill strong,
.history-item strong {
  color: var(--gold);
}

.ticker-board .hot-pill {
  justify-content: center;
  padding: 8px 4px;
}

.ticker-board .hot-pill span {
  display: none;
}

.ticker-board .hot-pill strong {
  font-size: 14px;
}

.reel-window {
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(73, 215, 255, 0.14), transparent 18%, transparent 82%, rgba(255, 79, 120, 0.12)),
    radial-gradient(circle at 50% 50%, rgba(255, 211, 90, 0.2), transparent 42%),
    #06080d;
}

.spinning .reel-window {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 211, 90, 0.36), transparent 36%),
    radial-gradient(circle at 20% 20%, rgba(73, 215, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(255, 79, 120, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(20, 42, 28, 0.96), rgba(18, 11, 29, 0.96));
}

.money-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.scene-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.06);
  transition:
    opacity 680ms ease,
    transform 1100ms cubic-bezier(0.16, 0.86, 0.26, 1),
    filter 900ms ease;
}

.scene-layer::before,
.scene-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-layer::before {
  background:
    radial-gradient(circle at 50% 48%, transparent 0 36%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.58));
}

.scene-layer::after {
  opacity: 0.65;
  mix-blend-mode: screen;
  background:
    linear-gradient(118deg, transparent 0 31%, rgba(255, 211, 90, 0.24) 38%, transparent 48% 100%),
    radial-gradient(circle at 50% 94%, rgba(255, 211, 90, 0.28), transparent 44%);
  animation: sceneLightSweep 3.8s ease-in-out infinite;
}

.scene-layer.show {
  opacity: 0.9;
  transform: scale(1);
}

.scene-active .scene-layer.show {
  z-index: 6;
  opacity: 1;
  filter: saturate(1.16) contrast(1.08) brightness(1.02);
}

.scene-active .scene-layer::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 44%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 25%, transparent 76%, rgba(0, 0, 0, 0.2));
}

.scene-layer.scene-car {
  background-position: center 48%;
}

.scene-layer.scene-umbrella {
  background-position: center 42%;
}

.scene-layer.scene-phone {
  background-position: center 42%;
}

.scene-layer.scene-motorbike,
.scene-layer.scene-bicycle {
  background-position: center 52%;
}

.scene-layer.scene-gold {
  background-position: center 58%;
}

.scene-layer.scene-bag,
.scene-layer.scene-hanger,
.scene-layer.scene-slippers,
.scene-layer.scene-heels {
  background-position: center 50%;
}

.scene-layer.scene-grill {
  background-position: center 54%;
}

.scene-layer.scene-fridge,
.scene-layer.scene-fan,
.scene-layer.scene-dryer {
  background-position: center 48%;
}

.scene-layer.scene-speaker,
.scene-layer.scene-headphones {
  background-position: center 50%;
}

.scene-layer.scene-vacuum,
.scene-layer.scene-robot {
  background-position: center 54%;
}

.scene-layer.premium-scene {
  opacity: 0.7;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 211, 90, 0.45), transparent 30%),
    radial-gradient(circle at 30% 68%, rgba(73, 215, 255, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(17, 19, 27, 0.94), rgba(48, 28, 18, 0.9));
}

.money-layer::before {
  content: "$ $ $";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 211, 90, 0.07);
  font-size: clamp(140px, 18vw, 360px);
  font-weight: 1000;
  letter-spacing: 0;
  opacity: 0;
}

.money-rush .money-layer::before {
  animation: moneyBackdrop 1.2s ease-in-out infinite alternate;
}

.reel-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 3;
}

.smile-ring {
  position: absolute;
  inset: 14px;
  z-index: 4;
  border: 1px solid rgba(255, 211, 90, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 211, 90, 0.1), transparent 22%, transparent 78%, rgba(73, 215, 255, 0.1)),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 70px rgba(255, 211, 90, 0.1), 0 0 42px rgba(255, 211, 90, 0.2);
  overflow: hidden;
}

.scene-active .smile-ring {
  z-index: 7;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.scene-active .smile-ring::before,
.scene-active .reel-window::after {
  opacity: 0;
}

.scene-active .ring-lane {
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.smile-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(circle at 50% 50%, rgba(255, 211, 90, 0.12), transparent 52%);
  pointer-events: none;
  z-index: 1;
}

.ring-lane {
  position: absolute;
  display: flex;
  gap: 10px;
  overflow: hidden;
  z-index: 3;
}

.ring-strip {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.ring-top,
.ring-bottom {
  left: 18px;
  right: 18px;
  height: 74px;
}

.ring-top {
  top: 18px;
}

.ring-bottom {
  bottom: 18px;
}

.ring-left,
.ring-right {
  top: 96px;
  bottom: 96px;
  width: 74px;
  flex-direction: column;
}

.ring-left .ring-strip,
.ring-right .ring-strip {
  flex-direction: column;
}

.ring-left {
  left: 18px;
}

.ring-right {
  right: 18px;
}

.face-tile {
  flex: 0 0 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 211, 90, 0.96), rgba(255, 159, 63, 0.86) 48%, rgba(255, 79, 120, 0.72));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), inset 0 -8px 18px rgba(0, 0, 0, 0.16);
  color: #141217;
  line-height: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.face-tile::before {
  content: "";
  position: absolute;
  inset: 4px 5px auto 5px;
  height: 28px;
  border-radius: 6px 6px 16px 16px;
  background: linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  z-index: -1;
}

.face-tile::after {
  content: "";
  position: absolute;
  inset: auto 6px 5px 6px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(3px);
}

.face-art {
  width: 46px;
  height: 46px;
  position: relative;
  display: block;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.74), transparent 18%),
    radial-gradient(circle at 50% 58%, #ffe56c 0%, #ffc63d 52%, #f08c22 100%);
  box-shadow:
    inset 0 -5px 12px rgba(164, 78, 0, 0.24),
    inset 0 3px 8px rgba(255, 255, 255, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.18);
}

.prize-art {
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  z-index: 1;
  width: 91%;
  height: 67%;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 36% 16%, rgba(255, 255, 255, 0.58), transparent 18%),
    radial-gradient(circle at 50% 72%, rgba(255, 211, 90, 0.22), transparent 46%);
  box-shadow: none;
}

.prize-art svg {
  width: 112%;
  height: 112%;
  filter:
    drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 9px rgba(255, 211, 90, 0.24));
}

.product-art {
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(10, 12, 16, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.22);
}

.product-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  filter: saturate(1.08) contrast(1.04);
}

.prize-tile {
  display: block;
  padding: 6px 7px 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #fffdf6 0 68%, #15171d 68% 100%);
  border-color: rgba(255, 211, 90, 0.64);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 -16px 24px rgba(0, 0, 0, 0.26);
}

.prize-tile::before {
  inset: 4px 5px auto 5px;
  height: calc(68% - 6px);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f4f4ef);
  z-index: 0;
}

.prize-tile::after {
  inset: auto 10px 30%;
  height: 9px;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(5px);
  z-index: 0;
}

.prize-art:not(.product-art).prize-car,
.prize-art:not(.product-art).prize-gold,
.prize-art:not(.product-art).prize-bag {
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.68), transparent 22%),
    linear-gradient(135deg, rgba(255, 226, 113, 0.28), rgba(255, 159, 63, 0.18));
}

.prize-price {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  z-index: 2;
  width: auto;
  min-height: 19px;
  display: grid;
  place-items: center;
  padding: 3px 3px 2px;
  border: 1px solid rgba(255, 211, 90, 0.42);
  border-radius: 6px;
  color: #ffe271;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.38)),
    rgba(15, 17, 22, 0.88);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eye {
  position: absolute;
  top: 15px;
  width: 6px;
  height: 8px;
  border-radius: 999px;
  background: #3a2415;
}

.eye-left {
  left: 13px;
}

.eye-right {
  right: 13px;
}

.mouth {
  position: absolute;
  left: 50%;
  top: 25px;
  width: 20px;
  height: 10px;
  border: 3px solid #3a2415;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.face-grin .mouth,
.face-laugh .mouth {
  height: 12px;
  background: #4c2618;
}

.face-wink .eye-left {
  height: 3px;
  top: 18px;
  border-radius: 999px;
}

.face-cool .eye {
  top: 15px;
  width: 12px;
  height: 7px;
  border-radius: 3px;
  background: #17191f;
}

.face-cool .eye-left {
  left: 8px;
}

.face-cool .eye-right {
  right: 8px;
}

.face-cool .face-art::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 2px;
  background: #17191f;
}

.face-heart .eye {
  width: 9px;
  height: 9px;
  background: var(--rose);
  transform: rotate(45deg);
  border-radius: 2px 2px 0 2px;
}

.face-heart .eye::before,
.face-heart .eye::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: inherit;
}

.face-heart .eye::before {
  left: -4px;
}

.face-heart .eye::after {
  top: -4px;
}

.face-star .eye {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 36%, 39% 36%);
}

.face-calm .eye {
  height: 3px;
  top: 18px;
}

.face-laugh .face-art {
  animation: faceBounce 1.8s ease-in-out infinite;
}

.face-tile.hot {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 28px rgba(73, 215, 255, 0.4), inset 0 -8px 18px rgba(0, 0, 0, 0.16);
}

.face-tile.hot .face-art {
  box-shadow:
    inset 0 -5px 12px rgba(164, 78, 0, 0.24),
    inset 0 3px 8px rgba(255, 255, 255, 0.3),
    0 0 18px rgba(255, 255, 255, 0.34);
}

.center-prize {
  position: absolute;
  inset: 104px 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 211, 90, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 22px 80px rgba(0, 0, 0, 0.36);
  text-align: center;
  z-index: 2;
  overflow: hidden;
}

.scene-active .center-prize {
  border-color: transparent;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.36), transparent 42%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08));
  box-shadow:
    0 0 96px rgba(0, 0, 0, 0.26),
    0 0 120px rgba(255, 211, 90, 0.12);
  backdrop-filter: none;
  overflow: visible;
}

.scene-active .center-prize::before,
.scene-active .center-prize::after {
  opacity: 0;
}

.scene-active .center-prize-icon {
  opacity: 0;
  height: 0;
  margin: 0;
}

.scene-active .center-prize span,
.scene-active .center-prize em {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.82);
}

.scene-active .center-prize b {
  color: #ffffff;
  text-shadow:
    0 3px 22px rgba(0, 0, 0, 0.92),
    0 0 22px rgba(255, 211, 90, 0.34);
}

.scene-active .center-prize strong {
  color: #ffe177;
  text-shadow:
    0 5px 28px rgba(0, 0, 0, 0.96),
    0 0 54px rgba(255, 211, 90, 0.54);
}

.scene-active .display-actions {
  pointer-events: auto;
}

.center-prize::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 211, 90, 0.16), transparent 34%);
  animation: prizeSweep 5.5s linear infinite;
  pointer-events: none;
}

.center-prize::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.center-prize span,
.center-prize em {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.center-prize-icon {
  position: relative;
  z-index: 2;
  width: clamp(58px, 6vw, 120px);
  height: clamp(58px, 6vw, 120px);
  margin: clamp(6px, 0.8vw, 12px) auto 0;
  display: grid;
  place-items: center;
}

.center-prize-icon .prize-art,
.center-prize-icon .face-art {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 0 26px rgba(255, 211, 90, 0.28));
}

.center-prize b {
  position: relative;
  z-index: 2;
  width: min(86%, 920px);
  margin: clamp(6px, 0.8vw, 14px) auto 0;
  color: #f7f8fb;
  font-size: clamp(18px, 1.75vw, 34px);
  line-height: 1.18;
  font-weight: 1000;
  text-align: center;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.center-prize strong {
  position: relative;
  z-index: 2;
  display: block;
  margin: 10px 0 6px;
  color: var(--gold);
  font-size: clamp(86px, 8vw, 154px);
  line-height: 0.88;
  text-shadow: 0 0 36px rgba(255, 211, 90, 0.42);
}

.display-actions {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 0.9fr);
  gap: clamp(12px, 1vw, 18px);
  margin-top: clamp(16px, 1.5vw, 28px);
  width: min(56%, 520px);
}

.screen-action-bar {
  position: fixed;
  left: 50%;
  bottom: clamp(88px, 9vh, 140px);
  width: min(42vw, 560px);
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: auto;
}

.display-actions button {
  position: relative;
  z-index: 7;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  min-height: clamp(54px, 4.2vw, 78px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: clamp(24px, 2.1vw, 40px);
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.32);
}

.go-button {
  color: #15110b;
  background: linear-gradient(135deg, #ffe271, var(--amber), #ff5d7a);
}

.clear-button {
  color: #f3f7ff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(74, 82, 104, 0.55));
}

.result-burst {
  position: absolute;
  inset: 50% auto auto 50%;
  min-width: min(84%, 430px);
  padding: 18px 22px;
  border: 1px solid rgba(255, 211, 90, 0.62);
  border-radius: 8px;
  text-align: center;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  z-index: 7;
  background: linear-gradient(135deg, rgba(255, 211, 90, 0.96), rgba(255, 79, 120, 0.92));
  color: #111217;
  box-shadow: 0 0 70px rgba(255, 211, 90, 0.44);
  pointer-events: none;
}

.result-burst.show {
  animation: burstIn 1.15s ease forwards;
}

.result-burst span {
  font-weight: 1000;
  font-size: 13px;
}

.result-burst strong {
  display: block;
  font-size: clamp(76px, 8vw, 132px);
  line-height: 0.95;
}

.multiplier-stack {
  display: grid;
  gap: 10px;
}

.multiplier-stack span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #101217;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.status-strip {
  min-height: 44px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.progress-rail {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-rail i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--rose));
}

.console {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px) 1fr;
  gap: 10px;
}

.spin-button,
.secondary-button {
  min-height: 60px;
  border-radius: 8px;
  font-weight: 1000;
}

.spin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #151515;
  background: linear-gradient(135deg, var(--gold), var(--amber), var(--rose));
  box-shadow: 0 16px 50px rgba(255, 159, 63, 0.28);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

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

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

button:active {
  transform: translateY(1px);
}

.hero-result {
  background: linear-gradient(135deg, rgba(73, 215, 255, 0.12), rgba(255, 211, 90, 0.08));
}

.history-list {
  min-height: 220px;
  overflow: hidden;
}

.history-item.win strong {
  color: var(--mint);
}

.history-item.loss strong {
  color: var(--rose);
}

.client-note {
  margin-top: auto;
}

.rating-bars {
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.rating-bars i {
  height: var(--h);
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

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

.confetti {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  animation: confettiDrop 1.4s ease-in forwards;
}

.money-bill {
  position: absolute;
  top: -86px;
  width: 76px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(12, 75, 39, 0.6);
  border-radius: 6px;
  color: #0d5c35;
  font-size: 24px;
  font-weight: 1000;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, #d8ffac, #52e58c);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  animation: billFall linear forwards;
}

.bill-1 {
  background: linear-gradient(135deg, #fff2a7, #51e2ba);
}

.bill-2 {
  background: linear-gradient(135deg, #bdf7ff, #69ef7d);
}

.bill-3 {
  background: linear-gradient(135deg, #ffb7d1, #ffe271);
}

.money-pop {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #101217;
  font-weight: 1000;
  box-shadow: 0 0 24px currentColor;
  animation: prizePop 1.45s cubic-bezier(.12,.78,.2,1) forwards;
  z-index: 8;
}

.soft-pop {
  opacity: 0.65;
}

.spinning .center-prize {
  animation: centerCharge 0.42s ease-in-out infinite alternate, colorPulse 0.7s ease-in-out infinite alternate;
}

.ring-top .ring-strip {
  animation: ringMoveX 10s linear infinite;
}

.ring-bottom .ring-strip {
  animation: ringMoveXReverse 10s linear infinite;
}

.ring-left .ring-strip {
  animation: ringMoveYReverse 8.5s linear infinite;
}

.ring-right .ring-strip {
  animation: ringMoveY 8.5s linear infinite;
}

.spinning .ring-top .ring-strip,
.spinning .ring-bottom .ring-strip {
  animation: none;
  will-change: transform;
}

.spinning .ring-left .ring-strip,
.spinning .ring-right .ring-strip {
  animation: none;
  will-change: transform;
}

@keyframes pulseLamp {
  from { filter: brightness(0.78); transform: scaleX(0.96); }
  to { filter: brightness(1.35); transform: scaleX(1); }
}

@keyframes moneyBackdrop {
  from { opacity: 0.18; transform: scale(0.96) rotate(-2deg); }
  to { opacity: 0.42; transform: scale(1.05) rotate(2deg); }
}

@keyframes sceneLightSweep {
  0%, 100% {
    opacity: 0.42;
    transform: translateX(-5%) skewX(-8deg);
  }
  50% {
    opacity: 0.82;
    transform: translateX(5%) skewX(-8deg);
  }
}

@keyframes billFall {
  from {
    transform: translate3d(0, -90px, 0) rotate(-18deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    transform: translate3d(var(--drift), 118vh, 0) rotate(420deg);
    opacity: 0;
  }
}

@keyframes prizePop {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.25) rotate(680deg);
    opacity: 0;
  }
}

@keyframes colorPulse {
  from { filter: saturate(1); }
  to { filter: saturate(1.45) brightness(1.08); }
}

@keyframes ringMoveX {
  from { transform: translateX(0); }
  to { transform: translateX(-304px); }
}

@keyframes ringMoveXReverse {
  from { transform: translateX(-304px); }
  to { transform: translateX(0); }
}

@keyframes ringMoveY {
  from { transform: translateY(0); }
  to { transform: translateY(-304px); }
}

@keyframes ringMoveYReverse {
  from { transform: translateY(-304px); }
  to { transform: translateY(0); }
}

@keyframes centerCharge {
  from { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 22px 80px rgba(0, 0, 0, 0.36); }
  to { box-shadow: inset 0 0 0 1px rgba(255, 211, 90, 0.24), 0 0 80px rgba(255, 211, 90, 0.24); }
}

@keyframes prizeSweep {
  to { transform: rotate(360deg); }
}

@keyframes faceBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes burstIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
}

@keyframes confettiDrop {
  to {
    transform: translate3d(var(--x), 110vh, 0) rotate(540deg);
    opacity: 0;
  }
}

@media (max-width: 1500px) {
  .app-shell {
    grid-template-columns: 200px minmax(650px, 1fr) 200px;
    gap: 12px;
    padding: 14px;
  }

  .screen-grid {
    grid-template-columns: 66px minmax(520px, 1fr) 66px;
    gap: 8px;
  }

  .control-panel {
    padding: 12px;
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 19px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-grid article,
  .hero-result,
  .client-note {
    padding: 10px;
  }

  .stat-grid strong,
  .hero-result strong {
    font-size: 19px;
  }

  .hot-pill,
  .history-item {
    padding: 7px 6px;
    font-size: 13px;
  }

  .smile-ring {
    inset: 12px;
  }

  .ring-top,
  .ring-bottom {
    left: 16px;
    right: 16px;
    height: 58px;
  }

  .ring-left,
  .ring-right {
    top: 78px;
    bottom: 78px;
    width: 58px;
  }

  .face-tile {
    flex-basis: 52px;
    height: 52px;
  }

  .face-art {
    width: 38px;
    height: 38px;
  }

  .eye {
    top: 13px;
    width: 5px;
    height: 7px;
  }

  .eye-left {
    left: 11px;
  }

  .eye-right {
    right: 11px;
  }

  .mouth {
    top: 22px;
    width: 17px;
    height: 9px;
    border-width: 3px;
  }

  .face-cool .eye {
    top: 13px;
    width: 10px;
    height: 6px;
  }

  .face-cool .eye-left {
    left: 7px;
  }

  .face-cool .eye-right {
    right: 7px;
  }

  .face-cool .face-art::after {
    left: 16px;
    right: 16px;
    top: 16px;
  }

  .center-prize {
    inset: 76px 82px;
  }

  .center-prize strong {
    font-size: clamp(62px, 5.2vw, 74px);
  }
}

.display-only {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 211, 90, 0.16), transparent 38%),
    radial-gradient(circle at 18% 12%, rgba(73, 215, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(255, 79, 120, 0.14), transparent 30%),
    #07090f;
}

.display-only .app-shell {
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  padding: clamp(10px, 1.2vw, 24px);
  display: block;
}

.display-only .machine-stage {
  width: 100%;
  height: 100%;
  display: block;
}

.display-only .monitor {
  width: 100%;
  height: 100%;
  padding: clamp(10px, 1.1vw, 22px);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #202633 0%, #080b12 100%);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.045),
    inset 0 0 90px rgba(73, 215, 255, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.5);
}

.display-only .reel-window {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.display-only .smile-ring {
  inset: clamp(16px, 1.5vw, 28px);
  border-width: 2px;
  box-shadow:
    inset 0 0 120px rgba(255, 211, 90, 0.12),
    0 0 70px rgba(255, 211, 90, 0.24);
}

.display-only .ring-top,
.display-only .ring-bottom {
  left: clamp(18px, 1.7vw, 34px);
  right: clamp(18px, 1.7vw, 34px);
  height: clamp(82px, 8vw, 142px);
}

.display-only .ring-top {
  top: clamp(18px, 1.7vw, 34px);
}

.display-only .ring-bottom {
  bottom: clamp(18px, 1.7vw, 34px);
}

.display-only .ring-left,
.display-only .ring-right {
  top: clamp(116px, 11vw, 188px);
  bottom: clamp(116px, 11vw, 188px);
  width: clamp(82px, 8vw, 142px);
}

.display-only .ring-left {
  left: clamp(18px, 1.7vw, 34px);
}

.display-only .ring-right {
  right: clamp(18px, 1.7vw, 34px);
}

.display-only .ring-lane,
.display-only .ring-strip {
  gap: clamp(10px, 1vw, 18px);
}

.display-only .face-tile {
  flex-basis: clamp(74px, 7.1vw, 126px);
  height: clamp(74px, 7.1vw, 126px);
  border-radius: 8px;
}

.display-only .prize-tile {
  padding: clamp(5px, 0.45vw, 8px) clamp(6px, 0.55vw, 10px) clamp(6px, 0.5vw, 9px);
  gap: clamp(1px, 0.18vw, 4px);
}

.display-only .prize-art {
  width: 96%;
  height: 70%;
}

.display-only .prize-price {
  min-height: clamp(18px, 1.35vw, 24px);
  font-size: clamp(10px, 0.9vw, 16px);
  border-radius: 6px;
}

.display-only .face-art {
  width: clamp(54px, 5.2vw, 92px);
  height: clamp(54px, 5.2vw, 92px);
}

.display-only .eye {
  top: 32%;
  width: 13%;
  height: 18%;
}

.display-only .eye-left {
  left: 28%;
}

.display-only .eye-right {
  right: 28%;
}

.display-only .mouth {
  top: 54%;
  width: 42%;
  height: 21%;
  border-width: clamp(3px, 0.38vw, 6px);
}

.display-only .face-cool .eye {
  top: 33%;
  width: 24%;
  height: 16%;
}

.display-only .face-cool .eye-left {
  left: 17%;
}

.display-only .face-cool .eye-right {
  right: 17%;
}

.display-only .face-cool .face-art::after {
  left: 40%;
  right: 40%;
  top: 41%;
}

.display-only .center-prize {
  inset:
    clamp(128px, 12vw, 190px)
    clamp(130px, 14vw, 240px);
  border-width: 2px;
  z-index: 4;
}

.display-only .center-prize span,
.display-only .center-prize em {
  font-size: clamp(15px, 1.2vw, 24px);
}

.display-only .center-prize strong {
  font-size: clamp(78px, 8vw, 156px);
  text-shadow:
    0 0 36px rgba(255, 211, 90, 0.6),
    0 0 92px rgba(255, 159, 63, 0.32);
}

.display-only .center-prize b {
  font-size: clamp(19px, 1.8vw, 34px);
}

.display-only .center-prize-icon {
  width: clamp(48px, 4.8vw, 92px);
  height: clamp(48px, 4.8vw, 92px);
}

.display-only .display-actions {
  margin-top: clamp(10px, 1vw, 18px);
}

.display-only .display-actions button {
  min-height: clamp(48px, 3.6vw, 68px);
}

.display-only.scene-active .center-prize {
  inset: 0;
  align-content: end;
  padding: 0 0 clamp(54px, 5.2vw, 96px);
  border: 0;
  background:
    linear-gradient(180deg, transparent 0 48%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.42) 100%);
  box-shadow: none;
}

.display-only.scene-active .center-prize span {
  font-size: clamp(12px, 0.95vw, 18px);
}

.display-only.scene-active .center-prize strong {
  margin: clamp(4px, 0.5vw, 8px) 0;
  font-size: clamp(48px, 5vw, 96px);
  line-height: 0.95;
}

.display-only.scene-active .center-prize b {
  width: min(72%, 900px);
  margin-top: 0;
  font-size: clamp(18px, 1.45vw, 28px);
}

.display-only.scene-active .center-prize em {
  display: none;
}

.display-only.scene-active .display-actions {
  width: min(38%, 520px);
  margin-top: clamp(8px, 0.7vw, 14px);
}

.display-only.scene-active .display-actions button {
  min-height: clamp(40px, 3vw, 58px);
  font-size: clamp(20px, 1.7vw, 32px);
}

.display-only .result-burst {
  min-width: min(76%, 780px);
  padding: clamp(20px, 2vw, 38px);
}

.display-only .result-burst strong {
  font-size: clamp(110px, 14vw, 260px);
}

.operator-hooks {
  display: none;
}
