:root {
    --bg: #e7dece;
    --panel: #f2ede3;
    --panel-2: #faf8f3;
    --text: #31343a;
    --muted: #736c61;
    --line: #d2c6b5;
    --accent: #f1a12a;
    --accent-2: #d77b17;
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 22%, rgba(255, 255, 255, .85) 0 2px, transparent 3px),
        radial-gradient(circle at 92% 42%, rgba(255, 255, 255, .78) 0 2px, transparent 3px),
        linear-gradient(180deg, #f5efe3 0%, var(--bg) 45%, #d8cbb7 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    min-height: 100vh;
}

body.auth-page {
    background:
        linear-gradient(90deg, rgba(16, 18, 24, .74), rgba(16, 18, 24, .36) 48%, rgba(16, 18, 24, .68)),
        var(--auth-bg),
        linear-gradient(180deg, #2b2926, #111318);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 28px;
    background: rgba(250, 247, 240, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 128px;
    height: 30px;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.admin-top-games {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 28px;
    overflow-x: auto;
    background: rgba(242, 237, 227, .96);
    border-bottom: 1px solid var(--line);
}

.admin-top-games a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-top-games img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.page {
    width: min(1580px, calc(100% - 32px));
    margin: 0 auto;
    padding: 4px 0 64px;
}

.page:has(.game-page) {
    width: 100%;
    padding: 0 0 64px;
}

.home-hero {
    display: flex;
    justify-content: center;
    padding: 22px 0 34px;
}

.home-logo {
    width: min(540px, 58vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(80, 70, 48, .14));
}

.home-games {
    display: grid;
    justify-items: center;
}

.game-showcase {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    width: 100%;
}

.showcase-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 246px;
    overflow: hidden;
    padding: 28px 46px;
    color: #fff;
    background:
        var(--card-bg, linear-gradient(transparent, transparent)),
        radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--card-accent) 45%, white), transparent 0 18%, transparent 19%),
        linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 60%, #111), #2c2b2a);
    background-size: cover, auto, auto;
    background-position: center, center, center;
    border-radius: 20px;
    box-shadow: 0 22px 46px rgba(80, 70, 48, .18);
    opacity: 0;
    transform: translateY(18px);
    clip-path: polygon(-18% 0, -18% 0, 0 100%, 0 100%);
    animation: cardSlashIn 1.35s cubic-bezier(.2, .82, .2, 1) forwards;
}

.showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .18));
}

.showcase-card:nth-child(2n) {
    clip-path: polygon(118% 0, 118% 0, 100% 100%, 100% 100%);
    animation-name: cardSlashInRight;
}

.showcase-card:nth-child(3n) {
    clip-path: polygon(0 -18%, 100% -18%, 100% 0, 0 0);
    animation-name: cardSlashInTop;
}

.showcase-card:nth-child(4n) {
    clip-path: polygon(0 100%, 100% 100%, 100% 118%, 0 118%);
    animation-name: cardSlashInBottom;
}

.showcase-card:nth-child(1) { animation-delay: .05s; }
.showcase-card:nth-child(2) { animation-delay: .18s; }
.showcase-card:nth-child(3) { animation-delay: .31s; }
.showcase-card:nth-child(4) { animation-delay: .44s; }
.showcase-card:nth-child(5) { animation-delay: .57s; }
.showcase-card:nth-child(6) { animation-delay: .70s; }
.showcase-card:nth-child(7) { animation-delay: .83s; }
.showcase-card:nth-child(8) { animation-delay: .96s; }
.showcase-card:nth-child(9) { animation-delay: 1.09s; }
.showcase-card:nth-child(10) { animation-delay: 1.22s; }

@keyframes cardSlashIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
        clip-path: polygon(-18% 0, -18% 0, 0 100%, 0 100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: polygon(0 0, 118% 0, 100% 100%, -18% 100%);
    }
}

@keyframes cardSlashInRight {
    0% {
        opacity: 0;
        transform: translateY(18px);
        clip-path: polygon(118% 0, 118% 0, 100% 100%, 100% 100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: polygon(-18% 0, 100% 0, 118% 100%, 0 100%);
    }
}

@keyframes cardSlashInTop {
    0% {
        opacity: 0;
        transform: translateY(18px);
        clip-path: polygon(0 -18%, 100% -18%, 100% 0, 0 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: polygon(0 0, 100% -18%, 100% 118%, 0 100%);
    }
}

@keyframes cardSlashInBottom {
    0% {
        opacity: 0;
        transform: translateY(18px);
        clip-path: polygon(0 100%, 100% 100%, 100% 118%, 0 118%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: polygon(0 -18%, 100% 0, 100% 100%, 0 118%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-card {
        opacity: 1;
        transform: none;
        clip-path: none;
        animation: none;
    }
}

.showcase-hero-art {
    position: absolute;
    right: -18px;
    bottom: 0;
    z-index: 1;
    max-width: 52%;
    max-height: 108%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .42));
    pointer-events: none;
}

.showcase-card.wide {
    grid-column: span 3;
}

.showcase-card.standard {
    grid-column: span 2;
}

.showcase-logo-slot {
    position: absolute;
    top: 28px;
    left: 46px;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 150px;
    height: 58px;
}

.showcase-logo-slot img {
    max-width: 170px;
    max-height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
}

.showcase-body {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 5px;
}

.showcase-body strong {
    font-size: 30px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0, 0, 0, .28), 0 14px 26px rgba(0, 0, 0, .55);
}

.showcase-body span {
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .55);
}

.admin-home-games {
    margin-top: 8px;
}

.admin-showcase-card {
    min-height: 282px;
}

.admin-showcase-card::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .24));
}

