/* blu6k.com: night-city game HUD over blu's M3 reel. Blue night, red car. */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-normal-100_900.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/SpaceMono-normal-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #030509;
  --ink: #e9effc;
  --ink-2: #b4c0da;
  --muted: #7c88a3;
  --dim: #4a556f;
  --blu: #3d7bff;
  --blu-hi: #8fb6ff;
  --ice: #cfe0ff;
  --red: #ff2b3a;
  --line: rgba(190, 212, 255, .12);
  --line-2: rgba(190, 212, 255, .24);
  --gutter: clamp(16px, 2.6vw, 36px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --sans: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
img, canvas, video, svg { display: block; }
::selection { background: var(--red); color: #fff; }
a { color: inherit; }

/* ---------- the world (background) ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.scene__poster, .scene__video, .scene__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__poster, .scene__video { object-fit: cover; object-position: 50% 58%;
  filter: grayscale(1) sepia(.6) hue-rotate(182deg) saturate(1.7) contrast(1.18) brightness(.5); }
.scene__video { opacity: 0; }
.scene__gl { opacity: 0; transition: opacity 1.4s var(--ease); }
html.gl-ready .scene__gl { opacity: 1; }
html.gl-ready .scene__poster { visibility: hidden; transition: visibility 0s linear 1.5s; }
html.no-gl .scene__gl { display: none; }
html.no-gl.video-on .scene__video { opacity: 1; }
.scene__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 5, 9, .55) 0%, transparent 22%, transparent 70%, rgba(3, 5, 9, .7) 100%); }
.grain { position: fixed; inset: -60%; z-index: 3; pointer-events: none; background-size: 192px 192px; opacity: .075; animation: grain .9s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 17% { transform: translate3d(-7%, 4%, 0); } 33% { transform: translate3d(5%, -8%, 0); }
  50% { transform: translate3d(-3%, 7%, 0); } 67% { transform: translate3d(8%, 2%, 0); } 83% { transform: translate3d(-6%, -5%, 0); } 100% { transform: translate3d(0, 0, 0); } }

/* the name: noir film-title italic in cold chrome */
.name__word { position: relative; display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400; line-height: .8;
  padding: .04em .16em .12em .06em; color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 26%, #a9c3ef 50%, #3e5c93 57%, #9fbcee 74%, #f5f9ff 100%);
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 .12em rgba(61, 123, 255, .45)) drop-shadow(0 .02em 0 rgba(0, 0, 0, .6)); }
.name__word::after { content: attr(data-text); position: absolute; inset: 0; padding: inherit; color: transparent; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; -webkit-background-clip: text; background-clip: text; animation: shine 6.5s var(--ease-io) 2.4s infinite; }
@keyframes shine { 0%, 58% { background-position: 160% 0; } 88%, 100% { background-position: -60% 0; } }

/* ---------- loading screen ---------- */
.load { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-columns: auto auto; justify-content: center; align-content: center; align-items: center;
  column-gap: clamp(28px, 5vw, 80px); padding: 40px var(--gutter) 120px; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 40%, rgba(3, 5, 9, .15), rgba(3, 5, 9, .75) 70%, #030509 100%);
  transition: opacity .7s var(--ease), visibility 0s linear .7s; }
body:not(.is-loading) .load { opacity: 0; visibility: hidden; pointer-events: none; }
.load__card { position: relative; width: clamp(180px, min(26vw, 38vh), 300px); aspect-ratio: 1; padding: 10px 10px 34px; background: #e9eef8;
  transform: rotate(-5deg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3); animation: card-in .9s var(--pop) both; }
.load__card img { width: 100%; height: 100%; object-fit: cover; }
.load__card-tag { position: absolute; left: 12px; bottom: 9px; font: 700 13px/1 var(--mono); letter-spacing: .3em; color: #0b1222; }
.load__card::after { content: ""; position: absolute; right: -14px; top: 18px; width: 64px; height: 22px; background: rgba(255, 43, 58, .85); transform: rotate(38deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
@keyframes card-in { from { opacity: 0; transform: rotate(-14deg) scale(.86) translateY(30px); } to { opacity: 1; transform: rotate(-5deg); } }
.load__copy { max-width: 520px; animation: fade-up .9s var(--ease) .15s both; }
.load__kicker { margin: 0 0 6px; font: 400 11px/1 var(--mono); letter-spacing: .38em; color: var(--ink-2); }
.load__title { margin: 0; font-weight: 400; }
.load__title .name__word { font-size: clamp(110px, min(15vw, 24vh), 230px); }
.load__tip { display: flex; gap: 12px; align-items: baseline; margin: 14px 0 0; max-width: 440px; font: 400 13px/1.55 var(--mono); color: var(--ink-2); }
.load__tip b { flex: none; padding: 3px 6px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10px; letter-spacing: .2em; }
.load__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; }
.load__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(207, 224, 255, .2); border-top-color: var(--ice); animation: spin .8s linear infinite; }
.load__pct { font: 400 11px/1 var(--mono); letter-spacing: .26em; color: var(--ink-2); min-width: 120px; }
.load__bar { height: 2px; background: rgba(207, 224, 255, .12); overflow: hidden; border-radius: 2px; }
.load__bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blu), var(--ice)); box-shadow: 0 0 12px var(--blu); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HUD reveal ---------- */
.hud-top, .station, .hero, .phone, .map, .objective { transition: opacity .8s var(--ease), transform 1s var(--ease); }
body.is-loading .hud-top { opacity: 0; transform: translateY(-16px); }
body.is-loading .hero { opacity: 0; transform: scale(.94); }
body.is-loading .phone { opacity: 0; transform: translateY(60px); }
body.is-loading .map { opacity: 0; transform: translateX(-40px); }
body.is-loading .objective { opacity: 0; }
/* failsafe: if the script never runs, drop the loading screen anyway */
@keyframes failsafe-out { to { opacity: 0; visibility: hidden; } }
@keyframes failsafe-in { to { opacity: 1; transform: none; } }
body.is-loading:not(.js) .load { animation: failsafe-out .3s linear 9s forwards; }
body.is-loading:not(.js) .hud-top, body.is-loading:not(.js) .hero, body.is-loading:not(.js) .phone, body.is-loading:not(.js) .map, body.is-loading:not(.js) .objective { animation: failsafe-in .3s linear 9s forwards; }
.hero { transition-delay: .15s; } .map { transition-delay: .3s; } .phone { transition-delay: .4s; } .objective { transition-delay: .7s; }

