/* MazeShift — shared styles (fonts, colours, buttons, footer). */

@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/orbitron-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/orbitron-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 900; font-display: swap; src: url('../assets/fonts/orbitron-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/rajdhani-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/rajdhani-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/rajdhani-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/rajdhani-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #05070f;
  --bg-2: #0a1024;
  --panel: rgba(10, 18, 38, 0.78);
  --panel-border: rgba(120, 220, 255, 0.22);
  --text: #e9f7ff;
  --muted: #93a9c2;
  --cyan: #22e6ff;
  --cyan-2: #1a8cff;
  --gold: #ffd34d;
  --magenta: #ff4dd8;
  --violet: #b46bff;
  --red: #ff3b5c;
  --orange: #ff8a1f;
  --green: #4dff9a;
  --ice: #7fd8ff;
  --radius: 16px;
  --font-display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --font-num: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8ff3ff; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px rgba(34, 230, 255, 0.45);
}
.wordmark span {
  background: linear-gradient(100deg, var(--cyan), #8f7bff 60%, var(--magenta));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(34, 230, 255, 0.5));
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); border-color: rgba(34, 230, 255, 0.5); color: #fff; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #22e6ff, #1a8cff 55%, #7b5cff);
  color: #031018; border: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 30px -8px rgba(34, 200, 255, 0.7), 0 0 40px -10px rgba(123, 92, 255, 0.8);
}
.btn-primary:hover { color: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 12px 36px -6px rgba(34, 200, 255, 0.9), 0 0 50px -8px rgba(123, 92, 255, 0.9); }
.btn-secondary { background: rgba(34, 230, 255, 0.1); border-color: rgba(34, 230, 255, 0.45); color: #bff6ff; }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255, 59, 92, 0.18); border-color: rgba(255, 59, 92, 0.6); color: #ffd0d8; }
.btn-lg { min-height: 60px; padding: 14px 40px; font-size: 18px; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 12px; }
.btn small { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; text-transform: none; opacity: 0.75; margin-left: 4px; font-size: 13px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: rgba(8, 14, 30, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s, transform .1s;
}
.icon-btn:hover { border-color: rgba(34, 230, 255, 0.5); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.icon-btn .i-sound-off { display: none; }
.is-muted .icon-btn .i-sound-on { display: none; }
.is-muted .icon-btn .i-sound-off { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 18px;
  font-size: 14px; color: var(--muted);
  padding: 14px 16px calc(14px + var(--safe-b));
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }

kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px;
  font-family: var(--font-display); font-size: 0.72em; text-align: center;
  border: 1px solid rgba(255,255,255,.25); border-bottom-width: 2px; background: rgba(255,255,255,.06);
}

.c-gold { color: var(--gold); } .c-cyan { color: var(--cyan); } .c-red { color: var(--red); }
.c-violet { color: var(--violet); } .c-orange { color: var(--orange); } .c-ice { color: var(--ice); } .c-green { color: var(--green); }

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