/* The Unfair Platformer 2.0 — Oberfläche */
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/pixelify-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #0b0716; --panel: rgba(20, 13, 40, .9); --panel2: rgba(34, 23, 64, .92);
  --line: rgba(255, 255, 255, .13); --txt: #f6f1ff; --dim: #a99ecb;
  --acc: #ffd36b; --acc-d: #c98f1d; --hot: #ff4f7a; --ok: #6be38a; --cyan: #46e0ff;
  --u: 1; --sh: 0 4px 0 rgba(0, 0, 0, .55);
  --font: 'Pixelify Sans', ui-monospace, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'clig' 0; margin: 0; height: 100%; background: var(--bg); color: var(--txt); font-family: var(--font); overflow: hidden; overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
body { background: radial-gradient(ellipse at 50% 30%, #1b1035 0%, #0b0716 60%, #050309 100%); }
button, input { font-family: inherit; font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'clig' 0; }
kbd { display: inline-block; min-width: 1.7em; padding: .05em .45em; margin: 0 .1em; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-family: inherit; font-size: .9em; text-align: center; }
.dim { color: var(--dim); } .small { font-size: 13px; } .center { text-align: center; } .c-acc { color: var(--acc); }

/* ── Bühne ─────────────────────────────────────────────── */
#stage { position: fixed; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
#c { width: 100%; height: 100%; display: block; image-rendering: auto; }

/* ── HUD ───────────────────────────────────────────────── */
#hud { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: max(6px, calc(var(--u) * 10px)); pointer-events: none; opacity: 0; transition: opacity .3s; font-size: max(11px, calc(var(--u) * 15px)); }
body.playing #hud { opacity: 1; }
.hud-l, .hud-r { display: flex; align-items: center; gap: max(4px, calc(var(--u) * 6px)); min-width: 0; }
.hud-l { flex: 1 1 auto; }
#hud-name { color: rgba(255, 255, 255, .78); text-shadow: 0 2px 0 rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .25em .6em; border-radius: 8px; background: rgba(8, 5, 18, .62); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.dim { color: var(--dim); }
.chip-acc { background: var(--acc); color: #2a1a00; font-weight: 700; border-color: transparent; }
.chip-btn { pointer-events: auto; cursor: pointer; color: var(--txt); font-size: inherit; letter-spacing: -.1em; padding: .25em .7em; }
.chip-btn:hover { background: rgba(255, 255, 255, .15); }
body.no-timer .timer { display: none; }

#hud-hint { position: absolute; left: 50%; top: 16%; transform: translate(-50%, -10px); font-size: max(13px, calc(var(--u) * 20px)); font-weight: 700; color: var(--ok); text-shadow: 0 3px 0 rgba(0, 0, 0, .6); opacity: 0; transition: .25s; pointer-events: none; }
#hud-hint.show { opacity: 1; transform: translate(-50%, 0); }

#quip { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%) scale(.8); max-width: 86%; padding: .4em .9em; border-radius: 10px; background: rgba(10, 4, 20, .78); border: 2px solid var(--hot); color: #fff; font-size: max(13px, calc(var(--u) * 19px)); font-weight: 700; text-align: center; opacity: 0; pointer-events: none; }
#quip.show { animation: quip 1.8s ease-out forwards; }
@keyframes quip { 0% { opacity: 0; transform: translateX(-50%) scale(.6) rotate(-3deg); } 12% { opacity: 1; transform: translateX(-50%) scale(1.08) rotate(1deg); } 20% { transform: translateX(-50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

#banner { position: absolute; left: 0; right: 0; top: 24%; text-align: center; pointer-events: none; opacity: 0; }
#banner.show { animation: banner 2.9s ease forwards; }
#banner-a { display: inline-block; padding: .1em .6em; border-radius: 6px; background: var(--acc); color: #2a1a00; font-weight: 700; font-size: max(12px, calc(var(--u) * 16px)); letter-spacing: .1em; }
#banner-b { margin-top: .3em; font-size: max(20px, calc(var(--u) * 38px)); font-weight: 700; text-shadow: 0 4px 0 rgba(0, 0, 0, .55), 0 0 30px rgba(0, 0, 0, .6); padding: 0 6%; line-height: 1.1; }
#banner-c { margin-top: .5em; font-size: max(12px, calc(var(--u) * 17px)); color: rgba(255, 255, 255, .85); text-shadow: 0 2px 0 rgba(0, 0, 0, .7); padding: 0 8%; }
@keyframes banner { 0% { opacity: 0; transform: translateY(14px); } 10% { opacity: 1; transform: translateY(0); } 78% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-14px); } }

/* ── Touch ─────────────────────────────────────────────── */
#touch { position: fixed; inset: 0; display: none; z-index: 5; touch-action: none; pointer-events: none; }
.tz { position: absolute; bottom: 0; top: 18%; pointer-events: auto; touch-action: none; }
.tz-move { left: 0; width: 50%; }
.tz-jump { right: 0; width: 50%; }
body:not(.touch-on) #btn-full, body.is-full #btn-full { display: none; }
body.touch-on #touch { display: block; }
body:not(.playing) #touch { display: none !important; }
#touch { --b: 74px; }
body[data-btn="s"] #touch { --b: 60px; } body[data-btn="l"] #touch { --b: 92px; }
.tpad { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 12px; pointer-events: none; }
.tbtn { width: var(--b); height: var(--b); border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--b) * .38); color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .22); touch-action: none; pointer-events: none; transition: transform .06s, background .06s, opacity .3s; }
.tz.on .tbtn { opacity: .95; }
.tbtn.on { background: rgba(255, 211, 107, .45); border-color: var(--acc); transform: scale(.93); }
.tjump { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: calc(var(--b) * 1.22); height: calc(var(--b) * 1.22); }

/* ── Bildschirme ───────────────────────────────────────── */
.screen { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); }
.screen.show { display: flex; animation: fade .22s ease; }
.screen-dark { background: rgba(6, 3, 14, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.screen-dim { background: rgba(6, 3, 14, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.panel { position: relative; width: 100%; max-height: 100%; overflow: auto; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 30px 80px rgba(0, 0, 0, .5); animation: pop .28s cubic-bezier(.2, 1.4, .4, 1); scrollbar-width: thin; }
.panel-narrow { max-width: 460px; text-align: center; }
.panel-wide { max-width: 980px; }
.panel-intro { max-width: 620px; }
@keyframes pop { from { transform: scale(.92) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: .06em; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.sub { margin: 4px 0 10px; color: #ddd3f5; }
.phead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 16px; text-align: center; }
.phead > :first-child { justify-self: start; }
.phead h2 { margin: 0; font-size: 24px; }
.phead .sub { margin: 2px 0 0; font-size: 14px; }

/* ── Knöpfe ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .2em; padding: 11px 18px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .16); background: #2c2050; color: var(--txt); font-size: 17px; font-weight: 700; letter-spacing: .04em; cursor: pointer; box-shadow: var(--sh); transition: transform .08s, background .12s, border-color .12s, box-shadow .08s; outline: none; }
.btn:hover, .btn:focus-visible { background: #3d2c6e; border-color: var(--acc); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 211, 107, .25); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .55); }
.btn-acc { background: linear-gradient(180deg, #ffe08a, var(--acc) 50%, #f0b53c); color: #2a1600; border-color: #fff2c4; }
.btn-acc:hover, .btn-acc:focus-visible { background: linear-gradient(180deg, #fff0b8, #ffdb7d 50%, #ffc34d); border-color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--dim); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .07); color: var(--txt); box-shadow: none; }
.btn-warn { background: #5a3a12; border-color: #b8812f; }
.btn-danger { background: #5a1426; border-color: #c43d5e; }
.btn-danger:hover, .btn-danger:focus-visible { background: #7a1a34; border-color: #ff6a8c; }
.btn-big { font-size: 22px; padding: 14px 26px; }
.btn-sm { font-size: 14px; padding: 8px 12px; }
.btn-tog { min-width: 140px; background: #1f1740; }
.menu { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.menu-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ── Titel ─────────────────────────────────────────────── */
#scr-title { background: linear-gradient(90deg, rgba(6, 3, 14, .88) 0%, rgba(6, 3, 14, .62) 38%, rgba(6, 3, 14, .05) 70%), linear-gradient(0deg, rgba(6, 3, 14, .6), transparent 30%); justify-content: flex-start; padding-left: max(5vw, 20px); }
.title-wrap { max-width: 440px; width: 100%; }
.logo { margin: 0; line-height: .9; display: inline-grid; position: relative; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .55)); }
.logo-a { font-size: 22px; letter-spacing: .5em; color: var(--dim); }
.logo-b { font-size: clamp(52px, 9vw, 88px); color: var(--hot); letter-spacing: .02em; animation: wobble 4s ease-in-out infinite; transform-origin: 30% 60%; text-shadow: 4px 0 0 #a61d4a, 0 0 40px rgba(255, 79, 122, .45); }
.logo-c { font-size: clamp(28px, 4.6vw, 44px); color: var(--txt); letter-spacing: .04em; }
.logo-v { position: absolute; right: -34px; top: 14px; font-size: 26px; padding: 2px 10px; border-radius: 8px; background: var(--acc); color: #2a1600; transform: rotate(8deg); animation: badge 2.4s ease-in-out infinite; box-shadow: 0 4px 0 rgba(0, 0, 0, .5); }
@keyframes wobble { 0%, 86%, 100% { transform: none; } 88% { transform: rotate(-4deg) translateX(-3px); } 91% { transform: rotate(3deg) translateX(3px); } 94% { transform: rotate(-1deg); } }
@keyframes badge { 0%, 100% { transform: rotate(8deg) scale(1); } 50% { transform: rotate(4deg) scale(1.08); } }
.tagline { margin: 10px 0 6px; color: var(--acc); font-size: 18px; }
#scr-title .menu { max-width: 340px; }
#scr-title .btn { justify-content: flex-start; }
.title-stats { margin-top: 16px; color: var(--dim); font-size: 14px; }
.title-foot { position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); left: max(5vw, 20px); margin: 0; font-size: 13px; color: var(--dim); }
.title-foot a { color: var(--acc); text-decoration: none; }

/* ── Intro ─────────────────────────────────────────────── */
#intro-lines p { font-size: 20px; margin: 10px 0; opacity: 0; }
#intro-lines.run p { animation: line .5s ease forwards; }
#intro-lines.run p:nth-child(1) { animation-delay: .1s; } #intro-lines.run p:nth-child(2) { animation-delay: .8s; } #intro-lines.run p:nth-child(3) { animation-delay: 1.5s; }
#intro-lines.run p:nth-child(4) { animation-delay: 2.3s; } #intro-lines.run p:nth-child(5) { animation-delay: 3.2s; }
#intro-lines .warn { color: var(--hot); font-weight: 700; }
@keyframes line { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.keys { margin: 18px 0 6px; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); display: grid; gap: 8px; font-size: 15px; }

/* ── Welten ────────────────────────────────────────────── */
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wcard { position: relative; min-height: 150px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .14); color: #fff; cursor: pointer; overflow: hidden; box-shadow: var(--sh); transition: transform .1s, border-color .1s, box-shadow .1s; outline: none; font-size: 14px; }
.wcard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .65)); z-index: 0; }
.wcard > * { position: relative; z-index: 1; }
.wcard:hover, .wcard:focus-visible { transform: translateY(-3px) scale(1.02); border-color: var(--acc); box-shadow: 0 7px 0 rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 211, 107, .3); }
.wcard.locked { filter: grayscale(.85) brightness(.55); cursor: not-allowed; }
.wnum { font-size: 12px; letter-spacing: .2em; opacity: .8; }
.wname { font-size: 22px; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.wsub { font-size: 13px; opacity: .85; }
.wbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 6px; }
.wbar i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.wmeta { font-size: 12px; opacity: .85; }
.badge-new { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 6px; background: var(--hot); font-size: 12px; font-weight: 700; animation: badge 2s ease-in-out infinite; }
.th-meadow.wcard { background: linear-gradient(160deg, #f39a5f 0%, #c4606a 35%, #4b2f6e 70%, #2a5a2a 100%); }
.th-cave.wcard { background: linear-gradient(160deg, #46e0ff 0%, #7c5cff 30%, #24163f 75%, #0d0618 100%); }
.th-factory.wcard { background: linear-gradient(160deg, #ff7a1a 0%, #5a3a22 40%, #262a33 80%); }
.th-glacier.wcard { background: linear-gradient(160deg, #e9f2ff 0%, #8fe3ff 25%, #1d4a7c 65%, #071a36 100%); }
.th-abyss.wcard { background: linear-gradient(160deg, #ffb347 0%, #ff4a10 25%, #6b1a06 55%, #1e0303 100%); }
.th-patch.wcard { background: linear-gradient(160deg, #22e6ff 0%, #ff2bd6 35%, #2b0045 75%, #04000c 100%); }

/* ── Level ─────────────────────────────────────────────── */
.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lcard { position: relative; min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); background: #241a45; color: var(--txt); text-align: left; cursor: pointer; box-shadow: var(--sh); transition: transform .1s, border-color .1s; outline: none; font-size: 13px; }
.lcard:hover, .lcard:focus-visible { transform: translateY(-2px); border-color: var(--acc); box-shadow: 0 6px 0 rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 211, 107, .25); }
.lnum { font-size: 28px; font-weight: 700; line-height: 1; }
.lname { font-size: 13px; line-height: 1.2; color: #e2d9fa; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lmeta { margin-top: auto; font-size: 12px; color: var(--dim); }
.lcard.done { background: linear-gradient(180deg, #23452f, #1b3324); border-color: rgba(107, 227, 138, .4); }
.lcard.done .lnum { color: var(--ok); }
.lcard.skipped { background: #3a2a14; border-color: rgba(201, 143, 29, .4); }
.lcard.locked { opacity: .4; cursor: not-allowed; }
.crown { position: absolute; top: 8px; right: 10px; font-size: 18px; }

/* ── Einstellungen ─────────────────────────────────────── */
.set-list { display: grid; gap: 10px; text-align: left; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 16px; }
.set-inline { margin-top: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 170px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 6px; background: var(--acc); border: 2px solid #fff2c4; cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 6px; background: var(--acc); border: 2px solid #fff2c4; cursor: pointer; }
input[type=range]:focus-visible { box-shadow: 0 0 0 3px rgba(255, 211, 107, .4); }
input[type=text] { font-family: inherit; font-size: 17px; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--txt); outline: none; min-width: 0; flex: 1; user-select: text; -webkit-user-select: text; }
input[type=text]:focus { border-color: var(--acc); }

.help { text-align: left; display: grid; gap: 8px; }
.hrow { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .2); font-size: 15px; }

.stats { text-align: left; max-height: 60vh; }
.srow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.srow b { font-weight: 400; } .srow span { color: var(--dim); text-align: right; }
.sh { margin: 14px 0 4px; font-size: 13px; letter-spacing: .15em; color: var(--acc); }
.ach-off { opacity: .45; }
.scroll { overflow: auto; scrollbar-width: thin; }

/* ── Level geschafft ───────────────────────────────────── */
.panel-clear { overflow: visible; }
.crown-big { font-size: 46px; line-height: 1; margin: -6px 0 4px; animation: badge 1.6s ease-in-out infinite; }
h2.pop { font-size: 38px; color: var(--acc); animation: bounce .6s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes bounce { from { transform: scale(.3); } to { transform: none; } }
.clear-stats { display: flex; justify-content: center; gap: 14px; margin: 12px 0 6px; }
.clear-stats > div { min-width: 120px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); display: grid; gap: 2px; }
.clear-stats .lbl { font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.clear-stats .big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wc-stats { font-size: 18px; line-height: 1.6; }
.note { color: var(--ok); font-weight: 700; }
.name-row { margin: 8px 0; }

/* ── Bestenliste ───────────────────────────────────────── */
.lb-list { max-height: 44vh; margin: 8px 0; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.lb-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); text-align: left; font-size: 15px; }
.lb-row.top { font-weight: 700; }
.lb-row.me { background: rgba(255, 211, 107, .14); }
.lb-rank { text-align: center; } .lb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-c { color: var(--ok); } .lb-d { color: var(--dim); }
.lb-empty { padding: 22px; color: var(--dim); text-align: center; }
.lb-form { display: flex; gap: 8px; }

/* ── Meldungen ─────────────────────────────────────────── */
#toasts { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 30; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 230px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(180deg, #3a2a10, #24180a); border: 2px solid var(--acc); box-shadow: 0 5px 0 rgba(0, 0, 0, .5); transform: translateX(120%); transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); }
.toast.show { transform: none; }
.toast-h { font-size: 12px; color: var(--acc); letter-spacing: .08em; }
.toast-n { font-size: 18px; font-weight: 700; }
.toast-d { font-size: 13px; color: #e9dcc0; }
.nojs { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; }

/* ── App-Anleitung ──────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 10px; text-align: left; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 16px; }
.sn { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #2a1600; font-weight: 700; }
.ios-share { width: 22px; height: 22px; vertical-align: -5px; color: #4fa3ff; }

/* ── Hochformat-Hinweis ────────────────────────────────── */
#rotate { position: fixed; inset: 0; z-index: 8; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: rgba(6, 3, 14, .92); font-size: 18px; }
.rot-icon { font-size: 54px; animation: rot 2.2s ease-in-out infinite; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (pointer: coarse) { body.playing:not(.rotate-ok) #rotate { display: flex; } }
@media (max-width: 560px) { #hud-name, #hud .chip.dim { display: none; } }

/* ── Kleine Bildschirme ────────────────────────────────── */
@media (max-width: 760px) {
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .wcard { min-height: 118px; }
  .lcard { min-height: 88px; }
  .panel { padding: 16px; }
  #scr-title { justify-content: center; padding-left: 16px; background: linear-gradient(0deg, rgba(6, 3, 14, .9) 0%, rgba(6, 3, 14, .55) 60%, rgba(6, 3, 14, .25)); }
  .title-wrap { text-align: center; }
  #scr-title .menu { margin: 14px auto 0; }
  #scr-title .btn { justify-content: center; }
  .logo-v { right: -26px; }
  .title-foot { left: 0; right: 0; text-align: center; }
  .hrow { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-height: 520px) {
  .panel { padding: 12px 16px; }
  h2 { font-size: 22px; } h2.pop { font-size: 28px; }
  .menu { gap: 6px; margin-top: 8px; }
  .btn { padding: 7px 14px; font-size: 15px; } .btn-big { font-size: 18px; padding: 10px 20px; }
  .logo-b { font-size: 48px; } .logo-c { font-size: 26px; } .logo-a { font-size: 16px; } .logo-v { font-size: 18px; top: 10px; }
  .tagline { margin: 4px 0; font-size: 14px; } .title-stats { margin-top: 8px; }
  .wcard { min-height: 96px; } .wname { font-size: 18px; }
  .lcard { min-height: 76px; } .lnum { font-size: 22px; }
  #intro-lines p { font-size: 16px; margin: 6px 0; }
  .crown-big { font-size: 30px; }
  .clear-stats .big { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
