/* soft3 — the shared chrome: colours, the world canvas, the shell, the header, glass, the foot. loaded by every page so the site stays one site. */
:root {
    --cream: #fff8f0;
    --ink-glass: rgba(8, 16, 12, 0.62);
    --accent-h: 150;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #06100a;
    color: var(--cream);
    font-family: Play, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 901px) and (min-height: 561px) {
    body {
        overflow: hidden;
    }
    .shell {
        height: 100dvh;
        height: 100vh;
    }
}
#world {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}
.shell {
    position: relative;
    z-index: 2;
    min-height: 100dvh;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: max(0.7rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        max(0.55rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
    min-height: 0;
}
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.78rem, 1.4vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 248, 240, 0.9);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}
.logo {
    letter-spacing: 0.28em;
    color: #fff;
    text-shadow: 0 0 24px rgba(120, 255, 180, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.xbadge {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    color: #7dffc4;
    border: 1px solid rgba(125, 255, 196, 0.45);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    text-shadow: none;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    gap: clamp(0.8rem, 2.5vw, 1.4rem);
    flex-wrap: wrap;
    justify-content: flex-end;
}
.top a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s,
        text-shadow 0.2s;
}
.nav-links a[aria-current="page"] { color: #7dffc4; text-shadow: 0 0 16px rgba(125, 255, 196, 0.6); }
.nav-links a::after { content: ""; display: block; height: 2px; margin-top: 0.15rem; background: transparent; border-radius: 2px; transition: background 0.2s; }
.nav-links a[aria-current="page"]::after { background: #7dffc4; }
.top a:hover {
    color: #fff;
    text-shadow: 0 0 16px rgba(255, 210, 120, 0.9);
}
.glass {
    background: var(--ink-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
}
.foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 248, 240, 0.5);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
#tint { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--facet, #7dffc4); mix-blend-mode: color; opacity: var(--tint, 0); transition: background 0.5s ease, opacity 0.5s ease; }
/* a phone pays for a full-screen blend and a 22px blur every frame: lighter glass, plain tint */
@media (pointer: coarse) {
    .glass { backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
    #tint { mix-blend-mode: normal; opacity: calc(var(--tint, 0) * 0.3); }
}
#tint::after { content: ""; position: absolute; inset: 0; background: var(--facet, #7dffc4); opacity: 0.25; mix-blend-mode: normal; }

/* phones: the menu stays one row — smaller type, no badge, tighter gaps */
@media (max-width: 600px) {
    .top { font-size: 0.68rem; letter-spacing: 0.1em; gap: 0.5rem; flex-wrap: nowrap; }
    .logo { letter-spacing: 0.2em; gap: 0.35rem; }
    .xbadge { display: none; }
    .nav-links { gap: 0.75rem; flex-wrap: nowrap; }
    .nav-links a::after { margin-top: 0.1rem; }
}
