/* Woodshed - stylesheet.
   Dark-only design (see design/DESIGN-SPEC.md). "Dim" is a softer, lighter-
   surfaced variant of the same dark palette, not a separate light theme.
   Every colour is a token on :root; the theme block only redefines tokens. */

:root{
  color-scheme:dark;
  /* Deliberately darker than this started out - same hierarchy of steps
     between bg/surf-2/surf/raised (each token scaled down by the same
     ~38%, not picked independently), just a deeper black across the
     board now that this is the one theme everyone actually lands on by
     default again. */
  --bg:#0b0908; --surf:#110f0e; --surf-2:#0d0b0a; --raised:#151311;
  --line:#181514; --line-2:#1d1a18; --line-3:#24201d;
  --tx:#f3eee8; --tx-2:#c9c1b8; --tx-3:#a39b92; --tx-4:#8f877e;
  --accent:#e8732c; --accent-ink:#1a0f08;
  --link:#f39a5c; --link-hover:#ffb783;
  --t1:#3fb6a8; --t2:#a3cf4d; --t3:#f2b33d; --t4:#f07a2e; --t5:#ef4b52;
  --t1s:color-mix(in srgb, var(--t1) 16%, transparent);
  --t2s:color-mix(in srgb, var(--t2) 16%, transparent);
  --t3s:color-mix(in srgb, var(--t3) 16%, transparent);
  --t4s:color-mix(in srgb, var(--t4) 16%, transparent);
  --t5s:color-mix(in srgb, var(--t5) 16%, transparent);
  --disp:'Big Shoulders Display',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --body:'Instrument Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --r:14px; --r-sm:10px; --r-lg:20px; --r-pill:999px;
  --wrap:1120px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --shadow-lg:0 24px 70px rgba(0,0,0,.5);
}
:root[data-mode="dim"]{
  color-scheme:dark;
  /* Same dark family, lighter surfaces and a softer accent/text - a duskier
     read than the near-black default, not a light theme. */
  --bg:#1d1a17; --surf:#272320; --surf-2:#211e1a; --raised:#2e2a25;
  --line:#362f2a; --line-2:#413933; --line-3:#4f4640;
  --tx:#e8e1d8; --tx-2:#b9b0a5; --tx-3:#8f8579; --tx-4:#7c7367;
  --accent:#d9792f; --accent-ink:#1a0f08;
  --link:#e8935f; --link-hover:#f3ab7a;
  --t1:#4aa89d; --t2:#9ab94f; --t3:#dba23c; --t4:#db7a34; --t5:#d85059;
  --shadow:0 10px 30px rgba(0,0,0,.3);
  --shadow-lg:0 24px 70px rgba(0,0,0,.45);
}
:root[data-mode="halloween"]{
  color-scheme:dark;
  /* A genuinely different palette, not a recolored dark/dim - near-black
     with a purple undertone instead of brown, pumpkin orange as the
     accent instead of the site's usual orange, and the same five-tier
     difficulty gradient re-tuned toward witch-green -> blood-red instead
     of teal -> coral. Tier ORDER and what it means (easy -> brutal) is
     untouched, only the hues shifted, so the scale still reads correctly
     at a glance for anyone used to the other themes. */
  --bg:#0d0a14; --surf:#17121f; --surf-2:#120e1a; --raised:#1f1829;
  --line:#2a2135; --line-2:#352a43; --line-3:#423553;
  --tx:#f3ece0; --tx-2:#cdbfa8; --tx-3:#a3927a; --tx-4:#8a7a68;
  --accent:#ff7518; --accent-ink:#1a0a00;
  --link:#ff9d4d; --link-hover:#ffb870;
  --t1:#5fb86a; --t2:#a3cf4d; --t3:#f2b33d; --t4:#ff7518; --t5:#c81d3a;
  --t1s:color-mix(in srgb, var(--t1) 16%, transparent);
  --t2s:color-mix(in srgb, var(--t2) 16%, transparent);
  --t3s:color-mix(in srgb, var(--t3) 16%, transparent);
  --t4s:color-mix(in srgb, var(--t4) 16%, transparent);
  --t5s:color-mix(in srgb, var(--t5) 16%, transparent);
  --shadow:0 10px 30px rgba(0,0,0,.5);
  --shadow-lg:0 24px 80px rgba(0,0,0,.65);
}
:root[data-mode="diwali"]{
  color-scheme:dark;
  /* Same idea as Halloween above: a genuinely different palette, not a
     recolor - a deep maroon-indigo night instead of brown or purple-black,
     marigold gold as the accent, and the five-tier gradient re-tuned
     toward jade -> turmeric -> marigold -> diya-orange -> firecracker red.
     Tier order and meaning (easy -> brutal) is untouched, only the hues. */
  --bg:#150a12; --surf:#1f1019; --surf-2:#180c14; --raised:#2a1522;
  --line:#331a28; --line-2:#3f2032; --line-3:#4d2740;
  --tx:#f7ecd8; --tx-2:#d9c3a0; --tx-3:#b39a78; --tx-4:#9a8468;
  --accent:#f2b33d; --accent-ink:#1a1206;
  --link:#ffcf6b; --link-hover:#ffe08f;
  --t1:#3fae8a; --t2:#c9a53a; --t3:#e8a23c; --t4:#e8732c; --t5:#b91c3c;
  --t1s:color-mix(in srgb, var(--t1) 16%, transparent);
  --t2s:color-mix(in srgb, var(--t2) 16%, transparent);
  --t3s:color-mix(in srgb, var(--t3) 16%, transparent);
  --t4s:color-mix(in srgb, var(--t4) 16%, transparent);
  --t5s:color-mix(in srgb, var(--t5) 16%, transparent);
  --shadow:0 10px 30px rgba(0,0,0,.5);
  --shadow-lg:0 24px 80px rgba(0,0,0,.65);
}

*{box-sizing:border-box}
body{background:var(--bg);color:var(--tx);font-family:var(--body);
     -webkit-font-smoothing:antialiased;line-height:1.5}
a{color:var(--link);text-decoration:none}
a:hover{color:var(--link-hover)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.25rem}
@media (max-width:760px){ .wrap{padding:0 1rem} }

/* ---------------------------------------------------------------- top bar -- */
.topbar{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 92%,transparent);
        backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
/* Homepage only: the header sits directly on top of the cover-wall hero
   image, not a plain dark background like every other page - the hard
   border-bottom and the header's own flat tint read as a bar pasted over
   the art instead of blending into it. Drop the border; the hero's own
   scrim (below) is tuned to pick up near-opaque right where this ends. */
.home-topbar{border-bottom:0;background:linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb,var(--bg) 70%,transparent) 100%)}
.topbar-in{max-width:var(--wrap);margin:0 auto;padding:.85rem 1.25rem;
           display:flex;align-items:center;gap:1.5rem}
.brand{display:inline-flex;align-items:center;gap:.6rem;flex:none;text-decoration:none;color:var(--tx)}
.logomark{width:22px;height:20px;flex:none;display:block}
.brandname{font-family:var(--disp);font-weight:900;font-size:1.3rem;letter-spacing:.04em;
           text-transform:uppercase}
.brandsub{display:none}
.find-btn{display:flex;align-items:center;gap:.5rem;height:2.75rem;padding:0 1.1rem;
  border-radius:var(--r-sm);background:var(--accent);color:var(--accent-ink);
  font-weight:700;font-size:.9rem;white-space:nowrap;flex:none}
.find-btn:hover{color:var(--accent-ink);filter:brightness(1.08)}
.find-btn svg{flex:none}
.search{flex:1;min-width:0;position:relative;max-width:32rem;margin:0 auto}
.search input{width:100%;height:2.75rem;padding:0 .9rem 0 2.5rem;border-radius:var(--r-sm);
  border:1px solid var(--line-2);background:var(--surf);color:var(--tx);font-size:.9rem;
  outline:0;transition:border-color .15s,box-shadow .15s}
.search input::placeholder{color:var(--tx-4)}
.search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.search svg{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);
  width:16px;height:16px;color:var(--tx-4);pointer-events:none}
.search kbd{position:absolute;right:.65rem;top:50%;transform:translateY(-50%);font:inherit;
  font-size:.66rem;color:var(--tx-4);border:1px solid var(--line-3);border-radius:6px;
  padding:.05rem .32rem;background:var(--bg)}
.search input:focus + svg + kbd, .search input:not(:placeholder-shown) ~ kbd{display:none}
.search-drop{position:absolute;top:calc(100% + .5rem);left:0;right:0;z-index:60;
  background:var(--surf);border:1px solid var(--line-2);border-radius:var(--r);
  box-shadow:var(--shadow-lg);max-height:60vh;overflow-y:auto;padding:.35rem}
.sres{display:flex;align-items:center;gap:.6rem;width:100%;text-align:left;
  padding:.55rem .65rem;border-radius:var(--r-sm);font-size:.85rem;color:var(--tx)}
