/* ながやまめめ official — "2.5 中途半端": a room between flat 2D stickers and real depth.
   Warm lace-black (the dress) and white frill, her ice → aqua hair as a hairband that holds
   the bat wings, ✕ clips and one notched pink heart. Night is the default: she streams late.
   Rules: acrylic stickers cast hard offset shadows; the YouTube player is the only soft depth
   and nothing decorative ever touches it. Motif drawings live in assets/motifs.svg. */

:root {
  /* night — the black dress */
  --bg: #141216;
  --bg-2: #1a171d;
  --raised: #1c191e;
  --raised-2: #26222a;
  --text: #f6f1ea;
  --text-soft: #c9c0b6;
  --text-faint: #a8a097;
  --ice: #8ed4e6;
  --aqua: #3aa8bc;
  --heart: #f07aa6;
  --pink-text: #f48db3;
  --on-heart: #1a1216;
  --ink: #1a161c;
  --frill: #f6f1ea;
  --line: rgb(246 241 234 / 0.16);
  --line-strong: #a39c96;
  --shadow-hard: #000000;
  --live: #ff6b8a;
  --gold: #e2c27a;
  --ginger: #e6a15c;
  --focus: #f6f1ea;
  --hair: linear-gradient(90deg, #c8f0f6 0%, #8ed4e6 55%, #3aa8bc 100%);
  --hair-a: #c8f0f6;
  --hair-b: #3aa8bc;
  --lace-dot: rgb(246 241 234 / 0.05);
  --sky-panel: transparent;

  --m-line: #1a161c;
  --m-wing: #1a161c;
  --m-wing-line: #f6f1ea;
  --m-x: #1a161c;
  --m-heart: #f07aa6;
  --m-balloon: #8ed4e6;
  --m-cat: #e6a15c;
  --m-lace-hole: #141216;

  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-hand: "Yomogi", "Zen Maru Gothic", cursive;
  --font-song: "Klee One", "Zen Maru Gothic", serif;
  --font-latin: "Caveat", "Segoe Script", cursive;

  --radius: 16px;
  --room-w: 384px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="day"] {
  /* day — the same dress turned frill-side out */
  --bg: #f6f3ee;
  --bg-2: #f1ede6;
  --raised: #fffcf8;
  --raised-2: #f3eee6;
  --text: #1a161c;
  --text-soft: #3a343c;
  --text-faint: #57505a;
  --ice: #0e6a7c;
  --aqua: #3aa8bc;
  --heart: #f07aa6;
  --pink-text: #9c3a64;
  --on-heart: #1a1216;
  --ink: #1a161c;
  --frill: #ffffff;
  --line: rgb(26 22 28 / 0.14);
  --line-strong: #1a161c;
  --shadow-hard: #1a161c;
  --live: #c22a40;
  --focus: #1a161c;
  --lace-dot: rgb(26 22 28 / 0.05);
  --sky-panel: #e4f3f7;
  --m-lace-hole: #f6f3ee;
  --hair: linear-gradient(90deg, #8ed4e6 0%, #3aa8bc 55%, #1d8597 100%);
  --hair-a: #1d8597;
  --hair-b: #0e6a7c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font-body); font-size: 16.5px; line-height: 1.85;
  background-color: var(--bg);
  background-image: radial-gradient(var(--lace-dot) .6px, transparent .7px);
  background-size: 7px 7px;
  -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
kbd { font-family: ui-monospace, monospace; font-size: .85em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus-visible { outline: 2px dashed var(--line-strong); outline-offset: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--raised); padding: 8px 14px; border-radius: 8px; border: 2px solid var(--text); }
.skip:focus { top: 12px; }
.muted { color: var(--text-faint); }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
.mo { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex: none; overflow: visible; }
.sky { display: none; }

/* ---------- Header with a lace hem ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter); background: var(--bg); }
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; pointer-events: none; background: var(--bg);
  -webkit-mask: radial-gradient(circle at 8px 0, #000 7px, transparent 7.5px) 0 0 / 16px 9px repeat-x;
  mask: radial-gradient(circle at 8px 0, #000 7px, transparent 7.5px) 0 0 / 16px 9px repeat-x;
  filter: drop-shadow(0 1px 0 var(--line-strong));
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-mark { width: 30px; height: 30px; transform: rotate(-10deg); filter: drop-shadow(2px 2px 0 var(--shadow-hard)); transition: transform .2s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-18deg); }
.brand-name { font-family: var(--font-hand); font-size: 23px; line-height: 1; }
.brand-name .shime { color: var(--pink-text); }
.topnav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav a { text-decoration: none; color: var(--text-soft); font-size: 15px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--pink-text); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.toggles { display: flex; gap: 8px; flex: none; align-items: center; }
.chip-btn { min-width: 44px; height: 32px; padding: 0 10px; border-radius: 999px; cursor: pointer; border: 2px solid var(--text); background: transparent; font-size: 13px; font-weight: 700; }
/* theme switch: a track with a notched heart thumb */
.theme-switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 2px solid var(--text); background: var(--raised); cursor: pointer; padding: 0; }
.theme-switch .mo { position: absolute; top: 2px; left: 3px; width: 22px; height: 22px; transition: transform .16s var(--ease); }
:root[data-theme="day"] .theme-switch .mo { transform: translateX(21px); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--room-w); gap: clamp(20px, 3vw, 44px); max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.content { min-width: 0; padding: 28px 0 40px; outline: none; }
.loading { display: grid; place-items: center; padding: 64px 0; font-family: var(--font-hand); font-size: 48px; color: var(--pink-text); }
.loading span { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--text); background: transparent; color: var(--text); font-weight: 700; font-size: 15px;
  transition: transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 3px 4px 0 var(--shadow-hard); }
:root:not([data-theme="day"]) .btn:hover { box-shadow: 3px 4px 0 var(--ice); }
.btn-primary { background: var(--heart); color: var(--on-heart); border-color: var(--heart); }
:root[data-theme="day"] .btn-primary { border-color: var(--ink); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn .mo { width: 18px; height: 18px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; cursor: pointer; text-decoration: none; font-size: 16px; border: 2px solid var(--line-strong); background: transparent; }
.icon-btn:hover { border-color: var(--heart); color: var(--pink-text); }
/* guitar-pick play button */
.pick { position: relative; display: grid; place-items: center; width: 54px; height: 58px; border: 0; padding: 0; cursor: pointer; background: none; color: var(--on-heart); transition: transform .2s var(--ease); }
.pick > .mo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--heart); filter: drop-shadow(3px 3px 0 var(--shadow-hard)); }
:root[data-theme="day"] .pick > .mo { stroke: var(--ink); stroke-width: 2px; }
.pick > span { position: relative; font-size: 17px; margin-top: -8px; }
.pick:hover { transform: rotate(-10deg); }
.pick:active { transform: rotate(4deg) scale(.95); }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--text-soft); white-space: nowrap; }
.tag-form { border-color: var(--ice); color: var(--ice); }
.tag-count { border-color: var(--pink-text); color: var(--pink-text); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.text-link { color: var(--ice); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.as-button { background: none; border: 0; padding: 0; cursor: pointer; }
.back { display: inline-block; margin-bottom: 14px; color: var(--text-soft); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.back:hover { color: var(--text); }
.note { padding: 10px 14px; border-radius: 12px; background: var(--raised); border-left: 4px solid var(--ice); font-size: 14px; color: var(--text-soft); }

/* Her own typed dividers, as real text */
.divider { display: block; margin: 6px 0 30px; text-align: center; color: var(--ice); letter-spacing: .12em; white-space: nowrap; overflow: hidden; font-size: 15px; user-select: none; }

/* Acrylic sticker: hard offset shadow, frill outline */
.acrylic { position: relative; background: var(--raised); border: 2px solid var(--text); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--shadow-hard); }
:root:not([data-theme="day"]) .acrylic { box-shadow: 4px 4px 0 #000, 0 0 0 1px rgb(246 241 234 / .06); }
.charm { align-self: start; position: relative; padding: 10px; background: var(--raised); border: 6px solid var(--frill); outline: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--shadow-hard); }
:root:not([data-theme="day"]) .charm { outline-color: #000; }
.charm::before { content: ""; position: absolute; top: -20px; left: 50%; translate: -50% 0; width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--frill); outline: 2px solid var(--ink); background: transparent; }
.lift { transition: transform .18s var(--ease), box-shadow .18s; }
.lift:hover { transform: translateY(-4px); box-shadow: 6px 7px 0 var(--shadow-hard); }

/* ---------- Hero ---------- */
.hero-wrap { container-type: inline-size; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; padding: 22px 0 6px; }
.hero-copy { position: relative; min-width: 0; padding: 14px 0 6px; container-type: inline-size; }
.eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 500; letter-spacing: .22em; color: var(--ice); }
/* the hairband: her hair colour, with her accessories pinned on it */
.hairband { position: relative; height: 18px; width: min(440px, 84%); border-radius: 999px; background: var(--hair); margin: 20px 0 20px 30px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow-hard); }
:root:not([data-theme="day"]) .hairband { border-color: var(--frill); box-shadow: 3px 3px 0 #000; }
.hairband .mo { position: absolute; top: 50%; }
.hairband .wing { width: 48px; height: 36px; translate: 0 -50%; }
.hairband .wing.l { left: -34px; transform: scaleX(-1) rotate(-14deg); }
.hairband .wing.r { right: -34px; transform: rotate(-14deg); }
.hairband .clip { width: 18px; height: 18px; translate: 0 -50%; }
.hairband .clip.c1 { left: 28%; transform: rotate(-18deg); }
.hairband .clip.c2 { left: 60%; transform: rotate(12deg); }
.hairband .heart { width: 42px; height: 42px; right: 14%; translate: 0 -56%; transform: rotate(-8deg); filter: drop-shadow(2px 2px 0 var(--ink)); transition: transform .2s var(--ease); }
.hero:has(.btn-primary:hover, .btn-primary:focus-visible) .hairband .heart { transform: rotate(-18deg); }
.hero-name { margin: 0; font-family: var(--font-hand); font-weight: 400; font-size: clamp(40px, 14.2cqi, 104px); line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
.hero-name .shime { display: inline-block; margin-left: .04em; font-size: .7em; color: var(--pink-text); transform: rotate(-10deg) translateY(-.06em); }
.hero-latin { display: block; margin: 0 0 0 4px; font-family: var(--font-latin); font-weight: 600; font-size: clamp(26px, 3vw, 34px); color: var(--ice); line-height: 1.1; }
.hero-quote { margin: 16px 0 2px; font-size: 17px; color: var(--text); }
.hero-quote::before { content: "「"; color: var(--text-faint); }
.hero-quote::after { content: "」"; color: var(--text-faint); }
.bio-line { margin: 2px 0 16px; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13.5px; color: var(--text-soft); }
.bio-line .shime { color: var(--pink-text); }

/* The 俺色スカイ diorama: arched window, sky, guitar against the frame, cat asleep on the sill */
.hero-side { margin: 0; display: grid; justify-items: center; gap: 10px; }
.diorama { position: relative; width: 270px; padding: 40px 54px 34px 26px; }
.window { position: relative; aspect-ratio: 3 / 4; border-radius: 120px 120px 14px 14px; overflow: hidden; border: 6px solid var(--frill); outline: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--shadow-hard); background: #0f1a2b; }
:root:not([data-theme="day"]) .window { outline-color: #000; }
.sky-pane { position: absolute; inset: 0; background: linear-gradient(180deg, #0d1424 0%, #1b2c47 55%, #3a6f86 88%, #8ed4e6 120%); }
:root[data-theme="day"] .sky-pane { background: linear-gradient(180deg, #7fcfe9 0%, #b9e8f5 55%, #e4f6fa 100%); }
.sky-pane i { position: absolute; border-radius: 50%; background: #f6f1ea; width: 3px; height: 3px; box-shadow: 0 0 6px #f6f1ea; animation: twinkle 3s ease-in-out infinite alternate; }
.sky-pane .s1 { left: 24%; top: 26%; }
.sky-pane .s2 { left: 66%; top: 18%; animation-delay: -1s; }
.sky-pane .s3 { left: 52%; top: 44%; width: 2px; height: 2px; animation-delay: -2s; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.sky-pane .cloud { display: none; }
:root[data-theme="day"] .sky-pane i { display: none; }
:root[data-theme="day"] .sky-pane .cloud { display: block; left: 18%; top: 34%; width: 64px; height: 22px; border-radius: 20px; background: #fff; box-shadow: 30px -10px 0 4px #fff, 56px 2px 0 -2px #fff; animation: none; }
.window::before, .window::after { content: ""; position: absolute; background: var(--frill); z-index: 1; }
.window::before { left: 50%; top: 0; bottom: 0; width: 6px; translate: -50% 0; }
.window::after { left: 0; right: 0; top: 52%; height: 6px; }
.window.has-art::before, .window.has-art::after { display: none; }
.diorama:has(.window.has-art) :is(.d-guitar, .d-cat, .d-vase, .balloons, .notes, .sill) { display: none; }
.diorama:has(.window.has-art) { padding: 20px 10px 10px; width: 300px; }
.window-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lace-top { position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 2; background: var(--ink);
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) 0 0 / 16px 18px repeat-x;
  mask: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) 0 0 / 16px 18px repeat-x; }
:root:not([data-theme="day"]) .lace-top { background: #000; }
.sill { position: relative; height: 16px; margin: 0 -18px 0 -10px; border-radius: 4px; background: var(--frill); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow-hard); z-index: 2; }
.d-guitar { position: absolute; right: 6px; bottom: 30px; width: 64px; height: 128px; transform: rotate(10deg); z-index: 3; --m-line: var(--ink); }
.d-cat { position: absolute; left: 16px; bottom: 44px; width: 116px; height: 78px; z-index: 3; --m-line: var(--ink); }
.d-cat, .d-guitar, .d-vase { filter: drop-shadow(2px 0 0 var(--frill)) drop-shadow(-2px 0 0 var(--frill)) drop-shadow(0 2px 0 var(--frill)) drop-shadow(0 -2px 0 var(--frill)) drop-shadow(4px 4px 0 var(--shadow-hard)); }
.d-vase { position: absolute; left: 132px; bottom: 44px; width: 24px; height: 42px; z-index: 3; --m-line: var(--ink); }
.diorama .balloons { position: absolute; right: 2px; top: 0; width: 80px; height: 110px; z-index: 4; pointer-events: none; }
.diorama .balloons .mo { position: absolute; width: 26px; height: 48px; animation: bob 6s ease-in-out infinite alternate; }
.diorama .balloons .b1 { left: 4px; top: 22px; }
.diorama .balloons .b2 { left: 28px; top: 0; --m-balloon: #f07aa6; animation-delay: -2s; }
.diorama .balloons .b3 { left: 50px; top: 26px; --m-balloon: #f6f1ea; animation-delay: -4s; }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-7px) rotate(3deg); } }
.notes { position: absolute; right: 22px; bottom: 120px; width: 60px; height: 120px; z-index: 4; pointer-events: none; }
.notes span { position: absolute; bottom: 0; font-size: 22px; color: var(--ice); opacity: 0; text-shadow: 2px 2px 0 var(--shadow-hard); }
.notes span:nth-child(2) { left: 22px; color: var(--pink-text); }
.notes span:nth-child(3) { left: 40px; }
.is-playing .notes span { animation: drift 3.2s ease-out infinite; }
.is-playing .notes span:nth-child(2) { animation-delay: 1.1s; }
.is-playing .notes span:nth-child(3) { animation-delay: 2.2s; }
@keyframes drift { 0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-14px, -100px) rotate(10deg); } }
.diorama:hover .d-cat { translate: 0 -3px; transition: translate .2s var(--ease); }
.hero-credit { margin: 0; font-size: 14px; color: var(--text-soft); text-align: center; }
.hero-credit a { color: var(--ice); }

.hero-tools { grid-column: 1 / -1; display: grid; gap: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-stats { display: flex; gap: 28px; margin: 4px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 13px; color: var(--text-faint); letter-spacing: .1em; }
.hero-stats dd { margin: 0; font-family: var(--font-hand); font-size: 34px; line-height: 1.1; }

.status-chip { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 14px; border-radius: 999px; text-decoration: none; background: var(--raised); border: 2px solid var(--line-strong); font-size: 14.5px; font-weight: 700; }
.status-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-faint); flex: none; }
.status-chip.is-live { border-color: var(--live); }
.status-chip.is-live .dot { background: var(--live); animation: pulse 1.6s infinite; }
.status-chip.is-announced .dot { background: var(--ice); }
.status-chip.is-cancelled { opacity: .75; }
.status-chip.is-forecast .dot { background: var(--heart); }
.chip-meter { width: 64px; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.chip-meter i { display: block; height: 100%; background: var(--hair); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- Search ---------- */
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 58px; border-radius: 14px; background: var(--raised); border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--shadow-hard); }
:root:not([data-theme="day"]) .search { box-shadow: 4px 4px 0 #000; }
:root:not([data-theme="day"]) .search:focus-within { box-shadow: 4px 4px 0 var(--pink-text); }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 4px 4px 0 var(--pink-text); }
.search-icon { width: 22px; height: 22px; color: var(--pink-text); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; padding: 14px 0; }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--text-faint); }
.search-kbd { color: var(--text-faint); font-size: 13px; white-space: nowrap; }
.suggestions { margin-top: 12px; }
.suggestions:empty { display: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 6px; }
.filter { min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; border: 2px solid var(--line-strong); background: transparent; color: var(--text-soft); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.select, .check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); }
.select select { min-height: 36px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--raised); padding: 0 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--heart); }
.result-count { margin: 8px 0 12px; color: var(--text-faint); font-size: 14px; }
.more { margin: 18px auto 0; display: flex; }

/* ---------- Sections ---------- */
.panel { margin: 0 0 clamp(28px, 5vh, 52px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; margin-bottom: 16px; }
.section-head h1, .section-head h2 { margin: 0; font-weight: 700; font-size: 28px; line-height: 1.4; }
.section-head h1 { font-family: var(--font-hand); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.2; }
.section-head .shime { margin-left: .08em; font-family: var(--font-hand); font-weight: 400; color: var(--pink-text); display: inline-block; transform: rotate(-8deg); }
.section-head .en { margin-left: 10px; font-family: var(--font-latin); font-weight: 600; font-size: 24px; color: var(--ice); }
.section-note { margin: 0; color: var(--text-faint); font-size: 14px; flex-basis: 100%; }

/* ---------- Songs ---------- */
.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.song { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px; }
.song-thumb { position: relative; width: 68px; height: 68px; border: 0; padding: 0; cursor: pointer; background: none; }
.song-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 2px solid var(--text); }
.song-thumb .clip { position: absolute; width: 20px; height: 20px; left: -7px; top: -8px; transform: rotate(-16deg); --m-x: var(--text); }
.song-thumb .play-glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: #fff; background: rgb(20 18 22 / .74); border-radius: 10px; opacity: 0; transition: opacity .18s; }
.song-thumb:hover .play-glyph, .song-thumb:focus-visible .play-glyph { opacity: 1; }
.song-main { min-width: 0; }
.song-title { margin: 0; font-family: var(--font-song); font-weight: 600; font-size: 19px; line-height: 1.45; }
.song-title a { text-decoration: none; }
.song-title a:hover { color: var(--ice); }
.song-artist { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.song-side { display: flex; align-items: center; gap: 6px; }
.song-foot { grid-column: 2 / -1; color: var(--ice); font-size: 14px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; transition: letter-spacing .2s var(--ease); }
.song:hover .song-foot, .song:focus-within .song-foot { letter-spacing: .16em; }
.renditions { grid-column: 2 / -1; }
.renditions summary { cursor: pointer; color: var(--text-soft); font-size: 14px; font-weight: 700; width: max-content; max-width: 100%; list-style: none; padding: 2px 0; }
.renditions summary::-webkit-details-marker { display: none; }
.renditions summary::before { content: "✼ "; color: var(--ice); }
.renditions[open] summary::before { color: var(--pink-text); }

.perf-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.perf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 12px; border: 2px solid transparent; }
.perf:hover { background: var(--raised-2); }
.perf.is-current { border-color: var(--heart); background: var(--raised-2); }
.perf-play { position: relative; width: 84px; height: 47px; border-radius: 8px; overflow: hidden; border: 2px solid var(--text); padding: 0; cursor: pointer; background: var(--bg-2); flex: none; }
.perf-play img { width: 100%; height: 100%; object-fit: cover; }
.perf-time { position: absolute; right: 3px; bottom: 3px; padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: rgb(20 18 22 / .85); }
.perf-play::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(20 18 22 / .74); opacity: 0; transition: opacity .18s; }
.perf-play:hover::after, .perf-play:focus-visible::after, .perf.is-current .perf-play::after { opacity: 1; }
.perf.is-current .perf-play::after { content: "♪"; color: var(--heart); }
.perf-main { min-width: 0; display: flex; flex-direction: column; }
.perf-song { font-family: var(--font-song); font-weight: 600; font-size: 17px; text-decoration: none; }
.perf-artist { font-family: var(--font-body); font-weight: 400; font-size: 14.5px; color: var(--text-soft); }
.perf-video { color: var(--text-soft); font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-video:hover, .perf-song:hover { color: var(--ice); }
.perf-meta { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 13px; }
.perf-side { display: flex; gap: 6px; }
.perf-side .icon-btn { width: 36px; height: 36px; font-size: 14px; }

.detail-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; margin: 14px 0 22px; }
.detail-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.detail-art.wide { aspect-ratio: 16 / 9; }
.detail-head h1 { margin: 0; font-family: var(--font-song); font-weight: 600; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.25; }
.stream-h1 { font-family: var(--font-body) !important; font-weight: 700 !important; font-size: clamp(19px, 2.4vw, 25px) !important; }
.detail-sub { margin: 4px 0 0; color: var(--text-soft); font-size: 17px; font-weight: 700; }
.detail-stats { margin: 6px 0 0; color: var(--text-faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.stream-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 10px 10px 12px; text-decoration: none; }
.stream-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.stream-date { color: var(--text-faint); font-size: 13px; font-weight: 700; }
.stream-title { font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stream-card .tag { align-self: flex-start; margin-top: auto; }

/* ---------- Forecast ---------- */
.forecast-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; align-items: center; padding: 22px; }
.forecast-card > p { grid-column: 1 / -1; margin: 0; }
.gauge { --p: 0; position: relative; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--raised) 56%, transparent 57%), conic-gradient(from -90deg, var(--hair-a), var(--hair-b) calc(var(--p) * 1turn), var(--line) 0);
  border: 2px solid var(--text); }
