/* workchillout.com - one quiet shell: a painted scene, a glass player deck, words below.
   Asset tokens (font: and icon: inside url()) are replaced with hashed URLs by src/build.mjs.
   Spacing rule (Bryan 2026-10-16): 16px phone gutter and card padding minimum, 20-32px between blocks;
   when space is tight, decoration and type shrink first. */

@font-face {
  font-family: "Fraunces";
  src: url(/assets/fraunces.7e74484902.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url(/assets/fraunces-italic.04a14ea380.woff2) format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/inter.3100e775e8.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* registered so the per-scene tint can fade when the song (and painting) changes */
@property --tint { syntax: "<color>"; inherits: true; initial-value: #f2c27b; }

:root {
  --ground: #14161c;
  --ink: #f6f1e7;
  --ink-2: rgb(246 241 231 / 0.72);
  --ink-3: rgb(246 241 231 / 0.6);
  --hair: rgb(246 241 231 / 0.14);
  --glass: rgb(18 20 26 / 0.58);

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ja: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: --tint 2s;
}
a { color: inherit; text-decoration-color: rgb(246 241 231 / 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tint); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[lang="ja"] { font-family: var(--ja); }

/* ---------------------------------------------------------------- the scene */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #1b1e26; }
.scene {
  position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover;
  opacity: 0; transition: opacity 2.4s ease;
  animation: drift 90s ease-in-out infinite alternate;
}
.scene.is-on { opacity: 1; }
.veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(12 13 18 / 0.62) 0%, rgb(12 13 18 / 0.2) 42%, rgb(12 13 18 / 0) 70%),
    linear-gradient(180deg, rgb(12 13 18 / 0.35) 0%, rgb(12 13 18 / 0) 18%, rgb(12 13 18 / 0) 72%, rgb(12 13 18 / 0.55) 100%);
}
/* fine film grain over everything, very quiet */
.stage::after {
  content: ""; position: absolute; inset: -50%; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.045) translate3d(-1.2%, -0.8%, 0); } }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-6%, 4%); } 66% { transform: translate(5%, -3%); } 100% { transform: translate(-2%, 6%); } }

/* ---------------------------------------------------------------- top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 20px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 17px/1 var(--serif); letter-spacing: 0.01em; font-variation-settings: "SOFT" 100, "opsz" 24; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: url(/assets/favicon.eb6b677bed.svg) center/cover; box-shadow: 0 0 0 1px var(--hair); }
/* New: the latest additions drawer; the dot means something was added since this browser last looked */
.newbtn {
  position: relative; margin-left: auto; padding: 9px 16px; border: 1px solid var(--hair); border-radius: 999px; cursor: pointer;
  background: rgb(12 13 18 / 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink); font: 500 13.5px var(--sans);
}
.newbtn[hidden] { display: none; }
.newbtn:hover, .newbtn[aria-expanded="true"] { background: rgb(246 241 231 / 0.14); }
.newbtn .dot { display: none; position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); }
.newbtn.unseen .dot { display: block; }

/* ---------------------------------------------------------------- the deck */
main { padding: 0 var(--gutter) 32px; }
.deck {
  width: min(420px, 100%);
  margin: clamp(16px, 9vh, 96px) 0 0;
  padding: 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.eyebrow { margin: 0 0 12px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tint); }
.deck h1 {
  margin: 0; font: 360 clamp(28px, 3.1vw, 40px)/1.08 var(--serif); letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "opsz" 96, "WONK" 0; text-wrap: balance;
}
.deck h1 em { display: block; font-style: italic; font-weight: 300; color: var(--tint); }
.deck h1 .ja { display: block; margin-top: 6px; font-size: 0.5em; color: var(--ink-2); letter-spacing: 0.04em; }
.lede { margin: 14px 0 0; color: var(--ink-2); font-size: 14.5px; }

.now { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); }
.now-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 30%, transparent);
}
/* four bars that breathe while music plays, still when paused */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: auto; }
.eq i { width: 2px; height: 3px; border-radius: 1px; background: var(--tint); opacity: 0.8; transition: height 0.4s; }
.is-playing .eq i { animation: eq 1.4s ease-in-out infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-duration: 1.1s; animation-delay: -0.4s; }
.is-playing .eq i:nth-child(3) { animation-duration: 1.7s; animation-delay: -0.9s; }
.is-playing .eq i:nth-child(4) { animation-duration: 1.25s; animation-delay: -0.2s; }
@keyframes eq { 0% { height: 3px; } 50% { height: 11px; } 100% { height: 5px; } }
.now-title { margin: 12px 0 0; font: 400 22px/1.25 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 36; }
.now-title a { text-decoration: none; }
.now-title a:hover { text-decoration: underline; text-decoration-color: var(--tint); }
.now-title .ja { font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.now-scene { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); min-height: 2.6em; }
/* favourite: beside the song's title, where every player puts it; filled and tinted when it is one */
.now { position: relative; }
.now-title, .now-scene { padding-right: 52px; }
.now .fav { position: absolute; right: -6px; top: 42px; }
.ctl.fav[aria-pressed="true"] { color: var(--tint); }
@keyframes pop { 40% { transform: scale(1.22); } }
.ctl.fav.popped .i { animation: pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1); }

