:root {
  --ink: #050706;
  --panel: rgba(10, 15, 14, 0.92);
  --paper: #eff3e8;
  --muted: #95a49a;
  --teal: #35efc1;
  --amber: #ffc857;
  --orange: #ff6b3d;
  --blue: #68a9ff;
  --violet: #ae82ff;
  --line: rgba(126, 255, 218, 0.25);
  font-family: "Bahnschrift", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); }
body { overflow-x: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.page-customer::before,
.page-admin::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(3, 6, 6, 0.97), rgba(3, 7, 7, 0.56) 58%, rgba(4, 5, 5, 0.92)),
    url("/assets/arena-bg.jpg") center / cover no-repeat;
  z-index: -3;
}

.game-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px clamp(24px, 5vw, 76px) 26px;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .46;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}

.game-shell::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--teal), var(--blue));
  box-shadow: 0 0 24px rgba(53, 239, 193, .5);
}

.game-header, .game-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.club-mark { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 72px;
  height: 58px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 200, 87, .18), transparent 68%);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(84%) sepia(54%) saturate(787%) hue-rotate(341deg) brightness(104%) contrast(101%) drop-shadow(0 0 10px rgba(255, 200, 87, .58));
}
.club-mark div { display: grid; gap: 3px; }
.club-mark span { font-weight: 800; font-size: 15px; }
.club-mark small, .system-state, .eyebrow, .console-label,
.machine-topbar span, .monitor-head, .result-window > span, .panel-title span,
.field span, .generated span {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--teal);
}
.system-state { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.system-state i, .live-chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 12px var(--teal);
  animation: signal 1.2s ease-in-out infinite;
}

.entry-screen {
  min-height: calc(100vh - 150px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(480px, 1.05fr) minmax(390px, .72fr);
  align-items: center;
  gap: clamp(64px, 8vw, 130px);
  max-width: 1380px;
  margin: 0 auto;
  min-width: 0;
}

.entry-copy {
  min-width: 0;
  position: relative;
  z-index: 3;
  animation: entryUp .75s ease both;
}
.hero-wheel-stage {
  position: absolute;
  z-index: 1;
  width: clamp(500px, 46vw, 700px);
  aspect-ratio: 1;
  top: 50%;
  left: clamp(-110px, 1vw, 18px);
  translate: 0 -50%;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, .72));
  animation: heroWheelReveal 1.8s .18s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-wheel-stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,87,.26), rgba(53,239,193,.08) 43%, transparent 70%);
  filter: blur(28px);
  animation: heroPulse 4.8s ease-in-out infinite;
}
.hero-wheel-stage img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  object-fit: contain;
  opacity: .36;
  filter: saturate(.82) contrast(1.12) brightness(.62);
  animation: heroWheelRotate 38s linear infinite;
}
.hero-wheel-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(53,239,193,.38);
}
.orbit-outer {
  inset: 1%;
  border-style: dashed;
  opacity: .58;
  box-shadow: 0 0 34px rgba(53,239,193,.08), inset 0 0 34px rgba(53,239,193,.05);
  animation: rotate 24s linear infinite reverse;
}
.orbit-inner {
  inset: 7%;
  border-color: rgba(255,200,87,.45);
  border-width: 2px;
  animation: rotate 16s linear infinite;
}
.hero-wheel-scan {
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 78%, rgba(53,239,193,.38) 84%, rgba(255,200,87,.65) 88%, transparent 94%);
  mask: radial-gradient(circle, transparent 0 71%, #000 72% 74%, transparent 75%);
  animation: rotate 7s linear infinite;
}
.hero-wheel-shine {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  overflow: hidden;
}
.hero-wheel-shine::after {
  content: "";
  position: absolute;
  width: 24%;
  height: 150%;
  top: -25%;
  left: -42%;
  rotate: 18deg;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  filter: blur(5px);
  animation: heroSweep 5.6s 1.5s ease-in-out infinite;
}
.eyebrow { display: inline-block; margin-bottom: 22px; color: var(--amber); }
.entry-copy h1 {
  margin: 0;
  font-size: clamp(58px, 7.25vw, 108px);
  line-height: .98;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(255, 200, 87, .18);
}
.entry-copy h1 span { display: block; white-space: nowrap; }
.entry-copy h1 span + span { margin-top: .08em; }
.entry-copy p { margin: 26px 0 0; color: #c7d0c7; font-size: clamp(16px, 1.6vw, 21px); }

.entry-side {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  animation: entryUp .75s .14s ease both;
}
.access-console {
  position: relative;
  background: rgba(8, 14, 13, .82);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  padding: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5), inset 0 0 40px rgba(53, 239, 193, .04);
  min-width: 0;
}
.console-label { display: flex; justify-content: space-between; margin-bottom: 13px; }
.console-label em { color: var(--amber); font-style: normal; }
input {
  width: 100%; height: 62px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  outline: 0;
  padding: 0 17px;
  background: rgba(0,0,0,.4);
  color: var(--paper);
  text-transform: uppercase;
  font-size: 18px;
}
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(53,239,193,.12); }

