:root {
  --mc-bg: #090a0d;
  --mc-card: rgba(22, 24, 29, 0.94);
  --mc-border: rgba(255, 255, 255, 0.12);
  --mc-text: #f8fafc;
  --mc-muted: #cbd5e1;
  --mc-green: #2ecc71;
  --mc-green-hover: #27ae60;
  --mc-blue: #4a90e2;
  --mc-gold: #f39c12;
  --mc-danger: #e74c3c;
  --mc-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
  --mc-radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overscroll-behavior: none;
  background: var(--mc-bg);
  color: var(--mc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
  pointer-events: none !important;
}

/* The viewport is the game surface, including menus, dialogs and controls.
   A portrait phone gets the same landscape layout without browser fullscreen. */
body {
  position: fixed;
  inset: var(--game-offset-y, 0px) auto auto var(--game-offset-x, 0px);
  width: var(--game-width, 100vw);
  height: var(--game-height, 100dvh);
  container: game / size;
  transform-origin: 0 0;
}

body.mc-virtual-landscape {
  transform: translateX(var(--game-height)) rotate(90deg);
}

/* Avoid a portrait flash while the application module is still loading. */
@media (pointer: coarse) and (orientation: portrait) {
  body:not(.mc-display-ready) {
    width: 100dvh;
    height: 100vw;
    transform: translateX(100vw) rotate(90deg);
  }
}

/* Fullscreen Game Canvas */
#mc-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* =========================================================
   IN-GAME HUD (Almost Transparent Panels + Discreet Mini-Task)
   ========================================================= */
#mc-hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.mc-hud-top-left {
  position: fixed;
  top: 10px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 245px;
  pointer-events: none;
}

/* Transparent Leaderboard (Top-Right Corner, compact & crisp legible text) */
#mc-leaderboard {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 174px;
  max-width: 186px;
  pointer-events: none;
}

.mc-leader-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
}

#mc-leaderboard h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  color: #ffffff;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92);
}

.mc-leader-head {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 20px 22px 30px;
  column-gap: 3px;
  align-items: center;
  padding: 0 2px 1px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(203, 213, 225, 0.65);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.mc-leader-head .mc-col-level,
.mc-leader-head .mc-col-kills {
  text-align: center;
  font-size: 7.5px;
  color: rgba(203, 213, 225, 0.65);
}

.mc-leader-head .mc-col-mass {
  text-align: right;
  font-size: 7.5px;
  color: rgba(203, 213, 225, 0.65);
}

#mc-leader-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.24;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92);
}

#mc-leader-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 20px 22px 30px;
  column-gap: 3px;
  align-items: center;
  white-space: nowrap;
  padding: 0.5px 2px;
  border-radius: 4px;
}

.mc-col-rank {
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 10px;
  color: #cbd5e1;
}

#mc-leader-list li.is-top-1 .mc-col-rank,
#mc-leader-list li.is-top-2 .mc-col-rank,
#mc-leader-list li.is-top-3 .mc-col-rank {
  color: #cbd5e1;
  font-weight: 600;
}

.mc-col-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #ffffff;
}

.mc-col-level {
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-weight: 600;
  color: rgba(196, 181, 253, 0.85);
}

.mc-col-kills {
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.78);
}

.mc-col-mass {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 400;
  color: #cbd5e1;
  white-space: nowrap;
}

#mc-leader-list li.is-self {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
}

#mc-leader-list li.is-self .mc-col-rank,
#mc-leader-list li.is-self .mc-col-player,
#mc-leader-list li.is-self .mc-col-level,
#mc-leader-list li.is-self .mc-col-kills,
#mc-leader-list li.is-self .mc-col-mass {
  color: #ffffff;
}

/* Top-Center #1 Final Challenge Banner (Almost Transparent) */
.mc-hud-top-center {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 12;
  pointer-events: none;
}

#mc-leader-banner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 20, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.96);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

#mc-match-notice {
  background: rgba(18, 20, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.96);
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Top-Right Corner: Menu Return Button + Compact Discreet Mini-Task */
.mc-hud-top-right {
  position: fixed;
  top: 10px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.mc-hud-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.90);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto;
}

.mc-hud-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Compact Discreet Mini-Task Box in Top-Left Corner (Below Menu Button) */
#mc-quest-box {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 4px 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  max-width: 240px;
  pointer-events: none;
}

#mc-hud #mc-quest-box {
  display: block;
  background: rgba(18, 20, 26, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 5px 9px;
  box-shadow: none;
  max-width: 240px;
  pointer-events: none;
}

.mc-quest-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.25;
}

.mc-quest-obj {
  flex: 1;
  font-weight: 600;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-quest-inline-prog {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
}

#mc-quest-reward {
  font-size: 11px;
  font-weight: 700;
  color: #fde047;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
  white-space: nowrap;
}

