:root {
    --bg: #10191e;
    --surface: #17262d;
    --surface-2: #21363f;
    --line: rgba(255, 255, 255, 0.16);
    --text: #f6fbfa;
    --muted: #b8cbc8;
    --gold: #ffd36d;
    --gold-2: #e5a93e;
    --teal: #37ead7;
    --red: #ef6f5c;
    --blue: #79a8ff;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(16, 25, 30, 0.5), #10191e 54%),
        url("/images/portal/hero-bg-battle.png") center top / cover fixed;
    color: var(--text);
    font-family: Inter, Cairo, Arial, sans-serif;
    line-height: 1.6;
}

body[dir="rtl"],
html[dir="rtl"] body {
    font-family: Cairo, Inter, Arial, sans-serif;
}

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

img,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: relative;
}

.simple-header {
    background: linear-gradient(180deg, rgba(18, 29, 35, 0.96), rgba(18, 29, 35, 0.74));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

.topbar {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 5;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-sigil {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 211, 109, 0.56);
    background: radial-gradient(circle, rgba(255, 211, 109, 0.24), rgba(18, 29, 35, 0.7));
    border-radius: 50%;
    box-shadow: 0 12px 36px rgba(255, 153, 54, 0.18);
}

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

.brand-sigil > span {
    color: #fff7df;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-shadow:
        0 0 14px rgba(55, 234, 215, 0.72),
        0 2px 0 rgba(0, 0, 0, 0.45);
}

.brand-mark strong {
    display: block;
    font-size: 26px;
    line-height: 1;
}

.brand-mark small {
    color: var(--muted);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    padding: 14px 18px;
    border-radius: 8px;
    color: #eef9f6;
    font-weight: 900;
    font-size: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.nav-links a:hover,
.nav-links .language-link {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-stage {
    min-height: 720px;
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    margin-top: -96px;
    padding: 190px max(24px, calc((100vw - 1320px) / 2)) 56px;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center top;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.08);
    opacity: 0.62;
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 14, 18, 0.86), rgba(13, 19, 23, 0.38) 52%, rgba(9, 14, 18, 0.72)),
        linear-gradient(180deg, rgba(9, 14, 18, 0.1), rgba(16, 25, 30, 0.94));
}

.hero-layout,
.hero-copy,
.hero-stats {
    position: relative;
    z-index: 2;
}

.hero-layout {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.hero-copy {
    width: min(860px, 100%);
}

.eyebrow {
    color: var(--teal);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0;
}

.server-emblem {
    position: relative;
    width: min(980px, 100%);
    min-height: clamp(320px, 33vw, 460px);
    display: grid;
    place-items: center;
    isolation: isolate;
    margin-inline-start: clamp(0px, 4vw, 72px);
}

.server-emblem h1 {
    position: relative;
    z-index: 3;
    margin: 0;
    width: fit-content;
    font-size: clamp(76px, 8.6vw, 146px);
    line-height: 0.9;
    letter-spacing: 0;
    color: #f4ffff;
    -webkit-text-stroke: 3px rgba(8, 36, 48, 0.92);
    paint-order: stroke fill;
    text-shadow:
        0 0 14px rgba(123, 248, 255, 0.94),
        0 0 32px rgba(20, 188, 255, 0.74),
        0 8px 0 rgba(8, 32, 44, 0.76),
        0 24px 44px rgba(0, 0, 0, 0.88);
}

.hero-dragon-logo {
    position: absolute;
    z-index: 2;
    inset: -5% -8%;
    width: 116%;
    height: 112%;
    object-fit: contain;
    pointer-events: none;
    filter:
        drop-shadow(0 0 18px rgba(59, 226, 255, 0.62))
        drop-shadow(0 18px 34px rgba(0, 0, 0, 0.7));
}

.hero-copy p {
    max-width: 720px;
    color: #eef7f3;
    font-size: 26px;
}

.hero-actions {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

.btn,
.submit,
button.submit {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 900;
    color: var(--text);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.submit:hover {
    transform: translateY(-1px);
}

.btn-primary,
.submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #161006;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
    border: 1px solid rgba(43, 214, 197, 0.26);
    background: rgba(16, 27, 33, 0.88);
    color: #dffdf8;
}

.btn-xl {
    min-height: 82px;
    padding: 22px 26px;
    font-size: 21px;
    min-width: 100%;
}

.btn-danger {
    background: rgba(239, 111, 92, 0.14);
    color: #ffd7d1;
    border: 1px solid rgba(239, 111, 92, 0.35);
    width: 100%;
}

.hero-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.hero-stats > span,
.panel,
.content-panel,
.sub-page-content,
.news-single,
.download-page,
.register-container,
.formbox,
.ranking-big,
.welcome-box,
.box-box,
.scroll-form {
    border: 1px solid var(--line);
    background: rgba(27, 43, 51, 0.86);
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.hero-stats > span {
    min-height: 86px;
    padding: 18px;
    display: grid;
    gap: 2px;
    color: var(--muted);
    backdrop-filter: blur(12px);
}

.hero-stats .online-meter {
    min-height: 236px;
    position: relative;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
    padding: 18px 18px 20px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 211, 109, 0.22), transparent 36%),
        radial-gradient(circle at 50% 68%, rgba(55, 234, 215, 0.25), transparent 44%),
        linear-gradient(180deg, rgba(32, 55, 64, 0.96), rgba(15, 28, 35, 0.94));
    border-color: rgba(255, 211, 109, 0.44);
    box-shadow:
        inset 0 0 34px rgba(255, 255, 255, 0.08),
        0 0 34px rgba(55, 234, 215, 0.2),
        var(--shadow);
}

.hero-stats .online-meter::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border-radius: 8px;
    background:
        linear-gradient(120deg, transparent, rgba(255, 211, 109, 0.12), transparent),
        radial-gradient(circle at 50% 88%, rgba(37, 230, 213, 0.22), transparent 38%);
    opacity: 0.86;
    animation: meterSweep 4.8s ease-in-out infinite;
}

