* { box-sizing: border-box; margin: 0; padding: 0; }

#bootScreen {
  width: 1530px;
  height: 960px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  background: linear-gradient(to bottom, #0058c4 0%, #1e8aff 40%, #7dc8ff 75%, #cce9ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: sans-serif;
}

#bootScreen.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.05);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.boot-logo {
  width: 300px;
  height: 100px;
  margin-bottom: 60px;
  background: url('/static/typingland/images/logo-7683c6236c85403af6431b77fac3c3f2.png') no-repeat center;
  background-size: contain;
}

.boot-progress-container {
  width: 400px;
  height: 24px;
  background: rgba(255,255,255,0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A, #CDDC39);
  border-radius: 12px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(76,175,80,0.5);
}

.boot-status {
  margin-top: 20px;
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
}

body {
  background: #000;
  overflow: hidden;
  user-select: none;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Varela Round', sans-serif;
}

#app {
  width: 1530px;
  height: 960px;
  position: relative;
  transform-origin: center center;
  background: linear-gradient(to bottom, #0058c4 0%, #1e8aff 40%, #7dc8ff 75%, #cce9ff 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.stars {
  position: absolute; inset: 0; pointer-events: none;
  background: transparent;
}

#app::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -350px;
  transform: translateX(-50%) translateY(var(--island-y, 0px));
  width: 110%;
  height: 780px;
  background: url('/static/typingland/images/island-009ff46bd689e3299bf4ba9aaafb39cf.png') no-repeat center bottom;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
}

body.game-running #app::after {
  opacity: 1;
}

@keyframes islandExit {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  40% { transform: translateX(-50%) translateY(-100px); opacity: 1; }
  100% { transform: translateX(-50%) translateY(700px); opacity: 0; }
}

#app.island-exit::after {
  animation: islandExit 1s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}

@keyframes islandRise {
  0% { transform: translateX(-50%) translateY(700px); }
  100% { transform: translateX(-50%) translateY(0); }
}

#app.island-rise::after {
  animation: islandRise 0.85s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}

#app.island-rise::after {
  opacity: 1;
}

#menuScreen {
  display: none; flex-direction: column; align-items: center;
  gap: 18px; z-index: 10; width: 100%; max-width: 680px; padding: 20px;
}

#menuScreen.menu-visible {
  display: flex;
}

