/* Blickweide – Nachtwiese. Ruhig, warm, kein reines Weiß auf Schwarz. */
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
:root {
  --night: #0F1B24; --night2: #132430; --moss: #16302B; --gold: #F4D58D; --amber: #E9A96B; --mist: #CFE3DA; --lav: #A9A3D9;
  --ink: #E6EEE9; --ink2: #A9BDB6; --ink3: #7F948E; --line: rgba(207, 227, 218, .12); --card: rgba(22, 40, 48, .62); --card2: rgba(30, 52, 60, .7);
  --danger: #E59A8E; --r: 20px; --fs: 16px; --serif: 'Instrument Serif', Georgia, serif; --sans: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
html.fs-1 { --fs: 18px; } html.fs-2 { --fs: 20px; }
html.hc { --ink: #FFFBEF; --ink2: #E2ECE7; --ink3: #C3D3CD; --line: rgba(255, 255, 255, .3); --card: rgba(10, 22, 28, .92); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--night); }
body { font: 400 var(--fs)/1.5 var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; background: radial-gradient(120% 60% at 50% -10%, #1A3340 0%, var(--night) 55%) fixed, var(--night); }
button { font: inherit; color: inherit; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
h1:focus { outline: none; }
.screen { max-width: 620px; margin: 0 auto; padding: calc(var(--sat) + 8px) calc(20px + var(--sar)) 40px calc(20px + var(--sal)); }
.screen.has-tabs { padding-bottom: calc(110px + var(--sab)); }
h1 { font: 400 2.1em/1.08 var(--serif); letter-spacing: -.01em; margin: .1em 0 .45em; color: #F3F0E4; }
h2 { font: 650 1.02em/1.3 var(--sans); margin: 0 0 .5em; display: flex; align-items: center; gap: 8px; }
h2 small { color: var(--ink3); font-weight: 500; margin-left: auto; }
h3 { font: 650 1em/1.3 var(--sans); margin: 0 0 .4em; }
p { margin: 0 0 .7em; }
.display { font: 400 3.2em/1 var(--serif); margin: .25em 0 .25em; }
.display.sm { font-size: 2.5em; }
.lead { font-size: 1.15em; color: var(--ink2); line-height: 1.45; }
.lead.sm { font-size: 1.03em; }
.eyebrow { font-size: .74em; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); opacity: .85; margin: 14px 0 0; font-weight: 650; }
.label { font-size: .82em; color: var(--ink2); font-weight: 650; margin: 0 0 8px; }
.fine { font-size: .84em; color: var(--ink3); }
.glead { color: var(--ink2); font-size: .9em; margin-top: -4px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Kopf */
.topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; font: 400 1.35em var(--serif); color: #F3F0E4; }
.tb-mid { flex: 1; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; color: var(--ink2); }
.iconbtn:hover { color: var(--gold); border-color: rgba(244, 213, 141, .4); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer; font-weight: 650; text-decoration: none; transition: transform .15s ease, background .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, #F7DFA3, #EDC877); color: #1B2A2A; border-color: transparent; box-shadow: 0 8px 28px -10px rgba(244, 213, 141, .55); }
.btn.primary:disabled { opacity: .35; box-shadow: none; cursor: not-allowed; }
.btn.big { min-height: 56px; width: 100%; font-size: 1.05em; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: .92em; }
.btn.danger { color: var(--danger); }
.btn.primary.danger { background: #E59A8E; color: #2A1714; }
.linkbtn { background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; padding: 0; font-size: inherit; }
.cta { margin: 26px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.row2 .btn { flex: 1; white-space: nowrap; padding-left: 12px; padding-right: 12px; }

/* Karten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 14px 0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card.warn { border-color: rgba(233, 169, 107, .35); background: rgba(60, 40, 26, .35); }
.card.soft { background: rgba(169, 163, 217, .1); border-color: rgba(169, 163, 217, .25); }
.card p:last-child { margin-bottom: 0; }
.dots { margin: 0; padding-left: 1.1em; } .dots li { margin: .25em 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7em; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.tag .ic { width: 12px; height: 12px; }
.tag.plus { background: rgba(244, 213, 141, .14); color: var(--gold); }
.tag.game { background: rgba(169, 163, 217, .16); color: #C9C4F0; }

/* Onboarding */
.onb { min-height: calc(100vh - var(--sat) - 50px); min-height: calc(100dvh - var(--sat) - 50px); display: flex; flex-direction: column; }
.onb-0 { justify-content: center; text-align: center; padding-top: 30px; }
.onb-0 .cta { margin-top: 34px; }
.hero-glow { display: grid; place-items: center; margin: 0 auto 4px; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
.ticks { list-style: none; padding: 0; margin: 18px auto 0; display: grid; gap: 10px; max-width: 320px; text-align: left; }
.ticks li { display: flex; gap: 12px; align-items: center; color: var(--ink2); }
.ticks .ic { color: var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); cursor: pointer; margin-top: 4px; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); margin: 1px 0 0; flex: none; }

/* Vorschau & Regler */
.preview { display: block; width: 100%; height: 150px; border-radius: 18px; border: 1px solid var(--line); background: #0C1720; margin: 10px 0 14px; }
.preview.sm { height: 110px; }
.preview.static { display: grid; place-items: center; }
.preview.static .thumb { width: 160px; height: 100px; }
.calib { display: grid; gap: 16px; margin: 6px 0; }
.slider { display: grid; gap: 6px; }
.slider > span { display: flex; justify-content: space-between; font-size: .9em; font-weight: 650; color: var(--ink2); }
.slider em { font-style: normal; color: var(--gold); font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(244, 213, 141, .5), rgba(207, 227, 218, .18)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; margin-top: -10px; background: #F7DFA3; box-shadow: 0 0 0 6px rgba(244, 213, 141, .15), 0 0 18px rgba(244, 213, 141, .5); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(207, 227, 218, .2); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #F7DFA3; }
.field { display: grid; gap: 8px; margin: 12px 0; }
.field > span { font-size: .9em; font-weight: 650; color: var(--ink2); }
.seg { display: flex; gap: 6px; background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--ink2); font-weight: 600; font-size: .92em; display: inline-flex; gap: 4px; align-items: center; justify-content: center; white-space: nowrap; }
.seg button .ic { width: 13px; height: 13px; opacity: .7; }
.seg button.on { background: rgba(244, 213, 141, .16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(244, 213, 141, .35); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle span { display: grid; font-weight: 600; } .toggle small { color: var(--ink3); font-weight: 400; font-size: .84em; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .1); position: relative; flex: none; transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink2); transition: transform .2s, background .2s; }
.toggle input:checked + i { background: rgba(244, 213, 141, .4); }
.toggle input:checked + i::after { transform: translateX(20px); background: var(--gold); }
.toggle input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Heute */
.hero-meadow, .big-meadow, .done-art { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); margin: 6px 0 4px; }
.meadow { display: block; width: 100%; height: auto; }
.hero-meadow .meadow { aspect-ratio: 360/210; }
.big-meadow .meadow { aspect-ratio: 360/330; }
.hm-badge { position: absolute; left: 14px; bottom: 12px; display: grid; background: rgba(12, 23, 32, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); }
.hm-badge b { font: 400 1.15em var(--serif); color: var(--gold); } .hm-badge span { font-size: .78em; color: var(--ink2); }
.greet { margin-top: .5em; }
.intents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.intent { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; text-align: left; font-weight: 600; font-size: .95em; }
.intent .ic { color: var(--ink3); }
.intent.on { border-color: rgba(244, 213, 141, .5); background: rgba(244, 213, 141, .1); color: #F7E7BE; }
.intent.on .ic { color: var(--gold); }
.plan .cta { margin-bottom: 0; }
.quick { margin: 18px 0; }
.qrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qtile { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; }
.qtile .thumb { width: 100%; height: 34px; margin-bottom: 6px; }
.qtile b { font-size: .9em; } .qtile small { font-size: .75em; color: var(--ink3); }
.thumb .tl { fill: none; stroke: var(--mist); stroke-opacity: .5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thumb .td { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(244, 213, 141, .9)); }
.week { display: flex; justify-content: space-between; gap: 4px; margin: 6px 0 8px; }
.lantern { display: grid; justify-items: center; gap: 6px; flex: 1; }
.lantern i { width: 22px; height: 28px; border-radius: 11px 11px 8px 8px; border: 1px solid rgba(207, 227, 218, .22); background: rgba(255, 255, 255, .03); position: relative; }
.lantern i::before { content: ''; position: absolute; top: -6px; left: 50%; width: 1px; height: 6px; background: rgba(207, 227, 218, .3); }
.lantern.on i { background: radial-gradient(circle at 50% 55%, #FFF3C4 0, #F4D58D 35%, rgba(244, 213, 141, .25) 100%); border-color: transparent; box-shadow: 0 0 16px rgba(244, 213, 141, .55); }
.lantern small { font-size: .72em; color: var(--ink3); }
.lantern.today small { color: var(--gold); font-weight: 700; }
.weeknote { font-size: .85em; color: var(--ink2); margin: 0; text-align: center; }

/* Übungen */
.group { margin: 22px 0 6px; }
.group h2 { font: 400 1.5em var(--serif); margin-bottom: 2px; }
.exlist { display: grid; gap: 8px; margin-top: 10px; }
.excard { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; position: relative; }
.excard .thumb { width: 64px; height: 40px; flex: none; }
.ex-t { display: grid; flex: 1; } .ex-t b { font-weight: 650; } .ex-t small { color: var(--ink3); font-size: .84em; line-height: 1.35; }
.excard.locked .ex-t b { color: var(--ink2); }
.excard .tag { position: absolute; top: 10px; right: 12px; }
.how { padding-left: 1.1em; color: var(--ink2); } .how li { margin: .3em 0; }
.pluscard { border-color: rgba(244, 213, 141, .3); background: linear-gradient(160deg, rgba(244, 213, 141, .1), rgba(22, 40, 48, .6)); }
.pluscard h2 .ic, .pluscard p .ic { color: var(--gold); vertical-align: -3px; }

/* Stimmung */
.mood { margin: 20px 0; }
.mchips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mchip { display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: .76em; color: var(--ink2); line-height: 1.2; text-align: center; }
.mchip i { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--mist) calc(100% - var(--l) * 20%), var(--amber)); opacity: calc(.35 + var(--l) * .1); }
.mchip.on { border-color: rgba(244, 213, 141, .55); background: rgba(244, 213, 141, .1); color: #F7E7BE; }
.mchip.on i { opacity: 1; box-shadow: 0 0 12px rgba(244, 213, 141, .5); }
.tips { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.tips li { display: flex; gap: 10px; align-items: center; color: var(--ink2); font-size: .9em; }
.tips .ic { color: var(--gold); }

/* Geschafft */
.done { padding-top: calc(var(--sat) + 14px); text-align: center; }
.done-art .meadow { aspect-ratio: 360/220; }
.newfly { position: absolute; width: 18px; height: 18px; border-radius: 50%; left: 50%; top: 100%; background: radial-gradient(circle, #FFF3C4 0, #F4D58D 30%, rgba(244, 213, 141, 0) 70%); box-shadow: 0 0 24px 8px rgba(244, 213, 141, .45); animation: flyin 3.2s cubic-bezier(.3, .7, .3, 1) .3s both; }
@keyframes flyin { 0% { transform: translate(-50%, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(calc(-50% + 40px), -150px); opacity: 1; } }
.levelup { text-align: left; border-color: rgba(244, 213, 141, .4); }
.levelup h3 { font: 400 1.5em var(--serif); color: var(--gold); }
.got { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.gotitem { display: grid; justify-items: center; gap: 2px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid rgba(244, 213, 141, .3); }
.gotitem small { color: var(--ink3); font-size: .78em; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stats3 div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stats3 b { font: 400 1.9em/1 var(--serif); color: var(--gold); } .stats3 small { color: var(--ink3); font-size: .78em; margin-top: 4px; }
.done .card.soft { text-align: left; }

/* Erdung */
.ground { text-align: center; padding-top: 10px; }
.gnum { font: 400 7em/1 var(--serif); color: var(--gold); text-shadow: 0 0 40px rgba(244, 213, 141, .4); margin: 18px 0 0; }
.ground .helprows { text-align: left; }

/* Wiese */
.lvbar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 4px 0 8px; }
.lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #E9A96B, #F4D58D); border-radius: 8px; box-shadow: 0 0 12px rgba(244, 213, 141, .6); }
.coll { margin: 24px 0; }
.coll h2 { font: 400 1.5em var(--serif); }
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 12px; }
.citem { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.citem svg { width: 100%; max-width: 60px; height: auto; }
.citem small { font-size: .7em; color: var(--ink2); line-height: 1.2; min-height: 2.4em; display: grid; place-items: center; }
.citem.locked small { color: var(--ink3); }
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.color { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; }
.color i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--c) 40%, transparent 72%); box-shadow: 0 0 14px var(--c); }
.color small { font-size: .7em; color: var(--ink2); }
.color:disabled { cursor: default; opacity: .4; } .color:disabled i { background: rgba(255, 255, 255, .1); box-shadow: none; }
.color.on { border-color: var(--c); background: rgba(255, 255, 255, .06); }
.fly { animation: drift var(--d) ease-in-out var(--dl) infinite alternate; transform-box: fill-box; }
.fly circle:first-child { animation: glow calc(var(--d) * .7) ease-in-out var(--dl) infinite alternate; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes glow { from { opacity: .45; } to { opacity: 1; } }
.m-empty { fill: var(--ink2); font: italic 400 15px var(--serif); }
.shoot { animation: shoot 14s ease-in 4s infinite; opacity: 0; }
@keyframes shoot { 0%, 92% { opacity: 0; transform: translate(0, 0); } 95% { opacity: 1; } 100% { opacity: 0; transform: translate(-60px, 24px); } }
.aurora { animation: aur 18s ease-in-out infinite alternate; }
@keyframes aur { from { opacity: .6; } to { opacity: 1; } }

/* Ich */
.links { display: grid; gap: 2px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.links a:first-of-type { border-top: 0; }
.links .ic { color: var(--gold); }
.hist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.hist span { display: grid; } .hist small { color: var(--ink3); font-size: .8em; }
.hist .mv { font-size: .8em; color: var(--gold); text-align: right; }
.plans { display: grid; gap: 8px; margin: 18px 0 0; }
.planbtn { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; position: relative; }
.planbtn span { display: grid; } .planbtn small { color: var(--ink3); font-size: .8em; }
.planbtn .pp { text-align: right; } .planbtn .pp b { font: 400 1.5em/1 var(--serif); color: var(--gold); }
.planbtn em { position: absolute; top: -9px; right: 16px; font-style: normal; font-size: .7em; font-weight: 700; background: var(--gold); color: #1B2A2A; padding: 2px 8px; border-radius: 999px; }
.planbtn.on { border-color: rgba(244, 213, 141, .6); background: rgba(244, 213, 141, .08); }
.info p { color: var(--ink2); font-size: 1.02em; }
.helprows { display: grid; gap: 6px; margin: 12px 0; }
.helprow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.helprow span { display: grid; font-weight: 600; font-size: .92em; } .helprow small { color: var(--ink3); font-weight: 400; font-size: .8em; }
.helprow b { display: flex; gap: 6px; align-items: center; color: var(--gold); white-space: nowrap; }
.foot { margin-top: 30px; text-align: center; font-size: .78em; color: var(--ink3); }
.foot p { margin: 4px 0; } .foot a { color: var(--ink2); }

/* Tabs */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--sab)); width: min(560px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 24px; background: rgba(14, 26, 34, .82); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 20; box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .6); }
.tab { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border: 0; background: transparent; border-radius: 18px; cursor: pointer; color: var(--ink3); font-size: .72em; font-weight: 650; }
.tab .ic { width: 22px; height: 22px; }
.tab.on { color: var(--gold); background: rgba(244, 213, 141, .09); }

/* Sheet & Toast */
.sheet-wrap { position: fixed; inset: 0; background: rgba(5, 10, 14, .6); display: flex; align-items: flex-end; justify-content: center; z-index: 60; animation: fade .2s; }
.sheet { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: #132430; border: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + var(--sab)); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--sab)); background: #F3E6C2; color: #1B2A2A; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .92em; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100% - 40px); }

/* Player */
.player { position: fixed; inset: 0; z-index: 100; background: #0C1720; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.player canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.p-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 12px) calc(16px + var(--sar)) 8px calc(16px + var(--sal)); }
.p-info { flex: 1; text-align: center; min-width: 0; }
.p-name { font: 400 1.25em/1.1 var(--serif); color: #F3F0E4; }
.p-cue { font-size: .82em; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbtn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(207, 227, 218, .2); background: rgba(12, 23, 32, .6); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pbtn[data-act="p-pause"] svg path[d^="M8 5l"] { fill: currentColor; }
.pbtn.sm { width: 44px; height: 44px; }
.p-prog { position: absolute; left: calc(84px + var(--sal)); right: calc(84px + var(--sar)); top: calc(var(--sat) + 72px); display: flex; gap: 4px; }
.p-prog span { flex: 1; height: 3px; background: rgba(255, 255, 255, .1); border-radius: 3px; overflow: hidden; }
.p-prog i { display: block; height: 100%; background: var(--gold); opacity: .7; transform-origin: left; transform: scaleX(0); }
.p-label { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 92px); text-align: center; color: var(--ink2); font-size: .95em; pointer-events: none; padding: 0 20px; min-height: 1.5em; }
.p-count { position: absolute; left: calc(18px + var(--sal)); top: calc(var(--sat) + 86px); font: 400 1.5em var(--serif); color: var(--gold); }
.p-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 10px 16px calc(var(--sab) + 18px); }
.p-unwell { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(229, 154, 142, .4); background: rgba(12, 23, 32, .6); color: #F0C2B9; font-weight: 600; font-size: .9em; cursor: pointer; }
.p-paused { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 10, 14, .55); padding: 20px; }
.p-paused .card { width: min(360px, 100%); text-align: center; background: #132430; display: grid; gap: 10px; }
.p-paused h2 { justify-content: center; font: 400 1.8em var(--serif); margin: 0; }
.player.guide .p-label { font-size: 1.05em; }
@media (orientation: landscape) and (max-height: 500px) {
  .p-top { padding-top: calc(var(--sat) + 6px); }
  .p-prog { top: calc(var(--sat) + 60px); }
  .p-bottom { padding-bottom: calc(var(--sab) + 8px); }
  .p-label { bottom: calc(var(--sab) + 62px); }
  .pbtn { width: 44px; height: 44px; }
  .onb { min-height: auto; }
  .hero-meadow .meadow, .done-art .meadow { aspect-ratio: 360/120; }
  .big-meadow .meadow { aspect-ratio: 360/160; }
}
@media (min-width: 900px) {
  .screen { max-width: 680px; }
  h1 { font-size: 2.5em; }
  .preview { height: 190px; }
  .qtile .thumb { height: 44px; }
  .big-meadow .meadow { aspect-ratio: 360/220; }
}
/* Reduzierte Bewegung */
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
html.rm .newfly { animation: none; transform: translate(calc(-50% + 40px), -150px); }
@media (prefers-reduced-motion: reduce) { .fly, .hero-glow, .shoot, .aurora { animation: none !important; } }
[hidden]{display:none!important}
