@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: #a3231b; --akzent2: #1f4e9c; --akzent3: #f6e7c0; --tief: #e9d8ae; --panel: rgba(250, 240, 214, .93); --panel2: rgba(250, 241, 218, .97);
  --text: #2e1c0c; --mute: #6b4a26; --rand: rgba(163, 35, 27, .5); --knopf1: #f3e0b0; --knopf2: #d9b46a; --knopfText: #2e1c0c;
  --gruen: #2e7d3a; --rot: #a3231b; --gold: #b98a22; --perg1: #f6e7c2; --perg2: #dcc28c;
  --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif;
}
html[data-ansicht="nacht"] {
  --akzent: #f0c060; --akzent2: #8fb4ff; --akzent3: #2a1a10; --tief: #17121f; --panel: rgba(28, 20, 30, .92); --panel2: rgba(32, 24, 36, .97);
  --text: #fff2d6; --mute: #e6cf9f; --rand: rgba(240, 192, 96, .45); --knopf1: #5a3a2a; --knopf2: #2e1c14; --knopfText: #fff2d6;
  --gruen: #7fd38a; --rot: #ff8a7a; --gold: #f0c060; --perg1: #d6c393; --perg2: #a58d5c;
}
body { background: var(--tief); }
#kulisse { position: fixed; inset: 0; z-index: 0; overflow: clip; background: #b9a37a url(img/burghof-tag.webp?v=1) center / cover no-repeat; }
body.hoch #kulisse { background-image: url(img/burghof-tag-hoch.webp?v=1); }
html[data-ansicht="nacht"] #kulisse { background-image: url(img/burghof-nacht.webp?v=1); background-color: #1c1626; }
html[data-ansicht="nacht"] body.hoch #kulisse { background-image: url(img/burghof-nacht-hoch.webp?v=1); }
#kulisse::before { content: ''; position: absolute; inset: 0; background: rgba(255, 244, 220, .12); }
html[data-ansicht="nacht"] #kulisse::before { background: rgba(10, 6, 20, .3); }
#kulisse i { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 30%, rgba(255, 236, 190, .18), transparent 45%); animation: licht 9s ease-in-out infinite alternate; }
html[data-ansicht="nacht"] #kulisse i { background: radial-gradient(circle at 12% 40%, rgba(255, 160, 60, .22), transparent 22%), radial-gradient(circle at 88% 38%, rgba(255, 160, 60, .2), transparent 22%); animation: fackel 1.6s steps(6) infinite alternate; }
@keyframes licht { from { background-position: -60px 0; opacity: .7; } to { background-position: 60px 0; opacity: 1; } }
@keyframes fackel { from { opacity: .75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #kulisse i { animation: none; } }
#buehne { z-index: 1; }
#logo span, #logo b { font-family: Georgia, 'Times New Roman', serif; }
#logo b { color: var(--akzent); }
#logo span, #logo b { text-shadow: 0 2px 0 rgba(255, 250, 232, .6); }
html[data-ansicht="nacht"] #logo span, html[data-ansicht="nacht"] #logo b { text-shadow: 0 2px 0 rgba(0, 0, 0, .55); }
#hud { background: var(--panel); border-color: var(--rand); }
.wert { background: rgba(255, 250, 236, .7); }
.wert b { color: var(--text); font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
html[data-ansicht="nacht"] .wert { background: rgba(0, 0, 0, .28); }
#eigen { grid-template-columns: 1fr 1fr; }
.endwert { color: var(--akzent); font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; }
.hinweis { background: rgba(255, 250, 236, .75); color: var(--text); }
html[data-ansicht="nacht"] .hinweis { background: rgba(0, 0, 0, .3); color: var(--mute); }
#banner { color: var(--akzent); text-shadow: 0 2px 0 rgba(255, 250, 238, .9); }
#knoepfe { grid-template-columns: repeat(4, 1fr); }
#knoepfe button.beschr { flex-direction: column; gap: 0; height: 50px; }
#knoepfe button.beschr small { font-size: 11px; line-height: 1; margin-top: 2px; }
#zeit, #punkte { font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }

#brettbox { overflow: clip; touch-action: none; }
#flaeche { position: absolute; z-index: 0; border-radius: 14px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 252, 235, .45), transparent 60%), repeating-linear-gradient(12deg, rgba(120, 80, 30, .06) 0 2px, transparent 2px 7px), repeating-linear-gradient(-78deg, rgba(120, 80, 30, .04) 0 1px, transparent 1px 11px), linear-gradient(135deg, var(--perg1), var(--perg2));
  border: 3px solid rgba(120, 80, 30, .55); box-shadow: 0 14px 34px rgba(20, 10, 0, .55), inset 0 0 40px rgba(120, 80, 30, .25); }
#brett { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#banner { z-index: 6; }

#meld { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 4; width: min(560px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.meldung { padding: 8px 14px; border-radius: 10px; background: var(--panel2); color: var(--text); border: 2px solid var(--rand); font-size: 14.5px; line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); text-align: center; transition: opacity .35s, transform .35s; }
.meldung.gut { border-color: var(--gold); }
.meldung.schlecht { border-color: var(--rot); }
.meldung.hinweis { border-color: var(--akzent2); font-style: italic; }
.meldung.weg { opacity: 0; transform: translateY(-6px); }

#karte { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(440px, calc(100% - 28px)); max-height: calc(100% - 20px); overflow: auto;
  padding: 18px 20px 16px; border-radius: 16px; background: var(--panel2); border: 3px solid var(--akzent); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); text-align: center; color: var(--text);
  scrollbar-width: thin; scrollbar-color: var(--akzent) rgba(0, 0, 0, .12); }
