@font-face { font-family: 'MYImmortal'; src: url('fonts/immortal.ttf') format('truetype'); }
@font-face { font-family: 'MYImmortalB'; src: url('fonts/immortalb.ttf') format('truetype'); }
@font-face { font-family: 'MYTimes'; src: url('fonts/times.ttf') format('truetype'); }
@font-face { font-family: 'MYTimesB'; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), url('fonts/timesb.ttf') format('truetype'); font-weight: normal; }
@font-face { font-family: 'MYTimesTUR'; src: url('fonts/timestur.ttf') format('truetype'); }
@font-face { font-family: 'MYNiamey'; src: url('fonts/niamey.ttf') format('truetype'); }

:where(html, html *) { scrollbar-width:thin; scrollbar-color:#c8a050 rgba(60,40,20,.3); }
:where(html) ::-webkit-scrollbar { width:9px; height:9px; }
:where(html) ::-webkit-scrollbar-track { background:rgba(60,40,20,.3); border-radius:5px; }
:where(html) ::-webkit-scrollbar-thumb { background:#c8a050; border-radius:5px; border:2px solid transparent; background-clip:padding-box; }

html, body { margin: 0; height: 100%; background: #000; overflow: hidden; touch-action: manipulation; }
#wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: relative; width: 800px; height: 600px; flex: none; transform-origin: 50% 50%; overflow: hidden;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#c { position: absolute; left: 0; top: 0; width: 800px; height: 600px; display: block; }
[hidden] { display: none !important; }

.ov { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-sizing: border-box; margin: 0; }

#rules { overflow-y: auto; overflow-x: hidden; line-height: 1.25; text-align: justify; -webkit-user-select: text; user-select: text; scrollbar-width: thin; }
#rules p { margin: 0 0 6px; }
#rules h4 { margin: 8px 0 2px; font-size: 1em; }

#note { position: absolute; left: 200px; top: 285px; width: 400px; text-align: center; font: 14px Arial, sans-serif; color: #ddd; }

#steinwahl { position: absolute; left: 400px; top: 440px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  padding: 5px 7px 5px 16px; border-radius: 22px; background: rgba(38,28,18,.86); border: 1px solid #8a6a32; box-shadow: 0 2px 6px rgba(0,0,0,.5);
  font: max(13px, var(--fz, 13px)) MYImmortal, 'Times New Roman', serif; color: #e8d6a6; letter-spacing: .06em; text-transform: uppercase; }
#steinwahl span { margin-right: 4px; }
#steinwahl button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #e8d6a6; background: transparent; border: 1px solid #6a5028;
  border-radius: 14px; padding: .4em 1.1em; cursor: pointer; min-height: max(32px, calc(var(--fz, 13px) * 3.4)); }
#steinwahl button:hover { border-color: #c8a050; color: #fff3cf; }
#steinwahl button[aria-pressed="true"] { background: #c8a050; border-color: #c8a050; color: #2a1c0c; }
#steinwahl button:focus-visible { outline: 2px solid #fff3cf; outline-offset: 1px; }

#rules { background: rgba(20, 14, 8, .55); padding: 0 4px; }
#rules.gross { background: rgba(26, 19, 11, .94); border: 1px solid #8a6a32; border-radius: 10px; padding: 10px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.6); }

#meldung { position: absolute; left: 200px; top: 250px; width: 580px; box-sizing: border-box; padding: .6em 1em; text-align: center;
  font: var(--fz, 14px)/1.35 MYImmortal, 'Times New Roman', serif; letter-spacing: .03em; color: #fff3cf;
  background: rgba(30, 22, 12, .93); border: 1px solid #c8a050; border-radius: 12px; box-shadow: 0 6px 22px rgba(0,0,0,.6);
  pointer-events: none; transition: opacity .4s; }
#meldung.weg { opacity: 0; }

#endeleiste { position: absolute; left: 252px; top: 232px; width: 142px; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 8px; border-radius: 10px; background: rgba(60, 44, 24, .94); border: 1px solid #8a6a32; box-shadow: 0 4px 14px rgba(0,0,0,.45);
  font: var(--fz, 14px)/1.25 MYTimes, 'Times New Roman', serif; color: #fff3cf; text-align: center; }
#endegrund, #nochmalpreis { margin: 0; }
#nochmalpreis { color: #e8d6a6; }
#endegrund:empty { display: none; }
#nochmal { font: var(--fz, 14px)/1.15 MYTimesB, 'Times New Roman', serif; letter-spacing: .02em; color: #2a1c0c; cursor: pointer;
  background: linear-gradient(180deg, #e7c46e, #c8a050); border: 1px solid #8a6a32; border-radius: 16px; padding: .3em .4em; min-height: max(32px, calc(var(--fz, 14px) * 3.4)); white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.45); touch-action: manipulation; }
#nochmal:hover { filter: brightness(1.08); }
#nochmal:focus-visible { outline: 2px solid #fff3cf; outline-offset: 2px; }

#anzeige { position: absolute; left: 32px; top: 62px; width: 152px; height: 283px; pointer-events: none; box-sizing: border-box;
  display: grid; grid-template-rows: repeat(5, 1fr); font: min(var(--fz, 14px), 23.5px)/1.2 MYTimes, 'Times New Roman', serif; color: #e8d6a6; }
#anzeige .z { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 6px; white-space: nowrap; overflow: hidden;
  background: rgba(34, 30, 20, .96); border-bottom: 1px solid rgba(200,160,80,.25); }
#anzeige .z span, #anzeige .z b { display: block; }
#anzeige .z b { font-family: MYTimesB, 'Times New Roman', serif; font-weight: normal; color: #fff; font-variant-numeric: tabular-nums; }
#anzeige .z i { display: flex; align-items: center; justify-content: space-between; font-style: normal; }
#anzeige .z canvas { width: 1.7em; height: 1.06em; border-radius: 3px; }

:root { --sgzl-grund: rgba(30, 22, 12, .96); --sgzl-text: #fff3cf; --sgzl-akzent: #e2b55a; --sgzl-akzent-text: #2a1c0c; }
#lo-lern { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); min-height: 66px; justify-content: center; transform: translateX(-50%);
  font-family: MYTimes, 'Times New Roman', serif; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, rgba(60, 44, 24, .97), rgba(30, 22, 12, .97)); box-shadow: 0 6px 22px rgba(0, 0, 0, .6); }