.gauge-val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-hand); font-size: 34px; }
.gauge .heart { position: absolute; width: 30px; height: 30px; right: -8px; top: -8px; transform: rotate(14deg); }
.forecast-text p { margin: 2px 0; color: var(--text-soft); }
.forecast-text .lead { color: var(--text); font-size: 18px; font-weight: 700; }
.forecast-text strong { font-family: var(--font-hand); font-weight: 400; font-size: 1.5em; color: var(--pink-text); }
.chart { grid-column: 1 / -1; margin: 8px 0 0; }
.chart figcaption { font-size: 14px; color: var(--text-faint); margin-bottom: 8px; font-weight: 700; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.bar { display: flex; flex-direction: column; align-items: center; }
.bar-col { position: relative; width: 100%; max-width: 44px; height: 120px; margin-top: 20px; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; height: var(--h); border-radius: 10px 10px 3px 3px; background: var(--hair); border: 2px solid var(--text); }
.bar.is-today .bar-fill { background: var(--heart); }
.bar-val { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 3px); text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.bar-label { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.bar.is-today .bar-label { color: var(--pink-text); }
.strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.cell { position: relative; height: 34px; border-radius: 5px; background: color-mix(in srgb, var(--heart) calc(var(--v) * 100%), var(--line)); }
.cell small { position: absolute; top: 100%; left: 0; font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.explain { grid-column: 1 / -1; margin-top: 20px; }
.explain summary { cursor: pointer; font-weight: 700; }
.explain p { color: var(--text-soft); font-size: 14.5px; }
.calibration { display: grid; gap: 6px; }
.cal-row { display: grid; grid-template-columns: minmax(9em, auto) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.cal-bar { height: 9px; border-radius: 5px; background: var(--line); overflow: hidden; }
.cal-bar i { display: block; height: 100%; background: var(--hair); }
.cal-val { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.live-now { display: flex; gap: 16px; align-items: center; padding: 18px; margin-bottom: 18px; border-color: var(--live) !important; }
.live-now h2 { margin: 0; font-size: 22px; }
.live-now p { margin: 0 0 8px; }
.live-now .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; flex: none; }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.schedule li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--raised); border: 2px solid var(--line-strong); }
.schedule li .clip { width: 16px; height: 16px; --m-x: var(--text); }
.schedule time { font-variant-numeric: tabular-nums; font-weight: 700; }
.schedule .is-cancelled { opacity: .6; }
.schedule .is-cancelled .sched-title { text-decoration: line-through; }

/* ---------- Fan art: the MemeArt〆 card she designed ---------- */
.art-strip { list-style: none; margin: 0; padding: 4px 4px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.art-strip li { scroll-snap-align: start; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: start; }
.post { display: block; width: 100%; padding: 0; text-align: left; cursor: pointer; text-decoration: none; overflow: hidden; border-radius: 16px; background: #fff; color: #1a161c; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow-hard); font: inherit; transition: transform .18s var(--ease), box-shadow .18s; }
:root:not([data-theme="day"]) .post { border-color: #fff; box-shadow: 4px 4px 0 #000; }
.post:hover { transform: translateY(-4px); box-shadow: 6px 7px 0 var(--shadow-hard); }
.post-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; background: #ececef; }
.post-head .mono { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1.5px solid #1a161c; font-family: var(--font-hand); font-size: 17px; color: #9c3a64; flex: none; }
.post-head .brandline { font-family: var(--font-hand); font-size: 18px; color: #4a4450; }
.post-head .handle { margin-left: auto; font-size: 13px; color: #4a4450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.post-head .brandline { white-space: nowrap; }
.art-strip .post-head .handle { display: none; }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e9eef3; }
.post-foot { display: grid; gap: 2px; padding: 8px 12px 10px; font-size: 14px; }
.post-foot .icons { display: flex; gap: 10px; align-items: center; color: #1a161c; }
.post-foot .icons .mo { width: 20px; height: 20px; --m-line: #1a161c; }
.post-foot .hashtag { color: #0e6a7c; font-weight: 700; }
.post-foot .by { color: #3a343c; }
/* in-place viewer: never a modal over the player */
.viewer { margin: 0 0 22px; padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.viewer img { grid-column: 2; max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; }
.viewer figcaption { grid-column: 1 / -1; }
.viewer .cap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 14.5px; }
.viewer .cap a { color: var(--ice); }
.viewer .close { position: absolute; top: 10px; right: 10px; }

/* ---------- Timeline: one ink rule, ✕ knots, balloons for milestones ---------- */
.tl { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 18px; }
.tl::before { content: ""; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; display: grid; gap: 4px; }
.tl-node { position: absolute; left: -34px; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); }
.tl-node .mo { width: 16px; height: 16px; --m-x: var(--text); }
.tl-node:has(.balloon) { background: transparent; }
.tl-node .mo.balloon { width: 26px; height: 46px; margin-top: -16px; --m-line: var(--text); filter: drop-shadow(2px 2px 0 var(--shadow-hard)); }
.tl-item time { font-size: 14px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-body { padding: 12px 16px; }
.tl-body h3 { margin: 6px 0 4px; font-family: var(--font-song); font-weight: 600; font-size: 18px; }
.tl-body p { margin: 0 0 6px; color: var(--text-soft); font-size: 15px; }
.tl-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; }
.tl-year { margin-bottom: 26px; }
.tl-year-label { font-family: var(--font-hand); font-weight: 400; font-size: 34px; margin: 0 0 12px; color: var(--ice); }
.tl-compact .tl-body p { display: none; }
.chip-gold { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--gold); font-size: 13px; font-weight: 700; border: 1px solid var(--gold); }

/* ---------- Empty states: guitar and the sleeping cat ---------- */
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--text-soft); padding: 26px 20px; border: 2px dashed var(--line-strong); border-radius: 18px; }
.empty .scene { display: flex; align-items: flex-end; gap: 4px; }
.empty .scene .guitar { width: 48px; height: 96px; transform: rotate(8deg); --m-line: var(--ink); }
.empty .scene .cat { width: 96px; height: 64px; }
.empty .voice { font-family: var(--font-hand); font-size: 28px; color: var(--text); margin: 0; }
.empty p { margin: 0; }

/* ---------- Channels & footer ---------- */
.channel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.channel { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; }
.channel-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 700; font-size: 15px; color: #fff; flex: none; background: #555; border: 2px solid var(--text); }
.channel-icon[data-p="youtube"] { background: #d0302f; }
.channel-icon[data-p="twitch"] { background: #7b4fd6; }
.channel-icon[data-p="x"] { background: #111; }
.channel-icon[data-p="shop"] { background: #c2353b; }
.channel strong { display: block; }
.channel small { color: var(--text-faint); font-size: 13px; }
.site-footer { position: relative; max-width: 1320px; margin: 28px auto 0; padding: 34px var(--gutter) 44px; color: var(--text-faint); font-size: 14px; border-top: 2px solid var(--line-strong); }
.site-footer p { margin: 0 0 8px; }
.site-footer .sign { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-hand); font-size: 30px; color: var(--text); }
.site-footer .sign .shime { color: var(--pink-text); display: inline-block; transform: rotate(-8deg); }
.site-footer .sign .wing { width: 30px; height: 22px; --m-wing: var(--ink); --m-wing-line: var(--frill); }
:root[data-theme="day"] .site-footer .sign .wing { --m-wing-line: var(--ink); }
.site-footer .sign .wing.l { transform: scaleX(-1); }
.site-footer strong { color: var(--text-soft); }
.site-footer a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.noscript { padding: 16px var(--gutter); }

/* ---------- Listening room: the one soft-depth object ---------- */
.room { position: relative; }
.room-inner { container-type: inline-size; position: sticky; top: 76px; margin-top: 28px; padding: 14px; max-height: calc(100vh - 92px); overflow: auto; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 28px 50px rgb(0 0 0 / .45); }
:root[data-theme="day"] .room-inner { box-shadow: 0 0 0 14px var(--sky-panel), 0 22px 44px rgb(26 22 28 / .14); }
.room-title { display: flex; align-items: center; gap: 8px; margin: 2px 4px 12px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.room-title .guitar { width: 12px; height: 24px; --m-line: var(--text); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 4px; background: var(--heart); border-radius: 2px; }
.is-playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-delay: -.3s; background: var(--aqua); }
.is-playing .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; min-width: 200px; background: var(--bg); }
.player-frame iframe, #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.facade .pick { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 66px; height: 72px; pointer-events: none; }
.well-empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-hand); font-size: 48px; color: var(--pink-text); }
.unmute { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; border: 2px solid var(--heart); border-radius: 12px; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--on-heart); background: var(--heart); animation: nudge 2.4s ease-in-out infinite; }
:root[data-theme="day"] .unmute { border-color: var(--ink); }
.unmute .mo { width: 20px; height: 20px; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
.player-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: color-mix(in srgb, var(--heart) 12%, transparent); border: 2px solid var(--heart); }
.player-hint a { color: var(--pink-text); }
.now { padding: 14px 4px 2px; }
.now p { margin: 0; }
.now-title { font-family: var(--font-song); font-weight: 600; font-size: 22px; line-height: 1.35; }
.now-artist { color: var(--text-soft); font-weight: 700; }
.now-meta { color: var(--text-faint); font-size: 13px; margin-top: 4px !important; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.controls { display: flex; align-items: center; gap: 8px; padding: 10px 0 4px; }
.ctl { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; border: 2px solid var(--line-strong); background: transparent; font-size: 15px; }
.ctl:hover { border-color: var(--ice); }
.ctl-small { width: 36px; height: 36px; font-size: 14px; border: 0; }
.volume { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 0; }
.volume input { width: 90px; accent-color: var(--heart); }
.now-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 6px 4px 10px; }
.queue { padding: 0 4px; }
.queue .divider { margin: 4px 0 8px; font-size: 13px; }
.queue-head { display: flex; justify-content: space-between; align-items: baseline; }
.queue-head h3 { margin: 0; font-size: 15px; }
.queue-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: q; max-height: 300px; overflow: auto; }
.queue-list li { counter-increment: q; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 4px 4px 8px; border-radius: 10px; font-size: 14px; }
.queue-list li::before { content: counter(q); color: var(--text-faint); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.queue-list li:hover { background: var(--raised-2); }
.q-title { all: unset; cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.q-title:focus-visible { outline: 3px solid var(--focus); border-radius: 4px; }
.q-song, .q-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-song { font-family: var(--font-song); font-weight: 600; }
.q-artist { color: var(--text-faint); font-size: 12.5px; }
.q-remove { width: 30px; height: 30px; font-size: 12px; }
.queue-empty { margin: 8px 0 4px; color: var(--text-faint); font-size: 14px; }
.pref { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; color: var(--text-faint); font-size: 13.5px; }
.pref input { accent-color: var(--heart); }

.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 60; opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 700; transition: opacity .25s, translate .25s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
@media (max-width: 1023px) { .is-docked .toast { bottom: calc(var(--dock-h, 280px) + 16px); } }

/* ---------- Narrow screens ---------- */
@container (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-side { order: -1; justify-items: center; }
}
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .room { display: none; }
  .is-docked .room { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }
  :root[data-theme="day"] .is-docked .room-inner { box-shadow: 0 -10px 30px rgb(26 22 28 / .18); }
  .is-docked .room-inner {
    position: static; margin: 0; max-height: 100dvh; overflow: auto; border-radius: 18px 18px 0 0; border-bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgb(0 0 0 / .35);
    display: grid; grid-template-columns: minmax(200px, 46%) minmax(0, 1fr); gap: 4px 12px; align-items: center;
  }
  .is-docked .room-head, .is-docked .queue, .is-docked .now-meta { display: none; }
  .is-docked .player-frame { grid-row: span 3; aspect-ratio: auto; height: 200px; }
  .is-docked .unmute, .is-docked .player-hint { grid-column: 1 / -1; margin: 6px 0 0; }
  .is-docked .now { padding: 0; }
  .is-docked .now-title { font-size: 17px; }
  .is-docked .now-artist { font-size: 13px; }
  .is-docked .controls { padding: 0; gap: 6px; flex-wrap: wrap; }
  .is-docked .ctl { width: 40px; height: 40px; }
  .is-docked .controls .pick { width: 46px; height: 50px; }
  .is-docked .volume input { display: none; }
  .is-docked .volume { margin-left: 0; }
  .is-docked .now-links { padding: 0; }
  .search-kbd { display: none; }
}
@container (max-width: 356px) { .player-frame { aspect-ratio: auto; height: 200px; } }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 6px 12px; }
  .topnav { order: 3; flex-basis: 100%; margin: 0 -4px; justify-content: space-between; }
  .topnav a { padding: 4px 8px; font-size: 14px; }
  .toggles { margin-left: auto; }
  .detail-head { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
  .forecast-card { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-side { order: -1; }
  .hairband { width: 78%; }
}
@media (max-width: 560px) {
  .is-docked .room-inner { grid-template-columns: minmax(0, 1fr); }
  .is-docked .player-frame { grid-row: auto; position: sticky; top: 0; z-index: 1; }
  .is-docked .room-inner > .now { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding-top: 6px; }
  .is-docked .now-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
  .is-docked .now-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; }
  .is-docked .controls, .is-docked .now-links { justify-content: center; }
  body.is-docked { padding-bottom: calc(var(--dock-h, 370px) + 16px); }
  .song { grid-template-columns: auto minmax(0, 1fr); }
  .song-side { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; }
  .renditions, .song-foot { grid-column: 1 / -1; }
  .perf { grid-template-columns: auto minmax(0, 1fr); }
  .perf-side { grid-column: 2; }
  .hero-stats { gap: 20px; }
  .cal-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .divider { font-size: 12.5px; }
}
@media (max-width: 420px) { .diorama .balloons { display: none; } }
@media (max-width: 1023px) and (min-width: 561px) { body.is-docked { padding-bottom: calc(var(--dock-h, 270px) + 16px); } }

/* =====================================================================
   Music-first components
   ===================================================================== */

.btn-mo { width: 14px; height: 24px; margin: -4px 0; }
.sub-head { margin: 28px 0 10px; font-size: 22px; font-weight: 700; }
.count-note { margin: 14px 0 0; color: var(--text-faint); font-size: 13px; }
.mini-search { width: 100%; max-width: 420px; min-height: 42px; margin: 4px 0 16px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--raised); color: var(--text); }
.mini-search:focus-visible { border-color: var(--ice); }

/* Tabs */
.tabs { display: flex; gap: 6px; margin: 4px 0 18px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; white-space: nowrap; padding: 8px 14px; text-decoration: none; font-weight: 700; color: var(--text-soft); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--pink-text); }

/* Kana / ABC index */
.kana-index { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.kana-index:empty { display: none; }
.kana { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--raised); cursor: pointer; font-weight: 700; font-size: 14px; }
.kana:hover { border-color: var(--pink-text); color: var(--pink-text); }

/* Row extras */
.fav-btn { font-size: 17px; color: var(--pink-text); }
.fav-btn[aria-pressed="true"] { border-color: var(--pink-text); background: color-mix(in srgb, var(--heart) 16%, transparent); }
.more-btn { font-size: 18px; letter-spacing: 1px; }
.perf-side, .song-side { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; min-width: 210px; padding: 6px; display: grid; border-radius: 14px; background: var(--raised); border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--shadow-hard); }
:root:not([data-theme="day"]) .menu { box-shadow: 4px 4px 0 #000; }
.menu button { text-align: left; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.menu button:hover, .menu button:focus-visible { background: var(--raised-2); outline-offset: -2px; }
.perf-list.numbered { counter-reset: n; }
.perf-list.numbered .perf { grid-template-columns: 26px auto minmax(0, 1fr) auto; }
.perf-list.numbered .perf::before { counter-increment: n; content: counter(n); color: var(--text-faint); font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Cover art: label band over a 2×2 mosaic of her thumbnails */
.cover { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--shadow-hard); }
:root:not([data-theme="day"]) .cover { box-shadow: 4px 4px 0 #000; }
.cover-tiles { position: absolute; inset: 0; display: grid; }
.cover.is-mosaic .cover-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cover-tiles img { width: 100%; height: 100%; object-fit: cover; }
.cover-band { position: absolute; left: 0; right: 0; top: 0; padding: 8px 10px 10px; display: grid; gap: 2px; background: linear-gradient(180deg, rgb(20 18 22 / .9) 0%, rgb(20 18 22 / .75) 70%, transparent); color: #f6f1ea; }
.cover-label { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: #8ed4e6; }
.cover-title { font-family: var(--font-hand); font-size: 20px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px #000; }
.cover.big .cover-title { font-size: 26px; }
.detail-head > .cover { width: 100%; }

.shelf { list-style: none; margin: 0; padding: 4px 4px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shelf li { scroll-snap-align: start; }
.list-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 22px 18px; }
.list-card { display: grid; gap: 6px; text-decoration: none; border-radius: 16px; }
.list-title { font-weight: 700; line-height: 1.4; }
.list-meta { color: var(--text-faint); font-size: 13px; }
.list-card.lift:hover .cover { transform: rotate(-1.5deg); transition: transform .2s var(--ease); }

/* Radio */
.radio-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 24px; }
.radio-mo { width: 34px; height: 60px; animation: bob 5s ease-in-out infinite alternate; }
.radio-title { margin: 0; font-family: var(--font-hand); font-size: 26px; }
.radio-card p { margin: 0; }
.radio-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--heart) 18%, transparent); color: var(--text); font-size: 12.5px; }
.radio-chip .mo { width: 10px; height: 18px; }
.radio-chip .text-link { font-size: 12.5px; }

/* Tonight's song */
.tonight-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px 22px; align-items: center; padding: 16px; }
.tonight-art { position: relative; padding: 0; border: 2px solid var(--text); border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.tonight-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tonight-art:hover img { transform: scale(1.04); }
.tonight-art .pick { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.tonight-text p { margin: 0; }
.tonight-song { font-family: var(--font-song); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; margin-top: 4px !important; overflow-wrap: anywhere; }
.tonight-song a { text-decoration: none; }
.tonight-song a:hover { color: var(--ice); }
.tonight-artist { color: var(--text-soft); font-weight: 700; font-size: 17px; }
.pick.big { width: 64px; height: 70px; }

/* Stream cards with a mini setlist bar */
.stream-thumb { position: relative; }
.stream-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.stream-count { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(20 18 22 / .85); color: #fff; font-size: 12px; font-weight: 700; }
.stream-songs { color: var(--text-soft); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Setlist timeline bar */
.tlbar { position: relative; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 2px 0; }
.tlbar .seg { position: absolute; top: 0; bottom: 0; background: hsl(var(--hue) 62% 70%); border-right: 1px solid var(--raised); }
.tlbar .seg.is-estimated { background: repeating-linear-gradient(90deg, hsl(var(--hue) 62% 70%) 0 4px, transparent 4px 7px); }
.tlbar.is-big { height: 46px; border-radius: 12px; border: 2px solid var(--text); margin: 8px 0 6px; overflow: visible; background: var(--raised); }
.tlbar.is-big .seg { border: 0; border-right: 1px solid var(--raised); cursor: pointer; padding: 0; top: 4px; bottom: 4px; border-radius: 3px; }
.tlbar.is-big .seg:hover, .tlbar.is-big .seg:focus-visible { top: -2px; bottom: -2px; z-index: 2; }
.tlbar.is-big .seg.is-current { box-shadow: 0 0 0 2px var(--heart); z-index: 3; }
.tlbar-now { position: absolute; top: -6px; bottom: -6px; width: 3px; left: -10px; background: var(--heart); border-radius: 2px; pointer-events: none; z-index: 4; box-shadow: 0 0 0 1px var(--raised); }
.tlbar:not(.is-big) .tlbar-now { display: none; }
.tlbar-note { margin: 0 0 16px; font-size: 13px; }

/* Ranking */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 30px 48px minmax(0, 1fr) minmax(60px, 160px) auto; gap: 12px; align-items: center; padding: 6px 10px 6px 4px; border-radius: 12px; }
.rank-row:hover { background: var(--raised); }
.rank-no { text-align: right; font-family: var(--font-hand); font-size: 22px; color: var(--text-soft); }
.rank-row:nth-child(-n+3) .rank-no { color: var(--pink-text); font-size: 26px; }
.rank-play { width: 48px; height: 48px; padding: 0; border: 2px solid var(--text); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-2); }
.rank-play img { width: 100%; height: 100%; object-fit: cover; }
.rank-main { display: grid; min-width: 0; }
.rank-title { font-family: var(--font-song); font-weight: 600; font-size: 17px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-title:hover { color: var(--ice); }
.rank-artist { color: var(--text-soft); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-artist a { text-decoration: none; }
.rank-artist a:hover { text-decoration: underline; }
.rank-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--hair); }
.rank-count { font-weight: 700; color: var(--pink-text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Artists */
.artist-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.artist-card { display: grid; gap: 4px; padding: 14px 16px; text-decoration: none; height: 100%; }
.artist-name { font-weight: 700; font-size: 17px; }
.artist-meta { color: var(--pink-text); font-size: 13px; font-weight: 700; }
.artist-songs { color: var(--text-soft); font-size: 13px; line-height: 1.5; }

/* Song stats */
.song-stats { display: flex; flex-wrap: wrap; gap: 22px; margin: 10px 0 0; }
.song-stats div { display: flex; flex-direction: column-reverse; }
.song-stats dt { font-size: 12.5px; color: var(--text-faint); }
.song-stats dd { margin: 0; font-family: var(--font-hand); font-size: 26px; line-height: 1.2; }
.years { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 12px 0 2px; }
.year { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; width: 24px; }
.year i { width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--hair); border: 1.5px solid var(--text); }
.year small { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

/* Seek row */
.seekrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 12px 2px 0; }
.time { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 34px; }
.time:last-child { text-align: right; }
.seek { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--heart) var(--fill), var(--line) var(--fill)); }
.seek::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.seek::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--heart); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4px; border-radius: 50%; background: var(--frill); border: 2px solid var(--ink); opacity: 0; transition: opacity .15s; }
.seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--frill); border: 2px solid var(--ink); }
.seekrow:hover .seek::-webkit-slider-thumb, .seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.seekrow:hover .seek::-webkit-slider-runnable-track { height: 8px; }
.ctl-small[aria-pressed="true"] { color: var(--pink-text); background: color-mix(in srgb, var(--heart) 16%, transparent); }
.room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 4px 12px; padding-right: 40px; }
.room-head .room-title { margin: 0; }
.theater-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; font-size: 15px; }
.theater-btn[aria-pressed="true"] { border-color: var(--pink-text); color: var(--pink-text); }
.now-links { align-items: center; }
#now-fav { margin-left: auto; width: 34px; height: 34px; }