.sres:hover{background:var(--raised)}
.sres-extra{text-decoration:none}
.sres:not(.sres-extra) + .sres-extra{border-top:1px solid var(--line-2);margin-top:.2rem;padding-top:.75rem}
.sres .dot{width:7px;height:7px;border-radius:50%;background:var(--bdot);flex:none}
.sres-nm{flex:1 1 auto;min-width:3rem;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sres-band{margin-left:auto;flex:0 1 auto;min-width:0;font-size:.74rem;color:var(--tx-4);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.icon-btn{width:2.75rem;height:2.75rem;flex:none;display:flex;align-items:center;justify-content:center;
  border-radius:var(--r-sm);background:var(--surf);border:1px solid var(--line-2);color:var(--tx-2)}
.profile-avatar-icon{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
/* Candy corn shop cosmetic frames (My Profile) - also applied here so a
   frame you've equipped shows up on the small header icon everywhere, not
   just on the profile page itself. */
.icon-btn.frame-pumpkin{box-shadow:0 0 0 2px #ff8c1a,0 0 8px 1px #ff8c1a}
.icon-btn.frame-witchlight{box-shadow:0 0 0 2px #7c3aed,0 0 8px 1px #22c55e}
.icon-btn.frame-bloodmoon{box-shadow:0 0 0 2px #c81d3a,0 0 10px 2px #c81d3a}
.icon-btn.frame-candyswirl{box-shadow:0 0 0 2px #ff6fa5,0 0 8px 1px #ffb347}
.icon-btn.frame-ghostlight{box-shadow:0 0 0 2px #c7d2fe,0 0 8px 1px #e5e7eb}
.icon-btn.frame-blackcat{box-shadow:0 0 0 2px #1a1a2e,0 0 8px 1px #7c3aed}
.icon-btn.frame-spiderweb{box-shadow:0 0 0 2px #9ca3af,0 0 8px 1px #e5e7eb}
.icon-btn.frame-skeleton{box-shadow:0 0 0 2px #f5f5f4,0 0 8px 1px #a8a29e}
.icon-btn.frame-zombie{box-shadow:0 0 0 2px #65a30d,0 0 8px 1px #365314}
.icon-btn.frame-werewolf{box-shadow:0 0 0 2px #92400e,0 0 8px 1px #451a03}
.icon-btn.frame-vampire{box-shadow:0 0 0 2px #7f1d1d,0 0 8px 1px #1a0a0a}
.icon-btn.frame-cauldron{box-shadow:0 0 0 2px #16a34a,0 0 10px 2px #6b21a8}
.icon-btn.frame-hauntedhouse{box-shadow:0 0 0 2px #4c1d95,0 0 8px 1px #18181b}
.icon-btn.frame-fullmoon{box-shadow:0 0 0 2px #e0e7ff,0 0 10px 2px #94a3b8}
.icon-btn.frame-jackosupreme{box-shadow:0 0 0 2px #fbbf24,0 0 12px 2px #ea580c}
.icon-btn.frame-diyaglow{box-shadow:0 0 0 2px #f2b33d,0 0 8px 1px #f2b33d}
.icon-btn.frame-marigoldcrown{box-shadow:0 0 0 2px #e8a23c,0 0 8px 1px #e8732c}
.icon-btn.frame-sparklerburst{box-shadow:0 0 0 2px #fff3c4,0 0 10px 2px #f2b33d}
.icon-btn:hover{color:var(--tx);border-color:var(--line-3)}
/* ---- hamburger nav menu (left) ---- */
.nav-menu-wrap{position:relative;flex:none}
.nav-menu{position:absolute;top:calc(100% + .5rem);left:0;z-index:60;min-width:13rem;
  max-width:calc(100vw - 2rem);background:var(--surf);border:1px solid var(--line-2);
  border-radius:var(--r);box-shadow:var(--shadow-lg);padding:.4rem;display:flex;flex-direction:column}
.nav-menu[hidden]{display:none}
.nav-menu a{display:block;padding:.65rem .8rem;border-radius:var(--r-sm);color:var(--tx-2);
  font-size:.9rem;font-weight:600;white-space:nowrap}
.nav-menu a:hover{background:var(--raised);color:var(--tx)}
.nav-menu a[aria-current]{color:var(--tx);background:var(--raised)}

/* ---- account menu (right): replaces the old accountChip/streakBadge/
   profileLink/installBtn cluster with one dropdown. Always visible (even
   logged out) since Settings needs to stay reachable either way - only
   the account-specific rows (streak/profile/change password/log out)
   toggle based on sign-in state, handled in account.js. */
.acct-menu-wrap{position:relative;flex:none;margin-left:auto}
.acct-menu{position:absolute;top:calc(100% + .5rem);right:0;z-index:60;min-width:13rem;
  max-width:calc(100vw - 2rem);background:var(--surf);border:1px solid var(--line-2);
  border-radius:var(--r);box-shadow:var(--shadow-lg);padding:.4rem;display:flex;flex-direction:column}
.acct-menu[hidden]{display:none}
.acct-menu-row{display:block;width:100%;text-align:left;padding:.65rem .8rem;border-radius:var(--r-sm);
  color:var(--tx-2);font:inherit;font-size:.9rem;font-weight:600;white-space:nowrap}
.acct-menu-row:hover{background:var(--raised);color:var(--tx)}
.acct-menu-danger:hover{color:var(--t5)}
.acct-menu-sep{height:1px;background:var(--line);margin:.3rem .4rem}

/* ---- notification bell (right of the account menu) ---- */
.notif-wrap{position:relative;flex:none;margin-left:auto}
/* Every page but the homepage - the per-page settings in here (play
   service, row size, difficulty tags, ...) are things people actually
   reach for a lot browsing the catalogue, not a once-in-a-while account
   thing, so they get their own direct icon next to the account menu
   instead of needing an extra tap into that dropdown first. */
.settings-wrap{position:relative;flex:none;margin-left:auto}
.notif-badge{position:absolute;top:.3rem;right:.3rem;min-width:.95rem;height:.95rem;padding:0 .2rem;
  border-radius:999px;background:var(--t5);color:#fff;font-size:.6rem;font-weight:800;line-height:1;
  display:flex;align-items:center;justify-content:center;border:1.5px solid var(--bg)}
.notif-badge[hidden]{display:none}
.notif-menu{position:absolute;top:calc(100% + .5rem);right:0;z-index:60;width:19.5rem;
  max-width:calc(100vw - 2rem);max-height:calc(100vh - 6rem);overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;background:var(--surf);border:1px solid var(--line-2);
  border-radius:var(--r);box-shadow:var(--shadow-lg);padding:.5rem;display:flex;flex-direction:column;gap:.15rem}
.notif-menu[hidden]{display:none}
.notif-head{display:flex;align-items:center;justify-content:space-between;padding:.35rem .5rem .25rem}
.notif-head h3{margin:0;font-size:.78rem;font-weight:700;color:var(--tx-2);text-transform:uppercase;letter-spacing:.04em}
.notif-clear{background:none;border:none;color:var(--link);font:inherit;font-size:.76rem;cursor:pointer;padding:.2rem}
.notif-item{display:block;padding:.6rem .55rem;border-radius:var(--r-sm);color:var(--tx-3);
  text-decoration:none;font-size:.84rem;line-height:1.45}
.notif-item:hover{background:var(--raised);color:var(--tx)}
.notif-item.unread{background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--tx)}
.notif-item b{color:var(--tx)}
.notif-item .notif-time{display:block;font-size:.72rem;color:var(--tx-4);margin-top:.15rem}
.notif-empty{padding:1.5rem .6rem;text-align:center;color:var(--tx-4);font-size:.84rem;margin:0}

.settings-pop{position:relative;flex:none}
.settings-menu{position:absolute;top:calc(100% + .5rem);right:0;z-index:60;width:17.5rem;
  max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem);overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  background:var(--surf);border:1px solid var(--line-2);border-radius:var(--r);
  box-shadow:var(--shadow-lg);padding:.9rem;display:flex;flex-direction:column;gap:.8rem}
.settings-menu[hidden]{display:none}
.settings-menu h3{margin:0;font-size:.68rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--tx-4)}
.settings-group{display:flex;flex-direction:column;gap:.5rem}
.settings-group input{font:inherit;padding:.55rem .7rem;border-radius:var(--r-sm);
  border:1px solid var(--line-3);background:var(--surf-2);color:var(--tx);font-size:.85rem}
.settings-group input:focus{outline:2px solid var(--accent);outline-offset:-1px}
.settings-group form{display:flex;flex-direction:column;gap:.5rem}
.settings-group form button{align-self:flex-start;height:2.1rem;padding:0 .9rem;border-radius:var(--r-sm);
  background:var(--raised);color:var(--tx);border:1px solid var(--line-3);font-weight:600;font-size:.8rem}
.settings-group form button:hover{border-color:var(--accent)}
.settings-msg{margin:0;font-size:.78rem;color:var(--t5)}
.settings-msg-note{color:var(--tx-4)}
.settings-msg.ok{color:var(--t1)}

/* The container's own radius is deliberately NOT --r-pill (999px, same as
   the buttons inside it) - that only looks clean on a single row. Once a
   group with enough options (Tier's 6, say) wraps to a second row on a
   narrow screen, a full pill radius on the outer tray produces oddly cut
   corners around the wrap point. A more modest radius looks right either
   way, wrapped or not. */
.seg{display:inline-flex;flex-wrap:wrap;gap:3px;background:var(--surf-2);border-radius:var(--r-lg);padding:3px;flex:none;max-width:100%}
.seg button{padding:.35rem .7rem;border-radius:var(--r-pill);font-size:.78rem;font-weight:600;
            color:var(--tx-3);white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
@media (max-width:760px){
  .topbar-in{gap:.4rem;padding:.75rem 1rem;flex-wrap:wrap;row-gap:.6rem}
  .topbar-in .icon-btn{width:2.4rem;height:2.4rem}
  .search{max-width:none;flex-basis:100%;order:11}
  .search kbd{display:none}
}

/* --------------------------------------------------------------- band nav -- */
.bandnav{border-bottom:1px solid var(--line);background:var(--bg);
         position:sticky;top:72px;z-index:40;display:flex;justify-content:center}
.bandnav-row{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 1.25rem;height:3.5rem;
             display:flex;align-items:stretch}
.bandnav-in{flex:1 1 auto;min-width:0;display:flex;align-items:stretch;gap:1.6rem;
            overflow-x:auto;scrollbar-width:none}
.bandnav-in::-webkit-scrollbar{display:none}
.bandbtn{display:inline-flex;align-items:center;padding-top:3px;font-size:.92rem;
         font-weight:600;color:var(--tx-3);white-space:nowrap;border-bottom:3px solid transparent}
.bandbtn:hover{color:var(--tx-2)}
.bandbtn[aria-current="true"]{color:var(--tx);border-bottom-color:var(--accent)}
.bandnav-all{margin-left:auto;flex:none;align-self:center;display:flex;align-items:center;gap:.4rem;
  color:var(--tx-2);font-size:.85rem;font-weight:600}
.bandnav-all:hover{color:var(--tx)}
@media (max-width:760px){
  .bandnav-row{padding:0 0 0 1rem}
  /* Same fix as Community's board strip and Compare's table - chips were
     just cutting off hard at both screen edges with nothing to suggest
     more sat behind the hamburger icon on the left or "All bands" on the
     right, which reads worse the longer a band's name chip is (less of
     the next one peeks into view). A soft fade says "scrollable" at a
     glance without needing JS to track scroll position. */
  .bandnav-in{gap:.5rem;
    mask-image:linear-gradient(to right,transparent,black 14px,black calc(100% - 14px),transparent);
    -webkit-mask-image:linear-gradient(to right,transparent,black 14px,black calc(100% - 14px),transparent)}
  .bandbtn{flex:none;height:2.25rem;padding:0 .9rem;border-radius:var(--r-pill);
    background:var(--surf);border-bottom:0}
  .bandbtn[aria-current="true"]{background:var(--accent);color:var(--accent-ink)}
  .bandnav-all{margin:0 .75rem 0 .25rem;padding:0 .75rem;height:2.25rem;border-radius:var(--r-pill);
    border:1px solid var(--line-3);color:var(--tx);box-shadow:-14px 0 12px var(--bg)}
}

/* ------------------------------------------------------------------- hero -- */
.hero{position:relative;overflow:hidden;padding:3.2rem 0 2.6rem;border-bottom:1px solid var(--line)}
.hero-bg{position:absolute;right:-8rem;top:-16rem;width:56rem;height:56rem;object-fit:cover;
  filter:blur(60px) saturate(1.2);opacity:.2;pointer-events:none}
.hero-in{position:relative;display:flex;gap:3rem;align-items:flex-end}
.hero-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.9rem}
.eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;
         color:var(--link);margin:0}
.hero h1{font-family:var(--disp);font-size:clamp(2.6rem,8.5vw,6.5rem);line-height:.86;
         letter-spacing:.005em;margin:0;font-weight:900;text-transform:uppercase}
.trait{color:var(--tx-2);font-size:1.05rem;max-width:34rem;margin:0}
.parts{display:flex;flex-wrap:wrap;gap:4px;padding:5px;background:var(--surf);border:1px solid var(--line-2);
  border-radius:var(--r-sm);align-self:flex-start;margin-top:.4rem}
.parts button{padding:0 .9rem;height:2.4rem;border-radius:8px;font-size:.85rem;font-weight:600;
  color:var(--tx-2)}
.parts button:hover:not(:disabled){color:var(--tx)}
.parts button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);font-weight:700}
.parts button:disabled{opacity:.45;cursor:not-allowed;text-decoration:line-through;color:var(--tx-4)}
.na-note{font-size:.8rem;color:var(--tx-4);align-self:center;margin-left:.3rem}

.edges{width:23rem;flex:none;display:flex;flex-direction:column;gap:.85rem}
.edge{display:flex;align-items:center;gap:1rem;padding:.85rem;border-radius:var(--r-lg);
  background:color-mix(in srgb, var(--surf) 86%, transparent);border:1px solid var(--line-2);
  color:var(--tx)}
.edge img{width:4.2rem;height:4.2rem;border-radius:var(--r-sm);object-fit:cover;flex:none}
.edge-meta{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.2rem}
.edge-label{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  display:flex;align-items:center;gap:.35rem}
.edge-name{font-size:1.05rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.edge-sub{font-size:.78rem;color:var(--tx-4)}
.edge-score{font-family:var(--disp);font-weight:800;font-size:2.4rem;line-height:1;flex:none}
.edge.start{color:var(--tx)}
.edge.start .edge-label,.edge.start .edge-score{color:var(--t1)}
.edge.boss{border-color:color-mix(in srgb, var(--t5) 35%, var(--line-2));
  box-shadow:0 0 0 1px color-mix(in srgb, var(--t5) 12%, transparent), 0 10px 36px color-mix(in srgb, var(--t5) 14%, transparent)}
.edge.boss .edge-label,.edge.boss .edge-score{color:var(--t5)}
.edge.boss.spooky{border-color:color-mix(in srgb, #f97316 40%, var(--line-2));
  box-shadow:0 0 0 1px color-mix(in srgb, #f97316 14%, transparent), 0 10px 36px color-mix(in srgb, #a855f7 18%, transparent)}
.edge.boss.spooky .edge-label,.edge.boss.spooky .edge-score{color:#f97316}
.edge.boss.spooky .pumpkin{color:#f97316}
.edge.boss.diwali{border-color:color-mix(in srgb, #f2b33d 40%, var(--line-2))}
.edge.boss.diwali .edge-label,.edge.boss.diwali .edge-score{color:#f2b33d}
.edge.boss.diwali .diya{color:#f2b33d}
@media (max-width:900px){
  .hero-in{flex-direction:column;align-items:stretch;gap:1.4rem}
  .edges{width:auto;flex-direction:row}
  .edge{flex:1 1 0;min-width:0;flex-direction:column;align-items:stretch;gap:.6rem}
  .edge-top{display:flex;justify-content:space-between;align-items:flex-start}
  .edge img{width:3.2rem;height:3.2rem}
  .edge-score{font-size:1.9rem}
}
@media (max-width:420px){
  /* the 2.6rem floor in the base clamp() never relaxes on its own - band
     names like "System of a Down" were being forced to that size (and
     wrapping to 2-3 lines) even on the narrowest phones. */
  .hero h1{font-size:clamp(1.9rem,11vw,6.5rem)}
  .hero{padding:2.2rem 0 1.8rem}
  .trait{font-size:.95rem}
  .parts button{padding:0 .7rem;height:2.1rem;font-size:.78rem}
}

.similar{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;padding:0 0 1.8rem}
.similar:empty{display:none;padding:0}
.similar-label{font-size:.76rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--tx-4);margin-right:.2rem}
.similar-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .75rem;
  border-radius:var(--r-pill);background:var(--surf);border:1px solid var(--line-2);
  color:var(--tx-2);font-size:.84rem;font-weight:600}
.similar-chip:hover{color:var(--tx);border-color:var(--line-3)}
.similar-chip .dot{width:7px;height:7px;border-radius:50%;flex:none}
.similar-chip b{font-weight:800;color:var(--tx-4)}
.similar-chip:hover b{color:var(--tx-3)}
@media (max-width:420px){
  .similar{padding-bottom:1.3rem;gap:.45rem}
  .similar-label{width:100%;margin:0 0 .1rem}
  .similar-chip{padding:.35rem .6rem;font-size:.78rem}
}

/* ---------------------------------------------------------------- band hub -- */
/* This band's own slice of Community/Suggestions, surfaced right on its
   page instead of only living on the separate, catalogue-wide pages -
   lazily fetched once per band (not at page load) since most visits never
   need it, same cost-consciousness as the global search index. */
.band-hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem;
  padding-bottom:1.8rem}
.band-hub:empty{display:none;padding:0}
.bh-card{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-lg);padding:1rem 1.1rem}
.bh-card h3{margin:0 0 .6rem;font-family:var(--disp);font-size:.84rem;font-weight:800;
  text-transform:uppercase;letter-spacing:.03em;color:var(--tx-3)}
.bh-row{display:block;padding:.4rem 0;border-top:1px solid var(--line-2);text-decoration:none;
  color:var(--tx-2);font-size:.84rem}
.bh-row:first-of-type{border-top:0}
.bh-row:hover{color:var(--tx)}
.bh-row b{display:block;font-weight:700;color:var(--tx);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.bh-row span{display:block;font-size:.74rem;color:var(--tx-4);margin-top:.1rem}
.bh-empty{margin:0;font-size:.82rem;color:var(--tx-4)}
.bh-more{display:block;margin-top:.6rem;font-size:.78rem;font-weight:700;color:var(--link);
  text-decoration:none}

/* -------------------------------------------------------------- scale key -- */
.scalekey{display:flex;align-items:center;gap:2.2rem;padding:1.6rem 0}
.scalekey-bars{flex:1 1 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.scalekey-bars i{display:block;height:8px;border-radius:4px;font-style:normal}
.scalekey-bars .lbl{display:flex;justify-content:space-between;font-size:.78rem;margin-top:.45rem}
.scalekey-bars .lbl b{font-weight:700}
.scalekey-bars .lbl span{color:var(--tx-4)}
.scalekey-note{margin:0;width:20rem;flex:none;font-size:.78rem;line-height:1.5;color:var(--tx-3)}
.scalekey-note strong{color:var(--tx)}
.scalekey-brief{display:none;margin:0;font-size:.78rem;color:var(--tx-4)}
@media (max-width:760px){
  .scalekey{flex-direction:column;align-items:stretch;gap:.9rem;padding:.2rem 0 1.6rem}
  .scalekey-bars i{height:7px}
  .scalekey-bars .lbl{display:none}
  .scalekey-note{width:auto;font-size:.82rem}
  .scalekey-brief{display:none}
}

/* ------------------------------------------------------------------ shelf -- */
.shelf-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
            margin:0 0 .9rem}
.shelf-head h2{font-family:var(--disp);font-weight:800;font-size:1.5rem;letter-spacing:.02em;
  text-transform:uppercase;margin:0}
.shelf-head p{margin:0;font-size:.8rem;color:var(--tx-3)}
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:.9rem;align-items:start;
  padding-bottom:2.6rem;border-bottom:1px solid var(--line)}
.card{text-align:left;border-radius:var(--r-sm);display:flex;flex-direction:column;min-width:0;padding:0;background:none;align-self:start}
.card .art{position:relative;aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;
           background:var(--surf-2);transition:transform .16s}
.card:hover .art{transform:translateY(-3px)}
.card .art img{width:100%;height:100%;object-fit:cover;display:block}
.card .pill{position:absolute;left:.4rem;bottom:.4rem;font-size:.78rem;font-weight:800;
  font-family:var(--disp);padding:.1rem .45rem;border-radius:var(--r-pill);
  background:var(--bg)}
.card .nm{font-size:.82rem;font-weight:650;margin:.5rem 0 0;line-height:1.25;overflow-wrap:anywhere;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .yr{font-size:.74rem;color:var(--tx-4)}
.card[data-dim="1"]{opacity:.28}
@media (max-width:760px){
  .shelf{grid-auto-flow:column;grid-auto-columns:6rem;grid-template-columns:none;overflow-x:auto;
    padding-left:0;scrollbar-width:none}
  .shelf::-webkit-scrollbar{display:none}
}

/* -------------------------------------------------------------- browse cta -- */
.browse-cta{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;
  margin:1.6rem 0 2.2rem;padding:1.1rem 1.3rem;border-radius:var(--r-lg);
  background:var(--surf);border:1px solid var(--line-2);color:var(--tx)}
.browse-cta:hover{border-color:var(--accent);color:var(--tx)}
.browse-cta-text{display:flex;flex-direction:column;gap:.2rem}
.browse-cta-text b{font-size:.98rem;font-weight:700}
.browse-cta-text span{font-size:.84rem;color:var(--tx-3)}
.browse-cta-go{display:flex;align-items:center;gap:.5rem;flex:none;font-weight:700;font-size:.88rem;
  padding:.6rem 1rem;border-radius:var(--r-pill);background:var(--raised);white-space:nowrap}
.browse-cta:hover .browse-cta-go{background:var(--accent);color:var(--accent-ink)}
@media (max-width:600px){
  .browse-cta{padding:1rem}
  .browse-cta-go{width:100%;justify-content:center}
}

/* ------------------------------------------------------------- album list -- */
.albums{margin:2.6rem 0 0}
.album{margin:0 0 3rem;scroll-margin-top:128px}
.album-head{display:flex;gap:1.4rem;align-items:center;margin:0 0 1.1rem}
.album-head .thumb{width:7.2rem;height:7.2rem;border-radius:var(--r-lg);overflow:hidden;flex:none;
  background:var(--surf-2);box-shadow:var(--shadow-lg)}
.album-head .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.album-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:.45rem}
.album-title{display:flex;align-items:baseline;gap:.8rem;flex-wrap:wrap}
.album-title h2{font-family:var(--disp);font-size:2.3rem;font-weight:800;letter-spacing:.01em;
  text-transform:uppercase;line-height:1;margin:0}
.album-title .yr{font-size:.92rem;color:var(--tx-4);font-variant-numeric:tabular-nums}
.album-title .who{font-size:.76rem;color:var(--tx-2);background:var(--surf-2);
  border-radius:var(--r-pill);padding:.1rem .55rem}
.album-blurb{margin:0;font-size:.92rem;color:var(--tx-2);max-width:42rem}
.album-stats{display:flex;align-items:center;gap:1rem;font-size:.8rem;color:var(--tx-3);
  flex-wrap:wrap;font-variant-numeric:tabular-nums}
.album-stats .avg{font-weight:700;color:var(--tx-2)}
.album-stats .avg b{font-family:var(--disp);font-size:1.05rem;font-weight:800}
.playalb{display:inline-flex;align-items:center;gap:.5rem;height:2.5rem;padding:0 1.1rem;
  border-radius:var(--r-sm);border:1px solid var(--line-3);color:var(--tx);font-weight:600;
  font-size:.82rem;margin-left:auto;flex:none}
.playalb:hover{color:var(--tx);border-color:var(--tx-3)}
.playalb svg{flex:none}
.playalb.playthrough{margin-left:0;border-color:color-mix(in srgb, var(--accent) 45%, var(--line-3));
  color:var(--accent)}
.playalb.playthrough:hover{border-color:var(--accent);filter:brightness(1.1)}
@media (max-width:700px){
  .album-head{align-items:flex-start;flex-wrap:wrap;gap:1rem}
  .album-head .thumb{width:4.75rem;height:4.75rem;border-radius:var(--r)}
  .album-title h2{font-size:1.7rem}
  .album-blurb{font-size:.86rem}
  .album-stats{flex-wrap:wrap;row-gap:.3rem}
  .playalb{margin-left:0}
}
@media (max-width:380px){
  .album-head .thumb{width:3.8rem;height:3.8rem}
  .album-title h2{font-size:1.4rem}
  .album-title .yr{font-size:.84rem}
}

.rows{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--surf-2)}
.row{display:flex;align-items:center;gap:1.1rem;padding:.95rem 1.1rem;border-top:1px solid var(--line)}
.row:first-child{border-top:0}
.row:hover{background:var(--raised)}
.row.learned{background:color-mix(in srgb, var(--t1) 6%, transparent)}
.rank{width:2.4rem;height:2.4rem;border-radius:50%;flex:none;display:flex;align-items:center;
  justify-content:center;background:var(--raised);color:var(--tx-2);font-size:.82rem;font-weight:700}
.main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.3rem}
.name-line{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.name{font-size:1rem;font-weight:700}
.note{font-size:.84rem;color:var(--tx-3);line-height:1.45}
.revisited-badge{font-size:.72rem;font-weight:700;color:var(--t2);white-space:nowrap}
.tags{display:flex;gap:.3rem;flex-wrap:wrap}
.tag{font-size:.72rem;font-weight:600;color:var(--tx-4)}
.tag.hot{color:var(--accent)}
.meter{width:9.2rem;flex:none;height:8px;border-radius:4px;background:var(--raised);overflow:hidden}
.meter i{display:block;height:100%;border-radius:4px}
.score-wrap{flex:none;width:4.4rem;display:flex;align-items:center;justify-content:flex-end;gap:.3rem}
.score{font-family:var(--disp);font-weight:800;font-size:1.65rem;text-align:right;
  font-variant-numeric:tabular-nums}
.flame{width:16px;height:16px;flex:none;color:var(--t5)}
.actions{display:flex;gap:.5rem;flex:none}
.play,.tab,.learn,.copylink,.suggest,.playlist-add{width:2.75rem;height:2.75rem;border-radius:var(--r-sm);display:flex;
  align-items:center;justify-content:center;background:var(--raised);color:var(--tx-2);flex:none}
.tab{font-size:.68rem;font-weight:800;letter-spacing:.05em}
.play:hover,.tab:hover,.copylink:hover{color:var(--tx);background:color-mix(in srgb,var(--accent) 16%,var(--raised))}
.learn{border:1px solid var(--line-3);background:transparent;color:var(--tx-4)}
.learn[aria-pressed="true"]{background:var(--t1);border-color:var(--t1);color:#0e1f1d}
.learn:disabled{opacity:.3;cursor:not-allowed}
/* Deliberately NOT styled like the other four (tab/play/learn/copylink) -
   this is a community/feedback action, not a core practice action, and it
   was getting lost as a fifth identical gray square. An accent outline
   makes it read as its own thing at a glance instead of adding to the row's
   visual noise. */
.suggest{background:transparent;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line-3));
  color:var(--accent)}
.suggest:hover{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.playlist-add:hover{color:var(--tx);background:color-mix(in srgb,var(--t1) 16%,var(--raised))}
.t1 .score,.t1 .edge-score{color:var(--t1)} .t2 .score,.t2 .edge-score{color:var(--t2)}
.t3 .score,.t3 .edge-score{color:var(--t3)} .t4 .score,.t4 .edge-score{color:var(--t4)}
.t5 .score,.t5 .edge-score{color:var(--t5)}
.t1 .meter i{background:var(--t1)} .t2 .meter i{background:var(--t2)}
.t3 .meter i{background:var(--t3)} .t4 .meter i{background:var(--t4)}
.t5 .meter i{background:var(--t5)}
.break{flex-basis:100%;width:0;height:0;overflow:hidden}
.meter-col{display:contents}
@media (max-width:700px){
  .row{flex-wrap:wrap;gap:.7rem;padding:1rem .75rem}
  .rank{order:1;width:1.9rem;height:1.9rem;font-size:.72rem}
  .main{order:2;flex:1 1 auto;min-width:0}
  .name{font-size:.94rem}
  .note{margin-top:.1rem}
  .score-wrap{order:3;width:auto;min-width:2.6rem}
  .score{font-size:1.3rem}
  .flame{width:14px;height:14px}
  .tags{display:none}
  .break{order:4}
  .meter-col{order:5;flex:1 1 100%;min-width:0;display:flex;flex-direction:column;gap:.4rem;
    margin-left:2.6rem}
  .meter{width:auto}
  .tagline{font-size:.74rem;font-weight:600;color:var(--tx-4);white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis}
  .actions{order:6;flex:1 1 100%;margin:.2rem 0 0 2.6rem;gap:.4rem}
  .play,.tab,.learn,.copylink,.suggest{width:2.5rem;height:2.5rem}
}
@media (max-width:380px){
  .row{padding:.85rem .6rem;gap:.6rem}
  .name{font-size:.88rem}
  .note{font-size:.8rem}
  .score{font-size:1.15rem}
  .rank{width:1.7rem;height:1.7rem;font-size:.66rem}
  .meter-col,.actions{margin-left:2.3rem}
}
@media (min-width:701px){ .tagline,.break{display:none} }

/* -------------------------------------------------------- row display prefs -- */
[data-tags="off"] .tags{display:none}
[data-density="compact"] .row{padding:.55rem .9rem;gap:.8rem}
[data-density="compact"] .name{font-size:.92rem}
[data-density="compact"] .note{display:none}
[data-density="compact"] .score{font-size:1.3rem}
[data-density="compact"] .rank{width:1.9rem;height:1.9rem;font-size:.72rem}
[data-density="compact"] .play,[data-density="compact"] .tab,
[data-density="compact"] .learn,[data-density="compact"] .copylink{width:2.3rem;height:2.3rem}
@media (max-width:700px){
  [data-density="compact"] .meter-col,[data-density="compact"] .actions{margin-left:2.1rem}
}

/* ------------------------------------------------------------- disclosure -- */
.more{margin:2.8rem 0 0;border-top:1px solid var(--line);padding-top:1.6rem}
details.panel{border:1px solid var(--line);border-radius:var(--r);background:var(--surf);
  margin:0 0 .6rem;overflow:hidden}
details.panel > summary{list-style:none;cursor:pointer;position:relative;
  padding:.85rem 2.6rem .85rem 1.1rem;font-size:.9rem;
  font-weight:650;display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .5rem}
details.panel > summary::-webkit-details-marker{display:none}
details.panel > summary::after{content:"";position:absolute;right:1.1rem;top:50%;width:8px;height:8px;
  border-right:2px solid var(--tx-4);border-bottom:2px solid var(--tx-4);
  transform:translateY(-50%) rotate(45deg);transition:transform .18s}
details.panel[open] > summary::after{transform:translateY(-50%) rotate(-135deg)}
details.panel > summary small{color:var(--tx-4);font-weight:500}
.panel-body{padding:0 1.1rem 1.1rem;font-size:.9rem;color:var(--tx-2);line-height:1.6}
.panel-body b{color:var(--tx)}
.panel-body p{margin:0 0 .8rem}
.changelog-note{padding-bottom:.8rem;margin-bottom:.8rem!important;
  border-bottom:1px solid var(--line);color:var(--tx-3);font-size:.84rem}
.changelog-list{margin:0 0 .2rem;padding-left:1.1rem}
.changelog-list li{margin-bottom:.4rem}
.changelog-list li:last-child{margin-bottom:0}
.changelog-date{border-top:1px solid var(--line);padding-top:.7rem;margin-top:.7rem}
.changelog-date:first-of-type{border-top:0;padding-top:0;margin-top:0}
.changelog-date summary{list-style:none;cursor:pointer;position:relative;
  padding:.3rem 2rem .3rem 0;font-size:.86rem;font-weight:700;color:var(--tx)}
.changelog-date summary::-webkit-details-marker{display:none}
.changelog-date summary::after{content:"";position:absolute;right:.3rem;top:50%;width:7px;height:7px;
  border-right:2px solid var(--tx-4);border-bottom:2px solid var(--tx-4);
  transform:translateY(-65%) rotate(45deg);transition:transform .18s}
.changelog-date[open] summary::after{transform:translateY(-35%) rotate(-135deg)}
.changelog-date .changelog-list{margin-top:.6rem}

/* ------------------------------------------------------------ streak -- */
.streak-card{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);
  padding:1.1rem 1.2rem;margin-bottom:1.8rem;overflow-x:auto}
.streak-grid{display:grid;grid-template-rows:repeat(7,1fr);grid-auto-flow:column;
  grid-auto-columns:11px;gap:3px;width:max-content}
.heat-cell{display:block;width:11px;height:11px;border-radius:3px;background:var(--raised)}
.heat-future{background:transparent}
.heat-0{background:var(--raised)}
.heat-1{background:color-mix(in srgb, var(--t1) 30%, var(--raised))}
.heat-2{background:color-mix(in srgb, var(--t1) 55%, var(--raised))}
.heat-3{background:color-mix(in srgb, var(--t1) 78%, var(--raised))}
.heat-4{background:var(--t1)}
.streak-legend{display:flex;align-items:center;gap:.3rem;margin-top:.7rem;
  font-size:.72rem;color:var(--tx-4)}
.streak-legend .heat-cell{margin:0 1px}

/* -------------------------------------------------------- signup nudge -- */
/* A full-bleed bar in the same visual language as the homepage's existing
   streak/ref banners (those two stay defined inline there since they're
   homepage-only) - this one's shared because it now shows up on more than
   one page: loss-aversion aimed at a guest with real local progress.
   Everything it references is sitting in ws.learned/ws.activity on this
   browser only, gone the moment this device's storage is cleared or a
   different one is opened - which an account fixes. */
.signup-nudge{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;
  background:color-mix(in srgb,var(--t4) 18%,var(--surf));
  border-bottom:1px solid var(--line-2);padding:.6rem 1.25rem;font-size:.86rem;color:var(--tx-2)}
.signup-nudge-link{font-weight:700;color:var(--link);white-space:nowrap}
.signup-nudge-close{margin-left:auto;background:none;border:none;color:var(--tx-4);
  font-size:1.2rem;line-height:1;cursor:pointer;padding:0 .3rem}
.signup-nudge-close:hover{color:var(--tx)}

/* ------------------------------------------------------ weekly goal -- */
.wg-card{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);
  padding:1.1rem 1.2rem;margin-bottom:1.8rem}
.wg-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.wg-head h2{font-family:var(--disp);font-size:1.1rem;font-weight:800;margin:0}
.wg-bar-wrap{margin-top:.9rem}
.wg-bar{height:.6rem;border-radius:var(--r-pill);background:var(--raised);overflow:hidden}
.wg-bar i{display:block;height:100%;background:var(--t1);border-radius:var(--r-pill);
  transition:width .3s ease}
.wg-text{margin:.55rem 0 0;font-size:.84rem;color:var(--tx-3)}
.wg-empty{margin:.9rem 0 0;font-size:.84rem;color:var(--tx-4)}

/* --------------------------------------------------------- achievements -- */
.achv-card-wrap{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);
  padding:1.1rem 1.2rem;margin-bottom:1.8rem}
.achv-head{display:flex;align-items:baseline;justify-content:space-between;gap:.6rem;margin-bottom:.9rem}
.achv-head h2{font-family:var(--disp);font-size:1.1rem;font-weight:800;margin:0}
.achv-head span{font-size:.78rem;color:var(--tx-4)}
.achv-login-notice{margin:0 0 .9rem;font-size:.82rem;line-height:1.5;color:var(--t3);background:var(--t3s);
  border-radius:var(--r-sm);padding:.6rem .7rem}
.achv-login-notice a{color:inherit;font-weight:700}
.achv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(13.5rem,1fr));gap:.7rem}
.achv-card{display:flex;flex-direction:column;gap:.25rem;padding:.75rem .85rem;
  border-radius:var(--r-sm);background:var(--raised);border:1px solid var(--line-2);
  opacity:.55}
.achv-card.unlocked{opacity:1;border-color:color-mix(in srgb, var(--accent) 35%, var(--line-2))}
.achv-card.secret:not(.unlocked){opacity:.4}
.achv-icon{font-size:1.2rem;line-height:1}
.achv-name{font-size:.86rem;font-weight:700}
.achv-hint{font-size:.74rem;color:var(--tx-4)}

/* ---------------------------------------------------------- challenges -- */
.chal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15.5rem,1fr));gap:.7rem}
.chal-card{display:flex;flex-direction:column;gap:.35rem;padding:.8rem .9rem;
  border-radius:var(--r-sm);background:var(--raised);border:1px solid var(--line-2)}
.chal-card.done{border-color:color-mix(in srgb, var(--t1) 40%, var(--line-2))}
.chal-top{display:flex;align-items:center;gap:.5rem}
.chal-icon{font-size:1.2rem;line-height:1}
.chal-name{font-size:.86rem;font-weight:700;flex:1 1 auto}
.chal-check{color:var(--t1);font-weight:800;font-size:.9rem}
.chal-desc{font-size:.76rem;color:var(--tx-4);line-height:1.4}
.chal-bar{height:.4rem;border-radius:var(--r-pill);background:var(--surf-2);overflow:hidden;margin-top:.1rem}
.chal-bar i{display:block;height:100%;background:var(--t1);border-radius:var(--r-pill)}
.chal-count{font-size:.72rem;color:var(--tx-4);font-weight:600}

/* ----------------------------------------------------- practice log -- */
.pl-log-list{display:flex;flex-direction:column;gap:.4rem}
.pl-log-row{display:flex;align-items:center;gap:.7rem;padding:.55rem .7rem;border-radius:var(--r-sm);
  background:var(--raised);font-size:.84rem}
.pl-log-main{flex:1 1 auto;min-width:0;color:var(--tx-2);font-weight:600;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.pl-log-main b{color:var(--tx)}
.pl-log-dur{flex:none;font-family:var(--disp);font-weight:800;color:var(--t1)}
.pl-log-time{flex:none;font-size:.74rem;color:var(--tx-4);width:4.5rem;text-align:right}

/* --------------------------------------------------------------- splash -- */
.splash-headline{font-family:var(--disp);font-weight:900;text-transform:uppercase;
  letter-spacing:.02em;font-size:clamp(1.6rem,6vw,2.6rem);color:var(--accent);
  margin:.5rem 0 0;text-align:center;animation:splash-pop .4s ease-out}
@keyframes splash-pop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}

/* -------------------------------------------------------------- scroll top -- */
.scroll-top{position:fixed;right:1.2rem;bottom:1.2rem;z-index:400;width:3rem;height:3rem;
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--raised);color:var(--tx-2);border:1px solid var(--line-3);
  box-shadow:var(--shadow);cursor:pointer}
.scroll-top:hover{color:var(--tx);border-color:var(--accent)}
@media (max-width:700px){
  .scroll-top{right:.9rem;bottom:.9rem;width:2.7rem;height:2.7rem}
}

/* ------------------------------------------------------------ easter egg -- */
/* Deliberately almost invisible - this is a "find it" secret, not a UI
   control, so it gets none of the usual affordances (no visible background,
   no shadow) until something - a hover, a focus - gives it away. Parked
   right next to the scroll-top button (same bottom row, just to its left)
   rather than in a page corner, which is where the Halloween-theme
   jack-o-lanterns live - the two were overlapping there. Fixed in place,
   no float/drift of its own, unlike the Halloween decorations. */
#cornEgg{position:fixed;right:4.8rem;bottom:1.7rem;left:auto;z-index:390;width:16px;height:16px;
  padding:0;border:none;background:none;opacity:.06;cursor:pointer;
  transition:opacity .25s ease,transform .25s ease}
#cornEgg svg{width:100%;height:100%;display:block}
#cornEgg:hover,#cornEgg:focus-visible{opacity:.95;transform:scale(1.2)}
@media (max-width:700px){ #cornEgg{right:4.1rem;bottom:1.3rem} }

/* ---------------------------------------------------------- seasonal -- */
/* z-index:55 - just above the sticky header (50) so the corner cobwebs/
   spider actually show instead of sitting behind it, still below any real
   UI (settings/search dropdowns at 60, scroll-top at 400, modals at 500).
   pointer-events:none throughout so none of this can ever block a click. */
#hwDecor{position:fixed;inset:0;z-index:55;pointer-events:none;overflow:hidden}
.hw-cobweb{position:absolute;top:-6px;width:84px;height:84px;color:var(--tx-4);opacity:.22}
.hw-cobweb svg{width:100%;height:100%;display:block}
.hw-cobweb-left{left:-6px}
.hw-cobweb-right{right:-6px;transform:scaleX(-1)}
:root[data-mode="halloween"] .hw-cobweb{opacity:.3;color:var(--tx-3)}
@media (max-width:600px){ .hw-cobweb{width:58px;height:58px} }

/* The rest only ever appear with the dedicated Halloween theme active
   (halloween.js only builds them in "full" mode) - Dark/Dim's seasonal
   touch stays just the cobwebs above, on purpose. */
.hw-spider{position:absolute;top:22px;right:40px;width:30px;height:74px;
  color:var(--tx-3);opacity:.55;transform-origin:50% 0;
  animation:hw-swing 3.2s ease-in-out infinite alternate}
.hw-spider svg{width:100%;height:100%;display:block}
@keyframes hw-swing{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}

/* bottom:4.6rem, not the page corner itself - that's where the scroll-top
   button and the candy-corn egg both sit (up to about bottom:4.2rem on
   desktop), and the lanterns were covering the egg entirely. Glow pulses
   like a real flickering candle instead of sitting at one flat brightness;
   the shape itself (.hw-lantern svg) doesn't move, only the drop-shadow does. */
.hw-lantern{position:absolute;bottom:4.6rem;width:68px;height:62px;color:#f9a826;opacity:.6;
  animation:hw-glow 2.6s ease-in-out infinite}
.hw-lantern svg{width:100%;height:100%;display:block}
.hw-lantern-left{left:-6px}
.hw-lantern-right{right:-6px;transform:scaleX(-1)}
@keyframes hw-glow{
  0%,100%{filter:drop-shadow(0 0 6px rgba(249,115,22,.35))}
  50%{filter:drop-shadow(0 0 16px rgba(249,115,22,.85))}
}

.hw-ghost{position:absolute;width:46px;height:54px;color:var(--tx-3);opacity:.3;
  animation:hw-float 5.2s ease-in-out infinite alternate}
.hw-ghost svg{width:100%;height:100%;display:block}
.hw-ghost-a{top:32%;left:1rem}
.hw-ghost-b{top:64%;right:1.1rem;animation-delay:-2.6s}
@keyframes hw-float{
  0%{transform:translate(0,0)}
  50%{transform:translate(10px,-16px)}
  100%{transform:translate(-6px,-4px)}
}

.hw-bat{position:absolute;width:30px;height:15px;color:var(--tx-4);opacity:.4;
  animation:hw-drift 6s ease-in-out infinite alternate}
.hw-bat svg{width:100%;height:100%;display:block}
.hw-bat-a{top:90px;left:18%}
.hw-bat-b{top:130px;left:32%;animation-delay:-2.4s}
@keyframes hw-drift{from{transform:translate(0,0)}to{transform:translate(14px,-6px)}}

@media (prefers-reduced-motion:reduce){
  .hw-spider,.hw-ghost,.hw-bat,.hw-lantern{animation:none}
  .hw-lantern{filter:drop-shadow(0 0 10px rgba(249,115,22,.55))}
}
@media (max-width:700px){
  .hw-ghost,.hw-bat{display:none}
  .hw-spider{width:22px;height:54px;right:30px}
  .hw-lantern{width:48px;height:44px;bottom:4rem}
}

/* Diwali's equivalent of the above - same #hwDecor-style wrapper/z-index
   convention, just its own element (#dwDecor, built by diwali.js) so the
   two seasonal layers never fight over the same nodes if both conditions
   somehow overlapped in some other year. Dark/Dim's ambient touch during
   the real-world Diwali window is a couple of small twinkling sparks
   (instead of cobwebs); the full diya + firework treatment is reserved for
   the dedicated Diwali theme, same split Halloween uses. */
#dwDecor{position:fixed;inset:0;z-index:55;pointer-events:none;overflow:hidden}
.dw-spark{position:absolute;width:30px;height:30px;color:var(--t3);opacity:.5;
  animation:dw-twinkle 2.2s ease-in-out infinite}
.dw-spark svg{width:100%;height:100%;display:block}
.dw-spark-left{top:14px;left:18px}
.dw-spark-right{top:14px;right:18px;animation-delay:-1.1s}
:root[data-mode="diwali"] .dw-spark{opacity:.65}
@keyframes dw-twinkle{0%,100%{opacity:.25;transform:scale(.85)}50%{opacity:.85;transform:scale(1.1)}}

/* The rest only ever appear with the dedicated Diwali theme active
   (diwali.js only builds them in "full" mode). The diyas are the one
   clickable thing in here - pointer-events:auto just on them, against the
   wrapper's own pointer-events:none, so clicking one lights the fireworks
   on demand instead of them going off on a loop (that was the original
   behavior - genuinely annoying on a page you're trying to read, same
   complaint a looping autoplay animation always gets). */
.dw-diya{position:absolute;bottom:4.6rem;width:60px;height:56px;color:#f2b33d;opacity:.75;
  animation:dw-flicker 2.4s ease-in-out infinite;pointer-events:auto;cursor:pointer}
.dw-diya svg{width:100%;height:100%;display:block}
.dw-diya-left{left:-2px}
.dw-diya-right{right:-2px;transform:scaleX(-1)}
@keyframes dw-flicker{
  0%,100%{filter:drop-shadow(0 0 7px rgba(242,179,61,.4))}
  50%{filter:drop-shadow(0 0 17px rgba(242,179,61,.9))}
}

/* Inert until diwali.js adds .firing (a click on either diya) - no
   `infinite`, so a burst plays once and stops instead of repeating on its
   own. animation-fill-mode via "forwards" holds it faded out at the end
   rather than snapping back to its mid-animation state. */
.dw-burst{position:absolute;width:52px;height:52px;opacity:0}
.dw-burst svg{width:100%;height:100%;display:block}
.dw-burst-a{top:20%;left:12%;color:#e8732c}
.dw-burst-b{top:46%;right:10%;color:#b91c3c}
.dw-burst-c{top:70%;left:22%;color:#f2b33d}
.dw-burst.firing{animation:dw-burst .9s ease-out forwards}
@keyframes dw-burst{
  0%{opacity:0;transform:scale(.4)}
  20%{opacity:.9;transform:scale(1)}
  55%{opacity:.6;transform:scale(1.15)}
  100%{opacity:0;transform:scale(1.3)}
}

@media (prefers-reduced-motion:reduce){
  .dw-spark,.dw-diya{animation:none}
  .dw-diya{filter:drop-shadow(0 0 10px rgba(242,179,61,.6))}
  .dw-burst.firing{animation:none;opacity:.5;transform:scale(1)}
}
@media (max-width:700px){
  .dw-burst-c{display:none}
  .dw-diya{width:44px;height:42px;bottom:4rem}
}

.legend{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem}
.lg{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-sm);padding:.6rem .7rem}
.lg b{display:flex;align-items:center;gap:.35rem;font-size:.8rem;font-family:var(--disp)}
.lg i{width:8px;height:8px;border-radius:50%;font-style:normal}
.lg span{display:block;font-size:.76rem;color:var(--tx-3);margin-top:.2rem;line-height:1.4}
.lg:nth-child(1) i{background:var(--t1)} .lg:nth-child(2) i{background:var(--t2)}
.lg:nth-child(3) i{background:var(--t3)} .lg:nth-child(4) i{background:var(--t4)}
.lg:nth-child(5) i{background:var(--t5)}
@media (max-width:760px){ .legend{grid-template-columns:repeat(2,1fr)} }

.ladder{list-style:none;margin:0;padding:0;counter-reset:step}
.ladder li{counter-increment:step;display:flex;gap:.7rem;padding:.45rem 0;
  border-top:1px solid var(--line)}
.ladder li:first-child{border-top:0}
.ladder li::before{content:counter(step);flex:none;width:1.4rem;height:1.4rem;border-radius:50%;
  background:var(--surf-2);color:var(--tx-3);font-size:.72rem;font-weight:700;
  display:grid;place-items:center}
.ladder b{font-size:.88rem;color:var(--tx)}
.ladder span{display:block;font-size:.8rem;color:var(--tx-3)}
.crit{display:inline-block;font-size:.74rem;font-weight:600;color:var(--tx-3);
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:.15rem .55rem;margin:0 .3rem .3rem 0}
.crit.key{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}

/* ------------------------------------------------------------------ misc --- */
.scale{margin:2.8rem 0 0}
.brows{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:.5rem;
       margin-top:.8rem}
.brow{display:grid;grid-template-columns:auto 1fr auto;gap:.6rem;align-items:center;
  text-align:left;background:var(--surf);border:1px solid var(--line);border-radius:var(--r-sm);
  padding:.65rem .8rem}
.brow:hover{border-color:var(--line-2);background:var(--raised)}
.brow .dot{width:8px;height:8px;border-radius:50%;background:var(--bdot)}
.brow b{font-size:.86rem;font-weight:700}
.brow .d{grid-column:2/4;font-size:.76rem;color:var(--tx-3);line-height:1.35}
.brow .pk{font-family:var(--disp);font-weight:800;font-size:.92rem;color:var(--bdot);
  font-variant-numeric:tabular-nums}
.brow[aria-current="true"]{border-color:var(--bdot)}

.empty{padding:3rem 1rem;text-align:center;color:var(--tx-3);font-size:.9rem}
.count{font-size:.78rem;color:var(--tx-3);white-space:nowrap}

/* -------------------------------------------------------------- song page -- */
.song-wrap{padding-top:2.2rem;padding-bottom:4rem}
.song-back{display:inline-flex;align-items:center;gap:.4rem;font-size:.86rem;font-weight:600;
  color:var(--tx-2);margin-bottom:1.6rem}
.song-back:hover{color:var(--tx)}
.pt-bar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;
  background:var(--surf);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:.6rem .9rem;margin-bottom:1.4rem}
.pt-nav{flex:none;width:2.2rem;height:2.2rem;border-radius:50%;background:var(--raised);
  border:1px solid var(--line-3);color:var(--tx-2);font-size:1rem;cursor:pointer}
.pt-nav:hover:not(:disabled){color:var(--tx);border-color:var(--accent)}
.pt-nav:disabled{opacity:.35;cursor:default}
.pt-label{flex:1 1 auto;text-align:center;font-size:.84rem;font-weight:700;color:var(--tx-2)}
.song-hero{display:flex;gap:1.6rem;align-items:flex-start;margin-bottom:2rem}
.song-cover{width:7.5rem;height:7.5rem;flex:none;border-radius:var(--r-lg);overflow:hidden;
  background:var(--surf-2);box-shadow:var(--shadow-lg)}
.song-cover img{width:100%;height:100%;object-fit:cover;display:block}
.song-meta{min-width:0;flex:1 1 auto}
.song-title-row{display:flex;align-items:center;gap:.6rem}
.song-title-row .song-title{margin-bottom:0}
.song-fav{display:flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;
  flex:none;border:1px solid var(--bd);border-radius:50%;background:var(--surf-2);color:var(--tx-4);
  cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.song-fav:hover{color:var(--tx-2);border-color:var(--tx-4)}
.song-fav[aria-pressed="true"]{color:#f5b942;border-color:#f5b942;background:rgba(245,185,66,.12)}
.song-fav[aria-pressed="true"] svg{fill:currentColor}
.song-eyebrow{margin:0 0 .3rem;font-size:.82rem;font-weight:700;color:var(--link);
  text-transform:uppercase;letter-spacing:.06em}
.song-title{margin:0 0 .5rem;font-family:var(--disp);font-weight:900;text-transform:uppercase;
  font-size:clamp(1.8rem,5vw,2.8rem);line-height:1.05}
.song-sub{margin:0;color:var(--tx-3);font-size:.9rem}
.song-tags{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.6rem}
.song-tags .tag{font-size:.74rem;font-weight:600;color:var(--tx-4);background:var(--surf-2);
  border-radius:var(--r-pill);padding:.15em .6em}
.song-h2{font-family:var(--disp);font-weight:800;font-size:1.3rem;text-transform:uppercase;
  letter-spacing:.02em;margin:2.4rem 0 1rem}
.inst-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.9rem}
.inst-card{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:1.1rem 1.2rem}
.inst-card.learned{background:color-mix(in srgb, var(--t1) 6%, transparent)}
.inst-card-top{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:.5rem}
.inst-label{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
  color:var(--tx-3)}
.inst-score{font-family:var(--disp);font-weight:800;font-size:1.7rem;font-variant-numeric:tabular-nums}
.inst-card.t1 .inst-score{color:var(--t1)} .inst-card.t2 .inst-score{color:var(--t2)}
.inst-card.t3 .inst-score{color:var(--t3)} .inst-card.t4 .inst-score{color:var(--t4)}
.inst-card.t5 .inst-score{color:var(--t5)}
.inst-card.t1 .meter i{background:var(--t1)} .inst-card.t2 .meter i{background:var(--t2)}
.inst-card.t3 .meter i{background:var(--t3)} .inst-card.t4 .meter i{background:var(--t4)}
.inst-card.t5 .meter i{background:var(--t5)}
.inst-note{margin:.7rem 0 0;font-size:.84rem;color:var(--tx-3);line-height:1.5}
.inst-revisited{margin:.4rem 0 0;font-size:.72rem;font-weight:700;color:var(--t2)}
.inst-card .actions{margin-top:.9rem}
.song-history{max-width:42rem}
.song-history p{margin:0 0 1rem;font-size:.92rem;line-height:1.65;color:var(--tx-2)}
.song-history p:last-child{margin-bottom:0}
.song-history-empty{color:var(--tx-4)!important;font-style:italic}

/* ---- practice room (metronome + timer, song.html) ---- */
.pr-room{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1rem;max-width:42rem}
.pr-metro,.pr-timer{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:1.2rem 1.3rem;display:flex;flex-direction:column;align-items:center;gap:.7rem}
.pr-pulse{width:1.1rem;height:1.1rem;border-radius:50%;background:var(--raised);
  border:2px solid var(--line-3);transition:transform .05s ease}
.pr-pulse.pr-pulse-beat{transform:scale(1.5);border-color:var(--t1);background:color-mix(in srgb,var(--t1) 40%,var(--raised))}
.pr-pulse.pr-pulse-accent.pr-pulse-beat{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 45%,var(--raised))}
.pr-bpm-row{display:flex;align-items:center;gap:.9rem}
.pr-bpm-step{width:2.2rem;height:2.2rem;border-radius:50%;border:1px solid var(--line-3);
  background:var(--raised);color:var(--tx-2);font-size:1.2rem;line-height:1;display:flex;
  align-items:center;justify-content:center}
.pr-bpm-step:hover{border-color:var(--accent);color:var(--tx)}
.pr-bpm-display{display:flex;flex-direction:column;align-items:center;min-width:5rem}
.pr-bpm-display span:first-child{font-family:var(--disp);font-weight:800;font-size:2.2rem;
  line-height:1;font-variant-numeric:tabular-nums}
.pr-bpm-unit{font-size:.7rem;font-weight:700;color:var(--tx-4);letter-spacing:.05em}
#prBpmRange{width:100%;accent-color:var(--accent)}
.pr-metro-actions,.pr-timer-actions{display:flex;gap:.6rem;width:100%}
.pr-metro-actions .find-btn,.pr-timer-actions .find-btn{flex:1 1 auto;justify-content:center}
.pr-metro-actions .rd-btn-ghost,.pr-timer-actions .rd-btn-ghost{flex:1 1 auto;justify-content:center;
  border:1px solid var(--line-3)}
#prToggle.pr-active{background:var(--t5);border-color:var(--t5)}
.pr-timer-label{margin:0;font-size:.82rem;font-weight:700;color:var(--tx-3);text-transform:uppercase;
  letter-spacing:.04em}
.pr-timer-display{font-family:var(--disp);font-weight:800;font-size:2.6rem;line-height:1;
  font-variant-numeric:tabular-nums}
.pr-timer-note{margin:0;font-size:.74rem;color:var(--tx-4);text-align:center}

@media (max-width:620px){
  .song-hero{gap:1.1rem}
  .song-cover{width:5.5rem;height:5.5rem}
  .inst-grid{grid-template-columns:1fr}
}

/* ------------------------------------------------------------------ modal -- */
.modal-overlay{position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.6);display:flex;
  align-items:center;justify-content:center;padding:1.25rem}
.modal-card{position:relative;width:100%;max-width:26rem;max-height:calc(100vh - 2.5rem);overflow-y:auto;
  background:var(--surf);border:1px solid var(--line-2);border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);padding:1.6rem}
.modal-close{position:absolute;top:1rem;right:1rem;width:2rem;height:2rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:var(--tx-3)}
.modal-close:hover{color:var(--tx);background:var(--raised)}
.modal-h2{margin:0 0 .3rem;font-family:var(--disp);font-weight:800;font-size:1.25rem;
  text-transform:uppercase;padding-right:2rem}
.modal-sub{margin:0 0 .5rem;font-size:.84rem;color:var(--tx-3)}
.modal-current{margin:0 0 1rem;font-size:.84rem;color:var(--tx-2)}
.modal-field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:1rem;font-size:.82rem;
  font-weight:600;color:var(--tx-3)}
.modal-field input,.modal-field textarea{font:inherit;padding:.6rem .75rem;border-radius:var(--r-sm);
  border:1px solid var(--line-3);background:var(--surf-2);color:var(--tx);resize:vertical}
.modal-field textarea{min-height:5rem}
.modal-field input:focus,.modal-field textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}
.modal-error{margin:0 0 .9rem;font-size:.82rem;color:var(--t5);background:var(--t5s);
  border-radius:var(--r-sm);padding:.55rem .75rem}
.modal-submit{width:100%;justify-content:center}

.sharecard-modal-card{max-width:30rem}
.sharecard-canvas-wrap{border-radius:var(--r-sm);overflow:hidden;line-height:0;margin-bottom:1rem}
.sharecard-canvas-wrap canvas{display:block;width:100%;height:auto}
.sharecard-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.sharecard-actions .find-btn{flex:1 1 auto;justify-content:center}

/* ---- practice playlists (My progress) ---- */
.pl-section{margin-bottom:1.8rem}
.pl-head{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.3rem}
.pl-head h2{font-family:var(--disp);font-weight:800;font-size:1.25rem;text-transform:uppercase;margin:0}
.pl-new-btn{border:1px solid var(--line-3);background:var(--raised);white-space:nowrap}
.pl-new-btn:hover{border-color:var(--accent)}
.pl-sub{margin:0 0 1rem;font-size:.86rem;color:var(--tx-3);max-width:40rem}
.pl-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:1rem}
.pl-card{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-lg);padding:1rem 1.2rem}
.pl-card-head{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.pl-card-head h3{font-family:var(--disp);font-weight:800;font-size:1.05rem;margin:0;flex:1 1 auto;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-count{font-size:.76rem;color:var(--tx-4);flex:none}
.pl-delete{font-size:.76rem;font-weight:700;color:var(--tx-4);flex:none}
.pl-delete:hover{color:var(--t5)}
.pl-public-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.7rem;flex-wrap:wrap}
.pl-public-toggle{font-size:.76rem;font-weight:700;padding:.3rem .7rem;border-radius:var(--r-pill);
  border:1px solid var(--line-3);background:var(--raised);color:var(--tx-3)}
.pl-public-toggle:hover{color:var(--tx)}
.pl-public-toggle.on{color:var(--t1);border-color:var(--t1);background:var(--t1s)}
.pl-share{font-size:.76rem;font-weight:700;padding:.3rem .7rem;border-radius:var(--r-pill);
  border:1px solid var(--line-3);background:var(--raised);color:var(--tx-3)}
.pl-share:hover{color:var(--tx);border-color:var(--accent)}
.pl-songs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.1rem}
.pl-song{display:flex;align-items:center;justify-content:space-between;gap:.6rem;
  padding:.5rem 0;border-top:1px solid var(--line)}
.pl-song:first-child{border-top:none}
.pl-song-main{font-size:.86rem;color:var(--tx-2);min-width:0}
.pl-song-main b{color:var(--tx);font-weight:700}
.pl-song-note{display:block;font-size:.76rem;color:var(--tx-4)}
.pl-song-actions{display:flex;align-items:center;gap:.25rem;flex:none}
.pl-song-actions button{width:1.7rem;height:1.7rem;border-radius:var(--r-sm);display:flex;
  align-items:center;justify-content:center;color:var(--tx-4);font-size:.9rem}
.pl-song-actions button:hover{color:var(--tx);background:var(--raised)}
.pl-empty{margin:0;padding:1rem 0;font-size:.84rem;color:var(--tx-4)}

.pl-pick-list{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.8rem;max-height:16rem;overflow-y:auto}
.pl-pick-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;
  padding:.6rem .8rem;border-radius:var(--r-sm);border:1px solid var(--line-2);
  background:var(--surf-2);color:var(--tx);font:inherit;font-weight:600;text-align:left}
.pl-pick-row:hover{border-color:var(--accent)}
.pl-pick-count{font-size:.76rem;font-weight:400;color:var(--tx-4)}
.pl-pick-new{width:100%;justify-content:center;border:1px dashed var(--line-3)}

footer.site{margin:3.2rem 0 0;border-top:1px solid var(--line);padding:1.6rem 0 3.2rem;
  font-size:.8rem;color:var(--tx-3);line-height:1.6}
h2.sect{font-family:var(--disp);font-weight:800;font-size:1.5rem;letter-spacing:.02em;
  text-transform:uppercase;margin:0 0 .25rem}
p.sect{margin:0;font-size:.8rem;color:var(--tx-3)}

/* ================================================================= home == */
.home-hero{position:relative;overflow:hidden;min-height:46rem;display:flex;flex-direction:column}
.cover-wall{position:absolute;left:-10%;top:-8%;width:130%;height:70%;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:4px;
  transform:rotate(-5deg) scale(1.24) translate(0,0);opacity:.55;pointer-events:none;
  animation:cover-drift var(--cw-duration,38s) linear infinite}
/* The tilt and scale stay fixed; only the position orbits, clockwise, in a
   small circle (8 evenly-spaced points, linear timing) - genuinely constant
   motion with no reversal and no easing pause at the loop point, unlike the
   back-and-forth wobble this replaced. A literal full rotation of the whole
   rectangle was considered and rejected: at 45deg/135deg a rotated rectangle's
   corners sweep much further out, so avoiding gaps would mean a much bigger
   grid - spreading the same 204 covers over more empty space. */
@keyframes cover-drift{
  0%   {transform:rotate(-5deg) scale(1.24) translate(0,-1.6%)}
  12.5%{transform:rotate(-5deg) scale(1.24) translate(1.13%,-1.13%)}
  25%  {transform:rotate(-5deg) scale(1.24) translate(1.6%,0)}
  37.5%{transform:rotate(-5deg) scale(1.24) translate(1.13%,1.13%)}
  50%  {transform:rotate(-5deg) scale(1.24) translate(0,1.6%)}
  62.5%{transform:rotate(-5deg) scale(1.24) translate(-1.13%,1.13%)}
  75%  {transform:rotate(-5deg) scale(1.24) translate(-1.6%,0)}
  87.5%{transform:rotate(-5deg) scale(1.24) translate(-1.13%,-1.13%)}
  100% {transform:rotate(-5deg) scale(1.24) translate(0,-1.6%)}
}
@media (prefers-reduced-motion:reduce){ .cover-wall{animation:none} }
.cw-tile{display:block;aspect-ratio:1;overflow:hidden;border-radius:4px}
.cw-tile img{width:100%;height:100%;object-fit:cover;display:block}
/* Continues straight on from .home-topbar's own fade (70% at its bottom,
   right where this starts) rather than snapping back to fully opaque, then
   tapers slowly - the previous version hit its clearest point by just 22%
   down, which read as a hard edge under the header instead of a blend.
   Stretched across the full hero height, it dips low in the middle (the
   covers' real "window") and climbs back to solid only near the bottom,
   for the headline text sitting there. */
.home-hero-scrim{position:absolute;inset:0;
  background:linear-gradient(180deg, color-mix(in srgb,var(--bg) 70%,transparent) 0%,
    color-mix(in srgb,var(--bg) 48%,transparent) 12%, color-mix(in srgb,var(--bg) 28%,transparent) 32%,
    color-mix(in srgb,var(--bg) 28%,transparent) 52%, color-mix(in srgb,var(--bg) 60%,transparent) 72%,
    var(--bg) 96%)}
/* width:100% here is load-bearing, not decorative - as a flex item that's
   also itself a flex container, this shrinks to fit its own content
   instead of stretching to .home-hero's full width the way a plain block
   element would, leaving .wrap's max-width/margin:auto centering with
   nothing to actually center (align-items/align-self:stretch on either
   side of the relationship don't change this, confirmed by testing both).
   Without it, the hero's heading/subhead/buttons sit well inset from the
   left edge the header and every .wrap section below it actually use. */
/* padding-top is the guaranteed minimum gap from the header/search row
   above - without it, flex-end here only leaves breathing room by
   accident, whenever the stacked content underneath happens to be
   shorter than the hero's own height. Once there's enough content to
   fill it (three CTAs plus the instrument chips, worse again on mobile
   where the search bar wraps into its own row first), that accidental
   gap collapses to nothing and the headline ends up touching the header. */
.home-hero-in{position:relative;width:100%;flex:1 1 auto;display:flex;flex-direction:column;
  justify-content:flex-end;gap:1.5rem;padding-top:3rem;padding-bottom:4.5rem}
.home-hero-in h1{margin:0;max-width:52rem;font-family:var(--disp);font-weight:900;
  font-size:clamp(2.2rem,6.5vw,6rem);line-height:.9;letter-spacing:.005em;text-transform:uppercase}
.accent-text{color:var(--accent)}
.home-sub{margin:0;max-width:34rem;font-size:1.15rem;line-height:1.5;color:var(--tx-2)}
.home-cta{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:.2rem}
.outline-btn{display:inline-flex;align-items:center;gap:.5rem;height:3.1rem;padding:0 1.4rem;
  border-radius:var(--r-sm);background:color-mix(in srgb,var(--surf) 78%,transparent);
  border:1px solid var(--line-3);color:var(--tx);font-weight:600;font-size:.95rem}
.outline-btn:hover{color:var(--tx)}
.continue-link{display:inline-flex;align-items:center;gap:.5rem;margin-top:.9rem;
  font-size:.86rem;font-weight:600;color:var(--tx-2)}
.continue-link b{color:var(--tx);font-weight:800}
.continue-link:hover{color:var(--tx)}
.continue-link svg{flex:none}
/* A real third button, not a plain text link like .continue-link above -
   this is the one actual click-to-action in the hero besides "Pick a band"
   and "Find my next song", so it needs to visibly read as clickable
   on its own rather than blend in as a footnote underneath the real
   buttons. Same pill/outline language as .iplay below it, not a solid
   fill, so it still clearly reads as the hero's third priority, not a
   fourth thing competing with the two buttons above it for first look. */
.community-cta{display:inline-flex;align-items:center;align-self:flex-start;gap:.55rem;
  height:2.7rem;padding:0 1.2rem;margin-top:.9rem;border-radius:var(--r-pill);
  background:color-mix(in srgb,var(--accent) 16%,var(--surf));
  border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line-3));
  color:var(--tx);font-weight:700;font-size:.88rem}
.community-cta:hover{color:var(--tx);border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 24%,var(--surf))}
.community-cta svg{flex:none}
.iplay{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.4rem}
.iplay button{height:2.3rem;padding:0 .9rem;border-radius:var(--r-pill);font-size:.82rem;font-weight:600;
  border:1px solid var(--line-3);background:color-mix(in srgb,var(--surf) 72%,transparent);color:var(--tx-2)}
.iplay button[aria-pressed="true"]{background:var(--tx);border-color:var(--tx);color:var(--bg);font-weight:700}
@media (max-width:760px){
  .home-hero{min-height:38rem}
  /* The search bar wraps into its own row inside the header on narrow
     screens, which already pushes the hero down further than on desktop -
     without its own explicit gap here the headline ends up sitting flush
     against that wrapped row with no breathing room between them at all. */
  .home-hero-in{padding-top:2.5rem}
  /* The desktop scrim above deliberately dips to its clearest ("window")
     point around 32-52% down the hero, tuned for a wide, short desktop
     hero where the bottom-anchored text block only ever occupies the
     lower half. On a phone the hero is both shorter and carrying more
     stacked content (three CTAs plus the instrument chips, not two), so
     the real text block starts much higher as a fraction of the hero's
     height - squarely inside that same "clearest" window, putting busy
     album art directly behind the headline instead of behind empty
     space. Mobile gets its own, simpler gradient that never gets as
     light as the desktop one does, prioritizing the text staying
     readable over showing off the art through a window there isn't
     really room for here. */
  .home-hero-scrim{background:linear-gradient(180deg,
    color-mix(in srgb,var(--bg) 78%,transparent) 0%,
    color-mix(in srgb,var(--bg) 60%,transparent) 22%,
    color-mix(in srgb,var(--bg) 58%,transparent) 42%,
    color-mix(in srgb,var(--bg) 72%,transparent) 62%,
    var(--bg) 90%)}
  .home-cta{flex-direction:column;align-items:stretch}
  .outline-btn,.find-btn{justify-content:center}
  .community-cta{width:100%;justify-content:center}
}

.wif{display:flex;gap:4rem;align-items:center;padding:3rem 1.25rem 5rem}
.wif-left{width:26rem;flex:none;display:flex;flex-direction:column;gap:1.1rem}
.wif-left h2{margin:0;font-family:var(--disp);font-weight:800;font-size:2.6rem;line-height:.98;
  text-transform:uppercase}
.wif-copy{margin:0;font-size:1rem;line-height:1.55;color:var(--tx-2)}
.wif-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem;
  font-size:.98rem;font-weight:600}
.wif-list li{display:flex;align-items:center;gap:.8rem}
.wif-list .num{width:1.9rem;height:1.9rem;flex:none;border-radius:50%;display:flex;
  align-items:center;justify-content:center;font-size:.8rem;font-weight:800}
@media (max-width:900px){
  .wif{flex-direction:column;align-items:stretch;gap:1.1rem;padding:1.5rem 1rem 3rem}
  .wif-left{width:auto}
  .wif-left h2{font-size:2rem}
}

.example-card{flex:1 1 auto;min-width:0;position:relative;overflow:hidden;border-radius:var(--r-lg);
  background:var(--surf);border:1px solid var(--line-2);box-shadow:var(--shadow-lg);padding:1.6rem}
.ex-top{display:flex;gap:1.2rem;align-items:center;color:var(--tx)}
.ex-top img{width:5.6rem;height:5.6rem;border-radius:var(--r);object-fit:cover;flex:none;box-shadow:var(--shadow)}
.ex-meta{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.3rem}
.ex-sub{font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--tx-4)}
.ex-name{font-family:var(--disp);font-weight:900;font-size:1.9rem;line-height:.95;text-transform:uppercase}
.ex-score-wrap{flex:none;display:flex;flex-direction:column;align-items:center;gap:.1rem}
.ex-score{font-family:var(--disp);font-weight:800;font-size:2.4rem;line-height:1}
.ex-tier{font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.ex-row{display:flex;gap:1rem;padding:1rem 0;border-top:1px solid var(--line-2)}
.ex-row:first-of-type{margin-top:1.2rem}
.ex-k{width:8.5rem;flex:none;font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.ex-v{font-size:.95rem;line-height:1.5;color:var(--tx)}
.ex-learn{display:flex;flex-direction:column;gap:.6rem}
.ex-chips{display:flex;gap:.4rem;flex-wrap:wrap}
.ex-chip{padding:.25rem .7rem;border-radius:var(--r-pill);background:var(--raised);
  font-size:.78rem;font-weight:600;color:var(--tx-2)}
@media (max-width:700px){
  .ex-top img{width:4.2rem;height:4.2rem}
  .ex-name{font-size:1.4rem}
  .ex-score{font-size:1.7rem}
  .ex-k{width:6.5rem;font-size:.7rem}
}

.sotd-section{padding:0 1.25rem}
.sotd-card{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap;border-radius:var(--r-lg);
  background:var(--surf);border:1px solid var(--line-2);box-shadow:var(--shadow);padding:1.1rem 1.4rem}
.sotd-card a.sotd-link{display:flex;gap:1rem;align-items:center;flex:1 1 auto;min-width:0;
  color:var(--tx);text-decoration:none}
.sotd-card img{width:3.6rem;height:3.6rem;border-radius:var(--r);object-fit:cover;flex:none}
.sotd-eyebrow{font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--accent);display:block;margin-bottom:.15rem}
.sotd-name{font-weight:700;font-size:1rem;display:block}
.sotd-sub{font-size:.8rem;color:var(--tx-3)}
.sotd-claim{flex:none;background:var(--raised);color:var(--tx);border:1px solid var(--line-3);
  border-radius:var(--r-pill);padding:.55rem 1.1rem;font:inherit;font-weight:700;font-size:.84rem;cursor:pointer}
.sotd-claim:hover{border-color:var(--accent)}
.sotd-claim[disabled]{opacity:.55;cursor:default}
@media (max-width:560px){
  .sotd-card{padding:1rem}
  .sotd-claim{width:100%}
}

/* A direct, specific hook into the Community board - a real recent title
   ("Unpopular opinion: St. Anger has like 3 good songs") is a stronger
   click-through than a generic CTA button, and it's the one place on the
   homepage that shows the board is actually an active, lived-in place
   rather than just a link in the nav. */
.ct-section{padding:0 1.25rem}
.ct-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.8rem}
.ct-head h2{margin:0;font-family:var(--disp);font-weight:800;font-size:1.3rem;text-transform:uppercase}
.ct-head a{font-size:.84rem;font-weight:700;color:var(--link)}
.ct-head a:hover{color:var(--link-hover)}
.ct-list{display:flex;flex-direction:column;gap:.6rem}
.ct-row{display:block;padding:.85rem 1.1rem;border-radius:var(--r-lg);background:var(--surf);
  border:1px solid var(--line);color:inherit}
