@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@700;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
    color-scheme: dark;
    --bg: #100f0d;
    --bg-deep: #070605;
    --surface: #171513;
    --surface-2: #211d18;
    --surface-3: #2a241d;
    --text: #eadfc7;
    --text-strong: #fff3d6;
    --muted: #a79a82;
    --muted-2: #766b58;
    --gold: #d4a83d;
    --gold-light: #f2d27a;
    --gold-dark: #8a5e18;
    --crimson: #b44235;
    --crimson-dark: #75231e;
    --green: #6dcc78;
    --border: rgba(212, 168, 61, .24);
    --border-strong: rgba(212, 168, 61, .42);
    --shadow: rgba(0, 0, 0, .52);
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(7, 6, 5, .58), rgba(7, 6, 5, .9) 420px, rgba(7, 6, 5, .98)),
        radial-gradient(circle at 50% 0, rgba(180, 66, 53, .18), transparent 360px),
        radial-gradient(circle at 18% 16%, rgba(212, 168, 61, .14), transparent 260px),
        url("/assets/custom/background.png"),
        linear-gradient(90deg, #080706, #15120f 50%, #080706);
    background-attachment: fixed;
    background-position: top center;
    background-size: cover;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .7), transparent 12%, transparent 88%, rgba(0, 0, 0, .7)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 5px);
    mix-blend-mode: screen;
    opacity: .34;
}

a {
    color: var(--gold-light);
    text-decoration: none;
}

a:hover {
    color: #fff4ca;
}

img {
    max-width: 100%;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 46px;
}

.site-header {
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(6, 5, 4, .22), rgba(6, 5, 4, .92)),
        linear-gradient(90deg, rgba(128, 38, 31, .54), transparent 48%, rgba(139, 94, 24, .2)),
        url("/assets/custom/header.jpg");
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 70px var(--shadow), inset 0 0 0 1px rgba(255, 227, 151, .08);
}

.header-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 168, 61, .22);
    background: rgba(9, 8, 7, .72);
    backdrop-filter: blur(6px);
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    color: var(--text-strong);
}

.brand:hover {
    text-decoration: none;
}

.brand-rune {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(242, 210, 122, .62);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 35% 25%, rgba(242, 210, 122, .38), transparent 32%),
        linear-gradient(145deg, #4a1712, #19120d 62%, #0b0907);
    box-shadow: inset 0 0 0 1px rgba(255, 238, 188, .1), 0 10px 22px rgba(0, 0, 0, .42);
}

.brand-rune img {
    display: block;
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
}

.brand-rune.fallback-logo::after {
    content: "V";
    font-family: "Cinzel Decorative", Georgia, serif;
    font-size: 34px;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: 0 0 18px rgba(212, 168, 61, .45);
}

.brand strong {
    display: block;
    font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    color: var(--gold-light);
    text-shadow: 0 2px 0 #0b0705, 0 0 22px rgba(212, 168, 61, .24);
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.top-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 8px 12px;
    color: rgba(234, 223, 199, .76);
    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.top-nav a:hover,
.top-nav a.active {
    border-color: rgba(212, 168, 61, .34);
    background: rgba(212, 168, 61, .12);
    color: var(--gold-light);
}

.server-pill {
    min-width: 150px;
    border: 1px solid rgba(212, 168, 61, .3);
    border-radius: var(--radius);
    padding: 9px 12px;
    background: rgba(0, 0, 0, .34);
    text-align: right;
}

.server-pill span,
.server-pill strong {
    display: block;
}

.server-pill span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.server-pill strong {
    margin-top: 2px;
    color: var(--green);
    font-size: 16px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px;
    align-items: end;
    min-height: 330px;
    padding: clamp(26px, 5vw, 58px);
}

.hero-kicker,
.hero-card-label {
    display: inline-flex;
    color: var(--gold);
    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 10px 0 12px;
    color: var(--text-strong);
    font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 900;
    line-height: .96;
    letter-spacing: 0;
    text-shadow: 0 3px 0 #090604, 0 0 42px rgba(180, 66, 53, .25);
}

.hero-copy p {
    max-width: 640px;
    margin: 0;
    color: rgba(234, 223, 199, .84);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-card {
    border: 1px solid rgba(212, 168, 61, .34);
    border-radius: var(--radius);
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(212, 168, 61, .1), transparent),
        rgba(10, 9, 8, .82);
    box-shadow: inset 0 0 0 1px rgba(255, 238, 188, .06), 0 18px 42px rgba(0, 0, 0, .36);
}

.hero-card > strong {
    display: block;
    margin-top: 6px;
    color: var(--text-strong);
    font-family: Cinzel, Georgia, serif;
    font-size: 58px;
    line-height: 1;
}

.hero-card > small {
    display: block;
    color: var(--muted);
}

.hero-metrics {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.hero-metrics div,
.status-box dl div,
.rank-row,
.order-row,
.feature-list div,
.info-grid div {
    border: 1px solid rgba(212, 168, 61, .16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .025);
}

.hero-metrics div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
}

.hero-metrics span {
    color: var(--muted);
}

.hero-metrics b {
    color: var(--gold-light);
}

.layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 260px;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

.sidebar,
.themebar {
    display: grid;
    gap: 12px;
    align-content: start;
}

.quick-actions {
    display: grid;
    gap: 8px;
}

.quick-button,
.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(242, 210, 122, .35);
    border-radius: var(--radius);
    padding: 10px 14px;
    background:
        linear-gradient(180deg, rgba(255, 244, 202, .14), transparent 50%),
        linear-gradient(180deg, var(--gold), var(--gold-dark));
    color: #130d06;
    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 244, 202, .28);
    cursor: pointer;
}