.admin-showcase-body {
    width: min(100%, 560px);
    gap: 14px;
}

.admin-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-card-metrics span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, .82);
    background: rgba(0, 0, 0, .34);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-shadow: none;
    backdrop-filter: blur(8px);
}

.admin-card-metrics b {
    color: #fff;
    font-size: 18px;
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-card-actions .button {
    position: relative;
    z-index: 3;
    min-width: 92px;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .52);
}

.admin-stats-panel {
    padding: 18px;
}

.payment-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 32px;
}

.payment-settings-grid > .panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.payment-settings-grid > .panel .account-form {
    flex: 1;
}

.admin-stats-list {
    display: grid;
    gap: 14px;
}

.admin-stat-group {
    padding: 14px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-stat-head {
    margin-bottom: 10px;
}

.admin-stat-head h2 {
    margin: 0;
    font-size: 16px;
}

.admin-stat-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(110px, 180px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.admin-stat-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.admin-stat-row:last-child {
    padding-bottom: 0;
}

.admin-stat-row span {
    color: var(--muted);
    font-weight: 800;
}

.admin-stat-row strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
    text-align: right;
}

.admin-stat-row small {
    color: var(--muted);
    line-height: 1.4;
}

.traffic-game-table-wrap {
    overflow-x: auto;
}

.traffic-table {
    display: grid;
    min-width: 760px;
}

.traffic-table-head,
.traffic-table-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(90px, .7fr));
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.traffic-table-head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.traffic-table-row {
    color: var(--text);
}

.traffic-table-row:last-child {
    border-bottom: 0;
}

.traffic-table-row span {
    display: grid;
    gap: 2px;
}

.traffic-table-row b {
    color: var(--text);
    font-size: 18px;
}

.traffic-table-row small {
    color: var(--muted);
    font-size: 12px;
}

.home-summary {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1.5fr;
    gap: 44px;
    align-items: center;
    margin-top: 60px;
    padding: 58px 72px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(97, 82, 52, .12);
}

.news-hub-hero .hero-copy p:last-child {
    max-width: 680px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.news-hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.news-hub-toolbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--text);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-hub-toolbar a.active {
    color: #17120a;
    background: var(--accent);
    border-color: rgba(120, 82, 28, .42);
}

.news-hub-toolbar span {
    color: inherit;
    font-size: 12px;
    opacity: .72;
}

.news-featured {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.news-featured-media {
    display: grid;
    min-height: 350px;
    overflow: hidden;
    background: #17120a;
    border-radius: 8px;
}

.news-featured-media img,
.news-featured-media span {
    width: 100%;
    height: 100%;
}

.news-featured-media img {
    object-fit: cover;
}

.news-featured-media span {
    display: grid;
    gap: 14px;
    place-items: center;
    padding: 24px;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 18%, rgba(244, 183, 49, .18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(242, 235, 222, .78));
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.news-featured-media span strong {
    align-self: start;
}

.news-featured-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 8px;
}

.news-featured-copy > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-featured-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: 34px;
    line-height: 1.12;
}

.news-featured-copy h2 a {
    color: inherit;
}

.news-featured-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.news-featured-copy .button {
    justify-self: start;
}