/* Theater: the room widens; same iframe, larger, never covered */
@media (min-width: 1024px) {
  body.theater .layout { grid-template-columns: minmax(0, 1fr) min(56vw, 860px); max-width: none; }
  body.theater .room-inner { max-height: calc(100vh - 92px); }
  body.theater .hero-side { display: none; }
}

@media (max-width: 760px) {
  .tonight-card { grid-template-columns: minmax(0, 1fr); }
  .rank-row { grid-template-columns: 26px 44px minmax(0, 1fr) auto; }
  .rank-bar { display: none; }
  .radio-card { grid-template-columns: auto minmax(0, 1fr); }
  .radio-card .btn { grid-column: 1 / -1; justify-self: start; }
  .perf-list.numbered .perf { grid-template-columns: 22px auto minmax(0, 1fr); }
  .perf-list.numbered .perf .perf-side { grid-column: 3; }
}
@media (max-width: 1023px) {
  .theater-btn { display: none; }
  .is-docked .seekrow { grid-column: 1 / -1; margin: 2px 0 0; }
  .is-docked #ctl-shuffle, .is-docked #ctl-repeat { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .list-card.lift:hover .cover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lift:hover, .post:hover, .btn:hover, .pick:hover { transform: none; }
  .song:hover .song-foot { letter-spacing: .08em; }
  .is-playing .notes span { animation: none; opacity: 1; }
  .is-playing .notes span:nth-child(2) { transform: translateY(-34px); }
  .is-playing .notes span:nth-child(3) { transform: translateY(-62px); }
}

