:root {
    --bg: #05090c;
    --panel: #0a1116;
    --panel-2: #0f1820;
    --line: rgba(129, 233, 238, 0.18);
    --line-strong: rgba(203, 163, 79, 0.42);
    --text: #f4f7f8;
    --muted: #a4b3ba;
    --soft: #6f828c;
    --gold: #d7a947;
    --gold-bright: #f4c96b;
    --teal: #29c7d4;
    --teal-soft: rgba(41, 199, 212, 0.15);
    --red: #ff5f67;
    --green: #42d688;
    --focus-ring: #f4c96b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 1120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 80% 9%, rgba(41, 199, 212, 0.16), transparent 32rem),
        radial-gradient(circle at 12% 20%, rgba(215, 169, 71, 0.12), transparent 26rem),
        var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, .eyebrow, .brand, .teaser-chip, .tag, .status-card strong {
    font-family: Cinzel, Palatino, "Times New Roman", serif;
}

.icon-sprite {
    width: 0;
    height: 0;
    position: absolute;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 5vw;
    background:
        linear-gradient(180deg, rgba(10, 18, 25, 0.96), rgba(4, 8, 12, 0.92)),
        radial-gradient(circle at 16% 0%, rgba(41, 199, 212, 0.16), transparent 18rem);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.brand {
    width: 360px;
    height: 84px;
    display: flex;
    align-items: center;
    gap: 13px;
    overflow: visible;
}

.brand-mark {
    width: 76px;
    height: 80px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 16px rgba(41, 199, 212, 0.18));
}

.brand-text {
    width: 190px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    min-width: 92px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.main-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--teal);
    border-color: var(--line);
    background: var(--teal-soft);
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
    gap: 44px;
    padding: 70px 5vw 64px;
    background:
        radial-gradient(circle at 72% 24%, rgba(41, 199, 212, 0.28), transparent 19rem),
        radial-gradient(circle at 88% 12%, rgba(215, 169, 71, 0.18), transparent 16rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98) 0%, rgba(5, 9, 12, 0.82) 38%, rgba(5, 9, 12, 0.5) 100%),
        url("resources/hh3d-home-bg.jpg") center 40% / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(transparent, rgba(5, 9, 12, 0.96));
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    pointer-events: none;
}

.hero-copy,
.featured-panel {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 650px;
    align-self: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 1.06;
    letter-spacing: 0;
}

.hero-text {
    max-width: 610px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-copy .hero-actions:last-child {
    margin-bottom: 0;
}

.primary-button,
.secondary-button {
    min-width: 150px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 850;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-button {
    color: #031013;
    background: linear-gradient(135deg, #31d7df, #1aa7b8);
    box-shadow: 0 12px 34px rgba(41, 199, 212, 0.24);
}

.secondary-button {
    color: var(--gold-bright);
    border: 1px solid var(--line-strong);
    background: rgba(215, 169, 71, 0.08);
}

.primary-button:hover,
.support-form .primary-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #54edf3, #25c2d0);
    box-shadow: 0 16px 42px rgba(41, 199, 212, 0.36);
}

.secondary-button:hover,
.support-form .secondary-button:hover {
    transform: translateY(-2px);
    color: #061014;
    border-color: rgba(244, 201, 107, 0.82);
    background: linear-gradient(135deg, #f4c96b, #d7a947);
    box-shadow: 0 16px 42px rgba(215, 169, 71, 0.24);
}

.status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

.status-card {
    min-height: 84px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 12, 16, 0.72);
}

.status-card strong,
.status-card span {
    display: block;
}

.status-card strong {
    margin: 8px 0 4px;
    font-size: 23px;
}

.status-card span:last-child {
    color: var(--muted);
    font-size: 12px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.status-dot.live {
    background: var(--green);
}

.status-dot.dev {
    background: var(--gold);
}

.status-dot.beta {
    background: var(--red);
}

.featured-panel {
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(13, 27, 36, 0.92), rgba(4, 10, 14, 0.92)),
        rgba(5, 12, 16, 0.78);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-panel img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.featured-body {
    padding: 24px 26px 28px;
}

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #031013;
    background: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-body h2 {
    margin: 16px 0 10px;
    font-size: 30px;
}

.featured-body p,
.updates p {
    color: var(--muted);
    line-height: 1.55;
}

.featured-body a,
.section-heading a,
.game-info a,
.updates a {
    color: var(--teal);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.community-strip {
    width: min(90vw, 1480px);
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: -28px auto 0;
    padding: 18px 22px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 18, 24, 0.98), rgba(9, 29, 34, 0.94)),
        rgba(8, 18, 24, 0.94);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.34);
}

.community-strip strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.community-strip span {
    color: var(--muted);
    font-size: 14px;
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-row a {
    min-width: 86px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
}

.collection,
.updates {
    width: min(90vw, 1480px);
    margin: 0 auto;
}

.collection {
    padding: 70px 0 42px;
    position: relative;
}

.collection::before {
    content: "";
    position: absolute;
    inset: 18px -5vw auto;
    height: 360px;
    background:
        radial-gradient(circle at 12% 28%, rgba(215, 169, 71, 0.08), transparent 22rem),
        radial-gradient(circle at 78% 18%, rgba(41, 199, 212, 0.12), transparent 26rem);
    pointer-events: none;
    z-index: -1;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.section-heading h2,
.updates h2 {
    margin-bottom: 0;
    font-size: 34px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    min-height: 390px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(16, 28, 36, 0.92), rgba(7, 14, 18, 0.96)),
        radial-gradient(circle at 50% 0%, rgba(41, 199, 212, 0.12), transparent 18rem);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(41, 199, 212, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.game-card.wide {
    grid-column: span 2;
}

.game-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
    filter: saturate(1.08) contrast(1.04);
}

.game-slideshow {
    width: 100%;
    height: 185px;
    position: relative;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: rgba(3, 8, 11, 0.82);
}

.game-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 700ms ease;
}

.game-slideshow img.slide-active,
.game-slideshow img:first-child:only-child {
    opacity: 1;
}

/* Fallback when JS is unavailable: simple 2-frame fade */
.game-slideshow:not([data-slideshow-ready]) img:first-child {
    opacity: 1;
}
.game-slideshow:not([data-slideshow-ready]) img:nth-child(2) {
    animation: gameSlideFade 8s infinite;
    animation-delay: 4s;
}

@keyframes gameSlideFade {
    0%,
    42% {
        opacity: 1;
    }
    50%,
    92% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.placeholder-art {
    width: 100%;
    height: 185px;
    display: flex;
    align-items: end;
    padding: 20px;
    position: relative;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: #071014;
}

.placeholder-art::before,
.placeholder-art::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.placeholder-art::before {
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.55;
}

.placeholder-art::after {
    width: 190px;
    height: 190px;
    right: -42px;
    top: -34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.placeholder-art span {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.placeholder-bit-rust {
    background:
        radial-gradient(circle at 72% 25%, rgba(255, 95, 103, 0.22), transparent 17rem),
        linear-gradient(145deg, #071014, #14080d 68%, #030506);
}

.placeholder-phoenix {
    background:
        radial-gradient(circle at 72% 18%, rgba(244, 201, 107, 0.28), transparent 16rem),
        linear-gradient(145deg, #081714, #152512 58%, #030506);
}

.placeholder-rhineland {
    background:
        radial-gradient(circle at 70% 20%, rgba(41, 199, 212, 0.24), transparent 16rem),
        linear-gradient(145deg, #071014, #0d1b2b 62%, #030506);
}

.placeholder-rhineland-2d {
    background:
        radial-gradient(circle at 72% 20%, rgba(74, 214, 136, 0.22), transparent 15rem),
        linear-gradient(145deg, #071014, #112416 62%, #030506);
}

.game-card.wide img {
    height: 220px;
}

.game-info {
    padding: 18px;
}

.tag {
    color: var(--gold-bright);
    background: rgba(215, 169, 71, 0.12);
    border: 1px solid rgba(215, 169, 71, 0.25);
}

.game-info h3 {
    margin: 14px 0 8px;
    font-size: 22px;
}

.game-info p {
    min-height: 64px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.updates {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    padding: 0 0 54px;
}

.updates article {
    min-height: 190px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(10, 22, 29, 0.96), rgba(7, 14, 18, 0.92)),
        rgba(9, 18, 23, 0.9);
}

.updates ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 20px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.updates li::before {
    content: "";
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--teal);
}

.page-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 78px 5vw 58px;
    position: relative;
    background:
        radial-gradient(circle at 78% 18%, rgba(41, 199, 212, 0.24), transparent 20rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.72)),
        url("resources/map-bg.jpg") center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.page-hero > div {
    width: min(760px, 90vw);
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(42px, 4.4vw, 68px);
}

.contact-hero {
    min-height: 260px;
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.26), transparent 22rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.76)),
        url("resources/screenshots/hh-03-campfire.jpg") center 60% / cover no-repeat;
}

.about-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(215, 169, 71, 0.2), transparent 20rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.68)),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

.about-hero > div,
.about-hero h1,
.about-hero .hero-text {
    width: 100%;
    max-width: none;
}

.about-hero .hero-actions {
    justify-content: center;
}

.contact-layout {
    width: min(90vw, 1480px);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 22px;
    margin: 0 auto;
    padding: 56px 0;
}

.form-card,
.about-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.24);
}

.form-card {
    padding: 28px;
}

.ticket-card {
    border-color: rgba(215, 169, 71, 0.28);
}

