@font-face{font-family:'SGZ Ziffern';src:local('Times New Roman'),local('TimesNewRomanPSMT'),local('Liberation Serif'),local('LiberationSerif'),local('Tinos'),local('Noto Serif'),local('NotoSerif-Regular');font-weight:100 600;unicode-range:U+0030-0039}
@font-face{font-family:'SGZ Ziffern';src:local('Times New Roman Bold'),local('TimesNewRomanPS-BoldMT'),local('Liberation Serif Bold'),local('LiberationSerif-Bold'),local('Tinos Bold'),local('Noto Serif Bold'),local('NotoSerif-Bold');font-weight:700 900;unicode-range:U+0030-0039}
:root {
  --akzent: #f0b54a; --akzent2: #f29bb0; --akzent3: #2a1810; --tief: #2a1a14; --panel: rgba(36, 52, 47, .93); --panel2: rgba(30, 44, 40, .97);
  --text: #f6eedd; --mute: #e0d4bc; --rand: rgba(240, 181, 74, .55); --knopf1: #4d6b62; --knopf2: #2f4741; --knopfText: #f6eedd;
  --gruen: #8fd88a; --rot: #ff9585; --gold: #f0b54a;
  --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif;
}
html[data-ansicht="nacht"] {
  --akzent: #f29bb0; --akzent2: #9fd8ff; --tief: #10141c; --panel: rgba(20, 26, 40, .93); --panel2: rgba(16, 20, 32, .97);
  --text: #eef0f6; --mute: #c8cfdf; --rand: rgba(242, 155, 176, .5); --knopf1: #34405e; --knopf2: #222b44;
}
html[data-ansicht="hell"] {
  --akzent: #a6531a; --akzent2: #b03a5c; --akzent3: #f6efe2; --tief: #e6dccb; --panel: rgba(250, 245, 236, .95); --panel2: rgba(250, 245, 236, .98);
  --text: #2a1c12; --mute: #4f3c2c; --rand: rgba(90, 60, 30, .45); --knopf1: #efe2c8; --knopf2: #d9c49c; --knopfText: #2a1c12;
  --gruen: #2e7d3a; --rot: #a3231b; --gold: #8a5a10;
}
body { background: var(--tief); color: var(--text); }
#kulisse { position: fixed; inset: 0; z-index: 0; overflow: clip; background: #4a2a1e url(img/halle-frueh.webp?v=1796071660) center / cover no-repeat; }
body.hoch #kulisse { background-image: url(img/halle-frueh-hoch.webp?v=1796071660); }
html[data-ansicht="nacht"] #kulisse { background-image: url(img/halle-nacht.webp?v=1796071660); background-color: #141824; }
html[data-ansicht="nacht"] body.hoch #kulisse { background-image: url(img/halle-nacht-hoch.webp?v=1796071660); }
html[data-ansicht="hell"] #kulisse { background-image: url(img/halle-hell.webp?v=1796071660); background-color: #cdbba0; }
html[data-ansicht="hell"] body.hoch #kulisse { background-image: url(img/halle-hell-hoch.webp?v=1796071660); }
#kulisse i { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, .16), transparent 18%), radial-gradient(ellipse at 20% 0%, rgba(255, 236, 190, .22), transparent 30%), radial-gradient(ellipse at 80% 0%, rgba(255, 236, 190, .2), transparent 30%);
  animation: dampf 8s ease-in-out infinite alternate; }
