/* ===== МЕГА РЕЙВ 3000 — стили (вынесены из example.html) ===== */
:root {
  --chaos: .6; --beat: 0;
  --silver-1: #ececec;
  --silver-2: #c8c8c8;
  --silver-3: #a8a8a8;
  --gold-2: #ffe89a;
  --gold-3: #d4af37;
  --gold-4: #8b6914;
  --blue-1: #000080;
  --blue-2: #1084d0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; overflow: hidden; color: #000;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  cursor: default;
  background: #003838;
}
body.paused #message, body.paused .beam, body.paused .cat,
body.paused .sausage, body.paused .marquee span, body.paused .strobe,
body.paused .flash, body.paused .new-badge,
body.paused .subscribe, body.paused .marquee-bottom span,
body.paused .blink { animation-play-state: paused !important; }
body.paused .popup { display: none; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  border: 2px solid rgba(255,232,154,.4);
  box-shadow: inset 0 0 60px rgba(255,232,154,.18), inset 0 0 120px rgba(212,175,55,.12);
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 39;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%);
}
body.vhs-mode::before {
  border-color: #fff;
  box-shadow: inset 0 0 80px rgba(255,255,255,.5);
  animation: vhsScan 0.3s steps(6) infinite;
}
@keyframes vhsScan {
  0% { filter: none; }
  50% { filter: brightness(1.3) contrast(1.4); }
  100% { filter: none; }
}
body.grayscale-mode { filter: grayscale(1) contrast(1.2); }
body.invert-mode { filter: invert(1) hue-rotate(180deg); }
body.redflash-mode::after {
  background: radial-gradient(ellipse at center, rgba(255,0,0,.7) 0%, rgba(150,0,0,.9) 100%) !important;
}
body.zoomed .stage { transform: scale(1.15); transition: transform .3s; }
@keyframes explodeFlash {
  0% { opacity: 0; transform: scale(0.8); }
  10% { opacity: 1; transform: scale(1.1); }
  30% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}