.mc-quest-toggle-btn {
  display: none;
}

#mc-quest-details {
  margin-top: 4px;
}

.mc-quest-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0;
}

#mc-quest-fill {
  width: 0%;
  height: 100%;
  background: #10b981;
  transition: width 0.2s ease;
}

#mc-quest-progress-text {
  display: none;
}

/* Own Position Integrated Directly Inside Top-Right Leaderboard Below Last Line (Discreet, normal weight, no border/bg) */
#mc-rank,
.mc-self-rank-line {
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  color: #e2e8f0;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.96);
  pointer-events: none;
  white-space: nowrap;
}

.mc-rank-num {
  font-weight: 800;
  color: #ffffff;
}

/* Bottom-Center Simple Pill HUD (Like Classic Agar.io / Munchy.io) */
#mc-progress-container,
.mc-stats-cluster {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 18px;
  background: rgba(18, 20, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: none;
  pointer-events: none;
}

.mc-stat-item {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  line-height: 1.1;
}

.mc-stat-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.90);
}

.mc-stat-num {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.90);
  transition: transform 0.14s ease, color 0.14s ease;
}

.mc-level-ring-wrap {
  position: relative;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mc-progress-container.is-level-up .mc-level-ring-wrap {
  animation: mc-level-pop 440ms ease-out;
}

.mc-level-ring-svg {
  display: none !important;
}

.mc-ring-track {
  fill: rgba(14, 16, 22, 0.65);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 4.5;
}

.mc-ring-progress {
  fill: none;
  stroke: url(#mc-miyuki-ring-grad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 175.93;
  stroke-dashoffset: 175.93;
  transition: stroke-dashoffset 0.12s ease-out;
}

#mc-progress-container.is-level-up .mc-ring-progress {
  stroke: #34d399;
}

.mc-level-ring-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  line-height: 1.1;
  text-align: center;
}

.mc-level-num {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.90);
  margin: 0;
}

.mc-ring-sub {
  display: none !important;
}

/* Quick Toggle Button for Manual Feed Direction (Hidden: Feed always shoots forward) */
.mc-feed-dir-btn {
  display: none !important;
  position: fixed;
  bottom: 24px;
  left: calc(50% + 128px);
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #1e1b4b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.1s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.mc-feed-dir-btn:hover {
  background: rgba(255, 255, 255, 0.72);
}

.mc-feed-dir-btn:active {
  transform: scale(0.95);
}

.mc-feed-dir-btn[data-mode="back"] {
  background: rgba(237, 233, 254, 0.58);
  border-color: rgba(124, 58, 237, 0.55);
  color: #4c1d95;
}

.mc-feed-dir-arrow {
  font-size: 10px;
  line-height: 1;
  color: #7c3aed;
}

.mc-feed-dir-btn[data-mode="back"] .mc-feed-dir-arrow {
  color: #10b981;
}

.mc-feed-dir-key {
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #4c1d95;
}

/* Discreet Minimap in Bottom-Right Corner (138x138 on Desktop) */
.mc-minimap-wrap {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 138px;
  height: 138px;
  border-radius: 10px;
  background: rgba(14, 15, 19, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  pointer-events: none;
}

#mc-minimap {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile Touch Controls (Hidden on desktop mouse devices) */
#mc-mobile-controls {
  display: none;
  pointer-events: none;
}

#mc-hud:not([hidden]) ~ #acct-btn,
body.mc-in-match #acct-btn {
  display: none !important;
}

/* Touch controls only on touch-first devices (phones/tablets). A narrow
   desktop window with a mouse keeps keyboard/mouse play without them. */
@media (pointer: coarse) {
  #mc-mobile-controls {
    display: block;
  }
}

