/* ==========================================================================
   iiisland — 屏幕剖面图 / The Measured Elevation
   A drawing sheet for the Mac's top edge. Static HTML/CSS/JS, system fonts.
   ========================================================================== */

:root {
  --paper: #efede5;
  --paper-deep: #e4e0d4;
  --ink: #191a19;
  --ink-soft: #3f443e;
  --muted: #5c605a;
  --accent: #2253dc;
  --accent-ink: #1b3a9e;
  --accent-pale: #dfe5f8;
  --sage: #c7cfc0;
  --sage-deep: #b4bda9;
  --pale: #d7dfe6;
  --pale-deep: #c4ced7;
  --island: #08090a;
  --island-ink: #f2f2ec;
  --island-muted: #b3b8b1;
  --island-rail: #3a3e39;
  --line: rgba(25, 26, 25, 0.16);
  --line-strong: rgba(25, 26, 25, 0.46);
  --line-blue: rgba(34, 83, 220, 0.5);
  --white-line: rgba(255, 255, 255, 0.34);
  --gutter: clamp(20px, 3.6vw, 56px);
  --body: 17px;
  --small: 13px;
  --micro: 11px;
  --h1: clamp(44px, 5.2vw, 76px);
  --display: clamp(38px, 4.4vw, 64px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* The island's own motion: a soft wind-up, one long glide, and a settle you notice
     more than you see. Nothing else on the sheet moves this way. */
  --spring-island: cubic-bezier(0.4, 0.44, 0.2, 1.16);
  --spring-content: cubic-bezier(0.3, 1.08, 0.38, 1);
  --ease-island-close: cubic-bezier(0.4, 0.3, 0.24, 1);
  --island-open-ms: 660ms;
  --island-close-ms: 480ms;
  --radius-island: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--paper);
  scrollbar-color: var(--ink-soft) var(--paper);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--paper);
}

html::-webkit-scrollbar-thumb {
  background: var(--ink-soft);
  border: 3px solid var(--paper);
}

body {
  max-width: 1800px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg .solid {
  fill: currentColor;
  stroke: none;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

p a,
.credits a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p a:hover,
.credits a:hover {
  color: var(--accent-ink);
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.music-island :focus-visible {
  outline-color: var(--island-ink);
}

.download :focus-visible {
  outline-color: #fff;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.symbol-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
}

.small {
  font-size: var(--small);
  line-height: 1.65;
  color: var(--muted);
}

.no-script {
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
  filter: grayscale(1);
}

.head-meta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-head nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.site-head nav > a:not(.head-download) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink-soft);
}

.site-head nav > a:not(.head-download):hover {
  color: var(--accent-ink);
  text-decoration: none;
}

.head-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.head-download svg {
  width: 15px;
  height: 15px;
}

.head-download:hover {
  background: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Hero: elevation sheet + title block
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "elevation"
    "title"
    "foot";
  background: var(--paper);
}

.hero-title {
  grid-area: title;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) minmax(0, 2.2fr);
  border-top: 1.5px solid var(--ink);
  background: var(--paper);
}

.tb {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  padding: 24px clamp(20px, 2.2vw, 32px);
  border-right: 1px solid var(--line);
}

.tb:last-child {
  border-right: 0;
}

.tb-title h1 {
  font-size: var(--h1);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 600;
}

.tb-label {
  margin-top: auto;
  padding-top: 4px;
  font-size: var(--micro);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tb-note p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.tb-note strong {
  color: var(--ink);
  font-weight: 600;
}

.tb-note .small {
  margin-top: 10px;
  font-size: 12px;
}

.tb-action {
  justify-content: space-between;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 54px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
}

.button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.button:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translate(2px, -2px);
}

.button:active {
  transform: translateY(0);
}

.stamp {
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.tb-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.tb-specs div {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.tb-specs dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.tb-specs dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* elevation drawing */

.elevation {
  position: relative;
  grid-area: elevation;
  background: var(--paper);
}

.screen {
  position: relative;
  height: clamp(380px, 54svh, 540px);
  overflow: clip;
  container-type: inline-size;
  isolation: isolate;
  background-color: var(--sage);
  background-image:
    linear-gradient(to right, rgba(25, 26, 25, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 26, 25, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  --island-w-closed: min(280px, 30cqw);
  --island-w-open: min(440px, calc(100cqw - 40px));
  --island-w: var(--island-w-closed);
  --island-h-closed: 44px;
  --island-h-open: 180px;
  --island-h: var(--island-h-closed);
}

.screen:has(.music-island.is-open) {
  --island-w: var(--island-w-open);
  --island-h: var(--island-h-open);
}

.island-rail {
  position: absolute;
  z-index: 4;
  top: -1.5px;
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  pointer-events: none;
}

.capsule {
  grid-column: 1;
  justify-self: end;
  align-self: start;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 7px 13px;
  overflow: hidden;
  background: var(--island);
  color: var(--island-ink);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(9, 10, 9, 0.18);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: 100% 50%;
  transition:
    opacity 0.3s var(--ease),
    transform 0.44s var(--spring-content);
}

/* The capsule keeps its width and is carried left by the rail as the island widens,
   so it never snaps; it only lets go and fades. */
.island-rail:has(.music-island.is-open) > .capsule {
  opacity: 0;
  transform: translateX(-10px) scale(0.97);
  transition:
    opacity 0.24s var(--ease),
    transform 0.36s var(--ease-island-close);
}

.rail-spacer {
  grid-column: 3;
}

/* the island */

.music-island {
  position: relative;
  grid-column: 2;
  width: var(--island-w);
  height: var(--island-h);
  overflow: hidden;
  isolation: isolate;
  background: var(--island);
  color: var(--island-ink);
  border-radius: 0 0 var(--radius-island) var(--radius-island);
  box-shadow:
    0 18px 38px rgba(9, 10, 9, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  /* keep the morph a single-box change: descendants neither reflow the sheet nor repaint outside it */
  contain: layout paint;
  transition:
    width var(--island-close-ms) var(--ease-island-close),
    height var(--island-close-ms) var(--ease-island-close),
    border-radius var(--island-close-ms) var(--ease-island-close);
}

.music-island.is-open {
  border-radius: 0 0 28px 28px;
  transition:
    width var(--island-open-ms) var(--spring-island),
    height var(--island-open-ms) var(--spring-island),
    border-radius var(--island-open-ms) var(--spring-island);
}

.closed-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: var(--island-h-closed);
  padding: 8px 13px;
  color: inherit;
  text-align: left;
  transform-origin: 50% 0;
  transition:
    opacity 0.32s var(--ease),
    transform 0.48s var(--spring-content),
    visibility 0s;
}

.music-island.is-open .closed-trigger {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-5px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.34s var(--ease-island-close),
    visibility 0s 0.34s;
}

.closed-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  overflow: hidden;
  background: #e0e5cf;
  color: #293321;
  transition: background 0.3s, color 0.3s;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cover[data-cover="wind"] {
  background: #e5d2bf;
  color: #4d3529;
}

.cover[data-cover="night"] {
  background: #bacbd9;
  color: #1d3344;
}

.mini-cover {
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.equalizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  flex-shrink: 0;
}

.equalizer i {
  width: 3px;
  height: 14px;
  background: currentColor;
  border-radius: 3px;
  animation: pulse 1s ease-in-out infinite alternate;
}

.equalizer i:nth-child(2) {
  height: 20px;
  animation-delay: -0.7s;
}

.equalizer i:nth-child(3) {
  height: 11px;
  animation-delay: -0.4s;
}

.equalizer i:nth-child(4) {
  height: 17px;
  animation-delay: -0.6s;
}

.equalizer i:nth-child(5) {
  height: 8px;
  animation-delay: -0.2s;
}

.is-paused .equalizer i {
  animation-play-state: paused;
}

@keyframes pulse {
  to {
    transform: scaleY(0.35);
  }
}

/* The panel is laid out once, at its open size, and cropped by the island as the
   island grows: the morph resizes one box instead of reflowing the player every frame. */
.island-content {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: var(--island-w-open);
  height: var(--island-h-open);
  padding: 12px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -16px) scale(0.985);
  transform-origin: 50% 0;
  transition:
    opacity 0.16s var(--ease),
    transform 0.24s var(--ease-island-close),
    visibility 0s 0.24s;
}

.music-island.is-open .island-content {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition:
    opacity 0.3s var(--ease) 0.26s,
    transform 0.54s var(--spring-content) 0.22s,
    visibility 0s;
}

.island-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--island-muted);
  font-variant-numeric: tabular-nums;
}

/* The hit area stays 44px; the circle it draws is 34px, so a 44px disc never
   dominates a 180px-tall panel. */
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  color: inherit;
  background: none;
  border-radius: 50%;
  transition: transform 0.18s;
}

