/*#region ========== Fonts ========== */

@font-face {
  font-family: "Abadi";
  src: url("../fonts/Abadi.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Dongle";
  src: url("../fonts/Dongle-Bold.ttf") format("truetype");
  font-weight: bold;
}

@font-face {
  font-family: "SNPro";
  src: url("../fonts/SNPro-Bold.ttf") format("truetype");
  font-weight: bold;
}

/*#endregion */

/*#region ========== Variables ========== */

:root {
  --uiTxtColor: #354a65;
}

/*#endregion */

/*#region ========== General ========== */

body,html {
  user-select: none;
  margin: 0;
  height: 100%;
  background: #f5f5f7;
  color: #000;
  font-family: monospace;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
  
.stage-wrapper {
  position: relative;
  height: 100vh;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  width: 375px;
  height: 812px;
  overflow: hidden;
  border-radius: 25px;
}
  
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 14px;
  z-index: 25;
  height: 60px;
}
  
.multBadge {
  background: rgba(15,255,15,0.06);
  border: 1px solid rgba(15,255,15,0.12);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 900
}
  
.multFlash {
  box-shadow: 0 0 12px #00ff66;
  transform: scale(1.05);
  transition: transform .18s ease
}
  
.pointPopup {
  position: absolute;
  pointer-events: none;
  color: #000;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 18px;
  transform: translateY(0);
  opacity: 1;
  transition: transform .7s ease-out,opacity .7s ease-out;
  z-index: 60
}
  
.pointPopup.mult {
  color: #000;
  background: rgba(255,250,200,0.96);
}
  
#playfield {
  position:absolute;
  top:84px;
  bottom:0;
  left:0;
  right:0;
  overflow:hidden;
  z-index:1
}
  
/* Matrix-style playfield: black background for numbers mode */
#playfield.matrix-mode {
  background:#000;
}
  
.drop {
  position:absolute;
  font-weight:bold;
  user-select:none;
  pointer-events:auto;
  touch-action:manipulation;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
}
  
/* Matrix-style numbers: neon green on black background for numbers mode */
.drop.matrix-number {
  color:#00ff41;
  text-shadow:0 0 10px #00ff41,0 0 20px #00ff41,0 0 30px #00ff41;
  background:transparent;
  border-radius:4px;
  padding:2px 6px;
}

.drop.balloon-piece {
  font-size: 20px;
  font-weight: bold;
  color: white;

  text-shadow:
    0 0 2px #4fa3ff,
    1px 1px 0 #2a71b4,
    -1px 1px 0 #2a71b4,
    1px -1px 0 #2a71b4,
    -1px -1px 0 #2a71b4,
    0 2px 0 #174a87;
}

.balloon-piece {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;

  font-size: 20px;
  font-weight: bold;
  
  background-image: url("../images/UI/gamescreen/gamescreen_bubble.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.balloon-piece span {
  position: relative;
  z-index: 2;
}
    
button {
  background:#0f0;
  color:#000;
  border:0;
  border-radius:4px;
  padding:6px 12px;
  font-weight:bold;
  cursor:pointer
}
    
@keyframes explodeGreen {
  0% {
    transform:scale(1);
    opacity:1;
    text-shadow:0 0 8px #00ff88
  }
  100% {
    transform:scale(5);
    opacity:0;
    text-shadow:0 0 22px #00ffaa
  }
}
    
@keyframes redX {
  0% {
    transform:scale(0.8);
    opacity:0
  }
  20% {
    opacity:1
  }
  100% {
    transform:scale(1.4);
    opacity:0
  }
}
    
.redx {
  position:absolute;
  pointer-events:none;
  font-weight:900;
  color:#f33;
  text-shadow:0 0 10px #ff0033;
  font-size:56px;
  animation:redX .5s ease-out forwards;
}
  
.overlay {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 30
}
  
.modal {
  background:rgba(255,255,255,0.95);
  border:1px solid rgba(0,0,0,0.08);
  color:#000;
  padding:26px 29px;
  border-radius:13px;
  max-width:90%;
  text-align:center;
  font-size:23px
}
  
.modal h2 {
  margin:0 0 13px 0;
  font-size:29px
}
  
.modal p {
  margin:10px 0;
  font-size:23px
}
  
.modal button {
  margin-top:16px;
  padding:13px 20px;
  font-size:20px
}
  
/* large, subtle turtle slow countdown behind the playfield */
#turtleCountdown {
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:8;
  pointer-events:none;
}
  
