/* Dice Stash (dicestash.hohl.dev): a calm dice sorting game. The dice are the only strong colour: deep plum at night,
   warm cream by day (like the store screenshots: cream #F6F0E5, soft pink/lilac/blue glows, ink text, purple #6A31B4),
   the app's green felt tray with its gold line in the scenes. Accent from inc/apps.php (#ff6fd2 dark, #b4248f light).
   Scenes: _src/dicestash/scenes.py + scenes_dice.py (dicestash.js adds .is-on while a scene is on screen). */

:root {
	--ds-purple: #6a31b4; --ds-gold: #d9b45a; --ds-felt: #1f5a44; --ds-felt-deep: #12392b; --ds-frame: #2e2a31; --ds-ink: #1d0a1f;
	--bg: #170d1b; --bg-deep: #120a15; --surface: #1f1425; --surface-2: #2b1d33;
	--line: #3a2943; --line-strong: #533d5e;
	--text: #f7f0e6; --text-2: #e3d8e6; --muted: #ad9fb4;
	--ds-cream: #221529; --ds-glow-a: rgba(255, 111, 210, .16); --ds-glow-b: rgba(150, 110, 255, .18); --ds-glow-c: rgba(90, 170, 255, .12);
	--ds-card: #22172a; --ds-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
:root[data-theme="light"] {
	--bg: #f6f0e5; --bg-deep: #efe6d7; --surface: #fffaf2; --surface-2: #efe5d4;
	--line: #e3d7c5; --line-strong: #cdbfaa;
	--text: #24132a; --text-2: #3f2c46; --muted: #6c5d70;
	--ds-cream: #f6f0e5; --ds-glow-a: rgba(255, 140, 205, .30); --ds-glow-b: rgba(170, 140, 255, .30); --ds-glow-c: rgba(120, 190, 255, .26);
	--ds-card: #fffaf2; --ds-shadow: 0 18px 40px rgba(60, 30, 70, .14);
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #f6f0e5; --bg-deep: #efe6d7; --surface: #fffaf2; --surface-2: #efe5d4;
		--line: #e3d7c5; --line-strong: #cdbfaa;
		--text: #24132a; --text-2: #3f2c46; --muted: #6c5d70;
		--ds-cream: #f6f0e5; --ds-glow-a: rgba(255, 140, 205, .30); --ds-glow-b: rgba(170, 140, 255, .30); --ds-glow-c: rgba(120, 190, 255, .26);
		--ds-card: #fffaf2; --ds-shadow: 0 18px 40px rgba(60, 30, 70, .14);
	}
}
body { background: var(--bg); }

/* ---------- type ---------- */
.ds h1, .ds h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; line-height: 1; }
.ds h1 em, .ds h2 em { font-style: normal; color: var(--accent); }
.ds h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 .35em; }
.ds h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; margin: 0 0 .3em; }
.ds .eyebrow { color: var(--accent); }
.ds-more { margin: clamp(20px, 3vw, 32px) 0 0; font-weight: 700; }
.ds-more a { color: var(--accent); text-decoration: none; }
.ds-more a:hover { text-decoration: underline; }
/* FAQ-Block auf Seiten außer der FAQ-Seite: Titel und Link mittig wie die Liste */
#faq .section-head { text-align: center; margin-inline: auto !important; }
#faq .faq + .ds-more { text-align: center; }
.ds p a:not(.btn), .ds li a, .ds-legal a { color: var(--accent); }
.ds-narrow { max-width: 680px; margin: clamp(20px, 3vw, 32px) auto 0 !important; text-align: center; color: var(--text-2); }

/* ---------- sections: cream band with soft glows ---------- */
.ds.is-cream { background: var(--ds-cream); position: relative; isolation: isolate; border-block: 1px solid var(--line); }
.ds.is-cream::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(40% 50% at 12% 20%, var(--ds-glow-a), transparent 70%), radial-gradient(38% 46% at 88% 30%, var(--ds-glow-b), transparent 70%), radial-gradient(40% 50% at 55% 100%, var(--ds-glow-c), transparent 70%); }
.section.ds.is-cream, .section.ds.is-cream + .section { padding-top: clamp(56px, 9vw, 120px); }