/* Phone dock: keep the heart on the links row so the dock does not grow a line */
@media (max-width: 1023px) {
  .is-docked .now-links { flex-wrap: nowrap; align-items: center; gap: 14px; }
  .is-docked #now-fav { margin-left: 0; width: 30px; height: 30px; flex: none; }
  .is-docked .seekrow { margin: 0; }
}
.perf-around { display: block; color: var(--text-faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Phone dock: ☰ opens the queue and play modes inside the dock (the player stays on top, uncovered) */
.dock-only { display: none; }
@media (max-width: 1023px) {
  .is-docked .dock-only { display: inline-flex; }
  #ctl-queue[aria-expanded="true"] { color: var(--pink-text); }
  body.is-docked.dock-open .room-inner { max-height: 100dvh; overflow-y: auto; }
  /* keep the video in view while the queue scrolls under it */
  body.is-docked.dock-open .player-frame { position: sticky; top: 0; z-index: 1; }
  body.is-docked.dock-open .queue { display: block; grid-column: 1 / -1; }
  body.is-docked.dock-open #ctl-shuffle, body.is-docked.dock-open #ctl-repeat { display: inline-flex; }
}

/* Unplayable renditions: visible, never offered as play buttons */
.tlbar.is-big .seg.is-locked { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); cursor: not-allowed; }
.perf-play:disabled, .song-thumb:disabled, .rank-play:disabled { cursor: not-allowed; opacity: .45; }

/* Phone dock: the radio can always be stopped; ☰ also reveals the heading and where the song is from */
@media (max-width: 1023px) {
  body.is-docked.is-radio .room-head, body.is-docked.dock-open .room-head { display: flex; margin: 0 0 6px; padding-right: 0; grid-column: 1 / -1; }
  body.is-docked:not(.dock-open) .room-head .room-title { display: none; }
  body.is-docked.dock-open .now-meta { display: -webkit-box; }
}

/* =====================================================================
   Next level: the living room, ambient glow, stories, data, prediction, quick search
   ===================================================================== */

/* Ambient glow from the playing song's thumbnail, far behind everything (never over the player) */
body::before { content: ""; position: fixed; inset: -12%; z-index: -1; pointer-events: none; background: var(--ambient, none) center / cover no-repeat; filter: blur(90px) saturate(1.5); opacity: 0; transition: opacity 1.4s ease; }
body.is-playing::before { opacity: .24; }
:root[data-theme="day"] body.is-playing::before { opacity: .16; }

/* The window's sky follows the hour in Tokyo; the page theme only tints the room around it */
.diorama[data-sky] .sky-pane { transition: background 2s ease; }
.diorama[data-sky="dawn"] .sky-pane { background: linear-gradient(180deg, #4b4a7a 0%, #b88fb4 45%, #f3b6a6 78%, #ffe0b8 100%); }
.diorama[data-sky="day"] .sky-pane { background: linear-gradient(180deg, #7fcfe9 0%, #b9e8f5 55%, #e4f6fa 100%); }
.diorama[data-sky="dusk"] .sky-pane { background: linear-gradient(180deg, #2c2a55 0%, #7b4f86 38%, #e07a8f 70%, #f6b37a 100%); }
.diorama[data-sky="night"] .sky-pane { background: linear-gradient(180deg, #0d1424 0%, #1b2c47 55%, #3a6f86 88%, #8ed4e6 120%); }
.diorama[data-sky] .sky-pane i { display: block; }
.diorama[data-sky="day"] .sky-pane i, .diorama[data-sky="dawn"] .sky-pane i { display: none; }
.diorama[data-sky="dusk"] .sky-pane i { opacity: .5; }
.diorama[data-sky] .sky-pane .cloud { display: none; }
.diorama:is([data-sky="day"], [data-sky="dawn"]) .sky-pane .cloud { display: block; left: 18%; top: 34%; width: 64px; height: 22px; border-radius: 20px; background: #fff; box-shadow: 30px -10px 0 4px #fff, 56px 2px 0 -2px #fff; animation: cloud 40s linear infinite alternate; }
.diorama[data-sky="dawn"] .sky-pane .cloud { background: #ffe9e0; box-shadow: 30px -10px 0 4px #ffe9e0, 56px 2px 0 -2px #ffe9e0; }
@keyframes cloud { from { translate: -20px 0; } to { translate: 30px 0; } }

/* The cat sleeps (and breathes) in silence; while a song plays it sways along, the guitar hums */
.d-cat { transform-origin: 50% 100%; animation: breathe-cat 4.5s ease-in-out infinite; }
@keyframes breathe-cat { 50% { transform: scaleY(1.035); } }
.diorama::after { content: "z"; position: absolute; left: 30px; bottom: 112px; z-index: 4; font-family: var(--font-hand); font-size: 18px; color: var(--ice); opacity: 0; animation: zz 4.5s ease-out infinite; pointer-events: none; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0) scale(.7); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(12px, -34px) scale(1.2); } }
.is-playing .diorama::after { display: none; }
.is-playing .d-cat { animation: sway 1.6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg) translateY(-2px); } }
.is-playing .d-guitar { animation: hum .8s ease-in-out infinite alternate; }
@keyframes hum { from { transform: rotate(10deg); } to { transform: rotate(8deg) translateX(-1px); } }
.is-playing .diorama .balloons .mo { animation-duration: 2.6s; }
.diorama:has(.window.has-art)::after { display: none; }

/* Header quick search */
.pal-btn { display: inline-flex; align-items: center; gap: 6px; }
.pal-kbd { font-size: 11px; padding: 0 4px; opacity: .75; }
@media (max-width: 760px) { .pal-btn-label, .pal-kbd { display: none; } }
.palette { position: fixed; top: 76px; left: 50%; translate: -50% 0; width: min(640px, calc(100vw - 24px)); z-index: 60; max-height: 70vh; display: flex; flex-direction: column;
  border-radius: 18px; background: var(--raised); border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--shadow-hard), 0 24px 60px rgb(0 0 0 / .35); overflow: hidden; }
.palette[style*="left"] { translate: none; }
.pal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 2px solid var(--line); }
.pal-input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 18px; }
.pal-input:focus-visible { outline: none; }
.palette:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.pal-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.pal-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.pal-item[aria-selected="true"] { background: color-mix(in srgb, var(--heart) 18%, transparent); box-shadow: inset 3px 0 0 var(--pink-text); }
.pal-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--ice); }
.pal-label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-sub { color: var(--text-faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pal-empty { padding: 14px; color: var(--text-faint); }

/* Home: the day's story */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.story-stream { display: grid; gap: 6px; padding: 12px; text-decoration: none; }
.story-stream img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.story-date { font-family: var(--font-hand); font-size: 22px; color: var(--pink-text); }
.story-songs { color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.story-side { display: grid; gap: 14px; align-content: start; justify-items: start; }
.trivia { padding: 14px 16px; border-radius: 14px; border: 2px dashed var(--line-strong); }
.trivia p { margin: 0; }
.trivia-text { font-size: 17px; line-height: 1.7; margin: 4px 0 6px !important; }

/* Data page */
.big-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 26px; }
.big-stat { display: grid; padding: 14px 16px; border-radius: 16px; background: var(--raised); border: 2px solid var(--line-strong); }
.big-stat strong { font-family: var(--font-hand); font-size: 38px; line-height: 1.1; color: var(--pink-text); }
.big-stat span { font-size: 13px; color: var(--text-soft); }
.chart { margin: 4px 0 26px; }
.chart svg.growth { width: 100%; height: auto; }
.chart .line { fill: none; stroke: var(--hair-a); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--raised); stroke: var(--pink-text); stroke-width: 2.5; }
.chart .added { fill: color-mix(in srgb, var(--heart) 55%, transparent); }
.chart .val { fill: var(--text); font-size: 12px; font-weight: 700; }
.chart .lab { fill: var(--text-faint); font-size: 11px; }
.chart-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--text-faint); font-size: 12.5px; margin-top: 6px; }
.k-line::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--hair-a); vertical-align: middle; margin-right: 6px; }
.k-bar::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--heart) 55%, transparent); vertical-align: middle; margin-right: 6px; }
.cal-scroll { overflow-x: auto; padding-bottom: 6px; }
.calendar .c { fill: var(--line); }
.calendar .c.l1 { fill: color-mix(in srgb, var(--heart) 30%, var(--line)); }
.calendar .c.l2 { fill: color-mix(in srgb, var(--heart) 55%, var(--line)); }
.calendar .c.l3 { fill: color-mix(in srgb, var(--heart) 80%, var(--line)); }
.calendar .c.l4 { fill: var(--pink-text); }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--line); }
.sw.l1 { background: color-mix(in srgb, var(--heart) 30%, var(--line)); }
.sw.l2 { background: color-mix(in srgb, var(--heart) 55%, var(--line)); }
.sw.l3 { background: color-mix(in srgb, var(--heart) 80%, var(--line)); }
.sw.l4 { background: var(--pink-text); }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 6px 0 26px; }
.data-card { padding: 16px 18px; }
.data-card h3 { margin: 0 0 10px; font-size: 18px; }
.data-card h3 .en { margin-left: 8px; font-family: var(--font-latin); color: var(--ice); font-size: 15px; font-weight: 400; }
.data-rank, .odds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.data-rank li, .odds li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.odds li { grid-template-columns: 30px minmax(0, 220px) minmax(40px, 1fr) 48px; }
.data-rank a, .odds a { text-decoration: none; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-rank a:hover, .odds a:hover { color: var(--ice); }
.data-rank .pair > span:nth-child(2) { line-height: 1.45; }
.data-rank .pair a { white-space: normal; }
.arrow { color: var(--pink-text); }
.times { color: var(--pink-text); font-weight: 700; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.mini-play { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--text); background: var(--raised); cursor: pointer; font-size: 11px; display: grid; place-items: center; padding: 0 0 0 2px; }
.mini-play:hover:not(:disabled) { background: var(--heart); color: #1a161c; }
.mini-play:disabled { opacity: .4; cursor: not-allowed; }
.odds-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.odds-bar i { display: block; height: 100%; background: var(--hair); }

/* Prediction game */
.predict-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 12px 0 24px; }
.pick-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.pick-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--raised-2); }
.pick-list li.pick-empty { background: transparent; border: 2px dashed var(--line); grid-template-columns: 30px minmax(0, 1fr); }
.pick-no { font-family: var(--font-hand); font-size: 20px; color: var(--pink-text); text-align: center; }
.pick-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--raised); cursor: pointer; font-weight: 700; font-size: 14px; }
.chip small { color: var(--pink-text); font-weight: 700; }
.chip:hover:not(:disabled) { border-color: var(--pink-text); }
.chip:disabled { opacity: .45; cursor: default; }
.pred-total { font-size: 18px; }
.pred-total strong { font-family: var(--font-hand); font-size: 30px; color: var(--pink-text); }
.preds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pred { padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--raised); }
.pred.done { border-color: var(--pink-text); }
.pred-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pred-score { color: var(--pink-text); font-weight: 700; }
.pred-head .as-button { margin-left: auto; }
.pred-picks { margin: 8px 0 4px; padding-left: 22px; display: grid; gap: 2px; }
.pred-picks .hit { font-weight: 700; color: var(--pink-text); }
.pred-picks .miss { color: var(--text-faint); }
.pred-picks a { color: inherit; }