@keyframes titleBounceIn {
  0% { transform: translateY(-100px) scale(0.3); opacity: 0; }
  50% { transform: translateY(20px) scale(1.1); opacity: 1; }
  70% { transform: translateY(-10px) scale(0.95); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes panelSlideIn {
  0% { transform: translateX(-100px) scale(0.8); opacity: 0; }
  60% { transform: translateX(10px) scale(1.02); opacity: 1; }
  100% { transform: translateX(0) scale(1); }
}

@keyframes buttonPopIn {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  70% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes playButtonBounce {
  0% { transform: translateY(100px) scale(0.5); opacity: 0; }
  60% { transform: translateY(-15px) scale(1.05); opacity: 1; }
  80% { transform: translateY(5px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes logoSlideIn {
  0% { transform: translateX(-100px); opacity: 0; }
  70% { transform: translateX(10px); opacity: 1; }
  100% { transform: translateX(0); }
}

@keyframes settingsSpinIn {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

#menuScreen.menu-enter .game-logo {
  animation: titleBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#menuScreen.menu-enter .diff-selection-panel {
  animation: panelSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

#menuScreen.menu-enter .row-selection-panel {
  animation: panelSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

#menuScreen.menu-enter .diff-btn {
  animation: buttonPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#menuScreen.menu-enter .diff-btn.easy { animation-delay: 0.5s; }
#menuScreen.menu-enter .diff-btn.medium { animation-delay: 0.6s; }
#menuScreen.menu-enter .diff-btn.hard { animation-delay: 0.7s; }

#menuScreen.menu-enter .row-btn {
  animation: buttonPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#menuScreen.menu-enter .row-btn.top { animation-delay: 0.8s; }
#menuScreen.menu-enter .row-btn.home { animation-delay: 0.9s; }
#menuScreen.menu-enter .row-btn.bottom { animation-delay: 1.0s; }

#menuScreen.menu-enter .play-btn {
  animation: playButtonBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
}

#app.menu-enter .brand-logo {
  animation: logoSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

#app.menu-enter .settings-btn {
  animation: settingsSpinIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both;
}

.brand-logo {
  display: none;
  background: url('/static/imgs/logo-2757042c1e3f8ea3e3e00ddd0ea8bae0.png') no-repeat center;
  background-size: contain;
  border: none;
  padding: 0;
  pointer-events: none;
  transition: transform 0.15s;
  position: absolute;
  top: 20px;
  left: 40px;
  z-index: 100;
  width: 180px;
  height: 60px;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#menuScreen.menu-visible ~ .brand-logo {
  display: block;
}

.settings-btn {
  display: none;
  background: url('/static/typingland/images/settings-button-5f513cd4e2fd0911558a44486c9bb138.png') no-repeat center;
  background-size: contain;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s;
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 100;
  outline: none;
  width: 70px;
  height: 70px;
}

#menuScreen.menu-visible ~ .settings-btn {
  display: block;
}

.settings-btn:hover { transform: scale(1.1); }
.settings-btn:active { transform: scale(0.95); }

.game-logo {
  width: 450px;
  height: 150px;
  display: block;
  margin: 0 auto 20px auto;
  background: url('/static/typingland/images/logo-7683c6236c85403af6431b77fac3c3f2.png') no-repeat center;
  background-size: contain;
}

.selection-panel {
  width: 100%;
  max-width: 500px;
  height: 80px;
  background: url('/static/typingland/images/selecpanel-c06f45340b4f16a5da7ebc3dda5287ac.png') no-repeat center;
  background-size: contain;
}

.diff-selection-panel {
  position: relative;
}

.diff-selection-panel::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  height: 70%;
  background: url('/static/typingland/images/slecdiff-a4b0f8ad8a51d3d33a4e9b533e312078.png') no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.row-selection-panel {
  position: relative;
}

.row-selection-panel::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 57%;
  height: 70%;
  background: url('/static/typingland/images/selekeyrows-8a40bfe681abbf4c2e7b416519f71280.png') no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  align-self: flex-start; width: 100%;
}

.diff-row {
  display: flex; gap: 10px; width: 100%;
}

.diff-btn, .row-btn {
  flex: 1;
  padding: 0;
  border: none;
  background: transparent no-repeat center;
  background-size: contain;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 120px;
  will-change: transform, filter;
  backface-visibility: hidden;
}
.diff-btn.selected, .row-btn.selected {
  transform: scale(1.2);
  filter: brightness(1.25);
  z-index: 10;
  position: relative;
}

.diff-btn:hover, .row-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}
.diff-btn:active, .row-btn:active { transform: scale(0.95); filter: brightness(0.95); }

.diff-btn.selected:hover, .row-btn.selected:hover {
  transform: scale(1.18);
  filter: brightness(1.35);
  animation: none;
}

.diff-btn.easy   { background-image: url('/static/typingland/images/easy-4731d8d24fef9a5ed38cc5a19cde9c5e.png'); }
.diff-btn.medium { background-image: url('/static/typingland/images/medium-781db84e2e2bb9c6d546fe348a562527.png'); }
.diff-btn.hard   { background-image: url('/static/typingland/images/hard-e86d3d034fefbb5c81a5d9b1be2f4495.png'); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.validation-tooltip {
  position: fixed;
  left: 40px;
  bottom: 30px;
  transform: scale(0.9) translateY(10px);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  padding: 18px 32px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}

.validation-tooltip.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.row-row { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.row-btn { min-width: 135px; }
.row-btn.top    { background-image: url('/static/typingland/images/toprow-8a00646e5ce1884b6600b63b38d3bd0d.png'); }
.row-btn.home   { background-image: url('/static/typingland/images/homerow-2e416bba3220d49ff7c80e504081cbaf.png'); }
.row-btn.bottom { background-image: url('/static/typingland/images/bottomrow-3b1db311a5b470893987ca056eec24a9.png'); }

.play-btn {
  width: 50%;
  padding: 0;
  border-radius: 14px;
  border: none;
  background: url('/static/typingland/images/playbutton-876af42b8c95714cd33a2696395e8284.png') no-repeat center;
  background-size: contain;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 120px;
  margin-top: 20px;
  will-change: transform, filter;
  backface-visibility: hidden;
}
.play-btn:hover { transform: translateY(-2px) scale(1.08); filter: brightness(1.1); }
.play-btn:active { transform: scale(0.97); filter: brightness(0.95); }

#app.anim-island::after {
  transition: transform 0.85s cubic-bezier(0.55, 0, 0.1, 1);
}

#app.menu-exit .game-logo {
  transform: translateY(-200px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.5s ease;
}

#app.menu-exit .selection-panel {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
  transition-delay: 0.05s;
}

#app.menu-exit .diff-btn {
  transform: scale(0) rotate(15deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.4s ease;
}

#app.menu-exit .diff-btn.easy { transition-delay: 0.15s; }
#app.menu-exit .diff-btn.medium { transition-delay: 0.1s; }
#app.menu-exit .diff-btn.hard { transition-delay: 0.05s; }

#app.menu-exit .row-btn {
  transform: scale(0) rotate(-15deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.4s ease;
}

#app.menu-exit .row-btn.top { transition-delay: 0.2s; }
#app.menu-exit .row-btn.home { transition-delay: 0.15s; }
#app.menu-exit .row-btn.bottom { transition-delay: 0.1s; }

#app.menu-exit .play-btn {
  transform: scale(0) rotate(-20deg);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.45s ease;
  transition-delay: 0.08s;
}

#app.menu-exit .brand-logo {
  transform: translateX(-150px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
  transition-delay: 0.05s;
}

#app.menu-exit .settings-btn {
  transform: translate(150px, -150px) rotate(90deg);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
  transition-delay: 0.05s;
}

