:root {
  --bg: #0d0a07;
  --ink: #f4ecdd;
  --muted: #a99b83;
  --line: rgba(255, 196, 80, .26);
  --gold: #f0a32a;
  --up: #2fd07f;
  --down: #ff5d5d;
  --btn: linear-gradient(180deg, #fff0b0 0%, #ffd24a 22%, #f5b02a 55%, #e09216 78%, #ffdf7e 100%);
  --title: linear-gradient(180deg, #fffbe8 0%, #ffe486 30%, #ffc42c 52%, #c97f14 74%, #f7c74a 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", Tahoma, "Geeza Pro", "Noto Naskh Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(240, 163, 42, .22), transparent 46%),
    radial-gradient(ellipse at 50% 120%, rgba(90, 40, 8, .45), transparent 42%),
    var(--bg);
}
body.lock { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 196, 80, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 80, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 28%, #000 10%, transparent 72%);
}

.stage {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 28px 18px 108px;
  position: relative;
}
.lang-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 12px;
  direction: ltr;
}
.lang-switch a {
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 80, .28);
  color: #f4ecdd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.lang-switch a.on {
  background: linear-gradient(180deg, #ffe7a3, #f0a32a);
  color: #3b2405;
  border-color: transparent;
}
.badge {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 14, 8, .8);
  color: #ffe7a8;
  font-size: 13px;
  letter-spacing: .04em;
}
.kicker {
  margin: 0 0 6px;
  text-align: center;
  color: #f0b44a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 9vw, 46px);
  line-height: .95;
  letter-spacing: -0.03em;
  background: var(--title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 18px rgba(255, 170, 40, .2));
}
.sub {
  margin: 10px 0 0;
  text-align: center;
  color: #efe4d0;
  font-size: 15px;
}
.ribbon {
  margin: 16px auto 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(90, 58, 16, .2), rgba(80, 50, 12, .92), rgba(90, 58, 16, .2));
  color: #ffe7a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
}
.laurel { width: 18px; height: 18px; flex: 0 0 auto; }

