/* Rocko Tunes — the Record Shop. Reskinned into Rocko's World's brand system (navy #191320, gold/red,
   Lilita/Titan/Luckiest, chunky edge-shadowed cards). The Fetch-o-matic is the star: the record spins in its
   window (matic.js → #matic-cv). Same stage/player/karaoke machinery as before — only the skin changed.
   Every motion stops for prefers-reduced-motion. */
:root {
  --bg: #191320; --bg2: #120d18; --panel: #271d33; --panel2: #1f1829; --edge: #0d0a12; --line: #3a2f47;
  --deep: #0d0a12;            /* legacy alias: the chunky outline/edge */
  --ink: #f5eefb; --muted: #b8a9c9; --cream: #fdf6ea;
  --gold: #ffc93c; --amber: #ff9e2c; --red: #e8483b; --lime: #9ad54f; --elec: #59cff0; --grape: #b98cff;
  --r: 18px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --pop: 'Titan One', 'Lilita One', system-ui, sans-serif;
  --candy: 'Luckiest Guy', 'Lilita One', system-ui, sans-serif;
  --outline: 0 2px 0 var(--edge);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.45 var(--font); font-weight: 700; padding-bottom: env(safe-area-inset-bottom);
  background: radial-gradient(1200px 520px at 50% -140px, #2a1e3a, transparent), var(--bg2);
  overflow-x: hidden; position: relative; -webkit-font-smoothing: antialiased;
}
/* a slow, low-key vinyl-groove glow behind everything (brand navy, no strobe) */
body::before {
  content: ""; position: fixed; left: 50%; top: 42%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; z-index: -2;
  background: repeating-conic-gradient(from 0deg, #1d1530 0deg 9deg, #171026 9deg 18deg);
  opacity: .7; animation: sun 120s linear infinite;
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(68% 52% at 50% 24%, rgba(255,201,60,.12), transparent 70%),
              radial-gradient(60% 50% at 82% 94%, rgba(233,72,59,.12), transparent 70%); }
@keyframes sun { to { transform: rotate(360deg); } }
.stripes { height: 10px; background: repeating-linear-gradient(-45deg, var(--red) 0 16px, var(--gold) 16px 32px, var(--grape) 32px 48px); background-size: 68px 10px; animation: stripes 2.6s linear infinite; }
@keyframes stripes { to { background-position: 68px 0; } }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--edge); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
main, .foot { max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* ---- top bar: slim brand shell (gives a way back into the site) ---- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  max-width: 1020px; margin: 0 auto; padding: 10px 16px;
  background: linear-gradient(180deg, rgba(18,13,24,.96), rgba(18,13,24,.82)); backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .brand-mark { width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: repeating-radial-gradient(circle at 50% 50%, #0b0710 0 1.5px, #1b1226 1.5px 3px); border: 2px solid var(--edge);
  box-shadow: inset 0 0 6px rgba(0,0,0,.8); position: relative; animation: spin 5s linear infinite; }
.brand .brand-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--gold); border: 1px solid var(--edge); }
.brand .brand-word { font: 400 clamp(22px, 4.6vw, 30px)/1 var(--pop); color: var(--gold);
  -webkit-text-stroke: 1.5px var(--edge); paint-order: stroke fill; text-shadow: 0 3px 0 var(--edge); letter-spacing: .5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; gap: 16px; margin-left: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 900; font-size: .92rem; opacity: .85; }
.nav a:hover { color: var(--gold); opacity: 1; }
@media (max-width: 560px) { .nav { display: none; }
  /* Home/Back/Explore balloons + "Rocko Tunes" + the sign-in pill don't fit one row on a phone, so the
     pill was clipped off the edge (body has overflow-x:hidden). Wrap it to its own line; #rocko-account's
     margin-left:auto keeps it right-aligned there. */
  .top { flex-wrap: wrap; row-gap: 8px; } }
/* the Rocko sign-in pill (rocko-auth.js, shared from rockosworld) */
#rocko-account { margin-left: auto; z-index: 31;
  --rw-font: 'Lilita One', 'Nunito', system-ui, sans-serif; --rw-deep: var(--edge); --rw-accent: var(--gold); }

.tagline { text-align: center; margin: 14px 0 0; font: 400 clamp(15px, 2.4vw, 20px)/1.3 var(--display); color: var(--muted); }
.tagline b { color: var(--gold); }