.news-featured-context {
    color: var(--text) !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.news-card-link {
    display: grid;
    grid-template-rows: 172px 1fr;
    height: 100%;
}

.news-card img,
.news-card-placeholder {
    width: 100%;
    height: 172px;
}

.news-card img {
    object-fit: cover;
    background: #17120a;
}

.news-card-placeholder {
    display: grid;
    gap: 10px;
    place-items: center;
    padding: 18px;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 16%, rgba(244, 183, 49, .18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(242, 235, 222, .76));
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.news-card-placeholder strong {
    align-self: start;
}

.news-source-logo,
.news-card .news-source-logo,
.news-featured-media .news-source-logo {
    width: 72px;
    height: 72px;
    align-self: end;
    object-fit: contain;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(97, 82, 52, .12);
}

.news-card .news-source-logo {
    width: 58px;
    height: 58px;
    padding: 10px;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
    height: 100%;
}

.news-card-body span,
.news-article-head time,
.news-source-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-card-body h2 {
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}

.news-card-body p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.news-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-end;
    min-height: 32px;
    margin-top: auto;
}

.news-card-topics b {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    color: var(--text);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-pagination a {
    color: var(--text);
}

.news-pagination span {
    color: var(--muted);
}

.news-article {
    display: grid;
    gap: 18px;
    width: min(880px, 100%);
    margin: 34px auto 0;
}

.news-article-head {
    display: grid;
    gap: 10px;
}

.news-article-head h1 {
    margin-bottom: 0;
}

.news-article-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #17120a;
}

.news-article-excerpt {
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}

.news-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.news-insight {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.news-insight span,
.news-topic-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-insight p {
    margin: 0;
    color: var(--text);
    line-height: 1.62;
}

.news-topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-topic-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    color: var(--text);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.news-source-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    align-items: center;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.news-source-box span,
.news-source-box strong {
    grid-column: 1;
}

.news-source-box .button {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.home-summary h2 {
    max-width: 560px;
    color: #4c4a45;
    font-size: 46px;
    line-height: 1.08;
    text-transform: uppercase;
}

.home-summary h2::first-line {
    color: var(--accent);
}

.home-summary p {
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.summary-metric {
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 0;
}

.summary-metrics strong {
    color: var(--accent);
    font-size: 48px;
    line-height: 1;
}

.summary-metrics span {
    color: #4c4a45;
    font-weight: 800;
    text-transform: uppercase;
}

.summary-metrics img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.hero,
.game-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 0 28px;
}

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

.hero-copy {
    max-width: 920px;
}

.hero-text {
    display: grid;
    gap: 10px;
    max-width: 860px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.hero-text p {
    margin-bottom: 0;
}

.eyebrow {
    color: var(--accent);
    margin: 0 0 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 1000px;
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 14px;
}

h2 {
    font-size: 18px;
    margin-bottom: 0;
}

.lead {
    max-width: 740px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    color: #17120a;
    background: var(--accent);
    font-weight: 700;
    cursor: pointer;
}

.button-small {
    min-height: 32px;
}

.section,
.panel {
    margin-top: 24px;
}

.panel {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
}

.section-head h1,
.section-head h2 {
    color: var(--text);
}

.wallet-panel {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 14px 18px;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.wallet-panel span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.wallet-panel strong {
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
}

.notice {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.notice.success {
    color: #1c6d3a;
    background: #e8f7ed;
    border: 1px solid #bfe7cc;
}

.notice.error {
    color: #9c2d25;
    background: #fdeceb;
    border: 1px solid #f1c5c1;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.game-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.game-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    background-size: cover;
}

.game-logo {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

.game-body {
    padding: 18px;
}

.game-body p {
    min-height: 44px;
    color: var(--muted);
    line-height: 1.5;
}

.stats {
    display: flex;
    gap: 10px;
    color: var(--accent-2);
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
}

.game-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: calc(100vh - 58px);
    padding: 0 max(16px, calc((100vw - 1580px) / 2)) 64px;
    overflow: hidden;
}

.game-page::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 936px;
    min-height: 520px;
    transform: translateX(-50%);
    background-color: var(--bg);
    background-image: var(--game-page-bg);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.game-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 900px;
    transform: translateX(-50%);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, .02) 34%, rgba(238, 233, 223, .30) 56%, rgba(238, 233, 223, .92) 76%, var(--bg) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, .18));
    pointer-events: none;
}

.game-page-spacer {
    min-height: 370px;
}

.game-page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 640px;
    margin: -4px calc(50% - 50vw) 0;
    padding: 0 max(16px, calc((100vw - 1580px) / 2)) 64px;
    overflow: hidden;
    background-color: #161719;
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.game-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(238, 233, 223, .22) 78%, rgba(238, 233, 223, .90) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .08));
}

.game-page-overlay {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    color: #fff;
}

.game-page-logo {
    max-width: 220px;
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .55));
}

.game-page-overlay h1 {
    margin: 0;
    color: #fff;
    font-size: 48px;
    text-shadow: 0 18px 32px rgba(0, 0, 0, .54);
}

.game-filter-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(180px, 260px);
    justify-content: center;
    gap: 16px;
    align-items: center;
    width: min(1580px, 100%);
    margin: 0 auto 28px;
    padding: 20px 24px;
    background: rgba(234, 225, 210, .96);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(84, 70, 50, .18);
}

.game-filter-bar input,
.game-filter-bar select {
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #fff;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.toggle {
    width: 44px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #d7ccbb;
}

.pill {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #5a5246;
    background: transparent;
    font-weight: 800;
}

.pill.active {
    color: #fff;
    background: linear-gradient(180deg, #f8c23b, #e97812);
}

.game-content-grid {
    align-items: start;
    position: relative;
    z-index: 1;
    width: min(1580px, 100%);
    margin: 0 auto;
}

.game-content-grid .server-row {
    grid-template-columns: minmax(160px, 1fr) 70px 90px 120px 92px;
}

.rating-panel {
    background: rgba(255, 255, 255, .76);
    border-color: rgba(255, 255, 255, .74);
}

.server-list {
    display: grid;
    gap: 8px;
}

.server-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 110px 120px 92px;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 9px 12px;
    background: var(--panel-2);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
}