.form-heading h2,
.about-panel h2 {
    margin-bottom: 10px;
    font-size: 31px;
}

.form-heading p,
.about-panel p {
    color: var(--muted);
    line-height: 1.55;
}

.support-form {
    display: grid;
    gap: 15px;
    margin-top: 22px;
}

.support-form label {
    display: grid;
    gap: 7px;
}

.support-form label span {
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.support-form input,
.support-form textarea,
.support-form select {
    width: 100%;
    border: 1px solid rgba(129, 233, 238, 0.18);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.72);
    color: var(--text);
    font: inherit;
    padding: 13px 14px;
    outline: none;
}

.support-form textarea {
    resize: vertical;
}

.support-form input:focus,
.support-form textarea:focus,
.support-form select:focus {
    border-color: rgba(41, 199, 212, 0.62);
    box-shadow: 0 0 0 3px rgba(41, 199, 212, 0.12);
}

.support-form button {
    cursor: pointer;
}

.support-form button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.ticket-submit {
    min-width: 0;
    width: 100%;
    background: rgba(215, 169, 71, 0.1);
}

.ticket-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ticket-choice {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(41, 199, 212, 0.06);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.ticket-choice.active,
.ticket-choice:hover {
    color: #061014;
    border-color: rgba(41, 199, 212, 0.8);
    background: linear-gradient(135deg, #31d7df, #1aa7b8);
}

.hp-field {
    display: none !important;
}

.form-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.form-status.is-pending {
    color: var(--gold-bright);
}

.form-status.is-success {
    color: var(--green);
}

.form-status.is-error {
    color: var(--red);
}

.about-grid {
    width: min(90vw, 1480px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    margin: 0 auto;
    padding: 56px 0 20px;
}

.about-panel {
    padding: 28px;
}

.about-lead {
    grid-row: span 2;
}

.about-lead h2 {
    font-size: 38px;
}

.image-panel {
    min-height: 250px;
    padding: 0;
    overflow: hidden;
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.stat-panel strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-bright);
    font-size: 50px;
    line-height: 1;
}

.stat-panel span {
    color: var(--muted);
    line-height: 1.45;
}

.about-showcase {
    width: min(90vw, 1480px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto;
    padding: 18px 0 54px;
}

.about-showcase article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(16, 28, 36, 0.92), rgba(7, 14, 18, 0.96));
    overflow: hidden;
}

.about-showcase img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.about-showcase div {
    padding: 20px;
}

.about-showcase h2 {
    margin-bottom: 8px;
    font-size: 25px;
}

.about-showcase p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.5;
}

.about-links {
    padding-top: 48px;
    padding-bottom: 56px;
}

.about-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.games-hero {
    min-height: 260px;   /* 2026-10-23: a short heading and one line under it; the shared 420px left it half empty */
    padding-top: 58px;
    padding-bottom: 46px;
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.25), transparent 22rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.72)),
        url("resources/gw-ss.png") center / cover no-repeat;
}

.registry-page {
    padding-bottom: 70px;
}

.wiki-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(215, 169, 71, 0.22), transparent 22rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.74)),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

.wiki-shell {
    width: min(90vw, 1480px);
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 22px;
    margin: 0 auto;
    padding: 56px 0;
    align-items: start;
}

.wiki-sidebar,
.wiki-content,
.forum-category {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.24);
}

.wiki-sidebar {
    position: sticky;
    top: 112px;
    max-height: calc(100vh - 134px);
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#guide-search {
    width: calc(100% - 24px);
    margin: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.72);
    color: var(--text);
    padding: 12px 13px;
    font: inherit;
    outline: none;
}

.wiki-nav-list {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding-bottom: 8px;
}

.wiki-guide-btn {
    width: 100%;
    display: block;
    border: 0;
    border-top: 1px solid rgba(129, 233, 238, 0.1);
    background: transparent;
    color: var(--muted);
    padding: 15px 16px;
    text-align: left;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.wiki-guide-btn small {
    display: block;
    margin-top: 5px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 600;
}

.wiki-guide-btn:hover,
.wiki-guide-btn.active {
    color: var(--teal);
    background: rgba(41, 199, 212, 0.08);
}

.wiki-content {
    min-width: 0;
    padding: 30px;
}

.wiki-content h2 {
    margin-bottom: 10px;
    font-size: 38px;
}

.wiki-content > p,
.wiki-meta {
    color: var(--muted);
    line-height: 1.55;
}

.wiki-meta,
.wiki-outline {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.wiki-meta span,
.wiki-outline a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(41, 199, 212, 0.06);
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 750;
}

.wiki-outline a {
    color: var(--teal);
}

.wiki-body {
    color: #d7e0e4;
    line-height: 1.72;
}

.wiki-body h2,
.wiki-body h3,
.wiki-body h4 {
    color: var(--text);
    margin: 30px 0 10px;
    line-height: 1.25;
}

.wiki-body h3 {
    color: var(--gold-bright);
}

.wiki-body a,
.wiki-body button {
    color: var(--teal);
}

.wiki-body button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(41, 199, 212, 0.08);
    padding: 8px 12px;
    cursor: pointer;
}

.wiki-body table {
    width: 100%;
    border-collapse: collapse;
}

.wiki-body th,
.wiki-body td {
    border: 1px solid rgba(129, 233, 238, 0.16);
    padding: 8px;
}

.wiki-body .codex-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wiki-body .codex-card,
.wiki-body .callout,
.wiki-body details {
    border: 1px solid rgba(129, 233, 238, 0.16);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.42);
    padding: 16px;
}

.forum-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.22), transparent 22rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.72)),
        url("resources/hood-slide.jpg") center / cover no-repeat;
}

.forum-board {
    width: min(90vw, 1180px);
    display: grid;
    gap: 22px;
    margin: 0 auto;
    padding: 56px 0;
}

.forum-category {
    overflow: hidden;
}

.forum-category-head {
    padding: 24px 26px;
    border-bottom: 1px solid var(--line);
}

.forum-category-head h2 {
    margin-bottom: 0;
    font-size: 28px;
}

.forum-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(129, 233, 238, 0.1);
    transition: transform 160ms ease, background 160ms ease;
}

.forum-row:last-child {
    border-bottom: 0;
}

.forum-row:hover {
    transform: translateX(4px);
    background: rgba(41, 199, 212, 0.07);
}

.forum-row strong,
.forum-row small {
    display: block;
}

.forum-row strong {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 22px;
}

.forum-row small {
    color: var(--muted);
    line-height: 1.45;
}

.forum-row em {
    min-width: 84px;
    padding: 10px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--gold-bright);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.board-page,
.gcp-shell,
.legal-content-panel {
    width: min(90vw, 1180px);
    margin: 0 auto;
    padding: 56px 0;
}

.gcp-shell {
    width: min(90vw, 1320px);
}

.legal-hero {
    min-height: 260px;
    padding: 56px 5vw 40px;
    background:
        radial-gradient(circle at 78% 20%, rgba(215, 169, 71, 0.22), transparent 22rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.74)),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

.legal-hero h1 {
    font-size: clamp(30px, 3.2vw, 48px);
}

.legal-content-panel,
.board-header-panel,
.board-form-panel,
.thread-card,
.gcp-panel,
.admin-message-card,
.table-panel,
.disclaimer-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.24);
}

.legal-content-panel,
.board-header-panel,
.board-form-panel,
.thread-card,
.gcp-panel,
.admin-message-card,
.disclaimer-card {
    padding: 28px;
}

.legal-content-panel h2,
.board-header-panel h1,
.board-form-panel h2,
.gcp-panel h2,
.admin-message-card h2 {
    margin-bottom: 12px;
}

.legal-content-panel p,
.legal-content-panel li,
.board-header-panel p,
.board-form-panel p,
.muted-note {
    color: var(--muted);
    line-height: 1.62;
}

.legal-content-panel section + section {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(129, 233, 238, 0.12);
}

.thread-list {
    display: grid;
    gap: 16px;
    margin: 22px 0;
}

.thread-title {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
}

