/* hamilton-chords.pages.dev - round 3 (Daniel, 12.10.2026: "younger, modern, fun, like my other songbooks"; he picked
   direction C for the dark look with A for the light one, leaning to C).
   Dark (default): a night app - near-black, a warm orange glow and a cool blue one, the cover big with the name on it,
   number bubbles in an orange-to-coral gradient. Light ("מכתב" button, html[data-paper]): cream with warm glows and white
   cards, the same layout. Daniel's own font everywhere (fonts/ from the songbook). */

:root, :root[data-theme="night"] {
  color-scheme: only dark;
  --read: "Rubik", "Daniel Letters", system-ui, sans-serif; --disp: "Daniel Letters", "Rubik", sans-serif;
  --bg: #0b0a10; --surface: rgba(255, 255, 255, 0.055); --surface-2: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.09); --ink-text: #ffffff; --soft: #b8b1c9; --faint: #8a839c;
  --acc1: #ffc857; --acc2: #ff6b6b; --glow-a: rgba(255, 159, 28, 0.32); --glow-b: rgba(91, 91, 255, 0.26);
  --hero-fade: linear-gradient(to top, rgba(11, 10, 16, 0.96) 6%, rgba(11, 10, 16, 0.35) 55%, rgba(11, 10, 16, 0) 80%);
  --bar-bg: rgba(11, 10, 16, 0.82); --pop-bg: #17151f; --main-btn-bg: #ffffff; --main-btn-fg: #0b0a10;
  --note-bg: rgba(255, 200, 87, 0.13); --note-fg: #ffc857;
  /* the songbook's own tokens, from these */
  --bg-0: var(--bg); --bg-1: var(--bg); --bg-2: var(--bg);
  --card: var(--surface); --card-strong: var(--surface-2); --line: var(--stroke);
  --text: var(--ink-text); --muted: var(--soft); --chord: var(--acc1); --section: #ff8f6b;
  --gold-a: var(--acc1); --gold-b: var(--acc2); --violet-a: var(--acc1); --violet-b: var(--acc2);
  --accent-a: var(--acc1); --accent-b: var(--acc2);
  --page-art: none; --page-bg: var(--bg);
  --page-tint: radial-gradient(circle 340px at 92% 4%, var(--glow-a), transparent 70%),
               radial-gradient(circle 360px at 0% 72%, var(--glow-b), transparent 70%), var(--bg);
}
html[data-paper], html[data-paper] body[data-page="song"] {
  color-scheme: only light;
  --bg: #fff8ec; --surface: #ffffff; --surface-2: #fff3df;
  --stroke: rgba(130, 70, 10, 0.1); --ink-text: #26160d; --soft: #8a5a35; --faint: #a98563;
  --acc1: #ffb800; --acc2: #ff5f6d; --glow-a: rgba(255, 184, 0, 0.4); --glow-b: rgba(255, 95, 109, 0.22);
  --hero-fade: linear-gradient(to top, rgba(255, 112, 40, 0.94) 4%, rgba(255, 150, 50, 0.4) 50%, rgba(255, 170, 60, 0) 78%);
  --bar-bg: rgba(255, 248, 236, 0.9); --pop-bg: #ffffff; --main-btn-bg: #26160d; --main-btn-fg: #ffffff;
  --note-bg: rgba(232, 89, 12, 0.1); --note-fg: #c2410c;
  --chord: #e8590c; --section: #c2410c;
}
html, body { background: var(--bg); }
body { font-family: var(--read); color: var(--text); }
::selection { background: rgba(255, 184, 0, 0.35); }

/* ---------- top bar ---------- */
.topbar, :root[data-theme="night"] .topbar, body[data-page="song"] .topbar { background: var(--bar-bg) !important; border-bottom: 1px solid var(--stroke) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: none; }
#btn-theme, #btn-search, #btn-room, #site-footer { display: none !important; }
.ham-brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text); }
.ham-brand .ham-star { width: 20px; height: 20px; color: var(--acc1); }
.ham-brand span { display: inline !important; font: 900 23px/1 var(--read); color: var(--text); direction: ltr; }
.icon-btn { color: var(--text); background: var(--surface); border-color: var(--stroke); }
#ham-paper .hp-moon { display: none; }
html[data-paper] #ham-paper .hp-sun { display: none; }
html[data-paper] #ham-paper .hp-moon { display: block; }

