:root {
    --bg: #02070c;
    --surface: #07111a;
    --surface2: #0a151f;
    --line: #6e4a16;
    --line-soft: rgba(191,132,38,.42);
    --gold: #f1b92f;
    --gold2: #ffd76a;
    --text: #f7f4ec;
    --muted: #b9c0c7;
    --green: #68ef48;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: radial-gradient(circle at 50% 0,#0b1a27 0,#030910 48%,#02070c 100%);
    color: var(--text);
    font-family: Inter,Arial,sans-serif;
    min-width: 320px
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

.site-header {
    height: 82px;
    display: grid;
    grid-template-columns: minmax(310px,1fr) auto minmax(180px,1fr);
    align-items: center;
    padding: 0 3.2vw;
    background: linear-gradient(180deg,rgba(1,7,12,.92),rgba(1,7,12,.72));
    border-bottom: 1px solid rgba(212,148,35,.26);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(4px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content
}

.brand-emblem {
    width: 58px;
    height: 58px;
    border: 2px solid #b87a13;
    display: grid;
    place-items: center;
    position: relative;
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px rgba(184,122,19,.12)
}

.brand-emblem:before,.brand-emblem:after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255,210,94,.42)
}

.brand-emblem span {
    transform: rotate(-45deg);
    font-family: Cinzel,serif;
    font-size: 23px;
    color: var(--gold2)
}

.brand-copy {
    display: flex;
    flex-direction: column
}

.brand-copy strong {
    font-family: Cinzel,serif;
    font-size: 22px;
    letter-spacing: .03em
}

.brand-copy small {
    font-size: 10px;
    letter-spacing: .27em;
    text-transform: uppercase;
    color: #cbb17a;
    margin-top: 4px
}

.main-nav {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 34px
}

.main-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #e5e7e9
}

.main-nav a:hover,.main-nav a.active {
    color: var(--gold2)
}

.main-nav a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold)
}

.main-nav a.active:before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--gold)
}

.login-button {
    justify-self: end;
    border: 1px solid #9e6813;
    color: var(--gold2);
    padding: 13px 24px;
    text-transform: uppercase;
    font-family: Cinzel,serif;
    font-weight: 700;
    letter-spacing: .05em
}

.login-button span {
    margin-right: 9px
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 26px
}

.hero {
    height: 600px;
    background-color: #07131d;
    background-image: url('../images/hero-lich-king-clean.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    border-bottom: 1px solid rgba(217,153,40,.65);
    overflow: hidden
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(0,5,10,.58) 0%,rgba(0,5,10,.34) 30%,rgba(0,5,10,.08) 62%,rgba(0,5,10,0) 100%),linear-gradient(0deg,rgba(1,6,10,.28),transparent 38%)
}

.hero-inner {
    width: min(1640px,calc(100% - 7vw));
    height: 100%;
    margin: auto;
    padding-top: 82px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center
}

.hero-copy {
    width: 780px;
    margin-top: -4px
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .22em
}

.hero h1 {
    font-family: Cinzel,serif;
    text-transform: uppercase;
    margin: 0;
    line-height: .95;
    letter-spacing: -.035em;
    text-shadow: 0 2px 20px #000
}

.hero h1 span,.hero h1 em {
    display: block;
    font-style: normal
}

.hero h1 span {
    font-size: 64px;
    white-space: nowrap
}

.hero h1 em {
    font-size: 64px;
    color: #ffd164;
    margin-top: 10px;
    white-space: nowrap
}

.hero-description {
    max-width: 620px;
    margin: 22px 0 24px;
    font-size: 15px;
    line-height: 1.75;
    color: #e2e6ea
}

.hero-actions {
    display: flex;
    gap: 18px
}

.button {
    min-width: 255px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    text-transform: uppercase;
    font-family: Cinzel,serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
    transition: .2s
}

.button.primary {
    color: #191208;
    background: linear-gradient(#f8d36b,#d89a1f);
    border: 1px solid #ffd978;
    box-shadow: inset 0 0 0 3px rgba(111,67,7,.24),0 7px 24px rgba(216,154,31,.2)
}

.button.secondary {
    background: linear-gradient(180deg,rgba(17,31,43,.95),rgba(5,13,20,.95));
    border: 1px solid #607282;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.55)
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08)
}

.button-icon {
    font-size: 24px
}

.realm-status-card {
    width: 650px;
    height: 75px;
    margin-top: 25px;
    display: grid;
    grid-template-columns: 28px 125px 1px 120px 1px 1fr;
    align-items: center;
    gap: 15px;
    padding: 0 22px;
    background: rgba(2,10,16,.82);
    border: 1px solid rgba(87,107,120,.35);
    box-shadow: 0 8px 35px rgba(0,0,0,.3)
}

.realm-status-card>div {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.realm-status-card span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #8f9aa4
}

.realm-status-card strong {
    font-size: 13px
}

.realm-status-card i {
    width: 1px;
    height: 40px;
    background: #31404a
}

.status-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 13px currentColor
}

.status-led.online,.status-text {
    color: var(--green)
}

.status-led.online {
    background: var(--green)
}

.status-led.offline {
    background: #e95353;
    color: #e95353
}

.client-cell strong {
    white-space: nowrap;
    font-size: 12px
}

.rate-strip {
    width: min(1640px,calc(100% - 7vw));
    margin: 36px auto 16px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    background: linear-gradient(180deg,rgba(7,17,25,.98),rgba(2,9,15,.98));
    border: 1px solid var(--line-soft);
    box-shadow: 0 14px 35px rgba(0,0,0,.25)
}

.rate-item {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative
}

.rate-item:not(:last-child):after {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 52px;
    background: rgba(179,125,32,.28)
}

.rate-item span {
    display: block;
    color: var(--gold2);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .04em
}

.rate-item strong {
    display: block;
    font-family: Cinzel,serif;
    color: var(--gold2);
    font-size: 25px;
    margin-top: 6px
}

.rate-icon {
    width: 54px;
    height: 54px;
    border: 2px solid #d79b28;
    display: grid;
    place-items: center;
    position: relative;
    color: #e4aa37
}

.rate-icon:before {
    font-family: Cinzel,serif;
    font-weight: 700;
    font-size: 19px
}

.rate-icon.xp {
    border-radius: 50%
}

.rate-icon.xp:before {
    content: "XP"
}

.rate-icon.quest {
    border-radius: 50%
}

.rate-icon.quest:before {
    content: "!";
    font-size: 30px
}

.rate-icon.drop:before {
    content: "▣";
    font-size: 31px
}

.rate-icon.rep:before {
    content: "⚑";
    font-size: 28px
}

