/* ═══════════════════════════════════════════════
   BLOCK BLAST – FOREST MENU SCREEN
   ═══════════════════════════════════════════════ */

/* ---------- Variables ---------- */
:root {
  --forest-bg: #1A3A1A;
  --forest-mid: #2D5A27;
  --forest-light: #4A8B3C;
  --wood-brown: #8B6914;
  --wood-light: #D4A843;
  --wood-panel: #C4A265;
  --leaf-green: #6BBF59;
  --leaf-gold: #F0C040;
  --leaf-orange: #E8A838;
  --cream: #F5F0E0;
  --dark-brown: #2C1810;
  --error-red: #E05050;
  --glow-green: #90EE90;
}

/* ---------- Menu Screen Container ---------- */
.menuScreen {
  height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--cream);
  -webkit-user-select: none;
  user-select: none;
}

/* Background Image */
.menuScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-title.jpg") center / cover no-repeat;
  z-index: 0;
}

/* Dark Overlay */
.menuScreen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.40), transparent 40%, rgba(0, 0, 0, 0.60));
  z-index: 1;
}

/* ---------- Falling Leaves ---------- */
.snowLayer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.snowFlake {
  position: absolute;
  top: -30px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: leafFall var(--dur, 10s) linear var(--delay, 0s) infinite;
  will-change: transform;
  pointer-events: none;
  line-height: 0;
}

/* Leaves always visible */

@keyframes leafFall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translate3d(var(--drift, 0px), 110vh, 0) rotate(720deg);
    opacity: 0;
  }
}

/* ---------- Top Row ---------- */
.menuTopRow {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 6px;
}

.menuTopLeft {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.menuTopRight {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ---------- Level Progress Bar ---------- */
.menuLevelBarWrap {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 440px;
  display: flex;
  align-items: center;
  z-index: 10;
}

.menuLevelBarOuter {
  flex: 1;
  background: #FDF4E3;
  border: 1px solid #3B2A6B;
  border-radius: 20px;
  padding: 2px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.menuLevelBarInner {
  background: #3f5e8b;
  border: 1px solid #D2A878;
  border-radius: 30px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menuLevelBarText {
  color: #FFF3E0;
  font-weight: 900;
  font-size: 25px;
  text-shadow: 1px 1px 0px #1A202C, -1px -1px 0px #1A202C, 1px -1px 0px #1A202C, -1px 1px 0px #1A202C, 0px 3px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

.menuLevelLock {
  position: absolute;
  right: -12px;
  width: 52px;
  height: 64px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  z-index: 2;
}

/* ---------- Header Icon Buttons ---------- */
.menuHeaderBtn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  flex-shrink: 0;
}

.menuHeaderBtn:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(240, 192, 64, 0.4);
}

.menuHeaderBtn:active {
  transform: scale(0.92);
}

.menuHeaderIcon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Notification Button ---------- */
.menuNotifBtn {
  position: relative;
}

.menuNotifDot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E05050;
  border: 1.5px solid rgba(0, 0, 0, 0.5);
  display: none;
}

.menuNotifDot.active {
  display: block;
}

/* ---------- Currency Badges ---------- */
.menuCurrencyRow {
  display: flex;
  align-items: center;
  gap: 16px;
  /* more gap so badges don't collide due to overlapping icons */
}

.menuBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #FFF3E0;
  /* Cream background */
  border: 3px solid #A87A51;
  /* Brown border */
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.15);
  /* 3D effect */
  border-radius: 20px;
  padding: 4px 8px 4px 32px;
  /* Extra left padding for overlapping icon */
  height: 40px;
  position: relative;
  /* Context for absolute icon */
}