.thread-meta {
    margin-bottom: 10px;
    color: var(--soft);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.thread-body {
    color: #d7e0e4;
    line-height: 1.68;
}

.flagship-main {
    border-color: rgba(215, 169, 71, 0.32);
}

.reply-card {
    background:
        linear-gradient(145deg, rgba(8, 18, 24, 0.96), rgba(5, 11, 15, 0.94)),
        rgba(9, 18, 23, 0.9);
}

.btn-forum {
    width: max-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.topic-action {
    margin-top: 16px;
}

.floating-status {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    max-width: 360px;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--gold-bright);
    background: rgba(3, 8, 11, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
    font-size: 13px;
    font-weight: 850;
}

.gcp-grid,
.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.analytics-dashboard {
    margin-top: 28px;
}

.analytics-dashboard .section-heading {
    margin-bottom: 18px;
}

.analytics-dashboard .secondary-button {
    min-width: 132px;
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.analytics-metrics .gcp-panel {
    padding: 20px;
}

.analytics-metrics span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.analytics-metrics strong {
    color: var(--teal);
    font-size: 34px;
    line-height: 1;
}

.analytics-table-panel td strong {
    color: var(--text);
}

.analytics-table-panel td span,
.analytics-note {
    color: var(--soft);
    font-size: 12px;
}

.analytics-table-panel {
    max-height: 540px;
    overflow: auto;
}

.admin-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gcp-panel h2 {
    color: var(--gold-bright);
    font-size: 24px;
}

.gcp-link {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(129, 233, 238, 0.16);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(3, 8, 11, 0.58);
    font-weight: 850;
}

.gcp-link:hover {
    color: var(--teal);
    border-color: rgba(41, 199, 212, 0.42);
}

.gcp-link strong {
    color: var(--gold-bright);
}

.gcp-button {
    width: 100%;
    border: 1px solid rgba(129, 233, 238, 0.16);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.game-backup-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.game-backup-list code {
    font-size: 0.92em;
}

body.game-modal-open {
    overflow: hidden;
}

.game-modal[hidden] {
    display: none !important;
}

.game-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.game-modal__panel {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    padding: 22px;
    border: 1px solid rgba(129, 233, 238, 0.22);
    border-radius: 12px;
    background: rgba(10, 16, 20, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.game-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.game-modal__header h2 {
    margin: 0;
    color: var(--gold-bright);
    font-size: 22px;
}

.game-modal__actions {
    display: grid;
    gap: 10px;
    margin: 18px 0 12px;
}

.admin-message-card .thread-body {
    min-height: 110px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(129, 233, 238, 0.12);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.52);
}

.admin-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.monthly-actions {
    justify-content: center;
    margin-top: 28px;
}

.monthly-actions form {
    margin: 0;
}

.screenshot-preview {
    display: block;
    margin: 14px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(3, 8, 11, 0.62);
}

.screenshot-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.table-panel {
    padding: 0;
    overflow-x: auto;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.member-table th,
.member-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(129, 233, 238, 0.12);
    color: var(--muted);
    text-align: left;
}

.member-table th {
    color: var(--gold-bright);
    background: rgba(3, 8, 11, 0.56);
    font-size: 12px;
    text-transform: uppercase;
}

.avatar-mini {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    object-fit: cover;
}

.member-table .is-active {
    color: var(--green) !important;
    font-weight: 900;
}

.member-table .is-banned {
    color: var(--red) !important;
    font-weight: 900;
}

.account-access {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 5vw;
    background:
        radial-gradient(circle at 72% 18%, rgba(41, 199, 212, 0.22), transparent 22rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.78)),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

.account-card {
    width: min(560px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.97), rgba(6, 13, 17, 0.96)),
        rgba(9, 18, 23, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 90px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.account-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.account-tabs button {
    height: 52px;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--muted);
    background: rgba(3, 8, 11, 0.55);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
}

.account-tabs button:last-child {
    border-right: 0;
}

.account-tabs button.active {
    color: var(--teal);
    background: rgba(41, 199, 212, 0.12);
}

.account-card .form-heading {
    padding: 30px;
}

.account-card h1 {
    margin-bottom: 12px;
    font-size: 46px;
}

.captcha-grid {
    display: grid;
    grid-template-columns: 1fr 80px auto;
    gap: 10px;
    align-items: center;
}

.captcha-card {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--gold-bright);
    background: rgba(3, 8, 11, 0.72);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.account-result {
    margin: 0;
    color: var(--gold-bright);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.banned-alert {
    margin: 22px 22px 0;
    padding: 18px;
    border: 1px solid rgba(255, 95, 103, 0.45);
    border-radius: 8px;
    background: rgba(255, 95, 103, 0.08);
}

.banned-alert h2 {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 20px;
}

.dashboard-shell {
    width: min(90vw, 1260px);
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    margin: 0 auto;
    padding: 70px 0;
}

.profile-card,
.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.24);
}

.profile-card {
    padding: 26px;
    text-align: center;
    align-self: start;
    position: sticky;
    top: 112px;
}

.avatar-frame {
    width: 156px;
    height: 156px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(3, 8, 11, 0.72);
    overflow: hidden;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h1 {
    margin-bottom: 6px;
    font-size: 31px;
    line-height: 1.1;
}

.profile-card p {
    color: var(--muted);
    word-break: break-word;
}

.name-editor {
    display: none;
    gap: 10px;
    margin-top: 16px;
}

.name-editor.open {
    display: grid;
}

.name-editor input {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.72);
    color: var(--text);
    padding: 12px;
    font: inherit;
}

.logout-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-panels {
    display: grid;
    gap: 18px;
}

.dashboard-panel {
    padding: 26px;
}

.dashboard-panel h2 {
    margin-bottom: 16px;
    font-size: 30px;
}

.dashboard-panel p {
    color: var(--muted);
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(129, 233, 238, 0.12);
}

.account-row strong {
    color: var(--green);
    font-size: 12px;
    text-transform: uppercase;
}

.danger-panel {
    border-color: rgba(255, 95, 103, 0.22);
}

.danger-btn {
    min-width: 130px;
    height: 38px;
    margin: 8px 8px 0 0;
    border: 1px solid rgba(255, 95, 103, 0.34);
    border-radius: 8px;
    color: var(--red);
    background: rgba(255, 95, 103, 0.06);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
}

footer {
    border-top: 1px solid var(--line-strong);
    background: #081017;
}

.footer-main {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 18px 42px;
    padding: 6px 5vw;
    background: #0a1219;
}

.footer-column {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.footer-column h2 {
    margin: 0;
    color: var(--gold-bright);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.footer-column a {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.footer-column a:hover {
    color: var(--teal);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.footer-brand img {
    width: 128px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 10px rgba(41, 199, 212, 0.16));
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--teal);
    background: rgba(41, 199, 212, 0.08);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social a:nth-child(1) {
    color: #7eb6ff;
    border-color: rgba(126, 182, 255, 0.32);
    background: rgba(66, 103, 178, 0.16);
}

.footer-social a:nth-child(1) svg {
    fill: currentColor;
    stroke: none;
}

.copyright-bar {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030608;
}

.copyright-bar p {
    margin: 0;
    color: var(--soft);
    font-size: 11px;
}

/* --- Home registry teaser (catalog lives on /games) --- */
.home-registry-teaser {
    padding-bottom: 18px;
}

.registry-teaser-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.24);
}

.registry-teaser-copy p {
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.registry-teaser-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.teaser-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(129, 233, 238, 0.16);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(3, 8, 11, 0.58);
    font-size: 13px;
    font-weight: 800;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.teaser-chip {
    position: relative;
    overflow: visible;
}

.teaser-chip:hover {
    color: var(--teal);
    border-color: rgba(41, 199, 212, 0.42);
    background: rgba(41, 199, 212, 0.08);
    z-index: 5;
}

.chip-preview {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    width: 220px;
    height: 124px;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    transform: translateX(-50%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.teaser-chip:hover .chip-preview {
    display: block;
}

.teaser-chip-more {
    color: var(--gold-bright);
    border-color: rgba(215, 169, 71, 0.35);
}

/* --- Games registry cards --- */
.registry-grid {
    align-items: stretch;
}

.registry-card {
    display: flex;
    flex-direction: column;
    min-height: 460px;
}

.registry-card .game-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.registry-card .game-info p {
    min-height: 0;
}

.registry-card .game-summary {
    flex: 1;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.supporter-hint {
    margin-bottom: 14px !important;
    color: var(--soft) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.game-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-text-link {
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.card-text-link:hover {
    color: var(--teal);
}

.card-view-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

/* --- Dedicated game page --- */
.game-detail-page {
    width: min(90vw, 1260px);
    margin: 0 auto;
    padding: 48px 0 70px;
    display: grid;
    gap: 22px;
}

.game-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.game-stage-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.stage-slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.stage-slide.is-active {
    display: block;
}

.stage-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.game-stage-frame .placeholder-art {
    min-height: 100%;
    border: 0;
}

.stage-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 68px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: rgba(6, 13, 17, 0.62);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.stage-prev { left: 12px; }
.stage-next { right: 12px; }

.stage-nav:hover,
.stage-nav:focus-visible {
    background: rgba(6, 13, 17, 0.88);
}

.game-stage-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.game-stage-strip button {
    position: relative;
    flex: 0 0 148px;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #000;
    cursor: pointer;
    opacity: 0.62;
    scroll-snap-align: start;
}

.game-stage-strip button:hover,
.game-stage-strip button.is-active {
    opacity: 1;
    border-color: var(--gold);
}

.game-stage-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-stage-strip span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-detail-top {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 22px;
    align-items: stretch;
}

.game-detail-intro,
.game-detail-lore,
.supporter-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.24);
}

.game-detail-intro {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-detail-intro h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
}

.game-detail-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.game-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-detail-slider {
    min-height: 320px;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.game-detail-slider.game-slideshow {
    height: auto;
    min-height: 320px;
}

.game-detail-slider img,
.game-detail-slider .placeholder-art {
    height: 100%;
    min-height: 320px;
}

.game-detail-slider .placeholder-art {
    border-bottom: 0;
}

.game-detail-lore {
    padding: 28px;
}

.game-detail-lore h2 {
    margin-bottom: 12px;
    font-size: 30px;
}

.game-detail-lore > p {
    color: var(--muted);
    line-height: 1.6;
}

.supporter-reminder {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(215, 169, 71, 0.28);
    border-radius: 8px;
    background: rgba(215, 169, 71, 0.08);
    color: var(--text) !important;
    font-size: 14px;
}

.supporter-panel {
    padding: 28px;
}

.supporter-panel h2 {
    margin-bottom: 10px;
    font-size: 30px;
    color: var(--gold-bright);
}

.supporter-panel > p {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.supporter-panel.is-unlocked {
    border-color: rgba(41, 199, 212, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(41, 199, 212, 0.12),
        0 22px 70px rgba(0, 0, 0, 0.24);
}

.supporter-locked,
.supporter-unlocked {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.supporter-locked {
    padding: 18px;
    border: 1px solid rgba(129, 233, 238, 0.14);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.5);
}

.supporter-locked p {
    color: var(--muted);
    margin: 0;
}

.supporter-locked .primary-button,
.supporter-locked .secondary-button {
    width: max-content;
}

.supporter-idea-form {
    margin-top: 4px;
}

.form-flash {
    padding: 12px 14px;
    border: 1px solid rgba(255, 95, 103, 0.4);
    border-radius: 8px;
    background: rgba(255, 95, 103, 0.1);
    color: var(--red);
    font-weight: 800;
}

.form-flash.ok {
    border-color: rgba(74, 214, 136, 0.4);
    background: rgba(74, 214, 136, 0.1);
    color: var(--green);
}

.muted-note {
    color: var(--soft);
    font-size: 13px;
    line-height: 1.5;
}

.muted-note a {
    color: var(--teal);
    font-weight: 800;
}

/* News / board helpers */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.news-list .thread-card a {
    color: var(--teal);
    font-weight: 800;
}

/* Forum supporter rows */
.supporter-forum-row em {
    color: var(--gold-bright);
}

.is-muted-row {
    opacity: 0.78;
    pointer-events: none;
    cursor: default;
}

.is-muted-row em {
    color: var(--soft);
}

/* --- Admin membership ownership UI --- */
.membership-card {
    padding: 22px 24px 24px !important;
    margin-bottom: 18px;
    overflow: visible;
}

.membership-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(129, 233, 238, 0.12);
}

.membership-identity {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
}

.membership-identity h2 {
    margin: 0 0 4px;
    font-size: 24px;
    color: var(--gold-bright);
}

.membership-identity p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.membership-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ownership-heading {
    margin-bottom: 14px;
}

.ownership-heading h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.ownership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ownership-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(129, 233, 238, 0.12);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.48);
    cursor: default;
}

.ownership-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    min-width: 0;
}

.ownership-checks {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ownership-checks span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ownership-checks input {
    accent-color: var(--teal);
    width: 15px;
    height: 15px;
}

/* Board page shell used by news + supporters */
.board-page {
    width: min(90vw, 1100px);
    margin: 0 auto;
    padding: 48px 0 70px;
    display: grid;
    gap: 18px;
}

.board-header-panel,
.board-form-panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
}

.board-header-panel h1 {
    margin: 6px 0 10px;
    font-size: clamp(30px, 3.4vw, 42px);
}

.board-header-panel > p,
.board-form-panel > p {
    color: var(--muted);
    line-height: 1.55;
}

.thread-list {
    display: grid;
    gap: 14px;
}

.thread-card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94)),
        rgba(9, 18, 23, 0.9);
}

.thread-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--soft);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.thread-title {
    margin-bottom: 8px;
    color: var(--gold-bright);
    font-size: 20px;
    font-weight: 900;
}

.thread-body {
    color: var(--muted);
    line-height: 1.55;
}

.reply-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(129, 233, 238, 0.12);
}

.reply-card {
    padding: 12px 14px;
    border: 1px solid rgba(129, 233, 238, 0.1);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.45);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.reply-card strong {
    color: var(--text);
    margin-right: 8px;
}

.reply-card span {
    color: var(--soft);
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(41, 199, 212, 0.08);
    color: var(--gold-bright);
    cursor: pointer;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .theme-moon { display: none; }

.site-search-form,
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: relative;
}

.site-search-form input,
.newsletter-form input[type="email"],
.search-hero input[type="search"] {
    flex: 1 1 160px;
    min-height: 40px;
    padding: 0 14px;
    border-style: solid;
    border-color: var(--gold-bright);
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 8px;
    border-right-width: 8px;
    border-radius: 4px;
    background: rgba(5, 9, 12, 0.72);
    color: var(--text);
    box-shadow: inset 0 0 10px rgba(215, 169, 71, 0.08);
}

.site-search-form input:focus,
.newsletter-form input[type="email"]:focus,
.search-hero input[type="search"]:focus {
    outline: none;
    border-color: #f8d98a;
    box-shadow: 0 0 0 2px rgba(215, 169, 71, 0.2), inset 0 0 12px rgba(215, 169, 71, 0.12);
}

.site-search-form button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
}

.site-search-form svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.newsletter-form .hp-field-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.newsletter-status {
    width: 100%;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.newsletter-status:empty {
    display: none;
}

.newsletter-status.is-success { color: var(--green); }
.newsletter-status.is-error { color: var(--red); }

.community-tools {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.community-strip .newsletter-form {
    flex: 1 1 260px;
    min-width: 240px;
}

.community-strip .newsletter-form input[type="email"] {
    min-height: 36px;
}

.community-strip .newsletter-form .secondary-button {
    min-width: 86px;
    height: 36px;
}

.registry-search {
    flex: 0 1 340px;
    min-width: 240px;
    max-width: 360px;
}

.slideshow-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.slideshow-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(244, 247, 248, 0.38);
    cursor: pointer;
}

.slideshow-dot.is-active {
    background: var(--gold-bright);
}

.dispatch-panel {
    width: min(90vw, 1480px);
    margin: 0 auto 28px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.dispatch-panel h2 {
    margin: 0 0 12px;
}

.dispatch-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--text);
}

.dispatch-row:first-of-type {
    border-top: 0;
}

.dispatch-row span {
    color: var(--soft);
    font-size: 13px;
    white-space: nowrap;
}

.search-page,
.donate-page {
    width: min(980px, calc(100% - 10vw));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.search-result {
    display: block;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.search-result:hover {
    border-color: var(--line-strong);
}

.search-result small {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-hero form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.search-hero input[type="search"] {
    flex: 1;
    min-height: 48px;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 28px;
}
.donate-grid .hero-actions { flex-wrap: wrap; }
.donate-grid .primary-button,
.donate-grid .secondary-button { padding: 0 24px; white-space: nowrap; }

.compose-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 8px 16px 16px;
}

.compose-details summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 0;
    color: var(--gold-bright);
}

.range-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.range-switch a.is-active {
    border-color: var(--gold);
    color: var(--gold-bright);
}

.backup-grid label,
.prune-row label {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}

.mod-decision-card {
    margin-bottom: 16px;
}

.log-pre {
    max-height: 480px;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #030608;
    color: #d7efe8;
    font-size: 12px;
    white-space: pre-wrap;
}


/* ---------------------------------------------------------------- Launch build additions */

.featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Home page featured games: the panels share one grid cell and fade between each other. */
.featured-rotator {
    position: relative;
    z-index: 1;
    display: grid;
    align-self: center;
}
.featured-rotator > .featured-panel {
    grid-area: 1 / 1;
    align-self: stretch;
    transition: opacity 0.7s ease, visibility 0.7s;
}
.featured-rotator > .featured-panel:not(.is-active) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .featured-rotator > .featured-panel { transition: none; }
}

.game-detail-tagline {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.primary-button.is-static {
    cursor: default;
    pointer-events: none;
    opacity: 0.92;
}

.trailer-frame {
    position: relative;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.trailer-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.game-detail-lore .feature-grid {
    margin-top: 16px;
}

.wiki-body h2,
.wiki-body h3 {
    scroll-margin-top: 110px;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(41, 199, 212, 0.05);
}

.legal-toc strong {
    flex-basis: 100%;
    font-family: Cinzel, Palatino, "Times New Roman", serif;
}

.legal-toc a {
    color: var(--teal);
    font-size: 14px;
    font-weight: 700;
}

.legal-content-panel h2,
.legal-content-panel h3 {
    scroll-margin-top: 110px;
}

.legal-content-panel a {
    color: var(--teal);
}

.legal-table {
    margin: 12px 0 20px;
}

/* 3 Expandable Legal Containers */
.legal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8, 20, 28, 0.7);
}

.legal-toolbar-actions {
    display: flex;
    gap: 10px;
}

.legal-toggle-btn {
    min-width: 0;
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
    cursor: pointer;
}

.legal-container-box {
    margin-bottom: 26px;
    border: 1px solid rgba(41, 199, 212, 0.38);
    border-radius: 12px;
    background: linear-gradient(155deg, rgba(9, 25, 35, 0.96), rgba(5, 14, 20, 0.96));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(41, 199, 212, 0.18);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.legal-container-box:hover {
    border-color: rgba(41, 199, 212, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(41, 199, 212, 0.25);
}

.legal-container-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    background: rgba(14, 36, 50, 0.5);
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.legal-container-summary::-webkit-details-marker {
    display: none;
}

.legal-container-box[open] > .legal-container-summary {
    border-bottom: 1px solid rgba(41, 199, 212, 0.22);
    background: rgba(14, 38, 52, 0.75);
}

.legal-summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.legal-badge {
    color: var(--teal);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-box-title {
    margin: 0;
    font-family: Cinzel, Palatino, "Times New Roman", serif;
    font-size: clamp(20px, 2.2vw, 27px);
    color: var(--text);
    line-height: 1.2;
}

.legal-box-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.legal-summary-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.legal-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(215, 169, 71, 0.14);
    border: 1px solid rgba(215, 169, 71, 0.38);
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-box-toggle-indicator {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(41, 199, 212, 0.35);
    background: rgba(41, 199, 212, 0.08);
    color: var(--teal);
    transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-box-toggle-indicator svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-container-box[open] .legal-box-toggle-indicator {
    transform: rotate(180deg);
    background: rgba(41, 199, 212, 0.18);
    border-color: var(--teal);
}

.legal-container-body {
    padding: 26px 28px 34px;
}

.toc-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
    padding: 6px 0;
    border-top: 1px solid rgba(129, 233, 238, 0.1);
}

.toc-group:first-of-type {
    border-top: 0;
}

.toc-group-title {
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-right: 4px;
}

.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
}

.ticket-hint {
    margin: 0 0 14px;
}

/* Game cards: `.game-info a` (teal link text) was overriding the dark text on the teal button. */
.game-info a.primary-button,
.game-info a.primary-button:hover {
    color: #031013;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    letter-spacing: 0.03em;
}

.game-info a.card-codex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--gold-bright);
    background: rgba(215, 169, 71, 0.1);
    font-size: 12px;
    letter-spacing: 0.04em;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.game-info a.card-codex-btn:hover {
    color: #061014;
    border-color: rgba(244, 201, 107, 0.82);
    background: linear-gradient(135deg, #f4c96b, #d7a947);
}

/* Short page heroes (wiki, contact): heading only, no paragraph. */
.page-hero.compact-hero {
    min-height: 0;
    padding-top: 46px;
    padding-bottom: 38px;
}

.page-hero.compact-hero h1 {
    margin-bottom: 0;
}

/* ================================================================ Launch build v2 (2026-10-09) */

/* ---------- Shared status pills */
.ticket-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ticket-pill--new { color: #ffd3d6; border-color: rgba(255, 95, 103, 0.5); background: rgba(255, 95, 103, 0.14); }
.ticket-pill--open { color: var(--teal); border-color: rgba(41, 199, 212, 0.45); background: rgba(41, 199, 212, 0.1); }
.ticket-pill--waiting { color: var(--gold-bright); border-color: rgba(215, 169, 71, 0.5); background: rgba(215, 169, 71, 0.1); }
.ticket-pill--resolved { color: var(--green); border-color: rgba(66, 214, 136, 0.45); background: rgba(66, 214, 136, 0.1); }
.ticket-pill--archived { color: var(--soft); background: rgba(111, 130, 140, 0.12); }
.tag--quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-icon { width: 16px; height: 16px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.danger-btn--small { min-width: 0; height: 30px; padding: 0 12px; margin: 0; }

/* ---------- Contact desk */
.contact-desk {
    width: min(90vw, 1180px);
    margin: 0 auto;
    padding: 46px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}
.contact-side { display: grid; gap: 18px; }
.contact-side h2 { margin: 6px 0 8px; font-size: 22px; }
.contact-side p { color: var(--muted); line-height: 1.55; }
.topic-picker { border: 0; margin: 0; padding: 0; }
.topic-picker legend {
    margin-bottom: 12px;
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.support-form label.topic-chip { display: block; position: relative; cursor: pointer; }
.topic-chip input { position: absolute; opacity: 0; pointer-events: none; }
.topic-chip span {
    display: grid !important;
    gap: 3px;
    height: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.5);
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: border-color 140ms ease, background 140ms ease;
}
.topic-chip strong { color: var(--text); font-size: 14px; }
.topic-chip small { color: var(--muted); font-size: 12px; font-weight: 600; }
.topic-chip:hover span { border-color: rgba(41, 199, 212, 0.4); }
.topic-chip input:checked + span { border-color: var(--teal); background: rgba(41, 199, 212, 0.12); box-shadow: inset 0 0 0 1px var(--teal); }
.topic-chip input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.topic-hint { margin: -4px 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row--end { align-items: end; grid-template-columns: 1fr auto; }
.captcha-field span,
[data-captcha-form] {
    font-size: 19px !important;
    font-weight: 900 !important;
    color: var(--gold-bright) !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 5px;
}
.form-row small, .support-form label span small { color: var(--soft); font-weight: 600; letter-spacing: 0; text-transform: none; }
.ticket-receipt { text-align: center; padding: 18px 8px; }
.ticket-receipt h2 { margin: 6px 0 14px; }
.ticket-receipt p { color: var(--muted); }
.ticket-number {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: rgba(215, 169, 71, 0.08);
}
.ticket-number strong { font-family: Cinzel, serif; font-size: 40px; color: var(--gold-bright); letter-spacing: 0.04em; }
.ticket-number .secondary-button { min-width: 90px; height: 38px; }
.ticket-receipt .hero-actions { justify-content: center; }
.contact-steps { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.contact-steps li + li { margin-top: 6px; }
.contact-steps a { color: var(--teal); }

/* ---------- Check a ticket */
.ticket-check { width: min(90vw, 820px); margin: 0 auto; padding: 46px 0 70px; }
.ticket-view__head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ticket-view h2 { margin-bottom: 4px; }
.ticket-thread { display: grid; gap: 12px; margin: 20px 0; }
.ticket-msg { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); }
.ticket-msg strong { color: var(--text); }
.ticket-msg small { margin-left: 8px; color: var(--soft); }
.ticket-msg p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.ticket-msg--studio { border-color: rgba(215, 169, 71, 0.4); background: rgba(215, 169, 71, 0.07); }
.ticket-msg--studio strong { color: var(--gold-bright); }

/* ---------- Account extras */
.account-row--sub { padding-left: 22px; }
.account-row--sub span a { color: var(--teal); font-size: 14px; }
.account-row--link { color: inherit; text-decoration: none; }
.account-row--link:hover strong:first-child { color: var(--teal); }
.dashboard-panel details { margin: 12px 0; }
.dashboard-panel details > summary,
.profile-card details > summary { list-style: none; display: inline-flex; cursor: pointer; }
.dashboard-panel details > summary::-webkit-details-marker,
.profile-card details > summary::-webkit-details-marker { display: none; }
.name-editor-details { margin: 14px 0 6px; }
.inline-form { display: inline; }

/* ---------- Forum extras */
.forum-latest { display: block; margin-top: 4px; color: var(--soft) !important; font-size: 12px !important; }
.forum-rules { text-align: center; }
.forum-rules a, .forum-crumbs a, .board-header-panel .eyebrow a, .forum-hero .hero-text a { color: var(--teal); }
.thread-card--link { display: block; color: inherit; text-decoration: none; transition: border-color 140ms ease, transform 140ms ease; }
.thread-card--link:hover { border-color: rgba(41, 199, 212, 0.42); transform: translateY(-2px); }
.thread-flag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(215, 169, 71, 0.16); color: var(--gold-bright); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.thread-flag--staff { background: rgba(41, 199, 212, 0.16); color: var(--teal); }
.forum-crumbs { margin-bottom: 12px; }
h1.thread-title { font-size: 30px; margin: 6px 0 12px; }

/* ================================================================ GCP Command Center */
.gcp-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 4vw;
    border-bottom: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #070d11, #050a0d);
}
.gcp-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.gcp-brand img { width: 44px; height: 44px; }
.gcp-brand span { display: grid; line-height: 1.05; }
.gcp-brand strong { font-family: Cinzel, serif; font-size: 22px; letter-spacing: 0.12em; color: var(--gold-bright); }
.gcp-brand small { font-family: Cinzel, serif; font-size: 11px; letter-spacing: 0.32em; color: var(--muted); text-transform: uppercase; }
.gcp-topbar__right { display: flex; align-items: center; gap: 16px; }
.gcp-who, .gcp-top-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.gcp-who em { color: var(--gold); font-style: normal; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.gcp-top-link:hover { color: var(--teal); }
.gcp-top-link--out:hover { color: var(--red); }
.gcp-who svg, .gcp-top-link svg, .gcp-sections svg, .gcp-tabs svg, .gcp-card__head svg, .gcp-tile svg, .gcp-feed-icon, .desk-type svg {
    width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.gcp-sections {
    position: sticky;
    top: 69px;
    z-index: 29;
    display: flex;
    gap: 4px;
    padding: 0 4vw;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 15, 20, 0.97);
    backdrop-filter: blur(8px);
}
.gcp-sections a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 14px 12px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.gcp-sections a:hover { color: var(--text); }
.gcp-sections a.is-active { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.gcp-badge { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; text-align: center; }

.gcp-shell { padding-top: 34px; display: grid; gap: 22px; align-content: start; }
.gcp-kicker { margin: 0; font-family: Cinzel, serif; font-size: 12px; letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }
.gcp-kicker a { color: var(--gold); }
.gcp-hero {
    padding: 34px 32px;
    border: 1px solid var(--gold);
    border-radius: 10px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -40%, rgba(215, 169, 71, 0.22), transparent 60%),
        linear-gradient(180deg, #0a1116, #060b0e);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}
.gcp-hero h1 { margin: 10px 0 6px; font-size: 34px; }
.gcp-hero p { margin: 0; color: var(--muted); }
.gcp-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gcp-page-head h1 { margin: 6px 0 0; font-size: 32px; }
.gcp-head-pills { display: flex; gap: 8px; align-items: center; }

.gcp-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.22);
}
.gcp-card--flush { padding: 0; overflow: hidden; }
.gcp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gcp-card__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; }
.gcp-card__head h2 svg { color: var(--gold-bright); }
.gcp-card .secondary-button, .gcp-page-head .secondary-button, .gcp-toolbar .secondary-button, .gcp-bulk .secondary-button { min-width: 0; height: 38px; padding: 0 14px; }
.gcp-subhead { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); font-family: "Source Sans 3", sans-serif; font-weight: 900; }

.gcp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.gcp-stat {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(14, 28, 36, 0.95), rgba(6, 12, 16, 0.95));
    color: inherit;
    transition: border-color 140ms ease, transform 140ms ease;
}
a.gcp-stat:hover { border-color: var(--gold); transform: translateY(-3px); }
.gcp-stat span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.gcp-stat strong { font-family: Cinzel, serif; font-size: 34px; color: var(--text); }
.gcp-stat--hot { border-color: rgba(215, 169, 71, 0.6); }
.gcp-stat--hot strong { color: var(--gold-bright); }

.gcp-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.gcp-feed-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--line); color: inherit; }
.gcp-feed-row:hover { background: rgba(41, 199, 212, 0.05); }
.gcp-feed-icon { color: var(--gold-bright); }
.gcp-feed-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.gcp-feed-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcp-feed-main small { color: var(--muted); }
.gcp-mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.gcp-mini-stats div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.gcp-mini-stats strong { display: block; font-family: Cinzel, serif; font-size: 24px; color: var(--gold-bright); }
.gcp-mini-stats span { color: var(--muted); font-size: 12px; }
.gcp-bar-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.gcp-bar-row b { color: var(--text); }

.gcp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gcp-tile {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 24px;
    border: 1px solid #1e2a31;
    border-radius: 10px;
    background: #070c10;
    color: inherit;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.gcp-tile:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(215, 169, 71, 0.08); }
.gcp-tile svg { width: 28px; height: 28px; color: var(--gold); }
.gcp-tile h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.gcp-tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gcp-tile__count { margin-top: 6px; font-family: Cinzel, serif; font-weight: 700; color: var(--gold-bright); font-size: 14px; }

.gcp-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid var(--gold); border-radius: 10px; background: rgba(215, 169, 71, 0.1); }

.gcp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gcp-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.gcp-tabs a b { color: var(--text); font-weight: 900; }
.gcp-tabs a:hover { border-color: rgba(41, 199, 212, 0.4); color: var(--text); }
.gcp-tabs a.is-active { border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(215, 169, 71, 0.1); }
.gcp-toolbar, .gcp-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.gcp-bulk { padding: 14px 18px; border-top: 1px solid var(--line); }
.gcp-search { display: flex; gap: 8px; }
.gcp-search input, .gcp-search select, .gcp-inline-form select {
    height: 38px;
    border: 1px solid rgba(129, 233, 238, 0.18);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.72);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
}
.gcp-search input { width: 260px; }
.gcp-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); }

