/* Midnight Mint title-screen intro v2 (home page only): attract mode -> SELECT YOUR GAME -> into the site.
   The overlay is built by assets/js/intro.js; without JS none of this shows. Every animation moves
   transform or opacity only. Under prefers-reduced-motion the site-wide rule in site.css switches all CSS
   animations off, so every element's resting style below is its final state; intro.js adds plain fades. */

/* Pre-cover: set by the inline script in <head> before first paint, removed once the overlay exists
   (or after 4 s if intro.js never arrives), so the home page never flashes under the intro. */
html.mmi-cover::before { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: #0c1030; }

.mmi {
  --navy: #0c1030; --gold: #f6c75a; --mint: #6fd49a; --cream: #f6efdc; --teal: #056e78;
  --display: "Alfa Slab One", "Rockwell", Georgia, serif; --body: "Outfit", system-ui, sans-serif;
  position: fixed; inset: 0; z-index: 2147483001; overflow: hidden;
  background: var(--navy); color: var(--cream); font-family: var(--body);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.mmi *, .mmi *::before, .mmi *::after { box-sizing: border-box; }
.mmi img { max-width: none; display: block; -webkit-user-drag: none; }
.mmi button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.mmi .mmi-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mmi[data-screen="attract"] { cursor: pointer; }

/* ================================================================ attract mode: the painted rooftop */
.mmi-world, .mmi-scene, .mmi-cam { position: absolute; inset: 0; }
.mmi-scene, .mmi-stage { isolation: isolate; }   /* keep the mascots' z-order inside the scene (matters when nothing is transformed) */
.mmi-scene { z-index: 0; }
.mmi-sky {
  position: absolute; inset: -4%;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 8%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, #ffe9b07a 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 12%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 25%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 6%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 34%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 53% 33%, #fff6 50%, transparent 51%),
    linear-gradient(180deg, #080b24 0%, #10163a 55%, #141a3a 100%);
}
.mmi-drift { position: absolute; left: 0; right: 0; bottom: 0; }
.mmi-stage { position: relative; width: 100%; transform-origin: 50% 70%; }
.mmi-stage::before { content: ""; display: block; padding-top: var(--ratio); }
.mmi-plate {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%); mask-image: linear-gradient(180deg, transparent 0, #000 9%);
}
.mmi-dim { position: absolute; inset: 0; background: rgba(8, 10, 34, 0.6); opacity: 0; }
.mmi-lamp { position: absolute; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 190, 90, 0.42), rgba(255, 160, 60, 0.12) 55%, transparent); opacity: 0.55; }
.mmi-clip { position: absolute; top: 0; overflow: hidden; pointer-events: none; }
.mmi-sil, .mmi-actor { position: absolute; }
.mmi-sil { filter: brightness(0); opacity: 0.9; }      /* dark cut-out over each painted mascot: the "who's that?" line-up */
.mmi-actor { transform-origin: 50% 100%; }
.mmi-actor img { width: 100%; height: 100%; transform-origin: 50% 100%; }

.mmi-petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mmi-petal { position: absolute; top: -4%; left: var(--x); width: 11px; height: 7px; border-radius: 80% 10% 80% 10%;
  background: linear-gradient(135deg, #ffd9e2, #f0a3b8); opacity: 0; transform: translate3d(0, 0, 0) scale(var(--s)); }

.mmi-shoot { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; }
.mmi-shoot::before {
  content: ""; position: absolute; right: 0; top: -1.5px; width: 150px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 233, 176, 0.55) 60%, #fff 100%); box-shadow: 0 0 8px rgba(255, 216, 130, 0.8);
}

.mmi-logo { position: absolute; left: 50%; top: var(--logo-top); width: var(--word-w); transform: translate(-50%, 0); pointer-events: none; }
.mmi-medal { width: var(--medal); height: var(--medal); margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); }
.mmi-medal img { width: 100%; height: 100%; }
.mmi-word { width: 100%; margin-top: calc(var(--medal) * -0.06); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85)); }
.mmi-word img { width: 100%; height: auto; }

