/* ==========================================================================
   MAKE! FRIENDS! — terminal green on an old CRT.
   Everything here is scoped to body.mf-crt (set by the /make-friends route),
   including the ASCII versions of the site header and footer, so no other
   page changes.
   ========================================================================== */

body.mf-crt {
  --mf-bg: #020d05;
  --mf-bg2: #031408;
  --mf-fg: #41ff7e;
  --mf-mid: #2bc95f;
  --mf-dim: #1a8441;
  --mf-faint: #0f4a25;
  --mf-bright: #d2ffe0;
  --mf-glow: 0 0 1px rgba(65, 255, 126, 0.9), 0 0 6px rgba(65, 255, 126, 0.45), 0 0 14px rgba(65, 255, 126, 0.18);
  --lh: 1.2em;
  background: radial-gradient(ellipse at 50% 40%, #052513 0%, var(--mf-bg) 65%, #000 100%) fixed;
  background-color: var(--mf-bg);
  color: var(--mf-fg);
}

body.mf-crt #mainDiv {
  text-align: left;
  color: var(--mf-fg);
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   SITE HEADER, ASCII EDITION
   [ inkEgg.io ] / [ EXPLORE ] / > MAKE! FRIENDS!_                    [ @ ]
   ===========================================================================
   -------------------------------------------------------------------------- */
body.mf-crt #globalNav {
  background: #010a04;
  border-bottom: 0;
  padding: 0.1rem 1rem 0.95rem;
  height: var(--nav-height, 53px);
  font-family: 'VT323', 'Courier New', monospace;
  text-shadow: var(--mf-glow);
}
body.mf-crt #globalNav::after {
  content: "+=================================================================================================================================================================================================================================================================================================================================================================+";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1em;
  line-height: 1em;
  font-size: 18px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--mf-dim);
  pointer-events: none;
}
body.mf-crt #globalNav .nav-breadcrumb {
  font-family: 'VT323', 'Courier New', monospace;
  gap: 0.35rem;
  font-size: 1.35rem;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}
body.mf-crt #globalNav .nav-brand,
body.mf-crt #globalNav .nav-explore-link,
body.mf-crt #globalNav .nav-current {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--mf-fg);
  text-decoration: none;
}
body.mf-crt #globalNav .nav-brand:hover,
body.mf-crt #globalNav .nav-explore-link:hover,
body.mf-crt #globalNav .nav-brand:focus-visible,
body.mf-crt #globalNav .nav-explore-link:focus-visible {
  background: var(--mf-fg);
  color: var(--mf-bg);
  text-shadow: none;
  outline: none;
}
/* The site's glitch effect lives in ::before/::after — retire it here and use
   the pseudo-elements for brackets and a blinking cursor instead. */
body.mf-crt #globalNav .effect-glitch::before,
body.mf-crt #globalNav .effect-glitch::after {
  position: static;
  clip: auto;
  animation: none;
  text-shadow: inherit;
  width: auto;
  height: auto;
}
body.mf-crt #globalNav .nav-brand::before { content: '[ '; }
body.mf-crt #globalNav .nav-brand::after  { content: ' ]'; }
body.mf-crt #globalNav .nav-explore-link::before { content: '[ '; }
body.mf-crt #globalNav .nav-explore-link::after  { content: ' ]'; }
body.mf-crt #globalNav .nav-current::before { content: '> '; color: var(--mf-dim); }
body.mf-crt #globalNav .nav-current::after  { content: '_'; animation: mf-blink 1.05s steps(1) infinite; }
body.mf-crt #globalNav .nav-separator { color: var(--mf-dim); font-weight: 400; }

body.mf-crt #globalNav .nav-profile-btn {
  width: auto;
  height: 30px;
  padding: 0 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mf-fg);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.35rem;
  line-height: 1;
  overflow: visible;
  text-shadow: var(--mf-glow);
  box-shadow: none;
}
body.mf-crt #globalNav .nav-profile-btn:hover,
body.mf-crt #globalNav .nav-profile-btn:focus-visible {
  background: var(--mf-fg);
  color: var(--mf-bg);
  text-shadow: none;
  box-shadow: none;
  outline: none;
}
body.mf-crt #globalNav .nav-profile-icon,
body.mf-crt #globalNav .nav-heart-icon { display: none; }
body.mf-crt #globalNav .nav-profile-btn::before { content: '[ @ ]'; }
body.mf-crt #globalNav .nav-profile-btn--heart::before { content: '[ <3 ]'; }