/* ---------- hero: text + iPhone with the app's clip, cut-out dice floating around ---------- */
.ds-hero { border-bottom: 0; isolation: isolate; }
.ds-hero::before { display: none; }
.ds-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(34% 46% at 78% 30%, var(--ds-glow-b), transparent 70%), radial-gradient(30% 40% at 62% 80%, var(--ds-glow-a), transparent 70%), radial-gradient(30% 40% at 8% 10%, var(--ds-glow-c), transparent 70%); }
.ds-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); max-width: 13ch; }
.ds-hero .lead { max-width: 36ch; }
@media (min-width: 782px) {
	.ds-hero .hero-grid > .wp-block-column:first-child { flex: 0 0 52% !important; }
	.ds-hero .hero-grid > .wp-block-column:last-child { flex: 1 1 48% !important; }
}
@media (max-width: 781px) { .ds-hero .hero-grid > .wp-block-column { flex-basis: 100% !important; } }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.ds-chips li { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .92rem; padding: .4em .8em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.ds-chips svg { width: 1.15em; height: 1.15em; color: var(--accent); }
.ds-soon { display: inline-flex; align-items: center; gap: .55em; font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: .7em 1.2em; border-radius: 14px;
	background: var(--text); color: var(--bg); }
.ds-soon svg { width: 1.2em; height: 1.2em; }

.ds-stage { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 6% 12%; box-sizing: border-box; }
.ds-glows { position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, var(--ds-glow-b), transparent); filter: blur(10px); }
.ds-floats { position: absolute; inset: 0; pointer-events: none; }
.ds-fl { position: absolute; display: block; filter: drop-shadow(0 12px 14px rgba(20, 0, 30, .35)); animation: ds-float 6s ease-in-out infinite; }
.ds-fl img { display: block; width: 100%; height: auto; }
.ds-fl.is-a { width: 34%; left: -6%; top: 52%; animation-delay: -1s; --r: -12deg; }
.ds-fl.is-b { width: 28%; right: -4%; top: 4%; animation-delay: -2.5s; --r: 10deg; }
.ds-fl.is-c { width: 20%; right: -2%; top: 62%; animation-delay: -4s; --r: 18deg; }
.ds-fl.is-d { width: 18%; left: 2%; top: 6%; animation-delay: -.5s; --r: -8deg; }
.ds-fl.is-e { width: 17%; right: 8%; bottom: -2%; animation-delay: -3.2s; --r: 24deg; }
.ds-fl.is-f { width: 15%; left: 10%; bottom: 2%; animation-delay: -5s; --r: -20deg; }
@keyframes ds-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); } }

/* ---------- iPhone frame around a clip or screenshot from the app ---------- */
.ds-phone { position: relative; z-index: 1; aspect-ratio: 9 / 19.5; width: 100%; max-width: 300px; margin-inline: auto; box-sizing: border-box; padding: 3.2%;
	background: #0e0b10; border-radius: 16% / 7.4%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px #2a2530, 0 30px 60px rgba(30, 10, 40, .4); }
.ds-phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 13% / 6%; background: #1b1320; }
.ds-phone-screen > video, .ds-phone-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ds-phone.is-small { max-width: 250px; }
.ds-phone.is-tilt { transform: rotate(4deg); }

/* ---------- three step cards with a scene each ---------- */
.ds-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.ds-card { position: relative; background: var(--ds-card); border: 1px solid var(--line); border-radius: 22px; padding: 0 clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px); box-shadow: var(--ds-shadow); }
.ds-card-pic { margin: 0 calc(-1 * clamp(18px, 2.4vw, 26px)) 18px; border-radius: 21px 21px 0 0; overflow: hidden; }
.ds-card p { margin: 0; color: var(--text-2); }
.ds-num { position: absolute; top: 12px; left: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
	font-family: var(--display); font-weight: 700; font-size: 1.15rem; background: var(--accent); color: var(--hohl-accent-ink); }