.meter-face {
    position: relative;
    width: min(250px, 100%);
    aspect-ratio: 13 / 8;
    display: grid;
    place-items: center;
    margin-bottom: -18px;
}

.meter-face svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.36));
}

.meter-rail,
.meter-fill {
    fill: none;
    stroke-linecap: round;
    stroke-width: 18;
}

.meter-rail {
    stroke: rgba(255, 255, 255, 0.12);
}

.meter-fill {
    stroke: #ffd36d;
    stroke-dasharray: var(--online-fill) 100;
    filter: drop-shadow(0 0 12px rgba(255, 185, 60, 0.7));
    animation: meterArc 2.8s ease-in-out infinite;
}

.meter-ticks path {
    fill: none;
    stroke: rgba(238, 249, 246, 0.66);
    stroke-width: 5;
    stroke-linecap: round;
}

.meter-needle {
    transform-box: view-box;
    transform-origin: 130px 128px;
    transform: rotate(var(--online-angle));
    animation: meterNeedle 3.4s ease-in-out infinite;
}

.meter-needle path {
    fill: none;
    stroke: #37ead7;
    stroke-width: 9;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(55, 234, 215, 0.86));
}

.meter-pivot {
    fill: #fff2c5;
    stroke: #ffb33f;
    stroke-width: 5;
    filter: drop-shadow(0 0 14px rgba(255, 211, 109, 0.86));
}

.online-meter .meter-number {
    color: #fff8df;
    font-size: 52px;
    line-height: 0.95;
    text-shadow:
        0 0 18px rgba(255, 211, 109, 0.78),
        0 10px 24px rgba(0, 0, 0, 0.62);
    animation: meterNumber 2.6s ease-in-out infinite;
}

.online-meter em {
    color: #dffdf8;
    font-style: normal;
    font-weight: 900;
    font-size: 18px;
    text-shadow: 0 0 12px rgba(55, 234, 215, 0.55);
}

@keyframes meterNeedle {
    0%,
    100% {
        transform: rotate(calc(var(--online-angle) - 4deg));
    }

    50% {
        transform: rotate(calc(var(--online-angle) + 5deg));
    }
}

@keyframes meterNumber {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.04);
    }
}

@keyframes meterArc {
    0%,
    100% {
        stroke-width: 18;
    }

    50% {
        stroke-width: 22;
    }
}