body.mf-crt #authDropdown {
  background: #010a04;
  border: 0;
  outline: 1px dashed var(--mf-dim);
  border-radius: 0;
  font-family: 'VT323', 'Courier New', monospace;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}
body.mf-crt #authDropdown .auth-dropdown-item {
  font-family: inherit;
  font-size: 1.25rem;
  color: var(--mf-fg);
  background: transparent;
  text-shadow: var(--mf-glow);
}
body.mf-crt #authDropdown .auth-dropdown-item::before { content: '> '; color: var(--mf-dim); }
body.mf-crt #authDropdown .auth-dropdown-item:hover { background: var(--mf-fg); color: var(--mf-bg); text-shadow: none; }

/* --------------------------------------------------------------------------
   SITE FOOTER, ASCII EDITION   ====[ PRIVACY POLICY ]====
   The footer keeps its 44px slot (global-nav.css owns that); only the dress
   changes. The ===== runs overflow both ways and are clipped by the footer.
   -------------------------------------------------------------------------- */
body.mf-crt > .footer-component {
  background: #010a04;
  font-family: 'VT323', 'Courier New', monospace;
}
body.mf-crt > .footer-component .site-footer-links {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--mf-dim);
}
body.mf-crt > .footer-component .site-footer-links a {
  color: var(--mf-fg);
  opacity: 1;
  text-shadow: var(--mf-glow);
}
body.mf-crt > .footer-component .site-footer-links a::before {
  content: "+==========================================================================================================================================================================================[ ";
  color: var(--mf-dim);
  text-shadow: none;
}
body.mf-crt > .footer-component .site-footer-links a::after {
  content: " ]==========================================================================================================================================================================================+";
  color: var(--mf-dim);
  text-shadow: none;
}
body.mf-crt > .footer-component .site-footer-links a:hover,
body.mf-crt > .footer-component .site-footer-links a:focus-visible {
  text-decoration: none;
  background: var(--mf-fg);
  color: var(--mf-bg);
  text-shadow: none;
  outline: none;
}

/* --------------------------------------------------------------------------
   THE GLASS: scanlines, vignette, curved corners, a slow rolling bar and a
   faint flicker. Above the page, header and footer; below modals; never
   takes a click.
   -------------------------------------------------------------------------- */
.mf-crt-glass {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  overflow: hidden;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.26) 3px, rgba(0, 0, 0, 0) 4px),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.5) 100%);
}
.mf-crt-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 34px / 30px;
  box-shadow:
    0 0 0 60px #000,
    inset 0 0 90px rgba(0, 0, 0, 0.75),
    inset 0 0 18px rgba(65, 255, 126, 0.06);
}
.mf-crt-glass::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 22vh;
  top: -25vh;
  background: linear-gradient(to bottom, rgba(65, 255, 126, 0), rgba(65, 255, 126, 0.045) 50%, rgba(65, 255, 126, 0));
  animation: mf-roll 9s linear infinite;
}
@media (max-width: 600px) {
  .mf-crt-glass::before { border-radius: 18px / 16px; }
}

/* --------------------------------------------------------------------------
   APP SHELL
   -------------------------------------------------------------------------- */
.mf-app {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: clamp(18px, 0.6vw + 14px, 23px);
  line-height: 1.2;
  color: var(--mf-fg);
  text-shadow: var(--mf-glow);
  text-align: left;
  animation: mf-poweron 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both, mf-flicker 6s infinite steps(1) 1s;
  -webkit-font-smoothing: none;
}
.mf-screen {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px 28px;
  box-sizing: border-box;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height, 53px) - var(--footer-height, 44px));
}
.mf-app.is-reject .mf-screen { animation: mf-shake 0.45s; }
.mf-app.is-welcome .mf-screen { animation: mf-bloom 0.9s; }

.mf-view { display: none; }
.mf-view.is-active { display: block; animation: mf-in 0.25s steps(4); }