@media (max-width: 760px) {
  .story-grid, .predict-grid { grid-template-columns: minmax(0, 1fr); }
  .odds li { grid-template-columns: 30px minmax(0, 1fr) 48px; }
  .odds-bar { display: none; }
  .pal-item { grid-template-columns: 64px minmax(0, 1fr); }
  .pal-sub { display: none; }
  .palette { top: 64px; }
}
/* On phones the dock sits at the bottom: keep the panel above it */
@media (max-width: 1023px) { .is-docked .palette { max-height: max(180px, calc(100dvh - var(--dock-h, 0px) - 90px)); } }
@media (prefers-reduced-motion: reduce) {
  .d-cat, .is-playing .d-cat, .is-playing .d-guitar { animation: none; }
  .diorama::after { display: none; }
  body::before { transition: none; }
}
.data-card > .sub-head:first-child { margin-top: 0; }

/* Disabled buttons read as disabled; English sub-labels never break mid-word */
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.section-head .en, .data-card h3 .en { display: inline-block; white-space: nowrap; }
@media (max-width: 760px) {
  .growth .val { font-size: 22px; }
  .growth .lab { font-size: 20px; }
  .growth .dot { r: 7px; }
}

/* わたしとめめ */
.mine { padding: 18px 20px; margin: 0 0 26px; display: grid; gap: 12px; border-color: var(--pink-text); }
.mine-head h2 { margin: 0; font-size: 22px; }
.mine-head .en { margin-left: 10px; font-family: var(--font-latin); color: var(--ice); font-size: 18px; font-weight: 600; }
.mine-head p { margin: 2px 0 0; font-size: 13px; }
.mine-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.mine-stats div { display: flex; align-items: baseline; gap: 6px; }
.mine-stats strong { font-family: var(--font-hand); font-size: 34px; color: var(--pink-text); line-height: 1.1; }
.mine-stats span { color: var(--text-soft); font-size: 13.5px; }
.mine .as-button { justify-self: start; font-size: 13px; }

