/* =========================================================
   AeternumSRO "night" layout (preview) - dark page, gold frames,
   full-screen hero with server facts, counter and feature panel.
   Loaded after aeternum.css.
   ========================================================= */
:root {
    --ae-night: #0f0a18;
    --ae-night-2: #171026;
    --ae-cream: var(--ae-night);           /* page background becomes dark */
}
html, body { background: var(--ae-night) !important; }
body { background-image: radial-gradient(ellipse at 50% 120%, rgba(120,40,60,.18), transparent 60%) !important; }
.ae-stage { height: 100vh; min-height: 820px; }
.ae-stage::after { background: linear-gradient(to bottom, rgba(15,10,24,0), var(--ae-night) 85%) !important; }

/* sticky dark header bar */
.ae-header { position: sticky; top: 0; background: linear-gradient(180deg, rgba(10,6,16,.92), rgba(10,6,16,.75)); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(233,185,73,.25); }
.ae-nav { padding: 8px 0; }
.ae-brand-mark { width: 38px; height: 38px; }
.ae-header .btn-primary { background: linear-gradient(180deg, #f6d77a, #c7922c) !important; color: #2a1406 !important; border-color: #fff1c2 !important; }

/* headings on dark */
.ae-h2 { color: #fff4e2; }
.ae-h2 span { color: var(--ae-gold); }
.ae-h2::after { background: linear-gradient(90deg, rgba(233,185,73,.45), transparent); }
.ae-lead { color: var(--ae-muted); }

/* ---------- hero ---------- */
.ae-x-hero { min-height: calc(100vh - 70px); padding: 40px 0 110px; }
.ae-x-hero .container > * { max-width: 640px; }
.ae-x-chapter { display: flex; justify-content: space-between; gap: 20px; font-family: var(--ae-font-head); font-weight: 700; font-size: .78rem; letter-spacing: .35em; text-transform: uppercase; color: var(--ae-gold); text-shadow: 0 1px 4px rgba(0,0,0,.7); border-bottom: 1px solid rgba(233,185,73,.35); padding-bottom: 8px; }

.ae-x-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ae-x-facts li { background: linear-gradient(180deg, rgba(30,20,50,.82), rgba(14,9,26,.88)); border: 1px solid rgba(233,185,73,.35); border-radius: 6px; padding: 10px 8px; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.ae-x-facts b { display: block; font-family: var(--ae-font-head); font-weight: 900; color: var(--ae-gold-2); font-size: 1.15rem; line-height: 1.2; }
.ae-x-facts span { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #d9c6b4; margin-top: 2px; }

.ae-x-hero .ae-tagline { font-size: 1.12rem; margin: 22px 0 24px; }

.ae-x-cta { display: flex; flex-direction: column; gap: 12px; max-width: 420px !important; }
.ae-x-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 24px; font-family: var(--ae-font-head); font-weight: 900; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; font-size: 1rem; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); transition: transform .15s, filter .15s; }
.ae-x-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ae-x-btn.gold { background: linear-gradient(180deg, #fff1c2 0%, #f0c35a 45%, #b67b1f 100%); color: #2a1406; }
.ae-x-btn.dark { background: linear-gradient(180deg, #2c2150, #151030); color: #f6e6c2; box-shadow: inset 0 0 0 1px rgba(233,185,73,.55); }

.ae-x-counter { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 420px !important; }
.ae-x-count { text-align: center; background: linear-gradient(180deg, rgba(30,20,50,.85), rgba(14,9,26,.9)); border: 1px solid rgba(233,185,73,.35); border-radius: 6px; padding: 14px; }
.ae-x-count b { display: block; font-family: var(--ae-font-head); font-weight: 900; font-size: 2rem; color: #fff4e2; line-height: 1.1; }
.ae-x-count span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #d9c6b4; }
.ae-x-newest { background: rgba(14,9,26,.85); border: 1px solid rgba(233,185,73,.25); border-radius: 6px; padding: 10px 14px; }
.ae-x-newest .t { font-family: var(--ae-font-head); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ae-gold); }
.ae-x-newest .t em { font-family: var(--ae-font-body); font-style: normal; letter-spacing: 0; text-transform: none; color: #d9c6b4; }
.ae-x-names { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.ae-x-names a { color: #fff4e2; text-decoration: none; font-weight: 700; }
.ae-x-names a:hover { color: var(--ae-gold-2); }

.ae-x-scroll { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #f6e6c2; text-decoration: none; font-family: var(--ae-font-head); font-size: .7rem; letter-spacing: .35em; text-transform: uppercase; }
.ae-x-scroll i { width: 18px; height: 30px; border: 1px solid var(--ae-gold); border-radius: 10px; position: relative; }
.ae-x-scroll i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--ae-gold); animation: ae-x-wheel 1.6s infinite; }
@keyframes ae-x-wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* floating Play emblem */
.ae-x-portal { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.ae-x-portal img { width: 64px; height: 64px; filter: drop-shadow(0 0 12px rgba(233,185,73,.7)); animation: ae-breathe 3.2s ease-in-out infinite; }
.ae-x-portal span { font-family: var(--ae-font-head); font-weight: 900; font-size: .72rem; letter-spacing: .3em; color: #fff4e2; text-shadow: 0 1px 4px #000; }
.ae-x-portal:hover img { filter: drop-shadow(0 0 20px rgba(246,215,122,1)); }

/* ---------- feature panel ---------- */
.ae-x-panel { background: linear-gradient(180deg, var(--ae-night-2), #0c0814); border: 1px solid rgba(233,185,73,.3); border-radius: 10px; padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.ae-x-panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.ae-x-panel-head > i { font-size: 1.6rem; color: var(--ae-gold); margin-top: 4px; }
.ae-x-panel-head h2 { font-family: var(--ae-font-head); font-style: italic; font-weight: 700; color: #fff4e2; margin: 0; font-size: 1.7rem; letter-spacing: .02em; }
.ae-x-panel-head p { margin: 2px 0 0; color: #cdb9a8; }
.ae-x-feature { height: 100%; background: linear-gradient(180deg, rgba(40,28,66,.55), rgba(18,12,32,.7)); border: 1px solid rgba(233,185,73,.2); border-radius: 8px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.ae-x-feature:hover { border-color: rgba(233,185,73,.6); transform: translateY(-3px); }
.ae-x-feature .ic { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: rgba(163,36,47,.35); border: 1px solid rgba(233,185,73,.45); color: var(--ae-gold-2); margin-bottom: 10px; }
.ae-x-feature h3 { font-family: var(--ae-font-head); font-style: italic; font-weight: 700; font-size: 1.15rem; color: #fff4e2; margin: 0 0 4px; }
.ae-x-feature p { margin: 0; color: #cdb9a8; font-size: .98rem; }

/* old cards on the dark page */
.ae-frame { background: linear-gradient(180deg, var(--ae-night-2), #0c0814); box-shadow: 0 0 0 1px rgba(233,185,73,.25), 0 20px 50px rgba(0,0,0,.45); }
.ae-footer { background: linear-gradient(180deg, #120c1e, #08050e); }

.ae-news-card, .ae-podium-card { background: linear-gradient(180deg, var(--ae-night-2), #0c0814) !important; box-shadow: 0 0 0 1px rgba(233,185,73,.25), 0 16px 40px rgba(0,0,0,.45) !important; }
.ae-x-hero { min-height: min(calc(100vh - 70px), 960px); }
.ae-stage { height: min(100vh, 1030px); }
.ae-x-facts li { min-width: 0; }
@media (max-width: 575.98px) {
    .ae-x-hero .ae-logo-word { font-size: 2.7rem; }
    .ae-x-chapter span:last-child { display: none; }
    .ae-x-chapter { justify-content: center; }
    .ae-x-hero .ae-tagline { font-size: 1rem; }
    .ae-x-btn { letter-spacing: .14em; font-size: .9rem; }
}
@media (max-width: 991.98px) {
    .ae-x-hero .container > *, .ae-x-cta, .ae-x-counter { margin-left: auto; margin-right: auto; }
    .ae-x-facts { grid-template-columns: repeat(2, 1fr); }
    .ae-x-portal { right: 10px; top: auto; bottom: 18px; transform: none; }
    .ae-x-portal img { width: 50px; height: 50px; }
}