/* loader */
.ham-boot { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 60vh; color: var(--acc1); }
.ham-boot .ham-star { width: 64px; height: 64px; animation: ham-pop 1.2s cubic-bezier(0.3, 1.5, 0.5, 1) infinite alternate; }
.ham-boot p { font: 900 30px/1 var(--read); color: var(--text); margin: 0; direction: ltr; }
@keyframes ham-pop { from { transform: scale(0.85) rotate(-8deg); } to { transform: scale(1.05) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .ham-boot .ham-star { animation: none; } }

/* ---------- home: the cover big, the name on it ---------- */
.list-hero.toc-hero { position: relative; display: block; min-height: 0; height: clamp(240px, 64vw, 340px); padding: 0; overflow: hidden;
  border: 0; border-radius: 30px; background: var(--img) center 30% / cover, #2a1d0a !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.list-hero.toc-hero::before, .list-hero .th-fig, .list-hero .th-fx { display: none !important; }
.list-hero.toc-hero::after { content: ""; display: block !important; position: absolute; inset: 0; z-index: 0; background: var(--hero-fade) !important; animation: none !important; }
.list-hero .th-text { position: absolute; inset: auto 18px 16px 18px; z-index: 1; max-width: none !important; padding: 0; text-align: start; }
.list-hero .th-kicker, .list-hero .th-count { display: none !important; }
.list-hero h1 { margin: 0; font: 900 clamp(42px, 13vw, 58px)/0.95 var(--read) !important; color: #fff !important;
  letter-spacing: 0 !important; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important; direction: ltr; text-align: right; }
.list-hero .th-about { margin: 6px 0 0 !important; font: 400 16px/1.35 var(--read); color: rgba(255, 255, 255, 0.88) !important; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }

/* the actions row: start, my part (the characters wait in a sheet) */
.ham-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.ha-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--text); font: 700 15px/1 var(--read); text-decoration: none; cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.2s; }
.ha-btn:active { transform: scale(0.95); }
.ha-main { background: var(--main-btn-bg); color: var(--main-btn-fg); border-color: transparent; }
.ha-role.on { background: linear-gradient(120deg, var(--acc1), var(--acc2)); color: #1a0d00; border-color: transparent; }
.ha-x { width: 42px; justify-content: center; padding: 0; }
.ha-note { margin: 4px 2px 0; font: 400 14px/1.4 var(--read); color: var(--soft); }

/* search + share / save / print */
.toc-search { background: var(--surface); border: 1px solid var(--stroke); border-radius: 999px; }
.toc-search input { color: var(--text); font-family: inherit; }
.toc-search input::placeholder { color: var(--faint); }
.chipbtn { background: var(--surface); color: var(--text); border-color: var(--stroke); font-family: inherit; }
.view-rail { display: none !important; }

/* the track list: a number bubble, the name, who sings it */
.song-list .tc-thumb { display: none !important; }
.toc-item a { min-height: 66px; gap: 12px; padding: 10px 12px; border-radius: 20px; border: 1px solid var(--stroke);
  background: var(--surface); box-shadow: none; }
html[data-paper] .toc-item a { box-shadow: 0 3px 12px rgba(120, 60, 0, 0.07); border-color: transparent; }
.toc-item a::before { position: static !important; inset: auto !important; opacity: 1 !important; z-index: auto !important; transform: none !important;
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--acc1), var(--acc2)) !important; color: #1a0d00 !important;
  font: 900 17px/1 var(--read); clip-path: none; padding: 0; }
.toc-item .song-title { font: 900 17.5px/1.2 var(--read); color: var(--text); letter-spacing: 0; }
.toc-item .tc-sub, .toc-item .tc-artist { font: 400 13.5px/1.35 var(--read); color: var(--soft); }
.toc-item .tc-go { color: var(--faint); background: none; }
.toc-item a:hover, .toc-item a:focus-visible { transform: translateY(-2px); border-color: var(--acc1); }
.song-list > li::before { display: block; margin: 20px 6px 8px; font: 900 17px/1 var(--read); color: var(--acc1);
  border: 0; padding: 0; }
