/* =========================================================
   HERO ONLINE — Classic MMORPG Portal
   Layout & palette inspired by infinityhero.online style
   ========================================================= */

:root {
  /* Infinity-style warm bronze palette */
  --bg: #1e0f07;
  --bg-deep: #100805;
  --panel: #2c1a10;
  --panel-2: #24150c;
  --panel-top: #3d2818;
  --panel-hover: #3a2416;
  --border: #7a5630;
  --border-mid: #a07838;
  --border-bright: #d4ae58;
  --gold: #c9a84e;
  --gold-bright: #efd27a;
  --gold-soft: #b89a58;
  --gold-dim: #9b8966;
  --text: #9b8966;
  --text-bright: #d2c19a;
  --text-dark: #5a4830;
  --online: #3ecf6a;
  --input-bg: #160e08;
  --input-border: #5c4024;
  --red-deep: #4a100c;
  --red-mid: #8a2018;
  --red-hot: #c02818;
  --discord: #5865f2;
  --icon: #c9a84e;
  --icon-muted: #8a7348;
  --frame: #9a7428;
  --wrap-w: 990px;
  --font: Verdana, Arial, Helvetica, sans-serif;
}

/* ---------- Icons ---------- */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  color: inherit;
  overflow: visible;
}

.icon-xs {
  width: 10px;
  height: 10px;
  vertical-align: middle;
}

.icon-sm {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.icon-section {
  width: 9px;
  height: 9px;
  margin-right: 6px;
  color: var(--border-bright);
  vertical-align: 0;
}

.icon-logo {
  width: 28px;
  height: 28px;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 6px rgba(212, 168, 74, 0.55));
  margin-bottom: 2px;
}

.icon-play {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.bb-icon .icon {
  width: 22px;
  height: 22px;
  color: var(--gold-bright);
}

.banner-discord .bb-icon .icon {
  color: #aab0ff;
}

.side-cta .icon {
  color: var(--gold-bright);
  width: 15px;
  height: 15px;
}

.arrow-menu .icon {
  color: var(--border-bright);
  width: 13px;
  height: 13px;
  margin-right: 2px;
}

.menu-list-icons a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-list-icons .icon {
  color: var(--gold-soft);
  width: 13px;
  height: 13px;
}

.menu-list-icons a:hover .icon {
  color: var(--gold-bright);
}

.section-title {
  display: flex;
  align-items: center;
}

.section-title.center {
  justify-content: center;
}

.fb-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fb-logo .icon {
  color: var(--gold);
  width: 16px;
  height: 16px;
}

.footer-sep {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--text-dark);
  vertical-align: middle;
  margin: 0 2px;
}

.gs-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gs-sub .icon {
  color: #f0d080;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  background: var(--bg) url("images/hero-banner.jpg") center top / cover fixed no-repeat;
  min-height: 100vh;
  line-height: 1.45;
}

/* Darken battle bg so UI stays readable */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(80, 20, 10, 0.3), transparent 55%),
    linear-gradient(180deg, rgba(18, 10, 5, 0.62) 0%, rgba(18, 10, 5, 0.82) 45%, var(--bg) 100%);
  pointer-events: none;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
}

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

button,
input {
  font-family: inherit;
}

/* ---------- Viewport / fixed width wrap ---------- */
.site-viewport {
  min-height: 100vh;
  background: transparent;
  position: relative;
  z-index: 1;
}

.wrap {
  width: var(--wrap-w);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* =========================================================
   SIDE PARTICLE COLUMNS (left / right of content)
   ========================================================= */
.side-fx {
  position: fixed;
  top: 0;
  bottom: 0;
  width: max(80px, calc((100vw - var(--wrap-w)) / 2));
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(40, 20, 8, 0.15) 0%,
      transparent 20%,
      transparent 80%,
      rgba(40, 20, 8, 0.2) 100%
    );
}

.side-fx-left {
  left: 0;
  background-image:
    linear-gradient(90deg, rgba(16, 8, 4, 0.85) 0%, transparent 100%),
    url("images/side-ornament.jpg");
  background-size: cover, cover;
  background-position: center, left center;
  mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
}

.side-fx-right {
  right: 0;
  background-image:
    linear-gradient(270deg, rgba(16, 8, 4, 0.85) 0%, transparent 100%),
    url("images/side-ornament.jpg");
  background-size: cover, cover;
  background-position: center, right center;
  mask-image: linear-gradient(270deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent 100%);
}