.mf-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mf-dim { color: var(--mf-dim); }
.mf-app b { font-weight: 400; color: var(--mf-bright); }
.mf-app p { margin: 0.4em 0; }
.mf-app h1, .mf-app h2, .mf-app h3 { font-family: inherit; font-weight: 400; margin: 0.3em 0; letter-spacing: 0.04em; }
.mf-heading { font-size: 1.3em; color: var(--mf-bright); }
.mf-heading .mf-dim { font-size: 0.7em; }
.mf-row { display: flex; flex-wrap: wrap; gap: 0.4em 0.9em; align-items: center; margin: 0.6em 0; }
.mf-row--center { justify-content: center; }
.mf-empty { color: var(--mf-dim); text-align: center; padding: 1.5em 0; }

/* --------------------------------------------------------------------------
   BUTTONS:  [ LIKE THIS ]
   -------------------------------------------------------------------------- */
.mf-btn, .mf-chip {
  font: inherit;
  color: var(--mf-fg);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.05em 0.25em;
  margin: 0;
  cursor: pointer;
  text-shadow: inherit;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1.2;
}
.mf-btn::before { content: '[ '; }
.mf-btn::after { content: ' ]'; }
.mf-btn:hover, .mf-btn:focus-visible, .mf-chip:hover, .mf-chip:focus-visible {
  background: var(--mf-fg);
  color: var(--mf-bg);
  text-shadow: none;
  outline: none;
}
.mf-btn:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--mf-fg); }
.mf-btn--big { font-size: 1.3em; }
.mf-btn--tiny { font-size: 0.85em; }
.mf-btn--friend {
  background: var(--mf-fg);
  color: var(--mf-bg);
  text-shadow: none;
  box-shadow: 0 0 14px rgba(65, 255, 126, 0.45);
}
.mf-btn--friend:hover, .mf-btn--friend:focus-visible { background: var(--mf-bright); }
.mf-btn--friend:not(:disabled) { animation: mf-pulse 1.6s ease-in-out infinite; }
.mf-btn--danger { color: var(--mf-mid); }
.mf-btn.is-on, .mf-chip.is-on { background: var(--mf-fg); color: var(--mf-bg); text-shadow: none; }
.mf-chip::before { content: '('; }
.mf-chip::after { content: ')'; }

/* --------------------------------------------------------------------------
   ASCII BOXES — .abox gets +---+ borders injected by the JS
   -------------------------------------------------------------------------- */
.abox {
  position: relative;
  padding: var(--lh) 2ch;
  line-height: var(--lh);
  box-sizing: border-box;
}
.abox > .ab { position: absolute; color: var(--mf-dim); white-space: pre; overflow: hidden; line-height: var(--lh); pointer-events: none; text-shadow: none; }
.abox > .ab-t, .abox > .ab-b { left: 1ch; right: 1ch; height: var(--lh); }
.abox > .ab-t { top: 0; }
.abox > .ab-b { bottom: 0; }
.abox > .ab-l, .abox > .ab-r { top: var(--lh); bottom: var(--lh); width: 1ch; }
.abox > .ab-l { left: 0; }
.abox > .ab-r { right: 0; }
.abox > .ab-c { width: 1ch; height: var(--lh); }
.abox > .ab-tl { top: 0; left: 0; }
.abox > .ab-tr { top: 0; right: 0; }
.abox > .ab-bl { bottom: 0; left: 0; }
.abox > .ab-br { bottom: 0; right: 0; }
.abox > .ab-label { top: 0; left: 2ch; height: var(--lh); background: var(--mf-bg); color: var(--mf-fg); padding-right: 0.2ch; }

/* --------------------------------------------------------------------------
   FACES
   -------------------------------------------------------------------------- */
