.index-login-form {
  display: grid;
  gap: 14px;
}

.index-login-form .form-group {
  display: grid;
  gap: 8px;
}

.index-login-form label {
  color: var(--gold2);
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.index-login-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(120, 176, 245, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.index-login-form input::placeholder {
  color: #7f90a5;
}

.index-login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(120, 176, 245, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.index-login-form .cf-turnstile {
  margin: 4px 0 2px;
  display: flex;
  justify-content: center;
}

.forgot-link-inline {
  display: block;
  text-align: center;
  color: var(--gold2);
  font-weight: 700;
  margin-top: 2px;
  transition: 0.2s ease;
}

.forgot-link-inline:hover {
  color: #eef4fb;
}

.form-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.error-alert {
  background: rgba(62, 94, 138, 0.14);
  border: 1px solid rgba(62, 94, 138, 0.45);
  color: #cfe5ff;
  box-shadow: 0 0 14px rgba(62, 94, 138, 0.12);
}

.news-box .full-button,
.rank-box .full-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.news-box .news-item {
  grid-template-columns: 72px 1fr auto;
  align-items: center;
}

.news-box .news-body h3 {
  margin-bottom: 6px;
}

.team-divider-inline {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.rank-row .team-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
  text-align: center;
}

.rank-owner {
  color: #000;
  background: linear-gradient(90deg, #cbd6e4, #f4f8fc);
}

.rank-discord-admin {
  color: #fff;
  background: linear-gradient(90deg, #63b3ff, #315a8c);
}

.rank-gm {
  color: #fff;
  background: linear-gradient(90deg, #ff5151, #223754);
}

.rank-mod {
  color: #fff;
  background: linear-gradient(90deg, #77889c, #d9e5f2);
}

.rank-web {
  color: #fff;
  background: linear-gradient(90deg, #4e91d9, #d9e5f2);
}

.rank-helper {
  color: #fff;
  background: linear-gradient(90deg, #4e91d9, #223754);
}

.rank-box .rank-row {
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
}

.rank-box .rank-row span {
  flex-shrink: 0;
}

.rank-box .rank-row b {
  margin-bottom: 4px;
}

.rank-box .rank-row small {
  display: block;
  line-height: 1.35;
}

.calendar-grid {
  min-height: 320px;
}

.calendar-grid .calendar-day {
  min-height: 52px;
}

.calendar-grid .calendar-day:empty::after {
  content: "";
}

.news-box,
.rank-box,
.calendar-box {
  display: flex;
  flex-direction: column;
}

.news-box .section-title,
.rank-box .section-title,
.calendar-box .section-title {
  margin-bottom: 16px;
}

.rank-box .rank-list + .rank-list {
  margin-top: 0;
}

.status-item strong {
  letter-spacing: 0.04em;
}

@media (max-width: 1200px) {
  .news-box .news-item {
    grid-template-columns: 62px 1fr auto;
  }
}

@media (max-width: 860px) {
  .news-box .news-item {
    grid-template-columns: 54px 1fr;
  }

  .news-box .news-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .rank-box .rank-row {
    grid-template-columns: 38px 1fr;
  }

  .rank-box .rank-row i,
  .rank-box .team-rank {
    grid-column: 2;
    justify-self: start;
  }

  .index-login-form .cf-turnstile {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .index-login-form input {
    min-height: 52px;
    font-size: 0.98rem;
  }

  .forgot-link-inline {
    font-size: 0.95rem;
  }

  .rank-row .team-rank {
    width: 100%;
    justify-content: center;
  }
}

.hero-logo-art {
  width: min(560px, 100%);
  max-height: 700px;
  object-fit: contain;
  filter: drop-shadow(0 28px 38px rgba(0,0,0,0.42));
  transform: translateY(-50px);
}

.hero-flare-red {
  width: 260px;
  height: 260px;
  right: 90px;
  top: 110px;
  background: rgba(63, 125, 224, 0.58);
}

.hero-flare-gold {
  width: 220px;
  height: 220px;
  left: 120px;
  bottom: 210px;
  background: rgba(120, 176, 245, 0.50);
}

@media (max-width: 1200px) {
  .hero-logo-art {
    transform: translateY(-10px);
    max-height: 560px;
  }
}

.news-box .full-button,
.rank-box .full-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.hero-logo-art {
  width: min(560px, 100%);
  max-height: 700px;
  object-fit: contain;
  filter: drop-shadow(0 28px 38px rgba(0,0,0,0.42));
  transform: translateY(-50px);
}

.hero-flare-red {
  width: 260px;
  height: 260px;
  right: 90px;
  top: 110px;
  background: rgba(63, 125, 224, 0.58);
}

.hero-flare-gold {
  width: 220px;
  height: 220px;
  left: 120px;
  bottom: 210px;
  background: rgba(120, 176, 245, 0.50);
}

.news-box,
.rank-box,
.calendar-box {
  display: flex;
  flex-direction: column;
}

.news-box .section-title,
.rank-box .section-title,
.calendar-box .section-title {
  margin-bottom: 16px;
}

.calendar-event-viewer {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.calendar-event-placeholder {
  color: #bfbfbf;
  font-size: 14px;
  line-height: 1.5;
}

.calendar-event-content {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  width: 100%;
}

.calendar-event-label {
  color: #f0be52;
  font-weight: 700;
  margin-right: 8px;
}

.calendar-event-type {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.calendar-event-type.single {
  background: rgba(99, 179, 255, 0.18);
  color: #ffd36b;
}

.calendar-event-type.continuous {
  background: rgba(255, 77, 77, 0.18);
  color: #ff8b8b;
}

.calendar-event-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-grid .calendar-day {
  cursor: default;
}

.calendar-grid .calendar-day.has-event {
  cursor: pointer;
  transition: 0.2s ease;
}

.calendar-grid .calendar-day.has-event:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 179, 255, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.rank-box .rank-row {
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
}

.rank-box .rank-row span {
  flex-shrink: 0;
}

.rank-box .rank-row b {
  margin-bottom: 4px;
}

.rank-box .rank-row small {
  display: block;
  line-height: 1.35;
}

@media (max-width: 1200px) {
  .hero-logo-art {
    transform: translateY(-10px);
    max-height: 560px;
  }
}

@media (max-width: 860px) {
  .rank-box .rank-row {
    grid-template-columns: 38px 1fr;
  }

  .rank-box .rank-row i {
    grid-column: 2;
    justify-self: start;
  }
}

.site-copyright {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    color: #8e8577;
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-copyright strong {
    color: var(--gold2);
    font-weight: 700;
}



.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.zoomable-image:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;
    padding: 30px;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 95%;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;

    color: white;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;

    transition: 0.2s ease;
}

.lightbox-close:hover {
    color: var(--gold2);
}

@media (max-width: 720px) {
    .image-lightbox {
        padding: 12px;
    }

    .lightbox-image {
        max-width: 100%;
        border-radius: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 16px;
        font-size: 40px;
    }
}



.news-box {
    max-height: 620px;
    overflow: hidden;
}

.news-box .news-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 6px;
    flex: 1 1 auto;
}

.news-box .news-item {
    flex-shrink: 0;
}


.news-box .news-list::-webkit-scrollbar {
    width: 6px;
}

.news-box .news-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}

.news-box .news-list::-webkit-scrollbar-thumb {
    background: rgba(120, 176, 245, 0.55);
    border-radius: 999px;
}

.news-box .news-list::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 176, 245, 0.85);
}

@media (max-width: 860px) {
    .news-box {
        max-height: 560px;
    }

    .news-box .news-list {
        max-height: 390px;
    }
}


:root {
  --bg: #02050b !important;
  --bg2: #08111c !important;
  --panel: rgba(7, 12, 20, 0.96) !important;
  --line: rgba(86, 146, 219, 0.34) !important;
  --line-soft: rgba(120, 176, 245, 0.16) !important;
  --gold: #67a8ff !important;
  --gold2: #dde6f0 !important;
  --red: #315a8c !important;
  --red2: #4b83c9 !important;
  --text: #eef4fb !important;
  --muted: #9aa8b9 !important;
  --green: #70c7ff !important;
  --blue: #63b3ff !important;
  --purple: #8fa8d8 !important;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.40) !important;
}

html, body,
.admin-main,
.register-body,
.ranking-body,
.wiki-body,
.download-body,
.character-body,
.support-body,
.news-page-body {
  color: #eef4fb !important;
  background:
    radial-gradient(circle at 78% 14%, rgba(69, 126, 208, 0.14), transparent 18%),
    radial-gradient(circle at 22% 26%, rgba(124, 168, 232, 0.10), transparent 16%),
    linear-gradient(180deg, #02050b 0%, #060c14 100%) !important;
}

.topbar {
  background: rgba(2, 5, 11, 0.98) !important;
  border-bottom: 1px solid rgba(86, 146, 219, 0.14) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;
}

.logo,
.footer-logo {
  color: #dde6f0 !important;
  text-shadow: 0 0 14px rgba(99, 179, 255, 0.16) !important;
}

.logo span,
.footer-logo span {
  color: #63b3ff !important;
}

.hero-overlay,
.register-overlay,
.download-overlay,
.ranking-overlay,
.wiki-overlay,
.news-overlay,
.support-overlay,
.character-overlay {
  background:
    radial-gradient(circle at 74% 24%, rgba(99, 179, 255, 0.18), transparent 16%),
    radial-gradient(circle at 84% 64%, rgba(49, 90, 140, 0.18), transparent 14%),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.36)) !important;
}

.menu a,
.menu a:hover,
.menu a.active,
.hero-kicker,
.news-kicker,
.ranking-kicker,
.wiki-kicker,
.support-kicker,
.register-kicker,
.character-kicker,
.panel-kicker,
.download-kicker,
.admin-kicker,
.section-title,
.toolbar-group label,
.form-group label,
.index-login-form label,
.wiki-sidebar-title,
.wiki-section-title,
.admin-table th,
.ranking-table th {
  color: #dde6f0 !important;
}

.hero-title,
.register-copy h1,
.download-copy h1,
.ranking-hero-box h1,
.wiki-hero-box h1,
.news-hero-box h1,
.support-hero-box h1,
.character-hero-box h1,
.admin-hero-box h1 {
  color: #f4f8fc !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.42) !important;
}

.hero-title span,
.register-copy h1 span,
.download-copy h1 span,
.ranking-hero-box h1 span,
.wiki-hero-box h1 span,
.support-hero-box h1 span,
.character-hero-box h1 span,
.news-hero-box h1 span {
  color: #63b3ff !important;
}

.hero-subtitle,
.hero-text,
.register-text,
.download-text,
.ranking-text,
.support-text,
.character-text,
.news-hero-box p,
.wiki-hero-box p,
.admin-hero-box p {
  color: #c2cfde !important;
}

.play-now,
.btn,
.btn-red,
.btn-gold,
.full-button,
.full-gold,
.download-small-link,
.support-link-btn,
.ticket-submit,
.ticket-open-btn,
.admin-big-btn,
.admin-big-btn.red,
.admin-big-btn.gold,
.register-submit,
.account-action-btn,
.char-action-btn,
.change-password-btn,
.change-pin-btn,
.pin-submit-btn,
.password-submit-btn,
.logout-btn {
  background: linear-gradient(180deg, #446f9e 0%, #223754 100%) !important;
  color: #f4f8fc !important;
  border: 1px solid rgba(120, 176, 245, 0.26) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 10px 22px rgba(0,0,0,0.24),
    0 0 18px rgba(99, 179, 255, 0.10) !important;
}

.play-now:hover,
.btn:hover,
.full-button:hover,
.download-small-link:hover,
.support-link-btn:hover,
.ticket-submit:hover,
.ticket-open-btn:hover,
.admin-big-btn:hover,
.register-submit:hover {
  filter: brightness(1.08) !important;
}

.hero-panel,
.news-box,
.rank-box,
.calendar-box,
.register-card,
.download-copy,
.download-status-card,
.download-card,
.ranking-hero-box,
.news-hero-box,
.support-hero-box,
.character-hero-box,
.admin-hero-box,
.admin-stat-card,
.admin-action-card,
.admin-content-box,
.account-card,
.character-panel,
.char-detail,
.char-stats-card,
.char-visual-card,
.empty-character-box,
.news-full-card,
.sidebar-box,
.support-box,
.wiki-sidebar,
.wiki-content,
.ranking-table-wrap,
.info-card,
.event-modal,
.ticket-row,
.support-user-card > div,
.support-info-item {
  background: linear-gradient(180deg, rgba(12,18,28,0.96) 0%, rgba(8,13,22,0.96) 100%) !important;
  border: 1px solid rgba(86, 146, 219, 0.18) !important;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

.admin-hero-box::before {
  background: rgba(74, 131, 201, 0.20) !important;
}

.admin-stat-card strong,
.admin-action-card h3,
.download-status-card h2,
.register-card-head h2,
.support-box h2,
.character-panel-head h2,
.wiki-main h2,
.wiki-main h3,
.news-full-body h2,
.news-full-body h3,
.account-card-head strong,
.account-balance strong {
  color: #dde6f0 !important;
}

.admin-stat-card span,
.admin-action-card p,
.download-status-line span,
.register-card-head p,
.account-card-head span,
.account-balance span,
.support-user-card span,
.support-info-item p,
.news-full-body p,
.ranking-table td,
.admin-table td,
.wiki-main p,
.wiki-main li,
.rank-box .rank-row small,
.news-box .news-body p,
.character-name,
.character-meta,
.char-stats li,
.ticket-row p,
.ticket-row small {
  color: #a6b4c4 !important;
}

input,
select,
textarea,
.form-group input,
.form-group select,
.toolbar-group select,
.toolbar-group input,
.index-login-form input,
.ticket-form textarea,
.ticket-form input {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(120, 176, 245, 0.22) !important;
  color: #f4f8fc !important;
}

input::placeholder,
textarea::placeholder {
  color: #7f90a5 !important;
}

input:focus,
select:focus,
textarea:focus,
.form-group input:focus,
.form-group select:focus,
.toolbar-group input:focus,
.toolbar-group select:focus,
.index-login-form input:focus {
  border-color: rgba(99, 179, 255, 0.60) !important;
  box-shadow: 0 0 0 3px rgba(99, 179, 255, 0.12) !important;
  background: rgba(255,255,255,0.04) !important;
}

.admin-table th,
.admin-table td,
.ranking-table th,
.ranking-table td,
.download-status-line,
.account-card-head,
.news-full-head {
  border-color: rgba(86, 146, 219, 0.12) !important;
}

.news-date-box,
.rank-owner,
.rank-discord-admin,
.rank-gm,
.rank-mod,
.rank-web,
.rank-helper,
.character-count,
.badge,
.status-badge,
.promo-code-badge,
.conversion-badge,
.toolbar-badge,
.dot {
  background: linear-gradient(180deg, #365a83 0%, #22364f 100%) !important;
  color: #f4f8fc !important;
  border: 1px solid rgba(120, 176, 245, 0.22) !important;
}

.error-alert,
.register-error,
.ranking-alert,
.form-alert.error,
.ticket-error {
  background: rgba(62, 94, 138, 0.20) !important;
  border: 1px solid rgba(99, 179, 255, 0.22) !important;
  color: #d9e7f7 !important;
  box-shadow: none !important;
}

.download-warning,
.form-alert.success,
.ticket-success,
.register-success,
.notice-box {
  background: rgba(76, 121, 183, 0.14) !important;
  border: 1px solid rgba(99, 179, 255, 0.22) !important;
  color: #dce9f8 !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(86, 146, 219, 0.55) !important;
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04) !important;
}

.event-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.event-popup-box {
    position: relative;
    max-width: 900px;
    width: 100%;
    animation: popupShow .25s ease;
}

.event-popup-box img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(99,179,255,.35);
}

.event-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #101010;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: .2s;
}

.event-close:hover {
    background: #63b3ff;
    transform: scale(1.08);
}

@keyframes popupShow {
    from {
        opacity: 0;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media(max-width:768px){

    .event-popup{
        padding:10px;
    }

    .event-close{
        width:38px;
        height:38px;
        top:-10px;
        right:-10px;
        font-size:24px;
    }

}

.event-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: calc(100% - 30px);
    max-width: 420px;
    margin: 16px auto 0;
    padding: 14px 24px;

    color: #ffffff;
    background: linear-gradient(180deg, #168cff 0%, #075bb8 100%);
    border: 1px solid #66b9ff;
    border-radius: 6px;

    font-family: "Rajdhani", sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(0, 119, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.event-download-btn:hover {
    background: linear-gradient(180deg, #3da2ff 0%, #0870d8 100%);
    box-shadow:
        0 7px 24px rgba(0, 140, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.event-download-btn:active {
    transform: translateY(0);
}

.event-download-icon {
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 600px) {
    .event-download-btn {
        width: calc(100% - 20px);
        padding: 12px 16px;
        font-size: 17px;
    }
}