/* ---------------------------------------------------------------- range bars */
.seek { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px; margin-top: 18px; }
.t { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seek .t:last-child { text-align: right; }
.bar {
  --p: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer;
}
.bar::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--tint) var(--p), rgb(246 241 231 / 0.16) var(--p));
}
.bar::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(246 241 231 / 0.16); }
.bar::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--tint); }
.bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 4px rgb(0 0 0 / 0.18); transition: transform 0.15s;
}
.bar::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ink); }
.bar:hover::-webkit-slider-thumb { transform: scale(1.15); }

/* ---------------------------------------------------------------- buttons */
.i { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.i-play { --m: url(/assets/i-play.4d1019df47.svg); }
.i-pause { --m: url(/assets/i-pause.59bd8e8ebc.svg); }
.i-prev { --m: url(/assets/i-prev.eb18a62885.svg); }
.i-next { --m: url(/assets/i-next.5c107211c6.svg); }
.i-volume { --m: url(/assets/i-volume.54fe26baa3.svg); }
.i-mute { --m: url(/assets/i-mute.2d1a838fa1.svg); }
.i-list { --m: url(/assets/i-list.846289c09a.svg); }
.i-timer { --m: url(/assets/i-timer.a371d8aa8e.svg); }
.i-shuffle { --m: url(/assets/i-shuffle.ba27e3f446.svg); }
.i-share { --m: url(/assets/i-share.5d1f3f17f6.svg); }
.i-repeat { --m: url(/assets/i-repeat.b28a850463.svg); }
.i-close { --m: url(/assets/i-close.8f601c366b.svg); }

.ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; height: 48px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; transition: background 0.2s, transform 0.12s, color 0.2s;
}
.ctl:hover { background: rgb(246 241 231 / 0.09); }
.ctl:active { transform: scale(0.95); }
.ctl.sm { min-width: 40px; height: 40px; padding: 0 9px; color: var(--ink-2); }
.ctl.sm .i { width: 19px; height: 19px; }
.ctl.sm:hover, .ctl.sm[aria-pressed="true"], .ctl.sm[aria-expanded="true"] { color: var(--ink); }
.ctl.txt { padding: 0 12px; font-size: 12.5px; letter-spacing: 0.04em; }
.ctl.txt[aria-expanded="true"] { color: var(--tint); }
.ctl[hidden] { display: none; }
/* .sm only: the play button is aria-pressed while playing and its fill IS the tint, so a tinted pause icon
   on it was invisible (seen in the 2026-10-22 boot screenshots; live since launch) */
.ctl.sm[aria-pressed="true"] .i { color: var(--tint); }
.controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 12px; }
.ctl.play {
  width: 68px; height: 68px; background: var(--tint); color: #15161b;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--tint) 60%, transparent);
}
.ctl.play:hover { background: color-mix(in srgb, var(--tint) 88%, white); }
.ctl.play .i { width: 26px; height: 26px; }
.ctl.play[aria-pressed="false"] .i { transform: translateX(1px); }

.tools { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hair); }
/* Work | Code: which playlist loops. On the page only once a Code song has audio (src/player-only.mjs). */
.lists {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 0 14px; padding: 4px;
  border: 1px solid var(--hair); border-radius: 999px; background: rgb(12 13 18 / 0.3);
}
.lists button {
  padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font-size: 13px; letter-spacing: 0.02em; cursor: pointer; transition: background 0.3s, color 0.2s;
}
.lists button:hover { color: var(--ink); }
.lists button[aria-checked="true"] { color: #15161b; background: var(--tint); font-weight: 500; }
.lists [data-list="code"] { font-family: var(--mono); }
.lists button[hidden] { display: none; }
.lists [data-list="fav"] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lists [data-list="fav"] .i { width: 13px; height: 13px; }
.i-heart { --m: url(/assets/i-heart.f5d4026c6b.svg); }
.i-hearted { --m: url(/assets/i-hearted.021191ac24.svg); }
.stations { display: flex; flex-wrap: wrap; gap: 8px; }
.stations[hidden] { display: none; }
.stations button {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--hair); background: transparent;
  color: var(--ink-2); font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.stations button:hover { color: var(--ink); border-color: rgb(246 241 231 / 0.3); }
.stations button[aria-checked="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--tint) 55%, transparent); background: color-mix(in srgb, var(--tint) 16%, transparent); }
.tool-row { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.vol { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; width: 150px; }
.timer-read { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--tint); }
.timer-read:empty { display: none; }
.loopnote { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.loopnote .i { width: 15px; height: 15px; }
/* Data saver (96 kb/s stream) at the end of the loop line, and the network status under it (offline, low data) */
.loopnote .saver {
  margin-left: auto; padding: 5px 11px; border: 1px solid var(--hair); border-radius: 999px; background: transparent;
  color: var(--ink-3); font: 500 11.5px var(--sans); letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
}
.loopnote .saver:hover { color: var(--ink); }
.loopnote .saver[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--tint) 55%, transparent); background: color-mix(in srgb, var(--tint) 16%, transparent); }
html:not(.js) .loopnote .saver { display: none; }
/* "New version" pill: a deploy went live while this tab was open (app.js checkUpdate) */
.update {
  position: fixed; z-index: 20; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgb(18 20 26 / 0.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--hair); box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.6); font-size: 13.5px; color: var(--ink);
  white-space: nowrap;
}
.update[hidden] { display: none; }
.update button {
  padding: 7px 14px; border: 0; border-radius: 999px; background: var(--tint); color: #15161b;
  font: 500 13px var(--sans); cursor: pointer;
}
.netnote { margin: 8px 0 0; font-size: 12px; color: var(--tint); }
.netnote[hidden] { display: none; }

