/**
 * ============================================================================
 * KNIFE MASTER · PRIMARY STYLESHEET
 * ============================================================================
 * Design System: Knotrix & Rhythm Ring Grade Clean Commercial Arcade
 * Palette:       Deep Obsidian (#07090e), Dark Velvet (#0f172a), Glass (#1e293b)
 * Accents:       Imperial Gold (#f59e0b), Mint Emerald (#10b981), Cyber Cyan (#06b6d4)
 * Sizing:        Full-Screen Fluid Responsive Viewport (Desktop, Tablet, Mobile)
 * Compliance:    100% UNMINIFIED, human-readable, well-documented source code
 *                for CodeCanyon / Envato marketplace review and easy customization.
 * ============================================================================
 */

:root {
  /* Surface & Background Colors */
  --bg-base: #07090e;
  --bg-gradient: radial-gradient(circle at 50% 28%, #141c2e 0%, #090d16 65%, #05070b 100%);
  --panel: rgba(15, 22, 36, 0.94);
  --panel-elevated: rgba(24, 34, 54, 0.96);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-border-bright: rgba(255, 255, 255, 0.22);
  --panel-border-gold: rgba(245, 158, 11, 0.45);

  /* Typography Colors */
  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --ink-dim: rgba(248, 250, 252, 0.65);

  /* Brand Accents */
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.45);

  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.45);

  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.45);

  --crimson: #f43f5e;
  --crimson-light: #fb7185;
  --crimson-glow: rgba(244, 63, 94, 0.45);

  --purple: #8b5cf6;

  /* Typography & Structure */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.65);
}

/* ----------------- GLOBAL RESET ----------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  font-family: var(--font-main);
  color: var(--ink);
  touch-action: none;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-gradient);
}

/* ----------------- 5-SECOND ARCADE PRELOADER ----------------- */

#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #111827 0%, #06080d 100%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.logo-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  filter: blur(8px);
  animation: pulseHalo 3.0s ease-in-out infinite alternate;
}

.logo-emblem-img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--gold-glow));
  position: relative;
  z-index: 2;
}

.pulse-anim {
  animation: emblemPulse 2.8s ease-in-out infinite alternate;
}

@keyframes emblemPulse {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4));
  }
  100% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 26px rgba(245, 158, 11, 0.75));
  }
}

@keyframes pulseHalo {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

#preloader h1 {
  font-size: 2.3rem;
  letter-spacing: 5px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 20%, #fde68a 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.8));
}

#preloader p {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-dim);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bar-track {
  width: 240px;
  height: 7px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #10b981, #f59e0b);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px var(--gold-glow);
  transition: width 0.12s linear;
}

.preload-status {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

/* ----------------- IN-GAME TOPBAR / HUD ----------------- */

#topbar {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  pointer-events: none;
  overflow: visible;
}

#topbar > * {
  pointer-events: auto;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.90) 100%);
  border: 1px solid var(--panel-border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
  outline: none;
  flex-shrink: 0;
  padding: 0;
}

.icon-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  cursor: pointer;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  background: linear-gradient(180deg, rgba(40, 55, 80, 0.95) 0%, rgba(20, 30, 50, 0.95) 100%);
}

.icon-btn:active {
  transform: scale(0.94);
}

.ui-icon-img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.hud-stage-pill {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.90) 100%);
  border: 1px solid var(--panel-border-bright);
  border-radius: var(--radius-pill);
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
}

.hud-apples-row {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-apples-row b {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.hud-apple-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.6));
}

.hud-score-pill {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.90) 100%);
  border: 1px solid var(--panel-border-bright);
  border-radius: var(--radius-pill);
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

.score-tag {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--ink-dim);
  letter-spacing: 0.10em;
}

.hud-score-pill b {
  font-size: 1.0rem;
  font-weight: 900;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
  text-shadow: 0 0 12px var(--gold-glow);
}

.score-bump {
  animation: scorePulse 0.25s ease-out;
}

