/* ==========================================================================
   RIFF BLAST - Arcade Acrylic Main Menu Layout & Glossy Components
   Consumes design tokens, fonts, keyframes & backdrop layers from theme.css.
   Uses #screen-main-menu scope so rules cleanly out-rank legacy styles.css.
   ========================================================================== */

body[data-screen="menu"],
body[data-screen="menu"] html {
  background: var(--bg-space-deep);
  background-image: none;
  font-family: var(--font-ui);
}

.app-shell {
  position: relative;
  z-index: 1;
}

body[data-screen="menu"] .app-shell {
  padding:
    max(10px, var(--safe-top))
    max(14px, var(--safe-right))
    max(10px, var(--safe-bottom))
    max(14px, var(--safe-left));
}

/* Hide corner drifting blocks during active gameplay or Mint 532 bright theme */
body[data-screen="game"] .arcade-edge-blocks {
  display: none;
}

body.mode-mint532[data-screen="game"] .arcade-space-bg {
  opacity: 0;
}

/* Extra ambient sparks for Main Menu energy around hero & CTAs */
.arcade-space-bg .menu-spark-1 {
  top: 13%;
  left: 77%;
  animation-duration: 5.2s;
}

.arcade-space-bg .menu-spark-2 {
  top: 34%;
  left: 19%;
  animation-duration: 6.1s;
  animation-delay: -1.4s;
}

.arcade-space-bg .menu-spark-3 {
  top: 63%;
  left: 15%;
  width: 7px;
  height: 7px;
  animation-duration: 4.8s;
  animation-delay: -2.2s;
}

.arcade-space-bg .menu-spark-4 {
  top: 67%;
  left: 84%;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fbcfe8 0%, var(--arcade-pink) 60%, transparent 100%);
  animation-duration: 5.7s;
  animation-delay: -0.9s;
}

.arcade-space-bg .menu-spark-5 {
  top: 78%;
  left: 33%;
  width: 5px;
  height: 5px;
  animation-duration: 6.6s;
  animation-delay: -3.1s;
}

.arcade-space-bg .menu-spark-6 {
  top: 79%;
  left: 69%;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fef08a 0%, var(--arcade-orange) 58%, transparent 100%);
  animation-duration: 5.4s;
  animation-delay: -1.8s;
}

/* Drifting 3D Corner Tetromino Sprites */
.arcade-edge-blocks .edge-block-tl {
  top: clamp(72px, 9.8dvh, 96px);
  left: clamp(28px, 11vw, 62px);
  width: clamp(58px, 15.5vw, 74px);
  height: auto;
  --block-rot: -2deg;
  --block-dx: 4px;
  --block-dy: -8px;
  --block-dur: 7.4s;
  filter: drop-shadow(0 8px 16px rgba(34, 211, 238, 0.34));
}

.arcade-edge-blocks .edge-block-ml {
  top: clamp(325px, 41dvh, 395px);
  left: -26px;
  width: clamp(62px, 16.5vw, 80px);
  height: auto;
  --block-rot: -4deg;
  --block-dx: 5px;
  --block-dy: -9px;
  --block-dur: 8.2s;
  --block-delay: -1.5s;
  filter: drop-shadow(0 8px 16px rgba(255, 138, 31, 0.38));
}

.arcade-edge-blocks .edge-block-mr {
  top: clamp(275px, 35.5dvh, 345px);
  right: -20px;
  width: clamp(64px, 17vw, 82px);
  height: auto;
  --block-rot: 4deg;
  --block-dx: -5px;
  --block-dy: 8px;
  --block-dur: 7.9s;
  --block-delay: -2.8s;
  filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.42));
}

.arcade-edge-blocks .edge-block-bl {
  top: clamp(575px, 72dvh, 690px);
  left: -26px;
  width: clamp(56px, 14.5vw, 70px);
  height: auto;
  opacity: 0.78;
  --block-rot: 62deg;
  --block-dx: 4px;
  --block-dy: -7px;
  --block-dur: 8.8s;
  --block-delay: -3.6s;
  filter: drop-shadow(0 6px 14px rgba(139, 92, 246, 0.34));
}

.arcade-edge-blocks .edge-block-br {
  top: clamp(615px, 76dvh, 725px);
  right: -18px;
  width: clamp(66px, 17.5vw, 84px);
  height: auto;
  --block-rot: -4deg;
  --block-dx: -4px;
  --block-dy: -9px;
  --block-dur: 8.4s;
  --block-delay: -0.9s;
  filter: drop-shadow(0 8px 18px rgba(34, 197, 94, 0.38));
}