.ct-row:hover{border-color:var(--line-3)}
.ct-row-top{display:flex;align-items:center;gap:.5rem;font-size:.74rem;color:var(--tx-4);margin-bottom:.3rem}
.ct-board{font-weight:700;color:var(--accent)}
.ct-title{font-weight:700;font-size:.94rem;color:var(--tx);display:block;margin-bottom:.15rem}
.ct-snippet{font-size:.82rem;color:var(--tx-3);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
@media (max-width:560px){
  .ct-head h2{font-size:1.1rem}
}

/* --------------------------------------------------------- recent bands -- */
.rb-section{padding:1rem 1.25rem 0}
.rb-h2{margin:0 0 .8rem;font-family:var(--disp);font-weight:800;font-size:1.3rem}
.rb-row{display:flex;gap:.6rem;overflow-x:auto;padding-bottom:.3rem}
.rb-chip{flex:none;display:flex;align-items:center;gap:.5rem;background:var(--surf);
  border:1px solid var(--line);border-radius:var(--r-pill);padding:.5rem .9rem .5rem .5rem;
  text-decoration:none;color:var(--tx-2);font-size:.84rem;font-weight:600}
.rb-chip:hover{border-color:var(--line-3);color:var(--tx)}
.rb-chip .dot{width:1.6rem;height:1.6rem;border-radius:50%;flex:none}

.band-grid-section{padding:1rem 1.25rem 4rem}
.bgs-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.4rem}
.bgs-head h2{margin:0;font-family:var(--disp);font-weight:800;font-size:2.4rem;line-height:1;
  text-transform:uppercase}
