* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #ead9b6;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ead9b6;
  position: relative;
}

#pixi-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pixi-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* --- OVERLAY UTILITIES (GLASSMORPHISM) --- */
.game-overlay-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-overlay-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffea00;
  transform: scale(1.08);
}

.game-overlay-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* User Profile Widget on top-left */
.user-profile-widget {
  display: none !important;
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 10, 26, 0.85);
  border: 1.5px solid #ffb300;
  border-radius: 24px;
  padding: 4px 16px 4px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.user-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #ffea00;
  object-fit: cover;
  background: #ffffff;
}

.user-profile-info {
  display: flex;
  flex-direction: column;
}

.user-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffea00;
  font-family:
    Be Vietnam Pro,
    sans-serif;
}

.user-profile-status {
  font-size: 9px;
  color: #ffecb3;
  opacity: 0.8;
  font-family:
    Be Vietnam Pro,
    sans-serif;
}

.user-profile-signout {
  font-size: 9px;
  color: #ff3333;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 1px;
  font-family:
    Be Vietnam Pro,
    sans-serif;
}

.user-profile-signout:hover {
  color: #ff6666;
}

/* --- GOOGLE SIGN IN MODAL --- */
.google-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.google-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.google-modal-card {
  background: #ffffff;
  border-radius: 8px;
  width: 360px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  color: #202124;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.google-modal-overlay.active .google-modal-card {
  transform: scale(1);
}

.google-logo-svg {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}

.google-modal-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px 0;
  text-align: center;
  color: #202124;
}

.google-modal-sub {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 28px 0;
  text-align: center;
}

.google-account-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.google-account-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1px solid transparent;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.google-account-item:hover {
  background: #f7f8f9;
}

.google-account-item:active {
  background: #e8eaed;
}

.google-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dadce0;
}

.google-account-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.google-account-name {
  font-size: 14px;
  font-weight: 600;
  color: #3c4043;
}

.google-account-email {
  font-size: 12px;
  color: #70757a;
}

.google-modal-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  margin-top: 12px;
}

.google-modal-close:hover {
  background: rgba(26, 115, 232, 0.04);
}

/* Pseudo Fullscreen fallback for mobile Safari/Chrome */
.pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  background: #000000 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- HTML SPLASH SCREEN --- */
#splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ead9b6;
  /* A lightweight painted fallback remains visible while the WebP is being
     fetched/decoded, so the loader never falls through to a black frame. */
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 248, 226, 0.08) 0%,
      rgba(239, 217, 166, 0.18) 100%
    ),
    url("/assets/backgroud/vietnamese_cultural_landscape_background_1/screen.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(82vw, 360px);
  gap: 12px;
  transform: translateY(-2vh);
}

.splash-mascot-wrap {
  width: clamp(112px, 24vw, 154px);
  height: clamp(112px, 24vw, 154px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 226, 0.72);
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 8px 0 rgba(61, 107, 83, 0.22),
    0 14px 32px rgba(54, 72, 61, 0.2);
  animation: splash-float 1.8s ease-in-out infinite;
}

.splash-mascot {
  width: 122%;
  height: 122%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(27, 54, 93, 0.16));
}

.splash-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 4px;
  font-family: "Baloo 2", "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.8px;
  filter: drop-shadow(0 3px 0 rgba(112, 80, 34, 0.28));
}

.splash-title span {
  color: #43c7a5;
  font-size: clamp(25px, 6vw, 34px);
}

.splash-title strong {
  color: #f1c95b;
  font-size: clamp(38px, 9vw, 52px);
}

