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

:root {
  --black:      #08090c;
  --dark:       #0d0f14;
  --surface:    #12141a;
  --bg:         #0d0f14;
  --bg2:        #12141a;
  --bg3:        #1a1c24;
  --border:     #1e2028;
  --crimson:    #8b1a1a;
  --crimson-lt: #b02020;
  --steel:      #8b1a1a;
  --steel-lt:   #b02020;
  --gold:       #a07828;
  --gold-lt:    #c49a3a;
  --text:       #c8cad4;
  --text-dim:   #626578;
  --dim:        #626578;
  --white:      #eeeef2;
}

html { scroll-behavior: smooth; }

body {
  background-color: #05080d;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  position: relative;
}

.nav-logo {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--gold-lt); }
.nav-logo em { font-style: italic; color: var(--gold-lt); font-weight: 400; }
.nav-publisher {
  margin-left: auto;
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.nav-publisher em { font-style: italic; color: var(--gold-lt); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--steel-lt); }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  min-width: 180px;
  padding: 8px 0;
  padding-top: 16px;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(74,127,165,0.08); color: var(--steel-lt); }

.nav-cta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 6px 16px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--bg) !important; }

.nav-cta-discord { color: #5865f2 !important; border-color: #5865f2 !important; }
.nav-cta-discord:hover { background: #5865f2 !important; color: #fff !important; }

.nav-cta-facebook { color: #1877f2 !important; border-color: #1877f2 !important; }
.nav-cta-facebook:hover { background: #1877f2 !important; color: #fff !important; }

/* BUTTONS */
.btn-primary {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--steel);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--steel-lt); transform: translateY(-1px); }

.btn-outline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 28px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }

/* SECTION */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.section-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--steel), transparent);
  margin-bottom: 40px;
}

/* SERIES GRID */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.series-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s;
  text-decoration: none;
  display: block;
  position: relative;
}
.series-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.series-card:hover .series-card-overlay { opacity: 1; }

.series-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74,127,165,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}

.cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.cover-icon { font-size: 28px; opacity: 0.6; }

.cover-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  line-height: 1.3;
}

.cover-num {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 700;
  opacity: 0.1;
  position: absolute;
  bottom: 8px;
  right: 10px;
}

.series-card-info { padding: 12px 14px; }

.series-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.series-meta { font-size: 11px; color: var(--text-dim); }

.series-tag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 6px;
}

.tag-litrpg    { background: rgba(74,127,165,0.2);   color: var(--steel-lt); }
.tag-harem     { background: rgba(200,151,58,0.2);   color: var(--gold-lt); }
.tag-collab    { background: rgba(76,175,110,0.15);  color: #7ed4a0; }
.tag-cultivation { background: rgba(180,100,200,0.2); color: #d4a0e8; }

/* COVER THEMES */
.cv-mimic    { background: linear-gradient(160deg, #0f1e2e, #1a3040, #0a1520); }
.cv-tower    { background: linear-gradient(160deg, #1a1020, #2a1535, #0f0a18); }
.cv-zenith   { background: linear-gradient(160deg, #0f2018, #1a3525, #0a1510); }
.cv-riftside { background: linear-gradient(160deg, #1a1510, #2e2010, #120f08); }
.cv-wolf     { background: linear-gradient(160deg, #101520, #1a2535, #080d18); }
.cv-nano     { background: linear-gradient(160deg, #0a1520, #0f2535, #050d18); }
.cv-battle   { background: linear-gradient(160deg, #1a1008, #2e1a08, #120c04); }
.cv-steel    { background: linear-gradient(160deg, #101818, #1a2828, #080f0f); }
.cv-mana     { background: linear-gradient(160deg, #180f20, #2a1535, #100818); }
.cv-soulbound { background: linear-gradient(160deg, #1a0a10, #2e1018, #120608); }

/* SHARED GAME PANELS */
.game-section {
  padding: 48px 40px;
  background: transparent;
  border-top: 1px solid rgba(74,127,165,0.12);
  border-bottom: 1px solid rgba(74,127,165,0.12);
  position: relative;
  z-index: 1;
}
.game-section-inner { max-width: 1200px; margin: 0 auto; }
.game-panel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.game-panel.steel {
  background: linear-gradient(135deg, rgba(12,18,32,0.82) 0%, rgba(9,14,28,0.82) 100%);
  border: 1px solid rgba(74,127,165,0.35);
  box-shadow: 0 0 40px rgba(74,127,165,0.06);
}
.game-panel.gold {
  background: linear-gradient(135deg, rgba(18,14,6,0.82) 0%, rgba(14,10,4,0.82) 100%);
  border: 1px solid rgba(200,151,58,0.35);
  box-shadow: 0 0 40px rgba(200,151,58,0.06);
}
.game-panel::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(74,127,165,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,165,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
.game-panel.gold::before {
  background-image:
    linear-gradient(rgba(200,151,58,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,151,58,0.025) 1px, transparent 1px);
}
.gp-hdr {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
}
.game-panel.steel .gp-hdr {
  background: rgba(74,127,165,0.07);
  border-bottom: 1px solid rgba(74,127,165,0.22);
}
.game-panel.gold .gp-hdr {
  background: rgba(200,151,58,0.07);
  border-bottom: 1px solid rgba(200,151,58,0.22);
}
.gp-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  animation: pulse 2s infinite;
}
.game-panel.steel .gp-dot { background: var(--steel-lt); box-shadow: 0 0 6px var(--steel); }
.game-panel.gold  .gp-dot { background: var(--gold-lt);  box-shadow: 0 0 6px var(--gold); }
.gp-lbl {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; flex: 1;
}
.game-panel.steel .gp-lbl { color: var(--steel-lt); }
.game-panel.gold  .gp-lbl { color: var(--gold-lt); }
.gp-meta {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.gp-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px; text-decoration: none;
}
.game-panel.steel .gp-badge { background: rgba(74,127,165,0.15); color: var(--steel-lt); border: 1px solid rgba(74,127,165,0.35); }
.game-panel.gold  .gp-badge { background: rgba(200,151,58,0.15);  color: var(--gold-lt);  border: 1px solid rgba(200,151,58,0.35); }
.gp-body { position: relative; z-index: 2; }
.gp-sub-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 20px;
}

@media (max-width: 768px) {
  .game-section { padding: 32px 20px; }
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 40px;
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-logo span { color: var(--gold-lt); }
.footer-logo em { font-style: italic; color: var(--gold-lt); font-weight: 400; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--steel-lt); }

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .divider { margin: 0 20px; }
  footer { padding: 30px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
