:root {
    --portal-bg: #03080a;
    --portal-bg-2: #061012;
    --portal-panel: rgba(7, 18, 20, .94);
    --portal-panel-2: rgba(10, 26, 27, .96);
    --portal-panel-3: rgba(13, 34, 32, .94);
    --portal-line: rgba(194, 153, 83, .27);
    --portal-line-soft: rgba(255, 255, 255, .07);
    --portal-green: #24c39c;
    --portal-green-dark: #0b745f;
    --portal-gold: #c59a52;
    --portal-gold-bright: #e0bd78;
    --portal-text: #f0eee7;
    --portal-muted: #9aa9a5;
    --portal-danger: #d86f67;
    --portal-radius: 9px;
    --portal-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body.portal-body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--portal-text);
    background:
        radial-gradient(circle at 50% -10%, rgba(32, 129, 111, .18), transparent 34%),
        linear-gradient(180deg, #020607 0%, var(--portal-bg) 45%, #020607 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portal-body a { color: inherit; text-decoration: none; }
.portal-body button,
.portal-body input,
.portal-body textarea,
.portal-body select { font: inherit; }
.portal-body img { max-width: 100%; }
.portal-body [hidden] { display: none !important; }

.portal-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    border: 1px solid var(--portal-green);
    background: #061211;
    transform: translateY(-160%);
}
.portal-skip-link:focus { transform: none; }

.portal-shell { min-height: 100vh; overflow: hidden; }
.portal-container { width: min(1450px, calc(100% - 48px)); margin-inline: auto; }
.portal-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--portal-gold-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 74px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 12px clamp(20px, 3vw, 54px);
    border-bottom: 1px solid rgba(194, 153, 83, .24);
    background: rgba(3, 8, 10, .92);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px);
}
.portal-brand { display: grid; width: max-content; }
.portal-brand__name {
    color: #d8b06b;
    font: 600 clamp(22px, 2vw, 31px) Georgia, "Times New Roman", serif;
    letter-spacing: .075em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.portal-brand__studio {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -2px;
    color: #b7c0bd;
    font-size: 11px;
    letter-spacing: .06em;
}
.portal-brand__studio i {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--portal-green);
    box-shadow: 0 0 13px var(--portal-green);
}
.portal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
}
.portal-nav a {
    position: relative;
    padding: 10px 0;
    color: #d7dcda;
    font-size: 13px;
}
.portal-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 3px;
    height: 1px;
    background: var(--portal-green);
    transition: left .2s ease, right .2s ease;
}
.portal-nav a:hover::after,
.portal-nav a:focus-visible::after { left: 0; right: 0; }
.portal-header__actions { display: flex; align-items: center; gap: 12px; }
.portal-nav-toggle { display: none; }

.portal-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid rgba(194, 153, 83, .55);
    border-radius: 5px;
    color: #fffaf0;
    background: rgba(10, 19, 20, .86);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 8px 20px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.portal-button:hover:not(:disabled) { transform: translateY(-1px); }
.portal-button:focus-visible { outline: 2px solid var(--portal-green); outline-offset: 3px; }
.portal-button:disabled { opacity: .55; cursor: not-allowed; }
.portal-button--primary {
    border-color: rgba(41, 198, 157, .7);
    background: linear-gradient(180deg, rgba(20, 147, 119, .96), rgba(8, 86, 70, .96));
}
.portal-button--teal {
    border-color: rgba(56, 183, 181, .55);
    background: linear-gradient(180deg, rgba(16, 95, 98, .88), rgba(7, 53, 57, .92));
}
.portal-button--gold {
    border-color: rgba(213, 170, 89, .74);
    background: linear-gradient(180deg, rgba(117, 84, 34, .95), rgba(63, 43, 16, .96));
}
.portal-button--ghost { background: rgba(5, 10, 12, .78); }
.portal-button--large { min-height: 50px; padding-inline: 23px; font-weight: 700; }
.portal-button__crest {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    transform: rotate(45deg);
    font: 700 12px Georgia, serif;
}

