:root {
  --orange: #FB7701;
  --orange-d: #E85D00;
  --red: #FF3B1F;
  --yellow: #FFD400;
  --sky: #1EA7FF;
  --sky-d: #0A6FD6;
  --pink: #FF2E88;
  --green: #39D353;
  --ink: #1B1464;
  --cream: #FFF7EC;
  --outline: 0 4px 0 var(--ink);
  --font-title: "Lilita One", "Arial Black", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-weight: 800;
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; cursor: pointer; }

/* ═════════ WORLD ═════════ */
.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #5BC8FF 0%, #9BE0FF 45%, #FFE3A8 70%, #FFB36B 100%);
}
.sun {
  position: absolute; top: 9%; right: 12%; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #FFF6A8 0 40%, #FFD400 41% 70%, transparent 71%);
  box-shadow: 0 0 80px 30px rgba(255, 212, 0, .45);
  animation: pulse 4s ease-in-out infinite;
}
.cloud {
  position: absolute; width: 160px; height: 48px; background: #fff; border-radius: 40px;
  box-shadow: 40px -22px 0 6px #fff, 86px -6px 0 0 #fff;
  opacity: .95; animation: drift linear infinite;
}
.c1 { top: 12%; animation-duration: 42s; }
.c2 { top: 24%; transform: scale(.7); animation-duration: 60s; animation-delay: -20s; }
.c3 { top: 6%; transform: scale(.55); animation-duration: 75s; animation-delay: -45s; }
@keyframes drift { from { left: -260px; } to { left: 110%; } }
@keyframes pulse { 50% { transform: scale(1.06); } }

.city {
  position: absolute; left: 0; right: 0; background-repeat: repeat-x;
  animation: scroll-x linear infinite;
}
.city.far {
  bottom: 38vh; height: 210px; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='210'%3E%3Cg fill='%237B6CF6'%3E%3Crect x='0' y='90' width='60' height='120'/%3E%3Crect x='70' y='40' width='50' height='170'/%3E%3Crect x='130' y='110' width='80' height='100'/%3E%3Crect x='220' y='20' width='44' height='190'/%3E%3Crect x='275' y='80' width='70' height='130'/%3E%3Crect x='355' y='55' width='55' height='155'/%3E%3Crect x='420' y='120' width='90' height='90'/%3E%3Crect x='520' y='30' width='60' height='180'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 210px; animation-duration: 90s;
}
.city.near {
  bottom: 34vh; height: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='240'%3E%3Cg stroke='%231B1464' stroke-width='4'%3E%3Crect x='10' y='70' width='90' height='180' fill='%23FF2E88'/%3E%3Crect x='120' y='120' width='70' height='130' fill='%23FFD400'/%3E%3Crect x='210' y='40' width='80' height='210' fill='%2339D353'/%3E%3Crect x='310' y='100' width='100' height='150' fill='%23FB7701'/%3E%3Crect x='430' y='60' width='70' height='190' fill='%231EA7FF'/%3E%3Crect x='520' y='130' width='80' height='120' fill='%23FF2E88'/%3E%3Crect x='620' y='80' width='90' height='170' fill='%23FFD400'/%3E%3C/g%3E%3Cg fill='%23FFF7EC' opacity='.85'%3E%3Crect x='28' y='92' width='18' height='18'/%3E%3Crect x='62' y='92' width='18' height='18'/%3E%3Crect x='28' y='130' width='18' height='18'/%3E%3Crect x='62' y='130' width='18' height='18'/%3E%3Crect x='228' y='62' width='16' height='16'/%3E%3Crect x='258' y='62' width='16' height='16'/%3E%3Crect x='228' y='96' width='16' height='16'/%3E%3Crect x='258' y='96' width='16' height='16'/%3E%3Crect x='330' y='124' width='22' height='16'/%3E%3Crect x='368' y='124' width='22' height='16'/%3E%3Crect x='448' y='84' width='14' height='20'/%3E%3Crect x='472' y='84' width='14' height='20'/%3E%3Crect x='640' y='104' width='18' height='18'/%3E%3Crect x='674' y='104' width='18' height='18'/%3E%3C/g%3E%3Cpath d='M330 170 l20 -30 l20 30 z M140 150 h30 M540 160 q30 -30 60 0' stroke='%231B1464' stroke-width='5' fill='none'/%3E%3C/svg%3E");
  background-size: 720px 240px; animation-duration: 38s;
}
@keyframes scroll-x { from { background-position-x: 0; } to { background-position-x: -1440px; } }

