*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #d7d9dc;
    background:
        radial-gradient(circle at 50% -10%, rgba(201,167,90,.045), transparent 38%),
        #0b0b0b;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    outline: none;
}

a {
    color: inherit;
}

::selection {
    color: #fff;
    background: #9d7b38;
}

:focus-visible {
    outline: 1px solid #c9a75a;
    outline-offset: 2px;
}

.container,
.header-inner,
.nav-inner,
.footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    padding: 24px 20px;
}

.site-header,
.site-footer {
    background: #111;
}

.site-header {
    border: 0;
    box-shadow: none;
}

.header-inner {
    height: 62px;
    padding: 4px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-image {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 52px;
    object-fit: contain;
    transition: opacity .18s ease, transform .18s ease;
}

.site-logo:hover .site-logo-image {
    opacity: .9;
    transform: translateY(-1px);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.header-status {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(201,167,90,.12);
    border-radius: 5px;
}

.header-user-label {
    color: #666a70;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.header-user-name {
    max-width: 180px;
    overflow: hidden;
    color: #c9a75a;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav {
    background: #0d0d0d;
    border: 0;
    box-shadow: none;
}

.nav-inner {
    min-height: 40px;
    padding: 3px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.site-nav .nav-link {
    position: relative;
    min-height: 31px;
    padding: 5px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #92959a;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: #d5b66b;
    background: #191919;
    border-color: #333;
}

.site-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 0;
    height: 2px;
    background: #c9a75a;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .18s ease;
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
    width: 18px;
}

.page-title,
.news-title {
    margin-bottom: 7px;
    color: #e9eaec;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.page-title::after,
.news-title::after,
.character-page-header::after,
.change-password-header::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin: 9px auto 0;
    background: #c9a75a;
    border-radius: 2px;
}

.subtitle {
    margin-bottom: 20px;
    color: #74777d;
    text-align: center;
    font-size: 12px;
}

.card {
    margin-bottom: 14px;
    padding: 17px;
    background: #171717;
    border: 1px solid #292929;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.card h3,
.card h4 {
    margin-bottom: 7px;
    color: #ededed;
}

.card-header {
    color: #ededed;
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    margin-top: 7px;
}

.card-footer {
    margin-top: 11px;
    color: #707278;
    font-size: 11px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #b9bbc0;
    font-size: 11px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    height: 38px;
    margin-bottom: 9px;
    padding: 0 11px;
    color: #eee;
    background: #101010;
    border: 1px solid #303030;
    border-radius: 5px;
    outline: none;
    font-size: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-input:hover {
    border-color: #414141;
}

.form-input:focus {
    background: #121212;
    border-color: #b88a38;
    box-shadow: 0 0 0 2px rgba(184,138,56,.08);
}

.form-input::placeholder {
    color: #5f6268;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999ca2;
    font-size: 10px;
}

.form-checkbox input,
.form-checkbox-input {
    margin: 0;
    accent-color: #c9a75a;
}

.form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.dark-link {
    color: #c9a75a;
    text-decoration: none;
}

.dark-link:hover {
    color: #e0c276;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: linear-gradient(180deg,#b98b3d,#8f682c);
    border: 1px solid #b88938;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-submit:hover {
    background: linear-gradient(180deg,#c99a48,#a37632);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(184,138,56,.18);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 15px 40px;
}

.auth-container,
.login-container {
    width: 100%;
    margin: 26px auto;
}

.auth-container {
    max-width: 520px;
}

.login-container {
    max-width: 340px;
}

.auth-card,
.login-card,
.register-card {
    width: 100%;
    background: #15171b;
    border: 1px solid rgba(255,190,70,.16);
    border-radius: 8px;
    box-shadow: 0 15px 45px rgba(0,0,0,.3);
}

.auth-card {
    max-width: 520px;
    padding: 25px 28px;
}

.login-card {
    max-width: 340px;
    padding: 18px;
}

.register-card {
    max-width: 680px;
    margin: 20px auto 30px;
    overflow: hidden;
}

.auth-header,
.login-header {
    margin-bottom: 20px;
    text-align: center;
}

.auth-header h2,
.login-header h2 {
    color: #d9a441;
    font-weight: 700;
    letter-spacing: .5px;
}

.auth-header h2 {
    font-size: 23px;
}

.login-header h2 {
    font-size: 19px;
}

.auth-header p,
.login-header p {
    margin-top: 5px;
    color: #777b82;
    font-size: 11px;
}

.auth-divider,
.login-header::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin: 9px auto 0;
    background: #c9a75a;
    border-radius: 2px;
}

.auth-form {
    width: 100%;
}

.login-form .form-input,
.login-form .btn-submit {
    height: 36px;
}

.auth-footer,
.login-links {
    color: #686a70;
    text-align: center;
    font-size: 11px;
}

.auth-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #25272c;
}

.login-links {
    margin-top: 10px;
}

.auth-footer a,
.login-links a {
    color: #c29443;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover,
.login-links a:hover {
    color: #e0b25e;
}

.auth-message {
    width: 100%;
    max-width: 680px;
    margin: 12px auto 0;
    padding: 11px 14px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
}

.auth-message span {
    display: block;
    margin-top: 3px;
    opacity: .7;
    font-size: 11px;
}

.success-message {
    background: rgba(70,150,90,.08);
    border: 1px solid rgba(70,150,90,.25);
    color: #7fca91;
}

.error-message {
    background: rgba(180,70,70,.08);
    border: 1px solid rgba(180,70,70,.25);
    color: #d98282;
}

.register-header {
    padding: 20px;
    background: linear-gradient(180deg,#181a1f,#15161a);
    border-bottom: 1px solid #292b31;
    text-align: center;
}

.register-header h2 {
    color: #ededed;
    font-size: 19px;
    font-weight: 600;
}

.register-header p {
    margin-top: 4px;
    color: #6d7076;
    font-size: 10px;
}

.register-header-line {
    width: 34px;
    height: 2px;
    margin: 8px auto 0;
    background: #c9a75a;
    border-radius: 2px;
}

.register-body {
    padding: 20px;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px 16px;
}

.register-field {
    min-width: 0;
}

.register-field-full {
    grid-column: 1 / -1;
}

.form-group {
    width: 100%;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #62666d;
    font-size: 10px;
}

.optional {
    color: #656970;
    font-weight: 400;
}

.register-card .form-input {
    height: 40px;
}

.register-card .btn-submit {
    height: 42px;
    margin-top: 10px;
}

.register-footer {
    padding: 11px 20px;
    background: #141519;
    border-top: 1px solid #25272c;
    color: #666970;
    text-align: center;
    font-size: 10px;
}

.register-footer a {
    color: #c9a75a;
    text-decoration: none;
}

.account-quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-link {
    min-height: 42px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #111216;
    border: 1px solid #292b31;
    border-radius: 5px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

.account-link:hover {
    background: #1b1d21;
    border-color: #394047;
}

.account-link-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d21;
    border: 1px solid #30343a;
    border-radius: 5px;
    color: #c9a75a;
    font-size: 12px;
}

.account-link-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.account-link-content strong {
    color: #d7d7d7;
    font-size: 11px;
    font-weight: 600;
}

.account-link-content small {
    color: #666a70;
    font-size: 9px;
}

.account-link-arrow,
.account-action-arrow,
.account-setting-arrow {
    margin-left: auto;
}

.account-link-arrow {
    color: #555;
    font-size: 16px;
}

.account-link:hover .account-link-arrow {
    color: #c9a75a;
}

.account-link.danger:hover {
    border-color: #4a2929;
}

.account-link.danger .account-link-icon {
    color: #e27d7d;
}

.account-dashboard {
    width: 100%;
    max-width: 720px;
    margin: 22px auto 35px;
}

.account-dashboard-header,
.account-balance-card,
.donation-header,
.ranking-card,
.account-character-card,
.change-password-card {
    background: #17181c;
    border: 1px solid #292b31;
    border-radius: 8px;
}

.account-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
    padding: 16px 18px;
}

.account-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #c9a75a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.account-dashboard-header h2 {
    color: #eee;
    font-size: 18px;
    font-weight: 600;
}

.account-dashboard-header p {
    margin-top: 2px;
    color: #6d6f74;
    font-size: 10px;
}

.account-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    background: #131619;
    border: 1px solid #292e32;
    border-radius: 5px;
    color: #777;
    font-size: 9px;
    white-space: nowrap;
}

.account-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63d391;
    box-shadow: 0 0 7px rgba(99,211,145,.4);
}

.account-balance-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    margin-bottom: 10px;
    padding: 14px 16px;
}