@keyframes meterSweep {
    0%,
    100% {
        transform: translateX(-8px);
        opacity: 0.72;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

.hero-stats strong {
    color: var(--text);
    font-size: 26px;
}

.portal-grid {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.portal-main {
    width: min(1320px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    gap: 18px;
}

.page-main {
    margin-top: 34px;
}

.portal-dashboard {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.38fr) minmax(300px, 0.94fr);
    gap: 18px;
    align-items: stretch;
}

.portal-dashboard-ranks {
    grid-template-columns: 1fr;
}

.dashboard-column {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
}

.side-panel {
    display: grid;
    gap: 18px;
}

.panel,
.content-panel,
.sub-page-content {
    padding: 18px;
}

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

.panel-heading,
.heading-main,
.heading-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-heading h2,
.heading-main strong,
.heading-sub span {
    margin: 0;
    font-size: 20px;
    color: var(--gold);
    font-weight: 900;
}

.panel-heading a,
.switch .option {
    color: var(--teal);
    font-weight: 800;
    font-size: 13px;
}

.login-card,
.register,
.chat-form,
.charge-form,
.settings-form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 7px;
    color: #d8e7e5;
    font-weight: 800;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #102128;
    color: var(--text);
    border-radius: 8px;
    padding: 12px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(43, 214, 197, 0.72);
    box-shadow: 0 0 0 3px rgba(43, 214, 197, 0.12);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-row input {
    width: 18px;
    height: 18px;
}

.auth-links,
.quick-links {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.auth-links a,
.quick-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    color: #d8e7e5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
}

.forgot-link {
    display: inline-flex;
    width: fit-content;
    color: var(--teal);
    font-weight: 900;
    margin-top: 2px;
}

.security-question-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 211, 109, 0.28);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 211, 109, 0.14), rgba(55, 234, 215, 0.08));
}

.security-question-card span {
    color: var(--muted);
    font-weight: 900;
}

.security-question-card strong {
    font-size: 24px;
}

.security-question-card p {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.quick-links a:hover,
.auth-links a:hover {
    border-color: rgba(43, 214, 197, 0.34);
}

.player-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(244, 200, 106, 0.12), rgba(43, 214, 197, 0.08));
    border: 1px solid rgba(244, 200, 106, 0.2);
    border-radius: 8px;
}

.player-card span,
.player-card small,
.muted {
    color: var(--muted);
}

.player-card strong {
    font-size: 22px;
}

.logout-form {
    margin-top: 12px;
}

.mini-rank,
.event-list,
.stat-list {
    display: grid;
    gap: 10px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 211, 109, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 211, 109, 0.1), rgba(55, 234, 215, 0.08)),
        rgba(5, 11, 14, 0.72);
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-frame iframe {
    border: 0;
}

.video-placeholder {
    position: relative;
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
    color: #fff7dd;
    background:
        radial-gradient(circle at center, rgba(255, 211, 109, 0.28), rgba(12, 22, 28, 0.18) 42%, rgba(5, 11, 14, 0.86) 74%),
        url("/images/portal/hero-bg-battle.png") center / cover;
}

.video-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 17, 0.42);
}

.video-placeholder i,
.video-placeholder strong,
.video-placeholder span {
    position: relative;
    z-index: 1;
}

.video-placeholder i {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #140d04;
    font-size: 28px;
    box-shadow: 0 0 34px rgba(255, 189, 72, 0.46);
}

.video-placeholder strong {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
}

.video-placeholder span {
    color: var(--muted);
    font-weight: 900;
}

.home-action-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

.home-action-panel .hero-actions {
    margin: 0;
}

.home-action-panel .btn-xl {
    min-height: 82px;
}

.quick-start-panel,
.home-chat-panel {
    display: grid;
    align-content: stretch;
}

.quick-start-grid {
    display: grid;
    gap: 10px;
}

.quick-start-grid a {
    min-height: 66px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 211, 109, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 211, 109, 0.1), rgba(55, 234, 215, 0.06)),
        rgba(255, 255, 255, 0.045);
    font-weight: 900;
}

.quick-start-grid i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #161006;
    background: var(--gold);
}

.panel-text-button {
    border: 0;
    background: transparent;
    color: var(--teal);
    cursor: pointer;
    font-weight: 900;
}

