/* L.O.S Operation Deadzone's own look (deadzone.losgames.xyz): a quarantine zone after dark. Loaded last, on its site
   only (layouts/app.blade.php), so its colours win over the shared themes and no other site changes. Every page of the
   site wears it: the landing page, the wiki, the forums. The landing page's own pieces are in subsite/deadzone.blade.php. */

/* Silkscreen and Share Tech Mono, served from this site (SIL Open Font License 1.1: /fonts/OFL-Silkscreen.txt, /fonts/OFL-ShareTechMono.txt). */
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/silkscreen-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/silkscreen-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/share-tech-mono-latin-400-normal.woff2') format('woff2'); }

html[data-site="deadzone"] {
    --dz-red: #d23a2c;
    --dz-red-hot: #ff5a47;
    --dz-hazard: #f2c230;
    --dz-ink: #07090a;
    --dz-panel: #11150f;
    --dz-panel-2: #171c15;
    --dz-line: rgba(214, 230, 200, 0.09);
    --dz-text: #dfe6d8;
    --dz-dim: #8f9a88;
    --dz-mono: 'Share Tech Mono', ui-monospace, 'Courier New', monospace;
    --dz-pixel: 'Silkscreen', 'Share Tech Mono', monospace;

    --bg: #0a0c0a;
    --surface: #11150f;
    --surface-alt: #171c15;
    --text: #dfe6d8;
    --muted: #8f9a88;
    --link: #ff6b5a;
    --link-strong: #ff8f80;
    --border: #2a3127;
    --row-border: #1e241c;
    --head-from: #8e1f17;
    --head-to: #4a0f0b;
    --head-text: #fff3ef;
    --header-from: #0d100d;
    --header-to: #050605;
    --nav-text: #cfd8c8;
    --nav-active-bg: rgba(242, 194, 48, 0.14);
    --nav-active-text: #f2c230;
    --brand-a: #f2c230;
    --brand-b: #ff5a47;
    --gold: #f2c230;
    --gold-dark: #d6a81c;
    --gold-text: #120d02;
    --accent: #d23a2c;
    --icon-from: #e0503f;
    --icon-to: #8e1f17;
    --chip-bg: #1a1f18;
    --chip-border: #2e362b;
    --footer-from: #0b0e0b;
    --footer-to: #040504;
    --footer-text: #9aa592;
    --g1: #d23a2c;
    --g2: #f2c230;
    --g3: #0d100d;
    color-scheme: dark;
}