#app.menu-exit::after {
  transform: translateX(-50%) translateY(var(--island-y, 0px)) translateY(700px);
}

#app.menu-exit #gameScreen .hud-left {
  opacity: 0;
  transform: translateY(-20px);
}

#app:not(.menu-exit) #gameScreen .hud-left {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}


#gameScreen { display: none; width: 100%; height: 100%; position: relative; flex-direction: column; }
#cloudCanvas { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none; }
#gameCanvas { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 6; }

#hud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; z-index: 20; pointer-events: none;
  background: transparent;
}

.pause-btn {
  background: url('/static/typingland/images/pause-button-1f5fbb7f9d6df17a4f2b06c59725724d.png') no-repeat center;
  background-size: contain;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s;
  position: absolute;
  top: 40px;
  right: 40px;
  outline: none;
  width: 70px;
  height: 70px;
}
.pause-btn:hover { transform: scale(1.1); }
.pause-btn:active { transform: scale(0.95); }

.hud-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hud-score {
  font-size: 50px;
  font-weight: bold;
  color: #053b0e;
  background: url('/static/typingland/images/card-1d0fd453e37b6aa5f699fdc6a526bdbd.png') no-repeat center;
  background-size: contain;
  padding: 25px 50px;
  min-width: 220px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: 30px;
}
.hud-lives { display: flex; gap: 6px; align-items: center; }
.heart { 
  background: url('/static/typingland/images/lifes-f56c8f82ffd0ee6e5d6c8c58ba86f3e4.png') no-repeat center;
  background-size: contain;
  display: inline-block;
  width: 55px;
  height: 55px;
  margin-top: 5px;
  margin-left: 10px;
}
.heart.lost { opacity: 0.2; }
.hud-level {
  font-size: 12px; font-weight: 700; color: #fff;
  letter-spacing: 1px; text-transform: uppercase;
}

#gameOverScreen {
  display: none; flex-direction: column; align-items: center;
  gap: 16px; z-index: 10; width: 100%; max-width: 600px; padding: 4px;
  position: relative;
}

#gameOverScreen::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#gameOverScreen.game-over-enter::before {
  opacity: 1;
}

.go-panel-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 100%;
  height: auto;
  max-width: 500px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

#gameOverScreen.game-over-enter .go-panel-bg {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition-delay: 0.5s;
}

