/* LumiLino v97 – ruhige Auswahl, echtes Spielfeld-Vollbild und Suchspiel-Hinweis. */

/* Auf der Auswahl steht nur das, was für die Entscheidung wichtig ist. */
.game-page-simple:not(.is-game-started) .game-message-star,
.game-page-simple:not(.is-game-started) #game-message-title,
.game-page-simple:not(.is-game-started) .game-challenge-label,
.game-page-simple:not(.is-game-started) .game-result-badges {
  display: none !important;
}
.game-page-simple:not(.is-game-started) .game-message-card-simple {
  padding-top: clamp(14px, 2vw, 22px);
}
.game-page-simple:not(.is-game-started) .game-picker-head {
  margin: 0 0 14px;
  text-align: center;
}
.game-page-simple:not(.is-game-started) .game-picker-head h2 {
  margin: 0;
  color: #164f54;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.08;
}
.game-page-simple:not(.is-game-started) .game-picker-kicker,
.game-page-simple:not(.is-game-started) #game-picker-copy {
  display: none !important;
}
.game-page-simple:not(.is-game-started) .game-picker-parent {
  justify-content: center;
  margin-top: 12px;
}
.game-page-simple:not(.is-game-started) .game-picker-parent button {
  min-height: 42px;
  padding: 8px 15px;
  font-size: .82rem;
}

/* Visuelle, kindgerechte Erklärung für das zweite Abenteuer. */
.mama-search-bubble {
  position: absolute;
  left: 50%;
  bottom: 25%;
  z-index: 24;
  width: min(460px, calc(100% - 34px));
  transform: translateX(-50%);
  padding: 11px 15px 13px;
  border: 3px solid rgba(74, 65, 44, .2);
  border-radius: 24px;
  background: rgba(255, 253, 235, .96);
  color: #31585b;
  text-align: center;
  box-shadow: 0 14px 36px rgba(20, 73, 74, .22);
  pointer-events: none;
  animation: mama-search-pop .35s ease-out;
}
.mama-search-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 3px solid rgba(74, 65, 44, .16);
  border-bottom: 3px solid rgba(74, 65, 44, .16);
  background: rgba(255, 253, 235, .96);
}
.mama-search-bubble strong {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
}
.mama-search-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.2vw, 10px);
  font-size: clamp(1.35rem, 4vw, 2rem);
  white-space: nowrap;
}
.mama-search-picture b,
.mama-search-picture i,
.mama-search-picture em {
  font-style: normal;
  font-weight: 800;
}
.mama-search-picture em { color: #d49a29; }
@keyframes mama-search-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.94); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Vollbild ist wirklich Spielfeld: HUD und Steuerung liegen darüber, nichts bleibt leer. */
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #244e3d !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-title-row,
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-character-strip {
  display: none !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-board-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) #game-canvas {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: max(100vw, 160dvh) !important;
  height: max(100dvh, 62.5vw) !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 16 / 10 !important;
  transform: translate(-50%, -50%) !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) #mama-3d-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  transform: none !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-hud {
  position: absolute !important;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 32;
  width: min(760px, calc(100% - 180px));
  transform: translateX(-50%);
  margin: 0 !important;
  padding: 0 !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-session-nav {
  position: absolute !important;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  z-index: 34;
  width: auto;
  margin: 0 !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-session-nav a {
  display: none !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-session-nav button {
  min-width: 44px;
  min-height: 44px;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-quick-controls {
  z-index: 36;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-move-controls {
  position: absolute !important;
  left: max(10px, env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  z-index: 35 !important;
  width: min(510px, calc(100% - 20px)) !important;
  margin: 0 !important;
  padding: 8px 12px 10px !important;
  border-radius: 22px !important;
  background: rgba(229, 243, 236, .88) !important;
  backdrop-filter: blur(7px);
  box-shadow: 0 12px 30px rgba(7, 55, 50, .24);
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-message,
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .family-settings,
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-guide {
  z-index: 50;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-search-bubble {
  bottom: clamp(120px, 24vh, 230px);
}
@media (max-width: 720px) {
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-hud {
    top: max(6px, env(safe-area-inset-top));
    width: calc(100% - 110px);
  }
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-session-nav button span:last-child {
    display: none;
  }
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-move-controls {
    width: min(370px, calc(100% - 18px)) !important;
    padding: 6px 8px 8px !important;
  }
  .mama-search-bubble { bottom: 28%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .game-hud {
    width: min(640px, calc(100% - 180px));
  }
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-move-controls {
    width: 350px !important;
  }
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-search-bubble {
    bottom: 105px;
    width: min(390px, calc(100% - 30px));
    padding: 7px 12px 9px;
  }
}

.mama-level-card.is-search-card > small,
.mama-level-card.is-search-card .mama-medals {
  display: none !important;
}
.mama-level-card.is-search-card {
  padding-top: 16px;
}


/* v98 – letzte Reduktion der Auswahl und noch saubereres Vollbild. */
.game-page-simple:not(.is-game-started) .game-message-card-simple {
  max-width: 1120px;
  margin-inline: auto;
}
.game-page-simple:not(.is-game-started) .game-picker-head {
  margin-bottom: 10px;
}
.game-page-simple:not(.is-game-started) .game-picker-head + .game-choice-grid {
  margin-top: 0;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) {
  margin: 0 !important;
  border-radius: 0 !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) body,
body:has(.game-shell:fullscreen),
body:has(.game-shell.is-game-expanded) {
  overflow: hidden;
}