.bgs-legend{display:flex;align-items:center;gap:1rem;font-size:.78rem;color:var(--tx-3);flex-wrap:wrap}
.bgs-legend span{display:flex;align-items:center;gap:.35rem}
.bgs-legend i{width:9px;height:9px;border-radius:50%}
.band-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:14.5rem;gap:.9rem}
.band-tile{position:relative;overflow:hidden;display:block;border-radius:var(--r-lg);
  background:var(--surf);color:#fff}
.band-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.band-tile.featured{grid-column:span 2;grid-row:span 2}
.bt-scrim{position:absolute;inset:0;background:linear-gradient(180deg, rgba(10,9,8,0) 38%, rgba(10,9,8,.92) 100%)}
.bt-badge{position:absolute;left:1.1rem;top:1.1rem;z-index:1;padding:.3rem .7rem;border-radius:var(--r-pill);
  background:var(--accent);color:var(--accent-ink);font-size:.7rem;font-weight:800;letter-spacing:.07em;
  text-transform:uppercase}
.bt-foot{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:.8rem;display:flex;
  align-items:flex-end;justify-content:space-between;gap:.6rem}
.band-tile.featured .bt-foot{padding:1.4rem}
.bt-name{font-family:var(--disp);font-weight:900;font-size:1.25rem;line-height:.95;text-transform:uppercase}
.band-tile.featured .bt-name{font-size:2.6rem}
.bt-score{flex:none;display:flex;flex-direction:column;align-items:center;gap:.1rem;padding:.3rem .5rem .2rem;
  border-radius:8px;background:rgba(17,15,13,.85);font-family:var(--disp);font-weight:800;font-size:1rem}
.band-tile.featured .bt-score{font-size:1.4rem}
.bt-score em{font-style:normal;font-size:.56rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  color:var(--tx-4)}
@media (max-width:900px){
  .band-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:9.5rem;gap:.6rem}
  .bt-name{font-size:1rem}
  .band-tile.featured .bt-name{font-size:1.5rem}
  .bgs-head h2{font-size:1.9rem}
}

.stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem;
  padding:2.2rem 1.25rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stat{display:flex;flex-direction:column;gap:.2rem}
.stat b{font-family:var(--disp);font-weight:800;font-size:2.4rem;line-height:1}
.stat span{font-size:.85rem;color:var(--tx-3)}
@media (max-width:700px){
  .stat-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:2.2rem 1rem}
  .stat b{font-size:1.9rem}
}

.home-about{padding-bottom:2.5rem}
.home-footer{display:flex;flex-direction:column;gap:1.1rem;padding:2.2rem 1.25rem}
.home-footer-row{display:flex;gap:2.5rem;align-items:flex-start}
.home-footer-row p{margin:0;flex:1 1 auto;max-width:36rem;font-size:.82rem;line-height:1.55;color:var(--tx-3)}
.home-footer-links{display:flex;gap:1.6rem;font-size:.82rem;flex:none;align-items:center}
.home-byline{color:var(--tx-4)}
@media (max-width:700px){ .home-footer-row{flex-direction:column;gap:1rem} }
@media (max-width:900px){ .band-grid-section{padding:1rem 1rem 4rem} }

.howwerate{padding:3rem 1.25rem;scroll-margin-top:1rem}
.howwerate h2{margin:.4rem 0 .9rem;font-family:var(--disp);font-weight:800;font-size:2.2rem;
  line-height:1.02;text-transform:uppercase;max-width:34rem}
