* {
  box-sizing: border-box;
  margin: 0;
  font-family: 'Open-Sans', sans-serif;
  scrollbar-width: thin;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  scroll-behavior: smooth;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

:root {
  --gold-1: #fff1a6;
  --gold-2: #d4af37;
  --gold-3: #8a6b24;
  --btn-bg: #151515cc;
  --glow: rgba(255, 210, 120, .55);
  --text: #f7e7b0;
}

.overflow-hidden {
  overflow: hidden;
}

.opacity-none {
  opacity: 0;
  pointer-events: none;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #111 0%, #000 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: white;
  font-family: sans-serif;
}

.loading-bar {
  width: 0%;
  height: 8px;
  background: linear-gradient(90deg, #e00, #ff0);
  border-radius: 4px;
  transition: width 0.2s;
}

.loading-text {
  margin-top: 10px;
  font-size: 1.2rem;
}

.loading-legal-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: white;
  font-size: 14px;
  text-decoration: underline;
  z-index: 1001;
}

.menu-button {
  min-width: 150px;
  padding: 10px 24px;
  font: 700 18px/1.2 "UncialAntiqua", "Merriweather", "Georgia", serif;
  color: var(--text);
  letter-spacing: .02em;
  background:
    linear-gradient(180deg, #2c2b27, #171614);
  border: 2px solid var(--gold-2);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(0, 0, 0, .65),
    0 6px 14px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, border-color .15s ease;
}

.menu-button:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 0 1px rgba(0, 0, 0, .65),
    0 0 18px var(--glow);
  border-color: var(--gold-1);
  transform: translateY(-2px);
}

.menu-button:active {
  transform: translateY(0);
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(0, 0, 0, .65),
    0 2px 6px rgba(0, 0, 0, .45);
}

.all-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: black;
  flex: 1;
}

.gamestage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

.touch-controls {
  position: absolute;
  bottom: 0px;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  z-index: 4;
}

.touch-controls__movement {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  gap: 8px;
  border-radius: 25px;
  opacity: 0.9;
}

.touch-controls__actions {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 6px;
  flex-direction: column;
  border-radius: 25px;
  opacity: 0.9;
  gap: 3px;
}

.touch-controls__primary-actions {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
}

.touch-controls__secondary-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 200px;
}

.touch-button {
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  font-size: 22px;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.touch-button:active {
  transform: scale(0.9);
}

.touch-button::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  opacity: 0;
}

.touch-button.pulse::after {
  animation: ringPulse 0.7s ease-out forwards;
}

@keyframes ringPulse {
  0% {
    opacity: .9;
    transform: scale(1);
    border-color: #ffd070;
    box-shadow: 0 0 12px #ffd070;
  }

  50% {
    opacity: .5;
    transform: scale(1.5);
    border-color: #ff9933;
    box-shadow: 0 0 18px #ff9933;
  }

  100% {
    opacity: 0;
    transform: scale(2.0);
    border-color: transparent;
    box-shadow: none;
  }
}

.touch-button.hold {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 200, 100, 0.4);
}

.touch-button--small {
  width: 45px;
  height: 45px;
}

.touch-button--throw {
  position: absolute;
  top: 9px;
  right: -4px;
  width: 50px;
  height: 50px;
}

.touch-button--protect {
  position: absolute;
  top: 80px;
  right: 60px;
}

.touch-button--jump {
  position: absolute;
  top: 60px;
  right: 0px;
}

.touch-button--duck {
  position: absolute;
  top: 140px;
  right: 81px;
}

.touch-button--attack {
  width: 80px;
  height: 80px;
  border-color: orangered;
  margin-left: 59px;
}

.touch-button__icon {
  width: 25px;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.touch-button__icon--attack {
  width: 40px;
}

.touch-button__icon--throw {
  width: 45px;
}

.level-complete-actions {
  position: absolute;
  display: flex;
  bottom: 0px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 64px;
  z-index: 5;
  padding-right: 64px;
  padding-bottom: 48px;
}

.level-complete-actions__secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.next-level-button {
  font-size: 32px;
  width: fit-content;
}

.next-level-button:hover {
  box-shadow: 0 0 12px gold;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.game-over-actions {
  position: absolute;
  display: flex;
  bottom: 0px;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  width: 100%;
  z-index: 5;
  padding-right: 64px;
  padding-bottom: 48px;
}

.end-credits-actions {
  position: absolute;
  display: flex;
  bottom: 0px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  z-index: 5;
  padding-right: 64px;
  padding-bottom: 48px;
}

.pause-toggle-button,
.mute-toggle-button,
.fullscreen-toggle-button {
  position: absolute;
  top: 12px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pause-toggle-button:hover,
.mute-toggle-button:hover,
.fullscreen-toggle-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.pause-toggle-button {
  right: 12px;
}

.mute-toggle-button {
  right: 60px;

}

.fullscreen-toggle-button {
  right: 108px;
}

.pause-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 25;
}

.pause-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 40px;
  border-radius: 16px;
  background: rgba(10, 10, 20, 0.9);
}

canvas {
  position: relative;
  display: none;
  width: 100%;
  height: 100dvh;
  background: transparent;
  z-index: 3;
}

.game-over-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: black;
}

.game-over-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.24);
}

.game-over-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%,
      rgba(0, 0, 0, 0) 18%,
      rgba(0, 0, 0, 0.72) 82%);
  mix-blend-mode: multiply;
}

