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

:root {
    color-scheme: dark;
    --void: #090604;
    --wood: #211309;
    --wood-2: #362112;
    --wood-3: #4b2d16;
    --stone: #3a352d;
    --stone-light: #665a49;
    --paper: #d9c79f;
    --paper-light: #f2e5c2;
    --paper-soft: #e6d6b3;
    --ink: #2d1b0d;
    --muted-ink: #664d34;
    --red: #7c2118;
    --red-dark: #4f130d;
    --gold: #c89a38;
    --gold-light: #f0d381;
    --green: #2f7d32;
    --green-light: #7fba48;
    --blue: #325c72;
    --border-dark: #130b06;
    --shadow: rgba(0, 0, 0, .55);
    --radius: 3px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .76), transparent 13%, transparent 87%, rgba(0, 0, 0, .76)),
        linear-gradient(180deg, rgba(5, 18, 9, .18), rgba(3, 7, 4, .9) 520px),
        url("/assets/custom/viperotbackground.png"),
        repeating-linear-gradient(45deg, #1a0e07 0 10px, #140a05 10px 20px);
    background-attachment: fixed;
    background-position: top center;
    background-size: cover;
    color: var(--paper-light);
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 50% 0, rgba(82, 196, 34, .14), transparent 360px);
    opacity: .42;
}

a {
    color: #6f1c12;
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: #a0291b;
    text-decoration: underline;
}

img {
    max-width: 100%;
}

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

.site-header {
    overflow: hidden;
    border: 2px solid var(--border-dark);
    outline: 1px solid var(--stone-light);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(16, 8, 3, .08), rgba(16, 8, 3, .78)),
        url("/assets/custom/header.jpg");
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 42px var(--shadow);
}

.header-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto 148px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-dark);
    background:
        linear-gradient(180deg, rgba(82, 48, 22, .92), rgba(28, 15, 7, .94));
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: var(--gold-light);
}

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

.brand-rune {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #1d1007;
    outline: 1px solid #b78a33;
    background:
        radial-gradient(circle at 38% 26%, #f1d37e, #8b391f 40%, #211007 75%);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .3);
}

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

.brand-rune.fallback-logo::after {
    content: "V";
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 700;
    text-shadow: 2px 2px 0 #140903;
}

.brand strong {
    display: block;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 54px);
    line-height: .9;
    text-shadow: 2px 3px 0 #100803, 0 0 12px rgba(240, 211, 129, .18);
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #d9c79f;
    font-size: 11px;
    font-weight: 700;
}

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

