@font-face{font-family:'SGZ Ziffern';src:local('Georgia'),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('Georgia Bold'),local('Georgia-Bold'),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: #f2c23a; --akzent2: #c4362a; --akzent3: #3a1a10; --tief: #1d2a36; --panel: rgba(42, 30, 22, .93); --panel2: rgba(36, 26, 18, .96);
  --text: #f7efe0; --mute: #e4d6bc; --rand: rgba(242, 194, 58, .55); --knopf1: #8a5a32; --knopf2: #5a361c; --knopfText: #fff4dc;
  --gruen: #8fe36a; --rot: #ff8a6a; --gold: #f2c23a;
  --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif;
  --mo-grund: #2a1c14; --mo-grund2: #3d281a; --mo-akzent: #f2c23a; --mo-text: #f7efe0; --mo-rand: rgba(242, 194, 58, .5);
}
html[data-ansicht="tag"] {
  --akzent: #a8321f; --akzent2: #1f5f8a; --akzent3: #f6ecd8; --tief: #bcd3e0; --panel: rgba(250, 244, 232, .94); --panel2: rgba(250, 244, 232, .97);
  --text: #2a1a10; --mute: #4e3a28; --rand: rgba(120, 60, 30, .5); --knopf1: #f3e3c2; --knopf2: #d9bd88; --knopfText: #2a1a10;
  --gruen: #2e7d3a; --rot: #a3231b; --gold: #8a5a12;
}
body { background: var(--tief); color: var(--text); }
#kulisse { position: fixed; inset: 0; z-index: 0; overflow: clip; background: #6f9cbc url(img/helgoland-tag.webp?v=1796090000) center / cover no-repeat; }
body.hoch #kulisse { background-image: url(img/helgoland-tag-hoch.webp?v=1796090000); }
html[data-ansicht="abend"] #kulisse { background-image: url(img/helgoland-abend.webp?v=1796090000); background-color: #3a3550; }
html[data-ansicht="abend"] body.hoch #kulisse { background-image: url(img/helgoland-abend-hoch.webp?v=1796090000); }
#kulisse i { position: absolute; inset: -20%; pointer-events: none; background: linear-gradient(100deg, transparent 40%, rgba(255, 240, 190, .16) 50%, transparent 60%); animation: leuchtfeuer 9s linear infinite; }
html[data-ansicht="tag"] #kulisse i { background: radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, .1), transparent 30%); animation: wolke 26s ease-in-out infinite alternate; }
@keyframes leuchtfeuer { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
@keyframes wolke { from { transform: translateX(-10%); } to { transform: translateX(14%); } }
@media (prefers-reduced-motion: reduce) { #kulisse i { animation: none; } }

#buehne { z-index: 1; }
#hud { background: linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .18)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 7px), var(--panel); border: 2px solid var(--rand); }
#logo { font-size: 26px; letter-spacing: 1px; }
#logo span { color: var(--text); } #logo b { color: var(--akzent); }
.wert { background: rgba(0, 0, 0, .28); }
html[data-ansicht="tag"] .wert { background: rgba(120, 70, 30, .08); }
html[data-ansicht="tag"] .wert b { color: var(--text); }
html[data-ansicht="tag"] #logo span { text-shadow: none; } html[data-ansicht="tag"] #logo b { text-shadow: none; }
#zeit, #punkte, .wert b { font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
#brettbox { position: relative; overflow: clip; touch-action: none; }
#feld { position: absolute; z-index: 0; padding: 6px; border-radius: 8px; box-sizing: border-box;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 5px), linear-gradient(145deg, #9a6a3e, #6a4222 55%, #4a2c16);
  border: 1px solid rgba(255, 230, 190, .25); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .4); }