.gcp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gcp-table th { padding: 12px 14px; text-align: left; color: var(--gold-bright); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); background: rgba(215, 169, 71, 0.05); }
.gcp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.gcp-table small { color: var(--muted); }
.gcp-table a { color: var(--text); }
.gcp-empty { text-align: center; color: var(--muted) !important; padding: 34px !important; }
.col-check { width: 34px; }
.desk-row { cursor: pointer; }
.desk-row:hover td { background: rgba(41, 199, 212, 0.05); }
.desk-row--new td:nth-child(2) strong { color: var(--red); }
.desk-row.is-high td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.desk-type { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 3px; color: var(--gold-bright); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.desk-type svg { width: 14px; height: 14px; }
.desk-subject { display: block; font-weight: 700; }
.desk-subject:hover { color: var(--teal) !important; }
.desk-flag { display: inline-block; margin: 4px 4px 0 0; padding: 1px 7px; border-radius: 999px; background: rgba(41, 199, 212, 0.12); color: var(--teal); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.desk-flag--public { background: rgba(66, 214, 136, 0.14); color: var(--green); }
.desk-flag--high { background: rgba(255, 95, 103, 0.14); color: var(--red); }

.gcp-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.gcp-ticket-main, .gcp-ticket-side { display: grid; gap: 18px; }
.ticket-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.ticket-who a { color: var(--teal); }
.ticket-who small { color: var(--muted); }
.ticket-body { color: var(--text); line-height: 1.7; }
.ticket-shot { display: block; margin-top: 16px; }
.ticket-shot img { max-height: 420px; width: auto; border: 1px solid var(--line); border-radius: 8px; }
.ticket-timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticket-event { padding: 12px 14px; border-left: 3px solid var(--line); border-radius: 6px; background: rgba(3, 8, 11, 0.35); }
.ticket-event--reply { border-left-color: var(--gold-bright); }
.ticket-event--note { border-left-color: var(--teal); background: rgba(41, 199, 212, 0.05); }
.ticket-event--visitor { border-left-color: var(--green); }
.ticket-event__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 13px; }
.ticket-event__meta span { color: var(--muted); }
.ticket-event__meta em { color: var(--soft); font-size: 11px; text-transform: uppercase; }
.ticket-event__text { margin-top: 6px; color: var(--text); line-height: 1.6; }
.gcp-form-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.gcp-form-row label { flex: 1; min-width: 180px; }
.gcp-side-form { margin-top: 0; }
.support-form label.gcp-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.gcp-check input { width: auto !important; margin-top: 3px; }
.gcp-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; }
.gcp-dl dt { color: var(--muted); }
.gcp-dl dd { margin: 0; color: var(--text); word-break: break-word; }
.gcp-dl a { color: var(--teal); }
.gcp-mini-link { display: block; padding: 6px 0; color: var(--teal); font-size: 13px; }
.gcp-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.gcp-quick .secondary-button, .gcp-quick .danger-btn { min-width: 0; height: 36px; padding: 0 12px; margin: 0; font-size: 12px; }
.gcp-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.gcp-log li { display: grid; grid-template-columns: 46px 1fr; gap: 2px 10px; padding: 8px 10px; border-radius: 6px; background: rgba(3, 8, 11, 0.4); }
.gcp-log li b { grid-row: span 2; font-size: 11px; }
.gcp-log li.is-ok b { color: var(--green); }
.gcp-log li.is-fail b { color: var(--red); }
.gcp-log small { color: var(--muted); }

