/* Calczora Fun: the music theme (Do You Know Me?). Loaded after fun.css, only on music pages.
   Two looks: Vinyl (cream and coral by day, a black record-shop night with marigold) and
   Cassette (a striped sunset by day, a deep navy-brown night). */

/* ================= colours ================= */
html[data-fun="vinyl"] {
  --fun: #e2553a; --fun-2: #f07a5c; --fun-ink: #b3361f; --fun-soft: #ffe6dc; --fun-line: rgba(226, 85, 58, .3);
  --go-a: #c43e25; --go-b: #9a2a16; --v-gold: #ffc14d; --v-paper: #fff8f0;
  --tint: rgba(226, 85, 58, .07); --tint-strong: rgba(226, 85, 58, .14);
}
html[data-fun="vinyl"][data-fun-alt] {
  --fun: #d9731c; --fun-2: #f29e4c; --fun-ink: #9c4a0a; --fun-soft: #ffead2; --fun-line: rgba(217, 115, 28, .32);
  --go-a: #b8560c; --go-b: #8a3e08; --v-paper: #fff6e6;
  --tint: rgba(217, 115, 28, .08); --tint-strong: rgba(217, 115, 28, .16);
}
html[data-fun="vinyl"][data-theme="dark"] { --fun-2: #ffc14d; --fun-soft: rgba(255, 193, 77, .13); --fun-line: rgba(255, 193, 77, .3); }
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] { --fun-2: #ffb25c; --fun-soft: rgba(255, 178, 92, .13); --fun-line: rgba(255, 178, 92, .3); }

/* ================= the sky: cream and coral by day, a black record shop at night (Vinyl); sunset, then navy dusk (Cassette) ================= */
[data-fun="vinyl"] body { background: #fcdcc9; }
[data-fun="vinyl"] .sky { --s1: #f2a98c !important; --s2: #fcd5c0 !important; --s3: #fff6ec !important; }
[data-fun="vinyl"][data-sky="clear"] .sky { --s1: #f09c7c !important; --s2: #fbcdb5 !important; --s3: #fff4e8 !important; }
[data-fun="vinyl"][data-sky="cloudy"] .sky { --s1: #d9aa98 !important; --s2: #efd2c4 !important; --s3: #fbf1ea !important; }
[data-fun="vinyl"][data-theme="dark"] body { background: #1a120e; }
[data-fun="vinyl"][data-theme="dark"] .sky { --s1: #0b0908 !important; --s2: #19110d !important; --s3: #2a1c15 !important; }
[data-fun="vinyl"][data-theme="dark"][data-sky="clear"] .sky { --s1: #070505 !important; --s2: #140d0a !important; --s3: #241812 !important; }
[data-fun="vinyl"][data-theme="dark"][data-sky="cloudy"] .sky { --s1: #151110 !important; --s2: #221a16 !important; --s3: #33271f !important; }
[data-fun="vinyl"][data-fun-alt] body { background: #f9cf8f; }
[data-fun="vinyl"][data-fun-alt] .sky { --s1: #f29e4c !important; --s2: #f9cf8f !important; --s3: #fff3dc !important; }
[data-fun="vinyl"][data-fun-alt][data-sky="clear"] .sky { --s1: #ef9240 !important; --s2: #f8c681 !important; --s3: #fff1d6 !important; }
[data-fun="vinyl"][data-fun-alt][data-sky="cloudy"] .sky { --s1: #d9a477 !important; --s2: #edd0aa !important; --s3: #faf1e2 !important; }
[data-fun="vinyl"][data-fun-alt][data-theme="dark"] body { background: #1b1a24; }
[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .sky { --s1: #080c18 !important; --s2: #15172a !important; --s3: #3a2418 !important; }
[data-fun="vinyl"][data-fun-alt][data-theme="dark"][data-sky="clear"] .sky { --s1: #050812 !important; --s2: #101426 !important; --s3: #331f14 !important; }
[data-fun="vinyl"][data-fun-alt][data-theme="dark"][data-sky="cloudy"] .sky { --s1: #12141c !important; --s2: #1e1f2a !important; --s3: #3a2a20 !important; }
[data-fun="vinyl"] .orb { display: none; }
[data-fun="vinyl"] .c use { fill: #fff8f1; }
[data-fun="vinyl"][data-theme="dark"] .c use { fill: #2c211b; }
[data-fun="vinyl"][data-fun-alt] .c use { fill: #fff5e3; }
[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .c use { fill: #232537; }
[data-fun="vinyl"] .stars { filter: sepia(.7) saturate(1.5); }

/* ================= sky decorations ================= */
/* Vinyl: one big record turning slowly in the corner, and music notes drifting up */
.fun-fx .disc { position: absolute; top: -9vmax; right: -11vmax; width: 44vmax; height: 44vmax; opacity: .16; animation: spin 40s linear infinite; }
.fun-fx .disc > path { fill: #3a1a12; }
.fun-fx .disc .gr circle { stroke: rgba(255, 255, 255, .5); stroke-width: .12; }
.fun-fx .disc .lb { fill: #e2553a; }
.fun-fx .disc .hl { fill: #fff6ec; }
[data-theme="dark"] .fun-fx .disc { opacity: .45; }
[data-theme="dark"] .fun-fx .disc > path { fill: #000; }
[data-theme="dark"] .fun-fx .disc .gr circle { stroke: rgba(255, 220, 180, .14); }
[data-theme="dark"] .fun-fx .disc .lb { fill: #5a3e1a; }
[data-theme="dark"] .fun-fx .disc .hl { fill: #1a120e; }
@keyframes spin { to { rotate: 360deg; } }
.fun-fx .nt { position: absolute; bottom: -30px; width: var(--s); height: var(--s); fill: #fff; opacity: 0; rotate: var(--r);
  filter: drop-shadow(0 2px 3px rgba(150, 50, 20, .18)); animation: noteRise var(--t) linear var(--d) infinite; }
@keyframes noteRise {
  0% { opacity: 0; translate: 0 0; }
  10% { opacity: var(--o, .5); }
  50% { translate: var(--x) -55vh; }
  90% { opacity: var(--o, .5); }
  100% { opacity: 0; translate: calc(var(--x) * -.4) -110vh; }
}
[data-theme="dark"] .fun-fx .nt { fill: #ffc14d; filter: none; }

/* Cassette: a striped sun setting behind the page, and a few soft sparkles */
.fun-fx .sunset, .fun-fx .spk { display: none; }
.fun-fx .sunset { position: absolute; left: 50%; bottom: -16vmax; width: 64vmax; height: 64vmax; translate: -50% 0; border-radius: 50%; opacity: .55;
  background: linear-gradient(180deg, #fff1c9 0%, #ffd27a 34%, #f29e4c 62%, #e2553a 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 calc(6.5% - 4px), transparent calc(6.5% - 4px) 6.5%) 0 45% / 100% 100% no-repeat, linear-gradient(#000, #000) 0 0 / 100% 45% no-repeat;
  mask: repeating-linear-gradient(180deg, #000 0 calc(6.5% - 4px), transparent calc(6.5% - 4px) 6.5%) 0 45% / 100% 100% no-repeat, linear-gradient(#000, #000) 0 0 / 100% 45% no-repeat; }
.fun-fx .sunset i { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 150, .5), rgba(255, 220, 150, 0) 62%); }
[data-theme="dark"] .fun-fx .sunset { opacity: .3; background: linear-gradient(180deg, #ffb25c 0%, #e2553a 55%, #7a2a1a 100%); }
.fun-fx .spk { position: absolute; width: 10px; height: 10px; background: #fff; opacity: .0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sparkle 4s ease-in-out var(--d) infinite; }
@keyframes sparkle { 0%, 100% { opacity: 0; scale: .4; } 50% { opacity: .8; scale: 1; } }
[data-theme="dark"] .fun-fx .spk { background: #ffe3b0; }
[data-fun-alt] .fun-fx .sunset, [data-fun-alt] .fun-fx .spk { display: block; }
[data-fun-alt] .fun-fx .disc, [data-fun-alt] .fun-fx .nt { display: none; }
@media (max-width: 700px) {
  .fun-fx .disc { top: -6vmax; right: -24vmax; width: 60vmax; height: 60vmax; opacity: .12; }
  [data-theme="dark"] .fun-fx .disc { opacity: .4; }
  .fun-fx .nt:nth-child(3n) { display: none; }
  .fun-fx .sunset { bottom: -26vmax; width: 90vmax; height: 90vmax; }
}
@media (prefers-reduced-motion: reduce) {
  .fun-fx .disc { animation: none; }
  .fun-fx .nt, .fun-fx .spk { animation: none; display: none !important; }
}

/* ================= the logo: a record (or a cassette) for the "o", and headphones on the cloud ================= */
html[data-fun="vinyl"] { --lo-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath fill-rule='evenodd' d='M0-9a9 9 0 1 1-.01 0zM0-2.4a2.4 2.4 0 1 0 .01 0z'/%3E%3C/svg%3E"); }
html[data-fun="vinyl"][data-fun-alt] { --lo-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -8 24 16'%3E%3Cpath fill-rule='evenodd' d='M-9-6h18a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-18a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zM-4.5-2a2 2 0 1 0 .01 0zM4.5-2a2 2 0 1 0 .01 0z'/%3E%3C/svg%3E"); }
html[data-fun="vinyl"] .tw .lo { width: .6em; height: .6em; vertical-align: -.03em; }
html[data-fun="vinyl"][data-fun-alt] .tw .lo { width: .8em; height: .55em; vertical-align: 0; }
html[data-fun="vinyl"] .lo-badge.lo-phones { left: 7px; top: -6px; width: 34px; height: 22px; fill: none; stroke: none; filter: drop-shadow(0 2px 2px rgba(60, 20, 10, .3));
  animation: bob 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.lo-phones .lp-band { fill: none; stroke: #2a1a14; stroke-width: 3.2px; stroke-linecap: round; }
.lo-phones .lp-cup { fill: var(--fun); stroke: #2a1a14; stroke-width: 1.4px; }
[data-theme="dark"] .lo-phones .lp-band { stroke: #f3e6da; }
[data-theme="dark"] .lo-phones .lp-cup { fill: var(--fun-2); stroke: #f3e6da; }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(-1.5px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { html[data-fun="vinyl"] .lo-badge.lo-phones { animation: none; } }
/* the pale skies need the deeper ink for the logo */
html[data-fun="vinyl"]:not([data-theme="dark"]) .hd .tw b { color: var(--fun-ink); }
html[data-fun="vinyl"]:not([data-theme="dark"]) .tw .lo { background: var(--fun-ink); }

/* ================= the love theme's pinks, swapped for this theme's colours ================= */
html[data-fun="vinyl"][data-theme="dark"] .eyebrow, html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .eyebrow { color: var(--fun-2); }
html[data-fun="vinyl"] .cf-in:focus-within, html[data-fun="vinyl"] .fun-name:focus, html[data-fun="vinyl"] .dk-in:focus { border-color: var(--fun); box-shadow: 0 0 0 3px var(--fun-line); }
html[data-fun="vinyl"] .btn.fun-go { box-shadow: 0 12px 22px -14px rgba(120, 30, 10, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
@media (hover: hover) { html[data-fun="vinyl"] .btn.soft:hover { color: var(--fun-ink); background: color-mix(in srgb, var(--fun-soft) 60%, var(--fun-2)); } }
html[data-fun="vinyl"][data-theme="dark"] .btn.soft { color: #ffe2a8; background: rgba(255, 193, 77, .12); box-shadow: inset 0 0 0 1px rgba(255, 193, 77, .26); }
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .btn.soft { color: #ffd9b0; background: rgba(255, 178, 92, .12); box-shadow: inset 0 0 0 1px rgba(255, 178, 92, .26); }
@media (hover: hover) { html[data-fun="vinyl"][data-theme="dark"] .btn.soft:hover { color: #fff; background: rgba(255, 255, 255, .14); } }
html[data-fun="vinyl"][data-theme="dark"] .fun-block .fb-head p { color: #ecdccf; }

/* ================= night cards: warm black (Vinyl) and navy dusk (Cassette) ================= */
html[data-fun="vinyl"][data-theme="dark"] {
  --frost: rgba(36, 26, 21, .88); --quiet: rgba(36, 26, 21, .8); --glass: rgba(36, 26, 21, .88);
  --hero-a: rgba(58, 40, 30, .86); --hero-b: rgba(28, 20, 16, .82);
  --field: rgba(14, 10, 8, .9); --solid: rgba(14, 10, 8, .86); --grade: #3a2a20;
  --tint: rgba(255, 193, 77, .09); --tint-strong: rgba(255, 193, 77, .17);
  --edge: rgba(255, 225, 190, .16); --hairline: rgba(255, 230, 205, .11); --field-line: rgba(255, 220, 185, .28); --v-paper: #241a15;
}
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] {
  --frost: rgba(26, 28, 44, .88); --quiet: rgba(26, 28, 44, .8); --glass: rgba(26, 28, 44, .88);
  --hero-a: rgba(44, 42, 62, .86); --hero-b: rgba(22, 22, 36, .82);
  --field: rgba(10, 12, 22, .9); --solid: rgba(10, 12, 22, .86); --grade: #2c2c44;
  --tint: rgba(255, 178, 92, .09); --tint-strong: rgba(255, 178, 92, .17);
  --edge: rgba(255, 220, 190, .16); --hairline: rgba(255, 230, 210, .11); --field-line: rgba(255, 215, 180, .28); --v-paper: #1c1d2e;
}
html[data-fun="vinyl"][data-theme="dark"] .tool > .result::after { background: radial-gradient(70% 46% at 50% 30%, rgba(255, 193, 77, .14), rgba(255, 193, 77, 0) 70%); }
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .tool > .result::after { background: radial-gradient(70% 46% at 50% 30%, rgba(255, 140, 70, .16), rgba(255, 140, 70, 0) 70%); }

/* ================= the buddy as a DJ: headphones, and notes floating off the cups ================= */
.dj-mascot .hp-band { stroke: #2a1a14; }
.dj-mascot .hp-pad { stroke: #5a3a2c; }
.dj-mascot .hp-cup { fill: #e2553a; stroke: #2a1a14; }
.dj-mascot .hp-dot { fill: #ffc14d; }
[data-fun-alt] .dj-mascot .hp-cup { fill: #f29e4c; }
[data-fun-alt] .dj-mascot .hp-dot { fill: #fff3dc; }
[data-theme="dark"] .dj-mascot .hp-band { stroke: #120c09; }
.dj-mascot .dk-notes path { fill: var(--fun); opacity: 0; transform-box: fill-box; transform-origin: center; }
[data-theme="dark"] .dj-mascot .dk-notes path { fill: var(--fun-2); }
.dj-mascot .dk-notes .n1 { animation: noteOff 2.6s ease-out infinite; }
.dj-mascot .dk-notes .n2 { animation: noteOff 2.6s ease-out 1.3s infinite; }
@keyframes noteOff { 0% { opacity: 0; translate: 0 6px; } 25% { opacity: .9; } 100% { opacity: 0; translate: 4px -14px; } }
/* the cups bounce to the beat while the record plays */
.dj-mascot .phones { transform-box: fill-box; transform-origin: 50% 100%; }
.turntable.playing .dj-mascot .phones { animation: beat .45s ease-in-out infinite; }
@keyframes beat { 50% { translate: 0 -1.5px; } }
@media (prefers-reduced-motion: reduce) { .dj-mascot .dk-notes path, .turntable.playing .dj-mascot .phones { animation: none; } .dj-mascot .dk-notes path { opacity: .7; } }

/* ================= the guess card: the back of a record sleeve ================= */
.sleeve-back { position: relative; overflow: hidden; }
/* faint grooves in the top corner, like the record peeking through */
.sleeve-back::before { content: ""; position: absolute; top: -120px; right: -120px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 7px, var(--fun-line) 7px 8px); opacity: .45;
  -webkit-mask: radial-gradient(circle, transparent 34px, #000 35px); mask: radial-gradient(circle, transparent 34px, #000 35px); }
.sb-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 2px solid var(--navy); font: 800 12px/1 "Figtree", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
[data-theme="dark"] .sb-top { border-color: var(--edge); color: #f3e6da; }
.sb-cat { display: inline-flex; align-items: center; gap: 7px; }
.sb-cat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fun); box-shadow: 0 0 0 3px var(--fun-soft); }
.sb-no { font-variant-numeric: tabular-nums; color: var(--navy-2); letter-spacing: .1em; }
.sleeve-back h2 { position: relative; font: 800 24px/1.15 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; letter-spacing: -.02em; color: var(--navy); }
[data-theme="dark"] .sleeve-back h2 { color: #fff; }
.dk-names { margin-top: 14px; }
.dk-names .plus svg { fill: var(--fun); }
.dk-k { margin-top: 18px; font-size: 14px; font-weight: 750; color: var(--navy); }
.dk-chips { margin-top: 8px; }
.dk-chips button { min-height: 40px; font-size: 14.5px; transition: background-color .15s, border-color .15s, color .15s, scale .12s; }
.dk-chips button:active:not(:disabled) { scale: .96; }
.dk-chips button[aria-pressed="true"] { background: var(--go-b); border-color: var(--go-b); color: #fff; }
[data-theme="dark"] .dk-chips button[aria-pressed="true"] { background: var(--fun-2); border-color: var(--fun-2); color: #1a120e; }
@media (hover: hover) { .dk-chips button:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--fun); } }
.dk-chips button:disabled { cursor: default; }
.sleeve-back .fun-go { gap: 8px; }
.sleeve-back .fun-note { margin-top: 12px; }

/* the fields */
.dk-lead { padding: 10px 12px; border-radius: 12px; background: var(--fun-soft); color: var(--fun-ink); font-size: 14.5px; font-weight: 650; }
[data-theme="dark"] .dk-lead { color: #fff3e6; }
.dk-lead:empty { display: none; }
.dk-f { margin-top: 18px; transition: opacity .25s; }
.dk-f[hidden] { display: none; }
.dk-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dk-lbl label, .dk-lbl > span:first-child { font-size: 15.5px; font-weight: 750; color: var(--navy); }
.pts { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--tint-strong); font: 800 12px/1.2 "Figtree", system-ui, sans-serif; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.dk-in { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--field); color: var(--navy);
  font: 650 16.5px/1 "Figtree", system-ui, sans-serif; transition: border-color .15s, box-shadow .15s; }
.dk-in::placeholder { color: var(--navy-2); opacity: .7; font-weight: 550; }
.dk-in:focus { outline: none; }
.dk-in[hidden] { display: none; }
.dk-in:disabled { opacity: .7; }
#fGenreOther { margin-top: 10px; }
/* the tracklist, as printed on the back of a sleeve */
.tracklist { margin: 0; padding: 0; list-style: none; border-top: 1px dashed var(--field-line); }
.tracklist li { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--field-line); }
.tracklist .tk { display: grid; place-items: center; height: 30px; border-radius: 8px; background: var(--navy); color: var(--v-paper, #fff);
  font: 800 13px/1 "Figtree", system-ui, sans-serif; letter-spacing: .04em; }
.tracklist li:nth-child(n+4) .tk { background: var(--fun-ink); color: #fff; }
[data-theme="dark"] .tracklist .tk { background: rgba(255, 255, 255, .9); color: #1a120e; }
[data-theme="dark"] .tracklist li:nth-child(n+4) .tk { background: var(--fun-2); color: #1a120e; }
.tracklist .dk-in { height: 44px; border-color: transparent; background: transparent; box-shadow: none; padding: 0 8px; border-radius: 10px; }
.tracklist .dk-in:hover:not(:disabled) { background: var(--tint); }
.tracklist .dk-in:focus { background: var(--field); }
.dk-hint { margin-top: 8px; font-size: 13.5px; color: var(--navy-2); }
.dk-skip { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 6px; font-size: 14px; font-weight: 650; color: var(--navy-2); cursor: pointer; }
.dk-skip[hidden] { display: none; }
.dk-skip input { width: 18px; height: 18px; accent-color: var(--go-b); }
.skipped .dk-chips, .skipped .min-row, .skipped .dk-hint, #fGenre.skipped, #fGenre.skipped + .dk-in { opacity: .4; pointer-events: none; }
/* minutes: a slider and the exact number */
.min-row { display: flex; align-items: center; gap: 12px; }
.min-row input[type="range"] { flex: 1; min-width: 0; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.min-row input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--fun) var(--p, 26%), var(--tint-strong) var(--p, 26%)); }
.min-row input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--tint-strong); }
.min-row input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--fun); }
.min-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; border: 0;
  background: radial-gradient(circle, var(--v-gold) 0 3px, #1a1a1a 3.5px 9px, #2c2c2c 9.5px); box-shadow: 0 3px 8px -2px rgba(40, 20, 10, .5), 0 0 0 2px #fff; }
.min-row input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: radial-gradient(circle, var(--v-gold) 0 3px, #1a1a1a 3.5px 9px, #2c2c2c 9.5px); box-shadow: 0 3px 8px -2px rgba(40, 20, 10, .5), 0 0 0 2px #fff; }
.min-row input[type="range"]:focus-visible { outline: none; }
.min-row input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--fun-line); }
.min-row input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--fun-line); }
.min-row input[type="range"]:disabled { opacity: .6; cursor: default; }
.cf-in.min-in { width: 132px; height: 48px; }
.cf-in.min-in input[type="text"] { font-size: 17px; }
/* the wildcard question on their side */
.wild-ask { padding: 12px 14px; border-radius: 14px; background: var(--tint); }
.wild-ask[hidden] { display: none; }
.wild-ask p { font-size: 15px; font-weight: 650; color: var(--navy); overflow-wrap: anywhere; }
.dk-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px; padding: 0 4px; border: 0; background: none;
  font: 700 14px/1 "Figtree", system-ui, sans-serif; color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--field-line); cursor: pointer; }
.dk-back[hidden] { display: none; }
.dk-back svg { width: 16px; height: 16px; }
@media (hover: hover) { .dk-back:hover { color: var(--fun-ink); text-decoration-color: currentColor; } [data-theme="dark"] .dk-back:hover { color: var(--fun-2); } }
/* the seal button stays in reach while you fill in the fields */
.seal-bar { position: sticky; bottom: 0; z-index: 3; margin: 16px -4px -4px; padding: 12px 4px 10px;
  background: linear-gradient(180deg, transparent, var(--glass, rgba(255, 255, 255, .9)) 22%); }
.seal-bar[hidden] { display: none; }
.seal-bar .fun-go { margin: 0; gap: 8px; }
.seal-bar .fun-go svg { fill: currentColor; }
.card.done .dk-f, .card.done .tracklist { opacity: .7; }

/* ================= the stage: a turntable ================= */
.dk-stage { justify-content: flex-start; }
.dk-stage .eyebrow { align-self: center; padding-right: 0; }
.turntable { --w: min(340px, 100%); position: relative; width: var(--w); aspect-ratio: 1 / .74; margin: 10px auto 6px; flex: none; container-type: inline-size; }
/* the record and its label sit on the left; the sleeve waits on the right */
.disc-svg, .disc-label { position: absolute; left: 0; top: 4%; width: 64cqw; height: 64cqw; z-index: 2;
  transition: translate .7s cubic-bezier(.6, 0, .2, 1), z-index 0s linear .7s; }
.disc-svg { overflow: visible; filter: drop-shadow(0 14px 16px rgba(40, 15, 5, .28)); }
.dial-track { fill: none; stroke: var(--tint-strong); stroke-width: 5; }
.dial-arc { fill: none; stroke: var(--v-gold); stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 603.2; stroke-dashoffset: 603.2; }
[data-fun-alt] .dial-arc { stroke: #e2553a; }
[data-fun-alt][data-theme="dark"] .dial-arc { stroke: #ffb25c; }
.spin { animation: spin 1.8s linear infinite paused; }
.turntable.playing .spin { animation-play-state: running; animation-duration: .9s; }
.vinyl { fill: #141414; }
.grooves circle { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.2; }
.shine { fill: rgba(255, 255, 255, .12); }
.label { fill: #e2553a; }
.label-ring { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 2 3; }
[data-fun-alt] .label { fill: #f29e4c; }
[data-theme="dark"] .label { fill: #c94a30; }
[data-fun-alt][data-theme="dark"] .label { fill: #d9731c; }
.hole { fill: var(--v-paper, #fff8f0); }
.disc-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; pointer-events: none; color: #fff; text-align: center; }
.dl-top { max-width: 23cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 2.9cqw/1.1 "Figtree", system-ui, sans-serif; letter-spacing: .02em; opacity: .9; }
.dl-big { font: 800 10.5cqw/1 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dl-sub { font: 700 2.9cqw/1.1 "Figtree", system-ui, sans-serif; opacity: .85; }
/* the sleeve */
.sleeve { position: absolute; right: 0; top: 2%; z-index: 1; width: 66cqw; height: 66cqw; display: flex; flex-direction: column; justify-content: space-between; padding: 6cqw 5cqw 4.5cqw;
  border-radius: 6px; overflow: hidden; color: #fff; background: #12214e;
  box-shadow: 0 18px 30px -18px rgba(30, 10, 5, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sl-art { position: absolute; inset: 0; pointer-events: none; }
.sl-art i { position: absolute; left: 0; right: 0; height: 13%; }
.sl-art i:nth-child(1) { bottom: 34%; background: #ffc14d; }
.sl-art i:nth-child(2) { bottom: 21%; background: #f07a5c; }
.sl-art i:nth-child(3) { bottom: 8%; background: #e2553a; }
/* a sun setting behind the stripes, like a 70s sleeve */
.sleeve::before { content: ""; position: absolute; left: 14%; bottom: 30%; width: 44%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffc14d 0 56%, rgba(255, 193, 77, .22) 57% 70%, transparent 71%); }
.sleeve { transition: translate .7s cubic-bezier(.6, 0, .2, 1); }
[data-fun-alt] .sleeve { background: linear-gradient(180deg, #2a1a0c, #4a2a10); }
[data-fun-alt] .sl-art i:nth-child(1) { background: #f9cf8f; }
[data-fun-alt] .sl-art i:nth-child(2) { background: #f29e4c; }
[data-fun-alt] .sl-art i:nth-child(3) { background: #d9731c; }
.sl-title { position: relative; align-self: flex-end; max-width: 64%; text-align: right; font: 800 6.4cqw/1.05 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
/* the wax seal: shows only once the guesses are sealed */
.wax { position: relative; align-self: flex-start; margin-left: 4cqw; display: grid; place-items: center; width: 22cqw; height: 22cqw; opacity: 0; scale: .4; rotate: -30deg;
  transition: opacity .3s, scale .45s cubic-bezier(.3, 1.6, .5, 1), rotate .45s cubic-bezier(.3, 1.6, .5, 1); }
.wax b { position: relative; z-index: 1; font: 800 4cqw/1 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; color: #fff3e6; letter-spacing: -.02em; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.wx-l, .wx-r { position: absolute; inset: 0; background: radial-gradient(circle at 38% 32%, #e0553c, #a8301b 62%, #7a1e0f); transition: translate .35s cubic-bezier(.3, 0, .3, 1), rotate .35s, opacity .35s .15s; }
.wx-l { border-radius: 52% 0 0 48% / 50% 0 0 50%; clip-path: polygon(0 0, 54% 0, 44% 30%, 56% 52%, 42% 74%, 52% 100%, 0 100%);
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%; }
.wx-r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 52% 100%, 42% 74%, 56% 52%, 44% 30%); border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%; }
.wax::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 220, 200, .35); }
[data-fun-alt] .wx-l, [data-fun-alt] .wx-r { background: radial-gradient(circle at 38% 32%, #f0a050, #c2600f 62%, #8a3e08); }
/* the buddy sits on the corner of the sleeve */
.turntable .result-mascot.dj-mascot { position: absolute !important; right: -2%; bottom: -3%; top: auto; z-index: 4; width: 36cqw !important; height: auto !important; aspect-ratio: 150 / 104;
  animation: none; filter: drop-shadow(0 6px 8px rgba(60, 20, 10, .25)); }

/* sealed: the record slides into its sleeve and the wax seal stamps down */
.turntable.sealed .disc-svg, .turntable.sealed .disc-label { translate: 19cqw 0; z-index: 0; transition: translate .7s cubic-bezier(.6, 0, .2, 1), z-index 0s; }
.turntable.sealed .sleeve { translate: -17cqw 0; }
.turntable.sealed .wax { opacity: 1; scale: 1; rotate: -8deg; transition-delay: .55s; }
.turntable.sealed .sleeve { animation: sleeveTap .5s ease-out .55s; }
@keyframes sleeveTap { 40% { scale: .985; } }
/* breaking the seal: it cracks in two, then the record comes out and plays */
.turntable.breaking .sleeve { animation: shake .5s ease-in-out; }
@keyframes shake { 20% { rotate: -1.6deg; } 40% { rotate: 1.4deg; } 60% { rotate: -1deg; } 80% { rotate: .6deg; } }
.turntable.breaking .wx-l { translate: -18% 10%; rotate: -24deg; transition-delay: .3s; }
.turntable.breaking .wx-r { translate: 18% 12%; rotate: 22deg; transition-delay: .3s; }
.turntable.breaking .wax b { opacity: 0; transition: opacity .2s .3s; }
.turntable.playing .wax { opacity: 0; transition: opacity .3s; }
.turntable.playing .disc-svg { filter: drop-shadow(0 14px 16px rgba(40, 15, 5, .28)) drop-shadow(0 0 18px rgba(255, 193, 77, .25)); }
@media (prefers-reduced-motion: reduce) {
  .disc-svg, .disc-label, .wax, .wx-l, .wx-r { transition: none !important; }
  .spin, .turntable.sealed .sleeve, .turntable.breaking .sleeve { animation: none !important; }
}

/* the parts under the turntable */
.st-part { display: flex; flex-direction: column; align-items: center; width: 100%; }
.st-part[hidden] { display: none; }
.dk-stage .big { margin-top: 4px; font-size: clamp(36px, 10vw, 48px); }
.dk-stage .big.dk-tier { font-size: clamp(28px, 8vw, 38px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; color: var(--fun-ink); }
[data-theme="dark"] .dk-stage .big.dk-tier { color: #fff; }
#stScore .res-actions { grid-template-columns: 1fr; }
.dk-stage.landed .big { animation: land .6s cubic-bezier(.2, .9, .3, 1.35); }
.dk-stage .res-sub { overflow-wrap: anywhere; }
.dots { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.dots li { width: 12px; height: 12px; border-radius: 50%; background: var(--tint-strong); box-shadow: inset 0 0 0 1.5px var(--fun-line); transition: background-color .25s, scale .3s cubic-bezier(.3, 1.6, .5, 1); }
.dots li.on { background: var(--fun); box-shadow: none; scale: 1.15; }
[data-theme="dark"] .dots li.on { background: var(--fun-2); }
.dk-stage .res-actions.three #sendBtn { grid-column: 1 / -1; }
.calc-tool .result .btn.dk-wide { width: 100%; margin-top: 8px; min-height: 46px; gap: 6px; }
.dk-stage .res-actions .fun-go { margin: 0; gap: 8px; font-size: 16px; }
.dk-stage .res-actions .fun-go svg { width: 18px; height: 18px; fill: currentColor; }
.link-note { margin-top: 10px; font-size: 13.5px; color: var(--navy-2); text-wrap: pretty; }
.dk-stage .dk-back { margin-top: 6px; }
/* the score breakdown */
.breakdown { width: 100%; margin: 14px 0 0; padding: 0; list-style: none; text-align: left; }
.breakdown li { position: relative; padding: 10px 0 10px 18px; border-top: 1px solid var(--hairline); animation: rowIn .4s cubic-bezier(.2, .9, .3, 1.1) backwards; }
.breakdown li:nth-child(2) { animation-delay: .06s; } .breakdown li:nth-child(3) { animation-delay: .12s; } .breakdown li:nth-child(4) { animation-delay: .18s; } .breakdown li:nth-child(5) { animation-delay: .24s; }
@keyframes rowIn { from { opacity: 0; translate: 0 8px; } }
.breakdown li::before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--tint-strong); }
.breakdown li.hit::before { background: var(--fun); }
[data-theme="dark"] .breakdown li.hit::before { background: var(--fun-2); }
.breakdown li.miss::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy-2); }
.bd-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bd-h b { font-size: 15.5px; color: var(--navy); }
.bd-h span { flex: none; font: 800 15.5px/1 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--fun-ink); }
[data-theme="dark"] .bd-h span { color: var(--fun-2); }
.breakdown li.skip .bd-h span { color: var(--navy-2); }
.breakdown small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--navy-2); overflow-wrap: anywhere; }
.calc-tool .result .breakdown .bd-any { min-height: 38px; margin-top: 8px; padding: 0 14px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .breakdown li, .dk-stage.landed .big { animation: none; } .dots li { transition: none; } }
/* a small tip jar, after the score only */
.dk-tip { width: 100%; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--tint); text-align: left; }
.dk-tip p { font-size: 14px; color: var(--navy); }
.dk-tip p b { color: var(--fun-ink); }
[data-theme="dark"] .dk-tip p b { color: var(--fun-2); }
.dk-tip .tip-amts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dk-tip .tip-amt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 4px; border-radius: 12px;
  background: var(--field); box-shadow: inset 0 0 0 1.5px var(--fun-line); color: var(--navy); text-decoration: none; text-align: center; transition: box-shadow .15s, translate .15s; }
.dk-tip .tip-amt b { font: 800 17px/1 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; color: var(--fun-ink); }
[data-theme="dark"] .dk-tip .tip-amt b { color: var(--fun-2); }
.dk-tip .tip-amt small { font-size: 11.5px; font-weight: 650; line-height: 1.15; color: var(--navy-2); }
@media (hover: hover) { .dk-tip .tip-amt:hover { translate: 0 -1px; box-shadow: inset 0 0 0 1.5px var(--fun); } }
.dk-tip .tip-more { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--field-line); }
.dk-disclaimer { font-size: 13.5px; color: var(--navy-2); }

/* ================= desktop: the sleeve on the left, the turntable on the right ================= */
@media (min-width: 960px) {
  html[data-fun="vinyl"] .tool.calc-tool { grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); }
  .dk-stage { position: sticky !important; top: 86px !important; }
  .turntable { --w: 380px; }
  .seal-bar { position: static; background: none; margin: 18px 0 0; padding: 0; }
}

/* ================= footer and header pop-ups follow the theme ================= */
html[data-fun="vinyl"] .sitefoot { background: linear-gradient(180deg, #fff1e6, #fcdcc9); }
html[data-fun="vinyl"][data-fun-alt] .sitefoot { background: linear-gradient(180deg, #fff1da, #f9d6a2); }
html[data-fun="vinyl"][data-theme="dark"] .sitefoot { background: linear-gradient(180deg, #2a1d16, #17100c); color: #ecdccf; }
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .sitefoot { background: linear-gradient(180deg, #24253a, #141524); color: #e6dcd2; }
html[data-fun="vinyl"][data-theme="dark"] .sitefoot li a, html[data-fun="vinyl"][data-theme="dark"] .sitefoot p { color: #ecdccf; }
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .sitefoot li a, html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .sitefoot p { color: #e6dcd2; }
html[data-fun="vinyl"][data-theme="dark"] .sitefoot .base { border-color: rgba(255, 230, 205, .12); }
html[data-fun="vinyl"] { --pop: #fff8f2; --pop-seg: #fde6d8; --pop-on: #fff; --pop-ink: #2a1a14; --pop-soft: #6e4a3c; --pop-ring: rgba(226, 85, 58, .26); }
html[data-fun="vinyl"][data-fun-alt] { --pop: #fff8ec; --pop-seg: #fbe8c8; --pop-on: #fff; --pop-ink: #2a1a0c; --pop-soft: #6e4f30; --pop-ring: rgba(217, 115, 28, .28); }
html[data-fun="vinyl"][data-theme="dark"] { --pop: #2a1e18; --pop-seg: rgba(255, 193, 77, .1); --pop-on: rgba(255, 255, 255, .94); --pop-ink: #f6ece3; --pop-soft: #cdb8a8; }
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] { --pop: #222336; --pop-seg: rgba(255, 178, 92, .1); --pop-on: rgba(255, 255, 255, .94); --pop-ink: #f3ece6; --pop-soft: #c8bcb2; }
html[data-fun="vinyl"] .hd-pop { box-shadow: 0 30px 60px -26px rgba(50, 20, 10, .55), 0 0 0 1px var(--fun-line); }
html[data-fun="vinyl"][data-theme="dark"] .mega-cat small { background: rgba(255, 255, 255, .12); color: #fff; }
html[data-fun="vinyl"][data-theme="dark"] .hd-btn[aria-expanded="true"] { background: rgba(255, 193, 77, .2); }
html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .hd-btn[aria-expanded="true"] { background: rgba(255, 178, 92, .2); }
@media (hover: hover) { html[data-fun="vinyl"][data-theme="dark"] .hd-btn:hover { background: rgba(255, 193, 77, .14); } html[data-fun="vinyl"][data-fun-alt][data-theme="dark"] .hd-btn:hover { background: rgba(255, 178, 92, .14); } }
html[data-fun="vinyl"][data-theme="dark"] .hd-seg button[aria-pressed="true"] { color: #1a120e; }

/* the hero's coloured word: coral ink by day, marigold at night; the underline in the other colour */
html[data-fun="vinyl"]:not([data-theme="dark"]) .hero h1 em { color: var(--fun-ink); text-shadow: 0 2px 12px rgba(255, 255, 255, .6); }
html[data-fun="vinyl"][data-theme="dark"] .hero h1 em { color: var(--fun-2); }
html[data-fun="vinyl"] .under path { stroke: var(--v-gold); }
html[data-fun="vinyl"][data-fun-alt] .under path { stroke: #e2553a; }
html[data-fun="vinyl"][data-theme="dark"] .under path { stroke: #e2553a; }
