/* ========================================
   NGỌC RỒNG FOREST — Game Portal CSS
   Inspired by dragonpan.online
   ======================================== */

/* ========================================
   1. CSS Custom Properties / Design Tokens
   ======================================== */
:root {
  /* Core colors */
  --bg-body: #0a0e27;
  --bg-surface: #141937;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  /* Accent colors */
  --orange: #ff6b00;
  --orange-light: #ff9500;
  --orange-glow: rgba(255, 107, 0, 0.4);
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --purple-glow: rgba(124, 58, 237, 0.4);
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --red: #ef4444;
  --red-light: #f87171;
  --yellow: #fbbf24;
  --yellow-light: #fde68a;
  --green: #22c55e;
  --green-light: #4ade80;
  --cyan: #06b6d4;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dark: #1a1a2e;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--orange), var(--orange-light));
  --gradient-secondary: linear-gradient(135deg, var(--purple), var(--purple-light));
  --gradient-hero: linear-gradient(180deg, rgba(10, 14, 39, 0) 0%, rgba(10, 14, 39, 0.8) 60%, var(--bg-body) 100%);
  --gradient-header: linear-gradient(180deg, rgba(10, 14, 39, 0.98) 0%, rgba(20, 25, 55, 0.95) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --container-padding: 0 20px;
  --card-radius: 16px;
  --btn-radius: 12px;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow-orange: 0 0 20px var(--orange-glow), 0 0 60px rgba(255, 107, 0, 0.15);
  --shadow-glow-purple: 0 0 20px var(--purple-glow), 0 0 60px rgba(124, 58, 237, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   2. Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, body.girlkun-bg {
  margin: 0;
  padding: 0;
  background: var(--bg-body) !important;
  background-image: none !important;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--orange-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   3. Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
  content: '◆';
  color: var(--orange);
  margin: 0 15px;
  font-size: 0.6em;
  vertical-align: middle;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.section-title .title-line {
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ========================================
   4. Layout Container
   ======================================== */
.site-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

#page-wrapper {
  width: 100%;
  min-height: 100vh;
}

/* Override Bootstrap narrow container from old layout */
.container-md.col-lg-6 {
  max-width: 100% !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* ========================================
   5. Header & Navigation
   ======================================== */
.game-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255, 107, 0, 0.2);
  transition: all var(--transition-normal);
}

.game-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3));
  transition: transform var(--transition-normal);
}

.header-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--btn-radius);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 107, 0, 0.15);
  text-shadow: 0 0 20px var(--orange-glow);
}

.nav-links a i {
  font-size: 0.85em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  background: none;
  border: none;
  outline: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.97);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 80px 30px 30px;
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  display: flex;
}

.mobile-nav-overlay a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  color: var(--text-primary);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--btn-radius);
  width: 100%;
  max-width: 320px;
  text-align: center;
  justify-content: center;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-overlay a:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--orange);
  transform: scale(1.02);
}

/* User Panel in Header */
.user-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-panel img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}

.user-panel .user-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange-light);
}

.user-panel .user-balance {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.user-dropdown {
  position: relative;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 8px;
  z-index: 2000;
}

.user-dropdown-menu.show {
  display: block;
  animation: fadeDown 0.2s ease;
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.user-dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 107, 0, 0.15);
}

.user-dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--orange);
}

.user-dropdown-menu .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 0;
}

/* ========================================
   6. Hero Banner Section
   ======================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 20px 80px;
  background: var(--bg-body);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  animation: orbFloat linear infinite;
  pointer-events: none;
}

.hero-orb:nth-child(1) {
  width: 40px; height: 40px;
  background: radial-gradient(circle, var(--orange-light), var(--orange));
  box-shadow: 0 0 30px var(--orange-glow), inset 0 0 15px rgba(255, 200, 0, 0.5);
  top: 20%; left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}
.hero-orb:nth-child(2) {
  width: 25px; height: 25px;
  background: radial-gradient(circle, var(--yellow-light), var(--yellow));
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  top: 60%; left: 85%;
  animation-duration: 10s;
  animation-delay: 1s;
}
.hero-orb:nth-child(3) {
  width: 50px; height: 50px;
  background: radial-gradient(circle, var(--orange-light), #e65100);
  box-shadow: 0 0 40px var(--orange-glow), inset 0 0 20px rgba(255, 200, 0, 0.4);
  top: 40%; right: 5%;
  animation-duration: 12s;
  animation-delay: 2s;
}
.hero-orb:nth-child(4) {
  width: 18px; height: 18px;
  background: radial-gradient(circle, #fef3c7, var(--yellow));
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
  top: 75%; left: 20%;
  animation-duration: 9s;
  animation-delay: 3s;
}
.hero-orb:nth-child(5) {
  width: 35px; height: 35px;
  background: radial-gradient(circle, var(--orange-light), var(--orange));
  box-shadow: 0 0 25px var(--orange-glow), inset 0 0 12px rgba(255, 200, 0, 0.5);
  top: 15%; right: 20%;
  animation-duration: 11s;
  animation-delay: 0.5s;
}
.hero-orb:nth-child(6) {
  width: 22px; height: 22px;
  background: radial-gradient(circle, #fef3c7, var(--orange-light));
  box-shadow: 0 0 18px rgba(255, 149, 0, 0.4);
  top: 50%; left: 45%;
  animation-duration: 7s;
  animation-delay: 4s;
}

/* Dragon ball star detail on orbs */
.hero-orb::after {
  content: '★';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(180, 50, 0, 0.6);
  font-size: 40%;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
}

.hero-logo {
  max-width: 350px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 30px var(--orange-glow));
  animation: float 4s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 40px var(--orange-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #fff, var(--orange-light), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ========================================
   7. Buttons — Game Style
   ======================================== */
.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;
}

.btn-game::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-game:hover::before {
  left: 100%;
}

.btn-game:hover {
  transform: translateY(-3px);
  color: white;
}

.btn-game:active {
  transform: translateY(-1px);
}

.btn-game-primary {
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px var(--orange-glow);
}

.btn-game-primary:hover {
  box-shadow: 0 6px 30px rgba(255, 107, 0, 0.5);
}

.btn-game-secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-game-secondary:hover {
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
}

.btn-game-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-game-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-game-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.btn-game-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.btn-game-red {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-game-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-game-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ========================================
   8. Download Section
   ======================================== */
.download-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 50%, var(--bg-body) 100%);
}