.command-button, .spin-button, .result-button, .primary-button, .ghost-button {
  border: 0; border-radius: 3px; font-weight: 800;
}
.command-button {
  width: 100%; min-height: 62px; margin-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 18px;
  color: #12150f;
  background: linear-gradient(120deg, var(--amber), #ff7c3f);
  box-shadow: 0 10px 28px rgba(255, 107, 61, .2);
}
.command-button b { font-size: 11px; letter-spacing: .15em; }
.command-button:disabled, .spin-button:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.6); }
.message { min-height: 22px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.message.is-error { color: #ff967e; }
.message.is-ok { color: var(--teal); }

.reward-brief {
  position: relative;
  padding: 1px;
  overflow: hidden;
  background: rgba(5, 8, 7, .92);
  box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 34px rgba(53,239,193,.08);
}
.reward-brief::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 170%;
  aspect-ratio: 1;
  left: -35%;
  top: 50%;
  translate: 0 -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 24%,
    var(--teal) 29%,
    var(--amber) 34%,
    transparent 39% 74%,
    var(--orange) 80%,
    var(--teal) 85%,
    transparent 90%
  );
  animation: rewardEdgeFlow 5s linear infinite;
}
.reward-brief-inner {
  position: relative;
  z-index: 1;
  margin: 1px;
  padding: 18px 20px 17px;
  background:
    linear-gradient(120deg, rgba(53,239,193,.045), transparent 42%),
    rgba(7, 12, 11, .97);
}
.reward-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}
.reward-brief-head span {
  color: var(--teal);
  font-size: 9px;
  letter-spacing: .18em;
}
.reward-brief-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1;
}
.reward-brief-head > b {
  color: var(--amber);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255,200,87,.35);
}
.reward-rule {
  margin: 14px 0 12px;
  padding: 10px 12px;
  color: #e8eee7;
  background: linear-gradient(90deg, rgba(255,200,87,.13), rgba(53,239,193,.045));
  border-left: 2px solid var(--amber);
  font-size: 13px;
  line-height: 1.55;
}
.reward-pool-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
}
.reward-pool-label i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}
.reward-brief ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}
.reward-brief li {
  min-width: 0;
  min-height: 31px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  font-size: 12px;
}
.reward-brief li:first-child {
  color: #fff2c3;
  background: linear-gradient(90deg, rgba(255,200,87,.12), transparent);
}
.reward-brief li b {
  color: var(--amber);
  font-size: 10px;
}
.reward-brief li span {
  color: #c7d1c9;
  overflow-wrap: anywhere;
}

