body { font-family: 'Quicksand', sans-serif; }
[hidden] { display: none !important; }
#beta-report-trigger { display: none !important; }

.mn-page { --acc: #2dd4bf; --acc2: #fbbf24; --ink: #f5ecff; --mut: rgba(245, 236, 255, .62); --line: rgba(255, 255, 255, .14);
  display: flex; justify-content: center; padding: 8px 8px 18px; box-sizing: border-box; font-family: 'Quicksand', sans-serif; color: var(--ink); }
.mn-card { width: 100%; max-width: 640px; box-sizing: border-box; padding: 10px; border-radius: 24px; position: relative;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .07), transparent 60%), linear-gradient(180deg, #24133a, #0e0819);
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(8, 3, 20, .55), 0 0 40px -14px var(--acc); user-select: none; -webkit-user-select: none; }

/* HUD (overlaid on the empty sky/rock band at the top of the stage) */
.mn-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 8px 10px 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 8, 26, .62), rgba(14, 8, 26, 0)); }
.mn-h-l { min-width: 0; flex: 1 1 auto; max-width: 52%; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.mn-lbl { font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: var(--mut); }
.mn-cashline { display: flex; align-items: baseline; gap: 5px; line-height: 1.1; white-space: nowrap; }
.mn-cashline b { font-size: 20px; font-weight: 800; color: #fde68a; font-variant-numeric: tabular-nums; display: inline-block; }
.mn-cashline b.bump { animation: mnBump .32s ease-out; }
.mn-cashline span { font-size: 12px; font-weight: 700; color: var(--mut); font-variant-numeric: tabular-nums; }
.mn-bar { height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .16); overflow: hidden; margin: 4px 0 2px; }
.mn-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f59e0b, #fde047); transition: width .25s; border-radius: 9px; }
.mn-hud.met .mn-bar i { background: linear-gradient(90deg, #14b8a6, #5eead4); box-shadow: 0 0 10px var(--acc); }
.mn-hud.met .mn-cashline b { color: #5eead4; }
.mn-hud.sprint .mn-bar { visibility: hidden; }
.mn-total { font-size: 10px; font-weight: 700; color: var(--mut); min-height: 12px; }
.mn-h-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.mn-time { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; text-shadow: 0 0 18px rgba(45, 212, 191, .55); }
.mn-time.low { color: #fb7185; text-shadow: 0 0 18px rgba(251, 113, 133, .8); animation: mnPulse .5s ease-in-out infinite; }
.mn-chips { display: flex; gap: 5px; }
.mn-chip { font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 999px; background: rgba(20, 10, 40, .7); border: 1px solid var(--line); white-space: nowrap; }
.mn-dyn { color: #fdba74; }
@keyframes mnBump { 40% { transform: scale(1.22); } }
@keyframes mnPulse { 50% { transform: scale(1.08); } }

/* Stage */
.mn-stage { position: relative; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #150d26; border: 1px solid rgba(255, 255, 255, .1); touch-action: none; cursor: pointer; }
.mn-stage canvas { display: block; touch-action: none; }
.mn-streak { position: absolute; left: 50%; top: 74px; z-index: 3; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, #ea580c, #f59e0b); box-shadow: 0 6px 18px -4px rgba(245, 158, 11, .7); pointer-events: none; }
.mn-hint { z-index: 4; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; color: #fff; white-space: nowrap; max-width: 94%;
  background: rgba(20, 10, 40, .78); border: 1px solid var(--line); pointer-events: none; animation: mnPulse 1.4s ease-in-out infinite; }
.mn-hint.dyn { background: rgba(194, 65, 12, .88); border-color: rgba(253, 186, 116, .6); }
.mn-banner { position: absolute; left: 0; right: 0; top: 26%; z-index: 4; text-align: center; pointer-events: none; }
.mn-banner-t { display: inline-block; padding: 8px 18px; border-radius: 14px; font-size: 20px; font-weight: 800; letter-spacing: 2px; color: #fff; background: rgba(20, 10, 40, .72); border: 1px solid var(--line); text-shadow: 0 0 14px var(--acc); max-width: 92%; box-sizing: border-box; }
.mn-banner-s { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--mut); }
.mn-banner.pop { animation: mnPop 1.5s ease-out both; }
@keyframes mnPop { 0% { opacity: 0; transform: scale(.7); } 14% { opacity: 1; transform: scale(1.06); } 22% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.mn-count { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 800; color: #fff; text-shadow: 0 0 30px var(--acc); pointer-events: none; background: rgba(14, 8, 26, .35); }

/* Overlays (flex column, scrollable; children never shrink) */
.mn-overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 14px 14px 16px; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: center; cursor: default;
  background: radial-gradient(100% 60% at 50% 0%, rgba(45, 212, 191, .12), transparent 65%), rgba(14, 8, 26, .9); }
.mn-overlay > * { flex-shrink: 0; }
.mn-overlay > :first-child { margin-top: auto; }
.mn-overlay > :last-child { margin-bottom: auto; }
.mn-opts { background: #150d26; }
.mn-start-in { display: contents; }
.mn-logo { font-size: 44px; line-height: 1; }
.mn-start h1 { margin: 4px 0 0; font-size: 38px; letter-spacing: 6px; font-weight: 800; color: #fff; text-shadow: 0 0 24px var(--acc); }
.mn-tag { margin: 4px 0 14px; font-size: 13px; font-weight: 700; color: var(--mut); letter-spacing: .5px; }
.mn-modes { display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; width: 100%; max-width: 340px; }
.mn-mode { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 16px; border: 2px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink); font-family: inherit; cursor: pointer; transition: transform .12s, border-color .2s, background .2s; }
.mn-mode:hover { background: rgba(255, 255, 255, .11); }
.mn-mode:active { transform: scale(.97); }
.mn-mode[aria-checked="true"] { border-color: var(--acc); background: rgba(45, 212, 191, .16); box-shadow: 0 0 18px -4px var(--acc); }
.mn-mode-i { font-size: 22px; line-height: 1; }
.mn-mode-n { font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.mn-mode-t { font-size: 10px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.mn-mode-desc { margin: 12px 0 4px; max-width: 320px; font-size: 13px; font-weight: 600; line-height: 1.45; color: rgba(245, 236, 255, .86); min-height: 3.6em; }
.mn-mode-best { margin: 0 0 12px; font-size: 12px; font-weight: 800; color: #fde68a; }
.mn-skin { margin: 12px 0 0; font-size: 11px; font-weight: 700; color: var(--mut); }
.mn-btn { padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .09); color: #fff; font-family: inherit; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; cursor: pointer; transition: transform .12s, background .2s; }
.mn-btn:hover { background: rgba(255, 255, 255, .15); }
.mn-btn:active { transform: scale(.97); }
.mn-primary { background: var(--acc); color: #04201c; border-color: transparent; box-shadow: 0 8px 22px -6px var(--acc); }
.mn-primary:hover { background: var(--acc); filter: brightness(1.1); }
.mn-play { min-width: 190px; font-size: 16px; padding: 14px 26px; }
.mn-sm { padding: 7px 14px; font-size: 11px; }
.mn-pause .mn-btn, .mn-pause .mn-pz-h { margin-bottom: 10px; min-width: 190px; }
.mn-pz-h { font-size: 26px; font-weight: 800; letter-spacing: 4px; }
.mn-pz-score { font-size: 40px; font-weight: 800; color: #fde68a; margin-bottom: 14px; }

/* Perks */
.mn-perk-h { font-size: 20px; font-weight: 800; letter-spacing: 2px; color: #5eead4; }
.mn-perk-s { margin: 4px 0 2px; font-size: 13px; font-weight: 700; color: #fde68a; }
.mn-perk-p { margin: 10px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--mut); }
.mn-perk-row { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; }
.mn-perk-card { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 34px 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--ink); font-family: inherit; cursor: pointer; transition: transform .12s, border-color .2s, background .2s; }
.mn-perk-card:hover, .mn-perk-card:focus-visible { border-color: var(--acc); background: rgba(45, 212, 191, .14); outline: none; }
.mn-perk-card:active { transform: scale(.98); }
.mn-perk-i { grid-row: 1 / span 3; font-size: 30px; text-align: center; }
.mn-perk-n { font-size: 15px; font-weight: 800; }
.mn-perk-d { font-size: 12px; font-weight: 600; color: var(--mut); line-height: 1.3; }
.mn-pips { display: flex; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--mut); }
.mn-pips i { width: 14px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.mn-pips i.on { background: var(--acc); }
.mn-pips i.next { background: transparent; border: 1px dashed var(--acc); }
.mn-perk-k { position: absolute; right: 12px; top: 10px; font-size: 11px; font-weight: 800; color: var(--mut); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* Options */
.mn-o-h { font-size: 20px; font-weight: 800; letter-spacing: 3px; margin-bottom: 8px; }
.mn-o-l { align-self: flex-start; width: 100%; max-width: 340px; text-align: left; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--mut); margin: 4px 0 6px; }
.mn-modes-o { margin-bottom: 8px; }
.mn-o-row { width: 100%; max-width: 340px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; margin-top: 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.mn-o-back { margin-top: 12px; min-width: 190px; }
.mn-opts #trophy-list { width: 100%; max-width: 340px; max-height: 44vh; overflow-y: auto; text-align: left; margin-top: 8px; padding-right: 2px; flex-shrink: 0; }

/* Bottom bar */
.mn-bottom { display: flex; gap: 8px; justify-content: center; padding: 10px 2px 2px; }
.mn-bottom button { flex: 1 1 0; max-width: 200px; white-space: nowrap; padding: 10px 6px; font-size: 12px; }
.mn-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f766e; color: #fff; padding: 10px 20px; border-radius: 30px; font-weight: 800; font-size: 13px; z-index: 21000; font-family: 'Quicksand', sans-serif; }

/* Narrow */
.mn-card.tight .mn-cashline b { font-size: 17px; }
.mn-card.tight .mn-time { font-size: 28px; }
.mn-card.tight .mn-mode-t { display: none; }
.mn-card.tight .mn-bottom button { font-size: 11px; letter-spacing: 1px; }

/* Short landscape phones: board left, buttons right */
.mn-card.land { display: flex; align-items: stretch; gap: 12px; max-width: none; width: auto; padding: 8px; }
.mn-card.land .mn-stage { margin: 0; flex: 0 0 auto; }
.mn-card.land .mn-bottom { flex-direction: column; justify-content: center; padding: 0; width: 170px; }
.mn-card.land .mn-bottom button { max-width: none; flex: 0 0 auto; }
.mn-card.land .mn-start h1 { font-size: 28px; }
.mn-card.land .mn-logo { font-size: 30px; }
.mn-card.land .mn-mode-desc { margin-top: 8px; min-height: 0; }
.mn-opts #trophy-list, #trophy-list { color: var(--ink, #f5ecff); }

@media (prefers-reduced-motion: reduce) { .mn-hint, .mn-time.low, .mn-banner.pop, .mn-cashline b.bump { animation: none; } .mn-banner.pop { opacity: 1; } }
.mn-perk, .mn-pause { background: radial-gradient(100% 60% at 50% 0%, rgba(45, 212, 191, .12), transparent 65%), rgb(14, 8, 26); }