.rate-icon.prof:before {
    content: "⚒";
    font-size: 27px
}

.dashboard-grid {
    width: min(1640px,calc(100% - 7vw));
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: 1.02fr 1.02fr 1.02fr;
    gap: 20px
}

.panel {
    min-height: 305px;
    padding: 20px 25px 18px;
    background: linear-gradient(145deg,rgba(7,17,25,.98),rgba(3,10,16,.98));
    border: 1px solid var(--line-soft);
    box-shadow: 0 12px 40px rgba(0,0,0,.2)
}

.panel h2 {
    font-family: Cinzel,serif;
    text-transform: uppercase;
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px
}

.panel-icon {
    color: var(--gold);
    font-family: Inter,sans-serif
}

.panel-line {
    height: 1px;
    background: linear-gradient(90deg,rgba(113,132,144,.38),transparent);
    margin: 12px 0 14px
}

.news-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 0 0 13px;
    margin-bottom: 13px;
    border-bottom: 1px solid rgba(87,102,112,.18)
}

.news-row img {
    width: 90px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #32526b;
    border-radius: 3px
}

.news-row h3 {
    font-size: 14px;
    margin: 2px 0 7px
}

.news-row p {
    font-size: 12px;
    line-height: 1.55;
    color: #c5ccd2;
    margin: 0
}

.news-row time {
    display: block;
    font-size: 11px;
    color: var(--gold);
    margin-top: 6px
}

.panel-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0 0 106px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em
}

.panel-link span {
    font-size: 18px
}

.connect-panel ol {
    padding-left: 24px;
    margin: 0
}

.connect-panel li {
    padding-left: 5px;
    margin: 0 0 9px;
    font-size: 12px;
    color: #e3e7ea
}

.realmlist-row {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 12px;
    margin: 13px 0 17px 24px
}

.realmlist-row code {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #02080d;
    border: 1px solid rgba(190,130,28,.5);
    color: #f5b82e;
    font-size: 13px
}

.realmlist-row button {
    background: #07111a;
    border: 1px solid #b47917;
    color: #f4bd3a;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer
}

.panel-note {
    margin: 33px 0 0;
    font-size: 12px;
    color: #c7ced4
}

.panel-note a {
    color: var(--gold)
}

.stats-panel dl {
    margin: 0
}

.stats-panel dl div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(108,124,134,.2)
}

.stats-panel dt {
    font-size: 12px;
    color: #d8dde1
}

.stats-panel dd {
    margin: 0;
    font-size: 16px
}

.online-number {
    color: var(--green)
}

.stats-panel .panel-link {
    margin: 28px 0 0
}


/* Realm story */
.realm-story {
    width: min(1640px, calc(100% - 7vw));
    min-height: 340px;
    margin: 0 auto 42px;
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(500px, 1.45fr);
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(5, 15, 23, 0.98), rgba(2, 8, 13, 0.96));
    border: 1px solid var(--line-soft);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.story-art {
    min-height: 340px;
    background:
        linear-gradient(90deg, rgba(3, 10, 16, 0.08), rgba(3, 10, 16, 0.92)),
        url('../images/news-events.jpg') center / cover no-repeat;
    border-right: 1px solid rgba(191, 132, 38, 0.25);
}

.story-content {
    align-self: center;
    padding: 38px 52px 40px;
}

.story-eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.story-content h2 {
    margin: 0;
    font-family: Cinzel, serif;
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: 600;
    text-transform: uppercase;
}

.story-divider {
    width: 92px;
    height: 1px;
    margin: 18px 0 20px;
    background: linear-gradient(90deg, var(--gold), transparent);
    box-shadow: 0 0 12px rgba(241, 185, 47, 0.28);
}

.story-content p:not(.story-eyebrow) {
    max-width: 900px;
    margin: 0 0 13px;
    color: #c8d0d6;
    font-size: 14px;
    line-height: 1.75;
}

.story-content .story-closing {
    margin-top: 20px;
    margin-bottom: 0;
    color: var(--gold2);
    font-family: Cinzel, serif;
    font-size: 15px;
}

.offline-text {
    color: #e95353;
}


.site-footer {
    min-height: 90px;
    border-top: 1px solid rgba(179,122,25,.25);
    background: #01060a;
    padding: 22px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #78848d;
    font-size: 11px
}

