/* Kuyu — one long plaster wall, two-ink posters, paper slips. */

@font-face { font-family: 'Anybody'; font-style: normal; font-weight: 100 900; font-stretch: 50% 150%; font-display: swap;
  src: url(../fonts/anybody-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anybody'; font-style: normal; font-weight: 100 900; font-stretch: 50% 150%; font-display: swap;
  src: url(../fonts/anybody-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url(../fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url(../fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wall: #cbc3b4;
  --wall-2: #b8af9e;
  --paper: #f1ece1;
  --paper-2: #e4dccb;
  --ink: #1c1a17;
  --ink-2: #4a443b;
  --pink: #ff48b0;
  --pink-2: #ee2f9e;
  --blue: #0078bf;
  --blue-2: #0067a5;
  --blue-ink: #00578d;
  --yellow: #ffe800;
  --violet: #1f2380;
  --display: 'Anybody', 'Arial Narrow', sans-serif;
  --text: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-h: 62px;
  --rail-w: 0px;
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: light;
  scrollbar-color: var(--blue-ink) var(--wall-2);
}
@media (min-width: 900px) { :root { --rail-w: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--wall); -webkit-text-size-adjust: 100%; }

body {
  margin: 0; color: var(--ink); background: var(--wall);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; font-optical-sizing: auto;
  caret-color: var(--blue);
  overflow-x: clip;
}
::selection { background: var(--pink); color: var(--ink); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--wall-2); }
::-webkit-scrollbar-thumb { background: var(--blue-ink); border: 3px solid var(--wall-2); border-radius: 6px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }
img, canvas, svg { display: block; max-width: 100%; }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-weight: 820; font-stretch: 122%; font-size: clamp(2.3rem, 4.4vw, 4.2rem); line-height: 0.96; letter-spacing: -0.02em; margin-bottom: 0.45em; }
h3 { font-weight: 760; font-stretch: 115%; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 0.5em; }
.small { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 0.6em 1em; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--display); font-weight: 720; font-stretch: 112%; font-size: 1rem; line-height: 1.1;
  padding: 0.85em 1.25em; border: 0; border-radius: 3px; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }
.btn--pink { background: var(--pink); }
.btn--pink:hover { background: var(--pink-2); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-2); color: #fff; }
.btn--blue[aria-pressed="true"] { background: var(--violet); }
.btn--big { font-size: 1.12rem; padding: 1em 1.5em; }
.ico-on { display: none; }
[aria-pressed="true"] > .ico-on { display: block; }
[aria-pressed="true"] > .ico-off { display: none; }

.chip { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 0.85em 0.5em 0.6em; margin: 0 0.4em 0.45em 0; background: var(--paper-2); border-radius: 3px; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.chip:hover { background: #dbd1bd; }
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 1.15em; height: 1.15em;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); cursor: pointer; display: inline-grid; place-content: center;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked { background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%231c1a17' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat; }
input[type="radio"]:checked { background: radial-gradient(circle, var(--ink) 0 34%, var(--pink) 38%); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline-offset: 2px; }

.range { display: grid; gap: 0.3em; font-size: 1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); }
select {
  -webkit-appearance: none; appearance: none; font: inherit; color: var(--ink); background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231c1a17' stroke-width='2'/%3E%3C/svg%3E") right 0.6em center / 1em no-repeat;
  border: 2px solid var(--ink); border-radius: 2px; padding: 0.45em 2.2em 0.45em 0.6em; cursor: pointer;
}

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  padding: 0 var(--gut) 0 calc(var(--gut) + var(--rail-w) * 0.5);
  background: var(--paper); box-shadow: 0 1px 2px rgba(40, 30, 20, 0.2), 0 8px 18px -14px rgba(40, 30, 20, 0.5);
}
.brand { text-decoration: none; color: var(--ink); flex: none; }
.brand-word { font-family: var(--display); font-weight: 900; font-stretch: 150%; font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1; }
.bar-nav { display: flex; gap: clamp(12px, 1.6vw, 26px); margin-right: auto; }
.bar-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.4em 0; }
.bar-nav a:hover { color: var(--blue-ink); text-decoration: underline; }
.bar-tools { display: flex; align-items: center; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 0.45em; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink); background: transparent; border: 0; padding: 0.55em 0.7em; border-radius: 3px; cursor: pointer; text-decoration: none; }
.tool:hover { background: var(--paper-2); color: var(--ink); }
.tool--sound[aria-pressed="true"] { background: var(--blue); color: #fff; }
.tool--lang { font-family: var(--display); font-weight: 800; font-stretch: 120%; }
.btn--bar { padding: 0.65em 1.05em; font-size: 0.98rem; }
@media (max-width: 899px) {
  .bar-nav { display: none; }
  .bar { justify-content: space-between; }
  .tool--motion { display: none; }
}
@media (max-width: 480px) {
  .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brand-word { font-size: 1.3rem; }
  .bar-tools { gap: 2px; }
}

/* ---------- rail: the one continuous paste line ---------- */
.rail { display: none; }
@media (min-width: 900px) {
  .rail { display: block; position: fixed; z-index: 20; left: 14px; top: calc(var(--bar-h) + 28px); bottom: 28px; width: 56px; }
  .rail ol { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
  .rail-line { position: absolute; left: 27px; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--pink) 0 47%, transparent 47% 53%, var(--blue) 53%); }
  .rail-stone { position: absolute; left: -5.5px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transform: translateY(var(--stone, 0px)); }
  .rail li { position: relative; }
  .rail a { display: grid; justify-items: center; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: 3px; padding: 4px 0 3px; width: 56px; box-shadow: 0 1px 2px rgba(40, 30, 20, 0.22); transition: background-color 0.2s var(--ease); }
  .rail a:hover, .rail a.is-on { background: var(--pink); }
  .rail-n { font-family: var(--display); font-weight: 850; font-stretch: 130%; font-size: 1.05rem; line-height: 1.05; }
  .rail-d { font-size: 0.72rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .rail-water { height: 0; }
}

main { display: block; }
section { position: relative; }

/* ---------- slips and posters ---------- */
.slip {
  position: relative; background: var(--paper); padding: clamp(20px, 2.3vw, 34px); border-radius: 1px;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 1px 1.5px rgba(40, 30, 20, 0.24), 0 12px 26px -16px rgba(40, 30, 20, 0.45);
}
.slot { position: relative; }
.poster {
  position: relative; aspect-ratio: 1 / 1.4142; width: 100%;
  background: var(--paper); transform: rotate(var(--tilt, 0deg));
  container-type: inline-size;
  box-shadow: 0 1px 2px rgba(40, 30, 20, 0.22), 0 14px 30px -18px rgba(40, 30, 20, 0.5);
}
.poster-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster-type { position: absolute; color: var(--ink); }
.poster-type p { margin: 0; }
.pt-title { font-family: var(--display); font-weight: 860; font-stretch: 112%; font-size: var(--fs, 18cqi); line-height: 0.9; letter-spacing: -0.02em; overflow-wrap: break-word; }
.pt-n { font-family: var(--display); font-weight: 900; font-stretch: 150%; font-size: 16cqi; line-height: 0.8; color: var(--blue-ink); }
.pt-meta { font-size: 3.1cqi; font-weight: 650; line-height: 1.25; letter-spacing: 0.02em; }
.poster--a .poster-type, .poster--b .poster-type { left: 7%; right: 7%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: 4cqi; align-items: end; }
.poster--a .poster-type { top: 62.5%; bottom: 4.5%; }
.poster--b .poster-type { top: 4.5%; bottom: 62%; }
.poster--a .pt-title, .poster--b .pt-title { grid-column: 1 / -1; grid-row: 1; align-self: start; }
.poster--a .pt-n, .poster--b .pt-n { grid-column: 2; grid-row: 2; justify-self: end; font-size: 11cqi; }
.poster--a .pt-meta, .poster--b .pt-meta { grid-column: 1; grid-row: 2; padding-bottom: 0.3cqi; }
.poster--c .poster-type { left: 6%; bottom: 7%; max-width: 82%; background: var(--paper); padding: 3.4cqi 4.4cqi 3cqi; transform: rotate(-2.2deg); display: grid; gap: 1.6cqi; box-shadow: 0 1px 2px rgba(40, 30, 20, 0.25); }
.poster--c .pt-n { font-size: 11cqi; }
.poster--cover .poster-type { left: 6%; right: 6%; top: 67.5%; bottom: 4%; display: flex; flex-direction: column; }
.pt-band { font-weight: 900; font-stretch: 150%; font-size: 21cqi; line-height: 0.8; letter-spacing: -0.03em; margin: 0; color: var(--ink); }
.pt-album { font-family: var(--display); font-weight: 760; font-stretch: 118%; font-size: 8.6cqi; line-height: 1; margin-top: 2.6cqi !important; color: var(--blue-ink); }
.pt-line { margin-top: auto !important; font-size: 3.1cqi; font-weight: 650; letter-spacing: 0.02em; }
.poster-hit { display: none; position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; padding: 0; cursor: crosshair; z-index: 2; }
html.gl .poster-hit { display: block; }
.well-hit { display: block; border-radius: 50%; }

html.gl .poster { background: transparent; box-shadow: none; }
html.gl body { background: transparent; }
html.gl .poster-art { visibility: hidden; }
/* The paste: --q runs 0 → 1 as the poster is brushed onto the wall (top first). */
html.gl .poster-type { clip-path: inset(0 0 calc((1 - var(--q, 1)) * 100%) 0); }
html.anim:not(.gl) .slot--poster .poster, html.anim:not(.gl) .slot--cover .poster { clip-path: inset(0 0 calc((1 - var(--q, 1)) * 100%) 0); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; padding: calc(var(--bar-h) + clamp(24px, 4vh, 48px)) var(--gut) clamp(40px, 6vh, 72px) calc(var(--gut) + var(--rail-w)); display: flex; align-items: center; }
.hero-grid { position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 30rem); gap: clamp(28px, 6vw, 110px); align-items: center; justify-content: center; }
.slot--cover { width: min(40vw, calc((100vh - var(--bar-h) - 90px) / 1.4142), 560px); }
.hero-slips { display: grid; gap: clamp(16px, 2.4vh, 26px); justify-items: start; }
.slip--kind { padding-block: 18px; }
.kind { font-family: var(--display); font-weight: 760; font-stretch: 120%; font-size: 1.3rem; line-height: 1.1; margin-bottom: 0.7em; }
.release { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.2em 0.8em; }
.release dt { font-weight: 700; }
.release dd { margin: 0; }
.hero-line { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.42; max-width: 26ch; }
.slip--sound { display: grid; gap: 12px; max-width: 26rem; }
.slip--sound .btn { justify-self: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.walk { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 650; color: var(--ink); text-decoration: none; background: var(--paper); padding: 0.55em 0.9em; border-radius: 3px; box-shadow: 0 1px 2px rgba(40, 30, 20, 0.2); }
.walk:hover { background: var(--yellow); color: var(--ink); }
.tape { position: absolute; margin: 0; background: var(--yellow); color: var(--ink); font-weight: 650; font-size: 0.9rem; padding: 0.35em 0.9em; transform: rotate(-4deg); box-shadow: 0 1px 1px rgba(40, 30, 20, 0.2); }
.tape--demo { left: 0; top: -4px; z-index: 3; }

/* ---------- taşı at ---------- */
.tas { padding: clamp(80px, 14vh, 160px) var(--gut) clamp(80px, 12vh, 140px) calc(var(--gut) + var(--rail-w)); }
.tas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; max-width: 1180px; margin: 0 auto; }
.slip--story { max-width: 38rem; }
.slip--story p { max-width: 62ch; }
.slip--game { margin-top: clamp(0px, 10vh, 120px); }
.game { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 10px; }
.shaft { width: 96px; height: auto; }
.shaft-wall { fill: var(--ink-2); }
.shaft-water { fill: var(--blue); opacity: 0.85; }
.shaft-line { stroke: var(--ink); stroke-width: 2; }
.shaft-ring { fill: none; stroke: var(--pink); stroke-width: 2.5; opacity: 0; }
.shaft-stone { fill: var(--ink); }
.game-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.game-status { font-family: var(--display); font-weight: 760; font-stretch: 115%; font-size: 1.15rem; min-height: 1.6em; }
.game-status.is-splash { color: var(--blue-ink); }
.game-result { margin: 14px 0; display: grid; gap: 0; }
.game-result > div { display: flex; justify-content: space-between; gap: 12px; padding: 0.4em 0; border-bottom: 1px solid var(--paper-2); }
.game-result dt { font-weight: 600; }
.game-result dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.game-result > div:nth-child(2) dd { color: var(--blue-ink); }
.math { margin-top: 0.6em; }

