/* ------------------------------------------------------------------------- *
 * minute.fun shared chrome for static experiments (public/e/*).
 * Mirrors src/components/MinuteFunChrome.tsx — keep the two in sync.
 * Tokens match src/app/globals.css (which mirrors minute.tech).
 * ------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --mf-ground: #000000;
  --mf-panel: #0f0f12;
  --mf-panel2: #18181f;
  --mf-line: #26262e;
  --mf-paper: #ffffff;
  --mf-paper-dim: #8f8f8f;
  --mf-coral: #ff6b5a;
  --mf-leaf: #4ade80;
  --mf-amber: #fbbf24;
  --mf-violet: #a78bfa;
  --mf-cyan: #22d3ee;
  --mf-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mf-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* "minute.fun" wordmark link, prepended into each experiment's own header.
   The brain mark rides along as a CSS mask so static pages don't each need
   to carry the path. */
.mf-home {
  display: inline-flex;
  align-items: center;
  font-family: var(--mf-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--mf-paper);
  text-decoration: none;
  white-space: nowrap;
}
.mf-home::before {
  content: '';
  display: inline-block;
  margin-right: 0.4em;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: url('/mf/mark.svg') center / contain no-repeat;
  mask: url('/mf/mark.svg') center / contain no-repeat;
}
.mf-home:hover {
  color: #fff;
}
.mf-home i {
  font-style: normal;
  color: var(--mf-coral);
}
.mf-sep {
  color: rgb(255 255 255 / 0.25);
  font-size: 14px;
  user-select: none;
}

/* Floating corner chip for fullscreen games where a bar would cover the HUD. */
.mf-chip {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(0 0 0 / 0.78);
  backdrop-filter: blur(6px);
  font-family: var(--mf-display);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--mf-paper);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.mf-chip::before {
  content: '';
  display: inline-block;
  margin-right: 0.4em;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url('/mf/mark.svg') center / contain no-repeat;
  mask: url('/mf/mark.svg') center / contain no-repeat;
}
.mf-chip:hover {
  opacity: 1;
  color: #fff;
}
.mf-chip i {
  font-style: normal;
  color: var(--mf-coral);
}

/* Standard footer block: "Part of minute.fun" + Built by Minute.tech logo. */
.mf-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: var(--mf-sans);
  font-size: 13px;
  color: rgb(255 255 255 / 0.6);
}
.mf-footer a {
  color: inherit;
}
.mf-footer .mf-home {
  display: inline-flex;
}
.mf-footer .mf-home::before {
  display: none;
}
.mf-builtby {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: rgb(255 255 255 / 0.45);
  text-decoration: none;
  transition: color 0.15s ease;
}
.mf-builtby:hover {
  color: var(--mf-paper);
}
.mf-builtby svg {
  display: block;
  height: 1.25em;
  width: auto;
  fill: currentColor;
}
@keyframes mf-spin {
  to {
    transform: rotate(360deg);
  }
}
.mf-builtby:hover svg,
.mf-builtby:focus-visible svg {
  animation: mf-spin 1.5s linear infinite;
}
.mf-footer small {
  font-size: 11px;
  color: rgb(255 255 255 / 0.35);
}