.game-over-video-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%,
      rgba(180, 220, 255, 0.22) 0%,
      rgba(180, 220, 255, 0) 28%);
  mix-blend-mode: screen;
}

.end-credits-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 4;
  background: black;
}

.start-screen-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  z-index: 2;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
  pointer-events: none;
}

.start-screen-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-top: 48px;
  padding-left: 80px;
  gap: 50px;

}

.dragon-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 450px;
  height: 375px;
  overflow: hidden;
}

.dragon {
  width: 400px;
  object-fit: cover;
  filter: drop-shadow(12px 16px 16px rgba(0, 0, 0, 0.9));
  transition: filter 0.4s ease-in-out;
}

.title {
  font-family: 'Adventure', sans-serif;
  font-size: 160px;
  color: #FFB700;
  font-weight: bolder;
  letter-spacing: 5px;
  line-height: 1.12;
  transform: scaleX(1.2);
  -webkit-text-stroke: 4px #712400;
  text-shadow:
    0 0 8px rgba(255, 200, 0, 0.8),
    3px 3px 0 #712400;
  filter: drop-shadow(8px 4px 0 #2a0000);
}

.before-animation {
  transform: translateX(100vw);
  opacity: 0;
}

.animation {
  animation: flyInTitle 1.2s ease-out;
}

@keyframes flyInTitle {
  0% {
    opacity: 0;
    transform: translateX(100vw) scaleX(2.2) scaleY(0.8);
  }

  70% {
    opacity: 1;
    transform: translateX(0) scaleX(0.8) scaleY(1.3);
  }

  85% {
    transform: scaleX(1.2) scaleY(0.9);
  }

  100% {
    transform: scaleX(1.2) scaleY(1.0);
  }
}

.start-screen-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.start-screen-media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  gap: 0px;
}

.earth-video-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 440px;
  overflow: hidden;
}

.earth-video {
  opacity: 0.6;
  border-radius: 100%;
  width: 800px;
  object-fit: cover;
  clip-path: circle(33.5% at center);
  filter: brightness(1.4) contrast(1.3);
}

.hero-character-group {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 3;
}

.chick-img {
  width: 100px;
  object-fit: cover;
  margin-bottom: -10px;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 12px rgba(200, 200, 200, 0.4));
  transition: filter 0.4s ease-in-out;
}

.bruno-img {
  width: 320px;
  object-fit: cover;
  margin-bottom: -25px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(12px 16px 16px rgba(0, 0, 0, 0.9));
  transition: filter 0.4s ease-in-out;
}

.chicken-img {
  width: 130px;
  object-fit: cover;
  margin-bottom: -7px;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 12px rgba(200, 200, 200, 0.4));
  transition: filter 0.4s ease-in-out;
}

.portal-video-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  overflow: hidden;
}

.portal-video {
  opacity: 1.0;
  border-radius: 40%;
  width: 800px;
  object-fit: cover;
  mix-blend-mode: screen;
  clip-path: circle(30% at center);
  filter: brightness(1.4) contrast(1.3);
  left: 1000px;
}

.dragon-thunder-box {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.thunder-video {
  position: absolute;
  opacity: 1.0;
  width: 1300px;
  height: 100%;
  object-fit: cover;
  transform: translateX(500px);
  top: 0px;
  bottom: 0;
  z-index: -1;
  -webkit-mask-image:
    linear-gradient(to top, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to left, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: destination-in;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  mask-image:
    linear-gradient(to top, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to left, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
  filter: drop-shadow(0 0 20px rgba(255, 200, 100, 0.5));
}

.dragon-silhouette {
  position: absolute;
  opacity: 0.6;
  width: 1500px;
  height: 100%;
  object-fit: cover;
  transform: translateX(690px);
  top: 0px;
  z-index: 1;
  -webkit-mask-image:
    linear-gradient(to top, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to left, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: destination-in;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  mask-image:
    linear-gradient(to top, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to left, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
  filter: drop-shadow(0 0 20px rgba(255, 200, 100, 0.5));
}

.red-glow {
  z-index: -1;
  mix-blend-mode: darken;
  filter: blur(2px) saturate(3) brightness(2) hue-rotate(-10deg);
  opacity: 0.7;
}

.start-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 12px 18px;
  opacity: 0.80;
  z-index: 2;
  background: linear-gradient(0deg, rgba(10, 8, 6, .65), rgba(10, 8, 6, .35));
  border-top: 2px solid var(--gold-3);
  border-bottom: 2px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -6px 20px rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
}

.intro-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.intro-start-button {
  font-size: 60px;
  font-weight: bolder;
  text-align: center;
  color: white;
  margin: 10px;
  padding: 15px 45px;
  border-radius: 10px;
  background-size: 200% auto;
  box-shadow: 0 0 20px #eee;
  transition: 0.5s;
  background-image: linear-gradient(to right, #314755 0%, #26a0da 51%, #314755 100%);
  cursor: pointer;
  font-family: 'Bangers';
  z-index: 2;
}

.intro-start-button:hover {
  background-position: right center;
  color: #fff;
}

.intro-actions {
  position: absolute;
  display: flex;
  bottom: 0px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  z-index: 5;
  padding-right: 64px;
  padding-bottom: 48px;
}

.opening-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  width: 100%;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  height: 100%;
  z-index: 1;
}

.intro-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  width: 100%;
  z-index: 2;
  transform: translate(-50%, -50%);
  object-fit: cover;
  height: 100%;
}

.animation-overlay-fade-out {
  animation: fadeOut 0.4s ease-in-out;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fade-in-intro {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.submenu-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  height: 100%;
  pointer-events: none;
}

.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.page-overlay::after,
#story-overlay::after,
#controls-overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('./assets/img/shared_visuals/ornamentA.webp');
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  background-position: top center;
  background-repeat: no-repeat;
}

.page-overlay.blur-effect {
  filter: blur(10px);
}

#controls-overlay.overlay-opened-from-pause::after,
#credits-overlay.overlay-opened-from-pause::after {
  content: none;
}

.overlay-back {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 36px;
}

.overlay-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'UncialAntiqua', serif;
  font-size: 120px;
  font-weight: bold;
  color: #fff3d4;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
  margin-top: 24px;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
}

.character-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding-top: 84px;
  padding-bottom: 84px;
  gap: 64px;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: rgb(0, 0, 0, 0.4);
  gap: 16px;
  flex-direction: column;
  z-index: 5;
}