.download-section .section-title h2 {
  font-family: 'Be Vietnam Pro', 'Noto Sans', 'Inter', Arial, sans-serif;
  line-height: 1.25;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  padding: 35px 25px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.download-card.android::before {
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.download-card.pc::before {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.download-card.ios::before {
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.download-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card);
  background: var(--bg-card-hover);
}

.download-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: white;
}

.download-card.android .card-icon {
  background: linear-gradient(135deg, var(--green), #16a34a);
}

.download-card.pc .card-icon {
  background: linear-gradient(135deg, var(--blue), #2563eb);
}

.download-card.ios .card-icon {
  background: linear-gradient(135deg, var(--purple), #6d28d9);
}

.download-card h3 {
  font-size: 1.2rem;
  min-height: 1.5em;
  margin-bottom: 8px;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-height: 4.5em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.download-card .download-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.download-card .download-btns .btn-game {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: var(--btn-radius);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.download-card .download-btns .btn-game i {
  flex: 0 0 18px;
  width: 18px;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

/* ========================================
   9. Quick Action Buttons
   ======================================== */
.quick-actions {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.actions-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.actions-grid--member {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 900px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--text-primary);
}

.action-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  box-shadow: var(--shadow-glow-orange);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.action-card .action-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--gradient-primary);
  color: white;
  transition: transform var(--transition-normal);
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(-5deg);
}

.action-card span {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Color variants for action icons */
.action-card.purple .action-icon { background: var(--gradient-secondary); }
.action-card.blue .action-icon { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.action-card.red .action-icon { background: linear-gradient(135deg, var(--red), var(--red-light)); }
.action-card.green .action-icon { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.action-card.cyan .action-icon { background: linear-gradient(135deg, var(--cyan), #22d3ee); }
.action-card.yellow .action-icon { background: linear-gradient(135deg, var(--yellow), var(--orange-light)); }
.action-card.ruby .action-icon { background: linear-gradient(135deg, #ff5b35, #ec4899 52%, #8b5cf6); }

.action-card.purple:hover { border-color: var(--purple); box-shadow: var(--shadow-glow-purple); }
.action-card.blue:hover { border-color: var(--blue); box-shadow: 0 0 20px rgba(59,130,246,0.4); }
.action-card.red:hover { border-color: var(--red); box-shadow: 0 0 20px rgba(239,68,68,0.4); }
.action-card.green:hover { border-color: var(--green); box-shadow: 0 0 20px rgba(34,197,94,0.4); }
.action-card.ruby:hover { border-color: #f472b6; box-shadow: 0 0 22px rgba(236,72,153,0.42); }

/* ========================================
   10. News / Events / Guides Section
   ======================================== */
.news-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-body), var(--bg-surface) 50%, var(--bg-body));
}

.news-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 10px 24px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.news-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.news-tab.active {
  color: white;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px var(--orange-glow);
}

.news-tab-content {
  display: none;
}

.news-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ========================================
   11. Announcement / News Cards
   ======================================== */
.news-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  padding: 20px;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.news-card .card-thumb {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
}

.news-card .card-body {
  flex: 1;
  min-width: 0;
}

.news-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.news-card .card-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.news-card .card-title a:hover {
  color: var(--orange-light);
}

.news-card .card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card .card-meta span {
  color: var(--red);
  font-weight: 600;
}

.news-card .card-badge {
  flex-shrink: 0;
}

.news-card .card-badge img {
  width: 40px;
  height: auto;
}

/* Legacy announcement support */
.announcement {
  background: var(--gradient-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--card-radius) !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
  transition: all var(--transition-normal);
  color: var(--text-primary) !important;
}

.announcement:hover {
  border-color: rgba(255, 107, 0, 0.3) !important;
  background: var(--bg-card-hover) !important;
}

.announcement a {
  color: var(--orange-light) !important;
  font-weight: 600;
}

.announcement .text-muted {
  color: var(--text-muted) !important;
}

.announcement-info, .ent-info {
  background: var(--bg-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: var(--text-secondary) !important;
  padding: 16px !important;
}

/* ========================================
   12. Game Guide & Info Section
   ======================================== */
.guide-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.guide-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  padding: 30px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.guide-card strong {
  color: var(--orange-light);
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

/* Legacy guide classes */
.title_index_info {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--orange-light) !important;
  border-bottom: 2px solid rgba(255, 107, 0, 0.2) !important;
  margin-top: 20px !important;
  padding-bottom: 10px !important;
}

.text_info_index {
  padding: 16px !important;
  color: var(--text-secondary) !important;
  line-height: 1.8 !important;
}

.text_info_index a {
  color: var(--text-secondary) !important;
}

.text_info_index div {
  background: var(--bg-surface) !important;
  border-radius: 12px !important;
  color: var(--text-secondary) !important;
}

.ant-col-24 {
  color: var(--text-secondary);
}

/* ========================================
   13. Feature Game Gallery
   ======================================== */
.slider-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-body), var(--bg-surface));
  overflow: hidden;
}

.feature-game-section {
  height: auto;
  min-height: 0;
}

.feature-game-slider {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.feature-game-slide {
  display: none;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
}

.feature-game-slide.active {
  display: flex;
  animation: featureGalleryIn 0.42s ease both;
}

.feature-game-slide[hidden] {
  display: none !important;
}

.feature-slider-arrow {
  position: absolute;
  top: calc(50% - 19px);
  z-index: 8;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(8, 12, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(255, 107, 0, 0.12);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.feature-slider-arrow:hover,
.feature-slider-arrow:focus-visible {
  color: #fff;
  background: rgba(255, 112, 0, 0.94);
  border-color: rgba(255, 184, 77, 0.84);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 128, 0, 0.48);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.feature-slider-arrow:focus-visible {
  outline: 3px solid rgba(255, 184, 77, 0.5);
  outline-offset: 3px;
}

.feature-slider-prev {
  left: 14px;
}

.feature-slider-next {
  right: 14px;
}

.feature-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 24px;
  margin-top: 18px;
}

.feature-slider-dot {
  display: block;
  width: 10px;
  min-width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: none;
  transition:
    width var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.feature-slider-dot:hover {
  background: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.feature-slider-dot.active {
  width: 25px;
  background: #ff7800;
  border-color: #ffad42;
  border-radius: 999px;
  box-shadow: 0 0 13px rgba(255, 128, 0, 0.5);
}

.feature-game-card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.68), rgba(124, 58, 237, 0.38)),
    rgba(9, 13, 35, 0.94);
  border: 1px solid rgba(255, 157, 55, 0.38);
  border-radius: 17px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 107, 0, 0.1);
}

.feature-game-card::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  pointer-events: none;
}

.feature-game-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

@keyframes featureGalleryIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper-button-prev,
.swiper-button-next {
  width: 40px !important;
  height: 40px !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-fast);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: translateY(-50%) scale(1.15);
}

/* ========================================
   14. Community Section
   ======================================== */
.community-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  text-align: center;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--text-primary);
}

.social-card .social-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  transition: transform var(--transition-normal);
}

.social-card:hover {
  transform: translateY(-6px);
  color: var(--text-primary);
}

.social-card:hover .social-icon {
  transform: scale(1.15);
}

.social-card.facebook .social-icon { background: linear-gradient(135deg, #1877f2, #42a5f5); }
.social-card.facebook:hover { border-color: #1877f2; box-shadow: 0 0 25px rgba(24,119,242,0.4); }

.social-card.youtube .social-icon { background: linear-gradient(135deg, #ff0000, #ff4444); }
.social-card.youtube:hover { border-color: #ff0000; box-shadow: 0 0 25px rgba(255,0,0,0.4); }

.social-card.zalo .social-icon { background: linear-gradient(135deg, #0068ff, #4d9aff); }
.social-card.zalo:hover { border-color: #0068ff; box-shadow: 0 0 25px rgba(0,104,255,0.4); }

.social-card.discord .social-icon { background: linear-gradient(135deg, #5865f2, #7983f5); }
.social-card.discord:hover { border-color: #5865f2; box-shadow: 0 0 25px rgba(88,101,242,0.4); }

.social-card.community .social-icon { background: linear-gradient(135deg, #145dbf, #45a2ff); }
.social-card.community:hover { border-color: #1877f2; box-shadow: 0 0 25px rgba(24,119,242,0.4); }

.social-card.tiktok .social-icon { background: linear-gradient(135deg, #010101, #333); }
.social-card.tiktok:hover { border-color: #69c9d0; box-shadow: 0 0 25px rgba(105,201,208,0.4); }

.social-card span {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ========================================
   15. Footer
   ======================================== */
.game-footer {
  background: var(--bg-surface);
  border-top: 2px solid rgba(255, 107, 0, 0.15);
  padding: 60px 20px 30px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo img {
  max-width: 180px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px var(--orange-glow));
  pointer-events: none;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 350px;
}

.footer-col h4 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--orange-light);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--orange-light);
  transform: translateX(3px);
}

.footer-col ul li a i {
  font-size: 0.75em;
  color: var(--orange);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 5px 0;
}

.footer-bottom .footer-warning {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 12px;
  padding: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   16. Modal (Download) — Redesigned
   ======================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: 5% auto !important;
  padding: 30px !important;
  width: 90% !important;
  max-width: 500px !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--orange-glow) !important;
  position: relative;
}

.modal-content .close {
  display: flex !important;
  position: absolute;
  top: 15px; right: 15px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--text-secondary) !important;
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.modal-content .close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red) !important;
}

.modal-content img {
  border-radius: 12px !important;
}

.modal-content .card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  transition: all var(--transition-normal);
}

.modal-content .card:hover {
  border-color: var(--orange) !important;
  box-shadow: 0 0 15px var(--orange-glow);
}

.modal-content .card-body {
  color: var(--text-primary);
}

.modal-content .card-title {
  color: var(--text-primary) !important;
  font-family: 'Chakra Petch', sans-serif;
}

.modal-content .card-text {
  color: var(--text-secondary) !important;
}

.download-bg {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ========================================
   17. ibox & Legacy Component Support
   ======================================== */
.ibox-content {
  background: var(--gradient-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--card-radius) !important;
  color: var(--text-primary) !important;
  padding: 25px !important;
  box-shadow: none !important;
}

.ibox-content h5, .ibox-content .h3 {
  color: var(--text-primary) !important;
  text-shadow: none !important;
  font-family: 'Chakra Petch', sans-serif !important;
}

/* ========================================
   18. Buttons — Backward Compatible
   ======================================== */
.btn {
  border-radius: var(--btn-radius) !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal) !important;
}

.btn-action {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: white !important;
  border-radius: var(--btn-radius) !important;
  padding: 10px 20px !important;
}

.btn-action:hover, .btn-action:focus {
  background: linear-gradient(135deg, #e65100, var(--orange)) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--orange-glow) !important;
  color: white !important;
}

.btn-download {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: white !important;
  text-shadow: none !important;
}

.btn-download:hover, .btn-download:focus {
  background: linear-gradient(135deg, #e65100, var(--orange)) !important;
  color: white !important;
}

.btn-info1 {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: white !important;
  text-shadow: none !important;
  border-radius: var(--btn-radius) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
}

.btn-info1:hover, .btn-info1:focus {
  background: linear-gradient(135deg, #e65100, var(--orange)) !important;
  box-shadow: 0 4px 20px var(--orange-glow) !important;
  color: white !important;
  transform: translateY(-2px);
}

.btn-navbar {
  background: var(--gradient-secondary) !important;
  border: none !important;
  color: white !important;
  text-shadow: none !important;
}

.btn-navbar:hover, .btn-navbar:focus {
  background: linear-gradient(135deg, #6d28d9, var(--purple)) !important;
  box-shadow: var(--shadow-glow-purple) !important;
  color: white !important;
  font-size: inherit !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--green), var(--green-light)) !important;
  border: none !important;
}

.btn-danger {
  background: linear-gradient(135deg, var(--red), var(--red-light)) !important;
  border: none !important;
  text-shadow: none !important;
}

.btn-primary {
  background: var(--gradient-secondary) !important;
  border: none !important;
  text-shadow: none !important;
}

.btn-warning {
  background: var(--gradient-primary) !important;
  border: none !important;
  text-shadow: none !important;
}

.btn-dark {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-shadow: none !important;
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ========================================
   19. Form Controls
   ======================================== */
.form-control, .single-line {
  background-color: var(--bg-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  padding: 10px 14px !important;
  transition: all var(--transition-fast) !important;
}

.form-control:focus, .single-line:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px var(--orange-glow) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
}

/* ========================================
   20. Animations & Effects
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  25% { transform: translate(30px, -40px) scale(1.1); opacity: 1; }
  50% { transform: translate(-20px, -70px) scale(0.9); opacity: 0.8; }
  75% { transform: translate(40px, -30px) scale(1.05); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--orange-glow); }
  50% { box-shadow: 0 0 40px var(--orange-glow), 0 0 60px rgba(255, 107, 0, 0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative orb for sections */
.section-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section-orb.orb-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.08), transparent 70%);
  top: -50px; right: -50px;
}

.section-orb.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06), transparent 70%);
  bottom: -100px; left: -100px;
}

/* ========================================
   21. Responsive Media Queries
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-section {
    min-height: 70vh;
    padding: 80px 20px 60px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .actions-grid.actions-grid--member {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
    --container-padding: 0 15px;
  }

  .header-inner {
    height: 60px;
  }

  .header-logo img {
    height: 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo {
    max-width: 250px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn-game {
    width: 100%;
    max-width: 280px;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .action-card {
    padding: 18px 12px;
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title h2::before,
  .section-title h2::after {
    display: none;
  }

  .user-panel .user-balance,
  .user-panel .user-name-text {
    display: none;
  }

  .modal-content {
    margin: 10% auto !important;
    padding: 20px !important;
    width: 95% !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-section {
    min-height: 60vh;
    padding: 70px 15px 50px;
  }

  .hero-logo {
    max-width: 200px;
  }

  .btn-game {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .action-card .action-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  :root {
    --container-width: 1300px;
  }

  .hero-title {
    font-size: 3.5rem;
  }
}

/* ========================================
   22. Backward Compatibility — Old Classes
   ======================================== */

/* Old image button styles */
.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-img {
  max-width: 160px;
  margin: 5px;
  transition: transform var(--transition-normal);
}

.btn-img:hover {
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .btn-img {
    max-width: 100px;
  }
}

/* Old marquee */
.marquee {
  display: none;
}

/* User info old styles - hide old version */
.user_name {
  display: none;
}

/* Override Bootstrap text-white on dark bg */
.text-white {
  color: var(--text-primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.font-weight-bold, .fw-bold {
  font-weight: 700 !important;
}

/* Table styling for dark theme */
.table {
  color: var(--text-primary);
}

.table th, .table td {
  border-color: rgba(255, 255, 255, 0.08);
}

.table-custom, .table-custom tr, .table-custom td, .table-custom th {
  border: none !important;
  color: var(--text-primary);
}

/* Old animation classes — keep but restyle */
.text-black1 {
  animation: none;
  color: var(--orange) !important;
}

.blinking-link {
  animation: pulse-glow 2s infinite;
  color: var(--orange-light) !important;
}

/* Active state override */
.active:not(.news-tab):not(.swiper-slide-active):not(.mobile-nav-overlay):not(.announcement-info):not(.ent-info):not(.manga-tab-btn):not(.manga-tab-pane):not(.manga-news-tab):not(.manga-pane):not(.bxh-tab) {
  background: transparent;
  box-shadow: none;
  font-size: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 0, 0.5);
}

/* Selection color */
::selection {
  background: rgba(255, 107, 0, 0.3);
  color: white;
}

/* ========================================
   23. Homepage Manga Redesign
   ======================================== */
html {
  min-width: 0;
  background: #0a0e27;
}

body,
body.girlkun-bg {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #081a36 0%, #0d2350 45%, #101942 100%) !important;
}

#page-wrapper {
  position: relative;
  z-index: 2;
  overflow: clip;
}

.hero-section {
  min-height: clamp(620px, 86vh, 900px);
  background: transparent;
}

.hero-bg {
  background-size: cover;
  background-position: center center;
}

.hero-bg::after {
  background:
    linear-gradient(180deg, rgba(8, 12, 34, 0.18) 0%, rgba(8, 12, 34, 0.35) 48%, #0a0e27 100%),
    radial-gradient(circle at center, rgba(8, 12, 34, 0.08), rgba(8, 12, 34, 0.58));
}

.download-section,
.quick-actions,
.slider-section,
.guide-section,
.community-section {
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.84), rgba(20, 25, 55, 0.9), rgba(10, 14, 39, 0.84));
}

.download-section.section-watermark,
.quick-actions.section-watermark,
.feature-game-section.section-watermark {
  background: linear-gradient(180deg, rgba(8, 12, 34, 0.68), rgba(15, 21, 49, 0.76), rgba(8, 12, 34, 0.72));
}

.section-watermark > .site-container {
  position: relative;
  z-index: 2;
}

.quick-actions,
.guide-section,
.community-section {
  background-color: transparent;
}

.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.home-guide-grid .guide-card {
  height: 100%;
  margin: 0;
}

.home-guide-grid .guide-card h3 i {
  margin-right: 8px;
  color: var(--orange-light);
}

.home-guide-grid .guide-card p {
  margin: 0 0 12px;
}

.home-guide-grid .guide-card p:last-child {
  margin-bottom: 0;
}

.manga-news-section {
  position: relative;
  z-index: 3;
  padding: clamp(64px, 8vw, 105px) 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(236, 243, 245, 0.88), rgba(255, 255, 255, 0.91));
  background-position: center;
  background-size: cover;
  color: #161616;
  border-top: 5px solid #161616;
  border-bottom: 7px solid #161616;
}

.manga-news-section.section-watermark {
  background-position: center, center 34%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.manga-news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, #0f172a 1px, transparent 1.5px),
    repeating-linear-gradient(125deg, transparent 0 8px, rgba(15, 23, 42, 0.15) 9px, transparent 10px);
  background-size: 17px 17px, 100% 100%;
  mask-image: linear-gradient(90deg, #000, transparent 37%, transparent 63%, #000);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 37%, transparent 63%, #000);
}

.manga-news-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(54vw, 700px);
  height: 4px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6d28d9, #d946ef, #ff7a00);
  box-shadow: 0 2px 0 #161616;
}

.manga-news-section .site-container {
  position: relative;
  z-index: 1;
}

.manga-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0 auto 48px;
  padding: 13px 48px;
  color: #1c1c1c;
  background: #fff;
  border: 4px solid #1c1c1c;
  box-shadow: 6px 6px 0 rgba(20, 20, 20, 0.17);
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  letter-spacing: 1px;
  transform: skewX(-5deg);
}

.manga-heading::before,
.manga-heading::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.manga-heading::before {
  left: -10px;
  bottom: -7px;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent #ffc400 transparent;
}

.manga-heading::after {
  right: -10px;
  top: -7px;
  border-width: 20px 20px 0 0;
  border-color: #ffc400 transparent transparent transparent;
}

.manga-heading > * {
  transform: skewX(5deg);
}

.manga-heading span {
  color: #ff9d00;
  font-size: 0.82em;
}

.manga-shell {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 9px;
  background: #1d1d1b;
  clip-path: polygon(7% 0, 94% 0, 100% 5%, 97.5% 17%, 99% 18%, 96% 22%, 96% 83%, 92% 100%, 8% 100%, 0 94%, 2.5% 80%, 1% 79%, 4% 74%, 4% 8%);
  filter: drop-shadow(0 17px 24px rgba(0, 0, 0, 0.3));
}

.manga-frame {
  position: relative;
  min-height: 520px;
  padding: clamp(18px, 2vw, 27px);
  overflow: hidden;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.98) 0 68%, rgba(255, 250, 235, 0.98) 68%),
    #fff;
  clip-path: polygon(6% 0, 94% 0, 100% 5%, 97% 16%, 99% 17%, 96% 21%, 96% 83%, 92% 100%, 8% 100%, 0 94%, 3% 80%, 1% 79%, 4% 74%, 4% 8%);
}

.manga-frame::before {
  content: '';
  position: absolute;
  inset: 12px auto 12px 12px;
  width: 31%;
  z-index: 0;
  border: 4px solid #ff7a00;
  background:
    radial-gradient(circle, rgba(224, 72, 0, 0.25) 1px, transparent 2px),
    linear-gradient(180deg, #ff8b30, #ffc84b);
  background-size: 13px 13px, 100% 100%;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.manga-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.33fr) minmax(330px, 0.92fr);
  gap: 16px;
  min-height: 470px;
}

.manga-primary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 0 clamp(8px, 1vw, 14px);
}

.manga-slider {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 4px solid #161616;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
}

.manga-slider::before {
  content: '';
  position: absolute;
  inset: 8px;
  z-index: 5;
  border: 2px solid rgba(255, 255, 255, 0.86);
  pointer-events: none;
}

.manga-slider .swiper {
  width: 100%;
  aspect-ratio: 1024 / 627;
}

.manga-slider .swiper-slide {
  overflow: hidden;
  background: #f2f2f2;
}

.manga-slider .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.manga-slider .swiper-button-prev,
.manga-slider .swiper-button-next {
  width: 34px !important;
  height: 42px !important;
  margin-top: -21px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: rgba(12, 12, 12, 0.64);
  transform: none;
}

.manga-slider .swiper-button-prev:hover,
.manga-slider .swiper-button-next:hover {
  color: #ffc400;
  background: #161616;
  transform: none;
}

.manga-slider .swiper-button-prev::after,
.manga-slider .swiper-button-next::after {
  font-size: 16px;
  font-weight: 900;
}

.manga-slider .swiper-pagination {
  bottom: 8px !important;
}

.manga-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1px solid #161616;
  opacity: 0.9;
}

.manga-slider .swiper-pagination-bullet-active {
  background: #ff7300;
}

.manga-news-panel {
  min-width: 0;
  padding: 0 12px 2px;
  color: #191919;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid #161616;
}

.manga-news-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 38px;
  align-items: stretch;
  border-bottom: 2px solid #b9b9b9;
}

.manga-news-tab {
  position: relative;
  width: auto;
  min-width: 0;
  padding: 13px 8px 10px;
  border: 0;
  border-radius: 0;
  color: #171717;
  background: transparent;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.manga-news-tab::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: -2px;
  left: 8px;
  height: 3px;
  background: transparent;
}

.manga-news-tab:hover,
.manga-news-tab.active {
  color: #f04d22 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1;
}

.manga-news-tab.active::after {
  background: #f04d22;
}

.manga-tab-more {
  align-self: center;
  justify-self: end;
  display: grid;
  width: 28px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #e9393f;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.manga-tab-more:hover {
  color: #fff;
  background: #ff6a00;
}

.manga-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

.manga-pane.active {
  display: block;
}

.manga-pane[hidden] {
  display: none !important;
}

.manga-news-list {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 5px 0 7px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  list-style: none;
}

.manga-news-list li {
  position: static;
  display: grid;
  grid-template-columns: 13px auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 5px 1px;
  overflow: visible;
  border-bottom: 1px solid #dedede;
  color: #202020;
  font-size: 0.78rem;
  line-height: 1.35;
  transform: none;
}

.manga-news-list li:last-child {
  border-bottom: 0;
}

.manga-list-star {
  color: #111;
  font-size: 0.65rem;
}

.manga-list-tag {
  margin-right: 5px;
  color: #f15b27;
  white-space: nowrap;
}

.manga-list-link {
  min-width: 0;
  overflow: hidden;
  color: #252525;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manga-list-link:hover {
  color: #f04d22;
}

.manga-list-date {
  padding-left: 8px;
  color: #555;
  font-size: 0.72rem;
  white-space: nowrap;
}

.manga-news-list .manga-list-more {
  grid-template-columns: 13px minmax(0, 1fr);
  padding-top: 7px;
}

.manga-list-more a {
  color: #f04d22;
  font-size: 0.75rem;
}

.manga-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.manga-guide-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 4px solid #161616;
  background: #161616;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.manga-guide-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.manga-guide-card:hover {
  z-index: 2;
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 7px 8px 0 rgba(255, 106, 0, 0.36);
}

.manga-guide-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.manga-guide-card:hover img {
  transform: scale(1.035);
}

.manga-corner {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.manga-corner--top {
  top: 0;
  right: 0;
  width: 110px;
  height: 72px;
  background: #fff;
  border-left: 4px solid #161616;
  border-bottom: 4px solid #161616;
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  transform: translate(36px, -32px) rotate(-7deg);
}

.manga-corner--bottom {
  right: 8px;
  bottom: 6px;
  width: 115px;
  height: 105px;
  background: linear-gradient(135deg, transparent 47%, #ff8a32 48%);
  border-right: 4px solid #161616;
  border-bottom: 4px solid #161616;
}

.manga-color-strip {
  position: absolute;
  right: 4%;
  bottom: 0;
  left: 4%;
  z-index: 5;
  height: 10px;
  background: linear-gradient(90deg, #732ee8, #c43fe7 22%, #ffd328 54%, #ff7b18 78%, #141414);
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
}

@media (max-width: 1100px) {
  .manga-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  }
}

@media (max-width: 900px) {
  .manga-shell,
  .manga-frame {
    clip-path: polygon(4% 0, 96% 0, 100% 3%, 97% 9%, 100% 10%, 97% 13%, 97% 92%, 93% 100%, 6% 100%, 0 96%, 3% 90%, 1% 89%, 3% 86%, 3% 5%);
  }

  .manga-frame {
    min-height: 0;
  }

  .manga-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .manga-primary {
    padding-left: 0;
  }

  .manga-guide-grid {
    grid-auto-rows: minmax(0, 1fr);
  }

  .manga-guide-card {
    aspect-ratio: 1 / 1;
  }

  .manga-corner--bottom {
    display: none;
  }
}

@media (max-width: 768px) {
  body,
  body.girlkun-bg {
    background-color: #0a0e27 !important;
    background-image: linear-gradient(180deg, rgba(6, 9, 28, 0.7), rgba(10, 14, 39, 0.9)) !important;
    background-position: 50% 0 !important;
    background-size: 100% 100% !important;
  }

  .hero-section {
    min-height: 72vh;
    padding-top: 90px;
    padding-bottom: 70px;
    background: transparent;
  }

  .hero-bg {
    background-size: auto 100%;
    background-position: center top;
  }

  .manga-news-section {
    padding: 65px 0;
    background-position: center top;
  }

  .manga-news-section::before {
    opacity: 0.1;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .manga-heading {
    margin-bottom: 34px;
    padding: 11px 28px;
    border-width: 3px;
    text-align: center;
  }

  .manga-shell {
    padding: 6px;
  }

  .manga-frame {
    padding: 17px 13px 21px;
  }

  .manga-frame::before {
    inset: 7px auto 7px 7px;
    width: 54%;
    opacity: 0.72;
  }

  .manga-layout {
    gap: 13px;
  }

  .manga-slider,
  .manga-news-panel,
  .manga-guide-card {
    border-width: 3px;
  }

  .manga-slider {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #111;
  }

  .manga-slider .swiper {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  .manga-slider .swiper-wrapper {
    height: 100% !important;
  }

  .manga-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
  }

  .manga-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
  }

  /* Isolated mobile sizing for the Tin tức - Sự kiện banner only. */
  .manga-slider .news-banner-swiper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1024 / 627 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #111 !important;
    line-height: 0;
  }

  .manga-slider .news-banner-swiper > .swiper-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .manga-slider .news-banner-swiper .news-banner-slide {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #111 !important;
  }

  .manga-slider .news-banner-swiper .news-banner-image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #111;
  }

  .manga-slider .news-banner-swiper .news-banner-pagination {
    right: 0 !important;
    bottom: 7px !important;
    left: 0 !important;
    z-index: 9;
    line-height: 1;
  }

  .manga-corner--top {
    display: none;
  }

  .manga-news-panel {
    padding-right: 9px;
    padding-left: 9px;
  }

  .manga-news-tab {
    padding: 12px 4px 9px;
    font-size: 0.72rem;
  }

  .manga-news-list li {
    grid-template-columns: 12px auto minmax(0, 1fr);
    font-size: 0.76rem;
  }

  .manga-list-date {
    display: none;
  }

  .manga-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-items: start;
    gap: 9px;
  }

  .manga-guide-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden;
  }

  .manga-guide-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center;
  }

  .manga-guide-card:hover img {
    transform: none;
  }

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

  .feature-game-section {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 50px;
    padding-bottom: 44px;
    overflow: visible;
  }

  .feature-game-section .site-container,
  .feature-game-slider,
  .feature-game-slide,
  .feature-game-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
  }

  .feature-game-section .section-title {
    margin-bottom: 30px;
  }

  .feature-game-slider {
    max-width: 100%;
    overflow: hidden;
    touch-action: pan-y;
  }

  .feature-game-slide {
    max-width: 100%;
    gap: 16px;
  }

  .feature-slider-arrow {
    top: calc(50% - 16px);
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
    opacity: 0.76;
  }

  .feature-slider-arrow:hover,
  .feature-slider-arrow:focus-visible {
    transform: translateY(-50%);
  }

  .feature-slider-prev {
    left: 7px;
  }

  .feature-slider-next {
    right: 7px;
  }

  .feature-slider-dots {
    gap: 8px;
    margin-top: 14px;
  }

  .feature-game-card {
    padding: 4px;
    border-radius: 13px;
  }

  .feature-game-card::after {
    inset: 4px;
    border-radius: 9px;
  }

  .feature-game-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    border-radius: 9px;
  }
}

