@font-face {
    font-family: "Nanoplex";
    src: url("/fonts/Nanoplex.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Determination";
    src: url("/fonts/determination.ttf") format("truetype");
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #050b18;
    --panel: rgba(10, 20, 43, .86);
    --panel-strong: rgba(13, 26, 55, .94);
    --line: rgba(99, 131, 203, .28);
    --line-hot: rgba(255, 136, 31, .62);
    --text: #f7f9ff;
    --muted: #aeb9ce;
    --cyan: #42c8ff;
    --gold: #ffbe24;
    --orange: #ff7a19;
    --pink: #d941ff;
    --green: #20d769;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Nanoplex", system-ui, sans-serif;
    letter-spacing: 0;
    background:
        radial-gradient(circle at 52% 0%, rgba(82, 55, 202, .3), transparent 32rem),
        radial-gradient(circle at 84% 30%, rgba(0, 188, 255, .16), transparent 24rem),
        linear-gradient(180deg, #020713 0%, #071326 48%, #040916 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.42), transparent 72%);
}

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

button,
input {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 430px;
    gap: 20px;
    width: min(1880px, calc(100% - 32px));
    margin: 18px auto 0;
    align-items: start;
}

.side-panel,
.right-rail > section,
.hero-panel,
.rooms-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16, 27, 58, .88), rgba(5, 14, 32, .82));
    box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}

.side-panel {
    position: sticky;
    top: 18px;
    display: flex;
    min-height: calc(100vh - 92px);
    padding: 18px;
    flex-direction: column;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

.brand img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    filter: drop-shadow(0 0 12px rgba(255, 191, 35, .55));
}

.brand span {
    font-family: "Rubik", system-ui, sans-serif;
    font-size: clamp(2rem, 2.8vw, 3.35rem);
    font-weight: 900;
    line-height: .9;
    color: var(--gold);
    text-shadow: 0 3px 0 #b43f19, 0 0 20px rgba(255, 194, 36, .5);
}

.main-nav {
    display: grid;
    gap: 8px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(244, 247, 255, .82);
    font-size: 1rem;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
    border-color: var(--line-hot);
    color: #fff;
    background: linear-gradient(100deg, rgba(255, 126, 27, .6), rgba(211, 52, 220, .13));
    outline: 0;
}

.main-nav svg,
.topbar svg,
.section-head svg {
    width: 21px;
    height: 21px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 20, 44, .75);
}

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

.server-status strong {
    color: var(--muted);
    font-size: .85rem;
}

.server-status div > span {
    color: var(--green);
}

.pulse {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 20px rgba(32, 215, 105, .65);
}

.main-wrap {
    min-width: 0;
}

.topbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 620px) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.icon-button,
.pager button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #f5f7ff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 17, 38, .82);
}

.menu-toggle {
    display: none;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding: 0 16px;
    border: 1px solid rgba(91, 128, 209, .42);
    border-radius: var(--radius);
    background: rgba(7, 14, 34, .9);
}

.search-box input {
    width: 100%;
    min-width: 0;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.search-box kbd {
    padding: 4px 8px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255,255,255,.04);
    font-family: "Determination", monospace;
}

.user-pill {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-pill img {
    width: 58px;
    height: 58px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    object-fit: cover;
}

.user-pill strong,
.user-pill small {
    display: block;
}

.user-pill small {
    color: var(--cyan);
}

.user-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 14px;
}

.text-link {
    color: var(--muted);
}

.text-link:hover {
    color: var(--cyan);
}

.button.compact {
    min-height: 42px;
    padding: 0 14px;
    font-size: .9rem;
}

.dashboard {
    display: grid;
    gap: 18px;
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(360px, 1fr);
    min-height: 430px;
    padding: clamp(26px, 3vw, 50px);
    overflow: hidden;
}

.hero-panel::after {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    content: "";
    background: linear-gradient(0deg, rgba(4, 8, 22, .9), transparent);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
}

.eyebrow,
.section-head h2,
.profile-card h2,
.news-card h2,
.rewards-card h2 {
    margin: 0;
    font-family: "Rubik", system-ui, sans-serif;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--cyan);
    font-size: 1.35rem;
    font-weight: 800;
}

h1 {
    margin: 10px 0 20px;
    font-family: "Rubik", system-ui, sans-serif;
    font-size: clamp(2.8rem, 5vw, 5.6rem);
    font-weight: 900;
    line-height: .92;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 6px 0 rgba(0,0,0,.42);
}

.hero-copy p:not(.eyebrow) {
    max-width: 37ch;
    margin: 0 0 24px;
    color: #d7deed;
    font-size: 1.08rem;
    line-height: 1.55;
}

.hero-actions {
    display: grid;
    width: min(340px, 100%);
    gap: 14px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-family: "Determination", monospace;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
}