.hwr-copy{margin:0 0 1.6rem;max-width:52rem;font-size:1rem;line-height:1.6;color:var(--tx-2)}
.hwr-legend{max-width:68rem}
@media (max-width:760px){
  .howwerate{padding:2rem 1rem}
  .howwerate h2{font-size:1.6rem}
}

/* =========================================================== community page == */
/* Reddit-style on purpose: a board sidebar, a sortable feed of vote-ranked
   posts, and a permalinked post+comment-thread view swapped in over the
   feed (no second HTML page - ?board=/&post= query params drive it, same
   "state lives in the URL" approach band.html already uses for ?band=). */
.rd-notice{margin:0 0 1.2rem;font-size:.82rem;line-height:1.5;color:var(--t3);background:var(--t3s);
  border-radius:var(--r-sm);padding:.6rem .8rem}
.rd-wrap{padding-top:1.6rem;padding-bottom:4rem}
.rd-shell{display:flex;align-items:flex-start;gap:1.5rem}
.rd-sidebar{width:15.5rem;flex:none;position:sticky;top:5.5rem;display:flex;flex-direction:column;gap:1rem}
.rd-create-btn{width:100%;justify-content:center}
.rd-boards{display:flex;flex-direction:column;gap:.1rem;background:var(--surf);
  border:1px solid var(--line-2);border-radius:var(--r-lg);padding:.5rem;
  max-height:calc(100vh - 11rem);overflow-y:auto}
