@font-face { font-family:'Poppins'; src:url('assets/fonts/Poppins-Light.ttf') format('truetype'); font-weight:300; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('assets/fonts/Poppins-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('assets/fonts/Poppins-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('assets/fonts/Poppins-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --space:   #010208;
  --deep:    #03050f;
  --ltblue:  #7cc4ff;
  --ice:     #eaf3ff;
  --nsoPink1:#fbdff2;
  --nsoPink2:#f3c8ec;
  --nsoMint: #9ef0e0;
  --nsoInk:  #8a4a9e;
  --nsoIndigo:#5a2fd0;
}

html, body {
  height: 100%; background: #000; overflow: hidden;
  font-family: 'Poppins', "Segoe UI", system-ui, sans-serif; color: var(--ice);
  user-select: none; cursor: default;
}
#stage { position: absolute; top: 0; left: 0; width: 960px; height: 540px;
  transform-origin: top left; background: transparent; overflow: hidden; z-index: 1; }
#scene { position: absolute; inset: 0; }
img { image-rendering: pixelated; }

#ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.amb-fill, .amb-glow { position: absolute; inset: -2%; pointer-events: none; background: #000; }

.am-desktop .amb-fill { background: #140a22 url('assets/prize1/retro_bg.png') center / cover no-repeat;
  image-rendering: pixelated; filter: blur(3px) brightness(.72); }
.am-desktop .amb-glow { background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(10,4,20,.55) 100%); }

.amb-bubbles { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.bubbles-on .amb-bubbles { opacity: 1; }
.amb-bubble { position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,255,255,.32) 45%, rgba(190,225,255,.10) 68%, transparent 74%);
  box-shadow: 0 0 22px rgba(200,230,255,.35);
  animation-name: bubUp, bubPulse;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate; }
@keyframes bubUp { from { transform: translateY(12vh); } to { transform: translateY(-118vh); } }
@keyframes bubPulse { from { opacity: .16; } to { opacity: .55; } }

#fx { position: absolute; inset: 0; pointer-events: none; z-index: 200; }
#fade  { position: absolute; inset: 0; background: #000; opacity: 0; }
#flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
#viewvig { position: fixed; inset: 0; pointer-events: none; z-index: 300;
  background: radial-gradient(118% 106% at 50% 47%, transparent 36%, rgba(0,0,0,.44) 63%, rgba(0,0,0,.92) 86%, #000 100%); }
#viewvig.vv-desktop { background: radial-gradient(128% 118% at 50% 50%, transparent 58%, rgba(10,4,20,.6) 100%); }
#viewfx { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
#vfade  { position: absolute; inset: 0; background: #000; opacity: 1; }
#vflash { position: absolute; inset: 0; background: #fff; opacity: 0; }

#fsbtn { position: fixed; right: 16px; bottom: 14px; z-index: 500; width: 40px; height: 40px;
  border-radius: 0; border: 1.5px solid rgba(124,196,255,.45); background: rgba(8,14,34,.55);
  color: #dbeaff; font-size: 19px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px);
  transition: box-shadow .18s, border-color .18s, transform .12s, background .18s; }
#fsbtn:hover { border-color: #fff; background: rgba(120,180,255,.18);
  box-shadow: 0 0 20px rgba(150,210,255,.5); transform: translateY(-1px); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 450; overflow: hidden; }
.conf-p { position: absolute; top: -30px; text-shadow: 0 0 8px currentColor;
  animation: confFall linear forwards; }
@keyframes confFall { 0% { transform: translate(0,-30px) rotate(0); opacity: 1; }
  82% { opacity: 1; } 100% { transform: translate(var(--sway,0px), 106vh) rotate(var(--spin,180deg)); opacity: 0; } }

.gift-tracker { position: absolute; top: 14px; right: 18px; display: flex; gap: 9px; z-index: 30; }
.gt-gift { transition: transform .12s ease; }
.gt-gift.lit { cursor: pointer; }
.gt-gift.lit:hover { transform: scale(1.18); }
.gt-gift { width: 26px; height: 26px; }
.gt-gift svg { width: 100%; height: 100%; fill: rgba(150,170,210,.26); }
.gt-gift.lit svg { fill: #ffe1f3; }
.gt-gift.lit { filter: drop-shadow(0 0 7px rgba(255,150,215,.9)) drop-shadow(0 0 14px rgba(120,210,255,.45)); }

.vignette { position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 170px 88px rgba(0,0,0,.98), inset 0 0 54px 10px rgba(0,0,0,.75);
  background: radial-gradient(135% 100% at 50% 44%, transparent 28%, rgba(1,1,5,.5) 68%, #000 100%); }
.vignette.soft { box-shadow: inset 0 0 120px 40px rgba(0,0,0,.8);
  background: radial-gradient(140% 105% at 50% 44%, transparent 42%, rgba(1,1,5,.3) 76%, rgba(0,0,0,.85) 100%); }

.menu, .intro { position: absolute; inset: 0; background: transparent; }
.cb { position: absolute; inset: 0; background: #020208; }
.space { position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 50% 10%, #0b1733 0%, #050a1b 40%, #010208 82%); }

.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(64px);
  mix-blend-mode: screen; opacity: .6; animation: orbDrift 24s ease-in-out infinite alternate; }
.orb.o0 { width: 540px; height: 540px; left: -150px; top: -160px;
  background: radial-gradient(circle, rgba(70,140,255,.75), rgba(40,90,220,.22) 60%, transparent 72%); }
.orb.o1 { width: 460px; height: 460px; right: -130px; top: 20px; animation-duration: 28s;
  background: radial-gradient(circle, rgba(90,170,255,.6), transparent 70%); }
.orb.o2 { width: 640px; height: 640px; left: 16%; bottom: -300px; animation-duration: 32s;
  background: radial-gradient(circle, rgba(45,105,235,.6), transparent 70%); }
.orb.o3 { width: 380px; height: 380px; right: 16%; bottom: -150px; animation-duration: 26s;
  background: radial-gradient(circle, rgba(130,195,255,.5), transparent 70%); }
@keyframes orbDrift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(34px,22px) scale(1.08); } }

.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.astar { position: absolute; animation: drift linear infinite;
  filter: drop-shadow(0 0 6px rgba(150,200,255,.55)); }
@keyframes drift { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(-44px) rotate(360deg); } }

.twinkles, .hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.twinkle { position: absolute; width: var(--tsz,3px); height: var(--tsz,3px); border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px rgba(190,225,255,.9);
  animation: twk ease-in-out infinite alternate; opacity: .2; }
@keyframes twk { from { opacity: .1; transform: scale(.7); } to { opacity: .8; transform: scale(1.25); } }
.heart-up { position: absolute; bottom: -30px; color: rgba(255,158,214,.55);
  text-shadow: 0 0 10px rgba(255,140,205,.6); animation: hup linear infinite; }
@keyframes hup { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .6; }
  85% { opacity: .35; } 100% { transform: translateY(-590px); opacity: 0; } }