@media (max-width: 860px) { .ds-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- split: a visual next to short text ---------- */
.ds-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ds-split.is-rev > .ds-split-pic { order: 2; }
.ds-split.is-text-first { margin-top: clamp(28px, 4vw, 48px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ds-split-text h2 { margin-top: 0; }
.ds-split-text > p { color: var(--text-2); font-size: 1.08rem; max-width: 52ch; }
@media (max-width: 820px) { .ds-split, .ds-split.is-text-first { grid-template-columns: 1fr; } .ds-split.is-rev > .ds-split-pic { order: 0; } .ds-split-pic { max-width: 560px; width: 100%; margin-inline: auto; } }

.ds-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--ds-shadow); border: 1px solid var(--line); }
.ds-frame.is-wide { margin-bottom: clamp(24px, 4vw, 44px); }
.ds-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(18px, 4vw, 48px); align-items: center; }
.ds-duo > div { min-width: 0; }
.ds-duo.is-tight { grid-template-columns: 1.35fr 1fr; gap: clamp(14px, 3vw, 28px); }
.ds-duo.is-tight .ds-phone { max-width: 230px; }
.ds-cap { text-align: center; color: var(--muted); font-size: .95rem; margin: 14px 0 0; }
@media (max-width: 640px) { .ds-duo { grid-template-columns: 1fr; } .ds-duo .ds-phone.is-small { max-width: 220px; } }

/* ---------- points with one-colour icons ---------- */
.ds-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(16px, 2.4vw, 26px); list-style: none; margin: 0; padding: 0; }
.ds-points li { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: start; }
.ds-points .ds-ico { width: 50px; height: 50px; padding: 12px; box-sizing: border-box; border-radius: 15px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.ds-points b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.1; margin-bottom: 3px; }
.ds-points span { color: var(--text-2); }
.ds-split-text .ds-points { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .ds-split-text .ds-points { grid-template-columns: 1fr; } }

.ds-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.ds-stats li { display: flex; flex-direction: column; }
.ds-stats b { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--accent); }
.ds-stats span { color: var(--muted); font-size: .92rem; }

/* ---------- materials: an endless row of the twelve materials ---------- */
.ds-marquee { overflow: hidden; margin-inline: calc(-1 * var(--gutter, 16px)); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ds-mq-track { display: flex; width: max-content; animation: ds-marquee 40s linear infinite; }
.ds-mq-dup { display: flex; }
.ds-marquee figure { flex: none; width: clamp(110px, 14vw, 170px); margin: 0 clamp(6px, 1vw, 14px); text-align: center; }
.ds-marquee img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 14px rgba(30, 10, 40, .3)); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.ds-marquee figure:hover img { transform: translateY(-8px) rotate(-8deg) scale(1.06); }
.ds-marquee figcaption { margin-top: 6px; font-weight: 700; font-size: .95rem; }
.ds-marquee:hover .ds-mq-track { animation-play-state: paused; }
@keyframes ds-marquee { to { transform: translateX(-50%); } }

