/* Hexatrix — Neon sci-fi UI styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }

/* ─── Float-up popup ─── */
@keyframes hx-float-up {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60px); }
}
.hx-float-popup {
  position: absolute;
  pointer-events: none;
  font-family: 'Asimovian', sans-serif;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 0 12px currentColor, 0 2px 8px rgba(0,0,0,0.9);
  animation: hx-float-up 1.3s ease-out forwards;
  z-index: 300;
  line-height: 1;
}
body {
  background: #02030a;
  color: #cfe6ff;
  font-family: 'Asimovian', sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ─── Layout ─── */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(ellipse at 50% 65%, rgba(63, 182, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(166, 91, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #03051a 0%, #02030a 60%, #050214 100%);
  overflow: hidden;
}

#stage {
  position: absolute;
  left: 50%; top: 50%;
  width: 1440px;
  height: 1080px;
  transform-origin: center center;
  transform: translate(-50%, -50%);
}

#game-container {
  position: absolute;
  inset: 0;
}

#game-container canvas {
  display: block;
}

/* HUD overlay sits above the canvas, pointer-events off by default */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#hud button,
#hud [data-clickable] {
  pointer-events: auto;
}

/* ─── Background layers ─── */
.hx-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(63, 182, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 182, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.hx-bg-glow {
  position: absolute; left: 50%; top: 50%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(63, 182, 255, 0.13), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}
.hx-bg-rings {
  position: absolute; left: 50%; bottom: -60px;
  width: 1200px; height: 360px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 600px 180px at center 100%, transparent 38%, rgba(63, 182, 255, 0.4) 39%, transparent 41%),
    radial-gradient(ellipse 540px 160px at center 100%, transparent 40%, rgba(166, 91, 255, 0.3) 41%, transparent 43%),
    radial-gradient(ellipse 460px 140px at center 100%, transparent 42%, rgba(63, 182, 255, 0.3) 43%, transparent 45%),
    radial-gradient(ellipse 380px 120px at center 100%, transparent 44%, rgba(63, 182, 255, 0.2) 45%, transparent 47%);
  pointer-events: none;
  opacity: 0.7;
}

/* ─── Title ─── */
.hx-title {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #cfeaff;
  text-shadow: 0 0 20px rgba(63, 182, 255, 0.7), 0 0 6px rgba(63, 182, 255, 1);
  pointer-events: none;
}

/* ─── Pills (Level / Moves) ─── */
.hx-pill {
  position: absolute;
  width: 150px; height: 110px;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.85), rgba(2, 4, 16, 0.92));
  border: 2px solid;
  border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: polygon(15% 0, 85% 0, 100% 25%, 100% 75%, 85% 100%, 15% 100%, 0 75%, 0 25%);
  font-family: 'Rajdhani', sans-serif;
}
.hx-pill-level {
  top: 30px; left: 30px;
  border-color: #3FB6FF;
  box-shadow: 0 0 24px rgba(63, 182, 255, 0.45), inset 0 0 12px rgba(63, 182, 255, 0.25);
}
.hx-pill-moves {
  top: 30px; right: 100px;
  border-color: #A65BFF;
  box-shadow: 0 0 24px rgba(166, 91, 255, 0.45), inset 0 0 12px rgba(166, 91, 255, 0.25);
}
.hx-pill-label {
  font-size: 14px; font-weight: 600;
  letter-spacing: 3px;
  color: #cfeaff;
  text-transform: uppercase;
  opacity: 0.85;
}
.hx-pill-value {
  font-size: 48px; font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-top: 4px;
  text-shadow: 0 0 12px rgba(63, 182, 255, 0.7);
  font-family: 'Rajdhani', sans-serif;
}
.hx-pill-moves .hx-pill-value {
  text-shadow: 0 0 12px rgba(166, 91, 255, 0.7);
}