/* turtleCountdown uses a canvas sized to the playfield */
/* balloons styling */
.balloon-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}

/*#endregion */

/*#region ========== Journey Page ========== */

.journey-screen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: stretch;

  background: transparent;
  overflow: hidden;
  z-index: 300;
}

#journeyScrollArea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #55d7e8;
}

#journeyScrollArea::-webkit-scrollbar {
  display: none;
}

#journeyWorld {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}

#journeyBackgroundLayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  z-index: 1;
}

.journey-background-section {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: auto;

  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

#journeyRoundsContainer {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  z-index: 3;
}

.journey-round {
  all: unset;
  position: absolute;
  width: 108px;
  height: 118px;
  transform-origin: center center;

  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}

.journey-round.completed {
  cursor: pointer;
  pointer-events: auto;
}

.journey-round.locked {
  cursor: default;
  pointer-events: none;
}

.journey-round.completed:active {
  scale: 0.96;
}

.journey-round.current {
  cursor: pointer;
  pointer-events: auto;
  z-index: 8;
}

.journey-round.current:active {
  scale: 0.96;
}

.journey-round.current
.journey-round-number {
  top: 35%;
  font-size: 27px;
}

/* ---------- Journey Header ---------- */

#journeyHeader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 145px;

  pointer-events: none;
  z-index: 20;
}

.journey-header-avatar {
  position: absolute;
  left: 13px;
  top: 17px;
  width: 102px;
  height: 102px;
}

.journey-avatar-image,
.journey-avatar-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.journey-avatar-image {
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
}

.journey-avatar-frame {
  width: 102px;
  height: 102px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ---------- Total points ---------- */

.journey-total-points {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 205px;
  height: 96px;
  transform: translateX(-50%);
}

.journey-total-points-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.journey-total-points-content {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;

  font-family: "SNPro", sans-serif;
  color: #ffffff;
  text-align: center;

  pointer-events: none;
}

#journeyTotalPointsValue {
  max-width: 150px;
  overflow: hidden;
  font-size: 32px;
  line-height: 0.95;
  white-space: nowrap;

  -webkit-text-stroke: 1.2px #6d72d8;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #4555bd;
}

.journey-total-points-label {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1;

  -webkit-text-stroke: 0.7px #5969c9;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #4555bd;
}

/* ---------- Leaderboard ---------- */

.journey-leaderboard-btn {
  all: unset;
  position: absolute;
  top: 20px;
  right: 13px;
  width: 82px;
  height: 96px;

  cursor: pointer;
  pointer-events: auto;
}

.journey-leaderboard-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;

  pointer-events: none;
  user-select: none;
}

.journey-leaderboard-btn:active {
  transform: scale(0.96);
}

/* ---------- Shell ---------- */