.poster {
  position: relative;
  margin: 16px 0 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 120, .32);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .48);
}
.poster img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 42%;
}
.poster figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 54px 16px 16px;
  text-align: center;
  background: linear-gradient(transparent, rgba(8, 6, 3, .92) 58%);
}
.poster span {
  display: block;
  color: #ffe7a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.poster strong {
  display: block;
  margin-top: 2px;
  font-size: 58px;
  line-height: .88;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45));
}
.story {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 196, 80, .18);
  background: linear-gradient(180deg, rgba(32, 22, 12, .9), rgba(14, 10, 7, .88));
}
.story img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 210, 120, .22);
}
.story h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: #ffe7a8;
}
.story p {
  margin: 6px 0 0;
  color: #d8ccb8;
  font-size: 13px;
  line-height: 1.45;
}
.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.steps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.steps b {
  color: #f0b44a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.steps span {
  color: #cbbfa8;
  font-size: 12px;
  line-height: 1.35;
}
.steps strong { color: #fff4d8; font-weight: 800; }

.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  position: relative;
}
.chart {
  position: absolute;
  inset: 10% 8% auto;
  height: 70px;
  opacity: .35;
  pointer-events: none;
}
.tk {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(18, 13, 8, .78);
  border-radius: 16px;
  padding: 10px;
}
.pair, .nm {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #f3eadc;
  font-size: 12px;
  font-weight: 700;
}
.dot-i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #1a1208;
}
.btc { background: #f5b02a; }
.eth { background: #8ecbff; }
.bnb { background: #f5d76e; }
.sol { background: #b9a7ff; }
.px {
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(15px, 4.2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.chg, .up, .down {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}
.up { color: var(--up); }
.down { color: var(--down); }
.tk-side { display: grid; gap: 8px; padding: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.row > span:last-child { flex-shrink: 0; }
.reward { text-align: center; position: relative; z-index: 1; }
.winup {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.big {
  margin: 2px 0;
  font-size: clamp(28px, 8vw, 48px);
  line-height: .9;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: var(--title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35));
}
.hr-ribbon {
  margin: 10px auto 0;
  width: fit-content;
  padding: 4px 18px;
  color: #ffe3a4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  background: linear-gradient(90deg, transparent, rgba(90, 58, 16, .9), transparent);
}

.podium {
  position: relative;
  height: 250px;
  margin-top: 8px;
}
.halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 220px;
  height: 70px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 196, 70, .45), transparent 68%);
  filter: blur(2px);
}
.coin {
  position: absolute;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .45));
}
.coin svg { width: 100%; height: auto; display: block; }
.coin-lg { width: 168px; left: 50%; top: 18px; transform: translateX(-50%); animation: float 4.8s ease-in-out infinite; }
.coin-a { width: 62px; left: 18%; top: 78px; animation: float 5.4s ease-in-out infinite reverse; }
.coin-b { width: 54px; right: 18%; top: 96px; animation: float 5s ease-in-out infinite; }
.ring {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(255, 200, 90, .28);
  border-radius: 50%;
  transform: translateX(-50%);
}
.r1 { width: 180px; height: 46px; bottom: 42px; }
.r2 { width: 250px; height: 62px; bottom: 28px; }
@keyframes float {
  50% { translate: 0 -8px; }
}

.features, .foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.features { margin-top: 6px; }
.f, .cell {
  border: 1px solid rgba(255, 196, 80, .16);
  background: rgba(18, 13, 8, .72);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
}
.ft, .k {
  color: #f0b44a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.fd, .v {
  margin-top: 4px;
  color: #cbbfa8;
  font-size: 12px;
  line-height: 1.35;
}
.cta {
  width: 100%;
  margin-top: 14px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #3b2405;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
  background: var(--btn);
  box-shadow: 0 12px 28px rgba(240, 163, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .75);
}
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: .7; cursor: wait; }
.cta-dock {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: 0;
  width: min(480px, 100%);
  transform: translateX(-50%);
  padding: 28px 18px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(13, 10, 7, .2) 18%, #0d0a07 52%);
  pointer-events: none;
}
.cta-dock .cta {
  width: 100%;
  margin: 0;
  pointer-events: auto;
}
body.lock .cta-dock { visibility: hidden; }
.foot { margin-top: 12px; }
.clock {
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.legal {
  margin: 14px 4px 0;
  color: #8d7f69;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, .62);
}
.modal.on { display: flex; }
.sheet {
  width: min(440px, 100%);
  max-height: min(92vh, 840px);
  overflow: auto;
  padding: 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 196, 80, .28);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 163, 42, .16), transparent 42%),
    linear-gradient(180deg, #1b150f, #100c08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.sh-top, .result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.step {
  color: #f0b44a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 80, .2);
  background: transparent;
  color: #f4ecdd;
  font-size: 20px;
  cursor: pointer;
}
.bar {
  height: 4px;
  margin: 10px 0 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe07a, #f0a32a);
  transition: width .25s ease;
}
.q {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}
.opts { display: grid; gap: 8px; }
.opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 196, 80, .18);
  background: rgba(255, 255, 255, .03);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.opt.sel {
  border-color: #f0a32a;
  background: rgba(240, 163, 42, .14);
}
.dot {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid #f0a32a;
}
.opt.sel .dot { background: #f0a32a; box-shadow: inset 0 0 0 3px #1a140c; }
.mail label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.mail input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 80, .24);
  background: rgba(0, 0, 0, .28);
  color: white;
  font: inherit;
  font-size: 16px;
}
.mail input.bad { border-color: var(--down); }
.err { margin: 8px 0 0; color: #ff8d8d; font-size: 13px; }
.nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.back, .next {
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.back {
  border: 1px solid rgba(255, 196, 80, .24);
  background: transparent;
  color: var(--ink);
}
.next {
  border: 0;
  margin-inline-start: auto;
  color: #3b2405;
  background: var(--btn);
}
.next:disabled { opacity: .45; cursor: not-allowed; }
.hint { margin: 10px 0 0; color: #8d7f69; font-size: 12px; text-align: center; }

.wheel-head, .result-copy { text-align: center; }
.wheel-head h2, .result-copy h2 { margin: 8px 0 4px; font-size: 26px; }
.wheel-head p, .result-copy p { margin: 0; color: var(--muted); }
.wheel-box {
  --size: min(320px, 78vw);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin: 16px auto 8px;
}
.pointer {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 24px solid #ffe07a;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .45));
}
.rim {
  width: 100%;
  height: 100%;
  padding: 14px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#8a5a12, #ffe7a8, #8a5a12, #fff6d2, #7a4a0e, #ffe7a8, #8a5a12);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(70, 40, 8, .45);
}
.rotor {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1208;
}
.hub {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(90, 50, 10, .45);
  border-radius: 50%;
  cursor: pointer;
  color: #3b2405;
  font: inherit;
  font-weight: 900;
  letter-spacing: .04em;
  background: var(--btn);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
}
.hub:disabled { cursor: wait; }
.bulbs { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bulbs span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff6d4;
  box-shadow: 0 0 8px #ffd56a;
  transform: rotate(calc(var(--i) * 20deg)) translateY(calc(var(--size) / -2 + 7px));
}
.wheel-box.spinning .bulbs span:nth-child(odd) { animation: blink .36s steps(2) infinite; }
.wheel-box.spinning .bulbs span:nth-child(even) { animation: blink .36s steps(2) infinite reverse; }
@keyframes blink { 50% { opacity: .25; } }

.eyebrow {
  margin: 0;
  color: #f0b44a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.result-prize {
  width: fit-content;
  margin: 16px auto;
  min-width: 180px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 196, 80, .3);
  background: rgba(240, 163, 42, .08);
  text-align: center;
}
.result-prize span { display: block; font-size: 42px; }
.result-prize strong { display: block; margin-top: 4px; font-size: 28px; }
#resultView.win .result-prize {
  background: rgba(47, 208, 127, .1);
  border-color: rgba(47, 208, 127, .45);
}
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: fall 1.7s ease-in forwards;
}
@keyframes fall {
  to { transform: translateY(100vh) rotate(240deg); opacity: .2; }
}

@media (min-width: 760px) {
  .stage {
    margin: 28px auto;
    padding: 32px 22px 108px;
    border: 1px solid rgba(255, 196, 80, .16);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(28, 20, 12, .55), rgba(10, 8, 5, .2));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  }
  .modal { align-items: center; }
}
@media (max-width: 360px) {
  .px { font-size: 16px; }
  .ft, .fd, .k, .v { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .coin-lg, .coin-a, .coin-b { animation: none; }
}
[dir="rtl"] .kicker,
[dir="rtl"] .poster span,
[dir="rtl"] .winup { letter-spacing: 0; }
[dir="rtl"] .opt { text-align: right; }
[dir="rtl"] .mail label, [dir="rtl"] .q, [dir="rtl"] .legal, [dir="rtl"] .hint,
[dir="rtl"] .story h2, [dir="rtl"] .story p, [dir="rtl"] .steps span { text-align: right; }
[dir="rtl"] .ft, [dir="rtl"] .fd, [dir="rtl"] .k, [dir="rtl"] .v { line-height: 1.45; }
