/* ========================================================================
   NGỌC RỒNG FOREST — Dragon Theme Overlay
   Presentation-only visual overlay to bring the portal closer to the
   classic Dragon Ball / Ngọc Rồng private-server look (dragonpan.online).

   This file ONLY changes visual presentation (colors, borders, shadows,
   buttons, hover/animation polish). It is loaded AFTER cssweb.css and can
   be removed at any time to fully revert the look. No markup, links,
   routes, form actions or scripts are affected.
   ======================================================================== */

/* ------------------------------------------------------------------
   1. Palette retune — warm dark + gold / orange / red game accents
   ------------------------------------------------------------------ */
:root {
  /* Warm fantasy dark base (replaces the cool navy) */
  --bg-body: #081731;
  --bg-surface: #102857;
  --bg-card: rgba(125, 145, 255, 0.08);
  --bg-card-hover: rgba(125, 145, 255, 0.14);

  /* Signature gold / orange / red accents */
  --orange: #ff7a00;
  --orange-light: #ffab2e;
  --orange-glow: rgba(255, 140, 0, 0.45);
  --gold: #f8d43b;
  --gold-deep: #e0a90c;
  --red: #e5241f;
  --red-light: #ff5a45;
  --yellow: #ffcf33;
  --yellow-light: #ffe98a;

  --gradient-primary: linear-gradient(180deg, #ffb038 0%, #ff7a00 55%, #e85d00 100%);
  --gradient-gold: linear-gradient(180deg, #ffe37a 0%, #f8d43b 45%, #e0a90c 100%);
  --gradient-red: linear-gradient(180deg, #ff5a45 0%, #e5241f 55%, #b4130f 100%);
  --gradient-card: linear-gradient(160deg, rgba(30, 58, 122, 0.58) 0%, rgba(29, 25, 82, 0.66) 100%);

  --card-radius: 14px;
  --btn-radius: 10px;

  --shadow-glow-orange: 0 0 18px var(--orange-glow), 0 0 48px rgba(255, 122, 0, 0.18);
  --shadow-gold-border: 0 0 0 1px rgba(248, 212, 59, 0.35), 0 10px 26px rgba(0, 0, 0, 0.5);
}

/* Game-style outlined text helper used across buttons/titles */
:root {
  --text-outline: 1px 1px 0 rgba(0, 0, 0, .55), -1px 1px 0 rgba(0, 0, 0, .55),
                  1px -1px 0 rgba(0, 0, 0, .55), -1px -1px 0 rgba(0, 0, 0, .55),
                  0 2px 3px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------------
   2. Warm background + subtle radial glow behind content
   ------------------------------------------------------------------ */
body,
body.girlkun-bg {
  background:
    radial-gradient(1100px 620px at 18% -8%, rgba(96, 165, 250, 0.22), transparent 60%),
    radial-gradient(900px 520px at 84% 8%, rgba(139, 92, 246, 0.2), transparent 58%),
    linear-gradient(180deg, #102c5d 0%, #0b1e46 48%, #081731 100%) !important;
}

/* Gold scrollbar like the classic NRO theme */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0d0803; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f8d43b, #e0a90c);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #ffcf33; }

/* Retune the hero + section watermark washes to warm tones */
.hero-bg::after {
  background:
    linear-gradient(180deg, rgba(8, 23, 52, 0.08) 0%, rgba(12, 29, 68, 0.24) 48%, rgba(8, 23, 52, 0.46) 100%),
    radial-gradient(circle at center, rgba(96, 165, 250, 0.12), rgba(20, 24, 70, 0.28)) !important;
}

.download-section,
.quick-actions,
.slider-section,
.guide-section,
.community-section {
  background: linear-gradient(180deg, rgba(10, 31, 70, 0.12), rgba(35, 35, 94, 0.22), rgba(10, 31, 70, 0.12)) !important;
}

.quick-actions.section-watermark {
  background: linear-gradient(180deg, rgba(10, 31, 70, 0.28), rgba(35, 35, 94, 0.34), rgba(10, 31, 70, 0.3)) !important;
}

/* ------------------------------------------------------------------
   3. Header / navigation — dark bar with gold underline + gold hovers
   ------------------------------------------------------------------ */
.game-header {
  background: linear-gradient(180deg, rgba(9, 27, 62, 0.9), rgba(18, 27, 72, 0.82)) !important;
  border-bottom: 2px solid rgba(248, 212, 59, 0.55) !important;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.game-header.scrolled {
  box-shadow: 0 4px 26px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(248, 212, 59, 0.15);
}

.nav-links a {
  position: relative;
  font-weight: 600;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff !important;
  background: rgba(255, 140, 0, 0.14) !important;
  text-shadow: 0 0 10px rgba(255, 170, 46, 0.6);
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ------------------------------------------------------------------
   4. Buttons — glossy, game-like with outlined text and hover lift
   ------------------------------------------------------------------ */
.btn-game {
  border-radius: var(--btn-radius);
  font-weight: 700;
  letter-spacing: .3px;
  text-shadow: var(--text-outline);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 rgba(0, 0, 0, 0.3), 0 8px 18px rgba(0, 0, 0, 0.4);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-game:hover {
  transform: translateY(-3px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 0 rgba(0, 0, 0, 0.3), 0 12px 26px rgba(0, 0, 0, 0.5);
}

.btn-game:active { transform: translateY(0); }

/* The vertical light→dark variant gradients below already read as glossy;
   the inset top highlight in .btn-game adds the game-style shiny rim. */

.btn-game-primary {
  background: var(--gradient-primary) !important;
  border-color: #a24700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 0 #a24700, 0 8px 20px var(--orange-glow) !important;
}
.btn-game-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 0 #a24700, 0 12px 28px rgba(255, 122, 0, 0.55) !important;
}

.btn-game-green {
  background: linear-gradient(180deg, #4fd36b, #22a24a) !important;
  border-color: #16702f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 0 #16702f, 0 8px 20px rgba(34, 197, 94, 0.4) !important;
}

.btn-game-blue {
  background: linear-gradient(180deg, #5fa8ff, #2f6fe0) !important;
  border-color: #1c4aa0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 0 #1c4aa0, 0 8px 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-game-red {
  background: var(--gradient-red) !important;
  border-color: #8c0f0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 0 #8c0f0b, 0 8px 20px rgba(229, 36, 31, 0.42) !important;
}

.btn-game-secondary {
  background: var(--gradient-gold) !important;
  color: #3a2600 !important;
  border-color: #b4830a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #b4830a, 0 8px 20px rgba(248, 212, 59, 0.4) !important;
}

.btn-game-dark {
  background: linear-gradient(180deg, rgba(60, 40, 14, 0.55), rgba(26, 17, 6, 0.7)) !important;
  border: 1px solid rgba(248, 212, 59, 0.4) !important;
}
.btn-game-dark:hover {
  background: linear-gradient(180deg, rgba(80, 54, 18, 0.7), rgba(40, 26, 9, 0.8)) !important;
  border-color: rgba(248, 212, 59, 0.7) !important;
}

/* ------------------------------------------------------------------
   5. Section titles — gold gradient with diamond markers
   ------------------------------------------------------------------ */
.section-title h2 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.section-title h2::before,
.section-title h2::after {
  color: var(--red);
  -webkit-text-fill-color: var(--red);
}

.section-title .title-line { background: var(--gradient-gold); }

.manga-heading { color: var(--gold); }
.manga-heading span { color: var(--red); }

/* ------------------------------------------------------------------
   6. Cards — gold-bordered, soft glow, stronger hover lift
   ------------------------------------------------------------------ */
.download-card,
.guide-card,
.portal-card,
.social-card {
  background: var(--gradient-card) !important;
  border: 1px solid rgba(248, 212, 59, 0.22) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease !important;
}

.download-card:hover,
.guide-card:hover,
.social-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(248, 212, 59, 0.6) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 140, 0, 0.25) !important;
}

.portal-card:hover {
  border-color: rgba(248, 212, 59, 0.45) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 140, 0, 0.18) !important;
}

/* Colored top accent bars on download cards → warm palette */
.download-card.android::before { background: linear-gradient(90deg, #22a24a, #4fd36b) !important; }
.download-card.pc::before { background: linear-gradient(90deg, #2f6fe0, #5fa8ff) !important; }
.download-card.ios::before { background: var(--gradient-gold) !important; }

/* ------------------------------------------------------------------
   7. Portal sidebar quick-access — consistent gold/game buttons
   ------------------------------------------------------------------ */
.portal-action {
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.portal-action:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.portal-action.primary {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  text-shadow: var(--text-outline);
  border-color: #a24700 !important;
}
.portal-action.danger:hover { box-shadow: 0 6px 16px rgba(229, 36, 31, 0.35); }
.portal-kicker { color: var(--gold) !important; }

/* ------------------------------------------------------------------
   8. Footer — warm dark with gold headings
   ------------------------------------------------------------------ */
.game-footer {
  background: linear-gradient(180deg, rgba(11, 29, 65, 0.78), rgba(8, 20, 48, 0.86)) !important;
  border-top: 2px solid rgba(248, 212, 59, 0.35) !important;
}
.game-footer .footer-col h4 {
  color: var(--gold) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.game-footer a:hover { color: var(--orange-light) !important; }
.footer-warning {
  color: var(--yellow-light) !important;
  border-color: rgba(248, 212, 59, 0.25) !important;
}
.footer-warning i { color: var(--red-light) !important; }

/* ------------------------------------------------------------------
   9. Hero — warmer glow orbs + outlined title
   ------------------------------------------------------------------ */
.hero-title {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}
.hero-orb::after { color: var(--gold); }

/* ------------------------------------------------------------------
   10b. Targeted homepage cleanup - remove duplicate CTAs and image BG
   ------------------------------------------------------------------ */
.header-inner {
  gap: clamp(14px, 2vw, 28px);
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
}

.header-actions {
  justify-content: flex-end;
  min-width: 46px;
}

.header-guest-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.header-auth-button {
  display: inline-flex;
  min-width: 112px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.header-auth-button--login {
  border-color: #f8d43b;
  color: #241403;
  background: linear-gradient(135deg, #fde047, #f59e0b 70%, #ea580c);
}

.header-auth-button--register {
  border-color: #a78bfa;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6 58%, #a78bfa);
}

.header-auth-button:hover {
  transform: translateY(-2px);
  color: #fff;
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 9px 20px rgba(0, 0, 0, 0.34);
}

.header-auth-button--login:hover {
  color: #241403;
}

.header-auth-button:active {
  transform: translateY(1px) scale(0.985);
}

.mobile-nav-overlay .mobile-auth-link--login {
  border-color: rgba(248, 212, 59, 0.7);
  color: #241403;
  background: linear-gradient(135deg, #fde047, #f59e0b 70%, #ea580c);
}

.mobile-nav-overlay .mobile-auth-link--register {
  border-color: #a78bfa;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6 58%, #a78bfa);
}

/* Three independent header regions: brand, navigation and account actions. */
.game-header .header-inner {
  width: min(1480px, calc(100% - 32px));
  align-items: center;
}

.game-header :is(.header-logo, .header-actions, .header-guest-actions) {
  flex-shrink: 0;
}

.game-header .nav-links {
  min-width: 0;
}

.game-header .header-actions {
  justify-content: flex-end;
}

.game-header .hamburger {
  flex: 0 0 44px;
}

.game-header :is(.nav-links a, .header-auth-button) {
  white-space: nowrap;
}

.game-header :is(.nav-links a, .header-auth-button, .hamburger):focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .game-header .header-guest-actions { display: none; }
}

@media (max-width: 1500px) {
  .header-inner {
    gap: 10px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding-inline: 10px;
    font-size: 0.8rem;
  }

  .header-auth-button {
    min-width: 104px;
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

.hero-section {
  min-height: clamp(520px, 70dvh, 760px);
  padding-block: clamp(112px, 15vh, 158px) clamp(58px, 8vh, 92px);
}

.hero-content {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 1.7vw, 18px);
}

.hero-logo,
.hero-title,
.hero-subtitle {
  margin-block: 0 !important;
}

.hero-subtitle {
  max-width: 650px;
}

.download-section.section-watermark,
.feature-game-section.section-watermark,
.manga-news-section.section-watermark {
  background:
    linear-gradient(180deg, rgba(10, 31, 70, 0.12), rgba(35, 35, 94, 0.22), rgba(10, 31, 70, 0.12)) !important;
}

.manga-news-section::before {
  display: none !important;
}

.portal-main {
  padding-top: clamp(28px, 4.6vw, 58px);
}

.portal-grid {
  gap: clamp(20px, 2.8vw, 34px);
}

.portal-content {
  gap: clamp(24px, 3vw, 40px);
}

.portal-card {
  padding: clamp(16px, 1.8vw, 20px);
}

.portal-account-head {
  margin-bottom: 16px;
}

.portal-account-actions,
.portal-action-grid {
  gap: 10px;
}

.portal-account-actions--auth {
  grid-template-columns: 1fr !important;
}

.portal-action {
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.portal-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-action-grid .portal-action.primary {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .hero-section {
    min-height: auto;
    padding-block: 104px 54px;
  }

  .portal-main {
    padding-top: 22px;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding-block: 92px 46px;
  }

  .portal-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .portal-account-actions--auth {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 380px) {
  .portal-action-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ------------------------------------------------------------------
   11. Fade-up polish for revealed sections
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-game, .download-card, .guide-card, .social-card, .portal-action { transition: none; }
}