@keyframes scorePulse {
  0% { transform: scale(1.0); }
  50% { transform: scale(1.3); color: #ffffff; }
  100% { transform: scale(1.0); }
}

/* ----------------- CANVAS STAGE ----------------- */

#stage {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

/* ----------------- TACTICAL KNIFE MAGAZINE (BOTTOM-LEFT) ----------------- */

#knifeMagazine {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.90) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1.5px solid var(--panel-border-bright);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 12px 9px;
  border-radius: var(--radius-pill);
  z-index: 100;
  pointer-events: none;
  max-height: min(440px, 58vh);
  overflow: hidden;
}

.rack-knife-icon {
  width: 18px;
  height: 34px;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.rack-knife-active {
  opacity: 1.0;
  transform: scale(1.0);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.75));
}

.rack-knife-spent {
  opacity: 0.18;
  transform: scale(0.85);
  filter: grayscale(100%);
}

/* First Throw Hint */
#throwHint {
  position: absolute;
  bottom: clamp(120px, 18vh, 150px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 90;
  animation: hintFloat 1.8s ease-in-out infinite alternate;
}

#throwHint span {
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.90) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--panel-border-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.25);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

@keyframes hintFloat {
  0% { transform: translateY(0); opacity: 0.75; }
  100% { transform: translateY(-7px); opacity: 1.0; }
}

/* ----------------- OVERLAYS / MODALS ARCHITECTURE ----------------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(22, 30, 48, 0.96) 0%, rgba(12, 16, 26, 0.98) 100%);
  border: 1px solid var(--panel-border-bright);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  animation: popUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card::-webkit-scrollbar {
  width: 4px;
}

.card::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 4px;
}

@keyframes popUp {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.card h2 {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
  margin-top: -4px;
}

/* ----------------- MAIN MENU OVERLAY & FULL-HEIGHT BOX ----------------- */

#menuOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 11, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#menuOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* THE MAIN MENU BOX: FULL LENGTH TOP TO BOTTOM WITH DISTINCT SIDE LINES */
.card.menu-card {
  width: 100%;
  max-width: 440px;
  height: 100%;
  min-height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  /* CRISP DISTINCT SIDE BORDER LINES WITH METALLIC AMBER ACCENT */
  border-left: 1.5px solid rgba(245, 158, 11, 0.50);
  border-right: 1.5px solid rgba(245, 158, 11, 0.50);
  background: linear-gradient(180deg, #101625 0%, #090d16 50%, #101625 100%);
  box-shadow: 
    0 0 70px rgba(0, 0, 0, 0.95),
    -4px 0 25px rgba(245, 158, 11, 0.22),
    4px 0 25px rgba(245, 158, 11, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.12);
  padding: max(32px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  overflow-y: auto;
  animation: fadeInMenu 0.25s ease-out;
}

@keyframes fadeInMenu {
  0% { transform: scale(0.98); opacity: 0; }
  100% { transform: scale(1.0); opacity: 1; }
}

/* Menu Brand Header */
.menu-brand-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.menu-logo-wrap {
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
}

.menu-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 1;
}

.menu-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px var(--gold-glow)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
  position: relative;
  z-index: 2;
}

.menu-game-title {
  font-size: clamp(2.4rem, 6.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #ffffff 15%, #fde68a 50%, #f59e0b 85%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.35));
  line-height: 1.1;
}

.menu-game-subtitle {
  font-size: clamp(0.72rem, 2.1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  margin-top: 10px;
}

/* ----------------- 5 MAIN MENU BUTTONS ONLY ----------------- */

.menu-buttons-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: auto 0;
}

/* Base Arcade Button */
.arcade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  outline: none;
  border: 1px solid var(--panel-border-bright);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.0rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.arcade-btn:hover {
  transform: translateY(-2px);
}

.arcade-btn:active {
  transform: translateY(1px);
}

/* Button 1: Play (Big Hero Button) */
.menu-btn-hero,
.arcade-btn-play {
  height: 60px !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  border-radius: var(--radius-pill) !important;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%) !important;
  color: #0f172a !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase;
}

.menu-btn-hero:hover,
.arcade-btn-play:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
}

.menu-btn-hero .cta-icon-img,
.arcade-btn-play .btn-icon {
  width: 26px !important;
  height: 26px !important;
}

/* 2x2 Menu Grid for Secondary Buttons */
.menu-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.menu-sub-btn {
  height: 52px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  text-transform: none !important;
}

