:root {
    --ink: #243127;
    --leaf: #4d6d58;
    --cream: #5b1838;
    --paper: #f3d5df;
    --coral: #ef6b5d;
    --sun: #f4c452;
    --pink: #7d2f52;
    --line: rgba(36, 49, 39, 0.15);
    --serif: "Playfair Display", Georgia, serif;
    --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--cream);
    background-image: radial-gradient(var(--pink) 1px, transparent 1px), radial-gradient(rgba(255, 214, 230, 0.16) 1px, transparent 1px);
    background-position: 0 0, 12px 12px;
    background-size: 24px 24px;
    font-family: var(--mono);
}

body.branch-passion {
    --ink: #fff4df;
    --leaf: #ffd5a1;
    --cream: #080d22;
    --paper: #111a36;
    --coral: #ff6b86;
    --sun: #ffc857;
    --pink: #9c5b98;
    background-color: #010207;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px), radial-gradient(circle, rgba(255, 200, 87, 0.75) 1px, transparent 1px), radial-gradient(circle, rgba(255, 107, 134, 0.65) 1px, transparent 1px);
    background-position: 8px 12px, 44px 36px, 78px 22px;
    background-size: 83px 97px, 137px 121px, 191px 149px;
}

body.branch-passion .game-card { box-shadow: 12px 12px 0 #ff6b86, 0 24px 50px rgba(255, 107, 134, 0.28); }
body.branch-passion .game-card::before { background: #ff6b86; }
body.branch-passion .game-card::after { background: #ffc857; }
body.love-revealed .game-card { border-color: transparent; background: transparent; box-shadow: none; }
body.love-revealed .game-card::before, body.love-revealed .game-card::after, body.love-revealed .progress { display: none; }
body.accueil-active { background-color: #db4f87; background-image: radial-gradient(circle, rgba(255, 230, 242, 0.45) 1px, transparent 1px), radial-gradient(circle, rgba(137, 20, 76, 0.22) 1px, transparent 1px); background-position: 10px 14px, 46px 38px; background-size: 72px 84px, 121px 107px; }
body.accueil-active .game-mark, body.accueil-active .game-footer { color: #ffe2ef; }
body.accueil-active .game-card { color: #fff5fa; }
body.accueil-active .eyebrow, body.accueil-active .mystery-copy { color: #ffd7e8; }

button { font: inherit; }

.game-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem 1.25rem;
}

.game-mark, .game-footer {
    position: fixed;
    margin: 0;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd6e5;
}

.game-mark { top: 1.5rem; left: 1.5rem; }
.game-footer { right: 1.5rem; bottom: 1.5rem; }

.game-card {
    width: min(100%, 650px);
    min-height: 560px;
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4.5rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 12px 12px 0 var(--ink), 0 24px 50px rgba(36, 49, 39, 0.12);
}

.game-card::before, .game-card::after {
    position: absolute;
    z-index: 0;
    width: 96px;
    height: 96px;
    content: "";
    border-radius: 50%;
}

.game-card::before { top: -42px; right: -30px; background: var(--sun); }
.game-card::after { bottom: -46px; left: -38px; background: var(--pink); }

.progress { position: relative; z-index: 2; display: flex; gap: 0.45rem; }
.progress-dot { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; }
.progress-dot.is-active { background: var(--coral); border-color: var(--coral); }

.replay-warning {
    position: relative;
    z-index: 3;
    margin: 0.9rem 0 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(122, 17, 47, 0.4);
    border-radius: 999px;
    background: rgba(255, 214, 227, 0.7);
    color: #7a112f;
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}
.replay-warning.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.screen {
    position: relative;
    z-index: 1;
    display: none;
    min-height: 440px;
    flex-direction: column;
    justify-content: center;
    animation: arrive 400ms ease-out both;
}

.screen.is-visible { display: flex; }
.screen[hidden] { display: none; }

.little-heart {
    width: 22px;
    height: 22px;
    display: block;
    margin-bottom: 1.5rem;
    position: relative;
    transform: rotate(45deg);
    background: var(--coral);
}

.little-heart::before, .little-heart::after {
    position: absolute;
    width: 22px;
    height: 22px;
    content: "";
    border-radius: 50%;
    background: var(--coral);
}

.little-heart::before { left: -11px; }
.little-heart::after { top: -11px; }
.heart-large { transform: rotate(45deg) scale(1.35); margin: 0 0 2rem 0.4rem; }

.eyebrow { margin: 0 0 1rem; color: var(--leaf); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2 { max-width: 12ch; margin: 0; font-family: var(--serif); font-size: clamp(2.55rem, 7vw, 4.4rem); font-weight: 500; line-height: 0.98; letter-spacing: 0; }
h1 em, h2 em { color: var(--coral); }
.intro { margin: 1.3rem 0 2.2rem; font-size: 0.84rem; color: var(--leaf); }

.choice-area { position: relative; min-height: 144px; display: flex; align-items: flex-start; gap: 0.9rem; padding-top: 0.25rem; }
.button { min-width: 148px; padding: 0.85rem 1rem; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; font-size: 0.75rem; letter-spacing: 0.02em; transition: transform 160ms ease, box-shadow 160ms ease; }
.button-yes { color: var(--paper); background: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.button-yes:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--coral); }
.button-no { position: absolute; left: 176px; color: var(--ink); background: var(--paper); border-radius: 999px; transition: left 170ms ease-out, top 170ms ease-out, transform 170ms ease-out; }
.button-no::before, .button-no::after { position: absolute; top: 50%; font-size: 1.15rem; line-height: 1; pointer-events: none; }
.button-no::before { right: calc(100% + 0.45rem); content: "😜"; transform: translateY(-50%) rotate(-12deg); }
.button-no::after { left: calc(100% + 0.45rem); content: "🙈"; transform: translateY(-50%) rotate(12deg); }
.hint { max-width: 26ch; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(1.15rem, 3.5vw, 1.55rem); font-style: italic; font-weight: 600; line-height: 1.15; }

.memory-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; margin-top: 2.5rem; }
.memory-choice { min-height: 130px; padding: 0.85rem; display: flex; flex-direction: column; justify-content: space-between; text-align: left; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; background: transparent; cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.memory-choice:hover { color: var(--paper); background: var(--leaf); transform: translateY(-4px); }
.kiss-no-choice { position: relative; }
.kiss-no-choice.is-breaking { color: #fff; border-color: #3478c5; background: #3478c5; animation: kiss-break 1800ms ease-in forwards; }
.kiss-no-choice.is-breaking::before { position: absolute; z-index: 2; inset: 8% 46%; content: ""; background: #eaf5ff; clip-path: polygon(45% 0, 75% 14%, 35% 28%, 70% 43%, 28% 58%, 65% 74%, 40% 100%, 0 88%, 38% 70%, 4% 54%, 42% 39%, 8% 22%); opacity: 0; animation: zigzag-crack 1800ms ease-in forwards; }
.kiss-no-choice.is-breaking::after { position: absolute; z-index: 1; inset: -10%; content: ""; border-right: 3px solid #d8ecff; transform: rotate(24deg) translateX(0); opacity: 0; animation: tear-line 1800ms ease-in forwards; }
.kiss-message { min-height: 1.5rem; margin: 1rem 0 0; color: #3478c5; font-family: var(--serif); font-size: 1.25rem; font-style: italic; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 240ms ease, transform 240ms ease; }
.kiss-message.is-visible { opacity: 1; transform: translateY(0); }
.memory-symbol { color: var(--coral); font-size: 0.68rem; }
.memory-choice > span:last-child { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }

.selected-qualities { min-height: 34px; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.quality-tag { padding: 0.42rem 0.65rem; color: #b8332e; border: 1px solid #b8332e; border-radius: 3px; background: #fff1ed; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.03em; }
.quality-hint { margin: 1rem 0 1.3rem; color: var(--leaf); font-size: 0.72rem; }
.quality-options { display: flex; flex-wrap: wrap; gap: 0.55rem; max-width: 500px; }
.quality-choice { padding: 0.7rem 0.8rem; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; background: transparent; cursor: pointer; font-size: 0.72rem; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.quality-choice:hover, .quality-choice.is-selected { color: var(--paper); background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }
.quality-submit { align-self: flex-start; margin-top: 1.5rem; padding: 0.8rem 1rem; color: var(--paper); border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); cursor: pointer; font-size: 0.72rem; box-shadow: 4px 4px 0 var(--coral); }
.quality-submit:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.finale { justify-content: center; }
.final-message { max-width: 30ch; margin: 1.8rem 0 0; font-size: 0.78rem; line-height: 1.7; color: var(--leaf); }
.final-message strong { color: var(--coral); }
.signature { margin: 1.5rem 0; font-family: var(--serif); font-size: 1.45rem; font-style: italic; }
.restart { align-self: flex-start; padding: 0; border: 0; color: var(--leaf); background: transparent; cursor: pointer; font-size: 0.67rem; text-decoration: underline; text-underline-offset: 4px; }

.confetti { position: fixed; z-index: 5; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; width: 9px; height: 14px; animation: fall 1050ms cubic-bezier(.15,.72,.4,1) forwards; }

.music-screen { align-items: flex-start; }
.album-row { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.album-card { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.album-button { position: relative; width: min(100%, 170px); aspect-ratio: 1; margin: 0 auto 0.8rem; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.album-disc { position: absolute; inset: 0; display: grid; place-items: center; border: 7px solid #151515; border-radius: 50%; background: conic-gradient(#b53e48, #f0bd6a, #5c687e, #de6a58, #232338, #b53e48); box-shadow: 0 10px 0 #05050b, 0 14px 30px rgba(0, 0, 0, 0.35); transition: transform 300ms ease; }
.album-disc::before { position: absolute; inset: 14px; content: ""; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; }
.album-label { width: 78px; height: 78px; display: grid; place-content: center; border: 3px solid #f6cf83; border-radius: 50%; color: #fff4df; background: #7f273b; font-size: 0.72rem; letter-spacing: 0.08em; line-height: 1.2; text-align: center; transform: rotate(-8deg); }
.album-label small { font-size: 0.42rem; letter-spacing: 0.04em; }
.album-needle { position: absolute; z-index: 2; top: -9px; right: 13px; width: 58px; height: 4px; transform: rotate(32deg); transform-origin: right center; border-radius: 99px; background: #f7d995; box-shadow: 0 0 5px #ffc857; }
.album-needle::after { position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; content: ""; border-radius: 50%; background: #ff6b86; }
.album-button:hover .album-disc, .album-button.is-playing .album-disc { animation: spin-record 3.2s linear infinite; }
.album-disc-two { background: conic-gradient(#314d69, #d88b50, #763f6c, #5ea4a0, #161d37, #314d69); }
.music-title { align-self: center; min-height: 2.5rem; margin: 0.4rem 0; color: var(--leaf); font-size: 0.7rem; line-height: 1.35; text-align: center; }
.music-title strong { color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.music-hint { align-self: center; margin: 0.5rem 0 1rem; color: var(--leaf); font-size: 0.68rem; text-align: center; }
.music-player { width: min(100%, 150px); height: 30px; align-self: center; margin-top: 0.35rem; }
.music-validate { align-self: center; margin-top: 1.25rem; padding: 0.75rem 1.2rem; color: var(--paper); border: 1px solid var(--coral); border-radius: 999px; background: var(--coral); cursor: pointer; font-size: 0.72rem; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); }
.music-validate:hover { transform: translateY(-2px); }
.music-screen.music-fading-out { animation: music-fall-away 1050ms ease-in forwards; }
.love-message-screen { align-items: center; text-align: center; }
.home-screen { justify-content: flex-start; }
.home-screen h1 { max-width: none; }
.home-intro { margin: 0.9rem 0 1.8rem; color: var(--leaf); font-size: 0.76rem; }
.home-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(145px, 0.65fr); gap: 1rem; align-items: stretch; }
.game-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.game-tile { min-height: 142px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 0.9rem; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); background: transparent; text-align: left; }
.game-tile:not(:disabled) { cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; }
.game-tile:not(:disabled):hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--coral); }
.game-tile-primary { grid-column: 1 / -1; min-height: 162px; color: var(--paper); border-color: var(--ink); background: var(--ink); box-shadow: 5px 5px 0 var(--coral); }
.game-tile-primary .game-tile-number, .game-tile-primary .game-tile-status { color: #ffd6e5; }
.game-tile-number, .game-tile-status { color: var(--coral); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.game-tile-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.game-tile-title em { color: var(--coral); }
.game-tile-primary .game-tile-title em { color: var(--sun); }
.game-tile-status span { font-size: 1rem; }
.game-tile-secondary:disabled { cursor: not-allowed; opacity: 0.62; }
.home-answers { min-width: 0; padding: 0.95rem; border: 1px dashed var(--coral); background: rgba(255, 255, 255, 0.22); }
.home-answers-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.home-answers-label { margin: 0; color: var(--coral); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.answer-trash { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 2px solid #7a112f; border-radius: 50%; background: #ff5b6e; color: #fff6f7; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 10px rgba(122, 17, 47, 0.26); transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.answer-trash:hover, .answer-trash.is-over { transform: translateY(-1px) scale(1.04); background: #ff3d59; box-shadow: 0 6px 14px rgba(122, 17, 47, 0.32); }
.home-answer-list { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.answer-item { display: inline-flex; align-items: center; max-width: 100%; padding: 0.2rem 0.35rem; border-radius: 2px; cursor: grab; }
.answer-item.is-dragging { opacity: 0.5; cursor: grabbing; }
.home-answer-list .answer-tag { max-width: 100%; overflow-wrap: anywhere; border-radius: 2px; }
.empty-answers { margin: 0; color: var(--leaf); font-family: var(--serif); font-size: 1rem; font-style: italic; line-height: 1.2; }
.accueil-screen { align-items: center; padding: 1.5rem; text-align: center; }
.accueil-screen h2 { max-width: 13ch; }
.answer-summary { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.6rem 0 1.8rem; }
.answer-tag { padding: 0.5rem 0.7rem; color: #7d174b; border: 1px solid #ffb0d0; border-radius: 999px; background: #ffd8e8; font-size: 0.66rem; }
.accueil-next { color: #ff3f91; border-color: #ff8fbd; background: #ffe5f0; box-shadow: 4px 4px 0 #9d1f5b; }
.accueil-signature { position: absolute; right: 1.5rem; bottom: 1rem; margin: 0; color: #ffe1ed; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.love-message-screen h2 { max-width: 15ch; }
.love-copy { max-width: 34ch; margin: 1.8rem 0 0; color: var(--leaf); font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.love-copy strong { color: var(--coral); }
.home-return { align-self: center; margin-top: 1.8rem; padding: 0.78rem 1.1rem; color: var(--paper); border: 1px solid var(--coral); border-radius: 999px; background: var(--coral); cursor: pointer; font-size: 0.68rem; letter-spacing: 0.03em; box-shadow: 4px 4px 0 var(--ink); transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.home-return::before { content: "←"; margin-right: 0.5rem; font-size: 0.9rem; }
.home-return:hover { background: var(--pink); transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }
.home-return:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

.fireworks { position: fixed; z-index: 10; inset: 0; overflow: hidden; pointer-events: none; }
.rocket { position: fixed; z-index: 1; left: var(--x); top: calc(100vh - 18px); width: 2px; height: 18px; border-radius: 999px; background: #fff9dc; box-shadow: 0 0 5px 2px var(--firework-color); animation: rocket-rise 1050ms cubic-bezier(.2,.8,.35,1) var(--delay) forwards; }
.rocket::before { position: absolute; top: -3px; left: -2px; width: 6px; height: 6px; content: ""; border-radius: 50%; background: #fffdf0; box-shadow: 0 0 8px 3px var(--firework-color); }
.rocket::after { position: absolute; top: 16px; left: 0; width: 2px; height: 75px; content: ""; background: linear-gradient(to bottom, #fff9dc, var(--firework-color), transparent); filter: blur(0.5px); }
.burst { position: fixed; z-index: 2; left: var(--x); top: var(--y); width: 12px; height: 12px; opacity: 0; border-radius: 50%; background: var(--firework-color); box-shadow: 0 0 18px 6px var(--firework-color); animation: burst-pop 1.7s ease-out var(--delay) forwards; }
.burst::before { position: absolute; inset: 4px; content: ""; border-radius: 50%; background: #fffde9; box-shadow: 0 0 10px 4px #fffde9; }
.spark { position: absolute; left: 4px; top: 4px; width: 2px; height: var(--length); transform: rotate(var(--angle)) translateY(-7px); transform-origin: 50% 0; border-radius: 999px; background: linear-gradient(to bottom, #fffde9, var(--firework-color)); box-shadow: 0 0 6px 1px var(--firework-color); animation: spark-fly 1100ms cubic-bezier(.1,.7,.3,1) var(--delay) forwards; }
.firework-fragment { position: absolute; left: 5px; top: 5px; width: var(--fragment-size); height: 5px; border-radius: 50%; background: #fffde9; box-shadow: 0 0 5px 2px var(--firework-color); animation: fragment-fall 1850ms cubic-bezier(.18,.65,.35,1) var(--delay) forwards; }

@keyframes rocket-rise { 0% { opacity: 0; transform: translateY(20px); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--target-y) - 100vh + 18px)); } }
@keyframes burst-pop { 0%, 38% { opacity: 0; transform: scale(0.15); } 48% { opacity: 1; transform: scale(1); } 62% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes spark-fly { 0%, 40% { opacity: 0; transform: rotate(var(--angle)) translateY(-7px) scaleY(0.1); } 54% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(var(--distance)) scaleY(1); } }
@keyframes fragment-fall { 0%, 15% { opacity: 0; transform: rotate(var(--angle)) translateY(0) translateX(0) scale(0.4); } 28% { opacity: 1; } 68% { opacity: 0.9; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(var(--end-distance)) translateX(var(--drift)) scale(0.75); } }

@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fall { to { transform: translate(var(--drift), 105vh) rotate(560deg); opacity: 0; } }
@keyframes spin-record { to { transform: rotate(360deg); } }
@keyframes music-fall-away { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(115vh) rotate(4deg); } }
@keyframes kiss-break { 0%, 18% { transform: translateX(0) rotate(0); opacity: 1; clip-path: inset(0); } 24% { transform: translateX(-3px) rotate(-2deg); } 30% { transform: translateX(3px) rotate(2deg); } 36% { transform: translateX(-3px) rotate(-2deg); } 48% { transform: translateX(0) rotate(0); clip-path: polygon(0 0, 46% 0, 50% 18%, 45% 38%, 52% 58%, 46% 78%, 52% 100%, 0 100%, 0 0, 100% 0, 100% 100%, 52% 100%, 46% 78%, 52% 58%, 45% 38%, 50% 18%); } 72% { transform: translateX(-20px) rotate(-7deg); opacity: 0.9; } 100% { transform: translateX(-55px) rotate(-16deg); opacity: 0; filter: blur(2px); } }
@keyframes zigzag-crack { 0%, 35% { opacity: 0; } 48%, 72% { opacity: 1; } 100% { opacity: 0; transform: translateX(-22px) rotate(-12deg); } }
@keyframes tear-line { 0%, 42% { opacity: 0; transform: rotate(24deg) translateX(0); } 52%, 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(24deg) translateX(-48px); } }

@media (max-width: 560px) {
    .game-shell { padding: 4rem 1.1rem; }
    .game-mark { top: 1rem; left: 1rem; }
    .game-footer { right: 1rem; bottom: 1rem; }
    .game-card { min-height: 570px; padding: 2rem 1.6rem; box-shadow: 7px 7px 0 var(--ink); }
    .screen { min-height: 460px; }
    .choice-area { min-height: 170px; display: block; }
    .button-no { left: 0; top: 68px; }
    .memory-options { grid-template-columns: 1fr; gap: 0.55rem; }
    .memory-options.description-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .memory-choice { min-height: 92px; padding: 0.7rem; }
    .memory-choice > span:last-child { font-size: 1rem; }
    .home-layout { grid-template-columns: 1fr; }
    .game-tile { min-height: 125px; }
    .game-tile-primary { min-height: 140px; }
    .home-answers { min-height: 104px; }
    .home-answer-list { flex-direction: row; flex-wrap: wrap; }
    .quality-options { gap: 0.45rem; }
    .quality-choice { padding: 0.65rem 0.7rem; }
    .album-row { gap: 0.7rem; }
    .album-button { width: min(100%, 145px); }
    .music-player { width: min(100%, 132px); }
    .music-title strong { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

.countdown-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; gap: 0.8rem; color: #fff4fa; background: var(--cream); text-align: center; transition: opacity 500ms ease, visibility 500ms ease; }
.countdown-overlay[hidden] { display: none; }
.countdown-overlay.is-done { opacity: 0; visibility: hidden; }
.countdown-overlay p { margin: 0; color: #ffd6e5; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.countdown-overlay strong { font-family: var(--serif); font-size: clamp(5rem, 18vw, 9rem); font-weight: 500; line-height: 0.9; }