.menuBadge .menuBadgeIcon {
  position: absolute;
  left: -18px;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.menuBadgeValue {
  font-weight: 900;
  font-size: 22px;
  color: #3B2A6B;
  /* Dark blue text */
  line-height: 1;
  white-space: nowrap;
  min-width: 28px;
  text-align: center;
}

@media (max-width: 480px) {
  .menuCurrencyRow {
    gap: 16px;
  }

  .menuBadge {
    padding: 2px 6px 2px 24px;
    height: 36px;
  }

  .menuBadge .menuBadgeIcon {
    width: 46px;
    height: 46px;
    left: -16px;
  }

  .menuBadgeValue {
    font-size: 18px;
    min-width: 24px;
  }

  .menuBadgePlusBtn {
    width: 24px;
    height: 24px;
  }

  .menuBadgePlusBtn svg {
    width: 24px;
    height: 24px;
  }
}

.menuCoinBadge {
  color: #F0C040;
}

.menuHeartBadge {
  color: #E05050;
}

.menuStarBadge {
  color: #FFD700;
}

/* Badge wrapper (icon floats outside) */
.menuBadgeWrap {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 10px;
  /* Push to the right so the overlapping icon doesn't hit the screen edge */
}

/* "+" plus button inside each badge */
.menuBadgePlusBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.menuBadgePlusBtn svg {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.menuBadgePlusBtn:hover {
  transform: scale(1.18);
  filter: brightness(1.1);
}

.menuBadgePlusBtn:active {
  transform: scale(0.92);
}


/* ---------- Remove Ads Banner ---------- */
.menuRemoveAds {
  position: absolute;
  top: 58px;
  left: 12px;
  z-index: 10;
}

.menuRemoveAdsBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(240, 192, 64, 0.25);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  color: var(--leaf-gold);
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  transition: all 160ms ease;
}

.menuRemoveAdsBtn:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(240, 192, 64, 0.5);
  transform: scale(1.03);
}

.menuRemoveAdsBtn:active {
  transform: scale(0.95);
}

.menuRemoveAdsIcon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.menuRemoveAdsArrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  margin-left: auto;
}

/* ---------- Under Top Row (Ranked) ---------- */
.menuUnderTopRow {
  display: none;
}

/* ---------- Logo ---------- */
.menuLogo {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 10;
  text-align: center;
  animation: floatLogo 3s ease-in-out infinite;
  pointer-events: none;
}

.menuLogoBlocks {
  display: none;
}

.menuLogoTitle {
  font-size: clamp(56px, 15vw, 88px);
  font-weight: 900;
  color: var(--cream);
  line-height: 0.9;
  text-shadow:
    0 0 40px rgba(107, 191, 89, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(144, 238, 144, 0.3);
  letter-spacing: -1px;
}

.menuLogoSubtitle {
  font-size: clamp(44px, 12vw, 68px);
  font-weight: 900;
  color: var(--leaf-green);
  line-height: 0.9;
  margin-top: -4px;
  text-shadow:
    0 0 30px rgba(107, 191, 89, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

.menuLogoTag {
  font-size: 18px;
  font-weight: 700;
  color: var(--wood-light);
  letter-spacing: 6px;
  margin-top: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* ---------- Buttons ---------- */
.menuButtons {
  position: absolute;
  bottom: 260px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 0 24px;
}

/* Play button */
.menuBtn.classic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(280px, 100%);
  height: 70px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(to bottom, var(--leaf-green), var(--forest-light));
  border: 2px solid var(--forest-mid);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(107, 191, 89, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  animation: pulseGlow 2s ease-in-out infinite;
}

.menuBtn.classic:hover {
  transform: scale(1.05);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(107, 191, 89, 0.4);
}

.menuBtn.classic:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.menuBtn.withIcon {
  position: relative;
  overflow: hidden;
}

.menuBtnLabel {
  font-size: 30px;
  letter-spacing: 2px;
}

.menuClassicIconWrap {
  display: none;
}

/* Modern unified nav buttons row */
.menuNavBtns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
  max-width: 380px;
}

.menuNavBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  min-width: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 180ms ease;
  color: rgba(245, 240, 224, 0.75);
}

.menuNavBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 192, 64, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #F5F0E0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(240, 192, 64, 0.08);
}

.menuNavBtn:active {
  transform: scale(0.92);
}

.menuNavIcon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menuNavLabel {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

/* ---------- Forest Spirit ---------- */
.menuSpirit {
  position: absolute;
  bottom: 80px;
  left: 16px;
  width: 100px;
  height: 140px;
  z-index: 5;
  animation: float 3s ease-in-out infinite;
  opacity: 0.9;
  pointer-events: none;
}

.menuSpirit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* ---------- Version ---------- */
.menuVersion {
  position: absolute;
  bottom: 84px;
  right: 16px;
  font-size: 11px;
  color: rgba(245, 240, 224, 0.4);
  z-index: 10;
}

/* ---------- Bottom Navigation ---------- */
.menuBottomNav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: linear-gradient(180deg, #4F3AA6 0%, #2D1A8A 100%);
  border-top: 4px solid #FFCE2E;
  display: flex;
  align-items: stretch;
  z-index: 20;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.menuBottomNav--fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
}

.navBtn .navBtnInactiveWrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navBtn .navBtnActiveWrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  position: relative;
}

.navBtn.navActive .navBtnInactiveWrap {
  display: none;
}

.navBtn.navActive .navBtnActiveWrap {
  display: flex;
}

.navBtnLabel {
  display: none;
}

.navActiveLabel {
  display: none !important;
}

.navBtn:not(.navActive) > .navActiveArch,
.navBtn:not(.navActive) > .navActiveBubble,
.navBtn:not(.navActive) .navBtnActiveWrap {
  display: none !important;
}

.navBtn:not(.navActive) .navBtnInactiveWrap {
  display: flex;
}

.navBtn.navActive > .navActiveArch,
.navBtn.navActive > .navActiveBubble {
  display: block;
}

.navBtn.navActive > .navActiveBubble {
  display: flex;
}

.navBtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  border-right: 2px solid rgba(35, 18, 104, 0.8);
  cursor: pointer;
  position: relative;
  transition: filter 0.15s, transform 0.15s;
  padding: 8px 4px;
  overflow: hidden;
  min-width: 0;
}

