:root { --bg: #102018; --tafel1: rgba(84, 52, 30, .92); --tafel2: rgba(52, 30, 16, .94); --feld: rgba(26, 16, 8, .5); --rand: rgba(214, 178, 106, .38);
  --text: #f6ecd6; --leise: #d2c4a2; --gold: #e9c062; --gold2: #a97a2a; --gut: #a6dca0; --warn: #f4a888; --knopf: #5c3c20; --knopf2: #3a2412;
  --schatten: rgba(0, 0, 0, .5); --ov: rgba(8, 18, 12, .5); --nagel: #dcb86c; --hauptschrift: #2a1a04; --rahmen1: #6a3a1e; --rahmen2: #3e1e0c; --bann: rgba(26, 16, 6, .86); --bannschrift: #fbf1da; }
:root[data-ansicht="gewitter"] { --bg: #0c1820; --tafel1: rgba(52, 46, 58, .92); --tafel2: rgba(30, 26, 36, .94); --gold: #e6c27a; --gold2: #a8823a; --knopf: #463a4c; --knopf2: #2a2230; --ov: rgba(8, 14, 24, .55); --rahmen1: #4a3a42; --rahmen2: #241a20; }
:root[data-ansicht="morgen"] { --bg: #e6e8d6; --tafel1: rgba(248, 240, 220, .93); --tafel2: rgba(234, 222, 194, .95); --feld: rgba(255, 252, 240, .72); --rand: rgba(120, 90, 40, .35);
  --text: #2c2414; --leise: #645438; --gold: #8a5a10; --gold2: #6a420a; --gut: #2e6a2a; --warn: #a2401e; --knopf: #efdcb6; --knopf2: #dcc290;
  --schatten: rgba(70, 60, 30, .25); --ov: rgba(80, 90, 60, .28); --nagel: #9a7440; --hauptschrift: #2a1a04; --rahmen1: #8a5a32; --rahmen2: #5a3418; --bann: rgba(252, 246, 230, .96); --bannschrift: #2e2214; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 16px/1.4 Georgia, 'Times New Roman', serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
* { scrollbar-width: thin; scrollbar-color: var(--gold2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--gold2); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

#stage { position: fixed; left: 0; top: 0; transform-origin: 0 0; display: grid; grid-template-columns: 250px 1fr; gap: 16px; padding: 0 16px; overflow: hidden; background: var(--bg); }
#kulisse { position: absolute; inset: 0; z-index: 0; background: var(--bg) center / cover no-repeat; }
#kulisse::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 58% 55%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .3) 100%); pointer-events: none; }
:root[data-ansicht="morgen"] #kulisse::after { background: radial-gradient(ellipse at 58% 55%, rgba(0, 0, 0, 0) 55%, rgba(60, 70, 30, .14) 100%); }
#kulisse::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(ellipse at 30% 0%, rgba(255, 245, 210, .16), rgba(255, 245, 210, 0) 55%); animation: licht 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes licht { from { transform: translateX(-3%); opacity: .7; } to { transform: translateX(4%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #kulisse::before { animation: none; } }
#feldbox { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: visible; touch-action: none; }
#rahmen { position: relative; padding: 12px; border-radius: 10px; touch-action: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, rgba(0, 0, 0, .05) 2px 9px), linear-gradient(135deg, var(--rahmen1), var(--rahmen2));
  box-shadow: 0 26px 46px rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 220, 170, .25), inset 0 -2px 0 rgba(0, 0, 0, .4); }
#rahmen::after { content: ''; position: absolute; inset: 9px; border-radius: 4px; box-shadow: 0 0 0 2px #c9a04a, 0 0 0 3px rgba(80, 50, 10, .6); pointer-events: none; }
#cv { display: block; border-radius: 3px; touch-action: none; }
#stick { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; z-index: 4; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 245, 210, .12), rgba(255, 245, 210, .22)); border: 2px solid rgba(255, 240, 200, .55); }
#stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fff6d8, #d9a84a 60%, #8a5a16); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
aside { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 0; min-width: 0; }
.wert, #steuer, #knoepfe button, #logoschild, #gepaeck { position: relative;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, rgba(0, 0, 0, .035) 2px 7px), linear-gradient(180deg, var(--tafel1), var(--tafel2)) !important;
  box-shadow: 0 8px 18px var(--schatten), inset 0 1px 0 rgba(255, 230, 180, .2); }
.wert::after, #steuer::after, #logoschild::after, #gepaeck::after { content: ''; position: absolute; left: 6px; right: 6px; top: 5px; height: 5px; pointer-events: none;
  background: radial-gradient(circle, var(--nagel) 2px, transparent 2.6px) left center / 5px 5px no-repeat, radial-gradient(circle, var(--nagel) 2px, transparent 2.6px) right center / 5px 5px no-repeat; }