/* ---- the stage ---- */
.stage {
  position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 9.4; min-height: 330px; max-height: 76vh; margin-top: 14px;
  background: #0b0f1a; isolation: isolate;
  border: 5px solid var(--edge); box-shadow: 0 0 0 4px var(--gold), 0 0 0 8px var(--red), 0 16px 38px rgba(0,0,0,.55);
}
@media (max-width: 640px) { .stage { aspect-ratio: 4 / 5; max-height: 78vh; border-radius: 20px; } }
#lights { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; mix-blend-mode: screen; }
#fetch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.stage.shake { animation: shake .35s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translate(-1px, 1px); } 30%, 70% { transform: translate(-4px, 2px) rotate(-.4deg); } 50% { transform: translate(4px, -2px) rotate(.4deg); } }

/* the Fetch-o-matic (its window shows the spinning record via #matic-cv) */
.matic { position: absolute; left: 6%; bottom: 7%; height: 84%; aspect-ratio: 513 / 760; z-index: 1; transform-origin: 50% 100%; }
.matic-art { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); user-select: none; -webkit-user-drag: none; }
#matic-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.matic.thump { animation: thump .3s ease-out; }
@keyframes thump { 0% { transform: scale(1.025, .975); } 100% { transform: scale(1); } }
.matic.fire { animation: fire .45s ease-out; }
@keyframes fire { 0% { transform: scale(1); } 20% { transform: scale(.94, 1.06) rotate(-2deg); } 50% { transform: scale(1.05, .95) rotate(1.5deg); } 100% { transform: scale(1); } }
.paw { position: absolute; top: 68%; width: 12%; aspect-ratio: 1; margin: -6% 0 0 -6%; border: 0; border-radius: 50%; background: transparent; padding: 0; }
.paw.red { left: 27.7%; } .paw.yellow { left: 40%; } .paw.blue { left: 52.2%; } .paw.green { left: 63.9%; }
.paw:hover { box-shadow: 0 0 0 3px #fff, 0 0 18px 4px rgba(255,255,255,.7); }
.paw.press { animation: press .25s ease-out; }
@keyframes press { 0% { box-shadow: inset 0 0 0 40px rgba(255,255,255,.55); transform: scale(.85); } 100% { box-shadow: inset 0 0 0 40px rgba(255,255,255,0); transform: scale(1); } }
.paw span { position: absolute; left: 50%; bottom: 112%; transform: translateX(-50%) scale(.6); opacity: 0; transition: .15s; white-space: nowrap;
  background: var(--cream); color: var(--edge); font: 400 13px/1 var(--display); padding: 5px 9px; border-radius: 999px; box-shadow: 0 3px 0 var(--edge); pointer-events: none; }
.paw:hover span, .paw:focus-visible span { opacity: 1; transform: translateX(-50%) scale(1); }

.dancer { position: absolute; left: 70%; bottom: 6%; height: 70%; aspect-ratio: 3 / 4; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.dancer.travel { transition: left .8s cubic-bezier(.45,.05,.55,.95); }
.dancer img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); transform-origin: 50% 90%; }
.dancer img.flip { transform: scaleX(-1); }
.dancer.hop img { animation: hop .34s ease-out; }
.dancer.hop img.flip { animation: hop-flip .34s ease-out; }
@keyframes hop { 0% { transform: translateY(0) scale(1.1, .9); } 35% { transform: translateY(-9%) scale(.94, 1.08) rotate(var(--tilt, 3deg)); } 70% { transform: translateY(-2%) scale(1.02, .98); } 100% { transform: translateY(0) scale(1); } }
@keyframes hop-flip { 0% { transform: scaleX(-1) translateY(0) scale(1.1, .9); } 35% { transform: scaleX(-1) translateY(-9%) scale(.94, 1.08) rotate(var(--tilt, 3deg)); } 70% { transform: scaleX(-1) translateY(-2%) scale(1.02, .98); } 100% { transform: scaleX(-1); } }
@media (max-width: 640px) {
  .matic { left: 2%; bottom: 13%; height: 60%; }
  .dancer { left: 76%; height: 56%; bottom: 12%; }
}
@keyframes beg-low { 0%, 100% { transform: translateX(-50%) rotate(-2deg) scale(1); } 50% { transform: translateX(-50%) rotate(2deg) scale(1.06); } }