.quick-button:hover,
.button:hover {
    color: #070503;
    filter: brightness(1.08);
    text-decoration: none;
}

.quick-button.download,
.button.ghost {
    background:
        linear-gradient(180deg, rgba(255, 244, 202, .08), transparent 50%),
        rgba(23, 21, 19, .72);
    color: var(--gold-light);
}

.button.primary {
    background:
        linear-gradient(180deg, rgba(255, 244, 202, .16), transparent 50%),
        linear-gradient(180deg, #e4b948, #9b6519);
}

.button.danger {
    border-color: rgba(255, 138, 124, .46);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 50%),
        linear-gradient(180deg, var(--crimson), var(--crimson-dark));
    color: #fff0e8;
}

.nav-box,
.status-box,
.content-box,
.theme-box,
.form-panel,
.notice-panel,
.character-card,
.coin-card,
.download-panel,
.server-info-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(212, 168, 61, .07), transparent 86px),
        rgba(18, 16, 14, .9);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 244, 202, .035);
}

.nav-box h2,
.status-box h2,
.theme-box h2,
.box-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    border-bottom: 1px solid rgba(212, 168, 61, .25);
    padding: 10px 13px;
    background:
        linear-gradient(90deg, rgba(212, 168, 61, .18), rgba(212, 168, 61, .05), transparent),
        rgba(0, 0, 0, .2);
    color: var(--gold-light);
    font-family: Cinzel, Georgia, serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.nav-box a {
    display: block;
    border-bottom: 1px solid rgba(212, 168, 61, .08);
    padding: 9px 14px;
    color: rgba(234, 223, 199, .76);
}

.nav-box a:last-child {
    border-bottom: 0;
}

.nav-box a:hover,
.nav-box a.active {
    background: rgba(212, 168, 61, .08);
    color: var(--gold-light);
    text-decoration: none;
}

.menu-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(242, 210, 122, .38);
    border-radius: 4px;
    background:
        center / contain no-repeat,
        radial-gradient(circle at 35% 30%, rgba(242, 210, 122, .32), transparent 45%),
        rgba(0, 0, 0, .32);
}

.status-box dl {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
}

.status-box dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
}

.status-box dt {
    color: var(--muted);
    font-weight: 600;
}

.status-box dd {
    margin: 0;
    color: var(--gold-light);
    font-weight: 800;
}

.content {
    min-width: 0;
}

.content-box {
    min-height: 420px;
}

.content-box > :not(.box-title) {
    margin: 16px;
}

.message {
    border-radius: var(--radius);
    margin: 0 0 12px;
    padding: 11px 13px;
    font-weight: 700;
}

.message.error {
    border: 1px solid rgba(255, 127, 112, .48);
    background: rgba(180, 66, 53, .18);
    color: #ffd4cc;
}

.message.success {
    border: 1px solid rgba(109, 204, 120, .45);
    background: rgba(109, 204, 120, .13);
    color: #c7ffd0;
}

.news-entry {
    position: relative;
    border-bottom: 1px solid rgba(212, 168, 61, .14);
    padding: 18px 0 20px;
}

.news-entry:first-of-type {
    padding-top: 4px;
}

.news-entry:last-child {
    border-bottom: 0;
    padding-bottom: 6px;
}

.date-stamp {
    color: var(--gold);
    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.news-entry h1,
.download-panel h1,
.notice-panel h1,
.form-panel h1,
.new-player-copy h1,
.account-head h1,
.coin-card h1 {
    margin: 6px 0 8px;
    color: var(--text-strong);
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.18;
}

.news-entry p,
.download-panel p,
.notice-panel p,
.new-player-copy p,
.muted {
    color: rgba(234, 223, 199, .76);
}

.tag {
    display: inline-flex;
    margin-top: 10px;
    border: 1px solid rgba(180, 66, 53, .4);
    border-radius: var(--radius);
    padding: 4px 8px;
    background: rgba(180, 66, 53, .14);
    color: #ffc9c0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.account-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(212, 168, 61, .16);
    padding-bottom: 14px;
}

.coins-balance {
    min-width: 150px;
    border: 1px solid rgba(212, 168, 61, .24);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: rgba(0, 0, 0, .18);
    text-align: right;
}

.coins-balance span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.coins-balance strong {
    color: var(--gold-light);
    font-size: 22px;
}

.account-portal,
.character-list,
.coin-grid,
.vocation-grid,
.feature-list,
.orders {
    display: grid;
    gap: 12px;
}

.account-entry {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
    gap: 14px;
}

.notice-panel,
.form-panel,
.download-panel,
.server-info-panel,
.character-card,
.coin-card {
    padding: 16px;
}

.new-player-panel {
    display: grid;
    gap: 12px;
}

.new-player-copy {
    border: 1px solid rgba(180, 66, 53, .28);
    border-radius: var(--radius);
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(180, 66, 53, .18), transparent),
        rgba(0, 0, 0, .14);
}