.member-card.is-banned { border-color: rgba(255, 95, 103, 0.45); }
.member-card__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.member-card__head h2 { margin: 0 0 4px; font-size: 20px; }
.member-card__head p { margin: 0 0 4px; }
.member-card__head a { color: var(--teal); }
.ownership-form { display: grid; gap: 12px; }
.ownership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.ownership-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.ownership-title { flex: 1; color: var(--text); font-weight: 700; }
.ownership-row label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.ownership-form .secondary-button { justify-self: start; }

.mod-thread__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.mod-thread__head h2 { margin: 0 0 4px; font-size: 19px; }
.mod-reply { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 10px 14px; border-left: 2px solid var(--line); background: rgba(3, 8, 11, 0.35); border-radius: 6px; }
.mod-reply p { margin: 4px 0 0; color: var(--muted); }

.gcp-login { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(circle at 50% 0, rgba(215, 169, 71, 0.16), transparent 50%), var(--bg); }
.gcp-login__card { width: min(100%, 440px); padding: 34px; border: 1px solid var(--gold); border-radius: 12px; text-align: center; background: linear-gradient(180deg, #0a1116, #060b0e); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45); }
.gcp-login__card h1 { margin: 6px 0 8px; font-size: 32px; }
.gcp-login__card .support-form { text-align: left; }
.gcp-login__card #codeWrap:not([hidden]) { display: grid; gap: 15px; margin-top: 6px; }
.gcp-login__card #codeWrap .primary-button { width: 100%; justify-content: center; }
.gcp-login__logo { width: 84px; height: 84px; margin: 0 auto 10px; }
.gcp-login__back { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 13px; }

.game-detail-subtitle, .featured-subtitle { margin: -4px 0 12px; font-family: Cinzel, serif; font-size: 18px; letter-spacing: 0.14em; color: var(--gold-bright); text-transform: uppercase; }
.featured-subtitle { margin: -8px 0 10px; font-size: 14px; }

/* The hidden attribute always wins over display rules like .support-form label { display: grid }. */
[hidden] { display: none !important; }

/* ================================================================ Launch build v3 (2026-10-09 pm) */

/* ---------- Coming soon tag + Notify me */
.soon-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 8px;
    padding: 0 10px;
    border: 1px solid rgba(215, 169, 71, 0.6);
    border-radius: 999px;
    background: rgba(215, 169, 71, 0.12);
    color: var(--gold-bright);
    font-family: "Source Sans 3", sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}
.game-info .soon-tag { margin: 0 0 0 6px; }
.notify-form {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px dashed rgba(215, 169, 71, 0.45);
    border-radius: 10px;
    background: rgba(215, 169, 71, 0.06);
}
.notify-form label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.notify-form label strong { color: var(--gold-bright); }
.notify-form__row { display: flex; gap: 10px; }
.notify-form input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1px solid rgba(129, 233, 238, 0.18);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.72);
    color: var(--text);
    padding: 0 14px;
    font: inherit;
}
.notify-form .secondary-button { min-width: 0; height: 44px; padding: 0 18px; white-space: nowrap; }
.notify-form__status { margin: 8px 0 0; color: var(--soft); font-size: 13px; }
.notify-form__status.is-ok { color: var(--green); }
.hp-field-input { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- News */
.news-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.2), transparent 22rem),
        linear-gradient(90deg, rgba(5, 9, 12, 0.98), rgba(5, 9, 12, 0.76)),
        url("resources/screenshots/hh-02-aurora.jpg") center 40% / cover no-repeat;
}
.news-page { width: min(90vw, 900px); margin: 0 auto; padding: 40px 0 70px; display: grid; gap: 18px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.news-filters a {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.news-filters a:hover { color: var(--text); border-color: rgba(41, 199, 212, 0.4); }
.news-filters a.is-active { color: var(--gold-bright); border-color: var(--gold-bright); background: rgba(215, 169, 71, 0.1); }
.news-filters .news-rss { margin-left: auto; color: #f5a623; border-color: rgba(245, 166, 35, 0.45); }
.news-card {
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
.news-card--lead { border-color: rgba(215, 169, 71, 0.45); }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.news-card__meta time { color: var(--soft); font-size: 13px; font-weight: 700; }
.news-card h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.news-card--lead h2 { font-size: 32px; }
.news-card h2 a:hover { color: var(--teal); }
.news-card__body { color: var(--muted); line-height: 1.7; }
.news-card__body ul { padding-left: 20px; }
.news-card__more { display: inline-block; margin-top: 8px; color: var(--teal); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.news-card--empty a { color: var(--teal); }
.news-pager { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.dispatch-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.dispatch-head .secondary-button { min-width: 0; height: 40px; padding: 0 16px; }
.dispatch-row span { color: var(--soft); }
.gcp-mini-select { height: 36px; border: 1px solid rgba(129, 233, 238, 0.18); border-radius: 8px; background: rgba(3, 8, 11, 0.72); color: var(--text); padding: 0 8px; font: inherit; font-size: 13px; }

/* ---------- Fixes */
/* Account sign-in card: forms sit beside the heading, so the card itself carries the side padding. */
.account-card { padding: 0 30px 28px; }
.account-card .form-heading { padding: 30px 0 0; }
.account-card .support-form { margin-top: 18px; }
.account-card > .form-status:empty { display: none; }
.account-card > .muted-note { margin: 18px 0 0; font-size: 13px; }
.account-card .captcha-grid { grid-template-columns: 1fr 96px auto; }
.account-card .captcha-grid .primary-button { padding: 0 22px; }
/* Play page toolbar: give "Get Desktop Edition · $4.99" room to breathe. */
.play-toolbar { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.play-toolbar .primary-button,
.play-toolbar .secondary-button { min-width: 0; padding: 0 24px; white-space: nowrap; }

/* ---------- Keyboard focus: inputs that hide the browser outline get their own ring */
.support-form input:focus-visible,
.support-form textarea:focus-visible,
.support-form select:focus-visible,
#guide-search:focus-visible,
.site-search-form input:focus-visible,
.newsletter-form input[type="email"]:focus-visible,
.search-hero input[type="search"]:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}


/* ================================================================ Light mode (all light-mode rules for this file)
   The class sits on <html> and/or <body>, so every selector starts with .light-mode.
   Dark mode is the default look above and is not touched here. */

.light-mode {
    --bg: #d6e7f7;
    --panel: #c6ddf2;
    --panel-2: #e1effb;
    --line: rgba(16, 62, 108, 0.22);
    --line-strong: #9a7420;
    --line-ui: #547999;
    --text: #061524;
    --muted: #223d57;
    --soft: #355472;
    --gold: #85600f;
    --gold-bright: #7a5508;
    --teal: #075b78;
    --teal-soft: rgba(24, 134, 188, 0.2);
    --red: #b3202a;
    --green: #17703f;
    --focus-ring: #075b78;
    --lm-card: linear-gradient(145deg, #eaf3fc, #d3e6f7);
    --lm-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 40px rgba(10, 38, 68, 0.12);
    --lm-well: rgba(16, 68, 120, 0.085);
    --lm-field: #f1f7fd;
    --lm-veil: linear-gradient(90deg, rgba(210, 230, 248, 0.94) 0%, rgba(218, 235, 250, 0.87) 42%, rgba(210, 230, 248, 0.80) 100%);
}

/* Surfaces that stay dark in light mode keep the dark palette for their contents. */
.light-mode .placeholder-art,
.light-mode .game-slideshow,
.light-mode .game-stage-frame,
.light-mode .trailer-frame {
    --text: #f4f7f8;
    --muted: #a4b3ba;
    --soft: #6f828c;
    --gold: #d7a947;
    --gold-bright: #f4c96b;
    --teal: #29c7d4;
    --focus-ring: #f4c96b;
}

/* Short pages: the page tint does not repeat below the content */
body.light-mode,
.light-mode body {
    background:
        radial-gradient(circle at 80% 9%, rgba(48, 146, 224, 0.26), transparent 34rem),
        radial-gradient(circle at 12% 20%, rgba(41, 199, 212, 0.18), transparent 28rem),
        var(--bg);
    background-repeat: no-repeat;
}

/* Theme toggle icon */
.light-mode .theme-toggle .theme-sun { display: none; }
.light-mode .theme-toggle .theme-moon { display: block; }

/* Header */
.light-mode .site-header {
    background:
        linear-gradient(180deg, rgba(226, 240, 252, 0.96), rgba(205, 226, 245, 0.94)),
        radial-gradient(circle at 16% 0%, rgba(41, 162, 218, 0.22), transparent 18rem);
    box-shadow: 0 8px 26px rgba(10, 36, 66, 0.12);
}

.light-mode .brand-mark { filter: none; }
.light-mode .brand-text { filter: invert(1) hue-rotate(180deg); }

/* Heroes: the photo stays, a light veil replaces the dark one */
.light-mode .hero {
    background:
        radial-gradient(circle at 72% 24%, rgba(41, 168, 220, 0.22), transparent 19rem),
        radial-gradient(circle at 88% 12%, rgba(215, 169, 71, 0.14), transparent 16rem),
        var(--lm-veil),
        url("resources/hh3d-home-bg.jpg") center 40% / cover no-repeat;
}

.light-mode .hero::after {
    background: linear-gradient(transparent, rgba(214, 231, 247, 0.96));
}

.light-mode .hero::before,
.light-mode .page-hero::after {
    background:
        linear-gradient(rgba(10, 20, 30, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 20, 30, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
}

.light-mode .page-hero {
    background:
        radial-gradient(circle at 78% 18%, rgba(41, 199, 212, 0.18), transparent 20rem),
        var(--lm-veil),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

.light-mode .contact-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.2), transparent 22rem),
        var(--lm-veil),
        url("resources/screenshots/hh-03-campfire.jpg") center 60% / cover no-repeat;
}

.light-mode .about-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(215, 169, 71, 0.18), transparent 20rem),
        var(--lm-veil),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

.light-mode .games-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.2), transparent 22rem),
        var(--lm-veil),
        url("resources/gw-ss.png") center / cover no-repeat;
}

.light-mode .wiki-hero,
.light-mode .legal-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(215, 169, 71, 0.18), transparent 22rem),
        var(--lm-veil),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

.light-mode .forum-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.18), transparent 22rem),
        var(--lm-veil),
        url("resources/hood-slide.jpg") center / cover no-repeat;
}

