:root {
    --xm: #ff3b3b;
    --signal: #ff8a18;
    --ember: #e24a1f;
}

html,
body {
    background-color: #04060a;
}

.hex-grid,
.scanlines {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hex-grid {
    z-index: 0;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 59, 59, 0.10), transparent 50%),
        radial-gradient(900px 500px at 100% 0%, rgba(255, 138, 24, 0.08), transparent 45%),
        #04060a;
}

.hex-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(30deg, rgba(255, 59, 59, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 59, 59, 0.14) 87.5%, rgba(255, 59, 59, 0.14)),
        linear-gradient(150deg, rgba(255, 59, 59, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 59, 59, 0.14) 87.5%, rgba(255, 59, 59, 0.14)),
        linear-gradient(30deg, rgba(255, 59, 59, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 59, 59, 0.14) 87.5%, rgba(255, 59, 59, 0.14)),
        linear-gradient(150deg, rgba(255, 59, 59, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 59, 59, 0.14) 87.5%, rgba(255, 59, 59, 0.14)),
        linear-gradient(60deg, rgba(255, 138, 24, 0.10) 25%, transparent 25.5%, transparent 75%, rgba(255, 138, 24, 0.10) 75%, rgba(255, 138, 24, 0.10)),
        linear-gradient(60deg, rgba(255, 138, 24, 0.10) 25%, transparent 25.5%, transparent 75%, rgba(255, 138, 24, 0.10) 75%, rgba(255, 138, 24, 0.10));
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
}

.scanlines {
    z-index: 0;
    opacity: 0.035;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.35) 0,
        rgba(255, 255, 255, 0.35) 1px,
        transparent 2px,
        transparent 4px
    );
}

header, main, footer {
    position: relative;
    z-index: 1;
}

.hud-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(22, 18, 15, 0.94), rgba(12, 10, 8, 0.92));
    border: 1px solid rgba(255, 59, 59, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 138, 24, 0.08), 0 0 28px rgba(255, 59, 59, 0.06);
}

.hud-panel::before,
.hud-panel::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--xm);
    opacity: 0.7;
}

.hud-panel::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.hud-panel::after {
    right: -1px;
    bottom: -1px;
    border-left: 0;
    border-top: 0;
}

.nav-link {
    display: block;
    padding: 0.45rem 0.8rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c2b8ae;
}

.nav-link:hover,
.nav-link-active {
    color: #ff3b3b;
    background: rgba(255, 59, 59, 0.08);
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(194, 184, 174, 0.2);
    color: #c2b8ae;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.vote-btn:hover {
    border-color: rgba(255, 59, 59, 0.45);
    color: #ff3b3b;
}

.vote-btn.is-up {
    border-color: rgba(255, 59, 59, 0.55);
    color: #ff3b3b;
    background: rgba(255, 59, 59, 0.08);
}

.vote-btn.is-down {
    border-color: rgba(255, 138, 24, 0.55);
    color: #ff8a18;
    background: rgba(255, 138, 24, 0.08);
}

.prose-field a {
    color: #ff3b3b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-field a:hover {
    color: #ff8a18;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    background: rgba(4, 6, 10, 0.7);
    border: 1px solid rgba(255, 59, 59, 0.24);
    color: #f3ece6;
    padding: 0.7rem 0.85rem;
    font-family: "Exo 2", sans-serif;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: #ff8a18;
    box-shadow: 0 0 0 3px rgba(255, 138, 24, 0.14);
}

.btn-xm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: "Orbitron", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #04060a;
    background: linear-gradient(90deg, #ff3b3b, #ff8a18);
}

.btn-xm:hover {
    filter: brightness(1.08);
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ff8a18;
    border: 1px solid rgba(255, 138, 24, 0.45);
    background: rgba(255, 138, 24, 0.08);
}

.btn-copy:hover {
    color: #ff3b3b;
    border-color: rgba(255, 59, 59, 0.55);
    background: rgba(255, 59, 59, 0.08);
}

.gsi-button {
    display: inline-block;
    min-height: 40px;
}