#character-detail-overlay {
  justify-content: center;
}

#characters-overlay {
  overflow-y: auto;
  overflow-x: hidden;
}

#story-overlay,
#controls-overlay,
#credits-overlay {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100dvh;
  justify-content: flex-start;
}

#story-overlay .submenu-video,
#controls-overlay .submenu-video,
#credits-overlay .submenu-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
  transform: none;
  pointer-events: none;
}

.ornament {
  position: absolute;
  opacity: 0.18;
  pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(255, 230, 150, 0.2));
  z-index: 2;
}

@keyframes float {
  0% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
    opacity: 0.15;
  }

  50% {
    transform: translate(25px, -40px) rotate(8deg) scale(1.08);
    opacity: 0.3;
  }

  100% {
    transform: translate(0px, 0px) rotate(-6deg) scale(1);
    opacity: 0.15;
  }
}

.ornament-left {
  background: url('./assets/img/shared_visuals/ornamentA.webp') no-repeat center/contain;
  width: 280px;
  height: 280px;
  top: -100px;
  left: -90px;
  animation-delay: 0s;
}

.ornament-right {
  background: url('./assets/img/shared_visuals/ornamentB.webp') no-repeat center/contain;
  width: 250px;
  height: 250px;
  bottom: -110px;
  right: -40px;
  animation-delay: 6s;
}

.overlay-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 32px;
}

.content-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  border: 2px solid rgba(255, 220, 160, 0.6);
  border-radius: 16px;
  background:
    url("./assets/img/shared_visuals/card_textur_background.webp"),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25));
  background-size: cover;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
  box-shadow:
    inset 0 1px 6px rgba(255, 255, 255, 0.3),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 24px 64px;
  margin-left: 224px;
  margin-right: 224px;
}

.content-card__body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
}

.content-card__text {
  font-family: 'Nunito';
  font-size: 36px;
  font-weight: bold;
  color: #fff3d4;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
  text-align: left;
  line-height: 1.3;
  padding: 20px;
}

.content-card__text::first-letter {
  font-size: 2.4em;
  font-family: 'Uncial Antiqua';
  color: #ffe9a0;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.controls-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 56px;
}

.controls-section .content-card {
  min-height: 760px;
}

.controls-text {
  font-family: 'Nunito';
  font-size: 34px;
  font-weight: bold;
  color: #fff3d4;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
}

.controls-keyboard-img {
  width: 120px;
  object-fit: cover;
}

.controls-mobile-img {
  width: 95px;
  object-fit: cover;
}

.controls-img {
  width: 46px;
  object-fit: cover;
}

.controls-mobile-icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  font-size: 22px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.controls-mobile-icon {
  width: 30px;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}

.controls-mobile-throw {
  width: 45px;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}

.controls-mobile-action {
  width: 25px;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}

.controls-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 160px 160px;
  column-gap: 150px;
  row-gap: 14px;
  align-items: center;
  padding: 0 10px 6px;
}

.controls-grid__header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
  padding-top: 6px;
}

.controls-grid__header--action {
  justify-content: flex-start;
  color: orange;
  font-family: 'Nunito';
  font-size: 42px;
  font-weight: bold;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
}

.controls-grid__row {
  display: contents;
}

.controls-grid__action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.controls-grid__key,
.controls-grid__mobile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls-grid__action,
.controls-grid__key,
.controls-grid__mobile {
  min-height: 42px;
}

.credits-title {
  font-size: 36px;
  font-weight: 900;
  color: #e0b96f;
  font-family: 'Nunito';
  text-shadow:
    1px 1px 1px rgba(255, 255, 255, 0.3),
    0 3px 5px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 210, 120, 0.6);
  -webkit-text-stroke: 0.4px rgba(40, 20, 0, 0.8);
}

.credits-sub-title {
  font-size: 28px;
  font-family: 'Nunito';
  color: #ddd0bb;
  font-weight: 800;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 3px 5px rgba(0, 0, 0, 0.75),
    0 0 8px rgba(255, 210, 120, 0.16);
  -webkit-text-stroke: 0.45px rgba(25, 12, 0, 0.9);
}

.credits-text {
  font-size: 28px;
  font-weight: bold;
  color: #f8e7c0;
  font-family: 'Nunito-Italic';
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.7),
    0 0 6px rgba(255, 220, 180, 0.3);
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(2px 2px 3px rgb(0, 0, 0, 0.6));
}