.top-nav a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #160b05;
    outline: 1px solid rgba(217, 199, 159, .18);
    padding: 6px 10px;
    background:
        linear-gradient(180deg, #6b3f1d, #2c170a);
    color: var(--paper-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #000;
}

.top-nav a:hover,
.top-nav a.active {
    background:
        linear-gradient(180deg, #a33325, #651a12);
    color: #fff1c5;
    text-decoration: none;
}

.server-pill {
    border: 1px solid #160b05;
    outline: 1px solid rgba(217, 199, 159, .22);
    padding: 8px 9px;
    background: rgba(8, 4, 2, .6);
    text-align: right;
}

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

.server-pill span {
    color: #cbb98f;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.server-pill strong {
    color: #9ff080;
    font-size: 14px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px;
    align-items: end;
    min-height: 210px;
    padding: 24px;
}

.hero-kicker,
.hero-card-label {
    display: inline-flex;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #000;
}

.hero-copy h1 {
    max-width: 620px;
    margin: 7px 0 8px;
    color: #fff0bf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
    text-shadow: 3px 3px 0 #130803, 0 0 16px rgba(0, 0, 0, .72);
}

.hero-copy p {
    max-width: 600px;
    margin: 0;
    color: #eadfc7;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #000;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.hero-card {
    border: 2px solid #150b05;
    outline: 1px solid rgba(217, 199, 159, .32);
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(95, 48, 19, .95), rgba(30, 16, 8, .95));
    box-shadow: inset 0 0 0 1px rgba(255, 240, 191, .08);
}

.hero-card > strong {
    display: block;
    color: #9ff080;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
    text-shadow: 2px 2px 0 #000;
}

.hero-card > small {
    display: block;
    color: #d9c79f;
}

.hero-metrics {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.hero-metrics div,
.status-box dl div,
.rank-row,
.order-row,
.feature-list div,
.info-grid div {
    border: 1px solid rgba(72, 41, 18, .45);
    background: rgba(255, 246, 218, .38);
}

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

.hero-metrics span {
    color: #dbc595;
}

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

.world-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 2px solid #140a05;
    background: #140a05;
}

.world-strip div {
    min-width: 0;
    border-right: 1px solid #140a05;
    padding: 9px 11px;
    background:
        linear-gradient(180deg, var(--paper-light), var(--paper));
    color: var(--ink);
}

.world-strip div:last-child {
    border-right: 0;
}

.world-strip span,
.world-strip small {
    display: block;
}

.world-strip span {
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;
}

.world-strip strong {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.world-strip small {
    overflow: hidden;
    color: var(--muted-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

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

.quick-button,
.button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #15340e;
    outline: 1px solid #a8d36f;
    padding: 7px 11px;
    background:
        linear-gradient(180deg, #9acd55, #4f8f2f 52%, #23601c);
    color: #ffffd7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 0 #103006;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .32);
    cursor: pointer;
}

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

.quick-button.download,
.button.ghost {
    border-color: #241408;
    outline-color: #8a6740;
    background:
        linear-gradient(180deg, #8a5c2c, #4c2b13 52%, #261308);
    color: #ffe4a4;
    text-shadow: 1px 1px 0 #000;
}

.button.primary {
    border-color: #15340e;
    outline-color: #a8d36f;
    background:
        linear-gradient(180deg, #a6d766, #4f8f2f 52%, #23601c);
}

.button.danger {
    border-color: #3b0905;
    outline-color: #bf6d59;
    background:
        linear-gradient(180deg, #b94431, #7c2118 55%, #4f130d);
    color: #fff0da;
}

.nav-box,
.status-box,
.theme-box {
    overflow: hidden;
    border: 2px solid var(--border-dark);
    outline: 1px solid var(--stone-light);
    background:
        linear-gradient(180deg, var(--stone-light), var(--stone) 34px, var(--wood) 35px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .36);
}

.content-box,
.form-panel,
.notice-panel,
.character-card,
.coin-card,
.download-panel,
.server-info-panel {
    overflow: hidden;
    border: 2px solid var(--border-dark);
    outline: 1px solid #856941;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .24), transparent 90px),
        var(--paper);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
}

.nav-box h2,
.status-box h2,
.theme-box h2,
.box-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    border-bottom: 2px solid #2b0b07;
    padding: 7px 9px;
    background:
        linear-gradient(180deg, #a53324, var(--red) 52%, var(--red-dark));
    color: #ffe9a7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 1px 1px 0 #160402;
}

.nav-box a {
    display: block;
    border-bottom: 1px solid rgba(217, 199, 159, .15);
    padding: 7px 10px 7px 16px;
    color: #ffe5a8;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #000;
}

.nav-box a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 7px 1px -10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 1px #130804;
}

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

.nav-box a:hover,
.nav-box a.active {
    background: rgba(200, 154, 56, .15);
    color: #fff7c8;
    text-decoration: none;
}

.menu-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 1px solid #2b0b07;
    background:
        radial-gradient(circle at 35% 30%, #f3d37d, #8a301f 62%, #2b0b07);
}

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

.status-box dl div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-color: rgba(217, 199, 159, .18);
    padding: 5px 7px;
    background: rgba(0, 0, 0, .18);
}

.status-box dt {
    color: #dbc595;
    font-weight: 700;
}

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

.content {
    min-width: 0;
}

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

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

.message {
    border: 2px solid var(--border-dark);
    outline: 1px solid #856941;
    margin: 0 0 10px;
    padding: 9px 11px;
    background: var(--paper-light);
    color: var(--ink);
    font-weight: 700;
}

.message.error {
    background: #f0c7b9;
    color: #5a120b;
}

.message.success {
    background: #cce2ad;
    color: #1c4215;
}

.news-entry {
    position: relative;
    border-bottom: 1px solid rgba(72, 41, 18, .3);
    padding: 14px 0 16px;
}

.news-entry:first-of-type {
    border: 1px solid #a9834e;
    margin-bottom: 14px;
    padding: 14px;
    background:
        linear-gradient(180deg, var(--paper-light), var(--paper-soft));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

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

.date-stamp {
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;
}

.news-entry h1,
.download-panel h1,
.notice-panel h1,
.form-panel h1,
.new-player-copy h1,
.account-head h1,
.coin-card h1 {
    margin: 5px 0 8px;
    color: #5d1a11;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.16;
}

.news-entry:first-of-type h1 {
    font-size: clamp(24px, 4vw, 34px);
}

.news-entry p,
.download-panel p,
.notice-panel p,
.new-player-copy p,
.muted {
    color: var(--ink);
}

.tag {
    display: inline-flex;
    margin-top: 8px;
    border: 1px solid #8d6a3b;
    padding: 3px 7px;
    background: #cdb789;
    color: #5d1a11;
    font-size: 11px;
    font-weight: 700;
}

.account-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid rgba(72, 41, 18, .25);
    padding-bottom: 12px;
}

.coins-balance {
    min-width: 140px;
    border: 1px solid #8d6a3b;
    padding: 8px 10px;
    background: var(--paper-light);
    text-align: right;
}

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

.coins-balance strong {
    color: var(--red);
    font-size: 21px;
}

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

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

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

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

.new-player-copy {
    border: 2px solid var(--border-dark);
    outline: 1px solid #856941;
    padding: 13px;
    background:
        linear-gradient(180deg, var(--paper-light), var(--paper));
    color: var(--ink);
}

.new-player-copy strong {
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
}

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

.form-panel h1,
.form-panel h2,
.section-subtitle,
.vocation-card h3,
.character-card h2 {
    margin: 0;
    color: #5d1a11;
    font-family: Georgia, "Times New Roman", serif;
}

label {
    display: grid;
    gap: 5px;
    color: var(--ink);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 34px;
    border: 2px solid #7e623b;
    padding: 6px 8px;
    background: #fff0c9;
    color: var(--ink);
    font: inherit;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(124, 33, 24, .16);
}

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

.section-subtitle {
    margin-top: 18px;
    border-bottom: 2px solid #8d6a3b;
    padding: 5px 0;
    font-size: 17px;
}

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

.char-meta span,
.vitals span {
    border: 1px solid #8d6a3b;
    padding: 4px 7px;
    background: var(--paper-light);
    color: var(--muted-ink);
    font-size: 11px;
}

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

.download-panel {
    min-height: 170px;
    display: grid;
    align-content: center;
    justify-items: start;
}

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

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

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

.feature-list div,
.info-grid div {
    display: grid;
    gap: 3px;
    padding: 9px;
    background: var(--paper-light);
}

.feature-list strong,
.info-grid strong {
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
}

.feature-list span,
.info-grid span {
    color: var(--ink);
}

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

.vocation-card {
    border: 1px solid #8d6a3b;
    padding: 10px;
    background: var(--paper-light);
}

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

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

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

.coin-card strong {
    display: block;
    margin: 4px 0 11px;
    color: var(--red);
    font-size: 21px;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: var(--paper-light);
}

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

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

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

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

.online-box strong {
    display: block;
    margin-top: 11px;
    color: #9ff080;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    line-height: 1;
    text-shadow: 2px 2px 0 #000;
}

.online-box span,
.theme-empty,
.offer-box span {
    display: block;
    color: #dbc595;
}

.rank-row {
    display: grid;
    gap: 2px;
    margin-top: 7px;
    padding: 7px 8px;
    color: #ffe5a8;
    text-shadow: 1px 1px 0 #000;
}

.rank-row:hover {
    border-color: rgba(217, 199, 159, .32);
    background: rgba(200, 154, 56, .14);
    color: #fff7c8;
    text-decoration: none;
}

.rank-row small {
    color: #cbb98f;
}

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

.offer-badge {
    display: inline-flex;
    margin-top: 11px;
    border: 1px solid #2b0b07;
    padding: 4px 8px;
    background: var(--red);
    color: #ffe9a7;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    text-shadow: 1px 1px 0 #000;
}

.offer-box strong {
    display: block;
    margin-top: 9px;
    color: #fff0bf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

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

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

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    border: 2px solid var(--border-dark);
    outline: 1px solid var(--stone-light);
    padding: 9px 12px;
    background:
        linear-gradient(180deg, #4b2d16, #211309);
    color: #d9c79f;
}

.site-footer span {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.site-footer a {
    color: #ffe5a8;
    font-size: 12px;
}

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

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

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

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

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

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

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 12px, 1120px);
        padding-top: 6px;
    }

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

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

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

    .brand strong {
        font-size: clamp(31px, 12vw, 44px);
    }

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

    .hero-copy h1 {
        font-size: clamp(31px, 12vw, 46px);
    }

    .sidebar,
    .themebar,
    .world-strip,
    .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,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .account-head,
    .site-footer {
        align-items: stretch;
    }

    .site-footer {
        flex-direction: column;
    }

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