@media (pointer: coarse), (max-width: 820px) {
  #mc-leaderboard {
    width: 140px;
    max-width: 150px;
    padding: 4px 6px;
    background: rgba(14, 16, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #mc-leaderboard h2 {
    font-size: 12px;
  }
  .mc-leader-head {
    grid-template-columns: 14px minmax(0, 1fr) 18px 20px 27px;
    column-gap: 2px;
    font-size: 7px;
  }
  #mc-leader-list {
    font-size: 9.5px;
    line-height: 1.25;
  }
  #mc-leader-list li {
    grid-template-columns: 14px minmax(0, 1fr) 18px 20px 27px;
    column-gap: 2px;
  }
  /* Show only top 5 + self on small screens so leaderboard doesn't cover gameplay */
  #mc-leader-list li:nth-child(n+6) {
    display: none;
  }
  #mc-leader-list li.is-self {
    display: grid !important;
  }
  #mc-rank,
  .mc-self-rank-line {
    font-size: 9.5px;
    margin-top: 2px;
    padding: 0;
  }
  #mc-quest-box,
  #mc-hud #mc-quest-box {
    max-width: 155px;
    padding: 3px 6px;
    font-size: 10.5px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .mc-quest-obj {
    font-size: 10.5px;
  }
  /* Place stats cluster in top-center on portrait mobile so thumbs don't cover it */
  #mc-progress-container,
  .mc-stats-cluster {
    position: fixed;
    bottom: auto;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    padding: 3px 10px;
    background: rgba(14, 16, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    z-index: 25;
  }
  .mc-level-ring-wrap {
    width: auto;
    height: auto;
  }
  .mc-stat-num,
  .mc-level-num {
    font-size: 11.5px;
  }
  /* Compact minimap right above mobile BOOST button with semi-transparency */
  .mc-minimap-wrap {
    width: 74px;
    height: 74px;
    right: 14px;
    bottom: 110px;
    opacity: 0.70;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (pointer: coarse), (max-width: 820px) {
@container game (orientation: landscape) {
  /* In landscape mobile, stats cluster stays comfortably at the bottom center */
  #mc-progress-container,
  .mc-stats-cluster {
    top: auto;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
  }
  .mc-minimap-wrap {
    bottom: 110px;
  }
}

@container game (orientation: portrait) {
  /* Reserve the first row for Menu and stats; the leaderboard starts below it. */
  .mc-hud-top-left {
    top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .mc-hud-top-right {
    top: calc(44px + env(safe-area-inset-top, 0px));
  }
  #mc-progress-container {
    top: calc(8px + env(safe-area-inset-top, 0px));
  }
  #mc-hud #mc-quest-box {
    max-width: min(155px, calc(100cqw - 178px));
  }
  .mc-hud-top-center {
    top: calc(190px + env(safe-area-inset-top, 0px));
    max-width: calc(100cqw - 24px);
  }
}
}

#mc-joystick-zone {
  position: fixed;
  left: 16px;
  bottom: 24px;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  z-index: 30;
}

#mc-joystick-zone.is-resetting {
  transition: left 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), top 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), bottom 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

#mc-joystick-base {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(15, 20, 28, 0.72) 100%);
  border: 2px solid rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.50), inset 0 0 18px rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#mc-joystick-stick {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4ade80 0%, #16a34a 70%, #15803d 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.60), 0 4px 10px rgba(0, 0, 0, 0.40);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.mc-mobile-actions {
  position: fixed;
  right: 18px;
  bottom: 24px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  z-index: 30;
}

.mc-touch-btn {
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

/* Invisible Hitbox Expansion: Thumb never misses the button even when tapping fast */
.mc-touch-btn::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}

.mc-touch-feed {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 65%, #0369a1 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.55), inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.mc-touch-boost {
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 35% 30%, #4ade80 0%, #16a34a 65%, #15803d 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 26px rgba(34, 197, 94, 0.55), inset 0 3px 6px rgba(255, 255, 255, 0.65), inset 0 -3px 5px rgba(0, 0, 0, 0.35);
}

.mc-touch-btn.is-active {
  transform: scale(0.91);
  filter: brightness(1.18);
}

.mc-touch-feed.is-active {
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.70), inset 0 2px 8px rgba(0, 0, 0, 0.40);
}

.mc-touch-boost.is-active {
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.80), inset 0 2px 8px rgba(0, 0, 0, 0.40);
}

.mc-touch-icon {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.mc-touch-btn strong {
  font-size: 10px;
  font-weight: 900;
  margin-top: 3px;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.60);
}

/* =========================================================
   MAIN MENU OVERLAY (Clean White Card, Classic Look)
   ========================================================= */
#mc-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 62px 16px 16px;
  background: transparent;
  pointer-events: auto;
}

/* Top-Right Corner Bar: Audio & Language (Positioned above central modal, lower z-index than .mc-menu-card) */
.mc-corner-bar {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #16181d;
  background-image:
    linear-gradient(180deg, rgba(24, 26, 32, 0.92) 0%, rgba(15, 17, 22, 0.95) 100%),
    url('/dark-charcoal.jpg');
  background-size: cover;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}

.mc-audio-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.mc-icon-btn.is-muted {
  opacity: 0.55;
}

.mc-audio-group input[type="range"] {
  width: 56px;
  accent-color: #10b981;
  cursor: pointer;
}

#mc-lang-select {
  background: #101217;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  cursor: pointer;
}

/* Central Translucent Card */
.mc-menu-card {
  position: relative;
  z-index: 30;
  width: min(510px, 95cqw);
  max-height: calc(100cqh - 78px);
  overflow-y: auto;
  background-color: #16181d;
  background-image:
    linear-gradient(180deg, rgba(24, 26, 32, 0.93) 0%, rgba(14, 16, 20, 0.96) 100%),
    url('/dark-charcoal.jpg');
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mc-radius);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.85);
  padding: 18px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mc-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fde047;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 13px;
}

