/* Antyrix website. Dark-fantasy theme: night sky, gilded headings, realm colours. */
:root {
    --bg: #07080d;
    --bg-2: #0d0f18;
    --panel: rgba(18, 20, 31, 0.78);
    --panel-solid: #12141f;
    --line: rgba(232, 197, 107, 0.18);
    --line-strong: rgba(232, 197, 107, 0.45);
    --gold: #e8c56b;
    --gold-bright: #ffe39a;
    --text: #ece6d6;
    --muted: #a39d8c;
    --asgardr: #6f90ff;
    --wyrdholt: #ff6a55;
    --kamizumi: #5fdc6a;
    --neutral: #d8d4c4;
    --radius: 14px;
    --display: "Cinzel", Georgia, "Times New Roman", serif;
    --body: "Inter", "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(111, 144, 255, 0.10), transparent 60%),
        radial-gradient(1000px 600px at -10% 20%, rgba(255, 106, 85, 0.08), transparent 60%),
        radial-gradient(900px 700px at 50% 120%, rgba(95, 220, 106, 0.07), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font: 16px/1.65 var(--body);
    min-height: 100vh;
}
/* Film grain over everything, for texture. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    z-index: 100;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.gilded {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, #a8812e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(232, 197, 107, 0.25);
}
.muted { color: var(--muted); }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.eyebrow { font-family: var(--display); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold); }
.lede { font-size: 1.15rem; color: #d6d0c0; max-width: 62ch; }

/* ---------- navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(7, 8, 13, 0.92), rgba(7, 8, 13, 0.65));
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.18em; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.nav-links a { color: var(--text); opacity: 0.8; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.server-pill { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.server-pill .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fdc6a; box-shadow: 0 0 10px #5fdc6a; margin-right: 6px; }
@media (max-width: 760px) {
    .nav-links { gap: 14px; font-size: 0.85rem; }
    .server-pill { display: none; }
    .brand span { display: none; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); color: var(--gold-bright); box-shadow: 0 0 28px rgba(232, 197, 107, 0.18); }
.btn.primary {
    background: linear-gradient(180deg, #f3d27e, #b98a2e);
    color: #1b1305;
    border-color: #f6dc95;
    box-shadow: 0 10px 40px rgba(232, 197, 107, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.primary:hover { color: #000; box-shadow: 0 14px 50px rgba(232, 197, 107, 0.4); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: min(92vh, 900px);
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: -40px;
    /* Painted dusk under the screenshot, so the hero still looks right without it. */
    background-color: #10131f;
    background-image:
        radial-gradient(900px 420px at 70% 30%, rgba(255, 190, 110, 0.22), transparent 70%),
        linear-gradient(180deg, #1a2140 0%, #2b2238 45%, #3a2a24 70%, #10131f 100%);
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.06);
    animation: drift 40s ease-in-out infinite alternate;
    z-index: -2;
    filter: saturate(1.1) contrast(1.05);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 8, 13, 0.25) 0%, rgba(7, 8, 13, 0.05) 35%, rgba(7, 8, 13, 0.85) 80%, var(--bg) 100%),
        radial-gradient(1000px 500px at 50% 110%, rgba(232, 197, 107, 0.18), transparent 70%);
}
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-content { width: min(1180px, calc(100% - 32px)); max-width: 1180px; padding: 0 0 clamp(48px, 9vh, 110px); }
.hero h1 { margin-bottom: 0.15em; letter-spacing: 0.12em; }
.hero .tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(0.76rem, 1.25vw, 0.98rem); letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; }
.hero .tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero .lede { max-width: 54ch; text-shadow: 0 2px 18px #000; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Rising embers in the hero. */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd88a 0%, #ff8a3d 50%, transparent 70%);
    box-shadow: 0 0 10px #ff9a4a;
    opacity: 0;
    animation: rise linear infinite;
}
@keyframes rise {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.9; }
    100% { transform: translate(var(--sway, 30px), -95vh) scale(0.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg, .embers i { animation: none; }
    .embers { display: none; }
}

/* ---------- live strip ---------- */
.live-strip {
    margin-top: -28px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.stat { background: var(--panel-solid); padding: 20px 22px; }
.stat .value { font-family: var(--display); font-size: 1.9rem; color: var(--gold-bright); line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- cards and panels ---------- */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.features { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.realm-card { position: relative; overflow: hidden; border-top: 3px solid var(--realm, var(--gold)); }
.realm-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 220px at 80% -20%, color-mix(in srgb, var(--realm, var(--gold)) 22%, transparent), transparent 70%);
    pointer-events: none;
}
.realm-card .art { display: block; width: calc(100% + 52px); max-width: none; height: 170px; margin: -26px -26px 18px; object-fit: cover; }
.realm-card .art + .crest { margin-top: -50px; position: relative; }
.panel.lore { padding: 0 28px 28px; overflow: hidden; }
.panel.lore img { display: block; width: calc(100% + 56px); max-width: none; height: clamp(200px, 32vw, 380px); margin: 0 -28px 24px; object-fit: cover; }
.realm-card .crest { width: 64px; height: 64px; margin-bottom: 14px; filter: drop-shadow(0 0 18px var(--realm)); }
.realm-card h3 { color: var(--realm); }
.realm-card .classes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.realm-meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 16px; }
.realm-meter > div { height: 100%; background: var(--realm); box-shadow: 0 0 12px var(--realm); transition: width 0.6s; }
.realm-asgardr { --realm: var(--asgardr); }
.realm-wyrdholt { --realm: var(--wyrdholt); }
.realm-kamizumi { --realm: var(--kamizumi); }

.feature h3 { display: flex; align-items: center; gap: 12px; }
.feature .icon { font-size: 1.6rem; filter: drop-shadow(0 0 12px rgba(232, 197, 107, 0.4)); }

/* ---------- realm war map ---------- */
.war { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; align-items: center; }
@media (max-width: 900px) { .war { grid-template-columns: 1fr; } }
.map { width: 100%; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 0 80px rgba(232, 197, 107, 0.08); background: #0b0d14; }
.map .zone { stroke: rgba(0, 0, 0, 0.35); stroke-width: 2; }
.map .label { font-family: var(--display); font-size: 22px; fill: rgba(255, 255, 255, 0.75); letter-spacing: 4px; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, 0.6); stroke-width: 4px; }
.map .keep-name { font-family: var(--display); font-size: 13px; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 4px; }
.map .keep { transition: fill 0.6s; }
.map .pulse { animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.keep-list { list-style: none; margin: 0; padding: 0; }
.keep-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.keep-list .owner { font-weight: 600; }

/* ---------- tables ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: transparent; cursor: pointer; font: inherit; }
.tab.active, .tab:hover { border-color: var(--gold); color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
select, input[type="search"] {
    font: inherit;
    color: var(--text);
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.ranks { width: 100%; border-collapse: collapse; min-width: 640px; }
.ranks th, .ranks td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.ranks th { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.ranks tbody tr { transition: background 0.15s; }
.ranks tbody tr:hover { background: rgba(232, 197, 107, 0.05); }
.ranks td.num { font-variant-numeric: tabular-nums; }
.rank-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--display); font-weight: 700; border: 1px solid var(--line); }
tr:nth-child(1) .rank-badge { background: linear-gradient(180deg, #ffe39a, #b98a2e); color: #1b1305; border: none; box-shadow: 0 0 18px rgba(232, 197, 107, 0.5); }
tr:nth-child(2) .rank-badge { background: linear-gradient(180deg, #eef2f7, #8d97a6); color: #111; border: none; }
tr:nth-child(3) .rank-badge { background: linear-gradient(180deg, #f0b07a, #8a4f24); color: #1b0d03; border: none; }
.realm-tag { font-weight: 600; }
.realm-tag.Asgardr { color: var(--asgardr); }
.realm-tag.Wyrdholt { color: var(--wyrdholt); }
.realm-tag.Kamizumi { color: var(--kamizumi); }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fdc6a; box-shadow: 0 0 8px #5fdc6a; margin-left: 8px; vertical-align: middle; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- news ---------- */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform 0.2s, border-color 0.2s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.news-card .cover { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #1c2340, #2b2030) center / cover no-repeat; }
.news-card .body { padding: 20px 22px 24px; }
.news-card .date, .article .date { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.news-card h3 { margin: 6px 0 8px; color: var(--text); }
.article { max-width: 760px; margin: 0 auto; }
.article .cover { aspect-ratio: 21 / 9; border-radius: var(--radius); background: #11131c center / cover no-repeat; margin: 24px 0 32px; border: 1px solid var(--line); }
.article .content { font-size: 1.08rem; }
.article .content h2, .article .content h3 { margin-top: 1.6em; color: var(--gold-bright); }
.article .content blockquote { margin: 1.5em 0; padding: 4px 22px; border-left: 3px solid var(--gold); color: #d6d0c0; font-style: italic; }
.article .content code { background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 6px; }
.article .content img { border-radius: var(--radius); margin: 1.5em 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 220px); gap: 14px; }
.gallery figure { margin: 0; min-height: 0; background: linear-gradient(160deg, #1c2340, #2b2030); overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); position: relative; grid-column: span 3; }
.gallery figure.gallery-wide { grid-column: span 6; grid-row: span 2; }
.gallery img { height: 100%; aspect-ratio: auto; object-fit: cover; width: 100%; transition: transform 0.6s, filter 0.6s; filter: saturate(1.02) brightness(.94) contrast(1.02); }
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(.96); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 15px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9)); font-family: var(--display); letter-spacing: 0.06em; font-size: 1rem; text-shadow: 0 1px 10px #000; }
.gallery figcaption span { display: block; color: var(--gold); font: 600 .66rem/1.5 var(--body); letter-spacing: .2em; margin-bottom: 4px; }
@media (max-width: 760px) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
    .gallery figure, .gallery figure.gallery-wide { grid-column: span 1; grid-row: span 1; }
    .gallery figure.gallery-wide { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 430px) {
    .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
    .gallery figure, .gallery figure.gallery-wide { grid-column: span 1; }
}

/* ---------- downloads ---------- */
.download-hero { text-align: center; }
.download-hero .btn { font-size: 1.1rem; padding: 18px 34px; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 34px; }
.platform h3 { display: flex; align-items: center; gap: 10px; }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; color: var(--muted); word-break: break-all; }
pre.code { background: #0b0d14; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 0.9rem; }

/* ---------- profile ---------- */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.profile-head .crest { width: 96px; height: 96px; filter: drop-shadow(0 0 24px var(--realm)); }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 26px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 0.9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }

/* Reveal sections as they scroll in. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s, transform 0.8s; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Rules, terms and privacy */
.legal { padding-top: 110px; }
.legal .panel { max-width: 820px; line-height: 1.65; }
.legal h2 { font-family: var(--display); letter-spacing: .06em; margin: 1.6em 0 .4em; font-size: 1.2rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }
/* Text the operator must fill in before launch stands out until they do. */
.placeholder { background: rgba(255, 120, 80, .18); padding: 0 .3em; border-radius: 3px; }