.icon-button svg {
  position: relative;
  z-index: 1;
}

.icon-button::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s;
  pointer-events: none;
}

.icon-button:hover::before {
  background: rgba(255, 255, 255, 0.1);
}

.icon-button:active {
  transform: scale(0.92);
}

/* The chevron is drawn small so the header stays a line rather than a band, but its
   hit area is still 44px. */
.collapse-button {
  position: relative;
  min-width: 30px;
  min-height: 30px;
  padding: 7px;
  margin: -5px 0;
}

.collapse-button::before {
  inset: 0;
}

.collapse-button::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
}

.collapse-button svg {
  width: 16px;
  height: 16px;
}

/* The artwork is exactly as tall as the title, artist and lyric stacked, so the row
   reads as one block rather than a card with a picture in it. */
.now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 76px;
  min-width: 0;
}

.full-cover {
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.track-info {
  min-width: 0;
  flex: 1;
}

.track-title {
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track-artist {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--island-muted);
}

.track-artist-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The timecodes ride the metadata line, which frees the control bar for the rail. */
.track-time {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.track-time-sep {
  margin: 0 3px;
  opacity: 0.55;
}

.island-lyric {
  margin-top: 9px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: var(--island-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.seek-label {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.seek,
.volume {
  --fill: 22%;
  width: 100%;
  min-width: 0;
  height: 30px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--island-ink);
  cursor: pointer;
}

.seek::-webkit-slider-runnable-track,
.volume::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 0;
  background:
    linear-gradient(to right, var(--island-ink) var(--fill), transparent var(--fill)),
    repeating-linear-gradient(to right, var(--island-rail) 0 1px, transparent 1px 10%);
  background-color: var(--island-rail);
}

.seek::-moz-range-track,
.volume::-moz-range-track {
  height: 3px;
  border-radius: 0;
  background: var(--island-rail);
}

.seek::-webkit-slider-thumb,
.volume::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--island-ink);
  border: 0;
  border-radius: 50%;
}

.seek::-moz-range-thumb,
.volume::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--island-ink);
  border: 0;
  border-radius: 50%;
}

.seek:focus-visible,
.volume:focus-visible {
  outline: 1px solid var(--island-ink);
  outline-offset: 4px;
}

/* One control bar: transport, rail and volume share a single 44px row. */
.transport {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  margin-top: 10px;
}

.play-buttons {
  display: flex;
  align-items: center;
  gap: 0;
}

.play-buttons svg {
  width: 16px;
  height: 16px;
}

.play-buttons svg use {
  fill: currentColor;
  stroke-width: 1.4;
}

.play-button {
  color: var(--island);
}

.play-button::before {
  background: var(--island-ink);
}

.play-button:hover::before {
  background: #fff;
}

.play-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.play-button.is-paused .play-shape {
  fill: currentColor;
  stroke-width: 1.5;
}

.volume-control {
  display: flex;
  align-items: center;
  width: 116px;
  gap: 0;
}

.volume-control > .icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}

.volume-control svg {
  width: 16px;
  height: 16px;
}

.volume-control.is-muted {
  opacity: 0.5;
}

/* menu bar */

.menu-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 calc(var(--gutter) + 2px);
  border-bottom: 1px solid rgba(25, 26, 25, 0.1);
  background: linear-gradient(to bottom, rgba(239, 237, 229, 0.42), rgba(239, 237, 229, 0));
  color: rgba(25, 26, 25, 0.78);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.menu-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.menu-app i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.menu-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.menu-status svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
}

.menu-status .battery {
  width: 22px;
  height: 11px;
}

/* dimensions */

/* The dimension lines measure the living object, so they ride the same spring and
   never drift off its edge. */
.dim {
  position: absolute;
  z-index: 3;
  color: var(--accent-ink);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  transition:
    width var(--island-close-ms) var(--ease-island-close),
    height var(--island-close-ms) var(--ease-island-close),
    left var(--island-close-ms) var(--ease-island-close),
    top var(--island-close-ms) var(--ease-island-close);
}