.credits-links {
  font-size: 28px;
  color: #e7c97a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.credits-links:hover {
  color: #fff0b5;
  text-shadow: 0 0 10px rgba(255, 230, 160, 0.6);
}

.detail-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.detail-overlay__close {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.detail-card {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 200px;
  border: 2px solid rgba(255, 220, 160, 0.6);
  border-radius: 16px;
  background:
    url("./assets/img/shared_visuals/card_textur_background.webp"),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25));
  background-size: cover;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
  box-shadow:
    inset 0 1px 6px rgba(255, 255, 255, 0.3),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 64px 96px;
  transition: all 0.3s ease;
}

.detail-card__media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 32px;
}

.detail-card__title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'UncialAntiqua', serif;
  font-size: 56px;
  font-weight: bold;
  color: #fff3d4;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
}

.detail-card__image {
  width: 450px;
  object-fit: cover;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
  animation: idle 3.5s ease-in-out infinite;
}

@keyframes idle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.detail-card__body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 32px;
  max-width: 650px;
  padding-left: 10px;
  padding-right: 24px;
  padding-bottom: 10px;

}

.detail-card__text {
  font-family: 'Nunito';
  font-size: 36px;
  font-weight: bold;
  color: #fff3d4;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
  max-width: 600px;
  text-align: left;
  line-height: 1.3;
  padding: 20px;
}

.detail-card__text::first-letter {
  font-size: 2.4em;
  font-family: 'Uncial Antiqua';
  color: #ffe9a0;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.character-card {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 200px;
  max-width: 1100px;
  border: 2px solid rgba(255, 220, 160, 0.6);
  border-radius: 16px;
  background:
    url("./assets/img/shared_visuals/card_textur_background.webp"),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25));
  background-size: cover;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
  box-shadow:
    inset 0 1px 6px rgba(255, 255, 255, 0.3),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 24px 64px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.character-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px) brightness(1.1);
  -webkit-backdrop-filter: blur(8px) brightness(1.1);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.3),
    inset 0 -3px 8px rgba(0, 0, 0, 0.25),
    0 8px 22px rgba(0, 0, 0, 0.45);
}

.character-card__media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 32px;
}

.character-card__title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'UncialAntiqua', serif;
  font-size: 36px;
  font-weight: bold;
  color: #fff3d4;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
}

.character-card__image {
  width: 250px;
  object-fit: cover;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
}

.character-card__text {
  color: #fff3d4;
  font-family: 'Nunito-Italic';
  font-size: 32px;
  font-weight: bold;
  filter: drop-shadow(10px 10px 10px rgb(0, 0, 0, 0.5));
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 230, 180, 0.4);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
  padding: 0 36px;
}

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

.touch-controls-cutscene-hidden {
  display: none !important;
  pointer-events: none !important;
}

.overlay-landscape-spinner {
  display: none;
}

@media only screen and (max-width: 600px) {
  .intro-start-button {
    font-size: 42px;
  }
}


@media only screen and (max-width: 3500px) {
  .start-screen-header {
    justify-content: center;
    margin-right: 500px;
  }
}

@media only screen and (max-width: 2000px) {
  .start-screen-header {
    margin-right: 600px;
  }
}

@media only screen and (max-width: 1900px) {
  .start-screen-header {
    justify-content: flex-start;
    margin-right: 0;
  }

  .dragon-silhouette {
    width: 1300px;
    transform: translateX(720px);
  }

  .thunder-video {
    width: 1100px;
    transform: translateX(530px);
  }

  .title {
    font-size: 110px;
  }

  .dragon-img-box {
    width: 330px;
    height: 255px;
  }

  .dragon {
    width: 280px;
  }

  .earth-video-box {
    width: 340px;
  }

  .earth-video {
    width: 600px;
  }

  .portal-video-box {
    width: 300px;
  }

  .portal-video {
    width: 600px;
  }

  .bruno-img {
    width: 250px;
    margin-bottom: -20px;
  }

  .chick-img {
    width: 80px;
    margin-bottom: -8px;
  }

  .chicken-img {
    width: 100px;
  }

}

@media only screen and (max-width: 1380px) {
  .start-screen-header {
    padding-left: 40px;
  }

  .title {
    font-size: 100px;
  }

  .dragon-img-box {
    width: 300px;
    height: 225px;
  }

  .dragon {
    width: 250px;
  }
}

@media only screen and (max-width: 1180px) {
  .start-screen-header {
    padding-left: 10px;
  }

  .title {
    font-size: 80px;
  }

  .earth-video-box {
    width: 250px;
  }

  .earth-video {
    width: 450px;
  }

  .portal-video-box {
    width: 220px;
  }

  .portal-video {
    width: 450px;
  }

  .dragon-img-box {
    width: 260px;
    height: 215px;
  }

  .dragon {
    width: 210px;
  }

  .bruno-img {
    width: 180px;
    margin-bottom: -14px;
  }

  .chick-img {
    width: 60px;
    margin-bottom: -8px;
  }

  .chicken-img {
    width: 75px;
  }

  .menu-button {
    padding: 10px 12px;
  }
}

@media only screen and (max-width: 950px) {

  .dragon-img-box {
    width: 220px;
    height: 180px;
  }

  .dragon {
    width: 160px;
  }

  .title {
    font-size: 65px;
  }
}