/* PRESS START: arcade button with a stepped "pixel" frame */
.mmi-press { position: absolute; left: 50%; bottom: var(--btn-bottom); transform: translateX(-50%); margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.mmi-face {
  display: block; position: relative; padding: 14px 30px 12px; border-radius: 4px;
  font: 400 clamp(1.1rem, 2.2vw + 0.6rem, 1.8rem)/1 var(--display); letter-spacing: 0.12em; white-space: nowrap;
  color: var(--navy); background: linear-gradient(180deg, #ffe08a 0%, #f6c75a 55%, #e0a83e 100%);
  box-shadow: 0 0 0 3px #0c1030, 0 0 0 6px #6fd49a, 0 0 0 9px #0c1030, 0 9px 0 6px #8a5d17, 0 9px 0 9px #0c1030, 0 16px 26px 8px rgba(0, 0, 0, 0.55);
}
.mmi-press .mmi-face::after { content: ""; position: absolute; inset: -18px; border-radius: 18px; box-shadow: 0 0 28px 8px rgba(111, 212, 154, 0.55); opacity: 0; pointer-events: none; }
.mmi-press:focus { outline: none; }
.mmi-press:focus-visible .mmi-face { outline: 3px solid #fff; outline-offset: 14px; }

/* HUD */
.mmi-hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; font: 800 clamp(0.68rem, 0.5vw + 0.55rem, 0.9rem)/1 var(--body); letter-spacing: 0.2em; }
.mmi-1p { position: absolute; left: max(16px, env(safe-area-inset-left)); top: max(26px, calc(env(safe-area-inset-top) + 14px)); color: var(--mint); text-shadow: 0 0 8px rgba(111, 212, 154, 0.6); }
.mmi-1p i { font-style: normal; color: var(--cream); }
.mmi-hi { position: absolute; left: 50%; top: max(26px, calc(env(safe-area-inset-top) + 14px)); transform: translateX(-50%); color: var(--gold); white-space: nowrap; text-shadow: 0 0 8px rgba(246, 199, 90, 0.5); }
.mmi-hi span { color: var(--cream); }
.mmi-copy { position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); color: rgba(246, 239, 220, 0.75); letter-spacing: 0.24em; font-size: 0.68rem; white-space: nowrap; }

/* corner controls */
.mmi-skip, .mmi-mute {
  position: absolute; z-index: 6; min-height: 44px; min-width: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  font: 700 0.95rem/1 var(--body); letter-spacing: 0.04em; color: var(--cream);
  background: rgba(8, 10, 34, 0.66); border: 1.5px solid rgba(246, 239, 220, 0.45);
}
.mmi-skip { right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); }
.mmi-mute { left: max(10px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom)); padding: 9px; display: grid; place-items: center; }
.mmi-mute svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mmi-mute .mmi-x { display: none; }
.mmi-mute[aria-pressed="true"] .mmi-x { display: inline; }
.mmi-mute[aria-pressed="true"] .mmi-waves { display: none; }
.mmi-skip:hover, .mmi-mute:hover { border-color: var(--gold); color: var(--gold); }
.mmi-skip:focus-visible, .mmi-mute:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* CRT, flash, boot */
.mmi-crt { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 8, 0.55) 100%), repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px); }
.mmi-flash { position: absolute; inset: 0; z-index: 5; background: #eafff2; opacity: 0; pointer-events: none; }
.mmi-boot { position: absolute; inset: 0; z-index: 4; background: var(--navy); display: none; place-items: center; pointer-events: none; }
.mmi.run .mmi-boot { display: grid; }
.mmi-boot-in { display: grid; justify-items: center; gap: 18px; }
.mmi-moon { width: clamp(84px, 16vmin, 130px); height: clamp(84px, 16vmin, 130px); opacity: 0; filter: drop-shadow(0 0 18px rgba(246, 199, 90, 0.75)) drop-shadow(0 0 42px rgba(246, 199, 90, 0.35)); }
.mmi-moon svg { width: 100%; height: 100%; display: block; }
.mmi-boot-text { font: 800 clamp(0.72rem, 1.4vw + 0.4rem, 0.95rem)/1 var(--body); letter-spacing: 0.32em; padding-left: 0.32em; color: var(--mint); text-shadow: 0 0 10px rgba(111, 212, 154, 0.7); opacity: 0; white-space: nowrap; }

/* layouts */
.mmi.is-wide { --ratio: 46.875%; --medal: clamp(96px, 19vh, 210px); --word-w: clamp(280px, 33vw, 600px); --logo-top: clamp(44px, 7vh, 80px); --btn-bottom: clamp(48px, 10vh, 118px); }
.mmi.is-tall { --ratio: 125%; --medal: clamp(74px, 16vh, 150px); --word-w: min(80vw, 360px); --logo-top: max(56px, 8vh); --btn-bottom: max(46px, 7vh); }
@media (max-height: 520px) { .mmi.is-wide { --medal: 64px; --word-w: clamp(200px, 30vw, 340px); --logo-top: 40px; --btn-bottom: 36px; } }

/* ---------------------------------------------------------------- attract timeline (.mmi.run) */
.mmi.run .mmi-boot-text { animation: mmi-blink1 0.62s steps(1, end) both; }
.mmi.run .mmi-moon { animation: mmi-moon 0.5s cubic-bezier(.2, .7, .3, 1) 0.1s both; }
.mmi.run .mmi-boot { animation: mmi-out 0.2s ease-in 0.58s both; }
.mmi.run .mmi-stage { animation: mmi-push 1.9s cubic-bezier(.2, .6, .25, 1) 0.55s both; }
.mmi.run .mmi-plate { animation: mmi-in 0.35s ease-out 0.55s both; }
.mmi.run .mmi-dim { animation: mmi-dim 2.4s linear 0.55s both; }
.mmi.run .mmi-medal { animation: mmi-drop 0.7s cubic-bezier(.3, .6, .4, 1) 0.7s both; }
.mmi.run .mmi-word { animation: mmi-stamp 0.32s cubic-bezier(.3, 0, .4, 1) 1.15s both; }
.mmi.run .mmi-cam { animation: mmi-thud 0.2s linear 1.38s both; }
.mmi.run .mmi-actor img { animation: mmi-pop 0.56s cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(1.35s + var(--i) * 0.17s); }
.mmi.run .mmi-hud { animation: mmi-in 0.3s ease-out 1.2s both; }
.mmi.run .mmi-press { animation: mmi-btn-in 0.36s cubic-bezier(.3, .7, .4, 1.4) 2s both; }
.mmi.run .mmi-press .mmi-face { animation: mmi-pulse 1.1s ease-in-out 2.36s infinite; }
.mmi.run .mmi-press .mmi-face::after { animation: mmi-glow 1.1s ease-in-out 2.36s infinite; }
.mmi.run .mmi-press .mmi-txt { animation: mmi-blink 1.1s steps(1, end) 2.36s infinite; }
.mmi.run .mmi-1p i { animation: mmi-blink 1.4s steps(1, end) 1.2s infinite; }
.mmi.run .mmi-crt { animation: mmi-crt 0.6s steps(1, end) both; }
/* alive while waiting */
.mmi.run .mmi-drift { animation: mmi-drift 14s ease-in-out 2.6s infinite alternate both; }
.mmi.run .mmi-sky { animation: mmi-sky 14s ease-in-out 2.6s infinite alternate both; }
.mmi.run .mmi-lamp { animation: mmi-flicker var(--ft) linear var(--fd) infinite both; }
.mmi.run .mmi-petal { animation: mmi-petal var(--t) linear var(--d) infinite both; }
.mmi.run .mmi-shoot.a { animation: mmi-shoot 5.2s linear 1.7s infinite both; }
.mmi.run .mmi-shoot.b { animation: mmi-shoot 7.3s linear 4.4s infinite both; }
.mmi.run .mmi-actor { animation: var(--idle) var(--idle-t) ease-in-out infinite both; animation-delay: calc(2s + var(--i) * 0.17s); }

@keyframes mmi-blink1 { 0% { opacity: 1; } 32% { opacity: 0; } 48% { opacity: 1; } 100% { opacity: 1; } }
@keyframes mmi-blink { 0% { opacity: 1; } 70% { opacity: 0.15; } 100% { opacity: 1; } }
@keyframes mmi-moon { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes mmi-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes mmi-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmi-push { from { transform: scale(1.08); } to { transform: none; } }
@keyframes mmi-dim { 0% { opacity: 1; } 45% { opacity: 0.9; } 100% { opacity: 0; } }
@keyframes mmi-drop { 0% { transform: translateY(-140%) scale(0.9); opacity: 0; } 10% { opacity: 1; } 55% { transform: translateY(0) scale(1.06, 0.9); }
  72% { transform: translateY(-9%) scale(0.98, 1.03); } 88% { transform: translateY(0) scale(1.02, 0.98); } 100% { transform: none; opacity: 1; } }
@keyframes mmi-stamp { 0% { transform: scale(2.3); opacity: 0; } 55% { transform: scale(0.94); opacity: 1; } 78% { transform: scale(1.03); } 100% { transform: none; opacity: 1; } }
@keyframes mmi-thud { 0%, 100% { transform: none; } 25% { transform: translate(-3px, 4px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-1px, 1px); } }
@keyframes mmi-pop { 0% { transform: translateY(104%) scale(0.92, 1.08); } 46% { transform: translateY(-8%) scale(0.93, 1.09); }
  66% { transform: translateY(0) scale(1.09, 0.9); } 83% { transform: translateY(0) scale(0.98, 1.03); } 100% { transform: none; } }
@keyframes mmi-btn-in { from { opacity: 0; transform: translateX(-50%) scale(0.6); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes mmi-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }
@keyframes mmi-glow { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes mmi-crt { 0% { opacity: 0.6; } 8% { opacity: 1; } 12% { opacity: 0.75; } 16% { opacity: 1; } }
@keyframes mmi-drift { from { transform: translateX(-1.3%) scale(1.04); } to { transform: translateX(1.3%) scale(1.04); } }
@keyframes mmi-sky { from { transform: translateX(-0.5%); } to { transform: translateX(0.5%); } }
@keyframes mmi-flicker { 0%, 100% { opacity: 0.5; } 18% { opacity: 0.85; } 22% { opacity: 0.6; } 47% { opacity: 0.95; } 53% { opacity: 0.7; } 76% { opacity: 0.9; } 80% { opacity: 0.55; } }
@keyframes mmi-petal { 0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0) scale(var(--s)); } 8% { opacity: 0.9; } 85% { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(var(--dx), 108vh, 0) rotate(560deg) scale(var(--s)); } }
@keyframes mmi-shoot { 0% { opacity: 0; transform: translate(var(--sx0), var(--sy0)) rotate(var(--sa)); } 2% { opacity: 1; } 13% { opacity: 1; }
  17% { opacity: 0; transform: translate(var(--sx1), var(--sy1)) rotate(var(--sa)); } 100% { opacity: 0; transform: translate(var(--sx1), var(--sy1)) rotate(var(--sa)); } }
/* mascot idles (on the actor wrapper; the pop runs on the image inside it) */
@keyframes idle-mags { 0%, 62%, 100% { transform: none; } 70% { transform: scale(1.02, 0.96); } 78% { transform: none; } 84% { transform: scale(1.015, 0.97); } 90% { transform: none; } }
@keyframes idle-rocco { 0%, 18%, 82%, 100% { transform: none; } 32%, 66% { transform: translateX(5%) rotate(3deg); } 48% { transform: translateX(5%) rotate(1.5deg) translateY(-2%); } }
@keyframes idle-daru { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes idle-oni { 0%, 56%, 100% { transform: none; } 66% { transform: rotate(-2.5deg) translateY(-1%); } 74% { transform: rotate(2.5deg) scale(1.02, 0.98); } 84% { transform: rotate(-0.5deg); } }
@keyframes idle-atlas { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes idle-kid { 0%, 100% { transform: none; } 30% { transform: translateY(-5%) scale(0.98, 1.03); } 50% { transform: none; } 58% { transform: scale(1.03, 0.97); } 70% { transform: none; } }

/* ================================================================ SELECT YOUR GAME */
.mmi-sel { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 64px; }
.mmi[data-screen="select"] .mmi-sel { display: flex; }
.mmi-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 55%, rgba(12, 16, 48, 0.62), rgba(6, 8, 26, 0.92)); opacity: 0; pointer-events: none; }
.mmi[data-screen="select"] .mmi-scrim { opacity: 1; }
.mmi[data-screen="select"] .mmi-logo, .mmi[data-screen="select"] .mmi-press { opacity: 0; visibility: hidden; }
.mmi-sel h2 { margin: 0 0 clamp(8px, 2vh, 22px); font: 400 clamp(1.5rem, 3vw + 0.7rem, 2.8rem)/1.05 var(--display); color: var(--gold); letter-spacing: 0.04em; text-align: center;
  text-shadow: 0 3px 0 var(--teal), 0 6px 18px rgba(0, 0, 0, 0.7); }
.mmi-grid { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 1.4vw, 22px); }
.is-tall .mmi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 460px; align-items: end; }
.is-tall .mmi-card[data-game="daruma"] { grid-column: 1 / -1; }
.mmi-card {
  position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 10px 10px 0; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, rgba(41, 49, 106, 0.55), rgba(21, 26, 61, 0.9)); box-shadow: inset 0 0 0 1.5px rgba(246, 199, 90, 0.28), 0 10px 24px rgba(0, 0, 0, 0.45);
}
.mmi-card:focus { outline: none; }
.mmi-art { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.mmi-ped { position: absolute; left: 50%; bottom: -10px; width: 120%; height: 34px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 212, 154, 0.55), rgba(111, 212, 154, 0.12) 60%, transparent); opacity: 0.45; }
.mmi-spot { position: absolute; left: 50%; bottom: 0; width: 140%; height: 115%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(246, 199, 90, 0.34), transparent 70%); opacity: 0; }
.mmi-fig { position: relative; transform-origin: 50% 100%; }
.mmi-fig img { position: relative; height: auto; }
.mmi-pair { display: flex; align-items: flex-end; }
.mmi-pair .oni { margin-right: calc(var(--k) * -118px); }
.mmi-name { position: relative; z-index: 1; width: calc(100% + 20px); margin-top: 8px; padding: 8px 6px 9px; border-radius: 0 0 14px 14px; text-align: center;
  background: rgba(8, 10, 34, 0.82); border-top: 1.5px solid rgba(246, 199, 90, 0.35); }