.mf-stage { position: relative; display: inline-block; font-size: 16px; line-height: 1; }
.mf-stage-inner { position: relative; transition: transform 0.12s linear; }
.mf-face, .mf-overlay {
  margin: 0;
  padding: 0;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1em;
  line-height: 1;
  white-space: pre;
  background: none;
  border: 0;
  color: var(--mf-fg);
  text-shadow: var(--mf-glow);
  overflow: visible;
}
.mf-overlay { position: absolute; inset: 0; pointer-events: none; color: var(--mf-bright); }
.mf-overlay b { font-weight: 400; color: var(--mf-bright); background: var(--mf-bg); box-shadow: 0 0 0 1px var(--mf-bg); }
.mf-sl {
  display: block;
  transform-origin: 50% 0;
  transition: transform 0.55s cubic-bezier(0.55, -0.3, 0.7, 1), opacity 0.55s, background 0.15s;
}
.mf-face.is-folding .mf-sl { box-shadow: 0 1px 0 0 rgba(65, 255, 126, 0.28); }
.mf-sl.is-spinning { color: var(--mf-mid); filter: blur(0.5px); }
.mf-face.is-scatter .mf-sl:nth-child(odd)  { transform: translateX(-130%) rotate(-7deg); opacity: 0; }
.mf-face.is-scatter .mf-sl:nth-child(even) { transform: translateX(130%) rotate(6deg); opacity: 0; }
.mf-face.is-folded .mf-sl { transform: scaleY(0); opacity: 0.15; }
.mf-face.is-clickable .mf-sl { cursor: pointer; }
.mf-face.is-clickable .mf-sl:hover { background: rgba(65, 255, 126, 0.1); }
.mf-stage-inner.is-glitch { filter: brightness(1.7) contrast(1.4); }
.mf-stage-inner.is-glitch .mf-face { transform: translateX(0.15em) skewX(-6deg); }

/* --------------------------------------------------------------------------
   BOOT
   -------------------------------------------------------------------------- */
.mf-boot-log { margin: 0; font: inherit; white-space: pre-wrap; color: var(--mf-fg); min-height: 60vh; }

/* --------------------------------------------------------------------------
   TITLE
   -------------------------------------------------------------------------- */
.mf-title { text-align: center; }
.mf-banner {
  margin: 0.2em auto 0.3em;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: clamp(4px, calc((100vw - 48px) / 94 / 0.42), 15px);
  line-height: 1;
  white-space: pre;
  display: inline-block;
  text-align: left;
  color: var(--mf-bright);
  text-shadow: 0 0 2px var(--mf-fg), 0 0 10px rgba(65, 255, 126, 0.7), 0 0 26px rgba(65, 255, 126, 0.35);
  animation: mf-banner-wobble 4s ease-in-out infinite;
}
.mf-banner--small { font-size: clamp(5px, calc((100vw - 48px) / 64 / 0.42), 14px); }
.mf-banner i, .mf-stamp i {
  font-style: normal;
  background: var(--mf-fg);
  color: #0b5a2a;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(65, 255, 126, 0.55);
}
.mf-tagline { letter-spacing: 0.08em; font-size: 0.95em; }
.mf-parade { display: flex; justify-content: center; gap: 2%; margin: 0.6em auto 0.8em; max-width: 980px; }
.mf-parade-slot { flex: 1 1 0; min-width: 0; max-width: 300px; overflow: hidden; display: flex; justify-content: center; }
.mf-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3em 1em; margin: 0.6em 0; }
.mf-settings { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.3em 0.6em; margin: 0.6em 0; font-size: 0.95em; }
.mf-howto { text-align: left; max-width: 760px; margin: 1em auto 0; }
@media (max-width: 600px) {
  .mf-parade-slot:nth-child(3) { display: none; }
  .mf-parade { gap: 4%; }
}

/* --------------------------------------------------------------------------
   NAME TAG
   -------------------------------------------------------------------------- */
.mf-name { display: none; }
.mf-name.is-active { display: flex; justify-content: center; padding-top: 6vh; }
.mf-nametag { width: min(560px, 100%); text-align: center; }
.mf-nametag-hello { font-size: 3em; line-height: 1; background: var(--mf-fg); color: var(--mf-bg); text-shadow: none; letter-spacing: 0.25em; padding: 0.1em 0; margin: 0 -1ch; }
.mf-nametag-sub { letter-spacing: 0.2em; margin: 0.3em 0 0.6em; }
.mf-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 2.2em;
  text-align: center;
  text-transform: uppercase;
  color: var(--mf-bright);
  background: rgba(65, 255, 126, 0.05);
  border: 0;
  border-bottom: 2px dashed var(--mf-dim);
  border-radius: 0;
  caret-color: var(--mf-fg);
  text-shadow: var(--mf-glow);
  padding: 0.1em 0;
  outline: none;
}
.mf-input::placeholder { color: var(--mf-faint); }
.mf-input:focus { background: rgba(65, 255, 126, 0.1); }
.mf-nametag .mf-row { justify-content: center; }