.go-title {
  font-size: 38px;
  font-weight: bold;
  color: #f3722c;
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gameOverScreen.game-over-enter .go-title {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 1.0s;
}
.go-score-box {
  padding: 0px 40px; text-align: center;
  margin-top: -40px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gameOverScreen.game-over-enter .go-score-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 1.5s;
}

.go-score-label { font-size: 20px; letter-spacing: 2px; text-transform: uppercase; color: #8B4513; font-weight: bold; }
.go-score-num {
  font-size: 80px;
  font-weight: bold;
  color: #8B4513;
  line-height: 1.1;
}
.go-settings {
  padding: 14px 20px; width: auto;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gameOverScreen.game-over-enter .go-settings {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.0s;
}

.go-settings-title { font-size: 17px; letter-spacing: 2px; text-transform: uppercase; color: #8B4513; margin-bottom: 20px; text-align: center; font-weight: bold;}
.go-setting-row { display: flex; justify-content: flex-start; padding: 4px ; font-size: 22px; align-items: center; gap: 20px; }
.go-setting-key { color: rgba(37, 36, 36, 0.9); font-size: 18px; width: 150px; font-weight: bold; }
.go-setting-val { font-weight: 700; color: rgba(255,255,255); padding: 4px 12px; border-radius: 8px; background: #87CEEB; }
.go-setting-val.easy { background: #4CAF50; }
.go-setting-val.medium { background: #FF9800; }
.go-setting-val.hard { background: #9C27B0; }

.go-buttons-row {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -130px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gameOverScreen.game-over-enter .go-buttons-row {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  transition-delay: 2.5s;
}

#gameOverScreen.game-over-exit {
  pointer-events: none;
}

#gameOverScreen.game-over-exit::before {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#gameOverScreen.game-over-exit .go-panel-bg {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
}

#gameOverScreen.game-over-exit .go-title {
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#gameOverScreen.game-over-exit .go-score-box {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#gameOverScreen.game-over-exit .go-settings {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#gameOverScreen.game-over-exit .go-buttons-row {
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-btn-go, .play-again-btn-go {
  background: no-repeat center;
  background-size: contain;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s;
  outline: none;
  width: 120px;
  height: 120px;
}
.menu-btn-go:hover, .play-again-btn-go:hover { transform: scale(1.1); }
.menu-btn-go:active, .play-again-btn-go:active { transform: scale(0.95); }
.menu-btn-go { background-image: url('/static/typingland/images/home-0c76ec9dc421362299f84794d3048e49.png'); }
.play-again-btn-go { background-image: url('/static/typingland/images/playagainbutton-d077b8aaccd64920a2b10bf5a984f90e.png'); }

.screen-overlay {
  position: fixed;
  inset: 0;
  background: url('/static/typingland/images/settings-pause-panel-af18dd9431d340a8b93237effc1965dd.png') no-repeat center;
  background-size: 37%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  transition: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.screen-overlay.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.overlay-text {
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14%;
  height: 15%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.paused-text {
  background-image: url('/static/typingland/images/pausedtxt-21beb4c9138a4a133716d2c3509ab16a.png');
}

.settings-text {
  background-image: url('/static/typingland/images/settingstxt-6502be3cfaeb28fac8159719060facc7.png');
}

.overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay-bg.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-back-btn, .overlay-resume-btn, .overlay-home-btn {
  background: no-repeat center;
  background-size: contain;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s;
  position: absolute;
  bottom: 265px;
  outline: none;
  width: 120px;
  height: 120px;
}
.overlay-back-btn { background-image: url('/static/typingland/images/back-1976631fe159af3b26d509c6f2a959cc.png'); left: 50%; transform: translateX(-50%); }
.overlay-resume-btn { background-image: url('/static/typingland/images/resume-5c1fe3112bc239b2db8451c9a619df61.png'); left: calc(50% - 140px); }
.overlay-home-btn { background-image: url('/static/typingland/images/home-0c76ec9dc421362299f84794d3048e49.png'); left: calc(50% + 20px); }

.overlay-back-btn:hover { transform: translateX(-50%) scale(1.1); }
.overlay-back-btn:active { transform: translateX(-50%) scale(0.95); }
.overlay-resume-btn:hover, .overlay-home-btn:hover { transform: scale(1.1); }
.overlay-resume-btn:active, .overlay-home-btn:active { transform: scale(0.95); }

#pauseScreen .overlay-back-btn { display: none; }
#settingsScreen .overlay-resume-btn,
#settingsScreen .overlay-home-btn { display: none; }

.overlay-sliders {
  display: flex;
  flex-direction: column;
  gap: 90px;
  width: 100%;
  max-width: 270px;
  margin-bottom: 20px;
  margin-left: 85px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.slider-group label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 17px;
  border-radius: 10px;
  background: #ebcf9b;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ed928 0%, #72ba0d 50%, #5a940a 100%);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ed928 0%, #72ba0d 50%, #5a940a 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}
