/* musica.studio. One stylesheet, three themes: the software is black on white, the music
   (body.dark) white on black, and contact (body.grey) black on grey. The pixel face is the installer's. */
@font-face{ font-family:"Analog Whispers"; src:url("/fonts/analog-whispers-free.ttf") format("truetype"); font-display:swap; }

:root{
  --bg:#fff;
  --ink:#111;
  --muted:#5f5f5f;
  --faint:#9d9d9d;
  --line:#ebebeb;
  --surface:#f3f3f3;
  --button:#e6e6e6;        /* the installer's button grey */
  --studio:#9a969a;        /* the grey half of the wordmark */
  --wave:#d6d6d6;          /* the unplayed part of the player's waveform */
  --pill-in:#e2e2e2;       /* the inner pill of the Discord pill, a shade off --surface */
  --pixel:"Analog Whispers", ui-monospace, monospace;
  --body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme:light;
}
.dark{
  --bg:#0b0b0b;
  --ink:#f2f2f2;
  --muted:#a3a3a3;
  --faint:#626262;
  --line:#1e1e1e;
  --surface:#151515;
  --button:#232323;
  --studio:#7a767a;
  --wave:#3a3a3a;
  --pill-in:#262626;
  color-scheme:dark;
}
.grey{
  --bg:#c9c9c9;
  --ink:#111;
  --muted:#3b3b3b;
  --faint:#6a6a6a;
  --line:#b4b4b4;
  --surface:#d8d8d8;
  --button:#e6e6e6;
  --studio:#6f6b6f;
  --wave:#a9a9a9;
  --pill-in:#c3c3c3;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--bg); color:var(--ink); font:400 16px/1.6 var(--body); -webkit-font-smoothing:antialiased; transition:background-color .45s ease, color .45s ease; }

/* Page changes: the next page fades its content in; crossing between the light and dark halves
   (js/site.js) fades this one out first while body fades to the other colour. */
main,.foot{ animation:pagein .5s ease backwards; }
.leaving main,.leaving .foot{ animation:pageout .25s ease forwards; }
h1[tabindex="-1"]:focus{ outline:none; }   /* focused by site.js after a swap, for screen readers */
@keyframes pagein{ from{ opacity:0; } }
@keyframes pageout{ to{ opacity:0; } }
a{ color:inherit; text-underline-offset:3px; text-decoration-thickness:1px; }
img{ max-width:100%; display:block; }
button{ font:inherit; color:inherit; }
::selection{ background:var(--ink); color:var(--bg); }
:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
.wrap{ max-width:1140px; margin:0 auto; padding:0 28px; }

/* ---- masthead ---- */
.mast{ --pill-h:43px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 16px; padding-top:26px; padding-bottom:26px; }   /* --pill-h: the Discord pill and the switch share one height */
.brand{ font:26px/1 var(--pixel); text-decoration:none; white-space:nowrap; }
.brand span{ color:var(--studio); transition:color .45s ease; }
.switch{ display:flex; gap:2px; height:var(--pill-h); padding:4px; background:var(--surface); border-radius:999px; transition:background-color .45s ease; }
.switch a{ font:15px/1 var(--pixel); text-decoration:none; color:var(--muted); padding:10px 16px; border-radius:999px; transition:color .2s, background .2s; }
.switch a:hover{ color:var(--ink); }
.switch a[aria-current]{ background:var(--ink); color:var(--bg); }
/* The Discord pill is built like the switch, a track with a pill inside, so the two read as a pair. */
.discord-pill{ display:inline-flex; margin-left:auto; height:var(--pill-h); padding:4px; border-radius:999px; background:var(--surface);
               font:15px/1 var(--pixel); color:var(--muted); text-decoration:none; transition:color .2s, background-color .45s ease; }
.discord-pill span{ display:flex; align-items:center; gap:9px; padding:0 16px; border-radius:999px; background:var(--pill-in); transition:background-color .45s ease; }
.discord-pill i{ font-size:17px; color:#5865f2; }     /* Discord's own blurple */
.discord-pill:hover{ color:var(--ink); }

/* ---- shared pieces ---- */
.btn{ display:inline-block; font:18px/1 var(--pixel); text-decoration:none; color:var(--ink); background:var(--button);
      border:0; padding:16px 34px; cursor:pointer; transition:background .2s, color .2s; }
.btn:hover{ background:var(--ink); color:var(--bg); }
.more{ display:inline-flex; align-items:center; gap:7px; font-size:15px; color:var(--muted); text-decoration:none; }
.more:hover{ color:var(--ink); }
.ver{ font:12px/1 var(--mono); background:var(--surface); border:1px solid var(--line); padding:5px 8px; border-radius:4px; color:var(--ink); }
.label{ font:15px/1 var(--pixel); color:var(--faint); margin:0 0 28px; }
.block{ padding-top:88px; }
.prose{ max-width:68ch; color:var(--muted); }
.prose p{ margin:0 0 1.1em; }
.prose a{ color:var(--ink); }

/* ---- the software carousel ---- */
.lede{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; padding:36px 0 18px; border-bottom:1px solid var(--line); }
.lede h1{ font:34px/1.1 var(--pixel); margin:0; }
.lede p{ margin:0; color:var(--muted); }

.slide{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:40px; min-height:600px; padding:24px 0; }
.slide[hidden]{ display:none; }
.slide .stage{ animation:appear .8s cubic-bezier(.2,.7,.2,1) both; }
.info > *{ animation:rise .7s cubic-bezier(.2,.7,.2,1) both; }
.info > :nth-child(2){ animation-delay:.04s; }
.info > :nth-child(3){ animation-delay:.08s; }
.info > :nth-child(4){ animation-delay:.12s; }
.info > :nth-child(5){ animation-delay:.16s; }
.info > :nth-child(6){ animation-delay:.2s; }
.info > :nth-child(7){ animation-delay:.24s; }
@keyframes rise{ from{ opacity:0; transform:translateY(14px); } }
@keyframes appear{ from{ opacity:0; transform:scale(.92); } }

.count{ font:14px/1 var(--pixel); color:var(--faint); margin:0 0 18px; }
.pname{ font:64px/1 var(--pixel); margin:0 0 18px; letter-spacing:-.01em; overflow-wrap:anywhere; }
.tagline{ font-size:21px; line-height:1.4; font-weight:500; margin:0 0 16px; max-width:30ch; }
.what{ color:var(--muted); margin:0 0 22px; max-width:54ch; }
.devs{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.dev{ display:inline-flex; align-items:center; gap:8px; padding:3px 13px 3px 3px; background:var(--surface); border-radius:999px; font-size:13px; font-weight:500; text-decoration:none; transition:background .2s; }
.dev img{ width:26px; height:26px; border-radius:50%; background:var(--button); }
.dev:hover{ background:var(--button); }
.devs.minor{ gap:6px; margin-top:-8px; }
.devs-title{ font:12px/1 var(--pixel); color:var(--faint); margin:0 0 8px; }
.minor .dev{ gap:6px; padding:2px 10px 2px 2px; font-size:12px; font-weight:400; color:var(--muted); }
.minor .dev img{ width:20px; height:20px; }
.facts{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-size:13px; color:var(--muted); margin:0; }
.actions{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 26px; margin:34px 0 0; position:relative; z-index:5; }   /* the download menu opens over the tabs */

.picker{ display:flex; align-items:center; justify-content:center; gap:12px; padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.tabs{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.tab{ display:flex; align-items:center; gap:10px; font:15px/1 var(--pixel); background:none; border:0; padding:8px 14px 8px 8px; border-radius:999px;
      cursor:pointer; opacity:.45; transition:opacity .2s, background .2s; }
.tab img{ width:28px; height:28px; border-radius:6px; }
.tab:hover{ opacity:.8; }
.tab[aria-selected="true"]{ opacity:1; background:var(--surface); }
.arrow{ width:44px; height:44px; flex:none; border-radius:50%; border:1px solid var(--line); background:none; font-size:18px; cursor:pointer; transition:background .2s, color .2s; }
.arrow:hover{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.org{ text-align:center; color:var(--muted); font-size:14px; margin:28px 0 0; }

/* ---- the box ----
   Six faces around a centre, spun on Y and tipped towards the viewer so the lid shows.
   Sizes are all in terms of --w so the box scales as one piece. */
.stage{ --w:clamp(160px, 21vw, 250px); --h:calc(var(--w) * 1360 / 1160); --d:calc(var(--w) * .24);
        display:grid; justify-items:center; padding:56px 0 8px; cursor:grab; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.stage.grabbing{ cursor:grabbing; }
.stage img{ -webkit-user-drag:none; }
.float{ perspective:1100px; animation:bob 4.5s ease-in-out infinite alternate; }
.box{ position:relative; width:var(--w); height:var(--h); transform-style:preserve-3d; animation:spin 18s linear infinite; }
.face{ position:absolute; background:var(--box); color:var(--box-ink); backface-visibility:hidden; overflow:hidden; }
.face.front,.face.back{ inset:0; }
.face.front{ transform:translateZ(calc(var(--d) / 2)); }
.face.back { transform:rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.face.left,.face.right{ top:0; left:calc((var(--w) - var(--d)) / 2); width:var(--d); height:var(--h); box-shadow:inset 0 0 0 999px rgba(0,0,0,.14); }
.face.right{ transform:rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.face.left { transform:rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.face.top,.face.bottom{ left:0; top:calc((var(--h) - var(--d)) / 2); width:var(--w); height:var(--d); }
.face.top   { transform:rotateX(90deg) translateZ(calc(var(--h) / 2)); box-shadow:inset 0 0 0 999px rgba(255,255,255,.22); }
.face.bottom{ transform:rotateX(-90deg) translateZ(calc(var(--h) / 2)); box-shadow:inset 0 0 0 999px rgba(0,0,0,.3); }
/* A drawn front sits in the same frame the FSVR art uses: 324px in from a 1160px face. */
/* Sized from --w rather than aspect-ratio: Safari lets the padding and the icon stretch an aspect-ratio box taller than wide. */
/* A mapped box (projects.php, box()): the installer's 19 x 24 x 5 box, each face a window on one map. */
.stage.mapped{ --h:calc(var(--w) * 24 / 19); --d:calc(var(--w) * 5 / 19); --u:calc(var(--w) / 19); }
.stage.mapped .face{ background:var(--box) var(--map) no-repeat; background-size:calc(var(--u) * 48) calc(var(--u) * 34); }
.stage.mapped .front { background-position:calc(var(--u) * -5)  calc(var(--u) * -5); }
.stage.mapped .right { background-position:calc(var(--u) * -24) calc(var(--u) * -5); }
.stage.mapped .back  { background-position:calc(var(--u) * -29) calc(var(--u) * -5); padding:0; }
.stage.mapped .left  { background-position:0 calc(var(--u) * -5); }
.stage.mapped .top   { background-position:calc(var(--u) * -5)  0; }
.stage.mapped .bottom{ background-position:calc(var(--u) * -5)  calc(var(--u) * -29); }
.face.front .mark{ position:absolute; left:27.9%; top:23.8%; width:calc(var(--w) * .442); height:calc(var(--w) * .442); border:calc(var(--w) * .0103) solid var(--box-ink); padding:calc(var(--w) * .07); }
.face.front .mark img{ width:100%; height:100%; object-fit:contain; }
.face.front .fname{ position:absolute; left:6%; right:6%; top:71%; text-align:center; font:calc(var(--w) * .08)/1.1 var(--pixel); }
.face.left span,.face.right span{ position:absolute; inset:0; display:grid; place-items:center; writing-mode:vertical-rl; font:calc(var(--d) * .36)/1 var(--pixel); white-space:nowrap; }
.face.back{ display:flex; flex-direction:column; justify-content:center; gap:calc(var(--w) * .04); padding:14%; text-align:center; }
.face.back b{ font:400 calc(var(--w) * .1)/1 var(--pixel); }
.face.back span{ font-size:calc(var(--w) * .052); line-height:1.4; opacity:.85; }
.face.back i{ position:absolute; left:0; right:0; bottom:7%; font:normal calc(var(--w) * .05)/1 var(--pixel); opacity:.7; }
.shadow{ width:calc(var(--w) * .95); height:calc(var(--w) * .14); margin-top:calc(var(--d) * .5 + 40px);
         background:radial-gradient(closest-side, rgba(0,0,0,.34), transparent); animation:shadow 4.5s ease-in-out infinite alternate; }
@keyframes spin{ from{ transform:rotateX(-11deg) rotateY(0); } to{ transform:rotateX(-11deg) rotateY(-360deg); } }
@keyframes bob{ from{ transform:translateY(-14px); } to{ transform:translateY(6px); } }
@keyframes shadow{ from{ transform:scale(.78); opacity:.6; } to{ transform:scale(1); opacity:1; } }

/* ---- a project page ---- */
.crumb{ margin:28px 0 0; font-size:14px; }
.crumb a{ color:var(--muted); text-decoration:none; }
.crumb a:hover{ color:var(--ink); }
.proj-hero{ min-height:0; padding:8px 0 40px; }
.shot{ margin:0; }
.shot img{ width:100%; border:1px solid var(--line); border-radius:6px; }
.shot figcaption{ font-size:13px; color:var(--muted); margin-top:12px; }
.features{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.features li{ background:var(--bg); padding:26px 26px 28px; }
.features b{ display:block; font:17px/1.2 var(--pixel); margin-bottom:10px; }
.features span{ font-size:15px; color:var(--muted); }

/* ---- the music page ---- */
.intro{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:48px; align-items:end; padding:40px 0 36px; border-bottom:1px solid var(--line); }
.intro h1{ font:52px/1.05 var(--pixel); margin:0 0 20px; }
.intro p{ color:var(--muted); margin:0; max-width:60ch; }
.intro .byline{ font:20px/1.2 var(--pixel); color:var(--ink); margin:-6px 0 16px; }
.stats{ display:flex; justify-content:flex-end; gap:40px; margin:0; }
.stats dt{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); }
.stats dd{ font:34px/1.1 var(--pixel); margin:6px 0 0; order:-1; }
.stats div{ display:flex; flex-direction:column; }

.filters{ display:flex; flex-wrap:wrap; gap:8px; padding:26px 0 8px; }
.pill{ font:14px/1 var(--pixel); background:none; border:1px solid var(--line); color:var(--muted); padding:10px 16px; border-radius:999px; cursor:pointer; transition:all .2s; }
.pill:hover{ color:var(--ink); border-color:var(--faint); }
.pill.is-on{ background:var(--ink); border-color:var(--ink); color:var(--bg); }

.era{ padding-top:72px; }
.era[hidden],.track[hidden]{ display:none; }
.era-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px 24px; }
.era-head h2{ font:26px/1.1 var(--pixel); margin:0; }
.era-head span{ font:15px/1 var(--pixel); color:var(--faint); }
.era-blurb{ color:var(--muted); font-size:15px; max-width:68ch; margin:12px 0 18px; }

.track{ display:grid; grid-template-columns:72px minmax(0,1fr) auto auto; gap:6px 22px; align-items:start; padding:22px 0; border-bottom:1px solid var(--line); }
.t-art{ position:relative; width:72px; height:72px; padding:0; border:0; border-radius:4px; overflow:hidden; background:var(--surface); cursor:pointer; }
.t-art img{ width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.t-art::after{ content:"\25B6\FE0E"; position:absolute; inset:0; display:grid; place-items:center; font-size:18px; color:#fff; background:rgba(0,0,0,.5); opacity:0; transition:opacity .2s; }
.track:hover .t-art img{ transform:scale(1.06); }
.track:hover .t-art::after,.track.is-playing .t-art::after{ opacity:1; }
.track.is-playing:not(.is-paused) .t-art::after{ content:"\275A\275A\FE0E"; font-size:14px; letter-spacing:2px; }
.t-title{ margin:0; font:600 18px/1.3 var(--body); }
.t-title button{ all:unset; cursor:pointer; }
.t-title button:hover,.track.is-playing .t-title button{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.t-title button:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
.t-suite{ font-size:13px; color:var(--muted); margin:2px 0 0; font-style:italic; }
.t-meta{ font-size:12px; letter-spacing:.02em; color:var(--faint); margin:4px 0 0; }
.t-desc{ font-size:14px; line-height:1.6; color:var(--muted); margin:10px 0 0; max-width:74ch; }
.t-time{ font:13px/1 var(--mono); color:var(--muted); padding-top:5px; }
.t-dl{ display:grid; place-items:center; width:32px; height:32px; margin-top:-4px; border-radius:50%; color:var(--faint); text-decoration:none; transition:all .2s; }
.t-dl:hover{ background:var(--ink); color:var(--bg); }

.about{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:24px 64px; }
.about .label{ grid-column:1 / -1; margin:0; }
.about-text{ color:var(--muted); }
.about-text p{ margin:0 0 1.1em; }
.about-facts{ margin:0; font-size:14px; }
.about-facts dt{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); }
.about-facts dd{ margin:6px 0 22px; color:var(--muted); }
.timeline{ list-style:none; margin:0; padding:0; max-width:820px; }
.timeline li{ display:grid; grid-template-columns:80px minmax(0,1fr); gap:20px; padding:16px 0; border-top:1px solid var(--line); color:var(--muted); font-size:15px; }
.timeline b{ font:17px/1.5 var(--pixel); color:var(--ink); }

.cf{ display:grid; grid-template-columns:1fr 1fr; gap:18px 20px; max-width:760px; margin-top:28px; }
.cf-row{ display:grid; gap:8px; align-content:start; }
.wide{ grid-column:1 / -1; }
.cf label{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); }
.cf input,.cf textarea{ font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:4px; padding:13px 15px; width:100%; transition:border-color .2s; }
.cf textarea{ resize:vertical; }
.cf input:focus,.cf textarea:focus{ outline:none; border-color:var(--ink); }
.cf-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.cf-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:16px 22px; }
.cf-status{ font-size:14px; color:var(--muted); }
.cf-status.is-ok{ color:var(--ink); }
.cf-status.is-bad{ color:#e5484d; }
.btn:disabled{ opacity:.5; cursor:default; }

/* ---- downloads: the carousel's menu and a project page's section share the rows ---- */
.dl{ position:relative; }
.dl summary{ list-style:none; display:inline-flex; align-items:center; gap:12px; }
.dl summary::-webkit-details-marker{ display:none; }
.dl summary i{ font-size:11px; transition:transform .2s; }
.dl[open] summary{ background:var(--ink); color:var(--bg); }
.dl[open] summary i{ transform:rotate(180deg); }
.dl-menu{ position:absolute; z-index:20; top:calc(100% + 8px); left:0; width:min(360px, calc(100vw - 36px)); padding:8px;
          background:var(--bg); border:1px solid var(--line); border-radius:12px; box-shadow:0 18px 50px rgba(0,0,0,.14); animation:rise .2s ease both; }
.dl-group + .dl-group{ margin-top:6px; padding-top:6px; border-top:1px solid var(--line); }
.dl-os{ display:flex; align-items:center; gap:8px; margin:0; padding:8px 10px 4px; font-size:12px; font-weight:500; color:var(--faint); }
.dl-os i{ font-size:14px; color:var(--ink); }
.dl-item{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 10px; border-radius:8px; font-size:14px; text-decoration:none; transition:background .15s; }
.dl-item:hover{ background:var(--surface); }
.dl-icons{ display:flex; gap:4px; min-width:20px; }
.dl-icons img{ width:20px; height:20px; }
.dl-icons i{ width:20px; text-align:center; font-size:15px; color:var(--muted); }
.dl-label{ font-weight:500; }
.dl-size{ font:12px var(--mono); color:var(--faint); white-space:nowrap; }
.dl-all{ display:block; padding:10px 10px 6px; font-size:12px; color:var(--muted); text-decoration:none; }
.dl-all:hover{ color:var(--ink); }
.label .ver{ margin-left:10px; vertical-align:2px; }
.dl-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; align-items:start; }
.dl-grid .dl-group{ margin:0; padding:8px; border:1px solid var(--line); border-radius:12px; }
#downloads .dl-all{ padding:18px 0 0; font-size:14px; }

/* ---- the contact page ---- */
.contact-page{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); gap:40px 72px; align-items:start; padding-top:40px; }
.contact-page h1{ font:52px/1.05 var(--pixel); margin:0 0 24px; }
.contact-side p{ color:var(--muted); margin:0 0 1.1em; max-width:46ch; }
.elsewhere{ display:flex; flex-wrap:wrap; gap:8px; padding-top:12px; }
.elsewhere a{ font-size:14px; font-weight:500; color:var(--ink); text-decoration:none; background:var(--surface); padding:8px 15px; border-radius:999px; transition:background .2s, color .2s; }
.elsewhere a:hover{ background:var(--ink); color:var(--bg); }
.contact-page .cf{ max-width:none; margin-top:0; }

/* ---- player ---- */
.player{ position:fixed; left:0; right:0; bottom:0; z-index:10; display:grid; grid-template-columns:48px minmax(0,230px) minmax(0,1fr) auto auto;
         align-items:center; gap:18px; padding:12px 28px; background:color-mix(in srgb, var(--bg) 86%, transparent); transition:background-color .45s ease; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-top:1px solid var(--line); }
.player[hidden]{ display:none; }
body.has-player{ padding-bottom:84px; }
.p-art{ width:48px; height:48px; object-fit:cover; border-radius:4px; }
.p-title{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.p-sub{ font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.p-wave{ height:36px; }
.p-wave canvas{ display:block; width:100%; height:100%; cursor:pointer; }
.p-time{ font:12px var(--mono); color:var(--muted); white-space:nowrap; }
.p-btns{ display:flex; align-items:center; gap:4px; }
.pbtn{ display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:50%; background:none; color:var(--ink); font-size:12px; cursor:pointer; text-decoration:none; transition:background .2s; }
.pbtn:hover{ background:var(--button); }
.pbtn-main{ width:44px; height:44px; background:var(--ink); color:var(--bg); font-size:13px; }
.pbtn-main:hover{ background:var(--ink); opacity:.85; }

/* ---- footer ---- */
.foot{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 28px; margin-top:110px; padding:28px 0 40px; border-top:1px solid var(--line); font-size:14px; color:var(--muted); }
.foot p{ margin:0; }
.foot nav{ display:flex; flex-wrap:wrap; gap:6px 22px; }
.foot a{ text-decoration:none; }
.foot a:hover{ color:var(--ink); }

/* ---- small screens ---- */
@media (max-width:880px){
  .slide{ grid-template-columns:1fr; gap:8px; min-height:0; padding-bottom:36px; }
  .stage{ --w:clamp(140px, 40vw, 220px); padding-top:40px; }
  .pname{ font-size:48px; }
  .intro,.about,.contact-page{ grid-template-columns:1fr; }
  .stats{ justify-content:flex-start; }
  .intro h1{ font-size:40px; }
}
@media (max-width:600px){
  .wrap{ padding:0 18px; }
  .mast{ --pill-h:41px; padding-top:18px; padding-bottom:18px; }
  .brand{ font-size:20px; }
  .switch{ width:100%; }
  .discord-pill{ font-size:13px; }
  .discord-pill span{ padding:0 12px; }
  .switch a{ flex:1; text-align:center; font-size:13px; padding:10px 8px; }
  .contact-page h1{ font-size:40px; }
  .lede h1{ font-size:26px; }
  .pname{ font-size:40px; }
  .tagline{ font-size:18px; }
  .picker{ gap:6px; }
  .tab{ padding:6px; font-size:0; }       /* icons only */
  .arrow{ width:38px; height:38px; }
  .intro h1{ font-size:32px; }
  .stats{ gap:28px; }
  .stats dd{ font-size:26px; }
  .track{ grid-template-columns:56px minmax(0,1fr) auto; gap:4px 14px; }
  .t-art{ width:56px; height:56px; }
  .t-time{ display:none; }
  .timeline li{ grid-template-columns:56px minmax(0,1fr); gap:12px; }
  .cf{ grid-template-columns:1fr; }
  .player{ grid-template-columns:40px minmax(0,1fr) auto; gap:4px 12px; padding:10px 14px; }
  .p-art{ width:40px; height:40px; }
  .p-wave{ grid-column:1 / -1; grid-row:2; height:26px; }
  .p-time{ display:none; }
  body.has-player{ padding-bottom:110px; }
}

@media (prefers-reduced-motion:reduce){
  .box{ animation:none; transform:rotateX(-11deg) rotateY(-32deg); }
  .float,.shadow,.info > *,.slide .stage{ animation:none; }
}