@media only screen and (max-width: 850px) and (pointer: fine) and (hover: hover) {
  .start-menu {
    flex-direction: column;
  }

  .dragon-thunder-box {
    display: none;
  }

  .start-screen-header {
    padding-left: 0px;
    justify-content: flex-start;
  }

  .bruno-img {
    width: 100px;
    margin-bottom: -8px;
  }

  .chick-img {
    width: 30px;
    margin-bottom: -3px;
  }

  .chicken-img {
    width: 45px;
    margin-bottom: -2px;
  }

  .earth-video-box {
    width: 140px;
    height: 150px;
  }

  .earth-video {
    width: 250px;
  }

  .portal-video-box {
    width: 140px;
  }

  .portal-video {
    width: 250px;
  }

  .menu-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: fit-content;
    height: fit-content;
    padding: 6px 3px;
    font-size: 16px;
    width: 125px;
  }

  .title {
    font-size: 51px;
    -webkit-text-stroke: 3px #712400;
    margin-top: 0px;
    text-shadow:
      0 0 8px rgba(255, 200, 0, 0.8),
      2px 2px 0 #712400;
    -webkit-text-stroke: 3px #712400;
    filter: drop-shadow(4px 2px 0 #2a0000);
  }

  .dragon-img-box {
    width: 195px;
    height: 160px;
  }

  .dragon {
    width: 135px;
  }

}

@media only screen and (max-width: 550px) and (pointer: fine) and (hover: hover) {
  .start-screen-header {
    justify-content: center;
  }

  .dragon-img-box {
    display: none;
  }

  .title {
    font-size: 45px;
    text-align: center;
  }

  .bruno-img {
    width: 85px;
    margin-bottom: -8px;
  }

  .chick-img {
    width: 25px;
    margin-bottom: -3px;
  }

  .chicken-img {
    width: 35px;
    margin-bottom: -2px;
  }

  .earth-video-box {
    width: 95px;
    height: 90px;
  }

  .earth-video {
    width: 150px;
  }

  .portal-video-box {
    width: 70px;
  }

  .portal-video {
    width: 150px;
  }

}

@media only screen and (max-width: 950px) and (pointer: coarse) {
  .all-content {
    height: 100dvh;
  }

  .game-stage {
    gap: 6px;
    height: 100dvh !important;
  }

  .start-menu {
    flex-direction: row;
  }

  .touch-controls-active {
    gap: 6px;
  }

  .title {
    font-size: 64px;
    -webkit-text-stroke: 3px #712400;
    margin-top: 0px;
    text-shadow:
      0 0 8px rgba(255, 200, 0, 0.8),
      2px 2px 0 #712400;
    -webkit-text-stroke: 3px #712400;
    filter: drop-shadow(4px 2px 0 #2a0000);
  }

  .bruno-img {
    width: 100px;
    margin-bottom: -8px;
  }

  .chick-img {
    width: 30px;
    margin-bottom: -3px;
  }

  .chicken-img {
    width: 45px;
    margin-bottom: -2px;
  }

  .earth-video-box {
    width: 140px;
    height: 150px;
  }

  .earth-video {
    width: 250px;
  }

  .portal-video-box {
    width: 140px;
  }

  .portal-video {
    width: 250px;
  }

  .start-screen-header {
    gap: 10px;
    margin-top: 10px;
    padding-left: 0px;
    justify-content: flex-start;
    margin-left: 150px;
  }

  .dragon-img-box {
    display: flex;
    width: 180px;
    height: 130px;
  }

  .dragon {
    width: 120px;
    object-fit: cover;
  }

  .start-screen-media {
    height: fit-content;
    gap: 10px;
    margin-top: 0px;
  }

  .start-screen-overlay {
    height: 100dvh !important;
    overflow: hidden;
  }

  .menu-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: fit-content;
    height: fit-content;
    padding: 3px 3px;
    font-size: 16px;
    width: 110px;
  }

  #pause-resume-button,
  #pause-controls-button,
  #pause-credits-button,
  #pause-restart-button,
  #pause-menu-main-button,
  #game-over-restart-button,
  #game-over-menu-button,
  #next-level-button,
  #restart-level-button,
  #level-complete-menu-button,
  #end-credits-menu-button {
    width: 150px;
  }

  .start-menu {
    padding: 3px 3px;
  }

  .dragon-thunder-box {
    display: flex;
  }

  .dragon-silhouette {
    width: 500px;
    transform: translateX(200px);
    height: 100dvh;
  }

  .thunder-video {
    width: 380px;
    transform: translateX(120px);
    height: 100dvh;
  }

  body:not(.fullscreen-active) .bruno-img {
    width: 70px;
  }

  body:not(.fullscreen-active) .chick-img {
    width: 18px;
  }

  body:not(.fullscreen-active) .chicken-img {
    width: 25px;
  }

  body:not(.fullscreen-active) .earth-video-box {
    width: 90px;
    height: 85px;
  }

  body:not(.fullscreen-active) .earth-video {
    width: 150px;
  }

  body:not(.fullscreen-active) .portal-video-box {
    width: 75px;
  }

  body:not(.fullscreen-active) .portal-video {
    width: 150px;
  }
}

@media only screen and (max-width: 850px) and (pointer: coarse) {
  .title {
    font-size: 51px;
  }

  .start-screen-header {
    margin-left: 0;
  }
}