/* Button 2: Levels (Electric Cyan) */
.btn-levels,
.arcade-btn-levels {
  height: 52px;
  font-size: 0.96rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.btn-levels:hover,
.arcade-btn-levels:hover {
  border-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.55) !important;
}

/* Button 3: How to Play (Mint Emerald) */
.btn-howto,
.arcade-btn-howto {
  height: 52px;
  font-size: 0.96rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.btn-howto:hover,
.arcade-btn-howto:hover {
  border-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.55) !important;
}

/* Button 4: Setting (Royal Purple) */
.btn-setting,
.arcade-btn-setting {
  height: 52px;
  font-size: 0.96rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.btn-setting:hover,
.arcade-btn-setting:hover {
  border-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.55) !important;
}

/* Button 5: Sound (Obsidian Slate with Amber accent) */
.btn-sound,
.arcade-btn-sound {
  height: 52px;
  font-size: 0.96rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

.btn-sound:hover,
.arcade-btn-sound:hover {
  border-color: var(--gold-light) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3) !important;
}

.btn-icon,
.cta-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.menu-footer-note {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.65);
  text-align: center;
  margin-top: 10px;
}

/* ----------------- UNIVERSAL MODAL CTA BUTTONS ----------------- */

.cta {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 1.10rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  text-transform: uppercase;
  outline: none;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-sizing: border-box;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta:active {
  transform: translateY(1px);
}

.primary-cta {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%) !important;
  color: #0f172a !important;
  border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.85) !important;
}

.primary-cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 32px rgba(245, 158, 11, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
}

.cta.secondary {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.90) 100%) !important;
  border: 1px solid var(--panel-border-bright) !important;
  color: var(--ink) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.cta.secondary:hover {
  border-color: var(--gold-light) !important;
  background: linear-gradient(180deg, rgba(40, 55, 80, 0.95) 0%, rgba(20, 30, 50, 0.95) 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5) !important;
}

.cta-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ----------------- LEVEL SELECT MODAL (PIXEL-PERFECT TO SCREENSHOT) ----------------- */

.levels-card {
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  background: #111722;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 22px;
  padding: 24px 22px;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.modal-title-group h2 {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.stars-counter-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f59e0b;
}

.tiny-star-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
  outline: none;
}

.modal-close-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
}

.close-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Scrollbox & Sleek Amber Scrollbar */
.levels-scroll-box {
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #f59e0b transparent;
}

.levels-scroll-box::-webkit-scrollbar {
  width: 6px;
}

.levels-scroll-box::-webkit-scrollbar-track {
  background: transparent;
}

.levels-scroll-box::-webkit-scrollbar-thumb {
  background: #d97706;
  border-radius: 9999px;
}

.levels-scroll-box::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Exactly 6 Columns Grid Matching Screenshot */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}

/* Level Plate / Tile */
.level-plate {
  aspect-ratio: 1;
  min-height: 72px;
  background: #182030;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.level-plate:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.level-plate:active {
  transform: scale(0.96);
}

/* Stage Number */
.lvl-num,
.plate-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

/* Stars Row & Icons */
.lvl-stars-row,
.plate-stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
}

.lvl-star-icon,
.plate-mini-star {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

/* Boss Stage Distinctive Plate */
.level-plate.boss-plate {
  border: 1.5px solid rgba(244, 63, 94, 0.75);
  background: rgba(45, 18, 28, 0.75);
}

.level-plate.boss-plate:hover {
  border-color: #f43f5e;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
}

.plate-boss-tag {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #f43f5e;
  text-transform: uppercase;
  margin-bottom: 2px;
  line-height: 1;
}

/* Locked Stage */
.level-plate.locked {
  background: #131924;
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.50;
  cursor: not-allowed;
}

.level-plate.locked:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.level-plate.locked .lvl-num,
.level-plate.locked .plate-num {
  color: #475569;
}

.plate-lock-icon {
  width: 11px;
  height: 11px;
  object-fit: contain;
  position: absolute;
  top: 6px;
  right: 6px;
  opacity: 0.85;
}

/* ----------------- HOW TO PLAY MODAL ----------------- */

.howto-card {
  max-width: 460px;
  padding: 22px;
}

.howto-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.howto-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.howto-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.howto-row strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.howto-row p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-dim);
  line-height: 1.35;
}

/* ----------------- SETTINGS MODAL ----------------- */