#logoschild { padding: 12px 12px 8px; border-radius: 10px; border: 1px solid var(--rand); container-type: inline-size; }
#logoschild #logo { font-size: min(22px, 100cqw / 11.3); letter-spacing: min(.03em, .2cqw); }
#logo, .titel { font-weight: 700; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
#logo { font-size: 22px; } #logo span, .titel span { color: var(--text); } #logo b, .titel b { color: var(--gold); }
#modus { font-size: 15px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.wert { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--rand); border-radius: 10px; min-height: 48px; }
.wert span { font-size: 15px; color: var(--leise); white-space: nowrap; }
.wert b { font-size: 20px; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 0; }
.wert.gross b { font-size: 30px; color: var(--gold); }
.wert.gross span small { display: block; font-size: 13px; color: var(--leise); }
.wert em { font-style: normal; font-size: 17px; }
.balken { display: inline-block; width: 60px; height: 9px; border-radius: 5px; background: rgba(0, 0, 0, .3); overflow: hidden; box-shadow: inset 0 1px 2px var(--schatten); }
.balken i { display: block; height: 100%; background: linear-gradient(180deg, #ffe7a0, #d98a4a); }
#flor { display: flex; flex-wrap: wrap; gap: 4px; min-height: 40px; padding: 0 4px; }
#flor .fl img { width: 36px; height: 36px; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
#gepaeck { border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px 8px; }
#gepaeck > span { font-size: 15px; color: var(--leise); }
#inv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; min-height: 52px; align-items: center; }
#inv .it { display: flex; flex-direction: column; align-items: center; width: 64px; }
#inv .it img { width: 40px; height: 40px; } #inv .it small { font-size: 12px; color: var(--leise); white-space: nowrap; }
#inv .leer { font-size: 14px; color: var(--leise); font-style: italic; }
#knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
#knoepfe button { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--rand); display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text); }
#knoepfe button svg, .reihe button svg, .modus svg { width: 22px; height: 22px; }
#steuer { border: 1px solid var(--rand); border-radius: 10px; padding: 12px 12px 8px; font-size: 15px; margin-top: auto; }
#steuer p { margin: 2px 0; }
kbd { display: inline-block; min-width: 22px; padding: 1px 5px; margin: 1px 2px 1px 0; border-radius: 5px; background: var(--knopf2); border: 1px solid var(--rand); font: 14px/1.3 Georgia, serif; text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td { padding: 3px 4px 3px 0; } td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sum td { border-top: 1px solid var(--rand); font-weight: 700; color: var(--gold); padding-top: 5px; }
.klein { font-size: 14px; color: var(--leise); }

#bann { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); width: min(80%, 440px); padding: 12px 16px; border-radius: 12px; text-align: center; pointer-events: none;
  background: var(--bann); color: var(--bannschrift); font-size: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); border: 1px solid var(--rand); z-index: 3; }
#bann b { display: block; font-size: 20px; color: var(--gold); margin-bottom: 3px; }
#hinweis { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: var(--bann); color: var(--bannschrift); z-index: 4; white-space: nowrap; border: 1px solid var(--rand); }
#hinweis button { min-height: 44px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rand); background: var(--knopf); color: var(--text); }
#toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 80%; padding: 10px 16px; border-radius: 10px; background: var(--tafel2); border: 1px solid var(--rand); z-index: 9; }

#ov { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--ov); }
.kasten { position: relative; width: min(680px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--rand);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, rgba(0, 0, 0, .03) 2px 7px), linear-gradient(180deg, var(--tafel1), var(--tafel2));
  box-shadow: 0 16px 40px var(--schatten), inset 0 1px 0 rgba(255, 230, 180, .18); }