.site-footer div {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.site-footer strong {
    color: #d5b777;
    font-family: Cinzel,serif;
    font-size: 14px
}

@media(max-width:1150px) {
    .site-header {
        grid-template-columns: 1fr auto auto
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 82px;
        background: #030a10;
        display: none;
        flex-direction: column;
        gap: 0;
        height: auto;
        padding: 10px 0
    }

    .main-nav.open {
        display: flex
    }

    .main-nav a {
        height: 48px
    }

    .main-nav a.active:before,.main-nav a.active:after {
        display: none
    }

    .menu-toggle {
        display: block
    }

    .login-button {
        margin-left: 18px
    }

    .hero h1 span {
        font-size: 52px
    }

    .hero h1 em {
        font-size: 52px
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr
    }

    .stats-panel {
        grid-column: 1/-1
    }

    .rate-strip {
        grid-template-columns: repeat(3,1fr)
    }

    .realm-story {
        grid-template-columns: 0.72fr 1.28fr;
    }

    .story-content {
        padding: 32px 36px;
    }

    .rate-item:nth-child(3):after {
        display: none
    }

    .rate-item:nth-child(n+4) {
        border-top: 1px solid rgba(179,125,32,.18)
    }

}

@media(max-width:760px) {
    .site-header {
        height: 72px;
        padding: 0 18px
    }

    .brand-emblem {
        width: 46px;
        height: 46px
    }

    .brand-copy strong {
        font-size: 16px
    }

    .brand-copy small {
        font-size: 8px
    }

    .login-button {
        display: none
    }

    .main-nav {
        top: 72px
    }

    .hero {
        height: auto;
        min-height: 600px;
        background-position: 66% center
    }

    .hero-inner {
        width: calc(100% - 36px);
        padding: 118px 0 38px;
        align-items: flex-start
    }

    .hero-copy {
        width: 100%
    }

    .hero h1 span {
        font-size: 37px;
        white-space: normal
    }

    .hero h1 em {
        font-size: 34px;
        white-space: normal
    }

    .hero-description {
        font-size: 14px
    }

    .hero-actions {
        flex-direction: column
    }

    .button {
        min-width: 0;
        width: 100%
    }

    .realm-status-card {
        width: 100%;
        height: auto;
        grid-template-columns: 22px 1fr;
        gap: 10px;
        padding: 16px;
        margin-top: 20px
    }

    .realm-status-card i {
        display: none
    }

    .realm-status-card .client-cell {
        grid-column: 2
    }

    .rate-strip {
        width: calc(100% - 28px);
        grid-template-columns: 1fr
    }

    .rate-item {
        height: 72px;
        justify-content: flex-start;
        padding-left: 28px;
        border-top: 1px solid rgba(179,125,32,.18)
    }

    .rate-item:after {
        display: none!important
    }

    .dashboard-grid {
        width: calc(100% - 28px);
        grid-template-columns: 1fr
    }

    .stats-panel {
        grid-column: auto
    }

    .panel {
        padding: 18px
    }

    .news-row {
        grid-template-columns: 72px 1fr
    }

    .news-row img {
        width: 72px;
        height: 66px
    }

    .panel-link {
        margin-left: 88px
    }

    .realmlist-row {
        grid-template-columns: 1fr;
        margin-left: 0
    }

    .realmlist-row button {
        height: 40px
    }

    .realm-story {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
    }

    .story-art {
        min-height: 210px;
        border-right: 0;
        border-bottom: 1px solid rgba(191, 132, 38, 0.25);
    }

    .story-content {
        padding: 28px 22px 30px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px
    }

}


/* Live realm statistics: real players versus PlayerBots */
.realm-status-card .status-breakdown {
    display: block;
    margin-top: 2px;
    color: #aeb8c0;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    white-space: nowrap;
}

.stats-panel .stat-row {
    min-height: 51px;
    gap: 18px;
}

.stats-panel .stat-row dd {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.stats-panel .stat-row dd strong {
    font-size: 16px;
    font-weight: 600;
}

.stats-panel .stat-row dd small {
    max-width: 260px;
    color: #8f9aa4;
    font-size: 9px;
    line-height: 1.25;
    white-space: nowrap;
}

.stats-panel .stat-row-simple {
    min-height: 43px;
}

@media (max-width: 760px) {
    .realm-status-card .status-breakdown {
        white-space: normal;
    }

    .stats-panel .stat-row {
        align-items: flex-start;
    }

    .stats-panel .stat-row dd small {
        max-width: 180px;
        white-space: normal;
    }
}


/* Create Account page */
.account-page {
    min-height: calc(100vh - 90px);
    background: #02070c;
}

.account-hero {
    min-height: 760px;
    padding: 150px 0 70px;
    background-image:
        linear-gradient(90deg, rgba(0, 5, 10, 0.92) 0%, rgba(0, 5, 10, 0.67) 45%, rgba(0, 5, 10, 0.35) 100%),
        linear-gradient(0deg, #02070c 0%, transparent 38%),
        url('../images/hero-lich-king-clean.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid rgba(217, 153, 40, 0.5);
}

.account-shell {
    width: min(1360px, calc(100% - 7vw));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 540px;
    gap: 80px;
    align-items: center;
}

.account-intro {
    max-width: 650px;
}

.account-intro h1 {
    margin: 0;
    font-family: Cinzel, serif;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 3px 24px #000;
}

.account-intro > p:not(.eyebrow) {
    max-width: 590px;
    margin: 25px 0;
    color: #d9e0e5;
    font-size: 16px;
    line-height: 1.75;
}

.account-feature-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    color: #f2c45c;
    font-family: Cinzel, serif;
    font-size: 14px;
}

.registration-panel {
    padding: 30px 34px 32px;
    background: linear-gradient(145deg, rgba(7, 17, 25, 0.98), rgba(2, 9, 15, 0.98));
    border: 1px solid var(--line-soft);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

.registration-panel h2 {
    margin: 0;
    font-family: Cinzel, serif;
    font-size: 22px;
    text-transform: uppercase;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field > span {
    color: #f5d079;
    font-family: Cinzel, serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(1, 7, 12, 0.9);
    border: 1px solid rgba(137, 155, 168, 0.4);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(241, 185, 47, 0.12);
}

.form-field small {
    color: #89959f;
    font-size: 10px;
    line-height: 1.4;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rules-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #bdc6cd;
    font-size: 11px;
    line-height: 1.55;
}

.rules-check input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.registration-submit {
    width: 100%;
    min-width: 0;
    border: 0;
    cursor: pointer;
}

.registration-submit:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.5;
}

.registration-note {
    margin: 19px 0 0;
    color: #89959f;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.form-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    font-size: 12px;
    line-height: 1.55;
}

.form-message.success {
    color: #a8f28f;
    background: rgba(57, 132, 43, 0.12);
    border-color: rgba(104, 239, 72, 0.45);
}

.form-message.error {
    color: #ffb1b1;
    background: rgba(156, 44, 44, 0.14);
    border-color: rgba(233, 83, 83, 0.45);
}

.form-message code {
    color: #ffd76a;
}

.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1050px) {
    .account-shell {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .account-intro {
        max-width: 760px;
    }

    .registration-panel {
        width: min(620px, 100%);
    }
}

@media (max-width: 760px) {
    .account-hero {
        min-height: auto;
        padding: 125px 0 48px;
        background-position: 62% center;
    }

    .account-shell {
        width: calc(100% - 28px);
    }

    .account-intro h1 {
        font-size: 40px;
    }

    .registration-panel {
        padding: 24px 20px 26px;
    }

    .form-columns {
        grid-template-columns: 1fr;
    }
}



html.force-scrollbar {
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

body.create-account {
    min-height: calc(100vh + 1px);
    overflow-x: hidden;
    overflow-y: visible;
}


/* =========================================================
   Inner pages, login and account center
   ========================================================= */

.content-page {
    min-height: calc(100vh - 90px);
    padding-top: 82px;
    background:
        linear-gradient(180deg, rgba(2, 8, 13, 0.2), rgba(2, 8, 13, 0.92)),
        url('../images/hero-lich-king-clean.jpg') center top / cover fixed no-repeat;
}

.page-banner {
    padding: 82px 0 62px;
    border-bottom: 1px solid rgba(217, 153, 40, 0.4);
    background: linear-gradient(90deg, rgba(1, 7, 12, 0.9), rgba(1, 7, 12, 0.42), rgba(1, 7, 12, 0.72));
}

.page-banner-inner,
.content-shell {
    width: min(1380px, calc(100% - 7vw));
    margin: 0 auto;
}

.page-banner h1,
.construction-card h1,
.registration-panel h1 {
    margin: 0;
    font-family: Cinzel, serif;
    font-size: clamp(38px, 5vw, 64px);
    text-transform: uppercase;
}

.page-banner p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.content-shell {
    padding: 42px 0 60px;
}

.info-grid,
.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.content-card {
    padding: 28px;
    background: linear-gradient(145deg, rgba(7, 17, 25, 0.98), rgba(3, 10, 16, 0.98));
    border: 1px solid var(--line-soft);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.content-card.wide-card {
    grid-column: 1 / -1;
}

.content-card h2 {
    margin: 0 0 18px;
    color: var(--gold2);
    font-family: Cinzel, serif;
    font-size: 21px;
    text-transform: uppercase;
}

.content-card p {
    color: #cbd2d8;
    line-height: 1.75;
}

.info-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 26px;
    background: rgba(179, 125, 32, 0.24);
    border: 1px solid rgba(179, 125, 32, 0.3);
}

.info-metrics > div {
    min-height: 110px;
    padding: 20px;
    background: #061019;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.info-metrics span,
.info-metrics small {
    color: #89959f;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-metrics strong {
    font-family: Cinzel, serif;
    font-size: 20px;
}

.info-steps {
    padding-left: 22px;
    color: #dfe4e8;
    line-height: 1.8;
}

.large-code,
.action-card > code {
    display: block;
    margin: 18px 0;
    padding: 15px 17px;
    color: var(--gold2);
    background: #02080d;
    border: 1px solid rgba(190, 130, 28, 0.5);
    overflow-wrap: anywhere;
}

.detail-list {
    margin: 0;
}

.detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(108, 124, 134, 0.2);
}

.detail-list dt {
    color: #aab3bb;
}

.detail-list dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.compact-button {
    width: max-content;
    min-width: 210px;
    height: 52px;
    margin-top: 18px;
}

.text-action {
    display: inline-block;
    margin: 24px 0 0 18px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.compact-account-hero {
    min-height: calc(100vh - 90px);
    padding: 150px 0 80px;
}

.single-account-shell {
    display: block;
}

.login-panel {
    width: min(520px, 100%);
    margin: 0 auto;
}


.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-form .registration-submit {
    margin-top: 4px;
}

.form-intro {
    margin: 12px 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.registration-note a {
    color: var(--gold);
}

.construction-page {
    min-height: calc(100vh - 90px);
    padding: 180px 20px 90px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(90deg, rgba(1, 7, 12, 0.82), rgba(1, 7, 12, 0.34), rgba(1, 7, 12, 0.82)),
        url('../images/hero-lich-king-clean.jpg') center / cover no-repeat;
}

.construction-card {
    width: min(720px, 100%);
    padding: 48px;
    text-align: center;
    background: rgba(2, 10, 16, 0.92);
    border: 1px solid var(--line-soft);
}

.construction-rune {
    width: 74px;
    height: 74px;
    margin: 0 auto 25px;
    display: grid;
    place-items: center;
    color: var(--gold2);
    border: 2px solid #b87a13;
    transform: rotate(45deg);
    font-family: Cinzel, serif;
    font-size: 23px;
}

.construction-rune::first-line {
    transform: rotate(-45deg);
}

.construction-card > p:not(.eyebrow) {
    color: #c7cfd5;
    line-height: 1.75;
}

.construction-divider {
    width: 120px;
    height: 1px;
    margin: 28px auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.construction-note {
    font-size: 13px;
}

.construction-card .compact-button {
    margin: 28px auto 0;
}

.footer-nav {
    display: flex;
    gap: 18px;
}

.footer-nav a {
    color: #b9c0c7;
}

.footer-nav a:hover {
    color: var(--gold2);
}

.login-button.active {
    background: rgba(241, 185, 47, 0.08);
}

@media (max-width: 900px) {
    .info-grid,
    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .content-card.wide-card {
        grid-column: auto;
    }

    .info-metrics {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 18px;
    }
}

@media (max-width: 760px) {
    .content-page {
        padding-top: 72px;
    }

    .page-banner {
        padding: 60px 0 45px;
    }

    .page-banner-inner,
    .content-shell {
        width: calc(100% - 28px);
    }

    .construction-page {
        padding-top: 125px;
    }

    .construction-card {
        padding: 32px 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
    }
}


.download-client-link {
    color: var(--gold2);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 106, 0.45);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.download-client-link:hover {
    color: #fff1bb;
    text-decoration-color: currentColor;
}

/* Premium live realm cards */
.realm-status-card {
    width: min(760px, 100%);
    height: auto;
    margin-top: 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: rgba(179, 125, 32, .35);
    border: 1px solid rgba(213, 162, 62, .38);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .42), inset 0 0 28px rgba(213, 162, 62, .035);
    backdrop-filter: blur(3px);
}
.realm-status-item {
    min-height: 112px;
    padding: 19px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    background: linear-gradient(145deg, rgba(7, 18, 27, .96), rgba(2, 8, 14, .96));
}
.realm-status-item:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .028), transparent 42%);
}
.realm-status-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(211, 157, 50, .52);
    color: #e1ac45;
    font-family: Cinzel, serif;
    font-size: 21px;
    transform: rotate(45deg);
    background: rgba(179, 125, 32, .06);
    box-shadow: inset 0 0 18px rgba(210, 154, 43, .06);
}
.realm-status-icon > * { transform: rotate(-45deg); }
.realm-status-copy {
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    gap: 4px !important;
}
.realm-status-card .realm-status-copy > span {
    color: #909da7;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.realm-status-card .realm-status-copy > strong {
    color: #f0f3f5;
    font-family: Cinzel, serif;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: .035em;
}
.realm-status-card .realm-status-copy > small,
.realm-status-card .status-breakdown {
    display: block;
    margin: 0;
    color: #aab5bd;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
}
.realm-status-card .status-text { color: var(--green); }
.realm-status-card .offline-text { color: #e95353; }
.status-icon { color: var(--green); }
.status-led {
    width: 13px;
    height: 13px;
    display: block;
    border-radius: 50%;
}
.status-led.online {
    background: var(--green);
    animation: realmPulse 2.2s ease-in-out infinite;
}
@keyframes realmPulse {
    0%, 100% { box-shadow: 0 0 8px currentColor, 0 0 0 0 rgba(76, 201, 121, .28); }
    50% { box-shadow: 0 0 16px currentColor, 0 0 0 8px rgba(76, 201, 121, 0); }
}
.characters-icon, .client-icon { transform: rotate(45deg); }
.characters-icon { font-size: 22px; }
.client-icon { font-size: 24px; }

/* Seven-column realm rates */
.rate-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.rate-item {
    min-width: 0;
    gap: 12px;
    padding: 0 10px;
}
.rate-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}
.rate-icon.gold:before { content: "●"; font-size: 25px; }
.rate-icon.honor:before { content: "⚔"; font-size: 25px; }
.rate-item span { font-size: 9px; }
.rate-item strong { font-size: 23px; }

@media (max-width: 1180px) {
    .rate-strip { grid-template-columns: repeat(4, 1fr); }
    .rate-item:nth-child(3):after { display: block; }
    .rate-item:nth-child(4):after { display: none; }
    .rate-item:nth-child(n+5) { border-top: 1px solid rgba(179,125,32,.18); }
}

@media (max-width: 760px) {
    .hero { min-height: 750px; }
    .realm-status-card {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1px;
        padding: 0;
        border-color: rgba(213, 162, 62, .32);
    }
    .realm-status-item {
        min-height: 90px;
        padding: 16px 18px;
    }
    .realm-status-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .realm-status-card .realm-status-copy > strong { font-size: 20px; }
    .realm-status-card .realm-status-copy > small,
    .realm-status-card .status-breakdown { font-size: 10px; }
    .realm-status-card .client-cell { grid-column: auto; }
    .rate-strip { grid-template-columns: 1fr 1fr; }
    .rate-item {
        height: 78px;
        padding: 0 14px;
        justify-content: flex-start;
        border-top: 1px solid rgba(179,125,32,.18);
    }
    .rate-item:nth-child(odd):after {
        display: block !important;
        content: "";
        position: absolute;
        right: 0;
        width: 1px;
        height: 48px;
        background: rgba(179,125,32,.28);
    }
    .rate-item:nth-child(even):after { display: none !important; }
    .rate-item:last-child { grid-column: 1 / -1; justify-content: center; }
    .rate-item:last-child:after { display: none !important; }
}

@media (max-width: 420px) {
    .hero-inner { width: calc(100% - 24px); }
    .realm-status-item { min-height: 86px; }
    .rate-strip { width: calc(100% - 20px); }
    .rate-item { gap: 10px; padding: 0 10px; }
    .rate-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .rate-item span { font-size: 8px; }
    .rate-item strong { font-size: 21px; }
}

/* Server Info: shared How to Connect realmlist row */
.server-info-realmlist {
    margin: 16px 0 20px;
}

.server-info-realmlist code {
    min-width: 0;
}

@media (max-width: 760px) {
    .server-info-realmlist {
        grid-template-columns: 1fr;
    }

    .server-info-realmlist button {
        min-height: 42px;
    }
}

/* =========================================================
   Global wallpaper consistency
   The wallpaper is rendered once, relative to the viewport,
   so every page uses exactly the same crop, scale and position.
   ========================================================= */

body {
    position: relative;
    isolation: isolate;
    background-color: #02070c;
    background-image: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-color: #07131d;
    background-image: url('../images/hero-lich-king-clean.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 5, 10, 0.52) 0%, rgba(0, 5, 10, 0.22) 42%, rgba(0, 5, 10, 0.06) 72%, rgba(0, 5, 10, 0.18) 100%),
        linear-gradient(180deg, rgba(1, 6, 10, 0.04) 0%, rgba(1, 6, 10, 0.74) 100%);
}

/* Page sections now add only their own readability overlays.
   They no longer scale the wallpaper independently. */
.hero {
    background-color: transparent;
    background-image: none;
}

.account-page {
    background: transparent;
}

.account-hero {
    background-color: transparent;
    background-image:
        linear-gradient(90deg, rgba(0, 5, 10, 0.88) 0%, rgba(0, 5, 10, 0.62) 45%, rgba(0, 5, 10, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 7, 12, 0.88) 0%, transparent 42%);
    background-position: center;
    background-size: cover;
}

.content-page {
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(2, 8, 13, 0.18), rgba(2, 8, 13, 0.9));
}

.construction-page {
    background-color: transparent;
    background-image: linear-gradient(90deg, rgba(1, 7, 12, 0.82), rgba(1, 7, 12, 0.34), rgba(1, 7, 12, 0.82));
}

/* Keep the crop identical on mobile too. */
@media (max-width: 760px) {
    body::before {
        background-position: center top;
        background-size: cover;
    }

    .hero,
    .account-hero,
    .content-page,
    .construction-page {
        background-position: center;
    }
}


/* =========================================================
   Fixed-height utility pages
   Armory and Rankings make the complete document exactly
   one pixel taller than the viewport, keeping the footer at
   the bottom while guaranteeing a vertical scrollbar.
   ========================================================= */
html.force-scrollbar {
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

body.login-page-body {
    min-height: calc(100vh + 1px);
    overflow-x: hidden;
}

body.construction-page-body {
    min-height: calc(100vh + 1px);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.construction-page-body > .content-page {
    flex: 1 0 auto;
    min-height: calc(100vh - 90px + 1px);
    display: flex;
    flex-direction: column;
}

body.construction-page-body .construction-page {
    flex: 1 0 auto;
    min-height: calc(100vh - 90px + 1px);
}

body.construction-page-body > .site-footer {
    flex: 0 0 90px;
}

@media (max-width: 760px) {
    body.construction-page-body > .content-page,
    body.construction-page-body .construction-page {
        min-height: calc(100vh - 120px + 1px);
    }

    body.construction-page-body > .site-footer {
        flex-basis: 120px;
    }
}

/* =========================================================
   Unified site template — consistent width, wallpaper and height
   ========================================================= */

:root {
    --site-content-width: 1640px;
    --site-side-gap: 7vw;
}

html {
    min-height: 100%;
}

html.force-scrollbar {
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* One wallpaper, one crop and one brightness level everywhere. */
body::before {
    background-image: url('../images/hero-lich-king-clean.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Remove the global dim layer that made inner pages darker than index. */
body::after {
    background: linear-gradient(
        180deg,
        rgba(1, 6, 10, 0.02) 0%,
        rgba(1, 6, 10, 0.12) 62%,
        rgba(1, 6, 10, 0.30) 100%
    );
}

/* All major page containers now use the same site width. */
.hero-inner,
.rate-strip,
.dashboard-grid,
.realm-story,
.page-banner-inner,
.content-shell,
.account-shell {
    width: min(var(--site-content-width), calc(100% - var(--site-side-gap)));
    margin-left: auto;
    margin-right: auto;
}

/* Inner-page sections no longer add a page-wide dark wash. */
.content-page,
.account-page,
.account-hero,
.construction-page,
.page-banner {
    background-color: transparent;
}

.content-page {
    flex: 1 0 auto;
    min-height: 0;
    background-image: none;
}

.page-banner {
    background: linear-gradient(
        90deg,
        rgba(1, 7, 12, 0.58),
        rgba(1, 7, 12, 0.18) 48%,
        rgba(1, 7, 12, 0.38)
    );
}

.account-hero {
    background-image: linear-gradient(
        90deg,
        rgba(0, 5, 10, 0.58) 0%,
        rgba(0, 5, 10, 0.24) 48%,
        rgba(0, 5, 10, 0.10) 100%
    );
}

.construction-page {
    background-image: none;
}

/* Short pages: footer stays visible at the bottom of the viewport. */
body.construction-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.construction-page-body > .content-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.construction-page-body .construction-page {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 116px;
    padding-bottom: 34px;
}

body.construction-page-body > .site-footer {
    flex: 0 0 auto;
}

/* Login uses the same viewport/footer behavior and permanent scrollbar. */
body.login-page-body {
    min-height: 100vh;
}

body.login-page-body > .account-page,
body.login-page-body > .content-page {
    flex: 1 0 auto;
}

.site-footer {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 760px) {
    :root {
        --site-side-gap: 28px;
    }

    .hero-inner {
        width: calc(100% - 36px);
    }

    .rate-strip,
    .dashboard-grid,
    .realm-story,
    .page-banner-inner,
    .content-shell,
    .account-shell {
        width: calc(100% - 28px);
    }

    body::before {
        background-position: center top;
        background-size: cover;
    }

    body.construction-page-body .construction-page {
        padding-top: 96px;
        padding-bottom: 24px;
    }
}

/* =========================================================
   Wallpaper aspect-ratio correction
   Preserve the source image's native 16:9 proportions.
   On wide browser viewports, scale by height instead of width
   so the artwork never appears horizontally stretched.
   ========================================================= */
body::before {
    background-size: auto 100vh;
    background-position: top center;
}

/* Narrower screens still need full coverage; cover preserves
   the image ratio and crops only the excess edges. */
@media (max-aspect-ratio: 16/9) {
    body::before {
        background-size: cover;
        background-position: top center;
    }
}

@media (max-width: 760px) {
    body::before {
        background-size: cover;
        background-position: top center;
    }
}

/* =========================================================
   Final wallpaper and six-rate layout correction
   ========================================================= */

/* Fill the complete viewport on every page using exactly the
   same horizontal and vertical scaling. This intentionally
   stretches the wallpaper to the viewport, avoiding empty sides. */
body::before {
    background-position: center top !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
}

/* Six rates: six equal columns with no unused seventh column. */
.rate-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.rate-item {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1180px) {
    .rate-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .rate-item:nth-child(3n)::after {
        display: none !important;
    }

    .rate-item:nth-child(n + 4) {
        border-top: 1px solid rgba(179, 125, 32, 0.18);
    }
}

@media (max-width: 760px) {
    body::before {
        background-size: 100% 100% !important;
    }

    .rate-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .rate-item:nth-child(odd)::after {
        display: block !important;
    }

    .rate-item:nth-child(even)::after {
        display: none !important;
    }

    .rate-item:last-child {
        grid-column: auto !important;
        justify-content: flex-start !important;
    }
}

/* ==========================================================
   Azeroth Reborn — final site-wide wallpaper
   One image, proportional scaling, identical on every page.
   ========================================================== */
body::before {
    background-image: url('../images/azeroth-reborn-wallpaper.jpg') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Keep page sections transparent so they all reveal the same wallpaper. */
.hero,
.page-hero,
.account-page,
.auth-page,
.login-page,
.under-construction-page,
.server-info-page,
.inner-page,
.page-shell,
.site-main {
    background-image: none !important;
}

@media (max-width: 760px) {
    body::before {
        background-position: 70% center !important;
        background-attachment: scroll !important;
    }
}

/* ARC Companion page */
.arc-shell {
    padding-bottom: 48px;
}

.arc-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 42px;
}

.arc-intro h2,
.arc-section-heading h2,
.arc-note h2 {
    margin: 0 0 14px;
    font-family: Cinzel, serif;
    text-transform: uppercase;
}

.arc-intro p {
    color: #c9d1d7;
    line-height: 1.75;
}

.arc-kicker {
    margin: 0 0 8px !important;
    color: var(--gold) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.arc-summary {
    padding: 24px;
    background: rgba(2, 9, 15, .72);
    border: 1px solid rgba(191, 132, 38, .42);
}

.arc-summary span,
.arc-summary strong,
.arc-summary small {
    display: block;
}

.arc-summary-label {
    color: #8f9aa4;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.arc-summary strong {
    margin: 9px 0;
    color: var(--gold2);
    font-family: Cinzel, serif;
    font-size: 22px;
}

.arc-summary small {
    color: #aeb8c0;
    line-height: 1.55;
}

.arc-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 0 0 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(191, 132, 38, .28);
}

.arc-section-heading .eyebrow {
    margin-bottom: 5px;
}

.arc-section-heading h2 {
    margin-bottom: 0;
    font-size: 27px;
}

.arc-roadmap-heading {
    margin-top: 48px;
}

.arc-count {
    color: #9ba6ae;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.arc-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.arc-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arc-module-card {
    min-height: 100%;
    padding: 26px;
    background: linear-gradient(145deg, rgba(7, 17, 25, .96), rgba(2, 9, 15, .96));
    border: 1px solid rgba(191, 132, 38, .38);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .24);
}

.arc-module-card.is-live {
    border-top: 2px solid rgba(104, 239, 72, .7);
}

.arc-module-card.is-development {
    border-top: 2px solid rgba(241, 185, 47, .65);
}

.arc-module-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.arc-module-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold2);
    border: 1px solid #9e6813;
    font-family: Cinzel, serif;
    font-size: 20px;
}

.arc-status {
    padding: 7px 9px;
    border: 1px solid currentColor;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.status-live,
.status-testing {
    color: var(--green);
}

.status-development,
.status-planned,
.status-prototype {
    color: var(--gold);
}

.arc-module-card h3 {
    margin: 0 0 4px;
    font-family: Cinzel, serif;
    font-size: 21px;
    text-transform: uppercase;
}

.arc-version {
    margin: 0 0 17px !important;
    color: var(--gold) !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.arc-module-card > p:not(.arc-version) {
    min-height: 68px;
    margin: 0 0 17px;
    color: #c5cdd3;
    font-size: 13px;
    line-height: 1.65;
}

.arc-module-card ul {
    margin: 0;
    padding: 17px 0 0 18px;
    border-top: 1px solid rgba(111, 129, 140, .2);
    color: #aeb8c0;
    font-size: 12px;
    line-height: 1.7;
}

.arc-module-card li::marker {
    color: var(--gold);
}

.arc-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: center;
    margin-top: 42px;
}

.arc-note-mark {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    color: var(--gold2);
    border: 1px solid #9e6813;
    font-family: Cinzel, serif;
    font-size: 24px;
}

.arc-note h2 {
    margin-bottom: 7px;
}

.arc-note p {
    margin: 0;
    color: #b9c3ca;
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .main-nav {
        gap: 25px;
    }

    .arc-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .arc-intro,
    .arc-module-grid,
    .arc-roadmap-grid {
        grid-template-columns: 1fr;
    }

    .arc-intro {
        gap: 24px;
        margin-bottom: 34px;
    }

    .arc-section-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .arc-section-heading h2 {
        font-size: 22px;
    }

    .arc-module-card {
        padding: 21px;
    }

    .arc-module-card > p:not(.arc-version) {
        min-height: 0;
    }

    .arc-note {
        grid-template-columns: 1fr;
    }

    .arc-note-mark {
        width: 64px;
        height: 64px;
    }
}

/* =========================================================
   Header consistency: ARC, Server Info and homepage
   ========================================================= */

/* ARC must use the exact same banner geometry as Server Info. */
/* Apply the same dark treatment across the complete homepage hero,
   ending exactly at the hero's bottom border. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(1, 7, 12, 0.58),
        rgba(1, 7, 12, 0.18) 48%,
        rgba(1, 7, 12, 0.38)
    );
}

/* Keep homepage content above the new header overlay. */
.hero-inner {
    position: relative;
    z-index: 1;
}



/* =========================================================
   ARC module grids
   ========================================================= */

/* Keep both ARC sections visually consistent: three cards per row. */
.arc-modules-grid,
.arc-roadmap-grid,
.arc-in-development-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1150px) {
    .arc-modules-grid,
    .arc-roadmap-grid,
    .arc-in-development-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .arc-modules-grid,
    .arc-roadmap-grid,
    .arc-in-development-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Bug Tracker
   ========================================================= */
.bug-tracker-shell {
    padding-top: 34px;
    padding-bottom: 54px;
}

.bug-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, .8fr);
    gap: 20px;
    margin-bottom: 20px;
}

.bug-summary-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bug-summary-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    background: linear-gradient(145deg, rgba(7, 17, 25, .96), rgba(3, 10, 16, .96));
    border: 1px solid var(--line-soft);
}

.bug-summary-card span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.bug-summary-card strong {
    color: var(--gold2);
    font-family: Cinzel, serif;
    font-size: 30px;
}

.bug-open-number {
    color: var(--green) !important;
}

.bug-tracker-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, .8fr);
    gap: 20px;
    align-items: start;
}

.bug-list-card,
.bug-submit-card,
.bug-detail-card {
    min-height: 0;
}

.bug-list-heading,
.bug-detail-heading,
.bug-report-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.bug-list-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(191, 132, 38, .25);
}