.account-balance-item {
    min-width: 0;
    text-align: center;
}

.account-balance-label {
    display: block;
    margin-bottom: 4px;
    color: #666a70;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .9px;
}

.account-balance-value {
    display: block;
    color: #dcdcdc;
    font-size: 15px;
    font-weight: 600;
}

.account-balance-value.forcegem {
    color: #c59cff;
}

.account-balance-value.cash {
    color: #72d8e7;
}

.account-balance-divider {
    width: 1px;
    height: 28px;
    background: #292b31;
}

.account-actions {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.account-action-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px;
    background: #17181c;
    border: 1px solid #292b31;
    border-radius: 7px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.account-action-card:hover {
    background: #1c1e22;
    border-color: #3a4147;
    transform: translateY(-1px);
}

.account-action-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111216;
    border: 1px solid #2c3036;
    border-radius: 6px;
    color: #c9a75a;
    font-size: 13px;
}

.account-action-card.donation .account-action-icon {
    color: #78d69a;
}

.account-action-card.reset .account-action-icon {
    color: #e0b16c;
}

.account-action-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-action-content strong,
.account-action-content span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-action-content strong {
    color: #dedede;
    font-size: 10px;
    font-weight: 600;
}

.account-action-content span {
    color: #666a70;
    font-size: 8px;
}

.account-action-arrow {
    color: #555a60;
    font-size: 17px;
}

.account-action-card:hover .account-action-arrow {
    color: #c9a75a;
}

.account-settings {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    margin-top: 9px;
}

.account-setting-link {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #15161a;
    border: 1px solid #292b31;
    border-radius: 6px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

.account-setting-link:hover {
    background: #1b1d21;
    border-color: #394047;
}

.account-setting-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111216;
    border: 1px solid #2c3036;
    border-radius: 5px;
    color: #c9a75a;
    font-size: 10px;
}

.account-setting-text {
    color: #aeb0b4;
    font-size: 9px;
    font-weight: 600;
}

.account-setting-link:hover .account-setting-text {
    color: #d7d7d7;
}

.account-setting-arrow {
    color: #555a60;
    font-size: 15px;
}

.account-setting-link.logout .account-setting-icon {
    color: #d77b7b;
}

.account-setting-link.logout:hover {
    background: #1c1919;
    border-color: #4a2d2d;
}

.donation-container {
    width: 100%;
    max-width: 760px;
    margin: 22px auto 35px;
}

.donation-header {
    margin-bottom: 12px;
    padding: 16px 18px;
    text-align: center;
}

.donation-header h2 {
    color: #eee;
    font-size: 18px;
}

.donation-header p {
    margin-top: 4px;
    color: #6d6f74;
    font-size: 10px;
}