/* ─── Score Panel ─── */
.hx-score-panel {
  position: absolute;
  top: 36px; left: 50%;
  transform: translateX(-50%);
  width: 460px;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.85), rgba(2, 4, 16, 0.92));
  border: 2px solid #3FB6FF;
  clip-path: polygon(6% 0, 94% 0, 100% 30%, 100% 70%, 94% 100%, 6% 100%, 0 70%, 0 30%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 30px 16px;
  box-shadow: 0 0 24px rgba(63, 182, 255, 0.4), inset 0 0 16px rgba(63, 182, 255, 0.2);
}
.hx-score-label {
  font-size: 14px; letter-spacing: 4px;
  color: #cfeaff; opacity: 0.85;
}
.hx-score-value {
  font-size: 38px; font-weight: 700;
  color: #fff;
  text-shadow: 0 0 14px rgba(63, 182, 255, 0.8);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ─── Settings ─── */
.hx-settings {
  position: absolute;
  top: 60px; right: 30px;
  width: 50px; height: 50px;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.85), rgba(2, 4, 16, 0.92));
  border: 2px solid #3FB6FF;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(63, 182, 255, 0.5);
}
.hx-settings:hover { box-shadow: 0 0 20px rgba(63, 182, 255, 0.8); }

/* ─── Left column ─── */
.hx-left {
  position: absolute;
  top: 175px; left: 30px;
  width: 175px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ─── Goals ─── */
.hx-goals {
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.92), rgba(2, 4, 16, 0.94));
  border: 2px solid #3FB6FF;
  clip-path: polygon(8% 0, 92% 0, 100% 6%, 100% 94%, 92% 100%, 8% 100%, 0 94%, 0 6%);
  padding: 16px 14px;
  box-shadow: 0 0 18px rgba(63, 182, 255, 0.35), inset 0 0 14px rgba(63, 182, 255, 0.15);
}
.hx-goals-title {
  font-size: 16px; letter-spacing: 4px; font-weight: 600;
  color: #cfeaff;
  text-align: center;
  text-shadow: 0 0 8px rgba(63, 182, 255, 0.6);
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(63, 182, 255, 0.4);
  padding-bottom: 10px;
}
.hx-goals-list { display: flex; flex-direction: column; gap: 12px; }
.hx-goal-row { display: flex; gap: 8px; align-items: center; }
.hx-goal-row + .hx-goal-row { padding-top: 10px; border-top: 1px dashed rgba(63, 182, 255, 0.25); }
.hx-goal-icon { position: relative; width: 44px; height: 44px; display:flex; align-items:center; justify-content:center; }
.hx-goal-row.done .hx-goal-icon { opacity: 0.5; }
.hx-goal-check {
  position: absolute; right: -4px; bottom: -4px;
  width: 18px; height: 18px;
  background: #3DDB6B; color: #002a10;
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hx-goal-text { flex: 1; }
.hx-goal-count {
  font-size: 22px; font-weight: 700; color: #fff;
  font-family: 'Rajdhani', sans-serif; line-height: 1.1;
  text-shadow: 0 0 6px rgba(63, 182, 255, 0.4);
}
.hx-goal-label {
  font-size: 11px;
  color: #cfeaff; opacity: 0.75;
  letter-spacing: 0.5px;
}

/* ─── Turbo toggle ─── */
.hx-turbo-btn {
  width: 100%;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.92), rgba(2, 4, 16, 0.94));
  border: 2px solid #FFC83A;
  clip-path: polygon(8% 0, 92% 0, 100% 25%, 100% 75%, 92% 100%, 8% 100%, 0 75%, 0 25%);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 200, 58, 0.45), inset 0 0 10px rgba(255, 200, 58, 0.1);
  transition: box-shadow 0.15s;
}
.hx-turbo-btn:hover { box-shadow: 0 0 24px rgba(255, 200, 58, 0.7); }
.hx-turbo-btn.off {
  border-color: rgba(255, 200, 58, 0.3);
  box-shadow: none;
}
.hx-turbo-text {
  font-size: 13px; letter-spacing: 3px; font-weight: 600;
  color: #FFC83A;
  text-shadow: 0 0 8px rgba(255, 200, 58, 0.7);
  font-family: 'Rajdhani', sans-serif;
}
.hx-turbo-btn.off .hx-turbo-text { color: rgba(255, 200, 58, 0.35); text-shadow: none; }
.hx-turbo-state {
  font-size: 11px; letter-spacing: 2px; font-weight: 700;
  color: #FFC83A;
  padding: 2px 7px;
  border: 1.5px solid rgba(255, 200, 58, 0.7);
  border-radius: 3px;
  font-family: 'Rajdhani', sans-serif;
}
.hx-turbo-btn.off .hx-turbo-state { color: rgba(255, 200, 58, 0.35); border-color: rgba(255, 200, 58, 0.2); }