@media only screen and (max-width: 650px) and (pointer: coarse) {
  .dragon-thunder-box {
    display: none;
  }

  .start-screen-header {
    justify-content: center;
  }

  .dragon-img-box {
    display: none;
  }

  .start-menu {
    gap: 12px;
  }

  .title {
    font-size: 45px;
    text-align: center;
  }

  .bruno-img {
    width: 85px;
    margin-bottom: -8px;
  }

  .chick-img {
    width: 25px;
    margin-bottom: -3px;
  }

  .chicken-img {
    width: 35px;
    margin-bottom: -2px;
  }

  .earth-video-box {
    width: 95px;
    height: 90px;
  }

  .earth-video {
    width: 150px;
  }

  .portal-video-box {
    width: 70px;
  }

  .portal-video {
    width: 150px;
  }
}

@media only screen and (max-width: 500px) and (pointer: coarse) {
  .start-menu {
    flex-direction: column;
  }

  .title {
    font-size: 32px;
    text-align: center;
  }

  .bruno-img {
    width: 50px;
    margin-bottom: -5px;
  }

  .chick-img {
    width: 15px;
    margin-bottom: -3px;
  }

  .chicken-img {
    width: 20px;
    margin-bottom: -2px;
  }

  .earth-video-box {
    width: 65px;
    height: 60px;
  }

  .earth-video {
    width: 100px;
  }

  .portal-video-box {
    width: 55px;
  }

  .portal-video {
    width: 100px;
  }

  #play-game-button,
  #open-story-button,
  #open-characters-button,
  #open-controls-button,
  #open-credits-button {
    font-size: 14px;
    width: 100px;
  }

  .title {
    -webkit-text-stroke: 2.0px #712400;
    text-shadow:
      0 0 4px rgba(255, 200, 0, 0.8),
      1.5px 1.5px 0 #712400;
    filter: drop-shadow(4px 2px 0 #2a0000);
  }
}


@media only screen and (max-width: 1530px) {
  .character-card {
    padding: 24px 32px;
    max-width: 800px;
    gap: 50px;
  }

  .overlay-back {
    padding-left: 24px;
  }
}

@media only screen and (max-width: 1200px) {
  .overlay-back button {
    min-width: 70px;
  }

  .overlay-back {
    padding-left: 12px;
  }
}

@media only screen and (max-width: 1024px) {
  .character-card {
    padding: 24px 8px;
    max-width: 600px;
    gap: 24px;
  }

  .overlay-title {
    font-size: 80px;
  }

  .character-card__title {
    font-size: 32px;
  }

  .character-card__text {
    padding: 0 12px;
    font-size: 28px;
  }

  .character-card__image {
    width: 200px;
  }

  .overlay-back button {
    width: fit-content;
    padding: 6px 3px;
    font-size: 16px;
  }

  .overlay-back {
    position: absolute;
    align-items: flex-start;
    padding-top: 12px;
  }

  .character-list {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media only screen and (max-width: 850px) {
  .character-card {
    padding: 24px 8px;
    max-width: 450px;
    gap: 24px;
  }

  .character-card__title {
    font-size: 28px;
  }

  .character-card__text {
    font-size: 24px;
  }

  .character-card__image {
    width: 180px;
  }

  .overlay-title {
    font-size: 70px;
  }

}

@media only screen and (max-width: 450px) {
  .overlay-back {
    padding-top: 6px;
    padding-left: 6px;
  }

  .overlay-back button {
    font-size: 0;
    padding: 1px 1px;
    min-width: 20px;
  }

  .overlay-back button::before {
    content: "<";
    font-size: 16px;
    font-weight: bolder;
  }

}

@media only screen and (max-width: 850px) and (pointer: coarse) {
  .character-list {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .character-card {
    max-width: 480px;
    padding: 12px 8px;
  }

  .character-card__image {
    width: 160px;
  }

  .overlay-title {
    margin-top: 6px;
    font-size: 60px;
  }
}

@media only screen and (max-width: 625px) and (pointer: fine) and (hover: hover) {
  .character-card {
    padding: 24px 8px;
    max-width: 280px;
    gap: 6px;
  }

  .character-card__title {
    font-size: 18px;
  }

  .character-card__text {
    font-size: 16px;
    padding: 0 6px;
  }

  .character-card__image {
    width: 100px;
  }

  .overlay-title {
    font-size: 45px;
  }
}

@media only screen and (max-width: 380px) and (pointer: fine) and (hover: hover) {
  .overlay-title {
    font-size: 35px;
  }
}


@media only screen and (max-width: 1700px) {
  .detail-card {
    gap: 80px;
  }

  .ornament-right,
  .ornament-left {
    width: 200px;
    height: 200px;
  }

  .ornament-left {
    top: -60px;
    left: -50px;
  }

  .ornament-right {
    bottom: -80px;
    right: 0;
  }
}

@media only screen and (max-width: 1460px) {
  .detail-card {
    gap: 0px;
    padding: 64px 32px;
    margin: 0 48px;
  }
}

@media only screen and (max-width: 1250px) {
  .detail-card {
    padding: 32px 16px;
  }

  .detail-card__title {
    font-size: 32px;
  }

  .detail-card__text {
    font-size: 28px;
  }

  .detail-card__image {
    width: 350px;
  }

  .ornament-right,
  .ornament-left {
    width: 120px;
    height: 120px;
  }

  .ornament-left {
    top: -35px;
    left: -25px;
  }

  .ornament-right {
    bottom: -55px;
    right: 10px;
  }
}

@media only screen and (max-width: 900px) {
  .detail-card {
    padding: 6px 6px;
  }

  .detail-card__title {
    font-size: 28px;
  }

  .detail-card__text {
    font-size: 24px;
  }

  .detail-card__image {
    width: 250px;
  }

  .ornament-right,
  .ornament-left {
    width: 80px;
    height: 80px;
  }

  .ornament-left {
    top: -20px;
    left: -25px;
  }

  .ornament-right {
    bottom: -55px;
    right: 10px;
  }

  .detail-card__body {
    padding: 6px 12px;
  }
}

@media only screen and (max-width: 850px) {
  .detail-card {
    margin: 0 40px;
  }

  .detail-card__title {
    font-size: 24px;
  }

  .detail-card__text {
    font-size: 20px;
    padding: 0;
  }

  .detail-card__image {
    width: 120px;
  }

  .ornament-left {
    display: none;
  }

  .ornament-right {
    display: none;
  }

  #close-detail-overlay-button {
    width: 80px;
  }
}

@media only screen and (max-width: 600px) {
  .detail-card {
    margin: 0 6px;
  }

  .detail-card__title {
    font-size: 20px;
  }

  .detail-card__text {
    font-size: 16px;
    padding: 0;
  }

  .detail-card__image {
    width: 100px;
  }

  .detail-card__body {
    padding: 3px 3px;
  }
}


@media only screen and (max-width: 1530px) {
  #story-section .content-card {
    margin-left: 200px;
    margin-right: 200px;
    padding: 32px 12px;
  }
}

@media only screen and (max-width: 1330px) {
  #story-section .content-card {
    padding: 16px 6px;
  }

  #story-section .content-card__text {
    font-size: 30px;
  }
}