/* ================= MAIN MENU ROOT LAYOUT ================= */
#screen-main-menu {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: clamp(6px, 1dvh, 12px);
  padding: 2px 0 4px;
  overflow: hidden;
  position: relative;
}

#screen-main-menu[hidden] {
  display: none !important;
}

#screen-main-menu .menu-art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Shared Glossy Acrylic Highlight Overlay */
#screen-main-menu .acrylic-gloss {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

#screen-main-menu .acrylic-gloss::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6%;
  right: 6%;
  height: 46%;
  border-radius: 999px;
  background: var(--acrylic-top-gloss);
  opacity: 0.92;
}

/* ================= 1. TOP BAR ================= */
#screen-main-menu .menu-top-bar {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 0;
  z-index: 5;
}

#screen-main-menu #menu-btn-settings {
  position: relative;
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

#screen-main-menu #menu-btn-settings .acrylic-gloss {
  display: none;
}

#screen-main-menu #menu-btn-settings .btn-svg {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 14px rgba(0, 239, 255, 0.45));
}

#screen-main-menu #menu-btn-settings:active {
  transform: translateY(4px) scale(0.94);
  filter: brightness(1.16);
  box-shadow: none;
}

#screen-main-menu #menu-style-pill {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(22, 30, 82, 0.92) 0%, rgba(11, 15, 48, 0.96) 100%);
  border: 2px solid var(--color-cyan-neon);
  font-family: var(--font-body);
  font-size: clamp(10.5px, 2.9vw, 12.5px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-text-ice);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 239, 255, 0.45);
  box-shadow:
    0 0 0 2px rgba(133, 45, 255, 0.48),
    0 0 20px rgba(0, 239, 255, 0.46),
    0 0 30px rgba(133, 45, 255, 0.34),
    0 8px 18px rgba(3, 11, 43, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

#screen-main-menu .menu-pill-dot {
  display: none;
}

#screen-main-menu #menu-btn-noads {
  position: relative;
  min-width: 68px;
  min-height: 68px;
  padding: 2px 4px;
  border-radius: 20px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--color-gold-neon);
  box-shadow: none;
  overflow: visible;
}

#screen-main-menu #menu-btn-noads .btn-svg {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(255, 200, 61, 0.52));
}

#screen-main-menu #menu-btn-noads .noads-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-button);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-gold-neon);
  text-shadow:
    0 2px 0 #1e1038,
    0 0 8px rgba(0, 0, 0, 0.85);
}

#screen-main-menu #menu-btn-noads:active {
  transform: translateY(4px) scale(0.94);
  filter: brightness(1.16);
  box-shadow: none;
}

/* ================= 2 & 3. HERO STAGE, MASCOT & TITLE ================= */
#screen-main-menu .menu-hero-center {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(6px, 1.1dvh, 12px);
  padding: 0;
  z-index: 3;
}

#screen-main-menu .menu-logo-lockup {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

#screen-main-menu .menu-emblem-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(92px, 12.6dvh, 116px);
  margin-bottom: 4px;
}

#screen-main-menu .menu-emblem-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(108px, 14.5dvh, 136px);
  height: clamp(108px, 14.5dvh, 136px);
  margin-left: calc(clamp(108px, 14.5dvh, 136px) * -0.5);
  margin-top: calc(clamp(108px, 14.5dvh, 136px) * -0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 239, 255, 0.22) 0%, rgba(133, 45, 255, 0.34) 48%, transparent 72%);
  box-shadow:
    inset 0 0 18px rgba(245, 43, 203, 0.35),
    0 0 26px rgba(133, 45, 255, 0.42);
  pointer-events: none;
  z-index: 1;
  animation: arcadeSwirlSpin 14s linear infinite;
}

#screen-main-menu .menu-logo-svg {
  position: relative;
  z-index: 2;
  width: clamp(90px, 12.2dvh, 114px);
  height: clamp(90px, 12.2dvh, 114px);
  filter: drop-shadow(0 8px 22px rgba(133, 45, 255, 0.56));
  animation: none;
}