.side-fx .fx-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.side-fx .fx-particle.spark {
  background: radial-gradient(circle, #ffe9a0 0%, #d4ae58 40%, transparent 70%);
  box-shadow: 0 0 6px rgba(240, 200, 100, 0.7);
  animation: fx-rise linear infinite;
}

.side-fx .fx-particle.ember {
  background: radial-gradient(circle, #ff8a40 0%, #c02818 50%, transparent 75%);
  box-shadow: 0 0 8px rgba(200, 60, 20, 0.55);
  animation: fx-drift linear infinite;
}

.side-fx .fx-particle.diamond {
  width: 6px !important;
  height: 6px !important;
  border-radius: 1px;
  background: var(--gold-bright);
  transform: rotate(45deg);
  opacity: 0.35;
  box-shadow: 0 0 8px rgba(212, 174, 88, 0.5);
  animation: fx-float ease-in-out infinite;
}

@keyframes fx-rise {
  0% {
    transform: translateY(0) translateX(0) scale(0.4);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-110vh) translateX(12px) scale(1);
    opacity: 0;
  }
}

@keyframes fx-drift {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) translateX(-18px) scale(0.9);
    opacity: 0;
  }
}

@keyframes fx-float {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.15;
  }
  50% {
    transform: rotate(45deg) translateY(-14px);
    opacity: 0.55;
  }
}

/* Banner floating sparks */
.banner-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.banner-particles .bp {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff2c0 0%, #e0b84e 45%, transparent 70%);
  box-shadow: 0 0 6px rgba(255, 200, 80, 0.6);
  animation: bp-float ease-in-out infinite;
}

@keyframes bp-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-18px) scale(1.15);
    opacity: 0.85;
  }
}

/* =========================================================
   TOP BANNER — single seamless key art
   ========================================================= */
.top-banner {
  position: relative;
  height: 420px;
  background:
    linear-gradient(90deg, rgba(18, 8, 4, 0.72) 0%, rgba(18, 8, 4, 0.2) 38%, transparent 58%),
    linear-gradient(180deg, rgba(18, 8, 4, 0.35) 0%, transparent 30%, rgba(30, 12, 6, 0.4) 72%, rgba(30, 15, 7, 0.97) 100%),
    url("images/hero-banner.jpg") center top / cover no-repeat;
  overflow: hidden;
  border-left: 1px solid rgba(122, 86, 48, 0.45);
  border-right: 1px solid rgba(122, 86, 48, 0.45);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}

.top-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(transparent, rgba(30, 15, 7, 0.98));
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 1100px) {
  .side-fx {
    width: 48px;
    opacity: 0.65;
  }
}

@media (max-width: 860px) {
  .side-fx {
    display: none;
  }
}

/* Curved top navigation — ornate MMORPG bar */
.top-nav-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 72px;
  padding: 0 40px;
  background:
    linear-gradient(180deg, #5a4020 0%, #3a2814 35%, #24160c 100%);
  border-bottom: 3px solid var(--border-bright);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(240, 215, 138, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.4);
  border-radius: 0 0 55% 55% / 0 0 48px 48px;
}

/* Decorative diamond ornaments on nav ends */
.top-nav-bar::before,
.top-nav-bar::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--border-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 174, 88, 0.55);
  opacity: 0.9;
}

.top-nav-bar::before {
  left: 30px;
}

.top-nav-bar::after {
  right: 30px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 4px 26px;
  padding-top: 16px;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
  padding-right: 110px;
}

.nav-right {
  justify-content: flex-start;
  padding-left: 110px;
}

.top-nav-bar a {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #b8a070;
  text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, 0.5);
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, text-shadow 0.15s;
}

.top-nav-bar a:hover,
.top-nav-bar a.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(240, 215, 138, 0.55), 0 1px 2px #000;
}

/* Center logo badge — hanging medallion */
.logo-badge {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  z-index: 6;
}

.logo-ring {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #6b4a22 0%, #3a2410 40%, #1a1008 75%, #0e0804 100%);
  border: 4px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px #c9a04a,
    0 0 0 4px #5a4018,
    0 0 0 5px #e8c860,
    0 8px 28px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(212, 181, 106, 0.12),
    inset 0 2px 0 rgba(255, 230, 160, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.logo-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 74, 0.35);
  pointer-events: none;
}