@media only screen and (max-width: 1200px) {
  #story-section .content-card {
    margin-left: 130px;
    margin-right: 130px;
  }
}

@media only screen and (max-width: 1180px) {
  #story-section .content-card {
    margin-left: 105px;
    margin-right: 105px;
  }
}

@media only screen and (max-width: 1024px) {
  #story-section .content-card {
    margin-left: 24px;
    margin-right: 24px;
  }

  .overlay-section {
    padding: 0;
  }
}

@media only screen and (max-width: 900px) {
  #story-section .content-card__text {
    font-size: 24px;
  }
}

@media only screen and (max-width: 650px) {
  #story-section .content-card {
    padding: 6px 6px;
  }

  #story-section .content-card__text {
    font-size: 20px;
    padding: 0;
  }

  #story-section .content-card__body {
    padding: 6px 0;
  }
}

@media only screen and (max-width: 625px) {
  #story-section .content-card {
    margin-left: 6px;
    margin-right: 6px;
  }
}


@media only screen and (max-width: 1700px) {
  #controls-section .content-card {
    margin-left: 0;
    margin-right: 0;
    padding: 32px 12px;
  }

  .controls-grid {
    column-gap: 100px;
  }
}

@media only screen and (max-width: 1530px) {
  #controls-section .content-card {
    padding: 12px 12px;
  }

  .controls-grid {
    column-gap: 20px;
    grid-template-columns: minmax(400px, 1fr) 120px 120px;
    ;
  }

  .controls-grid__header {
    font-size: 36px;
  }

  .controls-text {
    font-size: 28px;
  }

  .controls-img {
    width: 40px;
  }

  .controls-mobile-icon-box {
    width: 40px;
    height: 40px;
  }

  .controls-mobile-action {
    width: 19px;
  }

  .controls-mobile-icon {
    width: 24px;
  }

  .controls-mobile-throw {
    width: 38px;
  }

  .controls-keyboard-img {
    width: 114px;
  }

  .controls-mobile-img {
    width: 89px;
  }
}

@media only screen and (max-width: 1024px) {
  #controls-section .content-card {
    min-height: auto;
  }

  .controls-section {
    padding: 0;
  }
}

@media only screen and (max-width: 850px) {
  .controls-grid {
    column-gap: 20px;
    grid-template-columns: minmax(300px, 1fr) 100px 100px;
    padding: 0;
    row-gap: 8px;
  }

  .controls-grid__header {
    font-size: 28px;
  }

  .controls-text {
    font-size: 20px;
  }

  .controls-img {
    width: 32px;
  }

  .controls-mobile-icon-box {
    width: 32px;
    height: 32px;
  }

  .controls-mobile-action {
    width: 10px;
  }

  .controls-mobile-icon {
    width: 16px;
  }

  .controls-mobile-throw {
    width: 30px;
  }

  .controls-keyboard-img {
    width: 108px;
  }

  .controls-mobile-img {
    width: 80px;
  }
}

@media only screen and (max-width: 600px) {
  .controls-grid {
    column-gap: 20px;
    grid-template-columns: minmax(200px, 1fr) 80px 80px;
    padding: 0;
    row-gap: 8px;
  }

  .controls-grid__header {
    font-size: 24px;
  }

  .controls-text {
    font-size: 16px;
  }

  .controls-img {
    width: 28px;
  }

  .controls-mobile-icon-box {
    width: 28px;
    height: 28px;
  }

  .controls-mobile-action {
    width: 6px;
  }

  .controls-mobile-icon {
    width: 10px;
  }

  .controls-mobile-throw {
    width: 24px;
  }

  .controls-keyboard-img {
    width: 102px;
  }

  .controls-mobile-img {
    width: 74px;
  }
}

