/* The Soundtrack screen (js/music-viz.js): a song's own scene full screen, its name in the field journal's red ink, and the song
   list. Red, black and white only; the controls sit on the game's steel plates. */
.mviz { position: fixed; inset: 0; z-index: 10400; /* over the HUD, sheets, radio cards and reward screens; under the first-run setup (10600) */ background: #050304; color: #f4f1ea; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.mviz-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mviz-top, .mviz-dock { position: relative; z-index: 1; }
.mviz-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(var(--safe-t, 0px) + 16px) 16px 30px; background: linear-gradient(180deg, #050304e6, #05030400); pointer-events: none; }
.mviz-title { display: grid; gap: 2px; min-width: 0; }
.mviz-title em { font: 400 12px/1 var(--display, Impact, sans-serif); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: #f27661; }
.mviz-name { font: 800 clamp(24px, 6vw, 42px)/.95 "Barlow Condensed", var(--display, Impact), "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; color: #f4f1ea; text-shadow: 0 2px #5a5961, 1px 3px #460919; overflow-wrap: anywhere; }
.mviz-mood { font: 13px/1.3 var(--body, sans-serif); color: #e4d3bb; }
.mviz-x { pointer-events: auto; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #5a4d40; border-top: 2px solid #c8202a; background: linear-gradient(170deg, #211f1b, #121113 72%); color: #f4f1ea; box-shadow: 0 2px 0 #070807; }
.mviz-x svg { width: 20px; height: 20px; }
.mviz-dock { padding: 26px 14px calc(var(--safe-b, 0px) + 14px); background: linear-gradient(0deg, #050304f0, #05030400); display: grid; gap: 10px; }
.mviz-ctl { display: flex; justify-content: center; gap: 8px; }
.mviz-ctl .btn { min-width: 52px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mviz-ctl .btn svg { width: 18px; height: 18px; }
.mviz-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.mviz-list[hidden] { display: none; }
.mviz-song { flex: none; scroll-snap-align: start; width: 150px; display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; text-align: left; padding: 8px 10px; border: 1px solid #5a4d40; background: linear-gradient(170deg, #211f1b, #121113 72%); color: #f4f1ea; box-shadow: 0 2px 0 #070807, inset 0 1px 0 #f2d9a914; }
.mviz-song b { font: 600 13px/1.15 var(--body, sans-serif); grid-column: 2; }
.mviz-song small { font: 11px/1.2 var(--body, sans-serif); color: #b3aaa0; grid-column: 2; }
.mviz-song.on { border-color: #c8202a; border-top: 2px solid #ff344b; }
.mviz-sw { grid-row: 1 / 3; width: 10px; height: 100%; min-height: 28px; background: #c8202a; }
.mviz-sw-collision, .mviz-sw-ecg, .mviz-sw-line, .mviz-sw-pipes { background: linear-gradient(#f4f1ea, #c8202a); }
.mviz-sw-grid, .mviz-sw-dawn, .mviz-sw-embers, .mviz-sw-armageddon { background: linear-gradient(#ffb59a, #c8202a 60%, #2a0609); }
.mviz-sw-radar, .mviz-sw-clock, .mviz-sw-ridges, .mviz-sw-march { background: repeating-linear-gradient(#c8202a 0 4px, #0b0b0b 4px 6px); }
/* The Settings row's way in, and the Armageddon 0 card's. */
.nowplaying #np-viz { margin-left: 6px; }
.arma-listen { position: relative; z-index: 4; margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px; border: 1px solid #5a2a31; border-top: 2px solid #ff2b43; background: #120c0ee6; color: #eeeeef; font: 700 13px/1 "Barlow Condensed", var(--display, Impact), sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.arma-listen svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .mviz-list { scroll-behavior: auto; } }
/* Beat effects (js/music-viz.js pulse): a red vignette at the edges and a small thump of the map, both compositor-only. */
#beat-fx { position: fixed; inset: 0; z-index: 28; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 58%, #c8202a 130%); }
#beat-fx.on { animation: beat-vig .26s ease-out; }
@keyframes beat-vig { 0% { opacity: calc(var(--beat, .6) * .55); } 100% { opacity: 0; } }
canvas.beat-thump { animation: beat-thump .2s ease-out; }
@keyframes beat-thump { 0% { transform: scale(1.012); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #beat-fx.on, canvas.beat-thump { animation: none; } }