.mc-vip-pill {
  background: #2ecc71;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 4px;
}

.mc-tabs {
  display: flex;
  gap: 6px;
  background: rgba(9, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 10px;
}

.mc-tab-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.mc-tab-btn.is-active {
  background: #242731;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.mc-title-block {
  text-align: center;
  margin: 2px 0;
}

.mc-title {
  margin: 0;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.8px;
}

.mc-subtitle {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: #cbd5e1;
}

/* TAB 1: PLAY */
.mc-play-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mc-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#mc-avatar-preview {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 45%, #161a24 0%, #0e1015 72%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.65);
  display: block;
}

.mc-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.mc-small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #22252f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
}

.mc-small-btn:hover {
  background: #2c303d;
}

.mc-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#mc-name-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  outline: none;
  color: #ffffff;
  background: #0e1015;
}

#mc-name-input::placeholder {
  color: #64748b;
}

#mc-name-input:focus {
  border-color: #10b981;
  background: #12151c;
}

.mc-green-play-btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: var(--mc-green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  transition: background 0.15s ease, transform 0.1s ease;
}

.mc-green-play-btn:hover {
  background: var(--mc-green-hover);
}

.mc-green-play-btn:active {
  transform: translateY(1px);
}

.mc-choose-skin-link {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px;
  text-align: center;
}

.mc-choose-skin-link:hover {
  text-decoration: underline;
}

.mc-controls-hint {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(10, 12, 16, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  text-align: center;
}

.mc-controls-hint p {
  margin: 2px 0;
}

/* TAB 2: SKINS GRID ON DARK BACKGROUND */
.mc-skins-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.mc-skin-cat-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mc-cat-pill {
  background: #20232c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  cursor: pointer;
}

.mc-cat-pill.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f172a;
}

.mc-skin-preview-status {
  font-size: 11.5px;
  color: #e2e8f0;
  background: rgba(10, 12, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mc-skin-preview-status.is-locked-preview {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.42);
  color: #fde047;
}

.mc-inline-buy-skin-btn {
  background: var(--mc-green);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(46, 204, 113, 0.28);
}

.mc-inline-buy-skin-btn:hover {
  background: var(--mc-green-hover);
}

.mc-section-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.mc-skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 8px;
  max-height: min(240px, calc(100cqh - 340px));
  min-height: 120px;
  overflow-y: auto;
  padding: 4px 2px;
}

.mc-skin-item {
  background: rgba(14, 16, 22, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
  position: relative;
}

.mc-skin-item:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(26, 29, 38, 0.92);
  transform: translateY(-1px);
}

.mc-skin-item.is-selected {
  border-color: var(--mc-green);
  background: rgba(16, 185, 129, 0.16);
}

.mc-skin-item.is-previewing:not(.is-selected) {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
}

.mc-skin-cat-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #94a3b8;
}

.mc-skin-name {
  font-size: 11.2px;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
  line-height: 1.15;
}

.mc-skin-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.10);
  color: #cbd5e1;
}

.mc-skin-tag.tag-selected {
  background: var(--mc-green);
  color: #ffffff;
}

.mc-skin-tag.tag-price {
  background: rgba(251, 191, 36, 0.18);
  color: #fde047;
}

.mc-skin-tag.tag-vip {
  background: rgba(251, 191, 36, 0.22);
  color: #fde047;
}

.mc-skin-deficit {
  font-size: 9.2px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.1;
}