.light-mode .news-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(41, 199, 212, 0.18), transparent 22rem),
        var(--lm-veil),
        url("resources/screenshots/hh-02-aurora.jpg") center 40% / cover no-repeat;
}

.light-mode .account-access {
    background:
        radial-gradient(circle at 72% 18%, rgba(41, 199, 212, 0.18), transparent 22rem),
        var(--lm-veil),
        url("resources/map-bg.jpg") center / cover no-repeat;
}

/* Cards and panels */
.light-mode :is(.featured-panel, .game-card, .updates article, .form-card, .about-panel, .about-showcase article,
    .wiki-sidebar, .wiki-content, .forum-category, .legal-content-panel, .board-header-panel, .board-form-panel,
    .thread-card, .gcp-panel, .admin-message-card, .table-panel, .disclaimer-card, .account-card, .profile-card,
    .dashboard-panel, .registry-teaser-panel, .game-detail-intro, .game-detail-lore, .supporter-panel, .news-card,
    .gcp-card, .gcp-stat, .gcp-tile, .game-modal__panel, .floating-status) {
    background: var(--lm-card);
    box-shadow: var(--lm-card-shadow);
}

.light-mode .game-card:hover {
    box-shadow: inset 0 1px 0 #ffffff, 0 22px 54px rgba(10, 20, 30, 0.14);
}