#screen-main-menu .menu-logo-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Upper-right mascot floats clear above the 'T' in RIFF BLAST */
#screen-main-menu .menu-mascot {
  position: absolute;
  right: clamp(2px, 2vw, 12px);
  top: -4px;
  width: clamp(80px, 21vw, 96px);
  height: clamp(82px, 21.5vw, 98px);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 239, 255, 0.45));
  animation: arcadeMascotBob 3.1s ease-in-out infinite;
  will-change: transform;
}

#screen-main-menu .menu-mascot[hidden] {
  display: none;
}

/* Supplied RIFF BLAST Lettering Image Asset */
#screen-main-menu .menu-title-wrap {
  position: relative;
  z-index: 3;
  margin: 2px 0 0 0;
  padding: 0;
  line-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

#screen-main-menu .menu-title-img {
  width: clamp(286px, 85vw, 356px);
  height: auto;
  max-height: clamp(72px, 10.6dvh, 96px);
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter:
    drop-shadow(0 6px 14px rgba(10, 6, 38, 0.72))
    drop-shadow(0 0 18px rgba(0, 239, 255, 0.36));
}

#screen-main-menu .menu-edition-sub {
  margin-top: 5px;
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  background: rgba(7, 19, 61, 0.9);
  border: 1.5px solid var(--color-cyan-neon);
  font-family: var(--font-body);
  font-size: clamp(10px, 2.7vw, 12px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-text-ice);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 0 14px rgba(0, 239, 255, 0.42),
    0 6px 14px rgba(3, 11, 43, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@keyframes cyberHologramScanIn {
  0% {
    opacity: 0.88;
    filter: brightness(1.18) saturate(1.25);
    transform: translateY(7px) scale(0.985);
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: translateY(0) scale(1);
  }
}

/* ================= 4. PERSONAL BEST GLASS CARD ================= */
#screen-main-menu #menu-best-card {
  width: 100%;
  max-width: 344px;
  background: var(--glass-bg);
  border: var(--glass-border-width) solid var(--glass-border-gold);
  border-radius: var(--radius-card);
  padding: clamp(9px, 1.3dvh, 13px) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow:
    var(--glass-glow-gold),
    inset 0 0 0 1px rgba(254, 240, 138, 0.2);
  backdrop-filter: blur(8px);
}

body[data-identity-preset="preset-b"] #screen-main-menu #menu-best-card {
  animation: cyberHologramScanIn 260ms var(--ease-spring) both;
}

body[data-identity-preset="preset-b"] #screen-main-menu .btn-cta-wide {
  animation: cyberHologramScanIn 280ms var(--ease-spring) 40ms both;
}

body[data-identity-preset="preset-b"] #screen-main-menu #btn-play-now {
  animation: cyberHologramScanIn 280ms var(--ease-spring) 40ms both, arcadeCtaPulse 2.8s ease-in-out 320ms infinite;
}

#screen-main-menu .menu-best-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

#screen-main-menu .menu-best-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

#screen-main-menu .menu-best-kicker {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-gold-neon);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

#screen-main-menu #menu-mode-badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 239, 255, 0.14);
  border: 1px solid rgba(0, 239, 255, 0.45);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #bae6fd;
  white-space: nowrap;
}

#screen-main-menu #menu-best-value {
  font-family: 'Orbitron', var(--font-title);
  font-size: clamp(27px, 3.8dvh, 34px);
  line-height: 1.04;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  text-shadow:
    0 2px 0 #1e1b4b,
    0 0 14px rgba(255, 255, 255, 0.28);
  transition: transform 140ms var(--ease-spring);
}

#screen-main-menu #menu-best-value.is-counting {
  transform: scale(1.03);
}

#screen-main-menu #menu-best-icon {
  width: clamp(54px, 7.2dvh, 64px);
  height: clamp(54px, 7.2dvh, 64px);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(255, 200, 61, 0.56));
}

/* ================= 5 & 6. PRIMARY ACRYLIC CTAs ================= */
#screen-main-menu .menu-cta-stack {
  width: 100%;
  max-width: 356px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5dvh, 14px);
}

#screen-main-menu .btn-cta-wide {
  position: relative;
  width: 100%;
  min-width: 68px;
  min-height: 68px;
  border-radius: var(--radius-cta);
  padding: 8px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  overflow: hidden;
  transition:
    transform 120ms var(--ease-spring),
    box-shadow 120ms var(--ease-spring),
    filter 120ms ease;
}

