/* Zwei Einstiege; Welten und Spieler erscheinen erst im gewählten Bereich. */
.hauptmenue { display: grid; gap: 18px; margin: 24px 0; }
.hauptmenue .knopf { min-height: 116px; font-size: 29px; text-align: left; }
.hauptmenue .knopf small { font-size: 17px; font-weight: 500; margin-top: 6px; }
.start-bereich h2 { font-size: 25px; margin: 14px 0; }
.start-zurueck { min-height: 56px; margin-bottom: 6px; }
.start-bereich[hidden], #start-haupt[hidden] { display: none; }
#s-story { width: 100%; margin: 16px 0; }
#frei-spieler { margin: 12px 0; }
#e-frei { width: 26px; height: 26px; flex-shrink: 0; }
.frei-option { display: flex; gap: 12px; align-items: center; min-height: 56px; font-weight: 800; }
.frei-option small { display: block; font-weight: 400; }
#wegweiser {
  position: fixed; z-index: 13; right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top));
  width: min(370px, calc(100vw - 110px)); padding: 12px 14px; border: 2px solid #e1bd61;
  border-radius: 18px; background: #fff4d8; color: #172441; box-shadow: 0 4px 18px #0005;
  font: 17px/1.4 system-ui, sans-serif; text-align: left;
}
#wegweiser[hidden] { display: none; }
#wegweiser b { display: block; font-size: 15px; }
#wegweiser p { margin: 6px 0 10px; }
.ww-aktionen { display: flex; gap: 8px; }
.ww-aktionen button { min-height: 56px; border: 0; border-radius: 12px; background: #265cba; color: #fff;
  padding: 8px 12px; font: inherit; font-weight: 750; touch-action: manipulation; }
#ww-weiter { flex: 1; }
#ww-lesen { flex: 0 0 56px; }
.ww-aktionen button:focus-visible { outline: 3px solid #9d4300; outline-offset: 3px; }
#wegweiser.ww-in-karte { position: static; width: 100%; max-width: 100%; margin-top: 14px; box-shadow: none; }
body[data-wegweiser="an"] #story-hud { display: none; }
.ww-markiert { animation: ww-blink 1s ease-in-out 3; }
@keyframes ww-blink { 50% { outline: 5px solid #ffe281; outline-offset: 5px; } }
@media (prefers-reduced-motion: reduce) { .ww-markiert { animation: none; outline: 4px solid #ffe281; } }
@media (max-width: 760px) {
  #wegweiser { font-size: 16px; padding: 10px; }
  body[data-modus="auftrag"] #wegweiser, body[data-modus="entdecken"] #wegweiser { top: 98px; }
  .hauptmenue .knopf { min-height: 100px; font-size: 25px; }
}

#start-haupt .knopf { text-align: center; }
.start-karte[data-ansicht="story"] > .titel, .start-karte[data-ansicht="frei"] > .titel,
.start-karte[data-ansicht="story"] > .unter, .start-karte[data-ansicht="frei"] > .unter { display: none; }
.weltmenue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weltmenue .knopf { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 560px) {
  .weltmenue .knopf { font-size: 18px; padding: 10px; }
  .weltmenue .knopf small { font-size: 14px; }
}

body[data-wegweiser-aussen="an"] #pico { top: calc(var(--ww-unterkante, 190px) + 10px); }

/* Auch die bestehenden Textantworten der 3D-Rätsel brauchen ausreichend hohe Fingerflächen. */
#wr-karte .antwort, #ts-karte .antwort { min-height: 56px; }