.journey-shell-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);

  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.journey-shell-shadow {
  position: absolute;
  left: 50%;
  width: 92%;
  height: auto;
  transform: translateX(-50%);

  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Closed shell shadow */
.journey-shell-closed-shadow {
  top: 60%;
  width: 72%;
}

/* Open shell shadow */
.journey-shell-opened-shadow {
  top: 57%;
  width: 100%;
}

/* ---------- Shell stand ---------- */

.journey-shell-stand-shadow,
.journey-shell-stand {
  position: absolute;
  left: 50%;

  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.journey-shell-stand-shadow {
  top: 55%;
  width: 65%;
  transform: translateX(-50%);
  z-index: 0;
}

.journey-shell-stand {
  top: 50%;
  width: 72%;
  transform: translateX(-50%);
  z-index: 1;
}

/* ---------- Current shell effects ---------- */

.journey-current-shell-shine {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  aspect-ratio: 426 / 479;
  transform: translate(-50%, -50%);

  object-fit: contain;
  pointer-events: none;
  user-select: none;

  z-index: 1;
}

.journey-current-light {
  position: absolute;
  left: 50%;
  top: 50%;

  object-fit: contain;
  pointer-events: none;
  user-select: none;

  z-index: 2;
}

.journey-current-light-1,
.journey-current-light-2,
.journey-current-light-3 {
  width: 180px;
  transform:
    translate(-50%, -50%)
    translate(0px, 0px);
}

/* ---------- Current round octopus ---------- */

.journey-octopus {
  position: absolute;
  left: 10px;
  top: -38px;
  width: 92px;
  height: auto;

  pointer-events: none;
  user-select: none;

  z-index: 10;
}

.journey-octopus-image,
.journey-octopus-shadow {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.journey-octopus-shadow {
  left: 0px;
  top: 41px;
  width: 90px;
  height: auto;

  z-index: 2;
}

.journey-octopus-image {
  left: 0;
  top: 0;
  width: 92px;
  height: auto;

  z-index: 3;
}

/* ---------- Pearl ---------- */

.journey-pearl {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);

  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 4;
}

.journey-pearl-small {
  width: 25px;
}

.journey-pearl-medium {
  width: 34px;
}

.journey-pearl-big {
  width: 44px;
}

.journey-pearl-sparks {
  position: absolute;
  left: 50%;
  top: 69%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);

  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

/* ---------- Stars ---------- */

.journey-stars {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -50%);
  height: auto;

  object-fit: contain;
  pointer-events: none;
  user-select: none;

  z-index: 5;
}

.journey-stars-1 {
  width: 28px;
}

.journey-stars-2 {
  width: 53px;
}

.journey-stars-3 {
  width: 76px;
}

/* ---------- Round number ---------- */

.journey-round-number {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  width: 70px;

  text-align: center;
  font-family: "SNPro", sans-serif;
  font-size: 27px;
  font-weight: bold;
  line-height: 1;

  color: #ffffff;
  -webkit-text-stroke: 1.5px #7464be;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #58439f, 0 3px 5px rgba(40, 15, 95, 0.38);
  pointer-events: none;

  z-index: 6;
}

/*
  Closed shell number sits slightly lower
  because the shell is not open.
*/
.journey-round.locked
.journey-round-number {
  top: 52%;
  font-size: 25px;
  color: #ffffff;
  -webkit-text-stroke: 1.4px #8170c6;
}

/* ---------- Journey End ---------- */

#journeyEndImage {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);

  object-fit: contain;
  pointer-events: none;
  user-select: none;

  z-index: 6;
}

/*#endregion */

/*#region ========== Powerup ========== */

.lightning-icon,
.clock-icon,
.turtle-icon {
  position: relative;
  z-index: 10;
  width: 40px;
  height: 40px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: auto;
}

.lightning-icon {
  background-image: url("../images/ClipArt/BonusRound/Lightning.png");
}

.clock-icon {
  background-image: url("../images/ClipArt/BonusRound/Clock.png");
}

.turtle-icon {
  background-image: url("../images/ClipArt/BonusRound/Turtle.png");
}

/* #endregion */

/*#region ========== Game Top Bar ========== */

.ui-topbar { 
  background-image: url("../images/UI/gamescreen/gamescreen_header.png"); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;

  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: 160%;    

  pointer-events: none;
  z-index: 2;  
}

#oeLogo {
  position: absolute;
  width: 70px;
  aspect-ratio: 222 / 82;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);

  background-image: url("../images/UI/gamescreen/gamescreen_ourenglishlogo.png");
  background-size: contain;
  background-repeat: no-repeat;

  z-index: 3;
}

#star-bar {
  position: absolute;
  width: 120px;
  height: 60px;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);

  background-image: url("../images/UI/gamescreen/gamescreen_progressbar_background.png");
  background-size: contain;
  background-repeat: no-repeat;

  z-index: 3;
}

