/* Secondary pages (legal, region-unavailable, removed/offline). Same tokens and components as the main page. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jetbrains-mono-var-latin.woff2') format('woff2'); }

:root {
    color-scheme: dark;
    --bg-deep: #030304;
    --bg-surface: #0a0a0d;
    --bg-card: #111116;
    --accent-red: #ff2a2a;
    --accent-yellow: #ffc800;
    --accent-purple: #9d00ff;
    --accent-gradient: linear-gradient(90deg, var(--accent-red), var(--accent-yellow));
    --text-main: #ffffff;
    --text-muted: #a1a1b5;
    --border-faint: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }
body {
    background-color: var(--bg-deep); color: var(--text-main); font-family: 'Inter', sans-serif;
    min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
/* Ambient lighting, as on the main page: a blurred, saturated episode frame behind everything plus two corner glows */
.ambient-bg { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.ambient-img {
    position: absolute; top: -15%; left: 50%; transform: translateX(-50%); width: 120vw; max-width: 1800px; height: 90vh;
    object-fit: cover; filter: blur(100px) saturate(210%) brightness(0.65); opacity: 0.8; border-radius: 60px;
}
.ambient-glow { position: fixed; pointer-events: none; z-index: -1; filter: blur(100px); opacity: 0.12; }
.glow-1 { top: -20%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--accent-red), transparent 60%); }
.glow-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, #2a1a4a, transparent 60%); }

a { color: var(--accent-red); text-decoration: none; font-weight: 600; transition: color .2s; }
a:hover { color: var(--accent-yellow); }
strong { color: var(--text-main); font-weight: 700; }

/* Header (same as the main page) */
header { display: flex; justify-content: space-between; align-items: center; padding: 28px 40px; max-width: 1400px; margin: 0 auto; width: 100%; }
.brand { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; color: #fff; display: flex; align-items: center; gap: 8px; }
.brand:hover { color: #fff; }
.brand .heart {
    width: 0.9rem; height: 0.9rem; background: var(--accent-red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.credits { display: flex; gap: 20px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.credits a { color: var(--text-muted); }
.credits a:hover { color: var(--text-main); }

/* Page body */
.page { width: 100%; max-width: 860px; margin: 30px auto 70px; padding: 0 20px; flex: 1; }
.page.narrow { max-width: 640px; }
.page-title { font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, #aaa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 26px; }
.page-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 0; margin-bottom: 44px; border-top: 1px solid var(--border-faint); border-bottom: 1px solid var(--border-faint); font-size: 0.85rem; }
.page-nav a { color: var(--text-muted); }
.page-nav a:hover { color: var(--text-main); }

.lead { background: rgba(255,255,255,0.02); border: 1px solid var(--border-faint); border-radius: 12px; padding: 22px 26px; margin-bottom: 30px;
    font-size: 0.92rem; line-height: 1.7; color: var(--text-muted); }

section { margin-bottom: 56px; scroll-margin-top: 20px; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.badge { background: var(--accent-red); color: #000; font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: .02em; }
.badge.yellow { background: var(--accent-yellow); }
.badge.purple { background: var(--accent-purple); color: #fff; }
.badge.muted { background: rgba(255,255,255,0.08); color: var(--text-muted); }

.card { background: rgba(10,10,13,0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--border-faint); border-radius: 12px; padding: 25px; }
.card + .card { margin-top: 14px; }
.card h3 { color: var(--accent-red); font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.card p, .card li { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.card p + p { margin-top: 10px; }
.card ul { padding-left: 18px; }
.card li + li { margin-top: 6px; }

/* Form */
form { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.field > small { font-size: 0.78rem; color: var(--text-muted); }
input[type=text], input[type=email], select, textarea {
    width: 100%; font: inherit; font-size: 0.9rem; color: var(--text-main); background: var(--bg-surface);
    border: 1px solid var(--border-light); border-radius: 10px; padding: 11px 13px; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-red); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.check input { margin-top: 4px; accent-color: var(--accent-red); flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
    padding: 10px 16px; border-radius: 10px; color: var(--text-main); background: rgba(255,255,255,0.04); border: 1px solid var(--border-faint); transition: background .2s, border-color .2s; }
.btn:hover { color: var(--text-main); background: rgba(255,255,255,0.08); border-color: var(--border-light); }
.btn.primary { background: var(--accent-gradient); color: #000; border: 0; }
.btn.primary:hover { color: #000; filter: brightness(1.08); }
form .btn { justify-self: start; padding: 12px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.notice { border-radius: 10px; padding: 14px 16px; margin-top: 22px; font-size: 0.88rem; line-height: 1.6; border: 1px solid; }
.notice.ok { color: #bbf7d0; background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.35); }
.notice.err { color: #fecaca; background: rgba(255,42,42,.08); border-color: rgba(255,42,42,.35); }
.notice ul { margin-top: 6px; padding-left: 18px; }
.notice code, .notice .code { font-family: 'JetBrains Mono', monospace; }
.notice .code { display: inline-block; margin: 6px 0; padding: 4px 10px; border-radius: 6px; font-size: 1.05rem; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); }
.card h3 + ul { margin-bottom: 12px; }

/* Status pages (451 / 410) */
.status-code { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 800; color: var(--text-muted); margin-bottom: 14px; }
.status-code .badge { margin-right: 8px; }
.status-intro { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 26px; }

/* Footer */
.site-footer { width: 100%; border-top: 1px solid var(--border-light); background: linear-gradient(to bottom, rgba(10,10,13,.85), var(--bg-deep)); padding: 34px 20px 40px; }
.site-footer p { max-width: 860px; margin: 0 auto; text-align: center; font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 768px) {
    header { padding: 20px; }
    .credits { gap: 8px; font-size: 0.8rem; }
    .page-title { font-size: 1.6rem; }
    .section-title { font-size: 1.25rem; }
    .card { padding: 20px; }
}
.cf-turnstile { min-height: 65px; }
.region-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.region-table th { text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 0 0 10px; border-bottom: 1px solid var(--border-light); }
.region-table td { padding: 11px 0; color: var(--text-main); border-bottom: 1px solid var(--border-faint); }
.region-table tr:last-child td { border-bottom: 0; color: var(--text-muted); }
.region-table th:last-child, .region-table td:last-child { text-align: right; }
.pill { display: inline-block; min-width: 42px; text-align: center; font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.pill.no { color: #fecaca; background: rgba(255,42,42,.1); border-color: rgba(255,42,42,.4); }
.pill.yes { color: #bbf7d0; background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.35); }
.region-sub { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