.logo-name {
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(240, 200, 80, 0.55), 0 2px 3px #000;
  margin-top: 2px;
}

.logo-sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #a89060;
  margin-top: 1px;
}

/* Floating server status */
.server-float {
  position: absolute;
  left: 28px;
  top: 130px;
  z-index: 6;
  z-index: 4;
  width: 168px;
  padding: 10px 12px;
  background: rgba(20, 10, 5, 0.82);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.sf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.sf-row + .sf-row {
  border-top: 1px solid rgba(107, 74, 40, 0.5);
}

.sf-label {
  color: var(--gold-dim);
  font-weight: bold;
}

.sf-online {
  color: var(--online);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sf-online i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 6px var(--online);
}

.sf-num {
  color: var(--gold-bright);
  font-weight: bold;
  font-size: 13px;
}

/* GAME START — diamond / eye shape like infinityhero */
.btn-game-start {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 6;
  width: 380px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 120% at 50% 45%, var(--red-hot) 0%, var(--red-mid) 35%, var(--red-deep) 70%, #1a0604 100%);
  border: 2px solid var(--gold-bright);
  border-radius: 50% / 100%;
  box-shadow:
    0 0 0 1px #5a3010,
    0 0 30px rgba(200, 40, 20, 0.65),
    0 0 60px rgba(160, 20, 10, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.7),
    inset 0 3px 0 rgba(255, 210, 120, 0.35),
    inset 0 -6px 16px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  cursor: pointer;
  color: var(--gold-bright);
}

.btn-game-start:hover {
  transform: translateX(-50%) scale(1.05);
  filter: brightness(1.15);
  box-shadow:
    0 0 0 1px #5a3010,
    0 0 40px rgba(240, 60, 30, 0.8),
    0 0 80px rgba(180, 30, 10, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.7),
    inset 0 3px 0 rgba(255, 210, 120, 0.45);
  color: var(--gold-bright);
}

.gs-title {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.22em;
  color: #ffe9a0;
  text-shadow:
    0 0 16px rgba(255, 180, 40, 0.75),
    0 0 4px rgba(255, 200, 80, 0.5),
    0 2px 4px #000;
}

.gs-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #f0d080;
  margin-top: 3px;
  text-shadow: 0 1px 3px #000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gs-sub .icon {
  color: #f0d080;
}

/* =========================================================
   MAIN FRAME — 3 columns
   ========================================================= */
.main-frame {
  position: relative;
  margin-top: -8px;
  padding: 14px 10px 20px;
  background:
    linear-gradient(180deg, rgba(48, 28, 16, 0.97) 0%, rgba(30, 15, 7, 0.99) 100%);
  border: 2px solid #8b6914;
  border-image: linear-gradient(180deg, #e8c860, #8b6914 40%, #5a4010) 1;
  box-shadow:
    0 0 0 1px #1a1008,
    0 0 0 3px rgba(107, 74, 40, 0.5),
    0 12px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(232, 200, 96, 0.25),
    inset 0 0 40px rgba(0, 0, 0, 0.25);
}

/* Ornate corner ornaments on main frame */
.main-frame::before,
.main-frame::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--border-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 174, 88, 0.35);
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
}

.main-frame::before {
  left: 10px;
}

.main-frame::after {
  right: 10px;
}

.main-grid {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  gap: 10px;
  align-items: start;
}