.glowtext { color: #fff;
  text-shadow: 0 0 16px rgba(185,222,255,.9), 0 0 34px rgba(120,180,255,.6), 0 0 64px rgba(85,150,255,.4); }

.gbtn {
  font: inherit; font-weight: 500; font-size: 17px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ice); background: rgba(124,196,255,0.04);
  border: 1.5px solid rgba(124,196,255,0.55); padding: 12px 36px; border-radius: 0; cursor: pointer;
  text-shadow: 0 0 10px rgba(124,196,255,0.45);
  box-shadow: inset 0 0 18px rgba(124,196,255,0.05);
  transition: box-shadow .18s, text-shadow .18s, transform .12s, border-color .18s, background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}
.gbtn:hover, .gbtn:focus-visible {
  border-color: #fff; color: #fff; background: rgba(160,210,255,0.12);
  box-shadow: 0 0 30px rgba(150,210,255,0.55), inset 0 0 22px rgba(150,210,255,0.2);
  text-shadow: 0 0 16px #fff, 0 0 32px rgba(150,210,255,.7); transform: translateY(-1px); outline: none;
}
.gbtn:active { transform: translateY(0) scale(.98); }
.gbtn.small { font-size: 12.5px; padding: 8px 16px; letter-spacing: 2px; }
.gbtn.main { font-size: 19px; padding: 14px 52px; border-color: rgba(180,225,255,.75);
  animation: mainGlow 5s ease-in-out infinite alternate; }
@keyframes mainGlow {
  from { box-shadow: 0 0 22px rgba(120,210,255,.30), inset 0 0 20px rgba(120,210,255,.08); }
  to   { box-shadow: 0 0 26px rgba(255,150,215,.40), inset 0 0 20px rgba(255,150,215,.10); } }

.menu-center { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center; }
.menu-eyebrow { color: #9cc0f0; letter-spacing: 5px; text-transform: uppercase; font-size: 12px; font-weight: 500;
  text-shadow: 0 0 14px rgba(124,196,255,.4); }