.server-row strong {
    color: var(--text);
}

.server-row.featured {
    border-color: rgba(244, 183, 49, .65);
    background: linear-gradient(90deg, rgba(244, 183, 49, .18), var(--panel-2));
}

.compact .server-row {
    grid-template-columns: minmax(160px, 1fr) 90px 110px 92px;
}

.top-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: var(--muted);
}

.top-list li {
    padding-left: 4px;
}

.top-list li::marker {
    color: var(--accent);
}

.top-list span {
    display: inline-block;
    width: 190px;
    color: var(--text);
}

.ad-slot {
    display: grid;
    place-items: center;
    height: 250px;
    margin-top: 18px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #111021;
}

.game-board-page {
    --board-panel: rgba(231, 222, 207, .94);
    --board-row: rgba(250, 248, 243, .98);
    --board-row-soft: rgba(248, 245, 238, .92);
    --board-text: var(--text);
    --board-heading: var(--text);
    --board-muted: var(--muted);
    --board-accent: var(--accent);
    --board-hot: #ff6b4a;
    background: var(--bg);
    color: var(--board-text);
}

.game-board-page::after {
    height: 820px;
    background:
        radial-gradient(ellipse at 10% 78%, rgba(231, 222, 207, .82) 0 15%, rgba(231, 222, 207, .42) 34%, transparent 58%),
        radial-gradient(ellipse at 34% 84%, rgba(231, 222, 207, .70) 0 13%, rgba(231, 222, 207, .34) 32%, transparent 56%),
        radial-gradient(ellipse at 68% 80%, rgba(231, 222, 207, .76) 0 16%, rgba(231, 222, 207, .38) 35%, transparent 60%),
        radial-gradient(ellipse at 96% 86%, rgba(231, 222, 207, .68) 0 12%, rgba(231, 222, 207, .30) 30%, transparent 52%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 42%, rgba(231, 222, 207, .08) 58%, rgba(231, 222, 207, .46) 82%, var(--bg) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .16));
}


.game-board-spacer {
    min-height: 330px;
}

