:root {
  --bg: #130e12; --surface: #20191f; --raised: #30242c; --border: #4a353f;
  --text: #fff5f7; --muted: #c1b1ba; --accent: #ff788a; --accent-fill: #cb2940;
  --accent-ink: #fff; --accent-soft: #ff657a15; --negative: #ffadba;
  --font: 'Inter', sans-serif; --display: 'Montserrat', sans-serif;
}
body { background: radial-gradient(ellipse at 50% -12%, #76283c30, transparent 55%), var(--bg); }
.site-header { max-width: 1184px; margin: 0 auto; padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid #3d2934; }
.brand { display: flex; align-items: center; text-decoration: none; font: 900 32px/1 var(--display); letter-spacing: -1.4px; white-space: nowrap; }
.brand-period { color: var(--accent); }
.mode-switch { display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid #51313e; border-radius: 999px; background: #291a22; }
.mode { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 119px; height: 48px; padding: 10px 17px; border: 0; border-radius: 999px; background: transparent; color: #d0bcc6; font-size: 13px; font-weight: 600; }
.mode svg { width: 18px; height: 18px; }
.mode.active { background: var(--accent-fill); color: #fff; box-shadow: 0 4px 18px #c01c3430; }
.mode:hover:not(.active) { background: #422630; color: #fff; }
main { max-width: 1184px; margin: 0 auto; padding: 20px 40px 40px; }
.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; min-height: 44px; }
.section-marker { font-size: 9px; font-weight: 600; letter-spacing: 2px; color: #b79aa8; }
.account-tools { display: flex; align-items: center; gap: 8px; }
.profile-button { display: flex; align-items: center; gap: 8px; max-width: 260px; min-height: 44px; padding: 9px 15px; border: 1px solid #543542; border-radius: 999px; background: #21161d; font-size: 12px; color: #dbc2cd; }
.profile-button svg { width: 17px; height: 17px; }
.profile-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-button:hover { background: #38212b; border-color: #a45b70; }
.icon-button { border-radius: 50%; color: #d3b6c4; }
.icon-button:hover { background: #3a222d; color: #fff; }
.intro { max-width: 740px; text-align: center; margin: 0 auto 28px; }
.eyebrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 2px; }
h1 { font: 800 clamp(32px, 3.8vw, 46px)/1.15 var(--display); letter-spacing: -1.5px; margin: 12px 0 15px; }
.intro p { color: #cbb5c0; font-size: 14px; line-height: 1.7; margin: 0 auto; max-width: 630px; }
body[data-mode='practice'] .intro { margin-bottom: 18px; }
body[data-mode='practice'] .intro h1 { margin: 8px 0 10px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 740px; margin: 0 auto; gap: 25px; }
.workspace.is-survival { max-width: none; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 28px; }
.play-column { min-width: 0; }
.game { background: linear-gradient(145deg, #291c25, #21171f 62%); border: 1px solid #553440; border-radius: 30px; padding: 28px; box-shadow: 0 22px 65px #0003; }
.game-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 2px 17px; font-size: 11px; color: #c3a9b7; }
.track-id { font-size: 10px; font-weight: 600; letter-spacing: 1.1px; }
.game-topline #date-label { margin-left: auto; font-size: 11px; }
body[data-mode='practice'] #date-label { display: none; }
.new-practice { margin-left: auto; min-height: 44px; padding: 7px 13px; border: 1px solid #805063; border-radius: 999px; background: #3f2330; color: #ffd9e2; font-size: 12px; }
.new-practice:hover { background: #5b2c3d; }
.player { background: #160f15; border: 1px solid #50313e; border-radius: 22px; padding: 20px; }
.player-heading { display: flex; align-items: center; gap: 12px; }
.secret-cover { width: 43px; height: 43px; border-radius: 50%; border: 1px solid #8e4e63; background: #442330; color: #ff95a4; display: grid; place-items: center; flex-shrink: 0; }
.secret-cover svg { width: 21px; height: 21px; }
.player-heading>div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mystery-title { font-size: 14px; font-weight: 500; }
.player-subtitle { color: #c3aab9; font-size: 12px; line-height: 1.6; }
.audio-badge { margin-left: auto; border: 1px solid #744454; border-radius: 999px; padding: 4px 8px; font-size: 9px; color: #e0b5c5; }
.audio-main { display: flex; align-items: center; gap: 21px; margin: 20px 0 8px; min-height: 50px; }
.play-button { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; flex-shrink: 0; background: var(--accent-fill); color: #fff; box-shadow: 0 0 0 7px #ff5b7312; }
.play-button:hover { background: #ac1b33; box-shadow: 0 0 0 10px #ff5b731a; }
.play-button:disabled { background: #57303e; color: #caa4b4; }
.waveform { display: flex; flex: 1; min-width: 0; align-items: center; gap: 3px; height: 54px; overflow: hidden; }
.waveform span { display: block; flex: 1; min-width: 2px; max-width: 5px; background: #59414e; border-radius: 99px; transition: background .18s; }
.waveform span.available { background: #b3677e; }
.waveform span.heard { background: #ff8495; }
.audio-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #d0b9c4; font-size: 11px; }
.audio-footer>span:first-child { color: #fff0f5; font-size: 10px; font-variant-numeric: tabular-nums; }
.audio-footer>span:first-child span { color: #bc9caa; margin-left: 4px; }
.volume-button { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: transparent; border: 0; border-radius: 50%; color: #d5b2c3; margin-right: -9px; }
.volume-button:hover { background: #422331; }
.volume-button svg { width: 18px; height: 18px; }
.clip-steps { display: flex; gap: 7px; margin: 15px 0 27px; }
.clip-step { display: flex; align-items: center; justify-content: center; flex: 1; gap: 5px; min-width: 0; min-height: 35px; border-radius: 999px; border: 1px solid #5a3848; background: #2b1b25; color: #ccb0bf; font-size: 11px; }
.clip-step svg { width: 11px; height: 11px; }
.clip-step.current { border-color: #ff8ba0; background: #542434; color: #ffe9ef; }
.clip-step.unlocked { background: #432331; border-color: #995669; color: #ffd2dd; }
.guess-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 12px; }
.guess-caption label { font-size: 14px; font-weight: 600; }
.guess-caption>span { margin-left: auto; color: #cfb6c3; font-size: 12px; }
.search-icon { color: #c6a8b7; }
#song-search { color: #fff3f7; background: #170f15; border: 1px solid #845265; border-radius: 18px; font-size: 14px; }
#song-search::placeholder { color: #c1a7b4; }
#song-search:focus { outline: 0; border-color: #ff8ca1; box-shadow: 0 0 0 4px #ff657a16; }
.search-shortcut { color: #c0a0b0; border: 1px solid #715363; border-radius: 5px; }
.suggestions { background: #2e1c27; border: 1px solid #a56780; border-radius: 18px; }
.suggestion { border-radius: 12px; }
.suggestion:hover, .suggestion.selected { background: #573144; }
.suggestion small { color: #d5b9c8; }
.button { border-radius: 999px; }
.button-primary { background: var(--accent-fill); color: #fff; }
.button-primary:hover:not(:disabled) { background: #ab1d33; box-shadow: 0 5px 22px #a9213445; }
.button-primary:disabled { background: #54323f; color: #c8a5b5; opacity: 1; }
.button-secondary { background: #38202c; border-color: #93566f; color: #ffe7ef; }
.button-secondary:hover:not(:disabled) { background: #512639; border-color: #da91aa; }
.button-secondary>span { color: #e1b6c7; font-size: 10px; }
.guess-row { border: 1px solid #533541; border-radius: 14px; color: #e5cad7; }
.guess-row.empty { border-style: dashed; border-color: #65414f; color: #c7a5b7; }
.guess-row.empty.current { background: #432131; border-color: #bf758f; color: #ffe2ec; }
.guess-row.skipped { background: #33202b; }
.guess-row.wrong { background: #462032; border-color: #a55370; }
.guess-row.correct { background: #682739; border-color: #ff8ca0; color: #fff; }
.guess-row.correct svg { color: #ffb6c3; }
.game-tip { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 12px; color: #c9adbc; line-height: 1.7; margin: 20px 0 0; }
.game-tip svg { width: 16px; height: 16px; }
.next-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; color: #bfa4b4; font-size: 11px; }
.next-track time { color: #fbd7e4; font: 600 12px var(--font); font-variant-numeric: tabular-nums; }
.timezone-note { border-left: 1px solid #784c60; padding-left: 10px; font-size: 10px; }

.daily-streak { display: flex; align-items: center; gap: 15px; max-width: 740px; margin: 0 auto 24px; padding: 18px 23px; border: 1px solid #724255; border-radius: 24px; background: linear-gradient(110deg, #4a2131, #271822 75%); }
.streak-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #a62a4140; color: #ff9cad; }
.streak-icon svg { width: 24px; height: 24px; }
.daily-streak[data-active='false'] .streak-icon { background: #57313f; color: #c69fac; }
.daily-streak[data-active='true'] .streak-icon { color: #ffd1dc; background: #b42c45; box-shadow: 0 0 0 5px #ff657a10; }
.streak-stat { display: flex; flex-direction: column; white-space: nowrap; }
.streak-stat strong { font: 800 26px/1.2 var(--display); }
.streak-stat>span { font-size: 10px; color: #ffd0df; }
.daily-streak p { flex: 1; font-size: 12px; line-height: 1.6; color: #dec1ce; margin: 0; }
.streak-best { display: flex; flex-direction: column; text-align: right; border-left: 1px solid #865066; padding-left: 18px; }
.streak-best>span { color: #d6b5c6; font-size: 10px; }
.streak-best strong { font: 700 20px var(--display); }
.practice-controls { max-width: 740px; margin: 0 auto 21px; padding: 17px 24px; border: 1px solid #694153; border-radius: 26px; background: #2d1b27; }
.practice-settings { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.practice-settings label { font-size: 11px; color: #e7c6d7; font-weight: 500; }
.practice-settings select { display: block; margin-top: 7px; width: 100%; min-width: 0; height: 48px; padding: 0 13px; border-radius: 13px; border: 1px solid #975e78; color: #fff4f8; background: #1e121b; font-size: 13px; }
.practice-settings option { color: #fff4f8; background: #25141e; }
.practice-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 8px; }
.practice-summary p { color: #d6b5c8; font-size: 12px; margin: 0; }
.practice-summary button { min-height: 44px; padding: 6px 0 6px 12px; border: 0; background: transparent; color: #ffb9cb; font-size: 12px; white-space: nowrap; }
.practice-summary button:hover { text-decoration: underline; text-underline-offset: 4px; }
#practice-empty { color: #ffd1dc; font-size: 13px; margin: 14px 0 0; }
.survival-selector { display: flex; align-items: center; justify-content: center; gap: 7px; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 6px; border: 1px solid #865268; border-radius: 999px; background: #301b28; }
.survival-selector button { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 145px; min-height: 47px; padding: 9px 19px; border: 2px solid transparent; border-radius: 999px; background: transparent; font-size: 13px; color: #dfb4c9; }
.survival-selector button[aria-pressed='true'] { border-color: #ff92aa; background: #602436; color: #fff; }
.survival-selector button:hover { border-color: #cd6c8c; }
.survival-selector button svg { width: 18px; height: 18px; }
.survival-selector #barz-mode { background: #fff; }
.survival-selector #barz-mode[aria-pressed='true'] { border-color: #ff7189; box-shadow: 0 0 0 2px #ff71892a; }
.barz-logo { position: relative; display: block; width: 97px; height: 25px; overflow: hidden; }
.barz-logo img { position: absolute; width: 126px; height: auto; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.survival-start h2 { font: 700 26px/1.25 var(--display); letter-spacing: -.8px; margin: 3px 0 12px; }
.survival-start>p { font-size: 14px; color: #d2b7c6; line-height: 1.7; margin: 0 0 24px; }
#survival-start-form label, #profile-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.username-entry { display: flex; align-items: center; gap: 11px; padding: 0 17px; border: 1px solid #9d5d79; border-radius: 17px; background: #1e131b; }
.username-entry>span { color: #ffafc2; font-size: 20px; }
.username-entry input { width: 100%; min-width: 0; height: 54px; color: #fff0f6; border: 0; background: transparent; outline: 0; font-size: 16px; }
.username-entry input::placeholder { color: #c9a6b9; }
.username-entry:focus-within { border-color: #ff9fba; box-shadow: 0 0 0 4px #ff657a16; }
.name-note { color: #c5a4b7; font-size: 12px; line-height: 1.7; margin: 10px 0 21px; }
.survival-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 24px; margin-top: 27px; border-top: 1px solid #7b415a; }
.survival-rules>span { display: flex; flex-direction: column; gap: 4px; color: #d3a5bc; font-size: 11px; }
.survival-rules strong { font: 800 24px/1.2 var(--display); color: #ffe9f1; }
.survival-hud { display: flex; align-items: center; gap: 23px; border-bottom: 1px solid #7b405b; padding-bottom: 21px; margin-bottom: 21px; }
.survival-hud>div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.hud-label { font-size: 9px; letter-spacing: 1.2px; color: #d7b2c7; }
.hud-unit { display: none; }
#survival-score { font: 800 29px/1.2 var(--display); color: #ff9ab4; }
.lives { display: flex; align-items: center; gap: 5px; color: #ff849e; }
.lives svg { width: 18px; height: 18px; fill: currentColor; }
.lives .lost { color: #8b506b; }
.run-exit { min-height: 44px; margin-left: auto; padding: 8px 13px; color: #ffd0e4; border: 1px solid #a86284; background: #482438; border-radius: 999px; font-size: 12px; }
.run-exit:hover { background: #713449; }
.leaderboard { border: 1px solid #724355; border-radius: 28px; background: #261923; padding: 24px; min-width: 0; }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-heading .eyebrow { color: #d3acbd; font-size: 9px; letter-spacing: 1.2px; }
.board-heading svg { width: 18px; height: 18px; }
.leaderboard h2 { font: 800 24px/1.2 var(--display); letter-spacing: -.8px; margin: 9px 0 13px; }
.leaderboard h2 span { color: #ff95ab; }
.board-mode { color: #ffabbd; font-size: 10px; letter-spacing: 1.4px; padding-bottom: 19px; border-bottom: 1px solid #804457; }
.board-columns { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; font-size: 9px; color: #d2a6b9; }
.board-list { list-style: none; margin: 0; padding: 0; min-height: 160px; }
.board-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #6b374b; font-size: 12px; }
.board-rank { width: 18px; flex-shrink: 0; font-size: 11px; color: #dbafc4; }
.board-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.board-score { font-size: 16px; }
.board-row.you .board-name, .board-row.you .board-score { color: #ffb7cb; }
.board-empty { padding: 25px 0; color: #d6b0c3; font-size: 13px; line-height: 1.8; }
.personal-best { display: flex; align-items: center; justify-content: space-between; padding-top: 17px; border-top: 1px solid #945168; }
.personal-best>span { color: #e1bad0; font-size: 9px; letter-spacing: 1.2px; }
.personal-best strong { font: 700 24px var(--display); color: #ffb2c7; }
.board-note { color: #d0a3b9; font-size: 11px; line-height: 1.8; margin: 15px 0 0; }
.result { text-align: center; border: 1px solid #bd6a8d; border-radius: 23px; background: #4c2339; padding: 23px; margin-top: 24px; }
.result.failed { background: #391f30; border-color: #966d84; }
.result-kicker { color: #ffb4ca; font-size: 10px; font-weight: 600; letter-spacing: 1.7px; }
.result h2 { font: 700 26px/1.2 var(--display); letter-spacing: -.8px; margin: 12px 0; }
.result p { font-size: 14px; color: #e1bdcf; margin: 10px 0 18px; }
.survival-total { font: 800 38px/1.2 var(--display); color: #ffb4c8; margin: 14px 0; }
.survival-total>span { font: 500 13px var(--font); color: #d6afc2; }
.score-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #ffd2e3; }
.score-saved svg { width: 16px; height: 16px; }
.site-footer { max-width: 740px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: center; }
.deezer-credit { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #c4a4b6; font-size: 10px; }
.deezer-credit img { display: block; width: 76px; height: auto; filter: invert(1); }
dialog { border: 1px solid #ae648a; border-radius: 27px; background: #2b1a28; }
dialog .eyebrow { justify-content: flex-start; }
.distribution-bar { background: #6a3655; color: #f8d9e8; }
.distribution-bar.best { background: var(--accent-fill); color: #fff; }
.toast { background: #522d43; border: 1px solid #da8cae; border-radius: 22px; color: #ffeaf3; }

/* The same rhythm is used for real audio, run and scoreboard loading. */
.skeleton { display: block; position: relative; overflow: hidden; background: #583448; border-radius: 999px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 15%, #ffa0bf28 48%, transparent 80%); transform: translateX(-100%); animation: loading-sheen 1.65s ease-in-out infinite; }
.skeleton-line { height: 10px; width: 86%; }
.skeleton-line.short { width: 58%; }
.skeleton-kicker { width: 88px; height: 10px; margin-bottom: 18px; }
.skeleton-title { width: 65%; height: 22px; margin-bottom: 17px; }
.run-loading>.skeleton-line { margin-bottom: 12px; }
.skeleton-player-heading { display: flex; align-items: center; gap: 13px; }
.skeleton-cover { width: 43px; height: 43px; border-radius: 50%; flex-shrink: 0; }
.skeleton-player-heading>div { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.player-loading { min-height: 171px; }
.player-loading .loading-deck { min-height: 79px; margin: 14px 0 5px; }
.loading-deck { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 84px; margin: 16px 0 6px; }
.loading-deck span { width: 9px; height: 29px; border-radius: 999px; background: #f16c97; animation: loading-pulse 1.65s ease-in-out infinite; }
.loading-deck span:nth-child(2), .loading-deck span:nth-child(4) { height: 43px; animation-delay: .12s; }
.loading-deck span:nth-child(3) { height: 57px; animation-delay: .24s; }
.loading-deck span:nth-child(5) { animation-delay: .36s; }
.loading-caption, #run-loading-message { display: block; text-align: center; color: #e5b9d0; font-size: 12px; margin: 7px 0 0; }
.run-loading { display: flex; flex-direction: column; min-height: 370px; padding: 8px 0; }
.run-loading .loading-deck { flex: 1; }
.board-skeleton { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #65334b; }
.board-skeleton .skeleton { height: 11px; flex: 1; }
.board-skeleton .skeleton:first-child { flex: 0 0 18px; }
.board-skeleton .skeleton:last-child { flex: 0 0 23px; }
.is-loading { cursor: progress; }
.button.is-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid #fff4; border-top-color: #fff; border-radius: 50%; animation: loading-spin .9s linear infinite; }
@keyframes loading-sheen { 0% { transform: translateX(-100%); } 65%, 100% { transform: translateX(100%); } }
@keyframes loading-pulse { 0%, 100% { transform: scaleY(.65); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes enter-view { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.site-header { animation: enter-view 320ms ease-out both; }
.intro { animation: enter-view 330ms 70ms ease-out both; }
.workspace { animation: enter-view 330ms 130ms ease-out both; }
.intro.view-enter, .workspace.view-enter { animation: enter-view 250ms ease-out both; }

@media (max-width: 1000px) {
  .site-header { padding: 22px 28px; } main { padding: 18px 28px 36px; }
  .workspace.is-survival { grid-template-columns: minmax(0, 1fr) 275px; gap: 22px; }
  .game { padding: 24px; } .leaderboard { padding: 22px; }
}
@media (max-width: 820px) {
  .workspace.is-survival { grid-template-columns: minmax(0, 1fr); max-width: 740px; }
  .brand { font-size: 27px; }
  .site-header { gap: 20px; }
  .mode { min-width: 105px; padding: 9px 12px; font-size: 12px; }
  h1 { font-size: 36px; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px 19px; gap: 15px; }
  .brand { font-size: 24px; letter-spacing: -1px; }
  .mode-switch { gap: 2px; padding: 4px; }
  .mode { min-width: 46px; width: 46px; height: 48px; padding: 6px 2px; flex-direction: column; gap: 4px; font-size: 10px; }
  .mode svg { width: 17px; height: 17px; }
  main { padding: 12px 19px 26px; }
  .utility-row { margin-bottom: 12px; gap: 10px; }
  .section-marker { font-size: 8px; letter-spacing: 1.5px; }
  .profile-button { max-width: 165px; font-size: 10px; padding: 8px 11px; }
  .profile-button svg { width: 15px; height: 15px; }
  .account-tools { gap: 3px; }
  .intro { text-align: left; margin-bottom: 24px; }
  .intro .eyebrow { justify-content: flex-start; font-size: 9px; }
  h1 { font-size: 31px; letter-spacing: -1px; margin: 10px 0 13px; }
  .intro p { font-size: 14px; line-height: 1.65; }
  .game { border-radius: 25px; padding: 17px; }
  .game-topline { gap: 6px; margin-bottom: 14px; }
  .track-id, .game-topline #date-label { font-size: 9px; }
  .new-practice { font-size: 11px; padding: 6px 10px; }
  .player { border-radius: 20px; padding: 14px; }
  .player-heading { gap: 10px; }
  .mystery-title { font-size: 13px; }
  .player-subtitle { font-size: 12px; }
  .secret-cover { width: 36px; height: 36px; }
  .audio-badge { display: none; }
  .audio-main { margin: 19px 0 6px; gap: 16px; }
  .play-button { width: 48px; height: 48px; }
  .waveform { gap: 2px; }
  .audio-footer { font-size: 10px; gap: 5px; }
  .audio-footer>span:first-child { font-size: 9px; }
  .clip-steps { gap: 5px; margin-bottom: 25px; }
  .clip-step { min-height: 44px; font-size: 10px; gap: 3px; }
  .clip-step svg { width: 10px; height: 10px; }
  #song-search { font-size: 16px; padding-left: 41px; padding-right: 15px; }
  .search-icon { left: 14px; width: 17px; }
  .search-shortcut { display: none; }
  .game-actions { gap: 9px; }
  .game-actions .button { font-size: 13px; padding: 11px 8px; gap: 6px; }
  .game-actions .button-secondary svg { display: none; }
  .button-secondary>span { font-size: 10px; }
  .guess-caption label { font-size: 13px; }
  .guess-caption>span { font-size: 11px; }
  .guess-row { padding: 8px 11px; }
  .game-tip { font-size: 11px; }
  .daily-streak { padding: 16px; gap: 11px; border-radius: 22px; margin-bottom: 23px; flex-wrap: wrap; }
  .streak-stat strong { font-size: 24px; }
  .daily-streak p { order: 4; flex-basis: 100%; font-size: 12px; margin-top: 2px; }
  .streak-best { margin-left: auto; }
  .practice-controls { padding: 15px 18px; border-radius: 24px; }
  .practice-settings { grid-template-columns: 1fr 1fr; gap: 10px 11px; }
  .practice-settings label:first-child { grid-column: 1 / -1; }
  .practice-settings label { font-size: 12px; }
  .practice-settings select { height: 48px; font-size: 16px; padding-left: 11px; }
  .practice-summary { gap: 10px; align-items: flex-start; }
  .practice-summary p { font-size: 11px; }
  .practice-summary button { font-size: 11px; padding-left: 0; }
  .survival-selector { width: 100%; gap: 5px; margin-bottom: 24px; }
  .survival-selector button { flex: 1; min-width: 0; }
  .survival-start h2 { font-size: 23px; }
  .survival-start>p { font-size: 14px; margin-bottom: 22px; }
  .survival-rules { gap: 8px; margin-top: 24px; padding-top: 22px; }
  .survival-rules strong { font-size: 23px; }
  .survival-rules>span { font-size: 10px; }
  .survival-hud { gap: 17px; }
  #survival-score { font-size: 27px; }
  .lives svg { width: 16px; height: 16px; }
  .run-exit { font-size: 11px; padding: 7px 10px; }
  .leaderboard { padding: 23px; border-radius: 25px; }
  .board-empty { font-size: 14px; }
  .board-note { font-size: 12px; }
  .result { padding: 19px; }
  .result-buttons .button { padding: 11px 8px; font-size: 12px; }
  .timezone-note { font-size: 9px; }
}
@media (max-width: 380px) {
  .site-header { padding: 15px 15px; gap: 10px; }
  .brand { font-size: 22px; }
  .mode { min-width: 44px; width: 44px; }
  main { padding: 11px 15px 25px; }
  .profile-button { max-width: 135px; }
  .game { padding: 15px; }
  h1 { font-size: 29px; }
  .audio-footer { font-size: 9px; }
  .clip-step { font-size: 9px; gap: 2px; }
  .game-actions .button { font-size: 12px; }
  .survival-hud { gap: 12px; }
  .run-exit { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
  .skeleton::after { display: none; }
  .loading-deck span { opacity: .8; }
}
