:root {
  --game-width: 720px;
  --game-height: 480px;
  --btn-brown: #5a3a16;
  --btn-beige: #f4e4bc;
  --btn-beige-dark: #e2d2a3;
  --btn-beige-light: #fff1ce;
  --btn-green: #2f9e44;
  --btn-green-dark: #2a8c3d;
  --btn-green-light: #3fbf58;
  --btn-green-border: #1f6f2f;
  --btn-red: #c92a2a;
  --btn-red-dark: #a51111;
  --btn-red-light: #e03b3b;
  --btn-red-border: #7e0d0d;
  --shadow-text: 0 1px 0 #000;
  --shadow-btn: 0 6px 0 rgba(0, 0, 0, 0.25);
  --shadow-btn-hover: 0 8px 0 rgba(0, 0, 0, 0.25);
  --shadow-btn-active: 0 3px 0 rgba(0, 0, 0, 0.35);
  --title-color: #5a0000;
  --title-outline: #000000;
  --depth: 800px;
}
@font-face {
  font-family: "zabars";
  src: url("../fonts/zabars.ttf") format("truetype");
}

html {
  font-size: 16px;
}
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  background: url("../img/5_background/desert-5112222_1920.png") no-repeat center center fixed;
  background-size: cover;
  font-family: "zabars", Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

body.no-scroll {
  overflow: hidden;
}

.d-none {
  display: none !important;
}
.hidden {
  display: none !important;
}

.tumbleweed {
  position: fixed;
  bottom: 40px;
  width: 120px;
  height: auto;
  pointer-events: none;
}

.tw1 {
  left: -150px;
  animation: roll1 14s linear infinite;
}

@keyframes roll1 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(25vw) translateY(-60px) rotate(450deg);
  }
  50% {
    transform: translateX(50vw) translateY(0) rotate(900deg);
  }
  75% {
    transform: translateX(75vw) translateY(-60px) rotate(1350deg);
  }
  100% {
    transform: translateX(130vw) translateY(0) rotate(1800deg);
  }
}

.tw2 {
  left: -200px;
  bottom: 400px;
  width: 80px;
  animation: roll2 18s linear infinite;
}

@keyframes roll2 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  20% {
    transform: translateX(20vw) translateY(-90px) rotate(360deg);
  }
  40% {
    transform: translateX(40vw) translateY(0) rotate(720deg);
  }
  60% {
    transform: translateX(60vw) translateY(-90px) rotate(1080deg);
  }
  100% {
    transform: translateX(130vw) translateY(0) rotate(1440deg);
  }
}

.tw3 {
  left: -100px;
  bottom: 300px;
  width: 90px;
  animation: roll3 12s linear infinite;
}

@keyframes roll3 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(30vw) translateY(-50px) rotate(540deg);
  }
  50% {
    transform: translateX(60vw) translateY(0) rotate(1080deg);
  }
  75% {
    transform: translateX(90vw) translateY(-50px) rotate(1620deg);
  }
  100% {
    transform: translateX(130vw) translateY(0) rotate(2160deg);
  }
}

.main-menu {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 24px;
  box-sizing: border-box;
  transform: translateY(0);
}

.menu-shield {
  position: relative;
  width: min(
    100vw,
    calc(100vh * 720 / 480),
    1150px
  );
  max-width: 1150px;
}

.menu-shield-img {
  display: block;
  width: 100%;
  height: auto;
}

.menu-content {
  position: absolute;
  inset: 22% 16% 14% 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  text-align: center;
  transform: translateY(0);
}

.menu-title {
  font-size: 48px;
  color: var(--btn-beige-light);
  margin: 0;
  text-shadow: var(--shadow-text);
}

.menu-text {
  font-size: 20px;
  margin: 0 0 12px;
  color: #f8e9c5;
}

.menu-help,
.menu-settings,
.menu-story {
  position: relative;               
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 14px;
  border: 2px solid #f4e4bc;
  z-index: 20;
  padding: 24px 28px;
  width: min(100%, 520px);           
  max-height: 100vh;                  
  box-sizing: border-box;
  scrollbar-width: thin;                     
  scrollbar-color: #f4e4bc33 transparent;    
  scrollbar-gutter: stable;   
}

.menu-help .controls-grid {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.menu-help .help-buttons {
  justify-content: center;
}

.menu-section-title {
  margin: 0 0 24px;
  font-family: "zabars", Arial, Helvetica, sans-serif;
  font-size: 2.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--btn-beige-light);
  text-shadow: var(--shadow-text);
}

.settings-section {
  width: 100%;
  max-width: 480px;
  margin-bottom: 18px;
  text-align: left;
}

.settings-section h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--btn-beige-light);
  text-shadow: var(--shadow-text);
}

.settings-section label,
.settings-section p,
.settings-section li {
  font-size: 24px;
  line-height: 1.4;
  color: var(--btn-beige);
}

a:-webkit-any-link {
    color: var(--btn-beige-dark);
    cursor: pointer;
    text-decoration: underline;
}

.settings-links a {
  font-size: 24px;
  text-decoration: underline;
  padding-right: 5px;
  color: var(--btn-beige);
}

.credits-list {
  margin: 0;
  padding-left: 18px;
}

#music-volume-slider {
  width: 100%;
  margin-top: 6px;
  accent-color: var(--btn-green);
}

.impressum,
.privacy {
  position: relative;
  z-index: 0;
  font-size: 24px;
  line-height: 1.65;
  color: var(--btn-beige-dark); 
}

.impressum::before,
.privacy::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

.impressum h1,
.privacy h1,
.impressum h2,
.privacy h2 {
  color: var(--btn-beige-light); 
  text-shadow: var(--shadow-text);
  margin-top: 20px;
  margin-bottom: 12px;
}

.impressum p,
.privacy p,
.impressum li,
.privacy li {
  color: var(--btn-beige-dark);
  font-size: 24px;
  line-height: 1.6;
}

.impressum a,
.privacy a {
  color: var(--btn-beige); 
  text-decoration: underline;
}

.impressum a:hover,
.privacy a:hover {
  color: var(--btn-beige-light); 
}

p,
li {
  font-size: 20px;
  line-height: 1.5;
}

:fullscreen .stage {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  aspect-ratio: auto !important;
}