#star-bar::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/UI/gamescreen/gamescreen_progressbar_fill.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center -1px;

  mask: linear-gradient(
    to right,
    black var(--progress, 0%),
    transparent 0%
  );

  -webkit-mask: linear-gradient(
    to right,
    black var(--progress, 0%),
    transparent 0%
  );

  pointer-events: none;
  z-index: 3;
}

.star-slot {
  position: absolute;
  width: 28px;
  height: 28px;

  background-image: url("../images/UI/gamescreen/gamescreen_star_slot.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.star-slot::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/UI/gamescreen/gamescreen_star.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.star-slot.star-earned::after {
  opacity: 1;
}

.star-slot.star-unlock::after {
  animation: starUnlockAnim 0.35s ease-out forwards;
}

#star1-slot {
  left: 48px;
  top: 39px;
  right: auto;
}

#star2-slot {
  left: 86px;
  top: 23px;
  right: auto;
}

#star3-slot {
  left: 102px;
  top: -15px;
  right: auto;
}

.star-earned {
  width: 28px;
  height: 28px;

  background-image: url("../images/UI/gamescreen/gamescreen_star.png");
  background-size: contain;
  background-repeat: no-repeat;

  transform: scale(1);
  z-index: 4;
}

.star-unlock {
  animation: starUnlockAnim 0.35s ease-out forwards;
}

@keyframes starUnlockAnim {
  0% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1.2);
  }
}

#gamePauseBtn {
  position: absolute;
  display: block !important;
  top: 10px;
  right: 30px;
  width: 70%;
  height: 70%;
  background-image: url("../images/UI/gamescreen/gamescreen_pausebutton_normal.png"); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  z-index: 2;
}

#gamePauseBtn:active {
  background-image: url("../images/UI/gamescreen/gamescreen_pausebutton_pressed.png");
}

/*#endregion */

/*#region ========== Target Word UI ========== */

#ui-targetWordShell {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);

  width: 430px;
  aspect-ratio: 375 / 160;

  background-image: url("../images/UI/gamescreen/gamescreen_shell_coral.png");
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center bottom;

  pointer-events: none;
  z-index: 3;
}

/* Text behind */
#targetWordText {
  position: absolute;  
  z-index: 10;          
  color: black; 
  top: 0px;
  left: 50%;               /* start from center */
  transform: translateX(-50%);  /* shift so it’s truly centered */
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* Image on top */
#targetWordImage {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  z-index: 2;
}

#targetWordImage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*#endregion */

/*#region ========== Round Timer ========== */

#ui-timer {
  position: absolute;
  top: 10px;
  left: 28px;
  width: 60px;
  height: 60px;
  z-index: 2;
}

#timerFill,
#timerBackground,
#timerBubble {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
}

#timerBackground {
  width: 60px;
  height: 60px;
  background-image: url("../images/UI/gamescreen/gamescreen_timer_background.png");
  z-index: 2;
}

#timerFill {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 3;

  background: conic-gradient(
    #00ff66 var(--timer-angle, 360deg),
    transparent 0deg
  );

  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 10px),
    black calc(100% - 9px)
  );

  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 10px),
    black calc(100% - 9px)
  );
}

#timerBubble {
  width: 50px;
  height: 50px;
  background-image: url("../images/UI/gamescreen/gamescreen_bubble.png");
  z-index: 4;
}

#timerText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 16px;
  font-weight: bold;
  color: white;

  text-shadow:
    0 0 2px #4fa3ff,
    1px 1px 0 #2a71b4,
    -1px 1px 0 #2a71b4,
    1px -1px 0 #2a71b4,
    -1px -1px 0 #2a71b4,
    0 2px 0 #174a87;

  z-index: 5;
}

/*#endregion */

/*#region ========== Start Screen ========== */

.start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 31;
  background: rgba(0, 0, 0, 0.55);
}