.donation-packages {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.donation-package {
    padding: 13px;
    background: #17181c;
    border: 1px solid #292b31;
    border-radius: 7px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.donation-package:hover {
    background: #1c1e22;
    border-color: #3b4449;
    transform: translateY(-1px);
}

.donation-package-amount {
    color: #dcdcdc;
    font-size: 11px;
    font-weight: 600;
}

.donation-package-cash {
    margin-top: 2px;
    color: #70d5e5;
    font-size: 17px;
    font-weight: 700;
}

.donation-package-bonus {
    margin-top: 3px;
    color: #78d69a;
    font-size: 9px;
}

.donation-package-items {
    margin-top: 6px;
    color: #777b80;
    font-size: 9px;
    line-height: 1.45;
}

.donation-note {
    margin-top: 10px;
    padding: 9px 11px;
    background: #15181a;
    border: 1px solid #292e31;
    border-radius: 5px;
    color: #70747a;
    font-size: 10px;
}

table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    background: #17181c;
    font-size: 12px;
}

table th,
table td {
    padding: 8px 10px;
    border-bottom: 1px solid #292b31;
    text-align: left;
}

table th {
    background: #202227;
    color: #999ca2;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

table tbody tr {
    transition: background .12s ease;
}

table tbody tr:hover {
    background: #202227;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.news-item,
.news-card {
    padding: 13px;
    background: #17181c;
    border: 1px solid #292b31;
    border-radius: 7px;
    transition: border-color .18s ease, background .18s ease;
}

.news-item:hover,
.news-card:hover {
    background: #191a1f;
    border-color: #34373e;
}

.news-item h3,
.news-header h3 {
    color: #eee;
    font-size: 14px;
    font-weight: 600;
}

.news-item small,
.news-date {
    display: block;
    margin-top: 2px;
    color: #6e7177;
    font-size: 9px;
}

.news-item p,
.news-content {
    margin-top: 7px;
    color: #bfc1c5;
    font-size: 11px;
    line-height: 1.5;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.no-news {
    padding: 20px;
    color: #70737a;
    text-align: center;
}

.info-message,
.error-message {
    margin: 9px 0;
    padding: 9px 11px;
    border-radius: 5px;
    font-size: 11px;
}

.info-message {
    color: #7bd8e5;
    background: #16262a;
    border: 1px solid #21464d;
}

.error-message {
    color: #ff8d8d;
    background: #301b1b;
    border: 1px solid #562929;
}

.collapsible-item {
    border-bottom: 1px solid #292b31;
}

.collapsible-toggle {
    width: 100%;
    padding: 10px 11px;
    color: #c9a75a;
    background: transparent;
    border: 0;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.collapsible-toggle:hover,
.collapsible-toggle.active {
    color: #e0c276;
    background: #202227;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 11px;
    color: #b8bbc0;
    background: #141519;
    font-size: 11px;
    line-height: 1.55;
    transition: max-height .2s ease, padding .2s ease;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: auto;
    padding: 30px 15px;
    background: rgba(0,0,0,.72);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 5vh auto;
    padding: 18px;
    background: #17181c;
    border: 1px solid #303239;
    border-radius: 7px;
    box-shadow: 0 15px 50px rgba(0,0,0,.35);
}

.modal-close {
    position: absolute;
    top: 7px;
    right: 12px;
    color: #777b82;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #ff7070;
}

.online-side-tab {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 900;
    min-width: 108px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: #bfc2c6;
    background: rgba(20,22,26,.96);
    border: 1px solid #30343a;
    border-right: 0;
    border-radius: 7px 0 0 7px;
    box-shadow: -5px 8px 25px rgba(0,0,0,.25);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.online-side-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-side-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #58d68d;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(88,214,141,.08), 0 0 9px rgba(88,214,141,.55);
    animation: onlinePulse 2s infinite;
}

.online-side-label {
    color: #777b81;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.online-side-count {
    min-width: 20px;
    color: #70e39e;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

@keyframes onlinePulse {
    0%,100% {
        opacity: 1;
        box-shadow: 0 0 0 3px rgba(88,214,141,.08), 0 0 9px rgba(88,214,141,.55);
    }

    50% {
        opacity: .65;
        box-shadow: 0 0 0 4px rgba(88,214,141,.04), 0 0 5px rgba(88,214,141,.3);
    }
}

.ranking-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.ranking-card {
    overflow: hidden;
}

.ranking-header {
    padding: 13px 15px;
    border-bottom: 1px solid #292b31;
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-title h3 {
    font-size: 14px;
    font-weight: 600;
}

.ranking-title span {
    display: block;
    margin-top: 2px;
    color: #72757b;
    font-size: 9px;
}

.ranking-nation-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
}

.ranking-capella .ranking-nation-icon {
    color: #c58cff;
    background: rgba(180,100,255,.1);
    border: 1px solid rgba(180,100,255,.15);
}

.ranking-capella .ranking-title h3 {
    color: #d09aff;
}

.ranking-procyon .ranking-nation-icon {
    color: #6dbbff;
    background: rgba(70,170,255,.1);
    border: 1px solid rgba(70,170,255,.15);
}

.ranking-procyon .ranking-title h3 {
    color: #78c2ff;
}

.ranking-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: transparent;
    font-size: 11px;
}

.ranking-table thead th {
    padding: 8px 11px;
    color: #666970;
    background: #141519;
    border-bottom: 1px solid #25272c;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.ranking-table tbody td {
    padding: 8px 11px;
    color: #c7c9cd;
    border-bottom: 1px solid #25272c;
    font-size: 11px;
}

.ranking-table tbody tr:hover {
    background: #1c1e22;
}

.ranking-table tbody tr:last-child td {
    border-bottom: 0;
}

.rank-column {
    width: 48px;
    text-align: center !important;
}

.rank-number {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #777b81;
    background: rgba(255,255,255,.045);
    font-size: 9px;
    font-weight: 700;
}

.ranking-player-name {
    color: #ddd;
    font-weight: 600;
}

.ranking-table tr.rank-1 {
    background: rgba(255,193,7,.035);
}

.ranking-table tr.rank-1 .rank-number,
.ranking-table tr.rank-1 .ranking-player-name {
    color: #ffd54a;
}

.ranking-table tr.rank-1 .rank-number {
    background: rgba(255,193,7,.12);
}

.ranking-table tr.rank-2 .rank-number {
    color: #d8d8d8;
    background: rgba(220,220,220,.09);
}

.ranking-table tr.rank-3 .rank-number {
    color: #d99b61;
    background: rgba(205,127,50,.09);
}

.ranking-level {
    min-width: 30px;
    padding: 3px 6px;
    display: inline-flex;
    justify-content: center;
    color: #ccc;
    background: rgba(255,255,255,.045);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.ranking-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ranking-status.online {
    color: #68d391;
}

.ranking-status.online .status-dot {
    background: #68d391;
    box-shadow: 0 0 7px rgba(104,211,145,.55);
}

.ranking-status.offline {
    color: #666970;
}

.ranking-status.offline .status-dot {
    background: #474a4f;
}

.ranking-empty,
.ranking-error {
    padding: 20px !important;
    color: #666970 !important;
    text-align: center;
}

.character-page {
    width: 100%;
    max-width: 900px;
    margin: 15px auto 35px;
}

.character-page-header {
    width: 100%;
    margin: 0 auto 15px;
    text-align: center;
}

.character-page-eyebrow,
.change-password-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #c9a75a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.character-page-header h2,
.change-password-header h2 {
    color: #eee;
    font-size: 22px;
    font-weight: 600;
}

.character-page-header p,
.change-password-header p {
    margin-top: 4px;
    color: #6d7076;
    font-size: 10px;
}

.account-character-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,390px));
    justify-content: center;
    gap: 12px;
}

.account-character-card {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.account-character-card:hover {
    background: #1a1c20;
    border-color: #394047;
    transform: translateY(-1px);
}

.account-character-top {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg,#191b20,#17181c);
    border-bottom: 1px solid #292b31;
}

.account-character-name {
    min-width: 0;
}

.account-character-label {
    display: block;
    margin-bottom: 3px;
    color: #666a72;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.account-character-top h3 {
    overflow: hidden;
    color: #e7e8ea;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-online-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    background: #111216;
    border: 1px solid #292c32;
    border-radius: 5px;
    color: #777b82;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.character-online-status > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #555960;
}

.character-online-status.online {
    color: #71d49a;
}

.character-online-status.online > span {
    background: #63d391;
    box-shadow: 0 0 7px rgba(99,211,145,.45);
}

.account-character-info {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-bottom: 1px solid #292b31;
}

.account-character-info > div {
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
}

.account-character-info > div + div {
    border-left: 1px solid #292b31;
}

.account-character-info span,
.account-character-footer span {
    display: block;
    margin-bottom: 3px;
    color: #666a71;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.account-character-info strong {
    display: block;
    overflow: hidden;
    color: #d9dade;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-character-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 5px;
    padding: 8px;
}

.account-character-stats > div {
    min-width: 0;
    padding: 7px 4px;
    background: #111216;
    border: 1px solid #25282e;
    border-radius: 5px;
    text-align: center;
}

.account-character-stats span {
    display: block;
    margin-bottom: 2px;
    color: #62666d;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .5px;
}

.account-character-stats strong {
    display: block;
    color: #d4d6d9;
    font-size: 11px;
    font-weight: 600;
}

.account-character-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: #131418;
    border-top: 1px solid #292b31;
}

.account-character-footer > div {
    min-width: 0;
}

.account-character-footer > div:last-child {
    text-align: right;
}

.account-character-footer strong {
    display: block;
    overflow: hidden;
    color: #898d95;
    font-size: 9px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-back-wrapper,
.change-password-back-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.character-back-button,
.change-password-back-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 13px;
    background: #15161a;
    border: 1px solid #292b31;
    border-radius: 5px;
    color: #858990;
    text-decoration: none;
    font-size: 9px;
    font-weight: 600;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.character-back-button:hover,
.change-password-back-button:hover {
    color: #c9a75a;
    background: #1b1d21;
    border-color: #394047;
    transform: translateY(-1px);
}

.character-back-arrow {
    color: #666b72;
    font-size: 13px;
}

.character-empty {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #17181c;
    border: 1px solid #292b31;
    border-radius: 8px;
    text-align: center;
}

.character-empty-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    background: #111216;
    border: 1px solid #292b31;
    border-radius: 7px;
    color: #c9a75a;
    font-size: 14px;
}

.character-empty strong {
    color: #dcdde0;
    font-size: 11px;
}

.character-empty span {
    margin-top: 3px;
    color: #666a70;
    font-size: 9px;
}

.change-password-page {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 5px 0 25px;
}

.change-password-header {
    margin-bottom: 15px;
    text-align: center;
}

.change-password-message {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin-bottom: 11px;
    padding: 9px 11px;
    border: 1px solid #292b31;
    border-radius: 6px;
    font-size: 10px;
}

.change-password-message-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

.change-password-message.success {
    background: #131d1e;
    border-color: #23464a;
    color: #8cc8cf;
}

.change-password-message.success .change-password-message-icon {
    background: #16434a;
    color: #72d3de;
}

.change-password-message.error {
    background: #1d1718;
    border-color: #4a292c;
    color: #c98d92;
}

.change-password-message.error .change-password-message-icon {
    background: #4a292c;
    color: #e2a0a6;
}

.change-password-card {
    width: 100%;
    padding: 17px;
    box-shadow: 0 8px 25px rgba(0,0,0,.14);
}

.change-password-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 13px;
    margin-bottom: 14px;
    border-bottom: 1px solid #25272c;
}

.change-password-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d2528;
    border: 1px solid #304146;
    border-radius: 6px;
    font-size: 15px;
}

.change-password-card-header strong {
    display: block;
    color: #e5e5e5;
    font-size: 12px;
}

.change-password-card-header span {
    display: block;
    margin-top: 2px;
    color: #696d73;
    font-size: 9px;
}

.change-password-field {
    margin-bottom: 11px;
}

.change-password-field label {
    display: block;
    margin-bottom: 5px;
    color: #aeb1b6;
    font-size: 9px;
    font-weight: 600;
}

.change-password-input {
    width: 100%;
    height: 37px;
    padding: 0 11px;
    background: #111216;
    border: 1px solid #2b2e34;
    border-radius: 5px;
    outline: none;
    color: #e5e5e5;
    font-size: 10px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.change-password-input::placeholder {
    color: #50535a;
}

.change-password-input:focus {
    background: #131519;
    border-color: #c9a75a;
    box-shadow: 0 0 0 2px rgba(201,167,90,.08);
}

.change-password-requirements {
    margin: 3px 0 13px;
    padding: 10px 11px;
    background: #131417;
    border: 1px solid #24262b;
    border-radius: 5px;
}

.change-password-requirements-title {
    margin-bottom: 5px;
    color: #aeb1b6;
    font-size: 9px;
    font-weight: 600;
}

.change-password-requirement {
    display: flex;
    gap: 6px;
    margin-top: 3px;
    color: #666a70;
    font-size: 8px;
}

.change-password-requirement span {
    color: #c9a75a;
}

.change-password-submit {
    width: 100%;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #b88938;
    border: 1px solid #b88938;
    border-radius: 5px;
    color: #071014;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    transition: background .18s ease, transform .18s ease;
}

.change-password-submit:hover {
    background: #c99a48;
    transform: translateY(-1px);
}

.lightpurple {
    color: #b19cd9;
}

.lightblue {
    color: #add8e6;
}

.lightgreen {
    color: #90ee90;
}

.red {
    color: #f44336;
}

.darkgreen {
    color: #388e3c;
}

.site-footer {
    margin-top: 30px;
    border-top: 0;
    color: #777;
}

.footer-inner {
    padding: 21px 20px 17px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-logo {
    color: #dcdcdc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.footer-logo:hover {
    color: #c9a75a;
}

.footer-tagline {
    color: #65686e;
    font-size: 8px;
    letter-spacing: .5px;
}

.footer-divider {
    width: 100%;
    max-width: 500px;
    height: 1px;
    margin: 14px auto;
    background: linear-gradient(to right,transparent,#303239,transparent);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 12px 0;
}

.footer-social a {
    color: #c9a75a;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: color .18s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #5f6268;
    font-size: 9px;
    text-align: center;
}

.footer-separator {
    color: #c9a75a;
    font-size: 7px;
}

.home-page {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.home-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 7%;
    background:
        radial-gradient(circle at 75% 45%,rgba(190,145,50,.18),transparent 34%),
        linear-gradient(110deg,#070707 0%,#0d0d0d 45%,#15110a 100%);
    border: 1px solid #292929;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../images/hero-bg.jpg") center/cover no-repeat;
    opacity: .28;
    filter: saturate(.75);
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
}

.home-hero::before {
    z-index: 1;
    background: linear-gradient(90deg,rgba(5,5,5,.96) 0%,rgba(5,5,5,.72) 42%,rgba(5,5,5,.25) 100%);
}

.home-hero::after {
    z-index: 2;
    background: linear-gradient(to bottom,transparent 70%,rgba(0,0,0,.9) 100%);
}

.home-hero-content {
    position: relative;
    z-index: 5;
    width: auto;
    max-width: 760px;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #c9a75a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 5px;
}

.home-hero-eyebrow::before {
    content: "";
    width: 38px;
    height: 1px;
    background: #c9a75a;
}

.home-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(60px,8vw,108px);
    line-height: .88;
    font-weight: 900;
    letter-spacing: -4px;
    text-transform: uppercase;
}

.home-hero h1 span {
    display: block;
    color: #c9a75a;
    text-shadow: 0 0 25px rgba(201,167,90,.22);
}

.home-hero-description {
    max-width: 600px;
    margin: 32px 0 36px;
    color: rgba(255,255,255,.67);
    font-size: 16px;
    line-height: 1.8;
}

.home-hero-buttons,
.home-community-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 0 28px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.home-button strong {
    font-size: 18px;
    font-weight: 400;
}

.home-button:hover {
    transform: translateY(-3px);
}

.home-button-primary {
    color: #090909;
    background: #c9a75a;
    border: 1px solid #c9a75a;
    box-shadow: 0 10px 35px rgba(201,167,90,.18);
}

.home-button-primary:hover {
    background: #e0c276;
    border-color: #e0c276;
    box-shadow: 0 14px 45px rgba(201,167,90,.3);
}

.home-button-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(10px);
}

.home-button-secondary:hover {
    border-color: rgba(201,167,90,.5);
    background: rgba(201,167,90,.08);
}

.home-hero-panel {
    position: absolute;
    right: 7%;
    bottom: 80px;
    z-index: 6;
    width: 290px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(10,10,10,.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.home-server-status {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.home-status-indicator {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #7ed957;
    box-shadow: 0 0 15px rgba(126,217,87,.8);
}

.home-server-status div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-server-status strong {
    color: #fff;
    font-size: 10px;
    letter-spacing: 2px;
}

.home-server-status span {
    color: #7ed957;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-online-count {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.home-online-count strong {
    display: block;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
}

.home-online-count span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,.42);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-server-type {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
}

.home-server-type-icon {
    color: #c9a75a;
    font-size: 13px;
}

.home-server-type strong {
    color: rgba(255,255,255,.75);
    font-size: 11px;
    letter-spacing: 1px;
}

.home-hero-scroll {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 55px;
    color: rgba(255,255,255,.35);
}

.home-hero-scroll span {
    width: 30px;
    height: 1px;
    background: #c9a75a;
}

.home-hero-scroll small {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-intro-section {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 110px 25px;
    text-align: center;
}

.home-intro-line {
    width: 55px;
    height: 1px;
    margin: 0 auto 28px;
    background: #c9a75a;
}

.home-intro-section h2 {
    margin: 15px 0 22px;
    color: #fff;
    font-size: clamp(36px,5vw,64px);
    line-height: 1;
    text-transform: uppercase;
}

.home-intro-section h2 span,
.home-media-heading h2 span,
.home-community-section h2 span {
    color: #c9a75a;
}

.home-intro-section h2 span {
    display: block;
}

.home-intro-section p {
    max-width: 650px;
    margin: auto;
    color: rgba(255,255,255,.52);
    font-size: 15px;
    line-height: 1.9;
}

.home-media-section {
    position: relative;
    padding: 110px 7%;
    background: linear-gradient(180deg,rgba(255,255,255,.015),rgba(255,255,255,.025));
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.home-media-heading {
    margin-bottom: 55px;
}

.home-media-subheading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.home-media-subheading span {
    display: block;
    margin-bottom: 7px;
    color: #c9a75a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
}

.home-media-subheading h3 {
    margin: 0;
    color: #fff;
    font-size: 25px;
}

.home-video-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.home-video-card {
    overflow: hidden;
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .3s ease, border-color .3s ease;
}

.home-video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,167,90,.45);
}

.home-video-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #050505;
}

.home-video-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.home-video-card:hover .home-video-preview img {
    transform: scale(1.05);
}

.home-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.65));
}

.home-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%,-50%);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #111;
    background: #c9a75a;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    transition: transform .25s ease, background .25s ease;
}

