* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: radial-gradient(ellipse at top, #2a0508 0%, #07060c 55%, #000 100%); color: #fff; font-family: 'Fira Code', monospace; min-height: 100vh; overflow-x: hidden; }
input[type=range] { accent-color: #CC0000; }

.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(2px 2px at 50% 40%, #cfe9ff, transparent), radial-gradient(1px 1px at 70% 10%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(2px 2px at 20% 90%, #fff, transparent), radial-gradient(1px 1px at 95% 85%, #fff, transparent), radial-gradient(1px 1px at 60% 85%, #ffd, transparent);
  background-size: 400px 400px; animation: twinkle 4s ease-in-out infinite; }
.stars.s2 { background-size: 260px 260px; background-position: 120px 60px; animation-delay: 2s; opacity: .6; }
@keyframes twinkle { 0%,100% { opacity: .9; } 50% { opacity: .3; } }

.bling-title { font-family: 'Anton', Impact, sans-serif; letter-spacing: 2px; line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #c9d4e2 40%, #6d7c8c 52%, #e8eef8 70%, #fff 100%), radial-gradient(#fff 1px, transparent 1.5px);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #8a6a00) drop-shadow(0 0 12px rgba(255,215,0,.35)); position: relative; animation: glint 2.5s linear infinite; }
@keyframes glint { 0%,100% { filter: drop-shadow(0 3px 0 #8a6a00) drop-shadow(0 0 10px rgba(255,215,0,.3)); } 50% { filter: drop-shadow(0 3px 0 #8a6a00) drop-shadow(0 0 22px rgba(255,255,255,.6)); } }

.fnf-badge { display: inline-block; margin-top: 8px; padding: 4px 16px; font-family: 'Lilita One'; font-size: 22px; letter-spacing: 2px;
  color: #fff; background: linear-gradient(90deg, #C24B99, #00FFFF); border: 3px solid #000; border-radius: 10px; transform: rotate(-3deg); box-shadow: 4px 4px 0 #000; }

.bob { animation: bob .4s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }

.header-bg { background: radial-gradient(ellipse at center top, rgba(204,0,0,.35) 0%, transparent 60%); }

.card { background: linear-gradient(145deg, rgba(26,20,28,.92), rgba(10,8,14,.92)); border: 1px solid #332; border-radius: 14px; position: relative; overflow: hidden; backdrop-filter: blur(3px); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #8B0000, #FFD700, #00FFFF, #C24B99, transparent); }
.step-title { font-family: 'Anton', Impact; color: #FFD700; font-size: 22px; letter-spacing: 1px; margin-bottom: 14px; }

.drop-zone { border: 3px dashed #DAA520; transition: all .25s; }
.drop-zone.dragover { border-color: #00FFFF; background: rgba(0,255,255,.06); transform: scale(1.01); }

.btn-sparta { background: linear-gradient(180deg, #CC0000, #8B0000); border: 2px solid #FFD700; color: #FFD700; font-family: 'Anton', Impact; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn-sparta:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(204,0,0,.6), 0 0 10px rgba(255,215,0,.4); }
.btn-sparta:active { transform: scale(.97); }
.btn-sparta:disabled { opacity: .5; }
.shield { border-width: 4px; border-radius: 20px 20px 50% 50% / 20px 20px 35% 35%; padding-bottom: 2.2rem; }
.btn-ghost { padding: 8px 14px; border-radius: 8px; background: #1b1b1f; color: #FFD700; border: 1px solid #444; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-ghost:hover { border-color: #FFD700; }
.pulse-glow { animation: pg 2s ease-in-out infinite; }
@keyframes pg { 0%,100% { box-shadow: 0 0 20px rgba(204,0,0,.4); } 50% { box-shadow: 0 0 45px rgba(204,0,0,.8); } }

.tab { padding: 8px 16px; border-radius: 10px; font-family: 'Lilita One'; font-size: 18px; background: #151519; border: 2px solid #333; color: #aaa; cursor: pointer; }
.tab.on { background: linear-gradient(90deg, #C24B99, #6a1d55); color: #fff; border-color: #000; box-shadow: 3px 3px 0 #000; }

.pbar { height: 22px; background: rgba(0,0,0,.5); border: 1px solid #444; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #8B0000, #CC0000, #FFD700, #00FFFF); background-size: 200% 100%; animation: sh 1.5s linear infinite; transition: width .2s; }
@keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spin { animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.waveform-canvas { background: #08070b; border: 1px solid #333; border-radius: 8px; }
.pcell { width: 32px; height: 32px; border: 1px solid #333; border-radius: 7px; display: flex; align-items: center; justify-content: center; position: relative; font-weight: 900; }
.pcell.active { transform: scale(1.3); box-shadow: 0 0 14px #FFD700; z-index: 2; }
.flipmark { position: absolute; top: -6px; right: -4px; font-size: 9px; color: #FFD700; }

.touch-arrow { font-size: 34px; padding: 14px 0; border: 3px solid; border-radius: 14px; background: #0c0c10; user-select: none; touch-action: manipulation; }
.touch-arrow:active { background: #222; transform: scale(.94); }

.sticker { box-shadow: 0 0 0 4px #fff, 0 0 40px rgba(255,215,0,.3); }

.toast { position: fixed; bottom: 20px; right: 20px; left: auto; max-width: 90vw; background: #120f16; border: 2px solid #FFD700; border-radius: 10px; padding: 12px 18px; color: #FFD700; font-family: 'Lilita One'; font-size: 16px; z-index: 1000; box-shadow: 4px 4px 0 #000; animation: tin .3s ease; }
@keyframes tin { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #111; } ::-webkit-scrollbar-thumb { background: #8B0000; border-radius: 4px; }