#screen-main-menu .btn-cta-wide[hidden] {
  display: none !important;
}

#screen-main-menu .btn-cta-wide .cta-text-col {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.04;
}

#screen-main-menu .btn-cta-wide .cta-icon-right {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* 5. RESUME GAME - Cyan->Blue Gradient, Glossy Top, Purple Rim, Bolt on Right */
#screen-main-menu #btn-resume-game {
  max-width: 344px;
  min-height: 68px;
  --btn-bg: var(--grad-cta-resume);
  --btn-lip: #1e3a8a;
  background: var(--btn-bg);
  border: 2.5px solid #a855f7;
  box-shadow:
    0 7px 0 var(--btn-lip),
    0 0 0 2px rgba(34, 211, 238, 0.62),
    0 0 24px rgba(56, 189, 248, 0.56),
    0 12px 24px rgba(4, 8, 36, 0.6),
    inset 0 4px 0 rgba(255, 255, 255, 0.55);
}

#screen-main-menu #btn-resume-game .cta-main {
  font-family: var(--font-button);
  font-size: clamp(21px, 3.1dvh, 25px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow:
    0 2px 0 #1e1b4b,
    0 4px 10px rgba(0, 0, 0, 0.42);
}

#screen-main-menu #btn-resume-game .cta-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: rgba(240, 249, 255, 0.94);
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

#screen-main-menu #btn-resume-game #icon-resume {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0, 239, 255, 0.62));
}

#screen-main-menu #btn-resume-game:active {
  transform: translateY(5px) scale(0.96);
  filter: brightness(1.16);
  box-shadow:
    0 2px 0 var(--btn-lip),
    0 0 0 2px rgba(34, 211, 238, 0.72),
    0 0 28px rgba(56, 189, 248, 0.72),
    inset 0 4px 0 rgba(255, 255, 255, 0.55);
}

/* 6. PLAY NOW - Dominant Orange->Pink Gradient, Gold Rim, Edge Spark Glints & Pulse */
#screen-main-menu #btn-play-now {
  min-height: 78px;
  padding: 10px 24px;
  --btn-bg: var(--grad-cta-play);
  --btn-lip: #881337;
  background: var(--btn-bg);
  border: 2.5px solid #fde047;
  box-shadow:
    0 8px 0 var(--btn-lip),
    0 0 0 2px rgba(251, 191, 36, 0.55),
    0 0 28px var(--arcade-orange-glow),
    0 0 40px rgba(255, 61, 154, 0.44),
    0 16px 28px rgba(4, 8, 36, 0.65),
    inset 0 4px 0 rgba(255, 255, 255, 0.55);
  animation: arcadeCtaPulse 2.8s ease-in-out infinite;
}

#screen-main-menu #btn-play-now .cta-main {
  font-family: var(--font-button);
  font-size: clamp(26px, 3.8dvh, 32px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow:
    0 2.5px 0 #580b25,
    0 4px 10px rgba(0, 0, 0, 0.48);
}

#screen-main-menu #btn-play-now .cta-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 247, 237, 0.92);
  text-shadow: 0 1px 3px rgba(88, 11, 37, 0.65);
}

#screen-main-menu #btn-play-now #icon-play {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 3px 8px rgba(88, 11, 37, 0.6));
}

/* Subtle 4-point edge spark glints on PLAY NOW rim */
#screen-main-menu .cta-glint {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, #ffffff 0%, #fef08a 38%, transparent 72%);
  clip-path: polygon(
    50% 0%, 60% 40%, 100% 50%, 60% 60%,
    50% 100%, 40% 60%, 0% 50%, 40% 40%
  );
  opacity: 0.9;
}

#screen-main-menu .cta-glint-tr {
  top: 4px;
  right: 26px;
  animation: arcadeStarTwinkle 2.6s ease-in-out infinite;
}

#screen-main-menu .cta-glint-bl {
  bottom: 5px;
  left: 34px;
  width: 14px;
  height: 14px;
  animation: arcadeStarTwinkleAlt 3.2s ease-in-out infinite;
}

#screen-main-menu #btn-play-now:hover {
  animation-play-state: paused;
  filter: brightness(1.08);
}