.settings-card {
  max-width: 420px;
  padding: 22px;
}

.settings-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  gap: 12px;
}

.settings-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.settings-info strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.settings-info span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-dim);
}

.pill-toggle-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--emerald-glow);
  outline: none;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.pill-toggle-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.pill-toggle-btn.danger-toggle {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 4px 14px var(--crimson-glow);
}

/* ----------------- DIALOG ICONS & HERO ELEMENTS ----------------- */

.dialog-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
}

.dialog-hero-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.victory-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 25px var(--gold-glow);
}

.defeat-glow {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, rgba(244, 63, 94, 0.05) 70%);
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 25px var(--crimson-glow);
}

.fail-heading {
  color: var(--crimson-light);
  text-shadow: 0 0 16px var(--crimson-glow);
}

.victory-stars-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0;
}

.dialog-star-icon {
  width: 42px;
  height: 42px;
  animation: starPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes starPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.25); }
  100% { transform: scale(1.0); opacity: 1; }
}

.score-banner-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border-bright);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-banner-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-dim);
  letter-spacing: 0.14em;
}

.score-banner-val {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 12px var(--gold-glow);
}

.dialog-btn-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-btn-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.dialog-btn-row .cta {
  height: 52px;
  flex: 1;
  min-width: 0;
}

.icon-btn-lg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.90) 100%);
  border: 1px solid var(--panel-border-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.icon-btn-lg:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.icon-btn-lg:active {
  transform: translateY(1px);
}

.btn-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.flex-1 {
  flex: 1;
  min-width: 0;
}

/* ----------------- COMPACT RESPONSIVENESS (TABLETS, PHONES & LANDSCAPE) ----------------- */

@media (max-height: 750px) {
  .card {
    padding: 20px 18px;
    gap: 10px;
    max-height: 94vh;
    overflow-y: auto;
  }
  .card.menu-card {
    padding: 22px 22px 20px;
    max-height: 100vh;
  }
  .menu-logo-wrap {
    width: 86px;
    height: 86px;
    margin-bottom: 4px;
  }
  .menu-logo-img {
    width: 80px;
    height: 80px;
  }
  .menu-game-title {
    font-size: 2.2rem;
  }
  .menu-buttons-list {
    gap: 10px;
  }
  .arcade-btn-play {
    height: 52px;
    font-size: 1.2rem;
  }
  .menu-grid-2x2 {
    gap: 8px;
  }
  .arcade-btn-levels,
  .arcade-btn-howto,
  .arcade-btn-setting,
  .arcade-btn-sound {
    height: 46px;
    font-size: 0.88rem;
  }
  .cta {
    height: 46px;
    font-size: 1.05rem;
  }
  #knifeMagazine {
    bottom: 16px;
    left: 16px;
    padding: 10px 8px;
    gap: 4px;
    max-height: 55vh;
  }
  .rack-knife-icon {
    width: 15px;
    height: 28px;
  }
}