/* ---------- Shared box / panel ---------- */
.box {
  background:
    linear-gradient(180deg, var(--panel-top) 0%, var(--panel) 28%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(212, 174, 88, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
  position: relative;
}

.box-head {
  font-size: 12px;
  font-weight: bold;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(122, 86, 48, 0.65);
  background: linear-gradient(180deg, rgba(100, 68, 28, 0.4), transparent);
  text-shadow: 0 1px 2px #000;
}

.section-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(107, 74, 40, 0.45);
  text-shadow: 0 1px 1px #000;
  display: flex;
  align-items: center;
}

.section-title.center {
  text-align: center;
  border-bottom: none;
  font-size: 14px;
  color: var(--gold-bright);
  padding-bottom: 12px;
  justify-content: center;
}

.ss-head .section-title {
  border-bottom: none;
  flex: 1;
}

/* ---------- Login box ---------- */
.login-box {
  padding-bottom: 10px;
}

.login-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  padding: 10px 10px 6px;
  align-items: end;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lf-row label {
  display: block;
  font-size: 9px;
  font-weight: bold;
  color: var(--gold-dim);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.lf-row input {
  width: 100%;
  height: 22px;
  padding: 2px 6px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-bright);
  font-size: 11px;
  outline: none;
}

.lf-row input:focus {
  border-color: var(--border-bright);
}

.btn-login {
  width: 56px;
  height: 50px;
  background: linear-gradient(180deg, #e0c060 0%, var(--gold) 40%, #8a6420 100%);
  border: 1px solid var(--gold-bright);
  color: #1a1005;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
  filter: brightness(1.1);
}

.btn-login:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-error {
  margin: 0 10px 6px;
  padding: 6px 8px;
  font-size: 10px;
  color: #f0b0a8;
  background: rgba(120, 20, 16, 0.45);
  border: 1px solid var(--red-mid);
}

/* Logged-in member panel */
.member-panel {
  padding: 10px;
}

.member-hello {
  font-size: 11px;
  color: var(--text);
  margin-bottom: 8px;
}

.member-hello strong {
  color: var(--gold-bright);
  font-size: 13px;
}

.member-stats {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
}

.member-stats li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  font-size: 10px;
  border-bottom: 1px solid rgba(92, 64, 36, 0.45);
}

.member-stats li:last-child {
  border-bottom: none;
}

.member-stats span {
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-stats em {
  font-style: normal;
  color: var(--gold-bright);
  font-weight: bold;
}

.member-chars-head {
  font-size: 9px;
  font-weight: bold;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.member-char-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 120px;
  overflow: auto;
}

.member-char-list li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  font-size: 10px;
  color: var(--text-bright);
  border: 1px solid transparent;
}

.member-char-list li:nth-child(odd) {
  background: rgba(0, 0, 0, 0.2);
}

.member-char-list .char-lv {
  color: var(--gold);
  white-space: nowrap;
}

.member-char-list .char-online {
  color: var(--online);
  font-size: 9px;
  margin-left: 4px;
}

.member-char-empty {
  font-size: 10px;
  color: var(--text-dark);
  padding: 4px 0 8px;
}

.btn-logout {
  display: block;
  width: 100%;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: bold;
  color: var(--text-bright);
  background: linear-gradient(180deg, #3a2818, #22140c);
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-logout:hover {
  border-color: var(--border-bright);
  color: var(--gold-bright);
}

.link-forgot {
  display: block;
  padding: 4px 10px 8px;
  font-size: 10px;
  color: var(--gold-dim);
}

.link-forgot:hover {
  color: var(--gold-bright);
}

.btn-signup {
  display: block;
  margin: 0 10px 4px;
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: var(--gold-bright);
  background: linear-gradient(180deg, #3a2818, #22140c);
  border: 1px solid var(--border-bright);
  box-shadow: inset 0 1px 0 rgba(212, 181, 106, 0.15);
}

.btn-signup:hover {
  background: linear-gradient(180deg, #4a3420, #2a1810);
  color: #fff3c0;
}

/* ---------- Side banners (cash / discord) ---------- */
.banner-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-bright);
  background:
    linear-gradient(90deg, #4a3018 0%, #2a1810 60%, #1a1008 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 181, 106, 0.2);
  color: var(--gold-bright);
  transition: filter 0.15s;
}

.banner-btn:hover {
  filter: brightness(1.12);
  color: var(--gold-bright);
}

.bb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.bb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bb-text strong {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.bb-text em {
  font-style: normal;
  font-size: 9px;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
}

.banner-discord {
  background: linear-gradient(90deg, #2a2858 0%, #221810 65%, #1a1008 100%);
  border-color: #6a62c0;
}

/* ---------- Community list ---------- */
.community-head {
  text-align: center;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  background:
    linear-gradient(180deg, #4a3018, #2a1810);
  border-bottom: 1px solid var(--border-bright);
}

.menu-list {
  list-style: none;
}

.menu-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-bright);
  border-bottom: 1px solid rgba(107, 74, 40, 0.35);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15));
}

.menu-list li:last-child a {
  border-bottom: none;
}

.menu-list li a:hover {
  background: var(--panel-hover);
  color: var(--gold-bright);
  padding-left: 16px;
}

/* ---------- Video box ---------- */
.video-box {
  overflow: hidden;
}

.video-head {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(180deg, #3a2818, #22140c);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.vh-left {
  color: var(--gold-bright);
}

.vh-right {
  color: var(--gold-dim);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.7) brightness(0.7);
}

.play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(40, 15, 8, 0.75);
  color: var(--gold-bright);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 0 20px rgba(180, 40, 20, 0.4);
  transition: transform 0.15s, background 0.15s;
}

.play-circle:hover,
.video-stage:hover .play-circle {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(90, 30, 15, 0.85);
}

.video-foot {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  font-size: 9px;
  color: var(--text-dark);
  background: #1a1008;
  border-top: 1px solid rgba(107, 74, 40, 0.4);
}

/* ---------- Data tables (ranking / news) ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: bold;
  color: var(--gold-dim);
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(107, 74, 40, 0.5);
}

.data-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(107, 74, 40, 0.25);
  color: var(--text-bright);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: rgba(90, 60, 30, 0.2);
}

.data-table .c-num {
  width: 28px;
  text-align: center;
  color: var(--gold);
  font-weight: bold;
}

.data-table .c-lv {
  width: 36px;
  text-align: center;
  color: var(--gold-bright);
  font-weight: bold;
}

.data-table .c-date {
  width: 90px;
  text-align: right;
  color: var(--gold-dim);
  white-space: nowrap;
  font-size: 10px;
}

.news-link {
  color: var(--text-bright);
  font-weight: bold;
  font-size: 11px;
}

.news-link:hover {
  color: var(--gold-bright);
}

.news-desc {
  margin: 3px 0 6px;
  font-size: 10px;
  color: var(--text);
  line-height: 1.4;
}

.btn-readmore {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: bold;
  color: #1a1005;
  background: linear-gradient(180deg, #e0c060, var(--gold) 45%, #8a6420);
  border: 1px solid var(--gold-bright);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-readmore:hover {
  filter: brightness(1.1);
  color: #1a1005;
}

/* ---------- Screenshots ---------- */
.ss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(107, 74, 40, 0.45);
}

.more-link {
  padding: 8px 10px;
  font-size: 10px;
  color: var(--gold-dim);
}

.ss-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
}