.mmi-name b { display: block; font: 400 clamp(0.8rem, 0.6vw + 0.62rem, 1.1rem)/1.1 var(--display); letter-spacing: 0.06em; color: var(--cream); white-space: nowrap; }
.mmi-badge { display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 999px; font: 800 0.62rem/1 var(--body); letter-spacing: 0.14em; white-space: nowrap; }
.mmi-badge.now { background: var(--mint); color: var(--navy); }
.mmi-badge.soon { color: var(--gold); border: 1px solid rgba(246, 199, 90, 0.7); }
.mmi-card:not(.on) .mmi-art { opacity: 0.72; }
/* cursor frame */
.mmi-frame { position: absolute; inset: -6px; border-radius: 18px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--navy), 0 0 0 8px var(--mint), 0 0 26px 8px rgba(246, 199, 90, 0.45); }
.mmi-frame::before { content: "1P"; position: absolute; left: 8px; top: -9px; padding: 4px 7px; border-radius: 6px; background: var(--mint); color: var(--navy); font: 800 0.72rem/1 var(--body); letter-spacing: 0.08em; }
.mmi-card.on .mmi-frame { opacity: 1; }
.mmi-card.on .mmi-spot { opacity: 1; }
.mmi-card.on .mmi-ped { opacity: 1; }
.mmi-card.on .mmi-name b { color: var(--gold); }
.mmi-card:focus-visible .mmi-frame { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--navy), 0 0 0 8px var(--mint), 0 0 26px 8px rgba(246, 199, 90, 0.45); }
.mmi-cflash { position: absolute; inset: 0; border-radius: 14px; background: #fff8e0; opacity: 0; pointer-events: none; }
.mmi-stamp { position: absolute; left: 50%; top: 38%; z-index: 2; padding: 8px 12px 7px; border-radius: 8px; pointer-events: none; white-space: nowrap;
  font: 400 clamp(0.9rem, 0.8vw + 0.7rem, 1.3rem)/1 var(--display); letter-spacing: 0.06em; color: #ffe08a; background: rgba(160, 30, 40, 0.92);
  box-shadow: 0 0 0 3px #ffe08a, 0 0 0 5px rgba(160, 30, 40, 0.92), 0 8px 20px rgba(0, 0, 0, 0.5); transform: translate(-50%, -50%) rotate(-10deg); opacity: 0; }
.mmi-card.soonfx .mmi-stamp { opacity: 1; }
.mmi-hint { margin: clamp(10px, 2vh, 20px) 0 0; font: 800 0.72rem/1 var(--body); letter-spacing: 0.2em; color: var(--mint); text-align: center; }
.mmi-enter { margin-top: clamp(10px, 2vh, 18px); padding: 0; border: 0; background: none; cursor: pointer; }
.mmi-enter .mmi-face { font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.3rem); padding: 12px 22px 10px; background: linear-gradient(180deg, #a6f0c4, #6fd49a 55%, #3f9f6a); box-shadow: 0 0 0 3px #0c1030, 0 0 0 6px #f6c75a, 0 0 0 9px #0c1030, 0 7px 0 6px #22603f, 0 7px 0 9px #0c1030, 0 14px 22px 6px rgba(0, 0, 0, 0.5); }
.mmi-enter:focus { outline: none; }
.mmi-enter:focus-visible .mmi-face { outline: 3px solid #fff; outline-offset: 12px; }
@media (max-height: 700px) {
  .is-tall .mmi-hint { display: none; }
  .mmi-sel { padding-top: 54px; padding-bottom: 46px; }
  .is-tall .mmi-sel h2 { font-size: 1.3rem; margin-bottom: 6px; }
  .is-tall .mmi-grid { gap: 7px; }
  .is-tall .mmi-card { padding-top: 6px; }
  .is-tall .mmi-name { margin-top: 5px; padding: 5px 4px 6px; }
  .is-tall .mmi-badge { margin-top: 3px; }
  .is-tall .mmi-enter { margin-top: 8px; }
  .is-tall .mmi-enter .mmi-face { padding: 10px 18px 8px; }
}

/* select-screen motion (state classes set by intro.js) */
.mmi.go-sel .mmi-scrim { animation: mmi-in 0.32s ease-out both; }
.mmi.go-sel .mmi-sel h2 { animation: mmi-title 0.42s cubic-bezier(.3, .7, .4, 1.3) 0.08s both; }
.mmi.go-sel .mmi-card { animation: mmi-card-in 0.42s cubic-bezier(.25, .8, .35, 1.15) both; animation-delay: calc(0.14s + var(--n) * 0.06s); }
.mmi.go-sel .mmi-hint, .mmi.go-sel .mmi-enter { animation: mmi-in 0.3s ease-out 0.5s both; }
.mmi.go-sel .mmi-flash { animation: mmi-flash 0.24s ease-out both; }
.mmi-card.on .mmi-fig { animation: mmi-bob 1.6s ease-in-out 0.5s infinite; }
.mmi-card.pose .mmi-fig { animation: mmi-jump 0.48s cubic-bezier(.3, .7, .4, 1) both, mmi-bob 1.6s ease-in-out 0.5s infinite; }
.mmi-card.pose .mmi-cflash { animation: mmi-cflash 0.3s ease-out both; }
.mmi-card.pose .mmi-frame { animation: mmi-frame 0.26s cubic-bezier(.3, .7, .4, 1.4) both; }
.mmi-card.soonfx { animation: mmi-wiggle 0.5s ease-in-out both; }
.mmi-card.soonfx .mmi-stamp { animation: mmi-stampin 0.3s cubic-bezier(.3, 0, .4, 1) both; }
@keyframes mmi-title { from { opacity: 0; transform: translateY(-30px) scale(1.2); } to { opacity: 1; transform: none; } }
@keyframes mmi-card-in { from { opacity: 0; transform: translateY(60px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes mmi-flash { 0% { opacity: 0; } 25% { opacity: 0.5; } 100% { opacity: 0; } }
@keyframes mmi-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-3%); } }
@keyframes mmi-jump { 0% { transform: scale(1.06, 0.9); } 40% { transform: translateY(-16%) scale(0.95, 1.07); } 70% { transform: translateY(0) scale(1.07, 0.92); } 100% { transform: none; } }
@keyframes mmi-cflash { 0% { opacity: 0.55; } 100% { opacity: 0; } }
@keyframes mmi-frame { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mmi-wiggle { 0%, 100% { transform: none; } 15% { transform: rotate(-3deg); } 35% { transform: rotate(3deg); } 55% { transform: rotate(-2deg); } 75% { transform: rotate(1.5deg); } }
@keyframes mmi-stampin { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(2.2); } 60% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(0.92); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg); } }

/* READY? GO! (Domino City) */
.mmi-ready { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; pointer-events: none; background: rgba(6, 8, 26, 0.55); }
.mmi.ready .mmi-ready { display: grid; }
.mmi-ready span { grid-area: 1 / 1; font: 400 clamp(3rem, 9vw + 1rem, 7.5rem)/1 var(--display); color: var(--gold); letter-spacing: 0.04em; opacity: 0;
  text-shadow: 0 6px 0 var(--teal), 0 0 40px rgba(246, 199, 90, 0.5); }
.mmi-ready .r2 { color: var(--mint); text-shadow: 0 6px 0 #22603f, 0 0 50px rgba(111, 212, 154, 0.6); }
.mmi.ready .mmi-ready { animation: mmi-in 0.15s ease-out both; }
.mmi.ready .mmi-ready .r1 { animation: mmi-ready1 0.5s cubic-bezier(.3, .7, .4, 1.3) both; }
.mmi.ready .mmi-ready .r2 { animation: mmi-ready2 0.45s cubic-bezier(.3, .7, .4, 1.4) 0.48s both; }
.mmi.ready .mmi-flash { animation: mmi-flash 0.3s ease-out 0.5s both; }
@keyframes mmi-ready1 { 0% { opacity: 0; transform: scale(2); } 30% { opacity: 1; transform: scale(0.95); } 45% { transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(0.9); } }
@keyframes mmi-ready2 { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }

/* ================================================================ into the site: Daru bowls the screen over like dominoes */
.mmi.bowl { background: transparent; }
.mmi.bowl .mmi-skip, .mmi.bowl .mmi-mute { visibility: hidden; }
.mmi-tile { position: absolute; top: 0; bottom: 0; overflow: hidden; transform-origin: 100% 100%; box-shadow: inset -2px 0 0 rgba(246, 199, 90, 0.45); }
.mmi-tile > .mmi-world { right: auto; }
.mmi-tile *, .mmi-tile *::before, .mmi-tile *::after { animation: none !important; }
.mmi-ball { position: absolute; z-index: 4; left: 0; width: var(--bs); height: var(--bs); pointer-events: none; }
.mmi-ball img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.mmi.bowl .mmi-tile { animation: mmi-topple 0.26s cubic-bezier(.55, 0, .9, .45) var(--td) both; }
.mmi.bowl .mmi-ball { animation: mmi-roll 0.5s cubic-bezier(.4, .1, .7, .9) both; }
.mmi.bowl .mmi-crt { animation: mmi-out 0.3s ease-in 0.4s both; }
.mmi.bowl .mmi-flash { animation: mmi-flash 0.2s ease-out both; }
@keyframes mmi-topple { 0% { transform: none; opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(88deg) translateY(8%); opacity: 0; } }
@keyframes mmi-roll { from { transform: translate(var(--bx0), var(--by)) rotate(0); } to { transform: translate(var(--bx1), var(--by)) rotate(900deg); } }