.mc-payment-test-banner {
  background: rgba(10, 12, 16, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 8px 11px;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mc-payment-test-banner strong {
  color: #ffffff;
  font-size: 12px;
}

.mc-checkout-test-note {
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  font-size: 12px;
  color: #fde047;
  line-height: 1.35;
}

.mc-btn-disabled,
button:disabled {
  background: #272b36 !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* TAB 3: COINS & VIP */
.mc-shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(14, 16, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.mc-shop-item strong {
  display: block;
  font-size: 13.5px;
  color: #f8fafc;
}

.mc-shop-item p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #cbd5e1;
}

.mc-shop-vip {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.42);
}

.mc-buy-btn {
  background: var(--mc-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mc-buy-vip {
  background: #f39c12;
}

/* DISCREET BOTTOM BANNER AD (468x60 desktop / 320x50 mobile) */
.mc-discreet-ad {
  width: 100%;
  max-width: 468px;
  min-height: 50px;
  margin: 2px auto 0;
  padding: 6px 12px;
  background: rgba(10, 12, 16, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.mc-ad-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.mc-ad-copy {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-ad-no-ads-link {
  background: #22252f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #f8fafc;
  cursor: pointer;
}

.mc-ad-no-ads-link:hover {
  background: #2e3240;
}

/* =========================================================
   DARK CHARCOAL MODALS (Avatar Crop, Rare Interstitial, Checkout, Victory)
   ========================================================= */
.mc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 5, 8, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mc-modal-card {
  width: min(400px, 94cqw);
  max-height: calc(100cqh - 32px);
  overflow-y: auto;
  background-color: #16181d;
  background-image:
    linear-gradient(180deg, rgba(24, 26, 32, 0.95) 0%, rgba(14, 16, 20, 0.98) 100%),
    url('/dark-charcoal.jpg');
  background-size: cover;
  color: #f8fafc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.85);
  text-align: center;
}

#acct-form {
  max-height: calc(100cqh - 32px);
  overflow-y: auto;
}

.mc-buy-skin-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0 8px;
}

#mc-buy-skin-canvas {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: #0e1015;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mc-buy-skin-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.mc-modal-card h2,
.mc-modal-card h1 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #ffffff;
}

.mc-modal-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.mc-crop-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

#mc-crop-canvas {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e1015;
  cursor: grab;
  touch-action: none;
}

#mc-crop-canvas:active {
  cursor: grabbing;
}

.mc-crop-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #e2e8f0;
}

.mc-crop-slider-row,
.mc-crop-ring-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mc-crop-slider-row input[type="range"] {
  flex: 1;
  accent-color: #10b981;
}

.mc-ring-swatches {
  display: flex;
  gap: 6px;
}

.mc-ring-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.mc-ring-swatch.is-active {
  box-shadow: 0 0 0 2px #10b981;
  transform: scale(1.1);
}

.mc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.mc-btn-secondary {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #22252f;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Interstitial Ad Modal (Immediate Close / Skip Button) */
.mc-interstitial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mc-close-ad-btn {
  background: #22252f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mc-close-ad-btn:hover {
  background: #2d313e;
}

.mc-interstitial-body {
  padding: 16px 12px;
  background: rgba(10, 12, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.mc-interstitial-graphic {
  font-size: 28px;
  margin-bottom: 8px;
}

/* Checkout & Victory */
.mc-checkout-box,
.mc-victory-reward-box {
  background: rgba(10, 12, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f8fafc;
}

.mc-checkout-price,
#mc-victory-reward {
  font-size: 18px;
  font-weight: 800;
  color: #34d399;
}

.mc-victory-trophy {
  font-size: 46px;
  margin-bottom: 6px;
}

/* Custom Photo Quota Badges & VIP Modal */
.mc-photo-quota-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(46, 204, 113, 0.20);
  color: #4ade80;
  border: 1px solid rgba(46, 204, 113, 0.42);
}

.mc-photo-quota-badge.is-locked {
  background: rgba(245, 158, 11, 0.20);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.45);
}

.mc-photo-quota-badge.is-vip {
  background: linear-gradient(135deg, #fef08a, #fde047);
  color: #854d0e;
  border-color: #facc15;
}

.mc-photo-rule-hint {
  display: block;
  max-width: 146px;
  font-size: 10.5px;
  line-height: 1.3;
  color: #94a3b8;
  text-align: center;
}

.mc-crop-quota-banner {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-size: 11.5px;
  font-weight: 600;
  color: #fde047;
}

.mc-photo-vip-card {
  max-width: 390px;
}

.mc-photo-vip-icon {
  font-size: 36px;
  margin-bottom: 6px;
}

/* Menu Champions Leaderboard (Level 9 Hall of Fame) */
.mc-play-sublinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mc-sublink-dot {
  color: #64748b;
  font-size: 13px;
}

.mc-hall-quick-link {
  color: #fbbf24;
  font-weight: 700;
}

.mc-play-hall-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.mc-play-hall-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.36);
  font-size: 11px;
  color: #fde047;
}

.mc-play-hall-pill strong {
  color: #ffffff;
}

.mc-hall-header {
  text-align: center;
  margin-bottom: 10px;
}

.mc-hall-title {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.mc-hall-subtitle {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
}

.mc-hall-table-wrap {
  background: rgba(10, 12, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 12px;
  max-height: 235px;
  overflow-y: auto;
}

.mc-hall-head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  padding: 4px 6px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.mc-hall-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mc-hall-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 13px;
  color: #f8fafc;
}

.mc-hall-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}

.mc-hall-row.is-self {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-weight: 700;
}

.mc-hall-rank {
  font-weight: 800;
  color: #94a3b8;
  font-size: 12.5px;
}

.mc-hall-name {
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-hall-wins {
  font-weight: 800;
  color: #fde047;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.38);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
}

.mc-hall-self-status {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Toast */
#mc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100cqw - 24px);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  text-align: center;
  z-index: 60;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

@container game (max-width: 560px) {
  #mc-menu-overlay {
    padding: 54px 10px 12px;
  }
  .mc-menu-card {
    max-height: calc(100cqh - 66px);
    padding: 16px 16px 14px;
  }
  .mc-play-row {
    flex-direction: column;
  }
  .mc-corner-bar {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
  }
  .mc-audio-group input[type="range"] {
    width: 42px;
  }
  .mc-discreet-ad {
    max-width: 320px;
  }
}

/* Compact scale for mobile landscape viewports so menu card never crops off-screen */
@container game (max-height: 520px) {
  #mc-menu-overlay {
    padding: 4px 8px 6px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }
  .mc-corner-bar {
    top: 4px;
    right: 6px;
    padding: 2px 6px;
    transform: scale(0.80);
    transform-origin: top right;
  }
  .mc-corner-bar .mc-audio-group input[type="range"] {
    display: none;
  }
  #mc-menu-overlay .mc-menu-card,
  .mc-menu-card {
    max-height: 94cqh;
    padding: 8px 16px 8px !important;
    gap: 4px !important;
    border-radius: 12px;
    transform: scale(0.76);
    transform-origin: center center;
  }
  .mc-menu-card .mc-title {
    font-size: 20px;
    margin: 0;
  }
  .mc-subtitle {
    font-size: 10px;
    margin-bottom: 2px;
  }
  .mc-tabs {
    margin-bottom: 4px;
  }
  .mc-tab-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
  .mc-play-row {
    flex-direction: row;
    gap: 12px;
  }
  #mc-avatar-preview {
    width: 72px;
    height: 72px;
  }
  .mc-green-play-btn {
    padding: 8px 16px;
    font-size: 15px;
  }
}