.portal-hero {
    position: relative;
    min-height: 520px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(194, 153, 83, .2);
    background: #061012;
}
.portal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(2, 7, 8, .97) 0%, rgba(2, 7, 8, .83) 28%, rgba(2, 7, 8, .25) 57%, rgba(2, 7, 8, .52) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .24), transparent 48%, rgba(0, 0, 0, .66));
    pointer-events: none;
}
.portal-hero__art { position: absolute; inset: 0; overflow: hidden; }
.portal-hero__sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 61% 36%, rgba(73, 226, 192, .25), transparent 10%),
        radial-gradient(circle at 74% 15%, rgba(72, 136, 166, .22), transparent 25%),
        radial-gradient(circle at 45% 30%, rgba(99, 131, 157, .15), transparent 31%),
        linear-gradient(180deg, #101d25 0%, #0b171b 44%, #071012 100%);
}
.portal-hero__sky::before,
.portal-hero__sky::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .72;
}
.portal-hero__sky::before {
    background:
        linear-gradient(155deg, transparent 0 44%, rgba(197, 229, 230, .1) 45% 45.5%, transparent 46%) 0 0 / 170px 130px,
        radial-gradient(ellipse at 15% 60%, rgba(255,255,255,.08), transparent 26%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.06), transparent 30%);
}
.portal-hero__sky::after {
    background: repeating-linear-gradient(168deg, transparent 0 34px, rgba(255, 255, 255, .025) 35px 36px, transparent 37px 80px);
}
.portal-hero__city {
    position: absolute;
    bottom: 0;
    width: 55%;
    height: 64%;
    opacity: .86;
    filter: drop-shadow(0 -8px 24px rgba(0, 0, 0, .42));
}
.portal-hero__city--left {
    left: 22%;
    clip-path: polygon(0 100%, 0 66%, 5% 66%, 7% 37%, 10% 65%, 14% 65%, 17% 28%, 21% 62%, 25% 62%, 27% 43%, 30% 63%, 34% 63%, 36% 21%, 39% 61%, 45% 61%, 47% 35%, 51% 64%, 57% 64%, 59% 18%, 63% 64%, 67% 64%, 70% 41%, 73% 68%, 80% 68%, 82% 27%, 85% 67%, 91% 67%, 94% 49%, 97% 67%, 100% 67%, 100% 100%);
    background: linear-gradient(180deg, rgba(22, 42, 46, .75), rgba(4, 10, 11, .98));
}
.portal-hero__city--right {
    right: -4%;
    width: 43%;
    height: 72%;
    clip-path: polygon(0 100%, 0 63%, 6% 63%, 9% 35%, 13% 61%, 18% 61%, 21% 15%, 24% 62%, 29% 62%, 32% 44%, 35% 63%, 41% 63%, 45% 22%, 49% 65%, 56% 65%, 59% 40%, 62% 68%, 70% 68%, 73% 12%, 77% 69%, 84% 69%, 88% 43%, 91% 67%, 96% 67%, 100% 62%, 100% 100%);
    background: linear-gradient(180deg, rgba(29, 44, 50, .73), rgba(3, 9, 11, .99));
}
.portal-hero__gate {
    position: absolute;
    top: 9%;
    left: 61%;
    width: clamp(210px, 23vw, 360px);
    aspect-ratio: .74;
    transform: translateX(-50%);
}
.portal-hero__gate-ring {
    position: absolute;
    left: 50%;
    border: 2px solid rgba(58, 210, 176, .45);
    border-radius: 48% 48% 42% 42% / 40% 40% 56% 56%;
    transform: translateX(-50%);
    box-shadow: 0 0 30px rgba(44, 210, 177, .16), inset 0 0 24px rgba(44, 210, 177, .12);
}
.portal-hero__gate-ring--outer { inset: 0 2%; border-color: rgba(194, 153, 83, .42); }
.portal-hero__gate-ring--middle { inset: 6% 10%; }
.portal-hero__gate-ring--inner { inset: 13% 19%; border-color: rgba(103, 231, 207, .52); }
.portal-hero__gate-core {
    position: absolute;
    inset: 17% 24% 9%;
    border-radius: 50% 50% 42% 42% / 40% 40% 58% 58%;
    background:
        radial-gradient(ellipse at 50% 70%, rgba(225, 255, 248, .9), rgba(56, 215, 184, .38) 34%, rgba(13, 63, 60, .35) 57%, rgba(3, 9, 10, .5) 72%),
        repeating-linear-gradient(102deg, transparent 0 20px, rgba(200, 255, 245, .08) 21px 22px);
    box-shadow: 0 0 70px rgba(38, 217, 177, .32);
}
.portal-hero__sentinel {
    position: absolute;
    right: 12%;
    bottom: 8%;
    width: 98px;
    height: 280px;
    opacity: .72;
    clip-path: polygon(43% 0, 57% 0, 63% 15%, 70% 24%, 64% 40%, 69% 60%, 58% 100%, 42% 100%, 31% 60%, 36% 40%, 30% 24%, 37% 15%);
    background: linear-gradient(90deg, rgba(2, 8, 8, .96), rgba(27, 79, 70, .9), rgba(2, 8, 8, .96));
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .5));
}
.portal-hero__inner { position: relative; z-index: 3; padding-block: 66px 70px; }
.portal-hero__copy { width: min(690px, 52%); }
.portal-hero__copy h1 {
    max-width: 760px;
    margin: 14px 0 15px;
    color: #f1eee6;
    font: 500 clamp(48px, 5.8vw, 86px) / .96 Georgia, "Times New Roman", serif;
    letter-spacing: -.035em;
    text-shadow: 0 5px 26px rgba(0, 0, 0, .52);
}
.portal-hero__copy > p {
    max-width: 650px;
    margin: 0;
    color: #d4d9d6;
    font-size: clamp(16px, 1.55vw, 21px);
    line-height: 1.5;
}
.portal-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 29px; }
.portal-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; color: #879b96; font-size: 12px; }
.portal-hero__meta span { position: relative; }
.portal-hero__meta span + span::before { content: '•'; position: absolute; left: -15px; color: var(--portal-gold); }