/* ---------- top HUD: aura stars + followers ---------- */
.hud-top { position: fixed; top: 0; left: 0; right: 0; z-index: 8; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px var(--gutter); pointer-events: none; }
.mark { display: grid; gap: 7px; font: 700 11px/1 var(--mono); letter-spacing: .34em; color: var(--ink-2); padding-top: 6px; }
.mark small { font-weight: 400; font-size: 9px; letter-spacing: .3em; color: var(--dim); }
.stats { display: grid; justify-items: end; gap: 10px; margin-left: auto; }
.stars { display: flex; align-items: center; gap: 4px; filter: drop-shadow(0 0 6px rgba(143, 182, 255, .55)); }
.stars__k { font: 700 10px/1 var(--mono); letter-spacing: .3em; color: var(--ink-2); margin-right: 8px; }
.stars i { width: 21px; height: 21px; background: var(--ice); opacity: .18;
  clip-path: polygon(50% 0, 61.8% 35.4%, 100% 38.2%, 69.1% 61.8%, 80.9% 100%, 50% 76.4%, 19.1% 100%, 30.9% 61.8%, 0 38.2%, 38.2% 35.4%); }
.stars i.is-on { opacity: 1; animation: star-pop .55s var(--pop) both; }
.stars.is-flash i.is-on { opacity: .35; }
@keyframes star-pop { 0% { transform: scale(2.2); opacity: 0; filter: brightness(3); } 100% { transform: scale(1); opacity: 1; filter: none; } }
.cash { display: flex; align-items: center; gap: 9px; }
.cash svg { width: 15px; height: 15px; fill: #a77dff; }
.cash b { font: 700 26px/1 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 18px rgba(61, 123, 255, .35); }
.cash small { font: 400 10px/1 var(--mono); letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }

/* radio station popup */
.station { position: fixed; top: 22px; left: 50%; z-index: 9; display: grid; justify-items: center; gap: 4px; pointer-events: none;
  opacity: 0; transform: translate(-50%, -14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.station.is-on { opacity: 1; transform: translate(-50%, 0); }
.station small { font: 400 9px/1 var(--mono); letter-spacing: .4em; color: var(--muted); }
.station b { font: italic 400 34px/1 var(--serif); color: var(--ice); text-shadow: 0 0 20px rgba(61, 123, 255, .7); }
.station span { font: 400 10px/1 var(--mono); letter-spacing: .26em; color: var(--red); text-transform: uppercase; }

/* ---------- the player (center) ---------- */
.hero { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; padding: 90px var(--gutter) 150px; }
.player { display: grid; justify-items: center; text-align: center; pointer-events: auto; }
.avatar { --size: clamp(120px, min(13vw, 21vh), 176px); position: relative; width: var(--size); height: var(--size); }
.avatar__aura { position: absolute; left: 50%; top: 50%; width: calc(var(--size) * 2.8); height: calc(var(--size) * 2.8); transform: translate(-50%, -56%); pointer-events: none; }
.avatar__ring { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, var(--blu), var(--ice) 18%, var(--blu) 34%, #10204a 50%, var(--red) 66%, var(--blu) 82%, var(--blu));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 7s linear infinite; filter: drop-shadow(0 0 6px rgba(61, 123, 255, .8)); }
.avatar__img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0a1020;
  box-shadow: 0 0 0 3px #04060c, 0 24px 60px -10px rgba(0, 0, 0, .8); transform: scale(calc(1 + var(--pulse, 0) * .04)); }
.avatar__live { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 5px 8px 5px 9px; border-radius: 6px;
  background: var(--red); color: #fff; font: 700 10px/1 var(--mono); letter-spacing: .18em; box-shadow: 0 0 0 3px #04060c, 0 0 22px rgba(255, 43, 58, .75); }
.avatar__live[hidden] { display: none; }
.name { margin: 18px 0 0; font-weight: 400; line-height: 1; }
.name .name__word { font-size: clamp(84px, min(10vw, 16vh), 150px); }
.tag { margin: 2px 0 0; font: 400 11px/1.5 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.tag span { color: var(--red); margin: 0 .6em; }

/* ---------- the phone ---------- */
.phone { position: fixed; right: clamp(16px, 3vw, 56px); bottom: clamp(16px, 4vh, 44px); z-index: 6; --h: min(560px, 64vh); perspective: 1400px; }
.phone__body { position: relative; height: var(--h); aspect-ratio: 9 / 18.6; padding: calc(var(--h) * .016); border-radius: calc(var(--h) * .075);
  background: linear-gradient(145deg, #2a3348, #0b0f19 30%, #05070c 70%, #1f2738);
  box-shadow: 0 0 0 1px rgba(190, 212, 255, .16), inset 0 0 0 1px rgba(0, 0, 0, .8), 0 40px 90px -20px rgba(0, 0, 0, .95), -20px 30px 60px -30px rgba(61, 123, 255, .35);
  transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.6deg); transform-origin: 60% 80%; transition: transform .8s var(--ease); }
.phone:hover .phone__body, .phone:focus-within .phone__body { transform: rotateY(-5deg) rotateX(2deg) rotateZ(.4deg) translateY(-6px); }
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--h) * .062); overflow: hidden; display: flex; flex-direction: column; gap: calc(var(--h) * .022);
  padding: calc(var(--h) * .02) calc(var(--h) * .026) calc(var(--h) * .03);
  background: radial-gradient(120% 60% at 20% 0%, rgba(61, 123, 255, .28), transparent 60%), radial-gradient(90% 50% at 100% 100%, rgba(255, 43, 58, .2), transparent 60%), linear-gradient(180deg, #0a1124, #05070f); }
.phone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0%, transparent 32%); }
.phone__status { position: relative; display: flex; justify-content: space-between; align-items: center; height: calc(var(--h) * .04); font: 700 calc(var(--h) * .019)/1 var(--mono); color: var(--ink); letter-spacing: .04em; padding: 0 4px; }
.phone__island { position: absolute; left: 50%; top: 0; width: 30%; height: 100%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone__icons { display: inline-flex; align-items: center; gap: 5px; font-size: calc(var(--h) * .016); }
.sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.sig b { width: 2.5px; background: var(--ink); border-radius: 1px; }
.sig b:nth-child(1) { height: 30%; } .sig b:nth-child(2) { height: 55%; } .sig b:nth-child(3) { height: 78%; } .sig b:nth-child(4) { height: 100%; }
.bat { position: relative; width: 19px; height: 9px; border: 1px solid rgba(233, 239, 252, .7); border-radius: 3px; padding: 1px; }
.bat::after { content: ""; position: absolute; right: -3px; top: 2.5px; width: 1.5px; height: 3px; background: rgba(233, 239, 252, .7); border-radius: 1px; }
.bat b { display: block; width: 78%; height: 100%; background: var(--ink); border-radius: 1px; }

.notif { display: grid; gap: 7px; padding: 10px 11px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .085); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: notif-in .7s var(--pop) both; transition: background .3s, border-color .3s; }
.notif__thumb[hidden] { display: none; }
.notif.is-live { border-color: rgba(255, 43, 58, .35); }
.notif:hover, .notif:focus-visible { background: rgba(145, 70, 255, .2); border-color: rgba(145, 70, 255, .55); outline: none; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.notif__head { display: flex; justify-content: space-between; font: 400 9px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.notif__app { display: inline-flex; align-items: center; gap: 6px; }
.notif__app svg { width: 11px; height: 11px; fill: #a77dff; }
.notif__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.notif__text { display: grid; gap: 3px; min-width: 0; }
.notif__text b { font: 700 13px/1.15 var(--sans); }
.notif__text > span { font: 400 11.5px/1.3 var(--sans); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif__text small { font: 400 9.5px/1.2 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif__thumb { position: relative; width: 66px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #111827; }
.notif__thumb img { width: 100%; height: 100%; object-fit: cover; }
.notif__thumb::after { content: "LIVE"; position: absolute; left: 3px; top: 3px; padding: 2px 3px; border-radius: 3px; background: var(--red); font: 700 6.5px/1 var(--mono); letter-spacing: .1em; color: #fff; }

.apps { order: 3; margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 8px 9px; border-radius: 22px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.notif { order: 1; } .radio { order: 2; } .phone__home { order: 4; }
.app { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 7px; cursor: pointer; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.app__icon { position: relative; width: 100%; max-width: 56px; aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .45s var(--pop), box-shadow .4s; }
.app__icon svg { width: 46%; height: 46%; fill: #fff; }
.app--twitch .app__icon { background: linear-gradient(160deg, #a970ff, #6b2bd9); }
.app--tiktok .app__icon { background: linear-gradient(160deg, #1c1f26, #000); }
.app--tiktok .app__icon svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.app--x .app__icon { background: linear-gradient(160deg, #23262e, #000); }
.app__name { font: 600 11px/1 var(--sans); letter-spacing: .02em; color: var(--ink); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.app:hover .app__icon, .app:focus-visible .app__icon { transform: translateY(-3px) scale(1.07); box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--accent, #3d7bff) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.app:focus-visible .app__icon { outline: 2px solid var(--ice); outline-offset: 3px; }
.app:active .app__icon { transform: scale(.94); }
.app__badge { position: absolute; top: -6px; right: -8px; padding: 3px 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 8px/1 var(--mono); letter-spacing: .08em; box-shadow: 0 0 0 2px #070b16, 0 0 12px rgba(255, 43, 58, .7); }
.app__badge[hidden] { display: none; }

/* radio player widget */
.radio { display: grid; gap: 10px; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .065); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.radio__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; }
.radio__art { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .8); }
.radio__meta { display: grid; gap: 4px; min-width: 0; }
.radio__meta small { font: 700 8.5px/1 var(--mono); letter-spacing: .24em; color: var(--red); }
.radio__meta b { font: italic 400 24px/1 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: .1em; }
.radio__meta span { font: 400 9.5px/1 var(--mono); color: var(--muted); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio__viz { display: flex; align-items: flex-end; gap: 2px; height: 40px; padding: 0 1px; }
.radio__viz i { flex: 1; height: 100%; border-radius: 1px; background: linear-gradient(180deg, var(--ice), var(--blu)); transform-origin: 50% 100%; transform: scaleY(var(--h, .1)); opacity: .9; transition: transform .07s linear; }
.radio__prog { position: relative; display: block; height: 3px; border-radius: 3px; background: rgba(207, 224, 255, .14); overflow: hidden; }
.radio__prog i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--ice); box-shadow: 0 0 8px rgba(207, 224, 255, .7); }
.radio__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.radio__time { font: 400 9.5px/1 var(--mono); color: var(--muted); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.radio__time:last-child { text-align: right; }
.radio__btn { all: unset; box-sizing: border-box; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: #05070d; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .8); transition: transform .35s var(--pop), background .3s, box-shadow .3s; }
.radio__btn svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; }
.radio__pause { display: none; }
.radio__btn[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: 0 0 24px rgba(255, 43, 58, .6); }
.radio__btn[aria-pressed="true"] .radio__play { display: none; }
.radio__btn[aria-pressed="true"] .radio__pause { display: block; }
.radio__btn:hover { transform: scale(1.08); }
.radio__btn:active { transform: scale(.94); }
.radio__btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.radio:not(.is-playing) .radio__viz i { animation: viz-idle 1.6s ease-in-out infinite alternate; }
@keyframes viz-idle { from { transform: scaleY(.14); } to { transform: scaleY(.55); } }
.phone__home { align-self: center; width: 36%; height: 4px; border-radius: 4px; background: rgba(233, 239, 252, .55); flex: none; }

/* ---------- minimap ---------- */
.map { position: fixed; left: clamp(16px, 3vw, 56px); bottom: clamp(16px, 4vh, 44px); z-index: 6; display: flex; align-items: flex-end; gap: 14px; }
.map__svg { width: clamp(150px, min(15vw, 26vh), 220px); height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); }
.map__base { fill: #050a16; stroke: rgba(0, 0, 0, .6); stroke-width: 6; }
.map__land { fill: #0a1630; }
.map__lake { fill: #050e22; stroke: #1b3466; stroke-width: 1; }
.map__park { fill: #0f2742; }
.map__roads path { fill: none; stroke: #1c2f57; stroke-width: 3.2; }
.map__main path { fill: none; stroke: #36508a; stroke-width: 6; }
.map__route { fill: none; stroke: #b48cff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 5; filter: drop-shadow(0 0 3px rgba(180, 140, 255, .9)); transition: stroke .4s; }
.map__label { font: 700 6px/1 var(--mono); letter-spacing: .14em; fill: rgba(207, 224, 255, .6); }
.map__tower path { stroke: rgba(207, 224, 255, .55); stroke-width: 1.2; fill: none; }
.map__tower circle { fill: rgba(207, 224, 255, .55); }
.map__rim { fill: none; stroke: rgba(207, 224, 255, .28); stroke-width: 1.2; }
.map__n { font: 700 9px/1 var(--mono); fill: var(--ice); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #050a16; stroke-width: 3px; }
.map__player { fill: var(--red); stroke: #fff; stroke-width: 1; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 43, 58, .9)); }
.blip { cursor: pointer; outline: none; }
.blip__dot { stroke: #050a16; stroke-width: 2; transition: r .3s var(--pop); }
.blip path { fill: #fff; pointer-events: none; }
.blip--twitch .blip__dot { fill: #9146ff; }
.blip--tiktok .blip__dot { fill: #111; stroke: #25f4ee; stroke-width: 1.5; }
.blip--x .blip__dot { fill: #111; stroke: #e9effc; stroke-width: 1.5; }
.blip:hover .blip__dot, .blip:focus-visible .blip__dot, .blip.is-target .blip__dot { r: 11; }
.blip.is-target .blip__dot { filter: drop-shadow(0 0 5px rgba(255, 255, 255, .7)); }
.bars { display: grid; gap: 9px; padding-bottom: 6px; width: clamp(110px, 10vw, 150px); }
.bar { display: grid; gap: 5px; }
.bar small { font: 700 8.5px/1 var(--mono); letter-spacing: .3em; color: var(--ink-2); }
.bar span { position: relative; display: block; height: 7px; border-radius: 1px; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 1px rgba(207, 224, 255, .14); overflow: hidden; }
.bar i { position: absolute; inset: 1px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #2b62e8, var(--blu-hi)); box-shadow: 0 0 10px rgba(61, 123, 255, .8); transition: transform 1.4s var(--ease) .9s; }body:not(.is-loading) .bar i { transform: scaleX(1); }

/* ---------- objective subtitle ---------- */
.objective { position: fixed; left: 50%; bottom: clamp(18px, 5vh, 52px); z-index: 7; transform: translateX(-50%); display: grid; justify-items: center; gap: 7px;
  max-width: min(560px, 44vw); text-align: center; text-decoration: none; color: var(--ink); }
.objective small { font: 700 9px/1 var(--mono); letter-spacing: .4em; color: var(--muted); }
.objective span { font: 600 clamp(15px, 1.35vw, 19px)/1.35 var(--sans); text-shadow: 0 2px 0 rgba(0, 0, 0, .7), 0 0 20px rgba(0, 0, 0, .8); transition: opacity .35s; }
.objective span.is-out { opacity: 0; }
.objective em { font-style: normal; color: var(--accent, #b48cff); }
.objective:hover span, .objective:focus-visible span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.objective:focus-visible { outline: none; }


/* ---------- cursor (mouse only) ---------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(255, 255, 255, .85);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s; }
html.cursor-hover .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background-color: rgba(255, 255, 255, .1); }
html.cursor-out .cursor { opacity: 0; }

/* ---------- short laptop screens: a more compact phone ---------- */
@media (max-height: 780px) and (min-width: 761px) {
  .phone { --h: min(560px, 78vh); }
  .radio { gap: 8px; padding: 10px; }
  .radio__viz { display: none; }
  .radio__art { width: 44px; height: 44px; border-radius: 10px; }
  .radio__meta b { font-size: 19px; }
  .radio__btn { width: 36px; height: 36px; }
  .notif__text > span { -webkit-line-clamp: 1; }
  .app__icon { max-width: 46px; }
}

/* ---------- tablets ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .phone { --h: min(500px, 60vh); }
  .bars { display: none; }
  .hero { padding-right: 34vw; }
}

/* ---------- phones: the page itself becomes the phone ---------- */
@media (max-width: 760px) {
  body { overflow: auto; }
  .hero, .phone, .map, .objective { position: relative; inset: auto; left: auto; right: auto; bottom: auto; transform: none; }
  .hud-top { position: absolute; padding: 16px; }
  .mark { display: none; }
  .stats { gap: 7px; }
  .stars i { width: 16px; height: 16px; }
  .stars__k { font-size: 9px; margin-right: 6px; }
  .cash b { font-size: 19px; }
  .station { top: 12px; }
  .station b { font-size: 26px; }
  .hero { display: block; padding: 0; margin: 0; pointer-events: auto; }
  .player { padding-top: 92px; }
  .avatar { --size: 118px; }
  .name .name__word { font-size: 92px; }
  .tag { font-size: 9.5px; letter-spacing: .2em; padding: 0 12px; }
  .phone { --h: auto; margin: 26px auto 0; width: min(100% - 32px, 420px); perspective: none; }
  .phone__body { height: auto; aspect-ratio: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none !important; }
  .phone__screen { height: auto; border-radius: 0; overflow: visible; padding: 0; gap: 14px; background: none; }
  .phone__screen::after, .phone__status, .phone__home { display: none; }
  .notif { padding: 12px 13px; }
  .apps { order: 2; margin-top: 0; gap: 12px; padding: 12px 10px 11px; }
  .app__icon { max-width: 64px; }
  .app__name { font-size: 12px; }
  .map { position: absolute; top: 14px; left: 14px; bottom: auto; }
  .map__svg { width: 92px; }
  .bars { display: none; }
  .objective { position: relative; margin: 26px auto 34px; max-width: calc(100% - 40px); }
  .objective span { font-size: 15px; }
  body.is-loading .hero, body.is-loading .phone, body.is-loading .map { transform: none; }
  .load { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 26px; padding: 30px 22px 110px; }
  .load__card { width: 190px; }
  .load__copy { display: grid; justify-items: center; }
  .load__tip { text-align: left; }
  .load__title .name__word { font-size: 104px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .name__word::after, .avatar__ring, .load__spin, .stars i.is-on, .notif, .load__card, .load__copy { animation: none !important; }
  .hud-top, .station, .hero, .phone, .map, .objective, .bar i, .load { transition-duration: .2s !important; transition-delay: 0s !important; }
}
