:root { --bg: #e9e2cf; --bg2: #d8cfb6; --holz1: #b98c58; --holz2: #7d5530; --holz3: #4f3218; --papier: #f7f0de; --papier2: #ece1c6; --rand: rgba(90, 60, 30, .45);
  --text: #2b2216; --leise: #5c4e3a; --akzent: #b8362a; --akzent2: #8c2219; --gold: #c9871b; --gut: #2f6e2c; --warn: #9a3a22; --knopf: #f1e6cc; --schatten: rgba(50, 30, 10, .35);
  --leiste-text: #fff3dc; --leiste-leise: #f0d9b4; --ov: rgba(70, 50, 25, .32); --wert-bg: #4a2f16;
  --kulisse-q: url(img/kulisse-morgen-q.webp); --kulisse-h: url(img/kulisse-morgen-h.webp); }
:root[data-ansicht="abend"] { --bg: #3a2418; --bg2: #2a170e; --papier: #f4e6cc; --papier2: #e8d3ac; --text: #2b1d10; --leise: #5e4630; --ov: rgba(40, 18, 8, .45);
  --kulisse-q: url(img/kulisse-abend-q.webp); --kulisse-h: url(img/kulisse-abend-h.webp); }
:root[data-ansicht="regen"] { --bg: #3a4250; --bg2: #262c36; --holz1: #9a7a58; --holz2: #6a5038; --holz3: #3e2c1c; --papier: #eef0ea; --papier2: #dcdfd6; --text: #22262c; --leise: #4a5260;
  --ov: rgba(20, 26, 38, .45); --kulisse-q: url(img/kulisse-regen-q.webp); --kulisse-h: url(img/kulisse-regen-h.webp); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg2); 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(--holz2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--holz2); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
.zf { font-variant-numeric: lining-nums tabular-nums; display: inline-block; }
#buehne .zf { font-size: inherit; }

#buehne { position: fixed; left: 0; top: 0; transform-origin: 0 0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; grid-template-areas: "leiste" "feld";
  gap: 8px; padding: 0 12px 12px; overflow: hidden; background: var(--bg2); }
#kulisse { position: absolute; inset: 0; z-index: 0; background: var(--kulisse-q) center / cover no-repeat; }
#buehne.hoch #kulisse { background-image: var(--kulisse-h); }
#buehne > header, #buehne > main { position: relative; z-index: 1; }
#leiste { grid-area: leiste; display: flex; align-items: center; gap: 12px; height: 66px; margin: 0 -12px; padding: 0 14px; color: var(--leiste-text); background-color: var(--holz2);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 23px), linear-gradient(180deg, var(--holz1), var(--holz2) 70%, var(--holz3)) var(--holz2);
  border-bottom: 3px solid var(--holz3); box-shadow: 0 5px 14px var(--schatten); }
#logo { font-size: 25px; flex: none; display: flex; flex-direction: column; justify-content: center; font-weight: 700; font-style: italic; letter-spacing: .05em; line-height: 1; white-space: nowrap; }
#logo span, .titel span { color: var(--leiste-text); text-shadow: 0 2px 0 var(--holz3); }
#logo b, .titel b { color: #ffd76a; text-shadow: 0 2px 0 var(--akzent2); }
#modus { font-size: 13px; font-weight: 400; font-style: normal; letter-spacing: 0; color: var(--leiste-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; max-width: 200px; }
#werte { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; }
.wert { display: flex; flex-direction: column; justify-content: center; padding: 2px 12px; height: 52px; min-width: 0; flex: 0 1 auto; border-radius: 9px;
  background: var(--wert-bg); border: 1px solid rgba(255, 230, 190, .35); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35); }