.home-video-play:hover {
    transform: translate(-50%,-50%) scale(1.08);
    background: #e0c276;
}

.home-video-play span {
    margin-left: 3px;
    font-size: 20px;
}

.home-video-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(0,0,0,.65);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.home-video-info {
    padding: 18px 20px 21px;
}

.home-video-info h4 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 15px;
}

.home-video-info span {
    color: rgba(255,255,255,.35);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-screenshot-heading {
    margin-top: 75px;
}

.home-screenshot-slider {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.home-screenshot-main {
    position: relative;
    width: 100%;
    padding: 0 34px;
}

.home-screenshot-stage {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at center,rgba(201,167,90,.055),transparent 58%),
        #080808;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow:
        0 25px 70px rgba(0,0,0,.42),
        inset 0 0 35px rgba(0,0,0,.4);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    isolation: isolate;
}

.home-screenshot-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,rgba(0,0,0,.22),transparent 15%,transparent 85%,rgba(0,0,0,.22)),
        linear-gradient(180deg,rgba(0,0,0,.16),transparent 20%,transparent 80%,rgba(0,0,0,.32));
}

.home-screenshot-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(201,167,90,.035);
}

.home-screenshot-stage.is-dragging {
    cursor: grabbing;
}

.home-screenshot-stage img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity .2s ease,
        transform .3s cubic-bezier(.22,.61,.36,1);
}