/* Circle Lights, Tongues & Outer Ring Effects */
.mc-cat-pill-tongues {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.42);
  color: #fda4af;
  font-weight: 700;
}

.mc-cat-pill-tongues.is-active {
  background: #e11d48;
  border-color: transparent;
  color: #ffffff;
}

.mc-tongue-quick-link {
  color: #fb7185 !important;
  font-weight: 700;
}

.mc-tongue-item {
  border-color: rgba(244, 63, 94, 0.32);
  background: linear-gradient(180deg, rgba(32, 18, 26, 0.88), rgba(16, 15, 22, 0.92));
}

.mc-tongue-item.is-vip-effect {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(180deg, rgba(34, 26, 16, 0.88), rgba(24, 16, 26, 0.92));
}

.mc-tongue-item.is-vip-effect .mc-skin-cat-badge {
  color: #fde047;
  font-weight: 800;
}

.mc-cat-pill-rings {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.20), rgba(6, 182, 212, 0.20));
  border-color: rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
  font-weight: 700;
}

.mc-cat-pill-rings.is-active {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-color: transparent;
  color: #ffffff;
}

.mc-ring-quick-link {
  color: #c084fc !important;
  font-weight: 700;
}

.mc-ring-effect-item {
  border-color: rgba(168, 85, 247, 0.32);
  background: linear-gradient(180deg, rgba(22, 20, 36, 0.88), rgba(15, 16, 24, 0.92));
}

.mc-ring-effect-item.is-vip-effect {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(180deg, rgba(34, 26, 16, 0.88), rgba(24, 16, 26, 0.92));
}

.mc-ring-effect-item.is-vip-effect .mc-skin-cat-badge {
  color: #fde047;
  font-weight: 800;
}

/* ===================================================================== */
/* PROFESSIONAL MIYÜKI MENU REFINEMENT & MULTI-GAME LAUNCHER / ASHBOUND  */
/* ===================================================================== */
#mc-menu-overlay {
  background: radial-gradient(circle at 50% 45%, rgba(8, 9, 12, 0.36) 0%, rgba(2, 3, 5, 0.82) 100%);
}

#mc-menu-overlay .mc-menu-card {
  width: min(440px, 94cqw);
  padding: 22px 24px;
  background-color: #16181d;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(24, 26, 32, 0.94) 0%, rgba(14, 16, 20, 0.97) 100%),
    url('/dark-charcoal.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(167, 243, 208, 0.18);
  border-radius: 18px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  color: #f8fafc;
}

#mc-menu-overlay .mc-title {
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 25%, #a7f3d0 85%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
}

#mc-menu-overlay .mc-green-play-btn {
  background: linear-gradient(135deg, #10b981, #047857);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(16, 185, 129, 0.16);
  font-weight: 700;
  letter-spacing: 0;
}

#mc-menu-overlay .mc-green-play-btn:hover {
  background: linear-gradient(135deg, #13c58b, #058461);
}

/* Back to Games Hub button in the top-right of the Miyüki menu card header */
.mc-launcher-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mc-launcher-switch-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