/* Rocko's speech bubble */
.bubble { position: absolute; z-index: 6; transform: translate(-50%, -100%); width: max-content; max-width: min(62%, 280px); background: #fff; color: var(--edge); font: 400 clamp(15px, 2.2vw, 20px)/1.15 var(--display);
  padding: 10px 14px; border-radius: 18px; border: 3px solid var(--edge); box-shadow: 0 4px 0 var(--edge); text-align: center; pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -14px; margin-left: -10px; border: 10px solid transparent; border-top: 12px solid var(--edge); border-bottom: 0; }
.bubble.pop { animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: translate(-50%, -100%) scale(.2) rotate(-8deg); } 100% { transform: translate(-50%, -100%) scale(1) rotate(0); } }

.start {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); z-index: 7;
  background: linear-gradient(180deg, #ff9166, #ef4330 55%, #c62716); color: #fff; border: 4px solid var(--edge); border-radius: 999px; padding: 15px 30px;
  font: 400 clamp(20px, 3.4vw, 30px)/1 var(--display); letter-spacing: .5px;
  box-shadow: 0 7px 0 var(--edge), inset 0 2px 0 rgba(255,255,255,.4), 0 14px 40px rgba(0,0,0,.5);
  -webkit-text-stroke: .5px var(--edge); paint-order: stroke fill; white-space: nowrap; animation: beg 1.1s ease-in-out infinite;
}
@keyframes beg { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg) scale(1); } 50% { transform: translate(-50%, -50%) rotate(3deg) scale(1.08); } }
.start:active { box-shadow: 0 2px 0 var(--edge); }
.started .start { display: none; }
@media (max-width: 640px) {
  .start { top: auto; bottom: 3%; transform: translateX(-50%) rotate(-2deg); animation-name: beg-low; font-size: 20px; padding: 12px 22px; }
}

.stage-tools { position: absolute; top: 12px; right: 12px; z-index: 8; display: flex; gap: 8px; }
.chip { border: 3px solid var(--edge); border-radius: 999px; padding: 6px 13px; min-height: 40px; background: var(--panel); color: var(--ink);
  font: 400 15px/1 var(--display); box-shadow: 0 4px 0 var(--edge); }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--edge); }

/* karaoke line on the stage */
.kar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 44px 16px 16px; text-align: center; pointer-events: none;
  background: linear-gradient(to top, rgba(10,8,18,.94) 0%, rgba(10,8,18,.72) 60%, transparent); }