@media (max-width: 480px) {
  body,
  body.girlkun-bg {
    background-size: 100% 100%, auto 82vh !important;
  }

  .hero-section {
    min-height: 68vh;
  }

  .manga-heading {
    max-width: calc(100% - 24px);
    margin-bottom: 28px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 0.93rem;
  }

  .manga-frame {
    padding: 13px 9px 18px;
  }

  .manga-primary {
    gap: 10px;
  }

  .manga-slider .swiper-button-prev,
  .manga-slider .swiper-button-next {
    display: none;
  }

  .manga-slider .news-banner-swiper {
    aspect-ratio: 1024 / 627 !important;
  }

  .manga-news-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 30px;
  }

  .manga-news-tab {
    font-size: 0.64rem;
    letter-spacing: -0.1px;
  }

  .manga-list-tag {
    display: none;
  }

  .manga-news-list li {
    grid-template-columns: 12px minmax(0, 1fr);
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .manga-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 8px;
  }

  .manga-guide-card {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden;
    border-width: 2px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.16);
  }

  .manga-guide-card img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .manga-guide-card:hover img {
    transform: none;
  }

  .feature-game-section {
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .feature-game-section .section-title {
    margin-bottom: 24px;
  }

  .feature-game-slide {
    gap: 13px;
  }

  .feature-slider-arrow {
    width: 30px;
    height: 30px;
    opacity: 0.62;
  }

  .feature-slider-prev {
    left: 5px;
  }

  .feature-slider-next {
    right: 5px;
  }
}