.light-mode .supporter-panel.is-unlocked {
    box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgba(10, 102, 112, 0.25), 0 16px 40px rgba(10, 20, 30, 0.08);
}

.light-mode .community-strip {
    background: linear-gradient(135deg, #e5f1fc, #cce2f6);
    box-shadow: 0 16px 44px rgba(10, 36, 66, 0.12);
}

.light-mode .gcp-hero,
.light-mode .gcp-login__card {
    background:
        radial-gradient(circle at 50% -40%, rgba(215, 169, 71, 0.2), transparent 60%),
        linear-gradient(180deg, #eaf3fc, #d4e6f7);
    box-shadow: 0 22px 60px rgba(10, 36, 66, 0.12);
}

.light-mode .gcp-topbar {
    background: linear-gradient(180deg, #e4f0fb, #cde2f5);
}

.light-mode .gcp-sections {
    background: rgba(224, 238, 251, 0.97);
}

.light-mode .gcp-tile {
    border-color: var(--line);
}

.light-mode .reply-card {
    background: var(--lm-well);
}

/* Inner wells, chips and small boxes */
.light-mode :is(.teaser-chip, .wiki-body .codex-card, .wiki-body .callout, .wiki-body details, .gcp-link,
    .admin-message-card .thread-body, .screenshot-preview, .member-table th, .account-tabs button,
    .avatar-frame, .captcha-card, .supporter-locked, .ownership-row, .topic-chip span, .ticket-event,
    .gcp-log li, .mod-reply) {
    background: var(--lm-well);
}

.light-mode .status-card {
    background: rgba(255, 255, 255, 0.78);
}

.light-mode .account-tabs button.active {
    background: var(--teal-soft);
}

.light-mode .topic-chip input:checked + span {
    background: rgba(10, 102, 112, 0.1);
}

.light-mode .ticket-event--note {
    background: rgba(10, 102, 112, 0.06);
}

/* Form fields: white, with a border that reads against the card */
.light-mode :is(.support-form input, .support-form textarea, .support-form select, #guide-search,
    .name-editor input, .gcp-search input, .gcp-search select, .gcp-inline-form select,
    .notify-form input[type="email"], .gcp-mini-select) {
    background: var(--lm-field);
    border-color: var(--line-ui);
}

.light-mode :is(.support-form input, .support-form textarea, .support-form select, #guide-search,
    .name-editor input, .gcp-search input, .gcp-search select, .gcp-inline-form select,
    .notify-form input[type="email"], .gcp-mini-select):focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(10, 102, 112, 0.16);
}

.light-mode .site-search-form input,
.light-mode .newsletter-form input[type="email"],
.light-mode .search-hero input[type="search"] {
    background: rgba(255, 252, 244, 0.92);
    border-color: var(--gold);
}

/* Hairlines: the dark theme's cyan dividers become neutral grey */
.light-mode :is(.wiki-body th, .wiki-body td, .wiki-body .codex-card, .wiki-body .callout, .wiki-body details,
    .wiki-guide-btn, .forum-row, .legal-content-panel section + section, .member-table th, .member-table td,
    .account-row, .membership-card-head, .ownership-row, .reply-stack, .reply-card, .admin-message-card .thread-body,
    .supporter-locked, .gcp-link, .teaser-chip, .game-modal__panel, .gcp-card .gcp-bulk) {
    border-color: var(--line);
}

.light-mode ::placeholder {
    color: #56656e;
    opacity: 1;
}

.light-mode .is-muted-row { opacity: 0.88; }
.light-mode .is-muted-row em { color: var(--muted); }

/* Text that was hard-coded for a dark page */
.light-mode .wiki-body { color: #1d2a32; }
.light-mode .ticket-pill--new { color: #8f1620; }
.light-mode .news-filters .news-rss { color: #8a5200; border-color: rgba(138, 82, 0, 0.5); }
.light-mode .footer-social a:nth-child(1) { color: #234f9c; border-color: rgba(35, 79, 156, 0.4); background: rgba(66, 103, 178, 0.1); }
.light-mode .placeholder-art span { color: #f4f7f8; }

/* Badges keep the brand gold fill */
.light-mode .badge { background: #d7a947; }

/* Slideshow dots sit on photos */
.light-mode .slideshow-dot { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); }
.light-mode .slideshow-dot.is-active { background: #f4c96b; }

/* Game stage thumbnails */
.light-mode .game-stage-strip button { opacity: 0.8; }
.light-mode .game-stage-strip button:hover,
.light-mode .game-stage-strip button.is-active { opacity: 1; }

/* Footer */
.light-mode footer { background: #c1daf0; }
.light-mode .footer-main { background: #cfe3f6; }
.light-mode .copyright-bar { background: #b4d0ea; }
.light-mode .copyright-bar p { color: var(--muted); }
.light-mode .footer-brand img { filter: none; }

/* Code and log blocks */
.light-mode .log-pre {
    background: #d8e9f8;
    color: #0b2238;
}

.light-mode .legal-toc {
    background: rgba(41, 199, 212, 0.08);
}

.light-mode .legal-toolbar {
    background: rgba(220, 236, 250, 0.65);
    border-color: var(--line);
}

.light-mode .legal-container-box {
    border-color: rgba(24, 114, 174, 0.38);
    background: linear-gradient(155deg, #eaf3fc, #d5e7f7);
    box-shadow: 0 16px 40px rgba(10, 40, 70, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.light-mode .legal-container-box:hover {
    border-color: rgba(24, 114, 174, 0.65);
}

.light-mode .legal-container-summary {
    background: rgba(198, 222, 244, 0.65);
}

.light-mode .legal-container-box[open] > .legal-container-summary {
    border-bottom: 1px solid rgba(24, 114, 174, 0.25);
    background: rgba(188, 214, 238, 0.9);
}

.light-mode .legal-box-toggle-indicator {
    border-color: rgba(24, 114, 174, 0.35);
    background: rgba(24, 114, 174, 0.1);
    color: var(--teal);
}

.light-mode .toc-group {
    border-top-color: var(--line);
}

/* Links inside running text need more than a colour change */
.light-mode :is(.legal-content-panel, .wiki-body, .thread-body, .news-card__body, .muted-note, .contact-steps,
    .hero-text, .form-heading, .about-panel, .game-detail-lore, .supporter-panel, .supporter-locked,
    .registry-teaser-copy, .stat-panel, .ticket-receipt, .reply-card, .forum-rules, .ticket-who, .gcp-dl,
    .updates, .featured-body p) a:not(.primary-button, .secondary-button, .btn-forum, .card-view-btn, .card-codex-btn, .danger-btn) {
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ================================================================ Slideshow controls, trailer play button and focus rings
   Used by site.js: pause buttons on the card slideshows and the game page stage, 24px dots,
   the trailer play button, and lazy pictures. Dark is the default look; the light-mode rules
   are at the end of this block. The slideshow and stage surfaces keep the dark palette in light mode. */

.slideshow-toggle[hidden],
.stage-pause[hidden],
.stage-play[hidden] {
    display: none;
}

/* Pictures that wait for site.js to give them a src stay out of sight without JS */
.game-slideshow img[data-src]:not([src]),
img.stage-slide[data-src]:not([src]) {
    visibility: hidden;
}

/* Dots: the 9px dot is drawn inside a 24px tap target */
.slideshow-dots {
    bottom: 3px;
    gap: 0;
    pointer-events: none;
}

.slideshow-dot {
    position: relative;
    width: 24px;
    height: 24px;
    background: transparent;
    pointer-events: auto;
}

.slideshow-dot::before {
    content: "";
    position: absolute;
    inset: 7.5px;
    border-radius: 50%;
    background: rgba(244, 247, 248, 0.38);
}

.slideshow-dot.is-active {
    background: transparent;
}

.slideshow-dot.is-active::before {
    background: var(--gold-bright);
}

/* Pause and resume buttons */
.slideshow-toggle,
.stage-pause {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(244, 247, 248, 0.28);
    border-radius: 50%;
    background: rgba(6, 13, 17, 0.62);
    color: #fff;
    cursor: pointer;
}

.slideshow-toggle {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
}

.stage-pause {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
}

.slideshow-toggle svg,
.stage-pause svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}

.stage-pause svg {
    width: 20px;
    height: 20px;
}

.slideshow-toggle:hover,
.stage-pause:hover {
    background: rgba(6, 13, 17, 0.88);
}

/* Trailer play button, shown over the poster until the trailer starts */
.stage-slide[data-kind="video"] {
    position: relative;
}

.stage-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    padding: 0;
    border: 2px solid var(--gold-bright);
    border-radius: 50%;
    background: rgba(6, 13, 17, 0.72);
    color: var(--gold-bright);
    cursor: pointer;
}

.stage-play svg {
    width: 36px;
    height: 36px;
    margin-left: 4px;
    fill: currentColor;
    stroke: none;
}

.stage-play:hover {
    background: rgba(6, 13, 17, 0.92);
}

.stage-slide.is-started .stage-play {
    display: none;
}

/* A button that is busy sending */
.newsletter-form button:disabled,
.notify-form button:disabled {
    cursor: wait;
    opacity: 0.62;
}

/* Keyboard focus */
.slideshow-dot:focus-visible,
.slideshow-toggle:focus-visible,
.stage-pause:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

.stage-play:focus-visible,
.stage-nav:focus-visible,
.game-stage-strip button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.game-stage-strip button:focus-visible {
    opacity: 1;
}

#guide-h1:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 6px;
}

@media (max-width: 767px) {
    .stage-play {
        width: 64px;
        height: 64px;
        margin: -32px 0 0 -32px;
    }

    .stage-play svg {
        width: 28px;
        height: 28px;
    }

    .stage-pause {
        right: 8px;
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-slideshow img {
        transition: none;
    }

    .game-slideshow:not([data-slideshow-ready]) img:nth-child(2) {
        animation: none;
    }
}

/* Light mode: these controls sit on photos, so they get a thin dark edge and keep the gold accent */
.light-mode .slideshow-dot {
    box-shadow: none;
}

.light-mode .slideshow-dot::before {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.light-mode .slideshow-dot.is-active {
    background: transparent;
}

.light-mode .slideshow-dot.is-active::before {
    background: #f4c96b;
}

.light-mode .slideshow-toggle,
.light-mode .stage-pause {
    border-color: rgba(244, 247, 248, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.light-mode .stage-play {
    border-color: #f4c96b;
    background: rgba(6, 13, 17, 0.78);
    color: #f4c96b;
}