.rd-board-group{padding:.7rem .7rem .25rem;font-size:.7rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--tx-4)}
.rd-board-group:first-child{padding-top:.3rem}
.rd-board-link{display:flex;align-items:center;gap:.6rem;padding:.55rem .7rem;border-radius:var(--r-sm);
  font-size:.86rem;font-weight:600;color:var(--tx-2);text-align:left;width:100%}
.rd-board-link:hover{background:var(--raised);color:var(--tx)}
.rd-board-link[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent)}
.rd-board-link .dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--tx-4)}
.rd-board-link[aria-pressed="true"] .dot{background:var(--accent)}

.rd-main{flex:1 1 auto;min-width:0}
.rd-page-h1{font-family:var(--disp);font-weight:900;font-size:1.6rem;line-height:1;
  text-transform:uppercase;margin:0 0 .3rem}
.rd-board-desc{margin:0 0 1rem;color:var(--tx-3);font-size:.88rem;line-height:1.5}

.rd-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:1rem;flex-wrap:wrap}
.rd-sort-tabs{display:flex;gap:.3rem}
.rd-sort-tabs button{padding:.4rem .9rem;border-radius:var(--r-pill);font-size:.82rem;font-weight:700;
  color:var(--tx-3);background:var(--raised);border:1px solid transparent}