@media (max-width: 360px) {
  .manga-guide-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manga-guide-card,
  .manga-guide-card img {
    transition: none;
  }

  .feature-game-slide.active {
    animation: none;
  }
}

/* ========================================
   Clean page background below the isolated homepage hero.
   ======================================== */
body.girlkun-bg {
  background: linear-gradient(180deg, #081a36 0%, #0d2350 45%, #101942 100%) !important;
}

#page-wrapper,
.hero-section,
.download-section,
.quick-actions,
.news-section,
.manga-news-section,
.slider-section,
.feature-game-section,
.guide-section,
.community-section,
.section-watermark {
  background-color: transparent !important;
  background-image: none !important;
}

.hero-bg {
  background-image: none !important;
}

.manga-news-section {
  border-top: 0;
  border-bottom: 0;
}

.manga-news-section::before,
.manga-news-section::after {
  display: none;
}

.game-footer {
  background: rgba(8, 12, 34, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* The original feature slides remain in index.php; make the active one
   explicitly visible even if its entrance animation is interrupted. */
.feature-game-slide.active:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.feature-game-slide.active:not([hidden]) .feature-game-card,
.feature-game-slide.active:not([hidden]) .feature-game-img {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ========================================
   24. UI polish pass
   Scope: visual-only refinements for layout, color, controls and responsiveness.
   ======================================== */
:root {
  --color-primary: #15803d;
  --color-primary-strong: #166534;
  --color-primary-soft: rgba(21, 128, 61, 0.18);
  --color-accent: #d97706;
  --color-accent-light: #f59e0b;
  --color-ring: rgba(34, 197, 94, 0.42);
  --surface-glass: rgba(15, 23, 42, 0.72);
  --surface-glass-strong: rgba(15, 31, 43, 0.88);
  --surface-border: rgba(255, 255, 255, 0.11);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.28);
  --shadow-focus: 0 0 0 4px var(--color-ring);
  --radius-card: 14px;
  --radius-control: 12px;

  --bg-body: #0f172a;
  --bg-surface: #0f1f2b;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.095);
  --orange: var(--color-accent);
  --orange-light: var(--color-accent-light);
  --orange-glow: rgba(217, 119, 6, 0.34);
  --green: var(--color-primary);
  --green-light: #22c55e;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), #22c55e);
  --gradient-header: linear-gradient(180deg, rgba(8, 13, 28, 0.96), rgba(15, 31, 43, 0.92));
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

html {
  text-size-adjust: 100%;
}

body,
body.girlkun-bg {
  color: #f8fafc;
  font-family: 'Be Vietnam Pro', 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.btn-game,
.nav-links a,
.mobile-nav-overlay a,
.action-card span,
.social-card span {
  letter-spacing: 0;
}

h1,
h2,
h3,
.section-title h2,
.hero-title {
  font-family: 'Chakra Petch', 'Be Vietnam Pro', 'Inter', sans-serif;
}

a,
button,
.btn,
.btn-game,
.user-panel,
.action-card,
.download-card,
.social-card,
.manga-news-tab,
.manga-tab-more,
.feature-slider-arrow,
.feature-slider-dot,
.swiper-button-prev,
.swiper-button-next {
  touch-action: manipulation;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--color-ring) !important;
  outline-offset: 3px;
  box-shadow: var(--shadow-focus) !important;
}

.game-header {
  background: var(--gradient-header);
  border-bottom: 1px solid rgba(34, 197, 94, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.header-inner {
  gap: 16px;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  min-height: 44px;
  padding: 10px 13px;
  color: rgba(248, 250, 252, 0.74);
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-primary-soft);
  border-color: rgba(34, 197, 94, 0.24);
  color: #ffffff;
  text-shadow: none;
}

.header-logo img {
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.24));
}

.user-panel {
  min-height: 44px;
  border-color: var(--surface-border);
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
}

.user-panel .user-name {
  color: #bbf7d0;
}

.user-panel img {
  border-color: var(--green-light);
}

.user-dropdown-menu {
  background: rgba(15, 31, 43, 0.98);
  border-color: var(--surface-border);
  box-shadow: var(--shadow-soft);
}

.user-dropdown-menu a {
  min-height: 44px;
}

.user-dropdown-menu a:hover {
  background: var(--color-primary-soft);
}

.hamburger {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border-radius: var(--radius-control);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-overlay {
  background:
    radial-gradient(circle at top, rgba(21, 128, 61, 0.2), transparent 34%),
    rgba(8, 13, 28, 0.97);
  padding-top: max(86px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.mobile-nav-overlay a {
  min-height: 48px;
  max-width: 360px;
  border-color: var(--surface-border);
  background: rgba(255, 255, 255, 0.065);
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a:focus-visible {
  background: var(--color-primary-soft);
  border-color: rgba(34, 197, 94, 0.4);
  transform: none;
}

.site-container {
  padding-inline: clamp(16px, 3vw, 28px);
}

.section-title {
  margin-bottom: clamp(30px, 5vw, 50px);
}

.section-title h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.25vw, 2.15rem);
  letter-spacing: 0.04em;
}

.section-title .title-line {
  background: linear-gradient(90deg, transparent, var(--green-light), var(--color-accent-light), transparent);
}

.hero-section {
  min-height: clamp(520px, 76dvh, 780px);
  padding-top: clamp(96px, 14vh, 140px);
  padding-bottom: clamp(56px, 9vh, 88px);
}

.hero-bg::after {
  background:
    linear-gradient(180deg, rgba(8, 13, 28, 0.22), rgba(15, 23, 42, 0.56) 55%, #0f172a 100%),
    radial-gradient(circle at center, rgba(21, 128, 61, 0.12), rgba(15, 23, 42, 0.58));
}

.hero-particles {
  opacity: 0.68;
}

.hero-title {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.75rem);
  line-height: 1.06;
  margin-bottom: 16px;
  text-shadow: 0 0 28px rgba(217, 119, 6, 0.28), 0 8px 26px rgba(0, 0, 0, 0.44);
}

.hero-subtitle {
  max-width: 680px;
  color: rgba(248, 250, 252, 0.82);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.15rem);
}

.btn,
.btn-game,
.btn-info1,
.btn-action,
.btn-download {
  min-height: 44px;
  border-radius: var(--radius-control) !important;
}

.btn-game {
  box-shadow: none;
}

.btn-game:hover,
.btn-action:hover,
.btn-info1:hover {
  transform: translateY(-2px);
}

.btn-game:active,
.btn-action:active,
.btn-info1:active {
  transform: translateY(0);
}

.btn-game-primary,
.btn-info1,
.btn-action,
.btn-download,
.btn-warning {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light)) !important;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.22) !important;
}

.btn-game-green,
.btn-success {
  background: var(--gradient-primary) !important;
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.24) !important;
}