.screen:has(.music-island.is-open) .dim {
  transition:
    width var(--island-open-ms) var(--spring-island),
    height var(--island-open-ms) var(--spring-island),
    left var(--island-open-ms) var(--spring-island),
    top var(--island-open-ms) var(--spring-island);
}

.dim-w {
  top: calc(var(--island-h) + 20px);
  left: 50%;
  width: var(--island-w);
  height: 1px;
  transform: translateX(-50%);
}

.dim-line {
  position: absolute;
  inset: 0;
  background: var(--line-blue);
}

.dim-w::before,
.dim-w::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 1px;
  height: 17px;
  background: var(--line-blue);
}

.dim-w::before {
  left: 0;
}

.dim-w::after {
  right: 0;
}

.dim-value {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0 6px;
  background: var(--sage);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.dim-w .dim-value {
  top: -7px;
  left: 50%;
  transform: translate(-50%, -100%);
}

.dim-value > span {
  grid-area: 1 / 1;
  transition: opacity 0.18s;
}

.dim-value .v-open {
  opacity: 0;
}

.screen:has(.music-island.is-open) .dim-value .v-closed {
  opacity: 0;
}

.screen:has(.music-island.is-open) .dim-value .v-open {
  opacity: 1;
}

.dim-note {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.dim-w .dim-note {
  top: -5px;
  left: calc(100% + 10px);
}

.dim-h {
  top: 0;
  left: calc(50% + var(--island-w) / 2 + 26px);
  width: 1px;
  height: var(--island-h);
}

.dim-h::before,
.dim-h::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 9px;
  height: 1px;
  background: var(--line-blue);
}

.dim-h::before {
  top: 0;
}

.dim-h::after {
  bottom: 0;
}

.dim-h .dim-value {
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}

.dim-h .dim-note {
  top: calc(50% + 14px);
  left: 8px;
}

/* pinned reference plate */

.ref-plate {
  position: absolute;
  top: 84px;
  right: var(--gutter);
  z-index: 5;
  width: clamp(160px, 16vw, 228px);
  margin: 0;
  padding: 9px 9px 26px;
  background: #f6f3ea;
  border: 1px solid rgba(25, 26, 25, 0.35);
  box-shadow: 0 16px 30px rgba(25, 26, 25, 0.16);
  transform: rotate(2.4deg);
  pointer-events: none;
}

.ref-plate::before,
.ref-plate::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 48px;
  height: 17px;
  background: rgba(230, 224, 207, 0.82);
  border: 1px solid rgba(25, 26, 25, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ref-plate::before {
  left: 12%;
  transform: rotate(-4deg);
}

.ref-plate::after {
  right: 12%;
  transform: rotate(3deg);
}

.ref-plate img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.02);
}

.ref-plate figcaption {
  position: absolute;
  right: 9px;
  bottom: 8px;
  left: 9px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* desktop annotations */

.desktop-note {
  position: absolute;
  bottom: 26px;
  left: var(--gutter);
  z-index: 2;
}

.desktop-note p {
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.leader {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 10px;
  width: 1px;
  height: 38px;
  background: var(--line-blue);
}

.leader::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.stage-bottom {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  z-index: 3;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s, border-color 0.2s;
}

.text-button:hover {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
  text-decoration: none;
}

.text-button svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

#expand[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.hero-foot {
  grid-area: foot;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px var(--gutter) 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.demo-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
  font-size: 12px;
  color: var(--muted);
}

.sheet-ref {
  font-size: var(--micro);
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.touch-hint {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .hover-hint {
    display: none;
  }

  .touch-hint {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   Shared section rhythm
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(64px, 8vw, 118px) var(--gutter);
  border-top: 1px solid var(--line-strong);
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 8vw, 140px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  max-width: 12ch;
  font-size: var(--display);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
}

.section-head > p {
  justify-self: end;
  max-width: 420px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-head strong {
  color: var(--ink);
  font-weight: 600;
}

.sheet-no {
  position: absolute;
  top: 2px;
  right: 0;
  color: var(--accent-ink);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Lyrics
   -------------------------------------------------------------------------- */

.lyrics {
  background: var(--paper);
}

/* capsule lyric detail (A-02) */

.capsule-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.capsule-plate,
.capsule-panel {
  min-width: 0;
}

.capsule-plate .compact-scene {
  min-height: 420px;
}

.capsule-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.capsule-scene .compact-rail {
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  margin-top: 0;
  padding: 0 clamp(14px, 2vw, 26px);
}

.capsule-scene .compact-island {
  position: relative;
  width: min(50%, 260px);
  min-width: 0;
  min-height: 46px;
  gap: 16px;
  padding: 8px 14px;
}

.capsule-scene .compact-island .mini-cover {
  width: 28px;
  height: 28px;
}

/* the notch camera dot, so the pair reads as the top edge of the screen */

.compact-cam {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #3a3a3f, #050505 72%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.4px rgba(255, 255, 255, 0.12);
}

/* the demo capsule: geometry is fixed by .cap-hit, the pill animates inside it */

.cap-hit {
  position: relative;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 44%;
}

.cap-live {
  --cap-a: 0.96;
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    opacity 0.42s var(--ease) 0.04s,
    filter 0.42s var(--ease) 0.04s,
    transform 0.52s var(--ease);
}

/* The web demo approximates native glass; text color never changes its plate. */
.cap-live,
.m-cap-live {
  --cap-a: 0.96;
  position: relative;
  isolation: isolate;
  background: transparent;
}

.cap-live::before,
.m-cap-live::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255,255,255,0.24), rgba(183,217,222,0.08) 50%, rgba(255,255,255,0.22));
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), inset 0 -1px 1px rgba(0,0,0,0.18), inset 1px 0 1px rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  opacity: var(--cap-a);
  pointer-events: none;
}

.cap-live[data-font="light"],
.m-cap-live[data-font="light"] { color: #fff; }
.cap-live[data-font="dark"],
.m-cap-live[data-font="dark"] { color: #17191c; }

.cap-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.cap-value input {
  width: 64px;
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
}
.cap-value input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* real pointer: the capsule blurs away under the mouse and floats back */

@media (hover: hover) and (pointer: fine) {
  .cap-hit:hover .cap-live {
    opacity: 0;
    filter: blur(3px);
    transform: translateX(8px) scale(0.95);
    transition:
      background 0.3s var(--ease),
      color 0.3s var(--ease),
      box-shadow 0.3s var(--ease),
      opacity 0.18s var(--ease),
      filter 0.18s var(--ease),
      transform 0.26s var(--ease);
  }
}

/* guidance: a static curved dashed arrow from the lower-right to just below the capsule.
   It is a drawing, not a simulation: no cursor, no motion and no hover state. */

.cap-guide-trail {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 360px;
  height: 330px;
  overflow: visible;
  pointer-events: none;
}

.cap-guide-trail svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cap-guide-line {
  fill: none;
  stroke: rgba(239, 237, 229, 0.75);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 8;
}

.cap-guide-head {
  fill: none;
  stroke: rgba(239, 237, 229, 0.75);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* appearance controls */

.cap-controls {
  border-top: 1px solid var(--line-strong);
}

.cap-control-head,
.cap-hide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent-ink);
  font-size: var(--micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cap-control-head {
  padding: 12px 0 20px;
}

.cap-control-head span:last-child,
.cap-hide-head span:last-child {
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.cap-seg {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--line-strong);
}

.cap-seg-btn {
  min-height: 44px;
  padding: 0 clamp(16px, 2vw, 24px);
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.18s, color 0.18s;
}

.cap-seg-btn:last-child {
  border-right: 0;
}

.cap-seg-btn:hover {
  color: var(--ink);
}

.cap-seg-btn[aria-pressed="true"] {
  background: var(--blue);
  color: var(--paper);
}

.cap-seg-btn:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cap-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.cap-slider label {
  white-space: nowrap;
}

.cap-slider output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cap-alpha {
  --fill: 4%;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.cap-alpha::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 0;
  background-color: var(--line-strong);
  background-image: linear-gradient(to right, var(--blue) var(--fill), transparent var(--fill));
}

.cap-alpha::-moz-range-track {
  height: 2px;
  background: var(--line-strong);
}

.cap-alpha::-moz-range-progress {
  height: 2px;
  background: var(--blue);
}

.cap-alpha::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--blue);
  border: 0;
  border-radius: 0;
}

.cap-alpha::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--blue);
  border: 0;
  border-radius: 0;
}

