:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --ink: #293127;
  --muted: #6b7164;
  --line: #d9ddce;
  --orange: #e66b47;
  --green: #657d50;
  --panel: #f8f8f0;
  --selected: #e1e7d4;
  --button-fill: #293127;
  --button-ink: #fff8ed;
  --button-hover: #43513a;
  --ground-label: #626f51;
  --focus: #355d36;
}
* { box-sizing: border-box; }
body::before { content: ""; position: fixed; inset: 0; z-index: 1; background: #050912; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
body.playing::before { opacity: .72; }
.game, .controls, .audio-controls { position: relative; z-index: 2; }
body.playing .controls, body.playing .audio-controls { background: var(--panel); box-shadow: 0 0 0 10px var(--panel); border-radius: 4px; }
body.playing .game { box-shadow: 0 12px 65px #0008; }
.controls { flex-wrap: wrap; }
.duck-button { background: var(--selected); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
button:disabled { cursor: default; opacity: .35; }
.page-shell { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.site-header { height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { font-size: 29px; font-weight: 850; letter-spacing: -2px; color: var(--ink); text-decoration: none; }
.wordmark span { margin-left: 3px; color: var(--orange); }
.edition, .local-badge, .eyebrow, .stat-label, .overlay-eyebrow, .landscape-label, .site-footer { font-size: 10px; font-weight: 650; letter-spacing: 1.5px; }
.edition { margin-right: auto; color: var(--muted); }
.edition-number { margin-left: 10px; color: var(--muted); }
.local-badge { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2px; }
.local-badge > span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.intro { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 24px; }
.eyebrow { margin: 0 0 3px 4px; font-size: 10px; letter-spacing: 2px; }
h1 { margin: 0; font-family: "Arial Black", "Avenir Next", sans-serif; font-weight: 950; font-size: clamp(72px, 8vw, 84px); letter-spacing: -6px; line-height: 1.04; white-space: nowrap; }
h1 span { display: inline-block; margin-left: 4px; color: var(--orange); transform: rotate(9deg); }
.intro-copy { font-size: 14px; line-height: 1.8; padding-top: 18px; color: var(--muted); }
.game { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.scoreboard { height: 83px; display: flex; align-items: center; padding: 0 30px; gap: 30px; border-bottom: 1px solid var(--line); background: var(--panel); }
.stat { min-width: 115px; display: flex; flex-direction: column; gap: 2px; }
.score-stat { border-right: 1px solid var(--line); padding-right: 28px; }
.stat-label { color: var(--muted); font-size: 9px; letter-spacing: 1.4px; }
.stat-value { font: 650 29px/1.2 "Avenir Next", "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.muted { color: var(--muted); }
.tempo-stat { margin-left: auto; min-width: auto; }
.tempo-stat.boosting .tempo-value { color: var(--orange); }
.tempo-stat.boosting .stat-label::after { content: " ↗ BOOST"; color: var(--orange); }
.tempo-value { display: flex; align-items: center; gap: 3px; font-size: 24px; font-weight: 650; line-height: 1.45; font-variant-numeric: tabular-nums; }
.times { font-size: 18px; }
.speed-bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-left: 11px; }
.speed-bars i { display: block; width: 4px; height: 6px; background: var(--line); border-radius: 1px; }
.speed-bars i:nth-child(2) { height: 9px; }.speed-bars i:nth-child(3) { height: 12px; }.speed-bars i:nth-child(4) { height: 15px; }.speed-bars i:nth-child(5) { height: 18px; }
.speed-bars i.on { background: var(--orange); }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; margin-left: 2px; }
.icon-button:not(:disabled):hover { background: var(--selected); }
.stage { position: relative; background: #e8eddb; aspect-ratio: 2.8/1; isolation: isolate; }
canvas { width: 100%; height: 100%; display: block; touch-action: manipulation; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.overlay[hidden] { display: none; }
.overlay-content { text-align: center; padding: 16px 28px 22px; border-radius: 15px; background: var(--panel); pointer-events: auto; }
.overlay-eyebrow { font-size: 8px; letter-spacing: 1.7px; color: var(--muted); }
h2 { margin: 9px 0 7px; font-size: 36px; line-height: 1.1; letter-spacing: -1.6px; font-weight: 800; }
.overlay-content p { color: var(--muted); font-size: 12px; margin: 0 0 19px; }
.primary-button { min-height: 44px; min-width: 168px; padding: 11px 19px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--button-fill); color: var(--button-ink); border: 0; border-radius: 6px; font-size: 12px; font-weight: 650; }
.primary-button:hover { background: var(--button-hover); }
.primary-button > span:last-child { font-size: 21px; line-height: 1; }
.overlay-hint { display: block; font-size: 9px; color: var(--muted); margin-top: 12px; }
.landscape-label { position: absolute; top: 20px; right: 25px; color: var(--ground-label); font-size: 7px; letter-spacing: 2px; pointer-events: none; }
.point-pop { position: absolute; top: 40%; left: 18%; color: var(--ground-label); font-size: 22px; font-weight: 800; opacity: 0; pointer-events: none; }
.point-pop.pop { animation: point .65s ease-out; }
@keyframes point { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-35px); } }
.game-footer { height: 43px; padding: 0 25px; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); }
.game-status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.status-dot.over { background: var(--orange); }
.controls { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.keyboard-hint { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.key { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 28px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 7px; background: var(--panel); font: 10px "Avenir Next", sans-serif; }
.space-key { min-width: 78px; }.arrow-key { font-size: 17px; }
.or { font-size: 9px; color: var(--muted); }.control-description { margin-left: 4px; color: var(--muted); }
.jump-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border-radius: 6px; background: transparent; border: 1px solid var(--line); padding: 0 15px; font-size: 11px; font-weight: 600; touch-action: manipulation; }
.jump-button:hover, .jump-button:active { background: var(--selected); }
.jump-button > span:first-child { font-size: 24px; font-weight: 400; }
.tap-label { color: var(--muted); font-size: 10px; font-weight: 400; }
.pause-hint { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.rules { display: flex; gap: 35px; margin: 28px 0 36px; }
.rules p { color: var(--muted); font-size: 10px; margin: 0; }.rules p span { color: var(--orange); font-size: 9px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.site-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 22px 0 28px; font-size: 8px; color: var(--muted); letter-spacing: 1px; }
.site-footer > span:last-child { font-size: 10px; letter-spacing: 0; }.site-footer > span:last-child span { color: var(--orange); padding-left: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { text-align: center; color: var(--orange); }
.name-field { display: grid; gap: 6px; margin: 0 auto 15px; max-width: 250px; text-align: left; }
.name-field[hidden] { display: none; }
.name-field label { font-size: 11px; font-weight: 650; }
.name-field input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.name-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#name-hint { font-size: 9px; color: var(--muted); }
.overlay-content { max-width: min(420px, calc(100% - 24px)); }
.overlay-content p { overflow-wrap: anywhere; }
.game-status { min-width: 0; }
#status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard { margin: 30px 0; padding: 22px 25px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.leaderboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.leaderboard-heading h2 { font-size: 23px; letter-spacing: -.7px; margin: 0; }
#leaderboard-count { font-size: 10px; color: var(--muted); white-space: nowrap; }
.leaderboard-note { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 9px 0 0; }
#leaderboard-empty { font-size: 13px; color: var(--muted); padding: 18px 0; }
.leaderboard table { border-collapse: collapse; width: 100%; margin: 15px 0; table-layout: fixed; }
.leaderboard th, .leaderboard td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.leaderboard th { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.leaderboard th:first-child { width: 55px; }.leaderboard th:nth-child(3) { width: 100px; }.leaderboard th:last-child { width: 75px; }
.leaderboard td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.leaderboard td:last-child, .leaderboard th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.leaderboard td:last-child { font-weight: 750; }
.latest-score { background: var(--selected); }
@media (max-width: 700px) {
  .stage:has(#name-field:not([hidden])) { height: 380px; aspect-ratio: auto; }
  .leaderboard { padding: 17px 12px; }.leaderboard-heading h2 { font-size: 20px; }
  .leaderboard th, .leaderboard td { padding: 10px 5px; font-size: 10px; }.leaderboard th { font-size: 8px; }
  .leaderboard th:first-child { width: 42px; }.leaderboard th:nth-child(3) { width: 65px; }.leaderboard th:last-child { width: 51px; }
}
.audio-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -10px 0 28px; font-size: 11px; color: var(--muted); }
.audio-controls button, .music-picker { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); min-height: 44px; padding: 12px; cursor: pointer; }
.music-picker { position: relative; overflow: hidden; }
.music-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.music-picker:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.volume-label { display: flex; align-items: center; gap: 8px; }
.volume-label input { width: 90px; min-height: 44px; accent-color: var(--orange); }
#music-status { flex-basis: 100%; overflow-wrap: anywhere; }
.character-picker { min-width: 0; margin: 0; padding: 15px 25px 13px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.character-picker legend { float: left; width: 100%; padding: 0; margin-bottom: 9px; font-size: 8px; letter-spacing: 1.5px; color: var(--muted); font-weight: 650; }
.character-options { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.character-option { position: relative; min-width: 0; cursor: pointer; }
.character-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.character-choice { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 54px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; color: var(--muted); font-size: 11px; }
.character-choice canvas { width: 38px; height: 43px; flex-shrink: 0; }
.character-option input:checked + .character-choice { background: var(--selected); color: var(--ink); border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); font-weight: 700; }
.character-option input:focus-visible + .character-choice { outline: 3px solid var(--focus); outline-offset: 3px; }
.character-option:hover input:not(:disabled) + .character-choice { background: var(--selected); }
.character-picker:disabled .character-option { cursor: default; }
.character-picker:disabled .character-option input:not(:checked) + .character-choice { opacity: .5; }
.character-picker:disabled legend::after { content: " · WECHSELN IN DER PAUSE"; font-weight: 400; letter-spacing: .7px; }
@media (min-width: 1500px) { .page-shell { padding-top: 18px; } .intro { padding-top: 45px; padding-bottom: 35px; } }
@media (max-width: 700px) {
  .page-shell { padding: 0 20px; }.site-header { height: 72px; gap: 16px; }.edition { font-size: 8px; letter-spacing: .8px; }.edition-number { display: none; }.local-badge { display: none; }
  .intro { display: block; padding: 24px 0 22px; }.eyebrow { font-size: 7px; letter-spacing: 1.2px; margin-left: 2px; }h1 { font-size: 76px; letter-spacing: -6px; }.intro-copy { font-size: 11px; max-width: none; padding: 0; margin: 10px 0 0; }.intro-copy br { display: none; }
  .scoreboard { height: 76px; gap: 12px; padding: 0 17px; }.stat { min-width: 74px; }.score-stat { padding-right: 15px; }.stat-label { font-size: 7px; letter-spacing: .9px; }.stat-value { font-size: 26px; }.tempo-stat { min-width: auto; }.tempo-value { font-size: 21px; }.speed-bars { display: none; }.icon-button { margin: 0; }
  .stage { aspect-ratio: 4/3; }.overlay { align-items: start; padding-top: 25px; }.overlay-content { padding: 12px 18px 14px; max-width: calc(100% - 24px); }h2 { font-size: 28px; }.overlay-eyebrow { font-size: 7px; }.overlay-content p { font-size: 11px; margin-bottom: 12px; }.overlay-hint { display: none; }
  .character-picker { padding: 12px 12px 11px; }.character-picker legend { font-size: 7px; letter-spacing: 1px; }.character-options { gap: 5px; }.character-choice { flex-direction: column; gap: 3px; padding: 5px 1px; font-size: 8px; min-height: 67px; }.character-choice canvas { width: 33px; height: 40px; }
  .landscape-label { top: 15px; right: 15px; font-size: 6px; }.game-footer { padding: 0 14px; font-size: 9px; }.highscore-note { display: none; }
  .controls { flex-wrap: wrap; gap: 17px 10px; margin-top: 15px; }.jump-button { order: -1; width: calc(50% - 5px); min-height: 49px; background: var(--selected); }.jump-button .tap-label { display: none; }.keyboard-hint { gap: 5px; font-size: 10px; }.control-description { font-size: 10px; }.key { height: 26px; min-width: 26px; padding: 0 5px; }.space-key { min-width: 66px; }.pause-hint { font-size: 9px; gap: 5px; }
  .rules { flex-direction: column; gap: 12px; margin: 26px 0; }.rules p { font-size: 11px; }.site-footer { font-size: 7px; gap: 15px; align-items: flex-start; line-height: 1.6; }.site-footer > span:last-child { max-width: 133px; text-align: right; font-size: 8px; }
}
@media (max-width: 370px) { .page-shell { padding: 0 13px; }.intro-copy { font-size: 10px; }h1 { font-size: 66px; }.scoreboard { padding: 0 12px; gap: 10px; }.stat { min-width: 66px; }.score-stat { padding-right: 10px; }.tempo-stat { min-width: auto; }.overlay-content { padding: 12px; }h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