.new-player-copy strong {
    color: var(--gold-light);
    font-family: Cinzel, Georgia, serif;
    text-transform: uppercase;
}

.form-panel {
    display: grid;
    gap: 12px;
}

.form-panel h1,
.form-panel h2 {
    margin: 0;
    color: var(--text-strong);
    font-family: Cinzel, Georgia, serif;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(212, 168, 61, .22);
    border-radius: var(--radius);
    padding: 9px 10px;
    background: rgba(0, 0, 0, .24);
    color: var(--text);
    font: inherit;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(242, 210, 122, .68);
    box-shadow: 0 0 0 3px rgba(212, 168, 61, .12);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.character-card h2,
.section-subtitle,
.vocation-card h3,
.theme-box strong {
    margin: 0;
    color: var(--text-strong);
    font-family: Cinzel, Georgia, serif;
}

.section-subtitle {
    margin-top: 20px;
    border-bottom: 1px solid rgba(212, 168, 61, .18);
    padding-bottom: 7px;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.char-meta,
.vitals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.char-meta span,
.vitals span {
    border: 1px solid rgba(212, 168, 61, .16);
    border-radius: var(--radius);
    padding: 5px 8px;
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 12px;
}

.delete-character-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.download-panel {
    min-height: 190px;
    display: grid;
    align-content: center;
    justify-items: start;
    background:
        linear-gradient(90deg, rgba(180, 66, 53, .16), transparent),
        rgba(18, 16, 14, .9);
}

.server-info-panel {
    display: grid;
    gap: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

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

.feature-list div,
.info-grid div {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.feature-list strong,
.info-grid strong {
    color: var(--gold-light);
    font-family: Cinzel, Georgia, serif;
}

.feature-list span,
.info-grid span {
    color: rgba(234, 223, 199, .74);
}

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

.vocation-card {
    border: 1px solid rgba(212, 168, 61, .18);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255, 255, 255, .025);
}

.vocation-card span {
    display: inline-flex;
    margin: 8px 8px 0 0;
    color: var(--muted);
}

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

.coin-card {
    justify-items: start;
}

.coin-card strong {
    display: block;
    margin: 5px 0 12px;
    color: var(--gold-light);
    font-size: 22px;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
}

.order-row em {
    color: var(--green);
    font-style: normal;
    font-weight: 800;
}

.theme-box {
    padding-bottom: 12px;
}

.theme-box > :not(h2) {
    margin-left: 12px;
    margin-right: 12px;
}

.online-box {
    text-align: center;
}

.online-box strong {
    display: block;
    margin-top: 14px;
    color: var(--green);
    font-size: 54px;
    line-height: 1;
}

.online-box span,
.theme-empty,
.offer-box span {
    display: block;
    color: var(--muted);
}

.rank-row {
    display: grid;
    gap: 2px;
    margin-top: 9px;
    padding: 9px 10px;
    color: var(--text);
}

.rank-row:hover {
    border-color: rgba(212, 168, 61, .34);
    background: rgba(212, 168, 61, .08);
    text-decoration: none;
}

.rank-row small {
    color: var(--muted);
}

.offer-box {
    text-align: center;
}

.offer-badge {
    display: inline-flex;
    margin-top: 14px;
    border: 1px solid rgba(180, 66, 53, .44);
    border-radius: var(--radius);
    padding: 5px 10px;
    background: rgba(180, 66, 53, .18);
    color: #ffc9c0;
    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.offer-box strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
}

.offer-box .button {
    width: calc(100% - 24px);
    margin-top: 13px;
}

.g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1060px) {
    .header-bar,
    .hero-panel,
    .layout {
        grid-template-columns: 1fr;
    }

    .top-nav {
        justify-content: flex-start;
    }

    .server-pill {
        text-align: left;
    }

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

    .quick-actions,
    .status-box,
    .online-box,
    .offer-box {
        grid-column: span 2;
    }

    .hero-card {
        max-width: 420px;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 18px, 1240px);
        padding-top: 10px;
    }

    .header-bar,
    .hero-panel {
        padding: 14px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-rune {
        width: 48px;
        height: 48px;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 13vw, 54px);
    }

    .sidebar,
    .themebar,
    .account-entry,
    .field-row,
    .info-grid,
    .feature-list,
    .vocation-grid,
    .coin-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions,
    .status-box,
    .online-box,
    .offer-box {
        grid-column: auto;
    }

    .account-head,
    .order-row {
        grid-template-columns: 1fr;
    }

    .account-head {
        align-items: stretch;
    }

    .coins-balance {
        text-align: left;
    }
}