.wert span { font-size: 13px; line-height: 1.2; color: var(--leiste-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wert b { font-size: 18px; line-height: 1.25; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; color: var(--leiste-text); font-variant-numeric: lining-nums tabular-nums; }
.wert b small { font-size: 13px; color: var(--leiste-leise); font-weight: 400; }
.wert.gross { min-width: 130px; } .wert.gross b { font-size: 23px; color: #ffd76a; }
.wert-korb { min-width: 170px; }
#w-korb { gap: 8px; }
#w-korbleiste { display: block; width: 90px; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .35); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); flex: none; }
#w-korbleiste > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e3b433, #3f8b3d); transition: width .25s; }
#w-korbzahl { font-style: normal; font-size: 15px; color: var(--leiste-text); }
.leben { display: inline-flex; gap: 4px; }
.leben i { width: 14px; height: 18px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: radial-gradient(circle at 35% 30%, #fff, #e3b433 45%, #a06a10); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
#knoepfe { display: flex; gap: 6px; flex: none; margin-left: auto; }
#knoepfe button { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--holz3); display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text);
  background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 3px 0 var(--holz3), 0 4px 8px var(--schatten); }
#knoepfe button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--holz3); }
#knoepfe button svg, .reihe button svg, .modus svg { width: 22px; height: 22px; }

#feldbox { grid-area: feld; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; }
#rahmen { position: relative; flex: none; padding: 0; border-radius: 6px; outline: 9px solid var(--holz2);
  box-shadow: 0 0 0 11px var(--holz3), 0 20px 34px 8px var(--schatten), 0 0 0 9px var(--holz2); }
#rahmen::before { content: ''; position: absolute; inset: -9px; border-radius: 8px; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 3px, transparent 3px 11px), linear-gradient(135deg, var(--holz1), var(--holz2) 55%, var(--holz3)); }
#rahmen::after { content: ''; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), inset 0 8px 18px rgba(0, 0, 0, .3); }
#cv { display: block; width: 100%; height: 100%; border-radius: 4px; touch-action: none; cursor: crosshair; }
#bann { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); padding: 9px 14px; text-align: center; pointer-events: none; z-index: 3;
  background: var(--papier); color: var(--text); font-size: 16px; line-height: 1.35; border-radius: 4px; border: 1px solid var(--rand); box-shadow: 0 6px 14px var(--schatten); }
#bann b { display: block; font-size: 19px; color: var(--akzent); margin-bottom: 2px; }
#bann.neu { animation: bannEin .45s ease-out; }
#bann.durch { opacity: .2; transition: opacity .15s; }
@keyframes bannEin { 0% { opacity: 0; } 100% { opacity: 1; } }
#wirkung { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; pointer-events: auto; }
.wk { position: relative; padding: 4px 10px 7px; border-radius: 6px; background: var(--papier); border: 1px solid var(--rand); font-size: 14px; font-weight: 700; color: var(--akzent2); overflow: hidden; box-shadow: 0 3px 8px var(--schatten); }
.wk i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); }
#bahntafel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 30px)); z-index: 4; padding: 14px 18px 10px; text-align: center;
  background: var(--papier); border: 1px solid var(--rand); border-radius: 6px; box-shadow: 0 12px 28px var(--schatten); pointer-events: none; }
#bahntafel.neu { animation: tafelEin .4s ease-out; }
@keyframes tafelEin { 0% { transform: translate(-50%, -46%) scale(.94); opacity: 0; } 100% { transform: translate(-50%, -50%); opacity: 1; } }
#bahntafel h3 { margin: 0 0 4px; font-size: 22px; color: var(--akzent); }
#bahntafel table { font-size: 15px; }
.sterne { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.sterne i { width: 34px; height: 34px; color: rgba(90, 60, 30, .3); }
.sterne i svg { width: 100%; height: 100%; }
.sterne i.an { color: var(--gold); filter: drop-shadow(0 2px 2px rgba(80, 50, 10, .4)); }
.sterne.gross { flex-direction: column; align-items: center; gap: 2px; } .sterne.gross > span { font-size: 14px; color: var(--leise); }
.sterne.gross i { width: 42px; height: 42px; display: inline-block; }
.sterne.gross { display: block; text-align: center; }
#b-tausch { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px 6px; min-width: 96px; min-height: 78px;
  border-radius: 12px; border: 1px solid var(--holz3); background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 3px 0 var(--holz3), 0 5px 12px var(--schatten); touch-action: manipulation; }
#b-tausch canvas { width: 72px; height: 42px; pointer-events: none; } #b-tausch span { font-size: 14px; font-weight: 700; pointer-events: none; }
#buehne.finger #b-tausch { display: flex; }
#hinweis { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 6px; z-index: 5;
  background: var(--papier); border: 1px solid var(--rand); white-space: nowrap; box-shadow: 0 6px 14px var(--schatten); }