/* ---------- tracks ---------- */
.track-stage {
  min-height: 100vh; display: grid; grid-template-columns: auto minmax(0, 34rem); gap: clamp(28px, 6vw, 110px);
  align-items: center; justify-content: center;
  padding: calc(var(--bar-h) + 24px) var(--gut) 32px calc(var(--gut) + var(--rail-w));
}
.track--right .track-stage { grid-template-columns: minmax(0, 34rem) auto; }
.track--right .slot--poster { order: 2; }
.slot--poster { width: min(36vw, calc((100vh - var(--bar-h) - 96px) / 1.4142), 520px); }
.slip--track h2 { margin-bottom: 0.2em; }
.trk-gloss { font-weight: 650; color: var(--ink-2); margin-bottom: 0.35em; }
.trk-gloss:empty { display: none; }
.trk-meta { font-weight: 700; color: var(--blue-ink); font-variant-numeric: tabular-nums; margin-bottom: 1em; }
.trk-story { font-size: 1.12rem; line-height: 1.55; max-width: 52ch; }
.trk-facts { margin: 1.1em 0 1.2em; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.trk-facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 0.6em; padding: 0.5em 0; border-bottom: 1px solid var(--paper-2); }
.trk-facts dt { font-weight: 750; }
.trk-facts dd { margin: 0; }
.trk-facts .ph { color: var(--ink-2); font-style: italic; }
.hit-hint { display: none; margin-top: 0.9em; }
html.gl .hit-hint { display: block; }