.portal-status { border-bottom: 1px solid var(--portal-line); background: rgba(5, 16, 17, .92); }
.portal-status__inner { min-height: 54px; display: flex; align-items: center; gap: 24px; }
.portal-status__item { display: inline-flex; align-items: center; gap: 6px; color: #c8d1ce; font-size: 13px; }
.portal-status__item b { color: #e5eae8; font-weight: 600; }
.portal-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--portal-gold); box-shadow: 0 0 11px rgba(197, 154, 82, .45); }
.portal-status__item--development .portal-status__dot { background: var(--portal-green); box-shadow: 0 0 12px rgba(36, 195, 156, .48); }
.portal-status__inner > a { margin-left: auto; color: var(--portal-gold-bright); font-size: 13px; }

.portal-account-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-block: 15px;
}
.portal-account-summary article {
    min-width: 0;
    min-height: 92px;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background: linear-gradient(135deg, rgba(11, 31, 31, .94), rgba(5, 14, 16, .96));
    box-shadow: var(--portal-shadow);
}
.portal-account-summary h2 { margin: 0; font: 500 20px Georgia, serif; }
.portal-account-summary p { margin: 5px 0 0; color: var(--portal-muted); font-size: 12px; line-height: 1.4; }
.portal-account-summary article > i { color: #d7dcd9; font-size: 30px; font-style: normal; }
.portal-summary-icon {
    width: 51px;
    height: 51px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(40, 205, 164, .43);
    border-radius: 50%;
    color: #5de0bd;
    background: radial-gradient(circle, rgba(42, 205, 164, .16), transparent 70%);
    font-size: 25px;
}
.portal-summary-icon--gold { color: #e1bb70; border-color: rgba(197, 154, 82, .46); background: radial-gradient(circle, rgba(197, 154, 82, .15), transparent 70%); }

.portal-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(310px, .95fr);
    gap: 14px;
    padding-bottom: 16px;
}
.portal-dashboard-main,
.portal-dashboard-side { min-width: 0; display: grid; gap: 14px; align-content: start; }
.portal-panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background: linear-gradient(180deg, rgba(9, 24, 25, .96), rgba(5, 14, 16, .98));
    box-shadow: var(--portal-shadow);
}
.portal-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.portal-section-heading h2 { margin: 4px 0 0; font: 500 clamp(23px, 2.2vw, 31px) Georgia, serif; }
.portal-section-heading > a { color: var(--portal-gold-bright); font-size: 12px; }
.portal-section-heading--compact { align-items: center; margin-bottom: 12px; }
.portal-section-heading--compact h2 { margin: 0; font-size: 23px; }
.portal-section-heading--ornament { align-items: center; justify-content: center; text-align: center; }
.portal-section-heading--ornament h2 { flex: 0 0 auto; }
.portal-section-heading--ornament > span { width: min(26%, 240px); height: 1px; background: linear-gradient(90deg, transparent, var(--portal-gold), transparent); }