/* the ground: near-black, a faint survey grid, grain, and a vignette */
html[data-site="deadzone"] body.los-body {
    background-color: #0a0c0a;
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(210, 58, 44, 0.16), transparent 55%),
        radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, 0.9), transparent 60%),
        linear-gradient(rgba(214, 230, 200, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 230, 200, 0.025) 1px, transparent 1px),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.05'/></svg>");
    background-size: auto, auto, 48px 48px, 48px 48px, 160px 160px;
    background-attachment: fixed;
    color: var(--dz-text);
}
/* a CRT's scanlines over everything, barely there */
html[data-site="deadzone"] body.los-body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 3px);
    mix-blend-mode: multiply;
}
html[data-site="deadzone"] ::selection { background: var(--dz-red); color: #fff; }

/* the header: blacked out, with hazard tape along its foot */
html[data-site="deadzone"] .los-header {
    background: linear-gradient(180deg, #0f130f, #050605) !important;
    border-bottom: 0 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.55);
    position: relative;
}
html[data-site="deadzone"] .los-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
    background: repeating-linear-gradient(-45deg, var(--dz-hazard) 0 12px, #111 12px 24px);
    opacity: 0.85;
}
html[data-site="deadzone"] .los-brand { font-family: var(--dz-pixel); letter-spacing: 0.02em; text-transform: uppercase; font-size: 1rem; }
html[data-site="deadzone"] .los-brand-a { color: var(--dz-red-hot) !important; }
html[data-site="deadzone"] .los-brand-b { color: #e9eee4 !important; }
html[data-site="deadzone"] .los-nav a, html[data-site="deadzone"] .los-nav button { font-family: var(--dz-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.88rem; }
html[data-site="deadzone"] .los-nav-play { background: var(--dz-red) !important; color: #fff !important; border-color: var(--dz-red) !important; box-shadow: 0 0 18px rgba(210, 58, 44, 0.45); }
html[data-site="deadzone"] .los-nav-play:hover { background: var(--dz-red-hot) !important; }

/* the live broadcast under the header (partials/deadzone-ticker) */
.dz-ticker { position: relative; overflow: hidden; background: #070807; border-bottom: 1px solid #1c211a; font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: #b9c4b0; white-space: nowrap; margin-top: 6px; }
.dz-ticker-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #070807; color: #ff5a47; text-transform: uppercase; letter-spacing: 0.14em; box-shadow: 14px 0 14px #070807; }
.dz-ticker-label i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b2b; box-shadow: 0 0 10px #ff3b2b; animation: dz-blink 1.2s steps(2) infinite; }
.dz-ticker-track { display: inline-block; padding: 7px 0 7px 100%; animation: dz-scroll 55s linear infinite; }
.dz-ticker-track span { margin-right: 46px; }
.dz-ticker-track b { color: #f2c230; font-weight: 400; }
@keyframes dz-scroll { to { transform: translateX(-100%); } }
@keyframes dz-blink { 50% { opacity: 0.25; } }

/* panels: dark plate with a red-lit header and corner brackets */
html[data-site="deadzone"] .los-card {
    background:
        linear-gradient(var(--dz-red), var(--dz-red)) top left / 14px 2px no-repeat,
        linear-gradient(var(--dz-red), var(--dz-red)) top left / 2px 14px no-repeat,
        linear-gradient(var(--dz-red), var(--dz-red)) bottom right / 14px 2px no-repeat,
        linear-gradient(var(--dz-red), var(--dz-red)) bottom right / 2px 14px no-repeat,
        var(--dz-panel);
    border: 1px solid var(--dz-line) !important;
    border-radius: 4px !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
html[data-site="deadzone"] .los-card-head {
    font-family: var(--dz-pixel); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem;
    background: linear-gradient(90deg, #6e1711, #2a0a07 70%, transparent) !important;
    border-bottom: 1px solid rgba(210, 58, 44, 0.45) !important; color: #fff3ef !important;
}
html[data-site="deadzone"] .los-btn { border-radius: 3px; font-family: var(--dz-mono); text-transform: uppercase; letter-spacing: 0.06em; }
html[data-site="deadzone"] .los-btn-gold { background: var(--dz-hazard) !important; color: #120d02 !important; border-color: var(--dz-hazard) !important; }
html[data-site="deadzone"] input, html[data-site="deadzone"] textarea, html[data-site="deadzone"] select {
    background: #0c0f0b !important; color: var(--dz-text) !important; border-color: #2a3127 !important;
}
html[data-site="deadzone"] input:focus, html[data-site="deadzone"] textarea:focus { border-color: var(--dz-red) !important; box-shadow: 0 0 0 2px rgba(210, 58, 44, 0.25) !important; }

/* the wiki: a field manual */
html[data-site="deadzone"] .los-wiki-prose h2 { font-family: var(--dz-pixel); text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.03em; color: #fff; border-bottom: 1px dashed rgba(210, 58, 44, 0.45); padding-bottom: 6px; }
html[data-site="deadzone"] .los-wiki-prose h3 { font-family: var(--dz-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dz-hazard); }
html[data-site="deadzone"] .los-wiki-prose img { border: 1px solid #2a3127; border-radius: 3px; image-rendering: pixelated; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
html[data-site="deadzone"] .los-wiki-prose em { color: var(--dz-dim); }
html[data-site="deadzone"] .los-wiki-prose table { border-collapse: collapse; background: #0d100c; }
html[data-site="deadzone"] .los-wiki-prose th { font-family: var(--dz-mono); text-transform: uppercase; letter-spacing: 0.05em; background: #1b1f19 !important; color: var(--dz-hazard) !important; border-color: #2a3127 !important; }
html[data-site="deadzone"] .los-wiki-prose td { border-color: #222820 !important; }
html[data-site="deadzone"] .los-wiki-prose tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
html[data-site="deadzone"] .los-wiki-prose blockquote { border-left: 3px solid var(--dz-red); background: rgba(210, 58, 44, 0.07); color: #e9d8d4; padding: 10px 16px; margin-left: 0; font-family: var(--dz-mono); }
html[data-site="deadzone"] .los-wiki-prose code { background: #1a1f18; color: var(--dz-hazard); }
html[data-site="deadzone"] .los-toc { background: #0d100c !important; border: 1px solid #2a3127 !important; font-family: var(--dz-mono); }

/* the footer: hazard tape on top */
html[data-site="deadzone"] .los-footer { position: relative; border-top: 0 !important; }
html[data-site="deadzone"] .los-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--dz-hazard) 0 12px, #111 12px 24px); opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
    .dz-ticker-track { animation: none; padding-left: 170px; }
    html[data-site="deadzone"] body.los-body::after { display: none; }
}
