:root {
    --cheer-title-size: clamp(22px, 4vw, 36px);
    --cheer-title-small: 22px;
    --cheer-copy-size: 16px;
    --cheer-violet: #563b94;
    --cheer-indigo: #20204d;
    --cheer-night: #101326;
    --cheer-cyan-beam: #97eaff88;
    --cheer-violet-beam: #8f5dff30;
    --cheer-pink-beam: #ec9fff88;
    --cheer-gold-beam: #ffdf8b66;
    --cheer-grid: #a689ff80;
    --cheer-glow: #ba9bff;
    --cheer-white: #fff;
    --cheer-gold-glow: #ffcf6e88;
    --cheer-halo-gold: #ffebac44;
    --cheer-halo-violet: #bc83ff22;
    --cheer-gold: #fff4bc;
    --cheer-text: #e7ddff;
    --cheer-border: #ffffff66;
    --cheer-skip-bg: #ffffff14;
    --cheer-focus: #ffda70;
    --cheer-paper-cyan: #79dcff;
    --cheer-sunset: #f3b29b;
    --cheer-sunset-top: #eaa4ae;
    --cheer-sunset-mid: #f5bc9b;
    --cheer-sunset-bottom: #ffe0b5;
}
:root[data-nfc-theme="lightstick"] { --app-page-bg-solid: var(--cheer-sunset); --figma-page-bg: var(--cheer-sunset); --figma-bg-landscape: linear-gradient(180deg, var(--cheer-sunset-top) 0%, var(--cheer-sunset-mid) 50%, var(--cheer-sunset-bottom) 100%); --figma-bg-portrait: var(--figma-bg-landscape); }
body[data-nfc-theme="lightstick"] #game-container { --app-page-bg-solid: transparent; --figma-page-bg: transparent; --figma-bg-landscape: none; --figma-bg-portrait: none; z-index: 1; }
.lightstick-stage { background: var(--figma-bg-landscape); position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lightstick-stage[hidden] { display: none; }
.lightstick-companion { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom)); width: clamp(42px, 7vw, 84px); height: clamp(110px, 20vh, 190px); object-fit: contain; object-position: left bottom; transform-origin: 50% 95%; animation: cheer-wave 2.4s ease-in-out infinite alternate; }
.lightstick-intro-scene { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 90%, var(--cheer-violet) 0%, var(--cheer-indigo) 48%, var(--cheer-night) 100%); }
.cheer-beams { position: absolute; inset: -25% -20% 0; opacity: .45; }
.cheer-beams i { position: absolute; left: 10%; top: 0; width: 28%; height: 125%; transform-origin: 50% 0; background: linear-gradient(180deg, var(--cheer-cyan-beam), var(--cheer-violet-beam) 65%, transparent); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); animation: cheer-beam-turn 24s linear infinite; animation-delay: -2s; }
.cheer-beams i:nth-child(2) { left: 24%; background: linear-gradient(var(--cheer-pink-beam), transparent); animation-duration: 30s; animation-direction: reverse; animation-delay: -7s; }
.cheer-beams i:nth-child(3) { left: 70%; animation-delay: -14s; }
.cheer-beams i:nth-child(4) { left: 60%; background: linear-gradient(var(--cheer-gold-beam), transparent); animation-duration: 30s; animation-direction: reverse; animation-delay: -22s; }
.cheer-floor { position: absolute; inset: 60% -30% -40%; opacity: .26; background-image: linear-gradient(var(--cheer-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cheer-grid) 1px, transparent 1px); background-size: 70px 70px; transform: perspective(250px) rotateX(55deg); }
.cheer-crowd { position: absolute; inset: auto 0 0; height: clamp(110px, 22vh, 200px); display: flex; justify-content: space-around; align-items: end; gap: 8px; padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); opacity: .38; }
.cheer-crowd span { display: block; width: clamp(26px, 5vw, 64px); height: calc(78% + var(--i) * 3%); flex: 0 0 auto; transform-origin: 50% 100%; animation: cheer-wave 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -170ms); }
.cheer-crowd img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 0 8px var(--cheer-glow)); }
.lightstick-intro { position: fixed; inset: 0; z-index: 20000; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 24px; color: var(--cheer-white); text-align: center; background: var(--cheer-night); animation: cheer-intro-finish 2.8s linear both; }
.lightstick-intro-display { position: relative; width: min(84vw, 540px); height: min(56dvh, 480px); min-height: 0; }
.lightstick-intro-art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 24px var(--cheer-gold-glow)); transform-origin: 50% 85%; animation: cheer-intro-pop 1.2s cubic-bezier(.2, .75, .3, 1) both; }
.lightstick-intro-confetti { position: absolute; inset: 0; pointer-events: none; }
.lightstick-confetti-piece { position: absolute; left: 50%; top: 32%; width: 8px; height: 13px; opacity: 0; background: var(--paper-color); animation: cheer-confetti-burst 1.8s cubic-bezier(.18, .65, .4, 1) var(--paper-delay) both; }
.lightstick-confetti-piece:nth-child(3n) { width: 6px; height: 10px; }
.lightstick-confetti-piece:nth-child(4n) { width: 10px; height: 6px; }
.lightstick-intro-halo { position: absolute; top: 10%; width: min(85vw, 650px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--cheer-halo-gold), var(--cheer-halo-violet) 42%, transparent 68%); }
.lightstick-intro h2 { position: relative; margin: 20px 0 8px; font-size: var(--cheer-title-size); color: var(--cheer-gold); }
.lightstick-intro p { position: relative; margin: 0; color: var(--cheer-text); font-size: var(--cheer-copy-size); }
.lightstick-intro-skip { position: absolute; top: max(20px, env(safe-area-inset-top)); right: 24px; padding: 10px 18px; border: 1px solid var(--cheer-border); border-radius: 24px; color: var(--cheer-white); background: var(--cheer-skip-bg); cursor: pointer; }
.lightstick-intro-skip:focus-visible { outline: 3px solid var(--cheer-focus); outline-offset: 4px; }
.lightstick-stage.is-paused * { animation-play-state: paused; }
@keyframes cheer-beam-turn { from { transform: rotate(-45deg); } to { transform: rotate(315deg); } }
@keyframes cheer-wave { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes cheer-intro-finish { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cheer-intro-pop {
    0% { transform: translateY(35vh) scale(.18) rotate(-18deg); opacity: 0; }
    35% { opacity: 1; }
    48% { transform: translateY(-4%) scale(1.12) rotate(7deg); opacity: 1; }
    68% { transform: translateY(2%) scale(.96) rotate(-4deg); }
    84% { transform: translateY(0) scale(1.02) rotate(2deg); }
    100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}
@keyframes cheer-confetti-burst {
    0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 0; }
    10% { transform: translate(calc(var(--paper-x) * .18), calc(var(--paper-rise) * .6)) rotate(70deg); opacity: 1; }
    38% { transform: translate(calc(var(--paper-x) * .62), var(--paper-rise)) rotate(190deg) rotateY(180deg); opacity: 1; }
    100% { transform: translate(var(--paper-x), var(--paper-fall)) rotate(var(--paper-spin)) rotateY(540deg); opacity: 0; }
}
@media (orientation: landscape) and (max-height: 500px) {
    .lightstick-intro-display { height: 58dvh; }
    .lightstick-intro h2 { margin-top: 8px; font-size: var(--cheer-title-small); }
}
@media (prefers-reduced-motion: reduce) {
    .lightstick-companion, .lightstick-intro, .lightstick-intro .cheer-beams i, .lightstick-intro .cheer-crowd span, .lightstick-intro .lightstick-intro-art { animation: none; }
    .lightstick-intro-confetti { display: none; }
}

#settings-screen #nfc-list .settings-nfc-meta { flex-wrap: wrap; justify-content: flex-start; white-space: normal; gap: 6px; }
#settings-screen #nfc-list .settings-nfc-type { font-weight: 800; color: var(--figma-brown); }