.waterline { padding: clamp(60px, 10vh, 120px) var(--gut) clamp(60px, 10vh, 120px) calc(var(--gut) + var(--rail-w)); position: relative; }
.waterline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: var(--blue); transform-origin: left; transform: scaleX(var(--wl, 1)); }
.slip--water { position: relative; max-width: 34rem; margin: 0 auto; text-align: center; }
.wl-title { font-family: var(--display); font-weight: 860; font-stretch: 140%; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; color: var(--blue-ink); margin-bottom: 0.3em; }

/* ---------- the wall (album overview) ---------- */
.wall-stage { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: calc(var(--bar-h) + 30px) var(--gut) 40px calc(var(--gut) + var(--rail-w)); }
.wall-release { font-weight: 650; margin: 1em 0 1.3em; }
.collage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px) clamp(10px, 1.4vw, 20px); max-width: 720px; justify-self: center; width: 100%; }
.clg { transform: rotate(var(--tilt)); }
.clg a { display: block; text-decoration: none; color: var(--ink); }
.thumb { width: 100%; height: auto; aspect-ratio: 300 / 424; box-shadow: 0 1px 2px rgba(40, 30, 20, 0.25), 0 10px 20px -14px rgba(40, 30, 20, 0.55); background: var(--paper); transition: transform 0.25s var(--ease); }
.clg a:hover .thumb, .clg a:focus-visible .thumb { transform: translateY(-4px) rotate(-1deg); }
.clg-label { display: inline-block; margin-top: 8px; background: var(--paper); padding: 0.2em 0.55em; font-size: 0.95rem; font-weight: 650; box-shadow: 0 1px 1px rgba(40, 30, 20, 0.2); }
.clg-n { font-family: var(--display); font-weight: 860; font-stretch: 130%; color: var(--blue-ink); }