.start-panel {
  position: relative;
  width: 250px;
  height: 430px;

  background-image: url("../images/UI/startscreen/startscreen_window.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-family: "Dongle", sans-serif;

  z-index: 33;
}

.start-light1 {
  position: absolute;
  inset: 0px;
  left: -160px;
  top: -360px;

  background-image: url("../images/UI/startscreen/startscreen_window_light1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 45%;

  pointer-events: none;
  z-index: 32;
}

.start-light2 {
  position: absolute;
  inset: 0px;
  left: -160px;
  top: -360px;

  background-image: url("../images/UI/startscreen/startscreen_window_light2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 45%;

  pointer-events: none;
  z-index: 32;
}

.start-deco {
  position: absolute;
  left: -32px;
  top: -50px;
  width: 280px;
  aspect-ratio: 968 / 609;

  background-image: url("../images/UI/startscreen/startscreen_window_deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 34;
}

#start-deco-text1 {
  position: absolute;
  top: 36px;
  left: 16.5%;
  transform: translateX(-50%);
  width: 220px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #4d56a6;
}

#start-deco-text2 {
  position: absolute;
  top: 65px;
  left: 27%;
  transform: translateX(-50%);
  width: 220px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #4d56a6;
}

.start-title {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  color: #4d56a6;
}

.start-btn {
  all: unset;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 145px;
  height: 50px;

  background-image: url("../images/UI/menubutton_normal.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;
}

.start-btn:active {
  background-image: url("../images/UI/menubutton_pressed.png");
}

.start-btn-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Dongle", sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 0 rgba(30, 120, 40, 0.6);
} 

#startBtn {
  top: 180px;
}

#start-howToPlayBtn {
  top: 235px;
}

#start-exitBtn {
  all: unset;
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;

  background-image: url("../images/UI/exitbutton_normal.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;
}

#start-exitBtn:active {
  background-image: url("../images/UI/exitbutton_pressed.png");
}

/*#endregion */

/*#region ========== Pause Menu ========== */

.pause-screen {
  align-items: center;
  justify-content: center;
  z-index: 31;
}

.pause-panel {
  position: relative;
  width: 280px;
  aspect-ratio: 855 / 1179;

  background-image: url("../images/UI/pausescreen/pausescreen_window.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-family: "Dongle", sans-serif;

  z-index: 33;
}

.pause-light1,
.pause-light2 {
  display: none;
}

.pause-deco {
  position: absolute;
  left: 50%;
  top: -50px;
  transform: translateX(-50%);
  width: 300px;
  aspect-ratio: 866 / 450;

  background-image: url("../images/UI/pausescreen/pausescreen_window_deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 34;
}

.pause-title {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  text-align: center;

  font-family: "Dongle", sans-serif;
  font-size: 50px;
  font-weight: bold;
  color: #4d56a6;
}

.pause-btn {
  all: unset;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 55px;

  background-image: url("../images/UI/menubutton_normal.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;
}

.pause-btn:active {
  background-image: url("../images/UI/menubutton_pressed.png");
}

.pause-btn-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Dongle", sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 0 rgba(30,120,40,0.6);
}

#pause-resumeBtn {
  top: 140px;
}

#pause-howToPlayBtn {
  top: 210px;
}

#quitPauseBtn,
#tryAgainBtn {
  all: unset;
  position: absolute;
  width: 56px;
  height: 56px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;
}

#quitPauseBtn {
  left: 25px;
  bottom: 25px;

  background-image: url("../images/UI/exitbutton_normal.png");
}

#quitPauseBtn:active {
  background-image: url("../images/UI/exitbutton_pressed.png");
}

#tryAgainBtn {
  right: 25px;
  bottom: 25px;

  background-image: url("../images/UI/retrybutton_normal.png");
}

#tryAgainBtn:active {
  background-image: url("../images/UI/retrybutton_pressed.png");
}

/*#endregion */

/*#region ========== Win/Lose Game Menu ========== */

#end-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  z-index: 31;
}

#end-score,
#end-accuracy {
  display: none;
}

#end-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  text-align: center;
  font-family: "Dongle", sans-serif;
  font-size: 40px;
  font-weight: bold;
  color: #4d56a6;
}