#screen-main-menu #btn-play-now:active {
  animation: none;
  transform: translateY(6px) scale(0.96);
  filter: brightness(1.18);
  box-shadow:
    0 2px 0 var(--btn-lip),
    0 0 0 2px rgba(251, 191, 36, 0.72),
    0 0 34px var(--arcade-orange-glow),
    inset 0 4px 0 rgba(255, 255, 255, 0.55);
}

/* ================= 7. BOTTOM ROW WITH OVERLAPPING ART ================= */
#screen-main-menu .menu-footer-bar {
  width: 100%;
  max-width: 368px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 26px 2px 6px;
  z-index: 4;
}

#screen-main-menu .menu-footer-btn {
  position: relative;
  width: 100%;
  min-width: 68px;
  min-height: 68px;
  border-radius: var(--radius-cta);
  padding: 28px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  overflow: visible;
  transition:
    transform 120ms var(--ease-spring),
    box-shadow 120ms var(--ease-spring),
    filter 120ms ease;
}

#screen-main-menu .menu-footer-art {
  position: absolute;
  top: -29px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 64px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 5px 10px rgba(4, 8, 36, 0.56));
}

#screen-main-menu .menu-footer-label {
  position: relative;
  z-index: 4;
  font-family: var(--font-button);
  font-size: clamp(14px, 3.7vw, 16px);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(8, 12, 38, 0.72);
}

#screen-main-menu #menu-btn-leaderboards {
  --btn-bg: var(--grad-cta-ranks);
  --btn-lip: #172554;
  background: var(--btn-bg);
  border: 2px solid var(--arcade-cyan);
  box-shadow:
    0 7px 0 var(--btn-lip),
    0 0 20px rgba(34, 211, 238, 0.44),
    0 12px 22px rgba(4, 8, 36, 0.58),
    inset 0 4px 0 rgba(255, 255, 255, 0.45);
}

#screen-main-menu #menu-btn-themes {
  --btn-bg: var(--grad-cta-modes);
  --btn-lip: #14532d;
  background: var(--btn-bg);
  border: 2px solid #a855f7;
  box-shadow:
    0 7px 0 var(--btn-lip),
    0 0 20px rgba(139, 92, 246, 0.48),
    0 12px 22px rgba(4, 8, 36, 0.58),
    inset 0 4px 0 rgba(255, 255, 255, 0.45);
}

#screen-main-menu .menu-footer-btn:active {
  transform: translateY(5px) scale(0.96);
  filter: brightness(1.16);
  box-shadow:
    0 2px 0 var(--btn-lip),
    0 0 24px rgba(34, 211, 238, 0.52),
    inset 0 4px 0 rgba(255, 255, 255, 0.45);
}

/* ================= RESPONSIVE TUNING (360x800, 390x844, 430x932 & short) ================= */
@media (max-width: 375px) {
  #screen-main-menu .menu-title-img {
    width: 84vw;
  }
  #screen-main-menu .menu-mascot {
    width: 76px;
    height: 78px;
    right: 0;
    top: -4px;
  }
}

@media (max-height: 740px) {
  #screen-main-menu .menu-emblem-stage {
    height: 82px;
    margin-bottom: 2px;
  }
  #screen-main-menu .menu-logo-svg {
    width: 80px;
    height: 80px;
  }
  #screen-main-menu .menu-emblem-ring {
    width: 96px;
    height: 96px;
    margin-left: -48px;
    margin-top: -48px;
  }
  #screen-main-menu .menu-mascot {
    width: 74px;
    height: 76px;
    top: -4px;
  }
  #screen-main-menu #menu-best-card {
    padding: 8px 16px;
  }
  #screen-main-menu .menu-footer-bar {
    padding-top: 22px;
  }
}

/* ================= ACCESSIBILITY: REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  #screen-main-menu .menu-mascot,
  #screen-main-menu .menu-emblem-ring,
  #screen-main-menu #btn-play-now,
  #screen-main-menu .cta-glint,
  body[data-identity-preset="preset-b"] #screen-main-menu #menu-best-card,
  body[data-identity-preset="preset-b"] #screen-main-menu .btn-cta-wide,
  body[data-identity-preset="preset-b"] #screen-main-menu #btn-play-now {
    animation: none !important;
  }
  #screen-main-menu .btn-cta-wide,
  #screen-main-menu .menu-footer-btn,
  #screen-main-menu #menu-btn-settings,
  #screen-main-menu #menu-btn-noads,
  #screen-main-menu #menu-best-value {
    transition: none !important;
  }
}