/* Day theme: graphic parts of the charts keep 3:1 against the paper background */
:root[data-theme="day"] .chart .added { fill: var(--pink-text); }
:root[data-theme="day"] .calendar .c { fill: #ddd6cc; }
/* every level ≥3:1 against both the page (#f6f3ee) and an empty cell (#ddd6cc): 4.25/3.26 → 11.5/8.8 */
:root[data-theme="day"] .calendar .c.l1, :root[data-theme="day"] .sw.l1 { fill: #b5527d; background: #b5527d; }
:root[data-theme="day"] .calendar .c.l2, :root[data-theme="day"] .sw.l2 { fill: #9c3a64; background: #9c3a64; }
:root[data-theme="day"] .calendar .c.l3, :root[data-theme="day"] .sw.l3 { fill: #7c2a4f; background: #7c2a4f; }
:root[data-theme="day"] .calendar .c.l4, :root[data-theme="day"] .sw.l4 { fill: #5a1b39; background: #5a1b39; }

/* 理想のセトリ */
.mixer-cta { display: grid; gap: 4px; padding: 16px 18px; margin: 0 0 24px; text-decoration: none; }
.mixer-list li { grid-template-columns: 30px minmax(0, 1fr) auto; }
.mixer-list .form-row { display: inline-flex; gap: 4px; }
.mixer-list .icon-btn { width: 30px; height: 30px; }
.predict-page .data-card > .mini-search { margin: 0 0 12px; max-width: none; }

/* Calendar: the singing days as text, for everyone */
.cal-list { margin-top: 8px; font-size: 14px; }
.cal-list summary { cursor: pointer; color: var(--text-soft); }
.cal-list ul { columns: 3 12em; margin: 8px 0 0; padding-left: 18px; color: var(--text-soft); }

/* Short landscape phones: the dock is one row — the 200 px player on the left, everything else beside
   it — so the page above stays usable while the player stays fully visible. */
@media (max-width: 1023px) and (max-height: 520px) {
  .is-docked .room-inner { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 2px 14px; padding-top: 8px; }
  .is-docked .player-frame { grid-column: 1; grid-row: 1 / span 5; height: 200px; position: static; }
  .is-docked .seekrow, .is-docked .room-inner > .now, .is-docked .controls, .is-docked .now-links,
  .is-docked .unmute, .is-docked .player-hint, .is-docked .room-head { grid-column: 2; }
  .is-docked .controls { justify-content: flex-start; }
  .topbar { position: static; padding-top: 4px; padding-bottom: 4px; }
}

/* Stations, song flow, welcome back */
.stations { margin: -8px 0 24px; }
.stations .sub-head { margin-top: 0; font-size: 18px; }
.chip.station small { color: var(--text-faint); }
.flow { padding: 14px 18px; margin: 4px 0 18px; }
.flow .sub-head { margin: 0 0 6px; font-size: 18px; }
.flow-facts { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.flow-tag { padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--heart) 20%, transparent); color: var(--pink-text); font-weight: 700; font-size: 13.5px; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; }
.flow-grid h3 { margin: 0 0 6px; font-size: 14px; color: var(--text-soft); }
.flow .data-rank li { grid-template-columns: minmax(0, 1fr) auto; }
.welcome { padding: 18px 20px; margin: 0 0 8px; border-color: var(--ice); }
.welcome h2 { margin: 0 0 4px; font-family: var(--font-hand); font-size: 28px; }
.welcome p { margin: 0 0 8px; }
.welcome-debuts a { font-weight: 700; }

.cal-subscribe { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); }
.cal-subscribe p { margin: 0 0 8px; font-size: 14px; }

.mixer-notice { padding: 10px 14px; border-radius: 12px; border: 2px dashed var(--ice); font-size: 14px; }

/* Live setlist so far */
.live-setlist { padding: 14px 18px; margin: 14px 0; border-color: var(--live); }
.live-setlist .sub-head { margin: 0 0 4px; font-size: 18px; }
.live-setlist > .muted { margin: 0 0 10px; font-size: 13px; }
.live-set-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.live-set-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.live-set-list li.is-latest .live-song a { color: var(--pink-text); font-weight: 700; }
.live-time { font-variant-numeric: tabular-nums; color: var(--ice); }
.live-song a { text-decoration: none; font-weight: 600; }
.live-set-more { margin-top: 8px; }
.live-set-more summary { cursor: pointer; color: var(--text-soft); font-size: 14px; margin-bottom: 6px; }

/* Records backup */
.backup { padding: 14px 18px; margin: 26px 0 0; }
.backup .sub-head { margin: 0 0 4px; font-size: 18px; }
.backup > .muted { font-size: 13.5px; }
.backup label.btn { cursor: pointer; }
.backup:has(#backup-file:focus-visible) label.btn { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Calendar: weekday labels stay put while the year scrolls */
.cal-frame { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
.cal-dow { overflow: visible; }

/* ---------------- めめの絵〆 (#/visuals): her official art on the wall ----------------
   Rectangular art hangs as an acrylic print held by ✕ clips; cut-out stickers and stands are
   stickers: a frill outline, the hard 2.5D shadow and a small tilt that straightens on hover.
   The viewer reuses the in-place .viewer (never a modal over the player). */
.visuals .vis-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; margin: 8px 0 26px; }
.vis-hero-art { position: relative; display: block; padding: 10px; border: 2px solid var(--text); border-radius: 18px; background: var(--frill); box-shadow: 6px 6px 0 var(--shadow-hard); cursor: zoom-in; transition: transform .2s var(--ease), box-shadow .2s; }
.vis-hero-art img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 10px; }
.vis-hero-art:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--shadow-hard); }
.vis-hero-art.is-cutout { background: transparent; border: 0; box-shadow: none; }
.vis-clip { position: absolute; z-index: 2; width: 34px; height: 34px; top: -14px; pointer-events: none; }
.vis-clip .mo { width: 100%; height: 100%; --m-x: var(--ink); }
:root:not([data-theme="day"]) .vis-clip .mo { --m-x: #f6f1ea; }
.vis-clip.left { left: 18px; transform: rotate(-12deg); }
.vis-clip.right { right: 18px; transform: rotate(10deg); }
.vis-hero figcaption { display: grid; gap: 8px; align-content: start; }
.vis-hero .eyebrow { margin: 0; }
.vis-hero-title { font-family: var(--font-hand); font-weight: 400; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; }
.vis-hero-note { margin: 4px 0 0; color: var(--text-soft); line-height: 1.8; }
.vis-by { color: var(--text-soft); font-size: 14px; }
.vis-by a { color: var(--ice); }

.vis-tools { margin: 14px 0 6px; }
.vis-h { margin: 18px 0 8px; font-family: var(--font-hand); font-weight: 400; font-size: 22px; }
.vis-people { display: flex; flex-wrap: wrap; gap: 10px; }
.vis-person { display: inline-flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px;
  border: 2px solid var(--line-strong); background: var(--raised); color: var(--text); box-shadow: 3px 3px 0 var(--shadow-hard); transition: transform .15s var(--ease); }
.vis-person .n, .filter .n { font-weight: 500; font-size: 12.5px; color: var(--text-faint); margin-left: 6px; }
.vis-person[aria-pressed="true"] { background: var(--heart); color: var(--on-heart); border-color: var(--text); }
.vis-person[aria-pressed="true"] .n, .filter[aria-pressed="true"] .n { color: inherit; opacity: .8; }
.vis-person.is-uncredited .name { font-weight: 500; font-style: italic; }
.vis-person:hover { transform: translateY(-2px); }
.vis-status { margin: 10px 0 0; font-size: 13.5px; }

.vis-viewer-slot:not(:empty) { margin-top: 18px; }
.vis-viewer .vis-stage { grid-column: 2; display: grid; place-items: center; min-height: 200px; }
.vis-viewer .vis-stage img { max-height: 72vh; width: auto; height: auto; max-width: 100%; border-radius: 10px; }
.vis-viewer.is-cutout .vis-stage { background: radial-gradient(var(--lace-dot) 1.2px, transparent 1.4px) 0 0 / 7px 7px; border-radius: 12px; }
.vis-viewer.is-cutout .vis-stage img { border-radius: 0; filter: drop-shadow(5px 5px 0 rgb(0 0 0 / .45)); }
.vis-viewer .vis-title { font-family: var(--font-song); font-size: 17px; }
.vis-viewer .vis-credit-raw { flex-basis: 100%; font-size: 13px; color: var(--text-soft); }
.vis-viewer .vis-count { margin-left: auto; font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.vis-wall { list-style: none; margin: 22px 0 0; padding: 18px 4px 4px; columns: 3 180px; column-gap: clamp(18px, 2.4vw, 30px);
  background: radial-gradient(var(--lace-dot) 1.2px, transparent 1.4px) 0 0 / 7px 7px; }
.vis-wall > li { break-inside: avoid; margin: 0 0 clamp(22px, 3vw, 34px); }
.vis-card { position: relative; display: grid; gap: 10px; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: zoom-in; }
.vis-card .vis-frame { display: block; }
.vis-card img { display: block; width: 100%; height: auto; margin: 0 auto; }
.vis-card.is-print .vis-frame { width: fit-content; max-width: 100%; padding: 8px; border: 2px solid var(--text); border-radius: 14px; background: var(--frill); box-shadow: 4px 4px 0 var(--shadow-hard); transition: transform .18s var(--ease), box-shadow .18s; }
.vis-card.is-print img { border-radius: 8px; }
.vis-card.is-print .vis-clip { left: 14px; top: -12px; transform: rotate(-12deg); width: 28px; height: 28px; }
.vis-card.is-print .vis-clip { transition: translate .18s var(--ease); }
.vis-card.is-print:hover .vis-frame { transform: translateY(-4px); box-shadow: 6px 7px 0 var(--shadow-hard); }
.vis-card.is-print:hover .vis-clip { translate: 0 -4px; } /* the clip lifts with its print */
.vis-card.is-cutout .vis-frame { padding: 6px 10px; transform: rotate(var(--tilt, 0deg)); transition: transform .22s var(--ease); }
.vis-card.is-cutout img { filter: drop-shadow(2px 0 0 var(--frill)) drop-shadow(-2px 0 0 var(--frill)) drop-shadow(0 2px 0 var(--frill)) drop-shadow(0 -2px 0 var(--frill)) drop-shadow(5px 5px 0 rgb(0 0 0 / .5)); }
.vis-card.is-cutout:hover .vis-frame { transform: rotate(0deg) translateY(-4px); }
.vis-card.is-pixel img, .vis-viewer.is-pixel .vis-stage img { image-rendering: pixelated; } /* dot art stays crisp when scaled */
.vis-label { display: grid; gap: 2px; padding: 0 4px; }
.vis-label .vis-title { font-family: var(--font-song); font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.vis-label .vis-by { font-size: 13px; }
.vis-card:focus-visible { outline: none; }
.vis-card:focus-visible .vis-frame { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 14px; }

.vis-wall > li.vis-none { column-span: all; display: grid; justify-items: start; gap: 10px; padding: 12px 4px; color: var(--text-soft); }
.vis-foot { margin-top: 10px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 13.5px; color: var(--text-soft); line-height: 1.8; }
.vis-foot p { margin: 0 0 6px; }
.vis-foot a { color: var(--ice); }

@media (max-width: 860px) {
  .visuals .vis-hero { grid-template-columns: minmax(0, 1fr); }
  .vis-wall { columns: 2 150px; }
}
@media (max-width: 420px) {
  .vis-label .vis-title { font-size: 14px; }
  .vis-person { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .vis-card.is-cutout .vis-frame, .vis-card.is-cutout:hover .vis-frame { transform: rotate(var(--tilt, 0deg)); transition: none; }
  .vis-card.is-print:hover .vis-frame, .vis-hero-art:hover, .vis-person:hover { transform: none; }
  .vis-card.is-print:hover .vis-clip { translate: none; }
}

/* ---------------- めめのトランプ〆 (#/cards): the deck made from her official art ----------------
   The hand lies on a lace-black table in both themes (night tokens are re-scoped inside it). A card
   turns with rotateY; the hard 2.5D shadow belongs to the table and stays put while the card turns
   and lifts. Faces are baked images with transparent rounded corners. */
.cards-teaser { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; padding: 14px 20px; text-decoration: none; color: inherit; }
.cards-teaser strong { font-family: var(--font-hand); font-weight: 400; font-size: 24px; }
.cards-teaser .shime { margin-left: 2px; font-family: var(--font-hand); color: var(--pink-text); display: inline-block; transform: rotate(-8deg); }
.cards-teaser small { display: block; color: var(--text-soft); font-size: 14px; }
.cards-teaser .fan { position: relative; flex: none; width: 74px; height: 56px; }
.cards-teaser .fan i { position: absolute; left: 24px; top: 2px; width: 34px; height: 48px; border-radius: 5px; background: #141216;
  box-shadow: inset 0 0 0 2px #141216, inset 0 0 0 3.5px #3aa8bc, 2px 2px 0 var(--shadow-hard); transform-origin: 50% 110%; }
.cards-teaser .fan i:nth-child(1) { transform: rotate(-16deg); }
.cards-teaser .fan i:nth-child(3) { transform: rotate(16deg); background: #fbf8f3; box-shadow: inset 0 0 0 2px #fbf8f3, inset 0 0 0 2.6px #9c3a64, 2px 2px 0 var(--shadow-hard); }

.card-table { --text: #f6f1ea; --text-soft: #c9c0b6; --text-faint: #a8a097; --bg: #141216; --raised: #1c191e; --line-strong: #a39c96;
  --shadow-hard: #000; --focus: #f6f1ea; --pink-text: #f48db3; --ice: #8ed4e6;
  position: relative; margin: 6px 0 26px; padding: clamp(18px, 3vw, 30px) clamp(14px, 3vw, 32px) 22px; border-radius: 22px; color: var(--text);
  background: radial-gradient(rgb(246 241 234 / .06) 1.2px, transparent 1.4px) 0 0 / 8px 8px, #141216;
  border: 2px solid #f6f1ea; box-shadow: 6px 6px 0 #000; }
:root[data-theme="day"] .card-table { border-color: #1a161c; box-shadow: 6px 6px 0 #1a161c; }
.card-table::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 20px 20px 0 0; background: var(--hair); }
.hand-head { text-align: center; }
.hand-title { margin: 6px 0 2px; font-family: var(--font-hand); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.2; }
.hand-title .shime { margin-left: 2px; color: var(--pink-text); display: inline-block; transform: rotate(-8deg); }
.hand-sub { margin: 0 0 6px; color: var(--text-soft); font-size: 14.5px; }
.hand { list-style: none; display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 1.6vw, 20px); margin: 18px 0 8px; padding: 10px 0 18px; }
.hand > li { position: relative; flex: 0 1 168px; min-width: 0; }
.hand > li:nth-child(1) { transform: rotate(-5deg) translateY(14px); }
.hand > li:nth-child(2) { transform: rotate(-2.5deg) translateY(4px); }
.hand > li:nth-child(4) { transform: rotate(2.5deg) translateY(4px); }
.hand > li:nth-child(5) { transform: rotate(5deg) translateY(14px); }
.hand > li::before { content: ""; position: absolute; inset: 0; border-radius: 4.8% / 3.4%; background: #000; translate: 6px 6px; }
.flip-card { position: relative; display: block; width: 100%; aspect-ratio: 63 / 88; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1100px; transition: translate .2s var(--ease); }
.flip-card .flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.flip-card .card-img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; }
.flip-card .card-img:not(.back) { transform: rotateY(180deg); }
.flip-card.is-turned .flip-inner { transform: rotateY(180deg); }
.flip-card:hover, .flip-card:focus-visible { translate: 0 -8px; }
.flip-card:focus-visible { outline: 3px solid var(--ice); outline-offset: 4px; border-radius: 6px; }
.hand.is-dealing .flip-card { animation: card-deal .5s var(--ease) both; animation-delay: calc(var(--n) * 90ms); }
@keyframes card-deal { from { opacity: 0; transform: translate(-30px, -70px) rotate(-14deg); } }
.hand-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 8px; }
.hand-hint { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--text-faint); }

.card-viewer .card-stage { grid-column: 2; display: grid; place-items: center; perspective: 1400px; }
.card-turn { position: relative; width: min(400px, 100%, calc((100vh - 280px) * 63 / 88)); aspect-ratio: 63 / 88; transform-style: preserve-3d; transition: transform .6s var(--ease); }
@media (max-width: 1023px) {
  /* the phone and tablet dock covers the bottom of the screen: the card fits above it */
  .is-docked .card-turn { width: min(400px, 100%, calc((100dvh - var(--dock-h, 0px) - 200px) * 63 / 88)); }
  .is-docked .card-viewer { scroll-margin-bottom: calc(var(--dock-h, 0px) + 12px); }
}
.card-turn .card-img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; filter: drop-shadow(5px 5px 0 rgb(0 0 0 / .55)); }
.card-turn .card-img.back { transform: rotateY(180deg); }
.card-turn.is-back { transform: rotateY(180deg); }
.card-viewer .card-name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-song); font-size: 17px; }
.card-viewer .card-name .pip { width: 18px; height: 18px; }
.card-viewer .card-work { font-family: var(--font-song); font-weight: 600; }
.card-viewer .card-flip-btn { margin-left: auto; }
.card-viewer .vis-count { margin-left: 0; }
.pip { fill: currentColor; color: var(--text); --p-hole: var(--raised); }
.pip.is-heart, .pip.is-pick, .suit.is-heart .pip, .suit.is-pick .pip { color: var(--pink-text); }

.card-shelf { margin-top: 8px; }
.shelf-note { margin: 4px 0 0; font-size: 13.5px; }
.shelf { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(112px, 28vw), 1fr)); gap: clamp(12px, 2vw, 22px) clamp(10px, 1.6vw, 18px); margin: 16px 0 0; padding: 4px; }
.shelf-card { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; transition: translate .18s var(--ease); }
.shelf-card .card-img { display: block; width: 100%; height: auto; filter: drop-shadow(3px 3px 0 var(--shadow-hard)); }
.shelf-card:hover { translate: 0 -5px; }
.shelf-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.card-legend { margin-top: 26px; display: grid; gap: 4px; }
.card-legend .suits { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 22px; margin: 6px 0 14px; padding: 0; }
.card-legend .suit { display: grid; grid-template-columns: 30px auto; column-gap: 10px; align-items: center; }
.card-legend .suit .pip { width: 28px; height: 28px; grid-row: span 2; }
.card-legend .suit strong { font-family: var(--font-song); font-weight: 600; }
.card-legend .suit span { color: var(--text-soft); font-size: 14px; }
.back-note { display: flex; align-items: center; gap: 18px; margin: 4px 0 8px; }
.back-note .card-img { width: 104px; height: auto; flex: none; filter: drop-shadow(3px 3px 0 var(--shadow-hard)); }
.back-note figcaption { color: var(--text-soft); font-size: 14px; line-height: 1.8; }