/* ─── Pause button ─── */
.hx-pause-btn {
  position: absolute;
  bottom: 30px; left: 30px;
  width: 60px; height: 60px;
  padding: 0;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.85), rgba(2, 4, 16, 0.92));
  border: 2px solid #3FB6FF;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(63, 182, 255, 0.5);
}

/* ─── Right column boosters ─── */
.hx-right {
  position: absolute;
  top: 175px; right: 30px;
  width: 86px;
  display: flex; flex-direction: column; gap: 14px;
}
.hx-booster {
  position: relative;
  width: 86px; height: 86px;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.85), rgba(2, 4, 16, 0.92));
  border: 2px solid var(--tint);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 14px color-mix(in oklab, var(--tint) 40%, transparent);
}
.hx-booster:hover { transform: scale(1.05); box-shadow: 0 0 22px color-mix(in oklab, var(--tint) 70%, transparent); }
.hx-booster.active { transform: scale(1.08); box-shadow: 0 0 30px var(--tint), 0 0 6px #fff; }
.hx-booster-icon { display: flex; align-items: center; justify-content: center; height: 100%; }
.hx-booster-count {
  position: absolute;
  right: 4px; bottom: 4px;
  width: 22px; height: 22px;
  background: #02030a;
  border: 1.5px solid var(--tint);
  border-radius: 50%;
  font-size: 13px; font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
}

/* ─── Pause overlay ─── */
.hx-pause-overlay {
  position: absolute; inset: 0;
  background: rgba(2, 3, 10, 0.78);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  cursor: pointer;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}
.hx-pause-card {
  padding: 40px 80px;
  border: 2px solid #3FB6FF;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.95), rgba(2, 4, 16, 0.98));
  clip-path: polygon(6% 0, 94% 0, 100% 25%, 100% 75%, 94% 100%, 6% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 30px rgba(63, 182, 255, 0.6);
  text-align: center;
}
.hx-pause-title {
  font-size: 48px; font-weight: 700;
  letter-spacing: 12px;
  color: #fff;
  text-shadow: 0 0 16px rgba(63, 182, 255, 0.9);
  font-family: 'Orbitron', sans-serif;
}
.hx-pause-sub {
  margin-top: 8px;
  font-size: 14px; letter-spacing: 3px;
  color: #cfeaff; opacity: 0.7;
}

/* ─── Win overlay ─── */
.hx-win-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(63, 182, 255, 0.25), rgba(2, 3, 10, 0.92) 60%);
  display: flex; align-items: center; justify-content: center;
  z-index: 110;
  backdrop-filter: blur(6px);
  animation: winFade 0.4s ease-out;
  pointer-events: auto;
}
@keyframes winFade { from { opacity: 0; } to { opacity: 1; } }
.hx-win-card {
  padding: 40px 64px;
  border: 2px solid #FFC83A;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.96), rgba(2, 4, 16, 0.99));
  clip-path: polygon(6% 0, 94% 0, 100% 25%, 100% 75%, 94% 100%, 6% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 40px rgba(255, 200, 58, 0.55), inset 0 0 24px rgba(63, 182, 255, 0.25);
  text-align: center;
  min-width: 420px;
}
.hx-win-eyebrow {
  font-size: 14px; letter-spacing: 5px; color: #cfeaff; opacity: 0.85;
}
.hx-win-title {
  font-size: 64px; font-weight: 800;
  letter-spacing: 14px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 22px #FFC83A, 0 0 6px #fff;
  margin-top: 4px;
}
.hx-stars-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 22px auto 12px;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(7, 12, 36, 0.85), rgba(2, 4, 16, 0.92));
  border: 2px solid #FFC83A;
  clip-path: polygon(8% 0, 92% 0, 100% 30%, 100% 70%, 92% 100%, 8% 100%, 0 70%, 0 30%);
  box-shadow: 0 0 22px rgba(255, 200, 58, 0.55), inset 0 0 14px rgba(255, 200, 58, 0.18);
}
.hx-stars-pill-row {
  display: flex; gap: 18px; align-items: center; justify-content: center;
}
.hx-pill-star {
  transform: scale(1.9);
  opacity: 0.35;
  transition: all 0.25s;
}
.hx-pill-star.on {
  opacity: 1;
  filter: drop-shadow(0 0 8px #FFC83A);
  animation: starPop 0.5s ease-out;
}
.hx-stars-pill-label {
  font-size: 13px; letter-spacing: 4px; font-weight: 600;
  color: #FFC83A;
  text-shadow: 0 0 8px rgba(255, 200, 58, 0.7);
  margin-top: 4px;
}
@keyframes starPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(2.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 1; }
}
.hx-win-score-label {
  font-size: 13px; letter-spacing: 4px;
  color: #cfeaff; opacity: 0.75; margin-top: 6px;
}
.hx-win-score {
  font-size: 44px; font-weight: 700;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  text-shadow: 0 0 14px rgba(63, 182, 255, 0.8);
  font-variant-numeric: tabular-nums;
}
.hx-win-btn {
  margin-top: 22px;
  padding: 12px 36px;
  background: linear-gradient(180deg, #3FB6FF, #1d6fb8);
  border: 2px solid #84D7FF;
  color: #02030a;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
  box-shadow: 0 0 18px rgba(63, 182, 255, 0.7);
  transition: transform 0.15s;
}
.hx-win-btn:hover { transform: scale(1.05); }

/* ─── Bonus toasts ─── */
.hx-bonus-stack {
  position: absolute;
  top: 170px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  pointer-events: none;
  z-index: 50;
}
.hx-bonus-toast {
  font-family: 'Rajdhani', sans-serif;
  font-size: 30px; font-weight: 800;
  color: #FFC83A;
  text-shadow: 0 0 8px #FFC83A, 0 2px 4px #000;
  animation: bonusRise 0.9s ease-out forwards;
}
@keyframes bonusRise {
  0% { transform: translateY(20px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   Main Menu Overlay  (.mm-*)
   ═══════════════════════════════════════════════════════════════════ */

@keyframes mm-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mm-play-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(63,182,255,0.45), 0 0 90px rgba(63,182,255,0.15); }
  50%      { box-shadow: 0 0 64px rgba(63,182,255,0.8),  0 0 130px rgba(63,182,255,0.3); }
}
@keyframes mm-badge-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.18); }
}
@keyframes mm-daily-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(255,200,58,0.35); border-color: #FFC83A; }
  50%      { box-shadow: 0 0 32px rgba(255,200,58,0.7);  border-color: #ffe07a; }
}
@keyframes mm-toast-anim {
  0%   { opacity: 0; transform: translateX(-50%) translateY(14px); }
  12%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  75%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-16px); }
}

