/* MIB · The Game — SHARED design tokens
 * Loaded first by every game + portal. Game-specific style.css can override.
 */

:root {
  --bg-deep: #03020a;
  --bg-mid: #0a0820;
  --bg-glow: #1a0f3a;
  --ink: #f4f1ea;
  --ink-dim: #a09c92;
  --phosphor: #b6ff2e;
  --phosphor-soft: rgba(182, 255, 46, 0.18);
  --danger: #ff3860;
  --hairline: rgba(244, 241, 234, 0.14);

  --font-display: "IBM Plex Sans Thai", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Sukhumvit Set", "Noto Sans Thai", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-display);
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Reusable button styles shared across games + portal */
.btn-primary, .btn-secondary {
  display: block;
  width: 100%;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--phosphor);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--phosphor-soft), 0 0 0 1px var(--phosphor) inset;
  margin-bottom: 12px;
}
.btn-primary:active { transform: scale(0.97); box-shadow: 0 0 12px var(--phosphor-soft); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.btn-secondary:active { transform: scale(0.97); background: rgba(244, 241, 234, 0.04); }

/* Pulsing hint text shared between splash + portal */
.hint {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin: 16px 0 0;
  animation: pulse 1.6s ease-in-out infinite;
}
.hint-small {
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 24px;
  opacity: 0.55;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