/* --------------------------------------------------------------------------
   HOST
   -------------------------------------------------------------------------- */
.mf-host-grid { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; gap: 28px; align-items: center; padding-top: 3vh; }
.mf-host-face { text-align: center; min-width: 0; }
.mf-host-label { letter-spacing: 0.2em; color: var(--mf-dim); }
.mf-host-text { font-size: 1.35em; min-height: 4.8em; cursor: pointer; }
.mf-host-outro { text-align: center; color: var(--mf-dim); }
@media (max-width: 760px) { .mf-host-grid { grid-template-columns: 1fr; gap: 10px; } }

/* --------------------------------------------------------------------------
   THE DATE
   -------------------------------------------------------------------------- */
.mf-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.2em 1em;
  padding-bottom: 0.3em;
  margin-bottom: 0.6em;
  border-bottom: 0;
  position: relative;
}
.mf-hud::after {
  content: "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------";
  position: absolute; left: 0; right: 0; bottom: -0.4em; height: 1em; overflow: hidden; white-space: nowrap; color: var(--mf-dim); text-shadow: none;
}
.mf-timer.is-low { animation: mf-blink 0.6s steps(1) infinite; color: var(--mf-bright); }
.mf-date-grid { display: grid; grid-template-columns: minmax(260px, 40%) minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.mf-left { min-width: 0; text-align: center; position: relative; container-type: inline-size; }
.mf-right { min-width: 0; display: flex; flex-direction: column; gap: 0.5em; }
.mf-tag { display: inline-block; text-align: center; margin-top: 0.3em; min-width: 60%; max-width: 100%; }
.mf-tag-hello { font-size: 0.8em; letter-spacing: 0.15em; color: var(--mf-dim); }
.mf-tag-name { font-size: 1.45em; color: var(--mf-bright); line-height: 1.1; overflow-wrap: anywhere; }

.mf-card { font-size: 0.82em; }
.mf-card-row { display: grid; grid-template-columns: 7ch 1fr; gap: 1ch; line-height: 1.15; }
.mf-card-k { color: var(--mf-dim); }
.mf-card-k::after { content: ':'; }

.mf-log {
  max-height: 6.2em;
  overflow-y: auto;
  font-size: 0.85em;
  line-height: 1.2;
  color: var(--mf-dim);
  scrollbar-width: thin;
  scrollbar-color: var(--mf-dim) transparent;
}
.mf-log:empty { display: none; }
.mf-log-line b { color: var(--mf-dim); }
.mf-log-line.is-you { color: var(--mf-mid); }
.mf-log-line.is-you b { color: var(--mf-mid); }
.mf-log-line.is-sys { font-style: normal; color: var(--mf-mid); }
.mf-log-line:last-child { color: var(--mf-mid); }

.mf-speech { font-size: 1.15em; min-height: calc(3 * var(--lh) + 2 * var(--lh)); color: var(--mf-bright); cursor: pointer; }
.mf-speech-caret { color: var(--mf-dim); }
.mf-cursor { animation: mf-blink 1s steps(1) infinite; }
.mf-speech.is-talking .mf-cursor { animation: none; }

.mf-options { display: flex; flex-direction: column; gap: 0.25em; min-height: 3.2em; }
.mf-opt {
  display: grid;
  grid-template-columns: 3.5ch 11ch 1fr;
  gap: 0.6ch;
  align-items: baseline;
  text-align: left;
  width: 100%;
  font: inherit;
  font-size: 0.95em;
  color: var(--mf-fg);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.12em 0.4ch;
  cursor: pointer;
  text-shadow: inherit;
  line-height: 1.15;
  animation: mf-in 0.2s steps(3) both;
}
.mf-opt:nth-child(2) { animation-delay: 0.06s; }
.mf-opt:nth-child(3) { animation-delay: 0.12s; }
.mf-opt:hover, .mf-opt:focus-visible { background: var(--mf-fg); color: var(--mf-bg); text-shadow: none; outline: none; }
.mf-opt:hover .mf-opt-tone, .mf-opt:focus-visible .mf-opt-tone, .mf-opt:hover .mf-opt-key, .mf-opt:focus-visible .mf-opt-key { color: var(--mf-bg); }
.mf-opt-key { color: var(--mf-bright); }
.mf-opt-tone { color: var(--mf-dim); }
.mf-prompt { color: var(--mf-bright); }
.mf-prompt--alarm { animation: mf-blink 0.5s steps(1) infinite; }

.mf-actions { display: flex; flex-wrap: wrap; gap: 0.4em 1em; align-items: center; margin-top: 0.2em; }
.mf-actions .mf-btn { font-size: 1.25em; }
.mf-vibe { margin: 0; font: inherit; font-size: 0.85em; white-space: pre; overflow: hidden; color: var(--mf-mid); }
.mf-app.is-deciding .mf-btn--friend:not(:disabled) { animation-duration: 0.6s; }

.mf-stamp {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-9deg);
  background: var(--mf-bg);
  padding: 0.6em 1.2em;
  outline: 3px double var(--mf-fg);
  outline-offset: -8px;
  box-shadow: 0 0 40px rgba(65, 255, 126, 0.4), 0 0 0 9999px rgba(0, 0, 0, 0.35);
  animation: mf-stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  pointer-events: none;
  max-width: 96%;
}
.mf-stamp pre { margin: 0; font-family: 'VT323', 'Courier New', monospace; font-size: clamp(5px, calc(78cqw / 48 / 0.42), 22px); line-height: 1; white-space: pre; color: var(--mf-bright); }
.mf-stamp--reject { background: var(--mf-fg); outline-color: var(--mf-bg); transform: translate(-50%, -50%) rotate(7deg); }
.mf-stamp--reject pre { color: var(--mf-bg); text-shadow: none; }
.mf-stamp--reject i { background: var(--mf-bg); color: var(--mf-faint); box-shadow: none; }