.splash-progress-track {
  width: 100%;
  height: 18px;
  padding: 3px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(255, 250, 235, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow:
    0 4px 0 rgba(48, 123, 78, 0.28),
    0 8px 18px rgba(54, 72, 61, 0.16);
}

#splash-progress {
  position: relative;
  width: 0%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(180deg, #72df75 0%, #36b95c 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: width 0.14s ease-out;
}

#splash-progress::after {
  content: "";
  position: absolute;
  inset: 1px 8px auto 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

@keyframes splash-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.splash-text {
  color: #355b50;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-height: 620px) {
  .splash-content {
    gap: 8px;
  }

  .splash-mascot-wrap {
    width: 98px;
    height: 98px;
  }
}

/* --- GAME POPUP OVERLAYS --- */
.game-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 28, 44, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-sizing: border-box;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  overflow: hidden;
}
.game-popup-card {
  background: rgba(232, 235, 239, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 14px 42px rgba(16, 36, 61, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  border-radius: 24px;
  padding: 40px 24px 24px 24px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  position: relative;
  transform: scale(0.85);
  transition:
    transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.25s ease;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  box-sizing: border-box;
  opacity: 0;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.game-popup-card::-webkit-scrollbar {
  display: none;
}
.game-popup-card.wide {
  max-width: 440px;
}
.game-popup-title {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #1b365d;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.game-popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8278, #ea3f42);
  box-shadow:
    0 3px 0 #b9232b,
    0 6px 10px rgba(36, 24, 42, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
  z-index: 100100;
  opacity: 1;
  color: #fff;
  font-size: 0;
  -webkit-tap-highlight-color: transparent;
}
.game-popup-close-btn::before,
.game-popup-close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.game-popup-close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.game-popup-close-btn:hover {
  transform: scale(1.1);
}
.game-popup-close-btn:active {
  transform: translateY(3px) scale(0.96);
  box-shadow:
    0 1px 0 #b9232b,
    0 3px 6px rgba(36, 24, 42, 0.18);
}
.game-settings-row-container {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.game-settings-row {
  background: #ffffff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  height: 62px;
}
.game-settings-label {
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #1b365d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-settings-toggle-btn {
  width: 68px;
  height: 42px;
  border: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.game-settings-toggle-btn:hover {
  transform: scale(1.06);
}
.game-settings-toggle-btn:active {
  transform: scale(0.95);
}
.game-settings-reset-btn {
  background: linear-gradient(180deg, #7eea94 0%, #25b957 100%);
  border: 3px solid #ffffff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    0 4px 0 #14873b,
    0 7px 12px rgba(36, 24, 42, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 20px;
  transition:
    transform 0.1s ease,
    filter 0.1s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.game-settings-reset-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.game-settings-reset-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.game-settings-reset-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2e663e;
}

/* Paused / Game Over buttons */
.game-paused-action-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.game-paused-btn {
  --button-top: #55add5;
  --button-bottom: #3f99c3;
  --button-base: #286d92;
  position: relative;
  width: 58px;
  height: 58px;
  padding: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--button-top), var(--button-bottom));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 3px 0 var(--button-base),
    0 6px 10px rgba(36, 24, 42, 0.16);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    box-shadow 0.12s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.game-settings-language-row {
  width: 100%;
  height: 70px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #fbfaf5;
}
.game-settings-language-row .game-settings-label {
  color: #47363b;
  font-size: 18px;
  letter-spacing: 0.8px;
}
.game-settings-language-select {
  width: 132px;
  height: 44px;
  flex: 0 0 132px;
  padding: 0 32px 0 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #72d58f;
  border-radius: 22px;
  color: #1b365d;
  background-color: #fbfaf5;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%2325a653' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fffef9 0%, #edf7ef 100%);
  background-repeat: no-repeat;
  background-position:
    right 12px center,
    center;
  background-size:
    14px 9px,
    100% 100%;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-shadow: none;
  cursor: pointer;
  outline: none;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 3px 0 #2b9b50,
    0 6px 10px rgba(36, 24, 42, 0.14);
  transition:
    filter 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.game-settings-language-select option {
  color: #1b365d;
  background: #fbfaf5;
  font-weight: 700;
  text-shadow: none;
}
@media (hover: hover) {
  .game-settings-language-select:hover {
    filter: brightness(1.04);
  }
}
.game-settings-language-select:active {
  transform: none;
  filter: brightness(0.98);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 3px 0 #2b9b50,
    0 6px 10px rgba(36, 24, 42, 0.14);
}
.game-settings-language-select:focus-visible {
  border-color: #25a653;
  box-shadow:
    0 0 0 3px rgba(37, 166, 83, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 3px 0 #2b9b50;
}
@media (max-width: 420px) {
  .game-popup-card {
    width: 100%;
    max-width: 360px;
    padding: 36px 16px 18px;
    border-radius: 20px;
  }
  .game-popup-card.wide {
    max-width: 380px;
  }
  .game-popup-title {
    top: 12px;
    max-width: calc(100% - 88px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 19px;
  }
  .game-settings-row-container {
    margin-top: 14px;
    gap: 9px;
  }
  .game-settings-row,
  .game-settings-language-row {
    min-height: 54px;
    height: 54px;
    padding-inline: 14px;
  }
  .game-settings-label {
    font-size: 14px;
  }
  .game-settings-language-row .game-settings-label {
    font-size: 14px;
  }
  .game-paused-action-container {
    gap: 14px;
    margin-top: 18px;
  }
  .game-settings-language-select {
    width: 132px;
    height: 42px;
    flex-basis: 132px;
    font-size: 13px;
  }
}

@media (max-height: 700px) {
  .game-popup-card {
    padding-top: 34px;
    padding-bottom: 16px;
  }
  .game-settings-row-container {
    margin-top: 10px;
    gap: 8px;
  }
  .game-paused-action-container {
    margin-top: 14px;
  }
}
.game-paused-btn::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 15%;
  width: 70%;
  height: 11%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.game-paused-btn svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 2px 1px rgba(36, 24, 42, 0.18));
}
.game-paused-btn--replay {
  --button-top: #e1a45a;
  --button-bottom: #ce8842;
  --button-base: #945c2e;
}
.game-paused-btn--continue {
  --button-top: #56bd72;
  --button-bottom: #43aa61;
  --button-base: #2d7d46;
}
.game-paused-btn:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.05) saturate(1.05);
}
.game-paused-btn:active {
  transform: translateY(4px) scale(0.98);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 1px 0 var(--button-base),
    0 4px 8px rgba(36, 24, 42, 0.2);
}

/* Leaderboard popup styles */
.game-leaderboard-user-text {
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #1b365d;
  margin: 15px 0 10px 0;
  text-align: center;
}
.game-leaderboard-table-container {
  max-height: min(350px, 50vh);
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}
.game-leaderboard-table-container::-webkit-scrollbar {
  width: 6px;
}
.game-leaderboard-table-container::-webkit-scrollbar-track {
  background: #f1ebd8;
  border-radius: 4px;
}
.game-leaderboard-table-container::-webkit-scrollbar-thumb {
  background: #c5beaa;
  border-radius: 4px;
}
.game-leaderboard-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-family:
    Be Vietnam Pro,
    sans-serif;
}
.game-leaderboard-table th {
  position: sticky;
  top: 0;
  background: #fffae6;
  z-index: 10;
  font-size: 12px;
  font-weight: 800;
  color: #3d247a;
  padding: 8px 4px;
  border-bottom: 2px solid #e1d5ff;
}
.game-leaderboard-table td {
  font-size: 14px;
  font-weight: 800;
  color: #1b365d;
  padding: 10px 6px;
  text-align: center;
}
.game-leaderboard-table tr.highlighted td {
  color: #7e57ff;
  font-weight: 900;
}
.game-leaderboard-table tr.rank-0 td {
  color: #8a6d20;
  font-weight: 900;
}
.game-leaderboard-table tr.rank-1 td {
  color: #5a5a5a;
  font-weight: 900;
}
.game-leaderboard-table tr.rank-2 td {
  color: #8c5a3c;
  font-weight: 900;
}
.game-leaderboard-table tbody tr {
  border-bottom: none;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  margin-bottom: 6px;
  display: table-row;
}
.game-leaderboard-table tbody tr:last-child {
  border-bottom: none;
}
.game-leaderboard-footer {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  box-sizing: border-box;
  font-family:
    Be Vietnam Pro,
    sans-serif;
}
.game-leaderboard-footer-item {
  font-size: 13px;
  font-weight: 900;
  color: #1b365d;
  width: 33%;
  text-align: center;
}
.game-leaderboard-footer-item:first-child {
  text-align: left;
}
.game-leaderboard-footer-item:last-child {
  text-align: right;
}

/* --- GAME OVER SPECIAL STYLES --- */
.game-over-starburst {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 221, 87, 0.15) 0%,
    rgba(255, 221, 87, 0) 70%
  );
  animation: game-over-spin 20s linear infinite;
  pointer-events: none;
  z-index: 99990;
}
@keyframes game-over-spin {
  to {
    transform: rotate(360deg);
  }
}
.game-over-stats {
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #5c0612;
  margin: 16px 0;
}
.game-over-record-banner {
  background: #e91e63;
  border: 2px solid #ffea00;
  border-radius: 8px;
  color: #ffffff;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 16px;
  font-weight: 800;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  animation: game-over-pulse 1s infinite alternate;
}
@keyframes game-over-pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
.game-over-normal-text {
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 14px;
  color: #7c73a1;
  font-weight: 700;
  margin-bottom: 20px;
}
.game-over-button {
  width: 60px;
  height: 60px;
  border: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.game-over-button:hover {
  transform: scale(1.1);
}
.game-over-button:active {
  transform: scale(0.9);
}
.game-over-button.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.game-paused-btn-wide {
  width: 100%;
  height: 56px;
  border-radius: 28px;
  border: 2px solid #fff;
  font-family:
    Be Vietnam Pro,
    sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.game-paused-btn-wide:active {
  transform: scale(0.95);
}
.btn-resume {
  background: linear-gradient(to bottom, #7eea94, #25b957);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    0 4px 0 #14873b;
}
.btn-restart {
  background: linear-gradient(to bottom, #72d8ff, #159fe8);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    0 4px 0 #0879bd;
}
.btn-quit {
  background: linear-gradient(to bottom, #ff8278, #ea3f42);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    0 4px 0 #b9232b;
}