@media (max-width: 600px) {
  .overlay {
    padding: 10px;
  }
  #topbar {
    top: max(8px, env(safe-area-inset-top));
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
    height: 38px;
  }
  .top-group {
    gap: 4px;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .icon-btn::after {
    inset: -6px;
  }
  .ui-icon-img {
    width: 15px;
    height: 15px;
  }
  .hud-stage-pill {
    height: 32px;
    padding: 0 7px;
    gap: 4px;
  }
  .hud-title {
    font-size: 0.70rem;
    letter-spacing: 0.03em;
  }
  .hud-apples-row {
    gap: 3px;
    font-size: 0.70rem;
  }
  .hud-apple-icon {
    width: 12px;
    height: 12px;
  }
  .hud-apples-row b {
    font-size: 0.72rem;
  }
  .hud-score-pill {
    height: 32px;
    padding: 0 7px;
    gap: 3px;
  }
  .score-tag {
    font-size: 0.50rem;
  }
  .hud-score-pill b {
    font-size: 0.84rem;
  }
  #knifeMagazine {
    bottom: 14px;
    left: 10px;
    padding: 8px 6px;
    gap: 3px;
  }
  .rack-knife-icon {
    width: 14px;
    height: 25px;
  }
  .card {
    padding: 18px 14px;
    border-radius: 18px;
    gap: 10px;
  }
  .card.menu-card {
    padding: max(20px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  }
  .menu-game-title {
    font-size: 2.1rem;
  }
  .menu-logo-wrap {
    width: 78px;
    height: 78px;
  }
  .menu-logo-img {
    width: 72px;
    height: 72px;
  }
  .arcade-btn-play {
    height: 50px;
    font-size: 1.15rem;
  }
  .menu-grid-2x2 {
    gap: 8px;
  }
  .menu-sub-btn {
    height: 44px !important;
    font-size: 0.86rem !important;
  }
  .levels-card {
    padding: 14px 10px;
    max-width: 96vw;
  }
  .levels-grid {
    gap: 5px;
  }
  .level-plate {
    min-height: 48px;
    border-radius: 8px;
  }
  .lvl-num,
  .plate-num {
    font-size: 0.95rem;
  }
  .lvl-star-icon,
  .plate-mini-star {
    width: 7.5px;
    height: 7.5px;
  }
  .plate-boss-tag {
    font-size: 0.44rem;
    padding: 1px 3px;
    top: 2px;
  }
  .plate-lock-icon {
    width: 8.5px;
    height: 8.5px;
    top: 3px;
    right: 3px;
  }
  .dialog-star-icon {
    width: 34px;
    height: 34px;
  }
  .dialog-btn-row {
    gap: 6px;
  }
  .dialog-btn-row .cta {
    height: 44px;
    font-size: 0.86rem;
    gap: 6px;
  }
  .score-banner-box {
    padding: 8px 18px;
  }
  .score-banner-val {
    font-size: 1.5rem;
  }
}

@media (max-width: 380px) {
  .overlay {
    padding: 8px;
  }
  #topbar {
    top: max(6px, env(safe-area-inset-top));
    padding: 0 max(5px, env(safe-area-inset-right)) 0 max(5px, env(safe-area-inset-left));
    height: 34px;
  }
  .top-group {
    gap: 3px;
  }
  .icon-btn {
    width: 29px;
    height: 29px;
    min-width: 29px;
  }
  .icon-btn::after {
    inset: -6px;
  }
  .ui-icon-img {
    width: 14px;
    height: 14px;
  }
  .hud-stage-pill {
    height: 29px;
    padding: 0 5px;
    gap: 3px;
  }
  .hud-title {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }
  .hud-apples-row {
    gap: 2px;
    font-size: 0.65rem;
  }
  .hud-apple-icon {
    width: 11px;
    height: 11px;
  }
  .hud-score-pill {
    height: 29px;
    padding: 0 5px;
    gap: 3px;
  }
  .score-tag {
    font-size: 0.46rem;
  }
  .hud-score-pill b {
    font-size: 0.76rem;
  }
  #knifeMagazine {
    bottom: 10px;
    left: 8px;
    padding: 6px 4px;
    gap: 2px;
  }
  .rack-knife-icon {
    width: 12px;
    height: 22px;
  }
  .card.menu-card {
    padding: max(16px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  }
  .menu-game-title {
    font-size: 1.75rem;
    letter-spacing: 0.08em;
  }
  .menu-logo-wrap {
    width: 65px;
    height: 65px;
  }
  .menu-logo-img {
    width: 58px;
    height: 58px;
  }
  .arcade-btn-play {
    height: 44px;
    font-size: 1.02rem;
  }
  .menu-grid-2x2 {
    gap: 6px;
  }
  .menu-sub-btn {
    height: 40px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
  }
  .levels-grid {
    gap: 4px;
  }
  .level-plate {
    min-height: 44px;
    border-radius: 6px;
  }
  .lvl-num,
  .plate-num {
    font-size: 0.86rem;
  }
  .lvl-star-icon,
  .plate-mini-star {
    width: 6.5px;
    height: 6.5px;
  }
  .dialog-btn-row {
    gap: 4px;
  }
  .dialog-btn-row .cta {
    height: 40px;
    font-size: 0.78rem;
    gap: 4px;
    padding: 0 4px;
  }
}