#lo-lern b { font: 19px MYImmortal, 'Times New Roman', serif; letter-spacing: .06em; text-transform: uppercase; }
#lo-lern small { font-size: 14px; }
#myLernOrt { position: fixed; z-index: 58; box-sizing: border-box; overflow-y: auto; font: 15px/1.4 MYTimes, 'Times New Roman', serif; }
#myLernOrt .sgzl { margin: 0; padding: 10px 52px 12px 14px; }
#myLernOrt .sgzl-titel { font: 19px/1.2 MYImmortal, 'Times New Roman', serif; letter-spacing: .03em; }
#myLernOrt .sgzl-kopf { font-family: system-ui, 'Segoe UI', Arial, sans-serif; }
#myLernOrt .sgzl-text { font-size: 16px; line-height: 1.4; }
#myLernOrt .sgzl-weiter { min-height: 44px; font-family: MYTimesB, 'Times New Roman', serif; font-size: 16px; }
#myLernOrt .sgzl-x { width: 44px; height: 44px; }
#myLernOrt.lo-schmal .sgzl { padding: 9px 56px 11px 12px; }
#myLernOrt.lo-schmal .sgzl-titel { font-size: 17px; }
#myLernOrt.lo-schmal .sgzl-text { font-size: 15px; line-height: 1.36; }
.my-lernziel { position: fixed; z-index: 57; box-sizing: border-box; pointer-events: none; border-radius: 6px; background: rgba(255, 220, 130, .12); }
#lernEnde { position: fixed; z-index: 85; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); overflow-y: auto; box-sizing: border-box; padding: 20px 20px 18px; text-align: center;
  background: rgba(30, 22, 12, .97); border: 2px solid #e2b55a; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .65);
  color: #fff3cf; font: 16px/1.45 MYTimes, 'Times New Roman', serif; }
#lernEnde h2 { margin: 4px 48px 10px; font: 22px MYImmortal, 'Times New Roman', serif; letter-spacing: .05em; color: #e2b55a; }
#lernEnde p { margin: 0 0 10px; }
#lernEnde .le-klein { font-size: 14px; color: #e8d6a6; }
#lernEnde .le-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
#lernEnde .le-knopf { flex: 1 1 180px; min-height: 46px; padding: 8px 14px; border-radius: 22px; cursor: pointer; touch-action: manipulation;
  font: 16px/1.15 MYTimesB, 'Times New Roman', serif; letter-spacing: .02em; color: #2a1c0c;
  background: linear-gradient(180deg, #e7c46e, #c8a050); border: 1px solid #8a6a32; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
#lernEnde .le-zweit { color: #fff3cf; background: rgba(60, 44, 24, .96); border-color: #c8a050; }
#lernEnde .le-knopf:hover { filter: brightness(1.08); }
#lernEnde .le-knopf:focus-visible, #lernEnde .le-zu:focus-visible { outline: 2px solid #fff3cf; outline-offset: 2px; }
#lernEnde .le-zu { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 10px; border-radius: 50%; cursor: pointer;
  color: #fff3cf; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 243, 207, .4); }
#lernEnde .le-zu svg { display: block; width: 100%; height: 100%; }
