* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: #f0dfbf;
    background:
        linear-gradient(180deg, rgba(10, 7, 5, .72), rgba(14, 10, 7, .94) 360px),
        url("screenshots/hero.png") center top / cover fixed,
        #17100b;
    font-family: Georgia, "Times New Roman", serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,.48), transparent 22%, transparent 78%, rgba(0,0,0,.48)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
    mix-blend-mode: soft-light;
}
a { color: #ffd27b; }
a:hover { color: #fff0bd; }
.site-masthead {
    width: min(1180px, calc(100vw - 24px));
    min-height: 210px;
    margin: 0 auto;
    display: grid;
    align-items: end;
    padding: 28px 0 16px;
}
.brand-mark {
    display: inline-grid;
    gap: 6px;
    width: fit-content;
    text-decoration: none;
    color: #ffe0a0;
    text-shadow: 0 3px 0 #27150a, 0 0 22px #000;
}
.brand-mark strong {
    font-size: clamp(48px, 8vw, 92px);
    line-height: .85;
    letter-spacing: 0;
}
.brand-mark span {
    font-size: 15px;
    color: #f7c66f;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.quick-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.status-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid #745330;
    color: #f7dfad;
    background: rgba(34, 21, 12, .88);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 5px 16px rgba(0,0,0,.42);
}
.status-chip b { color: #7dff69; }
.page-shell {
    position: relative;
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 18px;
    width: min(1180px, calc(100vw - 24px));
    margin: 0 auto 22px;
}
.side-menu {
    position: sticky;
    top: 12px;
    align-self: start;
    padding: 8px;
    border: 2px solid #2a1a10;
    background: linear-gradient(#2a211a, #130e0a);
    box-shadow: inset 0 0 0 1px #9a7a53, 0 10px 26px #000b;
}
.logo {
    min-height: 86px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    color: #f6d28b;
    font-size: 38px;
    font-weight: 700;
    text-shadow: 2px 3px #090604;
    border: 1px solid #80613f;
    background:
        linear-gradient(rgba(26, 18, 12, .16), rgba(26, 18, 12, .78)),
        url("screenshots/feature-1.png") center 42% / cover;
}
.menu-block { margin-bottom: 5px; }
.menu-title {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: 38px 1fr 16px;
    align-items: center;
    gap: 8px;
    padding: 4px 7px;
    border: 1px solid #352319;
    color: #f1d7af;
    background: linear-gradient(#827469, #51463f 47%, #29231f);
    font: 700 20px Georgia, "Times New Roman", serif;
    text-shadow: 1px 2px #000;
    text-align: left;
    cursor: pointer;
}
.menu-title b { color: #65e85f; font-family: Arial, sans-serif; }
.menu-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #dcc58b;
    box-shadow: inset 0 0 0 2px #20140d, 0 2px 5px #0009;
    background: radial-gradient(circle at 35% 30%, #ffe786, #a96521 45%, #3b2115 70%);
}
.icon-2 { background: radial-gradient(circle at 70% 30%, #edf5ff, #7f8da1 45%, #251b18 70%); }
.icon-3 { background: radial-gradient(circle at 40% 35%, #b19cf4, #3b2b67 50%, #15101d 75%); }
.icon-4 { background: radial-gradient(circle at 45% 45%, #fff0a8, #c4832f 42%, #253d61 78%); }
.icon-5 { background: radial-gradient(circle at 55% 45%, #f7f3d3, #9c7a44 45%, #241c16 78%); }
.icon-6 { background: radial-gradient(circle at 45% 45%, #8bc4ff, #1f5c96 48%, #111920 78%); }
.icon-7 { background: radial-gradient(circle at 42% 42%, #ff9959, #92391f 47%, #1b1512 78%); }
.icon-8 { background: radial-gradient(circle at 40% 40%, #8b80ff, #403184 48%, #141021 78%); }
.menu-links {
    display: none;
    padding: 7px 8px 9px 48px;
    border: 1px solid #39251a;
    border-top: 0;
    background: rgba(24, 15, 10, .95);
}
.menu-links.open { display: grid; gap: 5px; }
.menu-links a {
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
}
.content { min-width: 0; }
.top-panel, .main-box, .notice {
    border: 2px solid #2a1a10;
    background: rgba(28, 18, 12, .95);
    box-shadow: inset 0 0 0 1px #9a7a53, 0 10px 26px #000b;
}
.top-panel {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 15px 17px;
    margin-bottom: 12px;
}
h1, h2, h3 {
    margin: 0 0 8px;
    color: #f4d187;
    text-shadow: 1px 2px #000;
    letter-spacing: 0;
}
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { line-height: 1.55; }
.top-panel p { margin: 0; }
.top-panel nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.top-panel nav a, .button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #a9824c;
    color: #27160a;
    background: linear-gradient(#ffe3a3, #c68c43 53%, #9e6226);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px #fff8, 0 3px 0 #4a2a13;
}
.online { color: #7dff69; font-weight: 700; }
.offline { color: #ff7373; font-weight: 700; }
.notice { padding: 10px 14px; margin-bottom: 12px; color: #fff0b8; }
.main-box { padding: 18px; min-height: 520px; }
.hero-card {
    min-height: 300px;
    display: grid;
    align-content: end;
    padding: 22px;
    margin: -18px -18px 18px;
    border-bottom: 2px solid #5e3d22;
    background:
        linear-gradient(180deg, rgba(18, 10, 6, .04), rgba(18, 10, 6, .86)),
        url("screenshots/hero.png") center / cover;
}
.hero-card h2 {
    max-width: 650px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1;
}
.hero-card p {
    max-width: 650px;
    margin: 4px 0 0;
    color: #fff0c9;
    font-size: 18px;
    text-shadow: 1px 2px #000;
}
.discord-callout {
    margin: 0 0 14px;
    padding: 18px 20px;
    border: 1px solid #6a4a2c;
    background:
        radial-gradient(circle at 94% 12%, rgba(86, 103, 242, .34), transparent 34%),
        linear-gradient(#3b2417, #1d110b);
}
.discord-callout h2 {
    font-size: 30px;
}
.discord-callout p {
    max-width: 720px;
    margin: 0 0 12px;
    color: #f7dfb4;
}
.discord-button {
    min-height: 48px;
    padding: 11px 24px;
    font-size: 20px;
}
.discord-link {
    margin: 12px 0 0 !important;
    font-size: 17px;
}
.discord-link a {
    color: #ffe39a;
    font-weight: 700;
}
.news-entry, .download-box, .feature-card, .guild-card {
    padding: 16px;
    border: 1px solid #5d432c;
    background: linear-gradient(#332216, #23160e);
}
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
    gap: 14px;
}
.news-update { margin-top: 14px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.feature-card {
    min-height: 172px;
    display: grid;
    align-content: end;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    position: relative;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(13, 7, 4, .88));
}
.feature-card > * { position: relative; }
.feature-card p { margin: 0; color: #f4e2bf; }
.feature-1 { background-image: url("screenshots/feature-1.png"); }
.feature-2 { background-image: url("screenshots/feature-2.png"); }
.feature-3 { background-image: url("screenshots/housing.png"); }
.feature-4 { background-image: url("screenshots/weapon-proficiency.png"); }
.guild-hero { min-height: 240px; }
.date { color: #c2a171; }
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.guild-card { margin-bottom: 14px; }
.highscore-filter, .highscore-box {
    margin-bottom: 14px;
    border: 2px solid #213244;
    background: #d5bf9b;
    color: #4b1605;
    box-shadow: inset 0 0 0 1px #efe0bf;
}
.highscore-filter h2, .highscore-box h2 {
    margin: 0;
    padding: 8px 14px;
    color: #fff0d4;
    background: #4a362c;
    text-shadow: 1px 2px #000;
    font-size: 20px;
}
.highscore-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
    gap: 12px 24px;
    align-items: end;
    padding: 14px;
}
.highscore-form label { display: grid; gap: 4px; }
.highscore-form select {
    min-height: 30px;
    color: #111;
    background: #fff;
    border-color: #76604c;
    font: 16px Arial, sans-serif;
}
.character-search-form {
    grid-template-columns: minmax(260px, 1fr) auto;
}
.character-search-form input {
    color: #111;
    background: #fff;
    border-color: #76604c;
    font: 16px Arial, sans-serif;
}
.character-info-table th {
    width: 220px;
}
.highscore-note {
    color: #ffd7a1;
    font-style: italic;
}
.pages {
    padding: 9px 12px;
    color: #3f1707;
    background: #e7d4b5;
    border-bottom: 1px solid #8d7458;
}
.pages a, .pages strong {
    margin: 0 5px;
    color: #003da3;
}
.highscore-table {
    margin: 0;
    color: #4b1605;
    font-family: Arial, sans-serif;
}
.highscore-table th {
    color: #4b1605;
    background: #c7ad84;
    text-shadow: none;
}
.highscore-table td { background: #e2cda9; }
.highscore-table tr:nth-child(even) td { background: #d1b88f; }
.grid, .account-head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}
.grid div, .account-head div, .rule-panel {
    padding: 13px;
    border: 1px solid #5a3c25;
    background: rgba(42, 26, 16, .92);
}
.grid strong, .account-head strong {
    display: block;
    color: #f4d187;
    margin-bottom: 4px;
}
.stone-list { margin: 0; padding-left: 20px; line-height: 1.8; }
.rules-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}
.form {
    display: grid;
    gap: 12px;
    max-width: 460px;
}
.wide-form { max-width: 720px; }
.inline-form {
    max-width: none;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
}
.form label { display: grid; gap: 5px; color: #f4d187; }
input, select {
    min-height: 38px;
    padding: 7px 9px;
    color: #f6ead5;
    background: #120b07;
    border: 1px solid #80613f;
    font: 16px Georgia, "Times New Roman", serif;
}
.download-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}
.download-box p { margin-bottom: 0; }
.install-guide {
    margin-top: 14px;
    padding: 20px 22px;
    border: 1px solid #8c6239;
    background:
        linear-gradient(90deg, rgba(46, 27, 17, .94), rgba(23, 13, 8, .96)),
        url("screenshots/weapon-proficiency.png") center / cover;
}
.install-guide h2 { margin-bottom: 12px; }
.guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 18px;
    align-items: stretch;
}
.guide-steps {
    padding: 14px 18px;
    border: 1px solid #6a4a2c;
    background: rgba(20, 10, 6, .84);
}
.guide-steps ol {
    margin: 0;
    padding-left: 22px;
}
.guide-steps li {
    margin: 9px 0;
    line-height: 1.35;
}
.smartscreen-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}
.smartscreen-panel {
    position: relative;
    min-height: 150px;
    padding: 14px;
    border: 1px solid #9bc7e6;
    background: #075083;
    color: #fff;
    box-shadow: inset 0 -32px 0 rgba(0, 0, 0, .16);
}
.smartscreen-panel h3 {
    margin: 0 0 10px;
    color: #fff;
    font: 20px Arial, sans-serif;
    text-shadow: none;
}
.smartscreen-panel p {
    color: #eef8ff;
    font: 14px Arial, sans-serif;
    text-shadow: none;
}
.step-marker {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #c92525;
    color: #121212;
    font: 700 24px Arial, sans-serif;
}
.guide-note {
    margin: 14px 0 0;
    color: #ffe7a0;
    font-weight: 700;
}
.store-hero {
    background:
        linear-gradient(90deg, rgba(18, 10, 6, .16), rgba(18, 10, 6, .82)),
        url("vyxia-coin-pot.png") center / cover;
}
.store-note {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    padding: 15px;
    border: 1px solid #6a4a2c;
    background: linear-gradient(#382216, #21130d);
}
.store-note img {
    width: 110px;
    height: 82px;
    object-fit: cover;
    border: 1px solid #8c6239;
}
.store-note p { margin: 0 0 6px; }
.store-refund-warning {
    display: inline-block;
    margin-top: 8px !important;
    padding: 10px 12px;
    color: #fff1bb;
    background: #76161d;
    border: 2px solid #f4d187;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.warning-text {
    color: #ffe7a0;
    font-weight: 700;
}
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.store-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #6a4a2c;
    background:
        radial-gradient(circle at 80% 8%, rgba(151, 31, 38, .38), transparent 38%),
        linear-gradient(#3b2417, #1c100b);
}
.coin-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
}
.coin-mark img {
    width: 58px;
    height: 58px;
}
.store-label {
    margin: 0;
    color: #f0b15f;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
}
.store-price {
    margin: 0;
    color: #fff2c2;
    font-size: 24px;
    font-weight: 700;
}
.store-card form {
    display: grid;
    gap: 10px;
}
.button:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.data-table th, .data-table td {
    padding: 10px 11px;
    border: 1px solid #5a3c25;
    text-align: left;
}
.data-table th { color: #f4d187; background: #3a281b; }
.data-table td { background: rgba(32, 20, 13, .92); }
.table-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 2px 4px 2px 0;
}
.table-form select { min-height: 30px; padding: 3px 6px; font-size: 14px; }
.mini-button {
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid #a9824c;
    color: #27160a;
    background: linear-gradient(#ffe3a3, #c68c43 53%, #9e6226);
    font-weight: 700;
    cursor: pointer;
}
.mini-button.danger {
    color: #fff0df;
    border-color: #9f5646;
    background: linear-gradient(#b45a45, #732b22);
}
@media (max-width: 900px) {
    .page-shell, .news-layout, .rules-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side-menu { position: static; }
    .top-panel { align-items: flex-start; flex-direction: column; }
    .inline-form { grid-template-columns: 1fr; }
    .highscore-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .site-masthead { min-height: 170px; }
    .feature-grid, .download-box, .guide-grid, .smartscreen-help { grid-template-columns: 1fr; }
    .hero-card { min-height: 240px; }
    .menu-title { font-size: 18px; }
}
