:root {
    color-scheme: dark;
    --bg: #070a10;
    --bg-soft: #0b1019;
    --surface: rgba(18, 24, 35, .86);
    --surface-solid: #111824;
    --surface-light: #192231;
    --line: rgba(226, 199, 143, .16);
    --line-strong: rgba(226, 199, 143, .34);
    --gold: #e4c487;
    --gold-bright: #f4dfa9;
    --gold-dark: #a77638;
    --text: #f4f0e8;
    --muted: #9ca7b7;
    --success: #66d39b;
    --danger: #e67878;
    --shadow: 0 24px 80px rgba(0, 0, 0, .38);
    --radius: 18px;
    --shell: 1240px;
    --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: radial-gradient(circle at 10% 10%, rgba(38, 54, 78, .24), transparent 34%), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
::selection { color: #090d14; background: var(--gold); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow-shell { width: min(calc(100% - 40px), 590px); }
.narrow-content { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 18px; color: #090d14; background: var(--gold-bright); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-height); background: linear-gradient(180deg, rgba(5, 8, 13, .9), rgba(5, 8, 13, .58)); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: background .25s, border-color .25s, height .25s; }
.site-header.scrolled { background: rgba(6, 9, 14, .94); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { filter: drop-shadow(0 0 18px rgba(228, 196, 135, .12)); }
.brand-logo { display: block; width: 190px; height: auto; }
.footer-logo { display: block; width: 220px; height: auto; }
.brand-word { font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 700; letter-spacing: .15em; line-height: 1; }
.brand-word span { color: var(--gold); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 26px; margin-inline: auto; }
.main-nav a { position: relative; padding-block: 28px; color: #c6ccd5; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: 20px; width: 0; height: 1px; background: var(--gold); transform: translateX(-50%); transition: width .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-bright); }
.main-nav a.active::after { width: 24px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.language-switcher { position: relative; }
.language-switcher summary { list-style: none; min-width: 48px; padding: 10px 12px; cursor: pointer; color: var(--gold-bright); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; font-size: .75rem; font-weight: 800; text-align: center; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); width: 300px; padding: 10px; background: rgba(9, 13, 20, .98); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.language-menu a { padding: 9px 11px; color: var(--muted); border-radius: 8px; font-size: .82rem; }
.language-menu a:hover, .language-menu a.active { color: var(--gold-bright); background: rgba(228, 196, 135, .08); }
.nav-toggle { display: none; width: 46px; height: 42px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 10px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 100%; height: 1px; margin-block: 5px; background: var(--gold-bright); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; cursor: pointer; color: #0a0d12; background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark)); border: 1px solid rgba(255, 235, 193, .4); border-radius: 10px; box-shadow: 0 8px 28px rgba(174, 119, 51, .17); font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; transition: transform .2s, filter .2s, box-shadow .2s; }
.button:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 13px 34px rgba(174, 119, 51, .24); }
.button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .45; transform: none; }
.button-small { min-height: 39px; padding: 8px 14px; font-size: .69rem; }
.button-large { min-height: 52px; padding: 13px 24px; }
.button-block { width: 100%; }
.button-ghost { color: var(--gold-bright); background: rgba(8, 12, 18, .34); border-color: var(--line-strong); box-shadow: none; }
.text-link { color: var(--gold-bright); font-size: .77rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.text-link:hover { color: #fff; }

.hero { position: relative; min-height: 830px; display: grid; align-items: center; overflow: hidden; padding-top: var(--header-height); border-bottom: 1px solid var(--line); }
.hero-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(5, 8, 13, .95) 0%, rgba(5, 8, 13, .76) 38%, rgba(5, 8, 13, .2) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 25%), url('../images/hero-andira2.jpg'); background-size: cover; background-position: 56% center; transform: scale(1.01); }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 77% 46%, rgba(222, 165, 75, .1), transparent 20%), linear-gradient(180deg, rgba(4, 6, 10, .08), rgba(4, 6, 10, .32)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .62fr); gap: clamp(45px, 8vw, 110px); align-items: center; padding-block: 90px 130px; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 15px; color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .23em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.14; }
.hero h1 { max-width: 690px; margin-bottom: 25px; font-size: clamp(3.4rem, 6.4vw, 6.6rem); font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.hero h1::first-line { color: #fff; }
.hero-lead { max-width: 660px; margin-bottom: 34px; color: #c1c8d2; font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 25px; margin-top: 30px; color: #aeb8c6; font-size: .76rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 12px var(--gold); }
.glass-panel, .panel, .form-card { background: linear-gradient(145deg, rgba(18, 24, 34, .9), rgba(10, 14, 21, .82)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-panel { padding: 28px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 17px; color: var(--gold-bright); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.panel-heading a { color: var(--muted); font-size: .68rem; }
form { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: #d7dce3; font-size: .79rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
input, textarea, select { width: 100%; color: var(--text); background: rgba(2, 5, 9, .52); border: 1px solid rgba(214, 226, 243, .13); border-radius: 9px; outline: none; transition: border-color .2s, box-shadow .2s; }
input, select { height: 48px; padding: 0 14px; }
textarea { min-height: 130px; padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(228, 196, 135, .08); }
.honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-row { display: flex; grid-template-columns: 20px 1fr; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; }
.check-row a { color: var(--gold-bright); text-decoration: underline; }
.account-welcome h2 { margin: 20px 0 8px; font-size: 2rem; }
.account-welcome p { color: var(--muted); margin-bottom: 24px; }

.status-strip { position: relative; z-index: 2; margin-top: -62px; }
.status-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); min-height: 124px; background: rgba(9, 13, 20, .93); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.status-title, .status-item { display: flex; align-items: center; padding: 25px 28px; border-inline-end: 1px solid var(--line); }
.status-title { display: block; }
.status-title .eyebrow { margin-bottom: 5px; }
.status-title h2 { margin: 0; font-size: 1.45rem; }
.status-item { gap: 13px; }
.status-item:last-child { border-inline-end: 0; }
.status-item small, .status-item strong { display: block; }
.status-item small { color: var(--muted); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.status-item strong { margin-top: 2px; font-size: .94rem; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.status-dot.online { background: var(--success); box-shadow: 0 0 14px rgba(102, 211, 155, .65); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 14px rgba(230, 120, 120, .35); }
.status-icon { color: var(--gold); font-size: 1.25rem; }

.section { padding-block: clamp(75px, 9vw, 120px); }
.section-toned { background: linear-gradient(180deg, rgba(15, 21, 31, .72), rgba(8, 12, 18, .45)); border-block: 1px solid rgba(255,255,255,.035); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.65rem); font-weight: 500; letter-spacing: -.035em; }
.section-heading p:not(.eyebrow) { max-width: 670px; color: var(--muted); }
.section-heading.compact h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.section-heading.centered { justify-content: center; text-align: center; }
.news-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 18px; }
.news-card, .feature-card, .product-card { position: relative; overflow: hidden; padding: 30px; background: linear-gradient(145deg, rgba(20, 28, 40, .84), rgba(10, 14, 21, .84)); border: 1px solid rgba(228, 196, 135, .11); border-radius: var(--radius); transition: transform .25s, border-color .25s, background .25s; }
.news-card::before, .feature-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0, rgba(228, 196, 135, .09), transparent 36%); opacity: 0; transition: opacity .25s; }
.news-card:hover, .feature-card:hover, .product-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.news-card:hover::before, .feature-card:hover::before { opacity: 1; }
.news-card.featured { min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 10% 10%, rgba(62, 80, 105, .28), transparent 45%), linear-gradient(145deg, #182230, #0c111a); }
.news-card h2, .news-card h3 { margin: 12px 0; font-size: 1.55rem; }
.news-card.featured h3 { font-size: 2.15rem; }
.news-card p, .feature-card p, .product-card p { color: var(--muted); }
.card-kicker { color: var(--gold); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.empty-state { min-height: 280px; display: grid; place-items: center; align-content: center; padding: 50px; text-align: center; background: rgba(18, 24, 35, .45); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state > span { color: var(--gold); font-size: 2.6rem; }
.empty-state h2, .empty-state h3 { margin: 12px 0 5px; }
.empty-state p, .empty-inline { color: var(--muted); }
.split-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: start; }
.event-list { display: grid; gap: 13px; }
.event-row { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event-row time strong, .event-row time span { display: block; }
.event-row time strong { color: var(--gold-bright); }
.event-row time span { color: var(--muted); font-size: .7rem; }
.event-row h3 { margin: 0 0 6px; font-size: 1.2rem; }
.event-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.ranking-preview { padding: 28px; }
.compact-ranking { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.compact-ranking li { display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center; padding: 15px 5px; border-bottom: 1px solid var(--line); }
.compact-ranking li:last-child { border-bottom: 0; }
.compact-ranking small { display: block; color: var(--muted); }
.compact-ranking b { color: var(--gold-bright); font-size: .75rem; }
.rank-number { display: inline-grid; place-items: center; width: 31px; height: 31px; color: var(--gold-bright); background: rgba(228, 196, 135, .08); border: 1px solid var(--line); border-radius: 50%; font-size: .75rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.feature-card { min-height: 245px; }
.feature-rune { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 30px; color: var(--gold); background: rgba(228, 196, 135, .06); border: 1px solid var(--line); transform: rotate(45deg); }
.feature-rune + h3 { font-size: 1.35rem; }
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-block: 20px 120px; padding: clamp(35px, 5vw, 65px); background: radial-gradient(circle at 80% 10%, rgba(228, 196, 135, .13), transparent 32%), linear-gradient(120deg, #172130, #0b1018); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow); }
.cta-banner h2 { max-width: 680px; margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; }
.cta-banner p:not(.eyebrow) { margin: 0; color: var(--muted); }

.page-hero { min-height: 420px; display: flex; align-items: flex-end; padding: calc(var(--header-height) + 100px) 0 70px; background: radial-gradient(circle at 70% 20%, rgba(52, 71, 99, .25), transparent 28%), linear-gradient(180deg, #101722, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; margin: 0 0 17px; font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 500; letter-spacing: -.045em; }
.page-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.07rem; }
.compact-hero { min-height: 330px; padding-bottom: 54px; }
.compact-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.form-card { padding: clamp(25px, 5vw, 44px); }
.form-switch { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .86rem; }
.form-switch a { color: var(--gold-bright); }
.account-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: start; }
.panel { padding: 28px; }
.password-panel { grid-column: 1 / -1; width: min(100%, 620px); }
.details-list { display: grid; gap: 0; margin: 0 0 24px; }
.details-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; text-align: end; font-weight: 700; }
.status-chip { display: inline-flex; padding: 5px 9px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 99px; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-chip.online { color: var(--success); background: rgba(102,211,155,.06); border-color: rgba(102,211,155,.2); }
.character-list { display: grid; gap: 5px; }
.character-list article { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.character-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: var(--gold-bright); background: linear-gradient(145deg, #253246, #111925); border: 1px solid var(--line); border-radius: 50%; font-family: Georgia, serif; }
.character-list h3, .character-list p { margin: 0; }
.character-list p { color: var(--muted); font-size: .75rem; }
.character-list strong { color: var(--gold-bright); }
.character-list strong small { display: block; text-align: end; }
.archive-grid { grid-template-columns: repeat(3, 1fr); }
.article-page .page-hero { min-height: 500px; }
.prose { color: #c9d0da; font-size: 1.02rem; line-height: 1.9; }
.prose h2 { margin-top: 46px; color: var(--text); font-size: 1.7rem; }
.compact-prose { font-size: .92rem; }
.article-back { padding-bottom: 100px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 100px; bottom: 100px; inset-inline-start: 9px; width: 1px; background: var(--line-strong); }
.timeline-entry { position: relative; padding-inline-start: 48px; margin-bottom: 25px; }
.timeline-marker { position: absolute; inset-inline-start: 2px; top: 34px; width: 15px; height: 15px; background: var(--gold); border: 4px solid var(--bg); border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.event-cards { display: grid; gap: 14px; }
.event-card { display: grid; grid-template-columns: 190px 1fr; gap: 35px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.event-date { padding-inline-end: 25px; border-inline-end: 1px solid var(--line); }
.event-date small, .event-date strong, .event-date span { display: block; }
.event-date small { color: var(--gold); text-transform: uppercase; }
.event-date strong { margin-block: 5px; font-size: 1.3rem; }
.event-date span, .event-card p, .event-end { color: var(--muted); }
.event-card h2 { margin-bottom: 8px; }
.event-card p { margin: 0 0 12px; }
.event-end { font-size: .78rem; }
.tabs { display: inline-flex; margin-bottom: 22px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tabs a { min-width: 130px; padding: 10px 18px; color: var(--muted); border-radius: 8px; text-align: center; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.tabs a.active { color: #0a0d12; background: var(--gold); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 17px 20px; text-align: start; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(228, 196, 135, .035); }
tbody tr:last-child td { border-bottom: 0; }
.empire { color: #c9d0da; }
.empire-1 { color: #e48c8c; }.empire-2 { color: #e0cf83; }.empire-3 { color: #83aee0; }
.empty-cell { padding: 50px; color: var(--muted); text-align: center; }
.data-note { margin-top: 15px; color: var(--muted); font-size: .74rem; }
.download-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.download-card { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.download-card h2 { margin: 14px 0 5px; }
.download-card p { color: var(--muted); }
.download-card code { display: block; max-width: 500px; overflow-wrap: anywhere; color: #b5c0cf; font-size: .7rem; }
.requirements { position: sticky; top: calc(var(--header-height) + 20px); }
.notice-panel { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; padding: 24px 28px; background: rgba(228,196,135,.05); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.notice-panel > span { color: var(--gold); font-size: 2rem; }
.notice-panel h2, .notice-panel p { margin: 0; }
.notice-panel p { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.product-placeholder { display: grid; place-items: center; aspect-ratio: 1.3; margin: -12px -12px 25px; color: var(--gold); background: radial-gradient(circle, rgba(228,196,135,.1), transparent 60%), #0b1018; border-radius: 12px; font-size: 2rem; }
.product-card > strong { display: block; margin-block: 20px; color: var(--gold-bright); }
.support-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 45px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 19px 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq-list summary { cursor: pointer; color: var(--text); font-weight: 750; }
.faq-list p { margin: 13px 0 0; color: var(--muted); }
.ticket-list { display: grid; gap: 8px; }
.ticket-list > a { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 17px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ticket-list > a:hover { border-color: var(--line-strong); }
.ticket-list small { display: block; color: var(--muted); }
.conversation { display: grid; gap: 15px; margin-bottom: 30px; }
.message { width: min(88%, 680px); padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.message-staff { margin-inline-start: auto; background: rgba(228,196,135,.06); border-color: var(--line-strong); }
.message > div { display: flex; justify-content: space-between; gap: 20px; }
.message time { color: var(--muted); font-size: .72rem; }
.message p { margin-bottom: 0; color: #cbd2dc; }
.reply-panel { margin-bottom: 25px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.admin-grid .panel { display: flex; flex-direction: column; }
.admin-grid p { color: var(--muted); }
.admin-grid .button { margin-top: auto; }
.legal-copy .notice-panel { margin-bottom: 50px; }
.error-page { min-height: 82vh; display: grid; place-items: center; padding: calc(var(--header-height) + 50px) 0 80px; text-align: center; background: radial-gradient(circle, rgba(43,60,84,.25), transparent 38%); }
.error-page .shell { max-width: 700px; }
.error-code { display: block; margin-bottom: -10px; color: rgba(228,196,135,.13); font-family: Georgia, serif; font-size: clamp(7rem, 20vw, 14rem); line-height: 1; }
.error-page h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.error-page p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); }
.flash-stack { position: fixed; z-index: 60; top: calc(var(--header-height) + 15px); inset-inline: 0; display: grid; gap: 8px; pointer-events: none; }
.flash { width: min(100%, 680px); margin-inline: auto; padding: 14px 18px; background: #111924; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); pointer-events: auto; }
.flash-success { border-color: rgba(102,211,155,.35); }.flash-error { border-color: rgba(230,120,120,.4); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 38px; }
.pagination span { color: var(--muted); font-size: .82rem; }

.site-footer { padding-top: 75px; background: #06090e; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 50px; padding-bottom: 60px; }
.footer-grid h2 { color: var(--gold-bright); font-family: inherit; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid a:not(.brand), .footer-brand p { color: var(--muted); font-size: .82rem; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-brand p { max-width: 340px; margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; color: #778292; border-top: 1px solid var(--line); font-size: .72rem; }
.footer-bottom strong { color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.cookie-consent { position: fixed; z-index: 80; inset: auto 20px 20px auto; width: min(calc(100% - 40px), 500px); display: flex; align-items: center; gap: 24px; padding: 18px 20px; background: rgba(12, 17, 25, .98); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }

/* Official-like portal homepage. The structure is original and uses only Andira2 assets. */
.portal-hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; padding-top: var(--header-height); border-bottom: 1px solid var(--line); }
.portal-hero-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(5,7,11,.94) 0%, rgba(5,7,11,.76) 34%, rgba(5,7,11,.18) 63%, rgba(5,7,11,.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%), url('../images/hero-official-v2.jpg'); background-size: cover; background-position: center 45%; transform: scale(1.01); }
.portal-hero-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 42%, rgba(236,178,83,.13), transparent 23%), linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.22)); }
.portal-hero-content { position: relative; z-index: 1; padding-block: 116px 190px; }
.portal-hero-content .eyebrow { margin-inline-start: 112px; }
.hero-official-logo { display: block; width: min(560px, 67vw); margin: -22px 0 -6px; filter: drop-shadow(0 16px 25px rgba(0,0,0,.72)); }
.portal-hero .hero-lead { max-width: 610px; margin-bottom: 28px; color: #d0d3d7; text-shadow: 0 2px 14px #000; }
.portal-dashboard { position: relative; z-index: 4; display: grid; grid-template-columns: 270px minmax(0, 1fr) 285px; gap: 18px; align-items: start; margin-top: -108px; }
.portal-column, .portal-main { display: grid; gap: 18px; min-width: 0; }
.portal-card { min-width: 0; padding: 22px; background: linear-gradient(150deg, rgba(20,25,33,.97), rgba(8,12,18,.96)); border: 1px solid rgba(223,184,113,.2); border-radius: 7px; box-shadow: 0 22px 65px rgba(0,0,0,.38); }
.portal-card .panel-heading { margin-bottom: 17px; padding-bottom: 13px; }
.portal-card .panel-heading small { color: var(--success); font: 800 .56rem/1.2 Inter, sans-serif; letter-spacing: .1em; }
.portal-login form { gap: 13px; }
.portal-login input { height: 44px; }
.portal-services { padding-bottom: 10px; }
.portal-service { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); transition: color .2s, padding-inline-start .2s; }
.portal-service:last-child { border-bottom: 0; }
.portal-service:hover { padding-inline-start: 9px; color: var(--gold-bright); }
.portal-service > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--gold); background: rgba(228,196,135,.06); border: 1px solid var(--line); transform: rotate(45deg); }
.portal-service > span i { font-style: normal; transform: rotate(-45deg); }
.portal-service strong, .portal-service small { display: block; }
.portal-service strong { font: 700 .82rem/1.25 Georgia, serif; }
.portal-service small { margin-top: 3px; color: var(--muted); font-size: .53rem; letter-spacing: .06em; text-transform: uppercase; }
.spotlight-card { position: relative; min-height: 415px; overflow: hidden; background: #080c12; border: 1px solid rgba(223,184,113,.27); border-radius: 7px; box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.spotlight-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,6,10,.96), rgba(4,7,12,.1) 75%), linear-gradient(90deg, rgba(3,6,10,.5), transparent 62%); }
.spotlight-overlay { position: absolute; z-index: 1; inset: auto 30px 28px; max-width: 520px; }
.spotlight-overlay h2 { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 500; }
.spotlight-overlay p:not(.eyebrow) { margin: 0 0 13px; color: #bdc5d0; font-size: .84rem; }
.portal-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action { min-width: 0; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 11px; align-items: center; min-height: 76px; padding: 12px 14px; background: linear-gradient(145deg, rgba(23,29,39,.96), rgba(9,13,19,.96)); border: 1px solid var(--line); border-radius: 6px; transition: transform .2s, border-color .2s; }
.quick-action:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.quick-action > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--gold-bright); background: rgba(228,196,135,.08); border: 1px solid var(--line); border-radius: 50%; }
.quick-action small, .quick-action strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.quick-action small { color: var(--muted); font-size: .5rem; letter-spacing: .06em; white-space: nowrap; }
.quick-action strong { color: #f0e5cf; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.quick-action-primary { background: linear-gradient(145deg, #b8843f, #64411e); border-color: rgba(255,225,170,.38); }
.quick-action-primary > span { color: #fff1c8; background: rgba(0,0,0,.14); border-color: rgba(255,255,255,.24); }
.quick-action-primary small { color: #ead7b5; }
.quick-action-primary strong { color: #fff; }
.portal-news { padding-top: 0; }
.content-tabs { display: flex; gap: 4px; margin-inline: -22px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.content-tabs a { position: relative; padding: 19px 14px 15px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.content-tabs a::after { content: ""; position: absolute; inset: auto 14px -1px; height: 2px; background: transparent; }
.content-tabs a:hover, .content-tabs a.active { color: var(--gold-bright); }
.content-tabs a.active::after { background: var(--gold); }
.portal-news-list { display: grid; }
.portal-news-item { padding: 22px 2px; border-bottom: 1px solid var(--line); }
.portal-news-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.portal-news-item h3 { margin: 8px 0 5px; font-size: 1.15rem; }
.portal-news-item p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; color: var(--muted); font-size: .8rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.portal-empty { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; min-height: 150px; color: var(--muted); }
.portal-empty > span { color: var(--gold); font-size: 1.8rem; }
.portal-empty h3, .portal-empty p { margin: 0; }
.portal-empty h3 { color: var(--text); font-size: 1.15rem; }
.portal-empty p { margin-top: 5px; font-size: .8rem; }
.portal-status-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.portal-status-row strong { font-size: .76rem; }
.portal-status-row small { color: var(--muted); font-size: .61rem; text-transform: uppercase; }
.players-online { display: flex; align-items: center; gap: 14px; margin: 17px -22px -22px; padding: 17px 22px; background: rgba(228,196,135,.045); }
.players-online > span { color: var(--gold); font-size: 1.5rem; }
.players-online small, .players-online strong { display: block; }
.players-online small { color: var(--muted); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.players-online strong { color: var(--gold-bright); font-size: 1.25rem; }
.portal-ranking .compact-ranking li { grid-template-columns: 31px minmax(0,1fr) auto; gap: 9px; padding-block: 11px; }
.portal-ranking .compact-ranking strong { display: block; overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-ranking .compact-ranking small { overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-ranking .compact-ranking b { font-size: .58rem; }
.portal-ranking .rank-number { width: 27px; height: 27px; }
.portal-event { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.portal-event:last-child { border-bottom: 0; }
.portal-event time { color: var(--gold); font-size: .58rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.portal-event h3 { margin: 0; overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-event small { color: var(--muted); font-size: .57rem; }
.portal-dashboard + .section { padding-top: clamp(90px, 9vw, 125px); }

@media (max-width: 1160px) {
    .main-nav { gap: 15px; }
    .main-nav a { font-size: .68rem; }
    .header-actions .button { display: none; }
    .status-grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
    .status-title, .status-item { padding: 22px 17px; }
    .feature-grid, .product-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-dashboard { grid-template-columns: 265px minmax(0, 1fr); }
    .portal-right { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --header-height: 72px; }
    .shell, .narrow-shell, .narrow-content { width: min(calc(100% - 30px), var(--shell)); }
    .header-inner { gap: 12px; }
    .nav-toggle { display: block; margin-inline-start: auto; order: 2; }
    .main-nav { position: absolute; inset: var(--header-height) 15px auto; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; background: rgba(7, 10, 16, .98); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 14px; border-radius: 8px; }
    .main-nav a::after { display: none; }
    .main-nav a.active { background: rgba(228,196,135,.07); }
    .header-actions { order: 1; margin-inline-start: auto; }
    .hero { min-height: 800px; }
    .hero-backdrop { background-image: linear-gradient(90deg, rgba(5,8,13,.92), rgba(5,8,13,.45)), linear-gradient(0deg, var(--bg), transparent 35%), url('../images/hero-andira2.jpg'); background-position: 62% center; }
    .hero-grid { grid-template-columns: 1fr; gap: 45px; padding-block: 100px 130px; }
    .hero-copy { max-width: 680px; }
    .login-panel { max-width: 520px; }
    .status-grid { grid-template-columns: repeat(2, 1fr); }
    .status-title { grid-column: 1 / -1; }
    .status-title, .status-item { border-bottom: 1px solid var(--line); }
    .status-item:nth-last-child(-n+2) { border-bottom: 0; }
    .news-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
    .news-card.featured { grid-column: 1 / -1; }
    .split-grid, .download-grid, .support-grid { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .password-panel { grid-column: auto; }
    .requirements { position: static; }
    .footer-grid { grid-template-columns: 1.7fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2; }
    .brand-logo { width: 170px; }
    .portal-hero { min-height: 720px; }
    .portal-hero-backdrop { background-image: linear-gradient(90deg, rgba(5,7,11,.93), rgba(5,7,11,.42)), linear-gradient(0deg, var(--bg), transparent 38%), url('../images/hero-official-v2.jpg'); background-position: 57% center; }
    .portal-hero-content { padding-block: 110px 175px; }
    .portal-dashboard { grid-template-columns: 1fr; }
    .portal-left { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-right { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    :root { --header-height: 66px; --radius: 14px; }
    .shell, .narrow-shell, .narrow-content { width: min(calc(100% - 24px), var(--shell)); }
    .brand-logo { width: 145px; height: auto; }
    .footer-logo { width: 205px; height: auto; }
    .header-actions { margin-inline-start: 0; }
    .language-switcher summary { min-width: 42px; padding: 8px 9px; }
    .language-menu { position: fixed; top: 70px; inset-inline: 12px; width: auto; grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; }
    .hero-backdrop { background-position: 70% center; opacity: .82; }
    .hero-grid { padding-block: 125px 105px; }
    .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
    .hero-lead { font-size: .95rem; }
    .hero-actions .button { width: 100%; }
    .hero-trust { display: grid; gap: 8px; }
    .login-panel { padding: 20px; }
    .status-strip { margin-top: 0; }
    .status-grid { width: 100%; border-radius: 0; border-inline: 0; }
    .status-title { padding-inline: 12px; }
    .status-item { padding: 19px 12px; }
    .status-item small { font-size: .58rem; }
    .section { padding-block: 65px; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 27px; }
    .news-grid, .archive-grid, .feature-grid, .product-grid, .admin-grid { grid-template-columns: 1fr; }
    .news-card.featured { grid-column: auto; min-height: 280px; }
    .event-row { grid-template-columns: 1fr; gap: 8px; }
    .event-card { grid-template-columns: 1fr; gap: 16px; }
    .event-date { padding: 0 0 14px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
    .cta-banner { align-items: flex-start; flex-direction: column; margin-bottom: 70px; border-radius: 16px; }
    .cta-banner .button { width: 100%; }
    .page-hero { min-height: 350px; padding-top: calc(var(--header-height) + 75px); }
    .page-hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
    .panel, .form-card { padding: 21px; }
    .download-card { align-items: stretch; flex-direction: column; }
    .ticket-list > a { grid-template-columns: 1fr auto; }
    .ticket-list .status-chip { grid-column: 1 / -1; justify-self: start; }
    .message { width: 100%; }
    .pagination { align-items: stretch; flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .cookie-consent { inset: auto 12px 12px; align-items: stretch; flex-direction: column; width: auto; }
    .cookie-consent .button { width: 100%; }
    .portal-hero { min-height: 660px; }
    .portal-hero-backdrop { background-position: 66% center; }
    .portal-hero-content { padding-block: 105px 145px; }
    .portal-hero-content .eyebrow { margin-inline-start: 0; }
    .hero-official-logo { width: min(410px, 100%); margin: -6px 0 8px; }
    .portal-hero .hero-lead { font-size: .91rem; }
    .portal-dashboard { width: 100%; gap: 12px; margin-top: -82px; padding-inline: 12px; }
    .portal-left, .portal-right { grid-template-columns: 1fr; gap: 12px; }
    .portal-main { gap: 12px; }
    .portal-card { padding: 19px; }
    .spotlight-card { min-height: 380px; }
    .spotlight-overlay { inset: auto 20px 20px; }
    .spotlight-overlay h2 { font-size: 1.8rem; }
    .portal-quick-actions { grid-template-columns: 1fr; }
    .quick-action { min-height: 68px; }
    .content-tabs { margin-inline: -19px; padding-inline: 12px; overflow-x: auto; }
    .players-online { margin: 17px -19px -19px; padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
