/* MALMSTEEN — Neon Baroque UI */
:root {
  --void: #07040c; --ink: #140a1f; --night: #1e1030; --plum: #2e1747; --grape: #46206a; --purple: #6a2fa0;
  --violet: #9b4dff; --lilac: #cfa1ff; --wine: #3d0a1a; --velvet: #6e1230; --crimson: #a8183a; --red: #e0283f;
  --scarlet: #ff5266; --gold: #d9a020; --bright: #ffd34d; --cream: #fff3c4; --cyan: #2ee6e6; --teal: #13606e;
  --text: #f3e9ff; --dim: #a28fc0;
  --px: "Press Start 2P", monospace; --vt: "VT323", monospace;
  --mood-primary: #d9a020;
  --mood-accent: #a8183a;
  --mood-glow: rgba(217, 160, 32, 0.22);
  --mood-tint: rgba(217, 160, 32, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body {
  background: radial-gradient(ellipse at 50% 40%, #241038 0%, #0b0512 55%, #000 100%);
  color: var(--text); font-family: var(--vt); font-size: 20px; user-select: none; -webkit-user-select: none;
}
canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }

#stage { position: fixed; inset: 0; display: grid; place-items: center; }
#monitor {
  position: relative; width: 1280px; height: 720px; flex: none; transform-origin: center center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--mood-glow), transparent 60%),
    linear-gradient(180deg, #120a1c 0%, #0b0612 100%);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 3px #000, 0 0 0 10px #1a1222, 0 0 0 12px #2e2238, 0 30px 80px rgba(0, 0, 0, .8), 0 0 120px var(--mood-glow);
  transition: box-shadow 1.2s ease;
}
#harmonic-mood-wash {
  position: absolute; inset: 0; pointer-events: none; z-index: 45;
  background: radial-gradient(ellipse at 50% 40%, var(--mood-tint) 0%, transparent 75%);
  mix-blend-mode: screen;
  transition: background 1.2s ease, opacity 0.6s ease;
}
.crt { position: absolute; inset: 0; pointer-events: none; z-index: 100;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, .55) 100%);
  animation: flicker 6s infinite steps(1);
}
@keyframes flicker { 0%, 100% { opacity: 1 } 47% { opacity: .92 } 48% { opacity: 1 } 73% { opacity: .96 } }