.button.primary {
    color: #1b1000;
    border: 1px solid #ffef8a;
    background: linear-gradient(180deg, #ffe36a, var(--gold) 56%, var(--orange));
    box-shadow: 0 0 22px rgba(255, 190, 36, .55);
}

.button.secondary {
    color: #fff;
    border: 1px solid rgba(220, 67, 255, .78);
    background: rgba(14, 19, 45, .72);
}

.hero-art {
    position: absolute;
    right: -4%;
    bottom: -10%;
    z-index: 1;
    width: min(67%, 860px);
    max-width: none;
    filter: saturate(1.12) contrast(1.04);
}

.rooms-panel,
.right-rail > section {
    padding: 18px;
}

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

.section-head h2,
.profile-card h2,
.news-card h2,
.rewards-card h2 {
    color: #dfe6f7;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.pager {
    display: flex;
    gap: 8px;
}

.pager button {
    width: 34px;
    height: 34px;
}

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

.room-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 17, 38, .72);
}

.room-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.room-card div {
    padding: 14px;
}

.room-card h3 {
    margin: 0 0 12px;
    font-family: "Determination", monospace;
    font-size: 1.15rem;
}

.room-card p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: var(--muted);
}

.room-card p span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.dots span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: rgba(255,255,255,.18);
}

.dots span:first-child {
    width: 18px;
    background: var(--orange);
}

.right-rail {
    display: grid;
    gap: 18px;
}

.profile-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
}

.profile-row > img {
    width: 128px;
    height: 158px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
    background: rgba(7, 16, 38, .72);
}

.name-line,
.level-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.name-line strong {
    font-family: "Determination", monospace;
    font-size: 1.35rem;
}

.level-line {
    margin-top: 16px;
    color: var(--muted);
}

.level-line span:last-child {
    color: var(--orange);
}

.meter {
    height: 6px;
    margin: 10px 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--orange));
}

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

.currency-list div {
    display: grid;
    grid-template-columns: 26px 1fr 32px;
    align-items: center;
    gap: 10px;
}

.currency-list svg {
    color: var(--gold);
}

.currency-list button {
    width: 32px;
    height: 28px;
    color: #dfe6f7;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255,255,255,.06);
}

.badge-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.badge-row span {
    display: grid;
    aspect-ratio: 1 / .68;
    place-items: center;
    border: 1px solid rgba(255, 190, 36, .65);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 190, 36, .15), rgba(14, 26, 58, .82));
}

.badge-row svg {
    color: var(--gold);
}

.section-head a,
.section-head > span {
    color: var(--orange);
    font-size: .95rem;
}

.news-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
}

.news-item img {
    width: 132px;
    height: 112px;
    border-radius: 6px;
    object-fit: cover;
}

.tag {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 5px;
    background: #ff452f;
    font-family: "Rubik", system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.news-item h3 {
    margin: 8px 0 6px;
    font-family: "Determination", monospace;
    font-size: 1.25rem;
}

.news-item p {
    margin: 0 0 8px;
    color: #d5dceb;
    line-height: 1.35;
}

.news-item time {
    color: var(--muted);
}

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

.reward-days > div {
    display: grid;
    min-height: 92px;
    place-items: center;
    padding: 8px 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(7, 16, 38, .72);
    text-align: center;
}

.reward-days .active {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 190, 36, .35);
}

.reward-days .claimed strong {
    color: var(--green);
}

.reward-days small,
.reward-days span {
    color: var(--muted);
}

.claim-button {
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    color: #fff;
    border: 1px solid rgba(255, 75, 228, .65);
    border-radius: var(--radius);
    background: linear-gradient(90deg, #7132d8, #e02e9e);
    font-family: "Rubik", system-ui, sans-serif;
    font-weight: 800;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 26px;
    width: min(1880px, calc(100% - 32px));
    margin: 24px auto 18px;
    color: rgba(221, 226, 240, .58);
    font-size: .9rem;
}

@media (max-width: 1380px) {
    .shell {
        grid-template-columns: 230px minmax(0, 1fr);
    }

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

    .rewards-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1040px) {
    .shell {
        grid-template-columns: 1fr;
        width: min(920px, calc(100% - 24px));
    }

    .side-panel {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 20;
        width: min(310px, 86vw);
        min-height: 100vh;
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .menu-open .side-panel {
        transform: translateX(0);
    }

    .menu-toggle {
        display: inline-grid;
    }

    .topbar {
        grid-template-columns: auto 1fr;
    }

    .user-pill {
        grid-column: 1 / -1;
        justify-self: stretch;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(7, 14, 34, .68);
    }

    .hero-panel {
        grid-template-columns: 1fr;
        min-height: 580px;
        align-content: start;
    }

    .hero-art {
        right: 50%;
        bottom: -6%;
        width: min(900px, 132%);
        transform: translateX(50%);
    }

    .room-grid,
    .right-rail {
        grid-template-columns: 1fr;
        grid-column: auto;
    }
}

@media (max-width: 660px) {
    .shell {
        width: min(100% - 18px, 560px);
        margin-top: 10px;
        gap: 12px;
    }

    .topbar {
        gap: 10px;
        margin-bottom: 12px;
    }

    .search-box {
        height: 48px;
    }

    .search-box kbd {
        display: none;
    }

    .hero-panel {
        min-height: 550px;
        padding: 22px;
    }

    .hero-actions {
        width: 100%;
    }

    .button {
        min-height: 54px;
        font-size: 1rem;
    }

    .profile-row,
    .news-item {
        grid-template-columns: 1fr;
    }

    .profile-row > img,
    .news-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

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