@media (max-width: 560px) {
  .hand { gap: 0; padding-inline: 6px; }
  .hand > li { flex: 1 1 0; margin: 0 -4px; }
  .hand-actions .btn { flex: 1 1 auto; }
  .card-viewer .card-flip-btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card, .flip-card .flip-inner, .card-turn, .shelf-card { transition: none; }
  .hand.is-dealing .flip-card { animation: none; }
  .flip-card:hover, .flip-card:focus-visible, .shelf-card:hover { translate: none; }
}

/* 歌枠アーカイブ (#/streams): every public singing stream, playable whole while setlists are confirmed */
.archive-h { margin: 30px 0 4px; font-family: var(--font-hand); font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); }
.archive-lead { margin: 0 0 14px; color: var(--text-soft); font-size: 14.5px; line-height: 1.8; }
.archive-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.archive-card { display: grid; gap: 6px; padding: 10px 10px 12px; height: 100%; align-content: start; }
.archive-thumb { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000; }
.archive-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s var(--ease), opacity .2s; }
.archive-thumb .pick { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; transition: opacity .2s; }
.archive-thumb:hover img, .archive-thumb:focus-visible img { opacity: .82; transform: scale(1.03); }
.archive-thumb:hover .pick, .archive-thumb:focus-visible .pick { opacity: 1; }
.archive-thumb:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.archive-card .stream-title { font-size: 14px; line-height: 1.5; color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.archive-card .stream-title:hover { text-decoration: underline; }
.archive-card .tag { justify-self: start; }
.archive-status { margin: 14px 0 6px; font-size: 13.5px; }
.archive-more { display: flex; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .archive-thumb img { transition: none; } .archive-thumb:hover img { transform: none; } }

/* 配信の記録 (#/data): streams per year and the week's heat, from the stream log */
.life { margin: 6px 0 26px; }
.life-h { margin: 22px 0 10px; font-family: var(--font-hand); font-weight: 400; font-size: 21px; }
.life-years { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.life-years li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) 4.6em; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.life-years .yr { font-weight: 700; color: var(--text-soft); }
.life-years .bar { height: 12px; width: var(--w); min-width: 4px; border-radius: 999px; background: var(--hair); box-shadow: 2px 2px 0 var(--shadow-hard); }
.life-years .n { font-size: 14px; color: var(--text-soft); text-align: right; }
.life-heat .lab { font-size: 9px; fill: var(--text-faint); }
.life-later { margin-top: 18px; }

/* あゆみ: a work from the wall, pinned to its milestone */
.tl-art { display: block; width: fit-content; max-width: 100%; margin: 10px 0 4px; padding: 6px; border: 2px solid var(--text); border-radius: 12px; background: var(--frill); box-shadow: 3px 3px 0 var(--shadow-hard); transition: transform .18s var(--ease); }
.tl-art img { display: block; max-width: min(100%, 260px); max-height: 150px; width: auto; height: auto; border-radius: 6px; }
.tl-art:hover { transform: translateY(-3px); }
.tl-art:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tl-art:hover { transform: none; } }