#mc-menu-overlay .mc-tabs {
  width: 100%;
}

#mc-menu-overlay .mc-tab-btn {
  flex: 1;
  text-align: center;
}

/* Hide cluttered / AI-looking badges, boxes, and secondary banners for a clean classic look */
.arcade-feature-tags,
.mc-photo-quota-badge,
.mc-photo-rule-hint,
#mc-choose-ring-btn,
.mc-sublink-dot,
.mc-hall-quick-link,
#mc-play-hall-preview,
.mc-controls-hint,
.mc-discreet-ad {
  display: none !important;
}

.arcade-launcher-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background-color: #121315;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(20, 21, 24, 0.38) 0%, rgba(6, 7, 9, 0.82) 100%),
    url('/dark-charcoal.jpg');
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  overflow-y: auto;
}

.arcade-launcher-backdrop[hidden],
.nw-overlay[hidden],
.nw-hud[hidden],
.nw-modal-backdrop[hidden] {
  display: none !important;
}

.arcade-launcher-shell {
  width: min(530px, 95cqw);
  background-color: #16171a;
  background-image:
    linear-gradient(180deg, rgba(24, 25, 29, 0.88) 0%, rgba(12, 13, 16, 0.94) 100%),
    url('/dark-charcoal.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.90), 0 4px 20px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.arcade-launcher-header {
  text-align: center;
  margin-bottom: 16px;
}

.arcade-title {
  margin: 0 0 5px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.arcade-subtitle {
  margin: 0;
  color: #a1a1aa;
  font-size: 13.5px;
  font-weight: 500;
}

.arcade-games-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.arcade-game-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
}

.arcade-card-Art {
  position: relative;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background-color: #141518;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(28, 30, 34, 0.32) 0%, rgba(8, 9, 12, 0.76) 100%),
    url('/dark-charcoal.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.55), 0 12px 28px rgba(0, 0, 0, 0.42);
}

.arcade-card-Art canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arcade-card-body {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arcade-feature-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.arcade-feature-tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.arcade-play-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.arcade-play-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.arcade-btn-miyuki {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.32);
}

/* ASHBOUND Overlay & Minimalist HUD */
.nw-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #272f29;
  user-select: none;
}

#nw-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
}

.nw-hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.nw-hud-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: auto;
}

.nw-vitals-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(18, 23, 20, 0.84);
  border: 1px solid rgba(229, 223, 197, 0.18);
  color: #e5dfc5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
}

.nw-vitals-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nw-hud-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(229, 223, 197, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #e5dfc5;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
}

.nw-standing-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-left: auto;
}

.nw-timer-text {
  font-size: 12px;
  font-weight: 800;
  color: #38d9c0;
}

.nw-bars-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nw-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nw-bar-label {
  width: 36px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.nw-bar-track {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.nw-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.15s ease;
}

.nw-fill-hp {
  background: #c84b4b;
}

.nw-fill-soul {
  background: #38d9c0;
}

.nw-hud-top-center {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nw-boss-banner {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(18, 23, 20, 0.84);
  border: 1px solid rgba(229, 223, 197, 0.22);
  color: #e5dfc5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nw-boss-banner[data-state="corpse"] {
  border-color: #38d9c0;
  color: #38d9c0;
}

.nw-intro-hint {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(18, 23, 20, 0.72);
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.nw-hud-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
}

.nw-leader-card {
  width: 210px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(18, 23, 20, 0.8);
  border: 1px solid rgba(229, 223, 197, 0.16);
  color: #e5dfc5;
}

.nw-leader-card h3 {
  margin: 0 0 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.nw-leader-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
}

.nw-leader-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  border-radius: 4px;
}

.nw-leader-list li.is-self {
  background: rgba(56, 217, 192, 0.16);
  border: 1px solid rgba(56, 217, 192, 0.38);
}

.nw-leader-list li.is-dead {
  opacity: 0.42;
  text-decoration: line-through;
}

.nw-hud-bottom {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nw-army-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(18, 23, 20, 0.86);
  border: 1px solid rgba(229, 223, 197, 0.24);
  color: #e5dfc5;
}

.nw-army-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.nw-army-total span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38d9c0;
}

.nw-army-total strong {
  font-size: 18px;
  font-weight: 900;
}

.nw-unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.nw-chip-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
}

.nw-chip-boss {
  border: 1px solid rgba(56, 217, 192, 0.35);
}