.game-footer { min-height: 40px; color: #77867c; font-size: 11px; letter-spacing: .1em; }
.game-footer a { color: var(--teal); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }

.portal-screen {
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
  justify-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.portal-intro { text-align: center; position: relative; z-index: 3; }
.portal-intro p { margin: 14px 0 28px; color: #bdc8bf; letter-spacing: .08em; }
.destiny-core {
  width: 154px; height: 154px;
  margin: 0 auto;
  position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255,200,87,.23), rgba(10,16,15,.84) 55%, transparent 57%);
  animation: coreArrival 1s cubic-bezier(.17,1.3,.28,1) both;
}
.destiny-logo {
  width: 116px;
  height: 88px;
  object-fit: contain;
  max-width: none;
  filter: invert(77%) sepia(83%) saturate(432%) hue-rotate(338deg) brightness(103%) contrast(104%) drop-shadow(0 0 18px rgba(255,200,87,.68));
}
.destiny-core > span { position: absolute; bottom: 22px; font-size: 11px; color: var(--teal); letter-spacing: .16em; }
.core-ring { position: absolute; border-radius: 50%; border: 1px solid var(--teal); }
.ring-one { inset: 0; border-style: dashed; animation: rotate 8s linear infinite; }
.ring-two { inset: 16px; border-color: var(--amber); border-width: 2px; animation: rotate 5s linear infinite reverse; }

.choice-deck {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  perspective: 1200px;
}
.wheel-choice {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 4px;
  padding: 25px;
  text-align: left;
  color: var(--paper);
  background: rgba(9, 15, 14, .88);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 70px rgba(0,0,0,.42);
  opacity: 0;
  transform: translateX(0) scale(.62);
}
.portal-screen.is-revealed .zodiac-choice { animation: splitLeft .9s .45s cubic-bezier(.18,1,.22,1) forwards; }
.portal-screen.is-revealed .surprise-choice { animation: splitRight .9s .45s cubic-bezier(.18,1,.22,1) forwards; }
.wheel-choice::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(90deg, transparent, currentColor, transparent) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .3;
}
.wheel-choice::after {
  content: ""; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 82%, currentColor 88%, transparent 94%);
  opacity: .13; animation: rotate 4.5s linear infinite; pointer-events: none;
}
.zodiac-choice { color: var(--amber); }
.surprise-choice { color: var(--teal); }
.wheel-choice:hover { border-color: currentColor; transform: translateY(-4px); box-shadow: 0 28px 80px color-mix(in srgb, currentColor 18%, transparent); }
.choice-icon {
  position: absolute; right: 22px; top: 22px;
  width: 86px; height: 86px; display: grid; place-items: center;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  box-shadow: inset 0 0 30px color-mix(in srgb, currentColor 18%, transparent);
}
.choice-icon span { transform: rotate(-45deg); font-size: 38px; font-weight: 900; color: currentColor; }
.choice-copy { position: absolute; left: 25px; right: 25px; bottom: 65px; z-index: 2; }
.choice-copy small { color: #aebbb1; }
.choice-copy h2 { margin: 8px 0 9px; color: var(--paper); font-size: clamp(30px, 4vw, 54px); line-height: 1; }
.choice-copy p { margin: 0; color: #9ca99f; }
.select-signal { position: absolute; left: 25px; bottom: 22px; font-size: 12px; color: currentColor; letter-spacing: .1em; }

.wheel-overlay, .result-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(2, 5, 4, .92);
  backdrop-filter: blur(12px);
  padding: 18px;
}
.wheel-overlay.is-opening .machine-frame { animation: machineIn .7s cubic-bezier(.16,1,.25,1) both; }
.machine-frame {
  width: min(1320px, 100%);
  height: min(860px, calc(100vh - 36px));
  min-height: 620px;
  position: relative;
  background: linear-gradient(145deg, rgba(18,24,21,.98), rgba(5,8,8,.98));
  border: 4px solid #29342e;
  box-shadow: 0 40px 120px #000, inset 0 0 70px rgba(53,239,193,.04);
  padding: 42px 44px 36px;
  overflow: hidden;
}
.bulb-track, .result-lights { position: absolute; inset: 9px; pointer-events: none; }
.bulb {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #3d443e; box-shadow: 0 0 4px rgba(0,0,0,.8);
}
.bulb.is-on { background: var(--amber); box-shadow: 0 0 10px var(--amber), 0 0 24px rgba(255,200,87,.7); }
.machine-topbar { height: 74px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.machine-topbar h2 { margin: 5px 0 0; font-size: clamp(24px, 3vw, 40px); line-height: 1; }
.icon-button {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 3px;
  color: var(--paper); background: rgba(53,239,193,.08); font-size: 24px;
}
.live-chip { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; letter-spacing: .14em; }
.machine-body {
  height: calc(100% - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.wheel-bay {
  position: relative;
  width: min(640px, 70vh, 100%);
  aspect-ratio: 1;
  margin: auto;
  display: grid; place-items: center;
}
.wheel-bay::before {
  content: ""; position: absolute; inset: 2%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,87,.18), rgba(53,239,193,.05) 42%, transparent 68%);
  filter: blur(15px);
}
.energy-halo { position: absolute; border-radius: 50%; pointer-events: none; }
.halo-a { inset: 0; border: 2px dashed rgba(53,239,193,.5); animation: rotate 11s linear infinite; }
.halo-b { inset: 5%; border: 1px solid rgba(255,200,87,.55); box-shadow: 0 0 34px rgba(255,200,87,.16); animation: rotate 8s linear infinite reverse; }
.wheel-disc {
  width: 86%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  position: relative; z-index: 2;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.65));
  will-change: transform;
}
.wheel-disc img { width: 100%; height: 100%; display: block; object-fit: contain; }
.wheel-glass { position: absolute; inset: 4%; border-radius: 50%; background: linear-gradient(125deg, rgba(255,255,255,.24), transparent 28% 70%, rgba(53,239,193,.12)); pointer-events: none; }
.pointer {
  position: absolute; z-index: 8; top: -1%; left: 50%; translate: -50% 0;
  width: 58px; height: 92px;
  filter: drop-shadow(0 0 14px rgba(255,107,61,.8));
}
.pointer span { display: block; width: 100%; height: 100%; background: var(--orange); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.wheel-hub {
  position: absolute; z-index: 7; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; align-content: center;
  background: radial-gradient(circle at 35% 30%, #fff2b3, #d48c21 34%, #2b1b09 72%);
  border: 3px solid #ffe193;
  box-shadow: 0 0 0 8px rgba(6,9,8,.68), 0 0 32px rgba(255,200,87,.65);
}
.wheel-hub b { font-size: 34px; color: #171208; line-height: 1; }
.wheel-hub small { font-size: 8px; color: #3c2a0d; font-weight: 900; }
.wheel-bay.is-spinning .pointer { animation: pointerTick .12s linear infinite; }
.wheel-bay.is-spinning .energy-halo { border-color: var(--amber); box-shadow: 0 0 35px rgba(255,200,87,.5); }

.slot-machine {
  display: none;
  position: relative;
  z-index: 4;
  width: min(680px, 100%);
  min-height: 440px;
  padding: 30px 92px 30px 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 200, 87, .18), transparent 38%),
    linear-gradient(145deg, rgba(16, 23, 20, .98), rgba(5, 7, 7, .98));
  border: 3px solid rgba(255, 200, 87, .62);
  box-shadow:
    0 28px 85px rgba(0,0,0,.72),
    inset 0 0 50px rgba(53,239,193,.08),
    0 0 0 1px rgba(53,239,193,.24);
  overflow: hidden;
}
.slot-machine::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(53,239,193,.45) 74%, rgba(255,200,87,.65) 78%, transparent 84%);
  opacity: .22;
  animation: rotate 5.5s linear infinite;
}
.slot-machine::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(53,239,193,.28);
  pointer-events: none;
}
.wheel-bay.is-slot-mode {
  width: min(760px, 100%);
  aspect-ratio: auto;
}
.wheel-bay.is-slot-mode .pointer,
.wheel-bay.is-slot-mode .wheel-disc,
.wheel-bay.is-slot-mode .wheel-hub {
  display: none;
}
.wheel-bay.is-slot-mode .energy-halo {
  border-radius: 18px;
  opacity: .34;
}
.wheel-bay.is-slot-mode .halo-a { inset: 3%; }
.wheel-bay.is-slot-mode .halo-b { inset: 8%; }
.wheel-bay.is-slot-mode .slot-machine { display: block; }
.slot-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: .18em;
}
.slot-topline b {
  color: var(--amber);
  font-size: 26px;
  letter-spacing: 0;
}
.slot-window {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  height: 154px;
  padding: 10px;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 35px rgba(0,0,0,.75), 0 0 26px rgba(255,200,87,.12);
  overflow: hidden;
}
.slot-window::before,
.slot-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 4;
  pointer-events: none;
}
.slot-window::before { top: 0; background: linear-gradient(#050706, transparent); }
.slot-window::after { bottom: 0; background: linear-gradient(transparent, #050706); }
.slot-reel {
  display: grid;
  gap: 0;
  will-change: transform;
}
.slot-item {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255,200,87,.08), rgba(53,239,193,.05));
  border: 1px solid rgba(255,255,255,.1);
}
.slot-item img {
  position: relative;
  z-index: 2;
  width: min(76px, 70%);
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(255,200,87,.45));
}
.slot-item b {
  position: relative;
  z-index: 2;
  min-width: 42px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px 3px;
  color: var(--amber);
  font-size: 24px;
  line-height: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 200, 87, .28), rgba(255, 200, 87, .08) 46%, transparent 72%);
  box-shadow: 0 0 16px rgba(255,200,87,.28), inset 0 -2px 0 rgba(255,255,255,.18);
  text-shadow: 0 2px 8px rgba(0,0,0,.75), 0 0 12px rgba(255,200,87,.45);
}
.slot-item span {
  position: relative;
  z-index: 2;
  max-width: 100%;
  color: #dce5dc;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-lever {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 92px;
  width: 34px;
  height: 210px;
  touch-action: none;
  cursor: grab;
}
.slot-lever:active { cursor: grabbing; }
.slot-lever i {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255,255,255,.96) 0 9%, rgba(255,210,190,.74) 10% 17%, transparent 18%),
    radial-gradient(circle at 60% 68%, #5b0606 0 28%, transparent 29%),
    radial-gradient(circle at 38% 34%, #ff6a52, #d41418 44%, #620606 78%);
  border: 2px solid rgba(255, 226, 190, .55);
  transform: translate(-50%, var(--lever-pull, 0));
  box-shadow:
    0 0 18px rgba(255, 38, 38, .86),
    0 0 38px rgba(255, 107, 61, .45),
    inset 0 -10px 16px rgba(48,0,0,.58),
    inset 0 7px 12px rgba(255,255,255,.28);
  animation: leverGlow 2.2s ease-in-out infinite;
}
.slot-lever i::after {
  content: "";
  position: absolute;
  inset: 6px 9px auto auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  filter: blur(.4px);
}
.slot-lever span {
  position: absolute;
  z-index: 1;
  top: 38px;
  left: 50%;
  width: 8px;
  height: 148px;
  translate: -50% 0;
  background: linear-gradient(90deg, #45200e, #ffe7a0 36%, #a14918 62%, #351006);
  border-radius: 99px;
  box-shadow: inset 0 0 7px rgba(0,0,0,.55), 0 0 18px rgba(255,200,87,.18);
}
.slot-lever.is-returning i {
  transition: transform .24s cubic-bezier(.2,.9,.28,1.25);
}
.slot-lever.is-armed i {
  box-shadow:
    0 0 22px rgba(255, 38, 38, 1),
    0 0 52px rgba(255, 107, 61, .78),
    inset 0 -10px 16px rgba(48,0,0,.58),
    inset 0 7px 12px rgba(255,255,255,.34);
}
.wheel-bay.is-spinning .slot-lever i {
  animation: leverPull .55s ease-in-out 2, leverGlow 2.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.slot-caption {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  color: var(--amber);
  font-size: 13px;
  letter-spacing: .16em;
  text-align: center;
}
.slot-brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(360px, 74%);
  height: 110px;
  object-fit: contain;
  object-position: center;
  margin: 18px auto 0;
  opacity: .34;
  filter: sepia(.2) saturate(1.25) drop-shadow(0 0 18px rgba(255, 200, 87, .18));
  mix-blend-mode: screen;
  pointer-events: none;
}

.zodiac-price-table {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.zodiac-rules {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #d6dfd6;
  background: linear-gradient(90deg, rgba(255,200,87,.1), rgba(53,239,193,.045));
  border-left: 2px solid var(--amber);
  font-size: 12px;
  line-height: 1.55;
}
.zodiac-rules p { margin: 0; }
.zodiac-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.zodiac-packages div {
  min-width: 0;
  padding: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.zodiac-packages b,
.zodiac-packages em {
  display: block;
  color: var(--amber);
  font-style: normal;
}
.zodiac-packages span {
  display: block;
  min-height: 34px;
  margin: 5px 0;
  color: #d7dfd7;
  font-size: 12px;
  line-height: 1.35;
}
.prize-monitor li.is-zodiac-rule {
  align-items: start;
  min-height: 76px;
  padding: 11px 8px 11px 0;
}
.prize-monitor li.is-zodiac-rule span {
  display: grid;
  gap: 5px;
}
.prize-monitor li.is-zodiac-rule strong {
  color: #fff4cf;
  font-size: 14px;
}
.prize-monitor li.is-zodiac-rule small {
  color: #aeb9af;
  line-height: 1.45;
}

.prize-monitor { align-self: stretch; padding: 30px 0; display: flex; flex-direction: column; min-height: 0; }
.monitor-head { display: flex; justify-content: space-between; color: var(--teal); }
.monitor-head b { color: var(--amber); font-size: 22px; }
.prize-monitor > p { margin: 12px 0 18px; color: var(--muted); line-height: 1.6; }
.prize-monitor ol { list-style: none; padding: 0; margin: 0; overflow: auto; border-top: 1px solid var(--line); }
.prize-monitor li {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center;
  min-height: 50px; border-bottom: 1px solid rgba(255,255,255,.08); color: #c8d1ca;
}
.prize-monitor li b { color: var(--amber); font-size: 11px; }
.prize-monitor li.is-reward {
  grid-template-columns: 34px 1fr;
  padding-right: 8px;
  color: #f1f3e9;
  background: linear-gradient(90deg, rgba(255, 200, 87, .08), transparent 72%);
}
.prize-monitor li.is-reward span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-left: 2px solid var(--wheel-accent, var(--teal));
  background: rgba(255,255,255,.035);
}
.prize-monitor li.is-reward:nth-child(1) span { border-color: #ff475f; color: #ffe1c5; }
.prize-monitor li.is-reward:nth-child(2) span { border-color: #ffd15c; }
.prize-monitor li.is-reward:nth-child(3) span { border-color: #efefef; }
.prize-monitor li.is-reward:nth-child(4) span { border-color: #ff8d67; }
.prize-monitor li.is-reward:nth-child(5) span { border-color: #64a5ff; }
.prize-monitor li.is-reward:nth-child(6) span { border-color: #b988ff; }
.prize-monitor li.is-reward:nth-child(7) span { border-color: #35e0bd; }
.prize-monitor li small { color: var(--muted); }
.spin-button {
  margin-top: auto; min-height: 70px; display: grid; place-items: center;
  color: #12140f; background: linear-gradient(105deg, var(--amber), var(--orange));
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 16px 45px rgba(255,107,61,.23);
}
.spin-button span { font-size: 18px; }
.spin-button small { font-size: 9px; letter-spacing: .18em; }

.result-overlay { z-index: 90; overflow: hidden; }
.result-burst {
  position: absolute; width: min(1000px, 120vw); aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,200,87,.17) 0 3deg, transparent 3deg 13deg);
  animation: burstIn .9s ease both, rotate 24s linear infinite;
}
.result-window {
  width: min(680px, calc(100vw - 32px));
  position: relative; z-index: 2;
  padding: clamp(32px, 5vw, 56px) clamp(30px, 5vw, 62px) clamp(36px, 6vw, 68px);
  text-align: center;
  color: #13170f;
  background: linear-gradient(145deg, #f4f1da, #d9d0a4);
  border: 6px solid #262c25;
  box-shadow: 0 0 0 3px var(--result-accent, var(--amber)), 0 45px 130px #000, 0 0 100px color-mix(in srgb, var(--result-accent, var(--amber)) 25%, transparent);
  animation: resultPop .78s cubic-bezier(.18,1.25,.25,1) both;
  overflow: hidden;
}
.result-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--result-accent, var(--amber)) 24%, transparent), transparent 44%),
    repeating-linear-gradient(90deg, rgba(19,23,15,.055) 0 1px, transparent 1px 18px);
}
.result-window > span,
.result-window h2,
.result-desc,
.result-meta,
.result-actions,
.result-art {
  position: relative;
  z-index: 2;
}
.result-window > span { color: color-mix(in srgb, var(--result-accent, #a03b21) 65%, #25160e); font-weight: 900; }
.result-window h2 { margin: 12px 0 12px; font-size: clamp(42px, 8vw, 82px); line-height: .95; overflow-wrap: anywhere; }
.result-desc { margin: 0; font-size: clamp(18px, 3vw, 28px); color: #384037; }
.result-art {
  width: min(190px, 38vw);
  aspect-ratio: 1.55;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  color: #15170e;
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(135deg, #fff3ae, var(--result-accent, var(--amber)) 46%, #5b2d12);
  border: 2px solid rgba(255,255,255,.72);
  box-shadow: 0 20px 55px color-mix(in srgb, var(--result-accent, var(--amber)) 38%, transparent), inset 0 0 34px rgba(255,255,255,.25);
  transform: rotate(-3deg);
}
.result-art::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(19,23,15,.28);
  pointer-events: none;
}
.result-art.is-coin {
  width: min(168px, 36vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff6b8, #ffd15c 34%, #b96b10 72%);
}
.result-art.is-knife {
  width: min(220px, 48vw);
  aspect-ratio: 3.2;
  clip-path: polygon(0 38%, 68% 38%, 82% 0, 100% 50%, 82% 100%, 68% 62%, 0 62%);
  background: linear-gradient(90deg, #313a38 0 28%, #f5f2e8 28% 74%, var(--result-accent, #fff) 74%);
}
.result-art.is-coupon {
  clip-path: polygon(0 0, 100% 0, 100% 34%, 93% 50%, 100% 66%, 100% 100%, 0 100%, 0 66%, 7% 50%, 0 34%);
}
.result-art.is-cat {
  width: min(172px, 38vw);
  aspect-ratio: 1;
  border-radius: 44% 44% 48% 48%;
  background: radial-gradient(circle at 35% 38%, #fff, transparent 4%), radial-gradient(circle at 65% 38%, #fff, transparent 4%), linear-gradient(135deg, #f7e1ff, var(--result-accent, #b988ff));
}
.result-art.is-cat::after {
  content: "";
  position: absolute;
  inset: -22px 22px auto;
  height: 54px;
  background: linear-gradient(135deg, transparent 0 32%, var(--result-accent, #b988ff) 33% 60%, transparent 61%), linear-gradient(225deg, transparent 0 32%, var(--result-accent, #b988ff) 33% 60%, transparent 61%);
}
.result-art.is-tea {
  border-radius: 0 0 34px 34px;
  background: linear-gradient(180deg, #ffe2c9, var(--result-accent, #ff8d67));
}
.result-art.is-zodiac {
  width: min(260px, 62vw);
  aspect-ratio: 2.6;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #171d18, #33250f);
}
.result-art.is-zodiac figure,
.zodiac-result-list figure {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
}
.zodiac-result-list figure::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: url("/assets/zodiac-text-bg.png?v=20260630-zodiac-3") center / contain no-repeat;
  opacity: .72;
  filter: saturate(1.18) drop-shadow(0 0 8px rgba(255, 200, 87, .22));
}
.result-art.is-zodiac figure {
  width: 33.33%;
  height: 100%;
}
.result-art.is-zodiac img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255,200,87,.45));
}
.zodiac-result-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  text-align: left;
}
.zodiac-result-list section {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(255, 200, 87, .16), rgba(255,255,255,.08)),
    rgba(19,23,15,.075);
  border: 1px solid rgba(19,23,15,.18);
  border-left: 5px solid var(--result-accent, var(--amber));
  box-shadow: 0 12px 28px rgba(19,23,15,.12);
  opacity: 0;
  transform: translateX(-28px) scale(.96);
  animation: resultTaskSlide .52s cubic-bezier(.18,1.2,.22,1) forwards;
  animation-delay: var(--stagger, 0ms);
}
.zodiac-result-list figure {
  width: 58px;
  height: 48px;
}
.zodiac-result-list img {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 48px;
  object-fit: contain;
}
.zodiac-result-list b {
  display: block;
  color: #17170f;
  font-size: 17px;
  line-height: 1.25;
}
.zodiac-result-list span {
  display: block;
  margin-top: 4px;
  color: #4f574d;
  font-size: 14px;
  line-height: 1.45;
}
.result-meta { margin-top: 30px; padding: 17px; border: 1px solid rgba(19,23,15,.24); display: grid; gap: 8px; }
.result-meta span { font-weight: 900; }
.result-meta b { color: #596156; font-size: 13px; overflow-wrap: anywhere; }
.result-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-button { min-height: 56px; color: #11150f; background: var(--amber); }
.result-button.secondary { color: var(--paper); background: #1b211d; }

.admin-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-panel { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 38px; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.panel-title h1 { margin: 10px 0 0; font-size: clamp(32px, 6vw, 54px); line-height: 1; }
.field { display: grid; gap: 10px; margin-top: 28px; }
.primary-button { width: 100%; min-height: 58px; margin-top: 14px; color: #10140f; background: linear-gradient(115deg, var(--amber), var(--orange)); }
.ghost-button { min-height: 48px; padding: 0 18px; color: var(--paper); background: rgba(53,239,193,.1); border: 1px solid var(--line); }
.generated { margin-top: 18px; padding: 18px; border: 1px solid rgba(255,200,87,.35); background: rgba(255,200,87,.08); }
.generated strong { display: block; margin: 9px 0 14px; color: var(--amber); font-size: clamp(26px, 6vw, 42px); letter-spacing: .08em; overflow-wrap: anywhere; }
.ghost-link { display: inline-block; margin-top: 14px; color: var(--teal); text-decoration: none; border-bottom: 1px solid var(--line); }

@keyframes entryUp { from { transform: translateY(24px); } to { transform: none; } }
@keyframes heroWheelReveal {
  from { transform: translateX(90px) scale(.72) rotate(-12deg); filter: blur(12px) drop-shadow(0 34px 70px rgba(0,0,0,.72)); }
  to { transform: none; filter: blur(0) drop-shadow(0 34px 70px rgba(0,0,0,.72)); }
}
@keyframes heroWheelRotate { to { transform: rotate(360deg); } }
@keyframes heroPulse { 50% { opacity: .58; scale: 1.08; } }
@keyframes heroSweep { 0%, 32% { translate: 0 0; opacity: 0; } 45% { opacity: 1; } 68%, 100% { translate: 620% 0; opacity: 0; } }
@keyframes rewardEdgeFlow { to { transform: rotate(360deg); } }
@keyframes signal { 50% { opacity: .35; scale: .7; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes coreArrival { from { scale: .1; filter: blur(8px); } to { scale: 1; filter: none; } }
@keyframes splitLeft { from { opacity: 0; transform: translateX(52%) scale(.62); } to { opacity: 1; transform: none; } }
@keyframes splitRight { from { opacity: 0; transform: translateX(-52%) scale(.62); } to { opacity: 1; transform: none; } }
@keyframes machineIn { from { transform: scale(.82); } to { transform: none; } }
@keyframes pointerTick { 50% { transform: rotate(8deg); transform-origin: 50% 0; } }
@keyframes leverPull { 50% { transform: translate(-50%, 112px); } }
@keyframes leverGlow {
  50% {
    box-shadow:
      0 0 24px rgba(255, 38, 38, 1),
      0 0 52px rgba(255, 107, 61, .62),
      inset 0 -10px 16px rgba(48,0,0,.58),
      inset 0 7px 12px rgba(255,255,255,.34);
  }
}
@keyframes resultPop { from { opacity: 0; transform: translateY(80px) scale(.72); } to { opacity: 1; transform: none; } }
@keyframes resultTaskSlide { to { opacity: 1; transform: none; } }
@keyframes burstIn { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }

@media (max-width: 900px) {
  .game-shell { padding: 20px 18px; }
  .entry-screen { grid-template-columns: 1fr; align-content: center; gap: 30px; padding: 38px 0 62px; }
  .entry-copy { text-align: center; }
  .hero-wheel-stage {
    width: min(68vw, 520px);
    top: 46%;
    left: auto;
    right: 50%;
    translate: 50% -50%;
    opacity: .58;
  }
  .hero-wheel-stage img { opacity: .3; filter: saturate(.8) contrast(1.08) brightness(.55); }
  .entry-copy p { margin-left: auto; margin-right: auto; }
  .entry-side { width: 100%; max-width: 560px; margin: 0 auto; }
  .choice-deck { grid-template-columns: 1fr; }
  .wheel-choice { min-height: 230px; }
  .portal-screen { padding: 34px 0 70px; }
  .machine-frame { height: calc(100vh - 24px); min-height: 0; padding: 30px 22px 22px; overflow-y: auto; }
  .machine-body { height: auto; grid-template-columns: 1fr; gap: 10px; }
  .wheel-bay { width: min(520px, 82vw); }
  .wheel-bay.is-slot-mode {
    display: grid;
    gap: 12px;
    justify-items: center;
  }
  .wheel-bay.is-slot-mode > .spin-button {
    width: min(520px, 100%);
    min-height: 62px;
    margin: 0;
    order: 5;
  }
  .prize-monitor { min-height: 360px; padding: 10px 0; }
  .machine-topbar { position: sticky; top: 0; z-index: 12; background: rgba(10,15,14,.94); }
}

@media (max-width: 560px) {
  .game-shell { padding-left: 14px; padding-right: 14px; }
  .game-header { align-items: flex-start; }
  .system-state { max-width: 110px; text-align: right; line-height: 1.4; }
  .club-mark small { display: none; }
  .entry-screen { min-height: calc(100vh - 120px); }
  .entry-copy { width: 100%; overflow: hidden; }
  .entry-copy h1 { font-size: clamp(44px, 12.5vw, 52px); line-height: 1.04; }
  .entry-copy h1 span + span { margin-top: .12em; }
  .entry-copy p { width: min(100%, 350px); font-size: 14px; line-height: 1.65; }
  .entry-side {
    width: calc(100vw - 28px);
    min-width: 0;
    max-width: calc(100vw - 28px);
  }
  .access-console, .reward-brief { width: 100%; min-width: 0; max-width: 100%; }
  .access-console { padding: 20px 16px; }
  .reward-brief-inner { padding: 16px 14px; }
  .reward-brief ol { grid-template-columns: 1fr; }
  .reward-brief-head h2 { font-size: 21px; }
  .reward-brief-head > b { font-size: 25px; }
  .command-button { padding: 0 15px; }
  .choice-icon { width: 62px; height: 62px; }
  .choice-icon span { font-size: 28px; }
  .choice-copy h2 { font-size: 34px; }
  .game-footer > span { display: none; }
  .game-footer { justify-content: flex-end; }
  .machine-frame { padding: 24px 14px 18px; border-width: 2px; }
  .machine-topbar { height: 68px; }
  .machine-topbar h2 { font-size: 22px; }
  .live-chip { display: none; }
  .wheel-bay { width: 88vw; max-width: 390px; }
  .pointer { width: 42px; height: 66px; }
  .wheel-hub { width: 78px; height: 78px; }
  .wheel-hub b { font-size: 25px; }
  .prize-monitor li { font-size: 13px; }
  .result-actions { grid-template-columns: 1fr; }
  .result-window { padding: 36px 22px; }
  .result-window h2 { font-size: 46px; }
}

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