/* Home: her official art while the fan-art wall waits for permissions */
.home-art-strip { list-style: none; margin: 4px 0 0; padding: 6px 2px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; }
.home-art-card { display: block; padding: 6px; border: 2px solid var(--text); border-radius: 12px; background: var(--frill); box-shadow: 3px 3px 0 var(--shadow-hard); transition: transform .18s var(--ease); }
.home-art-card img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; border-radius: 6px; }
.home-art-card.is-cutout { padding: 0; border: 0; background: none; box-shadow: none; }
.home-art-card.is-cutout img { border-radius: 0; filter: drop-shadow(2px 0 0 var(--frill)) drop-shadow(-2px 0 0 var(--frill)) drop-shadow(0 2px 0 var(--frill)) drop-shadow(0 -2px 0 var(--frill)) drop-shadow(4px 4px 0 rgb(0 0 0 / .45)); }
.home-art-card:hover { transform: translateY(-4px); }
.home-art-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.home-art-foot { margin: 14px 0 0; font-size: 14px; line-height: 1.8; }
@media (max-width: 860px) { .home-art-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .home-art-card:hover { transform: none; } }

/* めめあーと (#/art): her words, the frame a work will hang in, her thank-you notes, how to join */
.art-welcome { display: grid; gap: 22px; margin: 6px 0 30px; }
.art-voice { margin: 0; padding: 22px 26px; position: relative; }
.art-voice blockquote { margin: 0; }
.art-voice p { margin: 0; font-family: var(--font-hand); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.7; }
.art-voice p::before { content: "“"; font-family: var(--font-latin); font-size: 2.4em; line-height: 0; vertical-align: -.45em; margin-right: 4px; color: var(--pink-text); }
.art-voice figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-soft); }
.art-voice figcaption a { color: var(--ice); }
.art-preview { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; }
.art-sample { position: relative; transform: rotate(-2deg); }
.art-sample .post img { object-fit: contain; background: #fbf8f3; }
.art-sample-tag { position: absolute; z-index: 2; top: -12px; right: -8px; padding: 4px 10px; border-radius: 999px; background: var(--heart); color: var(--on-heart); font-size: 12px; font-weight: 700; border: 2px solid var(--ink); transform: rotate(4deg); }
.art-promises { margin: 6px 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.art-promises li { position: relative; padding-left: 26px; line-height: 1.7; }
.art-promises li::before { content: "✕"; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--pink-text); }
.art-thanks { margin: 10px 0 30px; }
.thanks-list { list-style: none; margin: 14px 0 0; padding: 0 0 0 4px; border-left: 2px dashed var(--line-strong); display: grid; gap: 18px; }
.thanks-item { position: relative; display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 4px 16px; padding-left: 22px; }
.thanks-node { position: absolute; left: -13px; top: 2px; width: 24px; height: 24px; }
.thanks-node .mo { width: 100%; height: 100%; }
.thanks-item time { font-size: 13.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; padding-top: 3px; }
.thanks-body { display: grid; gap: 4px; }
.thanks-what { margin: 0; line-height: 1.7; }
.thanks-quote { margin: 0; font-family: var(--font-song); color: var(--pink-text); line-height: 1.7; }
.art-howto { padding: 20px 24px; margin-bottom: 10px; }
.art-steps { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 10px; }
.art-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: baseline; line-height: 1.7; }
.step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text); font-weight: 700; font-size: 13px; }
.art-takedown { margin: 8px 0 0; font-size: 13.5px; }
@media (max-width: 640px) {
  .art-preview { grid-template-columns: minmax(0, 1fr); }
  .art-sample { max-width: 260px; margin: 0 auto; }
  .thanks-item { grid-template-columns: minmax(0, 1fr); }
}

/* SNS のうた (#/songs?tab=sns): her own covers on Instagram, each a link to her post */
.sns-year { margin: 18px 0 0; }
.sns-year-label { margin: 0 0 10px; font-family: var(--font-hand); font-weight: 400; font-size: 28px; color: var(--ice); }
.sns-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sns-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; }
.sns-platform { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f9b45c, #e1306c 55%, #8a3ab9); }
.sns-main { display: grid; gap: 2px; min-width: 0; }
.song-title-inline { font-family: var(--font-song); font-weight: 600; font-size: 17px; }
.sns-caption { font-size: 13px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sns-side { display: grid; justify-items: end; gap: 2px; font-size: 13.5px; }
.sns-side time { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.sns-foot { margin-top: 18px; font-size: 13.5px; }
.sns-elsewhere { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; margin: 0 0 18px; }
.sns-elsewhere ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sns-elsewhere li { display: flex; align-items: center; gap: 8px; }
.sns-elsewhere .sns-platform { width: 26px; height: 26px; font-size: 10px; border-radius: 8px; }
.sns-elsewhere a { color: var(--ice); }
@media (max-width: 560px) {
  .sns-item { grid-template-columns: 34px minmax(0, 1fr); }
  .sns-side { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; }
}
.tag-how.is-own { border-color: var(--ice); color: var(--ice); }
.tag-how.is-heard { border-color: var(--pink-text); color: var(--pink-text); }
.coverage { display: grid; gap: 6px; margin: 0 0 16px; max-width: 560px; }
.coverage-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; border: 1.5px solid var(--line-strong); }
.coverage-bar i { display: block; height: 100%; background: var(--hair); }
.coverage-text { font-size: 13.5px; color: var(--text-soft); }

/* Phone dock, minimize: a quiet handle at the dock's top edge folds the player into a one-line bar.
   Folding pauses first (a YouTube player is never hidden while it plays); the bar resumes. */
.dock-mini { display: none; }
.dock-min { display: none; }
@media (max-width: 1023px) {
  /* The handle sits on the fixed .room, outside the dock's scroll box, so short screens still scroll. */
  .is-docked .dock-min {
    display: inline-flex; align-items: center; gap: 4px; position: absolute; top: -15px; right: 14px; z-index: 2;
    height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised);
    color: var(--text-soft); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 -4px 12px rgb(0 0 0 / .25);
  }
  .is-docked .dock-min:hover, .is-docked .dock-min:focus-visible { color: var(--text); border-color: var(--heart); }
  body.is-docked.dock-open .dock-min, body.is-docked.dock-folded .dock-min { display: none; }

  body.is-docked.dock-folded .room-inner { display: none; }
  body.is-docked.dock-folded .dock-mini {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 0;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--line); border-bottom: 0;
    border-radius: 16px 16px 0 0; background: var(--raised); color: var(--text); font: inherit; text-align: left; cursor: pointer;
    box-shadow: 0 -10px 30px rgb(0 0 0 / .35);
  }
  :root[data-theme="day"] body.is-docked.dock-folded .dock-mini { box-shadow: 0 -10px 30px rgb(26 22 28 / .18); }
  .dock-mini img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
  .dock-mini-text { display: grid; min-width: 0; flex: 1; }
  .dock-mini-title { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-mini-cta { font-size: 12.5px; color: var(--text-soft); }
  .dock-mini-play { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--heart); color: var(--on-heart); font-size: 15px; }
  body.is-docked.dock-folded { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
/* A tighter phone dock: the player at YouTube's 200 px minimum, the secondary links inside ☰. */
@media (max-width: 560px) {
  .is-docked .player-frame { aspect-ratio: auto; height: 200px; }
  .is-docked .now-links { display: none; }
  body.is-docked.dock-open .now-links { display: flex; grid-column: 1 / -1; }
  .is-docked .unmute { min-height: 42px; margin-top: 8px; }
  .is-docked .seekrow { margin-top: 2px; }
}