/* ── Root overlay ───────────────────────────────────────────────── */
#main-menu-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  z-index: 10;
  animation: mm-fade-in 0.45s ease-out;
}

/* ── Top bar ────────────────────────────────────────────────────── */
.mm-topbar {
  flex-shrink: 0;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: linear-gradient(180deg, rgba(2,4,16,0.97) 0%, rgba(2,4,16,0.55) 100%);
  border-bottom: 1px solid rgba(63,182,255,0.18);
}

/* Player card */
.mm-player-card {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mm-avatar {
  flex-shrink: 0;
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #0d2a5e, #1e1060, #0a2a4a);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Asimovian', sans-serif;
  font-size: 30px; font-weight: 700;
  color: #cfeaff;
  text-shadow: 0 0 14px rgba(63,182,255,0.9);
  border: 2px solid rgba(63,182,255,0.5);
  box-shadow: 0 0 18px rgba(63,182,255,0.3), inset 0 0 12px rgba(63,182,255,0.15);
}
.mm-player-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 230px;
}
.mm-player-name {
  font-family: 'Asimovian', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: 3px;
  color: #cfeaff;
  text-shadow: 0 0 10px rgba(63,182,255,0.4);
  line-height: 1;
}
.mm-xp-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mm-xp-track {
  flex: 1;
  height: 7px;
  background: rgba(63,182,255,0.1);
  border: 1px solid rgba(63,182,255,0.25);
  border-radius: 4px;
  overflow: hidden;
}
.mm-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a5caa, #3FB6FF, #A65BFF);
  border-radius: 4px;
  transition: width 0.6s ease-out;
}
.mm-level-badge {
  font-family: 'Asimovian', sans-serif;
  font-size: 13px; font-weight: 700;
  color: #3FB6FF;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(63,182,255,0.6);
}