#karte::-webkit-scrollbar { width: 8px; } #karte::-webkit-scrollbar-thumb { background: var(--akzent); border-radius: 4px; }
#karte .welt { font-size: 13px; color: var(--mute); letter-spacing: .6px; text-transform: uppercase; }
#karte h2 { margin: 4px 0 8px; font: 700 26px/1.15 Georgia, 'Times New Roman', serif; color: var(--akzent); }
#karte .unter { color: var(--mute); margin-bottom: 6px; }
#karte p { margin: 6px 0; font-size: 14.5px; }
#karte .neu { color: var(--akzent2); }
#karte .tipp { font-style: italic; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .35); }
html[data-ansicht="nacht"] #karte .tipp { background: rgba(0, 0, 0, .25); }
#karte .vers { color: var(--rot); }
#karte .los { color: var(--mute); font-size: 13px; }
#karte table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; }
#karte td { padding: 4px 6px; border-bottom: 1px solid var(--rand); text-align: left; } #karte td + td { text-align: right; font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
#karte tr.summe td { font-weight: 800; color: var(--akzent); }
#karte .knopf { min-height: 44px; width: 100%; margin-top: 6px; }
.sterne { display: inline-flex; gap: 6px; margin: 4px 0; }
.sterne i { width: 30px; height: 30px; background: rgba(0, 0, 0, .18); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sterne i.an { background: #d99a20; }
.sterne.klein i { width: 15px; height: 15px; } .sterne.klein { gap: 2px; margin: 0 4px 0 0; vertical-align: -2px; }

#kreuz { position: absolute; z-index: 5; touch-action: none; display: grid; grid-template: 1fr 1fr 1fr / 1fr 1fr 1fr; }
#kreuz button { border-radius: 14px; border: 2px solid rgba(60, 30, 10, .6); background: linear-gradient(var(--knopf1), var(--knopf2)); color: var(--knopfText);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; touch-action: none; min-width: 40px; min-height: 40px; }
#kreuz button.an { filter: brightness(1.2); transform: translateY(2px); }
#kreuz svg { width: 60%; height: 60%; fill: currentColor; pointer-events: none; }
#kreuz .k0 { grid-area: 1 / 2; } #kreuz .k1 { grid-area: 2 / 3; } #kreuz .k2 { grid-area: 3 / 2; } #kreuz .k3 { grid-area: 2 / 1; }

#wahl { position: fixed; inset: 16px; z-index: 15; max-width: 1180px; margin: 0 auto; overflow: auto; padding: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); border: 2px solid var(--rand); background: var(--panel2); scrollbar-width: thin; scrollbar-color: var(--akzent) rgba(0, 0, 0, .12); border-radius: 14px; }
#wahl::-webkit-scrollbar { width: 8px; } #wahl::-webkit-scrollbar-thumb { background: var(--akzent); border-radius: 4px; } #wahl::-webkit-scrollbar-track { background: rgba(0, 0, 0, .12); }
#wahl .zu { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--rand); background: var(--panel2); color: var(--text); z-index: 2; }
#wahl .zu svg { width: 22px; height: 22px; }
#wahl h2 { margin: 0 0 6px; text-align: center; font: 700 24px/1.2 Georgia, serif; color: var(--akzent); }
#wahl .rang { text-align: center; margin: 0 0 8px; color: var(--mute); }
#wahl h3 { margin: 14px 0 8px; font: 700 16px/1.2 Georgia, serif; color: var(--akzent2); }
.wahlgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.wahlgitter button { min-height: 60px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--rand); background: rgba(255, 255, 255, .55);
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; color: var(--text); }
html[data-ansicht="nacht"] .wahlgitter button { background: rgba(0, 0, 0, .25); }
.wahlgitter button:hover { border-color: var(--akzent); }
.wahlgitter button.zu-level { opacity: .5; border-style: dashed; cursor: not-allowed; }
.wahlgitter b { grid-row: span 2; font: 700 22px/1 var(--kopf); color: var(--akzent); align-self: center; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
.wahlgitter span { font-weight: 700; font-size: 14px; }
.wahlgitter em { font-style: normal; font-size: 12px; color: var(--mute); }

#infotip { position: fixed; z-index: 30; max-width: 250px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); color: var(--text); border: 2px solid var(--rand); font-size: 13px; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.kasten { border: 2px solid var(--rand); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; background: rgba(255, 255, 255, .35); }
html[data-ansicht="nacht"] .kasten { background: rgba(0, 0, 0, .25); }
#ov, #ov * { scrollbar-color: var(--akzent) rgba(0, 0, 0, .15); }
#ov ::-webkit-scrollbar-thumb { background: var(--akzent); }
@media (max-height: 720px) and (min-aspect-ratio: 1/1) {
  #hud { gap: 7px; padding: 10px 14px; } #logo { font-size: 24px; padding: 2px 0 0; } .wert { padding: 4px 8px 5px; } .wert.klein b { font-size: 19px; }
  #knoepfe button { height: 40px; } #knoepfe button.beschr { height: 44px; }
}
@media (pointer: coarse) { .meldung { font-size: 13.5px; } }
body.hoch #knoepfe { flex-wrap: wrap; gap: 6px; justify-content: center; }
body.hoch #knoepfe button, body.hoch #knoepfe button.beschr { width: 46px; height: 42px; flex: 0 0 46px; }
body.hoch #knoepfe button.beschr small { display: none; }
body.hoch #karte { top: 46%; }

#karte .zu { position: sticky; top: 0; float: right; margin: -8px -10px 0 6px; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--rand);
  background: var(--panel2); color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 2; }
#karte .zu svg { width: 20px; height: 20px; }
#karte .schwelle { font-size: 13.5px; color: var(--mute); }
#karte .hilfe { font-size: 13.5px; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--rand); }
.sterne.mini { gap: 1px; margin: 0 2px 0 0; vertical-align: -2px; } .sterne.mini i { width: 13px; height: 13px; }
#feldinfo { position: absolute; z-index: 6; max-width: 260px; padding: 8px 11px; border-radius: 10px; background: var(--panel2); color: var(--text);
  border: 2px solid var(--akzent); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); pointer-events: none; font-size: 13.5px; line-height: 1.35; }
