:root {
    color-scheme: dark;
    --accent: #8cff00;
    --accent-soft: rgba(140, 255, 0, .12);
    --accent-line: rgba(140, 255, 0, .28);
    --bg: #040604;
    --bg-deep: #010201;
    --surface: #0a0e0b;
    --surface-2: #101611;
    --surface-3: #151c16;
    --line: #273127;
    --line-bright: #3a4b38;
    --text: #f5fff2;
    --muted: #a5b0a3;
    --faint: #71806f;
    --danger: #ff5d68;
    --warning: #ffd45f;
    --success: #75ff5a;
    --shadow: 0 26px 80px rgba(0, 0, 0, .48);
    --radius: 12px;
    --radius-small: 7px;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-display: "Oxanium", "Arial Black", sans-serif;
    --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body::selection { background: var(--accent); color: #050905; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.15em; }
small { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 5000; padding: 12px 18px; background: var(--accent); color: #050805; font-weight: 800; border-radius: var(--radius-small); transition: top .2s; }
.skip-link:focus { top: 16px; }
.site-noise { position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 40px)); }
.section { position: relative; padding: clamp(72px, 9vw, 130px) 0; }
.section-dark { background: linear-gradient(180deg, #070a08, #030503); border-block: 1px solid rgba(140, 255, 0, .08); }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--accent); font-family: var(--font-display); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow i { width: 28px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.section-heading { max-width: 780px; margin-bottom: 44px; }
.section-heading > p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.split-heading { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 30px; }
.split-heading > div { max-width: 760px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 20px; overflow: hidden; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #071006; font-family: var(--font-display); font-size: .84rem; font-weight: 800; letter-spacing: .035em; cursor: pointer; box-shadow: 0 0 22px rgba(140, 255, 0, .14); transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38), transparent 70%); transform: translateX(-120%); transition: transform .45s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(140, 255, 0, .24); }
.button:hover::before { transform: translateX(120%); }
.button-ghost { background: rgba(6, 10, 7, .7); color: var(--text); border-color: var(--line-bright); box-shadow: none; }
.button-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.button-small { min-height: 38px; padding: 8px 14px; font-size: .76rem; }
.button-large { min-height: 54px; padding: 15px 24px; }
.full-width { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-family: var(--font-display); font-size: .84rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 800; height: var(--header-height); border-bottom: 1px solid rgba(140, 255, 0, .14); background: rgba(4, 6, 4, .91); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { filter: drop-shadow(0 0 13px rgba(140, 255, 0, .32)); }
.brand-type { display: flex; flex-direction: column; line-height: .93; font-family: var(--font-display); font-style: normal; }
.brand-type strong { font-size: 1.02rem; letter-spacing: .09em; }
.brand-type strong::first-letter { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.brand-type em { color: var(--accent); font-size: .66rem; font-style: normal; font-weight: 800; letter-spacing: .26em; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 25px; flex: 1; }
.site-nav a { position: relative; padding: 26px 0 24px; color: #c9d1c7; font-family: var(--font-display); font-size: .77rem; font-weight: 700; letter-spacing: .055em; }
.site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: left .2s, right .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.site-nav a:hover::after, .site-nav a.active::after { left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 42px; padding: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--text); }
.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); cursor: pointer; }
.account-trigger > span:last-child { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 700; }
.account-dropdown { position: absolute; top: calc(100% + 12px); right: 0; display: none; min-width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #0b100c; box-shadow: var(--shadow); }
.account-menu.open .account-dropdown { display: block; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--accent-soft); color: var(--accent); }
.search-drawer { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; background: rgba(4, 6, 4, .98); border-bottom: 1px solid var(--accent-line); transition: max-height .25s; }
.search-drawer.open { max-height: 110px; }
.search-drawer form { display: flex; gap: 10px; padding: 20px 0; }
.search-drawer input { flex: 1; }

/* Inputs and panels */
input, textarea, select { width: 100%; border: 1px solid #303b30; border-radius: 5px; outline: none; background: #070a08; color: var(--text); padding: 12px 13px; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 255, 0, .1); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
label { color: #e3ebe1; font-size: .88rem; font-weight: 700; }
label small, .stack-form small { display: block; margin-top: 5px; color: var(--faint); font-weight: 400; }
.stack-form { display: grid; gap: 18px; }
.form-grid, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { flex: 0 0 auto; margin-top: 4px; }
.check-row a { color: var(--accent); }
.form-panel, .signal-panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 22, 17, .96), rgba(7, 10, 8, .98)); box-shadow: var(--shadow); }
.form-panel { padding: clamp(24px, 4vw, 42px); }
.signal-panel { position: relative; overflow: hidden; padding: 28px; }
.signal-panel::before { content: ""; position: absolute; top: -80px; right: -70px; width: 180px; height: 180px; border: 1px solid var(--accent-line); border-radius: 50%; box-shadow: 0 0 50px rgba(140, 255, 0, .07); }
.signal-panel h2 { font-size: 1.45rem; }
.signal-panel dl { margin: 22px 0; }
.signal-panel dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.signal-panel dt { color: var(--muted); }
.signal-panel dd { margin: 0; font-weight: 700; text-align: right; }
.honeypot { position: absolute; left: -9999px; }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--accent); font-size: .75rem; cursor: pointer; }

/* Flash messages */
.flash { position: fixed; top: 94px; left: 50%; z-index: 1200; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(680px, calc(100% - 30px)); padding: 13px 16px; transform: translateX(-50%); border: 1px solid; border-radius: 7px; box-shadow: var(--shadow); animation: flash-in .3s ease-out; }
.flash-success { border-color: rgba(117, 255, 90, .45); background: #0e210c; color: #dcffd7; }
.flash-error { border-color: rgba(255, 93, 104, .5); background: #270d10; color: #ffe2e4; }
.flash button { padding: 0; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -15px); } }

/* Hero */
.hero { position: relative; min-height: calc(100vh - var(--header-height)); overflow: hidden; background: radial-gradient(circle at 78% 35%, rgba(140, 255, 0, .12), transparent 34%), linear-gradient(130deg, #030503 0%, #09100a 52%, #030503 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(140, 255, 0, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 255, 0, .12) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to right, black, transparent 75%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; min-height: calc(100vh - var(--header-height)); padding-block: 80px; gap: 50px; }
.hero-copy h1 { max-width: 800px; margin-bottom: 25px; text-transform: uppercase; letter-spacing: -.055em; text-shadow: 0 0 35px rgba(140, 255, 0, .06); }
.hero-copy h1::first-letter { color: var(--accent); }
.hero-copy > p { max-width: 680px; color: #c0cbbd; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.hero-copy .button-row { margin-top: 32px; }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 35px; color: var(--muted); font-size: .75rem; }
.hero-status strong { color: #dce7d9; font-family: var(--font-display); letter-spacing: .08em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 4px var(--accent); opacity: .5; } }
.hero-visual { position: relative; min-height: 590px; }
.reactor-rings { position: absolute; left: 50%; top: 50%; width: 360px; aspect-ratio: 1; transform: translate(-50%, -50%); }
.reactor-rings span { position: absolute; inset: 0; border: 1px solid var(--accent-line); border-radius: 50%; box-shadow: inset 0 0 40px rgba(140, 255, 0, .02), 0 0 30px rgba(140, 255, 0, .035); animation: rotate 18s linear infinite; }
.reactor-rings span:nth-child(2) { inset: 50px; border-style: dashed; animation-direction: reverse; animation-duration: 13s; }
.reactor-rings span:nth-child(3) { inset: 105px; border-width: 3px; box-shadow: 0 0 35px rgba(140, 255, 0, .15); animation-duration: 9s; }
.reactor-rings span::after { content: ""; position: absolute; top: 12%; left: 12%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.reactor-rings b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); font-family: var(--font-display); font-size: 4rem; letter-spacing: -.15em; text-shadow: 0 0 25px var(--accent); }
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-project { position: absolute; display: block; overflow: hidden; width: 190px; aspect-ratio: .78; border: 1px solid var(--accent-line); border-radius: 7px; background: var(--surface); box-shadow: 0 20px 55px rgba(0, 0, 0, .65), 0 0 28px rgba(140, 255, 0, .08); transition: transform .3s, border-color .3s; }
.hero-project:hover { z-index: 8; border-color: var(--accent); transform: translateY(-8px) rotate(0deg) !important; }
.hero-project img { width: 100%; height: 100%; object-fit: cover; }
.hero-project > span { position: absolute; inset: auto 0 0; padding: 34px 14px 13px; background: linear-gradient(transparent, rgba(1, 2, 1, .97)); }
.hero-project small, .hero-project strong { display: block; }
.hero-project small { color: var(--accent); font-family: var(--font-display); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-project strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: .85rem; }
.project-1 { top: 8%; right: 3%; transform: rotate(5deg); }
.project-2 { bottom: 2%; left: 5%; transform: rotate(-5deg); }
.project-3 { bottom: 5%; right: 0; width: 155px; transform: rotate(3deg); }
.hero-scanline { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px var(--accent); opacity: .55; }
.stat-strip { border-block: 1px solid var(--line); background: #070a08; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 26px 30px; border-right: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 1px solid var(--line); }
.stats-grid strong { display: block; color: var(--accent); font-family: var(--font-display); font-size: 1.7rem; }
.stats-grid span { color: var(--muted); font-size: .78rem; letter-spacing: .03em; }

/* Cards */
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.games-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, var(--surface-2), #070a08); transition: transform .25s, border-color .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-7px); border-color: var(--accent-line); box-shadow: 0 24px 65px rgba(0, 0, 0, .45), 0 0 30px rgba(140, 255, 0, .045); }
.game-card-art { position: relative; display: block; aspect-ratio: 4 / 4.9; overflow: hidden; background: #050805; }
.game-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 65%, rgba(3, 5, 3, .45)); }
.game-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.game-card:hover .game-card-art img { transform: scale(1.035); }
.status-chip { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 7px 10px; border: 1px solid rgba(140, 255, 0, .36); border-radius: 3px; background: rgba(3, 6, 3, .86); color: var(--accent); font-family: var(--font-display); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-chip.large { position: static; display: inline-flex; margin-bottom: 20px; font-size: .7rem; }
.game-card-body { padding: 22px; }
.game-card-body h3 { font-size: 1.5rem; }
.game-card-body h3 a:hover { color: var(--accent); }
.game-card-body > p { min-height: 76px; color: var(--muted); font-size: .9rem; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; color: var(--faint); font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.game-meta span + span::before { content: "/"; margin-right: 8px; color: var(--accent); }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle, rgba(140, 255, 0, .13), transparent 55%), #050705; color: var(--accent); font-family: var(--font-display); font-weight: 800; letter-spacing: .15em; }
.news-feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.news-card { display: grid; grid-template-columns: 155px 1fr; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.news-card-featured { grid-row: span 3; grid-template-columns: 1fr; }
.news-card-art { min-height: 150px; overflow: hidden; background: #050705; }
.news-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .news-card-art img { transform: scale(1.04); }
.news-card > div { padding: 20px; }
.news-card h2, .news-card h3 { font-size: 1.35rem; }
.news-card-featured h3 { font-size: 2rem; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--accent); }
.news-card p { color: var(--muted); font-size: .88rem; }
.news-card-featured .news-card-art { min-height: 340px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news-grid .news-card { grid-template-columns: 1fr; }
.news-grid .news-card-art { aspect-ratio: 16 / 8.5; }
.news-grid.compact { grid-template-columns: repeat(3, 1fr); }
.videos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.video-frame { position: relative; overflow: hidden; background: #000; }
.video-frame.compact { aspect-ratio: 16 / 9; }
.video-frame.feature { aspect-ratio: 16 / 8.5; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-card-body { padding: 20px; }
.video-card-body h3 { font-size: 1.23rem; }
.video-card-body p { color: var(--muted); font-size: .87rem; }
.empty-state { padding: 65px 30px; border: 1px dashed var(--line-bright); border-radius: var(--radius); background: rgba(12, 16, 13, .6); text-align: center; }
.empty-state.small { padding: 30px 20px; }
.empty-state p { color: var(--muted); }
.community-cta { position: relative; overflow: hidden; padding: 95px 0; border-top: 1px solid var(--accent-line); background: radial-gradient(circle at 10% 50%, rgba(140, 255, 0, .12), transparent 35%), #080c09; }
.community-cta::after { content: "MS"; position: absolute; right: -60px; top: -80px; color: rgba(140, 255, 0, .025); font-family: var(--font-display); font-size: 24rem; font-weight: 800; line-height: 1; }
.community-cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.community-cta-inner > div:first-child { max-width: 700px; }

/* Generic page heroes */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 440px; overflow: hidden; padding: 90px 0 70px; background: radial-gradient(circle at 80% 20%, rgba(140, 255, 0, .13), transparent 35%), linear-gradient(130deg, #070b08, #020302); border-bottom: 1px solid var(--accent-line); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(140, 255, 0, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 255, 0, .1) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 70%); }
.page-hero.has-image { background-image: linear-gradient(90deg, rgba(1, 2, 1, .96), rgba(1, 2, 1, .55)), var(--page-hero-image); background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 45%); }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 15px; text-transform: uppercase; }
.page-hero p { max-width: 720px; color: #bec9bc; font-size: 1.1rem; }
.compact-hero { min-height: 330px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a:hover { color: var(--accent); }
.filter-bar { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 38px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.filter-bar > div { min-width: 210px; }
.filter-bar label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }

/* Game detail */
.game-hero { position: relative; min-height: 690px; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(90deg, #030503 0%, rgba(3, 5, 3, .82) 45%, rgba(3, 5, 3, .15)), var(--game-hero-image, radial-gradient(circle, rgba(140, 255, 0, .15), transparent)); background-size: cover; background-position: center; }
.game-hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, transparent 45%), linear-gradient(90deg, rgba(3, 5, 3, .92), transparent 85%); }
.game-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 290px 1fr; align-items: end; gap: 45px; padding-block: 105px 70px; }
.game-cover-large { overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 35px 85px rgba(0, 0, 0, .65), 0 0 30px rgba(140, 255, 0, .08); transform: rotate(-1.5deg); }
.game-cover-large img { width: 100%; height: 100%; object-fit: cover; }
.game-hero-copy { max-width: 790px; }
.game-hero-copy h1 { font-size: clamp(3rem, 7vw, 6.7rem); text-transform: uppercase; }
.game-hero-copy > p { max-width: 760px; color: #d0d8ce; font-size: 1.18rem; }
.game-facts { display: flex; flex-wrap: wrap; gap: 14px 35px; margin: 27px 0; }
.game-facts span { font-family: var(--font-display); font-weight: 700; }
.game-facts small { display: block; color: var(--accent); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; }
.content-two-column, .member-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 70px; align-items: start; }
.prose { color: #d5ded3; font-size: 1.04rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.7em; color: var(--text); font-size: 2.2rem; }
.prose h3 { margin-top: 1.6em; color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 2em 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--surface); }
.prose img { height: auto; margin: 28px auto; border: 1px solid var(--line); border-radius: var(--radius-small); }
.prose ul, .prose ol { padding-left: 1.3em; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid a { overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius-small); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* Articles */
.article-hero { position: relative; min-height: 580px; display: flex; align-items: flex-end; overflow: hidden; padding: 115px 0 75px; background: linear-gradient(90deg, rgba(3, 5, 3, .94), rgba(3, 5, 3, .25)), var(--article-image, radial-gradient(circle, rgba(140, 255, 0, .13), transparent)); background-size: cover; background-position: center; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 50%); }
.article-hero .shell { position: relative; z-index: 1; }
.article-hero h1 { max-width: 970px; font-size: clamp(3rem, 7vw, 6rem); }
.article-hero p { max-width: 760px; color: #d1dad0; font-size: 1.1rem; }
.article-author { color: var(--muted); }
.article-author a { color: var(--accent); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 80px; padding-block: 85px 120px; }
.article-content { max-width: 790px; }
.article-aside { position: sticky; top: 110px; align-self: start; }

/* Contact and search */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 45px; align-items: start; }
.contact-details { position: sticky; top: 110px; }
.hero-search { display: flex; gap: 10px; max-width: 760px; }
.hero-search input { min-height: 54px; }
.search-results > section + section { margin-top: 75px; }
.search-list { display: grid; gap: 10px; }
.search-list > a { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.search-list > a:hover { border-color: var(--accent-line); background: var(--surface-2); }
.search-list img { width: 80px; height: 70px; object-fit: cover; border-radius: 4px; }
.search-list strong, .search-list small, .search-list p { display: block; }
.search-list small { color: var(--accent); }
.search-list p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.search-list b { color: var(--accent); font-size: 1.3rem; }
.error-page { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: 360px 1fr; align-items: center; justify-content: center; gap: 80px; width: min(1000px, calc(100% - 40px)); margin: auto; }
.error-reactor { position: relative; left: auto; top: auto; transform: none; }
.error-page h1 { color: var(--accent); }
.error-page p { max-width: 560px; color: var(--muted); font-size: 1.1rem; }

/* Authentication */
.auth-page { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: 1fr minmax(420px, .82fr); align-items: stretch; background: #030503; }
.auth-page.single { grid-template-columns: minmax(320px, 560px); justify-content: center; align-items: center; padding: 70px 20px; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(50px, 8vw, 130px); background: radial-gradient(circle at 55% 45%, rgba(140, 255, 0, .13), transparent 35%), linear-gradient(140deg, #071008, #020302); }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(140, 255, 0, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 255, 0, .08) 1px, transparent 1px); background-size: 48px 48px; opacity: .22; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art img { width: 220px; margin-bottom: 45px; filter: drop-shadow(0 0 35px rgba(140, 255, 0, .22)); }
.auth-art h1 { max-width: 700px; text-transform: uppercase; }
.auth-art p { max-width: 600px; color: var(--muted); font-size: 1.1rem; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 7vw, 105px); border-left: 1px solid var(--line); background: linear-gradient(180deg, #0a0e0b, #050706); }
.auth-page.single .auth-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card h1, .auth-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.auth-card > p { color: var(--muted); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; color: var(--muted); font-size: .86rem; }
.auth-links a { color: var(--accent); }

/* Avatars and profiles */
.avatar { display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--accent-line); border-radius: 50%; background: linear-gradient(145deg, #192318, #080b08); color: var(--accent); font-family: var(--font-display); font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-small { width: 34px; height: 34px; font-size: .75rem; }
.avatar-medium { width: 48px; height: 48px; }
.avatar-large { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar-xlarge { width: 110px; height: 110px; font-size: 2rem; }
.avatar-xxlarge { width: 150px; height: 150px; font-size: 2.7rem; }
.account-hero-inner { display: flex; align-items: center; gap: 25px; }
.account-hero-inner h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 35px; align-items: start; }
.account-sidebar { position: sticky; top: 110px; display: grid; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-sidebar > a { padding: 10px 12px; border-radius: 5px; color: var(--muted); }
.account-sidebar > a:hover { background: var(--accent-soft); color: var(--accent); }
.mini-stats { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mini-stats span { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.mini-stats strong { color: var(--text); }
.account-panels { display: grid; gap: 28px; }
.panel-heading { margin-bottom: 25px; }
.activity-list { display: grid; }
.activity-list > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.activity-list > a:hover strong { color: var(--accent); }
.activity-list small { display: block; }
.activity-list time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.activity-list.large { padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.member-profile-hero { padding: 95px 0 70px; border-bottom: 1px solid var(--accent-line); background: radial-gradient(circle at 20% 50%, rgba(140, 255, 0, .1), transparent 35%), #070a08; }
.member-profile-inner { display: flex; align-items: center; gap: 35px; }
.member-profile-inner h1 { margin: 8px 0 2px; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.member-profile-inner p { color: var(--accent); }
.member-meta { display: flex; flex-wrap: wrap; gap: 15px; margin: 12px 0 25px; color: var(--muted); font-size: .8rem; }
.role-badge { display: inline-flex; padding: 4px 8px; border: 1px solid var(--line-bright); border-radius: 3px; color: #c8d0c6; font-family: var(--font-display); font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.role-admin { border-color: rgba(140, 255, 0, .45); color: var(--accent); background: var(--accent-soft); }
.role-moderator { border-color: rgba(93, 197, 255, .45); color: #77ceff; background: rgba(93, 197, 255, .08); }

/* Forums */
.forum-hero .button-row { margin-top: 23px; }
.forum-welcome { color: var(--muted); }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.forum-category-card { display: grid; grid-template-columns: 60px minmax(0, 1fr) 145px 235px; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.forum-category-card + .forum-category-card { margin-top: 12px; }
.forum-category-card:hover { border-color: var(--accent-line); background: var(--surface-2); }
.forum-icon { display: grid; place-items: center; width: 54px; height: 54px; clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: .75rem; font-weight: 800; }
.forum-icon.small { width: 38px; height: 38px; }
.forum-category-main h3 { margin-bottom: 5px; font-size: 1.23rem; }
.forum-category-main h3 a:hover { color: var(--accent); }
.forum-category-main p { margin: 0; color: var(--muted); font-size: .84rem; }
.lock-chip { margin-left: 8px; padding: 3px 6px; border: 1px solid var(--warning); border-radius: 3px; color: var(--warning); font-size: .55rem; text-transform: uppercase; }
.forum-counts { display: flex; justify-content: center; gap: 18px; }
.forum-counts span { color: var(--faint); font-size: .67rem; text-align: center; }
.forum-counts strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1rem; }
.forum-latest { min-width: 0; }
.forum-latest small, .forum-latest a, .forum-latest span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-latest small { color: var(--accent); font-size: .62rem; text-transform: uppercase; }
.forum-latest a { font-size: .8rem; font-weight: 700; }
.forum-latest span { color: var(--faint); font-size: .7rem; }
.forum-sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.latest-topics { display: grid; }
.latest-topics a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.latest-topics strong, .latest-topics span { display: block; }
.latest-topics strong { font-size: .86rem; }
.latest-topics a:hover strong { color: var(--accent); }
.latest-topics span { color: var(--faint); font-size: .68rem; }
.forum-rules { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.forum-rules p { color: var(--muted); font-size: .84rem; }
.forum-rules a { color: var(--accent); font-size: .78rem; }
.topic-table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 170px; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topic-row:last-child { border-bottom: 0; }
.topic-row > * { padding: 15px; }
.topic-head { min-height: 44px; background: var(--surface-2); color: var(--muted); font-family: var(--font-display); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.topic-main { display: flex; align-items: center; gap: 15px; }
.topic-main h2 { margin: 0 0 3px; font-size: 1.05rem; }
.topic-main h2 a:hover { color: var(--accent); }
.topic-main p { margin: 0; color: var(--faint); font-size: .7rem; }
.topic-main p a { color: var(--muted); }
.topic-state { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--faint); }
.topic-state.pinned { border-color: var(--accent-line); color: var(--accent); box-shadow: 0 0 15px rgba(140, 255, 0, .07); }
.topic-latest strong, .topic-latest small { display: block; }
.topic-latest strong { font-size: .78rem; }
.topic-latest small { font-size: .68rem; }
.topic-header { padding: 70px 0 45px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 20%, rgba(140, 255, 0, .09), transparent 35%), #070a08; }
.topic-title-row { display: flex; justify-content: space-between; gap: 30px; }
.topic-title-row h1 { font-size: clamp(2.1rem, 5vw, 4.4rem); }
.topic-title-row p { color: var(--muted); }
.topic-flags { display: flex; gap: 8px; }
.topic-flags span { padding: 4px 8px; border: 1px solid var(--accent-line); border-radius: 3px; color: var(--accent); font-size: .62rem; text-transform: uppercase; }
.moderation-buttons { display: flex; align-items: flex-start; gap: 6px; }
.moderation-buttons button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; }
.moderation-buttons button:hover { border-color: var(--accent); color: var(--accent); }
.topic-page { padding-top: 55px; }
.forum-post { display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.forum-post + .forum-post { margin-top: 18px; }
.post-author { padding: 24px 18px; border-right: 1px solid var(--line); background: #090d0a; text-align: center; }
.post-author > a { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.post-author .role-badge { margin: 10px auto; }
.post-author > small { display: block; }
.post-content { min-width: 0; }
.post-content > header { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .7rem; }
.post-content > header a { margin-right: auto; color: var(--accent); }
.post-body { min-height: 150px; padding: 28px 24px; color: #dbe3d8; overflow-wrap: anywhere; }
.post-content > footer { display: flex; justify-content: flex-end; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); }
.post-content > footer form { display: inline; }
.post-content > footer a, .post-content > footer button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .72rem; cursor: pointer; }
.post-content > footer a:hover, .post-content > footer button:hover { color: var(--accent); }
.reply-panel { margin-top: 35px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 34px; }
.pagination a { min-width: 38px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); text-align: center; }
.pagination a:hover, .pagination a.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Footer */
.site-footer { position: relative; overflow: hidden; padding-top: 75px; border-top: 1px solid var(--accent-line); background: #020302; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 55px; padding-bottom: 60px; }
.footer-brand p { max-width: 380px; margin-top: 22px; color: var(--muted); }
.footer-grid h2 { color: var(--accent); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid > div:not(.footer-brand) a, .footer-grid > div:not(.footer-brand) span { color: var(--muted); font-size: .83rem; }
.footer-grid > div:not(.footer-brand) a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: .72rem; }
.footer-bottom a:hover { color: var(--accent); }
.footer-radiation { position: absolute; right: -150px; top: -190px; width: 480px; height: 480px; opacity: .13; }
.footer-radiation span { position: absolute; inset: 0; border: 20px solid var(--accent); border-radius: 50%; }
.footer-radiation span:nth-child(2) { inset: 80px; }
.footer-radiation span:nth-child(3) { inset: 170px; background: var(--accent); }

/* Messenger */
.messenger { position: fixed; right: 20px; bottom: 20px; z-index: 1500; }
.messenger-launcher { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 16px 9px 12px; border: 1px solid var(--accent); border-radius: 28px; background: #071006; color: var(--text); box-shadow: 0 12px 35px rgba(0, 0, 0, .55), 0 0 24px rgba(140, 255, 0, .18); cursor: pointer; }
.messenger-launcher svg { width: 27px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.messenger-label { font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .035em; }
.messenger-unread { position: absolute; right: -4px; top: -6px; min-width: 22px; height: 22px; padding: 0 5px; border: 2px solid var(--bg); border-radius: 11px; background: var(--danger); color: white; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; }
.messenger-panel { position: absolute; right: 0; bottom: 67px; display: none; flex-direction: column; width: min(390px, calc(100vw - 26px)); height: min(620px, calc(100vh - 115px)); overflow: hidden; border: 1px solid var(--accent-line); border-radius: 14px; background: #080c09; box-shadow: 0 25px 90px rgba(0, 0, 0, .75), 0 0 38px rgba(140, 255, 0, .08); }
.messenger.open .messenger-panel { display: flex; animation: messenger-open .22s ease-out; }
@keyframes messenger-open { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.messenger-header { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #101711, #070a08); }
.messenger-header .eyebrow { display: block; margin: 0; font-size: .55rem; }
.messenger-header strong { display: block; font-family: var(--font-display); }
.messenger-header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.25rem; }
.messenger-header button:hover { background: var(--accent-soft); color: var(--accent); }
.messenger-status { display: none; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.messenger-status.show { display: block; }
.messenger-content { flex: 1; min-height: 0; overflow: hidden; }
.messenger-loading { display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; }
.messenger-loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: loading-dot .9s infinite alternate; }
.messenger-loading span:nth-child(2) { animation-delay: .18s; }
.messenger-loading span:nth-child(3) { animation-delay: .36s; }
@keyframes loading-dot { to { transform: translateY(-7px); opacity: .35; } }
.messenger-home { height: 100%; overflow-y: auto; }
.messenger-welcome { padding: 18px; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.messenger-welcome p { margin: 0; color: #cbd5c8; font-size: .82rem; }
.messenger-home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.messenger-action { padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; text-align: left; }
.messenger-action strong, .messenger-action small { display: block; }
.messenger-action strong { font-size: .8rem; }
.messenger-action small { font-size: .67rem; }
.messenger-action:hover { border-color: var(--accent); }
.messenger-section-label { padding: 10px 14px 5px; color: var(--faint); font-family: var(--font-display); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.conversation-list { display: grid; padding: 5px 8px 15px; }
.conversation-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.conversation-row:hover { background: var(--accent-soft); }
.conversation-avatar { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--surface-2); color: var(--accent); font-family: var(--font-display); font-weight: 800; }
.conversation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conversation-copy { min-width: 0; }
.conversation-copy strong, .conversation-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy strong { font-size: .8rem; }
.conversation-copy span { color: var(--muted); font-size: .68rem; }
.conversation-meta { text-align: right; }
.conversation-meta time { display: block; color: var(--faint); font-size: .58rem; }
.conversation-meta b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-top: 4px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #061005; font-size: .6rem; }
.messenger-form-view { height: 100%; overflow-y: auto; padding: 18px; }
.messenger-form-view h3 { font-size: 1.45rem; }
.messenger-form-view p { color: var(--muted); font-size: .82rem; }
.messenger-form-view form { display: grid; gap: 12px; }
.messenger-form-view label { font-size: .72rem; }
.messenger-form-view input, .messenger-form-view textarea { padding: 10px; font-size: .82rem; }
.member-search-results { display: grid; gap: 5px; margin-top: 10px; }
.member-search-result { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.member-search-result:hover { border-color: var(--accent); }
.member-search-result strong, .member-search-result small { display: block; }
.messenger-thread { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.thread-title { padding: 10px 13px; border-bottom: 1px solid var(--line); }
.thread-title strong, .thread-title small { display: block; }
.thread-title strong { font-size: .82rem; }
.thread-title small { color: var(--faint); font-size: .64rem; }
.thread-messages { overflow-y: auto; padding: 14px; }
.chat-message { display: flex; margin-bottom: 11px; }
.chat-message.mine { justify-content: flex-end; }
.chat-bubble { max-width: 82%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; background: var(--surface-2); }
.chat-message.mine .chat-bubble { border-color: rgba(140, 255, 0, .32); border-radius: 12px 12px 3px 12px; background: rgba(140, 255, 0, .1); }
.chat-bubble header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; color: var(--faint); font-size: .58rem; }
.chat-bubble p { margin: 0; color: #e0e8de; font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-attachment { display: block; margin-top: 7px; color: var(--accent); font-size: .7rem; }
.thread-compose { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 10px; border-top: 1px solid var(--line); background: #070a08; }
.thread-compose textarea { min-height: 42px; max-height: 110px; padding: 9px; font-size: .78rem; }
.thread-compose-actions { display: flex; flex-direction: column; gap: 5px; }
.thread-compose button, .thread-compose label { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; font-size: .75rem; }
.thread-compose button { border-color: var(--accent); background: var(--accent); color: #051005; }
.thread-compose label input { display: none; }
.messenger-empty { padding: 40px 20px; color: var(--muted); text-align: center; }

@media (max-width: 1120px) {
    .site-nav { gap: 16px; }
    .site-nav a { font-size: .7rem; }
    .header-register { display: none; }
    .hero-grid { grid-template-columns: 1fr .85fr; }
    .hero-project { width: 160px; }
    .project-3 { width: 130px; }
    .forum-category-card { grid-template-columns: 55px minmax(0, 1fr) 125px; }
    .forum-latest { display: none; }
}

@media (max-width: 900px) {
    :root { --header-height: 68px; }
    .shell { width: min(100% - 28px, 1240px); }
    .nav-toggle { display: block; margin-left: auto; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 16px; border-bottom: 1px solid var(--accent-line); background: rgba(4, 6, 4, .98); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 8px; }
    .site-nav a::after { display: none; }
    .header-actions .account-trigger > span:last-child { display: none; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 85px; }
    .hero-visual { min-height: 440px; }
    .hero-copy h1 { font-size: clamp(3.2rem, 12vw, 6.5rem); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid > div:nth-child(3) { border-left: 1px solid var(--line); }
    .games-grid, .games-grid-wide, .videos-grid, .news-grid.compact { grid-template-columns: repeat(2, 1fr); }
    .news-feature-grid { grid-template-columns: 1fr; }
    .news-card-featured { grid-row: auto; }
    .community-cta-inner { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
    .game-hero-inner { grid-template-columns: 220px 1fr; gap: 28px; }
    .content-two-column, .member-profile-grid, .article-layout, .contact-layout, .forum-layout { grid-template-columns: 1fr; gap: 35px; }
    .article-aside, .contact-details, .forum-sidebar { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; grid-template-columns: repeat(4, 1fr); }
    .mini-stats { grid-column: 1 / -1; }
    .forum-sidebar { grid-template-columns: 1fr 1fr; }
    .error-page { grid-template-columns: 1fr; padding-block: 80px; text-align: center; }
    .error-reactor { margin: auto; width: 260px; }
    .error-page .button-row { justify-content: center; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { min-height: 500px; }
    .auth-card { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 650px) {
    body { font-size: 15px; }
    .header-inner { gap: 10px; }
    .brand { gap: 7px; }
    .brand-mark { width: 52px; height: 36px; }
    .brand-type { display: flex; }
    .brand-type strong { font-size: .76rem; }
    .brand-type em { font-size: .48rem; letter-spacing: .17em; }
    .header-actions .button { display: none; }
    .search-drawer form { flex-direction: column; }
    .search-drawer.open { max-height: 160px; }
    .hero { min-height: auto; }
    .hero-grid { min-height: auto; padding-block: 65px; }
    .hero-visual { min-height: 370px; }
    .reactor-rings { width: 280px; }
    .hero-project { width: 135px; }
    .project-1 { right: 0; }
    .project-2 { left: 0; }
    .project-3 { display: none; }
    .stats-grid > div { padding: 20px 16px; }
    .split-heading { align-items: flex-start; flex-direction: column; }
    .games-grid, .games-grid-wide, .videos-grid, .news-grid, .news-grid.compact { grid-template-columns: 1fr; }
    .news-card { grid-template-columns: 110px 1fr; }
    .news-card-featured, .news-grid .news-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .form-grid, .field-grid { grid-template-columns: 1fr; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar > div { min-width: 0; }
    .game-hero { min-height: auto; }
    .game-hero-inner { grid-template-columns: 1fr; padding-top: 70px; }
    .game-cover-large { width: min(230px, 70vw); }
    .gallery-grid { grid-template-columns: 1fr; }
    .article-hero { min-height: 480px; }
    .hero-search { flex-direction: column; }
    .search-list > a { grid-template-columns: 55px 1fr auto; }
    .search-list img { width: 55px; height: 55px; }
    .account-hero-inner, .member-profile-inner { align-items: flex-start; flex-direction: column; }
    .account-sidebar { grid-template-columns: 1fr 1fr; }
    .member-profile-grid { padding-top: 55px; }
    .forum-category-card { grid-template-columns: 48px minmax(0, 1fr); }
    .forum-counts { grid-column: 2; justify-content: flex-start; }
    .forum-sidebar { grid-template-columns: 1fr; }
    .topic-head { display: none; }
    .topic-row { grid-template-columns: 1fr 1fr 1fr; padding: 12px; }
    .topic-row .topic-main { grid-column: 1 / -1; padding: 6px; }
    .topic-row > span, .topic-latest { padding: 6px; font-size: .78rem; }
    .topic-row > span::before { content: attr(data-label) ": "; color: var(--faint); }
    .topic-title-row { flex-direction: column; }
    .forum-post { grid-template-columns: 1fr; }
    .post-author { display: flex; align-items: center; gap: 10px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
    .post-author > a { flex-direction: row; }
    .post-author .avatar { width: 42px; height: 42px; }
    .post-author .role-badge, .post-author > small { display: none; }
    .auth-art { min-height: 420px; padding: 45px 25px; }
    .auth-art img { width: 150px; }
    .auth-card { padding: 45px 24px; }
    .messenger { right: 12px; bottom: 12px; }
    .messenger-label { display: none; }
    .messenger-launcher { width: 54px; padding: 9px; justify-content: center; }
    .messenger-panel { bottom: 64px; width: calc(100vw - 24px); height: min(650px, calc(100vh - 95px)); }
}

/* Version 2: global game leaderboards and privacy controls. */
.page-hero.compact { min-height: 330px; padding-bottom: 55px; }
.leaderboard-game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }
.leaderboard-game-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15, 21, 16, .98), rgba(5, 8, 6, .98)); box-shadow: var(--shadow); }
.leaderboard-game-art { min-height: 210px; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 7px; background: #050805; }
.leaderboard-game-art img { width: 100%; height: 100%; object-fit: cover; }
.leaderboard-game-art > span { display: grid; height: 100%; place-items: center; color: var(--accent); font-family: var(--font-display); font-size: 2.2rem; }
.leaderboard-game-card h2 { margin: 10px 0 8px; }
.leaderboard-game-card p { color: var(--muted); }
.leaderboard-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 17px 0; }
.leaderboard-card-stats > div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; background: rgba(0,0,0,.2); }
.leaderboard-card-stats dt { color: var(--faint); font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }
.leaderboard-card-stats dd { margin: 2px 0 0; color: var(--accent); font-family: var(--font-display); font-weight: 800; }
.leaderboard-hero { position: relative; min-height: 400px; padding: 130px 0 70px; overflow: hidden; border-bottom: 1px solid var(--accent-line); background: linear-gradient(90deg, rgba(2, 4, 2, .97), rgba(2, 4, 2, .58)), var(--game-hero-image, linear-gradient(140deg, #070c08, #020302)); background-size: cover; background-position: center; }
.leaderboard-hero .shell { position: relative; z-index: 2; }
.leaderboard-hero h1 { max-width: 900px; margin: 12px 0; text-transform: uppercase; }
.leaderboard-hero p { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.leaderboard-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.leaderboard-toolbar h2 { margin-bottom: 5px; }
.leaderboard-toolbar p { margin: 0; color: var(--muted); }
.leaderboard-search { display: flex; align-items: center; gap: 8px; }
.leaderboard-search input { width: min(300px, 42vw); }
.leaderboard-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 10, 8, .88); box-shadow: 0 20px 65px rgba(0,0,0,.35); }
.leaderboard-table-wrap.compact { max-width: 1040px; }
.leaderboard-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; }
.leaderboard-table th { background: rgba(140, 255, 0, .055); color: var(--faint); font-family: var(--font-display); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-table tbody tr:last-child td { border-bottom: 0; }
.leaderboard-table tbody tr:hover { background: rgba(140,255,0,.035); }
.leaderboard-table .score-cell { color: var(--accent); font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; }
.leaderboard-table tr.podium { box-shadow: inset 3px 0 var(--accent); background: linear-gradient(90deg, rgba(140,255,0,.08), transparent 36%); }
.leaderboard-table tr.rank-2 { box-shadow: inset 3px 0 #c9d2c7; }
.leaderboard-table tr.rank-3 { box-shadow: inset 3px 0 #c78c54; }
.pilot-badge { display: inline-grid; width: 30px; height: 30px; margin-right: 10px; place-items: center; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: .72rem; }
.table-empty { padding: 28px; color: var(--muted); text-align: center; }
.leaderboard-integrity-note { margin-top: 22px; padding: 15px 17px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: .83rem; }
.game-leaderboard-preview .section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.deletion-layout { align-items: start; }
.panel-form { display: grid; gap: 15px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-form label { display: grid; gap: 6px; font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 760px) {
    .leaderboard-game-card { grid-template-columns: 100px minmax(0, 1fr); gap: 15px; }
    .leaderboard-game-art { min-height: 160px; }
    .leaderboard-toolbar, .game-leaderboard-preview .section-heading.split { align-items: stretch; flex-direction: column; }
    .leaderboard-search { align-items: stretch; flex-wrap: wrap; }
    .leaderboard-search input { width: 100%; flex: 1 0 100%; }
    .leaderboard-hero { min-height: 340px; padding: 105px 0 55px; }
}

@media (max-width: 480px) {
    .leaderboard-game-card { grid-template-columns: 1fr; }
    .leaderboard-game-art { max-height: 300px; }
}

/* Mythbound campaign / multiplayer rankings */
.mb-ranking-tablist{display:flex;gap:10px;flex-wrap:wrap;padding:7px;border:1px solid var(--border,#283641);border-radius:14px;background:rgba(4,12,19,.6);margin:20px 0}
.mb-ranking-tablist button{flex:1;min-width:200px;border:1px solid transparent;border-radius:9px;background:transparent;color:inherit;padding:14px 20px;font:inherit;font-weight:700;cursor:pointer}
.mb-ranking-tablist button[aria-selected="true"]{background:rgba(76,206,177,.15);border-color:var(--accent,#4cceb1);color:var(--accent,#81e6cf)}
.mb-ranking-tablist button:focus-visible{outline:3px solid var(--accent,#81e6cf);outline-offset:3px}
.mb-ranking-caption{padding:4px 0 18px}.mb-ranking-caption h3{margin:0 0 8px}.mb-ranking-caption p,.mb-ranking-footnote{color:var(--muted,#a9b5bd);font-size:.92rem;line-height:1.65}.mb-ranking-footnote{margin:16px 0 0;max-width:1000px}
.mb-leaderboards [hidden]{display:none!important}.mb-leaderboards td:nth-child(2){overflow-wrap:anywhere;min-width:160px}.mb-leaderboards .table-empty{white-space:normal;min-width:240px}
@media(max-width:560px){.mb-ranking-tablist{gap:5px}.mb-ranking-tablist button{min-width:120px;padding:12px 8px;font-size:.87rem}}

/* v1.9.2: retain the entire supplied square artwork without stretching. */
.game-card--branded .game-card-art{aspect-ratio:1;background:#050709}
.game-card--branded .game-card-art img{object-fit:contain}
.game-card--branded:hover .game-card-art img{transform:none}
.game-card--branded .game-card-art::after{background:linear-gradient(transparent 78%,#03050370)}
.game-cover-large.game-cover-large--icon{aspect-ratio:1;transform:none;border-radius:24%;border-color:transparent;background:#050709}
.game-cover-large--icon img{object-fit:contain}
.hero-project--icon img,.leaderboard-game-art--icon img{object-fit:contain;background:#050709}
.mythbound-feature-art{display:block;width:min(1024px,100%);height:auto;border-radius:20px;border:1px solid #cfad5c40;margin:24px 0}
