/* LumiLino v110 – Zwei-Daumen-Steuerung für Tablets und voller Tieranhänger. */
.game-page-simple.is-mama-game .mama-move-controls {
  grid-template-columns:minmax(132px,1fr) minmax(240px,auto) !important;
  justify-content:stretch !important;
  align-items:end !important;
  gap:clamp(10px,3vw,28px) !important;
}
.game-page-simple.is-mama-game .mama-steering {
  grid-column:1 !important;
  grid-row:1 !important;
  justify-self:start;
  justify-content:flex-start;
}
.game-page-simple.is-mama-game .mama-pedals {
  grid-column:2 !important;
  grid-row:1 !important;
  justify-self:end;
  justify-content:flex-end !important;
  gap:clamp(7px,1.4vw,14px) !important;
}
.game-page-simple.is-mama-game .mama-action-button {
  grid-column:1 / -1 !important;
  grid-row:2 !important;
}
.game-page-simple.is-mama-game .mama-move-controls button {
  touch-action:none;
  -webkit-user-select:none;
  user-select:none;
}
.game-page-simple.is-mama-game .mama-pedals #mama-turbo-button {
  display:grid;
  place-items:center;
  align-content:center;
  min-width:78px !important;
  width:clamp(78px,9vw,94px) !important;
  height:clamp(64px,8vw,82px) !important;
  min-height:64px !important;
  padding:8px 9px !important;
  border:2px solid #e2a623 !important;
  border-radius:18px 18px 13px 13px !important;
  background:linear-gradient(180deg,#fff1a8,#f7c946) !important;
  color:#624300 !important;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.65),0 7px 0 #b98016,0 11px 20px rgba(83,59,16,.16) !important;
  transform:perspective(180px) rotateX(10deg) !important;
  font-weight:950 !important;
}
.game-page-simple.is-mama-game .mama-pedals #mama-turbo-button[hidden] { display:none !important; }
.game-page-simple.is-mama-game .mama-pedals #mama-turbo-button > span {
  display:block !important;
  font-size:1.45rem !important;
  line-height:1 !important;
  transform:none !important;
  letter-spacing:0 !important;
  opacity:1 !important;
}
.game-page-simple.is-mama-game .mama-pedals #mama-turbo-button small {
  display:block !important;
  margin-top:5px !important;
  font-size:.72rem !important;
  letter-spacing:.04em !important;
}
.game-page-simple.is-mama-game .mama-pedals #mama-turbo-button.is-active,
.game-page-simple.is-mama-game .mama-pedals #mama-turbo-button:active {
  transform:perspective(180px) rotateX(16deg) translateY(5px) !important;
  box-shadow:inset 0 3px 5px rgba(0,0,0,.1),0 2px 0 #b98016 !important;
  background:linear-gradient(180deg,#ffe46d,#f2b820) !important;
}

/* Im Vollbild liegen die beiden Handbereiche direkt an den unteren Ecken.
   Die Mitte bleibt frei, damit möglichst viel vom Hof sichtbar bleibt. */
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-move-controls {
  left:max(8px,env(safe-area-inset-left)) !important;
  right:max(8px,env(safe-area-inset-right)) !important;
  bottom:max(8px,env(safe-area-inset-bottom)) !important;
  width:auto !important;
  max-width:none !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  grid-template-columns:1fr 1fr !important;
  gap:18px !important;
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-move-controls::before { display:none !important; }
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-steering,
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-pedals {
  min-height:82px;
  padding:7px 9px 10px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:22px;
  background:rgba(229,243,236,.78);
  box-shadow:0 8px 22px rgba(7,55,50,.18);
  backdrop-filter:blur(5px);
}
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-steering { justify-self:start; }
:where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-pedals { justify-self:end; }

@media (max-width:620px) {
  .game-page-simple.is-mama-game .mama-move-controls {
    grid-template-columns:minmax(112px,1fr) minmax(176px,auto) !important;
    gap:8px !important;
    padding:8px !important;
  }
  .game-page-simple.is-mama-game .mama-steering,
  .game-page-simple.is-mama-game .mama-pedals { gap:5px !important; }
  .game-page-simple.is-mama-game .mama-move-controls .mama-steering button,
  .game-page-simple.is-mama-game .mama-pedals button,
  .game-page-simple.is-mama-game .mama-pedals .mama-brake,
  .game-page-simple.is-mama-game .mama-pedals .mama-gas,
  .game-page-simple.is-mama-game .mama-pedals #mama-turbo-button {
    min-width:54px !important;
    width:clamp(54px,16vw,64px) !important;
    min-height:56px !important;
    height:58px !important;
    padding:6px 5px !important;
  }
  .game-page-simple.is-mama-game .mama-pedals #mama-turbo-button small { font-size:.58rem !important; }
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-move-controls {
    left:max(5px,env(safe-area-inset-left)) !important;
    right:max(5px,env(safe-area-inset-right)) !important;
    bottom:max(5px,env(safe-area-inset-bottom)) !important;
    padding:0 !important;
    gap:8px !important;
  }
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-steering,
  :where(.game-shell:fullscreen, .game-shell.is-game-expanded) .mama-pedals {
    min-height:68px;
    padding:5px 6px 7px;
    border-radius:18px;
  }
}

@media (max-width:390px) {
  .game-page-simple.is-mama-game .mama-move-controls {
    grid-template-columns:minmax(104px,1fr) minmax(166px,auto) !important;
  }
  .game-page-simple.is-mama-game .mama-move-controls .mama-steering button,
  .game-page-simple.is-mama-game .mama-pedals button,
  .game-page-simple.is-mama-game .mama-pedals .mama-brake,
  .game-page-simple.is-mama-game .mama-pedals .mama-gas,
  .game-page-simple.is-mama-game .mama-pedals #mama-turbo-button {
    min-width:50px !important;
    width:50px !important;
    height:54px !important;
  }
}