.track-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36vh;
  perspective: 260px; perspective-origin: 50% 0%;
  background: linear-gradient(#7A4E2D, #4A2E1A);
}
.track {
  position: absolute; left: 50%; bottom: 0; width: min(560px, 120vw); height: 260%;
  transform: translateX(-50%) rotateX(68deg); transform-origin: 50% 100%;
  background: #8E8E9E;
  overflow: hidden;
}
.sleepers {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 34px, #6B3F22 34px 52px);
  animation: run-y .5s linear infinite;
}
body.fast .sleepers { animation-duration: .18s; }
body.fast .city.near { animation-duration: 9s; }
body.fast .city.far { animation-duration: 30s; }
@keyframes run-y { from { background-position-y: 0; } to { background-position-y: 52px; } }
.rail { position: absolute; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, #D9DCE6, #fff 40%, #9AA0B5); z-index: 1; box-shadow: 0 0 0 2px var(--ink); }
.r1 { left: 6%; } .r2 { left: 31%; } .r3 { left: 66%; } .r4 { left: 91%; }

.floaties { position: absolute; inset: 0; pointer-events: none; }
.floaty {
  position: absolute; bottom: -60px; font-size: 30px;
  animation: float-up linear forwards;
  filter: drop-shadow(0 3px 0 rgba(27, 20, 100, .35));
}
@keyframes float-up {
  to { transform: translateY(-115vh) rotate(var(--r, 360deg)); }
}

/* ═════════ TEMU BAR ═════════ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--red), var(--orange) 55%, #FF9A1F);
  color: #fff; border-bottom: 4px solid var(--ink);
}
.flash { font-family: var(--font-title); font-size: 17px; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.bolt { display: inline-block; animation: wiggle .9s ease-in-out infinite; }
.free { background: var(--yellow); color: var(--red); padding: 2px 8px; border-radius: 6px; font-size: 14px; box-shadow: 0 2px 0 var(--ink); }
.timer { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.timer b { background: #fff; color: var(--red); border-radius: 6px; padding: 2px 6px; font-family: var(--font-title); font-size: 16px; min-width: 30px; text-align: center; box-shadow: 0 2px 0 var(--ink); }
@keyframes wiggle { 50% { transform: rotate(-14deg) scale(1.2); } }

.ticker { position: relative; z-index: 19; background: var(--ink); color: var(--yellow); overflow: hidden; white-space: nowrap; font-size: 14px; height: 30px; }
.ticker-track { display: inline-flex; gap: 48px; padding: 6px 0; animation: marquee 22s linear infinite; }
.ticker-track span b { color: #fff; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═════════ SCREENS ═════════ */
main { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 18px 14px 120px; }
.screen { display: none; }
.screen.active { display: block; animation: pop-in .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop-in { from { opacity: 0; transform: scale(.9) translateY(20px); } }

.logo-stack { text-align: center; margin: 6px 0 18px; }
.badge-hot {
  display: inline-block; background: var(--pink); color: #fff; padding: 6px 14px; border-radius: 999px;
  border: 3px solid var(--ink); box-shadow: var(--outline); font-size: 14px; transform: rotate(-3deg);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(3deg) translateY(-4px); } }
.title { margin: 10px 0 4px; line-height: .86; font-family: var(--font-title); font-weight: 400; }
.title span { display: block; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); }
.title .w1 { font-size: clamp(54px, 14vw, 104px); color: var(--yellow); transform: rotate(-4deg); animation: bounce-in 1s .1s both cubic-bezier(.2, 1.8, .4, 1); }
.title .w2 { font-size: clamp(62px, 17vw, 132px); color: var(--orange); transform: rotate(2deg); animation: bounce-in 1s .3s both cubic-bezier(.2, 1.8, .4, 1); }
@keyframes bounce-in { from { opacity: 0; transform: scale(.2) rotate(-30deg); } }
.subtitle { max-width: 520px; margin: 14px auto 0; background: rgba(255, 255, 255, .9); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 14px; box-shadow: var(--outline); font-size: 15px; }