.rd-sort-tabs button:hover{color:var(--tx)}
.rd-sort-tabs button[aria-pressed="true"]{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,transparent);
  background:color-mix(in srgb,var(--accent) 14%,transparent)}
.rd-filter-chips{display:flex;gap:.3rem}
.rd-filter-chips button{padding:.4rem .9rem;border-radius:var(--r-pill);font-size:.82rem;font-weight:700;
  color:var(--tx-3);background:var(--raised);border:1px solid transparent}
.rd-filter-chips button:hover{color:var(--tx)}
.rd-filter-chips button[aria-pressed="true"]{color:var(--t1);border-color:color-mix(in srgb,var(--t1) 40%,transparent);
  background:color-mix(in srgb,var(--t1) 14%,transparent)}
.rd-search{font:inherit;padding:.5rem .8rem;border-radius:var(--r-pill);border:1px solid var(--line-2);
  background:var(--surf-2);color:var(--tx);font-size:.84rem;width:13rem;max-width:100%}
.rd-search::placeholder{color:var(--tx-4)}
.rd-search:focus{outline:0;border-color:var(--accent)}
@media (max-width:500px){ .rd-toolbar{flex-direction:column;align-items:stretch} .rd-search{width:100%} }

.rd-composer{background:var(--surf);border:1px solid var(--line-2);border-radius:var(--r-lg);
  padding:1.3rem 1.4rem;margin-bottom:1.2rem;display:flex;flex-direction:column;gap:.9rem}
.rd-field{display:flex;flex-direction:column;gap:.4rem;font-size:.82rem;font-weight:600;color:var(--tx-3)}
.rd-field em{font-style:normal;font-weight:500;color:var(--tx-4);margin-left:.3rem}
.rd-field input,.rd-field textarea,.rd-field select{font:inherit;padding:.65rem .8rem;border-radius:var(--r-sm);
  border:1px solid var(--line-2);background:var(--surf-2);color:var(--tx);font-size:.92rem;resize:vertical}
.rd-field input::placeholder,.rd-field textarea::placeholder{color:var(--tx-4)}
.rd-field input:focus,.rd-field textarea:focus,.rd-field select:focus{outline:0;border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.rd-prompt-btn{align-self:flex-start;margin-top:-.4rem;padding:.4rem .8rem;border-radius:var(--r-pill);
  font-size:.78rem;font-weight:700;color:var(--tx-3);background:var(--surf-2);border:1px solid var(--line-2)}
.rd-prompt-btn:hover{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,transparent)}
.rd-error{margin:0;font-size:.82rem;color:var(--t5);background:var(--t5s);border-radius:var(--r-sm);padding:.55rem .7rem}
.rd-composer-actions{display:flex;gap:.6rem;justify-content:flex-end}
.rd-composer-image-preview{max-width:100%;max-height:14rem;border-radius:var(--r-sm);object-fit:contain;
  background:var(--surf-2);margin-top:.5rem}
.rd-file-chip{display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;
  color:var(--tx-2);background:var(--surf-2);border:1px solid var(--line-2);border-radius:var(--r-pill);
  padding:.35rem .8rem;margin:.5rem 0 0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-post-file{text-decoration:none}
.rd-post-file:hover .rd-file-chip{border-color:var(--accent);color:var(--tx)}
.rd-btn-ghost{padding:.6rem 1.1rem;border-radius:var(--r-pill);font-size:.86rem;font-weight:700;color:var(--tx-3)}
.rd-btn-ghost:hover{color:var(--tx)}

.rd-empty{padding:2.4rem 1rem;text-align:center;color:var(--tx-3);font-size:.9rem;
  background:var(--surf);border:1px solid var(--line-2);border-radius:var(--r-lg)}
.rd-loading{padding:2.4rem 1rem;text-align:center;color:var(--tx-4);font-size:.9rem;margin:0}
.showmore{display:block;margin:1.2rem auto 0;background:var(--raised);color:var(--tx);
  border:1px solid var(--line-3);border-radius:var(--r-pill);padding:.6rem 1.4rem;
  font:inherit;font-weight:600;cursor:pointer}
.showmore:hover{border-color:var(--accent)}

/* ---- post card (feed + detail share this) ---- */
.rd-post{background:var(--surf);border:1px solid var(--line-2);border-radius:var(--r-lg);
  padding:0;margin:0 0 .7rem;display:flex;gap:0;overflow:hidden}
.rd-post:hover{border-color:var(--line-3)}
.rd-vote-rail{flex:none;width:2.6rem;display:flex;flex-direction:column;align-items:center;gap:.15rem;
  padding:.8rem .3rem;background:var(--surf-2)}
.rd-vote{width:1.7rem;height:1.7rem;display:flex;align-items:center;justify-content:center;
  border-radius:50%;color:var(--tx-4)}
.rd-vote:hover{color:var(--tx)}
.rd-vote.up.active{color:var(--accent)}
.rd-vote.down.active{color:#7193ff}
.rd-vote-net{font-weight:800;font-size:.86rem;color:var(--tx-2)}
.rd-post-body{flex:1 1 auto;min-width:0;padding:.9rem 1.1rem;display:flex;flex-direction:column;gap:.4rem}
.rd-post-meta{font-size:.76rem;color:var(--tx-4)}
.rd-post-meta .board{font-weight:700;color:var(--tx-3)}
.rd-flair{font-size:.68rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;
  color:var(--accent);margin-left:.3rem}
.rd-post-title{margin:0;font-size:1.05rem;font-weight:700;color:var(--tx);line-height:1.35}
.rd-post-title a{color:inherit;text-decoration:none}
.rd-post-title a:hover{text-decoration:underline}
.rd-post-snippet{margin:0;font-size:.86rem;color:var(--tx-3);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rd-post-link{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;font-weight:600;
  color:var(--link);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.rd-post-image{display:block;max-width:100%;max-height:22rem;border-radius:var(--r-sm);
  object-fit:contain;background:var(--surf-2);margin-top:.3rem}
.rd-post-full .rd-post-image{max-height:32rem}
.rd-post-foot{display:flex;align-items:center;gap:1rem;margin-top:.2rem}
.rd-comment-count{font-size:.78rem;font-weight:700;color:var(--tx-3);display:flex;align-items:center;gap:.3rem}
.rd-feed-reply-toggle{font-size:.78rem;font-weight:700;color:var(--tx-4)}
.rd-feed-reply-toggle:hover{color:var(--tx)}
.rd-post-share{display:inline-flex;align-items:center;gap:.3rem;font-size:.78rem;font-weight:700;color:var(--tx-4)}
.rd-post-share:hover{color:var(--tx)}
.rd-post-share svg{flex:none}
.rd-post-rock{display:inline-flex;align-items:center;gap:.3rem;font-size:.86rem;font-weight:700;color:var(--tx-4)}
.rd-post-rock:hover:not(:disabled){color:var(--accent)}
.rd-post-rock.rocked{color:var(--accent);cursor:default}
.rd-post-rock span{font-size:.78rem}
.rd-post-delete{font-size:.78rem;font-weight:700;color:var(--tx-4);margin-left:.6rem}
.rd-post-foot .rd-post-delete{margin-left:auto}
.rd-post-delete:hover{color:var(--t5)}
.rd-post .rd-comment-reply-form{margin:0 1.1rem 1rem}

/* ---- detail view ---- */
.rd-back{font-size:.86rem;font-weight:700;color:var(--tx-3);margin-bottom:1rem;display:inline-flex}
.rd-back:hover{color:var(--tx)}
.rd-post-full .rd-post-title{font-size:1.5rem}
.rd-post-fullbody{margin:0;font-size:.95rem;color:var(--tx-2);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.rd-post-full .rd-post-body{gap:.7rem;padding:1.2rem 1.4rem}

.rd-comment-composer{display:flex;flex-direction:column;gap:.6rem;margin:1.3rem 0}
.rd-comment-composer textarea{font:inherit;padding:.7rem .85rem;border-radius:var(--r-sm);
  border:1px solid var(--line-2);background:var(--surf-2);color:var(--tx);font-size:.9rem;resize:vertical}
.rd-comment-composer textarea::placeholder{color:var(--tx-4)}
.rd-comment-composer>.find-btn{align-self:flex-end}

.rd-comment-sort{margin-bottom:.9rem}
.rd-comments{display:flex;flex-direction:column;gap:.9rem}
.rd-comment{display:flex;gap:.7rem}
.rd-comment .rd-vote-rail{width:1.9rem;background:none;padding:.2rem 0;border-radius:var(--r-sm)}
.rd-comment .rd-vote{width:1.4rem;height:1.4rem}
.rd-comment .rd-vote-net{font-size:.76rem}
.rd-comment-body{flex:1 1 auto;min-width:0}
.rd-comment-meta{display:flex;align-items:baseline;gap:.5rem;font-size:.78rem;margin-bottom:.2rem}
.rd-comment-meta .name{font-weight:700;color:var(--tx)}
.rd-comment-meta .time{color:var(--tx-4)}
.rd-comment-delete{color:var(--tx-4);font-weight:700;font-size:.78rem;margin-left:auto}
.rd-comment-delete:hover{color:var(--t5)}
.rd-collapse-toggle{color:var(--tx-4);font-weight:700;font-size:.78rem;font-family:monospace}
.rd-collapse-toggle:hover{color:var(--tx)}
.rd-comment-msg{margin:0 0 .4rem;font-size:.88rem;color:var(--tx-2);line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.rd-comment-msg-deleted{font-style:italic;color:var(--tx-4)}
.rd-comment-reply-toggle{font-size:.78rem;font-weight:700;color:var(--tx-4)}
.rd-comment-reply-toggle:hover{color:var(--tx)}
.rd-comment-reply-form{display:flex;flex-direction:column;gap:.5rem;margin:.5rem 0}
.rd-comment-reply-form textarea{font:inherit;padding:.55rem .75rem;border-radius:var(--r-sm);
  border:1px solid var(--line-2);background:var(--surf-2);color:var(--tx);font-size:.84rem;resize:vertical}
.rd-comment-reply-form .rd-reply-actions{display:flex;gap:.5rem}
.rd-comment-reply-form .rd-reply-actions button{height:2rem;padding:0 .8rem;border-radius:var(--r-sm);font-size:.78rem;font-weight:700}
.rd-comment-reply-form .rd-reply-submit{background:var(--raised);color:var(--tx-2)}
.rd-comment-reply-form .rd-reply-submit:hover{color:var(--tx)}
.rd-comment-children{display:flex;flex-direction:column;gap:.8rem;margin-top:.7rem;padding-left:1rem;
  border-left:2px solid var(--line-2)}

@media (max-width:860px){
  /* The full sidebar (28 boards across two groups) was wrapping into a
     dense multi-row grid that pushed the actual feed almost a full screen
     down, with the "Topics"/"Bands" group labels landing awkwardly mid-row
     instead of reading as section breaks. A single horizontally-scrolling
     chip strip - no group labels, nothing to wrap - keeps every board one
     swipe away without eating the screen. */
  .rd-shell{flex-direction:column}
  .rd-sidebar{width:100%;position:static;flex-direction:column;gap:.6rem}
  .rd-create-btn{width:100%}
  /* The strip used to just cut off hard at the screen edge with nothing
     to suggest it kept going, which read as the board list being cut off
     or broken rather than a deliberate horizontal scroller. A soft fade
     on both edges (mask-image, not a separate gradient overlay element -
     so it never blocks a tap near the edge) makes "there's more here"
     visible at a glance without needing JS to track scroll position. */
  .rd-boards{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;max-height:none;
    gap:.4rem;padding:.5rem;-webkit-overflow-scrolling:touch;
    mask-image:linear-gradient(to right,transparent,black 14px,black calc(100% - 28px),transparent);
    -webkit-mask-image:linear-gradient(to right,transparent,black 14px,black calc(100% - 28px),transparent)}
  .rd-board-group{display:none}
  .rd-board-link{width:auto;flex:none;white-space:nowrap;padding:.5rem .9rem;border-radius:var(--r-pill)}
  .rd-board-link .dot{display:none}
}
@media (max-width:600px){
  .rd-vote-rail{width:2.2rem}
  .rd-post-title{font-size:.96rem}
  .rd-comment-children{padding-left:.6rem;margin-left:.2rem}
}

/* -------------------------------------------------------------- install -- */
.install-tip{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%,10px);z-index:999;
  max-width:min(22rem,calc(100vw - 2rem));padding:.75rem 1.1rem;border-radius:var(--r);
  background:var(--raised);color:var(--tx);border:1px solid var(--line-3);
  font-size:.85rem;line-height:1.4;box-shadow:var(--shadow-lg);
  opacity:0;transition:opacity .25s ease,transform .25s ease}
.install-tip.show{opacity:1;transform:translate(-50%,0)}