.mf-flash {
  position: absolute;
  top: 3.2em; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: var(--mf-fg);
  color: var(--mf-bg);
  text-shadow: none;
  padding: 0.1em 1em;
  font-size: 1.4em;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
}
.mf-flash.is-on { animation: mf-flash 1.4s steps(8) both; }

.mf-result-bar { text-align: center; margin-top: 0.8em; position: relative; z-index: 6; }

.mf-confetti {
  position: absolute;
  top: -1.2em;
  z-index: 7;
  color: var(--mf-bright);
  pointer-events: none;
  font-size: 1.2em;
  animation-name: mf-fall;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

@media (max-width: 760px) {
  .mf-screen { padding: 12px 16px 20px; }
  .mf-date-grid { grid-template-columns: 1fr; gap: 10px; }
  .mf-left { display: flex; flex-direction: column; align-items: center; }
  .mf-log { max-height: 4.8em; }
  .mf-hud { font-size: 0.9em; }
}

/* --------------------------------------------------------------------------
   SUMMARY / ROLODEX MINI CARDS
   -------------------------------------------------------------------------- */
.mf-summary { text-align: center; }
.mf-rank-title { font-size: 2em; color: var(--mf-bright); letter-spacing: 0.12em; }
.mf-rank-note { color: var(--mf-mid); }
.mf-stats { letter-spacing: 0.05em; }
.mf-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 1em 0; text-align: center; }
.mf-mini { display: flex; flex-direction: column; align-items: center; gap: 0.15em; font-size: 0.9em; }
.mf-mini-face { margin: 0 0 0.2em; font-family: 'VT323', 'Courier New', monospace; font-size: 10px; line-height: 1; white-space: pre; text-align: left; color: var(--mf-fg); }
.mf-mini-name { color: var(--mf-bright); font-size: 1.15em; line-height: 1.1; }
.mf-mini-vibe { color: var(--mf-dim); font-size: 0.85em; }
.mf-mini-quote { color: var(--mf-mid); font-size: 0.85em; line-height: 1.15; }

/* --------------------------------------------------------------------------
   CORPSE LAB
   -------------------------------------------------------------------------- */