.menu-title { font-size: 64px; font-weight: 700; letter-spacing: 8px; line-height: 1.05; cursor: pointer; }
.menu-under { color: #7f98c8; letter-spacing: 3px; font-size: 12.5px; font-weight: 300; margin-top: -6px; }
.menu-btns { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; align-items: center; }
.menu-foot { position: absolute; bottom: 22px; width: 100%; text-align: center; color: #5f7cb0; font-size: 12px; letter-spacing: 2px; }
.card-sub { color: #a9c4ec; font-size: 15px; max-width: 620px; line-height: 1.6; margin-top: 6px; font-weight: 300; }
.card-sub b { color: #dcebff; font-weight: 600; letter-spacing: 1px; }

.panel { position: relative; width: 560px; margin: 64px auto 0;
  background: linear-gradient(180deg, rgba(10,18,46,.74), rgba(4,8,24,.8));
  border: 1.5px solid rgba(124,196,255,.26); border-radius: 0; padding: 26px 30px 28px;
  box-shadow: 0 0 60px rgba(6,14,44,.8), inset 0 0 40px rgba(70,120,210,.07);
  display: flex; flex-direction: column; align-items: center; }
.panel-title { font-size: 32px; font-weight: 700; letter-spacing: 7px; margin-bottom: 20px; }

.set-row { width: 100%; display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 16px; margin: 12px 0; }
.set-label { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #cfe0f6; }
.set-slot { width: 100%; } .set-slot.row-btns { display: flex; gap: 8px; }
.set-val { text-align: right; font-variant-numeric: tabular-nums; color: #fff; font-weight: 500; }

.glow-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 0;
  background: linear-gradient(90deg, #ff4fa3 0%, #32e6ff 20%, rgba(158,240,224,.15) 20%);
  outline: none; cursor: pointer; border: 1px solid rgba(158,240,224,.45); box-shadow: 0 0 12px rgba(50,230,255,.25); }
.glow-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 20px;
  border-radius: 0; background: #fff; border: none;
  box-shadow: 0 0 12px rgba(255,79,163,.8), 0 0 24px rgba(50,230,255,.7); cursor: pointer; }
.glow-range::-moz-range-thumb { width: 16px; height: 20px; border-radius: 0; background: #fff; border: none;
  box-shadow: 0 0 12px rgba(255,79,163,.8); }

.credits-body { color: #c2d2ec; line-height: 1.5; text-align: center; font-size: 16px; font-weight: 300; }
.cr-line { margin: 10px 0; font-size: 18px; font-weight: 400; color: var(--ice); }
.cr-role { display: block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ltblue); margin-bottom: 2px; font-weight: 500; }
.cr-note { margin-top: 22px; font-size: 15px; color: #aac0e4; line-height: 1.6; }

.subtitle { position: absolute; pointer-events: none; left: 9%; right: 9%; bottom: 12%; text-align: center;
  font-size: 30px; font-weight: 400; line-height: 1.5; color: var(--ice); letter-spacing: .3px;
  text-shadow: 0 0 18px rgba(124,196,255,.55), 0 0 42px rgba(120,170,255,.35);
  opacity: 1; transition: opacity .4s ease; }
.subtitle.pre { opacity: 0; transition: none; }
.subtitle.ingame { top: 34px; left: 18px; right: auto; bottom: auto; width: 350px; max-width: 44%;
  text-align: left; font-size: 14px; line-height: 1.5; letter-spacing: .2px;
  text-shadow: 0 0 10px rgba(0,0,0,.9), 0 0 22px rgba(90,130,220,.4); }
.subtitle.out { opacity: 0; transition: opacity .5s ease; }
.sub-word { display: inline-block; opacity: 0; transition: opacity .42s ease; }
.sub-word.show { opacity: 1; }
.skip-hint { position: fixed; bottom: 14px; right: 62px; height: 40px; z-index: 500; pointer-events: none;
  display: flex; align-items: center; gap: 5px;
  color: #7d94c2; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 11px; border: 1.5px solid rgba(124,196,255,.45); background: rgba(8,14,34,.55);
  backdrop-filter: blur(4px); }
.skip-hint b { color: #dbeaff; font-weight: 700; letter-spacing: 1px; }
.skip-hint.used { opacity: .35; }

.gift-row { position: absolute; top: 38%; left: 0; right: 0; display: flex; gap: 60px; justify-content: center;
  transform: translateY(-50%); transition: transform .65s ease, opacity .65s ease; }
.gift { width: 108px; height: 108px; opacity: 0; transform: translateY(14px) scale(.9);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease; }
.gift svg { fill: rgba(223,240,255,.92); }
.gift.lit { opacity: 1; transform: translateY(0) scale(1);
  filter: drop-shadow(0 0 18px rgba(124,196,255,.8)) drop-shadow(0 0 36px rgba(150,200,255,.5)); }
.gift-row.fade { opacity: 0; transform: translateY(-50%) translateY(-26px) scale(.96); }

.intro-title { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center;
  font-size: 76px; font-weight: 700; letter-spacing: 12px; opacity: 0; }
.intro-title.slam { animation: slamIn .5s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes slamIn { 0% { opacity: 0; transform: translateY(-50%) scale(1.6); filter: blur(10px); letter-spacing: 40px; }
  60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: translateY(-50%) scale(1); letter-spacing: 12px; } }

.cb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .40; pointer-events: none; }
.cb-video-dim { position: absolute; inset: 0; pointer-events: none;
  border-left: 10px solid #000; border-right: 10px solid #000;
  background:
    linear-gradient(90deg, rgba(0,0,2,.96) 0%, rgba(2,3,10,.5) 7%, transparent 17%),
    linear-gradient(270deg, rgba(0,0,2,.96) 0%, rgba(2,3,10,.5) 7%, transparent 17%),
    radial-gradient(120% 78% at 50% 42%, transparent 40%, rgba(2,3,10,.6) 72%, rgba(1,1,6,.96) 100%),
    linear-gradient(180deg, rgba(3,5,16,.5) 0%, rgba(2,3,10,.62) 52%, rgba(2,3,10,.8) 100%);
  box-shadow: inset 0 0 160px 60px rgba(0,0,0,.92), inset 0 0 60px 12px rgba(0,0,0,.75); }

.cb-title { position: absolute; top: 14px; left: 20px; font-size: 14px; letter-spacing: 4px;
  color: #a9c6ee; text-transform: uppercase; font-weight: 600; text-shadow: 0 0 12px rgba(0,0,0,.6); }
.cb-prog { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(124,196,255,.12); }
.cb-prog-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--ltblue), #ff8fd0);
  box-shadow: 0 0 10px var(--ltblue); }

.cb-field { position: absolute; inset: 0; }
.cb-lane { position: absolute; top: 0; bottom: 0; width: 100px;
  background: linear-gradient(0deg, rgba(124,196,255,.02), rgba(160,220,255,.10));
  border-left: 1px solid rgba(160,210,255,.10); border-right: 1px solid rgba(160,210,255,.10); }

.cb-crown { position: absolute; left: 50%; top: 30px; width: 540px; height: 128px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(190,235,255,.26), rgba(255,150,215,.12) 55%, transparent 76%);
  filter: blur(10px); animation: crownFloat 4s ease-in-out infinite alternate; }
@keyframes crownFloat { from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(-6px); } }
.cb-wing { position: absolute; top: 52px; font-size: 76px; font-weight: 300; pointer-events: none;
  color: rgba(210,240,255,.5); text-shadow: 0 0 18px rgba(150,220,255,.6); }
.cb-wing.left  { left: 226px; transform-origin: right center; animation: wingL 2.8s ease-in-out infinite alternate; }
.cb-wing.right { right: 226px; transform-origin: left center; animation: wingR 2.8s ease-in-out infinite alternate; }
@keyframes wingL { from { transform: rotate(3deg); } to { transform: rotate(-5deg); } }
@keyframes wingR { from { transform: rotate(-3deg); } to { transform: rotate(5deg); } }

.cb-recep { position: absolute; background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 0 6px rgba(140,170,255,.30)); transition: filter .12s ease; z-index: 5; }
.cb-recep.held { filter: drop-shadow(0 0 12px var(--lc,#fff)) drop-shadow(0 0 26px var(--lc,#fff)); }
.cb-key { position: absolute; width: 40px; text-align: center; font-size: 12px; letter-spacing: 2px;
  color: #cfe0ff; opacity: .7; font-weight: 600; text-shadow: 0 0 8px rgba(0,0,0,.85); z-index: 5; }
.cb-hitfx { position: absolute; background-size: contain; background-repeat: no-repeat; background-position: center;
  pointer-events: none; z-index: 6; }

.cb-note { position: absolute; background-size: contain; background-repeat: no-repeat; background-position: center;
  will-change: top; z-index: 4; }
.cb-note.pop { animation: notePop .24s ease forwards; }
@keyframes notePop { to { opacity: 0; filter: brightness(2.4) blur(1px); } }
.cb-note.drop { animation: noteDrop .3s ease forwards; }
@keyframes noteDrop { 0% { opacity: .85; } 100% { opacity: 0; filter: brightness(.4) blur(2px); } }

.cb-burst { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff;
  animation: burst .42s ease-out forwards; pointer-events: none; z-index: 6; }
@keyframes burst { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(6); opacity: 0; } }
.cb-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; z-index: 6;
  animation: spark .48s ease-out forwards; }
@keyframes spark { 0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }

.cbw { position: absolute; top: 56px; right: 6px; width: 154px; z-index: 12; opacity: .5;
  transition: opacity .3s ease;
  background: rgba(255,255,255,.9); border: 2px solid var(--nsoMint); border-radius: 0; overflow: hidden;
  box-shadow: 0 8px 22px rgba(20,8,40,.45), 0 0 18px rgba(158,240,224,.25); }
.cbw-bar { display: flex; align-items: center; gap: 6px; padding: 3px 6px;
  background: linear-gradient(180deg, var(--nsoPink1), var(--nsoPink2)); border-bottom: 2px solid var(--nsoMint); }
.cbw-title { font-size: 10.5px; font-weight: 700; color: var(--nsoInk); letter-spacing: 1px; }
.cbw-pfp-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px 5px; background: rgba(255,255,255,.6); }
.cbw-pfp { width: 36px; height: 36px; image-rendering: pixelated; border: 1.5px solid var(--nsoMint); object-fit: cover; }
.cbw-pfp-col { display: flex; flex-direction: column; gap: 1px; }
.cbw-name { font-size: 12.5px; font-weight: 700; color: var(--nsoInk); letter-spacing: .5px; }
.cbw-live { font-size: 9px; font-weight: 700; color: #ff2d6a; letter-spacing: 1.5px;
  animation: liveBlink 2.6s ease-in-out infinite; }
.cbw-body { padding: 4px 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-top: 1px solid #f4e2f2; }
.cbw-chat { border-top: 1px solid #f0d8ee; background: rgba(255,250,253,.72); padding: 6px 8px;
  height: 102px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; overflow: hidden; }
.cbw-msg { font-size: 10px; line-height: 1.35; color: #6b4a80; animation: chatIn .25s ease; }
.cbw-msg b { font-weight: 700; }
.cbw-emote { width: 13px; height: 13px; image-rendering: pixelated; vertical-align: -2px; margin-left: 3px; }
@keyframes chatIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cbw-judge { height: 22px; font-size: 14.5px; font-weight: 700; letter-spacing: 1px; opacity: 1;
  text-shadow: 0 0 10px currentColor; }
.cbw-combo { font-size: 32px; font-weight: 700; color: #7c3aa0; line-height: 1; text-align: center;
  font-variant-numeric: tabular-nums; }
.cbw-combo span { display: block; font-size: 9.5px; letter-spacing: 3px; color: #c79ad8; font-weight: 700; margin-top: 2px; }
.cbw-acc { font-size: 14px; font-weight: 700; color: var(--nsoInk); font-variant-numeric: tabular-nums; }
.cbw-song { font-size: 9.5px; letter-spacing: 2px; color: #c79ad8; font-weight: 700; margin-top: 2px; }

.cb-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: radial-gradient(circle at 50% 50%, rgba(12,20,50,.7), rgba(2,4,12,.94)); z-index: 10;
  transition: opacity .4s ease; }
.cb-intro.hide { opacity: 0; }
.cb-intro-big { font-size: 18px; letter-spacing: 6px; color: var(--ltblue); font-weight: 600; }
.cb-intro-sub { font-size: 54px; font-weight: 700; letter-spacing: 6px; text-align: center; color: #fff;
  text-shadow: 0 0 22px rgba(124,196,255,.6); }
.cb-intro-sub span { display: block; font-size: 17px; letter-spacing: 5px; color: #aecdf5; margin-top: 12px; font-weight: 600; text-shadow: none; }

.results { width: 420px; margin-top: 18px; padding: 18px 30px 20px; }
.results .res-grade { font-size: 78px; }
.results .res-acc { font-size: 26px; margin: 2px 0 10px; }
.res-grade { font-size: 96px; font-weight: 700; line-height: 1; text-shadow: 0 0 30px currentColor; }
.res-grade.pass { color: #86f5c8; } .res-grade.fail { color: #ff5d6c; }
.res-acc { font-size: 30px; font-weight: 500; margin: 4px 0 14px; color: #fff; }
.res-stats { width: 100%; max-width: 280px; }
.res-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; border-bottom: 1px solid rgba(124,196,255,.1); }
.res-k { letter-spacing: 1px; } .res-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.res-msg { margin-top: 14px; font-size: 14px; letter-spacing: 2px; color: #aac0e4; text-transform: uppercase; }

.desktop { position: absolute; inset: 0; overflow: hidden; }
.dt-wall { position: absolute; inset: 0;
  background: #f7e2fb url('assets/prize1/nso_wall.png') repeat; background-size: 144px; image-rendering: pixelated; }
.dt-layer { position: absolute; inset: 0 0 33px 0; }
.dt-hint { position: absolute; bottom: 39px; left: 0; right: 0; text-align: center;
  color: #9a5ab0; font-size: 12.5px; letter-spacing: .5px; font-weight: 500;
  text-shadow: 0 1px 0 rgba(255,255,255,.85); pointer-events: none; z-index: 900; }

.nso-win { position: absolute; background: #fff; border: 2px solid var(--nsoMint); border-radius: 0;
  transform: rotate(var(--rot,0deg)) scale(.92); opacity: 0; overflow: hidden;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 10px 26px rgba(90,47,120,.28), 0 2px 6px rgba(90,47,120,.18); }
.nso-win.show { opacity: 1; transform: rotate(var(--rot,0deg)) scale(1); }
.nso-win.dt-close { opacity: 0; transform: rotate(var(--rot,0deg)) scale(.85); }
.nso-bar { display: flex; align-items: center; gap: 6px; padding: 3px 5px;
  background: linear-gradient(180deg, var(--nsoPink1), var(--nsoPink2));
  border-bottom: 2px solid var(--nsoMint); cursor: grab; }
.nso-bar:active { cursor: grabbing; }
.nso-ico { width: 12px; height: 12px; background: var(--nsoIndigo); border-radius: 2px; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
.nso-ico.img { background-color: transparent; box-shadow: none; background-size: cover;
  image-rendering: pixelated; width: 18px; height: 18px; }
.nso-title { font-size: 11.5px; font-weight: 600; color: var(--nsoInk); letter-spacing: .4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.nso-btns { display: flex; gap: 3px; }
.nso-b { width: 16px; height: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; line-height: 1; color: #7c5aa0; background: #fdf1fb;
  border: 1px solid #cbb1e0; border-radius: 0; padding: 0; font-family: inherit; }
button.nso-b { cursor: pointer; }
.nso-x:hover { background: #ffd9e6; color: #c2417f; border-color: #e79ec0; }
.nso-body { background: #fff; padding: 8px; display: flex; align-items: center; justify-content: center; min-height: 40px; }
.nso-body.col { flex-direction: column; gap: 8px; }

.dt-pop .nso-body { padding: 6px; }
.dt-img { max-width: 100%; max-height: 190px; image-rendering: pixelated; display: block; }

.nso-btn { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: #7c3aa0;
  background: linear-gradient(180deg, #fff, #fbe9fb); border: 2px solid var(--nsoMint); border-radius: 0;
  padding: 6px 14px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
  box-shadow: 0 2px 0 rgba(158,240,224,.7); transition: transform .1s, box-shadow .15s, background .15s; }
.nso-btn:hover { background: linear-gradient(180deg, #fff, #ffe4f4); transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(240,160,220,.5); }
.nso-btn.dl { border-color: #8fe6c8; color: #2f9d78; }
.nso-btn.go { border-color: #f0a7e0; color: #c2417f; }

.kg-body { position: relative; padding-top: 18px; background: linear-gradient(180deg, #fff, #f2fbff); }
.kg-head { font-size: 15px; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(90deg, #4aa6e8, #e858a8, #4aa6e8);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.kg-line { font-size: 12px; color: #8a5aa0; text-align: center; line-height: 1.4; }
.kangel-halo { position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 42px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(140,220,255,.55), rgba(255,150,215,.30) 60%, transparent 76%);
  filter: blur(3px); animation: haloFloat 3s ease-in-out infinite alternate; }
@keyframes haloFloat { from { opacity: .6; transform: translateX(-50%) translateY(0); }
  to { opacity: 1; transform: translateX(-50%) translateY(-3px); } }
.dt-faces { display: flex; gap: 10px; }
.dt-face { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 6px;
  border: 2px solid var(--nsoMint); background: #eef8ff; }

.cam-win .nso-body { padding: 4px; background: #fbe9f4; }
.cam-img { width: 100%; display: block; image-rendering: pixelated; border: 1px solid #ecd7ee; background: #fff; }
.cam-live { position: absolute; top: 27px; left: 9px; font-size: 9px; font-weight: 700; color: #ff2d6a;
  letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,255,255,.9); animation: liveBlink 2.6s ease-in-out infinite; }
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tm-body { flex-direction: column; align-items: stretch; gap: 8px; }
.tm-count { font-size: 10.5px; letter-spacing: 1px; color: #a86bc0; text-transform: uppercase; }
.tm-list { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.tm-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 0;
  background: #fdeffa; border: 1px solid #f4d8ef; }
.tm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nsoMint); box-shadow: 0 0 6px var(--nsoMint); flex: none; }
.tm-dot.img { width: 13px; height: 13px; border-radius: 2px; background-color: transparent; box-shadow: none;
  background-size: cover; image-rendering: pixelated; }
.tm-stats { display: flex; flex-direction: column; gap: 5px; padding-bottom: 8px; border-bottom: 1px solid #f0d8ee; }
.tm-stat { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 6px; }
.tm-stat-lab { font-size: 10.5px; font-weight: 600; color: #a86bc0; letter-spacing: .3px; }
.tm-stat-big { font-size: 22px; font-weight: 700; color: #e858a8; letter-spacing: 1px; line-height: 1;
  font-variant-numeric: tabular-nums; }
.tm-stat-val { font-size: 10.5px; color: #8a4a9e; font-variant-numeric: tabular-nums; text-align: right; }
.tm-stat .tm-sbar { grid-column: 1 / -1; }
.tm-sbar { height: 7px; border-radius: 0; background: #f4e4f6; border: 1px solid #e8cdea; overflow: hidden; }
.tm-sbar-fill { height: 100%; border-radius: 0; }
.tm-name { font-size: 12px; color: #7c3aa0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-kill { font: inherit; font-size: 10.5px; font-weight: 600; color: #c2417f; background: #fff0f6;
  border: 1px solid #f0a7c8; border-radius: 0; padding: 3px 8px; cursor: pointer; }
.tm-kill:hover { background: #ffdcea; }
.tm-end { align-self: stretch; border-color: #f0a7c8; color: #c2417f; }

.dc-body { flex-direction: column; align-items: stretch; gap: 10px; background: #313338; padding: 12px; }
.dc-msg { display: flex; flex-direction: column; gap: 2px; }
.dc-who { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.dc-msg.narr .dc-who { color: #9db2ff; } .dc-msg.demi .dc-who { color: #ff9ed6; }
.dc-txt { font-size: 13px; color: #dbdee1; line-height: 1.4; }

.nso-toast .nso-body { padding: 10px 12px; }
.toast-txt { font-size: 12.5px; color: var(--nsoInk); line-height: 1.45; text-align: center; }
.toast-emote { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: -5px; margin-left: 5px; }

.nso-icons { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 15px; z-index: 5; }
.nso-icon { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.nso-icon-glyph { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #f0bfe8; border-radius: 0; overflow: visible;
  box-shadow: 0 2px 6px rgba(160,90,180,.22); transition: transform .12s ease; }
.nso-icon-img { width: 42px; height: 42px; image-rendering: pixelated; border-radius: 0; }
.nso-icon:hover .nso-icon-glyph { transform: translateY(-2px) scale(1.06); }
.nso-badge { position: absolute; top: -7px; right: -7px; width: 15px; height: 15px; border-radius: 50%;
  background: #ffd93d; border: 1.5px solid #c8912a; color: #7a4a00; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.nso-icon-label { font-size: 10.5px; color: var(--nsoInk); font-weight: 600; letter-spacing: .5px;
  text-shadow: 0 1px 0 #fff, 0 0 6px rgba(255,255,255,.9); }

.dt-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 33px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; background: linear-gradient(180deg, #fdf0fc, #f6ddf4);
  border-top: 2px solid var(--nsoMint); z-index: 1000; }
.dt-startbtn { font: inherit; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #4a3a56; cursor: pointer;
  background: linear-gradient(180deg, #f3f0f6, #d9d2e2); border: 1px solid #a99cc0; border-radius: 0;
  padding: 3px 8px; box-shadow: inset 0 1px 0 #fff, 0 1px 0 #8f80a8;
  display: flex; align-items: center; gap: 5px; }
.dt-start-ico { width: 17px; height: 12px; object-fit: cover; image-rendering: pixelated; }
.dt-startbtn:active { box-shadow: inset 0 1px 3px rgba(90,70,120,.4); }
.dt-start { font-size: 11.5px; color: #c2417f; letter-spacing: 1px; font-weight: 700; }
.dt-tabs { display: flex; gap: 5px; flex: 1; min-width: 0; overflow: hidden; }
.dt-tab { display: flex; align-items: center; gap: 4px; max-width: 104px; padding: 3px 7px; cursor: pointer;
  font: inherit; font-size: 9.5px; font-weight: 600; color: var(--nsoInk);
  background: #fff; border: 1.5px solid #e6c3ea; border-radius: 0; }
.dt-tab:hover { background: #fdeffa; border-color: #d193d8; }
.dt-tab-ico { width: 10px; height: 10px; flex: none; background-size: cover; image-rendering: pixelated; border-radius: 2px; }
.dt-tab-lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-tmbtn { font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; color: var(--nsoInk); cursor: pointer;
  background: #fff; border: 1.5px solid #e0b8e8; border-radius: 0; padding: 4px 9px; }
.dt-tmbtn:hover { background: #fdeffa; border-color: #d193d8; }
.dt-clock { margin-left: 4px; font-size: 10px; color: var(--nsoInk); font-weight: 700; font-variant-numeric: tabular-nums;
  background: #fff; border: 1.5px solid #e6c3ea; border-radius: 0; padding: 3px 8px; white-space: nowrap; }

.stickers { position: absolute; inset: 0; }
.sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 740px;
  padding: 38px 30px 22px; border-radius: 0; border: 2px solid #f0bfe8;
  background: repeating-linear-gradient(0deg, #fff, #fff 34px, #fdf4ff 34px, #fdf4ff 35px);
  box-shadow: 0 24px 60px rgba(20,8,40,.55), 0 0 40px rgba(255,150,215,.25);
  display: flex; flex-direction: column; align-items: center; gap: 11px; }
.sheet-grid { display: flex; gap: 12px; align-items: center; justify-content: center; }
.sticker-fin { width: 122px; height: 122px; object-fit: contain; display: block;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff)
          drop-shadow(0 6px 9px rgba(60,20,80,.35)); }
.sticker { display: flex; flex-direction: column; align-items: center; gap: 5px;
  transform: rotate(var(--r,0deg)); transition: transform .18s ease; }
.sticker:hover { transform: rotate(0deg) scale(1.09) translateY(-6px); }
.sheet .menu-btns { margin-top: 2px; }
.sheet .gbtn { color: var(--nsoInk); border-color: #e0a8d8; background: #fff; text-shadow: none;
  box-shadow: 0 2px 0 rgba(240,191,232,.6); }
.sheet .gbtn:hover { color: #c2417f; border-color: #f0a7c8; background: #fff5fb;
  box-shadow: 0 3px 14px rgba(240,160,220,.55); }

.graffiti { position: absolute; inset: 0; overflow: hidden; background: #000; }
.graf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000;
  transition: opacity .65s ease; }
.graf-video.fade { opacity: 0; }
.graf-photos { position: absolute; inset: 0; }
.graf-photo { position: absolute; width: 272px; padding: 9px 9px 25px; background: #fdfcf8;
  box-shadow: 0 14px 34px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.5);
  transform: rotate(var(--pr, 0deg)); cursor: grab; touch-action: none; }
.graf-photo:active { cursor: grabbing; }
.graf-photo-img { display: block; width: 100%; height: auto; }
.graf-btns { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; z-index: 900; pointer-events: none; }
.graf-btns .gbtn { pointer-events: auto; }

.harley { position: absolute; inset: 0; overflow: hidden; cursor: none;
  user-select: none; -webkit-user-select: none; touch-action: none; }
.harley img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.hl-room { position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 80%, rgba(80,120,200,.22), transparent 70%),
    radial-gradient(90% 80% at 50% 36%, #14224e 0%, #0c1533 48%, #050a1e 100%); }
.hl-title { position: absolute; top: 12px; left: 16px; font-size: 10.5px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 700;
  background: linear-gradient(180deg, #dfe9ff, #7d9fe0 55%, #3a5aa0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(10,20,50,.85)); }

.hl-cat { position: absolute; left: 50%; bottom: 6px; width: 300px; height: 470px;
  transform: translateX(-50%) scale(calc(var(--breathe,1) * var(--punch,1)));
  transform-origin: 50% 100%; transition: transform .13s cubic-bezier(.2,.85,.3,1); }
.hl-catimg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%;
  image-rendering: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); transition: opacity .05s linear;
  -webkit-user-drag: none; pointer-events: none; }
.hl-glow { position: absolute; inset: -6% -10%; opacity: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 28%, rgba(255,70,90,.5), transparent 62%); filter: blur(6px); }
.hl-cat.shake { animation: hlShake .4s ease; }
@keyframes hlShake { 0%,100% { transform: translateX(-50%) scale(var(--breathe,1)); }
  20% { transform: translateX(-58%) scale(1.02); } 40% { transform: translateX(-44%) scale(1.02); }
  60% { transform: translateX(-54%) scale(1.01); } 80% { transform: translateX(-48%) scale(1.01); } }

.hl-comb { position: absolute; width: 80px; height: auto; pointer-events: none; z-index: 50;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); transform: rotate(-12deg);
  transition: transform .14s ease; }
.hl-comb.held { transform: rotate(-64deg); }
.hl-hair { position: absolute; width: 13px; height: 2px; border-radius: 2px; pointer-events: none; z-index: 48;
  background: linear-gradient(90deg, #0c0c10, #2b2b32); box-shadow: 0 0 3px rgba(0,0,0,.6); }

.hl-bang { position: absolute; left: 50%; top: 26%; transform: translateX(-50%); font-size: 90px; font-weight: 700;
  color: #ff5d6c; text-shadow: 0 0 26px rgba(255,60,80,.9); opacity: 0; pointer-events: none; }

.hl-chance { position: absolute; right: 16px; top: 12px; width: 150px; text-align: right; }
.hl-chance-lab { font-size: 8.5px; letter-spacing: 3px; font-weight: 700;
  background: linear-gradient(180deg, #dfe9ff, #7d9fe0 55%, #3a5aa0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 5px rgba(10,20,50,.85)); }
.hl-bar { margin: 4px 0 3px; height: 8px; border-radius: 0; background: rgba(50,230,255,.10);
  border: 1px solid rgba(158,240,224,.5); overflow: hidden; }
.hl-bar-fill { height: 100%; width: 0%; border-radius: 0;
  background: linear-gradient(90deg, #ff4fa3, #b06bff, #32e6ff); box-shadow: 0 0 12px rgba(176,107,255,.7); transition: width .12s ease; }
.hl-chance-num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #eef4ff, #8cabe6 55%, #45659e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(10,20,50,.9)); }

.hl-watch { position: absolute; top: 120px; left: 0; right: 0; text-align: center; opacity: 0;
  font-size: 22px; font-weight: 700; letter-spacing: 3px; color: #ff5d6c;
  text-shadow: 0 0 20px rgba(255,60,80,.9); transition: opacity .06s linear; pointer-events: none; }
.hl-watch.show { opacity: 1; animation: watchPulse .5s ease-in-out infinite alternate; }
@keyframes watchPulse { from { transform: scale(1); } to { transform: scale(1.06); } }

.kangel-bg { position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 22% 18%, rgba(255,79,163,.16), transparent 60%),
    radial-gradient(60% 55% at 80% 24%, rgba(50,210,255,.15), transparent 60%),
    radial-gradient(80% 70% at 50% 100%, rgba(190,230,255,.12), transparent 65%),
    linear-gradient(165deg, rgba(26,15,46,.85) 0%, rgba(12,11,34,.82) 55%, rgba(7,6,15,.85) 100%); }
.kangel-bg::after { content: ''; position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 280px; height: 90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(190,235,255,.5), rgba(255,150,215,.2) 60%, transparent 78%); filter: blur(6px);
  animation: haloFloat 3.4s ease-in-out infinite alternate; }

.crun { position: absolute; inset: 0; overflow: hidden; background: #05060f; }
.crun-world { position: absolute; top: 0; left: 0; will-change: transform; }
.crun-grid { position: absolute; inset: 0;
  background-color: #010107;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(158,203,255,.6) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,208,238,.55) 1.6px, transparent 2.3px),
    radial-gradient(circle, rgba(255,255,255,.35) .8px, transparent 1.3px),
    radial-gradient(circle, rgba(190,220,255,.28) .7px, transparent 1.2px),
    radial-gradient(circle, rgba(255,255,255,.18) .6px, transparent 1px),
    linear-gradient(rgba(140,170,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,170,255,.04) 1px, transparent 1px);
  background-size: 210px 190px, 140px 160px, 320px 300px, 90px 84px, 64px 58px, 46px 42px, 80px 80px, 80px 80px;
  background-position: 0 0, 40px 60px, 120px 30px, 20px 10px, 12px 22px, 6px 8px, 0 0, 0 0; }
.crun-dark { position: absolute; left: 0; top: 0; width: 2880px; height: 1620px; pointer-events: none; z-index: 5;
  will-change: transform;
  background: radial-gradient(circle 300px at 1440px 810px,
    transparent 0%, rgba(1,2,10,.12) 42%, rgba(1,2,10,.62) 62%, rgba(1,1,7,.9) 78%, rgba(0,1,6,.94) 100%); }
.crun-grid::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 30% 25%, rgba(255,63,166,.10), transparent 60%),
              radial-gradient(60% 50% at 75% 70%, rgba(50,230,255,.10), transparent 60%); }
.crun-ents { position: absolute; inset: 0; }
.crun-ent { position: absolute; left: 0; top: 0; will-change: transform; }
.crun-ent .crun-drop, .crun-ent .crun-star, .crun-ent .crun-chaser, .crun-ent .crun-pick {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.crun-ent .crun-star { line-height: 1; display: flex; align-items: center; justify-content: center; }
.bglow { position: absolute; inset: -45%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.5), rgba(200,225,255,.18) 55%, transparent 72%); }
.crun .hl-title, .crun .hl-chance, .crun-chip, .crun-mini { z-index: 20; }

.crun-player { position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff, #bfe6ff 55%, #7fb6ff); border: 2px solid #fff;
  box-shadow: 0 0 22px rgba(150,220,255,.9), 0 0 44px rgba(255,150,215,.5); z-index: 5; }
.p-ring { position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(158,240,224,.9);
  box-shadow: 0 0 14px rgba(158,240,224,.8), inset 0 0 10px rgba(158,240,224,.5);
  opacity: 0; transition: opacity .25s ease; }
.crun-player.shielded .p-ring { opacity: 1; }

.crun-drop { position: absolute; width: 32px; height: 32px; border-radius: 50%; }
.crun-drop.glitch { width: 44px; height: 44px; border-radius: 5px;
  background: repeating-linear-gradient(45deg,#0a0a0a,#0a0a0a 3px,#333 3px,#333 6px);
  box-shadow: 0 0 14px rgba(0,0,0,.9); border: 1px solid #555; animation: glitchJit .24s steps(2) infinite; }
@keyframes glitchJit { 0%{transform:translate(0,0)} 50%{transform:translate(1px,-1px)} 100%{transform:translate(-1px,1px)} }
.crun-orb { position: absolute; border-radius: 50%; border: 3px solid rgba(255,255,255,.75);
  box-shadow: 0 0 22px currentColor; }
.crun-star { position: absolute; width: 32px; height: 32px; color: #ffd166; font-size: 30px; line-height: 32px;
  text-align: center; text-shadow: 0 0 12px #ffd166, 0 0 26px rgba(255,209,102,.7);
  animation: starSpin 6s linear infinite; }
@keyframes starSpin { to { transform: rotate(360deg); } }
.crun-chaser { position: absolute; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2b2b34, #0a0a0f 70%); border: 2px solid #ff5d6c;
  box-shadow: 0 0 16px rgba(255,93,108,.55); animation: glitchJit .24s steps(2) infinite; }
.crun-pick { position: absolute; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; border-radius: 0; background: rgba(255,255,255,.10); border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 0 16px rgba(255,255,255,.6); animation: pickBob 2.2s ease-in-out infinite alternate; }
.crun-pick.shield { color: var(--nsoMint); border-color: var(--nsoMint); box-shadow: 0 0 16px rgba(158,240,224,.8); }
.crun-pick.magnet { color: #ffb3e2; border-color: #ffb3e2; box-shadow: 0 0 16px rgba(255,179,226,.8); }
@keyframes pickBob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.crun-float { position: absolute; font-size: 16px; font-weight: 700; color: #fff;
  text-shadow: 0 0 10px currentColor; pointer-events: none; z-index: 8; white-space: nowrap; }
.crun-trail { position: absolute; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(190,230,255,.25) 70%, transparent); }
.lm-heart { position: absolute; font-size: 44px; color: rgba(255,140,205,.15);
  text-shadow: 0 0 22px rgba(255,140,205,.22); animation: lmPulse 7s ease-in-out infinite alternate; }
@keyframes lmPulse { from { opacity: .5; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
.crun-splash { position: absolute; width: 11px; height: 11px; border-radius: 50%; pointer-events: none; z-index: 6; }
.crun-chip { position: absolute; left: 20px; bottom: 20px; padding: 6px 12px; border-radius: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #ffb3e2;
  border: 1.5px solid rgba(255,179,226,.7); background: rgba(20,8,26,.6);
  box-shadow: 0 0 14px rgba(255,179,226,.4); opacity: 0; transition: opacity .25s ease; }
.crun-chip.on { opacity: 1; }

.crun-mini { position: absolute; right: 18px; bottom: 18px; width: 150px; height: 104px;
  background: rgba(6,7,15,.74); border: 1px solid rgba(158,240,224,.4); border-radius: 0; overflow: hidden;
  box-shadow: 0 0 18px rgba(0,0,0,.5), 0 0 12px rgba(158,240,224,.15); }
.crun-mini-dot { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; will-change: transform; }
.crun-mini-player { position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #fff; will-change: transform;
  box-shadow: 0 0 8px #bfe6ff; z-index: 2; }

.ending { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: transparent; }
.end-sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.end-spark { position: absolute; top: -24px; color: #dff0ff; text-shadow: 0 0 8px rgba(190,230,255,.8);
  animation: sparkFall linear infinite; }
@keyframes sparkFall { 0% { transform: translateY(-4vh) rotate(0); } 100% { transform: translateY(110vh) rotate(200deg); } }

.letter.paper { position: relative; z-index: 2; width: min(560px, 80%); text-align: center;
  background:
    linear-gradient(90deg, transparent 44px, rgba(214,120,120,.20) 44px, rgba(214,120,120,.20) 45px, transparent 45px),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(120,95,60,.10) 30px 31px),
    linear-gradient(180deg, #fffdf6 0%, #faf3e2 58%, #f0e5cc 100%);
  box-shadow: 0 28px 64px rgba(0,0,0,.62), 0 4px 14px rgba(0,0,0,.4),
    inset 0 -46px 70px rgba(160,130,80,.12), inset 0 2px 0 rgba(255,255,255,.85); }
.paper-inner { padding: 42px 50px 30px; }
.letter-head { font-size: 27px; font-weight: 600; font-style: italic; color: #4a3b28;
  letter-spacing: 1px; margin-bottom: 17px; }
.letter-body { font-size: 15.5px; line-height: 31px; color: #55452f; font-weight: 300; font-style: italic; }
.letter .menu-btns { margin-top: 24px; }
.letter .gbtn { color: #6a5638; border-color: #c8b48c; background: rgba(255,252,240,.75); text-shadow: none;
  box-shadow: 0 2px 0 rgba(180,150,100,.4); }
.letter .gbtn:hover { color: #3f3320; border-color: #a98d5c; background: #fffdf4;
  box-shadow: 0 3px 12px rgba(160,120,60,.35); transform: translateY(-1px); }

.void { position: absolute; inset: 0; background: transparent; }

.crun-seg { position: absolute; left: 0; top: 0; border-radius: 50%; z-index: 4; pointer-events: none; will-change: transform; }
.crun-bucket { position: absolute; left: -3px; top: -4px; width: 44px; height: 46px; object-fit: contain; }

.gate { position: absolute; inset: 0; background: transparent; cursor: pointer; }
.gate-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; }
.gate-heart { font-size: 42px; color: #ffb3e2; text-shadow: 0 0 22px rgba(255,150,215,.8);
  animation: gatePulse 2.6s ease-in-out infinite alternate; }
.gate-text { font-size: 24px; letter-spacing: 6px; text-transform: uppercase; font-weight: 500;
  animation: gatePulse 2.6s ease-in-out infinite alternate; }
@keyframes gatePulse { from { opacity: .55; } to { opacity: 1; } }
.gate-foot { position: absolute; bottom: 26px; width: 100%; text-align: center;
  color: #45608c; font-size: 12px; letter-spacing: 3px; }

.thanks { position: absolute; inset: 0; background: transparent; }
.th-head { position: absolute; top: 44px; left: 0; right: 0; text-align: center;
  font-size: 34px; font-weight: 700; letter-spacing: 7px; }
.th-sub { position: absolute; top: 96px; left: 0; right: 0; text-align: center;
  font-size: 13.5px; letter-spacing: 2px; color: #a9c0e8; font-weight: 300; }
.th-sketches { position: absolute; top: 130px; left: 0; right: 0;
  display: flex; gap: 13px; justify-content: center; }
.th-sketch { background: #fff; padding: 5px; transform: rotate(var(--r, 0deg));
  box-shadow: 0 8px 20px rgba(0,0,0,.5); transition: transform .16s ease; }
.th-sketch:hover { transform: rotate(0deg) scale(1.08); }
.th-sketch-img { width: 82px; height: 82px; object-fit: contain; display: block; }
.th-graf { position: absolute; top: 238px; left: 50%; margin-left: -128px; width: 256px;
  background: #fff; padding: 8px 8px 10px; transform: rotate(var(--r, 0deg));
  box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.th-graf-img { display: block; width: 100%; height: auto; }
.th-btns { position: absolute; left: 0; right: 0; bottom: 22px;
  flex-direction: row; justify-content: center; align-items: center; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .astar, .orb, .twinkle,
  .cb-crown, .cb-wing, .end-spark, .lm-heart, .crun-star, .crun-pick, .gate-heart, .gate-text,
  .kangel-bg::after, .kangel-halo { animation: none; }
}
