/* Shared palette and typography from the homepage and Play Now design.
   Load after component styles so each page keeps its existing layout. */
:root {
    color-scheme: dark;
    --gothic-bg: #0b0b0c;
    --gothic-field: #0e0e10;
    --gothic-surface: #141415;
    --gothic-raised: #222123;
    --gothic-text: #dedbd5;
    --gothic-text-soft: #bbb4a9;
    --gothic-muted: #a49d93;
    --gothic-bronze: #b7a48c;
    --gothic-bronze-light: #e2d9cb;
    --gothic-border: #47423b;
    --ink: var(--gothic-bg);
    --ink-soft: var(--gothic-field);
    --panel: var(--gothic-surface);
    --panel-solid: var(--gothic-surface);
    --paper: var(--gothic-text);
    --parchment: var(--gothic-text-soft);
    --parchment-bright: var(--gothic-text);
    --muted: var(--gothic-muted);
    --brass: var(--gothic-bronze);
    --brass-bright: var(--gothic-bronze-light);
    --brass-dark: #71604a;
    --line: var(--gothic-border);
    --staff-bg: var(--gothic-bg);
    --staff-sidebar: var(--gothic-field);
    --staff-surface: var(--gothic-surface);
    --staff-surface-raised: var(--gothic-raised);
    --staff-border: #35312d;
    --staff-border-strong: var(--gothic-border);
    --staff-text: var(--gothic-text);
    --staff-muted: var(--gothic-muted);
    --staff-gold: var(--gothic-bronze);
    --staff-gold-bright: var(--gothic-bronze-light);
    --portal-bg: var(--gothic-bg);
    --portal-surface: var(--gothic-surface);
    --portal-border: #35312d;
    --portal-border-strong: var(--gothic-border);
    --portal-text: var(--gothic-text);
    --portal-muted: var(--gothic-muted);
    --portal-gold: var(--gothic-bronze);
    --portal-gold-light: var(--gothic-bronze-light);
}

body.gothic-page {
    color: var(--gothic-text);
    background:
        url('/images/gothic-arches.svg?v=2') center top / max(100%, 1100px) auto no-repeat,
        radial-gradient(ellipse at 50% 15%, #26262740, transparent 70%),
        linear-gradient(90deg, #060607, #131314 50%, #060607);
    background-color: var(--gothic-bg);
    font-family: Arial, sans-serif;
}
.gothic-page h1, .gothic-page h2, .gothic-page h3,
.gothic-page h4, .gothic-page h5, .gothic-page h6,
.gothic-page .brand, .gothic-page .footer-brand,
.gothic-page .portal-brand, .gothic-page .sidebar-brand strong {
    color: var(--gothic-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: .035em;
}
.gothic-page .brand, .gothic-page .portal-brand, .gothic-page .sidebar-brand strong {
    letter-spacing: .17em;
}
.gothic-page .brand { text-shadow: 0 2px 20px #000; }
.gothic-page .card, .gothic-page .workspace-card,
.gothic-page .dashboard-panel, .gothic-page .portal-card,
.gothic-page .gallery-editor-card, .gothic-page .metric-card {
    border-radius: 2px;
}
.gothic-page .card {
    background: linear-gradient(100deg, #181717ed, #0d0d0ff5);
    border-color: var(--gothic-border);
    box-shadow: 0 25px 65px #0006, 0 0 0 4px #09090b, 0 0 0 5px #252326;
}
.gothic-page .staff-sidebar { background: #0e0e10f7; }
.gothic-page .portal-topbar, .gothic-page .site-nav.scrolled { background: #0b0b0cf2; }
.gothic-page .workspace-card, .gothic-page .portal-card { background: #141415ed; }
.gothic-page .lede, .gothic-page .meta { color: var(--gothic-muted); }
.gothic-page button, .gothic-page .button { font-family: Arial, sans-serif; }
.gothic-page input, .gothic-page textarea, .gothic-page select {
    accent-color: var(--gothic-bronze);
}
.gothic-page input::placeholder, .gothic-page textarea::placeholder { color: #938c82; }
.gothic-page input[type='file']::file-selector-button {
    padding: .35rem .6rem;
    margin-right: .65rem;
    border: 1px solid #70604b;
    border-radius: 2px;
    color: var(--gothic-bronze-light);
    background: #302b24;
    font-family: Arial, sans-serif;
    cursor: pointer;
}
.gothic-page :focus-visible { outline: 2px solid #d1b89c; outline-offset: 4px; }
.gothic-page ::selection { background: #71604a; color: #f2eee6; }
.gothic-page .rich-text-field .ql-container.ql-snow,
.gothic-page .rich-text-content { font-family: Georgia, 'Times New Roman', serif; }
.gothic-page .rich-text-field .ql-toolbar.ql-snow { font-family: Arial, sans-serif; }
.gothic-page .credits-hero p { font-family: Arial, sans-serif; color: var(--gothic-muted); }
.gothic-page .credits-hero h1 { letter-spacing: .08em; }
.gothic-page .mod-credit h3, .gothic-page .rich-text-content h2,
.gothic-page .rich-text-content h3 { font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
    .gothic-page { scroll-behavior: auto; }
    .gothic-page .launcher-resume { animation: none; }
}

/* Explicit widths prevent centered authentication layouts from constraining
   the full-width staff and account containers on narrow screens. */
.gothic-page .staff-layout, .gothic-page .portal-topbar { width: 100%; min-width: 0; }
.gothic-page .staff-main, .gothic-page .workspace-card { min-width: 0; }