#feld .rahmen { position: absolute; inset: 0; pointer-events: none; border-radius: 8px;
  background: radial-gradient(circle at 7px 7px, #f0d27a 0 3px, #8a6a2a 3.5px, transparent 4.5px), radial-gradient(circle at calc(100% - 7px) 7px, #f0d27a 0 3px, #8a6a2a 3.5px, transparent 4.5px),
    radial-gradient(circle at 7px calc(100% - 7px), #f0d27a 0 3px, #8a6a2a 3.5px, transparent 4.5px), radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #f0d27a 0 3px, #8a6a2a 3.5px, transparent 4.5px); }
#brett { position: static; display: block; border-radius: 4px; cursor: crosshair; touch-action: none; }

#steuer { display: none; position: absolute; pointer-events: none; z-index: 4; }
#steuer.an { display: block; }
#feuer { position: absolute; left: 10px; bottom: 18px; width: 92px; height: 92px; border-radius: 50%; pointer-events: auto; touch-action: none;
  background: radial-gradient(circle at 40% 35%, #f6d97a, #c2902a); color: #2a1606; font: 800 16px system-ui, sans-serif; border: 2px solid rgba(0, 0, 0, .5); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
#seil { position: absolute; right: 12px; top: 12%; bottom: 12%; width: 64px; border-radius: 32px; pointer-events: auto; touch-action: none;
  background: linear-gradient(90deg, transparent 44%, #d8c79a 44% 56%, transparent 56%), rgba(30, 20, 12, .45); border: 2px solid rgba(242, 194, 58, .5); }
#seil i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 12px; background: linear-gradient(#c89a5a, #7a5530); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); border: 2px solid #4a2c16; }
body.steuer-unten #feuer { left: 18px; bottom: 50%; transform: translateY(50%); }
body.steuer-unten #seil { top: 8px; bottom: 8px; right: 18px; width: 64px; }

#meld { position: absolute; z-index: 6; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.meldung { padding: 6px 12px; border-radius: 9px; background: var(--panel2); color: var(--text); border: 1px solid var(--rand); font-size: 14px; line-height: 1.3; text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4); animation: mrein .25s ease-out; transition: opacity .4s; }
.meldung.weg { opacity: 0; }
@keyframes mrein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .meldung { animation: none; } }

.knopf { color: var(--knopfText); }
#banner { color: var(--akzent); }
.endwert { color: var(--akzent); font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
* { scrollbar-width: thin; scrollbar-color: var(--akzent) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--akzent); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
@media (pointer: coarse), (max-width: 900px) { #pZu { min-width: 44px; min-height: 44px; } }
@media (pointer: coarse), (max-width: 900px) { #ov summary { min-height: 44px; display: flex; align-items: center; justify-content: center; } }
button.sgzzu-x.an { background: #2a1c14; color: #f7efe0; border-color: #f2c23a; }
@media (max-height: 460px) and (orientation: landscape) {
  #ov .dlg.menue { padding: 10px 16px 12px; }
  .menue .schildkopf { font-size: 30px; margin: 0 0 4px; }
  .menue .unter { margin-bottom: 6px; font-size: 13px; line-height: 1.3; }
  .menue .modus { padding: 6px 10px; } .menue .modus svg { width: 22px; height: 22px; }
  .menue h3 { margin: 8px 0 4px; font-size: 15px; }
  .menue .reihe { margin-top: 6px; }
}
@media (max-height: 460px) and (orientation: landscape) { #ov .menue .modi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 400px) and (max-width: 720px) and (orientation: landscape) { #ov .menue .modus b { font-size: 18px; } #ov .menue .modus span { font-size: 11.5px; } #ov .menue .modus em { font-size: 16px; } #ov .menue .modus svg { display: none; } #ov .menue .unter { font-size: 12px; } }
@media (max-height: 560px) { body:not(.hoch) #knoepfe { grid-template-columns: repeat(3, minmax(0, 1fr)); } body:not(.hoch) #knoepfe button { height: 44px; min-width: 44px; } }
#feld.mitbank { background: linear-gradient(180deg, transparent 0, transparent calc(100% - var(--bank, 0px))), repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 5px), linear-gradient(145deg, #9a6a3e, #6a4222 55%, #4a2c16); }
@media (max-height: 460px) and (orientation: landscape) {
  #ov .dlg.ende.mo-tafel { width: min(860px, 96vw); max-width: min(860px, 96vw); display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; column-gap: 18px; align-content: start; }
  #ov .dlg.ende.mo-tafel > * { grid-column: 1; }
  #ov .dlg.ende.mo-tafel > .mo-leiter, #ov .dlg.ende.mo-tafel > #eListe, #ov .dlg.ende.mo-tafel > .mo-tipp, #ov .dlg.ende.mo-tafel > .reihe, #ov .dlg.ende.mo-tafel > .mo-rechen { grid-column: 2; }
  #ov .dlg.ende .reihe .knopf { min-height: 44px; }
}
@media (max-height: 400px) and (orientation: landscape) {
  #ov .dlg.ende.mo-tafel { padding-top: 8px; padding-bottom: 8px; row-gap: 4px; }
  #ov .dlg.ende.mo-tafel h2 { font-size: 19px; margin: 2px 0; }
  #ov .dlg.ende.mo-tafel .mo-kopf { white-space: nowrap; letter-spacing: .5px; overflow: clip; text-overflow: ellipsis; }
  #ov .dlg.ende.mo-tafel .mo-tipp { font-size: 12.5px; line-height: 1.3; margin: 4px 0; }
}
.pflug { position: fixed; z-index: 40; pointer-events: none; transform: translate(0, 0); font: 800 15px var(--kopf); color: #ffd36b; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 6px rgba(0, 0, 0, .5);
  margin: -10px 0 0 -14px; white-space: nowrap; transition: transform .68s cubic-bezier(.5, -.25, .7, 1), opacity .68s ease-in; }
.pflug.gross { font-size: 20px; }
.pflug.los { opacity: .85; }
.pflug.ringflug { margin: -14px 0 0 -14px; transition-duration: .78s; }
.pflug .ring { display: block; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; border: 6px solid #e8402c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 2px 4px rgba(0, 0, 0, .5);
  background: conic-gradient(transparent 0 20deg, #fff 20deg 50deg, transparent 50deg 110deg, #fff 110deg 140deg, transparent 140deg 200deg, #fff 200deg 230deg, transparent 230deg 290deg, #fff 290deg 320deg, transparent 320deg);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px); mask: radial-gradient(circle, transparent 6px, #000 6.5px); }
.wert.puls { animation: wpuls .55s ease-out; }
@keyframes wpuls { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 194, 58, .9); } 35% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(242, 194, 58, .55); } 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(242, 194, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .wert.puls { animation: none; } .pflug { transition: none; } }
#meld.ueber { justify-content: flex-end; align-items: center; }
#meld.ueber .meldung, #meld.bank .meldung { max-width: 100%; }
#meld.ueber .meldung { padding: 5px 14px; }
@keyframes mreinU { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#meld.ueber .meldung { animation-name: mreinU; }
#brettbox .mo-start.kl-karte { overflow: auto; box-sizing: border-box; }
#brettbox .mo-start.kl-wartet { pointer-events: auto; }
.mo-start .kl-los { display: block; margin: 10px auto 2px; min-width: 150px; min-height: 44px; font-size: 18px; animation: klLos 1.6s ease-in-out infinite; }
@keyframes klLos { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 194, 58, .55); } 50% { box-shadow: 0 0 0 7px rgba(242, 194, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .mo-start .kl-los { animation: none; } }
.rd-level .kl-stempel { position: absolute; right: -4px; top: -20px; padding: 3px 9px; border: 3px double #9a2418; border-radius: 6px; color: #9a2418; background: rgba(255, 245, 230, .92);
  font: 800 12px system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-9deg); animation: klStempel .45s cubic-bezier(.3, 1.6, .5, 1) both; pointer-events: none; }
@keyframes klStempel { from { transform: rotate(-9deg) scale(2.4); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rd-level .kl-stempel { animation: none; } }
@media (max-height: 460px) and (orientation: landscape) {
  #ov .dlg.ende.mo-tafel.kl-mauer { grid-auto-rows: 4px; row-gap: 0; align-content: start; }
  #ov .dlg.ende.mo-tafel.kl-mauer > * { align-self: start; }
  #ov .dlg.ende .reihe { flex-wrap: nowrap; }
  #ov .dlg.ende .reihe .knopf { flex: 1 1 0; min-width: 0; }
}
@media (max-height: 400px) and (orientation: landscape) {
  #ov .dlg.ende .mo-leiter-bahn { margin-bottom: 18px; }
  #ov .dlg.ende .mo-leiter-bahn em:nth-of-type(2n) b { top: 13px; bottom: auto; }
}
@media (max-height: 460px) and (max-width: 900px) and (orientation: landscape) {
  #ov .dlg.ende .mo-kacheln.mo-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 6px 0 2px; }
  #ov .dlg.ende .mo-kacheln.mo-n4 .mo-kachel { padding: 3px 6px; }
  #ov .dlg.ende .mo-plakette { margin-top: 2px; line-height: 1.25; }
}
html[data-ansicht="tag"] .modus:not(.tag) { background: linear-gradient(#7a4e2c, #4e2f18); background-image: linear-gradient(#7a4e2c, #4e2f18), repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 7px); }
html[data-ansicht="tag"] .modus:not(.tag) svg { color: #f2c23a; }
.kl-regeln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; margin: 4px 0 10px; text-align: left; }
.kl-r { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; background: rgba(120, 70, 30, .08); border: 1px solid var(--rand); }
html[data-ansicht="abend"] .kl-r { background: rgba(0, 0, 0, .22); }
.kl-r i { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; background: radial-gradient(circle at 40% 35%, #3d5a72, #1d2a36); box-shadow: inset 0 0 0 1px rgba(242, 194, 58, .4); }
.kl-r i img { display: block; width: 48px; height: 48px; }
.kl-r p { margin: 0; line-height: 1.35; }
.kl-einst { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-height: 430px) { #hud #modus { display: none; } }
@media (max-height: 400px) { #hud #info { display: none; } #hud#hud#hud { row-gap: 3px; padding-top: 6px; padding-bottom: 6px; } }

.kl-auf { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: rgba(58, 36, 18, .92); color: #fff3c4; text-align: left; }
.kl-auf b { display: block; margin-bottom: 4px; color: #ffd36b; font-size: 14px; }
.kl-auf p { display: flex; align-items: center; gap: 8px; margin: 3px 0; font-size: 14px; line-height: 1.3; }
.kl-auf p i { flex: 0 0 12px; width: 12px; height: 12px; border: 1.5px solid #e8dcc0; border-radius: 2px; position: relative; }
.kl-auf p.ok i { border-color: #b8ff8a; background: rgba(184, 255, 138, .2); }
.kl-auf p.ok i::after { content: ''; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #b8ff8a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.kl-auf p span { flex: 1 1 auto; }
.kl-auf p em { font-style: normal; font-weight: 800; color: #ffd36b; font-family: 'SGZ Ziffern', system-ui, sans-serif; }
.kl-auf p.ok span { color: #d8ffc4; }
.kl-best { margin: 2px auto 6px; max-width: 280px; }
.kl-best canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 8px; box-shadow: 0 0 0 1px rgba(242, 194, 58, .5); background: #7fb6dc; }
.kl-best p { margin: 4px 0 0; font-size: 13px; text-align: center; }
.kl-best p b { color: #ffd36b; font-family: 'SGZ Ziffern', system-ui, sans-serif; }
@media (max-height: 460px) and (orientation: landscape) {
  #ov .dlg.ende.mo-tafel .kl-best { grid-column: 2; order: 9; display: flex; align-items: center; gap: 10px; max-width: none; margin: 2px 0 0; }
  #ov .dlg.ende.mo-tafel .kl-best canvas { flex: 0 0 128px; width: 128px; }
  #ov .dlg.ende.mo-tafel .kl-best p { margin: 0; text-align: left; }
}
@media (max-height: 400px) and (orientation: landscape) {
  #ov .dlg.ende.mo-tafel .kl-best { margin: 0; }
  #ov .dlg.ende.mo-tafel .kl-best canvas { flex-basis: 80px; width: 80px; }
}
@media (max-height: 400px) and (max-width: 720px) and (orientation: landscape) { #ov .dlg.ende.mo-tafel .kl-best canvas { display: none; } }
@media (max-height: 460px) { .kl-best { max-width: 190px; } }
