/* ═══════════════════════════════════════════════════
   Jin Online – Subpage Dark Theme
   Consistent with homepage dark MMORPG style
   ═══════════════════════════════════════════════════ */

/* ── Override body for dark theme ── */
.page-sub {
  padding: 0;
  gap: 0;
  background: url("images/background.jpg") center/cover fixed no-repeat #060a14;
  color: #dce6f5;
}

.page-sub::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(60, 140, 255, 0.15), transparent 52%),
    radial-gradient(circle at 82% 16%, rgba(80, 160, 255, 0.12), transparent 55%),
    radial-gradient(circle at 50% 88%, rgba(40, 120, 200, 0.1), transparent 62%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}

.page-sub::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle, rgba(100, 220, 255, 0.5) 1px, transparent 2px),
    radial-gradient(circle, rgba(80, 180, 255, 0.35) 1px, transparent 2px);
  background-size: 180px 180px, 260px 260px;
  animation: driftParticles 20s linear infinite;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: normal;
}

@keyframes driftParticles {
  from { background-position: 0 0, 40px 60px; }
  to { background-position: -200px -300px, -160px -240px; }
}

/* ── Fixed Nav (reuse homepage nav) ── */
.page-sub .hero__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
}

.page-sub .hero-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-radius: 16px;
  background: rgba(6, 10, 20, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 200, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.page-sub .hero-nav__brand { flex-shrink: 0; }
.page-sub .hero-nav__brand img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.page-sub .hero-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.page-sub .hero-nav__links a {
  display: block;
  padding: 6px 10px;
  color: rgba(220, 235, 255, 0.75);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: color 200ms, background 200ms;
}

.page-sub .hero-nav__links a:hover,
.page-sub .hero-nav__links a.is-active {
  color: #fff;
  background: rgba(100, 200, 255, 0.12);
}

.page-sub .hero-nav__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.page-sub .hero-nav__social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 200ms, transform 200ms;
}

.page-sub .hero-nav__social a:hover {
  background: rgba(100, 200, 255, 0.15);
  transform: translateY(-1px);
}

.bg-sound-btn {
  background: transparent;
  border: 1px solid rgba(100,200,255,0.2);
  border-radius: 6px;
  color: rgba(180,210,255,0.35);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px 9px;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.bg-sound-btn.is-on {
  border-color: rgba(58,180,242,0.45);
  color: rgba(58,180,242,0.85);
}
.bg-sound-btn:hover {
  border-color: rgba(58,180,242,0.4);
  color: rgba(180,210,255,0.75);
}

.page-sub .hero-nav__social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.8;
}

/* ── Main content area ── */
.page-sub .sub-main {
  min-height: 100vh;
  padding: 120px 32px 60px;
  display: grid;
  place-items: center;
}

.page-sub .sub-main > .sub-container {
  width: min(1200px, 100%);
}

/* ── Dark card overrides ── */
.page-sub .card {
  background: rgba(12, 20, 40, 0.7);
  border: 1px solid rgba(100, 200, 255, 0.1);
  color: #dce6f5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.page-sub .card .eyebrow {
  color: #3ab4f2;
}

.page-sub .card h1 {
  color: #fff;
}

.page-sub .card .subhead {
  color: rgba(200, 220, 255, 0.6);
}

.page-sub .card .helper {
  color: rgba(200, 220, 255, 0.5);
}

.page-sub .card .field__label {
  color: rgba(200, 220, 245, 0.85);
}

.page-sub .card input {
  background: rgba(8, 16, 34, 0.85);
  border: 1px solid rgba(120, 200, 255, 0.25);
  color: #f1f7ff;
}

.page-sub .card input::placeholder {
  color: rgba(200, 220, 245, 0.55);
}

.page-sub .card input:focus {
  border-color: rgba(58, 180, 242, 0.8);
  box-shadow: 0 0 0 3px rgba(58, 180, 242, 0.2);
}