.home-chat-panel {
    grid-template-rows: auto minmax(180px, 1fr) auto auto;
}

.home-chat-messages {
    min-height: 230px;
    max-height: 280px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(8, 18, 23, 0.5), rgba(8, 18, 23, 0.22)),
        rgba(8, 18, 23, 0.58);
}

.home-chat-row {
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.home-chat-empty {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
}

.home-chat-empty i {
    color: var(--gold);
    font-size: 34px;
}

.home-chat-row span,
.home-chat-empty strong {
    display: block;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
}

.home-chat-row p,
.home-chat-empty p {
    margin: 4px 0 0;
    color: #e9f6f3;
    overflow-wrap: anywhere;
}

.home-chat-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.home-chat-send-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
}

.home-chat-send-row button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #161006;
    cursor: pointer;
    font-weight: 900;
}

.home-chat-error {
    margin: 10px 0 0;
}

.mini-rank-row,
.stat-line,
.event-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.mini-rank-row span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #111;
    background: var(--gold);
    border-radius: 8px;
    font-weight: 900;
}

.mini-rank-row small,
.event-list span {
    color: var(--muted);
    font-weight: 800;
}

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

.stat-line strong {
    color: var(--teal);
    font-size: 22px;
}

.flash {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid;
    font-weight: 800;
}

.flash.success {
    color: #dffdf8;
    background: rgba(43, 214, 197, 0.11);
    border-color: rgba(43, 214, 197, 0.35);
}

.flash.danger,
.alert.failed {
    color: #ffe0db;
    background: rgba(239, 111, 92, 0.12);
    border-color: rgba(239, 111, 92, 0.4);
}

.home-stack,
.newsfeed,
.download-page,
.settings-grid,
.shop-grid,
.orders-list {
    display: grid;
    gap: 16px;
}

.intro-section,
.section-block,
.ready-section {
    border: 1px solid var(--line);
    background: rgba(27, 43, 51, 0.86);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 38px);
}

.intro-section h2,
.section-heading h2,
.ready-section h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.05;
}

.intro-section p,
.ready-section p {
    color: #d8e7e5;
    max-width: 760px;
    font-size: 18px;
}

.hero-side {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(14, 24, 30, 0.62);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.inline-actions {
    margin-top: 18px;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.section-heading span,
.ready-section span {
    color: var(--teal);
    font-weight: 900;
    text-transform: uppercase;
}

.feature-strip,
.download-grid,
.coins-select,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.feature-card,
.download-card,
.store-card,
.order-card {
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 8px;
}

.vote-card .btn {
    width: fit-content;
    margin-top: 8px;
}

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

.class-card {
    position: relative;
    min-height: 150px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(244, 200, 106, 0.12), rgba(43, 214, 197, 0.06)),
        rgba(255, 255, 255, 0.045);
    border-radius: 8px;
}

.class-card span {
    position: absolute;
    inset-inline-end: 14px;
    top: 8px;
    color: rgba(255, 255, 255, 0.14);
    font-size: 42px;
    font-weight: 900;
}

.class-card strong {
    color: var(--gold);
    font-size: 22px;
}

.class-card small {
    color: var(--muted);
    font-weight: 900;
}

.ready-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(244, 200, 106, 0.14), rgba(43, 214, 197, 0.08)),
        rgba(16, 27, 33, 0.9);
}

.download-path {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(43, 214, 197, 0.3);
    background: rgba(43, 214, 197, 0.08);
    border-radius: 8px;
}

.download-path span {
    color: var(--teal);
    font-weight: 900;
}

.download-path code {
    color: var(--text);
    overflow-wrap: anywhere;
}

.download-link-card span {
    color: var(--teal);
    font-weight: 900;
}

.feature-card strong,
.download-card strong,
.store-card strong,
.order-card strong {
    display: block;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 6px;
}

.news-single {
    padding: 16px;
}

.titlebar,
.order-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.titlebar span:first-child {
    color: var(--text);
    font-size: 18px;
}

.innertext {
    margin-top: 12px;
    color: #d8e7e5;
}

.more {
    margin-top: 14px;
}

.more a,
.price-link {
    color: var(--teal);
    font-weight: 900;
}

