/* "Pick how it looks": a live mock of the app in its five layouts, Side by Side first. Plain CSS, light on phones. */
.lay-sec { --acc: #2bf08a; --c1: #4ff08a; --c2: #46dfe0; padding-top: clamp(40px, 7vw, 90px); }
.lay-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 26px; max-width: 760px; }
.lay-tab { appearance: none; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.78); font: inherit; font-weight: 700; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms, transform 200ms; }
.lay-tab:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.lay-tab[aria-selected="true"] { background: linear-gradient(135deg, #2bf08a, #46dfe0); color: #04130c; border-color: transparent; box-shadow: 0 8px 26px -8px rgba(43, 240, 138, 0.6); }

.lay-stage { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9.6; border-radius: 26px; overflow: hidden; background: #0b0c10; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 70px -24px rgba(43, 240, 138, 0.35); isolation: isolate; transition: background 600ms ease; }
.lay-bg { position: absolute; inset: -12%; z-index: -1; background: url("img/layout-cover.jpg") center / cover; filter: blur(60px) saturate(1.6) brightness(0.5); opacity: 0; transition: opacity 600ms ease; }
.lay-stage[data-lay="side"] .lay-bg, .lay-stage[data-lay="immersive"] .lay-bg { opacity: 1; }
.lay-stage[data-lay="readalong"] { background: #2b6f73; }
.lay-win { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(14px, 3vw, 30px); color: #fff; }

.lay-top { display: flex; align-items: center; gap: 10px; font-size: clamp(11px, 1.3vw, 14px); font-weight: 700; }
.lay-top img { width: 26px; height: 26px; border-radius: 8px; }
.lay-pill { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); display: inline-flex; align-items: center; gap: 6px; }
.lay-pill i { width: 8px; height: 8px; border-radius: 50%; background: #1db954; box-shadow: 0 0 8px #1db954; }

.lay-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); align-items: center; gap: clamp(18px, 4vw, 54px); transition: gap 500ms ease; }
.lay-left { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lay-cover { width: min(100%, 300px); height: auto; aspect-ratio: 1; border-radius: 22px; object-fit: cover; box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.8); transition: width 500ms ease, border-radius 500ms ease; }
.lay-title { font-size: clamp(16px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.01em; }
.lay-artist { font-size: clamp(11px, 1.4vw, 15px); color: rgba(255, 255, 255, 0.66); margin-top: -6px; }
.lay-prog { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.lay-prog i { display: block; height: 100%; width: 38%; border-radius: 2px; background: #fff; animation: layProg 26s linear infinite; }
@keyframes layProg { from { width: 4%; } to { width: 96%; } }

.lay-view { position: relative; height: 100%; max-height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }
.lay-track { position: relative; transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.lay-line { padding: 0.35em 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; font-size: clamp(20px, 3.6vw, 44px); color: rgba(255, 255, 255, 0.5); opacity: max(0.16, calc(1 - var(--d, 3) * 0.2)); transition: opacity 500ms ease, color 400ms ease; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.lay-line .w { display: inline-block; margin-right: 0.26em; }
.lay-line.cur { color: rgba(255, 255, 255, 0.34); opacity: 1; }
.lay-line.cur .w { animation: layWord 0.6s ease forwards; animation-delay: calc(var(--i) * 0.32s + 0.15s); }
@keyframes layWord { 0% { color: rgba(255, 255, 255, 0.34); } 100% { color: #fff; text-shadow: 0 0 22px rgba(43, 240, 138, 0.55); transform: translateY(-0.03em); } }
.lay-line.past { color: rgba(255, 255, 255, 0.55); }

/* ---- Side by Side: cover on the left, big lyrics on the right (the default) ---- */
.lay-stage[data-lay="side"] .lay-line { text-align: left; padding-right: 8%; }

/* ---- the others: one column, a small cover row on top ---- */
.lay-stage:not([data-lay="side"]) .lay-main { grid-template-columns: 1fr; align-content: stretch; align-items: stretch; grid-template-rows: auto 1fr; gap: 6px; }
.lay-stage:not([data-lay="side"]) .lay-left { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lay-stage:not([data-lay="side"]) .lay-cover { width: 54px; border-radius: 12px; }
.lay-stage:not([data-lay="side"]) .lay-title { font-size: 15px; }
.lay-stage:not([data-lay="side"]) .lay-artist { margin: 0; }
.lay-stage:not([data-lay="side"]) .lay-prog { flex-basis: 100%; max-width: 360px; }
.lay-stage[data-lay="scroll"] .lay-line, .lay-stage[data-lay="classic"] .lay-line, .lay-stage[data-lay="immersive"] .lay-line { text-align: center; }
.lay-stage[data-lay="scroll"] .lay-line { font-size: clamp(16px, 2.6vw, 30px); }
.lay-stage[data-lay="classic"] .lay-line { font-size: clamp(16px, 2.4vw, 28px); opacity: 0; }
.lay-stage[data-lay="classic"] .lay-line[style*="--d: 1"], .lay-stage[data-lay="classic"] .lay-line.cur { opacity: 0.5; }
.lay-stage[data-lay="classic"] .lay-line.cur { opacity: 1; font-size: clamp(20px, 3.2vw, 38px); }
.lay-stage[data-lay="immersive"] .lay-line { font-size: clamp(22px, 4.4vw, 54px); opacity: 0; }
.lay-stage[data-lay="immersive"] .lay-line[style*="--d: 1"], .lay-stage[data-lay="immersive"] .lay-line.cur { opacity: 0.45; }
.lay-stage[data-lay="immersive"] .lay-line.cur { opacity: 1; }
.lay-stage[data-lay="classic"] .lay-view, .lay-stage[data-lay="immersive"] .lay-view { -webkit-mask-image: none; mask-image: none; }

/* ---- Read Along: the album colour, bold lines, sung words white, the rest dark ---- */
.lay-stage[data-lay="readalong"] .lay-line { text-align: left; font-weight: 900; font-size: clamp(22px, 4vw, 48px); color: rgba(0, 0, 0, 0.5); text-shadow: none; }
.lay-stage[data-lay="readalong"] .lay-line.past { color: rgba(255, 255, 255, 0.82); }
.lay-stage[data-lay="readalong"] .lay-line.cur { color: rgba(0, 0, 0, 0.5); }
.lay-stage[data-lay="readalong"] .lay-line.cur .w { animation-name: layWordRA; }
@keyframes layWordRA { 0% { color: rgba(0, 0, 0, 0.5); } 100% { color: #fff; } }

.lay-note { text-align: center; margin: 20px auto 0; max-width: 640px; color: rgba(255, 255, 255, 0.62); font-size: 0.95rem; }
.lay-note b { color: #fff; }

@media (max-width: 720px) {
  .lay-stage { aspect-ratio: 4 / 5; }
  .lay-main { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr; align-items: stretch; gap: 8px; }
  .lay-stage[data-lay="side"] .lay-left { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .lay-stage[data-lay="side"] .lay-cover { width: 76px; border-radius: 14px; }
  .lay-stage[data-lay="side"] .lay-prog { flex-basis: 100%; }
  .lay-bg { filter: blur(40px) saturate(1.5) brightness(0.5); }
}
@media (prefers-reduced-motion: reduce) { .lay-track, .lay-line, .lay-tab { transition: none; } .lay-line.cur .w { animation-duration: 0.01s; animation-delay: 0s; } .lay-prog i { animation: none; } }

/* Phones: no big blurred picture, no mask, no will-change. iPhones drop whole tiles of the page (blank areas) when big layers are blurred or masked, so this section stays flat and simple there. */
@media (max-width: 820px), (pointer: coarse) {
  .lay-bg { filter: none; inset: 0; background: radial-gradient(70% 60% at 25% 20%, rgba(43, 240, 138, 0.26), transparent 70%), radial-gradient(70% 60% at 85% 85%, rgba(124, 107, 255, 0.3), transparent 70%); }
  .lay-view { -webkit-mask-image: none; mask-image: none; }
  .lay-track { will-change: auto; }
  .lay-line { text-shadow: none; }
  .lay-stage { box-shadow: none; }
  .lay-cover { box-shadow: none; }
}

/* Phones get a picture of the Side by Side demo instead of the live one: nothing animated, nothing to go wrong in Safari. */
.lay-static { display: none; }
@media (max-width: 820px), (pointer: coarse) {
  .lay-tabs, .lay-stage { display: none !important; }
  .lay-static { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.14); }
}

/* ---- Cinema (pictures only) ---- */
.cin-sec { --c1: #b18cff; --c2: #4cd9ff; }
.cin-sec .cin-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.cin-shot { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: #07090d; }
.cin-shot img { display: block; width: 100%; height: auto; }
.cin-main { grid-row: 1 / span 2; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.cin-alt figcaption { padding: 10px 14px 12px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.66); }
.cin-alt figcaption b { color: #fff; }
.cin-list { list-style: none; margin: 0; padding: 4px 4px 0; display: grid; gap: 12px; }
.cin-list li { display: grid; gap: 2px; }
.cin-list b { color: #fff; font-size: 1rem; }
.cin-list span { color: rgba(255, 255, 255, 0.64); font-size: 0.92rem; line-height: 1.45; }
.cin-sec kbd, .faq kbd { font: inherit; font-size: 0.85em; padding: 1px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 820px) {
  .cin-sec .cin-grid { grid-template-columns: 1fr; }
  .cin-main { grid-row: auto; box-shadow: none; }
}

/* ---- Desktop demo (pure CSS, loops every 15 s: 12 s of song, 3 s of silence) ---- */
.dk-wrap { max-width: 1080px; margin: 0 auto 26px; }
.dk-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; isolation: isolate; background: #0a0d18; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.dk-wall { position: absolute; inset: -20%; z-index: 0; background: radial-gradient(circle at 20% 30%, #6c3cff 0, transparent 45%), radial-gradient(circle at 80% 70%, #17c3ff 0, transparent 50%), radial-gradient(circle at 62% 18%, #ff4fa3 0, transparent 40%), #0a0d18; animation: dkWall 24s ease-in-out infinite alternate; }
@keyframes dkWall { to { transform: translate(4%, -3%) rotate(6deg) scale(1.08); filter: hue-rotate(60deg); } }
.dk-icons { position: absolute; z-index: 3; left: 3%; top: 6%; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.dk-icons li { display: grid; justify-items: center; gap: 4px; width: 64px; font-size: 11px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.dk-ic { width: 34px; height: 28px; border-radius: 7px; background: linear-gradient(160deg, #ffd66b, #ff9f43); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.dk-ic.b { background: linear-gradient(160deg, #7be0ff, #3d7bff); }
.dk-ic.c { background: linear-gradient(160deg, #e8edf5, #9aa6bb); }
.dk-screen { --k1: #fff; --k2: #fff; --k3: #fff; --k4: #fff; --k5: #fff; --k6: #fff; --fs: 1; --ji: center; --ai: center; --ta: center; --pl: 7%; --pr: 7%; --pt: 9%; --pb: 12%; --ay: center; }
.dk-screen[data-colour="album"] { --k1: #ffb5e8; --k2: #c9a7ff; --k3: #8ec5ff; --k4: #ffb5e8; --k5: #c9a7ff; --k6: #8ec5ff; }
.dk-screen[data-colour="sunset"] { --k1: #ffd36b; --k2: #ff9f5a; --k3: #ff6f8f; --k4: #ffd36b; --k5: #ff9f5a; --k6: #ff6f8f; }
.dk-screen[data-colour="ocean"] { --k1: #bfe7ff; --k2: #7fb8ff; --k3: #a58bff; --k4: #bfe7ff; --k5: #7fb8ff; --k6: #a58bff; }
.dk-screen[data-colour="neon"] { --k1: #b6ff4d; --k2: #4cf0ff; --k3: #ff4fd8; --k4: #b6ff4d; --k5: #4cf0ff; --k6: #ff4fd8; }
.dk-screen[data-colour="rainbow"] { --k1: #ff6b6b; --k2: #ffb454; --k3: #ffe45e; --k4: #7dff8a; --k5: #4cd9ff; --k6: #b18cff; }
.dk-screen[data-size="s"] { --fs: 0.7; }
.dk-screen[data-size="l"] { --fs: 1.3; }
.dk-screen[data-place="left"] { --ji: start; --ai: flex-start; --ta: left; --pl: 15%; }
.dk-screen[data-place="right"] { --ji: end; --ai: flex-end; --ta: right; --pr: 9%; }
.dk-screen[data-height="top"] { --ay: start; }
.dk-screen[data-height="bottom"] { --ay: end; }
.dk-lyrics { position: absolute; z-index: 2; inset: 0; padding: var(--pt) var(--pr) var(--pb) var(--pl); display: grid; justify-items: var(--ji); align-items: var(--ay); }
.dk-line { grid-area: 1 / 1; margin: 0; text-align: var(--ta); font-weight: 800; line-height: 1.1; font-size: calc(clamp(1.3rem, 4.6vw, 3.2rem) * var(--fs)); opacity: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); animation: dkLine 15s infinite; animation-delay: calc(var(--l) * 3s); }
.dk-line .w { color: rgba(255, 255, 255, 0.34); animation: dkWord 15s infinite; animation-delay: calc(var(--l) * 3s + var(--i) * 0.55s); }
.dk-line .w:nth-child(6n+1) { --c: var(--k1); } .dk-line .w:nth-child(6n+2) { --c: var(--k2); } .dk-line .w:nth-child(6n+3) { --c: var(--k3); }
.dk-line .w:nth-child(6n+4) { --c: var(--k4); } .dk-line .w:nth-child(6n+5) { --c: var(--k5); } .dk-line .w:nth-child(6n+6) { --c: var(--k6); }
/* One word at a time: each word shows alone, big, then the next one replaces it */
.dk-screen[data-style="word"] .dk-line { display: grid; justify-items: var(--ji); font-size: calc(clamp(1.6rem, 6.4vw, 4.6rem) * var(--fs)); }
.dk-screen[data-style="word"] .dk-line .w { grid-area: 1 / 1; opacity: 0; color: var(--c, #fff); text-shadow: 0 0 16px var(--c, #fff), 0 2px 14px rgba(0, 0, 0, 0.5); animation: dkOne 15s infinite; animation-delay: calc(var(--l) * 3s + var(--i) * 0.55s); }
/* Stacked words: they pile up, the longest one is the biggest */
.dk-screen[data-style="stack"] .dk-line { display: flex; flex-direction: column; align-items: var(--ai); line-height: 0.95; font-size: calc(clamp(1.2rem, 4vw, 2.6rem) * var(--fs)); }
.dk-screen[data-style="stack"] .dk-line .w { font-size: calc(0.55em + var(--n, 4) * 0.1em); font-weight: 900; opacity: 0; color: var(--c, #fff); animation: dkStack 15s infinite; animation-delay: calc(var(--l) * 3s + var(--i) * 0.55s); }
@keyframes dkOne { 0% { opacity: 0; transform: scale(0.9); } 0.5% { opacity: 1; transform: none; } 3.3% { opacity: 1; } 3.8%, 100% { opacity: 0; } }
@keyframes dkStack { 0% { opacity: 0; transform: translateY(10px); } 1% { opacity: 1; transform: none; } 19% { opacity: 1; } 20.5%, 100% { opacity: 0; } }
@keyframes dkLine { 0% { opacity: 0; transform: translateY(14px); } 2.5% { opacity: 1; transform: none; } 18.5% { opacity: 1; transform: none; } 21% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 0; } }
@keyframes dkWord { 0% { color: rgba(255, 255, 255, 0.34); } 1.5%, 19% { color: var(--c, #fff); text-shadow: 0 0 16px var(--c, #fff), 0 2px 14px rgba(0, 0, 0, 0.5); } 20%, 100% { color: rgba(255, 255, 255, 0.34); } }
.dk-chip { position: absolute; z-index: 2; top: 5%; right: 3.5%; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(8, 10, 20, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); opacity: 0; animation: dkChip 15s infinite; }
@keyframes dkChip { 0% { opacity: 0; transform: translateY(-8px); } 2% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; } }
.dk-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.dk-eq u { width: 3px; height: 100%; border-radius: 2px; background: #4cd9ff; transform-origin: bottom; animation: dkEq 0.9s ease-in-out infinite alternate; }
.dk-eq u:nth-child(2) { animation-delay: -0.3s; background: #b18cff; }
.dk-eq u:nth-child(3) { animation-delay: -0.6s; background: #ff6fb0; }
@keyframes dkEq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.dk-task { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 7%; min-height: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(12, 14, 26, 0.72); backdrop-filter: blur(8px); }
.dk-task i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, 0.55); }
.dk-task i:nth-child(1) { background: #4cd9ff; }
.dk-task time { position: absolute; right: 3%; font-size: 11px; color: #fff; }
.dk-cap { margin: 12px 4px 0; font-size: 0.92rem; line-height: 1.45; color: rgba(255, 255, 255, 0.64); }
.dk-cap b { color: #fff; }
/* control chips */
.dk-ctls { display: grid; gap: 10px; margin-top: 14px; }
.dk-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dk-lbl { min-width: 84px; font-size: 12px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.55); }
.dk-ctl button { font: inherit; font-size: 13px; line-height: 1; padding: 9px 13px; min-height: 36px; border-radius: 999px; cursor: pointer; color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.dk-ctl button:hover { background: rgba(255, 255, 255, 0.12); }
.dk-ctl button[aria-pressed="true"] { color: #0b0d14; background: #fff; border-color: #fff; font-weight: 700; }
.dk-ctl button:focus-visible { outline: 2px solid #4cd9ff; outline-offset: 2px; }
/* clock demo */
.dk-cscreen { --cf: 1; --cj: center; --ca: center; background: #07090f; }
.dk-cscreen[data-csize="s"] { --cf: 0.6; }
.dk-cscreen[data-csize="l"] { --cf: 1.4; }
.dk-cscreen[data-cplace="left"] { --cj: start; --ct: left; }
.dk-cscreen[data-cplace="right"] { --cj: end; --ct: right; }
.dk-cscreen[data-cheight="top"] { --ca: start; }
.dk-cscreen[data-cheight="bottom"] { --ca: end; }
.dk-cscreen .dk-wall { opacity: 0.8; }
.dk-clock { position: absolute; z-index: 2; inset: 0; padding: 8% 7%; display: grid; justify-items: var(--cj); align-items: var(--ca); align-content: var(--ca); text-align: var(--ct, center); color: #fff; }
.dk-clock > * { grid-column: 1; }
.dk-time { display: block; font-size: calc(clamp(2.6rem, 11vw, 7rem) * var(--cf)); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45); }
.dk-date { display: block; margin-top: 0.5em; font-size: calc(clamp(0.8rem, 2vw, 1.2rem) * var(--cf)); color: rgba(255, 255, 255, 0.75); letter-spacing: 0.04em; }
.dk-cscreen[data-cstyle="simple"] .dk-time { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 600; font-size: calc(clamp(2rem, 8vw, 5rem) * var(--cf)); }
.dk-cscreen[data-cstyle="thin"] .dk-time { font-weight: 200; letter-spacing: 0.02em; }
.dk-cscreen[data-cstyle="bold"] .dk-time { font-weight: 900; }
.dk-cscreen[data-cstyle="words"] .dk-time { font-weight: 300; font-size: calc(clamp(2.2rem, 9vw, 5.6rem) * var(--cf)); }
.dk-cscreen[data-cstyle="words"] .dk-w1 { display: block; }
.dk-cscreen[data-cstyle="words"] .dk-w2 { display: block; font-size: 0.4em; margin-top: 0.15em; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.dk-cscreen[data-cstyle="none"] .dk-clock { visibility: hidden; }
.dk-cscreen[data-cstyle="none"]::after { content: "No clock"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.55); font-size: 1rem; z-index: 2; }
.dk-colon { animation: dkColon 1s steps(1) infinite; }
@keyframes dkColon { 50% { opacity: 0.15; } }
.dk-flip { animation: dkFlip 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes dkFlip { from { opacity: 0; transform: translateY(0.25em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
/* backgrounds strip */
.dk-bgs { max-width: 1080px; margin: 26px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dk-bg { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; isolation: isolate; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); }
.dk-bg i { position: absolute; inset: -14%; z-index: -1; }
.dk-bg b { font-size: clamp(1.3rem, 3vw, 2rem); color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.dk-bg span { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px; font-size: 12px; color: #fff; background: rgba(6, 8, 16, 0.62); }
.dk-bg.a i { background: radial-gradient(circle at 30% 35%, #ffb36b, transparent 55%), linear-gradient(135deg, #4a1d7a, #e0564f); animation: dkKen 9s ease-in-out infinite alternate; }
.dk-bg.b i { inset: -45%; background: conic-gradient(from 0deg, #4cd9ff, #b18cff, #ff6fb0, #4cd9ff); filter: blur(18px) saturate(1.2); animation: dkSpin 16s linear infinite; }
.dk-bg.c i { background: linear-gradient(160deg, #0f8f7a, #1b2b6b); animation: dkHue 8s ease-in-out infinite alternate; }
.dk-bg.d i { background: repeating-linear-gradient(115deg, #1c1030 0 26px, #3a1f66 26px 52px); animation: dkSlide 6s linear infinite; }
@keyframes dkKen { to { transform: scale(1.18) translate(-3%, 2%); } }
@keyframes dkSpin { to { transform: rotate(360deg); } }
@keyframes dkHue { to { filter: hue-rotate(80deg) brightness(1.15); } }
@keyframes dkSlide { to { transform: translateX(-52px); } }
@media (max-width: 820px) { .dk-bgs { grid-template-columns: repeat(2, 1fr); } .dk-icons li { width: 52px; } .dk-icons { gap: 10px; } .dk-icons li:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .dk-wall, .dk-chip, .dk-eq u, .dk-bg i, .dk-colon, .dk-flip { animation: none; }
  .dk-chip { opacity: 1; }
  .dk-screen .dk-line, .dk-screen .dk-line .w { animation: none; }
  .dk-line:first-child { opacity: 1; }
  .dk-screen .dk-line:first-child .w { opacity: 1; color: var(--c, #fff); }
  .dk-screen[data-style="word"] .dk-line:first-child .w:not(:first-child) { opacity: 0; }}