.download-card,
.action-card,
.social-card,
.guide-card,
.ibox-content,
.modal-content .card {
  border-color: var(--surface-border) !important;
  border-radius: var(--radius-card) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    var(--surface-glass) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, var(--shadow-soft);
}

.download-card:hover,
.action-card:hover,
.social-card:hover,
.guide-card:hover,
.announcement:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.36) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 22px rgba(21, 128, 61, 0.14);
}

.download-grid,
.actions-grid,
.community-grid,
.home-guide-grid {
  align-items: stretch;
}

.download-card,
.action-card,
.social-card {
  min-height: 100%;
}

.download-card p,
.guide-card,
.footer-brand p,
.footer-bottom p,
.footer-warning {
  color: rgba(248, 250, 252, 0.72);
}

.action-card .action-icon,
.download-card .card-icon,
.social-card .social-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 26px rgba(0, 0, 0, 0.22);
}

.action-card:hover .action-icon,
.social-card:hover .social-icon {
  transform: scale(1.06);
}

.manga-shell {
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.26));
}

.manga-news-tab,
.manga-tab-more,
.feature-slider-arrow {
  min-width: 44px;
  min-height: 44px;
}

.manga-news-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(44px, auto);
}

.manga-news-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.manga-tab-more {
  width: 44px;
  height: 44px;
}

.manga-list-link {
  min-height: 24px;
}

.feature-slider-arrow {
  background: rgba(8, 13, 28, 0.84);
  border-color: var(--surface-border);
}