#hinweis button { min-height: 44px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--holz3); background: var(--knopf); }
#toast { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 10px 16px; border-radius: 6px; background: var(--papier); border: 1px solid var(--rand); z-index: 9; box-shadow: 0 6px 14px var(--schatten); max-width: 90%; }

#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: 6px; color: var(--text);
  background: linear-gradient(180deg, var(--papier), var(--papier2)); border: 1px solid var(--rand); box-shadow: 0 18px 40px var(--schatten), inset 0 0 40px rgba(140, 100, 50, .12); }
.kasten.mitte { width: min(520px, 100%); text-align: center; }
.kasten h2 { margin: 0 0 10px; font-size: 27px; color: var(--akzent); } .kasten h3 { margin: 14px 0 6px; font-size: 18px; color: var(--akzent2); }
.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(--holz3);
  background: linear-gradient(180deg, #f8ecd0, #e2c896); color: var(--text); box-shadow: 0 3px 0 var(--holz3), 0 4px 8px var(--schatten); }
.reihe button.haupt { background: linear-gradient(180deg, #d4473a, var(--akzent2)); color: #fff4e2; border-color: #5e130c; box-shadow: 0 3px 0 #5e130c, 0 4px 8px var(--schatten); font-weight: 700; }
.reihe button:active, .modus:active { transform: translateY(2px); }
.menue .titel { font-size: 56px; text-align: center; margin-bottom: 6px; font-weight: 700; font-style: italic; letter-spacing: .05em; }
.menue .titel span { color: var(--holz2); text-shadow: none; } .menue .titel b { color: var(--akzent); text-shadow: 0 2px 0 rgba(90, 20, 10, .25); }
.menue .unter { text-align: center; color: var(--leise); }
.modi { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 10px; }
.modus { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px; min-height: 66px; border-radius: 10px; border: 1px solid var(--holz3); color: var(--text);
  background: linear-gradient(180deg, #fbf3df, #ead6aa); box-shadow: 0 3px 0 var(--holz3), 0 4px 10px var(--schatten); }
.modus .mi { width: 44px; height: 44px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--akzent); color: #fff4e2; box-shadow: inset 0 -3px 0 var(--akzent2); }
.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; margin-top: 8px; }
.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 .ans-bild { width: 96px; height: 54px; border-radius: 4px; display: block; background: #9cc6df center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
#ov .ansichten button.an { box-shadow: 0 0 0 3px var(--akzent), 0 3px 0 var(--holz3); }
.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; }
label.einst { display: inline-flex; position: relative; min-height: 48px; padding-left: 34px; align-items: center; }
.einst input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.einst label::before, label.einst::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); border: 2px solid var(--holz2); border-radius: 5px; background: var(--papier); }
.einst label:has(input:checked)::before, label.einst:has(input:checked)::before { background: radial-gradient(circle, var(--akzent) 45%, var(--papier) 50%); }
.einst label:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td { padding: 3px 0; vertical-align: top; } td:last-child { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; padding-left: 8px; }
tr.sum td { border-top: 1px solid var(--rand); font-weight: 700; color: var(--akzent2); padding-top: 5px; }
.klein { font-size: 14px; color: var(--leise); } .mitte { text-align: center; }
.regeln p { font-size: 15px; }
.eintraege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eintrag { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: rgba(255, 252, 240, .6); border-radius: 8px; border: 1px solid var(--rand); }
.eintrag canvas { flex: none; width: 64px; height: 64px; border-radius: 6px; background: radial-gradient(circle, #a9cf78, #6c9a3e); }
.eintrag b { font-size: 16px; } .eintrag p { margin: 2px 0; font-size: 14px; } .eintrag small { font-size: 14px; color: var(--akzent2); }
.kasten.abenteuer { width: min(980px, 100%); }
.stationen { display: flex; flex-direction: column; gap: 10px; }
.station { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--rand); background: rgba(255, 252, 240, .55); }
.st-kopf { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; } .st-kopf b { font-size: 17px; color: var(--akzent2); } .st-kopf small { font-size: 13px; color: var(--leise); }
.st-bahnen { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.bahnwahl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--holz3); color: var(--text);
  background: linear-gradient(180deg, #fbf3df, #e8d2a2); box-shadow: 0 3px 0 var(--holz3); text-align: center; }
.bahnwahl > * { pointer-events: none; }
.bahnwahl b { font-size: 13px; line-height: 1.15; font-weight: 400; }
.bw-nr { font-size: 13px; font-weight: 700; color: var(--akzent2); }
.bw-st { display: flex; gap: 2px; } .bw-st i { width: 12px; height: 12px; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); background: rgba(90, 60, 30, .25); }
.bw-st i.an { background: var(--gold); }
.bahnwahl.boss { background: linear-gradient(180deg, #f6dcd2, #dfb39e); }
.bahnwahl.zu { opacity: .5; border-style: dashed; box-shadow: none; background: rgba(240, 230, 210, .6); }
.bahnwahl small { font-size: 12px; color: var(--warn); }
.bahnwahl small.bw-best { color: var(--leise); font-variant-numeric: lining-nums tabular-nums; }
.st-kopf small.st-sum { color: var(--akzent2); font-weight: 700; }
.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(--akzent); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; } .endzahl span { color: var(--leise); }
.gut { color: var(--gut); text-align: center; } .warn { color: var(--warn); text-align: center; }
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bericht-kopf { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); border-bottom: 1px dashed var(--rand); padding-bottom: 6px; margin-bottom: 8px; }
.bericht-mitte { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 8px; }
.ausweis { min-width: 190px; padding: 8px 14px; text-align: center; background: #fffaf0; border: 3px double var(--akzent2); border-radius: 6px; }
.ausweis small { display: block; font-size: 12px; color: var(--leise); letter-spacing: .08em; text-transform: uppercase; }
.ausweis b { display: block; font-size: 21px; color: var(--akzent); margin: 2px 0; } .ausweis span { display: block; font-size: 13px; color: var(--leise); }
.stempel { position: absolute; right: 74px; top: 30px; max-width: 170px; padding: 4px 10px; border: 3px double var(--akzent); border-radius: 6px; color: var(--akzent); font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-align: center; transform: rotate(-10deg); opacity: .8; pointer-events: none; }
.st-mini { display: inline-block; width: 12px; height: 12px; margin-right: 1px; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); background: var(--gold); }
.bahnen td { font-size: 14px; }
.liste ol { margin: 0; padding-left: 26px; } .liste li { padding: 2px 0; } .liste li span { display: inline-block; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.liste li b { float: right; font-variant-numeric: lining-nums tabular-nums; }
.erfolge-neu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 8px 0; padding: 8px 10px; border: 2px dashed var(--akzent2); border-radius: 8px; background: #fffaf0; }
.erfolge-neu > b { width: 100%; text-align: center; color: var(--akzent); font-size: 15px; }
.erfolge-neu span { display: inline-flex; flex-direction: column; align-items: center; font-weight: 700; color: var(--akzent2); font-size: 14px; }
.erfolge-neu span svg { width: 22px; height: 22px; color: var(--gold); } .erfolge-neu small { font-weight: 400; font-size: 12px; color: var(--leise); }
.erf-wand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.erf { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 10px 8px; border-radius: 8px; border: 1px dashed var(--rand); background: rgba(255, 252, 240, .5); color: var(--leise); }
.erf.an { border-style: solid; border-color: var(--gold); color: var(--text); box-shadow: 0 0 0 1px var(--gold) inset; }
.erf-ic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(90, 60, 30, .12); }
.erf.an .erf-ic { background: var(--gold); color: #fff6e0; } .erf-ic svg { width: 22px; height: 22px; }
.erf b { font-size: 15px; } .erf small { font-size: 13px; line-height: 1.3; }
.kasten > .ov-zu { position: sticky; top: -10px; float: right; z-index: 3; width: 44px; height: 44px; margin: -10px -14px 0 10px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--holz3); background: linear-gradient(180deg, #f8ecd0, #e2c896); color: var(--text); box-shadow: 0 2px 6px var(--schatten); cursor: pointer; padding: 0; }
.kasten > .ov-zu svg { width: 20px; height: 20px; }
@media (max-width: 1300px) { #modus { max-width: 140px; } }
#buehne:not(.hoch) .wert span { max-width: 210px; }
#buehne.hoch { grid-template-rows: auto 1fr; padding: 0 8px 10px; }
#buehne.hoch #leiste { height: auto; flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px 8px; }
#buehne.hoch #werte { order: 3; flex-basis: 100%; gap: 5px; flex-wrap: wrap; }
#buehne.hoch .wert { flex: 1 1 20%; padding: 2px 8px; height: 50px; } #buehne.hoch .wert.gross { min-width: 0; flex-basis: 26%; } #buehne.hoch .wert-korb { flex-basis: 64%; min-width: 0; }
#buehne.hoch [data-ki="bahn"] { flex-basis: 44%; order: 2; } #buehne.hoch [data-ki="leben"] { flex-basis: 18%; order: 3; } #buehne.hoch [data-ki="serie"] { flex-basis: 24%; order: 5; }
#buehne.hoch .wert.gross { order: 1; } #buehne.hoch .wert-korb { order: 4; } #buehne.hoch #w-korbzahl { font-size: 16px; } #buehne.hoch #w-korbleiste { width: 70px; }
#buehne.hoch #knoepfe button { width: 62px; height: 60px; } #buehne.hoch #knoepfe button svg { width: 28px; height: 28px; }
#buehne.hoch .kasten { width: 100%; } #buehne.hoch .eintraege, #buehne.hoch .spalten { grid-template-columns: 1fr; }
#buehne.hoch .reihe button { min-height: 60px; font-size: 17px; } #buehne.hoch .modus { min-height: 74px; }
#buehne.hoch .einst label, #buehne.hoch label.einst { min-height: 62px; } #buehne.hoch #ov .ansichten button { min-height: 62px; }
#buehne.hoch .menue .titel { font-size: 46px; } #buehne.hoch #hinweis button { min-height: 60px; }
#buehne.hoch .st-bahnen { grid-template-columns: repeat(4, 1fr); } #buehne.hoch .bahnwahl { min-height: 92px; }
#buehne.hoch .bahnwahl b, #buehne.hoch .bw-nr, #buehne.hoch .bahnwahl small { font-size: 15px; } #buehne.hoch .bw-st i { width: 16px; height: 16px; }
#buehne.hoch .stempel { right: 84px; font-size: 12px; max-width: 130px; }
#buehne.hoch .kasten > .ov-zu { width: 62px; height: 62px; } #buehne.hoch .kasten > .ov-zu svg { width: 26px; height: 26px; }
#buehne.hoch #b-tausch { right: 6px; bottom: 6px; }
#buehne.hoch .erf-wand { grid-template-columns: 1fr 1fr; }
@media (hover: hover) { .reihe button:hover, .modus:hover, #knoepfe button:hover, .bahnwahl:not(.zu):hover { filter: brightness(1.06); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.modus small.heute { color: var(--akzent2); margin-top: 2px; }
#bahntafel .naechste { margin: 4px 0 2px; font-size: 15px; color: var(--text); }
.pause-weg { text-align: left; margin: 10px 0; padding: 8px 12px; background: rgba(255, 252, 240, .55); border-radius: 6px; border: 1px solid var(--rand); }
.pause-weg h3 { margin: 0 0 4px; }
.bahnwahl.gold { background: linear-gradient(180deg, #fff3c4, #f0cf6a); }
.bahnwahl.gold .bw-nr { color: #8a5a06; }
.abz { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; font-size: 13px; font-weight: 700; margin-left: auto; }
.abz svg { width: 15px; height: 15px; }
.abz-bronze { background: #e7c3a0; color: #6a3a14; } .abz-silber { background: #e2e4e8; color: #3e4450; } .abz-gold { background: #f4d56a; color: #6a4806; }
.abz-leer { background: transparent; color: var(--leise); border: 1px dashed var(--rand); font-weight: 400; }
.sammler { display: flex; flex-direction: column; gap: 4px; margin: 6px auto 4px; max-width: 420px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--rand); background: rgba(255, 252, 240, .55); }
.sammler span { display: flex; align-items: center; gap: 8px; } .sammler span svg { width: 22px; height: 22px; color: var(--akzent); }
.sammler b { font-size: 16px; color: var(--akzent2); } .sammler small { font-size: 13px; color: var(--leise); margin-left: auto; font-variant-numeric: lining-nums tabular-nums; }
.sammler > i { display: block; height: 8px; border-radius: 4px; background: rgba(90, 60, 30, .18); overflow: hidden; } .sammler > i > i { display: block; height: 100%; background: linear-gradient(90deg, #e3b433, #c63a2c); }
#bahntafel .sterne i.an { animation: sternEin .45s ease-out both; }
#bahntafel .sterne i.an:nth-child(2) { animation-delay: .32s; } #bahntafel .sterne i.an:nth-child(3) { animation-delay: .64s; }
#bahntafel .sterne i.an:nth-child(1) { animation-delay: 0s; }
@keyframes sternEin { 0% { transform: scale(.2) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.3); opacity: 1; } 100% { transform: none; } }
#buehne.hoch .st-bahnen { grid-template-columns: repeat(4, 1fr); }
#buehne.hoch .st-kopf small, #buehne.hoch .abz { font-size: 15px; }
.wert-geist b .vor { color: #b8f28a; } .wert-geist b .hinter { color: #ffb39a; }
#buehne.hoch .wert-geist { order: 6; flex-basis: 40%; }
.wdh-zeile { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 6px 0; border-radius: 8px; background: rgba(255, 252, 240, .6); border: 1px solid var(--rand); text-align: left; }
.wdh-zeile > span:first-child { flex: 1; display: flex; flex-direction: column; } .wdh-zeile small { color: var(--leise); font-variant-numeric: lining-nums tabular-nums; }
.wdh-zeile button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--holz3); background: var(--knopf); }
.wdh-zeile button svg { width: 18px; height: 18px; }
.wdh-liste h3 { text-align: left; }
button.link { border: 0; background: none; padding: 0 2px; color: var(--akzent2); font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 0; }
#hinweis button.an { box-shadow: 0 0 0 2px var(--akzent); }
#hinweis span svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.woche { margin: 8px auto; max-width: 460px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rand); background: rgba(255, 252, 240, .55); text-align: left; }
.woche-kopf { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; } .woche-kopf b { display: inline-flex; align-items: center; gap: 6px; color: var(--akzent2); } .woche-kopf svg { width: 18px; height: 18px; }
.woche-kopf small { margin-left: auto; color: var(--leise); font-size: 13px; }
.aufgabe { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 3px 0; font-size: 14px; }
.aufgabe span { display: inline-flex; align-items: center; gap: 6px; } .aufgabe span svg { width: 16px; height: 16px; color: var(--leise); flex: none; }
.aufgabe small { font-size: 13px; color: var(--leise); font-variant-numeric: lining-nums tabular-nums; }
.aufgabe > i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: rgba(90, 60, 30, .15); overflow: hidden; } .aufgabe > i > i { display: block; height: 100%; background: #3f8b3d; }
.aufgabe.ok span svg { color: #3f8b3d; } .aufgabe.ok span { text-decoration: line-through; color: var(--leise); }
.aufgabe.neu { animation: aufgabeNeu 1.4s ease-out; border-radius: 6px; }
@keyframes aufgabeNeu { 0%, 40% { background: rgba(227, 180, 51, .5); } 100% { background: transparent; } }
.stempelneu { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px auto; padding: 6px 12px; max-width: 460px; border: 3px double var(--akzent); border-radius: 8px; color: var(--akzent); transform: rotate(-2deg); }
.stempelneu svg { width: 22px; height: 22px; }
#buehne.hoch .aufgabe, #buehne.hoch .aufgabe small, #buehne.hoch .woche-kopf small { font-size: 15px; }
.kleider { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kleid { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 8px; border: 1px solid var(--holz3); background: linear-gradient(180deg, #fbf3df, #e8d2a2); color: var(--text); box-shadow: 0 3px 0 var(--holz3); text-align: center; }
.kleid > * { pointer-events: none; } .kleid canvas { width: 120px; height: 70px; max-width: 100%; border-radius: 6px; }
.kleid b { font-size: 14px; } .kleid small { font-size: 12px; color: var(--leise); line-height: 1.25; }
.kleid.an { box-shadow: 0 0 0 3px var(--akzent), 0 3px 0 var(--holz3); } .kleid.zu { opacity: .5; border-style: dashed; box-shadow: none; }
#buehne.hoch .kleider { grid-template-columns: repeat(2, 1fr); } #buehne.hoch .kleid small { font-size: 15px; } #buehne.hoch .kleid b { font-size: 16px; }

.reihe.extras button svg { color: var(--akzent); }
.kasten.kalender, .kasten.musterbuch { width: min(980px, 100%); }
.kal-stand { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 10px; color: var(--akzent2); }
.kal-stand svg { width: 20px; height: 20px; }
.tueren { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tuer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--holz3); background: linear-gradient(180deg, #fbf3df, #e8d2a2); color: var(--text); box-shadow: 0 3px 0 var(--holz3); text-align: center; min-height: 44px; }
.tuer > * { pointer-events: none; } .tuer canvas { width: 48px; height: 48px; }
.tuer b { font-size: 13px; } .tuer small { font-size: 11px; color: var(--leise); line-height: 1.2; }
.tuer.zu { opacity: .55; border-style: dashed; box-shadow: none; background: repeating-linear-gradient(135deg, #efe4c8 0 8px, #e4d6b2 8px 16px); }
.tuer.zu canvas { filter: grayscale(1) brightness(.85); }
.tuer.heute { box-shadow: 0 0 0 3px var(--gold), 0 3px 0 var(--holz3); }
.tuer.ok { background: linear-gradient(180deg, #f3f7e4, #d6e5b2); }
.tuer-haken { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gut); color: #fff; display: grid; place-items: center; }
.tuer-haken svg { width: 14px; height: 14px; }
.seiten { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.seite { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 6px; border: 1px solid var(--rand); background: linear-gradient(180deg, #fffaf0, #f1e4c4); box-shadow: inset 0 0 18px rgba(120, 80, 30, .12); text-align: center; }
.seite canvas { width: 120px; height: 140px; max-width: 100%; }
.seite b { font-size: 15px; color: var(--akzent2); } .seite small { font-size: 12px; color: var(--leise); line-height: 1.3; }
.seite.zu { opacity: .7; border-style: dashed; }
.duell h2 svg { width: 26px; height: 26px; vertical-align: -5px; margin-right: 6px; color: var(--akzent); }
.duell-ergebnis { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px auto; padding: 8px 14px; max-width: 460px; border-radius: 8px; border: 2px solid var(--holz2); background: #f6ecd4; }
.duell-ergebnis svg { width: 26px; height: 26px; color: var(--holz2); } .duell-ergebnis b { font-size: 17px; } .duell-ergebnis span { font-size: 14px; color: var(--leise); }
.duell-ergebnis.sieg { border-color: var(--gold); background: #fff4cf; } .duell-ergebnis.sieg svg { color: var(--gold); }
.stempelneu.gold { border-color: var(--gold); color: #8a5a08; }
#hinweis.bauleiste { flex-wrap: wrap; justify-content: center; width: min(1000px, calc(100% - 16px)); bottom: 8px; gap: 6px; }
#hinweis.bauleiste button { min-height: 40px; padding: 4px 10px; font-size: 14px; }
#hinweis.bauleiste button[aria-disabled="true"] { opacity: .55; }
.bau-stand { flex: 1 1 100%; text-align: center; font-size: 14px; color: var(--text); white-space: normal; }
.bau-stand.gut { color: var(--gut); } .bau-stand svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
#buehne.hoch .tueren { grid-template-columns: repeat(3, 1fr); } #buehne.hoch .seiten { grid-template-columns: repeat(2, 1fr); }
#buehne.hoch .tuer b { font-size: 15px; } #buehne.hoch .tuer small, #buehne.hoch .seite small { font-size: 14px; }
#buehne.hoch #hinweis.bauleiste button { min-height: 68px; min-width: 66px; font-size: 18px; } #buehne.hoch .bau-stand { font-size: 18px; }
@media (max-width: 760px) { .tueren { grid-template-columns: repeat(4, 1fr); } .seiten { grid-template-columns: repeat(2, 1fr); } }
#hinweis.bauleiste.oben { top: 8px; bottom: auto; }
#buehne.bauen #b-tausch { display: none; }

.kasten.abenteuer { width: min(1100px, 100%); }
.station { position: relative; padding: 8px 10px 12px; border: 3px solid var(--holz2); border-radius: 10px; box-shadow: 0 4px 10px var(--schatten), inset 0 0 26px rgba(40, 24, 8, .35);
  background: linear-gradient(180deg, rgba(255, 250, 235, .2), rgba(40, 24, 8, .12)), var(--hang) center / cover no-repeat, #7a9a4a; }
.st-kopf { background: rgba(255, 250, 235, .92); border-radius: 6px; padding: 4px 10px; box-shadow: 0 2px 4px rgba(40, 24, 8, .25); }
.st-bahnen { position: relative; grid-template-columns: repeat(10, 1fr); gap: 6px; padding-bottom: 26px; }
.st-weg { position: absolute; inset: 0 0 0 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.st-weg path { fill: none; stroke: rgba(240, 214, 160, .85); stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 2px rgba(40, 24, 8, .4)); }
.st-bahnen .bahnwahl { z-index: 1; min-height: 92px; border-radius: 46% 46% 12px 12px; border: 2px solid var(--holz3); }
.st-bahnen .bahnwahl:nth-of-type(even) { transform: translateY(26px); }
.bahnwahl.zu { opacity: .82; background: rgba(240, 230, 210, .82); }
.bw-fig { width: 46px; height: 46px; margin: -6px 0 -4px; filter: drop-shadow(0 2px 2px rgba(40, 24, 8, .4)); }
.bahnwahl.zu .bw-fig { filter: grayscale(.8) opacity(.7); }
#buehne.hoch .st-bahnen { grid-template-columns: repeat(5, 1fr); row-gap: 34px; }
#buehne.hoch .st-weg { display: none; }
#buehne.flach { gap: 4px; padding-bottom: 6px; }
#buehne.flach #leiste { height: 50px; gap: 8px; }
#buehne.flach .wert { height: 42px; padding: 1px 8px; }
#buehne.flach #werte { gap: 5px; } #buehne.flach #knoepfe { gap: 4px; } #buehne.flach #modus { max-width: 110px; }
#buehne.flach #logo { font-size: 20px; }
#buehne.flach #knoepfe button { min-width: 44px; min-height: 44px; }
#buehne.flach .wert[data-ki="serie"] { display: none; } #buehne.flach #logo { font-size: 17px; }

.kasten.wochenbahn, .kasten.spielerbahn, .kasten.bossalbum { width: min(900px, 100%); }
.wochenbahn h2 svg, .spielerbahn h2 svg, .bossalbum h2 svg { width: 26px; height: 26px; vertical-align: -5px; margin-right: 6px; color: var(--gold); }
.wb-kopf, .spb-karte { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; }
.wb-kopf canvas, .spb-karte canvas { width: 240px; height: 135px; flex: none; border-radius: 6px; border: 3px solid var(--holz2); box-shadow: 0 3px 8px var(--schatten); }
.wb-kopf b, .spb-karte b { display: block; font-size: 20px; color: var(--akzent2); } .wb-kopf small, .spb-karte small { display: block; color: var(--leise); font-size: 14px; }
.wb-eigen { margin-top: 6px; }
#spb-name { width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 17px; border: 2px solid var(--holz2); border-radius: 8px; background: #fffaf0; color: var(--text); }
.album { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.albumkarte { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; text-align: center; border-radius: 8px; border: 2px solid var(--holz2);
  background: linear-gradient(180deg, #fffaf0, #efdfb8); box-shadow: 0 3px 0 var(--holz3); }
.albumkarte img { width: 96px; height: 96px; filter: drop-shadow(0 3px 3px rgba(40, 24, 8, .4)); }
.albumkarte b { font-size: 15px; color: var(--akzent2); } .albumkarte small { font-size: 12px; color: var(--leise); line-height: 1.3; } .albumkarte .alb-st { color: var(--akzent2); font-weight: 700; }
.albumkarte.zu img { filter: brightness(0) opacity(.35); } .albumkarte.zu { border-style: dashed; box-shadow: none; }
#buehne.hoch .album { grid-template-columns: repeat(2, 1fr); } #buehne.hoch .albumkarte small { font-size: 14px; }
#buehne.hoch .wb-kopf, #buehne.hoch .spb-karte { flex-direction: column; align-items: stretch; } #buehne.hoch .wb-kopf canvas, #buehne.hoch .spb-karte canvas { width: 100%; height: auto; }
@media (max-width: 760px) { .album { grid-template-columns: repeat(2, 1fr); } }

#turbo { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(180deg, #ffb35c, #e0662a); color: #fff; font-weight: 700; font-size: 17px; text-shadow: 0 1px 0 rgba(90, 30, 0, .6); box-shadow: 0 3px 10px rgba(90, 30, 0, .45); animation: turbo-puls .6s ease-in-out infinite alternate; }
#turbo svg { width: 18px; height: 18px; }
@keyframes turbo-puls { from { filter: brightness(1); } to { filter: brightness(1.15); } }
#buehne.hoch #turbo { font-size: 20px; }