html[data-paper] .song-list > li::before { color: #e8590c; }

/* the character sheet */
.ham-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hr-btn { display: grid; gap: 2px; justify-items: center; padding: 12px 4px; border-radius: 18px; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer; transition: transform 0.15s; }
.hr-btn b { font-weight: 900; font-size: 16px; }
.hr-btn small { font-size: 12px; color: var(--soft); }
.hr-btn:active { transform: scale(0.95); }
.hr-btn[aria-pressed="true"] { background: linear-gradient(135deg, var(--acc1), var(--acc2)); color: #1a0d00; border-color: transparent; }
.hr-btn[aria-pressed="true"] small { color: #3a1d06; }
.hr-none { margin-top: 12px; width: 100%; min-height: 44px; border-radius: 999px; border: 1px solid var(--stroke); background: none; color: var(--text); font: 700 15px/1 var(--read); cursor: pointer; }

/* ---------- song page ---------- */
html[data-site="hamilton"] body[data-page="song"] { background: var(--bg);
  --text: var(--ink-text); --muted: var(--soft); --line: var(--stroke); --card: var(--surface); --card-strong: var(--surface-2);
  --accent-a: var(--acc1); --accent-b: var(--acc2); --dot: var(--acc1); --dot-soft: var(--acc2); --chord: var(--acc1); --section: #ff8f6b; }
html[data-paper] body[data-page="song"] { --chord: #e8590c; --section: #c2410c; }
html[data-site="hamilton"] #song-bg { opacity: 0 !important; }
html[data-site="hamilton"] body[data-page="song"] .l-tx, html[data-site="hamilton"] body[data-page="song"] .l-ch { text-shadow: none; }
html[data-site="hamilton"] .song-head h1 { font-family: var(--read); font-weight: 900; }
html[data-site="hamilton"] .song-head .head-fig img { border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
html[data-site="hamilton"] .l-note { background: var(--note-bg); color: var(--note-fg); border: 0; font-family: inherit; font-weight: 900; letter-spacing: 0; }
html[data-site="hamilton"] .parts button, html[data-site="hamilton"] .vc-toggle { font-family: inherit; color: var(--text); background: var(--surface); border-color: var(--stroke); }
html[data-site="hamilton"] .parts button[aria-pressed="true"] { background: linear-gradient(120deg, var(--acc1), var(--acc2)); color: #1a0d00; border-color: transparent; }
html[data-site="hamilton"] .songbar { background: rgba(20, 18, 28, 0.94) !important; border: 1px solid rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.08); --card-strong: rgba(255, 255, 255, 0.14); --text: #fff; --line: rgba(255, 255, 255, 0.12); }
html[data-site="hamilton"] .songbar .seg-ctl button[aria-pressed="true"] { background: linear-gradient(120deg, var(--acc1), var(--acc2)); color: #1a0d00; }
html[data-site="hamilton"] .fav-btn:not(.share-btn) { display: none !important; }
html[data-site="hamilton"] .fav-btn { color: var(--acc1); }
html[data-paper] .fav-btn { color: #e8590c; }
.cr-artist { pointer-events: none; color: inherit; text-decoration: none; }

/* ---------- settings pop + sheets ---------- */
html[data-site="hamilton"] .chord-pop, html[data-site="hamilton"] .read-pop, html[data-site="hamilton"] .sheet-card {
  background: var(--pop-bg) !important; border: 1px solid var(--stroke) !important; color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
html[data-site="hamilton"] .rp-btn, html[data-site="hamilton"] .stepper, html[data-site="hamilton"] .rp-more, html[data-site="hamilton"] .read-pop .seg-ctl {
  background: var(--surface) !important; border-color: var(--stroke) !important; color: var(--text) !important; }
html[data-site="hamilton"] .read-pop .seg-ctl button[aria-pressed="true"] { background: linear-gradient(120deg, var(--acc1), var(--acc2)) !important; color: #1a0d00 !important; }
html[data-paper] .rp-btn, html[data-paper] .stepper, html[data-paper] .rp-more, html[data-paper] .read-pop .seg-ctl { background: #fff3df !important; }
/* cinema mode / background animations are the songbook's look; the tour and the admin the songbook's too */
html[data-site="hamilton"] .rp-grid > .rp-sw:nth-child(1), html[data-site="hamilton"] .rp-grid > .rp-sw:nth-child(5),
html[data-site="hamilton"] .rp-tours, html[data-site="hamilton"] .rp-foot a.rp-more { display: none !important; }
html[data-site="hamilton"] .sheet-card .hint { color: var(--soft); }

/* ---------- singing together: names in, parts out, a link each ---------- */
.ha-welcome { margin: 10px 0 2px; padding: 14px 16px; border-radius: 20px; font: 900 19px/1.3 var(--read); color: #1a0d00;
  background: linear-gradient(120deg, var(--acc1), var(--acc2)); box-shadow: 0 10px 26px rgba(255, 107, 107, 0.25); }
.ha-welcome b { font-size: 1.1em; }
.ha-welcome small { display: block; margin-top: 2px; font: 400 14px/1.4 var(--read); color: #3a1d06; }
.hg-names { width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--surface);
  color: var(--text); font: 400 17px/1.5 var(--read); resize: vertical; box-sizing: border-box; }
.hg-deal { background: linear-gradient(120deg, var(--acc1), var(--acc2)) !important; color: #1a0d00 !important; border-color: transparent !important; }
.hg-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.hg-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); }
.hg-list b { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.hg-list select { min-height: 38px; max-width: 46%; padding: 0 8px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--pop-bg);
  color: var(--text); font: 700 15px/1 var(--read); }
.hg-send { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--main-btn-bg); color: var(--main-btn-fg);
  font: 700 14px/1 var(--read); cursor: pointer; }

/* ---------- fonts (Daniel: his font is great but too bold and narrow to read lists and lyrics) ----------
   Rubik - rounded, clear, the songbook's second font - for everything read; Daniel Letters only for the big display words */
html[data-site="hamilton"] body, html[data-site="hamilton"] .lyrics, html[data-site="hamilton"] .l-tx, html[data-site="hamilton"] .l-ch,
html[data-site="hamilton"] .song-head, html[data-site="hamilton"] button, html[data-site="hamilton"] input, html[data-site="hamilton"] textarea,
html[data-site="hamilton"] select, html[data-site="hamilton"] .b-ch, html[data-site="hamilton"] .bars { font-family: var(--read); }
html[data-site="hamilton"] .l-tx { font-weight: 500; }
html[data-site="hamilton"] .l-ch, html[data-site="hamilton"] .b-ch { font-weight: 700; }
.toc-item .song-title { font: 600 17px/1.25 var(--read); }
.toc-item .tc-sub, .toc-item .tc-artist { font: 400 13.5px/1.4 var(--read); }
.toc-item a::before { font: 700 16px/1 var(--read); }
.ha-btn, .hr-none, .hg-send, .hg-list select { font-family: var(--read); font-weight: 600; }
.ha-welcome { font-family: var(--read); font-weight: 700; }
.hr-btn b { font-weight: 700; }
html[data-site="hamilton"] .l-note { font-family: var(--read); font-weight: 700; }
/* display: the name, the brand, the loader, the acts, the sheet titles, the song's title */
.ham-brand span, .ham-boot p, .list-hero h1, .song-list > li::before, #sheet-body h2 { font-family: var(--disp) !important; }
html[data-site="hamilton"] .song-head h1 { font-family: var(--disp); font-weight: 900; }
html[data-site="hamilton"] .lyrics .l-tx, html[data-site="hamilton"] body[data-page="song"] .l-tx { font-weight: 500 !important; }

/* ---------- round 4: mobile polish, a breathing home, the parts strip ---------- */
/* the cover breathes: a slow zoom and drift (off for reduced motion) */
.list-hero.toc-hero { background: #2a1d0a !important; isolation: isolate; }
.list-hero.toc-hero::before { content: ""; display: block !important; position: absolute; inset: 0; z-index: -1;
  background: var(--img) center 30% / cover; animation: ham-breathe 16s ease-in-out infinite alternate; filter: none !important; }
@keyframes ham-breathe { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.12) translateY(-10px); } }
.list-hero .th-text { animation: ham-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes ham-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .list-hero.toc-hero::before, .list-hero .th-text { animation: none; } }

/* the actions: the main one full width on a phone, the rest share a row */
.ham-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ham-actions .ha-main { grid-column: 1 / -1; justify-content: center; min-height: 50px; font-size: 16.5px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.ham-actions .ha-main bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.ham-actions .ha-btn { justify-content: center; }
.ham-actions:has(.ha-x) { grid-template-columns: 1fr auto 1fr; }
@media (min-width: 640px) { .ham-actions { display: flex; } .ham-actions .ha-main { min-height: 44px; } }

/* "שכולם שרים": four big tiles, two by two */
.ham-top { margin: 18px 0 6px; }
.ham-top h2, .ham-end h2 { margin: 0 4px 10px; font: 900 19px/1 var(--disp); color: var(--text); }
.ht-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ht-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-height: 118px; padding: 12px 14px;
  border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ht-tile:active { transform: scale(0.96); }
.ht-tile::after { content: "★"; position: absolute; top: -18px; left: -10px; z-index: -1; font-size: 120px; line-height: 1; color: rgba(255, 255, 255, 0.14); transform: rotate(-14deg); }
.ht-0 { background: linear-gradient(140deg, #ffb347, #ff5e62); }
.ht-1 { background: linear-gradient(140deg, #8e54e9, #4776e6); }
.ht-2 { background: linear-gradient(140deg, #11998e, #38ef7d); }
.ht-3 { background: linear-gradient(140deg, #f857a6, #ff5858); }
.ht-n { position: absolute; top: 10px; right: 12px; font: 700 13px/1 var(--read); opacity: 0.85; }
.ht-tile b { font: 900 21px/1.05 var(--disp); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.ht-tile small { font: 500 12.5px/1.3 var(--read); opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the tools at the end of the page */
.ham-end { margin: 26px 0 10px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); text-align: center; }
.ham-end .pl-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- the song page on a phone ---------- */
html[data-site="hamilton"] .song-film { display: none !important; }    /* "המילטון ›" - the whole site is Hamilton */
/* the parts strip: one line, opens on a tap */
.parts-fold { margin: 10px 0 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; }
.parts-fold > summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; cursor: pointer; list-style: none;
  font: 600 15px/1 var(--read); color: var(--text); -webkit-tap-highlight-color: transparent; }
.parts-fold > summary::-webkit-details-marker { display: none; }
.parts-fold .pf-now { margin-inline-start: auto; padding: 6px 12px; border-radius: 999px; font: 700 13.5px/1 var(--read); color: var(--soft); background: var(--surface-2); }
.parts-fold[open] .pf-now, .parts-fold:has([aria-pressed="true"][data-part]) .pf-now { background: linear-gradient(120deg, var(--acc1), var(--acc2)); color: #1a0d00; }
.parts-fold .pf-arrow { font-size: 13px; color: var(--faint); transition: transform 0.25s; }
.parts-fold[open] .pf-arrow { transform: rotate(180deg); }
.parts-fold .parts { margin: 0; padding: 4px 12px 14px; animation: ham-up 0.3s ease both; }
.parts-fold .parts-label { display: none; }
@media (prefers-reduced-motion: reduce) { .parts-fold .parts { animation: none; } }

/* the head on a phone: the cover small beside the title, nothing floating */
@media (max-width: 560px) {
  html[data-site="hamilton"] .song-head .head-fig { width: 84px !important; height: 84px !important; }
  html[data-site="hamilton"] .song-head h1 { font-size: clamp(26px, 8vw, 34px); line-height: 1.05; }
  html[data-site="hamilton"] .song-head .credits { font-size: 12.5px; }
}
/* lyrics breathe a little more on a phone */
html[data-site="hamilton"] body[data-page="song"] .lyrics { line-height: 1.5; }
/* the song page: the album cover is the same in every song - out of the head, the title gets the whole width */
html[data-site="hamilton"] .song-head .head-fig { display: none !important; }
html[data-site="hamilton"] .song-head.has-fig { padding-inline: 0 !important; grid-template-columns: 1fr !important; min-height: 0 !important; }
html[data-site="hamilton"] .song-head { text-align: center; }
html[data-site="hamilton"] .parts-fold { text-align: start; }

/* ---------- round 5: the poster's gold breathing behind every page; no glow on titles ---------- */
html { background: var(--bg) !important; }
html[data-site="hamilton"] body, html[data-site="hamilton"] body[data-page="song"] { background: transparent !important; }
/* the gold of the poster (img/gold.webp, made from the cover's own grain): faint, slowly breathing, behind everything */
html[data-site="hamilton"] body::before { content: ""; position: fixed; inset: -10%; z-index: -3; pointer-events: none;
  background: url("img/gold.webp") center / cover !important; opacity: var(--gold-op, 0.13); filter: saturate(1.05) brightness(0.9);
  animation: ham-gold 38s ease-in-out infinite alternate; will-change: transform, opacity; }
@keyframes ham-gold {
  0%   { transform: scale(1) translate(0, 0) rotate(0deg); opacity: var(--gold-op, 0.13); }
  50%  { transform: scale(1.08) translate(-1.5%, 1%) rotate(0.6deg); opacity: calc(var(--gold-op, 0.13) * 1.35); }
  100% { transform: scale(1.14) translate(1.5%, -1%) rotate(-0.4deg); opacity: var(--gold-op, 0.13); } }
/* over it: the soft glows only (the solid colour now sits on <html>) - and a veil where the words are */
:root, :root[data-theme="night"] { --page-tint: radial-gradient(circle 340px at 92% 4%, var(--glow-a), transparent 70%),
  radial-gradient(circle 360px at 0% 72%, var(--glow-b), transparent 70%); --gold-op: 0.13; }
html[data-paper] { --gold-op: 0.24; }
html[data-site="hamilton"] body[data-page="song"] { --gold-op: 0.08; }
html[data-paper] body[data-page="song"] { --gold-op: 0.16; }
@media (prefers-reduced-motion: reduce) { html[data-site="hamilton"] body::before { animation: none; } }

/* titles: plain, no glow, no shine */
html[data-site="hamilton"] .song-head h1, html[data-site="hamilton"] body[data-page="song"] .song-head h1 {
  animation: none !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  color: var(--text) !important; -webkit-text-fill-color: currentColor !important; filter: none !important; text-shadow: none !important; }
.list-hero h1 { text-shadow: none !important; }
.list-hero .th-about { text-shadow: none !important; }
.ht-tile b { text-shadow: none; }

/* ---------- the home, more ---------- */
/* the tiles' heading with a "surprise me" on its other side */
.ham-top-h { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.ham-top-h h2 { margin: 0; }
.ht-rand { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--text); font: 600 13.5px/1 var(--read); text-decoration: none; cursor: pointer; }
.ht-rand:active { transform: scale(0.95); }
/* the tiles come in one after another */
.ht-tile { animation: ham-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ht-1 { animation-delay: 0.06s; } .ht-2 { animation-delay: 0.12s; } .ht-3 { animation-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .ht-tile { animation: none; } }
/* the acts: a heading with a line running out to the edge */
.song-list > li::before { display: flex !important; align-items: center; gap: 10px; }
.song-list > li:has(> a)::before { margin-top: 24px; }
/* the search: lighter, it sits under the tiles */
.toc-search { min-height: 48px; }
/* the songbook paints a light veil (--page-tint) on every song page: here the song page keeps the same glows as the rest */
html[data-site="hamilton"] body[data-page="song"], html[data-site="hamilton"] body {
  --page-tint: radial-gradient(circle 340px at 92% 4%, var(--glow-a), transparent 70%), radial-gradient(circle 360px at 0% 72%, var(--glow-b), transparent 70%) !important; }
html[data-site="hamilton"] body::after { background: var(--page-tint) !important; }
/* the floating song bar is dark in both looks: its own surface colours */
html[data-site="hamilton"] .songbar { --surface: rgba(255, 255, 255, 0.08); --surface-2: rgba(255, 255, 255, 0.14); --stroke: rgba(255, 255, 255, 0.12); --ink-text: #fff; color: #fff; }
html[data-site="hamilton"] .songbar .seg-ctl, html[data-site="hamilton"] .songbar button { color: #fff; }
html[data-site="hamilton"] .songbar .seg-ctl { background: rgba(255, 255, 255, 0.08) !important; }

/* track numbers and the two acts (built by tools/build_hamilton.py) */
.song-list li:has(> a[href^="#/song/alexander-hamilton-1302?"]) > a::before { content: "1"; }
.song-list li:has(> a[href^="#/song/alexander-hamilton-1302?"])::before { content: "מערכה ראשונה"; }
.song-list li:has(> a[href^="#/song/aaron-burr-sir-1303?"]) > a::before { content: "2"; }
.song-list li:has(> a[href^="#/song/my-shot-1304?"]) > a::before { content: "3"; }
.song-list li:has(> a[href^="#/song/the-story-of-tonight-1305?"]) > a::before { content: "4"; }
.song-list li:has(> a[href^="#/song/the-schuyler-sisters-1306?"]) > a::before { content: "5"; }
.song-list li:has(> a[href^="#/song/farmer-refuted-1307?"]) > a::before { content: "6"; }
.song-list li:has(> a[href^="#/song/you-ll-be-back-1308?"]) > a::before { content: "7"; }
.song-list li:has(> a[href^="#/song/right-hand-man-1309?"]) > a::before { content: "8"; }
.song-list li:has(> a[href^="#/song/a-winter-s-ball-1310?"]) > a::before { content: "9"; }
.song-list li:has(> a[href^="#/song/helpless-1332?"]) > a::before { content: "10"; }
.song-list li:has(> a[href^="#/song/satisfied-1073?"]) > a::before { content: "11"; }
.song-list li:has(> a[href^="#/song/the-story-of-tonight-reprise-950?"]) > a::before { content: "12"; }
.song-list li:has(> a[href^="#/song/wait-for-it-1311?"]) > a::before { content: "13"; }
.song-list li:has(> a[href^="#/song/stay-alive-1312?"]) > a::before { content: "14"; }
.song-list li:has(> a[href^="#/song/ten-duel-commandments-1313?"]) > a::before { content: "15"; }
.song-list li:has(> a[href^="#/song/meet-me-inside-1314?"]) > a::before { content: "16"; }
.song-list li:has(> a[href^="#/song/that-would-be-enough-1315?"]) > a::before { content: "17"; }
.song-list li:has(> a[href^="#/song/guns-and-ships-972?"]) > a::before { content: "18"; }
.song-list li:has(> a[href^="#/song/history-has-its-eyes-on-you-1316?"]) > a::before { content: "19"; }
.song-list li:has(> a[href^="#/song/yorktown-the-world-turned-upside-down-1317?"]) > a::before { content: "20"; }
.song-list li:has(> a[href^="#/song/what-comes-next-1318?"]) > a::before { content: "21"; }
.song-list li:has(> a[href^="#/song/dear-theodosia-1319?"]) > a::before { content: "22"; }
.song-list li:has(> a[href^="#/song/non-stop-1320?"]) > a::before { content: "23"; }
.song-list li:has(> a[href^="#/song/what-d-i-miss-1321?"]) > a::before { content: "24"; }
.song-list li:has(> a[href^="#/song/what-d-i-miss-1321?"])::before { content: "מערכה שנייה"; }
.song-list li:has(> a[href^="#/song/cabinet-battle-1-1322?"]) > a::before { content: "25"; }
.song-list li:has(> a[href^="#/song/take-a-break-1323?"]) > a::before { content: "26"; }
.song-list li:has(> a[href^="#/song/say-no-to-this-949?"]) > a::before { content: "27"; }
.song-list li:has(> a[href^="#/song/hamilton-the-room-where-it-happens-284?"]) > a::before { content: "28"; }
.song-list li:has(> a[href^="#/song/schuyler-defeated-1324?"]) > a::before { content: "29"; }
.song-list li:has(> a[href^="#/song/cabinet-battle-2-1325?"]) > a::before { content: "30"; }
.song-list li:has(> a[href^="#/song/washington-on-your-side-977?"]) > a::before { content: "31"; }
.song-list li:has(> a[href^="#/song/one-last-time-947?"]) > a::before { content: "32"; }
.song-list li:has(> a[href^="#/song/i-know-him-1326?"]) > a::before { content: "33"; }
.song-list li:has(> a[href^="#/song/the-adams-administration-1339?"]) > a::before { content: "34"; }
.song-list li:has(> a[href^="#/song/we-know-1333?"]) > a::before { content: "35"; }
.song-list li:has(> a[href^="#/song/hurricane-1334?"]) > a::before { content: "36"; }
.song-list li:has(> a[href^="#/song/the-reynolds-pamphlet-976?"]) > a::before { content: "37"; }
.song-list li:has(> a[href^="#/song/burn-1335?"]) > a::before { content: "38"; }
.song-list li:has(> a[href^="#/song/blow-us-all-away-1327?"]) > a::before { content: "39"; }
.song-list li:has(> a[href^="#/song/stay-alive-reprise-1328?"]) > a::before { content: "40"; }
.song-list li:has(> a[href^="#/song/it-s-quiet-uptown-1329?"]) > a::before { content: "41"; }
.song-list li:has(> a[href^="#/song/the-election-of-1800-1330?"]) > a::before { content: "42"; }
.song-list li:has(> a[href^="#/song/your-obedient-servant-1331?"]) > a::before { content: "43"; }
.song-list li:has(> a[href^="#/song/best-of-wives-and-best-of-women-1336?"]) > a::before { content: "44"; }
.song-list li:has(> a[href^="#/song/the-world-was-wide-enough-948?"]) > a::before { content: "45"; }
.song-list li:has(> a[href^="#/song/who-lives-who-dies-who-tells-your-story-1337?"]) > a::before { content: "46"; }