.feature-slider-dot {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.feature-slider-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: width var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-slider-dot:hover,
.feature-slider-dot.active {
  width: 44px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.feature-slider-dot:hover::before {
  background: rgba(255, 255, 255, 0.76);
}

.feature-slider-dot.active::before {
  width: 26px;
  background: var(--color-accent-light);
  box-shadow: 0 0 13px rgba(245, 158, 11, 0.45);
}

.feature-slider-arrow:hover,
.feature-slider-arrow:focus-visible {
  background: var(--color-primary);
  border-color: rgba(134, 239, 172, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), 0 0 24px rgba(21, 128, 61, 0.28);
}

.form-control,
.single-line {
  min-height: 44px;
  background-color: rgba(15, 31, 43, 0.92) !important;
}

.form-control:focus,
.single-line:focus {
  border-color: var(--green-light) !important;
  box-shadow: var(--shadow-focus) !important;
}

.modal {
  padding: 20px;
  background-color: rgba(2, 6, 23, 0.76);
}

.modal-content {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface-glass-strong) !important;
  border-color: var(--surface-border) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58) !important;
}

.modal-content .close {
  min-width: 44px;
  min-height: 44px;
}

.game-footer {
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.footer-col h4 {
  color: #bbf7d0;
}

.footer-col ul li a {
  min-height: 32px;
}

.table-responsive,
.history-table-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1100px) {
  .nav-links a {
    padding-inline: 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-section {
    min-height: 68dvh;
  }

  .download-card,
  .guide-card {
    padding: 24px 18px;
  }

  .actions-grid,
  .actions-grid.actions-grid--member {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .action-card {
    min-height: 136px;
  }

  .modal {
    padding: 12px;
  }

  .modal-content {
    width: 100% !important;
    margin: 20px auto !important;
  }
}

@media (max-width: 520px) {
  .header-actions > .btn-game {
    display: none;
  }

  .user-panel {
    padding-inline: 8px;
  }

  .user-panel .user-name,
  .user-panel .user-balance {
    display: none;
  }

  .hero-title {
    max-width: 12ch;
    margin-inline: auto;
  }

  .hero-subtitle {
    max-width: 34ch;
  }

  .section-title h2 {
    font-size: 1.38rem;
  }
}

@media (max-width: 380px) {
  .actions-grid,
  .actions-grid.actions-grid--member,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-orb,
  .hero-logo {
    animation: none !important;
  }
}

/* ========================================
   25. Premium dark anime forest theme
   Frontend-only final layer for the public website.
   ======================================== */
:root {
  --forest-bg: #050914;
  --forest-bg-2: #08111d;
  --forest-panel: rgba(10, 16, 28, 0.86);
  --forest-panel-strong: rgba(12, 18, 30, 0.94);
  --forest-border: rgba(255, 184, 77, 0.22);
  --forest-border-green: rgba(54, 211, 124, 0.2);
  --forest-text: #f8fafc;
  --forest-muted: #aebbd1;
  --forest-dim: #748197;
  --forest-orange: #f97316;
  --forest-orange-2: #ffb347;
  --forest-gold: #ffd166;
  --forest-green: #16a34a;
  --forest-green-2: #4ade80;
  --forest-cyan: #22d3ee;
  --forest-danger: #ef4444;
  --forest-radius: 14px;
  --forest-radius-sm: 10px;
  --forest-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --forest-glow: 0 0 28px rgba(249, 115, 22, 0.24);
  --forest-green-glow: 0 0 24px rgba(34, 197, 94, 0.18);

  --bg-body: var(--forest-bg);
  --bg-surface: var(--forest-bg-2);
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.095);
  --color-primary: var(--forest-orange);
  --color-primary-strong: #c2410c;
  --color-primary-soft: rgba(249, 115, 22, 0.15);
  --color-accent: var(--forest-orange);
  --color-accent-light: var(--forest-gold);
  --color-ring: rgba(255, 179, 71, 0.42);
  --orange: var(--forest-orange);
  --orange-light: var(--forest-orange-2);
  --orange-glow: rgba(249, 115, 22, 0.34);
  --green: var(--forest-green);
  --green-light: var(--forest-green-2);
  --text-primary: var(--forest-text);
  --text-secondary: rgba(248, 250, 252, 0.78);
  --text-muted: rgba(174, 187, 209, 0.72);
  --gradient-primary: linear-gradient(135deg, var(--forest-orange), var(--forest-orange-2) 58%, var(--forest-gold));
  --gradient-secondary: linear-gradient(135deg, var(--forest-green), var(--forest-green-2));
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028));
  --gradient-header: linear-gradient(180deg, rgba(6, 10, 18, 0.96), rgba(11, 20, 30, 0.92));
  --card-radius: var(--forest-radius);
  --radius-card: var(--forest-radius);
  --btn-radius: 999px;
}

body,
body.girlkun-bg {
  background: linear-gradient(180deg, #081a36 0%, #0d2350 45%, #101942 100%) !important;
  color: var(--forest-text);
}

body.girlkun-bg::before {
  content: none;
  display: none;
}

#page-wrapper,
.game-header,
.game-footer {
  position: relative;
  z-index: 1;
}

.game-header {
  border-bottom: 1px solid rgba(255, 184, 77, 0.22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.game-header.scrolled {
  border-bottom-color: rgba(255, 184, 77, 0.38);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.44), var(--forest-glow);
}

.header-inner {
  min-height: 74px;
}

.header-logo img {
  max-height: 56px;
  filter: drop-shadow(0 0 14px rgba(255, 179, 71, 0.34));
}

.nav-links a {
  min-height: 44px;
  color: rgba(248, 250, 252, 0.76);
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(255, 184, 77, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.user-panel,
.mobile-nav-overlay a,
.user-dropdown-menu,
.modal-content {
  border-color: var(--forest-border) !important;
  background: rgba(10, 16, 28, 0.92) !important;
}

.user-panel .user-name,
.footer-col h4 {
  color: var(--forest-gold);
}

.user-panel img {
  border-color: var(--forest-orange-2);
}

.mobile-nav-overlay {
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.18), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.15), transparent 36%),
    rgba(4, 8, 18, 0.98);
}

.hero-section {
  min-height: clamp(560px, 82dvh, 820px);
  padding-top: clamp(92px, 14vh, 146px);
  padding-bottom: clamp(64px, 11vh, 112px);
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero-section::before {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 179, 71, 0.18), transparent 32%),
    radial-gradient(circle at 50% 68%, rgba(34, 197, 94, 0.13), transparent 34%);
}

.hero-section::after {
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 170px;
  background: linear-gradient(180deg, transparent, var(--forest-bg));
}

.hero-bg::after {
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.18), rgba(5, 9, 20, 0.58) 58%, var(--forest-bg) 100%),
    radial-gradient(circle at center, rgba(249, 115, 22, 0.12), transparent 42%) !important;
}

.hero-content {
  z-index: 4;
  width: min(860px, 100%);
}

.hero-logo {
  width: min(340px, 76vw);
  margin: 0 auto 18px;
}

.hero-logo img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 28px rgba(255, 179, 71, 0.38));
}

.hero-title {
  font-size: clamp(2.15rem, 1.42rem + 3.2vw, 4.35rem);
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(249, 115, 22, 0.3), 0 9px 30px rgba(0, 0, 0, 0.58);
  background: linear-gradient(135deg, #fff7ed, var(--forest-gold), var(--forest-orange-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(248, 250, 252, 0.86);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

.hero-cta {
  margin-top: 30px;
}

.btn-game-primary,
.auth-btn,
.gift-submit-btn,
.reload-btn,
.news-search button,
.news-more {
  color: #111827 !important;
  background: var(--gradient-primary) !important;
  border: 1px solid rgba(255, 215, 145, 0.5) !important;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.26) !important;
}

.btn-game-primary:hover,
.auth-btn:hover,
.gift-submit-btn:hover,
.reload-btn:hover {
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.38), 0 0 24px rgba(255, 209, 102, 0.16) !important;
}

.btn-game-green,
.btn-success {
  color: #052e16 !important;
  background: var(--gradient-secondary) !important;
  border-color: rgba(134, 239, 172, 0.45) !important;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.24) !important;
}

.btn-game-dark,
.article-btn.secondary {
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: #f8fafc !important;
}

.download-card,
.action-card,
.social-card,
.guide-card,
.ibox-content,
.bxh-card,
.gift-exchange-card,
.auth-card,
.atm-card,
.atm-hero,
.atm-panel,
.atm-history-panel,
.profile-legacy-panel,
.history-panel {
  border-color: var(--forest-border) !important;
  border-radius: var(--forest-radius) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.16), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(34, 197, 94, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(13, 19, 32, 0.94), rgba(5, 9, 20, 0.94)) !important;
  box-shadow: var(--forest-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.download-card:hover,
.action-card:hover,
.social-card:hover,
.guide-card:hover,
.bxh-card:hover,
.announcement:hover {
  border-color: rgba(255, 184, 77, 0.46) !important;
  box-shadow: var(--forest-shadow), var(--forest-glow) !important;
}

.actions-grid--premium {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1080px;
}

.action-card {
  min-height: 148px;
  border-color: rgba(255, 184, 77, 0.16);
}

.action-card .action-icon {
  background: var(--gradient-primary);
  color: #111827;
}

.action-card.gold .action-icon {
  background: linear-gradient(135deg, #f59e0b, #ffd166);
}

.action-card.green .action-icon {
  background: var(--gradient-secondary);
}

.action-card.gold:hover {
  border-color: rgba(255, 209, 102, 0.54) !important;
}

.action-card.green:hover {
  border-color: rgba(74, 222, 128, 0.48) !important;
  box-shadow: var(--forest-shadow), var(--forest-green-glow) !important;
}

.section-title h2::before,
.section-title h2::after {
  color: var(--forest-gold);
}

.section-title .title-line,
.history-title::after {
  background: linear-gradient(90deg, transparent, var(--forest-green-2), var(--forest-gold), var(--forest-orange), transparent);
}

.manga-heading {
  border-color: rgba(255, 184, 77, 0.28);
  background:
    linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.15), transparent),
    rgba(5, 9, 20, 0.78);
  color: #fff7ed;
  box-shadow: var(--forest-glow);
}