/* ---------- HUD ---------- */
#hud { height: 62px; display: grid; grid-template-columns: 1.05fr 1.25fr 1fr auto; gap: 10px; padding: 10px 12px 6px; }
.ticker {
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(180deg, #1e1030, #140a1f);
  box-shadow: inset 0 0 0 2px #000, inset 0 0 0 4px var(--grape), inset 0 2px 0 4px rgba(207, 161, 255, .12);
  border-radius: 4px; position: relative;
}
.ticker .tv { display: flex; flex-direction: column; line-height: 1; }
.ticker label { font-family: var(--px); font-size: 8px; color: var(--dim); letter-spacing: 1px; margin-bottom: 4px; }
.ticker b { font-family: var(--px); font-size: 15px; color: var(--cream); text-shadow: 2px 2px 0 #000; font-weight: normal; white-space: nowrap; }
.ticker small { font-size: 18px; color: var(--dim); }
.t-chops b { color: var(--bright); }
.t-cash b { color: #7dffa8; }
.t-cash #rps-val { color: #7dffa8; margin-left: auto; }
.t-fame b { color: var(--lilac); }
.t-fame b small { font-family: var(--vt); font-size: 18px; color: var(--bright); }
.fame-meter { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fame-meter small { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 8px; background: #07040c; box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--grape); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--bright)); transition: width .3s; }
#speedo { width: 80px; height: 44px; }
#hud-spectrum { width: 66px; height: 33px; background: #09040f; border: 1px solid var(--grape); border-radius: 2px; box-shadow: inset 0 0 6px rgba(0,0,0,0.9); vertical-align: middle; }
.badge { font-family: var(--px); font-size: 8px; padding: 4px 6px; background: var(--red); color: #fff; box-shadow: 0 0 12px var(--red); animation: pulse .5s infinite alternate; }
.fever-badge { background: linear-gradient(90deg, #d9a020, #ffd34d); color: #07040c; font-weight: bold; box-shadow: 0 0 16px rgba(255, 211, 77, 0.9); }
.frenzy-badge { background: linear-gradient(90deg, #ff2840, #ffd34d); color: #fff; font-weight: bold; box-shadow: 0 0 20px rgba(255, 40, 64, 0.9); animation: pulse .35s infinite alternate; }

/* ---------- GOLDEN PLECTRUM SPAWN ---------- */
.golden-pick-spawn {
  position: absolute; width: 44px; height: 44px; cursor: pointer; z-index: 55;
  display: flex; align-items: center; justify-content: center;
  animation: pickFloat 2.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px rgba(255, 211, 77, 0.95)) drop-shadow(0 0 24px rgba(255, 40, 64, 0.7));
  transition: transform 0.12s;
}
.golden-pick-spawn:hover {
  transform: scale(1.3); filter: drop-shadow(0 0 22px #ffd34d) brightness(1.3);
}
.plectrum-art {
  width: 34px; height: 38px; font-family: var(--px); font-size: 15px; color: #fff;
  background: linear-gradient(180deg, #ffe066 0%, #d9a020 50%, #996e10 100%);
  clip-path: polygon(50% 100%, 0% 15%, 15% 0%, 85% 0%, 100% 15%);
  display: flex; align-items: center; justify-content: center;
  border-top: 2px solid #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,0.8);
  text-shadow: 0 0 6px #fff, 1px 1px 0 #000;
}
@keyframes pickFloat {
  0% { transform: translateY(0px) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
  100% { transform: translateY(4px) rotate(-4deg); }
}
.sys { display: flex; gap: 6px; align-items: center; }
.sysbtn {
  width: 38px; height: 38px; font-family: var(--px); font-size: 11px; color: var(--lilac);
  background: linear-gradient(180deg, #2e1747, #1e1030);
  box-shadow: inset 2px 2px 0 rgba(207, 161, 255, .25), inset -2px -2px 0 #07040c, 0 0 0 2px #000;
}
.sysbtn:hover { color: #fff; filter: brightness(1.3); }
.sysbtn.off { opacity: .4; text-decoration: line-through; }
.ico { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- MAIN ---------- */
#main { height: 552px; display: grid; grid-template-columns: 272px 728px 1fr; gap: 10px; padding: 4px 12px 0; }
.panel {
  position: relative; padding: 10px 8px 8px;
  background: linear-gradient(180deg, #170c24, #0f0818);
  box-shadow: inset 0 0 0 2px #000, inset 0 0 0 4px var(--plum), inset 0 0 30px rgba(0, 0, 0, .6);
  border-radius: 4px; overflow: hidden;
}
.ptitle {
  font-family: var(--px); font-size: 10px; letter-spacing: 2px; text-align: center; color: var(--bright);
  text-shadow: 2px 2px 0 var(--velvet); margin: 2px 0 8px; font-weight: normal;
}
.portrait-frame {
  width: 256px; height: 256px; margin: 0 auto; cursor: pointer; position: relative;
  box-shadow: 0 0 0 2px #000, 0 0 0 5px var(--gold), 0 0 0 7px #000, 0 0 24px rgba(217, 160, 32, .25);
  transition: transform .06s;
}
.portrait-frame:active { transform: scale(.98); }
.maestro-speech {
  position: absolute; top: -14px; left: 50%; transform: translate(-50%, -100%);
  background: linear-gradient(180deg, #fff3c4, #ffd34d); color: #07040c;
  font-family: var(--px); font-size: 8px; line-height: 1.3; text-align: center;
  padding: 7px 12px; border-radius: 4px; box-shadow: 0 4px 16px rgba(0, 0, 0, .8), 0 0 0 2px #07040c, 0 0 12px rgba(255, 211, 77, 0.5);
  pointer-events: auto; cursor: pointer; white-space: normal; max-width: 250px; z-index: 10;
  animation: speechPop .2s cubic-bezier(.2, 1.4, .4, 1);
  transition: transform .1s, box-shadow .1s;
}
.maestro-speech:hover {
  transform: translate(-50%, -102%) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .9), 0 0 0 2px #fff, 0 0 16px rgba(255, 211, 77, 0.8);
}
.maestro-speech:active {
  transform: translate(-50%, -99%) scale(0.97);
}
.maestro-speech::after {
  content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  border-width: 6px 6px 0; border-style: solid; border-color: #ffd34d transparent transparent;
  display: block; width: 0;
}
@keyframes speechPop {
  from { transform: translate(-50%, -80%) scale(0.6); opacity: 0; }
  to { transform: translate(-50%, -100%) scale(1); opacity: 1; }
}
#portrait { width: 256px; height: 256px; }
#shredder-title { text-align: center; font-family: var(--px); font-size: 10px; color: var(--lilac); margin: 14px 0 8px; text-shadow: 2px 2px 0 #000; }
#shredder-stats { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; padding: 0 8px; font-size: 19px; line-height: 1.12; }
#shredder-stats dt { color: var(--dim); }
#shredder-stats dd { color: var(--cream); text-align: right; }
#shredder-stats dd .meter { display: inline-block; width: 60px; height: 6px; background: #07040c; vertical-align: middle; margin-left: 6px; box-shadow: 0 0 0 1px var(--grape); }
#shredder-stats dd .meter i { display: block; height: 100%; background: var(--bright); }

/* ---------- CENTER ---------- */
#center { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#coach {
  height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 21px; color: var(--cream);
  background: linear-gradient(90deg, rgba(224, 40, 63, .35), rgba(155, 77, 255, .18) 60%, transparent);
  box-shadow: inset 3px 0 0 var(--red); border-radius: 2px;
}
#coach .arrow { color: var(--bright); animation: nudge .6s infinite alternate; font-size: 14px; }
#coach b { color: var(--bright); font-weight: normal; }
@keyframes nudge { to { transform: translateX(4px); } }
#rooms { position: relative; display: grid; grid-template-columns: 360px 360px; gap: 8px; height: 392px; }
.room { position: relative; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--plum); background: #07040c; }
.room canvas { width: 360px; height: 392px; }
.room.shake { animation: shake .3s; }
@keyframes shake { 20% { transform: translate(-3px, 2px) } 40% { transform: translate(3px, -2px) } 60% { transform: translate(-2px, 1px) } 80% { transform: translate(2px, 0) } }
.room-label { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: baseline; pointer-events: none; z-index: 2; }
.room-label span { font-family: var(--px); font-size: 10px; color: var(--bright); text-shadow: 2px 2px 0 #000; }
.room-label em { font-style: normal; font-size: 19px; color: var(--lilac); text-shadow: 2px 2px 0 #000; }
.estate-nav {
  position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 3;
  display: flex; justify-content: center; gap: 5px; pointer-events: auto;
}
.estate-nav:empty { display: none; }
.estate-tab {
  min-width: 86px; padding: 5px 8px 4px; border: 1px solid #5a387a;
  background: rgba(7, 4, 12, .9); color: var(--cream); font: 8px var(--px);
  letter-spacing: .04em; text-transform: uppercase; box-shadow: 2px 2px 0 #000;
}
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.reduced-motion .crt, .reduced-motion #fx-layer, .reduced-motion #fury-overlay { display: none !important; }
[data-motion][aria-pressed="true"] { outline: 2px solid var(--bright); }
button:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.estate-tab:hover, .estate-tab:focus-visible { color: var(--bright); border-color: var(--bright); outline: 1px solid var(--cream); outline-offset: 2px; }
.estate-tab[aria-selected="true"] { color: #07040c; background: var(--bright); border-color: var(--cream); }
.lounge-program { position: absolute; top: 38px; left: 10px; right: 10px; z-index: 3; padding: 6px; background: rgba(7, 4, 12, .9); border: 1px solid var(--gold); box-shadow: 2px 2px 0 #000; }
.lounge-program-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font: 7px var(--px); color: var(--bright); }
.lounge-program-head small { font: 6px var(--px); color: var(--dim); }
.lounge-program-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.lounge-program-btn { padding: 5px 3px 4px; background: #1b0d2a; border: 1px solid var(--grape); color: var(--cream); font: 7px var(--px); }
.lounge-program-btn small { display: block; margin-top: 3px; color: var(--dim); font: 6px var(--px); }
.lounge-program-btn:hover:not(:disabled), .lounge-program-btn:focus-visible { border-color: var(--bright); color: var(--bright); outline: 1px solid var(--cream); }
.lounge-program-btn[aria-pressed="true"] { background: linear-gradient(180deg, #ffd34d, #d9a020); border-color: #fff; color: #07040c; }
.lounge-program-btn[aria-pressed="true"] small { color: #3c2500; }
.lounge-program-btn:disabled:not([aria-pressed="true"]) { opacity: .35; cursor: not-allowed; }
.title-muted {
  margin-top: 7px; border: 0; background: transparent; color: var(--lilac);
  font: 9px var(--px); text-decoration: underline; text-underline-offset: 3px;
}
.title-muted:hover, .title-muted:focus-visible { color: var(--bright); outline: 1px solid var(--bright); outline-offset: 3px; }

/* ---------- CONCERT PROSCENIUM STAGE (MINIGAME) ---------- */
#minigame {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  background: radial-gradient(circle at 50% 10%, #1c0e2a, #07040c 90%);
  box-shadow: 0 -4px 0 #000, 0 -6px 0 var(--gold), 0 -14px 45px rgba(217, 160, 32, 0.45);
  animation: slideUp .25s cubic-bezier(.2, 1.4, .4, 1);
  border-top: 2px solid #ffe066;
}
.mg-stage-frame { display: flex; flex-direction: column; width: 100%; }
.mg-proscenium-arch {
  background: linear-gradient(180deg, #2a1640 0%, #150a22 100%);
  border-bottom: 2px solid #5a387a;
  padding: 4px 8px 3px;
  box-shadow: inset 0 1px 0 rgba(255, 215, 60, 0.4);
}
.mg-arch-crest {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 6px 4px;
}
.mg-arch-badge {
  font-family: var(--px); font-size: 8px; color: #ffd34d; letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 211, 77, 0.7), 1px 1px 0 #000;
}
.mg-deck-badge {
  font-family: var(--px); font-size: 8px; color: #ff758c; letter-spacing: 0.5px;
  padding: 2px 6px; background: rgba(70, 20, 40, 0.8); border: 1px solid #ff2840;
  border-radius: 2px; text-shadow: 0 0 6px rgba(255, 40, 64, 0.6);
}
.mg-arena-row {
  display: flex; align-items: stretch; justify-content: center;
  background: #000; position: relative;
}
.mg-amp-tower {
  width: 44px; background: #130c1c; border: 2px solid #000;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 4px 2px; box-shadow: inset 0 0 6px #000;
}
.mg-tower-left { border-right: 2px solid var(--grape); }
.mg-tower-right { border-left: 2px solid var(--grape); }
.tower-head {
  font-family: var(--px); font-size: 5px; color: #ffd34d; letter-spacing: 0.5px;
  background: #000; padding: 2px 4px; border: 1px solid #ffd34d; border-radius: 1px;
}
.vu-stack {
  display: flex; flex-direction: column; gap: 3px; width: 14px;
  padding: 4px 2px; background: #07040c; border: 1px solid #2a1640; border-radius: 2px;
}
.vu-stack .led {
  width: 10px; height: 5px; border-radius: 1px; opacity: 0.25; transition: opacity 0.08s, box-shadow 0.08s;
}
.vu-stack .led.green { background: #38ef7d; }
.vu-stack .led.yellow { background: #ffd34d; }
.vu-stack .led.red { background: #ff2840; }
.vu-stack .led.lit { opacity: 1; }
.vu-stack .led.green.lit { box-shadow: 0 0 6px #38ef7d; }
.vu-stack .led.yellow.lit { box-shadow: 0 0 8px #ffd34d; }
.vu-stack .led.red.lit { box-shadow: 0 0 10px #ff2840; }

.mg-canvas-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.mg-footlight-wash {
  position: absolute; left: 0; right: 0; bottom: 22px; height: 50px; pointer-events: none; z-index: 4;
  background: linear-gradient(0deg, rgba(255, 211, 77, 0.24) 0%, rgba(255, 100, 30, 0.09) 40%, transparent 100%);
  mix-blend-mode: screen;
  animation: footPulse 1.8s infinite alternate ease-in-out;
}
#mg { width: 720px; height: 200px; cursor: crosshair; touch-action: none; display: block; background: #07040c; position: relative; z-index: 2; }
#mg-how { text-align: center; font-size: 15px; color: #ffd34d; padding: 2px 8px; letter-spacing: 0.5px; text-shadow: 1px 1px 0 #000; position: relative; z-index: 5; }

.mg-stage-footer {
  background: #11081a; border-top: 1px solid var(--grape); padding: 2px 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mg-footlights { display: flex; gap: 18px; justify-content: center; }
.mg-footlights span {
  width: 6px; height: 4px; border-radius: 2px 2px 0 0; background: #ffd34d;
  box-shadow: 0 -2px 8px rgba(255, 211, 77, 0.8);
  animation: footPulse 1.8s infinite alternate ease-in-out;
}
.mg-footlights span:nth-child(even) {
  background: #ff4d6d; box-shadow: 0 -2px 8px rgba(255, 77, 109, 0.8);
  animation-delay: 0.3s;
}
@keyframes footPulse {
  0% { filter: brightness(0.7); }
  100% { filter: brightness(1.3); }
}
.mg-quick-legend {
  font-family: var(--px); font-size: 7px; color: var(--lilac); letter-spacing: 0.5px;
}
.mg-quick-legend span { color: #fff; }

.mg-selector { display: flex; justify-content: center; gap: 5px; padding: 3px 6px 5px; background: rgba(18, 10, 30, 0.9); border-bottom: 1px solid var(--grape); }
.mg-pill { font-family: var(--px); font-size: 7px; padding: 3px 6px; background: #160c24; color: var(--dim); border: 1px solid var(--grape); cursor: pointer; border-radius: 2px; transition: all .1s; display: flex; align-items: center; gap: 4px; }
.mg-pill:hover { background: var(--plum); color: var(--bright); border-color: var(--bright); }
.mg-pill.active { background: linear-gradient(180deg, #ffd34d, #d9a020); color: #07040c; border-color: #fff; font-weight: bold; box-shadow: 0 0 10px rgba(255, 211, 77, 0.5); }
.mg-pill .rank-badge { display: inline-block; padding: 1px 3px; border-radius: 2px; font-size: 6px; background: var(--velvet); color: var(--bright); }
.mg-pill .rank-badge.s { background: #fff; color: #07040c; font-weight: bold; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } }

#tray { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(30, 16, 48, .97), rgba(12, 6, 20, .98));
  box-shadow: 0 -4px 0 #000, 0 -6px 0 var(--gold), 0 -12px 40px rgba(0, 0, 0, .6);
  animation: slideUp .25s cubic-bezier(.2, 1.4, .4, 1); }
.tray-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tray-head span { font-family: var(--px); font-size: 11px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); }
.tray-head .sysbtn { width: 28px; height: 28px; font-size: 9px; }
#tray-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card {
  position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 10px;
  padding: 10px; text-align: left; min-height: 150px;
  background: linear-gradient(180deg, #2a1640, #1a0e28);
  box-shadow: inset 2px 2px 0 rgba(207, 161, 255, .25), inset -2px -2px 0 #07040c, 0 0 0 2px #000, 0 4px 0 2px #000;
  transition: transform .08s, box-shadow .12s, filter .12s;
}
.card:hover:not(.locked) { transform: translateY(-3px); filter: brightness(1.12); box-shadow: inset 2px 2px 0 rgba(255, 211, 77, .45), inset -2px -2px 0 #07040c, 0 0 0 2px #000, 0 6px 0 2px #000, 0 0 24px rgba(255, 211, 77, .35); }
.card:active:not(.locked) { transform: translateY(3px); box-shadow: inset -2px -2px 0 rgba(207, 161, 255, .25), inset 2px 2px 0 #07040c, 0 0 0 2px #000; }
.card .thumb { grid-row: 1 / 4; width: 64px; height: 64px; display: grid; place-items: center; background: radial-gradient(circle, #3a2052, #120a1c); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px var(--grape); }
.card .thumb canvas { max-width: 60px; max-height: 60px; }
.card .tier { font-family: var(--px); font-size: 7px; color: var(--dim); letter-spacing: 1px; }
.card .name { font-family: var(--px); font-size: 9px; line-height: 1.4; color: var(--cream); margin: 3px 0; }
.card .eff { font-size: 19px; color: var(--cyan); line-height: 1; }
.card .flav { grid-column: 1 / 3; font-size: 16px; color: var(--dim); line-height: 1.05; margin-top: 6px; font-style: italic; }
.card .price { grid-column: 1 / 3; margin-top: 6px; font-family: var(--px); font-size: 10px; color: #7dffa8; display: flex; justify-content: space-between; align-items: center; }
.card .price .buy { padding: 5px 8px; background: var(--crimson); color: #fff; font-size: 8px; box-shadow: inset 1px 1px 0 var(--scarlet), 0 0 0 2px #000; }
.card.poor .price { color: var(--scarlet); }
.card.poor .price .buy { background: #3a2a4a; color: var(--dim); box-shadow: 0 0 0 2px #000; }
.card.locked { filter: grayscale(.8) brightness(.6); cursor: not-allowed; }
.card.locked .price { color: var(--lilac); }
.card.empty { place-items: center; display: grid; grid-template-columns: 1fr; color: var(--dim); font-size: 18px; text-align: center; }

#news { height: 32px; display: flex; align-items: center; overflow: hidden; background: #07040c; box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--plum); }
.news-tag { flex: none; font-family: var(--px); font-size: 8px; padding: 0 10px; height: 100%; display: grid; place-items: center; background: var(--red); color: #fff; }
#news-track { flex: 1; overflow: hidden; position: relative; height: 100%; }
#news-text { position: absolute; top: 4px; white-space: nowrap; font-size: 21px; color: var(--bright); will-change: transform; }

/* ---------- RIGHT ---------- */
.sub { font-family: var(--px); font-size: 8px; color: var(--dim); letter-spacing: 1px; margin: 4px 4px 6px; display: flex; justify-content: space-between; }
.sub small { font-family: var(--vt); font-size: 16px; }
#track-list { list-style: none; display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
#track-list li { display: flex; gap: 6px; align-items: center; padding: 3px 6px; font-size: 17px; line-height: 1; min-height: 28px;
  background: #1a0e28; box-shadow: inset 0 0 0 1px var(--plum); }
#track-list li .n { font-family: var(--px); font-size: 8px; color: var(--gold); flex: none; width: 14px; }
#track-list li .t { flex: 1; color: var(--cream); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#track-list li .q { flex: none; font-family: var(--px); font-size: 7px; color: var(--cyan); }
#track-list li.crit { box-shadow: inset 0 0 0 1px var(--bright), 0 0 10px rgba(255, 211, 77, .3); }
#track-list li.crit .q { color: var(--bright); }
#track-list li.empty .t { color: #4a3a5e; }
#track-list li.new { animation: trackIn .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes trackIn { from { transform: translateX(40px) scale(1.1); background: var(--bright); } }

.btn { font-family: var(--px); font-size: 10px; padding: 10px 12px; color: #fff; width: 100%;
  background: linear-gradient(180deg, var(--crimson), var(--velvet));
  box-shadow: inset 2px 2px 0 var(--scarlet), inset -2px -2px 0 #2a0610, 0 0 0 2px #000, 0 4px 0 2px #000; transition: filter .1s, transform .06s; }
.btn:hover:not(:disabled) { filter: brightness(1.2); box-shadow: inset 2px 2px 0 var(--scarlet), inset -2px -2px 0 #2a0610, 0 0 0 2px #000, 0 4px 0 2px #000, 0 0 20px rgba(255, 82, 102, .55); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset -2px -2px 0 var(--scarlet), inset 2px 2px 0 #2a0610, 0 0 0 2px #000; }
.btn:disabled { filter: grayscale(.9) brightness(.5); cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, #f0b830, #a86e10); color: #1a0e00; box-shadow: inset 2px 2px 0 #ffe9a0, inset -2px -2px 0 #6a4206, 0 0 0 2px #000, 0 4px 0 2px #000; }
.btn-gold:hover:not(:disabled) { box-shadow: inset 2px 2px 0 #ffe9a0, inset -2px -2px 0 #6a4206, 0 0 0 2px #000, 0 4px 0 2px #000, 0 0 24px rgba(255, 211, 77, .7); }
.royalty { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 4px 4px; }
.royalty span { font-family: var(--px); font-size: 8px; color: var(--dim); }
.royalty b { font-family: var(--px); font-size: 12px; color: #7dffa8; font-weight: normal; text-shadow: 2px 2px 0 #000; }
#launch-badge { margin: 2px 4px 6px; font-family: var(--px); font-size: 8px; color: #fff; padding: 5px 6px; text-align: center; background: linear-gradient(90deg, var(--red), var(--purple)); animation: pulse .6s infinite alternate; }
.album-catalog-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.album-filter-row { margin: 4px 0 8px; }
.album-sort-pills { display: flex; gap: 4px; }
.alb-pill {
  flex: 1; font-family: var(--px); font-size: 7px; padding: 3px 2px;
  background: #11061c; color: var(--dim); border: 1px solid #2e1248; border-radius: 2px;
  cursor: pointer; text-align: center; transition: all 0.1s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.alb-pill:hover { background: #230d38; color: var(--cream); border-color: var(--plum); }
.alb-pill.active {
  background: linear-gradient(180deg, #d9a020, #996e10); color: #fff; font-weight: bold;
  border-color: #ffd34d; box-shadow: 0 0 6px rgba(217, 160, 32, 0.4);
}
.alb-pill .pill-badge {
  font-size: 6px; padding: 0 3px; border-radius: 2px;
  background: rgba(0, 0, 0, 0.45); color: var(--dim); line-height: 10px;
}
.alb-pill.active .pill-badge {
  background: rgba(0, 0, 0, 0.55); color: #fff; text-shadow: 1px 1px 0 #000;
}
.alb-pill[data-sort="landmark"] .pill-label {
  color: #ffd34d;
}
.alb-pill[data-sort="landmark"] .pill-badge {
  color: #ffd34d;
}

#album-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; justify-content: center; max-height: 150px; overflow-y: auto; padding: 4px; }
.album-item { position: relative; width: 64px; height: 64px; cursor: pointer; transition: transform 0.12s; }
.album-item:hover { transform: scale(1.08) rotate(-2deg); z-index: 5; }
.album-item canvas { width: 64px; height: 64px; box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--grape); display: block; }
.album-item:hover canvas { box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--bright), 0 0 14px rgba(255, 211, 77, 0.4); }
.album-item-tag {
  position: absolute; bottom: 2px; right: 2px; font-family: var(--px); font-size: 6px;
  background: rgba(7, 4, 12, 0.88); color: #7dffa8; padding: 1px 3px; border-radius: 1px;
  border: 1px solid #1f3a2c; pointer-events: none;
}
.album-item.landmark canvas { box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold), 0 0 10px rgba(255, 211, 77, 0.5); }
.album-item-star { position: absolute; top: 2px; left: 2px; font-size: 9px; color: #ffd34d; text-shadow: 0 0 4px #000; pointer-events: none; }
#album-grid .empty-cat { grid-column: 1 / -1; font-size: 17px; color: #5a4a6e; text-align: center; padding: 10px 0; }
#album-grid::-webkit-scrollbar { width: 6px; } #album-grid::-webkit-scrollbar-thumb { background: var(--grape); }

/* ---------- QUICK HOTKEYS HUD STRIP ---------- */
.hud-hotkeys-bar {
  display: flex; justify-content: center; gap: 8px; padding: 4px 8px;
  background: #09040e; border-top: 1px solid var(--grape); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: absolute; left: 0; right: 0; bottom: 102px; z-index: 20;
}
.hk-pill {
  font-family: var(--px); font-size: 7px; color: var(--dim); background: #140822;
  border: 1px solid #331552; padding: 2px 6px; border-radius: 2px; cursor: pointer;
  user-select: none; transition: all 0.1s ease;
}
.hk-pill b { color: var(--gold); }
.hk-pill:hover { background: #250f3f; color: var(--bright); border-color: var(--bright); }
.hk-pill.active { background: var(--gold); color: #07040c; border-color: #fff; }
.hk-pill.active b { color: #07040c; }

/* ---------- DECK ---------- */
#deck { position: absolute; left: 0; right: 0; bottom: 0; height: 102px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 12px 16px;
  background: linear-gradient(180deg, #120a1c, #07040c); box-shadow: 0 -2px 0 #000, 0 -4px 0 var(--plum); }
#deck.deck-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deck-btn {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 6px 14px;
  --c1: #a8183a; --c2: #5a0a1e; --hi: #ff5266; --lo: #24040c; --glow: rgba(255, 82, 102, .6);
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 3px 3px 0 var(--hi), inset -3px -3px 0 var(--lo), 0 0 0 3px #000, 0 5px 0 3px #000;
  transition: transform .06s, filter .1s, box-shadow .1s;
}
.deck-btn.purple { --c1: #6a2fa0; --c2: #2e1747; --hi: #b07dff; --lo: #12081e; --glow: rgba(155, 77, 255, .6); }
.deck-btn.teal { --c1: #13808e; --c2: #0a3a44; --hi: #4af0f0; --lo: #04161a; --glow: rgba(46, 230, 230, .55); }
.deck-btn.gold { --c1: #c8901a; --c2: #6a4206; --hi: #ffe08a; --lo: #2a1800; --glow: rgba(255, 211, 77, .6); }
.deck-btn .ico { grid-row: 1 / 3; }
.deck-btn .lbl { font-family: var(--px); font-size: 12px; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); align-self: end; }
.deck-btn small { font-size: 19px; color: rgba(255, 255, 255, .8); align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-btn:hover:not(:disabled) { filter: brightness(1.15); box-shadow: inset 3px 3px 0 var(--hi), inset -3px -3px 0 var(--lo), 0 0 0 3px #000, 0 5px 0 3px #000, 0 0 26px var(--glow); }
.deck-btn:active:not(:disabled), .deck-btn.active { transform: translateY(4px); box-shadow: inset -3px -3px 0 var(--hi), inset 3px 3px 0 var(--lo), 0 0 0 3px #000, 0 1px 0 3px #000; }
.deck-btn:disabled { filter: grayscale(.85) brightness(.45); cursor: not-allowed; }
.deck-btn.ready::after, .btn.ready::after { content: ""; position: absolute; inset: -6px; border: 3px solid var(--bright); pointer-events: none; animation: ring .9s infinite; }
.btn.ready { position: relative; }
.coach-target { animation: coachPulse 1s infinite; }
@keyframes coachPulse { 50% { filter: brightness(1.35) drop-shadow(0 0 12px var(--bright)); } }
@keyframes ring { from { opacity: 1; transform: scale(.98); } to { opacity: 0; transform: scale(1.06); } }
@keyframes pulse { to { filter: brightness(1.4); } }
.deck-btn .count { position: absolute; top: -8px; right: -6px; font-family: var(--px); font-size: 9px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center;
  background: var(--bright); color: #1a0e00; box-shadow: 0 0 0 2px #000; animation: pulse .5s infinite alternate; }

/* ---------- MODALS ---------- */
.modal { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(7, 4, 12, .82); backdrop-filter: blur(3px); }

/* Unified Neoclassical Baroque Modal Cards & Corner Ornaments */
.release-card, .tour-card, .settings-card, .secrets-card, .backstage-card,
.stats-card, .achievements-card, .album-inspect-card, .help-card, .contracts-card {
  position: relative; border-radius: 4px;
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--mood-primary, var(--gold)), 0 0 0 9px #000, 0 0 75px var(--mood-glow, rgba(217, 160, 32, .4)) !important;
  transition: box-shadow 0.8s ease;
}
.release-card::before, .tour-card::before, .settings-card::before, .secrets-card::before,
.backstage-card::before, .stats-card::before, .achievements-card::before, .album-inspect-card::before, .help-card::before, .contracts-card::before {
  content: '❖'; position: absolute; top: 4px; left: 8px; font-family: var(--vt); font-size: 18px; color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 211, 77, 0.8); pointer-events: none; z-index: 5;
}
.release-card::after, .tour-card::after, .settings-card::after, .secrets-card::after,
.backstage-card::after, .stats-card::after, .achievements-card::after, .album-inspect-card::after, .help-card::after, .contracts-card::after {
  content: '❖'; position: absolute; top: 4px; right: 8px; font-family: var(--vt); font-size: 18px; color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 211, 77, 0.8); pointer-events: none; z-index: 5;
}

/* Unified Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #08030f; border: 1px solid var(--grape); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold) 0%, #7d5212 100%); border-radius: 2px; border: 1px solid rgba(255, 224, 102, 0.5); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffe066 0%, #d9a020 100%); box-shadow: 0 0 8px rgba(255, 211, 77, 0.8); }

.release-card { width: 580px; max-height: 94vh; overflow-y: auto; padding: 20px 24px 22px; text-align: center; position: relative;
  background: linear-gradient(180deg, #2a1640, #12081e);
  animation: popIn .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes popIn { from { transform: scale(.6) rotate(-3deg); opacity: 0; } }
.kicker { font-family: var(--px); font-size: 10px; color: var(--scarlet); letter-spacing: 2px; animation: pulse .4s infinite alternate; }
.cover-wrap { width: 180px; height: 180px; margin: 10px auto; box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--bright), 0 16px 30px rgba(0, 0, 0, .6); animation: spinIn 1s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes spinIn { from { transform: rotateY(180deg) scale(.4); } }
#release-cover { width: 180px; height: 180px; }
#release-title { font-family: var(--px); font-size: 15px; line-height: 1.3; color: var(--bright); text-shadow: 3px 3px 0 var(--velvet); font-weight: normal; margin-top: 4px; }
#release-tracks { list-style: decimal inside; font-size: 16px; color: var(--dim); margin: 6px 0; line-height: 1.05; columns: 2; text-align: left; }

/* Press Section in Release Ceremony */
.press-section { margin: 8px 0 10px; }
.press-consensus {
  display: inline-block; font-family: var(--px); font-size: 8px; color: var(--gold);
  background: rgba(0, 0, 0, 0.7); padding: 4px 10px; border-radius: 2px;
  border: 1px solid var(--gold); letter-spacing: 1px; margin-bottom: 5px;
  box-shadow: 0 0 12px rgba(217, 160, 32, 0.4);
}
.press-headline {
  font-family: var(--px); font-size: 9px; color: var(--bright); line-height: 1.3;
  text-shadow: 1px 1px 0 #000; margin-bottom: 8px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.press-critics-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left;
}
.press-card {
  padding: 8px 10px; background: rgba(7, 4, 12, 0.88); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; justify-content: space-between;
}
.rave-card { border-left: 3px solid #ff5533; border-top: 1px solid rgba(255, 85, 51, 0.4); }
.scathe-card { border-left: 3px solid #ff3344; border-top: 1px solid rgba(255, 51, 68, 0.4); }
.press-card-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px;
}
.press-tag { font-family: var(--px); font-size: 7px; letter-spacing: 1px; }
.rave-tag { color: #ffbb33; }
.scathe-tag { color: #ff4455; }
.press-score { font-family: var(--px); font-size: 9px; font-weight: bold; }
.rave-card .press-score { color: #ffd34d; text-shadow: 0 0 6px rgba(255, 211, 77, 0.6); }
.scathe-card .press-score { color: #ff6b6b; }
.press-quote { font-size: 15px; color: var(--cream); font-style: italic; line-height: 1.15; margin-bottom: 4px; }
.press-byline { font-family: var(--px); font-size: 6px; color: var(--dim); text-align: right; }

.review-box { margin: 8px 0; height: 44px; padding: 4px 8px; background: #07040c; box-shadow: inset 0 0 0 2px var(--plum); overflow: hidden; display: grid; place-items: center; }
#review-line { font-size: 18px; color: var(--cream); line-height: 1.05; animation: reviewIn .4s; }
#review-line b { color: var(--bright); font-weight: normal; }
#review-line i { color: var(--dim); }
@keyframes reviewIn { from { transform: translateY(20px); opacity: 0; } }
#release-stats { display: flex; justify-content: center; gap: 14px; font-size: 18px; margin: 4px 0 10px; flex-wrap: wrap; }
#release-stats span { color: #7dffa8; } #release-stats span.f { color: var(--lilac); } #release-stats span.l { color: var(--bright); }

#title { background: radial-gradient(ellipse at 50% 30%, rgba(106, 47, 160, .55), rgba(7, 4, 12, .97) 70%); }
.title-inner { text-align: center; width: 900px; }
.logo span {
  display: inline-block; font-family: var(--px); font-size: 74px; letter-spacing: 4px;
  background: linear-gradient(180deg, #fff 0%, #ffe9a0 30%, #d9a020 50%, #6a2fa0 52%, #cfa1ff 75%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(4px 4px 0 #6e1230) drop-shadow(0 0 30px rgba(255, 211, 77, .4));
  transform: skewX(-8deg); animation: logoIn 1s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes logoIn { from { transform: skewX(-8deg) scale(2); opacity: 0; filter: blur(8px); } }
.tagline { font-family: var(--px); font-size: 11px; color: var(--lilac); letter-spacing: 3px; margin-top: 18px; }
.quote { font-size: 26px; color: var(--dim); margin: 10px 0 26px; }
.quote b { color: var(--bright); font-weight: normal; }
.howto { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; counter-reset: s; }
.howto li { counter-increment: s; position: relative; padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #2a1640, #160c22); box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--plum); }
.howto li::before { content: counter(s); position: absolute; top: -10px; left: -6px; width: 26px; height: 26px; display: grid; place-items: center; font-family: var(--px); font-size: 10px; background: var(--red); box-shadow: 0 0 0 2px #000; }
.howto li:not(:last-child)::after { content: "▶"; position: absolute; right: -14px; top: 40%; color: var(--bright); font-size: 12px; }
.howto b { font-family: var(--px); font-size: 10px; color: var(--bright); font-weight: normal; }
.howto small { font-size: 18px; color: var(--dim); line-height: 1.05; }
.btn-big { width: auto; font-size: 18px; padding: 18px 40px; animation: pulse .7s infinite alternate; }
.hint { font-size: 18px; color: var(--dim); margin-top: 14px; }

/* ---------- FX / TOASTS / TIP ---------- */
#fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.float { position: absolute; font-family: var(--px); font-size: 12px; color: var(--bright); text-shadow: 2px 2px 0 #000; pointer-events: none; animation: floatUp 1s ease-out forwards; white-space: nowrap; }
.float.cash { color: #7dffa8; } .float.big { font-size: 18px; }
.float.crit {
  color: #fff; font-size: 16px; font-weight: bold;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffd34d, 0 0 35px #ff2840, 2px 2px 0 #000;
  animation: floatCrit 1.25s cubic-bezier(.1,.9,.2,1) forwards;
  letter-spacing: 0.5px;
}
@keyframes floatUp { from { transform: translate(-50%, 0) scale(1.2); opacity: 1; } to { transform: translate(-50%, -60px) scale(1); opacity: 0; } }
@keyframes floatCrit {
  0% { transform: translate(-50%, 0) scale(1.85); opacity: 1; filter: brightness(1.8); }
  25% { transform: translate(-50%, -20px) scale(1.3); opacity: 1; filter: brightness(1.2); }
  65% { transform: translate(-50%, -55px) scale(1.05); opacity: 0.95; }
  100% { transform: translate(-50%, -95px) scale(0.85); opacity: 0; }
}

/* Critical Hit Expanding Halo Lens Flare */
.crit-halo-flare {
  position: absolute;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 70;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 211, 77, 0.8) 25%, rgba(255, 40, 64, 0.35) 55%, transparent 75%);
  border-radius: 50%;
  animation: critHaloExpand 0.26s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
.crit-halo-flare::before {
  content: '';
  position: absolute;
  top: 50%; left: -20px; right: -20px; height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, #ffd34d, transparent);
  transform: translateY(-50%);
}
.crit-halo-flare::after {
  content: '';
  position: absolute;
  left: 50%; top: -20px; bottom: -20px; width: 3px;
  background: linear-gradient(180deg, transparent, #ffffff, #ffd34d, transparent);
  transform: translateX(-50%);
}
@keyframes critHaloExpand {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; filter: brightness(2.2); }
  35% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}
.confetti { position: absolute; width: 8px; height: 8px; pointer-events: none; }
.juice-spark { position: absolute; pointer-events: none; z-index: 65; font-family: var(--px); font-size: 11px; will-change: transform, opacity; }

/* Celestial Ascension Golden Lightning Strike (Valhalla of the Gods) */
.celestial-lightning-container {
  position: absolute; inset: 0; pointer-events: none; z-index: 95;
  overflow: hidden;
}
.celestial-lightning-bolt {
  position: absolute; top: 0; left: 50%; width: 260px; height: 100%;
  transform: translateX(-50%); pointer-events: none;
  animation: lightningBoltFlash 0.75s ease-out forwards;
}
@keyframes lightningBoltFlash {
  0% { opacity: 0; filter: drop-shadow(0 0 30px #ffffff) drop-shadow(0 0 60px #ffd34d) brightness(3); }
  6% { opacity: 1; filter: drop-shadow(0 0 50px #ffffff) drop-shadow(0 0 90px #ffd34d) brightness(3.5); }
  15% { opacity: 0.25; }
  22% { opacity: 1; filter: drop-shadow(0 0 60px #ffffff) drop-shadow(0 0 110px #ffd700) brightness(3); }
  45% { opacity: 0.8; }
  100% { opacity: 0; filter: drop-shadow(0 0 10px #ffd34d); }
}
.celestial-flash-screen {
  position: absolute; inset: 0; pointer-events: none; z-index: 94;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), rgba(255, 215, 60, 0.6) 40%, rgba(255, 140, 20, 0.3) 70%, transparent 100%);
  animation: celestialScreenFlash 0.85s ease-out forwards;
}
@keyframes celestialScreenFlash {
  0% { opacity: 1; }
  35% { opacity: 0.75; }
  100% { opacity: 0; }
}

/* Hit Stop & Screen Shake Tiers */
.hit-stop-flash { filter: brightness(1.4) contrast(1.25); transform: scale(1.008); transition: transform 0.03s cubic-bezier(0, 0, 0.2, 1); }
.shake-light { animation: shakeLight 0.18s ease-in-out !important; }
@keyframes shakeLight { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, 1px); } }
.shake-medium { animation: shakeMed 0.3s cubic-bezier(.36,.07,.19,.97) !important; }
@keyframes shakeMed { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4px, 3px) rotate(-0.4deg); } 40% { transform: translate(4px, -3px) rotate(0.5deg); } 60% { transform: translate(-3px, 2px) rotate(-0.2deg); } 80% { transform: translate(2px, -1px); } }
.shake-heavy { animation: shakeHeavy 0.5s cubic-bezier(.36,.07,.19,.97) !important; }
@keyframes shakeHeavy { 0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-7px, 5px) rotate(-1deg); } 30% { transform: translate(8px, -6px) rotate(1.2deg); } 50% { transform: translate(-5px, 4px) rotate(-0.6deg); } 70% { transform: translate(4px, -3px) rotate(0.4deg); } 85% { transform: translate(-2px, 2px); } }

/* Chromatic Aberration CRT Channel Glitch (Nuclear Throne / Vampire Survivors) */
.chromatic-aberration {
  animation: chromaticGlitch 0.28s cubic-bezier(0.2, 0.8, 0.4, 1) !important;
}
@keyframes chromaticGlitch {
  0% {
    filter: drop-shadow(-4px 0 0 rgba(255, 30, 80, 0.85)) drop-shadow(4px 0 0 rgba(0, 240, 255, 0.85)) contrast(1.4) brightness(1.25);
    transform: translate(-3px, 1px) skewX(-0.6deg);
  }
  25% {
    filter: drop-shadow(5px -2px 0 rgba(255, 50, 90, 0.95)) drop-shadow(-5px 2px 0 rgba(0, 255, 230, 0.95)) contrast(1.6) brightness(1.4);
    transform: translate(4px, -2px) skewX(0.9deg);
  }
  50% {
    filter: drop-shadow(-3px 2px 0 rgba(255, 215, 0, 0.85)) drop-shadow(3px -2px 0 rgba(180, 50, 255, 0.85)) contrast(1.3);
    transform: translate(-2px, 2px);
  }
  75% {
    filter: drop-shadow(2px 0 0 rgba(255, 30, 80, 0.6)) drop-shadow(-2px 0 0 rgba(0, 240, 255, 0.6));
    transform: translate(1px, -1px);
  }
  100% {
    filter: none;
    transform: none;
  }
}

/* Shockwave Expanding Ring */
.shockwave-ring {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 68;
  border: 3px solid #ffd34d; box-shadow: 0 0 16px rgba(255, 211, 77, 0.9), inset 0 0 16px rgba(255, 80, 40, 0.6);
  animation: shockwaveExpand 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes shockwaveExpand {
  0% { transform: translate(-50%, -50%) scale(0.15); opacity: 1; border-width: 5px; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; border-width: 1px; }
}

/* Shred Combo Streak Meter (Peggle / Vampire Survivors) */
.shred-combo-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 10px; border-radius: 3px; font-family: var(--px); font-size: 8px;
  background: linear-gradient(180deg, #2a1640, #130a1e);
  box-shadow: 0 0 0 2px #000, 0 0 14px rgba(255, 211, 77, 0.5);
  pointer-events: none; z-index: 20; text-shadow: 1px 1px 0 #000;
  animation: comboPopIn 0.15s cubic-bezier(0.2, 1.6, 0.4, 1);
  white-space: nowrap;
}
@keyframes comboPopIn {
  from { transform: translateX(-50%) scale(0.6); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}
.shred-combo-badge .combo-title { color: #ffd34d; letter-spacing: 1px; font-weight: bold; }
.shred-combo-badge .combo-mult { font-size: 7px; color: #7dffa8; }
.shred-combo-badge .combo-bar-wrap { width: 100%; height: 3px; background: #000; border-radius: 1px; overflow: hidden; margin-top: 1px; }
.shred-combo-badge .combo-bar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #ffd34d, #ff4d6d); }
.shred-combo-badge.tier-2 {
  background: linear-gradient(180deg, #461a28, #1c060e);
  box-shadow: 0 0 0 2px #000, 0 0 18px rgba(255, 80, 40, 0.8);
}
.shred-combo-badge.tier-2 .combo-title { color: #ff9944; text-shadow: 0 0 8px #ff4d22; }
.shred-combo-badge.tier-3 {
  background: linear-gradient(180deg, #5c0f1a, #26050b);
  box-shadow: 0 0 0 2px #000, 0 0 24px rgba(255, 40, 64, 0.95);
  animation: comboPulse 0.3s infinite alternate;
}
.shred-combo-badge.tier-3 .combo-title { color: #fff; text-shadow: 0 0 10px #ff2840, 0 0 20px #ffd34d; }
@keyframes comboPulse {
  0% { transform: translateX(-50%) scale(1); filter: brightness(1); }
  100% { transform: translateX(-50%) scale(1.08); filter: brightness(1.3); }
}

/* Tactile feedback */
#portrait { transition: transform 0.06s cubic-bezier(0.2, 0.8, 0.4, 1.2); }
#portrait:active { transform: scale(0.95, 1.04); }
.btn:active, button:active:not(.locked) { transform: translateY(2px) scale(0.97); }
#toasts { position: absolute; top: 72px; right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { padding: 8px 14px; font-size: 20px; color: var(--cream); background: linear-gradient(90deg, #2a1640, #1a0e28); box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--gold), 0 8px 20px rgba(0, 0, 0, .5);
  animation: toastIn .35s cubic-bezier(.2, 1.5, .4, 1), toastOut .4s 3.6s forwards; max-width: 420px; }
.toast b { color: var(--bright); font-weight: normal; font-family: var(--px); font-size: 10px; display: block; margin-bottom: 4px; }
@keyframes toastIn { from { transform: translateX(120%); } }
@keyframes toastOut { to { transform: translateX(130%); opacity: 0; } }
#tip { position: fixed; z-index: 200; max-width: 300px; padding: 8px 10px; font-family: var(--vt); font-size: 19px; line-height: 1.05; color: var(--cream);
  background: #120a1c; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--grape), 0 8px 20px rgba(0, 0, 0, .6); pointer-events: none; }
#tip b { color: var(--bright); font-weight: normal; }

/* ---------- SECRETS / GRIMOIRE OF EXCESS ---------- */
#btn-secrets { width: 56px; gap: 4px; display: inline-flex; align-items: center; justify-content: center; }
#secret-badge { font-family: var(--px); font-size: 8px; color: var(--bright); }

.secrets-card { width: 800px; max-height: 560px; padding: 22px 26px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #241238, #0e071a);
  box-shadow: 0 0 0 3px #000, 0 0 0 7px var(--gold), 0 0 0 10px #000, 0 0 80px rgba(217, 160, 32, .4);
  animation: popIn .45s cubic-bezier(.2, 1.5, .4, 1); overflow-y: auto; }
.secrets-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
#secrets-title { font-family: var(--px); font-size: 15px; color: var(--bright); text-shadow: 3px 3px 0 var(--velvet); font-weight: normal; }
.secrets-subtitle { font-size: 20px; color: var(--dim); margin-bottom: 14px; }
#secrets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.secret-item { padding: 10px 12px; background: linear-gradient(180deg, #1c0f2c, #130a1e); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .1), 0 0 0 2px #000; border-radius: 2px; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.secret-item.unlocked { box-shadow: inset 2px 2px 0 var(--bright), 0 0 0 2px #000, 0 0 16px rgba(255, 211, 77, .25); background: linear-gradient(180deg, #2d1646, #1a0d2a); }
.secret-item.unlocked .s-title { font-family: var(--px); font-size: 9px; color: var(--bright); text-shadow: 1px 1px 0 #000; }
.secret-item.unlocked .s-desc { font-size: 17px; color: var(--cream); line-height: 1.1; }
.secret-item.unlocked .s-perk { font-family: var(--px); font-size: 7px; color: #7dffa8; line-height: 1.3; margin-top: auto; padding-top: 4px; }
.secret-item.locked { filter: brightness(.65); }
.secret-item.locked .s-title { font-family: var(--px); font-size: 8px; color: var(--dim); }
.secret-item.locked .s-hint { font-size: 16px; color: var(--lilac); font-style: italic; line-height: 1.1; }
.secret-item .s-badge { font-family: var(--px); font-size: 7px; color: var(--gold); margin-bottom: 2px; }

/* ---------- FURY MODE OVERLAY ---------- */
#fury-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 95; display: flex; align-items: flex-start; justify-content: center; padding-top: 68px;
  background: radial-gradient(ellipse at center, rgba(255, 40, 63, .22), rgba(168, 24, 58, .5) 70%, rgba(224, 40, 63, .75) 100%);
  box-shadow: inset 0 0 120px rgba(255, 82, 102, .8), inset 0 0 40px var(--red);
  animation: furyStrobe .25s infinite alternate; }
.fury-banner { font-family: var(--px); font-size: 13px; color: #fff; background: var(--crimson); padding: 8px 18px; box-shadow: 0 0 35px var(--scarlet), 0 0 0 3px #000; animation: pulse .3s infinite alternate; letter-spacing: 2px; }
@keyframes furyStrobe { from { opacity: .75; } to { opacity: 1; } }

/* ---------- FERRARI DRIVE ANIMATION ---------- */
#ferrari-drive { position: absolute; top: 62px; left: -140px; width: 64px; height: 28px; z-index: 85; pointer-events: none; }
.ferrari-sprite { width: 64px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='28' fill='%23ff2840'%3E%3Crect x='6' y='10' width='52' height='12' rx='2'/%3E%3Crect x='16' y='4' width='28' height='10' fill='%233a3048'/%3E%3Ccircle cx='16' cy='22' r='4' fill='%23000'/%3E%3Ccircle cx='48' cy='22' r='4' fill='%23000'/%3E%3Crect x='54' y='12' width='4' height='4' fill='%23ffd34d'/%3E%3C/svg%3E") no-repeat center center; filter: drop-shadow(0 0 8px #ff5266); }
.shake-violent { animation: shakeViolent .4s infinite !important; }
@keyframes shakeViolent { 0% { transform: translate(0, 0); } 20% { transform: translate(-6px, 4px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, -3px); } 80% { transform: translate(5px, 3px); } 100% { transform: translate(0, 0); } }

/* ---------- WORLD TOUR / ASCENSION ---------- */
.btn-tour {
  margin-top: 8px; width: 100%; font-family: var(--px); font-size: 9px; padding: 8px 6px;
  background: linear-gradient(180deg, #3d1a5c, #1a082b); color: var(--bright);
  box-shadow: inset 2px 2px 0 var(--lilac), inset -2px -2px 0 #07040c, 0 0 0 2px #000, 0 3px 0 2px #000;
  transition: all .12s;
}
.btn-tour:hover { filter: brightness(1.25); box-shadow: inset 2px 2px 0 var(--bright), 0 0 0 2px #000, 0 0 20px rgba(207, 161, 255, .5); }
.btn-tour.ready { animation: coachPulse 1.2s infinite; }

#btn-tour-hud small { font-family: var(--px); font-size: 8px; color: #7dffa8; margin-left: 2px; }

.tour-card {
  width: 960px; max-height: 620px; padding: 22px 28px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #1e0e2e, #0c0514);
  box-shadow: 0 0 0 3px #000, 0 0 0 7px var(--gold), 0 0 0 10px #000, 0 0 90px rgba(217, 160, 32, .45);
  animation: popIn .45s cubic-bezier(.2, 1.5, .4, 1); overflow-y: auto;
}
.tour-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
#tour-title { font-family: var(--px); font-size: 17px; color: var(--bright); text-shadow: 3px 3px 0 var(--velvet); font-weight: normal; }

.tour-venue-banner {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; margin-bottom: 14px;
  background: linear-gradient(90deg, #2e1747, #1a0d2a); box-shadow: inset 0 0 0 2px var(--grape), 0 0 0 2px #000; border-radius: 4px;
}
.tour-venue-banner .v-tag { font-family: var(--px); font-size: 8px; color: var(--gold); letter-spacing: 1px; }
.venue-tags-row { display: flex; align-items: center; gap: 8px; }
.heat-badge {
  font-family: var(--px); font-size: 7px; color: #ff5533; background: rgba(50, 10, 15, 0.85);
  border: 1px solid #ff4422; border-radius: 2px; padding: 2px 6px; letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 68, 34, 0.6);
  animation: heatPulse 2s infinite ease-in-out;
}
@keyframes heatPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 68, 34, 0.3); }
  50% { box-shadow: 0 0 10px rgba(255, 68, 34, 0.7); }
}
.tour-venue-banner h3 { font-family: var(--px); font-size: 13px; color: var(--cream); margin: 3px 0 2px; }
.tour-venue-banner p { font-size: 18px; color: var(--dim); }
.tour-reward-box { text-align: right; }
.tour-reward-box label { font-family: var(--px); font-size: 7px; color: var(--dim); display: block; }
.tour-reward-box b { font-family: var(--px); font-size: 18px; color: #7dffa8; text-shadow: 2px 2px 0 #000; display: block; }
.tour-reward-box small { font-size: 16px; color: var(--bright); }

.tour-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tour-sec-title { font-family: var(--px); font-size: 9px; color: var(--bright); margin-bottom: 8px; letter-spacing: 1px; }

#deck-list { display: flex; flex-direction: column; gap: 8px; }
.deck-card {
  padding: 10px 12px; background: linear-gradient(180deg, #190b26, #100618);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .1), 0 0 0 2px #000;
  border-radius: 3px; cursor: pointer; transition: all .1s; display: flex; flex-direction: column; gap: 3px;
}
.deck-card:hover { transform: translateY(-2px); filter: brightness(1.2); }
.deck-card.selected {
  background: linear-gradient(180deg, #381a54, #1e0d2e);
  box-shadow: inset 2px 2px 0 var(--bright), 0 0 0 2px #000, 0 0 16px rgba(255, 211, 77, .3);
}
.deck-top { display: flex; justify-content: space-between; align-items: baseline; }
.deck-name { font-family: var(--px); font-size: 9px; color: var(--cream); }
.deck-tag { font-family: var(--px); font-size: 7px; color: var(--gold); }
.deck-desc { font-size: 17px; color: var(--dim); line-height: 1.1; }
.deck-perk { font-family: var(--px); font-size: 7px; color: var(--cyan); line-height: 1.3; }

#pacts-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.pact-card {
  padding: 8px 10px; background: linear-gradient(180deg, #190b26, #100618);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .1), 0 0 0 2px #000;
  border-radius: 3px; cursor: pointer; transition: all .12s; display: flex; flex-direction: column; gap: 3px;
  position: relative; user-select: none;
}
.pact-card:hover { transform: translateY(-1px); filter: brightness(1.2); }
.pact-card.active {
  background: linear-gradient(180deg, #3d141e, #1a060b);
  box-shadow: inset 1px 1px 0 #ff7744, 0 0 0 2px #000, 0 0 14px rgba(255, 68, 34, 0.35);
}
.pact-top { display: flex; justify-content: space-between; align-items: baseline; }
.pact-name { font-family: var(--px); font-size: 8px; color: var(--cream); display: flex; align-items: center; gap: 4px; }
.pact-card.active .pact-name { color: #ff9966; }
.pact-heat { font-family: var(--px); font-size: 7px; color: #ff5533; font-weight: bold; }
.pact-desc { font-size: 15px; color: var(--dim); line-height: 1.1; }
.pact-bonus { font-family: var(--px); font-size: 7px; color: #7dffa8; margin-top: 1px; }
.pact-card.active .pact-bonus { color: #ffe066; text-shadow: 0 0 4px rgba(255, 224, 102, 0.5); }

#relic-tree { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.relic-item {
  padding: 8px 12px; background: linear-gradient(180deg, #190b26, #100618);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .1), 0 0 0 2px #000;
  border-radius: 3px; display: grid; grid-template-columns: 1fr auto; gap: 4px; align-items: center;
}
.relic-item.owned {
  background: linear-gradient(180deg, #221235, #140920);
  box-shadow: inset 2px 2px 0 #7dffa8, 0 0 0 2px #000;
}
.relic-title { font-family: var(--px); font-size: 9px; color: var(--cream); }
.relic-item.owned .relic-title { color: #7dffa8; }
.relic-desc { font-size: 16px; color: var(--dim); line-height: 1.1; grid-column: 1 / 2; }
.relic-btn {
  font-family: var(--px); font-size: 8px; padding: 6px 10px; background: var(--crimson); color: #fff;
  box-shadow: inset 1px 1px 0 var(--scarlet), 0 0 0 2px #000; grid-column: 2 / 3; grid-row: 1 / 3;
}
.relic-btn.owned { background: #1a2a1e; color: #7dffa8; box-shadow: 0 0 0 2px #000; cursor: default; }
.relic-btn.poor { background: #3a2434; color: var(--dim); box-shadow: 0 0 0 2px #000; cursor: not-allowed; }

.tour-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 10px;
  border-top: 1px solid var(--grape);
}
.tour-summary-text { font-size: 18px; color: var(--dim); max-width: 580px; line-height: 1.15; }
#btn-embark { white-space: nowrap; font-size: 12px; padding: 12px 20px; }

/* ---------- HOTKEY BADGES ---------- */
.k-badge {
  position: absolute; top: 4px; right: 6px; font-family: var(--px); font-size: 7px;
  background: rgba(0, 0, 0, 0.75); color: var(--bright); border: 1px solid var(--grape);
  padding: 1px 4px; border-radius: 2px; pointer-events: none;
}
.k-badge.inline {
  position: static; display: inline-block; margin-right: 4px; vertical-align: middle;
}

/* ---------- SETTINGS MODAL ---------- */
.settings-card {
  width: 620px; padding: 22px 26px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #221236, #0e071a);
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold), 0 0 0 9px #000, 0 0 80px rgba(217, 160, 32, .35);
  animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1);
}
.settings-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
#settings-title { font-family: var(--px); font-size: 14px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); font-weight: normal; }
.settings-grid { display: flex; flex-direction: column; gap: 14px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: rgba(14, 7, 26, 0.8); border: 1px solid var(--grape); border-radius: 3px; }
.setting-row label { font-family: var(--px); font-size: 8px; color: var(--cream); }
.slider-wrap { display: flex; align-items: center; gap: 10px; width: 260px; }
.slider-wrap input[type=range] { flex: 1; accent-color: var(--bright); cursor: pointer; }
.slider-wrap span { font-family: var(--px); font-size: 8px; color: #7dffa8; width: 44px; text-align: right; }
.btn-group { display: flex; gap: 6px; }
.opt-btn { font-family: var(--px); font-size: 7px; padding: 5px 8px; background: #190b28; color: var(--dim); border: 1px solid var(--grape); border-radius: 2px; cursor: pointer; transition: all .1s; }
.opt-btn:hover { background: var(--plum); color: var(--bright); }
.opt-btn.active { background: linear-gradient(180deg, #ffd34d, #d9a020); color: #07040c; font-weight: bold; border-color: #fff; }
.btn-sm { font-family: var(--px); font-size: 7px; padding: 4px 8px; border-radius: 2px; cursor: pointer; }
.session-status-info { font-family: var(--px); font-size: 7px; color: var(--dim); padding: 7px 8px 4px; display: flex; justify-content: space-between; border-top: 1px solid var(--grape); }

/* ---------- SPECTRUM ANALYZER & VINYL JUKEBOX ---------- */
.spectrum-row {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  background: linear-gradient(180deg, rgba(20, 10, 36, 0.95), rgba(10, 5, 18, 0.98)) !important;
  border-color: #3b1b60 !important;
}
.spectrum-head { display: flex; justify-content: space-between; align-items: center; }
.spectrum-head label { font-family: var(--px); font-size: 8px; color: var(--bright); letter-spacing: 0.5px; }
.spectrum-head small { font-family: var(--px); font-size: 7px; color: #7dffa8; }
#spectrum-canvas {
  width: 100%; height: 42px; background: #06020c;
  border: 1px solid #2b1248; border-radius: 2px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.95); display: block;
}

.jukebox-row {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  background: linear-gradient(180deg, rgba(26, 12, 44, 0.92), rgba(14, 6, 24, 0.96)) !important;
  border: 1px solid #4a2278 !important;
}
.jukebox-top { display: flex; justify-content: space-between; align-items: center; }
.jukebox-info { display: flex; align-items: center; gap: 10px; }
.jukebox-info label { font-family: var(--px); font-size: 8px; color: var(--bright); }
.jukebox-badge {
  font-family: var(--px); font-size: 7px; padding: 2px 6px;
  background: #18082e; color: #ffd34d; border: 1px solid #ffd34d; border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 211, 77, 0.3);
}
.jukebox-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.jukebox-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 6px 8px; background: #120620; border: 1px solid #331552; border-radius: 3px;
  cursor: pointer; text-align: left; transition: all 0.15s ease;
}
.jukebox-btn b { font-family: var(--px); font-size: 7px; color: var(--dim); margin-bottom: 2px; }
.jukebox-btn small {
  font-family: var(--vt); font-size: 13px; color: #8c7b9e; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.jukebox-btn:hover { background: #250f3f; border-color: #ffd34d; }
.jukebox-btn:hover b { color: #fff; }
.jukebox-btn.active {
  background: linear-gradient(180deg, #2b1248, #18072e); border: 1px solid #ffd34d;
  box-shadow: 0 0 10px rgba(255, 211, 77, 0.4), inset 0 0 6px rgba(255, 211, 77, 0.2);
}
.jukebox-btn.active b { color: #ffd34d; text-shadow: 0 0 4px #ffd34d; }
.jukebox-btn.active small { color: #fff; }

/* ---------- STATS MODAL ---------- */
.stats-card {
  width: 760px; max-height: 560px; padding: 22px 26px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #221236, #0e071a);
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold), 0 0 0 9px #000, 0 0 80px rgba(217, 160, 32, .35);
  animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1); overflow-y: auto;
}
.stats-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
#stats-title { font-family: var(--px); font-size: 15px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); font-weight: normal; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { padding: 10px 14px; background: linear-gradient(180deg, #190b26, #100618); border: 1px solid var(--grape); border-radius: 3px; display: flex; flex-direction: column; gap: 4px; }
.stat-box .s-label { font-family: var(--px); font-size: 7px; color: var(--dim); letter-spacing: 0.5px; }
.stat-box .s-val { font-family: var(--px); font-size: 14px; color: #7dffa8; text-shadow: 1px 1px 0 #000; }
.stat-box .s-sub { font-size: 16px; color: var(--lilac); }

/* ---------- ACHIEVEMENTS MODAL ---------- */
.ach-card {
  width: 820px; max-height: 580px; padding: 22px 26px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #221236, #0e071a);
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold), 0 0 0 9px #000, 0 0 80px rgba(217, 160, 32, .35);
  animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1); overflow-y: auto;
}
.ach-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
#ach-title { font-family: var(--px); font-size: 15px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); font-weight: normal; }
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ach-item { padding: 10px 12px; background: linear-gradient(180deg, #180a24, #0f0516); border: 1px solid var(--grape); border-radius: 3px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.ach-item.unlocked { background: linear-gradient(180deg, #2d1646, #1a0d2a); border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 211, 77, 0.25); }
.ach-item.locked { opacity: 0.55; filter: grayscale(0.8); }
.ach-icon { font-size: 24px; display: flex; align-items: center; justify-content: center; height: 100%; }
.ach-content { display: flex; flex-direction: column; gap: 3px; }
.ach-name { font-family: var(--px); font-size: 9px; color: var(--bright); }
.ach-item.locked .ach-name { color: var(--dim); }
.ach-desc { font-size: 16px; color: var(--cream); line-height: 1.15; }
.ach-flavor { font-size: 15px; color: var(--gold); font-style: italic; line-height: 1.15; margin-top: 2px; }

/* ---------- ALBUM INSPECTOR MODAL ---------- */
.album-inspect-card {
  width: 780px; max-height: 580px; padding: 22px 26px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #221236, #0e071a);
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold), 0 0 0 9px #000, 0 0 80px rgba(217, 160, 32, .35);
  animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1); overflow-y: auto;
}
.album-inspect-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.album-inspect-nav-strip { display: flex; align-items: center; gap: 6px; }
.inspect-index-tag {
  font-family: var(--px); font-size: 8px; color: var(--gold);
  background: #11061c; padding: 4px 8px; border: 1px solid #3c1a5c;
  border-radius: 2px; text-shadow: 1px 1px 0 #000; letter-spacing: 0.5px;
}
#inspect-title { font-family: var(--px); font-size: 16px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); font-weight: normal; }
.album-inspect-body { display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.inspect-cover-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vinyl-sleeve-wrap { position: relative; width: 140px; height: 128px; }
#inspect-cover {
  position: absolute; left: 0; top: 0; width: 128px; height: 128px; z-index: 2;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--gold), 0 0 24px rgba(0, 0, 0, .8);
  image-rendering: pixelated; background: #000;
}
.inspect-vinyl-disc {
  position: absolute; right: 0; top: 6px; width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle, #ffd34d 0%, #d9a020 18%, #111111 20%, #222222 45%, #050505 50%, #2a2a2a 75%, #050505 100%);
  box-shadow: 0 0 0 2px #000, 0 0 12px rgba(0, 0, 0, 0.8); z-index: 1; transition: transform 0.4s ease;
}
.vinyl-sleeve-wrap:hover .inspect-vinyl-disc,
.inspect-vinyl-disc.spinning {
  transform: translateX(24px) rotate(360deg);
}
.inspect-vinyl-disc.spinning {
  animation: vinylSpin 1.8s linear infinite;
}
@keyframes vinylSpin {
  from { transform: translateX(24px) rotate(0deg); }
  to { transform: translateX(24px) rotate(360deg); }
}
.inspect-meta-bar {
  font-family: var(--px); font-size: 7px; color: var(--lilac); background: rgba(14, 7, 26, 0.85);
  padding: 6px 10px; border: 1px solid var(--grape); border-radius: 2px; margin-bottom: 8px;
}
.inspect-cert {
  font-family: var(--px); font-size: 7px; padding: 4px 8px; border-radius: 2px;
  text-align: center; font-weight: bold; letter-spacing: 0.5px; width: 100%; box-sizing: border-box;
}
.inspect-cert.gold {
  background: linear-gradient(180deg, #ffd34d, #b8860b); color: #07040c; border: 1px solid #fff;
  box-shadow: 0 0 12px rgba(255, 211, 77, 0.6);
}
.inspect-cert.platinum {
  background: linear-gradient(180deg, #e0e8f5, #7a8a9e); color: #07040c; border: 1px solid #fff;
  box-shadow: 0 0 16px rgba(224, 232, 245, 0.8);
}
.inspect-cert.diamond {
  background: linear-gradient(180deg, #7df9ff, #a855f7); color: #fff; border: 1px solid #fff;
  box-shadow: 0 0 20px rgba(125, 249, 255, 0.9);
}
.inspect-sec-title { font-family: var(--px); font-size: 8px; color: var(--gold); letter-spacing: 1px; margin: 10px 0 6px; }
#inspect-tracks { list-style: decimal; padding-left: 20px; font-size: 17px; color: var(--cream); line-height: 1.2; margin-bottom: 8px; }

/* Inspector Press Reviews */
.inspect-press-headline {
  font-family: var(--px); font-size: 8px; color: var(--bright); background: rgba(0, 0, 0, 0.5);
  padding: 5px 8px; border-left: 3px solid var(--gold); margin-bottom: 8px; line-height: 1.3;
}
.inspect-reviews-container { display: flex; flex-direction: column; gap: 8px; }
.inspect-rev-item {
  padding: 6px 10px; background: rgba(0, 0, 0, 0.6); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.inspect-rev-item.rave { border-left: 3px solid #ff5533; }
.inspect-rev-item.scathe { border-left: 3px solid #ff3344; }
.inspect-rev-item.academic { border-left: 3px solid #d4af37; }
.inspect-rev-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.inspect-rev-score { font-family: var(--px); font-size: 8px; color: var(--gold); font-weight: bold; }
.inspect-rev-tag { font-family: var(--px); font-size: 6px; letter-spacing: 1px; padding: 1px 4px; border-radius: 2px; }
.inspect-rev-item.rave .inspect-rev-tag { background: rgba(255, 85, 51, 0.25); color: #ffbb33; }
.inspect-rev-item.scathe .inspect-rev-tag { background: rgba(255, 51, 68, 0.25); color: #ff4455; }
.inspect-rev-item.academic .inspect-rev-tag { background: rgba(212, 175, 55, 0.25); color: #ffd34d; }
.inspect-rev-quote { font-size: 15px; color: var(--cream); font-style: italic; line-height: 1.2; }
.inspect-rev-byline { font-family: var(--px); font-size: 6px; color: var(--dim); margin-top: 4px; text-align: right; }
#inspect-stats { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--grape); font-family: var(--px); font-size: 8px; color: #7dffa8; display: flex; justify-content: space-between; }

/* ---------- HELP & SHORTCUTS MODAL ---------- */
.help-card {
  width: 720px; padding: 22px 26px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #221236, #0e071a);
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold), 0 0 0 9px #000, 0 0 80px rgba(217, 160, 32, .35);
  animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1);
}
.help-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
#help-title { font-family: var(--px); font-size: 15px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); font-weight: normal; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.help-col h3 { font-family: var(--px); font-size: 8px; color: var(--gold); letter-spacing: 1px; margin-bottom: 10px; border-bottom: 1px solid var(--grape); padding-bottom: 4px; }
.k-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.k-row kbd { font-family: var(--px); font-size: 8px; padding: 3px 6px; background: #07040c; border: 1px solid var(--bright); color: var(--bright); border-radius: 2px; box-shadow: 0 2px 0 #000; min-width: 24px; text-align: center; }
.k-row span { font-size: 17px; color: var(--cream); }

/* ---------- BACKSTAGE VIP SANCTUM MODAL ---------- */
.backstage-card {
  width: 940px; max-height: 620px; padding: 22px 28px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #180924, #08030e);
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold), 0 0 0 9px #000, 0 0 90px rgba(255, 211, 77, .35);
  animation: popIn .45s cubic-bezier(.2, 1.5, .4, 1); overflow-y: auto;
}
.backstage-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
#backstage-title { font-family: var(--px); font-size: 16px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); font-weight: normal; }
.backstage-sub { font-size: 17px; color: var(--dim); margin-top: 2px; }

.backstage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.backstage-station {
  padding: 12px 14px; background: linear-gradient(180deg, #1f0b2e, #12051b);
  border: 1px solid var(--grape); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .08), 0 0 0 2px #000;
  border-radius: 4px; display: flex; flex-direction: column; gap: 10px;
}
.station-head { display: flex; gap: 10px; align-items: flex-start; }
.st-icon { font-size: 24px; }
.st-title { font-family: var(--px); font-size: 8px; color: var(--bright); letter-spacing: 0.5px; }
.st-sub { font-size: 15px; color: var(--dim); line-height: 1.15; margin-top: 2px; }

/* Station 1: Workbench */
.fretboard-display {
  padding: 8px 10px; background: #0c0512; border: 1px solid #2e1744; border-radius: 3px;
}
.fretboard-neck {
  display: flex; height: 32px; background: linear-gradient(180deg, #d2a679, #8c5828);
  border-radius: 2px; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 1px #000;
  position: relative; overflow: hidden; align-items: stretch;
}
.fret-slot {
  flex: 1; border-right: 2px solid #ccc; position: relative; display: flex; align-items: center; justify-content: center;
}
.fret-slot.scalloped {
  background: radial-gradient(ellipse at 50% 50%, #ffeaa7 15%, #b58900 65%, #634200 100%);
  box-shadow: inset 0 0 6px rgba(255, 211, 77, 0.8);
}
.fret-slot.scalloped::after {
  content: '✦'; font-size: 7px; color: #fff; text-shadow: 0 0 4px #ffd34d;
}
.station-action { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fret-stat { font-family: var(--px); font-size: 7px; color: var(--cream); }
.fret-stat b { color: #7dffa8; }
#btn-chisel-fret { font-size: 8px; padding: 6px 10px; white-space: nowrap; }

/* Station 2: Safe */
.safe-tumblers-row { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 4px 0; }
.tumbler-digit {
  width: 38px; height: 42px; text-align: center; font-family: var(--px); font-size: 16px;
  background: #09030e; color: var(--gold); border: 2px solid var(--grape); border-radius: 4px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.8); outline: none; transition: border-color .15s;
}
.tumbler-digit:focus { border-color: var(--bright); box-shadow: 0 0 10px rgba(255, 211, 77, 0.4); }
#btn-crack-safe { font-size: 8px; padding: 8px 12px; }
.safe-status-box { padding: 6px 10px; background: rgba(0,0,0,.4); border-radius: 3px; font-family: var(--px); font-size: 7px; color: var(--dim); text-align: center; }

/* Station 3: Meatball */
.meatball-display { display: flex; gap: 14px; align-items: center; }
.btn-meatball-plate {
  width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #e0e0e0, #888);
  border: 3px solid #555; box-shadow: 0 4px 12px rgba(0,0,0,.6), inset 0 2px 4px #fff;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; transition: transform .12s;
}
.btn-meatball-plate:hover { transform: scale(1.08) rotate(3deg); }
.btn-meatball-plate:active { transform: scale(0.95); }
.meatball-emoji { font-size: 26px; }
.meatball-steam { font-size: 12px; color: rgba(255,255,255,0.7); animation: steamRise 1.6s infinite ease-out; position: absolute; top: -6px; }
@keyframes steamRise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-10px) scale(1.2); opacity: 0; }
}
.meatball-flag { font-size: 10px; position: absolute; bottom: 2px; right: 2px; }
.meatball-info { display: flex; flex-direction: column; gap: 3px; }
.meatball-info b { font-family: var(--px); font-size: 8px; color: var(--gold); }
.meatball-info p { font-size: 16px; color: var(--cream); font-style: italic; }
.meatball-info small { font-size: 14px; color: #7dffa8; }

/* Station 4: Black Box */
.blackbox-controls { display: flex; gap: 14px; align-items: center; }
.blackbox-tape-deck {
  width: 72px; height: 48px; background: #c0392b; border: 2px solid #962d22; border-radius: 4px;
  display: flex; align-items: center; justify-content: space-around; padding: 4px; position: relative;
  box-shadow: inset 0 0 6px rgba(0,0,0,.6);
}
.tape-reel {
  width: 20px; height: 20px; border-radius: 50%; border: 2px dashed #333; background: #111;
  animation: reelSpin 3s infinite linear paused;
}
.tape-deck-playing .tape-reel { animation-play-state: running; }
@keyframes reelSpin { 100% { transform: rotate(360deg); } }
.tape-led {
  width: 6px; height: 6px; border-radius: 50%; background: #e74c3c; box-shadow: 0 0 6px #e74c3c;
}
.tape-led.blinking { animation: ledBlink 1s infinite alternate; }
@keyframes ledBlink { 0% { opacity: 0.2; } 100% { opacity: 1; } }
.blackbox-actions { flex: 1; display: flex; flex-direction: column; gap: 4px; }
#btn-play-blackbox { font-size: 7px; padding: 6px 8px; }
.blackbox-transcript { font-family: var(--term, monospace); font-size: 13px; color: #2ecc71; background: #000; padding: 4px 6px; border-radius: 2px; line-height: 1.2; min-height: 32px; }

/* ---------- MASTERCLASS CONTRACTS & ROYAL COMMISSIONS MODAL ---------- */
.contracts-card {
  width: 900px; max-height: 600px; padding: 22px 28px 24px; text-align: left; position: relative;
  background: linear-gradient(180deg, #1f0e2d, #0b0413);
  animation: popIn .45s cubic-bezier(.2, 1.5, .4, 1); overflow-y: auto;
}
.contracts-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
#contracts-title { font-family: var(--px); font-size: 16px; color: var(--bright); text-shadow: 2px 2px 0 var(--velvet); font-weight: normal; }
.contracts-subtitle { font-size: 18px; color: var(--dim); margin-bottom: 16px; line-height: 1.2; }

.contracts-list { display: flex; flex-direction: column; gap: 12px; }
.contract-card {
  padding: 12px 16px; background: linear-gradient(180deg, #1a0b26, #110619);
  border: 1px solid var(--grape); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 2px #000;
  border-radius: 4px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  position: relative; transition: all 0.15s ease;
}
.contract-card:hover:not(.locked) { transform: translateY(-2px); border-color: var(--gold); box-shadow: inset 1px 1px 0 rgba(255, 211, 77, 0.2), 0 0 16px rgba(217, 160, 32, 0.25); }
.contract-card.locked { opacity: 0.55; filter: grayscale(0.6); }
.contract-card.claimed {
  background: linear-gradient(180deg, #14241a, #08140c);
  border-color: #2ee680; box-shadow: inset 1px 1px 0 rgba(46, 230, 128, 0.2), 0 0 0 2px #000;
}
.contract-info { display: flex; flex-direction: column; gap: 4px; }
.contract-top { display: flex; align-items: center; gap: 10px; }
.contract-sponsor { font-family: var(--px); font-size: 7px; color: var(--gold); letter-spacing: 0.5px; background: rgba(0, 0, 0, 0.5); padding: 2px 6px; border-radius: 2px; }
.contract-title { font-family: var(--px); font-size: 10px; color: var(--cream); }
.contract-card.claimed .contract-title { color: #7dffa8; }
.contract-desc { font-size: 16px; color: var(--dim); line-height: 1.15; }
.contract-goals { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
.contract-goal { font-size: 16px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.contract-goal.done { color: #7dffa8; }
.contract-goal.done::before { content: '✓'; font-family: var(--px); font-size: 8px; color: #7dffa8; }
.contract-goal.undone::before { content: '○'; font-family: var(--px); font-size: 8px; color: var(--dim); }
.contract-bounty { font-family: var(--px); font-size: 8px; color: #ffd34d; margin-top: 2px; }
.contract-bounty b { color: #7dffa8; font-weight: normal; }

.contract-action-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 140px; }
.contract-btn {
  font-family: var(--px); font-size: 8px; padding: 8px 14px; border-radius: 2px; cursor: pointer;
  background: var(--plum); color: var(--dim); border: 1px solid var(--grape);
  transition: all 0.12s;
}
.contract-btn.ready {
  background: linear-gradient(180deg, #ffd34d, #d9a020); color: #07040c; font-weight: bold;
  border-color: #fff; box-shadow: 0 0 16px rgba(255, 211, 77, 0.8);
  animation: coachPulse 1s infinite alternate;
}
.contract-btn.claimed {
  background: rgba(46, 230, 128, 0.2); color: #7dffa8; border-color: #2ee680; cursor: default;
}
.contract-stamp {
  font-family: var(--px); font-size: 9px; color: #7dffa8; letter-spacing: 1px;
  border: 2px solid #7dffa8; padding: 4px 8px; border-radius: 3px; transform: rotate(-5deg);
  text-shadow: 0 0 8px rgba(125, 255, 168, 0.7);
}

/* ---------- NARROW VIEWPORT FALLBACK ---------- */
#viewport-guard {
  display: none; width: min(340px, calc(100vw - 32px)); padding: 28px 22px;
  text-align: center; color: var(--cream);
  background: linear-gradient(180deg, #211033, #0b0612);
  border: 2px solid var(--gold); border-radius: 8px;
  box-shadow: 0 0 0 3px #000, 0 18px 60px rgba(0, 0, 0, .8), 0 0 36px rgba(217, 160, 32, .25);
}
.viewport-guard-icon { font-family: var(--px); font-size: 36px; color: var(--bright); margin-bottom: 18px; }
#viewport-guard h1 { font-family: var(--px); font-size: 14px; line-height: 1.55; color: var(--bright); }
#viewport-guard p { margin: 18px 0 10px; font-size: 24px; line-height: 1.15; }
#viewport-guard small { display: block; font-size: 18px; line-height: 1.2; color: var(--dim); }

@media (max-width: 699px) and (orientation: portrait) {
  #monitor { display: none; }
  #viewport-guard { display: block; }
}