.cap-alpha:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 4px;
}

.cap-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* auto-hide triggers */

.cap-hide {
  margin-top: 30px;
}

.cap-hide-head {
  padding: 12px 0 18px;
  border-top: 1px solid var(--line-strong);
}

.cap-hide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.cap-hide-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cap-hide-list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-hide-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cap-hide-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cap-hide-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cap-hide-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}



/* compact lyric detail */

.compact-scene {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  background: var(--sage);
  border: 1px solid var(--line-strong);
}

.scene-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(25, 26, 25, 0.2);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.compact-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 124px;
  min-height: 48px;
  padding: 9px 12px;
  background: var(--island);
  color: var(--island-ink);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 20px rgba(9, 10, 9, 0.2);
}

.compact-island .mini-cover {
  width: 26px;
  height: 26px;
}

.compact-message {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Size detail
   -------------------------------------------------------------------------- */

.customize {
  background: var(--sage);
}

.customize .section-head > p {
  color: var(--ink-soft);
}

.size-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin: 0;
  padding: clamp(22px, 3.5vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.size-visual {
  position: relative;
  display: flex;
  justify-content: center;
  justify-self: center;
  width: min(100%, 620px);
  padding: 20px 0 24px;
}

.size-edge {
  position: absolute;
  top: 20px;
  right: 0;
  left: 0;
  height: 1.5px;
  background: var(--ink);
}

.size-edge::before,
.size-edge::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--ink);
}

.size-edge::before {
  left: 0;
}

.size-edge::after {
  right: 0;
}

.size-silhouette {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 440 / 180;
}

.size-shape {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 9px;
  box-sizing: border-box;
  background: var(--island);
  color: var(--island-ink);
  border-radius: 0 0 28px 28px;
  transform: translateX(-50%);
}

.size-compact {
  position: absolute;
  top: 9px;
  right: 18%;
  left: 18%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
}

.size-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.size-wave i {
  width: 3px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
}

.size-wave i:nth-child(2) {
  height: 20px;
}

.size-wave i:nth-child(3) {
  height: 14px;
}

.size-wave i:nth-child(4) {
  height: 18px;
}

.size-wave i:nth-child(5) {
  height: 8px;
}

.size-expanded {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 84px auto;
  align-items: center;
  gap: 0 18px;
  width: max-content;
  max-width: 82%;
  transform: translate(-50%, -50%);
}

.size-artwork {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  padding: 10px;
  aspect-ratio: 1;
  background: #e0e5cf;
  border-radius: 6px;
}

.size-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.size-song {
  grid-column: 2;
  grid-row: 1;
}