.navBtn:last-child {
  border-right: none;
}

.navBtn:active {
  transform: scale(0.93);
}

/* Icon inner frame for non-active buttons */
.navBtnInner {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.navBtn:hover .navBtnInner {
  transform: translateY(-3px) scale(1.08);
}

.navBtn:active .navBtnInner {
  transform: scale(0.92);
}

/* Active (center elevated) button */
.navBtn.navActive {
  flex: 1.35;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 6px;
  border-left: none;
  overflow: visible;
  background: none;
  position: relative;
  z-index: 1;
}

.navBtn:not(.navActive) {
  z-index: 2;
}

/* Golden arch behind the bubble — clipped to active slot (see bottom-nav.css) */
.navActiveArch {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 76px;
  transform: none;
  background: linear-gradient(180deg, #4F3AA6 0%, #2D1A8A 100%);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  border: 4px solid #FFCE2E;
  border-bottom: none;
  z-index: 0;
  pointer-events: none;
  box-sizing: border-box;
}

/* Elevated bubble that pops above the bar */
.navActiveBubble {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  animation: navBalloonFloat 3s ease-in-out infinite;
}

/* Label under the active icon */
.navActiveLabel {
  position: relative;
  z-index: 2;
  color: #FFF;
  font-weight: 900;
  font-size: 13px;
  font-family: 'Cairo', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
  margin-top: 0;
}

/* Floating animation for the balloon */
@keyframes navBalloonFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}



@keyframes floatLogo {

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

  50% {
    transform: translateX(-50%) translateY(calc(-50% - 8px));
  }
}

/* ═══════════════════════════════════════════════
   RANKED / LEADERBOARD POPUP
   ═══════════════════════════════════════════════ */

.rankedBackdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rankedBackdrop.hidden {
  display: none;
}

.rankedCard {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, var(--forest-bg), var(--forest-mid) 50%, var(--forest-bg));
  border: 2px solid rgba(139, 105, 20, 0.3);
  border-radius: 20px;
  overflow: hidden;
}

/* Ranked Header */
.rankedTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 18px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(139, 105, 20, 0.3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Trophy image in leaderboard */
.rankedTrophy {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.rankedTrophy img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  animation: float 3s ease-in-out infinite;
}

.rankedBody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--wood-brown) transparent;
}

.rankedBody::-webkit-scrollbar {
  width: 6px;
}

.rankedBody::-webkit-scrollbar-track {
  background: transparent;
}

.rankedBody::-webkit-scrollbar-thumb {
  background: var(--wood-brown);
  border-radius: 3px;
}

.rankedList {
  display: grid;
  gap: 8px;
}

.rankedRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideIn 0.3s ease-out both;
}

.rankedRow:nth-child(1) {
  background: rgba(255, 215, 0, 0.10);
  border-color: rgba(255, 215, 0, 0.30);
}