/* Currency bar */
.mm-currency-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mm-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(7,12,36,0.92);
  border: 1.5px solid;
  clip-path: polygon(8% 0, 92% 0, 100% 28%, 100% 72%, 92% 100%, 8% 100%, 0 72%, 0 28%);
}
.mm-chip-crystal {
  border-color: #3FB6FF;
  box-shadow: 0 0 12px rgba(63,182,255,0.3);
}
.mm-chip-prism {
  border-color: #FFC83A;
  box-shadow: 0 0 12px rgba(255,200,58,0.3);
}
.mm-chip-sym {
  font-size: 18px;
  line-height: 1;
}
.mm-chip-crystal .mm-chip-sym { color: #3FB6FF; text-shadow: 0 0 8px rgba(63,182,255,0.9); }
.mm-chip-prism   .mm-chip-sym { color: #FFC83A; text-shadow: 0 0 8px rgba(255,200,58,0.9); }
.mm-chip-val {
  font-family: 'Asimovian', sans-serif;
  font-size: 24px; font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mm-chip-tag {
  font-family: 'Asimovian', sans-serif;
  font-size: 10px; letter-spacing: 2px;
  color: rgba(207,234,255,0.45);
  line-height: 1;
}
.mm-buy-btn {
  width: 46px; height: 46px;
  background: linear-gradient(180deg, rgba(255,200,58,0.18), rgba(255,200,58,0.04));
  border: 2px solid #FFC83A;
  color: #FFC83A;
  font-size: 26px; font-weight: 700;
  font-family: 'Asimovian', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: 0 0 10px rgba(255,200,58,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  line-height: 1;
}
.mm-buy-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 22px rgba(255,200,58,0.65);
}

/* ── Hero zone ──────────────────────────────────────────────────── */
.mm-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Logo */
.mm-logo-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
}
.mm-game-title {
  font-family: 'Asimovian', sans-serif;
  font-size: 100px; font-weight: 800;
  letter-spacing: 20px;
  color: #cfeaff;
  text-shadow:
    0 0 40px rgba(63,182,255,0.65),
    0 0 12px rgba(63,182,255,0.9),
    0 0 2px #fff;
  line-height: 1;
  text-align: center;
}
.mm-game-sub {
  font-family: 'Asimovian', sans-serif;
  font-size: 17px; font-weight: 600;
  letter-spacing: 9px;
  color: #3FB6FF;
  text-align: center;
  margin-top: 10px;
  opacity: 0.8;
}

/* Play button */
.mm-play-btn {
  width: 380px; height: 96px;
  background: linear-gradient(180deg, rgba(18,70,165,0.96), rgba(7,32,88,0.99));
  border: 3px solid #3FB6FF;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  color: #fff;
  font-family: 'Asimovian', sans-serif;
  font-size: 40px; font-weight: 800;
  letter-spacing: 16px;
  cursor: pointer;
  text-shadow: 0 0 16px rgba(63,182,255,0.9), 0 0 4px #fff;
  animation: mm-play-glow 2.6s ease-in-out infinite;
  transition: transform 0.14s;
  display: flex; align-items: center; justify-content: center;
}
.mm-play-btn:hover  { transform: scale(1.04); }
.mm-play-btn:active { transform: scale(0.97); }

/* Best score */
.mm-best-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 22px;
}
.mm-best-label {
  font-family: 'Asimovian', sans-serif;
  font-size: 13px; letter-spacing: 4px;
  color: #cfeaff; opacity: 0.5;
}
.mm-best-val {
  font-family: 'Asimovian', sans-serif;
  font-size: 28px; font-weight: 700;
  color: #FFC83A;
  text-shadow: 0 0 10px rgba(255,200,58,0.6);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ── Feature grid ───────────────────────────────────────────────── */
.mm-feat-grid {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 32px 80px 38px;
}
.mm-feat-btn {
  position: relative;
  width: 152px; height: 152px;
  background: linear-gradient(180deg, rgba(7,12,36,0.94), rgba(2,4,16,0.97));
  border: 2px solid #3FB6FF;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;
  box-shadow: 0 0 16px rgba(63,182,255,0.25);
}
.mm-feat-btn:hover:not(.mm-locked):not(.mm-daily-claimed) {
  transform: scale(1.07);
  box-shadow: 0 0 30px rgba(63,182,255,0.55);
}
.mm-feat-btn:active:not(.mm-locked) {
  transform: scale(0.97);
}
.mm-feat-icon {
  font-size: 38px;
  color: #3FB6FF;
  text-shadow: 0 0 12px rgba(63,182,255,0.8);
  line-height: 1;
}
.mm-feat-label {
  font-family: 'Asimovian', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px;
  color: #cfeaff;
  line-height: 1;
}

/* Locked state */
.mm-feat-btn.mm-locked {
  opacity: 0.38;
  filter: grayscale(75%);
  cursor: default;
}
.mm-feat-lock {
  display: none;
  position: absolute;
  bottom: 26px;
  font-family: 'Asimovian', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  color: rgba(207,234,255,0.5);
  line-height: 1;
}
.mm-feat-btn.mm-locked .mm-feat-lock { display: block; }

/* Daily reward states */
.mm-feat-btn.mm-has-reward {
  border-color: #FFC83A;
  animation: mm-daily-glow 2.2s ease-in-out infinite;
}
.mm-feat-btn.mm-has-reward .mm-feat-icon { color: #FFC83A; text-shadow: 0 0 12px rgba(255,200,58,0.9); }
.mm-feat-btn.mm-daily-claimed {
  opacity: 0.42;
  cursor: default;
}

/* NEW badge */
.mm-feat-badge {
  position: absolute;
  top: 20px;
  left: 50%; transform: translateX(-50%);
  background: #FF3D5A;
  color: #fff;
  font-family: 'Asimovian', sans-serif;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 2px;
  line-height: 1.4;
  animation: mm-badge-pulse 1.6s ease-in-out infinite;
  white-space: nowrap;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.mm-footer {
  flex-shrink: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  border-top: 1px solid rgba(63,182,255,0.14);
  background: linear-gradient(0deg, rgba(2,4,16,0.9) 0%, rgba(2,4,16,0.3) 100%);
}
.mm-foot-btn {
  padding: 0 22px;
  height: 100%;
  background: none;
  border: none;
  color: rgba(207,234,255,0.45);
  font-family: 'Asimovian', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 3px;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}
.mm-foot-btn:hover { color: #cfeaff; }
.mm-foot-btn.mm-foot-locked {
  opacity: 0.3;
  cursor: default;
}
.mm-foot-btn.mm-foot-locked:hover { color: rgba(207,234,255,0.45); }
.mm-foot-sep {
  width: 1px; height: 18px;
  background: rgba(63,182,255,0.18);
  flex-shrink: 0;
}
.mm-ver {
  margin-left: auto;
  font-family: 'Asimovian', sans-serif;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(63,182,255,0.25);
}

/* ── Toast notification ─────────────────────────────────────────── */
.mm-toast {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  background: rgba(2,3,10,0.95);
  border: 1.5px solid;
  font-family: 'Asimovian', sans-serif;
  font-size: 17px; font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
  animation: mm-toast-anim 2.4s ease-out forwards;
  z-index: 200;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