#end-stars {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  aspect-ratio: 729 / 688;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#end-btns {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 35px;
  height: 60px;
}

#end-nextBtn,
#end-retryBtn,
#end-exitBtn {
  all: unset;
  position: absolute;
  width: 56px;
  height: 56px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;
}

#end-nextBtn:active {
  background-image: url("../images/UI/nextbutton_pressed.png");
}

/* ---------- Won ---------- */

#end-panel.won {
  aspect-ratio: 853 / 1275;
  background-image: url("../images/UI/endscreen/endscreen_won.png");
}

#end-panel.won::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -145px;
  width: 275px;
  aspect-ratio: 830 / 747;

  background-image: url("../images/UI/endscreen/endscreen_won_deco.png");
  background-size: contain;
  background-repeat: no-repeat;
}

#end-panel.won #end-title {
  top: 90px;
}

#end-panel.stars-1 #end-stars {
  background-image: url("../images/UI/endscreen/endscreen_won_star1.png");
}

#end-panel.stars-2 #end-stars {
  background-image: url("../images/UI/endscreen/endscreen_won_star2.png");
}

#end-panel.stars-3 #end-stars {
  background-image: url("../images/UI/endscreen/endscreen_won_star3.png");
}

#end-panel.won #end-exitBtn {
  left: 23px;
  bottom: -13px;

  background-image: url("../images/UI/exitbutton_normal.png");
}

#end-panel.won #end-retryBtn {
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);

  background-image: url("../images/UI/retrybutton_normal.png");
}

#end-panel.won #end-nextBtn {
  right: 23px;
  bottom: -13px;
  display: block;

  background-image: url("../images/UI/nextbutton_normal.png");
}

/* ---------- Lost ---------- */

#end-panel.lost {
  aspect-ratio: 968 / 1020;
  background-image: url("../images/UI/endscreen/endscreen_lost.png");
}

#end-panel.lost::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;

  background-image: url("../images/UI/endscreen/endscreen_lost_deco.png");
  background-size: contain;
  background-repeat: no-repeat;
}

#end-panel.lost #end-title {
  top: 40px;
}

#end-panel.lost #end-exitBtn {
  left: 28px;
  bottom: -13px;

  background-image: url("../images/UI/exitbutton_normal.png");
}

#end-panel.lost #end-retryBtn {
  right: 28px;
  bottom: -13px;

  background-image: url("../images/UI/retrybutton_normal.png");
}

#end-panel.lost #end-nextBtn {
  display: none;
}

/*#endregion */

/*#region ========== Instructions Menu ========== */

.instructions-screen {
  align-items: center;
  justify-content: center;
  z-index: 31;
}

.instructions-panel {
  position: relative;
  width: 300px;
  aspect-ratio: 1055 / 1999;

  background-image: url("../images/UI/instructions/instructions_window.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  z-index: 32;
}

.instructions-deco {
  position: absolute;
  left: 51%;
  top: -32px;
  transform: translateX(-50%);
  width: 340px;
  aspect-ratio: 1197 / 2063;

  background-image: url("../images/UI/instructions/instructions_window_deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 33;
}

.instructions-title {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  text-align: center;

  font-family: "Dongle", sans-serif;
  font-size: 40px;
  font-weight: bold;
  color: #4d56a6;
}

.instructions-video-frame {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  height: 340px;

  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

#instructionsVideo {
  width: 100%;
  height: 100%;

  object-fit: contain;
  display: block;
  background: transparent;
}

.instructions-back-btn {
  all: unset;
  position: absolute;
  left: 50%;
  bottom: 45px;
  transform: translateX(-50%);
  width: 180px;
  height: 58px;

  background-image: url("../images/UI/menubutton_normal.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  cursor: pointer;
}

.instructions-back-btn:active {
  background-image: url("../images/UI/menubutton_pressed.png");
}

.instructions-back-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Dongle", sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 0 rgba(30,120,40,0.6);
}

/*#endregion */