.ss-thumb {
  display: block;
  border: 1px solid var(--border);
  background: #000;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.ss-thumb:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.ss-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ss-thumb span {
  display: block;
  padding: 4px 4px 5px;
  font-size: 9px;
  color: var(--text);
  text-align: center;
  background: #1a1008;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Right column menus ---------- */
.arrow-menu {
  list-style: none;
  padding: 4px 0;
}

.arrow-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--gold);
  border-bottom: 1px solid rgba(107, 74, 40, 0.3);
}

.arrow-menu li:last-child a {
  border-bottom: none;
}

.arrow-menu li a:hover {
  background: var(--panel-hover);
  color: var(--gold-bright);
}

.arrow-menu li a:hover .icon {
  color: var(--gold-bright);
}

.badge-n {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: bold;
  color: #fff;
  background: #c02020;
  border-radius: 2px;
  line-height: 1.4;
}

/* Side CTA buttons */
.side-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 14px 10px;
  border: 1px solid var(--border-bright);
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: filter 0.15s, transform 0.1s;
}

.side-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: var(--gold-bright);
}

.cta-title {
  font-size: 12px;
  color: var(--gold-bright);
  text-shadow: 0 1px 2px #000;
}

.cta-arrow {
  font-size: 14px;
  color: var(--gold);
}

.download-cta {
  background: linear-gradient(180deg, #5a4020 0%, #3a2810 50%, #2a1810 100%);
  min-height: 52px;
}

.ncash-cta {
  background:
    linear-gradient(90deg, rgba(80, 40, 10, 0.9), rgba(30, 15, 7, 0.95)),
    url("images/bg-battle.jpg") center / cover;
  min-height: 48px;
}

.donate-cta {
  background: linear-gradient(180deg, #4a2010, #2a1008);
  border-color: #a06030;
}

.lottery-cta {
  background: linear-gradient(180deg, #4a3010, #2a1808);
}

/* Friend invite */
.friend-box {
  padding: 12px 12px 14px;
  background:
    linear-gradient(180deg, rgba(50, 30, 15, 0.95), rgba(25, 12, 6, 0.98)),
    url("images/hero-character.jpg") center top / cover;
  background-blend-mode: multiply;
}

.friend-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--gold-bright);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px #000;
}

.friend-hint {
  font-size: 9px;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.35;
}

.friend-form label {
  display: block;
  font-size: 9px;
  color: var(--gold-dim);
  margin: 6px 0 2px;
}

.friend-form input {
  width: 100%;
  height: 24px;
  padding: 2px 6px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-bright);
  font-size: 11px;
  outline: none;
}