.home-screenshot-stage img.is-changing {
    opacity: 0;
    transform: scale(.985);
}

.home-screenshot-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(201,167,90,.3);
    border-radius: 50%;
    color: #c9a75a;
    background: rgba(9,9,9,.86);
    box-shadow: 0 8px 25px rgba(0,0,0,.4);
    backdrop-filter: blur(8px);
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.home-screenshot-arrow:hover {
    color: #fff;
    background: rgba(201,167,90,.14);
    border-color: rgba(201,167,90,.75);
    box-shadow:
        0 8px 28px rgba(0,0,0,.5),
        0 0 18px rgba(201,167,90,.1);
    transform: translateY(-50%) scale(1.06);
}

.home-screenshot-arrow:active {
    transform: translateY(-50%) scale(.94);
}

.home-screenshot-prev {
    left: 0;
}

.home-screenshot-next {
    right: 0;
}

.home-screenshot-info {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px 7px;
}

.home-screenshot-info span:first-child {
    color: #c9a75a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.home-screenshot-info span:last-child {
    color: rgba(255,255,255,.28);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-screenshot-thumbnails {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 3px 2px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.home-screenshot-thumbnails::-webkit-scrollbar {
    display: none;
}

.home-screenshot-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px auto 0;
}

.home-screenshot-control {
    width: 44px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(201,167,90,.35);
    border-radius: 2px;
    background: rgba(8,8,8,.82);
    color: #d8b568;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.home-screenshot-control:hover {
    color: #fff;
    background: rgba(201,167,90,.12);
    border-color: rgba(201,167,90,.75);
    transform: translateY(-1px);
}

.home-screenshot-control:active {
    transform: translateY(0);
}

.home-screenshot-counter {
    min-width: 78px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.home-media-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

.home-media-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.home-media-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.9);
    backdrop-filter: blur(12px);
}