.mf-lab-grid { display: grid; grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); gap: 20px 32px; align-items: start; margin-top: 0.6em; }
.mf-lab-face { min-width: 0; text-align: center; }
.mf-lab-side { min-width: 0; }
.mf-lab-row { display: flex; align-items: center; gap: 0.5ch; padding: 0.1em 0; }
.mf-lab-row.is-sel { background: rgba(65, 255, 126, 0.1); }
.mf-lab-name { flex: 1; min-width: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.mf-lab-name i { font-style: normal; color: var(--mf-dim); }
@media (max-width: 760px) { .mf-lab-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes mf-blink { 50% { opacity: 0; } }
@keyframes mf-roll { from { top: -25vh; } to { top: 110vh; } }
@keyframes mf-in { from { opacity: 0; filter: brightness(2.2); } to { opacity: 1; filter: none; } }
@keyframes mf-poweron {
  0% { transform: scale(1, 0.004); filter: brightness(6); opacity: 0.4; }
  45% { transform: scale(1, 0.004); filter: brightness(6); opacity: 1; }
  70% { transform: scale(1, 1.04); filter: brightness(2); }
  100% { transform: none; filter: none; }
}
@keyframes mf-flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: 0.93; } 49% { opacity: 1; } 83% { opacity: 0.96; } 84% { opacity: 1; } }
@keyframes mf-pulse { 50% { box-shadow: 0 0 26px rgba(65, 255, 126, 0.85); } }
@keyframes mf-banner-wobble { 0%, 100% { transform: none; } 50% { transform: skewX(-1.5deg); } 51% { transform: skewX(1deg) translateX(1px); } 52% { transform: none; } }
@keyframes mf-stamp { from { opacity: 0; transform: translate(-50%, -50%) scale(3) rotate(-25deg); } }
@keyframes mf-flash { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mf-fall { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--drift, 0), 105vh); opacity: 0.2; } }
@keyframes mf-shake { 0%, 100% { transform: none; filter: none; } 15% { transform: translateX(-10px); filter: invert(1) hue-rotate(180deg); } 30% { transform: translateX(8px); filter: none; } 45% { transform: translateX(-6px); } 60% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes mf-bloom { 0% { filter: brightness(2.6); } 100% { filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .mf-app, .mf-view.is-active, .mf-banner, .mf-crt-glass::after, .mf-btn--friend:not(:disabled), .mf-opt { animation: none !important; }
  .mf-sl { transition: none; }
}

/* Header + footer on phones: tighter, and the breadcrumb clips instead of wrapping */
@media (max-width: 600px) {
  body.mf-crt #globalNav { padding-left: 0.6rem; padding-right: 0.6rem; }
  body.mf-crt #globalNav .nav-breadcrumb { gap: 0.15rem; overflow: hidden; flex: 1 1 auto; margin-right: 0.4rem; }
  body.mf-crt #globalNav .nav-brand,
  body.mf-crt #globalNav .nav-explore-link,
  body.mf-crt #globalNav .nav-current,
  body.mf-crt #globalNav .nav-profile-btn { font-size: 1.05rem; }
  body.mf-crt #globalNav .nav-brand::before, body.mf-crt #globalNav .nav-explore-link::before { content: '['; }
  body.mf-crt #globalNav .nav-brand::after, body.mf-crt #globalNav .nav-explore-link::after { content: ']'; }
  body.mf-crt #globalNav .nav-current { overflow: hidden; text-overflow: clip; min-width: 0; }
  body.mf-crt #globalNav .nav-profile-btn::before { content: '[@]'; }
  body.mf-crt #globalNav .nav-profile-btn--heart::before { content: '[<3]'; }
  body.mf-crt > .footer-component .site-footer-links { font-size: 1.05rem; }
}

/* Phones: on a timed date the words and the buttons matter most, so they come
   straight after the face; the dossier and transcript drop below. */
@media (max-width: 760px) {
  .mf-tag { margin-top: 0.1em; padding-top: 0.9em; padding-bottom: 0.9em; }
  .mf-tag-name { font-size: 1.2em; }
  .mf-right > .mf-speech  { order: 1; }
  .mf-right > .mf-options { order: 2; }
  .mf-right > .mf-actions { order: 3; }
  .mf-right > .mf-vibe    { order: 4; }
  .mf-right > .mf-log     { order: 5; }
  .mf-right > .mf-card    { order: 6; }
  .mf-speech { min-height: calc(3 * var(--lh) + 2 * var(--lh)); font-size: 1.05em; }
}
@media (max-width: 760px) {
  .mf-opt { display: block; padding: 0.2em 0.4ch; }
  .mf-opt-tone { margin: 0 0.6ch 0 0.4ch; }
}
