/*
 * common.css — shared styles for every IGNOLUXBIT mini game
 * =========================================================
 * Design tokens locked per BRAND_GUIDELINES.md
 * Load via: <link rel="stylesheet" href="../../SHARED/common.css">
 */

:root {
  --nlx-core: #4fd4e8;
  --nlx-hi: #a8ecf5;
  --nlx-shadow: #2a7a8a;
  --nlx-black: #0a0a12;
  --nlx-charcoal: #141820;
  --nlx-graphite: #1a1a22;
  --nlx-white: #e8faff;
  --nlx-muted: #6ec5d4;
  --nlx-text-muted: #9ca0ac;
  --nlx-success: #4fe890;
  --nlx-warn: #e8c74f;
  --nlx-danger: #e8504f;
  --nlx-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nlx-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body {
  background: var(--nlx-black);
  color: var(--nlx-white);
  font-family: var(--nlx-font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

canvas { display: block; touch-action: none; }

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Persistent IGNOLUXBIT watermark (touchpoint 2, DOM form) */
.nlx-watermark {
  position: fixed;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--nlx-muted);
  opacity: 0.22;
  pointer-events: none;
  z-index: 10;
}

/* HUD base */
.nlx-hud {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 5;
  pointer-events: none;
}

.nlx-hud-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--nlx-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.nlx-hud-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--nlx-white);
  font-variant-numeric: tabular-nums;
}

/* Overlay base (pause, game-over) */
.nlx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.nlx-overlay.visible { display: flex; }

/* Buttons */
.nlx-btn {
  padding: 12px 28px;
  background: var(--nlx-core);
  color: var(--nlx-black);
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.nlx-btn:active { transform: scale(0.97); }
.nlx-btn:hover { background: var(--nlx-hi); }

.nlx-btn-alt {
  padding: 12px 28px;
  background: transparent;
  color: var(--nlx-white);
  border: 1px solid var(--nlx-shadow);
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* Footer (touchpoint 6) */
.nlx-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(10,10,18,0.95), transparent);
  display: none; /* shown only on menu / game-over screens */
}
.nlx-footer.visible { display: flex; }

/* Motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .nlx-hud { padding-top: env(safe-area-inset-top); }
  .nlx-footer { padding-bottom: env(safe-area-inset-bottom); }
}