@media (max-width: 330px) {
  #topbar {
    top: max(4px, env(safe-area-inset-top));
    padding: 0 3px;
    height: 30px;
  }
  .top-group {
    gap: 2px;
  }
  .icon-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
  .icon-btn::after {
    inset: -7px;
  }
  .ui-icon-img {
    width: 12px;
    height: 12px;
  }
  .hud-stage-pill {
    height: 26px;
    padding: 0 4px;
    gap: 2px;
  }
  .hud-title {
    font-size: 0.60rem;
    letter-spacing: 0.02em;
  }
  .hud-apples-row {
    display: none;
  }
  .hud-score-pill {
    height: 26px;
    padding: 0 4px;
    gap: 2px;
  }
  .score-tag {
    font-size: 0.42rem;
  }
  .hud-score-pill b {
    font-size: 0.70rem;
  }
}

@media (max-height: 640px) {
  #topbar {
    top: max(4px, env(safe-area-inset-top));
    height: 42px;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
  .hud-stage-pill,
  .hud-score-pill {
    height: 34px;
    padding: 0 8px;
  }
  #knifeMagazine {
    bottom: 8px;
    left: 8px;
    padding: 6px 5px;
    gap: 3px;
    max-height: 52vh;
  }
  .rack-knife-icon {
    width: 12px;
    height: 22px;
  }
  .card {
    padding: 14px 16px;
    gap: 8px;
    max-height: calc(100vh - 16px);
  }
  .card h2 {
    font-size: 1.35rem;
  }
  .subtitle {
    font-size: 0.76rem;
  }
  .dialog-icon-wrap {
    width: 52px;
    height: 52px;
  }
  .dialog-hero-icon {
    width: 28px;
    height: 28px;
  }
  .victory-stars-box {
    margin: 2px 0;
    gap: 8px;
  }
  .dialog-star-icon {
    width: 28px;
    height: 28px;
  }
  .score-banner-box {
    padding: 4px 14px;
  }
  .score-banner-val {
    font-size: 1.35rem;
  }
  .dialog-btn-row .cta {
    height: 40px;
    font-size: 0.82rem;
  }
  .dialog-btn-stack {
    gap: 6px;
  }
  .dialog-btn-stack .cta {
    height: 40px;
    font-size: 0.88rem;
  }
  .card.menu-card {
    padding: max(12px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom));
    max-height: 100vh;
  }
  .menu-logo-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 2px;
  }
  .menu-logo-img {
    width: 52px;
    height: 52px;
  }
  .menu-game-title {
    font-size: 1.65rem;
  }
  .menu-game-subtitle {
    font-size: 0.64rem;
    margin-top: 4px;
    padding: 2px 10px;
  }
  .menu-buttons-list {
    gap: 6px;
  }
  .arcade-btn-play {
    height: 42px;
    font-size: 1.05rem;
  }
  .menu-grid-2x2 {
    gap: 6px;
  }
  .arcade-btn-levels,
  .arcade-btn-howto,
  .arcade-btn-setting,
  .arcade-btn-sound,
  .menu-sub-btn {
    height: 38px !important;
    font-size: 0.80rem !important;
  }
  .menu-footer-note {
    font-size: 0.58rem;
    margin-top: 4px;
  }
}

@media (max-height: 480px) {
  .card {
    max-height: 98vh;
    padding: 10px 14px;
    gap: 6px;
  }
  .card.menu-card {
    padding: 8px 14px;
  }
  .menu-brand-header {
    margin-top: 0;
  }
  .menu-logo-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }
  .menu-logo-img {
    width: 40px;
    height: 40px;
  }
  .menu-game-title {
    font-size: 1.35rem;
  }
  .menu-game-subtitle {
    display: none;
  }
  .arcade-btn-play {
    height: 36px;
    font-size: 0.95rem;
  }
  .menu-grid-2x2 {
    gap: 5px;
  }
  .menu-sub-btn {
    height: 34px !important;
    font-size: 0.74rem !important;
  }
  .menu-footer-note {
    display: none;
  }
  .levels-card {
    padding: 8px 10px;
  }
  .levels-grid {
    gap: 3px;
  }
  .level-plate {
    min-height: 34px;
    border-radius: 5px;
  }
  .lvl-num,
  .plate-num {
    font-size: 0.78rem;
  }
  .plate-boss-tag {
    display: none;
  }
  .lvl-star-icon,
  .plate-mini-star {
    width: 5.5px;
    height: 5.5px;
  }
}