/* ---------- print ---------- */
.print { padding: clamp(80px, 12vh, 140px) var(--gut) clamp(80px, 12vh, 140px) calc(var(--gut) + var(--rail-w)); }
.print-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1240px; margin: 0 auto; }
.print-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 1.3em 0 0.8em; align-items: end; }
.print-controls .chip { margin: 0; }
.print-sheet { background: var(--paper); padding: clamp(10px, 1.6vw, 22px); transform: rotate(-1.2deg); box-shadow: 0 1px 2px rgba(40, 30, 20, 0.22), 0 18px 34px -20px rgba(40, 30, 20, 0.55); max-width: 600px; justify-self: center; width: 100%; }
.print-canvas { width: 100%; height: auto; aspect-ratio: 1; }

/* ---------- listen ---------- */
.listen { padding: clamp(80px, 12vh, 140px) var(--gut) clamp(80px, 12vh, 140px) calc(var(--gut) + var(--rail-w)); }
.listen-grid { display: grid; grid-template-columns: auto minmax(0, 33rem); gap: clamp(28px, 5vw, 90px); align-items: center; justify-content: center; }
.slot--well { width: min(42vw, 72vh, 620px); }
.poster--well { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 10px var(--wall-2), 0 0 0 14px var(--ink-2), 0 20px 40px -18px rgba(40, 30, 20, 0.6); }
html.gl .poster--well { box-shadow: 0 0 0 10px var(--wall-2), 0 0 0 14px var(--ink-2); }
.poster--well .poster-art { border-radius: 50%; }
.well-hint { text-align: center; margin-top: 26px; }
fieldset { border: 0; margin: 0 0 1em; padding: 0; min-width: 0; }
legend { font-weight: 750; padding: 0; margin-bottom: 0.45em; }
.song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.song { display: flex; align-items: baseline; gap: 0.45em; text-align: left; font: inherit; font-size: 0.95rem; line-height: 1.2; font-weight: 600; color: var(--ink); background: var(--paper-2); border: 0; border-radius: 3px; padding: 0.6em 0.7em; cursor: pointer; min-width: 0; }
.song:hover { background: #dbd1bd; }
.song[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.song-n { font-family: var(--display); font-weight: 860; font-stretch: 130%; }
.listen-row { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 24px; margin: 0.4em 0 1em; }
.range--vol { min-width: 160px; flex: 1; }
.listen-now { font-family: var(--display); font-weight: 760; font-stretch: 115%; font-size: 1.1rem; }

/* ---------- band ---------- */
.band { padding: clamp(80px, 12vh, 140px) var(--gut) clamp(60px, 10vh, 120px) calc(var(--gut) + var(--rail-w)); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1200px; margin: 0 auto; }
.ph-label { display: inline-block; background: var(--yellow); padding: 0.15em 0.6em; font-weight: 650; }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.m-role { font-family: var(--display); font-weight: 840; font-stretch: 125%; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; margin-bottom: 0.35em; }
.m-name { font-weight: 650; color: var(--ink-2); margin-bottom: 0.3em; }

/* ---------- credits, tour, form: one size inside the data ---------- */
.credits, .tour, .presave { padding: clamp(60px, 10vh, 120px) var(--gut) clamp(60px, 10vh, 120px) calc(var(--gut) + var(--rail-w)); }
.slip--credits { max-width: 860px; margin: 0 auto; }
.cr { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; font-size: 1rem; }
.cr > div { display: grid; gap: 0.1em; padding: 0.7em 0; border-top: 2px solid var(--ink); }
.cr dt { font-weight: 800; }
.cr dd { margin: 0; color: var(--ink-2); }

.slip--tour { max-width: 1040px; margin: 0 auto; }
.table-wrap { overflow-x: auto; margin-top: 1.2em; }
.tour-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.3; min-width: 560px; }
.tour-table th { text-align: left; font-weight: 800; background: var(--ink); color: var(--paper); padding: 0.6em 0.8em; }
.tour-table td { padding: 0.7em 0.8em; border-bottom: 1px solid var(--paper-2); }
.tour-table td:first-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.tour-table td:nth-child(2) { font-weight: 800; }
.tour-table td:nth-child(3), .tour-table td:nth-child(4) { color: var(--ink-2); }
.tour-table tr.is-on td { background: #ffe1f1; }
.notify { display: inline-flex; align-items: center; gap: 0.5em; cursor: pointer; font-weight: 600; }

.presave-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: start; max-width: 1180px; margin: 0 auto; }
.form { display: grid; gap: 14px; margin-top: 1.2em; font-size: 1rem; }
.field { display: grid; gap: 0.3em; font-weight: 750; }
.field input { font: inherit; font-weight: 500; color: var(--ink); background: #faf7f0; border: 2px solid var(--ink); border-radius: 2px; padding: 0.65em 0.75em; width: 100%; }
.field input::placeholder { color: #6c655a; }
.field input[aria-invalid="true"] { border-color: var(--pink-2); background: #fff0f7; }
.field-set legend { font-weight: 750; }
.consent { display: flex; gap: 0.7em; align-items: flex-start; font-size: 1rem; cursor: pointer; }
.consent input { margin-top: 0.2em; }
.err { margin: -6px 0 0; justify-self: start; background: var(--pink); color: var(--ink); font-weight: 650; padding: 0.4em 0.7em; transform: rotate(-0.8deg); }
.form .btn { justify-self: start; margin-top: 6px; }
.result-area { position: sticky; top: calc(var(--bar-h) + 30px); }
.summary { white-space: pre-wrap; font-family: var(--text); font-size: 1rem; line-height: 1.5; background: var(--paper-2); padding: 14px 16px; margin: 0 0 12px; border-top: 2px solid var(--ink); }

/* ---------- footer ---------- */
.foot { padding: clamp(60px, 10vh, 110px) var(--gut) clamp(40px, 6vh, 64px) calc(var(--gut) + var(--rail-w)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px clamp(24px, 4vw, 64px); align-items: end; max-width: 1240px; margin: 0 auto; background: var(--paper); padding: clamp(24px, 3vw, 44px); box-shadow: 0 1px 2px rgba(40, 30, 20, 0.22); }
.foot-word { font-family: var(--display); font-weight: 900; font-stretch: 150%; font-size: clamp(3.6rem, 9vw, 7.4rem); line-height: 0.8; letter-spacing: -0.03em; margin: 0; color: var(--blue-ink); grid-column: 1 / -1; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4em; }
.linkish { font: inherit; color: var(--blue-ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------- phones ---------- */
@media (max-width: 899px) {
  .hero { padding-top: calc(var(--bar-h) + 28px); }
  .hero-grid, .tas-grid, .print-grid, .band-grid, .presave-grid, .listen-grid, .wall-stage { grid-template-columns: minmax(0, 1fr); }
  .slot--cover { width: min(100%, 440px); justify-self: center; }
  .track-stage, .track--right .track-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 56px; padding-bottom: 56px; }
  .track--right .slot--poster { order: 0; }
  .slot--poster { width: min(100%, 420px); justify-self: center; }
  .slot--well { width: min(100%, 440px); justify-self: center; }
  .slip--game { margin-top: 0; }
  .wall-stage { min-height: 0; }
  .collage { max-width: 520px; }
  .result-area { position: static; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .game { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .shaft { width: 64px; }
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-controls { grid-template-columns: minmax(0, 1fr); }
  .members { grid-template-columns: minmax(0, 1fr); }
  .cr { grid-template-columns: minmax(0, 1fr); }
  .trk-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.1em; }
  .collage { gap: 12px 10px; }
  .clg-label { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- WebGL layers ---------- */
.wall-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.well-gl { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.poster.is-gl { background: transparent; }
.poster.is-gl .poster-art { visibility: hidden; }
.print-controls input[type="checkbox"]:checked { background-color: var(--sw, var(--pink)); }

/* rotated slips never widen the page */
main > section, .waterline { overflow-x: clip; }

/* the tour table restacks on phones: one row per stop, still one type size */
@media (max-width: 560px) {
  .tour-table { min-width: 0; }
  .tour-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tour-table, .tour-table tbody, .tour-table tr, .tour-table td { display: block; }
  .tour-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15em 0.9em; padding: 0.75em 0; border-bottom: 1px solid var(--paper-2); }
  .tour-table td { padding: 0; border: 0; }
  .tour-table td:nth-child(3)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .tour-table td:nth-child(4)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .tour-table td:nth-child(5) { grid-column: 1 / -1; margin-top: 0.3em; }
}