.kar p { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
.kar-now {
  --p: 0; font-size: clamp(24px, 4.6vw, 42px); line-height: 1.15; min-height: 1.15em;
  background: linear-gradient(90deg, var(--gold) calc(var(--p) * 100%), #fff calc(var(--p) * 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 var(--edge)) drop-shadow(0 0 10px rgba(255,201,60,.45));
}
.kar-next { margin-top: 6px !important; color: rgba(245,238,251,.6); font-size: clamp(15px, 2.6vw, 21px); min-height: 1.2em; }
.kar-now.wait { background: none; color: rgba(245,238,251,.7); font-size: clamp(18px, 3vw, 24px); }

/* big screen ("party mode") */
.stage.big { position: fixed; inset: 0; z-index: 40; border-radius: 0; aspect-ratio: auto; max-height: none; min-height: 0; margin: 0; border: 0; box-shadow: none; }
body.big-on { overflow: hidden; }

/* ---- player (dark glossy brand card) ---- */
.player { margin-top: 20px; background: linear-gradient(180deg, #241a31, #1b1427); color: var(--ink); border-radius: var(--r); padding: 16px 18px 14px; border: 4px solid var(--edge); box-shadow: 0 7px 0 var(--edge); position: relative; }
.player::before { content: ""; position: absolute; left: 18px; right: 18px; top: -4px; height: 7px; border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--gold) 12px 24px, var(--grape) 24px 36px); }
.np { display: flex; align-items: center; gap: 14px; }
.np-cover { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; flex: none; border: 3px solid var(--edge); box-shadow: 0 4px 0 var(--edge); }
.playing-now .np-cover { animation: wobble 1s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.04); } }
.np-text { flex: 1; min-width: 0; }
.np-text b { display: block; font: 400 22px/1.15 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-text small { display: block; color: var(--gold); font-weight: 900; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic { border: 3px solid var(--edge); background: radial-gradient(circle at 34% 26%, #5a4a70, #2a2038 70%); color: #fff; border-radius: 50%; width: 50px; height: 50px; font-size: 21px; line-height: 1; display: inline-grid; place-items: center; flex: none; box-shadow: 0 4px 0 var(--edge), inset 0 2px 3px rgba(255,255,255,.25); position: relative; }
.ic:hover { filter: brightness(1.12); }
.ic:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.ic[aria-pressed="true"] { background: radial-gradient(circle at 34% 26%, #ffe08a, #ffc93c 60%, #e3a81f); color: var(--edge); }
.ic.rep-one::after { content: "1"; position: absolute; font: 800 11px/1 var(--font); color: #fff; background: var(--red); border-radius: 50%; width: 17px; height: 17px; display: grid; place-items: center; top: -6px; right: -6px; }
.ic.big { width: 70px; height: 70px; background: radial-gradient(circle at 34% 26%, #ffd36b, #f0a52c 60%, #d9861a); color: var(--edge); font-size: 30px; box-shadow: 0 6px 0 var(--edge), inset 0 2px 3px rgba(255,255,255,.4); }
.ic.big:hover { filter: brightness(1.08); }
.fav { color: var(--gold); font-size: 25px; }
.seek { position: relative; height: 30px; margin-top: 12px; cursor: pointer; touch-action: none; }
.seek::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 10px; border-radius: 5px; background: #120d1a; border: 2px solid var(--edge); }
.seek-fill { position: absolute; left: 0; top: 10px; height: 10px; border-radius: 5px; width: 0; border: 2px solid var(--edge);
  background: linear-gradient(90deg, var(--amber), var(--gold)); }
.seek-knob { position: absolute; top: 2px; left: 0; width: 26px; height: 26px; margin-left: -13px; display: grid; place-items: center; font-size: 18px; filter: drop-shadow(0 2px 0 var(--edge)); }
.seek-knob::before { content: "🐾"; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 6px 0 10px; }
.extras { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.vol { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; }
.vol input { width: 130px; accent-color: var(--gold); }
@media (pointer: coarse) { .vol { display: none; } }
.link-btn { border: 3px solid var(--edge); background: var(--gold); color: var(--edge); text-decoration: none; border-radius: 999px; padding: 7px 15px; font: 400 15px/1 var(--display); min-height: 40px; display: inline-flex; align-items: center; box-shadow: 0 4px 0 var(--edge); }
.link-btn:nth-of-type(2) { background: var(--elec); }
.link-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }

/* ---- records / albums shelf ---- */
.shelf h2, .list-head h2 { font: 400 clamp(26px, 4vw, 34px)/1.1 var(--pop); margin: 30px 0 12px; color: #fff; -webkit-text-stroke: 2px var(--edge); paint-order: stroke fill; text-shadow: 0 5px 0 var(--edge); }
.albums { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 16px; overflow-x: auto; padding: 8px 6px 16px; scroll-snap-type: x mandatory; }
.album { border: 0; padding: 0; background: none; text-align: center; scroll-snap-align: start; color: var(--ink); }
.album .art { position: relative; display: block; width: 160px; height: 160px; border-radius: 18px; overflow: hidden; background: var(--panel);
  border: 4px solid var(--edge); box-shadow: 0 6px 0 var(--edge); transition: transform .2s cubic-bezier(.2,1.6,.4,1); transform: rotate(var(--tilt, -2deg)); }
.album:nth-child(2n) .art { --tilt: 2deg; } .album:nth-child(3n) .art { --tilt: -1deg; }
.album .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album .art.emoji { display: grid; place-items: center; font-size: 72px; background: linear-gradient(135deg, var(--grape), var(--gold)); }
.album:hover .art { transform: rotate(0) scale(1.07) translateY(-6px); }
.album.on .art { box-shadow: 0 0 0 4px var(--gold), 0 0 0 8px var(--red), 0 6px 0 8px var(--edge); transform: rotate(0) scale(1.03); }
.album b { display: block; margin-top: 12px; font: 400 17px/1.15 var(--display); color: #fff; text-shadow: 0 2px 0 var(--edge); }
.album small { color: var(--gold); font-weight: 900; }

/* ---- song list ---- */
.list-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.list-head h2 { margin: 10px 0 0; flex: 1 1 100%; }
.list-head p { margin: 0; color: var(--muted); flex: 1 1 100%; font-weight: 800; }
.list-head .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { border: 3px solid var(--edge); border-radius: 999px; padding: 10px 19px; font: 400 17px/1 var(--display); background: linear-gradient(180deg, #ff9166, #ef4330 55%, #c62716); color: #fff; -webkit-text-stroke: .5px var(--edge); paint-order: stroke fill; box-shadow: 0 5px 0 var(--edge); text-decoration: none; display: inline-flex; align-items: center; }
.pill.alt { background: linear-gradient(180deg, #c3f08a, #8fd23f 55%, #6cab26); color: var(--edge); -webkit-text-stroke: 0; }
.pill.alt:last-child { background: linear-gradient(180deg, #8fe3ff, #40b7e8 55%, #2a90c6); }
.pill:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.group-title { list-style: none; margin: 22px 0 8px; font: 400 21px/1.2 var(--display); color: var(--gold); letter-spacing: .02em; }
.tracks { list-style: none; margin: 12px 0 0; padding: 0; }
.track { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; margin-bottom: 10px; background: linear-gradient(180deg, #2b2038, #221930); border: 3px solid var(--edge); box-shadow: 0 4px 0 var(--edge); transition: transform .15s; }
.track:hover { transform: translateX(4px); filter: brightness(1.1); }
.track.on { background: linear-gradient(180deg, #fff7ea, #f3e6cf); color: var(--edge); }
.track.on .tt b { color: var(--edge); }
.track.on .tt small, .track.on .dur { color: #6a5a3a; }
.track .go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 0; color: inherit; }
.track img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex: none; border: 2px solid var(--edge); }
.track .tt { flex: 1; min-width: 0; }
.track .tt b { display: block; font: 400 17px/1.2 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .tt small { display: block; color: var(--muted); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .mic { font-size: 15px; color: var(--grape); }
.track .dur { color: var(--gold); font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.track .fav { width: 42px; height: 42px; font-size: 20px; box-shadow: 0 3px 0 var(--edge); }
.eq { display: none; gap: 3px; align-items: flex-end; width: 20px; height: 20px; flex: none; }
.eq i { width: 5px; border-radius: 2px; animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(1) { background: var(--red); } .eq i:nth-child(2) { background: var(--gold); animation-delay: -.3s; } .eq i:nth-child(3) { background: var(--elec); animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.track.on .eq { display: flex; }
.paused .track.on .eq i { animation-play-state: paused; }
.empty { color: var(--muted); padding: 20px 8px; font-weight: 800; }

/* ---- lyrics sheet ---- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(8,5,16,.7); }
.sheet-card { position: relative; width: min(640px, 100%); max-height: 82vh; display: flex; flex-direction: column; background: var(--bg);
  border-radius: 24px 24px 0 0; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); border: 4px solid var(--gold); border-bottom: 0; }
@media (min-width: 700px) { .sheet { place-items: center; } .sheet-card { border-radius: 24px; border-bottom: 4px solid var(--gold); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; font: 400 22px/1.2 var(--display); color: var(--gold); }
.sheet-lines { overflow-y: auto; padding: 30vh 4px; text-align: center; }
.sheet-lines p { margin: 0; padding: 7px 4px; font: 400 21px/1.3 var(--display); color: rgba(245,238,251,.4); cursor: pointer; transition: color .2s, transform .2s; }
.sheet-lines p.on { color: var(--gold); transform: scale(1.08); text-shadow: 0 0 14px rgba(255,201,60,.5); }
.sheet-lines p.gap { height: 14px; padding: 0; }

/* ---- footer ---- */
.foot { margin-top: 40px; padding-top: 22px; padding-bottom: 30px; color: var(--muted); text-align: center; font-weight: 700; border-top: 3px solid var(--edge); }
.foot p { margin: 6px 0; }
.foot .games a { color: var(--gold); font-weight: 900; text-decoration: none; }
.foot .games a:hover { text-decoration: underline; }
.foot .small { font-size: 13px; }
.foot .ver { opacity: .6; }

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