.home-media-modal-content {
    position: relative;
    z-index: 2;
    width: min(1000px,95vw);
}

.home-media-modal-content video {
    width: 100%;
    display: block;
    background: #000;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 100px rgba(0,0,0,.7);
}

.home-media-modal-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.home-media-modal-title span {
    color: #c9a75a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
}

.home-media-modal-title strong {
    color: #fff;
    font-size: 20px;
}

.home-media-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    background: rgba(0,0,0,.6);
    font-size: 25px;
    cursor: pointer;
    z-index: 5;
}

.home-image-modal-content {
    position: relative;
    z-index: 2;
    max-width: 95vw;
    max-height: 90vh;
}

.home-image-modal-content img {
    max-width: 95vw;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 100px rgba(0,0,0,.8);
}

.home-image-modal-content .home-media-modal-close {
    top: -48px;
}

.home-community-section {
    position: relative;
    padding: 130px 25px;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(circle at center,rgba(201,167,90,.1),transparent 45%);
}

.home-community-content {
    position: relative;
    z-index: 2;
}

.home-community-section h2 {
    margin: 18px 0 20px;
    color: #fff;
    font-size: clamp(42px,6vw,76px);
    line-height: .95;
}

.home-community-section p {
    max-width: 550px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,.48);
    line-height: 1.8;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #111216;
}