.manga-frame,
.manga-news-panel,
.manga-slider,
.manga-guide-card,
.feature-game-card {
  border-color: rgba(255, 184, 77, 0.24) !important;
  background-color: rgba(7, 11, 21, 0.88) !important;
}

.manga-news-tab.active,
.manga-news-tab:hover,
.manga-tab-more:hover {
  color: #111827;
  background: var(--gradient-primary);
}

.feature-slider-arrow:hover,
.feature-slider-arrow:focus-visible {
  background: var(--gradient-primary);
  color: #111827;
  border-color: rgba(255, 215, 145, 0.55);
}

.table-responsive,
.history-table-wrap,
.atm-table-wrap {
  overflow-x: auto;
  border-radius: var(--forest-radius-sm);
  scrollbar-color: var(--forest-orange) rgba(255, 255, 255, 0.08);
}

.table,
.atm-table,
.history-table {
  color: var(--forest-text) !important;
}

.table thead th,
.atm-table thead th,
.history-table th {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.26), rgba(124, 45, 18, 0.42)) !important;
  color: #ffedd5 !important;
  border-color: rgba(255, 184, 77, 0.18) !important;
}

.table tbody td,
.atm-table tbody td,
.history-table tbody td {
  background: rgba(8, 13, 24, 0.82) !important;
  color: #e5edf8 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.table-hover tbody tr:hover td,
.atm-table tbody tr:hover,
.history-table tbody tr:hover td {
  background: rgba(249, 115, 22, 0.09) !important;
}

.alert,
.atm-notice,
.profile-legacy-panel .info-notice,
.ruby-exchange-note,
.atm-milestone-empty,
.news-empty {
  border: 1px solid rgba(255, 184, 77, 0.24) !important;
  border-radius: var(--forest-radius-sm) !important;
  background: rgba(249, 115, 22, 0.09) !important;
  color: #ffedd5 !important;
}

.form-control,
.single-line,
.atm-amount-input,
.news-search input[type='search'] {
  min-height: 46px;
  border-color: rgba(255, 184, 77, 0.2) !important;
  border-radius: var(--forest-radius-sm) !important;
  background-color: rgba(5, 9, 20, 0.86) !important;
  color: #f8fafc !important;
}

.form-control::placeholder,
.single-line::placeholder,
.news-search input[type='search']::placeholder {
  color: rgba(174, 187, 209, 0.56) !important;
}

.form-control:focus,
.single-line:focus,
.atm-amount-input:focus-within,
.news-search input[type='search']:focus {
  border-color: var(--forest-orange-2) !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16) !important;
}

.bxh-section {
  width: min(980px, calc(100% - 24px));
  max-width: none;
  margin: 30px auto 60px;
  padding: 0;
}

.bxh-tabs {
  gap: 12px;
}

.bxh-tab {
  min-height: 44px;
  border-color: rgba(255, 184, 77, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: rgba(248, 250, 252, 0.78) !important;
}

.bxh-tab:hover,
.bxh-tab.active {
  color: #111827 !important;
  background: var(--gradient-primary) !important;
  box-shadow: var(--forest-glow) !important;
}

.announcement {
  min-height: 116px;
  margin: 7px !important;
  border: 1px solid rgba(255, 184, 77, 0.26) !important;
  border-radius: var(--forest-radius-sm) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 13, 24, 0.88) !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.announcement a,
.announcement span {
  color: #ffedd5 !important;
}

.announcement:hover,
.announcement:focus-visible {
  transform: translateY(-2px);
}

.swal2-popup {
  border: 1px solid rgba(255, 184, 77, 0.28) !important;
  border-radius: var(--forest-radius) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.18), transparent 34%),
    linear-gradient(145deg, #0d1320, #050914) !important;
  color: #f8fafc !important;
}

.swal2-title {
  color: #ffffff !important;
}

.swal2-html-container {
  color: #dbe5f3 !important;
}

.swal2-confirm {
  background: var(--gradient-primary) !important;
  color: #111827 !important;
  border-radius: 999px !important;
}

.swal2-cancel {
  border-radius: 999px !important;
}

.game-footer {
  margin-top: 36px;
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(7, 11, 21, 0.86), rgba(4, 8, 18, 0.96)) !important;
  border-top-color: rgba(255, 184, 77, 0.22);
}

.footer-warning {
  border-color: rgba(255, 184, 77, 0.2);
  border-radius: var(--forest-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
}

@media (max-width: 1100px) {
  .actions-grid--premium,
  .actions-grid--premium.actions-grid--member {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .actions-grid--premium,
  .actions-grid--premium.actions-grid--member,
  .download-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-cta {
    width: min(420px, 100%);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .hero-section {
    min-height: 72dvh;
  }

  .hero-cta .btn-game {
    width: 100%;
  }

  .actions-grid--premium,
  .actions-grid--premium.actions-grid--member {
    grid-template-columns: 1fr;
  }

  .download-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .download-card p {
    min-height: 0;
  }

  .action-card {
    min-height: 112px;
  }

  .table-responsive > .table,
  .profile-legacy-panel .table {
    min-width: 620px;
  }
}

/* ========================================
   26. Final homepage news/accessibility pass
   Keeps the older manga markup, but resolves it into the dark forest theme.
   ======================================== */
.user-panel {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.user-panel-meta,
.user-panel .user-name,
.user-panel .user-balance {
  display: block;
}

.modal-content .close {
  appearance: none;
  border: 0;
  font: inherit;
  line-height: 1;
}

.manga-news-section {
  color: var(--forest-text) !important;
}

.manga-heading {
  border-color: rgba(255, 184, 77, 0.34) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 209, 102, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(13, 19, 32, 0.94), rgba(5, 9, 20, 0.9)) !important;
  color: #fff7ed !important;
}

.manga-heading::before {
  border-color: transparent transparent var(--forest-green-2) transparent;
}

.manga-heading::after {
  border-color: var(--forest-gold) transparent transparent transparent;
}

.manga-shell {
  background:
    linear-gradient(135deg, rgba(255, 184, 77, 0.38), rgba(34, 197, 94, 0.18)),
    rgba(5, 9, 20, 0.96) !important;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.38));
}

.manga-frame {
  background:
    radial-gradient(circle at 14% 0%, rgba(249, 115, 22, 0.16), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(34, 197, 94, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(13, 19, 32, 0.96), rgba(5, 9, 20, 0.96)) !important;
}

.manga-frame::before {
  border-color: rgba(255, 184, 77, 0.28) !important;
  background:
    radial-gradient(circle, rgba(255, 209, 102, 0.14) 1px, transparent 2px),
    linear-gradient(180deg, rgba(249, 115, 22, 0.24), rgba(34, 197, 94, 0.1)) !important;
  opacity: 0.72;
}

.manga-slider,
.manga-news-panel,
.manga-guide-card {
  border-color: rgba(255, 184, 77, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(6, 10, 19, 0.88) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3) !important;
}

.manga-slider::before,
.manga-guide-card::after {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.manga-news-panel {
  color: var(--forest-text) !important;
}

.manga-news-tabs {
  border-bottom-color: rgba(255, 184, 77, 0.18) !important;
}

.manga-news-tab {
  color: rgba(248, 250, 252, 0.76) !important;
  border-radius: 999px 999px 0 0;
}

.manga-news-tab:hover,
.manga-news-tab.active {
  color: var(--forest-gold) !important;
  background: rgba(249, 115, 22, 0.12) !important;
  box-shadow: none !important;
}

.manga-news-tab.active::after {
  background: linear-gradient(90deg, var(--forest-green-2), var(--forest-gold), var(--forest-orange)) !important;
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.3);
}

.manga-tab-more {
  color: #111827 !important;
  background: linear-gradient(135deg, var(--forest-orange), var(--forest-gold)) !important;
}

.manga-news-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(248, 250, 252, 0.84) !important;
}

.manga-list-star {
  color: var(--forest-gold) !important;
}

.manga-list-tag {
  color: var(--forest-orange-2) !important;
  font-weight: 800;
}

.manga-list-link {
  color: #fff7ed !important;
  font-weight: 650;
}

.manga-list-link:hover,
.manga-list-more a:hover {
  color: var(--forest-gold) !important;
}

.manga-list-date,
.manga-list-more a {
  color: var(--forest-muted) !important;
}

.manga-guide-card:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), var(--forest-glow) !important;
}

.manga-corner--top {
  background: rgba(255, 209, 102, 0.14) !important;
  border-color: rgba(255, 184, 77, 0.28) !important;
}

.manga-corner--bottom {
  background: linear-gradient(135deg, transparent 47%, rgba(249, 115, 22, 0.34) 48%) !important;
  border-color: rgba(255, 184, 77, 0.28) !important;
}

.manga-color-strip {
  background: linear-gradient(90deg, var(--forest-green), var(--forest-green-2) 24%, var(--forest-gold) 56%, var(--forest-orange) 82%, rgba(255, 255, 255, 0.14)) !important;
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.24);
}