/* ---------- colours, shapes, felts ---------- */
.ds-colours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(4px, 1vw, 12px); }
.ds-colours span { display: block; animation: ds-bob 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.2s); }
.ds-colours img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 8px rgba(30, 10, 40, .25)); }
@keyframes ds-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
.ds-shapes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px) clamp(6px, 1.4vw, 16px); }
.ds-shapes figure { margin: 0; text-align: center; }
.ds-shapes img { display: block; width: 78%; height: auto; margin: 0 auto; filter: drop-shadow(0 10px 10px rgba(10, 60, 60, .25)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.ds-shapes figure:hover img { transform: rotate(-14deg) scale(1.1); }
.ds-shapes figcaption { margin-top: 6px; font-weight: 700; font-size: .9rem; line-height: 1.2; }
@media (max-width: 760px) { .ds-shapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ds-colours { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ds-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-felts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.ds-felts figure { margin: 0; text-align: center; }
.ds-felts span { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 18px; padding: 7%; box-sizing: border-box; background: var(--ds-frame); box-shadow: var(--ds-shadow); }
.ds-felts span::before { content: ""; position: absolute; inset: 7%; border-radius: 11px; box-shadow: inset 0 0 0 2px var(--ds-gold); background: radial-gradient(closest-side, var(--f1), var(--f2)); }
.ds-felts img { position: relative; width: 44%; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .4)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.ds-felts figure:hover img { transform: rotate(20deg) scale(1.1); }
.ds-felts figcaption { margin-top: 10px; font-weight: 700; }
.ds-felts .is-emerald { --f1: #2f8a64; --f2: #17523a; }
.ds-felts .is-midnight { --f1: #2c3d78; --f2: #141d40; }
.ds-felts .is-burgundy { --f1: #8a2c45; --f2: #4c1224; }
.ds-felts .is-gold { --f1: #d6b052; --f2: #94711f; }
@media (max-width: 640px) { .ds-felts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ds-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--ds-shadow); }
.ds-photo img { display: block; width: 100%; height: auto; }
.ds-photo.is-flat { margin: 0; }
.ds-math { display: grid; gap: clamp(18px, 3vw, 30px); justify-items: center; }
.ds-eq { display: flex; align-items: baseline; gap: .35em; margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; }
.ds-eq span { color: var(--muted); font-size: .7em; }
.ds-eq .is-total { color: var(--accent); }

/* ---------- calm: three stickers ---------- */
.ds-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); list-style: none; margin: 0; padding: 0; }
.ds-trio li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: clamp(18px, 3vw, 30px) 10px; border-radius: 22px; background: var(--ds-card); border: 1px solid var(--line); box-shadow: var(--ds-shadow); }
.ds-trio b { font-family: var(--display); font-size: 1.3rem; line-height: 1.05; }
.ds-trio .ds-sticker { animation: ds-bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.ds-sticker { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.ds-sticker .ds-ico { width: 34px; height: 34px; }
.ds-sticker.is-big { width: 84px; height: 84px; border-radius: 26px; }
.ds-sticker.is-big .ds-ico { width: 44px; height: 44px; }

/* ---------- Full Game: banner hero and comparison ---------- */
.ds-banner { position: relative; isolation: isolate; color: #f7f0e6; background: #2a0e4a; border-bottom: 0; padding-block: clamp(48px, 9vw, 130px); min-height: min(62vw, 560px); display: flex; align-items: center; }
.ds-banner::before { display: none; }
.ds-banner-bg { position: absolute; inset: 0; z-index: -1; }
.ds-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ds-banner-text { width: 100%; }
.ds-banner-text > * { max-width: min(30rem, 44vw); }
@media (max-width: 781px) { .ds-banner-text > * { max-width: none; } }
.ds-banner h1 { color: #fff; }
.ds-banner h1 em { color: #ff8fdc; }
.ds-banner .lead { color: #e9dcf2; }
.ds-banner .eyebrow { color: #ff8fdc; }
.ds-banner .ds-soon { background: #fff; color: #2a0e4a; }
.ds-banner .get-app-note { color: #cdbfe0; }
@media (max-width: 781px) {
	.ds-banner { align-items: flex-end; min-height: 0; padding-top: 68vw; }
	.ds-banner-bg img { height: auto; object-fit: initial; }
	.ds-banner-bg::after { content: ""; position: absolute; left: 0; right: 0; top: 40vw; height: 42vw; background: linear-gradient(180deg, rgba(42, 14, 74, 0), #2a0e4a); }
}
.ds-cmp { width: 100%; max-width: 820px; margin: 0 auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--ds-card); box-shadow: var(--ds-shadow); }
.ds-cmp th, .ds-cmp td { padding: .85em 1em; text-align: left; border-bottom: 1px solid var(--line); }
.ds-cmp tbody tr:last-child > * { border-bottom: 0; }
.ds-cmp thead th { font-family: var(--display); font-size: 1.3rem; }
.ds-cmp thead th:last-child { background: var(--accent); color: var(--hohl-accent-ink); }
.ds-cmp tbody th { color: var(--muted); font-weight: 600; width: 32%; }
.ds-cmp td:last-child { font-weight: 700; }
@media (max-width: 520px) { .ds-cmp th, .ds-cmp td { padding: .7em .6em; font-size: .92rem; } }

/* ---------- FAQ groups: a sticker beside the questions ---------- */
.ds-faqgroup { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; max-width: 1000px; margin-inline: auto; }
.ds-faqgroup h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 6px; }
.ds-faqgroup .faq { max-width: none; margin: 0 !important; }
.ds-faq-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 28px; background: var(--ds-card); border: 1px solid var(--line); box-shadow: var(--ds-shadow); }
.ds-faq-die { position: absolute; right: -12%; bottom: -10%; width: 52%; height: auto; filter: drop-shadow(0 12px 12px rgba(20, 0, 30, .35)); animation: ds-float 6s ease-in-out infinite; }
@media (max-width: 700px) { .ds-faqgroup { grid-template-columns: 1fr; } .ds-faq-pic { width: 120px; } .ds-faq-pic .ds-sticker.is-big { width: 64px; height: 64px; } }

/* ---------- help cards with small moving icons ---------- */
.ds-helps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
.ds-help { background: var(--ds-card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--ds-shadow); scroll-margin-top: 96px; }
.ds-help p { margin: 0; color: var(--text-2); }
.ds-help-pic { position: relative; display: flex; align-items: center; gap: 14px; height: 96px; margin-bottom: 14px; }
.ds-help-pic.is-spin .ds-ico { animation: ds-spin 3s cubic-bezier(.5, 0, .3, 1) infinite; }
.ds-help-pic.is-shake .ds-ico { animation: ds-shake 2.8s ease-in-out infinite; }
.ds-help-pic.is-bob .ds-sticker { animation: ds-bob 3.4s ease-in-out infinite; }
@keyframes ds-spin { 0%, 30% { transform: rotate(0); } 70%, 100% { transform: rotate(-360deg); } }
@keyframes ds-shake { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
.ds-toggle { position: relative; width: 62px; height: 36px; border-radius: 999px; background: var(--line-strong); animation: ds-toggle-bg 4s ease-in-out infinite; }
.ds-toggle i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); animation: ds-toggle 4s ease-in-out infinite; }
@keyframes ds-toggle { 0%, 35% { transform: translateX(0); } 50%, 85% { transform: translateX(26px); } 100% { transform: translateX(0); } }
@keyframes ds-toggle-bg { 0%, 35% { background: var(--line-strong); } 50%, 85% { background: #34c759; } 100% { background: var(--line-strong); } }
.ds-words { position: relative; flex: 1; height: 1.6em; overflow: hidden; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.ds-words i { position: absolute; left: 0; top: 0; font-style: normal; opacity: 0; animation: ds-word 18s infinite; }
.ds-words i:nth-child(2) { animation-delay: 2s; } .ds-words i:nth-child(3) { animation-delay: 4s; } .ds-words i:nth-child(4) { animation-delay: 6s; }
.ds-words i:nth-child(5) { animation-delay: 8s; } .ds-words i:nth-child(6) { animation-delay: 10s; } .ds-words i:nth-child(7) { animation-delay: 12s; }
.ds-words i:nth-child(8) { animation-delay: 14s; } .ds-words i:nth-child(9) { animation-delay: 16s; }
@keyframes ds-word { 0% { opacity: 0; transform: translateY(70%); } 2%, 9% { opacity: 1; transform: none; } 11%, 100% { opacity: 0; transform: translateY(-70%); } }
@media (max-width: 960px) { .ds-helps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ds-helps { grid-template-columns: 1fr; } }
.ds-btn { gap: .5em; text-transform: none; }
.ds-btn svg { width: 1.2em; height: 1.2em; }

/* ---------- privacy ---------- */
.ds-short { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 clamp(24px, 4vw, 40px); padding: 0; }
.ds-short li { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.ds-short svg { width: 1.25em; height: 1.25em; color: var(--accent); }
.ds-legal { max-width: 820px; }
.ds-legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2em; }
.ds-legal h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--accent); }
.ds-legal .muted { color: var(--muted); font-size: .9rem; }
.page-legal h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: none; }

/* ---------- pop-in (dicestash.js) ---------- */
/* hidden only once the script runs (html.ds-anim), so the page never stays empty without JavaScript */
.ds-anim .ds-pop { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .5s, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.ds-anim .ds-pop.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ds-anim .ds-pop { opacity: 1; transform: none; transition: none; }
	.ds-fl, .ds-mq-track, .ds-colours span, .ds-trio .ds-sticker, .ds-faq-die, .ds-help-pic *, .ds-words i { animation: none !important; }
	.ds-words i:first-child { opacity: 1; }
	.ds-toggle i { transform: translateX(26px); } .ds-toggle { background: #34c759; }
}

/* ================= scenes (_src/dicestash/scenes.py) ================= */
.dss { position: relative; width: 100%; overflow: hidden; container-type: inline-size; background: var(--ds-cream); }
.dss-felt { background: var(--ds-frame); }
.dss-felt::before { content: ""; position: absolute; inset: 3.4%; z-index: 0; border-radius: 2.4cqw; pointer-events: none;
	background: radial-gradient(70% 70% at 50% 40%, var(--ds-felt), var(--ds-felt-deep)); box-shadow: inset 0 0 0 max(1.5px, .45cqw) var(--ds-gold), inset 0 1cqw 3cqw rgba(0, 0, 0, .35); }
.dss-cream { background: var(--ds-cream); }
.dss-cream::before { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(45% 55% at 15% 20%, var(--ds-glow-a), transparent 70%), radial-gradient(45% 55% at 90% 25%, var(--ds-glow-b), transparent 70%), radial-gradient(50% 50% at 55% 100%, var(--ds-glow-c), transparent 70%); }
.dss-night { background: radial-gradient(80% 90% at 70% 40%, #5a24a8, #2a0e4a 70%); }
.dss-s { position: absolute; display: block; height: auto; transform: translate(-50%, -50%); will-change: transform, opacity; }
img.dss-s { filter: drop-shadow(0 .8cqw .7cqw rgba(0, 0, 0, .45)); }
.dss:not(.is-on) .dss-s { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .dss .dss-s { animation: none !important; } }
.dss .dss-ic { display: block; width: 100%; height: 100%; }
.dss-s.is-dim { opacity: .28 !important; filter: grayscale(.6); }

/* a sorting box: dark lacquer, coloured rim, ten slots */
.dss-box { position: relative; display: block; width: 100%; border-radius: 6%/13%; background: #1e1822; box-shadow: inset 0 0 0 max(1.5px, .4cqw) var(--c), 0 1.2cqw 2cqw rgba(0, 0, 0, .4); }
.dss-box i { position: absolute; display: grid; place-items: center; border-radius: 22%; background: color-mix(in srgb, var(--c) 16%, #120d15); box-shadow: inset 0 .3cqw .6cqw rgba(0, 0, 0, .55); }
.dss-box i img { width: 92%; height: auto; filter: drop-shadow(0 .3cqw .3cqw rgba(0, 0, 0, .45)); }
.dss-box b { position: absolute; left: 50%; bottom: -1.6cqw; transform: translateX(-50%); font-size: 2.4cqw; }
.dss-shelf { display: block; width: 100%; background: linear-gradient(#3a2c42, #241a2a); box-shadow: inset 0 max(1.5px, .4cqw) 0 var(--ds-gold), 0 -1cqw 2cqw rgba(0, 0, 0, .3); }
.dss-free { display: grid; place-items: center; width: 100%; box-sizing: border-box; border: max(1.5px, .45cqw) dashed rgba(255, 255, 255, .55); border-radius: 6%/13%; }
.dss-free b { font-family: var(--display); font-weight: 700; color: #fff; font-size: 3cqw; }
.dss-ask { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-size: 4.4cqw; color: var(--text); }
.dss-chip { display: block; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 1cqw 2cqw rgba(60, 30, 70, .18), inset 0 0 0 max(1px, .3cqw) #e7dccb; }
.dss-tap { display: block; aspect-ratio: 1; border-radius: 50%; border: max(2px, .7cqw) solid #fff; box-shadow: 0 0 2cqw rgba(255, 255, 255, .7), inset 0 0 1.4cqw rgba(255, 255, 255, .5); }
.dss-badge { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-size: 7cqw; line-height: 1; padding: 1.4cqw 0; border-radius: 99px; background: #6a31b4; color: #fff; box-shadow: 0 1cqw 2.4cqw rgba(106, 49, 180, .45); }
.dss-spark { display: block; aspect-ratio: 1; color: #ff6fd2; }
.dss-spark.is-gold { color: #ffe08a; filter: drop-shadow(0 0 1.2cqw rgba(255, 210, 90, .9)); }
.dss-coll { display: block; aspect-ratio: 1; padding: 22%; box-sizing: border-box; border-radius: 26%; background: #24132a; color: #f6f0e5; }
.dss-plus { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-size: 6cqw; color: var(--accent); }
.dss-hint { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; padding: 1.6cqw 2.6cqw; border-radius: 99px; background: rgba(20, 12, 24, .82); color: #fff; font-weight: 700; font-size: 3.8cqw; white-space: nowrap; }
.dss-hint .dss-ic { width: 5cqw; height: 5cqw; flex: none; }
.dss-glow { display: block; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 255, 230, .6), transparent); }
.dss-burst { display: block; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 224, 138, .95), rgba(255, 190, 60, .4) 50%, transparent); }
.dss-token { position: relative; display: block; aspect-ratio: 1; padding: 20%; box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9b6be0, #6a31b4 60%, #3e1a75); color: #fff; box-shadow: 0 0 0 max(1.5px, .5cqw) #ffe08a, 0 1.4cqw 3cqw rgba(60, 20, 120, .55); }
.dss-token b { position: absolute; right: -12%; top: -12%; display: grid; place-items: center; width: 44%; aspect-ratio: 1; border-radius: 50%; background: #ffe08a; color: #3e1a75; font-family: var(--display); font-size: 4.4cqw; }
.dss-token.is-btn { padding: 22%; }
.dss-vortex { display: block; aspect-ratio: 1; color: rgba(255, 255, 255, .5); }
.dss-medal { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 9cqw; color: rgba(40, 20, 10, .75);
	background: radial-gradient(circle at 35% 30%, var(--m1), var(--m2) 70%); box-shadow: inset 0 0 0 max(1.5px, .6cqw) rgba(255, 255, 255, .45), 0 1.2cqw 2.4cqw rgba(60, 30, 70, .25); }
.dss-medal.is-bronze { --m1: #f0b98a; --m2: #b06a35; }
.dss-medal.is-silver { --m1: #f4f6fa; --m2: #a7afbb; }
.dss-medal.is-gold { --m1: #ffe7a0; --m2: #d39b23; }
.dss-mlab { display: block; text-align: center; margin-top: 1.4cqw; font-family: var(--display); font-weight: 700; font-size: 4cqw; color: var(--text); line-height: 1.05; }
.dss-mlab small { display: block; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 2.8cqw; color: var(--muted); }
.dss-path { display: block; height: max(2px, .6cqw); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 2cqw, transparent 2cqw 3.4cqw); }
.dss-node { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: #2a1638; box-shadow: inset 0 0 0 max(1.5px, .45cqw) #ffe08a, 0 1cqw 2cqw rgba(0, 0, 0, .4); overflow: hidden; }
.dss-node img { width: 70%; height: auto; }
.dss-node .is-star { width: 56%; height: 56%; color: #ffe08a; }
.dss-nlab { display: block; text-align: center; margin-top: 1cqw; font-weight: 700; font-size: 1.9cqw; color: #fff; line-height: 1.1; }
.dss-felt-swatch { display: block; width: 70%; aspect-ratio: 1; border-radius: 22%; box-shadow: inset 0 0 0 max(1px, .3cqw) #d9b45a; }
.dss-felt-swatch.is-emerald { background: radial-gradient(closest-side, #2f8a64, #17523a); }
.dss-felt-swatch.is-gold { background: radial-gradient(closest-side, #d6b052, #94711f); }
.dss-mini { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 1.4cqw; background: var(--ds-frame); }
.dss-mini::before { content: ""; position: absolute; inset: 9%; border-radius: 1cqw; background: radial-gradient(closest-side, var(--ds-felt), var(--ds-felt-deep)); box-shadow: inset 0 0 0 max(1px, .25cqw) var(--ds-gold); }
.dss-mini b { position: relative; font-family: var(--display); font-weight: 700; font-size: 4.4cqw; color: #fff; }
.dss-check { display: block; aspect-ratio: 1; padding: 14%; box-sizing: border-box; border-radius: 50%; background: #34c759; color: #fff; }
.dss-ftag { display: block; text-align: center; font-family: var(--display); font-weight: 700; font-size: 3.4cqw; color: var(--text); }
.dss-fullcard { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1cqw; aspect-ratio: 3 / 4; box-sizing: border-box; padding: 2cqw; border-radius: 2cqw; background: radial-gradient(circle at 50% 30%, #8a4fd6, #6a31b4 55%, #3e1a75); color: #fff; box-shadow: 0 1.4cqw 3cqw rgba(60, 20, 120, .4); }
.dss-fullcard .dss-ic { width: 60%; height: auto; aspect-ratio: 1; }
.dss-fullcard b { font-family: var(--display); font-weight: 700; font-size: 3.4cqw; }
.dss-board { display: block; padding: 3cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 1.4cqw 3cqw rgba(60, 30, 70, .16); color: #24132a; }
.dss-board .is-head { width: 7cqw; height: 7cqw; color: #d39b23; margin: 0 auto 1.4cqw; }
.dss-tabs { display: flex; gap: 1cqw; padding: .8cqw; border-radius: 99px; background: #f1e9dc; margin-bottom: 2cqw; }
.dss-tabs b { flex: 1; text-align: center; font-size: 2.8cqw; padding: 1cqw 0; border-radius: 99px; color: #6c5d70; }
.dss-tabs b.is-on { background: #6a31b4; color: #fff; }
.dss-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2cqw; }
.dss-board li { display: flex; align-items: center; gap: 1.6cqw; }
.dss-board li i { width: 4cqw; font-style: normal; font-weight: 800; font-size: 2.8cqw; text-align: center; color: #6c5d70; }
.dss-board li em { display: block; height: 2.6cqw; border-radius: 99px; background: #e2d6f3; }
.dss-board li.is-you em { background: #ff6fd2; }
.dss-board li.is-you i { color: #b4248f; }
.dss-ach { display: block; aspect-ratio: 1; padding: 22%; box-sizing: border-box; border-radius: 30%; background: #24132a; color: #ffe08a; box-shadow: 0 1cqw 2cqw rgba(60, 30, 70, .25); }
.ds-card-pic .dss, .ds-frame .dss { border-radius: 0; }