::-webkit-scrollbar-thumb {
    background: #303239;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a75a;
}

@media (max-width: 1000px) {
    .home-hero {
        min-height: 700px;
        padding: 100px 6% 180px;
    }

    .home-hero-panel {
        right: 6%;
        bottom: 35px;
        width: 260px;
    }

    .home-video-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .home-screenshot-slider {
        max-width: 900px;
    }

    .home-screenshot-stage {
        height: 440px;
    }

    .home-screenshot-main {
        padding: 0 30px;
    }

    .home-screenshot-arrow {
        width: 40px;
        height: 40px;
        font-size: 23px;
    }
}

@media (max-width: 900px) {
    .ranking-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-screenshot-controls {
        margin-top: 12px;
        gap: 8px;
    }

    .home-screenshot-control {
        width: 42px;
        height: 36px;
    }

    .home-screenshot-counter {
        min-width: 72px;
        height: 36px;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 15px 12px;
    }

    .header-inner {
        height: 56px;
        padding: 3px 12px;
    }

    .site-logo-image {
        max-width: 195px;
        max-height: 46px;
    }

    .header-status {
        display: none;
    }

    .header-user {
        max-width: 155px;
        padding: 5px 8px;
    }

    .header-user-label {
        display: none;
    }

    .header-user-name {
        max-width: 135px;
        font-size: 9px;
    }

    .nav-inner {
        justify-content: flex-start;
        padding: 3px 8px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

    .site-nav .nav-link {
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 11px;
    }

    .page-title,
    .news-title {
        font-size: 20px;
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .register-field-full {
        grid-column: auto;
    }

    .register-container {
        max-width: 100%;
        margin-top: 15px;
    }

    table:not(.ranking-table) {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .news-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .account-dashboard {
        margin-top: 15px;
    }

    .account-actions {
        grid-template-columns: 1fr;
    }

    .account-action-card {
        min-height: 46px;
    }

    .account-character-grid {
        grid-template-columns: minmax(0,390px);
    }

    .donation-packages {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: 850px;
        padding: 90px 22px 230px;
        align-items: flex-start;
    }

    .home-hero h1 {
        font-size: 58px;
        letter-spacing: -2px;
    }

    .home-hero-description {
        font-size: 14px;
    }

    .home-hero-panel {
        left: 22px;
        right: 22px;
        bottom: 30px;
        width: auto;
    }

    .home-hero-scroll {
        display: none;
    }

    .home-intro-section {
        padding: 80px 22px;
    }

    .home-media-section {
        padding: 80px 22px;
    }

    .home-video-grid {
        grid-template-columns: 1fr;
    }

    .home-video-card {
        width: 100%;
    }

    .home-screenshot-heading {
        margin-top: 60px;
    }

    .home-screenshot-slider {
        max-width: 100%;
    }

    .home-screenshot-main {
        padding: 0;
    }

    .home-screenshot-stage {
        height: 360px;
        min-height: 0;
    }

    .home-screenshot-stage img {
        padding: 18px 38px;
    }

    .home-screenshot-arrow {
        width: 36px;
        height: 36px;
        font-size: 21px;
        background: rgba(8,8,8,.88);
    }

    .home-screenshot-prev {
        left: 9px;
    }

    .home-screenshot-next {
        right: 9px;
    }

    .home-screenshot-info {
        padding-top: 10px;
    }

    .home-screenshot-thumb {
        width: 32px;
        height: 27px;
    }

    .home-community-section {
        padding: 90px 22px;
    }

    .home-button,
    .home-hero-buttons {
        width: 100%;
    }

    .home-media-modal {
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .auth-page {
        padding: 15px 10px 30px;
    }

    .auth-card,
    .register-card {
        padding: 20px;
    }

    .register-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .auth-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 550px) {
    .account-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .account-settings {
        grid-template-columns: 1fr;
    }

    .account-character-grid {
        grid-template-columns: 1fr;
    }

    .account-character-top {
        padding: 12px;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 12px 9px;
    }

    .login-container,
    .auth-container {
        max-width: 100%;
        margin: 18px auto;
    }

    .login-card,
    .auth-card {
        padding: 16px;
    }

    .online-side-tab {
        top: auto;
        right: 9px;
        bottom: 10px;
        min-width: auto;
        border-right: 1px solid #30343a;
        border-radius: 6px;
        transform: none;
    }

    .account-balance-card {
        grid-template-columns: repeat(3,1fr);
        padding: 11px 5px;
    }

    .account-balance-divider {
        display: none;
    }

    .account-balance-label {
        font-size: 8px;
    }

    .account-balance-value {
        font-size: 13px;
    }

    .account-character-info > div {
        padding: 9px 5px;
    }

    .account-character-stats {
        gap: 4px;
        padding: 7px;
    }

    .change-password-page {
        padding: 5px 10px 22px;
    }

    .home-hero {
        padding: 28px 20px;
    }

    .home-hero h1 {
        font-size: 44px;
    }

    .home-hero-buttons,
    .home-community-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-button {
        width: 100%;
    }

    .home-community-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-screenshot-stage {
        height: 300px;
    }

    .home-screenshot-stage img {
        padding: 15px 35px;
    }

    .home-screenshot-info span:last-child {
        display: none;
    }
}

@media (max-width: 420px) {
    .header-inner {
        height: 53px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .site-logo-image {
        max-width: 175px;
        max-height: 43px;
    }

    .header-user {
        max-width: 125px;
        padding: 5px 7px;
    }

    .header-user-name {
        max-width: 110px;
        font-size: 8px;
    }

    .online-side-tab {
        right: 7px;
        bottom: 8px;
        padding: 7px 9px;
    }

    .account-balance-value {
        font-size: 12px;
    }

    .account-character-top h3 {
        max-width: 145px;
    }

    .character-online-status {
        padding: 4px 6px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 3px 9px;
    }

    .footer-social {
        gap: 15px;
    }

    .footer-separator {
        display: inline;
    }

    .home-hero h1 {
        font-size: 38px;
    }

    .home-screenshot-stage {
        height: 250px;
    }

    .home-screenshot-stage img {
        padding: 12px 32px;
    }

    .home-screenshot-arrow {
        width: 32px;
        height: 32px;
        font-size: 19px;
    }

    .home-screenshot-prev {
        left: 7px;
    }

    .home-screenshot-next {
        right: 7px;
    }

    .home-screenshot-thumb {
        width: 30px;
        height: 25px;
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.floating-server-widget {
    position: fixed;
    top: 50%;
    right: 10px;
    z-index: 9999;
    width: 64px;
    transform: translateY(-50%);
    transition: width .25s ease, transform .25s ease;
}

.floating-server-content {
    width: 100%;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 7px;
    background: rgba(12,14,18,.97);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    box-shadow: 0 12px 38px rgba(0,0,0,.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.floating-server-collapsed {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.floating-server-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    display: block;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,.6);
}

.floating-server-dot.is-online {
    background: #35d878;
    box-shadow: 0 0 9px rgba(53,216,120,.7);
}

.floating-server-dot.is-offline {
    background: #ef4444;
    box-shadow: 0 0 9px rgba(239,68,68,.6);
}

.floating-server-mini-players {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #e9e9e9;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.floating-server-mini-players strong {
    font-size: 13px;
    font-weight: 800;
}

.floating-server-mini-players span {
    font-size: 11px;
    line-height: 1;
}

.floating-server-mini-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777b81;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.floating-server-expanded {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.floating-server-expanded-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-server-expanded-status strong {
    color: #ef4444;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
    line-height: 1;
}

.floating-server-expanded-status strong.is-online {
    color: #35d878;
}

.floating-server-expanded-status strong.is-offline {
    color: #ef4444;
}

.floating-server-expanded-players {
    color: #e8e8e8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25px;
    line-height: 1.2;
    white-space: nowrap;
}

.floating-server-expanded-type {
    color: #777b81;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    white-space: nowrap;
}

.floating-server-toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #666a70;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    transition: color .18s ease, background .18s ease;
}

.floating-server-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.floating-server-toggle:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.06);
    outline: 1px solid rgba(201,167,90,.5);
    outline-offset: 1px;
}

.floating-server-widget.is-open {
    width: 205px;
}

.floating-server-widget.is-open .floating-server-content {
    min-height: 92px;
    justify-content: flex-start;
    padding: 15px 16px;
    border-radius: 8px 0 0 8px;
}

.floating-server-widget.is-open .floating-server-collapsed {
    display: none;
}

.floating-server-widget.is-open .floating-server-expanded {
    display: flex;
}

.floating-server-widget.is-open .floating-server-toggle {
    top: 8px;
    right: 8px;
}

.floating-server-widget.is-open #floatingServerToggleIcon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .floating-server-widget {
        right: 8px;
        width: 60px;
    }

    .floating-server-content {
        min-height: 102px;
    }

    .floating-server-widget.is-open {
        width: 190px;
    }

    .floating-server-widget.is-open .floating-server-content {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .floating-server-widget {
        right: 6px;
        width: 56px;
    }

    .floating-server-content {
        min-height: 96px;
        padding: 9px 6px;
    }

    .floating-server-mini-players {
        font-size: 12px;
    }

    .floating-server-mini-players strong {
        font-size: 12px;
    }

    .floating-server-mini-players span {
        font-size: 10px;
    }

    .floating-server-mini-type {
        font-size: 7px;
        letter-spacing: .8px;
    }

    .floating-server-widget.is-open {
        width: 175px;
    }

    .floating-server-widget.is-open .floating-server-content {
        min-height: 86px;
        padding: 12px 14px;
    }

    .floating-server-expanded-status strong {
        font-size: 13px;
    }

    .floating-server-expanded-players {
        font-size: 10px;
    }

    .floating-server-expanded-type {
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-server-widget,
    .floating-server-content,
    .floating-server-toggle {
        transition: none;
    }
}