.size-song p {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.size-song span {
  display: block;
  margin-top: 5px;
  color: var(--island-muted);
  font-size: 13px;
}

.size-lyric {
  grid-column: 2;
  grid-row: 2;
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.5;
}

.size-dim {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--accent-ink);
  font-size: 9px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.size-dim span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.size-dim b {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.size-dim-a {
  top: 26px;
  left: 0;
  opacity: 0;
}

.size-dim-b {
  right: 0;
  bottom: 6px;
  text-align: right;
}

.size-scale {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.size-showcase figcaption {
  padding-bottom: 8px;
}

.size-showcase figcaption p {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.size-showcase figcaption span {
  display: block;
  max-width: 34ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.size-showcase.arrive .size-shape {
  animation: size-box 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate both;
}

.size-showcase.arrive .size-compact {
  animation: size-compact 4.8s ease infinite alternate both;
}

.size-showcase.arrive .size-expanded {
  animation: size-expanded 4.8s ease infinite alternate both;
}

.size-showcase.arrive .size-dim-a {
  animation: size-compact 4.8s ease infinite alternate both;
}

.size-showcase.arrive .size-dim-b {
  animation: size-expanded 4.8s ease infinite alternate both;
}

@keyframes size-box {
  0%,
  14% {
    width: 100%;
    height: 100%;
    border-radius: 0 0 28px 28px;
  }
  60%,
  100% {
    width: 63.636%;
    height: 24.444%;
    border-radius: 0 0 18px 18px;
  }
}

@keyframes size-compact {
  0%,
  56% {
    opacity: 0;
  }
  66%,
  100% {
    opacity: 1;
  }
}

@keyframes size-expanded {
  0%,
  12% {
    opacity: 1;
  }
  24%,
  100% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Players
   -------------------------------------------------------------------------- */

.players {
  background: var(--pale);
}

.players .section-head > p {
  color: #4a545c;
}

.players-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "picker detail";
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.player-picker {
  grid-area: picker;
  border-top: 1px solid var(--line-strong);
}

.player-picker > button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  transition: color 0.18s;
}

.p-no {
  font-size: var(--micro);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.p-name {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.p-arrow {
  justify-self: end;
  width: 21px;
  height: 21px;
  color: var(--accent-ink);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s, transform 0.18s;
}

.player-picker > button:hover {
  color: var(--ink);
  text-decoration: none;
}

.player-picker > button:hover .p-arrow,
.player-picker > button:focus-visible .p-arrow {
  opacity: 1;
  transform: translateX(0);
}

.player-picker > button[aria-pressed="true"] {
  color: var(--ink);
}

.player-picker > button[aria-pressed="true"] .p-no {
  color: var(--accent);
}

.player-picker > button[aria-pressed="true"] .p-name {
  font-weight: 600;
}

.player-picker > button[aria-pressed="true"] .p-arrow {
  opacity: 1;
  transform: translateX(0);
}

.player-detail {
  grid-area: detail;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.source-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.source-summary img {
  width: 58px;
  height: 58px;
  padding: 3px;
  object-fit: contain;
  background: #f6f3ea;
  border: 1px solid var(--line);
  mix-blend-mode: multiply;
  filter: grayscale(1);
}

.source-summary p:first-child {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.source-summary p:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.capability-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.capability-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.capability-list dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.capability-list dd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.capability-list dd::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.capability-list dd[data-state="partial"]::before {
  background: transparent;
  border: 1px solid var(--accent-ink);
}

.capability-list dd[data-state="no"]::before {
  background: transparent;
  border: 1px solid var(--muted);
  opacity: 0.6;
}

.capability-list dd[data-state="partial"],
.capability-list dd[data-state="no"] {
  color: var(--muted);
  font-weight: 400;
}

.player-note {
  min-height: 40px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.auto-detect {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 13px;
  cursor: pointer;
}

.auto-detect input {
  display: grid;
  place-content: center;
  width: 17px;
  height: 17px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.auto-detect input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.auto-detect input:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

#detection-note {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.questions {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.faq-sheet {
  top: clamp(62px, 8vw, 118px);
  right: var(--gutter);
}

.faq-heading {
  position: relative;
  padding-top: 4px;
}

.faq-heading h2 {
  font-size: var(--display);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.faq-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 2px;
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line-blue);
  font-size: 13px;
}

.faq-heading > a svg {
  width: 13px;
  height: 13px;
}

.faq-list {
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  overflow-anchor: none;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 21px 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  justify-self: end;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 14px no-repeat;
  transition: transform 0.26s var(--ease);
}

.faq-list details.is-expanded summary::after {
  transform: rotate(45deg);
}

.faq-no {
  color: var(--muted);
  font-size: var(--micro);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.faq-answer {
  max-width: 720px;
  padding: 0 0 26px;
}

.faq-answer p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-answer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 500;
}

.answer-note {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Download plate
   -------------------------------------------------------------------------- */

.download {
  position: relative;
  margin: 0 var(--gutter) clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 52px);
  overflow: clip;
  isolation: isolate;
  background: var(--accent);
  color: #fff;
}

.download::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  border: 1px solid var(--white-line);
  pointer-events: none;
}

.download::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 48px;
  opacity: 0.4;
  pointer-events: none;
}

.issue-top,
.download h2,
.big-download,
.issue-bottom {
  position: relative;
  z-index: 1;
}

.issue-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.download h2 {
  margin-top: clamp(22px, 4vw, 44px);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.big-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 4px;
  padding: 8px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: clamp(44px, 8.4vw, 124px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.big-download svg {
  flex-shrink: 0;
  width: 0.6em;
  height: 0.6em;
  transition: transform 0.25s var(--ease);
}

.big-download:hover {
  color: #dbe6ff;
  text-decoration: none;
}

.big-download:hover svg {
  transform: translate(5px, -5px);
}

.issue-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.issue-bottom p {
  font-size: 12px;
}

.barcode {
  flex-shrink: 0;
  width: 112px;
  height: 26px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0 2px,
    transparent 2px 5px,
    #fff 5px 6px,
    transparent 6px 9px
  );
  opacity: 0.85;
}

.issue-code {
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  padding: clamp(26px, 4vw, 44px) var(--gutter) clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line-strong);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-mark {
  margin: clamp(18px, 3vw, 32px) 0 clamp(22px, 3vw, 38px) -0.045em;
  font-size: clamp(80px, 20vw, 300px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-row > p {
  color: var(--ink-soft);
  font-size: 15px;
}

.footer-row > div {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-row a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0;
}

.footer-row svg {
  width: 12px;
  height: 12px;
}

.credits {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  color: var(--muted);
}

.credits p {
  max-width: 560px;
  font-size: 12px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* The sheet plots in from the left edge. A paper sheet on its own composited layer
     wipes the field: one transform instead of re-rasterising the screen's ruled
     background every frame — cheaper on engines that do not composite clip-path. */
  .screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 9;
    background: var(--paper);
    transform-origin: 100% 0;
    animation: sheet-plot 1.05s var(--ease) both;
    pointer-events: none;
  }

  .hero-title {
    animation: fade-up 0.7s var(--ease) 0.12s both;
  }

  .ref-plate,
  .dim,
  .desktop-note,
  .stage-bottom {
    animation: fade-in 0.6s ease 0.42s both;
  }

  @keyframes sheet-plot {
    from {
      transform: scaleX(1);
    }
    to {
      transform: scaleX(0);
    }
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

@keyframes cover-in {
  from {
    opacity: 0.35;
    transform: translateY(9px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.track-change .full-cover,
.track-change .track-info {
  animation: cover-in 0.58s var(--spring-content);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .head-meta {
    display: none;
  }

  .hero-title {
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 2.4fr);
  }

  .ref-plate {
    width: 180px;
  }

  .capsule-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
  }

  .size-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 36px;
  }

  .players-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 40px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .site-head nav {
    gap: 20px;
  }

  .ref-plate,
  .menu-right .menu-app {
    display: none;
  }

  .menu-left span:nth-child(n + 4) {
    display: none;
  }

  .hero-title {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .tb-title {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tb-note {
    border-right: 1px solid var(--line);
  }

  .tb-action {
    border-right: 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .section-head > p {
    justify-self: start;
    padding-bottom: 0;
  }

  .capsule-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .capsule-plate .compact-scene {
    min-height: 300px;
  }

  .players-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "picker"
      "detail";
    gap: 34px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .size-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .size-showcase figcaption {
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-head {
    height: 58px;
  }

  .site-head nav {
    gap: 0;
  }

  .site-head nav > a:not(.head-download) {
    display: none;
  }

  .hero {
    grid-template-areas:
      "title"
      "elevation"
      "foot";
  }

  .hero-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb {
    gap: 8px;
    padding: 14px var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tb-label {
    display: none;
  }

  .tb-action {
    gap: 10px;
  }

  .tb:last-child {
    border-bottom: 0;
  }

  .tb-title h1 {
    font-size: clamp(40px, 10.4vw, 52px);
  }

  .tb-note p {
    font-size: 14px;
  }

  .tb-specs {
    max-width: 300px;
  }

  .elevation {
    padding-top: 0;
  }

  .screen {
    height: 380px;
    --island-w: min(240px, 62cqw);
    --island-h: 44px;
  }

  .screen:has(.music-island.is-open) {
    --island-w: calc(100cqw - 24px);
    --island-h: 286px;
  }

  .island-rail {
    left: 12px;
    right: 12px;
    gap: 6px;
  }

  .menu-bar {
    padding: 0 14px;
    font-size: 10px;
  }

  .menu-left span:nth-child(n + 2),
  .menu-right .menu-status,
  .menu-right .menu-app {
    display: none;
  }

  .menu-left,
  .menu-right {
    gap: 10px;
  }

  .screen .capsule {
    display: none;
  }

  .ref-plate,
  .dim,
  .leader {
    display: none;
  }

  .desktop-note {
    display: none;
  }

  .screen:not(:has(.music-island.is-open)) .desktop-note {
    display: block;
  }

  .stage-bottom {
    right: 16px;
    bottom: 12px;
  }

  .text-button {
    font-size: 12px;
  }

  .hero-foot {
    display: block;
    padding: 11px 16px 12px;
    font-size: 11px;
  }

  .demo-caption {
    display: block;
    font-size: 11px;
  }

  .demo-caption > span {
    display: block;
  }

  .demo-caption > span + span {
    margin-top: 3px;
  }

  .sheet-ref {
    margin-top: 5px;
    font-size: 9px;
  }

  .section {
    padding: 62px var(--gutter);
  }

  .section-head h2 {
    font-size: clamp(34px, 8.4vw, 44px);
  }

  .section-head > p {
    font-size: 14px;
  }

  .compact-scene {
    min-height: 226px;
  }

  .size-showcase {
    padding: 20px;
  }

  .size-visual {
    padding-right: 7%;
    padding-left: 7%;
  }

  .size-dim,
  .size-scale {
    display: none;
  }

  .size-expanded {
    top: 50%;
    right: auto;
    left: 50%;
    grid-template-columns: 64px auto;
    gap: 0 12px;
    max-width: 86%;
  }

  .size-artwork {
    padding: 8px;
  }

  .size-compact {
    display: none;
  }

  .size-song p {
    font-size: 16px;
  }

  .size-song span {
    font-size: 11px;
  }

  .size-lyric {
    margin-top: 9px;
    font-size: 13px;
  }

  .player-picker > button {
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: 64px;
  }

  .p-name {
    font-size: 26px;
  }

  .player-detail {
    padding: 18px;
  }

  .source-summary img {
    width: 48px;
    height: 48px;
  }

  .source-summary p:first-child {
    font-size: 21px;
  }

  .faq-list summary {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 18px 0;
    font-size: 18px;
  }

  .faq-answer {
    padding: 0 26px 24px 44px;
  }

  .download {
    margin: 0 16px 28px;
    padding: 24px;
  }

  .big-download {
    font-size: clamp(40px, 11vw, 64px);
    padding: 6px 0 14px;
  }

  .issue-bottom {
    display: block;
    margin-top: 14px;
  }

  .issue-bottom p {
    font-size: 12px;
  }

  .barcode,
  .issue-code {
    display: none;
  }

  .footer-mark {
    font-size: 24vw;
    margin-bottom: 24px;
  }

  .footer-row {
    display: block;
  }

  .footer-row > div {
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 14px;
    font-size: 11px;
  }

  .credits {
    display: block;
    margin-top: 20px;
  }

  .credits p + p {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 18px;
    --body: 16px;
    --small: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .head-download {
    min-height: 44px;
    padding: 0 11px;
    gap: 7px;
    font-size: 12px;
  }

  .head-download svg {
    width: 13px;
    height: 13px;
  }

  .tb {
    padding: 16px var(--gutter);
  }

  .tb-title h1 {
    font-size: 44px;
  }

  .tb-action .button {
    min-height: 50px;
  }

  .screen {
    height: 344px;
  }

  .screen:has(.music-island.is-open) {
    --island-h: 280px;
  }

  .music-island.is-open {
    border-radius: 0 0 24px 24px;
  }

  .island-content {
    padding: 14px 16px 13px;
  }

  .full-cover {
    width: 74px;
    height: 74px;
    padding: 7px;
  }

  .track-title {
    font-size: 16px;
  }

  .island-lyric {
    margin-top: 9px;
    font-size: 12px;
  }

  .closed-trigger {
    padding: 8px 10px;
    gap: 8px;
  }

  .closed-title {
    font-size: 12px;
  }

  .icon-button {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .volume-control {
    width: 84px;
  }

  .desktop-note p {
    font-size: 18px;
  }

  .section-head h2 {
    font-size: 36px;
  }

  .compact-scene {
    min-height: 220px;
  }

  .scene-top {
    font-size: 11px;
  }

  .size-showcase {
    padding: 16px;
  }

  .size-dim-a {
    top: 22px;
  }

  .size-dim-b,
  .size-scale {
    bottom: 0;
  }

  .size-showcase figcaption p {
    font-size: 22px;
  }

  .player-picker > button {
    grid-template-columns: 28px minmax(0, 1fr) 24px;
  }

  .p-name {
    font-size: 23px;
  }

  .faq-list summary {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    font-size: 17px;
  }

  .faq-answer {
    padding: 0 20px 22px 38px;
  }

  .download {
    margin: 0 12px 24px;
    padding: 20px;
  }

  .download::before {
    inset: 6px;
  }

  .download h2 {
    font-size: 19px;
  }

  .big-download {
    font-size: 38px;
    gap: 12px;
  }

  .footer-mark {
    font-size: 23vw;
  }

  .footer-row > p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .size-shape {
    width: 100%;
    height: 100%;
    border-radius: 0 0 28px 28px;
  }

  .size-compact,
  .size-dim-a {
    opacity: 0;
  }

  .size-expanded,
  .size-dim-b {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Palette shift: ink blue + warm paper, two-colour blocking
   -------------------------------------------------------------------------- */

:root {
  --paper: #f5efea;
  --paper-deep: #e8ded4;
  --ink: #122e8a;
  --ink-soft: #233c7f;
  --muted: #5b6285;
  --accent: #122e8a;
  --accent-ink: #122e8a;
  --accent-pale: #dfe3f2;
  --blue: #122e8a;
  --blue-deep: #0c2270;
  --sage: #122e8a;
  --sage-deep: #0c2270;
  --pale: #122e8a;
  --pale-deep: #0c2270;
  --island: #08090a;
  --island-ink: #f5efea;
  --island-muted: #b8b1ac;
  --island-rail: #3d4050;
  --line: rgba(18, 46, 138, 0.18);
  --line-strong: rgba(18, 46, 138, 0.48);
  --line-blue: rgba(18, 46, 138, 0.5);
  --line-paper: rgba(245, 239, 234, 0.22);
  --line-paper-strong: rgba(245, 239, 234, 0.52);
  --paper-muted: rgba(245, 239, 234, 0.74);
  --white-line: rgba(245, 239, 234, 0.38);
}

html {
  background: var(--paper);
  scrollbar-color: var(--blue) var(--paper);
}

html::-webkit-scrollbar-track {
  background: var(--paper);
}

html::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-color: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
}

::selection {
  background: var(--blue);
  color: var(--paper);
}

:focus-visible {
  outline-color: var(--blue);
}

.site-head :focus-visible,
.screen :focus-visible,
.customize :focus-visible,
.players :focus-visible,
.download :focus-visible,
.compact-scene :focus-visible {
  outline-color: var(--paper);
}

.player-detail :focus-visible,
.size-showcase :focus-visible {
  outline-color: var(--blue);
}

/* header: blue block, paper type, inverted action */

.site-head {
  background: var(--blue);
  color: var(--paper);
  border-bottom: 0;
}

.site-head .brand,
.site-head nav > a:not(.head-download) {
  color: var(--paper);
}

.site-head nav > a:not(.head-download):hover {
  color: var(--paper);
}

.site-head nav > a:not(.head-download):hover::after {
  background: var(--paper);
}

.head-download {
  background: var(--paper);
  color: var(--blue);
  box-shadow: none;
}

.head-download:hover {
  background: var(--paper-deep);
  color: var(--blue);
}

/* hero: paper title block, blue screen, black island */

.hero {
  background: var(--paper);
}

.hero-title {
  border-top-color: var(--blue);
}

.hero .tb-title h1,
.hero .tb-note strong,
.hero .tb-specs dd,
.hero .tb-label {
  color: var(--blue);
}

.hero .tb-label,
.hero .tb-note p,
.hero .small,
.hero-foot {
  color: var(--muted);
}

.hero .button {
  background: var(--blue);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(245, 239, 234, 0.24);
}

.hero .button:hover {
  background: var(--paper);
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.elevation {
  background: var(--paper);
}

.screen {
  background-color: var(--blue);
  border-top: 0;
  color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(245, 239, 234, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 239, 234, 0.075) 1px, transparent 1px);
}

.menu-bar {
  color: var(--paper);
  border-bottom-color: var(--line-paper);
  background: linear-gradient(to bottom, rgba(245, 239, 234, 0.12), rgba(245, 239, 234, 0));
}

.menu-app i {
  background: var(--paper);
}

.menu-status svg {
  color: var(--paper);
}

.screen .dim {
  color: var(--paper);
}

.screen .dim-line,
.screen .dim-w::before,
.screen .dim-w::after,
.screen .dim-h::before,
.screen .dim-h::after {
  background: rgba(245, 239, 234, 0.68);
}

.screen .dim-value {
  background: var(--blue);
  color: var(--paper);
}

.screen .dim-note {
  color: var(--paper-muted);
}

.desktop-note p {
  color: var(--paper);
}

.leader {
  background: rgba(245, 239, 234, 0.62);
}

.leader::before {
  background: var(--paper);
}

.screen .text-button {
  color: var(--paper);
  border-bottom-color: var(--line-paper-strong);
}

.screen .text-button:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.capsule,
.music-island,
.compact-island {
  background: var(--island);
  color: var(--island-ink);
}

.cover {
  background: var(--paper);
}

.cover[data-cover="wind"],
.cover[data-cover="night"] {
  background: var(--paper);
}

.screen .ref-plate {
  background: var(--paper);
  border-color: var(--line-paper-strong);
}

.screen .ref-plate figcaption {
  color: var(--muted);
}

/* lyric scene: blue field, paper text, black mini island */

.compact-scene {
  background-color: var(--blue);
  background-image:
    linear-gradient(to right, rgba(25, 26, 25, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 26, 25, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--paper);
  border-color: var(--line-paper-strong);
}

.scene-top {
  color: var(--paper);
  border-bottom-color: var(--line-paper);
}

.compact-message {
  color: var(--paper);
}

/* lyrics and paper sections keep blue ink */

.lyrics {
  background: var(--paper);
}

.auto-detect input:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.auto-detect input:checked::after {
  border-color: var(--paper);
}

/* size section: blue field, paper drawing card, black notch */

.customize {
  background: var(--blue);
  color: var(--paper);
  border-top-color: var(--line-paper-strong);
}

.customize .section-head h2,
.customize .section-head strong,
.customize .sheet-no {
  color: var(--paper);
}

.customize .section-head > p {
  color: var(--paper-muted);
}

.size-showcase {
  background: var(--paper);
  border-color: var(--line-strong);
}

.size-showcase figcaption p,
.size-showcase figcaption span {
  color: var(--blue);
}

.size-showcase figcaption span {
  color: var(--muted);
}

.size-edge,
.size-edge::before,
.size-edge::after {
  background: var(--blue);
}

.size-dim,
.size-dim b {
  color: var(--blue);
}

.size-dim span,
.size-scale {
  color: var(--muted);
}

.size-artwork {
  background: var(--paper);
}

/* players: blue field, paper schedule card */

.players {
  background: var(--blue);
  color: var(--paper);
  border-top-color: var(--line-paper-strong);
}

.players .section-head h2,
.players .section-head strong,
.players .sheet-no {
  color: var(--paper);
}

.players .section-head > p {
  color: var(--paper-muted);
}

.player-picker {
  border-top-color: var(--line-paper);
}

.player-picker > button {
  color: var(--paper-muted);
  border-bottom-color: var(--line-paper);
}

.player-picker > button:hover,
.player-picker > button[aria-pressed="true"] {
  color: var(--paper);
}

.player-picker > button[aria-pressed="true"] .p-no,
.player-picker > button[aria-pressed="true"] .p-arrow,
.player-picker > button .p-arrow {
  color: var(--paper);
}

.player-detail {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.player-detail .source-summary {
  border-bottom-color: var(--line-strong);
}

.player-detail .source-summary p:first-child,
.player-detail .capability-list dd,
.player-detail .auto-detect {
  color: var(--ink);
}

.player-detail .source-summary p:last-child,
.player-detail .capability-list dt,
.player-detail .player-note,
.player-detail #detection-note {
  color: var(--muted);
}

.player-detail .live-dot,
.player-detail .capability-list dd::before {
  background: var(--blue);
}

/* notes and footer: paper field */

.questions {
  background: var(--paper);
  color: var(--ink);
}

.faq-heading h2,
.faq-heading > a,
.faq-sheet,
.faq-list summary,
.faq-list summary::after {
  color: var(--blue);
}

.faq-list summary::after {
  background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 1px 14px no-repeat;
}

.footer {
  background: var(--paper);
  color: var(--ink);
}

footer {
  background: var(--paper);
  color: var(--ink);
  border-top-color: var(--line-strong);
}

.footer-mark {
  color: var(--blue);
}

.footer-row > p,
.footer-row > div,
.credits {
  color: var(--muted);
}

/* download: blue issue stamp, paper type */

.download {
  background: var(--blue);
  color: var(--paper);
}

.download::before {
  border-color: var(--white-line);
}

.download::after {
  background-image: linear-gradient(rgba(245, 239, 234, 0.08) 1px, transparent 1px);
}

.download h2,
.big-download,
.issue-top,
.issue-bottom,
.issue-code {
  color: var(--paper);
}

.big-download {
  border-bottom-color: var(--line-paper-strong);
}

.big-download:hover {
  color: var(--paper-deep);
}

.barcode {
  background: repeating-linear-gradient(
    90deg,
    var(--paper) 0 2px,
    transparent 2px 5px,
    var(--paper) 5px 6px,
    transparent 6px 9px
  );
}

/* section rules alternate with their field */

.section {
  border-top-color: var(--line-strong);
}

.customize,
.players {
  border-top-color: var(--line-paper-strong);
}

/* mobile island: at most 1/3 of the blue screen width, 1/2 of its height */

@media (max-width: 760px) {
  .hero .tb-action {
    display: none;
  }

  .screen {
    --island-w: 50cqw;
    --island-h: 44px;
    --island-w-open: 50cqw;
    --island-h-open: 150px;
  }

  .screen:has(.music-island.is-open) {
    --island-w: 50cqw;
    --island-h: 150px;
  }

  .music-island.is-open {
    border-radius: 0 0 18px 18px;
  }

  .music-island.is-open .island-content {
    padding: 8px 10px;
  }

  .island-header {
    min-height: 22px;
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .island-header > [data-bind="source"] {
    display: none;
  }

  .collapse-button {
    min-width: 28px;
    min-height: 28px;
    padding: 6px;
  }

  .collapse-button svg {
    width: 13px;
    height: 13px;
  }

  .now-playing {
    gap: 8px;
  }

  .music-island.is-open .full-cover {
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 4px;
  }

  .track-title {
    font-size: 11px;
    line-height: 1.25;
  }

  .track-artist {
    margin-top: 2px;
    overflow: hidden;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .island-lyric {
    display: none;
  }

  .seek-row {
    margin-top: 4px;
    gap: 4px;
    font-size: 8px;
  }

  .seek {
    height: 26px;
  }

  .seek::-webkit-slider-thumb {
    width: 7px;
    height: 7px;
    margin-top: -2.5px;
  }

  .seek::-moz-range-thumb {
    width: 7px;
    height: 7px;
  }

  .transport {
    justify-content: center;
    gap: 4px;
  }

  .play-buttons {
    gap: 2px;
  }

  .play-buttons svg {
    width: 13px;
    height: 13px;
  }

  .transport .icon-button {
    min-width: 28px;
    min-height: 28px;
    padding: 6px;
  }

  .volume-control {
    display: none;
  }
}

/* size loop: slightly faster */

.size-showcase.arrive .size-shape {
  animation-duration: 4s;
}

.size-showcase.arrive .size-compact,
.size-showcase.arrive .size-expanded,
.size-showcase.arrive .size-dim-a,
.size-showcase.arrive .size-dim-b {
  animation-duration: 4s;
}

/* head meta sits on the blue bar too */
.site-head .head-meta {
  color: var(--paper-muted);
}

/* mobile first screen: one promise, one action, then the demo */
@media (max-width: 760px) {
  .tb-support,
  .tb-note .small,
  .tb-specs,
  .hero-foot .sheet-ref {
    display: none;
  }

  .tb-note p {
    font-size: 15px;
    line-height: 1.6;
  }
}

/* mobile: fewer rules, fields carry the separation */
@media (max-width: 760px) {
  .hero-title,
  .tb,
  .tb:last-child,
  .hero-foot,
  .section,
  footer {
    border-top: 0;
    border-bottom: 0;
  }

  .site-head {
    border-bottom: 0;
  }
}

/* mobile first band: paper header, matching the title block below */
@media (max-width: 760px) {
  .site-head {
    background: var(--paper);
    color: var(--blue);
  }

  .site-head .brand,
  .site-head nav > a:not(.head-download) {
    color: var(--blue);
  }

  .head-download {
    background: var(--blue);
    color: var(--paper);
  }

  .head-download:hover {
    background: var(--blue-deep);
    color: var(--paper);
  }
}