.kasten.mitte { width: min(520px, 100%); text-align: center; }
.ov-zu { position: sticky; float: right; top: 0; margin: -10px -12px 0 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rand); background: var(--knopf); color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 2; }
.ov-zu svg { width: 20px; height: 20px; }
.kasten h2 { margin: 0 0 10px; font-size: 26px; color: var(--gold); } .kasten h3 { margin: 14px 0 6px; font-size: 18px; color: var(--gold); }
.kasten p { margin: 0 0 10px; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.reihe button, #ov .ansichten button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf), var(--knopf2)); box-shadow: 0 2px 6px var(--schatten); color: var(--text); }
.reihe button.haupt { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--hauptschrift); border-color: var(--gold2); font-weight: 700; }
:root[data-ansicht="morgen"] .reihe button.haupt { background: linear-gradient(180deg, #f2cf72, #c99a3a); }
.menue .titel { font-size: 48px; text-align: center; margin-bottom: 8px; }
.menue .unter { text-align: center; color: var(--leise); }
.modi { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.modus { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px; min-height: 64px; border-radius: 12px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf), var(--knopf2)); box-shadow: 0 3px 8px var(--schatten); color: var(--text); }
.modus .mi { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 35%, #ffe7a8, #e0b04a 60%, #9a6a1a); color: #2a1a04; box-shadow: 0 0 14px rgba(255, 200, 100, .45); }
.modus b { display: block; font-size: 19px; } .modus small { display: block; font-size: 14px; color: var(--leise); }
.ansichten { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.ansichten > span { font-size: 15px; color: var(--leise); width: 100%; text-align: center; }
#ov .ansichten button { flex-direction: column; gap: 4px; padding: 6px 8px; font-size: 14px; min-width: 120px; }
#ov .ansichten button img { width: 104px; height: 58px; object-fit: cover; border-radius: 6px; display: block; }
#ov .ansichten button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.einst { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 10px; font-size: 15px; }
.einst label { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding-left: 34px; cursor: pointer; }
.einst input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.einst label::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); border: 2px solid var(--gold); border-radius: 6px; background: var(--knopf2); }
.einst label:has(input:checked)::before { background: radial-gradient(circle, var(--gold) 45%, var(--knopf2) 50%); }
.einst label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.regeln p { font-size: 15px; }
.florreihe { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fl2 { display: flex; flex-direction: column; align-items: center; width: 74px; } .fl2 img { width: 48px; height: 48px; } .fl2 small { font-size: 13px; color: var(--leise); }
.eintraege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eintrag { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--feld); border-radius: 10px; border: 1px solid var(--rand); }
.eintrag canvas, .eintrag img { flex: none; width: 56px; height: 56px; border-radius: 8px; background: rgba(232, 220, 203, .9); }
.eintrag b { font-size: 16px; } .eintrag p { margin: 2px 0; font-size: 14px; }
.ende .grund { color: var(--leise); text-align: center; margin-bottom: 4px; }
.endzahl { text-align: center; margin: 4px 0 8px; } .endzahl b { display: block; font-size: 46px; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; } .endzahl span { color: var(--leise); }
.ende .gut { color: var(--gut); text-align: center; } .warn { color: var(--warn); text-align: center; } .ende > .klein { text-align: center; }
.naechst { text-align: center; font-size: 15px; }
.sterne { display: flex; justify-content: center; gap: 8px; } .sterne span svg { width: 38px; height: 38px; color: rgba(160, 140, 110, .5); }
.sterne span.an svg { color: #ffd45a; filter: drop-shadow(0 0 6px rgba(255, 200, 80, .7)); }
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.liste ol { margin: 4px 0; padding-left: 26px; } .liste li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 15px; }
.liste li b { font-variant-numeric: tabular-nums; }
.reihenwahl { width: min(940px, 100%); }
.felder-raster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.feldwahl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 10px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf), var(--knopf2)); color: var(--text); min-height: 48px; }
.feldwahl canvas { width: 100%; max-width: 120px; height: auto; border-radius: 4px; }
.feldwahl b { font-size: 16px; } .feldwahl small { font-size: 13px; color: var(--leise); text-align: center; line-height: 1.15; min-height: 30px; }
.feldwahl .st { display: flex; gap: 1px; } .feldwahl .st i svg, .feldwahl .st > svg { width: 16px; height: 16px; color: rgba(160, 140, 110, .5); }
.feldwahl .st i.an svg { color: #ffd45a; }
.feldwahl em { font-style: normal; font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.feldwahl.zu { opacity: .5; border-style: dashed; }

#stage.klein { grid-template-columns: 200px 1fr; gap: 10px; padding: 0 10px; }
#stage.klein aside { padding: 10px 0; gap: 6px; }
#stage.klein #logo { font-size: min(18px, 100cqw / 11.3); } #stage.klein .wert { min-height: 40px; padding: 4px 10px; } #stage.klein .wert.gross b { font-size: 24px; }
#stage.klein #steuer, #stage.klein #flor { display: none; }
#stage.klein #knoepfe button { width: 44px; height: 44px; }
#stage.klein #inv { min-height: 44px; }
#stage.hoch { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 62px 54px minmax(0, 1fr) 60px auto; padding: 10px 10px 8px; gap: 7px; }
#stage.hoch aside { display: contents; }
#stage.hoch #logoschild { grid-area: 1 / 1 / 2 / 3; padding: 8px 10px 4px; } #stage.hoch #logo { font-size: min(19px, 100cqw / 11.3); } #stage.hoch #modus { margin-top: 2px; }
#stage.hoch .wert.gross { grid-area: 1 / 3 / 2 / 4; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0; padding: 4px 10px; }
#stage.hoch .wert.gross b { font-size: 22px; } #stage.hoch .wert.gross span { display: none; }
#stage.hoch [data-ki="raum"] { grid-area: 2 / 1 / 3 / 2; } #stage.hoch [data-ki="paare"] { grid-area: 2 / 2 / 3 / 3; }
#stage.hoch .wert { min-height: 0; padding: 4px 10px; } #stage.hoch .wert span { font-size: 14px; } #stage.hoch .wert b { font-size: 18px; } #stage.hoch .balken { width: 34px; }
#stage.hoch #gepaeck { grid-area: 2 / 3 / 3 / 4; padding: 4px 8px; } #stage.hoch #gepaeck > span { display: none; }
#stage.hoch #inv { min-height: 0; margin: 0; flex-wrap: nowrap; gap: 2px; } #stage.hoch #inv .it { width: auto; } #stage.hoch #inv .it small { display: none; } #stage.hoch #inv .it img { width: 34px; height: 34px; }
#stage.hoch #inv .leer { font-size: 13px; }
#stage.hoch #flor { display: none; }
#stage.hoch #feldbox { grid-area: 3 / 1 / 4 / 4; }
#stage.hoch #knoepfe { grid-area: 4 / 1 / 5 / 4; justify-content: space-between; flex-wrap: nowrap; }
#stage.hoch #knoepfe button { width: 64px; height: 56px; }
#stage.hoch .ov-zu { width: 52px; height: 52px; }
#stage.hoch .kasten { padding: 16px 16px; } #stage.hoch .menue .titel { font-size: 34px; } #stage.hoch .reihe button { min-height: 52px; }
#stage.hoch #steuer { grid-area: 5 / 1 / 6 / 4; margin: 0; padding: 10px 12px 6px; font-size: 14px; }
#stage.hoch .felder-raster { grid-template-columns: repeat(3, 1fr); }
#stage.hoch .eintraege, #stage.hoch .spalten { grid-template-columns: 1fr; }
@media (pointer: coarse) { #knoepfe button { width: 52px; height: 52px; } }

#zaehl { position: absolute; left: 50%; top: 76%; transform: translate(-50%, -50%); pointer-events: none; z-index: 6;
  font: 700 42px/1 Georgia, serif; color: #fff4d6; text-shadow: 0 2px 0 rgba(40,24,8,.8), 0 0 18px rgba(255,200,110,.6); letter-spacing: .04em; }
#zaehl.los { color: #ffe08a; font-size: 56px; animation: zaehlLos .45s ease-out; }
@keyframes zaehlLos { from { transform: translate(-50%, -50%) scale(1.5); opacity: .2; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.vor { color: #7fd17a; font-weight: 700; }
.nach { color: #ff9a7a; font-weight: 700; }
.tagvorschau { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; }
.tagvorschau canvas { width: 120px; height: 78px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.35); border: 2px solid rgba(201,162,74,.6); }
.tagvorschau span { font-size: 14px; opacity: .85; }

#bann { top: 2px; left: 50%; transform: translateX(-50%); width: min(76%, 560px); padding: 7px 18px 8px; border-radius: 0 0 12px 12px; font-size: 15px; line-height: 1.3;
  background: linear-gradient(#f3dc9a, #d6b264 55%, #b88c3c); color: #2c1c08; border: 1px solid #7a5418; border-top: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,250,220,.8); animation: bannEin .28s ease-out; }
#bann b { display: inline; font-size: 16px; color: #4a2a06; margin: 0 6px 0 0; }
@keyframes bannEin { from { transform: translate(-50%, -100%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
#stage.hoch #bann { width: 94%; font-size: 14px; padding: 6px 10px 7px; }
#flor { gap: 5px; }
#flor .fl { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(40,24,10,.28); box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
#flor .fl.an { background: radial-gradient(circle, rgba(255,230,150,.55), rgba(255,230,150,0) 70%); box-shadow: none; animation: fachAuf .5s ease-out; }
#flor .fl img { width: 34px; height: 34px; }
@keyframes fachAuf { from { transform: scale(.5); } 60% { transform: scale(1.2); } to { transform: scale(1); } }
#w-paare .mini { display: flex; gap: 1px; } #w-paare .mini .fl { width: 22px; height: 22px; display: inline-flex; } #w-paare .mini img { width: 22px; height: 22px; }
#inv .it { position: relative; } #inv .anz { position: absolute; right: 8px; top: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #8a2a10; color: #fff; font: 700 12px/18px sans-serif; text-align: center; font-style: normal; }
#stage.hoch.ohne-steuer { grid-template-rows: 62px 54px minmax(0, 1fr) 60px 0; }
#stage.hoch.ohne-steuer #steuer { display: none; }
#kulisse { background-image: url(img/morgen.webp?v=1); }

#ov.seite { background: transparent; pointer-events: none; justify-content: flex-start; align-items: flex-end; padding: 14px; }
#ov.seite .kasten { pointer-events: auto; width: 268px; padding: 16px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
#ov.seite .kasten .reihe { flex-direction: column; align-items: stretch; }
#ov.seite .kasten .reihe button { justify-content: flex-start; }
#ov.seite .kasten h2 { margin-top: 0; }
#stage.hoch #ov.seite { justify-content: center; align-items: flex-end; padding: 8px; }
#stage.hoch #ov.seite .kasten { width: 100%; padding: 10px 12px; }
#stage.hoch #ov.seite .kasten .reihe { flex-direction: row; flex-wrap: wrap; }
#stage.hoch #ov.seite .kasten p { font-size: 13px; margin: 4px 0; }
#sternuhr { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 5px; border-radius: 3px; background: rgba(60,36,10,.25); }
#sternuhr em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #6cbf5a; transition: width .2s linear; }
#sternuhr.s2 em { background: #d9a43a; } #sternuhr.s1 em { background: #c0583a; }
#sternuhr s { position: absolute; top: -3px; width: 2px; height: 11px; background: #5a3a10; }
.wert.gross { padding-bottom: 14px; }
.ziele { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.ziele span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; font-size: 14px; border: 1px solid var(--rand); opacity: .6; }
.ziele span.an { opacity: 1; background: rgba(108,191,90,.2); border-color: #6cbf5a; }
.ziele svg { width: 14px; height: 14px; }
.feldwahl .zm { display: flex; gap: 3px; margin-top: 2px; } .feldwahl .zm i { width: 7px; height: 7px; border-radius: 50%; background: rgba(90,58,16,.25); } .feldwahl .zm i.an { background: #6cbf5a; }
h3.abschnitt { margin: 14px 0 0; font-size: 17px; color: var(--gold); border-bottom: 1px solid var(--rand); padding-bottom: 3px; }
.feldwahl.zu canvas { filter: grayscale(.75) brightness(.55); }
.feldwahl canvas { box-shadow: 0 2px 6px rgba(0,0,0,.3); }
#hinweis button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
#stage.hoch { grid-template-rows: 62px 48px minmax(0, 1fr) 50px 60px auto; }
#stage.hoch.ohne-steuer { grid-template-rows: 62px 48px minmax(0, 1fr) 50px 60px 0; }
#stage.hoch [data-ki="paare"] { grid-area: 2 / 2 / 3 / 4; }
#stage.hoch #flor { display: flex; grid-area: 4 / 1 / 5 / 3; align-items: center; min-height: 0; padding: 0 2px; }
#stage.hoch #flor .fl { width: 40px; height: 40px; }
#stage.hoch #gepaeck { grid-area: 4 / 3 / 5 / 4; display: flex; align-items: center; }
#stage.hoch #knoepfe { grid-area: 5 / 1 / 6 / 4; }
#stage.hoch #steuer { grid-area: 6 / 1 / 7 / 4; }
#stage.hoch #flor .fl { background: rgba(250,238,210,.88); border: 1px solid var(--rand); box-shadow: 0 2px 5px rgba(0,0,0,.3); }
#stage.hoch #flor .fl.an { background: radial-gradient(circle, rgba(255,236,170,.95), rgba(250,238,210,.9) 70%); }
#stage.klein .wert.gross small { display: none; }
.felder-raster { grid-template-columns: repeat(6, 1fr); }
#stage.hoch .felder-raster { grid-template-columns: repeat(3, 1fr); }
.feldwahl.zu canvas { filter: grayscale(.6) brightness(.72); }
#stage.klein { grid-template-columns: 216px 1fr; }
#stage.klein #knoepfe { gap: 6px; }
#stage.klein #knoepfe button { width: 64px; height: 64px; }
#stage.klein .ov-zu { width: 64px; height: 64px; }
#stage.klein .reihe button, #stage.klein .einst label { min-height: 64px; }
#stage.klein .kasten { padding: 14px 18px; }


.kasten.ende .endknoepfe { position: sticky; bottom: -22px; margin: 10px -26px -22px; padding: 12px 18px 14px; background: linear-gradient(rgba(244,234,212,0), var(--kasten, #f3ead6) 30%); flex-wrap: wrap; justify-content: center; z-index: 2; }
details.bilanz { margin: 8px 0; } details.bilanz summary { cursor: pointer; font-weight: 700; color: var(--gold); padding: 8px 0; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.florreihe { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; }
.probe { position: relative; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 8px; }
.probe canvas { display: block; }
.probe i { position: absolute; left: 6px; top: 20px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8fd8f0 40%, #2a7a9a); box-shadow: 2px 3px 3px rgba(0,0,0,.35); }
.probe[data-b="="] i { animation: ppGlas 1.8s linear infinite; }
.probe[data-b=":"] i { animation: ppKies 3s ease-out infinite; }
.probe[data-b="o"] i, .probe[data-b="*"] i { animation: ppFall 2.6s ease-in infinite; }
.probe[data-b="w"] i { animation: ppWasser 2.6s ease-in infinite; }
.probe[data-b="%"] i { animation: ppKies 2.4s linear infinite; }
.probe[data-b=">"] i { animation: ppGlas 1.2s ease-in infinite; }
.probe[data-b="t"] i { animation: ppTele 2.4s linear infinite; }
.probe[data-b="P"] i, .probe[data-b="Q"] i { animation: ppKies 2.6s ease-in-out infinite alternate; }
@keyframes ppGlas { from { transform: translateX(-24px); } to { transform: translateX(60px); } }
@keyframes ppKies { from { transform: translateX(-20px); } 70% { transform: translateX(16px); } to { transform: translateX(16px); } }
@keyframes ppFall { from { transform: translateX(-20px) scale(1); } 45% { transform: translateX(12px) scale(1); } 70% { transform: translateX(14px) scale(.15); opacity: .6; } to { transform: translateX(14px) scale(.15); opacity: 0; } }
@keyframes ppWasser { from { transform: translateX(-20px); } 45% { transform: translateX(12px); filter: none; } to { transform: translateX(14px) scale(.6); opacity: 0; filter: blur(2px); } }
@keyframes ppTele { 0% { transform: translateX(-20px); opacity: 1; } 40% { transform: translateX(4px) scale(.2); opacity: 0; } 60% { transform: translate(18px, -12px) scale(.2); opacity: 0; } 75% { transform: translate(18px, -12px) scale(1.15); opacity: 1; } 100% { transform: translate(18px, -12px); } }
@media (prefers-reduced-motion: reduce) { .probe i { animation: none !important; } }
.parcours { margin: 4px 0 0; }
.erfolgliste { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.erfolgliste li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rand); background: var(--feld); opacity: .6; }
.erfolgliste li.an { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.erfolgliste li span svg { width: 26px; height: 26px; color: var(--gold); }
.erfolgliste li small { display: block; font-size: 13px; color: var(--leise); }
#stage.hoch .erfolgliste { grid-template-columns: 1fr; }

#w-zeit { font-variant-numeric: lining-nums tabular-nums; }
#w-zeit .zf { display: inline-block; width: .6em; text-align: center; font-style: normal; }
#w-zeit .uhr { font-style: normal; }

button.tagvorschau { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--rand); background: var(--feld); color: var(--text); text-align: left; cursor: pointer; min-height: 48px; }
button.tagvorschau b { display: block; color: var(--gold); font-size: 16px; }
.taggross canvas { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.einstellungen .einst { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; justify-items: start; }
#stage.hoch .einstellungen .einst { grid-template-columns: 1fr; }
.feldwahl .rrek { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.feldwahl .rrek svg { width: 12px; height: 12px; color: var(--gold); flex: none; }
.top5t { display: block; color: var(--gold); margin-bottom: 4px; }
ol.top5 { margin: 0 0 4px; padding-left: 20px; font-size: 14px; }
ol.top5 li span { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
ol.top5 li i { float: right; font-style: normal; font-variant-numeric: lining-nums tabular-nums; }
ol.top5 .zf { display: inline-block; width: .6em; text-align: center; font-style: normal; }