.bg-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,232,154,.045) 22px 44px),
    radial-gradient(ellipse at 50% 40%, #009999 0%, #006666 35%, #003838 75%, #001818 100%);
  animation: bgBreathe 12s ease-in-out infinite alternate;
}
@keyframes bgBreathe {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(-8deg) brightness(1.1); }
}
.bg-stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff8dc, transparent),
    radial-gradient(1px 1px at 60% 70%, #ffd700, transparent),
    radial-gradient(2px 2px at 80% 20%, #00ffff, transparent),
    radial-gradient(1px 1px at 10% 80%, #ff00ff, transparent),
    radial-gradient(1.5px 1.5px at 45% 15%, #ffe89a, transparent),
    radial-gradient(1px 1px at 70% 50%, #fff, transparent);
  background-size: 100% 100%;
  animation: twinkle 4s steps(2,end) infinite;
}
@keyframes twinkle { 0%,100%{opacity:.5;} 50%{opacity:.9;} }
.stage { position: fixed; inset: 0; display: flex; justify-content: center; align-items: center;
  isolation: isolate; z-index: 1; transition: transform .3s, filter .3s; }
body[data-stage="rave"] .stage, body[data-stage="glitch"] .stage { animation: hueSpin 8s linear infinite; }
body.total-chaos .stage { animation-duration: 2s !important; }
@keyframes hueSpin { from{filter:hue-rotate(0deg) saturate(1.5);} to{filter:hue-rotate(360deg) saturate(1.5);} }
.lasers { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
  pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .6s; }
body[data-stage="lasers"] .lasers, body[data-stage="rave"] .lasers,
body[data-stage="glitch"] .lasers { opacity: 1; }
.beam { position: absolute; width: 90vmax; height: 3px; transform-origin: 0 50%;
  opacity: calc(.4 + var(--chaos) * .6); filter: drop-shadow(0 0 6px currentColor); }
.beam:nth-child(1){background:linear-gradient(90deg,#ff004c,transparent);color:#ff004c;animation:sweep 1.6s linear infinite;}
.beam:nth-child(2){background:linear-gradient(90deg,#00ffa3,transparent);color:#00ffa3;animation:sweep 2.1s linear infinite reverse;}
.beam:nth-child(3){background:linear-gradient(90deg,#00b3ff,transparent);color:#00b3ff;animation:sweep 1.2s linear infinite;}
.beam:nth-child(4){background:linear-gradient(90deg,#ffe600,transparent);color:#ffe600;animation:sweep 2.6s linear infinite reverse;}
.beam:nth-child(5){background:linear-gradient(90deg,#b400ff,transparent);color:#b400ff;animation:sweep 1.4s linear infinite;}
.beam:nth-child(6){background:linear-gradient(90deg,#ff6a00,transparent);color:#ff6a00;animation:sweep 1.9s linear infinite reverse;}
.beam:nth-child(7){background:linear-gradient(90deg,#00fff0,transparent);color:#00fff0;animation:sweep 1.1s linear infinite;}
.beam:nth-child(8){background:linear-gradient(90deg,#ff00d4,transparent);color:#ff00d4;animation:sweep 2.4s linear infinite reverse;}
@keyframes sweep { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
.strobe { position: absolute; inset: 0; background: #fff; pointer-events: none;
  mix-blend-mode: overlay; z-index: 6; opacity: 0; }
body[data-stage="rave"] .strobe { animation: strobe .09s steps(1,end) infinite; }
body.total-chaos .strobe { animation-duration: .05s !important; }
@keyframes strobe { 0%,50%{opacity:0;} 51%,65%{opacity:calc(var(--chaos) * .5);} 66%,100%{opacity:0;} }
.flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0;
  background: radial-gradient(circle at 20% 30%, #f0a, transparent 40%),
             radial-gradient(circle at 80% 70%, #0fe, transparent 40%),
             radial-gradient(circle at 50% 50%, #fe0, transparent 45%); }
body[data-stage="rave"] .flash, body[data-stage="glitch"] .flash { animation: flashPulse .6s steps(2,end) infinite; }
@keyframes flashPulse {
  0%,33% { opacity: calc(var(--chaos)*.15); transform: scale(1); }
  34%,66% { opacity: calc(var(--chaos)*.55); transform: scale(1.15) rotate(3deg); }
  67%,100%{ opacity: calc(var(--chaos)*.30); transform: scale(.95) rotate(-3deg); }
}
.glitch-overlay { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: repeating-linear-gradient(0deg,rgba(255,255,255,.08) 0 1px,transparent 1px 3px),
             repeating-linear-gradient(90deg,rgba(255,0,0,.06) 0 2px,transparent 2px 5px); }
body[data-stage="glitch"] .glitch-overlay { opacity: 1; animation: glitchShift .1s steps(2,end) infinite; }
@keyframes glitchShift { 0%{transform:translate(0,0);} 50%{transform:translate(-3px,2px);} 100%{transform:translate(2px,-1px);} }
#message {
  position: relative; z-index: 4;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(40px, 12vw, 150px);
  font-weight: 900; letter-spacing: 6px;
  white-space: nowrap; text-transform: uppercase;
  background: linear-gradient(180deg, #fff8dc 0%, #ffe89a 40%, #d4af37 70%, #8b6914 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px #000;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(-2px -2px 0 #000)
    drop-shadow(0 0 24px rgba(255,232,154,.8))
    drop-shadow(0 0 60px rgba(212,175,55,.55))
    drop-shadow(8px 8px 0 rgba(255,0,255,.85));
  animation: spin 1.2s linear infinite, goldShimmer 3s linear infinite;
}
body[data-stage="rave"] #message { animation-duration: .5s, 1.5s; }
body[data-stage="glitch"] #message { animation-duration: .15s, .5s; }
body.total-chaos #message { animation-duration: .25s, .8s !important; }
@keyframes spin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
@keyframes goldShimmer {
  0%,100% { filter:
    drop-shadow(4px 4px 0 #000) drop-shadow(-2px -2px 0 #000)
    drop-shadow(0 0 24px rgba(255,232,154,.8))
    drop-shadow(0 0 60px rgba(212,175,55,.55))
    drop-shadow(8px 8px 0 rgba(255,0,255,.85)); }
  50% { filter:
    drop-shadow(4px 4px 0 #000) drop-shadow(-2px -2px 0 #000)
    drop-shadow(0 0 32px rgba(255,248,220,1))
    drop-shadow(0 0 80px rgba(255,215,0,.7))
    drop-shadow(8px 8px 0 rgba(255,0,255,.85)); }
}
.cats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cat { position: absolute; line-height: 1; font-size: clamp(30px, 7vw, 80px);
  opacity: 0; transition: opacity .5s;
  animation: dance .5s steps(2,end) infinite alternate, hue 1.5s steps(4,end) infinite;
  filter: drop-shadow(0 0 8px rgba(255,232,154,.6)); }
body[data-stage="intro"] .cat, body[data-stage="lasers"] .cat,
body[data-stage="rave"] .cat, body[data-stage="glitch"] .cat { opacity: 1; }
.cat:nth-child(1){left:4%;top:16%;animation-duration:.4s,1.2s;}
.cat:nth-child(2){left:82%;top:14%;animation-duration:.6s,1.7s;}
.cat:nth-child(3){left:10%;top:74%;animation-duration:.35s,1.4s;}
.cat:nth-child(4){left:78%;top:76%;animation-duration:.7s,2.0s;}
.cat:nth-child(5){left:44%;top:8%;animation-duration:.45s,1.5s;}
.cat:nth-child(6){left:45%;top:88%;animation-duration:.55s,1.8s;}
.cat:nth-child(7){left:1%;top:42%;animation-duration:.5s,1.6s;}
.cat:nth-child(8){left:90%;top:44%;animation-duration:.65s,1.3s;}
@keyframes dance { from{transform:translateY(0) rotate(-18deg) scale(1);} to{transform:translateY(-32px) rotate(18deg) scale(1.25);} }
@keyframes hue { from{filter:drop-shadow(0 0 8px rgba(255,232,154,.6)) hue-rotate(0deg);} to{filter:drop-shadow(0 0 8px rgba(255,232,154,.6)) hue-rotate(360deg);} }
.sausages { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.sausage { position: absolute; top: -10%; opacity: 0; font-size: clamp(36px, 8vw, 90px); line-height: 1;
  filter: drop-shadow(0 0 14px #ff2d2d) drop-shadow(0 0 30px #ffb300);
  transition: opacity .5s; animation: fly 3.5s linear infinite, spinSaus .6s steps(4,end) infinite; }
body[data-stage="intro"] .sausage, body[data-stage="lasers"] .sausage,
body[data-stage="rave"] .sausage, body[data-stage="glitch"] .sausage { opacity: 1; }
.sausage:nth-child(1){left:15%;animation-duration:3.2s,.5s;}
.sausage:nth-child(2){left:40%;animation-duration:4.1s,.7s;animation-delay:-1s,0s;}
.sausage:nth-child(3){left:65%;animation-duration:2.7s,.4s;animation-delay:-2s,0s;}
.sausage:nth-child(4){left:85%;animation-duration:3.8s,.6s;animation-delay:-.5s,0s;}
.sausage:nth-child(5){left:5%;animation-duration:4.5s,.8s;animation-delay:-3s,0s;}
.sausage:nth-child(6){left:55%;animation-duration:2.2s,.5s;animation-delay:-1.5s,0s;}
@keyframes fly {
  0%{transform:translateY(-20vh) translateX(0) scale(.6);opacity:0;}
  10%{opacity:1;}
  50%{transform:translateY(50vh) translateX(8vw) scale(1.4);}
  90%{opacity:1;}
  100%{transform:translateY(120vh) translateX(-6vw) scale(.7);opacity:0;}
}
@keyframes spinSaus { from{rotate:0deg;} to{rotate:360deg;} }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, #000 0 4px, #0a0a0a 4px 8px),
    linear-gradient(to top, rgba(212,175,55,.25), transparent 60%);
  border-top: 1px solid rgba(255,232,154,.35); }
.eq { position: fixed; left: 0; right: 0; top: 36px; height: 62px;
  display: flex; align-items: flex-end; justify-content: center; gap: 2px;
  padding: 4px 40px 2px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, #1a1a1a, #050505);
  border: 2px inset #c8c8c8; margin: 0 30px;
  box-shadow: 0 0 0 1px rgba(255,232,154,.6), 0 0 0 2px #8b6914,
    0 0 30px rgba(255,232,154,.35), inset 0 0 20px rgba(0,0,0,.9); }
.eq-bar { flex: 1 1 auto; min-width: 2px; max-width: 14px; height: 2px;
  background: linear-gradient(to top, #00ff00 0%, #ffff00 55%, #ffe89a 80%, #ff0000 100%);
  border: 1px solid #003300; box-shadow: 0 0 4px rgba(255,232,154,.5); }
.bird { position: fixed; left: -80px; top: 40%; z-index: 150; font-size: 46px; line-height: 1;
  pointer-events: none; transform: translate(-50%, -50%);
  transition-property: left, top; transition-timing-function: steps(8, end);
  transition-duration: 1s; display: none;
  filter: drop-shadow(0 0 12px rgba(255,232,154,.9)) drop-shadow(0 0 28px rgba(212,175,55,.5)); }
body[data-stage] .bird { display: block; }
.bird .body { display: inline-block; animation: flap .17s steps(2,end) infinite alternate; transform-origin: 50% 60%; }
.bird.diving .body { animation-duration: .1s; }
.bird.landed .body { animation-duration: .32s; }
@keyframes flap { from{transform:rotate(-9deg) scaleY(1);} to{transform:rotate(9deg) scaleY(1.12);} }
.bird.landed { animation: birdBob .5s steps(2,end) infinite alternate; }
@keyframes birdBob { from{transform:translate(-50%,-50%) translateY(0);} to{transform:translate(-50%,-50%) translateY(-6px);} }
.bird-touched { animation: birdTouch .7s steps(3,end); }
@keyframes birdTouch {
  0% { outline: 3px solid #ffe89a; outline-offset: 4px; box-shadow: 0 0 30px rgba(255,232,154,1); }
  100% { outline: 3px solid transparent; outline-offset: 0; box-shadow: 0 0 0 transparent; }
}
.bird-tag { position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font: bold 10px "MS Sans Serif", Arial; letter-spacing: 1.5px;
  color: #000; background: linear-gradient(180deg, #fff8dc, #d4af37);
  padding: 2px 8px; border: 1px solid #8b6914; box-shadow: 0 0 10px rgba(255,232,154,.8); }
.dog-walker { position: fixed; bottom: 76px; left: -60px; font-size: 34px;
  z-index: 15; pointer-events: none; filter: drop-shadow(0 0 10px rgba(255,232,154,.8));
  animation: dogWalk 30s steps(120) infinite; }
@keyframes dogWalk {
  0% { left: -60px; transform: scaleX(1); }
  35% { left: calc(100% + 60px); transform: scaleX(1); }
  35.01%{ left: calc(100% + 60px); transform: scaleX(-1); }
  70% { left: -60px; transform: scaleX(-1); }
  70.01%{ left: -60px; transform: scaleX(1); }
  100%{ left: -60px; transform: scaleX(1); }
}
.chat { position: fixed; right: 14px; bottom: 46px; width: 380px;
  max-width: calc(100vw - 28px); height: 340px; z-index: 90;
  background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  border: 2px outset #c0c0c0; display: flex; flex-direction: column;
  font-family: "MS Sans Serif", Arial, sans-serif;
  box-shadow: 0 0 0 1px rgba(255,232,154,.8), 0 0 0 2px #8b6914,
    0 0 30px rgba(255,232,154,.4), 0 0 60px rgba(212,175,55,.25), 4px 4px 0 #000; }
.chat-header { padding: 3px 4px 3px 8px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2)),
    linear-gradient(90deg, transparent 0%, rgba(255,232,154,.25) 50%, transparent 100%);
  background-blend-mode: screen; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .5px;
  border-bottom: 1px solid #8b6914;
  box-shadow: inset 0 1px 0 rgba(255,248,220,.4), inset 0 -1px 0 rgba(0,0,0,.4);
  display: flex; justify-content: space-between; align-items: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.6), 0 0 8px rgba(255,232,154,.4); }
.chat-header .btns { display: flex; gap: 2px; }
.chat-header .btns .b { background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  color: #000; width: 14px; height: 14px; line-height: 11px; text-align: center;
  border: 1px outset #c0c0c0; font: bold 10px "MS Sans Serif"; box-shadow: 0 0 0 1px rgba(255,232,154,.5); }
.chat-header .status { color: #c9ffc9; font-size: 10px; display: inline-flex; align-items: center; gap: 4px;
  text-shadow: 0 0 6px rgba(0,255,0,.7); }
.chat-header .status::before { content: '●'; animation: blinkBlk 1.4s steps(1,end) infinite; }
.chat-header .online { color: #fff8dc; font-size: 10px; font-weight: 700;
  background: linear-gradient(180deg, #000, #1a1a00);
  padding: 1px 5px; border: 1px solid #8b6914; margin-left: 6px;
  box-shadow: 0 0 8px rgba(255,232,154,.6); }
.chat-messages { flex: 1; overflow-y: auto; padding: 5px; background: #fff;
  border: 2px inset #c0c0c0; margin: 2px; font: 11px "MS Sans Serif", Arial; color: #000;
  box-shadow: inset 0 0 12px rgba(212,175,55,.08); }
.chat-messages::-webkit-scrollbar { width: 16px; }
.chat-messages::-webkit-scrollbar-track { background: linear-gradient(90deg, #d0d0d0, #b0b0b0); }
.chat-messages::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #e8e8e8, #c0c0c0); border: 2px outset #c0c0c0; }
.chat-msg { margin-bottom: 4px; line-height: 1.35; }
.chat-name { font-weight: 700; text-shadow: 0 0 6px currentColor; }
.chat-text { color: #000; }
.chat-typing { color: #808080; font-style: italic; font-size: 10px; }
.chat-typing .dots::after { content:'...'; display:inline-block; animation: dotsAnim 1.1s steps(4,end) infinite; }
@keyframes dotsAnim { 0%{content:'';} 25%{content:'.';} 50%{content:'..';} 75%{content:'...';} 100%{content:'';} }
.chat-img { display: block; margin: 4px 0 8px; max-width: 100%; max-height: 140px;
  border: 2px inset #c0c0c0; box-shadow: 0 0 0 1px rgba(255,232,154,.5), 0 0 12px rgba(255,232,154,.4); }
.chat-join { color: #808080; font-style: italic; font-size: 10px; margin-bottom: 3px; }
.chat-join .who { color: #000080; font-weight: 700; font-style: normal; }
.chat-join.future { color: #008080; }
.chat-join.future .who { color: #008080; }
.marquee {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(90deg, #000080, #1084d0, #000080),
    linear-gradient(90deg, transparent 0%, rgba(255,232,154,.15) 50%, transparent 100%);
  background-blend-mode: screen; color: #ffe89a; font: bold 18px "Times New Roman", serif;
  padding: 5px 0; border-bottom: 2px solid #d4af37; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,248,220,.4), 0 2px 16px rgba(255,232,154,.35);
  text-shadow: 0 0 10px rgba(255,232,154,.7), 0 1px 2px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-100%); transition: opacity .5s, transform .5s; }
body[data-stage="intro"] .marquee, body[data-stage="lasers"] .marquee,
body[data-stage="rave"] .marquee, body[data-stage="glitch"] .marquee { opacity: 1; transform: translateY(0); }
.marquee span { display: inline-block; white-space: nowrap; padding-left: 100%;
  animation: marqueeMove 22s steps(200) infinite; }
@keyframes marqueeMove { from{transform:translateX(0);} to{transform:translateX(-100%);} }
.marquee-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(90deg, #800000, #b01010, #800000),
    linear-gradient(90deg, transparent 0%, rgba(255,232,154,.15) 50%, transparent 100%);
  background-blend-mode: screen; color: #ffe89a; font: bold 16px "Times New Roman", serif;
  padding: 5px 0; border-top: 2px solid #d4af37; overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255,248,220,.4), 0 -2px 16px rgba(255,232,154,.35);
  text-shadow: 0 0 10px rgba(255,232,154,.7), 0 1px 2px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(100%); transition: opacity .5s, transform .5s; }
body[data-stage="intro"] .marquee-bottom, body[data-stage="lasers"] .marquee-bottom,
body[data-stage="rave"] .marquee-bottom, body[data-stage="glitch"] .marquee-bottom { opacity: 1; transform: translateY(0); }
.marquee-bottom span { display: inline-block; white-space: nowrap; padding-left: 100%;
  animation: marqueeMove 26s steps(220) infinite reverse; }
.visitor-counter {
  position: fixed; top: 106px; left: 10px; z-index: 20;
  background: linear-gradient(180deg, #0a0a0a, #000); color: #c9ffc9;
  font: bold 14px "Courier New", monospace; padding: 5px 10px;
  border: 2px inset #c0c0c0;
  box-shadow: 0 0 0 1px rgba(255,232,154,.6), 0 0 14px rgba(255,232,154,.4), inset 0 0 12px rgba(0,255,0,.15);
  text-shadow: 0 0 8px rgba(0,255,0,.7); opacity: 0; transition: opacity .5s .2s; }
body[data-stage="intro"] .visitor-counter, body[data-stage="lasers"] .visitor-counter,
body[data-stage="rave"] .visitor-counter, body[data-stage="glitch"] .visitor-counter { opacity: 1; }
.visitor-counter b { color: #ffe89a; background: rgba(139,105,20,.6);
  padding: 0 4px; margin: 0 1px; border: 1px solid #d4af37;
  text-shadow: 0 0 6px rgba(255,232,154,.9); }
.new-badge { position: fixed; top: 106px; right: 12px; z-index: 20;
  background: linear-gradient(180deg, #ff2d55, #c00000); color: #fff8dc;
  font: bold 22px "Comic Sans MS", cursive; padding: 5px 12px; transform: rotate(14deg);
  border: 2px solid #ffe89a;
  box-shadow: 0 0 0 2px #8b6914, 0 0 22px rgba(255,45,85,.8), 0 0 40px rgba(255,232,154,.5);
  text-shadow: 0 0 6px rgba(0,0,0,.7), 0 0 10px rgba(255,232,154,.9);
  animation: blinkBlk .4s steps(1,end) infinite; opacity: 0; transition: opacity .5s .3s; }
body[data-stage="intro"] .new-badge, body[data-stage="lasers"] .new-badge,
body[data-stage="rave"] .new-badge, body[data-stage="glitch"] .new-badge { opacity: 1; }
.hot-badge { position: fixed; top: 148px; right: 18px; z-index: 20;
  background: linear-gradient(180deg, #ff9a00, #cc4400); color: #fff8dc;
  font: bold 14px "Comic Sans MS", cursive; padding: 4px 10px; transform: rotate(-8deg);
  border: 2px solid #ffe89a;
  box-shadow: 0 0 0 2px #8b6914, 0 0 16px rgba(255,154,0,.9), 0 0 30px rgba(255,232,154,.6);
  text-shadow: 0 0 6px rgba(0,0,0,.7), 0 0 8px rgba(255,232,154,.9);
  animation: blinkBlk .6s steps(1,end) infinite; opacity: 0; transition: opacity .5s .35s; }
body[data-stage="intro"] .hot-badge, body[data-stage="lasers"] .hot-badge,
body[data-stage="rave"] .hot-badge, body[data-stage="glitch"] .hot-badge { opacity: 1; }
@keyframes blinkBlk { 0%,45%{opacity:1;} 46%,100%{opacity:0;} }
.quote { position: fixed; top: 152px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  z-index: 20; background: linear-gradient(180deg, #0a0a0a, #000); color: #ffe89a;
  font: bold 15px "Times New Roman", serif; padding: 6px 16px;
  border: 2px solid #d4af37;
  box-shadow: 0 0 0 1px rgba(255,232,154,.5), 0 0 24px rgba(255,232,154,.5), inset 0 0 12px rgba(212,175,55,.2);
  text-shadow: 0 0 10px rgba(255,232,154,.9); opacity: 0; transition: opacity .5s .5s; }
body[data-stage="intro"] .quote, body[data-stage="lasers"] .quote,
body[data-stage="rave"] .quote, body[data-stage="glitch"] .quote { opacity: 1; }
.ninetys { position: fixed; left: 10px; bottom: 52px; z-index: 25;
  display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity .5s .9s; }
body[data-stage="intro"] .ninetys, body[data-stage="lasers"] .ninetys,
body[data-stage="rave"] .ninetys, body[data-stage="glitch"] .ninetys { opacity: 1; }
.badge-btn { width: 88px; height: 31px; border: 1px solid #000;
  display: flex; align-items: center; justify-content: center;
  font: 7px/1 "Courier New", monospace; text-align: center; padding: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px #808080, 0 0 0 2px rgba(212,175,55,.4), 0 0 10px rgba(255,232,154,.35);
  text-shadow: 0 0 4px currentColor; }
.badge-ns   { background: linear-gradient(135deg, #000040, #0040a0); color: #c0e0ff; }
.badge-800  { background: linear-gradient(135deg, #202020, #505050); color: #ffe89a; }
.badge-note { background: linear-gradient(135deg, #400020, #a00060); color: #ffc0d5; }
.badge-cool { background: linear-gradient(135deg, #806000, #ffcc00); color: #402000; }
.badge-ie   { background: linear-gradient(135deg, #004080, #1084d0); color: #fff8dc; }
.badge-nn   { background: linear-gradient(135deg, #200040, #5b2090); color: #c0a0ff; }
.webring { position: fixed; left: 10px; bottom: 250px; z-index: 25;
  background: linear-gradient(180deg, #000080, #1084d0); border: 2px outset #c0c0c0;
  padding: 5px 10px; font: bold 11px "Courier New", monospace; color: #ffe89a;
  box-shadow: 0 0 0 1px rgba(255,232,154,.5), 0 0 14px rgba(255,232,154,.35);
  text-shadow: 0 0 6px rgba(255,232,154,.7); opacity: 0; transition: opacity .5s .8s; }
body[data-stage="intro"] .webring, body[data-stage="lasers"] .webring,
body[data-stage="rave"] .webring, body[data-stage="glitch"] .webring { opacity: 1; }
.webring a { color: #fff8dc; text-decoration: underline; cursor: pointer; }
.webring a:hover { color: #ffd700; text-shadow: 0 0 10px #ffd700; }
.midi-player { position: fixed; left: 10px; bottom: 320px; z-index: 25; width: 180px;
  background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  border: 2px outset #c0c0c0; padding: 4px;
  font: bold 9px "MS Sans Serif", Arial; color: #000;
  box-shadow: 0 0 0 1px rgba(255,232,154,.7), 0 0 0 2px #8b6914, 0 0 16px rgba(255,232,154,.35), 2px 2px 0 #000;
  opacity: 0; transition: opacity .5s .95s; }
body[data-stage="intro"] .midi-player, body[data-stage="lasers"] .midi-player,
body[data-stage="rave"] .midi-player, body[data-stage="glitch"] .midi-player { opacity: 1; }
.midi-player .title { background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  color: #fff8dc; padding: 2px 4px; font-size: 10px;
  display: flex; justify-content: space-between; align-items: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.5), 0 0 6px rgba(255,232,154,.4); }
.midi-player .title .x { background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  color: #000; width: 12px; height: 12px; line-height: 10px; text-align: center;
  border: 1px outset #c0c0c0; font: bold 10px "MS Sans Serif"; }
.midi-player .bar-area { height: 20px; background: #000; border: 2px inset #c0c0c0;
  margin: 3px 0; overflow: hidden; position: relative; box-shadow: inset 0 0 8px rgba(0,255,0,.2); }
.midi-player .bar-move { position: absolute; top: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, #00ff00, #ffe89a); box-shadow: 0 0 8px rgba(255,232,154,.7);
  animation: midiBar 3.2s linear infinite; }
@keyframes midiBar { from{left:-25px;} to{left:100%;} }
.midi-player .keys { display: flex; gap: 1px; }
.midi-player .key { flex: 1; height: 12px; background: #fff; border: 1px solid #000; }
.midi-player .key.sharp { background: #000; }
.baby { position: fixed; bottom: 130px; right: 400px; z-index: 25; font-size: 38px;
  pointer-events: none; filter: drop-shadow(0 0 12px rgba(255,232,154,.9));
  animation: babyDance 1.2s steps(2,end) infinite alternate; opacity: 0; transition: opacity .5s .6s; }
body[data-stage="intro"] .baby, body[data-stage="lasers"] .baby,
body[data-stage="rave"] .baby, body[data-stage="glitch"] .baby { opacity: 1; }
@keyframes babyDance { 0%{transform:rotate(-14deg) scale(1);} 100%{transform:rotate(14deg) scale(1.18);} }
.mailme { position: fixed; top: 200px; left: 30px; z-index: 25; font-size: 30px;
  cursor: pointer; pointer-events: auto; filter: drop-shadow(0 0 12px rgba(255,232,154,.9));
  animation: mailBounce 1.6s steps(3,end) infinite; opacity: 0; transition: opacity .5s .7s; }
body[data-stage="intro"] .mailme, body[data-stage="lasers"] .mailme,
body[data-stage="rave"] .mailme, body[data-stage="glitch"] .mailme { opacity: 1; }
@keyframes mailBounce { 0%,100%{transform:translateY(0) rotate(-8deg);} 50%{transform:translateY(-22px) rotate(8deg);} }
.y2k { position: fixed; top: 200px; right: 30px; z-index: 25;
  background: linear-gradient(180deg, #000, #0a1a0a); border: 2px inset #c0c0c0;
  padding: 5px 10px; font: bold 12px "Courier New", monospace; color: #c9ffc9;
  box-shadow: 0 0 0 1px rgba(255,232,154,.6), 0 0 16px rgba(0,255,0,.3), inset 0 0 10px rgba(0,255,0,.15);
  text-shadow: 0 0 8px rgba(0,255,0,.7); opacity: 0; transition: opacity .5s .85s; }
body[data-stage="intro"] .y2k, body[data-stage="lasers"] .y2k,
body[data-stage="rave"] .y2k, body[data-stage="glitch"] .y2k { opacity: 1; }
.y2k small { color: #ffe89a; font-size: 9px; display: block; letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,232,154,.8); }
.banner-ad { position: fixed; bottom: 400px; left: 50%; transform: translateX(-50%); z-index: 25;
  width: 468px; height: 60px; max-width: 90vw;
  background: linear-gradient(135deg, #ff0000, #d4af37, #00ff88, #00ccff, #ff0000);
  background-size: 400% 400%; border: 2px solid #ffe89a;
  display: flex; align-items: center; justify-content: center;
  font: bold 16px "Times New Roman", serif; color: #fff8dc;
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255,232,154,.8); cursor: pointer;
  box-shadow: 0 0 0 2px #8b6914, 0 0 24px rgba(255,232,154,.7), inset 0 0 20px rgba(0,0,0,.5);
  animation: bannerShift 3s linear infinite, blinkBlk 1.5s steps(1,end) infinite;
  opacity: 0; transition: opacity .5s .55s; }
body[data-stage="intro"] .banner-ad, body[data-stage="lasers"] .banner-ad,
body[data-stage="rave"] .banner-ad, body[data-stage="glitch"] .banner-ad { opacity: 1; }
@keyframes bannerShift { 0%{background-position:0% 50%;} 100%{background-position:400% 50%;} }
.cursor-star { position: fixed; pointer-events: none; z-index: 250; font-size: 14px;
  transform: translate(-50%,-50%); animation: cursorStarFade .7s steps(4,end) forwards;
  filter: drop-shadow(0 0 6px currentColor); }
@keyframes cursorStarFade {
  from { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0); }
  to { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(180deg); }
}
.under-construction { position: fixed; bottom: 400px; left: 50%;
  transform: translateX(-50%) translateX(-240px); z-index: 20;
  background: repeating-linear-gradient(45deg,#000,#000 10px,#ffcc00 10px,#ffcc00 20px);
  color: #fff; padding: 5px 16px; font: bold 14px "Times New Roman", serif;
  border: 2px solid #d4af37; text-shadow: 2px 2px 0 #000, 0 0 8px rgba(255,232,154,.7);
  box-shadow: 0 0 0 1px rgba(255,232,154,.6), 0 0 22px rgba(255,204,0,.6);
  animation: blinkBlk .8s steps(1,end) infinite;
  opacity: 0; transition: opacity .5s .7s; pointer-events: none; }
body[data-stage="intro"] .under-construction, body[data-stage="lasers"] .under-construction,
body[data-stage="rave"] .under-construction, body[data-stage="glitch"] .under-construction { opacity: 1; }
.subscribe { position: fixed; bottom: 460px; right: 14px; z-index: 19;
  background: linear-gradient(180deg, #fff8dc, #d4af37); color: #5a1010;
  font: bold 13px "Comic Sans MS", cursive; padding: 8px 12px;
  border: 2px solid #8b6914; text-align: center;
  box-shadow: 0 0 0 1px #ffe89a, 0 0 22px rgba(255,232,154,.8), 0 6px 20px rgba(0,0,0,.5);
  text-shadow: 0 1px 0 rgba(255,248,220,.8);
  animation: shakeBtn .5s steps(2,end) infinite alternate;
  opacity: 0; transition: opacity .5s .6s; }
body[data-stage="intro"] .subscribe, body[data-stage="lasers"] .subscribe,
body[data-stage="rave"] .subscribe, body[data-stage="glitch"] .subscribe { opacity: 1; }
.subscribe .big { display: block; font-size: 16px; }
@keyframes shakeBtn { from{transform:rotate(-6deg) scale(1);} to{transform:rotate(6deg) scale(1.08);} }
.guestbook { position: fixed; bottom: 400px; left: 12px; z-index: 20;
  background: linear-gradient(180deg, #fffbd0, #ffe89a); color: #000080;
  font: 12px "Comic Sans MS", cursive; padding: 8px 10px;
  border: 2px solid #8b6914; max-width: 210px;
  box-shadow: 0 0 0 1px #ffe89a, 0 0 20px rgba(255,232,154,.6), inset 0 0 12px rgba(212,175,55,.2);
  opacity: 0; transition: opacity .5s .4s; pointer-events: none; }
body[data-stage="intro"] .guestbook, body[data-stage="lasers"] .guestbook,
body[data-stage="rave"] .guestbook, body[data-stage="glitch"] .guestbook { opacity: 1; }
.guestbook h4 { margin: 0 0 4px; color: #c00000; font-size: 12px; text-shadow: 0 0 6px rgba(192,0,0,.4); }
.guestbook .sig { color: #666; font-style: italic; }
.popup {
  position: fixed; z-index: 50; width: 300px;
  background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  color: #000;
  font: bold 12px "MS Sans Serif", Arial;
  border: 2px outset #c0c0c0;
  box-shadow:
    0 0 0 1px rgba(255,232,154,.85),
    0 0 0 2px #8b6914,
    0 0 32px rgba(255,232,154,.55),
    0 12px 40px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,248,220,.5);
  animation: popupIn .3s steps(4,end);
  transition: left .25s cubic-bezier(.34,1.56,.64,1), top .25s cubic-bezier(.34,1.56,.64,1);
  user-select: none;
}
.popup.hovering { cursor: pointer; }
.popup.jitter {
  animation: popupIn .3s steps(4,end), popupJitter .35s steps(4,end) infinite;
}
@keyframes popupJitter {
  0% { transform: translate(0,0) rotate(0); }
  25% { transform: translate(-4px,2px) rotate(-1deg); }
  50% { transform: translate(3px,-3px) rotate(1deg); }
  75% { transform: translate(-2px,-1px) rotate(-0.5deg); }
  100% { transform: translate(0,0) rotate(0); }
}
.popup.raged { animation: popupIn .3s steps(4,end), popupRage .15s steps(3,end) infinite; }
@keyframes popupRage {
  0% { transform: translate(-3px,2px) rotate(-3deg) scale(1.03); }
  50% { transform: translate(4px,-2px) rotate(3deg) scale(.97); }
  100% { transform: translate(-2px,3px) rotate(-2deg) scale(1.02); }
}
.popup .ptitle {
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  color: #fff;
  padding: 3px 6px; font-size: 11px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.6), 0 0 8px rgba(255,232,154,.4);
  border-bottom: 1px solid #8b6914;
}
.popup .ptitle .x {
  background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  color: #000; width: 14px; height: 14px;
  line-height: 11px; text-align: center;
  border: 1px outset #c0c0c0;
  font: bold 10px "MS Sans Serif"; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,232,154,.5);
  transition: all .1s;
}
.popup .ptitle .x:hover {
  background: linear-gradient(180deg, #ff3a5a, #8b0020);
  color: #fff;
  box-shadow: 0 0 0 1px #ffe89a, 0 0 10px rgba(255,45,85,.9);
}
.popup .pbody { padding: 16px 14px 10px; text-align: center; }
.popup .big {
  display: block; font-size: 16px; color: #c00000;
  margin: 6px 0; font-weight: 700;
  text-shadow: 0 0 8px rgba(192,0,0,.4), 0 1px 0 rgba(255,248,220,.8);
  transition: all .2s;
}
.popup .big.changed {
  color: #008000;
  text-shadow: 0 0 10px rgba(0,200,0,.6), 0 1px 0 rgba(255,248,220,.8);
}
.popup .pbtns { display: flex; justify-content: center; gap: 8px; padding: 0 14px 14px; }
.popup button {
  background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  color: #000;
  font: bold 11px "MS Sans Serif", Arial;
  padding: 6px 16px;
  border: 2px outset #c0c0c0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,232,154,.55);
  transition: all .12s;
  position: relative;
  overflow: hidden;
}
.popup button:hover {
  background: linear-gradient(180deg, #fff8dc, #d4af37);
  box-shadow: 0 0 0 1px #ffe89a, 0 0 14px rgba(255,232,154,.9);
  transform: translateY(-1px);
}
.popup button:active {
  border: 2px inset #c0c0c0;
  transform: translateY(1px);
}
@keyframes popupIn { from{transform:scale(.5);opacity:0;} to{transform:scale(1);opacity:1;} }
.fake-progress {
  position: fixed; z-index: 250;
  background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  border: 2px outset #c0c0c0;
  padding: 12px 14px;
  font: bold 11px "MS Sans Serif", Arial;
  box-shadow: 0 0 0 1px #ffe89a, 0 0 0 2px #8b6914, 0 0 24px rgba(255,232,154,.6), 4px 4px 0 #000;
  width: 320px;
  animation: popupIn .25s ease-out;
}
.fake-progress .ptxt { margin-bottom: 6px; color: #000080; }
.fake-progress .pbar-wrap {
  height: 22px; background: #fff;
  border: 2px inset #c0c0c0; overflow: hidden;
  position: relative;
}
.fake-progress .pbar-fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, #000080 0 10px, #1084d0 10px 20px);
  transition: width .2s linear;
}
.combo-display {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 400;
  font: 900 60px Impact, "Arial Black", sans-serif;
  letter-spacing: 4px;
  color: #ffe89a;
  -webkit-text-stroke: 3px #000;
  text-shadow: 0 0 30px #ffd700, 0 0 60px #ff2d55, 0 4px 0 #000;
  pointer-events: none;
  animation: comboPop 1.2s cubic-bezier(.2,1.6,.4,1) forwards;
  opacity: 0;
}
@keyframes comboPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-15deg); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(5deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4) rotate(0); }
}
.shard-container { position: fixed; inset: 0; z-index: 550; pointer-events: none; overflow: hidden; }
.shard {
  position: absolute;
  will-change: transform, opacity;
}
#fx { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.song-bar { position: fixed; left: 14px; right: 420px; bottom: 96px; height: 12px;
  z-index: 95; background: linear-gradient(180deg, #000, #1a1a1a);
  border: 2px inset #c0c0c0; pointer-events: none; opacity: 0; transition: opacity .6s;
  box-shadow: 0 0 0 1px rgba(255,232,154,.55), 0 0 12px rgba(255,232,154,.35), inset 0 0 10px rgba(0,0,0,.9); }
body[data-stage="intro"] .song-bar, body[data-stage="lasers"] .song-bar,
body[data-stage="rave"] .song-bar, body[data-stage="glitch"] .song-bar { opacity: 1; }
.song-bar-fill { height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, #000080 0 8px, #1084d0 8px 16px, #ffe89a 16px 18px);
  box-shadow: 0 0 8px rgba(255,232,154,.6); }
.song-bar-sections { position: fixed; left: 14px; right: 420px; bottom: 110px;
  height: 4px; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .6s; }
body[data-stage="intro"] .song-bar-sections, body[data-stage="lasers"] .song-bar-sections,
body[data-stage="rave"] .song-bar-sections, body[data-stage="glitch"] .song-bar-sections { opacity: .85; }
.song-marker { position: absolute; top: 0; width: 2px; height: 100%; background: #d4af37; box-shadow: 0 0 4px #ffe89a; }
.hud { position: fixed; z-index: 150; left: 14px; bottom: 46px;
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: linear-gradient(180deg, var(--silver-1) 0%, var(--silver-2) 45%, #b8b8b8 55%, var(--silver-3) 100%);
  border: 2px outset #c0c0c0; font: 11px "MS Sans Serif", Arial;
  flex-wrap: wrap; max-width: calc(100vw - 420px);
  box-shadow: 0 0 0 1px rgba(255,232,154,.85), 0 0 0 2px #8b6914,
    0 0 30px rgba(255,232,154,.45), 0 0 60px rgba(212,175,55,.25),
    3px 3px 0 #000, inset 0 1px 0 rgba(255,248,220,.7), inset 0 -1px 0 rgba(80,80,80,.5); }
@media (max-width: 900px) { .hud { max-width: calc(100vw - 28px); } }
.hud::after {
  content: ''; position: absolute; inset: -4px; pointer-events: none;
  background:
    linear-gradient(135deg, #ffe89a 0 8px, transparent 8px) top left,
    linear-gradient(225deg, #ffe89a 0 8px, transparent 8px) top right,
    linear-gradient(45deg, #ffe89a 0 8px, transparent 8px) bottom left,
    linear-gradient(315deg, #ffe89a 0 8px, transparent 8px) bottom right;
  background-size: 12px 12px; background-repeat: no-repeat;
  filter: drop-shadow(0 0 4px rgba(255,232,154,.9));
}
.hud > * { position: relative; z-index: 1; }
.hud button { background: linear-gradient(180deg, #e8e8e8 0%, #c8c8c8 50%, #a8a8a8 100%);
  color: #000; border: 2px outset #c0c0c0; padding: 5px 12px; cursor: pointer;
  font: bold 11px "MS Sans Serif", Arial; box-shadow: 0 0 0 1px rgba(255,232,154,.55);
  transition: all .14s; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.hud button:hover { background: linear-gradient(180deg, #fff8dc 0%, #ffe89a 50%, #d4af37 100%);
  box-shadow: 0 0 0 1px #ffe89a, 0 0 0 2px #8b6914, 0 0 16px rgba(255,232,154,.9), 0 0 30px rgba(212,175,55,.6);
  color: #3a2a00; }
.hud button:active { border: 2px inset #c0c0c0; transform: translateY(1px); }
.hud label { display: flex; align-items: center; gap: 6px; color: #000;
  font-size: 11px; text-transform: uppercase; font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.hud input[type=range] { -webkit-appearance: none; appearance: none;
  width: 100px; height: 20px; background: transparent; cursor: pointer; }
.hud input[type=range]::-webkit-slider-runnable-track {
  height: 5px; background: linear-gradient(180deg, #707070, #a0a0a0);
  border: 1px inset #c0c0c0; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); }
.hud input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 12px; height: 20px;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #ffe89a 40%, #d4af37 75%, #8b6914);
  border: 1px outset #ffe89a; margin-top: -8px; cursor: grab;
  box-shadow: 0 0 0 1px #8b6914, 0 0 10px rgba(255,232,154,.8); }
.hud input[type=range]::-webkit-slider-thumb:active {
  cursor: grabbing; box-shadow: 0 0 0 1px #8b6914, 0 0 20px rgba(255,232,154,1); }
.hud input[type=range]::-moz-range-track { height: 5px; background: linear-gradient(180deg, #707070, #a0a0a0); border: 1px inset #c0c0c0; }
.hud input[type=range]::-moz-range-thumb {
  width: 12px; height: 20px;
  background: radial-gradient(circle at 35% 30%, #fff8dc, #ffe89a 40%, #d4af37 75%, #8b6914);
  border: 1px outset #ffe89a; border-radius: 0;
  box-shadow: 0 0 0 1px #8b6914, 0 0 10px rgba(255,232,154,.8); }
.mood-label { color: #000080; font-weight: 700; min-width: 80px; font-size: 10px; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.section-label { color: #6a006a; font-weight: 700; min-width: 80px; font-size: 10px; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.stage-label { color: #800000; font-weight: 700; min-width: 58px; font-size: 10px; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.ugar-btn { background: linear-gradient(180deg, #ff3a5a, #8b0020) !important;
  color: #fff8dc !important; font-weight: 900 !important; letter-spacing: 1.5px;
  border: 2px outset #c0c0c0 !important;
  box-shadow: 0 0 0 1px #ffe89a, 0 0 18px rgba(255,45,85,.9), inset 0 1px 0 rgba(255,248,220,.4) !important;
  text-shadow: 0 0 8px rgba(255,232,154,.9) !important; }
.ugar-btn:hover { box-shadow: 0 0 0 1px #ffe89a, 0 0 0 2px #8b6914, 0 0 32px rgba(255,45,85,1), 0 0 60px rgba(255,232,154,.7), inset 0 1px 0 rgba(255,248,220,.6) !important; }
.ugar-btn.active { animation: ugarPulse .5s steps(2,end) infinite alternate; }
@keyframes ugarPulse {
  from { background: linear-gradient(180deg, #ff3a5a, #8b0020) !important; color: #fff8dc !important;
    box-shadow: 0 0 0 1px #ffe89a, 0 0 18px rgba(255,45,85,.9), inset 0 1px 0 rgba(255,248,220,.4) !important; }
  to { background: linear-gradient(180deg, #fff8dc, #d4af37) !important; color: #8b0020 !important;
    box-shadow: 0 0 0 1px #8b6914, 0 0 32px rgba(255,232,154,1), inset 0 1px 0 rgba(255,255,255,.8) !important; }
}
.start-overlay { position: fixed; inset: 0; z-index: 300;
  background: radial-gradient(ellipse at 50% 40%, #008080 0%, #004040 55%, #001818 100%);
  display: flex; align-items: center; justify-content: center; }
.start-overlay.hidden { opacity: 0; pointer-events: none; }
.start-card { position: relative; max-width: 620px; width: 90vw;
  background: linear-gradient(180deg, var(--silver-1) 0%, var(--silver-2) 45%, #b8b8b8 55%, var(--silver-3) 100%);
  border: 2px outset #c0c0c0; font-family: "MS Sans Serif", Arial;
  box-shadow: 0 0 0 1px rgba(255,232,154,.9), 0 0 0 3px #8b6914,
    0 0 60px rgba(255,232,154,.6), 0 0 120px rgba(212,175,55,.35),
    6px 6px 0 #000, inset 0 1px 0 rgba(255,248,220,.7); }
.start-card .stitle { background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  color: #fff; font-weight: 700; font-size: 13px; padding: 4px 8px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #8b6914;
  text-shadow: 0 1px 1px rgba(0,0,0,.6), 0 0 8px rgba(255,232,154,.4);
  box-shadow: inset 0 1px 0 rgba(255,248,220,.3); }
.start-card .stitle .btns { display: flex; gap: 3px; }
.start-card .stitle .b { background: linear-gradient(180deg, var(--silver-1), var(--silver-2));
  color: #000; width: 18px; height: 16px; line-height: 13px; text-align: center;
  border: 2px outset #c0c0c0; font: bold 10px "MS Sans Serif"; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,232,154,.5); }
.start-card .sbody { padding: 24px 28px; }
.start-card h1 { font: 900 28px "Times New Roman", serif; text-align: center; letter-spacing: 3px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff8dc, #ffe89a 40%, #d4af37 70%, #8b6914 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    0 0 30px rgba(255,232,154,.9), 0 0 60px rgba(212,175,55,.6);
  filter: drop-shadow(0 0 20px rgba(255,232,154,.5)); }
.start-card p { color: #000; font-size: 12px; line-height: 1.55; margin-bottom: 16px; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.start-card p b { color: #8b0000; text-shadow: 0 0 6px rgba(192,0,0,.4); }
.start-card .warn { color: #5a0000; background: linear-gradient(180deg, #fff8dc, #ffe8b0);
  border: 2px inset #c0c0c0; padding: 10px 14px; font-size: 11px; line-height: 1.45;
  margin-bottom: 20px; box-shadow: inset 0 0 12px rgba(212,175,55,.25); }
.start-card .btns-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.start-card button { background: linear-gradient(180deg, #e8e8e8 0%, #c8c8c8 50%, #a8a8a8 100%);
  color: #000; border: 2px outset #c0c0c0; padding: 10px 24px;
  font: bold 12px "MS Sans Serif", Arial; cursor: pointer; min-width: 140px;
  box-shadow: 0 0 0 1px rgba(255,232,154,.7); transition: all .14s;
  text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.start-card button:hover { background: linear-gradient(180deg, #fff8dc 0%, #ffe89a 50%, #d4af37 100%);
  color: #3a2a00; box-shadow: 0 0 0 1px #ffe89a, 0 0 0 2px #8b6914, 0 0 24px rgba(255,232,154,.95), 0 0 50px rgba(212,175,55,.7);
  transform: scale(1.03); }
.start-card button:active { border: 2px inset #c0c0c0; transform: scale(.98); }
.start-card button.ugar { background: linear-gradient(180deg, #ff3a5a, #8b0020); color: #fff8dc;
  box-shadow: 0 0 0 1px #ffe89a, 0 0 22px rgba(255,45,85,.9), inset 0 1px 0 rgba(255,248,220,.3);
  text-shadow: 0 0 8px rgba(255,232,154,.9); }
.start-card button.ugar:hover { background: linear-gradient(180deg, #fff8dc, #d4af37); color: #8b0020;
  box-shadow: 0 0 0 1px #8b6914, 0 0 30px rgba(255,45,85,1), 0 0 60px rgba(255,232,154,.8);
  text-shadow: none; }
.hotkeys { text-align: center; font-size: 11px; color: #404040; margin-top: 12px; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.hotkeys kbd { background: linear-gradient(180deg, #fff, #e0e0e0);
  border: 1px outset #c0c0c0; padding: 2px 7px;
  font: bold 10px "MS Sans Serif"; margin: 0 3px;
  box-shadow: 0 0 0 1px rgba(255,232,154,.5); color: #000; }