.friend-form input:focus {
  border-color: var(--border-bright);
}

.btn-invite {
  width: 100%;
  margin-top: 10px;
  padding: 8px 6px;
  font-size: 10px;
  font-weight: bold;
  color: #1a1005;
  background: linear-gradient(180deg, #e0c060, var(--gold) 45%, #8a6420);
  border: 1px solid var(--gold-bright);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-invite:hover {
  filter: brightness(1.1);
}

/* =========================================================
   Page blocks (guide / classes / support)
   ========================================================= */
.page-block {
  padding: 8px 8px 0;
}

.page-block-inner {
  padding: 16px 14px 18px;
  margin-bottom: 0;
}

.guide-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.guide-row article {
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(107, 74, 40, 0.45);
}

.guide-row strong {
  display: block;
  color: var(--gold-bright);
  font-size: 11px;
  margin-bottom: 6px;
}

.guide-row p {
  font-size: 10px;
  color: var(--text);
  line-height: 1.45;
}

.classes-shot {
  border: 1px solid var(--border);
  overflow: hidden;
}

.classes-shot img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center top;
}

.support-lead {
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.support-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 20px 12px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 15, 7, 0.5), var(--bg-deep));
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
  font-size: 11px;
}

.footer-links a {
  color: var(--gold-dim);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-links span {
  color: var(--text-dark);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fb-logo {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.fb-copy {
  font-size: 10px;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

/* =========================================================
   Modal / Lightbox
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 5, 2, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, #2e1c12, #1a1008);
  border: 2px solid var(--border-bright);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  color: var(--text);
}

.modal h2 {
  color: var(--gold-bright);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.modal p {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--gold-dim);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--gold-bright);
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1000px, 94vw);
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--border-bright);
}

.lightbox p {
  margin-top: 10px;
  color: var(--gold);
  font-size: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  display: flex;
}

.lightbox-close .icon {
  width: 22px;
  height: 22px;
}

/* Modal form fields (register) */
.modal input {
  width: 100%;
  height: 28px;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-bright);
  font-size: 12px;
  outline: none;
}

.modal input:focus {
  border-color: var(--border-bright);
}

.modal .btn-login,
.modal .btn-readmore,
.modal button[type="submit"] {
  width: 100%;
  height: auto;
  margin-top: 4px;
  padding: 8px;
  background: linear-gradient(180deg, #c9a04a, #8b6914);
  border: 1px solid var(--gold-bright);
  color: #1a1005;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1020px) {
  .wrap {
    width: 100%;
  }

  .main-grid {
    grid-template-columns: 200px 1fr 190px;
  }

  .nav-left {
    padding-right: 70px;
  }

  .nav-right {
    padding-left: 70px;
  }
}

@media (max-width: 860px) {
  .top-banner {
    height: 320px;
  }

  .top-nav-bar {
    clip-path: none;
    border-radius: 0;
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px 10px;
    gap: 8px;
  }

  .nav-left,
  .nav-right {
    padding: 0;
    justify-content: center;
    flex: 1 1 100%;
    order: 2;
    gap: 12px;
  }

  .logo-badge {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    order: 1;
    margin: 0 auto;
  }

  .logo-ring {
    width: 88px;
    height: 88px;
  }

  .server-float {
    top: auto;
    bottom: 90px;
    left: 12px;
    width: 140px;
  }

  .btn-game-start {
    width: 260px;
    height: 58px;
    bottom: 20px;
  }

  .gs-title {
    font-size: 16px;
  }

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

  .ss-row {
    grid-template-columns: 1fr 1fr;
  }

  .guide-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .top-banner {
    height: 280px;
  }

  .top-nav-bar a {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .server-float {
    display: none;
  }

  .btn-game-start {
    width: 220px;
    height: 52px;
  }

  .gs-title {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .ss-row {
    grid-template-columns: 1fr;
  }

  .guide-row {
    grid-template-columns: 1fr;
  }

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

  .btn-login {
    width: 100%;
    height: 32px;
  }
}
