/* Adapted from mazala-cybersec/mazala-ctf-rounds. See /credits/interface.md. */
@font-face { font-family: "Chakra Petch"; src: url('/fonts/ChakraPetch-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url('/fonts/ChakraPetch-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url('/fonts/ChakraPetch-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url('/fonts/JetBrainsMono.ttf') format('truetype'); font-weight: 100 800; font-display: swap; }
/* Retained alongside the authored scene fonts as a local fallback. */
@font-face { font-family: "Source Sans 3"; src: url('/fonts/SourceSans3-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url('/fonts/SourceSans3-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url('/fonts/SourceSans3-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --background: #1a1d23;
  --surface: #22262e;
  --elevated: #2a2f38;
  --foreground: #f0f0f0;
  --muted: #8a8f98;
  --gold: #f5c518;
  --gold-dim: #c9a20e;
  --silver: #c3c9d4;
  --bronze: #cd7f4d;
  --cyan: #00b4d8;
  --ice: #bfe9ff;
  --red: #e63946;
  --green: #3ccf3c;
  --border: #2d323c;
  --border-light: #3a4050;
  --font-sans: "Chakra Petch", "Source Sans 3", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  font-family: var(--font-sans);
  font-synthesis: none;
  color: var(--foreground);
  background: var(--background);
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--border-light) var(--background); }
body { margin: 0; background-image: radial-gradient(circle, #00b4d818 .7px, transparent .7px); background-size: 24px 24px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--foreground); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-sans); letter-spacing: .01em; }
::selection { background: #f5c5184d; color: var(--foreground); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--gold); text-decoration: none; }
.brand img { width: 58px; height: 47px; object-fit: contain; flex: none; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: .04em; line-height: 1.15; }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .14em; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 7px 14px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover { border-color: var(--border-light); color: var(--foreground); }
.site-nav [aria-current="page"] { border-color: var(--gold); color: var(--gold); background: #f5c5181a; }
.hud-corners { position: relative; border: 1px solid var(--border); border-radius: 0; background: var(--surface); }
.hud-corners::before, .hud-corners::after { content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none; z-index: 1; }
.hud-corners::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hud-corners::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--border-light); border-radius: 5px; background: var(--surface); color: var(--foreground); transition: background .15s, border-color .15s, box-shadow .15s; text-decoration: none; }
.button { padding: 9px 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.icon-button { width: 40px; height: 40px; padding: 0; flex: none; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { color: var(--foreground); background: var(--elevated); border-color: var(--muted); }
.button.primary { background: var(--gold); border-color: var(--gold); color: var(--background); }
.button.primary:hover:not(:disabled) { background: var(--gold-dim); border-color: var(--gold-dim); color: var(--background); box-shadow: 0 0 18px #f5c51833; }
.button.secondary { border-color: var(--cyan); color: var(--cyan); }
.button.secondary:hover:not(:disabled) { background: #00b4d81a; border-color: var(--cyan); color: var(--cyan); }
.button:disabled, .icon-button:disabled { opacity: .4; }
.ui-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