/* prize cards (Temu product cards) */
.prize-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 22px; }
.pcard {
  position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 14px 12px 12px; text-align: center;
  box-shadow: 0 6px 0 var(--ink); transition: transform .2s;
  animation: card-in .6s both cubic-bezier(.2, 1.6, .4, 1);
}
.pcard:nth-child(2) { animation-delay: .12s; } .pcard:nth-child(3) { animation-delay: .24s; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) rotate(6deg); } }
.pcard:hover { transform: translateY(-4px) rotate(-1deg); }
.pcard.eya { background: linear-gradient(160deg, #FFF3B0, #FFD400); }
.pcard.lunch { background: linear-gradient(160deg, #FFE0C7, #FFB36B); }
.pcard.bravo { background: linear-gradient(160deg, #D6F5FF, #8FD9FF); }
.pc-tag { position: absolute; top: -12px; right: -8px; background: var(--red); color: #fff; font-family: var(--font-title); padding: 3px 9px; border-radius: 8px; border: 3px solid var(--ink); transform: rotate(8deg); font-size: 14px; }
.pc-ico { font-size: 46px; line-height: 1.1; animation: bob 2s ease-in-out infinite; }
.pcard h3 { font-family: var(--font-title); font-weight: 400; font-size: 18px; margin: 4px 0; line-height: 1.05; }
.pcard h3 span { color: var(--pink); }
.pc-cap { margin: 0 0 4px; font-size: 13px; background: #fff; display: inline-block; padding: 1px 8px; border-radius: 6px; border: 2px solid var(--ink); }
.pc-stock { height: 12px; background: rgba(27, 20, 100, .15); border-radius: 999px; overflow: hidden; border: 2px solid var(--ink); margin: 6px 0 4px; }
.pc-stock i { display: block; height: 100%; width: var(--w); background: repeating-linear-gradient(45deg, var(--red) 0 8px, var(--orange) 8px 16px); animation: stripes 1s linear infinite; background-size: 22px 22px; }
@keyframes stripes { to { background-position: 22px 0; } }
.pc-left { margin: 0; font-size: 13px; color: var(--red); }

/* access code card */
.code-card {
  max-width: 460px; margin: 10px auto 24px; background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 18px;
  box-shadow: 0 8px 0 var(--ink);
}
.code-card label { display: block; font-family: var(--font-title); font-size: 22px; text-align: center; margin-bottom: 10px; }
.code-input { display: flex; align-items: center; gap: 8px; border: 3px solid var(--ink); border-radius: 16px; padding: 4px 12px; background: var(--cream); }
.code-input:focus-within { outline: 4px solid var(--yellow); }
.prefix { font-size: 22px; }
.code-input input { flex: 1; border: 0; background: transparent; font: 400 26px var(--font-title); letter-spacing: 3px; color: var(--ink); padding: 8px 0; min-width: 0; text-transform: uppercase; outline: none; }
.err { color: var(--red); text-align: center; min-height: 20px; margin: 8px 0; font-size: 14px; }
.code-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.fine { font-size: 12px; text-align: center; margin: 10px 0 0; opacity: .7; }

.cta {
  position: relative; overflow: hidden; display: block; width: 100%; border: 4px solid var(--ink); border-radius: 999px;
  background: linear-gradient(180deg, #FF9A1F, var(--orange) 50%, var(--orange-d));
  color: #fff; font-family: var(--font-title); font-size: 24px; letter-spacing: 1px; padding: 14px 18px;
  box-shadow: 0 6px 0 var(--ink); text-shadow: 0 3px 0 rgba(27, 20, 100, .5);
  animation: breathe 1.4s ease-in-out infinite; transition: transform .08s, box-shadow .08s;
}
.cta:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.cta:disabled { filter: grayscale(.6); animation: none; cursor: wait; }
.cta.big { max-width: 420px; margin: 18px auto 0; font-size: 28px; }
.cta.ghost { background: #fff; color: var(--ink); text-shadow: none; max-width: 340px; margin: 16px auto 0; animation: none; }
.cta .shine { position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: shine 2.4s infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* board */
.board { max-width: 560px; margin: 0 auto; background: rgba(255, 255, 255, .94); border: 4px solid var(--ink); border-radius: 22px; padding: 14px 16px; box-shadow: 0 6px 0 var(--ink); }
.board h2 { font-family: var(--font-title); font-weight: 400; margin: 0 0 8px; font-size: 24px; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); }
.board .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-title); border: 3px solid var(--ink); flex: none; }
.board .nm { flex: 1; }
.board .nm small { display: block; opacity: .6; font-size: 11px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.chip.wait { background: #E8E6F5; }
.chip.eya { background: var(--yellow); }
.chip.lunch { background: #FFB36B; }
.chip.bravo { background: #8FD9FF; }

/* ═════════ RUN ═════════ */
#s-run.active, #s-wheel.active, #s-prize.active { min-height: calc(100vh - 140px); }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hud > div { background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 0 var(--ink); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.hud-coins b { font-family: var(--font-title); font-size: 22px; min-width: 34px; text-align: right; }
.hud-coins.bump { animation: bump .25s; }
@keyframes bump { 50% { transform: scale(1.25); } }
.coin-ico, .coin {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF6A8 0 18%, #FFD400 19% 62%, #E8A800 63%);
  border: 2px solid #8A5A00; box-shadow: inset 0 0 0 3px #FFC400;
}
.run-msg { text-align: center; margin-top: 3vh; color: #fff; }
.run-msg h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(42px, 10vw, 72px); margin: 0; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.run-msg p { display: inline-block; background: var(--ink); padding: 6px 14px; border-radius: 12px; margin: 6px 0 0; }

.runner { position: fixed; left: 50%; bottom: 7vh; width: 120px; height: 160px; z-index: 6; transform: translateX(calc(-50% + var(--lane, 0) * 26vw)); transition: transform .18s cubic-bezier(.3, 1.4, .5, 1); }
@media (min-width: 760px) { .runner { transform: translateX(calc(-50% + var(--lane, 0) * 190px)); } }
.runner .hero { width: 100%; height: 100%; overflow: visible; }
.runner .shadow { position: absolute; bottom: 8px; left: 20%; width: 60%; height: 14px; background: rgba(0, 0, 0, .3); border-radius: 50%; }
.runner.jump .hero { animation: jump .5s ease-out; }
@keyframes jump { 40% { transform: translateY(-70px) rotate(-8deg); } }
body.running .leg.front { animation: leg 0.32s ease-in-out infinite; transform-origin: 65px 104px; }
body.running .leg.back { animation: leg 0.32s ease-in-out infinite reverse; transform-origin: 57px 104px; }
body.running .arm.front { animation: arm 0.32s ease-in-out infinite; transform-origin: 78px 66px; }
body.running .arm.back { animation: arm 0.32s ease-in-out infinite reverse; transform-origin: 40px 66px; }
body.running .hero { animation: stride .32s ease-in-out infinite; }
@keyframes leg { 0%, 100% { transform: rotate(32deg); } 50% { transform: rotate(-32deg); } }
@keyframes arm { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(40deg); } }
@keyframes stride { 50% { transform: translateY(-8px); } }

.lanes { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.lanes .coin { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-width: 3px; will-change: transform; animation: coin-spin .6s linear infinite; }
.lanes .coin.got { animation: got .35s forwards; }
@keyframes coin-spin { 50% { scale: .25 1; } }
@keyframes got { to { opacity: 0; scale: 2; } }
.plus { position: fixed; z-index: 7; font-family: var(--font-title); color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; font-size: 26px; animation: plus .7s forwards; pointer-events: none; }
@keyframes plus { to { transform: translateY(-60px); opacity: 0; } }

.run-ctrl { position: relative; z-index: 8; margin-top: 18px; }
.progress { position: relative; max-width: 420px; margin: 0 auto; height: 30px; background: #fff; border: 4px solid var(--ink); border-radius: 999px; overflow: hidden; box-shadow: 0 4px 0 var(--ink); }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(45deg, var(--yellow) 0 10px, #FFC400 10px 20px); transition: width .1s linear; }
.progress span { position: relative; display: block; text-align: center; line-height: 22px; font-size: 14px; }
.swipe-hint { position: fixed; bottom: 30vh; left: 0; right: 0; text-align: center; z-index: 8; color: #fff; font-size: 15px; text-shadow: 0 2px 0 var(--ink); }

/* ═════════ WHEEL ═════════ */
.wheel-title { text-align: center; font-family: var(--font-title); font-weight: 400; font-size: clamp(34px, 8vw, 56px); margin: 14px 0 6px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.wheel-title span { color: var(--yellow); }
.wheel-zone { position: relative; width: min(86vw, 420px); aspect-ratio: 1; margin: 10px auto 0; }
.wheel {
  position: absolute; inset: 7%; border-radius: 50%; border: 6px solid var(--ink);
  box-shadow: 0 10px 0 var(--ink), inset 0 0 0 6px rgba(255, 255, 255, .5);
  transition: transform 6s cubic-bezier(.12, .7, .08, 1);
  overflow: hidden;
}
.wheel .seg { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 50% 100%; }
.wheel .seg span { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-size: clamp(22px, 6vw, 34px); filter: drop-shadow(0 2px 0 var(--ink)); }
.wheel .seg em { position: absolute; top: 25%; left: 50%; transform: translateX(-50%) rotate(90deg); transform-origin: center; font-style: normal; font-family: var(--font-title); font-size: clamp(10px, 2.6vw, 14px); color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; white-space: nowrap; }
.bulbs { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--orange) 0 64%, var(--red) 65% 70%, transparent 71%); border: 6px solid var(--ink); background-color: var(--red); }
.bulb { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #FFF6A8; border: 2px solid var(--ink); box-shadow: 0 0 10px 3px #FFD400; animation: blink .6s steps(1) infinite; }
.bulb:nth-child(even) { animation-delay: .3s; }
body.spinning .bulb { animation-duration: .15s; }
@keyframes blink { 50% { background: #8A5A00; box-shadow: none; } }
.pointer { position: absolute; top: -2%; left: 50%; z-index: 3; width: 0; height: 0; transform: translateX(-50%); border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 44px solid var(--yellow); filter: drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)); }
body.spinning .pointer { animation: tick .12s ease-in-out infinite; }
@keyframes tick { 50% { transform: translateX(-50%) rotate(-14deg); } }
.hub { position: absolute; left: 50%; top: 50%; z-index: 3; width: 25%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid var(--ink); background: radial-gradient(circle at 35% 30%, #fff, var(--yellow) 45%, #FFA800); font-family: var(--font-title); font-size: clamp(22px, 6vw, 32px); color: var(--red); box-shadow: 0 5px 0 var(--ink); }
.hub:active { transform: translate(-50%, -46%); }

/* ═════════ PRIZE ═════════ */
#s-prize { text-align: center; }
.gift { position: relative; width: 150px; height: 150px; margin: 7vh auto 0; animation: shakebox .5s ease-in-out infinite; }
.gift .box { position: absolute; bottom: 0; left: 10%; width: 80%; height: 62%; background: linear-gradient(90deg, var(--pink) 0 42%, var(--yellow) 42% 58%, var(--pink) 58%); border: 5px solid var(--ink); border-radius: 10px; box-shadow: 0 8px 0 var(--ink); }
.gift .lid { position: absolute; bottom: 58%; left: 4%; width: 92%; height: 22%; background: linear-gradient(90deg, #FF5AA5 0 42%, var(--yellow) 42% 58%, #FF5AA5 58%); border: 5px solid var(--ink); border-radius: 10px; z-index: 2; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.gift .bow { position: absolute; left: 50%; top: -38px; width: 70px; height: 40px; transform: translateX(-50%); }
.gift .bow::before, .gift .bow::after { content: ""; position: absolute; top: 0; width: 34px; height: 34px; border: 5px solid var(--ink); background: var(--yellow); border-radius: 50% 50% 0 50%; }
.gift .bow::before { left: 0; transform: rotate(-30deg); }
.gift .bow::after { right: 0; transform: rotate(120deg); }
.gift .burst { position: absolute; inset: -60%; z-index: -1; opacity: 0; background: repeating-conic-gradient(rgba(255, 212, 0, .9) 0 10deg, transparent 10deg 20deg); border-radius: 50%; }
.gift.open { animation: none; }
.gift.open .lid { transform: translateY(-70px) translateX(60px) rotate(28deg); }
.gift.open .burst { opacity: 1; animation: rays 6s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
@keyframes shakebox { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

.coupon {
  position: relative; z-index: 2; max-width: 420px; margin: 8px auto 0; background: #fff; border: 4px solid var(--ink); border-radius: 22px; padding: 18px 18px 14px;
  box-shadow: 0 10px 0 var(--ink); animation: coupon-in .7s cubic-bezier(.2, 1.7, .4, 1) both;
}
@keyframes coupon-in { from { opacity: 0; transform: scale(.3) rotate(-12deg); } }
.coupon.eya { background: linear-gradient(170deg, #FFF8C9, #FFD400); }
.coupon.lunch { background: linear-gradient(170deg, #FFF0E0, #FFB36B); }
.coupon.bravo { background: linear-gradient(170deg, #EAF9FF, #8FD9FF); }
.cp-head { display: inline-block; background: var(--red); color: #fff; font-family: var(--font-title); font-size: 22px; padding: 4px 16px; border-radius: 10px; border: 3px solid var(--ink); transform: rotate(-3deg); }
.cp-ico { font-size: 84px; line-height: 1.1; margin-top: 6px; animation: bob 1.6s ease-in-out infinite; }
.coupon h2 { font-family: var(--font-title); font-weight: 400; font-size: 32px; line-height: 1; margin: 6px 0; text-wrap: balance; }
.coupon p { margin: 0 0 6px; font-size: 15px; }
.cp-cut { border-top: 4px dashed var(--ink); margin: 14px -18px 10px; opacity: .5; }
.cp-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; gap: 10px; }
.cp-code { font-family: var(--font-title); background: var(--ink); color: var(--yellow); padding: 4px 10px; border-radius: 8px; letter-spacing: 1px; }
.claim { margin: 16px auto 0; max-width: 420px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

@media (max-width: 640px) {
  .prize-strip { grid-template-columns: 1fr; }
  .pcard { display: grid; grid-template-columns: 64px 1fr; text-align: left; column-gap: 10px; align-items: center; }
  .pc-ico { grid-row: span 4; font-size: 48px; text-align: center; }
  .flash { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}