.ranking-big {
    overflow: hidden;
}

.lane-head,
.ranking-big .lane,
.pix-tab,
.lane {
    display: grid;
    grid-template-columns: 60px 56px 1fr 1fr 90px 90px;
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.ranking-big.rank-nobility .lane-head,
.ranking-big.rank-nobility .lane {
    grid-template-columns: 70px minmax(180px, 1.4fr) 100px minmax(120px, 0.8fr) minmax(160px, 1fr);
}

.ranking-big.rank-guilds .lane-head,
.ranking-big.rank-guilds .lane {
    grid-template-columns: 70px minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(160px, 0.8fr);
}

.lane-head {
    background: rgba(244, 200, 106, 0.12);
    color: var(--gold);
    font-weight: 900;
}

.ranking-big .lane,
.pix-tab.p-tbody .lane {
    border-top: 1px solid var(--line);
}

.face img {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.blue {
    color: var(--teal);
    font-weight: 900;
}

.buttons-vote {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rank-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.rank-option {
    min-height: 128px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 18px;
    border: 1px solid rgba(255, 211, 109, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 211, 109, 0.18), rgba(55, 234, 215, 0.08)),
        rgba(255, 255, 255, 0.06);
}

.rank-option i {
    color: var(--gold);
    font-size: 25px;
}

.rank-option strong {
    font-size: 22px;
    color: var(--text);
}

.rank-option span {
    color: var(--muted);
    font-weight: 900;
}

.download-card {
    display: grid;
    gap: 8px;
}

.download-card .btn {
    width: 100%;
}

.store-card {
    display: grid;
    gap: 10px;
}

.store-card .price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.status {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid var(--line);
}

.status.pending {
    color: var(--gold);
    background: rgba(244, 200, 106, 0.12);
}

.status.approved {
    color: var(--teal);
    background: rgba(43, 214, 197, 0.12);
}

.status.rejected {
    color: var(--red);
    background: rgba(239, 111, 92, 0.12);
}

.gm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.site-footer {
    width: min(1220px, calc(100% - 32px));
    margin: 26px auto;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.chat-toggle {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: var(--teal);
    color: #061112;
    font-size: 22px;
    z-index: 40;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.chat-dock {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 88px;
    width: min(360px, calc(100vw - 32px));
    height: 480px;
    display: none;
    grid-template-rows: auto 1fr auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 18, 23, 0.96);
    box-shadow: var(--shadow);
    z-index: 39;
    overflow: hidden;
}

.chat-dock.open {
    display: grid;
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.chat-head strong {
    color: var(--gold);
}

.chat-head button,
.chat-send-row button {
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.chat-messages {
    padding: 12px;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 10px;
}

.chat-error {
    margin: 10px 12px 0;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(239, 111, 92, 0.38);
    background: rgba(239, 111, 92, 0.12);
    color: #ffe0db;
    font-size: 13px;
    font-weight: 800;
}

.chat-row {
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.055);
    border-radius: 8px;
}

.chat-row span {
    display: block;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
}

.chat-row p {
    margin: 4px 0 0;
    color: #e9f6f3;
    overflow-wrap: anywhere;
}

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

.chat-send-row {
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 8px;
}

.chat-send-row button {
    border-radius: 8px;
    background: var(--gold);
    color: #171007;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 6px 9px;
}

.page-item.active span {
    background: var(--gold);
    color: #171007;
}

@media (max-width: 1080px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-side {
        width: min(520px, 100%);
    }

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

    .side-panel {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .portal-dashboard {
        grid-template-columns: 1fr;
    }

    .ready-section {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .topbar,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero-stage {
        min-height: 640px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .server-emblem {
        min-height: 300px;
        margin-inline-start: 0;
    }

    .server-emblem h1 {
        font-size: clamp(54px, 18vw, 76px);
        -webkit-text-stroke-width: 2px;
    }

    .hero-dragon-logo {
        inset: -8% -22%;
        width: 144%;
        height: 116%;
    }

    .lane-head,
    .ranking-big .lane {
        grid-template-columns: 44px 1fr 64px 64px;
    }

    .lane-head .face,
    .lane-head .guild,
    .ranking-big .face,
    .ranking-big .guild {
        display: none;
    }
}
