:root {
    --fg: #e6f1ff;
    --muted: #9bb3c7;
    --accent: #00aaff;
    --bg0: #0a0f16;
    --bg1: #0d1420;
    --glass: rgba(13, 20, 32, 0.55);
    --glass-b: rgba(0, 0, 0, 0.35);

    --cell: 48px;
    --line: 1px;
    --grid:#171b22;
    --bar-h: 56px;
}
/*
html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(1200px 800px at 70% 20%, #0f1b2b 0%, #0a0f16 55%),
              radial-gradient(900px 600px at 20% 80%, #081524 0%, #0a0f16 60%);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  overflow: hidden;
}
*/
html, body {
    height: 100%;
    margin: 0;
    background: #0a0f16;
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}
header {
    position: fixed;
    top: 18px; left: 18px; right: 18px;
    top: 0; left: 0; right: 0;
    padding: 12px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    background: rgba(11,13,17,0.7);
}

footer {
    position: fixed;
    bottom: 18px; left: 18px; right: 18px;
    bottom: 0; left: 0; right: 0;
    padding: 12px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    background: rgba(11,13,17,0.7);
}

.brand {
    display: flex; align-items: end; gap: 2px;
    font-weight: 700; letter-spacing: 0.2px;
    font-size: 18px; text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    pointer-events: auto;
    user-select: none;
}
nav {
    display: flex; gap: 6px; align-items: center;
    pointer-events: auto;
}
nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none; color: var(--fg);
    font-size: 14px; line-height: 1; opacity: 0.9;
    background: linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(120deg, #1a2a3d, #0b1624) border-box;
    border: 1px solid transparent; backdrop-filter: blur(8px);
    transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}
nav a:hover { transform: translateY(-1px); opacity: 1; border-color: #1f3a55; }

nav a.active {
    color: var(--accent);
}

.center-overlay {
    position: fixed; inset: 0; display: grid; place-items: center;
    text-align: center; z-index: 5; pointer-events: none;
    padding: 12vh 24px 24px;
}
.title {
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1.05; font-weight: 800; letter-spacing: 0.2px;
    margin: 0 0 12px 0;
    text-shadow: 0 10px 30px rgba(0,0,0,1.45);
    text-shadow: 0 2px 2px rgba(255,255,255,0.25);
}
.subtitle { color: var(--muted); font-size: clamp(14px, 1.4vw, 18px); margin: 0; }

.boxes { position: relative; }

.boxes::before {
    content: "";
    position: fixed;
    inset: var(--bar-h) 0 var(--bar-h) 0;
    pointer-events: none;
    z-index: 0;
    background:
            repeating-linear-gradient(
                    to bottom,
                    transparent 0 calc(var(--cell) - var(--line)),
                    var(--grid) calc(var(--cell) - var(--line)) var(--cell)
            ),
            repeating-linear-gradient(
                    to right,
                    transparent 0 calc(var(--cell) - var(--line)),
                    var(--grid) calc(var(--cell) - var(--line)) var(--cell)
            );
}

#webgl {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 1;
    touch-action: none;
}
.corner-glow {
    position: fixed; width: 60vmin; height: 60vmin; filter: blur(70px); opacity: 0.25;
    background: radial-gradient(circle at center, var(--accent), transparent 60%);
    z-index: 1; pointer-events: none;
}
.corner-glow.tl { top: -15vmin; left: -10vmin; }
.corner-glow.br { bottom: -20vmin; right: -15vmin; }
.hint {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    font-size: 12px; color: var(--muted); opacity: 0.8; user-select: none;
    background: var(--glass); border: 1px solid #132235; border-radius: 999px;
    padding: 8px 12px; backdrop-filter: blur(8px);
    z-index: 6; pointer-events: none;
}

.rainbow {
    display: flex; align-items: end; gap: 2px;
    font-weight: 700; letter-spacing: 0.2px;
    font-size: 18px; text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #00aaff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    pointer-events: auto;
    user-select: none;
}