#feldinfo b { display: block; font: 700 15px/1.2 Georgia, serif; color: var(--akzent); margin-bottom: 2px; }
#feldinfo span { display: block; }

#karte .weltseite { margin: -4px -6px 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(185, 138, 34, .25), rgba(163, 35, 27, .12)); border: 2px solid var(--gold); }
#karte .weltseite b { display: block; font: 700 22px/1.2 Georgia, serif; color: var(--akzent2); }
#karte .weltseite span { display: block; font-size: 14px; }
.burgbuch { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 4px 0 6px; }
.abz { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; align-items: center; padding: 5px 8px; border-radius: 10px; border: 1px dashed var(--rand); color: var(--mute); }
.abz svg { width: 20px; height: 20px; grid-row: span 2; } .abz b { font-size: 12.5px; } .abz small { font-size: 11px; line-height: 1.2; }
.abz.an { border-style: solid; border-color: var(--gold); color: var(--text); background: rgba(217, 165, 32, .14); } .abz.an svg { color: var(--gold); }
.wahlgitter button { grid-template-columns: 34px 1fr auto; }
.wahlgitter .vorschau { grid-row: span 2; align-self: center; max-width: 64px; max-height: 40px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); image-rendering: pixelated; }

#wahl { display: flex; flex-direction: column; }
#wahl .reiter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 2px 0 6px; }
#wahl .reiter button { min-height: 44px; border-radius: 10px; border: 2px solid var(--rand); background: rgba(255, 255, 255, .45); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; }
html[data-ansicht="nacht"] #wahl .reiter button { background: rgba(0, 0, 0, .25); }
#wahl .reiter button.an { border-color: var(--akzent); background: rgba(217, 165, 32, .3); }
#wahl .reiter b { font-size: 13px; } #wahl .reiter small { font-size: 11px; color: var(--mute); }
#wahl h3 { margin: 6px 0; }
.wahlgitter { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wahlgitter button { min-height: 58px; padding: 6px 8px; }
.wahlgitter span { font-size: 13px; line-height: 1.15; }
@media (max-width: 700px) { #wahl .reiter { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wahlgitter { grid-template-columns: repeat(2, minmax(0, 1fr)); } #wahl { padding: 10px; } }
@media (max-height: 460px) { #wahl h2 { font-size: 18px; margin: 0; } #wahl .rang { margin: 0 0 2px; font-size: 12px; } #wahl h3 { display: none; } .wahlgitter button { min-height: 50px; padding: 4px 6px; } .wahlgitter .vorschau { display: none; } #wahl .reiter button { min-height: 40px; } }

@media (max-height: 760px) {
  .menue .schildkopf { font-size: 36px; margin: 0 0 4px; } .menue .unter { font-size: 13px; margin-bottom: 4px; }
  .modi { gap: 8px; margin: 8px 0 4px; } .modus { padding: 8px 10px; } .modus svg { width: 22px; height: 22px; margin-bottom: 2px; }
  .modus b { font-size: 19px; } .modus span { font-size: 12px; } .modus em { font-size: 15px; margin-top: 3px; }
  .menue h3 { margin: 8px 0 4px; font-size: 16px; } .menue .liste td { padding: 3px 6px; } .menue .reihe { margin-top: 8px; }
}
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .menue { width: min(900px, 100%); } .dlg.menue { padding: 10px 16px; } .menue .schildkopf { font-size: 26px; } .menue .unter { display: none; }
  .modi.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .modus span { display: none; } .modus { padding: 6px 8px; }
  .menue h3 { margin: 4px 0 2px; font-size: 14px; } .menue .liste tr:nth-child(n+4) { display: none; }
}

body.hoch #wahl { inset: 8px; }
@media (max-width: 700px) { .wahlgitter button { min-height: 52px; } .wahlgitter .vorschau { max-width: 48px; max-height: 32px; } }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) {
  #buehne, body:not(.hoch) #buehne { grid-template-columns: 262px 1fr; gap: 6px; padding: 6px; }
  #hud { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 4px; padding: 6px 8px; border-radius: 12px; }
  #logo { grid-column: 1 / -1; font-size: 19px; padding: 0; } #modus { grid-column: 1 / -1; font-size: 11px; min-height: 0; }
  .wert { padding: 2px 4px 3px; border-radius: 8px; } body:not(.hoch) .wert span, .wert span { font-size: 11px; letter-spacing: .4px; } .wert b, .wert.klein b { font-size: 17px; }
  #eigen { grid-column: 1 / -1; gap: 4px; } #info { display: none; }
  #knoepfe { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 2px; }
  #knoepfe button, #knoepfe button.beschr, body:not(.hoch) #knoepfe button { height: 44px; } #knoepfe button.beschr small { display: none; } #knoepfe svg { width: 19px; height: 19px; }
}

.turnier { display: flex; justify-content: center; gap: 10px; margin: 2px 0 6px; }
.turnier i { width: 34px; height: 40px; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3); animation: hissen .7s ease-out both; }
.turnier .w1 { background: linear-gradient(90deg, #b3261e 50%, #e8c35a 50%); } .turnier .w2 { background: linear-gradient(90deg, #1f4e9c 50%, #e8c35a 50%); animation-delay: .1s; }
.turnier .w3 { background: linear-gradient(90deg, #2e7d3a 50%, #e8c35a 50%); animation-delay: .2s; } .turnier .w4 { background: linear-gradient(180deg, #cde6f5 50%, #1f4e9c 50%); animation-delay: .3s; }
.turnier .w5 { background: linear-gradient(180deg, #7a1f1a 50%, #e8c35a 50%); animation-delay: .4s; } .turnier .w6 { background: linear-gradient(135deg, #e8c35a 50%, #b3261e 50%); animation-delay: .5s; }
@keyframes hissen { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .turnier i { animation: none; } }
.turniertext { text-align: center; font-style: italic; color: var(--akzent2); }
@media (max-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 461px) {
  #buehne { grid-template-columns: 214px 1fr; gap: 8px; padding: 8px; }
  #hud { padding: 10px; gap: 7px; } #logo { font-size: 22px; } .wert { padding: 4px 6px 5px; } .wert b { font-size: 22px; } .wert.klein b { font-size: 18px; }
  #knoepfe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .menue .schildkopf { font-size: 30px; margin: 0 0 4px; } .menue .unter { font-size: 12.5px; margin-bottom: 4px; }
  .modi { gap: 8px; margin: 8px 0 4px; } .modus { padding: 8px 8px; } .modus svg { width: 22px; height: 22px; margin-bottom: 2px; }
  .modus b { font-size: 17px; } .modus span { font-size: 11.5px; } .modus em { font-size: 14px; margin-top: 3px; }
  .menue h3 { margin: 8px 0 4px; font-size: 15px; } .menue .reihe { margin-top: 10px; gap: 8px; }
}

#wahl { overflow-x: hidden; }
.wahlgitter button { grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 3px; min-width: 0; align-content: start; }
.wahlgitter b { grid-row: 1; grid-column: 1; }
.wahlgitter span { grid-row: 1; grid-column: 2; align-self: center; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.wahlgitter .vorschau { grid-row: 2; grid-column: 1 / -1; justify-self: center; height: 40px; width: auto; max-width: 100%; max-height: none; object-fit: contain; }
.wahlgitter em { grid-row: 3; grid-column: 1 / -1; }
@media (max-width: 700px) { .wahlgitter .vorschau { height: 30px; max-width: 100%; max-height: none; } }
#wahl .reiter { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 700px) { #wahl .reiter { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#wahl { position: fixed; }
#wahl .baubtn { position: absolute; left: 16px; top: 16px; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--rand); background: var(--panel2); color: var(--text); font-weight: 700; z-index: 2; }
#wahl .baubtn svg { width: 22px; height: 22px; color: var(--akzent); }
@media (max-width: 620px) { #wahl .baubtn { gap: 0; padding: 0; width: 44px; justify-content: center; left: 10px; top: 10px; } #wahl .baubtn span { display: none; } }
#wZeit b { font-size: .8em; opacity: .85; }
#m_eigen { display: none !important; }
.modi.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .menue:has(.modi.n5) { width: min(700px, 100%); }
@media (max-width: 700px) { .modi.n5 { grid-template-columns: 1fr; } }
@media (max-height: 480px) and (min-aspect-ratio: 1/1) { .modi.n5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.legende { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 12px; margin: 6px 0 10px; }
.legende > div { display: flex; gap: 8px; align-items: center; }
.legende canvas { width: 40px; height: 40px; flex: none; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.legende span { font-size: 13.5px; line-height: 1.3; }
#bau { position: fixed; inset: 12px; z-index: 16; max-width: 1240px; margin: 0 auto; overflow: auto; padding: 14px; border: 2px solid var(--rand); border-radius: 14px; background: var(--panel2); color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); scrollbar-width: thin; scrollbar-color: var(--akzent) rgba(0, 0, 0, .12); }
#bau::-webkit-scrollbar { width: 8px; } #bau::-webkit-scrollbar-thumb { background: var(--akzent); border-radius: 4px; }
#bau .zu { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--rand); background: var(--panel2); color: var(--text); z-index: 2; }
#bau .zu svg { width: 22px; height: 22px; }
#bau h2 { margin: 0 0 8px; text-align: center; font: 700 24px/1.2 Georgia, serif; color: var(--akzent); }
.baukopf { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; margin-bottom: 8px; font-size: 14px; }
.baukopf input, .baukopf select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 2px solid var(--rand); background: rgba(255, 255, 255, .7); color: #2e1c0c; min-height: 36px; }
.baukopf #bauName { width: 160px; } .baukopf .chk { display: flex; align-items: center; gap: 4px; } .baukopf .chk input { min-height: 0; width: 20px; height: 20px; }
.bauflaeche { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.bauplan { min-width: 0; display: flex; justify-content: center; }
#bauPlan { touch-action: none; border: 3px solid #6b4a26; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); cursor: crosshair; }
.werkzeuge { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; max-height: 52vh; overflow: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: var(--akzent) rgba(0, 0, 0, .12); }
.werkzeuge .wz { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 2px; border-radius: 8px; border: 2px solid transparent; background: rgba(255, 255, 255, .45); color: var(--text); min-height: 60px; }
html[data-ansicht="nacht"] .werkzeuge .wz { background: rgba(0, 0, 0, .25); }
.werkzeuge .wz.an { border-color: var(--akzent); background: rgba(217, 165, 32, .35); }
.werkzeuge canvas { width: 30px; height: 30px; border-radius: 4px; }
.werkzeuge small { font-size: 11px; line-height: 1.1; text-align: center; }
.baurichtung { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; }
.baurichtung button { min-height: 44px; padding: 0 10px; border-radius: 8px; border: 2px solid var(--rand); background: rgba(255, 255, 255, .45); color: var(--text); }
.baurichtung button.an { border-color: var(--akzent); background: rgba(217, 165, 32, .35); font-weight: 700; }
.baustatus { text-align: center; margin: 8px 0 0; font-size: 14px; color: var(--mute); } .baustatus.gut { color: var(--gruen); } .baustatus.schlecht { color: var(--rot); font-weight: 700; }
#bau .reihe { margin-top: 8px; } #bau .knopf[disabled] { opacity: .45; cursor: not-allowed; }
#bauEin textarea { width: 100%; box-sizing: border-box; margin-top: 8px; font: 13px/1.3 monospace; border-radius: 8px; border: 2px solid var(--rand); padding: 6px; }
@media (max-width: 820px) { .bauflaeche { grid-template-columns: 1fr; } .werkzeuge { max-height: 30vh; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); } }
@media (max-width: 700px) { #bau { inset: 6px; padding: 10px; } #bau h2 { font-size: 20px; } }
.turnier .w7 { background: linear-gradient(90deg, #1f4e9c 33%, #f4efe0 33% 66%, #b3261e 66%); animation-delay: .6s; }
.baukopf input, .baukopf select, .dunkelknopf { min-height: 44px; }
.dunkelknopf { padding: 0 12px; border-radius: 8px; border: 2px solid var(--rand); background: rgba(255, 255, 255, .55); color: var(--text); font: inherit; }
.dunkelknopf.an { border-color: var(--akzent); background: rgba(40, 30, 60, .85); color: #fff2d6; }
.werkzeuge { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.werkzeuge .wz { min-width: 0; }
.werkzeuge small { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; max-width: 100%; }
@media (max-width: 820px) { .werkzeuge { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); } }
#wahl .zu { align-self: flex-end; flex: 0 0 auto; margin-bottom: -44px; }
.rekord { background: #a3231b; color: #fff6e0; font-size: 13px; padding: 2px 9px; }
.baurichtung { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.baurichtung span { grid-column: 1 / -1; }
.baurichtung button { padding: 0 4px; }
#bau .reihe { flex-wrap: wrap; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-top: 10px; }
.galleer { grid-column: 1 / -1; text-align: center; color: var(--mute); }
.galburg { display: flex; align-items: center; gap: 10px; padding: 8px; border: 2px solid var(--rand); border-radius: 10px; background: rgba(255, 255, 255, .45); min-width: 0; }
html[data-ansicht="nacht"] .galburg { background: rgba(0, 0, 0, .25); }
.galbild { width: 76px; height: auto; max-height: 64px; object-fit: contain; image-rendering: pixelated; border: 2px solid #6b4a26; border-radius: 4px; flex: 0 0 auto; }
.galtext { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.galtext b { font: 700 15px/1.2 Georgia, serif; overflow-wrap: break-word; }
.galtext small { font-size: 12px; color: var(--mute); }
.galknoepfe { display: flex; gap: 4px; flex: 0 0 auto; }
.galknoepfe .knopf { min-height: 44px; min-width: 44px; padding: 0 10px; }
@media (max-width: 420px) { .galerie { grid-template-columns: 1fr; } .galburg { flex-wrap: wrap; } .galknoepfe { width: 100%; justify-content: flex-end; } }
.galknopf { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; } .galknopf svg { width: 20px; height: 20px; color: var(--akzent); }
#bau .reihe .knopf { padding-left: 12px; padding-right: 12px; }
.wahlgitter em .tr { display: inline-flex; vertical-align: middle; margin-left: 4px; opacity: .35; } .wahlgitter em .tr svg { width: 14px; height: 14px; }
.wahlgitter em .tr.an { opacity: 1; color: #c99a2e; }
#wahl h3 .truhenzahl { font: 600 13px/1 system-ui, sans-serif; color: var(--mute); margin-left: 8px; white-space: nowrap; } #wahl h3 .truhenzahl svg { width: 14px; height: 14px; vertical-align: -2px; }
.galerie { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); } .galtext { min-width: 130px; }
#meld { gap: 0; }
#meld.eng .meldung { padding: 4px 10px; font-size: 13px; }
.meldung { pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.meldknopf { pointer-events: auto; min-height: 36px; padding: 4px 12px; border-radius: 9px; border: 2px solid var(--gold); background: linear-gradient(#f6d77a, #d9a520); color: #2e1c0c; font: 700 13.5px/1.1 system-ui, sans-serif; cursor: pointer; }
@media (pointer: coarse) { .meldknopf { min-height: 44px; } }
#ortmeld { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ortm { position: absolute; max-width: 230px; padding: 4px 10px; border-radius: 10px; background: rgba(250, 241, 218, .95); color: #2e1c0c; border: 2px solid #b98a22;
  font: 600 13px/1.25 system-ui, sans-serif; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); transition: opacity .3s, transform .3s; text-align: center; }
html[data-ansicht="nacht"] .ortm { background: rgba(32, 24, 36, .95); color: #fff2d6; }
.ortm.gut { border-color: #2e8b3e; } .ortm.schlecht { border-color: #b3261e; }
.ortm.weg { opacity: 0; transform: translateY(-6px); }
#karte.levelkarte { top: auto; bottom: 10px; transform: translateX(-50%); max-height: calc(66% - 10px); }
body.hoch #karte.levelkarte { top: auto; }
#karte .planblick { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--rand); background: var(--panel2); color: var(--text); font: 600 13px/1 system-ui, sans-serif; float: left; margin: -8px 6px 0 -10px; }
#karte .planblick svg { width: 18px; height: 18px; }
#karte.klein > :not(.zu):not(.planblick):not(h2):not(.knopf):not(.inhalt):not(.kartenkopf) { display: none; }
#karte.klein .inhalt > :not(.zu):not(.planblick):not(h2) { display: none; }
#karte.klein h2 { font-size: 17px; margin: 4px 0; }
#karte .neuhin { color: var(--mute); font-size: 12.5px; }
#karte .lehrling { font-size: 13.5px; padding: 6px 10px; border-radius: 10px; background: rgba(232, 184, 58, .22); border: 1px solid var(--gold); }
.regeln .kurz { font-size: 14px; }
.regeln .alleknopf { display: block; width: 100%; min-height: 44px; margin: 8px 0; border: 2px solid var(--rand); border-radius: 12px; background: rgba(255, 255, 255, .35); cursor: pointer; font: 700 15px/1.2 Georgia, serif; color: var(--akzent); }
.regeln h2 { padding: 0 50px; }
#karte.levelkarte { display: flex; flex-direction: column; overflow: hidden; } #karte.levelkarte .inhalt { overflow: auto; min-height: 0; flex: 1 1 auto; scrollbar-width: thin; scrollbar-color: var(--akzent) rgba(0, 0, 0, .12); } #karte.levelkarte > .knopf.haupt { flex: 0 0 auto; }
#karte.levelkarte p { margin: 6px 0; }
.meldung:has(.meldknopf) { flex-wrap: nowrap; text-align: left; padding: 4px 6px 4px 12px; }
.meldung .meldknopf { flex: 0 0 auto; }
@media (max-width: 420px) { .meldung:has(.meldknopf) { flex-wrap: wrap; text-align: center; } }
#karte.levelkarte .inhalt { overflow-x: hidden; padding: 0 6px 0 2px; }
#karte.levelkarte { width: min(580px, calc(100% - 16px)); padding: 12px 14px 14px; }
#karte.levelkarte, body.hoch #karte.levelkarte { max-height: calc(100% - 20px); }
#karte .kartenkopf { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0 0 4px; }
#karte .kartenkopf .welt { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 13px; color: var(--text); opacity: .8; }
#karte .kartenkopf .zu, #karte .kartenkopf .planblick { position: static; float: none; margin: 0; flex: 0 0 auto; }
#karte.levelkarte p { font-size: 15.5px; line-height: 1.4; } #karte.levelkarte .schwelle, #karte.levelkarte .hilfe, #karte.levelkarte .lehrling { font-size: 14.5px; }
#karte.levelkarte .neuhin { font-size: 13.5px; } #karte.levelkarte h2 { font-size: 27px; }
@media (max-width: 430px) { #karte .kartenkopf .planblick span { display: none; } #karte .kartenkopf .planblick { width: 40px; padding: 0; justify-content: center; } }
@media (max-height: 520px) { #karte.levelkarte { max-height: calc(100% - 14px); bottom: 7px; } #karte.levelkarte h2 { font-size: 19px; } #karte.levelkarte p { margin: 4px 0; } }
#m_lehre { display: none !important; }
.modi.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .menue:has(.modi.n6) { width: min(700px, 100%); }
@media (max-width: 700px) { .modi.n6 { grid-template-columns: 1fr; } }
@media (max-height: 480px) and (min-aspect-ratio: 1/1) { .modi.n6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.meldung.vogt { justify-content: flex-start; text-align: left; gap: 10px; flex-wrap: nowrap; border-color: #1f4e9c; padding: 6px 12px 6px 6px; }
.meldung.vogt .vogtbild { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #e8dcc0; border: 2px solid #1f4e9c; }
.meldung.vogt b { color: #1f4e9c; } html[data-ansicht="nacht"] .meldung.vogt b { color: #8fb4ff; }
.meldung.vogt.neu { animation: vogtNeu .6s ease-out; }
@keyframes vogtNeu { from { transform: translateY(-6px); box-shadow: 0 0 0 4px rgba(232, 184, 58, .8); } to { transform: none; box-shadow: none; } }
#karte .vorfuehr { min-height: 40px; width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; margin-top: 0; }
#karte .vorfuehr svg { width: 18px; height: 18px; }
#mLehre.neu { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 184, 58, .55); animation: lehrePuls 1.6s ease-in-out infinite; }
@keyframes lehrePuls { 50% { box-shadow: 0 0 0 6px rgba(232, 184, 58, .25); } }
.wert b.ohne { font-size: 15px; line-height: 1.2; white-space: nowrap; }
body.lehre #ov .endwert { display: none; }
@media (max-width: 560px) { .meldung.vogt:has(.meldknopf) { flex-wrap: wrap; } .meldung.vogt .meldknopf { margin-left: 54px; } }
body.hoch .wert b.ohne { font-size: 13px; white-space: normal; }
@media (max-width: 560px) { .meldung.vogt { font-size: 13px; padding: 4px 8px 4px 4px; } .meldung.vogt .vogtbild { width: 34px; height: 34px; flex-basis: 34px; } .meldung.vogt .meldknopf { margin-left: 42px; } }
#wahl .reiter { grid-template-columns: repeat(10, minmax(0, 1fr)); }
@media (max-width: 700px) { #wahl .reiter { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.wert.burgkarte { grid-column: 1 / -1; }
.wert.burgkarte canvas { display: block; width: 100%; height: 150px; object-fit: contain; margin: 2px auto 0; image-rendering: pixelated; border-radius: 4px; }
@media (max-height: 820px) { .wert.burgkarte canvas { height: 104px; } }
@media (max-height: 660px) { .wert.burgkarte { grid-column: auto; } .wert.burgkarte canvas { height: 48px; } }
.turnier .w8 { background: linear-gradient(90deg, #d9a520 50%, #1f4e9c 50%); animation-delay: .7s; }
.turnier .w9 { background: linear-gradient(180deg, #b3261e 33%, #d9a520 33% 66%, #b3261e 66%); animation-delay: .8s; }
@media (max-width: 700px) and (max-height: 460px) {
  #wahl .reiter { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
  #wahl .reiter button { min-height: 38px; padding: 1px; }
  #wahl .reiter b { font-size: 11px; } #wahl .reiter small { font-size: 11px; }
  .wahlgitter { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .wahlgitter button { min-height: 50px; padding: 4px 5px; grid-template-columns: 22px minmax(0, 1fr); }
  .wahlgitter b { font-size: 16px; grid-row: 1; grid-column: 1; justify-self: start; }
  .wahlgitter span { font-size: 12px; grid-row: 2; grid-column: 1 / -1; overflow-wrap: normal; word-break: normal; }
  .wahlgitter em { font-size: 11px; grid-column: 1 / -1; }
  #wahl .baubtn { gap: 0; padding: 0; width: 44px; justify-content: center; left: 10px; top: 10px; } #wahl .baubtn span { display: none; }
}
@media (max-height: 460px) and (max-width: 720px) and (min-aspect-ratio: 1/1) {
  #buehne, body:not(.hoch) #buehne { grid-template-columns: 220px 1fr; }
  #knoepfe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #logo { font-size: 17px; } .wert b, .wert.klein b { font-size: 16px; }
}

:root { --mo-bg1: #6b2a1c; --mo-bg2: #40180f; --mo-bg3: #220b06; --mo-rand: #d9a520; --mo-rand-weich: rgba(217, 165, 32, .35); --mo-akzent: #ffd36a; --mo-akzent2: #e8b84a; }
body.hoch { --mo-fs-klein: 14px; }
#karte.mo-tafel { color: var(--mo-text); background: radial-gradient(120% 80% at 50% 0%, var(--mo-bg1) 0%, var(--mo-bg2) 55%, var(--mo-bg3) 100%); border-color: var(--mo-rand); }
#karte.mo-tafel h2 { color: var(--mo-akzent); }
#karte.mo-tafel .mo-kopf { padding: 0 44px 6px; margin: 0 0 4px; }
#karte.mo-tafel .knopf.haupt .zaehler { font-weight: 400; opacity: .75; }
#karte.mo-tafel p, #karte.mo-tafel .vers { color: var(--mo-leise); }
#karte.mo-tafel .knopf:not(.haupt) { background: rgba(0, 0, 0, .3); color: var(--mo-text); border-color: var(--mo-rand-weich); }
#karte.mo-tafel .weltseite { color: var(--mo-text); }
#karte.mo-tafel .weltseite b { color: var(--mo-akzent); }
.sterngruende { list-style: none; margin: 4px auto 8px; padding: 0; display: inline-flex; flex-direction: column; gap: 3px; text-align: left; }
.sterngruende li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sterngruende li.nicht span { text-decoration: line-through; opacity: .6; }
.sterngruende li.nicht .sterne i.an { background: rgba(255, 255, 255, .25); }
.abrtafel .mo-zahl b { font-size: 48px; }
.abrtafel .abr-min { font-size: 13.5px; }
#karte.mo-tafel .sterne i { background: rgba(255, 255, 255, .15); } #karte.mo-tafel .sterne i.an { background: #ffc83a; }
.pausetafel .mo-kacheln { margin: 6px 0; }
.pausetafel .pausehin { font-size: 14px; }
#karte .neubilder { margin: 6px 0; } #karte .neubilder > b { display: block; color: var(--akzent2); font-size: 15px; margin-bottom: 4px; }
#karte .neubilder > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#karte .neubilder figure { margin: 0; width: 72px; text-align: center; }
#karte .neubilder canvas { width: 44px; height: 44px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); background: #e9dcc0; }
#karte .neubilder figcaption { font-size: 13px; line-height: 1.15; margin-top: 2px; color: var(--text); }
#karte .neubilder .neuhin { display: block; margin-top: 2px; }
#ov .dlg.endtafel .mo-kopf { margin: -4px 0 4px; }
#ov .dlg.endtafel .endsterne { text-align: center; margin: 2px 0; }
#ov .dlg.endtafel .endsterne .sterne i { width: 34px; height: 34px; background: rgba(255, 255, 255, .15); } #ov .dlg.endtafel .endsterne .sterne i.an { background: #ffc83a; }
#ov .dlg.endtafel #eInfo.plakette { display: block; width: fit-content; margin: 6px auto; padding: 4px 14px; border-radius: 999px; font-size: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--mo-rand-weich); color: var(--mo-leise); }
#ov .dlg.endtafel #eInfo.gut { color: var(--mo-gut); border-color: var(--mo-gut-rand); } #ov .dlg.endtafel #eInfo.schlecht { color: var(--mo-warn); border-color: var(--mo-warn-rand); }
#ov .dlg.endtafel details.rechenweg { margin: 6px 0; text-align: left; } #ov .dlg.endtafel details.rechenweg summary { cursor: pointer; color: var(--mo-akzent2); font-size: 14px; text-align: center; }
#ov .dlg.endtafel details.rechenweg table { color: var(--mo-text); } #ov .dlg.endtafel details.rechenweg td { border-color: var(--mo-rand-weich); }
#ov .dlg.endtafel .mo-leiter { margin: 6px 0; }
#ov .dlg.endtafel .mo-kopf { color: var(--mo-akzent2); }
#ov .dlg.endtafel .mo-leiter { padding: 0 34px; }
@media (max-height: 520px) {
  .abrtafel h2 { font-size: 20px; margin: 0 0 2px; } .abrtafel .mo-kopf { padding-bottom: 3px; }
  .abrtafel .sterngruende { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 2px auto 4px; }
  .abrtafel .sterngruende li { font-size: 13.5px; } .abrtafel .mo-zahl b { font-size: 34px; } .abrtafel .mo-abr td { padding-top: 2px; padding-bottom: 2px; }
  .pausetafel h2 { font-size: 20px; margin: 0; } .pausetafel .knopf { min-height: 40px; }
}
@media (max-height: 520px) {
  #ov .dlg.endtafel h2 { font-size: 20px; margin: 0; } #ov .dlg.endtafel .endsterne .sterne i { width: 22px; height: 22px; }
  #ov .dlg.endtafel .mo-zahl b { font-size: 38px; } #ov .dlg.endtafel .mo-band { margin: 2px 0 0; } #ov .dlg.endtafel .mo-band span { font-size: 13px; padding: 2px 12px; }
  #ov .dlg.endtafel .mo-kacheln { margin: 4px 0; } #ov .dlg.endtafel .mo-kachel { padding: 3px 4px; } #ov .dlg.endtafel .mo-kachel b { font-size: 18px; }
  #ov .dlg.endtafel .mo-kachel > small { display: none; } #ov .dlg.endtafel #eInfo.plakette { margin: 3px auto; padding: 2px 12px; font-size: 13px; }
  #ov .dlg.endtafel .mo-leiter { margin: 2px 0; } #ov .dlg.endtafel .mo-leiter p { margin: 2px 0; }
}
@media (max-height: 520px) { #ov .dlg.endtafel .mo-zahl b { font-size: 42px; } #ov .dlg.endtafel .reihe { flex-wrap: nowrap; gap: 6px; } #ov .dlg.endtafel .reihe .knopf { min-width: 0; padding: 0 10px; font-size: 14px; } }
@media (max-width: 520px) {
  #ov .dlg.endtafel .mo-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ov .dlg.endtafel .mo-kachel > small { overflow-wrap: normal; word-break: normal; hyphens: auto; }
  #ov .dlg.endtafel .mo-leiter em b { display: none; }
  #ov .dlg.endtafel .reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } #ov .dlg.endtafel .reihe .knopf { min-width: 0; padding: 0 8px; }
  .pausetafel .mo-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 430px) { #ov .dlg.ende .mo-rechen, #ov .dlg.ende .mo-leiter { display: none; } }
.wahlgitter small.raeume { display: inline-block; font-size: 11px; font-weight: 700; color: var(--rot, #8a2a1a); margin-right: 3px; white-space: nowrap; }
body.hoch #eigen .wert.burgkarte { display: block; grid-column: 1 / -1; }
body.hoch .wert.burgkarte canvas { height: 52px; margin-top: 0; }
body.hoch .wert.burgkarte > span { display: none; }
.wert.burgkarte canvas { cursor: pointer; }

.svl-muenze { position: fixed; z-index: 60; width: 16px; height: 16px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff3b0 0 18%, #f2c443 40%, #b8860b 100%); box-shadow: 0 0 6px rgba(255,200,60,.8), inset 0 -2px 0 rgba(120,80,0,.5); }
@keyframes svlPuls { 0% { transform: scale(1); } 35% { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255,215,90,.7); } 100% { transform: scale(1); } }
.svl-puls { animation: svlPuls .45s ease-out; }
@media (prefers-reduced-motion: reduce) { .svl-puls { animation: none; } }
:root { --sgzl-grund: rgba(250, 241, 218, .97); --sgzl-text: #2e1c0c; --sgzl-akzent: #a3231b; --sgzl-akzent-text: #fff6e2; }
html[data-ansicht="nacht"] { --sgzl-grund: rgba(32, 24, 36, .97); --sgzl-text: #fff2d6; --sgzl-akzent: #f0c060; --sgzl-akzent-text: #2a1a10; }
#m_lern { display: none !important; }
#lo-lern { margin: 8px 0 0; min-height: 66px; justify-content: center; }
@media (max-width: 700px) and (orientation: portrait) { .menue:has(#lo-lern) > .unter { display: none; } }
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  #lo-lern { min-height: 44px; flex-direction: row; align-items: center; gap: 12px; padding: 6px 12px; margin: 4px 0 0; }
  #lo-lern small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .menue:has(#lo-lern) .modus svg { display: none; }
  body.lern #eigen, #hud .sgzl-punkte { display: none; }
  body.lern #buehne, body.lern:not(.hoch) #buehne { grid-template-columns: 320px 1fr; } #hud .sgzl { grid-column: 1 / -1; }
}
#lernFeld { position: absolute; z-index: 3; box-sizing: border-box; border-radius: 8px; cursor: pointer; background: rgba(232, 184, 58, .3); box-shadow: inset 0 0 0 3px #e8b83a; touch-action: none; }
#lernFeld[hidden] { display: none; }
#lernZeige { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#lernZeige i { position: absolute; box-sizing: border-box; border: 3px dashed rgba(232, 184, 58, .95); border-radius: 8px; animation: lernRing 1.4s ease-in-out infinite; }
@keyframes lernRing { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { #lernZeige i { animation: none; } }
body.lern #wPunkte, body.lern #eigen .wert:not([data-ki="schilde"]), body.lern #info, body.lern #wZeit, body.lern #bNeu, body.lern #bVersuch, body.lern #bAuf, body.lern #bPause, body.lern #bZurueck, body.lern #bWappen, body.lern #kreuz { display: none !important; }
#hud .sgzl { margin: 6px 0; }
body.hoch #hud .sgzl { grid-column: 1 / -1; }
#lernEnde .lernlob { margin: 8px 0; font-size: 16px; line-height: 1.45; }

@media (max-height: 520px) and (min-aspect-ratio: 1/1) {

  #hud .sgzl { padding: 8px 48px 8px 10px; margin: 4px 0; } #hud .sgzl-titel { font-size: 15px; } #hud .sgzl-text { font-size: 13px; line-height: 1.32; }
  #hud .sgzl-kopf { margin-bottom: 2px; } #hud .sgzl-weiter { min-height: 40px; margin-top: 6px; }
}