/* ── Sidebar quick links (same as homepage) ── */
.page-sub .side-quick {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  display: grid;
  gap: 10px;
  z-index: 50;
  justify-items: center;
}

.page-sub .side-quick__btn {
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
}

.page-sub .side-quick__btn img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.page-sub .side-quick__btn img[alt="Top up"] {
  width: 130px;
  height: 130px;
}

.page-sub .side-quick__btn:hover {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

/* ── Footer (reuse homepage footer) ── */
.page-sub .home-footer {
  position: relative;
  z-index: 1;
  background: #040810;
  border-top: 1px solid rgba(100, 200, 255, 0.08);
}

.page-sub .home-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.page-sub .home-footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.page-sub .home-footer__brand p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(200, 220, 255, 0.45);
}

.page-sub .home-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-sub .home-footer__links h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(200, 220, 255, 0.5);
}

.page-sub .home-footer__links a {
  color: rgba(200, 220, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 200ms;
}

.page-sub .home-footer__links a:hover {
  color: #3ab4f2;
}

.page-sub .home-footer__bottom {
  border-top: 1px solid rgba(100, 200, 255, 0.06);
  padding: 18px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(200, 220, 255, 0.3);
}

/* ── Scene override (remove light blobs) ── */
.page-sub .scene::before,
.page-sub .scene::after {
  display: none;
}

/* ── Download links dark ── */
.page-sub .download-link {
  background: rgba(10, 18, 36, 0.85);
  border-color: rgba(120, 200, 255, 0.22);
  color: #e8f0ff;
}

.page-sub .download-link:hover {
  border-color: rgba(120, 200, 255, 0.45);
  box-shadow: 0 16px 28px rgba(10, 20, 40, 0.3);
}

/* ── Ranking card dark overrides ── */
.page-sub .card--ranking {
  background: rgba(12, 20, 40, 0.7);
  border: 1px solid rgba(100, 200, 255, 0.1);
  color: #dce6f5;
}

.page-sub .card--ranking .eyebrow {
  color: #3ab4f2;
}

.page-sub .card--ranking h1,
.page-sub .card--ranking h2 {
  color: #fff;
}

.page-sub .card--ranking .subhead {
  color: rgba(200, 220, 255, 0.6);
}

.page-sub .rank-tab {
  background: rgba(12, 22, 42, 0.7);
  border-color: rgba(100, 200, 255, 0.15);
  color: rgba(220, 235, 255, 0.8);
}

.page-sub .rank-tab:hover {
  border-color: rgba(100, 200, 255, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.page-sub .rank-tab.is-active {
  background: rgba(58, 180, 242, 0.15);
  border-color: rgba(58, 180, 242, 0.7);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-sub .hero-nav__brand { display: none; }

  .page-sub .hero-nav__links {
    gap: 2px;
  }

  .page-sub .hero-nav__links a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .page-sub .side-quick__btn img {
    width: 80px;
    height: 80px;
  }

  .page-sub .side-quick__btn img[alt="Top up"] {
    width: 110px;
    height: 110px;
  }

  .page-sub .home-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .page-sub .hero__header {
    padding: 10px 16px;
  }

  .page-sub .hero-nav {
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .page-sub .hero-nav__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-sub .hero-nav__social {
    display: none;
  }

  .page-sub .sub-main {
    padding: 100px 20px 40px;
  }

  .page-sub .side-quick,
  .page-sub .ad-left {
    display: none;
  }

  .page-sub .home-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .page-sub .home-footer__links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-sub .hero-nav__links a {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .page-sub .sub-main {
    padding: 90px 12px 28px;
  }

  .page-sub .home-footer__bottom {
    padding: 14px 16px;
    font-size: 0.72rem;
  }
}

/* ── Very small phone ── */
@media (max-width: 360px) {
  .page-sub .hero-nav__links a {
    padding: 5px 6px;
    font-size: 0.65rem;
  }

  .page-sub .sub-main {
    padding: 85px 8px 24px;
  }

  .page-sub .hero__header {
    padding: 8px 10px;
  }
}