.game-board-shell {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.game-board-filter {
    display: grid;
    grid-template-columns: auto minmax(180px, 260px);
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 14px 24px;
    background: rgba(232, 224, 210, .92);
    border-radius: 24px;
    box-shadow: 0 24px 46px rgba(15, 12, 24, .28);
}

.game-board-filter select {
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff;
}

.featured-strip {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.featured-strip h2,
.board-widget h2 {
    color: var(--board-muted);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.featured-scroll {
    display: grid;
    grid-auto-columns: minmax(190px, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-color: #8e879e transparent;
}

.featured-ticket {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) 54px 76px 62px;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    color: #5a5246;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.featured-ticket strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-ticket.highlight-blue,
.board-server-row.highlight-blue {
    background: linear-gradient(90deg, rgba(45, 152, 255, .22), rgba(255, 255, 255, .82));
    border: 1px solid rgba(45, 152, 255, .62);
}

.featured-ticket.highlight-gold,
.board-server-row.highlight-gold {
    background: linear-gradient(90deg, rgba(244, 183, 49, .28), rgba(255, 255, 255, .84));
    border: 1px solid rgba(244, 183, 49, .68);
}

.featured-ticket.highlight-red,
.board-server-row.highlight-red {
    color: #fff;
    background: linear-gradient(90deg, #ff4e5d, #ff7d2b);
    border: 1px solid rgba(255, 102, 63, .72);
}

.server-board-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.server-board-columns {
    display: grid;
    grid-template-columns: minmax(330px, .9fr) minmax(500px, 1.1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.server-board-column,
.board-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}

.server-board-section {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    background: var(--board-panel);
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 7px;
    box-shadow: 0 18px 36px rgba(61, 49, 34, .12);
}

.server-board-column:first-child .server-board-section {
    gap: 5px;
    padding: 6px 10px;
}

.server-board-column:first-child .board-section-head {
    min-height: 18px;
}

.server-board-column:first-child .board-server-row {
    min-height: 26px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.board-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--board-muted);
}

.board-section-head h3 {
    margin: 0;
    color: #41444b;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.board-section-head span {
    font-size: 12px;
}

.board-server-list {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.server-board-column:nth-child(2) .board-server-list {
    max-height: 720px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-color: #8e879e transparent;
}

.board-server-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 64px 92px 68px;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--muted);
    background: var(--board-row-soft);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    min-width: 0;
}

.board-server-row strong {
    overflow: hidden;
    color: #24272e;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-server-row span:not(.server-mark),
.board-server-row time {
    overflow: hidden;
    color: var(--muted);
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-server-row.highlight-blue strong,
.board-server-row.highlight-blue span:not(.server-mark),
.board-server-row.highlight-blue time {
    color: #17609f;
}

.board-server-row.highlight-gold strong,
.board-server-row.highlight-gold span:not(.server-mark),
.board-server-row.highlight-gold time {
    color: #8b650f;
}

.board-server-row.highlight-red strong,
.board-server-row.highlight-red span:not(.server-mark),
.board-server-row.highlight-red time {
    color: #fff;
}

.server-mark {
    width: 5px;
    height: 5px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.board-server-row.highlight-blue .server-mark,
.board-server-row.highlight-gold .server-mark,
.board-server-row.highlight-red .server-mark {
    width: 13px;
    height: 13px;
    margin-left: 0;
    clip-path: polygon(50% 0, 62% 32%, 96% 32%, 68% 52%, 80% 88%, 50% 66%, 20% 88%, 32% 52%, 4% 32%, 38% 32%);
}

.board-server-row.highlight-blue .server-mark {
    background: #2d98ff;
}

.board-server-row.highlight-gold .server-mark {
    background: var(--board-accent);
}

.board-server-row.highlight-red .server-mark {
    background: #fff;
}

.board-widget {
    padding: 18px 14px;
    background: var(--board-panel);
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 7px;
    box-shadow: 0 18px 36px rgba(61, 49, 34, .12);
}

.board-top-list {
    display: grid;
    gap: 13px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.board-top-list li {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: #24272e;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.board-top-list li::before {
    content: "";
    width: 14px;
    height: 14px;
    background: linear-gradient(180deg, #ffc24a, #e77b15);
    clip-path: polygon(50% 0, 62% 32%, 96% 32%, 68% 52%, 80% 88%, 50% 66%, 20% 88%, 32% 52%, 4% 32%, 38% 32%);
}

.board-top-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 6px;
}

.board-top-list a:hover {
    background: rgba(241, 161, 42, .12);
}

.board-top-list a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-top-list a strong {
    color: #6b6258;
}

.board-ad-slot {
    display: grid;
    place-items: center;
    width: 300px;
    max-width: 100%;
    min-height: 110px;
    overflow: hidden;
    color: #7a705f;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(230, 219, 202, .96)),
        radial-gradient(circle at 18% 18%, rgba(241, 161, 42, .18), transparent 34%);
    border: 1px dashed rgba(139, 126, 106, .50);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}

.board-ad-slot img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 110px;
    object-fit: cover;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

body.auth-page .page {
    display: grid;
    align-items: center;
    min-height: calc(100vh - 58px);
    padding: 32px 0 64px;
}

.auth-card {
    width: min(420px, 100%);
    margin: 40px auto;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

body.auth-page .auth-card {
    margin: 0 auto;
    background: rgba(250, 247, 240, .94);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
    backdrop-filter: blur(12px);
}

.captcha-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, .66);
    border: 1px dashed rgba(215, 123, 23, .7);
    border-radius: 8px;
}

.captcha-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.captcha-box strong {
    justify-self: end;
    min-width: 112px;
    padding: 8px 12px;
    color: #181a1f;
    background: linear-gradient(135deg, #ffd173, #f1a12a);
    border: 1px solid rgba(159, 98, 18, .24);
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0;
}

.captcha-box input {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, .9);
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
}

input[type="color"] {
    padding: 4px;
}

select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

.wide {
    width: min(760px, 100%);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tag-editor {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 8px 0 10px;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.tag-item button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.tag-list input {
    flex: 1 1 180px;
    min-width: 160px;
    border: 0;
    outline: 0;
    padding: 0 4px;
}

.file-field {
    position: relative;
}

.file-field input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-field span {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}

.file-field span::before {
    content: "Browse";
    margin-right: 10px;
    padding: 6px 10px;
    color: #151515;
    background: var(--accent);
    border-radius: 6px;
    font-weight: 800;
}

.rates-field {
    display: flex;
    align-items: stretch;
    min-height: 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.rates-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--muted);
    border-right: 1px solid var(--line);
    font-weight: 800;
    user-select: none;
}

.rates-field input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.error {
    color: var(--danger);
}

.note {
    margin: -3px 0 7px 12px;
    color: var(--danger);
    font-size: 13px;
}

.danger {
    color: #fff;
    background: var(--danger);
}

.moderation-item {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    background: var(--panel-2);
    border-radius: 8px;
}

.moderation-item .server-row {
    padding: 0;
    background: transparent;
}

.moderation-item p {
    color: var(--muted);
    margin-bottom: 0;
}

.moderation-actions {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    gap: 8px;
    align-items: center;
}

.moderation-actions form {
    min-width: 0;
}

.pending-admin-list {
    display: grid;
    gap: 12px;
}

.pending-server-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.pending-server-head div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pending-server-head strong {
    color: var(--text);
    font-size: 16px;
}

.pending-server-head span,
.pending-server-head a {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pending-server-head a {
    max-width: 420px;
    color: var(--accent-2);
    font-weight: 800;
}

.pending-edit-form {
    display: contents;
}

.pending-edit-form {
    grid-column: 1 / -1;
}

.pending-edit-form > :not(.pending-approve-button) {
    grid-row: 1;
}

.pending-name {
    grid-column: 1 / 2;
}

.pending-url {
    grid-column: 2 / 3;
}

.pending-rates {
    grid-column: 3 / 4;
}

.pending-version {
    grid-column: 4 / 5;
}

.pending-category {
    grid-column: 5 / 6;
}

.pending-date {
    grid-column: 6 / 7;
}

.moderation-actions {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.45fr) 84px 120px 78px 132px;
    gap: 8px;
    justify-content: center;
}

.pending-edit-form input,
.pending-edit-form select {
    min-width: 0;
}

.pending-edit-form .button {
    grid-column: 3 / 4;
    grid-row: 2;
    justify-self: end;
    min-width: 120px;
    align-self: center;
}

.pending-reject-form {
    display: contents;
}

.pending-reject-form .button {
    grid-column: 4 / 5;
    grid-row: 2;
    justify-self: start;
    min-width: 120px;
}

.game-admin-list {
    display: grid;
    gap: 8px;
}

.game-admin-row {
    display: grid;
    grid-template-columns: 48px minmax(160px, 1fr) 150px 90px 70px auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px;
    color: var(--muted);
    background: var(--panel-2);
    border-radius: 6px;
}

.game-admin-row strong {
    color: var(--text);
}

.user-admin-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.user-admin-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) 110px 120px 170px minmax(220px, .9fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.user-admin-row div {
    display: grid;
    gap: 4px;
}

.user-admin-row strong {
    color: var(--text);
}

.user-admin-row span {
    color: var(--muted);
}

.user-admin-coins-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-admin-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
}

.user-admin-actions > form {
    display: flex;
    width: max-content;
}

.user-admin-actions form {
    margin: 0;
}

.user-admin-actions input {
    width: 96px;
}

.support-thread-list {
    display: grid;
    gap: 10px;
}

.support-thread-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.support-thread-link {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr) auto auto;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.support-thread-row form {
    display: flex;
    justify-content: flex-end;
}

.support-thread-row div {
    display: grid;
    gap: 4px;
}

.support-thread-link p {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-thread-link span,
.support-thread-link time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.chat-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chat-thread {
    display: grid;
    gap: 12px;
}

.chat-message {
    width: min(680px, 88%);
    padding: 12px 14px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chat-message.mine {
    justify-self: end;
    border-color: rgba(241, 161, 42, .42);
    background: rgba(241, 161, 42, .14);
}

.chat-message.theirs {
    justify-self: start;
}

.chat-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.chat-message-meta span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.chat-message p {
    margin: 0;
    line-height: 1.5;
}

.chat-form {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.admin-game-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 10px;
    background: rgba(242, 237, 227, .94);
    border: 1px solid var(--line);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.admin-game-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}

.admin-game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.admin-game-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 6px 12px;
    align-items: center;
    min-height: 86px;
    padding: 12px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-game-card strong {
    color: var(--text);
    font-size: 16px;
}

.admin-game-card span {
    grid-column: 2;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-row-actions form {
    margin: 0;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.admin-game-section {
    scroll-margin-top: 82px;
}

.admin-section-note {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-game-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.admin-game-metrics span {
    padding: 10px 12px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.admin-game-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.admin-main-stack {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-side-stack {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-subpanel {
    min-width: 0;
    padding: 14px;
    background: rgba(250, 248, 243, .82);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-subpanel h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
}

.ad-placement-list,
.ad-admin-list,
.promotion-admin-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.ad-placement-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 72px 80px;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--muted);
    background: var(--panel-2);
    border-radius: 6px;
}

.ad-placement-row strong {
    color: var(--text);
}

.ad-form {
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) 180px 180px 120px minmax(180px, 1fr) auto;
    align-items: end;
}

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

.pricing-form,
.pricing-slot-list {
    display: grid;
    gap: 10px;
}

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

.pricing-slot-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px 70px auto;
    align-items: end;
    gap: 8px;
    padding: 10px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.pricing-slot-row strong {
    align-self: center;
    color: var(--text);
    overflow-wrap: anywhere;
}

.pricing-check {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.ad-admin-row {
    display: grid;
    grid-template-columns: 110px minmax(150px, 1fr) minmax(180px, 1.1fr) minmax(130px, .7fr) minmax(130px, .7fr) 144px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    background: var(--panel-2);
    border-radius: 6px;
}

.admin-main-stack .ad-admin-row {
    overflow: hidden;
}

.ad-admin-row > select,
.ad-admin-row > input {
    min-width: 0;
}

.admin-main-stack .ad-admin-row .ad-file-input {
    grid-column: 2 / 6;
}

.ad-file-input {
    height: 40px;
    overflow: hidden;
    padding: 5px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
}

.ad-file-input::file-selector-button {
    height: 28px;
    margin-right: 10px;
    padding: 0 12px;
    color: #17120a;
    background: var(--accent);
    border: 0;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
}

.ad-row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.admin-main-stack .ad-row-actions {
    grid-column: 6;
    grid-row: 1 / span 2;
    align-self: center;
}

.ad-preview {
    display: grid;
    place-items: center;
    width: 100px;
    height: 37px;
    overflow: hidden;
    color: var(--muted);
    background: #111021;
    border: 1px dashed var(--line);
    border-radius: 4px;
    font-size: 11px;
}

.ad-preview img,
.ad-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: var(--panel-2);
    border-radius: 6px;
}

.server-edit-form {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(190px, 1.3fr) 88px 120px 82px 132px 120px 110px 170px auto;
    gap: 8px;
    align-items: center;
}

.promotion-admin-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(150px, .8fr) 110px 110px 180px auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    color: var(--muted);
    background: var(--panel-2);
    border-radius: 6px;
}

.promotion-admin-row strong {
    color: var(--text);
}

.admin-logo {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #111021;
}

.admin-logo img,
.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-preview {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111021;
}

.asset-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cover-preview {
    display: grid;
    place-items: center;
    width: 220px;
    height: 96px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111021;
}

.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-bg-preview {
    display: grid;
    place-items: center;
    width: min(420px, 100%);
    height: 120px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111021;
}

.page-bg-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty {
    color: var(--muted);
    margin: 8px 0 0;
}

.account-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 24px;
}

.account-sidebar {
    position: sticky;
    top: 74px;
    display: grid;
    gap: 16px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.account-profile {
    display: grid;
    gap: 5px;
    color: var(--muted);
}

.account-profile strong {
    color: var(--text);
    font-size: 16px;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #17120a;
    background: var(--accent);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 900;
}

.account-nav {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.account-nav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: var(--muted);
    border-radius: 6px;
    font-weight: 800;
}

.account-nav a.active,
.account-nav a:hover {
    color: var(--text);
    background: var(--panel-2);
}

.account-balance {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 86px;
    padding: 14px 14px 14px 58px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 255, 255, .68), transparent 24px),
        linear-gradient(135deg, #fff8e8, #f7dca2 58%, #f1a12a);
    border: 1px solid rgba(215, 123, 23, .32);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.account-balance::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #ffd875, #f1a12a);
    border: 2px solid rgba(255, 255, 255, .72);
    box-shadow: 0 6px 16px rgba(128, 83, 16, .22);
    transform: translateY(-50%);
}

.account-balance::after {
    content: "E";
    position: absolute;
    left: 24px;
    top: 50%;
    color: #17120a;
    font-size: 14px;
    font-weight: 900;
    transform: translateY(-50%);
}

.account-balance span {
    color: #6c5423;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.account-balance strong {
    color: #17120a;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.account-content {
    min-width: 0;
}

.account-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: start;
}

.account-form {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.account-form.compact {
    padding: 0;
    background: transparent;
    border: 0;
}

.coin-package-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.coin-package-grid input {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1180px) {
    .payment-settings-grid {
        grid-template-columns: 1fr;
    }
}

.vip-purchase-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    gap: 18px;
    align-items: start;
}

.vip-occupancy-panel {
    min-width: 0;
}

.vip-occupancy-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.vip-occupancy-table th,
.vip-occupancy-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.vip-occupancy-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.vip-occupancy-table td {
    color: var(--text);
}

.vip-occupancy-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 820px) {
    .vip-purchase-row {
        grid-template-columns: 1fr;
    }

    .vip-occupancy-table th,
    .vip-occupancy-table td {
        padding: 10px;
    }
}

.project-list {
    display: grid;
    gap: 12px;
}

.project-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.project-card.highlighted {
    border-color: rgba(244, 183, 49, .72);
    background: linear-gradient(90deg, rgba(244, 183, 49, .18), var(--panel));
}

.project-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-card-head div {
    display: grid;
    gap: 4px;
}

.project-card-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-card-actions form {
    display: inline-flex;
    margin: 0;
}

.project-card-head strong {
    color: var(--text);
    font-size: 18px;
}

.project-card-head span,
.project-metrics span,
.slot-row span,
.slot-row small,
.banner-row span,
.banner-row time,
.wallet-hero p {
    color: var(--muted);
}

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

.project-metrics span {
    display: grid;
    gap: 4px;
    min-height: 54px;
    padding: 10px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 700;
}

.project-metrics b {
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}

.status-pill.ok {
    color: #1c6d3a;
    background: #e8f7ed;
    border-color: #bfe7cc;
}

.wallet-hero {
    display: grid;
    gap: 10px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.wallet-hero span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.wallet-hero strong {
    color: var(--accent-2);
    font-size: 34px;
    line-height: 1;
}

.coin-topup-form {
    display: grid;
    gap: 14px;
}

.coin-topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.coin-topup-option {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.coin-topup-option input {
    width: 16px;
    height: 16px;
}

.coin-topup-option strong {
    color: var(--text);
    font-size: 15px;
}

.coin-topup-option span {
    color: var(--muted);
    font-weight: 800;
}

.coin-topup-actions {
    display: flex;
    justify-content: flex-end;
}

.wallet-log {
    display: grid;
    gap: 8px;
}

.wallet-log-row {
    display: grid;
    grid-template-columns: 135px minmax(150px, 1fr) minmax(170px, 1fr) 100px 110px 90px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.wallet-log-head {
    min-height: 36px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.wallet-log-row strong,
.wallet-log-row b {
    color: var(--text);
}

.wallet-log-row b {
    color: #9c2d25;
}

.admin-log-list {
    display: grid;
    gap: 8px;
}

.admin-log-row {
    display: grid;
    grid-template-columns: 130px 90px 180px minmax(0, 1fr) minmax(120px, 180px);
    gap: 12px;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.admin-log-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-log-row time {
    color: var(--muted);
    font-weight: 800;
}

.admin-log-row strong,
.admin-log-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-log-row strong {
    color: var(--text);
}

.admin-log-row span {
    color: var(--muted);
}

.vote-offer {
    display: grid;
    grid-template-columns: minmax(190px, .4fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: center;
}

.vote-pack-card {
    display: grid;
    gap: 8px;
    min-height: 40px;
    padding: 2px;

    text-align: center;
	place-content: center;

    background: linear-gradient(
        135deg,
        rgba(224, 176, 86, .14),
        rgba(255, 255, 255, .02)
    ), var(--panel-2);

    border: 1px solid var(--line);
    border-radius: 8px;
}

.vote-pack-card span,
.vote-pack-card small {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.vote-pack-card strong {
    color: var(--accent-2);
    font-size: 42px;
    line-height: 1;
}

.vote-purchase-form {
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
}

.vote-project-list {
    display: grid;
    gap: 8px;
}

.vote-project-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 150px 120px 90px 130px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.vote-project-row strong {
    color: var(--text);
}

.slot-list,
.banner-table {
    display: grid;
    gap: 8px;
}

.slot-row,
.banner-row {
    display: grid;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.slot-row {
    grid-template-columns: minmax(180px, 1fr) 110px 120px;
}

.banner-row {
    grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) 190px 90px 90px;
}

.slot-row strong,
.banner-row strong {
    color: var(--text);
}

@media (max-width: 1180px) {
    .server-board-layout {
        grid-template-columns: 1fr;
    }

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

    .project-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .server-board-columns,
    .board-sidebar,
    .account-shell,
    .account-grid,
    .vote-offer {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .topbar,
    .hero,
    .game-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .game-page-hero {
        min-height: 420px;
        padding-bottom: 48px;
        background-size: cover;
    }

    .game-filter-bar {
        grid-template-columns: 1fr;
        margin-top: -56px;
        border-radius: 18px;
    }

    .server-row,
    .compact .server-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid,
    .moderation-actions,
    .pending-edit-form,
    .pending-reject-form,
    .admin-game-metrics,
    .admin-game-grid,
    .pricing-grid,
    .pricing-slot-row,
    .project-metrics,
    .ad-form,
    .ad-admin-row,
    .ad-placement-row,
    .slot-row,
    .banner-row,
    .wallet-log-row,
    .vote-purchase-form,
    .vote-project-row,
    .server-admin-row,
    .server-edit-form,
    .promotion-admin-row,
    .support-thread-row,
    .user-admin-row form {
        grid-template-columns: 1fr;
    }

    .chat-message {
        width: 100%;
    }

    .support-thread-link {
        grid-template-columns: 1fr;
    }

    .support-thread-row form {
        justify-content: stretch;
    }

    .support-thread-row form .button {
        width: 100%;
    }

    .admin-main-stack .ad-admin-row .ad-file-input,
    .admin-main-stack .ad-row-actions {
        grid-column: 1;
        grid-row: auto;
    }

    .game-admin-row {
        grid-template-columns: 48px 1fr;
    }

    .game-showcase,
    .home-summary,
    .news-featured,
    .news-insight-grid,
    .news-source-box,
    .summary-metrics {
        grid-template-columns: 1fr;
    }

    .showcase-card.wide,
    .showcase-card.standard {
        grid-column: span 1;
    }

    .showcase-card {
        min-height: 190px;
        padding: 24px;
    }

    .showcase-logo-slot {
        left: 24px;
    }

    .home-summary {
        padding: 30px;
    }

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

    .news-source-box .button {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }

    .home-summary h2 {
        font-size: 32px;
    }

    .news-featured {
        padding: 12px;
    }

    .news-featured-media {
        min-height: 230px;
    }

    .news-featured-copy {
        padding: 4px;
    }

    .news-featured-copy h2 {
        font-size: 26px;
    }

    .news-hub-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .news-hub-toolbar a {
        flex: 0 0 auto;
    }

    .game-board-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .game-board-spacer {
        min-height: 300px;
    }

    .game-board-filter,
    .server-board-layout,
    .server-board-columns {
        grid-template-columns: 1fr;
    }

    .game-board-filter {
        border-radius: 18px;
    }

    .featured-ticket {
        grid-template-columns: minmax(130px, 1fr) 54px 76px 62px;
    }

    .board-server-row {
        grid-template-columns: 14px minmax(110px, 1fr) 54px 78px;
    }

    .board-server-row time {
        grid-column: 2 / -1;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .home-summary {
        padding: 24px;
    }

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