.bug-filter-nav {
    display: flex;
    gap: 8px;
}

.bug-filter-nav a {
    padding: 8px 11px;
    border: 1px solid rgba(179, 125, 32, .3);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.bug-filter-nav a.active,
.bug-filter-nav a:hover {
    color: var(--gold2);
    border-color: var(--gold);
}

.bug-report-list {
    display: flex;
    flex-direction: column;
}

.bug-report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 17px 4px;
    border-bottom: 1px solid rgba(108, 124, 134, .18);
    transition: .2s;
}

.bug-report-row:hover {
    padding-left: 9px;
    background: rgba(241, 185, 47, .035);
}

.bug-report-main {
    min-width: 0;
}

.bug-report-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.bug-report-main > span,
.bug-report-row time {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.bug-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.bug-status.open {
    color: var(--green);
    border-color: rgba(104, 239, 72, .55);
    background: rgba(104, 239, 72, .07);
}

.bug-status.closed {
    color: #9ba5ad;
    border-color: rgba(155, 165, 173, .4);
    background: rgba(155, 165, 173, .06);
}

.bug-empty-state {
    padding: 42px 0 22px;
    color: var(--muted);
    text-align: center;
}

.bug-submit-card > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.bug-submit-form,
.bug-close-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.bug-submit-form label,
.bug-close-form label {
    margin-top: 7px;
    color: #dfe4e8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bug-submit-form input,
.bug-submit-form select,
.bug-submit-form textarea,
.bug-close-form textarea {
    width: 100%;
    border: 1px solid rgba(190, 130, 28, .48);
    background: rgba(1, 7, 12, .86);
    color: var(--text);
    padding: 12px 13px;
    outline: none;
}

.bug-submit-form input:focus,
.bug-submit-form select:focus,
.bug-submit-form textarea:focus,
.bug-close-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(241, 185, 47, .08);
}

.bug-submit-form textarea,
.bug-close-form textarea {
    resize: vertical;
    line-height: 1.55;
}

.bug-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bug-form-row > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bug-action-button {
    width: 100%;
    min-width: 0;
    margin-top: 12px;
}

.bug-id {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.bug-detail-heading h2 {
    margin: 0;
}

.bug-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.bug-meta-grid > div {
    padding: 13px 14px;
    border: 1px solid rgba(108, 124, 134, .22);
    background: rgba(1, 7, 12, .42);
}

.bug-meta-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.bug-meta-grid strong {
    font-size: 12px;
}

.bug-text-section,
.bug-closure-box,
.bug-close-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(108, 124, 134, .2);
}

.bug-text-section h3,
.bug-closure-box h3 {
    margin: 0 0 10px;
    color: var(--gold2);
    font-family: Cinzel, serif;
    font-size: 14px;
    text-transform: uppercase;
}

.bug-text-section p,
.bug-closure-box p {
    margin: 0;
    color: #d7dde1;
    font-size: 13px;
    line-height: 1.75;
}

.bug-closure-box {
    padding: 18px;
    border: 1px solid rgba(155, 165, 173, .28);
    background: rgba(1, 7, 12, .5);
}

.bug-closure-box small {
    display: block;
    margin-top: 13px;
    color: var(--muted);
}

.bug-back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1150px) {
    .bug-summary-grid,
    .bug-tracker-grid {
        grid-template-columns: 1fr;
    }

    .bug-summary-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bug-submit-card {
        order: -1;
    }

    .bug-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .bug-summary-primary {
        grid-template-columns: 1fr;
    }

    .bug-summary-card {
        min-height: 74px;
    }

    .bug-list-heading,
    .bug-detail-heading,
    .bug-report-title-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .bug-filter-nav {
        width: 100%;
    }

    .bug-filter-nav a {
        flex: 1;
        text-align: center;
    }

    .bug-report-row {
        grid-template-columns: 1fr;
    }

    .bug-form-row,
    .bug-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ARC intro strip
   ========================================================= */

.arc-intro-strip {
    width: min(1640px, calc(100% - 7vw));
    margin: 28px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    gap: 20px;
}

.arc-intro-copy,
.arc-intro-download {
    padding: 26px 30px;
    background: linear-gradient(
        145deg,
        rgba(7, 17, 25, 0.97),
        rgba(3, 10, 16, 0.97)
    );
    border: 1px solid var(--line-soft);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.arc-intro-eyebrow,
.arc-intro-label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.arc-intro-copy h2 {
    margin: 0 0 10px;
    font-family: Cinzel, serif;
    font-size: 22px;
    text-transform: uppercase;
}

.arc-intro-copy p,
.arc-intro-download p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.arc-intro-download {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.arc-intro-download strong {
    margin-bottom: 8px;
    font-family: Cinzel, serif;
    font-size: 18px;
    text-transform: uppercase;
}

.arc-intro-download-button {
    width: 100%;
    min-width: 0;
    margin-top: auto;
}

@media (max-width: 980px) {
    .arc-intro-strip {
        grid-template-columns: 1fr;
    }

    .arc-intro-download-button {
        margin-top: 18px;
    }
}

@media (max-width: 760px) {
    .arc-intro-strip {
        width: calc(100% - 28px);
        margin: 20px auto;
    }

    .arc-intro-copy,
    .arc-intro-download {
        padding: 22px 18px;
    }
}



/* ARC header uses the exact same geometry as Server Info. */
.arc-page .page-banner {
    padding: 82px 0 62px;
}

@media (max-width: 760px) {
    .arc-page .page-banner {
        padding: 60px 0 45px;
    }
}

/* =========================================================
   ARC spacing and copy refinement
   ========================================================= */

.arc-intro-strip {
    margin-top: 42px;
}

.arc-intro-download p {
    margin-bottom: 24px;
}

.arc-intro-download-button {
    margin-top: 0;
}

@media (max-width: 760px) {
    .arc-intro-strip {
        margin-top: 28px;
    }

    .arc-intro-download p {
        margin-bottom: 20px;
    }
}

/* ARC planned status consistency */
.arc-status.planned,
.module-status.planned,
.status-badge.planned,
.badge.planned {
    color: var(--gold2) !important;
    border-color: rgba(241, 185, 47, 0.48) !important;
    background: rgba(241, 185, 47, 0.08) !important;
}

/* ARC implemented status consistency */
.arc-status.status-implemented {
    color: #79ef65 !important;
    border-color: rgba(104, 239, 72, 0.52) !important;
    background: rgba(104, 239, 72, 0.08) !important;
}

/* Bug Tracker dropdown arrows — real form selector */
.bug-submit-form select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image:
        linear-gradient(45deg, transparent 50%, #f3f4f5 50%),
        linear-gradient(135deg, #f3f4f5 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    background-position:
        calc(100% - 24px) center,
        calc(100% - 18px) center;
}

.bug-submit-form select::-ms-expand {
    display: none;
}

/* Bug Tracker scrollbar — same behavior as Armory / Rankings */
html {
    overflow-y: scroll;
}

body.bug-tracker-page {
    min-height: calc(100vh + 1px);
}

/* =========================================================
   Bug Tracker workflow, discussion and history
   ========================================================= */

.bug-status {
    white-space: nowrap;
}

.bug-status.status-open {
    color: #79ef65;
    border-color: rgba(104, 239, 72, 0.48);
    background: rgba(104, 239, 72, 0.08);
}

.bug-status.status-confirmed {
    color: #72c8ff;
    border-color: rgba(80, 170, 235, 0.48);
    background: rgba(80, 170, 235, 0.08);
}

.bug-status.status-in-progress {
    color: #ffd76a;
    border-color: rgba(241, 185, 47, 0.48);
    background: rgba(241, 185, 47, 0.08);
}

.bug-status.status-fixed {
    color: #9de5c1;
    border-color: rgba(91, 205, 150, 0.48);
    background: rgba(91, 205, 150, 0.08);
}

.bug-status.status-closed,
.bug-status.status-duplicate,
.bug-status.status-cant-reproduce,
.bug-status.status-intended-behavior,
.bug-status.status-rejected {
    color: #b9c0c7;
    border-color: rgba(185, 192, 199, 0.35);
    background: rgba(185, 192, 199, 0.07);
}

.bug-moderation-panel,
.bug-discussion,
.bug-history {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(179, 125, 32, 0.24);
}

.bug-moderation-panel > h3,
.bug-discussion h3,
.bug-history h3 {
    margin: 0;
    font-family: Cinzel, serif;
    font-size: 15px;
    text-transform: uppercase;
}

.bug-moderation-panel > p {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.bug-status-form,
.bug-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bug-status-form label,
.bug-comment-form label {
    color: #d9dee2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bug-status-form select,
.bug-status-form textarea,
.bug-comment-form textarea {
    width: 100%;
    color: var(--text);
    background: rgba(2, 8, 13, 0.92);
    border: 1px solid rgba(190, 130, 28, 0.48);
    outline: none;
}

.bug-status-form select {
    height: 44px;
    padding: 0 44px 0 14px;
}

.bug-status-form textarea,
.bug-comment-form textarea {
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.55;
}

.bug-status-form select:focus,
.bug-status-form textarea:focus,
.bug-comment-form textarea:focus {
    border-color: var(--gold);
}

.bug-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.bug-section-heading span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.bug-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bug-comment {
    padding: 14px 16px;
    background: rgba(2, 9, 15, 0.74);
    border: 1px solid rgba(92, 111, 124, 0.28);
}

.bug-comment.moderator {
    border-color: rgba(241, 185, 47, 0.35);
}

.bug-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bug-comment-head strong {
    color: var(--gold2);
}

.bug-comment-head span {
    padding: 3px 7px;
    color: #191208;
    background: var(--gold2);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.bug-comment-head time {
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
}

.bug-comment p {
    margin: 0;
    color: #d4d9dd;
    font-size: 12px;
    line-height: 1.65;
}

.bug-empty-state.compact {
    padding: 14px;
    margin-bottom: 16px;
}

.bug-login-note {
    color: var(--muted);
    font-size: 12px;
}

.bug-login-note a {
    color: var(--gold);
}

.bug-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(92, 111, 124, 0.22);
}

.bug-history-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 15px;
    background: rgba(2, 9, 15, 0.64);
    border-bottom: 1px solid rgba(92, 111, 124, 0.18);
}

.bug-history-row:last-child {
    border-bottom: 0;
}

.bug-history-row strong {
    color: var(--gold2);
}

.bug-history-row span {
    margin-left: 5px;
    color: #c8ced3;
    font-size: 12px;
}

.bug-history-row p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.bug-history-row time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
}

@media (max-width: 760px) {
    .bug-comment-head,
    .bug-history-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .bug-comment-head time {
        margin-left: 0;
    }

    .bug-history-row {
        gap: 6px;
    }
}