.portal-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-news-card { min-width: 0; overflow: hidden; border: 1px solid rgba(194, 153, 83, .22); border-radius: 7px; background: rgba(3, 11, 12, .7); }
.portal-news-card__image { display: block; aspect-ratio: 16 / 8.8; overflow: hidden; background: linear-gradient(135deg, #153b38, #071214); }
.portal-news-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.portal-news-card__image:hover img { transform: scale(1.03); }
.portal-news-card__image.is-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(36, 195, 156, .22), transparent 35%), linear-gradient(145deg, #102926, #071214); }
.portal-news-card__image.is-placeholder span { color: rgba(229, 240, 236, .38); font: 700 14px Georgia, serif; letter-spacing: .15em; }
.portal-news-card time { display: block; margin: 12px 13px 0; color: #839590; font-size: 10px; }
.portal-news-card h3 { margin: 8px 13px 0; font: 500 17px / 1.28 Georgia, serif; }
.portal-news-card p { margin: 9px 13px 14px; color: #aab7b3; font-size: 12px; line-height: 1.55; }

.portal-update-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.portal-update-list li { display: grid; grid-template-columns: 115px 82px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--portal-line-soft); }
.portal-update-list time { color: #859690; font-size: 11px; }
.portal-update-list a { color: #c9d2cf; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-update-list a:hover { color: var(--portal-green); }
.portal-update-badge { padding: 3px 6px; border: 1px solid rgba(36, 195, 156, .28); border-radius: 999px; color: #60d7b9; font-size: 8px; font-weight: 800; text-align: center; letter-spacing: .05em; }

.portal-dev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-dev-card { min-width: 0; overflow: hidden; border: 1px solid rgba(194, 153, 83, .21); border-radius: 7px; background: rgba(3, 11, 12, .72); }
.portal-dev-card__image { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #071214; }
.portal-dev-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.portal-dev-card__image.is-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(197, 154, 82, .18), transparent 35%), linear-gradient(145deg, #17231f, #081112); }
.portal-dev-card__image.is-placeholder span { color: rgba(222, 203, 163, .43); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.portal-dev-card > div { padding: 12px; }
.portal-dev-card h3 { margin: 0; font: 500 17px Georgia, serif; }
.portal-dev-card p { margin: 7px 0; color: #9dacaa; font-size: 12px; line-height: 1.5; }
.portal-dev-card div > a { color: var(--portal-green); font-size: 11px; }
.portal-dev-card--concept { display: grid; grid-template-columns: 70px 1fr; align-items: center; min-height: 150px; padding: 12px; }
.portal-dev-card--concept > div { padding: 0; }
.portal-dev-card__symbol { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid rgba(197, 154, 82, .42); border-radius: 50%; color: var(--portal-gold-bright); font-size: 25px; }

.portal-quick-links { display: grid; gap: 7px; }
.portal-quick-links button {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(194, 153, 83, .25);
    border-radius: 5px;
    color: #d9dfdc;
    background: rgba(4, 13, 14, .7);
    text-align: left;
}
.portal-quick-links button:disabled { opacity: .68; }
.portal-quick-links button > span { color: var(--portal-gold-bright); }
.portal-quick-links button > i { color: var(--portal-gold-bright); font-style: normal; font-size: 22px; }
.portal-panel__note { margin: 10px 0 0; color: #71847e; font-size: 11px; }

.portal-world-list { display: grid; gap: 9px; }
.portal-world-list article { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 11px; padding: 10px; border: 1px solid rgba(36, 195, 156, .25); border-radius: 7px; background: rgba(6, 24, 23, .6); }
.portal-world-list article.is-muted { opacity: .68; border-color: rgba(194, 153, 83, .22); }
.portal-world-emblem { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(36, 195, 156, .45); transform: rotate(45deg); color: var(--portal-green); font: 700 22px Georgia, serif; }
.portal-world-list h3 { margin: 0; font: 500 16px Georgia, serif; }
.portal-world-list h3 small { margin-left: 6px; padding: 2px 5px; border-radius: 999px; color: #65ddbe; background: rgba(36, 195, 156, .1); font: 800 8px Inter, sans-serif; }
.portal-world-list p { margin: 4px 0; color: #a9b7b3; font-size: 11px; }
.portal-world-list b { color: #6e827c; font-size: 10px; font-weight: 500; }

.portal-notice-list { display: grid; gap: 0; }
.portal-notice-list article { display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--portal-line-soft); }
.portal-notice-list article > span { color: var(--portal-gold); }
.portal-notice-list b { display: block; font-size: 12px; }
.portal-notice-list p { margin: 4px 0 0; color: #899b96; font-size: 11px; line-height: 1.45; }

.portal-roadmap > h2 { margin: 5px 0 14px; font: 500 24px Georgia, serif; }
.portal-roadmap ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.portal-roadmap li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; opacity: .62; }
.portal-roadmap li.is-active { opacity: 1; }
.portal-roadmap li > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(194, 153, 83, .36); border-radius: 50%; color: var(--portal-gold-bright); font-size: 10px; }
.portal-roadmap b, .portal-roadmap small { display: block; }
.portal-roadmap b { font-size: 12px; }
.portal-roadmap small { margin-top: 2px; color: #849690; font-size: 10px; }

.portal-feature-section { padding-block: 8px 16px; }
.portal-feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.portal-feature-grid article { min-height: 154px; display: grid; justify-items: center; align-content: center; padding: 15px; text-align: center; border: 1px solid var(--portal-line); border-radius: 7px; background: linear-gradient(180deg, rgba(10, 27, 27, .94), rgba(5, 14, 16, .96)); }
.portal-feature-grid article > span { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(194, 153, 83, .42); border-radius: 50%; color: var(--portal-gold-bright); font-size: 25px; }
.portal-feature-grid h3 { margin: 11px 0 0; font: 500 16px Georgia, serif; }
.portal-feature-grid p { margin: 7px 0 0; color: #8e9f9a; font-size: 11px; line-height: 1.42; }

.portal-character-preview { padding-bottom: 14px; }
.portal-character-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-character-grid article { min-height: 128px; display: grid; grid-template-columns: 105px 1fr; align-items: center; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 7px; background: linear-gradient(135deg, rgba(10, 31, 30, .94), rgba(5, 15, 17, .96)); }
.portal-character-card__portrait { align-self: stretch; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(36, 195, 156, .24), transparent 35%), linear-gradient(145deg, #132a28, #071113); color: rgba(220, 241, 235, .72); font: 700 48px Georgia, serif; }
.portal-character-grid article > div { padding: 14px; }
.portal-character-grid h3 { margin: 0; font: 500 20px Georgia, serif; }
.portal-character-grid p { margin: 6px 0; color: #a7b5b1; font-size: 12px; line-height: 1.45; }
.portal-character-grid small { color: var(--portal-green); }

.portal-launcher { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; margin-bottom: 15px; padding: 16px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: linear-gradient(135deg, rgba(9, 27, 27, .96), rgba(4, 13, 15, .98)); box-shadow: var(--portal-shadow); }
.portal-launcher__art { height: 110px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(36, 195, 156, .26); border-radius: 6px; background: radial-gradient(circle at 55% 45%, rgba(36, 195, 156, .32), transparent 24%), linear-gradient(145deg, #102d2b, #071214); }
.portal-launcher__art span { width: 62px; height: 62px; display: grid; place-items: center; border: 2px solid rgba(78, 223, 188, .66); transform: rotate(45deg); color: #9ef2dd; font: 700 30px Georgia, serif; box-shadow: 0 0 34px rgba(36, 195, 156, .2); }
.portal-launcher__copy h2 { margin: 4px 0 6px; font: 500 27px Georgia, serif; }
.portal-launcher__copy p { margin: 0; color: #a2b0ac; line-height: 1.5; }
.portal-launcher__copy > div { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; color: #748983; font-size: 10px; }

.portal-alpha { margin-top: 4px; border-block: 1px solid rgba(36, 195, 156, .42); background: linear-gradient(90deg, rgba(8, 54, 47, .88), rgba(10, 78, 63, .92), rgba(8, 54, 47, .88)); box-shadow: inset 0 0 60px rgba(36, 195, 156, .08); }
.portal-alpha__inner { min-height: 120px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-block: 16px; }
.portal-alpha__emblem { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid rgba(226, 196, 128, .68); transform: rotate(45deg); color: #f0d192; font: 700 28px Georgia, serif; }
.portal-alpha h2 { margin: 4px 0 4px; font: 500 clamp(24px, 2.3vw, 34px) Georgia, serif; }
.portal-alpha p { margin: 0; color: #b8c8c3; line-height: 1.5; }

.portal-footer { border-top: 1px solid rgba(194, 153, 83, .25); background: rgba(2, 7, 8, .98); }
.portal-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.25fr; gap: 28px; padding-block: 28px 22px; }
.portal-footer h2 { margin: 0 0 10px; color: #e3d4b4; font: 500 14px Georgia, serif; }
.portal-footer a,
.portal-footer span { display: block; margin-top: 6px; color: #8d9d98; font-size: 11px; }
.portal-footer a:hover { color: var(--portal-green); }
.portal-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-socials a { margin: 0; padding: 7px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; color: #d1d9d6; }
.portal-footer__bottom { display: flex; justify-content: space-between; gap: 18px; padding-block: 12px 18px; border-top: 1px solid rgba(255,255,255,.05); }
.portal-footer__bottom span { margin: 0; }
.portal-empty { padding: 28px 16px; border: 1px dashed rgba(194, 153, 83, .24); border-radius: 6px; color: #81918d; text-align: center; }

@media (max-width: 1280px) {
    .portal-header { grid-template-columns: 220px minmax(0, 1fr) auto; gap: 16px; }
    .portal-nav { gap: 18px; }
    .portal-header__actions .portal-button { padding-inline: 13px; font-size: 12px; }
    .portal-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .portal-launcher { grid-template-columns: 210px minmax(0, 1fr) auto; }
    .portal-launcher > .portal-button:last-child { grid-column: 3; }
}

@media (max-width: 1080px) {
    .portal-header { grid-template-columns: minmax(0, 1fr) auto auto; }
    .portal-nav-toggle { display: grid; width: 44px; height: 44px; place-items: center; gap: 4px; padding: 11px; border: 1px solid rgba(194, 153, 83, .38); border-radius: 5px; background: rgba(6, 16, 18, .9); }
    .portal-nav-toggle > span:not(.sr-only) { width: 100%; height: 1px; display: block; background: #d6dedb; }
    .portal-nav {
        position: fixed;
        top: 74px;
        left: 18px;
        right: 18px;
        z-index: 1001;
        display: grid;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--portal-line);
        border-radius: 8px;
        background: rgba(3, 10, 12, .98);
        box-shadow: 0 24px 70px rgba(0,0,0,.5);
        transform: translateY(-18px);
        opacity: 0;
        pointer-events: none;
    }
    .portal-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .portal-nav a { padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
    .portal-hero__copy { width: 62%; }
    .portal-account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-dashboard-grid { grid-template-columns: 1fr; }
    .portal-dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-dashboard-side > section:last-child { grid-column: 1 / -1; }
    .portal-launcher { grid-template-columns: 200px minmax(0, 1fr); }
    .portal-launcher .portal-button { width: 100%; }
    .portal-launcher > .portal-button:last-child { grid-column: auto; }
    .portal-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .portal-container { width: min(100% - 24px, 680px); }
    .portal-header { min-height: 66px; grid-template-columns: minmax(0, 1fr) auto; padding-inline: 12px; }
    .portal-header__actions { display: none; }
    .portal-brand__name { font-size: 24px; }
    .portal-brand__studio { font-size: 9px; }
    .portal-nav { top: 66px; left: 10px; right: 10px; }
    .portal-hero { min-height: 590px; }
    .portal-hero::before { background: linear-gradient(180deg, rgba(2, 7, 8, .48), rgba(2, 7, 8, .83) 54%, rgba(2, 7, 8, .97)); }
    .portal-hero__inner { display: grid; align-items: end; min-height: 590px; padding-block: 260px 30px; }
    .portal-hero__copy { width: 100%; }
    .portal-hero__copy h1 { font-size: clamp(43px, 13vw, 64px); }
    .portal-hero__copy > p { font-size: 15px; }
    .portal-hero__gate { top: 5%; left: 53%; width: 210px; }
    .portal-hero__sentinel { right: 6%; bottom: 33%; height: 190px; width: 68px; }
    .portal-hero__city--left { left: 0; width: 85%; }
    .portal-hero__city--right { right: -20%; width: 78%; }
    .portal-hero__actions { display: grid; }
    .portal-button--large { width: 100%; }
    .portal-status__inner { align-items: stretch; flex-direction: column; gap: 0; padding-block: 7px; }
    .portal-status__item { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
    .portal-status__inner > a { margin: 8px 0 2px; }
    .portal-account-summary { grid-template-columns: 1fr; }
    .portal-news-grid,
    .portal-dev-grid,
    .portal-character-grid { grid-template-columns: 1fr; }
    .portal-update-list li { grid-template-columns: 1fr auto; }
    .portal-update-list li a { grid-column: 1 / -1; white-space: normal; }
    .portal-dashboard-side { grid-template-columns: 1fr; }
    .portal-dashboard-side > section:last-child { grid-column: auto; }
    .portal-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-launcher { grid-template-columns: 1fr; }
    .portal-launcher__art { height: 140px; }
    .portal-alpha__inner { grid-template-columns: 56px 1fr; }
    .portal-alpha__inner > .portal-button { grid-column: 1 / -1; }
    .portal-alpha__emblem { width: 50px; height: 50px; font-size: 22px; }
    .portal-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .portal-container { width: calc(100% - 18px); }
    .portal-hero__copy h1 { font-size: 42px; }
    .portal-hero__meta { display: grid; gap: 5px; }
    .portal-hero__meta span + span::before { display: none; }
    .portal-account-summary article { grid-template-columns: 49px minmax(0, 1fr); }
    .portal-account-summary article > i { display: none; }
    .portal-section-heading { align-items: flex-start; flex-direction: column; }
    .portal-section-heading--compact { flex-direction: row; align-items: center; }
    .portal-section-heading--ornament { align-items: center; flex-direction: row; }
    .portal-section-heading--ornament > span { display: none; }
    .portal-feature-grid { grid-template-columns: 1fr; }
    .portal-feature-grid article { min-height: 130px; }
    .portal-character-grid article { grid-template-columns: 82px 1fr; }
    .portal-footer__grid { grid-template-columns: 1fr; }
    .portal-footer__bottom { align-items: flex-start; flex-direction: column; }
}


/* Live GameServer heartbeat */
.portal-live-status {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(194, 153, 83, .28);
    border-radius: 999px;
    color: #c8d1ce;
    background: rgba(3, 11, 12, .76);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 8px 28px rgba(0,0,0,.2);
    backdrop-filter: blur(10px);
    font-size: 11px;
}
.portal-live-status__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--portal-gold);
    box-shadow: 0 0 12px rgba(197,154,82,.45);
}
.portal-live-status__world { color: #e8ecea; font-weight: 700; letter-spacing: .04em; }
.portal-live-status b { font-size: 10px; letter-spacing: .1em; }
.portal-live-status small { color: #8da09a; font-size: 10px; }
.portal-live-status--online { border-color: rgba(36,195,156,.38); }
.portal-live-status--online .portal-live-status__dot,
.portal-status__item--online .portal-status__dot {
    background: var(--portal-green);
    box-shadow: 0 0 14px rgba(36,195,156,.62);
}
.portal-live-status--online b { color: #67dfc0; }
.portal-live-status--degraded { border-color: rgba(224,189,120,.42); }
.portal-live-status--degraded .portal-live-status__dot,
.portal-status__item--degraded .portal-status__dot {
    background: var(--portal-gold-bright);
    box-shadow: 0 0 13px rgba(224,189,120,.52);
}
.portal-live-status--degraded b { color: var(--portal-gold-bright); }
.portal-live-status--offline { border-color: rgba(216,111,103,.38); }
.portal-live-status--offline .portal-live-status__dot,
.portal-status__item--offline .portal-status__dot {
    background: var(--portal-danger);
    box-shadow: 0 0 13px rgba(216,111,103,.5);
}
.portal-live-status--offline b { color: #e58c84; }
.portal-live-status--unknown .portal-live-status__dot,
.portal-status__item--unknown .portal-status__dot {
    background: #7f918b;
    box-shadow: 0 0 10px rgba(127,145,139,.32);
}
.portal-live-status--unknown b { color: #aebbb7; }

@media (max-width: 780px) {
    .portal-live-status { width: 100%; flex-wrap: wrap; border-radius: 7px; }
    .portal-live-status small { flex-basis: 100%; padding-left: 17px; }
}