/* ---------------------------------------------------------------- set list and lyrics drawers */
.setlist, .lyricsbox, .newsbox {
  position: fixed; z-index: 10; top: 16px; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px));
  display: flex; flex-direction: column; padding: 20px;
  background: rgb(18 20 26 / 0.8); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7);
  animation: slide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.setlist[hidden], .lyricsbox[hidden], .newsbox[hidden] { display: none; }
.news { list-style: none; margin: 12px 0 0; padding: 4px 4px 8px; overflow: auto; display: grid; gap: 20px; }
.news time { display: block; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tint); }
.news time + h3 { margin-top: 6px; }
.news h3 { margin: 0; font: 400 16px/1.35 var(--serif); color: var(--ink); }
.news ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.news ul button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px;
  border: 0; border-radius: 12px; background: rgb(246 241 231 / 0.05); color: var(--ink); text-align: left; cursor: pointer;
  font-size: 14px;
}
.news ul button:hover { background: rgb(246 241 231 / 0.1); }
.news ul button span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.setlist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 12px; border-bottom: 1px solid var(--hair); }
.setlist-head p { margin: 0; font: 400 17px var(--serif); }
.setlist ol { list-style: none; margin: 12px 0 0; padding: 0; overflow: auto; }
.setlist li button {
  display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  width: 100%; padding: 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer;
}
.setlist li button:hover { background: rgb(246 241 231 / 0.07); }
.setlist li button[aria-current="true"] { background: color-mix(in srgb, var(--tint) 14%, transparent); }
.setlist li button[aria-current="true"] .tt { color: var(--tint); }
.setlist .n { grid-row: span 2; font-size: 12px; color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.setlist .tt { font-size: 14.5px; }
.setlist .st { grid-column: 2; font-size: 12px; color: var(--ink-3); }
/* each row: the song (plays it) and its own favourite toggle beside it - two buttons, never one inside the other */
.setlist li { display: flex; align-items: center; gap: 4px; }
.setlist li button[data-goto] { flex: 1; min-width: 0; }
.setlist li .ctl.fav { display: inline-flex; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 999px; color: var(--ink-3); }
.setlist li .ctl.fav:hover { color: var(--ink); }
.setlist li .ctl.fav[aria-pressed="true"] { color: var(--tint); }
.setlist li .ctl.fav .i { width: 17px; height: 17px; }
.setlist-empty { margin: 16px 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.setlist .d { grid-row: 1; grid-column: 3; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lyricsbox .lyr { overflow: auto; margin-top: 12px; padding: 4px 4px 8px; }
.lyricsbox .lyr-sec + .lyr-sec { margin-top: 20px; }
.lyricsbox h3 { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tint); }
.lyricsbox ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lyricsbox li { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.lyricsbox .lyr-repeat { margin: 0; font-size: 13px; font-style: italic; color: var(--ink-3); }

/* ---------------------------------------------------------------- Code mode: a dark terminal, CSS only
   The Code songs have no paintings yet (Magestican Artist paints scenes later; no image assets here), so the
   stage turns into a terminal: a glow in the genre's colour, faint scanlines, and a prompt naming the song
   (app.js writes data-cmd on .veil). The words below keep the site's serif; the player goes monospace. */
.stage::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease;
  background:
    radial-gradient(ellipse 70% 60% at 72% 42%, color-mix(in srgb, var(--tint) 15%, transparent), transparent 72%),
    repeating-linear-gradient(180deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #0b0e0d, #050607);
}
.is-code .stage::before { opacity: 1; }
.is-code .scene.is-on { opacity: 0; }
.veil::before, .veil::after { position: absolute; bottom: 44px; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.veil::before {
  content: "~/code $ " attr(data-cmd); right: calc(var(--gutter) + 18px);
  font: 400 14px/20px var(--mono); color: var(--tint); white-space: nowrap;
  text-shadow: 0 0 14px color-mix(in srgb, var(--tint) 45%, transparent);
}
.veil::after { content: ""; right: var(--gutter); width: 10px; height: 20px; background: var(--tint); animation: blink 1.1s steps(1) infinite; }
.is-code .veil::before { opacity: 0.85; }
.is-code .veil::after { opacity: 0.8; }
@keyframes blink { 50% { visibility: hidden; } }

/* ---------------------------------------------------------------- Boss Mode: a lit stage, CSS only
   Bryan 2026-10-22: "a kpop, us pop, queen and king of pop level boss mode playlist". Its songs have no paintings
   yet (Artist paints later), so the stage goes dark with two spotlights in the station's colour sweeping across,
   a warm footlight glow and a floor reflection - the arena before the chorus drops. */
.stage .lights {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; overflow: hidden;
  background:
    radial-gradient(ellipse 120% 40% at 50% 112%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 70%),
    linear-gradient(180deg, #07070b 0%, #0d0b14 60%, #120d16 100%);
}
.stage .lights::before, .stage .lights::after {
  content: ""; position: absolute; top: -20%; width: 46vw; height: 140%; transform-origin: 50% 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, transparent), transparent 78%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(18px); mix-blend-mode: screen;
}
.stage .lights::before { left: 8%; animation: sweep-l 9s ease-in-out infinite alternate; }
.stage .lights::after { right: 8%; animation: sweep-r 11s ease-in-out infinite alternate; opacity: 0.8; }
@keyframes sweep-l { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
@keyframes sweep-r { from { transform: rotate(16deg); } to { transform: rotate(-12deg); } }
.is-boss .stage .lights { opacity: 1; }
.is-boss .scene.is-on { opacity: 0; }
.is-boss .deck { border-color: color-mix(in srgb, var(--tint) 30%, transparent); }
/* Power Jazz (Bryan 2026-10-27: "Japanese female vocals like persona"): the same lit stage, but black and red with
   hard diagonal slashes behind the spotlights - the comic-cut look of a JRPG menu, CSS only, no paintings. */
.is-jazz .stage .lights {
  opacity: 1;
  background:
    repeating-linear-gradient(-58deg, transparent 0 9vw, color-mix(in srgb, var(--tint) 16%, transparent) 9vw 10.2vw, transparent 10.2vw 23vw),
    radial-gradient(ellipse 120% 40% at 50% 112%, color-mix(in srgb, var(--tint) 40%, transparent), transparent 70%),
    linear-gradient(180deg, #050505 0%, #0b0606 60%, #140708 100%);
}
.is-jazz .scene.is-on { opacity: 0; }
.is-jazz .deck { border-color: color-mix(in srgb, var(--tint) 34%, transparent); }
/* Bollywood (Bryan 2026-11-01: "Something 90s or 2000s style . Bombay related . Love romantic movies"): no paintings,
   the lit stage becomes Marine Drive at dusk - a marigold-to-indigo monsoon sky over a dark sea, with the Queen's
   Necklace (the bay's curve of street lights) as a row of warm dots on the horizon. CSS only. */
.is-bollywood .stage .lights {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 50%, rgb(255 214 140 / 0.95) 0 1.5px, transparent 2.5px) 0 64% / 3.2vw 6px repeat-x,
    linear-gradient(180deg, transparent 63.5%, color-mix(in srgb, var(--tint) 30%, transparent) 64%, transparent 72%),
    radial-gradient(ellipse 120% 50% at 50% 64%, color-mix(in srgb, var(--tint) 46%, transparent), transparent 70%),
    linear-gradient(180deg, #120a24 0%, #2a1236 38%, #5a2a3c 60%, #0a0d1a 64%, #05070f 100%);
}
.is-bollywood .scene.is-on { opacity: 0; }
.is-bollywood .deck { border-color: color-mix(in srgb, var(--tint) 34%, transparent); }
/* Christmas (Bryan 2026-11-10: "Make me 5 Christmas songs, not too cheesy"): no paintings, the lit stage becomes a
   quiet winter night - deep pine-blue sky, a scatter of soft snow dots and one sagging string of warm bulbs across the
   top. No Santa, no reindeer, no red-and-green candy stripes. CSS only. */
.is-christmas .stage .lights {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 50%, rgb(255 206 140 / 0.95) 0 2px, transparent 3.5px) 0 9% / 5.5vw 10px repeat-x,
    radial-gradient(circle, rgb(255 255 255 / 0.55) 0 1px, transparent 1.6px) 0 0 / 61px 47px,
    radial-gradient(circle, rgb(255 255 255 / 0.35) 0 1.2px, transparent 2px) 23px 17px / 89px 71px,
    radial-gradient(ellipse 110% 45% at 50% 0%, color-mix(in srgb, var(--tint) 28%, transparent), transparent 70%),
    linear-gradient(180deg, #0b1626 0%, #102238 45%, #0a1420 100%);
}
.is-christmas .scene.is-on { opacity: 0; }
.is-christmas .deck { border-color: color-mix(in srgb, var(--tint) 34%, transparent); }
/* Vibes (Bryan 2026-11-11: "It's like trance but modern and vibes and all that"): no paintings, the lit stage becomes
   a city at midnight under a violet neon sky - a magenta-to-indigo glow over a dark skyline line, with faint diagonal
   light streaks like streetlights passing a car window. CSS only. */
.is-vibes .stage .lights {
  opacity: 1;
  background:
    repeating-linear-gradient(-72deg, transparent 0 14vw, color-mix(in srgb, var(--tint) 12%, transparent) 14vw 14.4vw, transparent 14.4vw 31vw),
    linear-gradient(180deg, transparent 70%, rgb(4 3 12 / 0.92) 70.5%),
    radial-gradient(ellipse 130% 55% at 50% 70%, color-mix(in srgb, var(--tint) 44%, transparent), transparent 72%),
    linear-gradient(180deg, #07061a 0%, #1a0f3a 40%, #3a1450 64%, #05040e 100%);
}
.is-vibes .scene.is-on { opacity: 0; }
.is-vibes .deck { border-color: color-mix(in srgb, var(--tint) 34%, transparent); }
/* Double Life (Bryan 2026-11-16, "a full blown persona playlist"): no paintings; the stage is split by a hard diagonal,
   a warm after-school sunset on one side and a red-on-black night on the other - the day life and the night life. CSS only. */
.is-double .stage .lights {
  opacity: 1;
  background:
    linear-gradient(118deg, transparent 0 54%, rgb(214 28 44 / 0.88) 54% 55.2%, transparent 55.2%),
    linear-gradient(118deg, #f6b26b 0%, #e06c4c 30%, #7a2a3a 54%, #120609 54.2%, #1c070b 78%, #050203 100%);
}
.is-double .scene.is-on { opacity: 0; }
.is-double .deck { border-color: color-mix(in srgb, #d61c2c 40%, transparent); }
.is-code .deck { background: rgb(8 11 10 / 0.74); border-color: color-mix(in srgb, var(--tint) 24%, transparent); }
.is-code .chip,
.is-code .now-title,
.is-code .now-scene,
.is-code .loopnote,
.is-code .stations button,
.is-code .setlist li button,
.is-code .setlist-head p { font-family: var(--mono); }
.is-code .now-title { font-size: 19px; letter-spacing: -0.01em; }
.is-code .now-scene { font-size: 12.5px; }
.is-code .setlist-head p { font-size: 15px; }

/* ---------------------------------------------------------------- Sleep: the screen goes dark, CSS only
   Bryan 2026-10-22: "Add a sleep mode". A phone left on the pillow must not light the room: no painting, no grain
   flicker, no sweeping lights - a near-black night with one low moon-glow in the station's colour that breathes
   slowly (one breath per 10 s, about the pace of a resting breath), and a dimmer deck. */
.is-sleep .scene.is-on { opacity: 0; }
.is-sleep .stage::after { animation: none; opacity: 0; }
.is-sleep .stage .lights {
  opacity: 1;
  background:
    radial-gradient(ellipse 90% 30% at 50% 115%, color-mix(in srgb, var(--tint) 10%, transparent), transparent 70%),
    linear-gradient(180deg, #020306 0%, #05060c 70%, #07070e 100%);
}
.is-sleep .stage .lights::before {
  left: 50%; top: 18%; width: 60vmin; height: 60vmin; margin-left: -30vmin; border-radius: 50%; clip-path: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 22%, transparent), transparent 62%);
  filter: blur(24px); mix-blend-mode: normal; animation: breathe 10s ease-in-out infinite;
}
.is-sleep .stage .lights::after { display: none; }
@keyframes breathe { 0%, 100% { opacity: 0.45; transform: scale(0.94); } 50% { opacity: 0.8; transform: scale(1); } }
.is-sleep .deck { background: rgb(4 5 9 / 0.7); border-color: color-mix(in srgb, var(--tint) 14%, transparent); filter: brightness(0.78); }

/* ---------------------------------------------------------------- the words below */
.sheet {
  max-width: 1080px; margin: clamp(48px, 24vh, 280px) auto 0; padding: clamp(24px, 4vw, 56px);
  background: rgb(18 20 26 / 0.82); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  border: 1px solid var(--hair); border-radius: var(--radius);
}
.block + .block { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--hair); }
.block h2 { margin: 0 0 16px; font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 48; }
.block h3 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tint); font-weight: 500; }
.block p { margin: 0 0 14px; max-width: 68ch; color: var(--ink-2); }
.block p:last-child { margin-bottom: 0; }
.block strong { color: var(--ink); font-weight: 600; }

.station-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.station-cards a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border-radius: 16px;
  border: 1px solid var(--hair); text-decoration: none; color: var(--ink-2); transition: border-color 0.2s, background 0.2s;
}
.station-cards a:hover { border-color: color-mix(in srgb, var(--tint) 50%, transparent); background: rgb(246 241 231 / 0.04); }
.station-cards .tt { font: 400 19px var(--serif); color: var(--ink); }

.tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tracks a {
  display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; align-items: center;
  padding: 12px; border-radius: 16px; text-decoration: none; transition: background 0.2s;
}
.tracks a:hover { background: rgb(246 241 231 / 0.06); }
.tracks img { grid-row: span 2; width: 96px; height: 55px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px var(--hair); }
.tracks .tt { align-self: end; font-size: 15px; color: var(--ink); }
.tracks .tt [lang="ja"] { color: var(--ink-3); font-size: 12.5px; margin-left: 4px; }
.tracks .st { align-self: start; font-size: 12.5px; color: var(--ink-3); }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.facts div { padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; }
.facts dt { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; color: var(--ink); }

.lyrics .lyr-sec + .lyr-sec { margin-top: 24px; }
.lyrics ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lyrics li { display: grid; gap: 2px; }
.lyrics .ja { font-size: 17px; color: var(--ink); letter-spacing: 0.03em; }
.lyrics .ro { font: italic 300 14px var(--serif); color: var(--ink-2); }
.lyrics .en { font-size: 13.5px; color: var(--ink-3); }
.lyr-repeat { font-style: italic; }

/* "Play this track" / "Loop this station": only with JS (the music carries across pages, so the page offers its own) */
.cue { display: none; }
.js .cue { display: block; margin: 0 0 20px; }
.cue button {
  padding: 10px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tint) 55%, transparent);
  background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--ink); font: 500 14px var(--sans); cursor: pointer;
}
.cue button:hover { background: color-mix(in srgb, var(--tint) 28%, transparent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--hair); border-radius: 16px; text-decoration: none; font: 400 18px var(--serif); }
.pager a:last-child { text-align: right; }
.pager a span { font: 500 11.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pager a:hover { border-color: color-mix(in srgb, var(--tint) 50%, transparent); }

.foot { max-width: 1080px; margin: 0 auto; padding: 32px var(--gutter) 48px; font-size: 13px; color: var(--ink-3); text-align: center; }
.foot p { margin: 0 0 8px; }
.foot .keys { font-size: 12px; color: var(--ink-2); }
/* Magestican sites network block (tools/network, seo-master R83): 20px gap above, 16px padding inside. */
.mg-network{margin:20px 0 0;padding:16px 0 0;border-top:1px solid rgba(128,128,128,.35);font-size:13px;line-height:1.7}
.mg-network a{text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.mg-network__dot{opacity:.6}

/* ---------------------------------------------------------------- phone: scene on top, deck below it */
@media (max-width: 899px) {
  body { font-size: 15px; }
  .stage { height: 46svh; bottom: auto; }
  .veil { background: linear-gradient(180deg, rgb(12 13 18 / 0.45) 0%, rgb(12 13 18 / 0) 30%, rgb(20 22 28 / 0) 60%, var(--ground) 100%); }
  .top { padding: 14px 16px; }
  .newbtn { padding: 7px 14px; font-size: 13px; }
  main { padding: 0 16px 24px; }
  .deck { width: 100%; margin-top: 18svh; padding: 20px; }
  .deck h1 { font-size: 26px; }
  .lede { font-size: 14px; }
  .now { margin-top: 18px; padding-top: 16px; }
  .controls { gap: 16px; }
  /* stations WRAP on phones: a sideways-scrolling row hid every chip past the third (Underwater, the newest
     station, was invisible at 390 wide - 2026-10-26); the play button sits above them, so the extra row costs nothing */
  .stations button { padding: 7px 12px; font-size: 12.5px; }
  .vol { width: 120px; }
  .sheet { margin-top: 32px; padding: 20px; }
  .block + .block { margin-top: 28px; padding-top: 28px; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
  .setlist, .lyricsbox, .newsbox { top: auto; left: 16px; right: 16px; width: auto; max-height: 72svh; }
  /* the phone stage is the strip between the top bar (~100px) and the deck (18svh lower): the prompt sits
     in the middle of that gap, smaller, so it never touches either */
  .veil::before, .veil::after { top: calc(90px + 9svh); bottom: auto; }
  .veil::before { right: 34px; font-size: 12px; line-height: 18px; }
  .veil::after { right: 16px; width: 9px; height: 18px; }
}
@media (max-width: 380px) {
  .deck h1 { font-size: 23px; }
  .ctl.play { width: 60px; height: 60px; }
  .vol { width: 100px; }
}
/* tablet portrait: a 736px-wide deck stretched the seek bar and the Work/Code switch across the whole screen */
@media (min-width: 600px) and (max-width: 899px) {
  .deck { max-width: 560px; margin-inline: auto; }
}
/* short phones (iPhone SE, any phone with the browser bars showing): the play button must be on the first
   screen. Measured before: play at 596-656 px on a 568 px screen. Decoration (the painting strip) shrinks first,
   then the headline; on the shortest screens the one-line pitch goes (the h1 still says it). */
@media (max-width: 899px) and (max-height: 700px) and (orientation: portrait) {
  .deck { margin-top: 8svh; }
  .deck h1 { font-size: 23px; }
  .lede { font-size: 13.5px; }
}
@media (max-width: 899px) and (max-height: 600px) and (orientation: portrait) {
  .lede { display: none; }
  .now { margin-top: 14px; }
}
/* short desktop / laptop windows (1280x720, 1024x768, 1440x900): the deck was ~795 px tall, so the stations and the
   tool row sat below the fold. Tighten the deck's own rhythm and shrink the headline; gaps stay >= 12 px. */
@media (min-width: 900px) and (max-height: 960px) {
  .top { padding-top: 14px; padding-bottom: 14px; }
  .deck { margin-top: clamp(8px, 2vh, 32px); padding: 22px 24px; }
  .eyebrow { margin-bottom: 8px; }
  .deck h1 { font-size: 30px; }
  .lede { margin-top: 8px; font-size: 14px; }
  .now { margin-top: 16px; padding-top: 14px; }
  .now .fav { top: 36px; }
  .seek { margin-top: 12px; }
  .controls { margin-top: 6px; }
  .ctl.play { width: 58px; height: 58px; }
  .tools { margin-top: 14px; padding-top: 14px; }
  .lists { margin-bottom: 12px; }
  .tool-row { margin-top: 8px; }
  .loopnote { margin-top: 6px; }
}
/* 1280x720 after the playlist switch went to two rows (Bollywood, 2026-11-01): the tool row ended 30 px below the
   fold. Smaller headline, lede and play button first; the gaps above stay. */
@media (min-width: 900px) and (max-height: 760px) {
  .deck { padding: 18px 24px; }
  .deck h1 { font-size: 26px; }
  .lede { font-size: 13px; }
  .ctl.play { width: 52px; height: 52px; }
  .now, .tools { margin-top: 12px; padding-top: 12px; }
}
/* phone on its side (667x375, 844x390): the stacked phone deck put the play button at 468-556 px, below a
   375-390 px screen. Landscape gets the full painting behind and a two-column deck: words left, player right. */
@media (max-height: 520px) and (orientation: landscape) {
  .stage { height: auto; bottom: 0; }
  .veil {
    background:
      linear-gradient(90deg, rgb(12 13 18 / 0.62) 0%, rgb(12 13 18 / 0.2) 42%, rgb(12 13 18 / 0) 70%),
      linear-gradient(180deg, rgb(12 13 18 / 0.35) 0%, rgb(12 13 18 / 0) 18%, rgb(12 13 18 / 0) 72%, rgb(12 13 18 / 0.55) 100%);
  }
  .veil::before, .veil::after { top: auto; bottom: 24px; }
  .top { padding: 8px 16px; }
  main { padding: 0 16px 16px; }
  .deck {
    width: 100%; max-width: none; margin: 0; padding: 16px 20px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start;
    grid-template-rows: auto auto auto 1fr;
  }
  /* left column: eyebrow, h1, lede, now playing; right column: seek, controls, tools (rows 3-4) */
  .eyebrow { grid-column: 1; grid-row: 1; margin-bottom: 6px; }
  .deck h1 { grid-column: 1; grid-row: 2; font-size: 22px; }
  .lede { grid-column: 1; grid-row: 3; margin-top: 8px; font-size: 13px; }
  .now { grid-column: 1; grid-row: 4; margin-top: 12px; padding-top: 12px; }
  .now .fav { top: 34px; }
  .seek { grid-column: 2; grid-row: 1; margin-top: 0; }
  .controls { grid-column: 2; grid-row: 2; margin-top: 0; }
  .ctl.play { width: 56px; height: 56px; }
  .tools { grid-column: 2; grid-row: 3 / span 2; margin-top: 12px; padding-top: 12px; }
  .lists { margin-bottom: 10px; }
  .tool-row { margin-top: 8px; }
  .sheet { margin-top: 24px; }
}
/* ---- loop one (Bryan 2026-10-27: "let me loop songs"): the repeat glyph with a small 1 */
.tool-row { flex-wrap: wrap; row-gap: 8px; }
.vol { flex: 0 1 150px; min-width: 96px; width: auto; }
.loop1 { position: relative; }
.loop1 .one { position: absolute; right: 7px; bottom: 6px; font-size: 9px; font-weight: 800; line-height: 1; color: inherit; }
.loop1[aria-pressed="true"] .one { color: var(--tint); }

/* five playlists in the switch (Super Five joined 2026-10-27): each name on one line; tight padding on phones and,
   below 380px, two rows instead of a name pressed against the pill's edge */
.lists { grid-auto-columns: auto; }
.lists button { padding: 8px 10px; white-space: nowrap; }
@media (max-width: 899px) {
  .lists button { padding: 8px 8px; font-size: 12.5px; }
  .vol { min-width: 72px; }
}
/* six playlists (Power Jazz joined 2026-10-27): at 13px Super Five stuck out of the ~420px deck at 1440, and two rows
   pushed the tools below the first screen at 1280x720. Desktop: one row, a smaller font first (UI spacing rule);
   phones: rows of three. tests/boot.mjs fails if a button leaves the pill. */
@media (min-width: 720px) {
  .lists { gap: 2px; }
  .lists button { padding: 8px 7px; font-size: 12px; letter-spacing: 0; }
}
@media (max-width: 719px) {
  .lists { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); border-radius: 22px; }
}
/* seven playlists (Bollywood joined 2026-11-01): one row at 12px pushed Super Five out of the deck at 1440 and the page
   10px wider than an 844px phone held sideways; a smaller font would leave the names touching. Rows of four. */
@media (min-width: 720px) {
  .lists { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 4px; border-radius: 22px; }
  .lists button { font-size: 12.5px; }
}
/* nine playlists (Vibes joined 2026-11-11): rows of four made a third row and the tool row ended 23-31 px below the
   first screen at 1280x720 and 1024x768 (tests/boot.mjs). Desktop: rows of five, a smaller font first (UI spacing rule). */
@media (min-width: 900px) {
  .lists { grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .lists button { padding: 8px 4px; font-size: 12px; }
}

/* ---- the Super Five karaoke: a mic that calls attention (Bryan 2026-10-27: "Let the karaoke icon call my
   attention"), and a full-screen stage in the same look as the band's site (magestican-music style.css .stage) */
.mic {
  --c: #d14bff; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #ff4f9a)); color: #fff; font: inherit; font-weight: 700;
  font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; cursor: pointer; animation: k-ping 1.8s ease-out infinite;
}
.mic::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: k-blink 1.8s ease-in-out infinite; }
.mic[hidden] { display: none; }
.mic[aria-pressed="true"] { animation: none; }
.mic.big { height: 56px; padding: 0 26px; font-size: 18px; }
@keyframes k-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 75%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes k-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

body.is-staged { overflow: hidden; }
.kstage {
  --c: #d14bff; --mc: var(--c); position: fixed; inset: 0; z-index: 40; overflow: hidden; background: #05040a; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto 24px auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.kstage[hidden] { display: none; }
.k-cover { position: absolute; inset: -10%; background: center / cover no-repeat; filter: blur(42px) saturate(1.5) brightness(0.42); }
.k-beams { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.55; transition: opacity 0.8s; }
.kstage.singing .k-beams { opacity: 1; }
.k-beams i {
  position: absolute; top: -12%; left: 50%; width: 30vmax; height: 130vmax; transform-origin: 50% 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 85%, #fff 15%), transparent 72%); filter: blur(14px); opacity: 0.5;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); animation: k-sweep 7s ease-in-out infinite alternate;
}
.k-beams i:nth-child(1) { --a: -42deg; left: 12%; animation-duration: 6.2s; }
.k-beams i:nth-child(2) { --a: -18deg; left: 32%; animation-duration: 8.1s; animation-delay: -2s; }
.k-beams i:nth-child(3) { --a: 4deg; left: 50%; animation-duration: 5.4s; animation-delay: -1s; }
.k-beams i:nth-child(4) { --a: 22deg; left: 68%; animation-duration: 7.3s; animation-delay: -3s; }
.k-beams i:nth-child(5) { --a: 40deg; left: 88%; animation-duration: 6.8s; animation-delay: -4s; }
@keyframes k-sweep { from { transform: translateX(-50%) rotate(var(--a)); } to { transform: translateX(-50%) rotate(calc(var(--a) * -0.6)); } }
.k-face { position: absolute; inset: 0; pointer-events: none; }
.k-face .layer {
  position: absolute; left: 50%; top: 7%; height: min(70vh, 110vw); aspect-ratio: 4 / 5; transform: translateX(-50%) scale(0.96);
  opacity: 0; transition: opacity 1s ease, transform 1.4s ease;
  -webkit-mask-image: radial-gradient(60% 58% at 50% 42%, #000 50%, transparent 100%); mask-image: radial-gradient(60% 58% at 50% 42%, #000 50%, transparent 100%);
}
.k-face .layer.on { opacity: 1; transform: translateX(-50%) scale(1); }
.k-face .layer.all { height: min(56vh, 60vw); aspect-ratio: auto; width: min(100vw, 1100px); }
.k-face .layer.cover { aspect-ratio: 1; height: min(62vh, 88vw); }
.k-face img, .k-face .mono { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) saturate(1.1); }
.k-face .mono { background: radial-gradient(circle at 50% 40%, var(--c), transparent 70%); }
.k-face .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 100%; }
.k-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.45) 0%, transparent 22%, transparent 40%, rgb(0 0 0 / 0.72) 66%, rgb(0 0 0 / 0.92) 100%); }
.k-top, .k-who, .k-cine, .k-controls, .k-tap { position: relative; z-index: 2; }
.k-top { grid-row: 1; display: flex; align-items: center; gap: 12px; }
.k-title { margin: 0; min-width: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fffc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-x {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; flex: none;
  background: rgb(255 255 255 / 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.k-x:hover { background: rgb(255 255 255 / 0.24); }
.k-x .i { width: 16px; height: 16px; }
.k-who {
  grid-row: 3; justify-self: center; margin: 0 0 14px; padding: 5px 16px; border-radius: 999px; background: var(--mc); color: #120f18;
  font-weight: 900; letter-spacing: 0.18em; font-size: 12px; box-shadow: 0 0 28px color-mix(in srgb, var(--mc) 80%, transparent);
}
.k-who:empty { display: none; }
.k-cine { grid-row: 4; display: grid; gap: 10px; width: 100%; max-width: 1100px; justify-self: center; text-align: center; }
.k-cine p { margin: 0; }
.k-prev, .k-next { color: #fff8; font-size: clamp(13px, 2vw, 19px); min-height: 1.4em; }
.k-cur { font-size: clamp(28px, 7.4vw, 88px); font-weight: 900; line-height: 1.12; min-height: 1.15em; text-wrap: balance; letter-spacing: -0.01em; }
.k-cur.in { animation: k-rise 0.5s ease-out; }
@keyframes k-rise { from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.k-cur .w {
  --p: 0; display: inline-block; background: linear-gradient(90deg, #fff calc(var(--p) * 100%), #ffffff4d calc(var(--p) * 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(var(--p) * 18px) color-mix(in srgb, var(--mc) 90%, transparent)); transform: translateY(calc((1 - var(--p)) * 3px));
}
.k-rom { color: color-mix(in srgb, var(--mc) 45%, #fff); font-style: italic; font-size: clamp(14px, 2.4vw, 24px); min-height: 1.3em; }
.k-tr { font-size: clamp(15px, 2.6vw, 26px); min-height: 1.3em; }
.k-controls {
  grid-row: 6; display: flex; gap: 12px; align-items: center; width: 100%; max-width: 720px; justify-self: center;
  padding: 8px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  --tint: var(--mc);
}
.k-controls .bar { flex: 1; }
.k-controls .ctl.sm { color: #fff; }
.k-tap { grid-row: 1 / -1; display: grid; place-items: center; margin: -16px; background: rgb(0 0 0 / 0.55); }
.k-tap[hidden] { display: none; }
.k-tap .mic { --c: var(--mc); }

@media (prefers-reduced-motion: reduce) {
  .mic, .mic::before, .k-beams i, .k-cur.in { animation: none; }
  .scene, .stage::after, .is-playing .eq i, .veil::after, .stage .lights::before, .stage .lights::after, .is-sleep .stage .lights::before { animation: none; }
  .scene { transition-duration: 0.01s; }
}