.nw-ability-dock {
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(18, 23, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nw-ability-dock[data-ready="corpses"] {
  border-color: #38d9c0;
  color: #38d9c0;
}

.nw-minimap-wrap {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(229, 223, 197, 0.26);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.nw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 16, 14, 0.84);
  backdrop-filter: blur(8px);
}

.nw-modal-card {
  width: 100%;
  max-width: 600px;
  padding: 24px 26px;
  border-radius: 16px;
  background: #181f1b;
  border: 1px solid rgba(229, 223, 197, 0.22);
  color: #e5dfc5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

.nw-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.nw-back-hub-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(229, 223, 197, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #e5dfc5;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.nw-fair-start-badge {
  font-size: 11px;
  font-weight: 700;
  color: #38d9c0;
  background: rgba(56, 217, 192, 0.12);
  border: 1px solid rgba(56, 217, 192, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.nw-brand-block {
  text-align: center;
  margin-bottom: 18px;
}

.nw-brand-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #38d9c0;
}

.nw-brand-title {
  margin: 4px 0 8px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #e3e0d1;
}

.nw-bone-stone-title {
  font-family: "Arial Black", "Impact", "Inter", sans-serif;
  color: #e3e0d1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow:
    0 3px 0 #141418,
    -2px -2px 0 #141418,
    2px -2px 0 #141418,
    -2px 2px 0 #141418,
    2px 2px 0 #141418,
    0 6px 18px rgba(0, 0, 0, 0.85);
}

@keyframes nwPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.97);
  }
}

.nw-pulse-start {
  margin: 4px 0 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  animation: nwPulse 1.45s ease-in-out infinite;
  cursor: pointer;
}

.nw-brand-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

.nw-lobby-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nw-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nw-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.nw-field input,
.nw-field select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(229, 223, 197, 0.2);
  background: #101512;
  color: #e5dfc5;
  font-size: 13.5px;
  font-weight: 700;
}

.nw-faction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nw-faction-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e5dfc5;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.nw-faction-btn.is-selected {
  border-color: var(--nw-swatch);
  background: rgba(56, 217, 192, 0.14);
}

.nw-swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--nw-swatch);
  flex-shrink: 0;
}

.nw-boss-tip-box {
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(56, 217, 192, 0.08);
  border: 1px solid rgba(56, 217, 192, 0.26);
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

.nw-start-battle-btn {
  padding: 13px 18px;
  border-radius: 8px;
  border: none;
  background: #38d9c0;
  color: #0e1715;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nw-gameover-card {
  text-align: center;
  max-width: 460px;
}

.nw-gameover-title {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nw-gameover-sub {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.nw-gameover-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.nw-gameover-stats div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nw-gameover-stats span {
  font-size: 11px;
  color: #94a3b8;
}

.nw-gameover-stats strong {
  font-size: 15px;
  color: #e5dfc5;
}

.nw-gameover-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.nw-btn-secondary {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(229, 223, 197, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #e5dfc5;
  font-weight: 800;
  cursor: pointer;
}

.nw-mobile-actions {
  display: none;
}

@container game (max-width: 760px) {
  .arcade-games-grid,
  .nw-field-row,
  .nw-faction-grid {
    grid-template-columns: 1fr;
  }
  .nw-mobile-actions {
    position: absolute;
    right: 14px;
    bottom: 165px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
  }
  .nw-mobile-btn {
    padding: 11px 15px;
    border-radius: 8px;
    border: none;
    font-weight: 800;
    font-size: 12px;
  }
  .nw-mobile-necro {
    background: #38d9c0;
    color: #0d1715;
  }
  .nw-mobile-charge {
    background: #e5dfc5;
    color: #161a18;
  }
}

/* Brief event-driven feedback; opacity preserves the phone menu's scale
   and the toast's centering transform. No continuously animated layers. */
@keyframes mc-soft-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mc-level-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.12); }
  65% { transform: scale(0.98); }
}

.mc-menu-card,
.mc-modal-card,
#mc-toast,
#mc-match-notice {
  animation: mc-soft-appear 180ms ease-out;
}

#mc-menu-overlay .mc-green-play-btn:focus-visible,
#mc-menu-overlay .mc-tab-btn:focus-visible {
  outline: 2px solid #a7f3d0;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  #mc-menu-overlay .mc-green-play-btn:hover {
    transform: translateY(-1px);
  }
}

#mc-menu-overlay .mc-green-play-btn:active {
  transform: translateY(1px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .mc-menu-card,
  .mc-modal-card,
  #mc-toast,
  #mc-match-notice,
  #mc-progress-container.is-level-up .mc-level-ring-wrap {
    animation: none;
  }
  #mc-menu-overlay .mc-green-play-btn,
  #mc-menu-overlay .mc-green-play-btn:hover,
  #mc-menu-overlay .mc-green-play-btn:active {
    transition: none;
    transform: none;
  }
}

/* Keep phone menus from re-blurring the animated arena on every frame. */
@media (pointer: coarse), (max-width: 820px) {
  #mc-menu-overlay .mc-menu-card,
  .mc-modal-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}