@media only screen and (max-width: 500px) {
  #controls-section .content-card {
    padding: 3px 3px;
  }

  .controls-grid {
    column-gap: 0px;
    grid-template-columns: minmax(100px, 1fr) 65px 65px;
    padding: 0;
    row-gap: 8px;
  }

  .controls-keyboard-img {
    width: 70px;
  }

  .controls-mobile-img {
    width: 52px;
  }

  .controls-grid .controls-grid__row:nth-child(8) .controls-text {
    font-size: 0;
  }

  .controls-grid .controls-grid__row:nth-child(8) .controls-text::before {
    content: "benutzen";
    font-size: 16px;
  }

  .controls-grid .controls-grid__row:nth-child(9) .controls-text {
    font-size: 0;
  }

  .controls-grid .controls-grid__row:nth-child(9) .controls-text::before {
    content: "Quest-Log";
    font-size: 16px;
  }
}


@media only screen and (max-width: 1530px) {
  #credits-section .content-card {
    margin-left: 200px;
    margin-right: 200px;
    padding: 32px 12px;
  }
}

@media only screen and (max-width: 1330px) {
  #credits-section .content-card {
    padding: 16px 6px;
  }

  #credits-section h2,
  #credits-section h3 {
    font-size: 32px;
  }

  .credits-sub-title,
  #credits-section .credits-text,
  .credits-links {
    font-size: 24px;
  }
}

@media only screen and (max-width: 1200px) {
  #credits-section .content-card {
    margin-left: 130px;
    margin-right: 130px;
  }
}

@media only screen and (max-width: 1180px) {
  #credits-section .content-card {
    margin-left: 105px;
    margin-right: 105px;
  }
}

@media only screen and (max-width: 1024px) {
  #credits-section .content-card {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media only screen and (max-width: 900px) {

  #credits-section h2,
  #credits-section h3 {
    font-size: 24px;
  }

  .credits-sub-title,
  #credits-section .credits-text,
  .credits-links {
    font-size: 20px;
  }
}

@media only screen and (max-width: 650px) {
  #credits-section .content-card {
    padding: 6px 6px;
  }

  #credits-section .content-card__body {
    padding: 6px 0;
  }
}

@media only screen and (max-width: 625px) {
  #credits-section .content-card {
    margin-left: 6px;
    margin-right: 6px;
  }
}


@media only screen and (max-width: 900px) and (pointer: coarse) {
  .level-complete-actions {
    padding-bottom: 24px;
    padding-right: 24px;
    gap: 36px;
  }

  .game-over-actions {
    padding-bottom: 24px;
    padding-right: 24px;
    gap: 12px;
  }

  .end-credits-actions {
    padding-bottom: 24px;
    padding-right: 24px;
  }
}


@media only screen and (max-width: 600px) {
  .mute-toggle-button {
    width: 30px;
    height: 30px;
    right: 6px;
    top: 3px;
    font-size: 16px;
  }

  .fullscreen-toggle-button {
    width: 30px;
    height: 30px;
    right: 40px;
    top: 3px;
    font-size: 16px;
  }
}


@media only screen and (pointer: coarse) {
  .touch-controls-active {
    display: flex;
  }
}

@media only screen and (orientation: portrait) and (max-width: 1024px) and (pointer:coarse) {
  .overlay-landscape-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    z-index: 2000;
  }

  .landscape-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 92px;
    height: 180px;
    border-radius: 8px;
    transform: translateY(-30px);
    background-color: whitesmoke;
    background-image:
      radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 4%, rgba(81, 81, 81, 1) 14%, rgba(44, 44, 44, 1) 26%, rgba(2, 2, 2, 1) 53%, rgba(2, 2, 2, 1) 65%, rgba(2, 2, 2, 0) 66%),
      linear-gradient(grey, grey);
    background-repeat: no-repeat;
    background-size: 10px 10px, 84px 162px;
    background-position: center 2px, 4px 8px;
    transform: rotate(270deg);
    animation: rotateToPortrait 2s ease-in-out infinite, glowingBorder 2s ease-in-out infinite;
  }

  .spinner-ring {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: #de3500 #0000 #fff #0000;
    border-radius: 50%;
    box-sizing: border-box;
    animation: 3s rotate linear infinite;
  }

  .spinner-ring:before,
  .spinner-ring:after {
    content: '';
    top: 0;
    left: 0;
    position: absolute;
    border: 10px solid transparent;
    border-bottom-color: #fff;
    transform: translate(-10px, 19px) rotate(-35deg);
  }

  .spinner-ring:after {
    border-color: #de3500 #0000 #0000 #0000;
    transform: translate(32px, 3px) rotate(-35deg);
  }

  @keyframes rotate {
    100% {
      transform: rotate(360deg)
    }
  }

  @keyframes rotateToPortrait {
    0% {
      transform: rotate(270deg);
    }

    50%,
    100% {
      transform: rotate(360deg);
    }
  }

  @keyframes glowingBorder {
    0% {
      box-shadow: 0 0 50px orangered;
    }

    50% {
      box-shadow: 0 0 50px lightgreen;
    }

    100% {
      box-shadow: 0 0 50px lightgreen;
    }
  }
}