.rankedRow:nth-child(2) {
  background: rgba(192, 192, 192, 0.10);
  border-color: rgba(192, 192, 192, 0.30);
}

.rankedRow:nth-child(3) {
  background: rgba(205, 127, 50, 0.10);
  border-color: rgba(205, 127, 50, 0.30);
}

.rankedPos {
  width: 32px;
  font-weight: 900;
  color: rgba(245, 240, 224, 0.4);
  text-align: center;
  font-size: 14px;
}

.rankedRow:nth-child(1) .rankedPos {
  color: #FFD700;
}

.rankedRow:nth-child(2) .rankedPos {
  color: #C0C0C0;
}

.rankedRow:nth-child(3) .rankedPos {
  color: #CD7F32;
}

.rankedName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
}

.rankedScore {
  font-weight: 900;
  font-size: 14px;
  color: var(--leaf-gold);
}

.rankedActions {
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(139, 105, 20, 0.2);
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════
   COMMON BUTTON STYLES
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 150ms ease;
  background: linear-gradient(to bottom, var(--wood-panel), #A08040);
  border: 2px solid var(--wood-brown);
  color: var(--dark-brown);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: scale(0.95);
}

.btn.primary {
  background: linear-gradient(to bottom, var(--leaf-green), var(--forest-light));
  border-color: var(--forest-mid);
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-height: 600px) {
  .menuLogo {
    margin-bottom: 16px;
  }

  .menuLogoTitle {
    font-size: 40px;
  }

  .menuLogoSubtitle {
    font-size: 30px;
  }

  .menuSpirit {
    width: 70px;
    height: 100px;
    bottom: 40px;
  }
}

@media (min-width: 768px) {
  .menuLogoTitle {
    font-size: 88px;
  }

  .menuLogoSubtitle {
    font-size: 68px;
  }

  .menuLogoTag {
    font-size: 22px;
    letter-spacing: 8px;
  }

  .menuBtn.classic {
    width: 320px;
    height: 64px;
    font-size: 24px;
  }

  .menuSpirit {
    width: 120px;
    height: 170px;
  }
}

/* ═══════════════════════════════════════════════
   SETTINGS & HELP POPUPS
   ═══════════════════════════════════════════════ */

.helpSteps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.helpStep {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.9), rgba(160, 128, 64, 0.9));
  border: 2px solid #8B6914;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.helpStepIcon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid;
}

.helpStepText h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 4px;
}

.helpStepText p {
  font-size: 14px;
  color: rgba(245, 240, 224, 0.7);
  margin: 0;
  line-height: 1.4;
}

.helpStepNum {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

.helpTips {
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.95), rgba(139, 105, 20, 0.95));
  border: 3px solid #8B6914;
  border-radius: 20px;
  padding: 16px;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.helpTipsTitle {
  font-size: 18px;
  font-weight: 800;
  color: #F0C040;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.helpTipsList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.helpTipsList li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(245, 240, 224, 0.7);
}

.helpTipsList li span {
  color: #6BBF59;
}

.settingsPanel {
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.95), rgba(139, 105, 20, 0.95));
  border: 3px solid #8B6914;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.settingsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settingsRowLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settingsIcon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settingsTitle {
  font-size: 14px;
  font-weight: 800;
  color: var(--cream);
}

.settingsSub {
  font-size: 12px;
  color: rgba(245, 240, 224, 0.5);
}

.settingsDivider {
  height: 1px;
  background: rgba(139, 105, 20, 0.3);
}

.settingsToggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.settingsToggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settingsToggleSlider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4b5563;
  transition: .2s;
  border-radius: 34px;
}

.settingsToggleSlider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settingsToggle input:checked+.settingsToggleSlider {
  background-color: #6BBF59;
}

.settingsToggle input:checked+.settingsToggleSlider:before {
  transform: translateX(28px);
}

.settingsSelect {
  background: #2D5A27;
  color: var(--cream);
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 105, 20, 0.5);
  outline: none;
  font-family: inherit;
}

.settingsResetBtn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.3);
  border: 1px solid rgba(153, 27, 27, 0.5);
  color: #f87171;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.settingsResetBtn:hover {
  background: rgba(153, 27, 27, 0.5);
}