@keyframes dampf { from { opacity: .55; transform: translateY(0); } to { opacity: 1; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { #kulisse i { animation: none; } }
#buehne { z-index: 1; }
#logo::before { content: ''; display: block; width: 64px; height: 40px; margin: -2px auto 4px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fffaf0'/%3E%3Cstop offset='.4' stop-color='%23f2a0b4'/%3E%3Cstop offset='1' stop-color='%23b3506a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4' y='6' width='56' height='28' rx='13' fill='url(%23a)'/%3E%3Cellipse cx='24' cy='13' rx='14' ry='4' fill='%23fff' opacity='.5'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
body.hoch #logo::before { display: none; }
.wert.warn b { color: var(--rot); }
#brettbox { touch-action: none; flex-direction: column; gap: 10px; }
#feld { position: relative; z-index: 0; padding: 0; border-radius: 12px; box-sizing: content-box; border: 10px solid #44584f;
  border-image: none; background: #31403a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .5);
  outline: 2px solid rgba(255, 255, 255, .1); outline-offset: -6px; touch-action: none; cursor: pointer; }
#feld::before { content: ''; position: absolute; inset: -9px; border-radius: 12px; pointer-events: none;
  background: radial-gradient(circle, #d6d9cf 0 2px, rgba(0, 0, 0, .4) 2.5px, transparent 3px) 0 0 / 34px 100%; -webkit-mask: linear-gradient(#000 0 8px, transparent 8px calc(100% - 8px), #000 calc(100% - 8px)); mask: linear-gradient(#000 0 8px, transparent 8px calc(100% - 8px), #000 calc(100% - 8px)); }
html[data-ansicht="nacht"] #feld { border-color: #3a4560; background: #222a3e; }
html[data-ansicht="hell"] #feld { border-color: #8aa398; background: #6e857b; }
#brett { position: static; display: block; border-radius: 4px; pointer-events: none; }
#meld { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4; max-width: min(92%, 560px); padding: 8px 16px; border-radius: 10px;
  background: rgba(24, 30, 28, .94); border: 1px solid var(--rand); color: #f6eedd; font: 600 14px/1.35 system-ui, sans-serif; text-align: center;
  opacity: 0; transition: opacity .25s; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
#meld.an { opacity: 1; }
#meld.warn { border-color: #ff9585; }
html[data-ansicht="hell"] #meld { background: rgba(252, 248, 240, .97); color: #2a1c12; }
#steuer { display: none; gap: 8px; justify-content: center; max-width: 100%; }
#steuer.an { display: flex; }
#steuer button { flex: 1; min-height: 58px; min-width: 64px; border-radius: 12px; border: 2px solid #ece2c8; background: linear-gradient(#3f5a52, #2a3f39); color: #fff;
  font: 700 13px system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; touch-action: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
#steuer button b { font-size: 22px; line-height: 1; }
#steuer button:active { transform: translateY(2px); background: linear-gradient(#557a6e, #33504a); }
html[data-ansicht="hell"] #steuer button { background: linear-gradient(#fbf5e8, #e6d6b4); color: #2a1c12; border-color: #8a6a3e; }
#brettbox.steuer-seite { flex-direction: row; justify-content: flex-start; align-items: center; padding-left: 12px; gap: 12px; }
#brettbox.steuer-seite #steuer.an { display: grid; grid-template-columns: 74px 74px; gap: 8px; width: 156px; }
#brettbox.steuer-seite #steuer button { min-width: 0; min-height: 64px; }
@media (max-height: 440px) { body:not(.hoch) #logo::before { display: none; } #brettbox .mo-start h3 { font-size: 21px; } #brettbox .mo-start { padding-top: 8px; padding-bottom: 8px; } }
.mw-reihe { display: inline-flex; gap: 2px; }
.mw-bild svg { display: block; width: 46px; height: 28px; }
.mo-start figure svg { width: 60px; height: 36px; }
body { --mo-bg1: #2e4540; --mo-bg2: #1d2d29; --mo-bg3: #101a17; --mo-rand: #f0b54a; --mo-rand-weich: rgba(240, 181, 74, .32); --mo-akzent: #f0b54a; --mo-akzent2: #f29bb0;
  --mo-hell: #fff1d0; --mo-text: #f6eedd; --mo-leise: #e0d4bc; --mo-leiser: #b8ad98; --mo-band1: #f6a6bb; --mo-band2: #c2506e; --mo-band-t: #2a0f18; }
body:not(.hoch) #logo { font-size: 26px; letter-spacing: .5px; }
@media (max-height: 560px) { body:not(.hoch) #logo { font-size: 18px; letter-spacing: 0; } }
@media (pointer: coarse) { #ov details > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; } }
@media (max-height: 520px) {
  .menue .schildkopf { font-size: 26px; } .menue .unter { display: none; }
  .menue .modi { grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
  .menue .modus { display: grid; grid-template-columns: 30px 1fr; grid-template-areas: 'ic b' 'ic sp'; column-gap: 8px; align-items: center; text-align: left; padding: 7px 10px; }
  .menue .modus svg { grid-area: ic; width: 26px; height: 26px; margin: 0; } .menue .modus b { grid-area: b; font-size: 16px; } .menue .modus span { grid-area: sp; font-size: 12px; margin: 0; } .menue .modus em { display: none; }
  .menue h3, .menue [id^="mListe"] { display: none; }
}
@media (max-width: 520px) and (orientation: portrait) {
  .menue .schildkopf { font-size: 30px; letter-spacing: .02em; } .menue .unter { font-size: 13px; line-height: 1.3; margin-bottom: 6px; }
  .menue .modi { gap: 8px; margin: 8px 0 6px; }
  .menue .modus { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: 'ic b em' 'ic sp sp'; column-gap: 8px; align-items: center; text-align: left; padding: 8px 10px; }
  .menue .modus svg { grid-area: ic; width: 26px; height: 26px; margin: 0; } .menue .modus b { grid-area: b; font-size: 17px; }
  .menue .modus span { grid-area: sp; font-size: 12px; margin: 0; } .menue .modus em { grid-area: em; font-size: 14px; margin: 0; white-space: nowrap; }
  .menue h3 { margin: 8px 0 2px; font-size: 15px; }
}
#ov .rechnung { table-layout: fixed; } #ov .rechnung td:first-child { white-space: normal; overflow-wrap: anywhere; } #ov .rechnung td:last-child { width: 34%; }
@media (pointer: coarse) and (max-height: 440px) { #ov .dlg.mo-tafel:not(.pause) .mo-leiter { display: none; } }
@media (pointer: coarse) { #ov .dlg.mo-tafel .reihe .knopf { height: auto; min-height: 44px; } #ov .dlg.mo-tafel details.mo-rechen > summary { min-height: 44px; } }
html[data-ansicht="hell"] .wert { background: rgba(255, 252, 244, .7); }
html[data-ansicht="hell"] .wert b { color: #2a1c12; }
#hud { z-index: 2; }
@media (max-height: 560px) { body:not(.hoch) #hud { padding-left: 6px; padding-right: 6px; } body:not(.hoch) #knoepfe { gap: 4px; } body:not(.hoch) #knoepfe button { min-width: 40px; min-height: 42px; } }
.mw-balken { display: block; height: 6px; margin: 4px auto 0; width: 84%; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.mw-balken > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f2a0b4, #ffd36a); }
html[data-ansicht="hell"] .mw-balken { background: rgba(60,40,20,.18); }
.mw-flieger { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  font: 800 20px/1 'SGZ Ziffern', Georgia, serif; color: #ffe08a; text-shadow: 0 2px 4px rgba(0, 0, 0, .85), 0 0 12px rgba(255, 200, 80, .7);
  transition: transform .75s cubic-bezier(.45, -0.35, .6, 1), opacity .75s ease-in; }
.mw-flieger.mw-auftrag { color: #a8f0b8; font-size: 18px; text-shadow: 0 2px 4px rgba(0, 0, 0, .85), 0 0 12px rgba(120, 240, 150, .6); }
.wert.mw-plopp { animation: mwPlopp .45s ease-out; }
@keyframes mwPlopp { 0% { transform: scale(1); } 40% { transform: scale(1.1); box-shadow: 0 0 18px rgba(255, 210, 100, .75); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wert.mw-plopp { animation: none; } }
#meld.chef { padding-left: 66px; min-height: 44px; display: flex; align-items: center; text-align: left; }
#meld.chef::before { content: ''; position: absolute; left: -8px; bottom: -10px; width: 68px; height: 68px; background: url(img/vorarbeiter.webp?v=1796190000) center / contain no-repeat;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); animation: mwChef .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mwChef { from { transform: translateY(18px) scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #meld.chef::before { animation: none; } }
#kulisse b { position: absolute; inset: 0; pointer-events: none; background: var(--mw-licht, transparent); transition: background 3s ease; }
html:not([data-ansicht="frueh"]) #kulisse b { display: none; }
#steuer { gap: 6px; } #steuer button { min-width: 52px; }
#steuer .mw-turbo { background: linear-gradient(#8a4f1c, #5c3210); border-color: #f3d29a; }
#steuer .mw-turbo:active { background: linear-gradient(#a8622a, #6e3c14); }
html[data-ansicht="hell"] #steuer .mw-turbo { background: linear-gradient(#f6d6a8, #e0a868); color: #2a1c12; }
#brettbox.steuer-seite #steuer .mw-turbo { grid-column: 1 / -1; min-height: 52px; }
#meld { width: max-content; max-width: min(92%, 560px); box-sizing: border-box; }
@media (pointer: coarse) and (max-height: 440px) { #ov .dlg.mo-tafel .mo-kacheln.mo-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; } #ov .dlg.mo-tafel .mo-kacheln.mo-n5 .mo-kachel { padding-left: 3px; padding-right: 3px; } }
@media (pointer: coarse) and (max-height: 440px) { #ov .dlg.mo-tafel .reihe .knopf { min-height: 50px; } #ov .dlg.mo-tafel details.mo-rechen > summary { min-height: 50px; } #ov .dlg.mo-tafel .mo-plakette { margin: 2px 0; font-size: 12px; } }
.rd-level .mw-weiter { pointer-events: auto; display: block; margin: 8px auto 2px; min-height: 44px; padding: 0 18px; }
.rd-level .rd-summe { font-size: 26px; font-family: var(--kopf); line-height: 1.1; } .rd-level .rd-summe b { font-size: 36px; }
.regeln .bsp:has(.mw-reihe) { grid-template-columns: 1fr; }
.regeln h2 { padding-left: 44px; padding-right: 44px; }
#ov .mo-tafel .mo-leiter { margin-top: 20px; }
body.hoch #modus { white-space: normal; line-height: 1.15; font-size: 12px; padding-left: 10px; }
.mw-abz { position: absolute; right: 10px; top: 34%; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 30px;
  background: linear-gradient(#3a2a10, #1e1408); border: 2px solid #f0b54a; color: #fff3d0; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); pointer-events: none;
  animation: mwAbzEin .5s cubic-bezier(.2, 1.4, .4, 1) both; transition: opacity .4s, transform .4s; }
.mw-abz.weg { opacity: 0; transform: translateX(30px); }
.mw-abz i, .mw-abz-liste i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font: 800 14px/1 var(--kopf); font-style: normal;
  background: radial-gradient(circle at 35% 30%, #fff2b0, #e0a420 60%, #9a6a10); color: #3a2400; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 0 14px rgba(255, 210, 90, .6); }
.mw-abz small { display: block; font: 600 12px system-ui, sans-serif; color: #f0c870; letter-spacing: .04em; }
.mw-abz b { display: block; font: 700 15px system-ui, sans-serif; }
@keyframes mwAbzEin { from { opacity: 0; transform: translateX(60px) scale(.7); } to { opacity: 1; transform: none; } }
.mw-abz-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 6px 0 4px; }
.mw-abz-liste span { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .45; }
.mw-abz-liste span i { width: 30px; height: 30px; font-size: 11px; filter: grayscale(1); box-shadow: none; }
.mw-abz-liste span.hat { opacity: 1; } .mw-abz-liste span.hat i { filter: none; }
.mw-abz-zahl { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .mw-abz { animation: none; } }
.mw-dia { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 92px; margin: 8px auto 2px; max-width: 360px; }
.mw-dia span { flex: 1; max-width: 40px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.mw-dia b { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(#f2a0b4, #b3506a); animation: mwSaeule .6s ease-out both; transform-origin: bottom; }
.mw-dia span.jetzt b { background: linear-gradient(#ffe08a, #e0a420); }
.mw-dia em { font: 600 11px 'SGZ Ziffern', system-ui, sans-serif; font-style: normal; color: var(--mo-leise, #e0d4bc); }
.mw-dia small { font-size: 11px; color: var(--mo-leiser, #b8ad98); }
@keyframes mwSaeule { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .mw-dia b { animation: none; } }
#brettbox .rd-level.rd-mitte { width: min(560px, calc(100% - 16px)); }
#brettbox .rd-level .mo-kachel { padding-left: 6px; padding-right: 6px; min-width: 0; }
#brettbox .rd-level .mo-kachel b { font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
#brettbox .rd-level .mo-kachel small { white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 520px) { #brettbox .rd-level .mo-kachel b { font-size: 15px; } }