/* ========================================
   27. Portal layout repair
   Frontend-only layer for the public game website.
   ======================================== */
:root {
  --portal-bg: #050914;
  --portal-surface: rgba(8, 13, 24, 0.92);
  --portal-surface-strong: rgba(10, 16, 28, 0.97);
  --portal-border: rgba(255, 184, 77, 0.24);
  --portal-border-strong: rgba(255, 184, 77, 0.42);
  --portal-green-border: rgba(74, 222, 128, 0.24);
  --portal-text: #f8fafc;
  --portal-muted: #b6c3d7;
  --portal-dim: #7c8aa2;
  --portal-gold: #ffd166;
  --portal-orange: #f97316;
  --portal-orange-2: #ffb347;
  --portal-green: #16a34a;
  --portal-green-2: #4ade80;
  --portal-danger: #ef4444;
  --portal-radius: 14px;
  --portal-radius-sm: 10px;
  --portal-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --portal-glow: 0 0 24px rgba(249, 115, 22, 0.18);
}

body,
body.girlkun-bg {
  background: linear-gradient(180deg, #081a36 0%, #0d2350 45%, #101942 100%) !important;
}

body.girlkun-bg::before {
  content: none;
  display: none;
}

.game-header {
  z-index: 1200;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.98), rgba(8, 13, 24, 0.95)) !important;
  border-bottom: 1px solid var(--portal-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
}

.game-header.scrolled {
  border-bottom-color: var(--portal-border-strong) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42), var(--portal-glow) !important;
}

.header-inner {
  width: min(1240px, 100%);
  min-height: 70px;
  height: auto;
  gap: 12px;
  padding-block: 8px;
}

.header-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.header-logo img {
  height: 50px;
  max-width: 170px;
  object-fit: contain;
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}

.nav-links a {
  min-height: 42px;
  padding: 9px 11px;
  color: rgba(248, 250, 252, 0.78);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(255, 184, 77, 0.28);
  text-shadow: none;
}

.header-actions {
  flex: 0 0 auto;
  min-width: 0;
}

.header-actions > .btn-game {
  white-space: nowrap;
}

.user-dropdown {
  position: relative;
  z-index: 1250;
}

.user-panel {
  width: auto;
  max-width: 250px;
  min-height: 46px;
  padding: 7px 10px;
  border-radius: var(--portal-radius-sm) !important;
  border: 1px solid var(--portal-border) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--portal-surface) !important;
  box-shadow: none !important;
}

.user-panel img {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-color: var(--portal-orange-2);
}

.user-panel-meta {
  min-width: 0;
}

.user-panel .user-name,
.user-panel .user-balance {
  overflow: hidden;
  max-width: 126px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel .user-name {
  color: var(--portal-gold);
  line-height: 1.2;
}

.user-panel .user-balance {
  color: var(--portal-muted);
  line-height: 1.2;
}

.user-dropdown-menu {
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, calc(100vw - 24px));
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--portal-border) !important;
  border-radius: var(--portal-radius-sm) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(12, 18, 30, 0.98), rgba(5, 9, 20, 0.98)) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  z-index: 1300;
}

.user-dropdown-menu.show {
  animation: fadeDown 0.16s ease;
}

.user-dropdown-menu a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 9px;
  color: rgba(248, 250, 252, 0.84);
  white-space: nowrap;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu a:focus-visible {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.14);
}

.user-dropdown-menu a i {
  color: var(--portal-gold);
}

.user-dropdown-menu .divider {
  background: rgba(255, 184, 77, 0.16);
}

.mobile-nav-overlay {
  z-index: 1150;
}

.hero-section {
  min-height: clamp(470px, 68dvh, 690px);
  padding-top: clamp(88px, 12vh, 128px);
  padding-bottom: clamp(52px, 9vh, 84px);
}

.hero-particles,
.hero-orb {
  display: none !important;
}

.hero-content {
  width: min(820px, 100%);
}

.hero-logo {
  width: min(300px, 70vw);
}

.hero-title {
  font-size: clamp(2.1rem, 1.35rem + 3.1vw, 4rem);
}

.hero-subtitle {
  color: rgba(248, 250, 252, 0.86);
}

.portal-main {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4.8vw, 58px) 0 clamp(42px, 6vw, 74px);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 330px);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}

.portal-content {
  display: grid;
  min-width: 0;
  gap: clamp(22px, 3.4vw, 36px);
}

.portal-content > section {
  margin: 0 !important;
  padding: 0 !important;
}

.portal-content > section > .site-container {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.portal-content .news-section {
  order: 1;
}

.portal-content .download-section {
  order: 2;
}

.portal-content .feature-game-section {
  order: 3;
}

.portal-content .guide-section {
  order: 4;
}

.portal-content .community-section {
  order: 5;
}

.portal-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.portal-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(249, 115, 22, 0.15), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(34, 197, 94, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(12, 18, 30, 0.96), rgba(5, 9, 20, 0.96));
  box-shadow: var(--portal-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 44%);
}

.portal-card > * {
  position: relative;
  z-index: 1;
}

.portal-kicker {
  margin: 0 0 4px;
  color: var(--portal-gold);
  font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.portal-card-title {
  margin-bottom: 12px;
}

.portal-account-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.portal-account-head span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-account-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--portal-orange-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.18);
}

.portal-account-avatar--empty {
  color: var(--portal-gold);
  font-size: 1.2rem;
}

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

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

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

.portal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--portal-radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 250, 252, 0.88);
  font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.portal-action i {
  color: var(--portal-gold);
}

.portal-action:hover,
.portal-action:focus-visible {
  color: #ffffff;
  border-color: var(--portal-border-strong);
  background: rgba(249, 115, 22, 0.14);
  transform: translateY(-1px);
}

.portal-action.primary {
  grid-column: 1 / -1;
  color: #111827;
  border-color: rgba(255, 215, 145, 0.55);
  background: linear-gradient(135deg, var(--portal-orange), var(--portal-orange-2) 62%, var(--portal-gold));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.portal-action.primary i {
  color: #111827;
}

.portal-action.danger {
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.portal-action.danger i {
  color: #fca5a5;
}

.portal-rank-list {
  display: grid;
  gap: 8px;
}

.portal-rank-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--portal-radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(248, 250, 252, 0.88);
  font-weight: 800;
}

.portal-rank-list a:hover,
.portal-rank-list a:focus-visible {
  color: #ffffff;
  border-color: var(--portal-green-border);
  background: rgba(34, 197, 94, 0.1);
}

.portal-rank-list i {
  color: var(--portal-green-2);
}

.portal-content .manga-layout {
  grid-template-columns: minmax(0, 1fr);
}

.portal-content .manga-guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
}

.portal-content .manga-guide-card {
  min-height: 0;
  aspect-ratio: 1.45 / 1;
}

.portal-content .download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}

.portal-content .community-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: none;
}

.download-card,
.action-card,
.social-card,
.guide-card,
.ibox-content,
.bxh-card,
.gift-exchange-card,
.auth-card,
.atm-card,
.atm-hero,
.atm-panel,
.atm-history-panel,
.profile-legacy-panel,
.history-panel,
.ruby-exchange-panel {
  border-radius: var(--portal-radius) !important;
}

.table-responsive,
.history-table-wrap,
.atm-table-wrap,
.napthe-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid rgba(255, 184, 77, 0.2);
  border-radius: var(--portal-radius-sm);
  background: rgba(5, 9, 20, 0.72);
  -webkit-overflow-scrolling: touch;
}

.table,
.atm-table,
.history-table,
.napthe-table {
  min-width: 640px;
  margin-bottom: 0;
}

.table thead th,
.atm-table thead th,
.history-table th,
.napthe-table thead th {
  white-space: nowrap;
}

.table tbody td,
.atm-table tbody td,
.history-table tbody td,
.napthe-table tbody td {
  vertical-align: middle;
}

@media (max-width: 1180px) {
  .nav-links a {
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .portal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 304px);
  }
}

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

  .hamburger {
    display: inline-flex;
  }

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

  .portal-sidebar {
    position: static;
    order: -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .portal-card {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
    padding-inline: 14px;
  }

  .header-logo img {
    height: 44px;
    max-width: 148px;
  }

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

  .portal-sidebar {
    grid-template-columns: 1fr;
  }

  .portal-content .download-grid,
  .portal-content .community-grid,
  .portal-content .manga-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    min-height: 64dvh;
  }
}

@media (max-width: 560px) {
  .header-actions > .btn-game {
    display: none;
  }

  .user-panel {
    max-width: 48px;
    padding: 6px;
  }

  .user-panel-meta,
  .user-panel .fa-chevron-down {
    display: none !important;
  }

  .user-dropdown-menu {
    right: -48px;
  }

  .hero-cta {
    width: min(390px, 100%);
  }

  .hero-cta .btn-game {
    width: 100%;
  }

  .portal-action-grid,
  .portal-account-actions--auth {
    grid-template-columns: 1fr;
  }

  .portal-content .download-grid,
  .portal-content .community-grid,
  .portal-content .manga-guide-grid {
    grid-template-columns: 1fr;
  }

  .portal-content .manga-guide-card {
    aspect-ratio: auto;
  }
}
