/* ============================================
   KIẾM VŨ - PREMIUM REDESIGN
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=Roboto:wght@400;500;700;900&family=Be+Vietnam+Pro:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'FzKT2Full';
  src: url('../fonts/Fz  KT2_Full.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ----- CSS Variables ----- */
:root {
  --gold: #d4af37;
  --gold-light: #fbe69b;
  --gold-dark: #8b6508;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --bg-dark: #0d0606;
  --bg-card: rgba(26, 10, 10, 0.9);
  --bg-card-hover: #331515;
  --text-primary: #f2e8d1;
  --text-secondary: #c2ac93;
  --text-muted: #806856;
  --accent-red: #8b0000;
  --accent-blue: #1c3b51;
  --glass-bg: rgba(26, 10, 10, 0.9);
  --glass-border: rgba(212, 175, 55, 0.5);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-width: unset !important;
  line-height: 1.6;
}
a { text-decoration: none !important; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ----- Utility ----- */
.container-kv {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ----- Animated Background Particles ----- */
.kv-particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.kv-particles .particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s infinite;
}
@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.kv-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0 40px;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.kv-header.scrolled {
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.5), 0 1px 0 var(--glass-border);
}
.kv-header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; position: relative;
}
.kv-logo {
  width: 56px; height: 56px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.kv-logo:hover { transform: scale(1.08); }
.kv-logo img { width: 100%; height: 100%; object-fit: cover; }

.kv-nav { display: flex; align-items: center; gap: 8px; }
.kv-nav a {
  padding: 10px 18px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #000000;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.kv-nav a:hover, .kv-nav a.active {
  color: var(--gold-light);
  background: rgba(212, 168, 66, 0.08);
}
.kv-nav a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px;
  background: var(--gold); border-radius: 1px;
  transition: all var(--transition); transform: translateX(-50%);
}
.kv-nav a:hover::after { width: 50%; }

.kv-header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0b0f; font-weight: 700; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 10px; border: none; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(212, 168, 66, 0.25);
}
.kv-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 66, 0.4);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.kv-header-right { 
  display: flex; align-items: center; gap: 20px; 
}

/* Mobile hamburger */
.kv-hamburger {
  display: none; cursor: pointer;
  width: 32px; height: 24px;
  flex-direction: column; justify-content: space-between;
}
.kv-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-primary); border-radius: 1px;
  transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.kv-hero {
  position: relative;
  width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  perspective: 1000px;
}
.kv-hero-bg {
  position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
  background: url('../images/headerbanner.jpg') center center / cover no-repeat;
  z-index: 0;
  animation: bgZoom 20s ease-in-out infinite alternate;
}
@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.kv-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(5,5,10,0.8) 100%),
              linear-gradient(180deg, rgba(5,5,10,0.2) 0%, rgba(5,5,10,0.4) 60%, rgba(5,5,10,1) 100%);
}
.kv-hero-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
  border-radius: 50%; z-index: 1; pointer-events: none;
  animation: pulseOrb 4s ease-in-out infinite;
}
@keyframes pulseOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
.kv-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
}
.kv-royal-separator {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  width: 100%; max-width: 400px; margin: 0 auto 25px;
  animation: fadeInUp 1s ease both;
}
.kv-royal-separator .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.kv-royal-separator .diamond {
  width: 8px; height: 8px; background: var(--gold-light);
  transform: rotate(45deg); box-shadow: 0 0 10px var(--gold);
}

/* Elegant Cinematic Slogan */
.kv-hero-slogan-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 0 25px; animation: fadeInUp 0.8s 0.2s ease both;
  width: 100%; text-align: center;
}
.slogan-domain {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(40px, 7vw, 75px); 
  font-weight: 900; 
  letter-spacing: 4px; 
  text-transform: uppercase; 
  background: linear-gradient(to bottom, #ffffff 0%, #fbe69b 35%, #d4af37 60%, #5c4202 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 5px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
  margin-bottom: 5px; 
  padding: 10px 0;
}
.slogan-server {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0; margin-right: -5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.kv-hero-badge-elegant {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; letter-spacing: 2px; font-weight: 500;
  color: var(--gold-light);
  text-transform: uppercase;
  padding: 10px 40px; margin-bottom: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
  animation: fadeInUp 0.8s 0.3s ease both;
}

@media (max-width: 768px) {
  .kv-hero-slogan-box { margin: 15px 0 30px; }
  .slogan-domain { font-size: 26px; letter-spacing: 2px; }
  .slogan-server { font-size: 16px; letter-spacing: 1px; }
}
.kv-hero-desc {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.kv-command-center {
  margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 20px;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.kv-hero-main-logo {
  max-width: 420px; width: 90%; margin: 0 auto 25px; display: block;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8));
  animation: fadeInUp 1s ease both;
}

.kv-hero-main-buttons {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  width: 100%; flex-wrap: wrap;
}
.kv-hero-secondary-group {
  display: flex; gap: 15px;
}
.kv-btn-hero-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(40,10,10,0.95), rgba(20,5,5,0.95));
  border: 1px solid var(--gold);
  border-top-color: var(--gold-light);
  border-left-color: var(--gold-light);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  color: var(--text-primary);
  min-width: 140px; height: 85px;
  transition: all var(--transition);
  font-family: 'Cinzel', serif;
}
.kv-btn-hero-side .btn-icon {
  font-size: 26px; color: var(--gold-light); margin-bottom: 6px; transition: transform 0.3s;
}
.kv-btn-hero-side .btn-text {
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.kv-btn-hero-side.btn-napthe .btn-icon { color: #f94144; }
.kv-btn-hero-side:hover {
  background: linear-gradient(135deg, rgba(60,20,20,0.95), rgba(40,10,10,0.95));
  border-color: var(--gold-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  color: #fff;
}
.kv-btn-hero-side:hover .btn-icon { transform: scale(1.1); }

.kv-btn-play {
  display: inline-flex; align-items: center; gap: 15px;
  padding: 24px 60px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #2a1100; font-family: 'Cinzel', serif; font-weight: 900; font-size: 20px;
  letter-spacing: 2px; text-transform: uppercase;
  clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
  border: 2px solid #fff;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 0 30px var(--gold-glow);
  position: relative; overflow: hidden;
}
.kv-btn-play::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
  transform: rotate(45deg) translateY(-100%);
  animation: shineBtn 3s infinite;
}
.kv-btn-play:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 50px var(--gold-glow), inset 0 0 20px rgba(255,255,255,0.9);
}
.kv-download-links {
  display: flex; gap: 15px; flex-wrap: wrap; justify-content: center;
}
.kv-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(18, 20, 26, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--text-primary); font-size: 14px; font-weight: 600;
  border-radius: 30px; text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.kv-dl-btn i { color: var(--gold); }
.kv-dl-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

/* Scroll indicator */
.kv-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bounce 2s infinite;
}
.kv-scroll-indicator span {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}
.kv-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

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

/* ============================================
   SECTION TITLES
   ============================================ */
.kv-section-header {
  text-align: center;
  margin-bottom: 60px;
}
.kv-section-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.kv-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kv-section-line {
  width: 60px; height: 3px; margin: 0 auto;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  border-radius: 2px;
}

/* ============================================
   FACTIONS SECTION
   ============================================ */
.kv-factions {
  position: relative; z-index: 1;
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e1017 50%, var(--bg-dark) 100%);
}

/* Faction Container (Top Menu Layout) */
.kv-faction-container {
  display: flex; flex-direction: column; align-items: center; gap: 40px; margin-top: 50px;
  background: transparent;
  border: none;
  border-radius: 0; padding: 0;
  box-shadow: none;
  min-height: auto;
  position: relative;
}
.kv-faction-nav-wrapper {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  width: 100%; max-width: 600px; margin: 0 auto;
}
.kv-faction-arrow {
  background: transparent;
  border: none;
  width: 44px; height: 44px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: all var(--transition);
  flex-shrink: 0; outline: none; padding: 0;
}
.kv-faction-arrow:hover {
  transform: scale(1.15); filter: drop-shadow(0 0 10px var(--gold-glow));
}
.kv-faction-sidebar {
  flex: 1; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start;
  width: 100%; max-width: 460px; /* Restrict width for 3 items */
  margin: 0; 
  overflow-x: auto; overflow-y: hidden;
  gap: 12px; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.kv-faction-sidebar::-webkit-scrollbar { height: 4px; }
.kv-faction-sidebar::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

.kv-faction-tab {
  flex: 0 0 calc(33.333% - 8px); /* Exactly 3 items in viewport */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 8px; cursor: pointer;
  background: transparent;
  border-bottom: 2px solid transparent; border-left: none; border-radius: 0;
  transition: all var(--transition);
  scroll-snap-align: start;
  text-align: center;
}
.kv-faction-tab img {
  width: 40px; height: 40px; border-radius: 0; object-fit: cover;
  border: 1px solid var(--gold-dark); transition: all var(--transition);
}
.kv-faction-tab span {
  font-weight: 700; font-size: 13px; color: var(--text-secondary);
  transition: all var(--transition); text-transform: uppercase;
}
.kv-faction-tab:hover {
  background: rgba(255,255,255,0.05);
}
.kv-faction-tab.active {
  background: linear-gradient(0deg, rgba(212,175,55,0.2) 0%, transparent 100%);
  border-bottom: 2px solid var(--gold); border-left: none; border-radius: 0;
}
.kv-faction-tab.active span { color: var(--gold-light); }
.kv-faction-tab.active img { border-color: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }

/* Faction Display */
.kv-faction-display {
  width: 100%; max-width: 1100px; position: relative; overflow: hidden;
  border-radius: 0; min-height: 550px;
}
.kv-faction-item {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.kv-faction-item.active { position: relative; opacity: 1; visibility: visible; }

.kv-faction-art {
  flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: flex-start;
  transform: translateX(-50px) scale(0.95); transition: all 0.8s ease-out;
}
.kv-faction-item.active .kv-faction-art { transform: translateX(0) scale(1); }
.kv-faction-art img { width: auto; height: 100%; max-height: 550px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(255,215,0,0.2)); }

.kv-faction-info {
  flex: 1.2; padding: 40px 40px 40px 20px; transform: translateX(50px); opacity: 0; transition: all 0.6s 0.2s ease-out;
}
.kv-faction-item.active .kv-faction-info { transform: translateX(0); opacity: 1; }

.kv-faction-name-img {
  max-width: 280px; height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.2));
}
.kv-faction-class {
  font-size: 16px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 30px;
}
.kv-faction-desc {
  font-size: 17px; line-height: 1.8; color: var(--text-primary);
  max-width: 90%;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.kv-cinematic-features {
  background: var(--bg-dark);
  padding-bottom: 100px;
}
.kv-feature-block {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  overflow: hidden; border-top: 1px solid rgba(255,215,0,0.1);
}
.kv-feature-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed;
  filter: brightness(0.4); transition: filter 0.5s;
}
.kv-feature-block:hover .kv-feature-bg { filter: brightness(0.6); transform: scale(1.02); }
.kv-feature-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,5,10,0.95) 0%, rgba(5,5,10,0.4) 50%, rgba(5,5,10,0.95) 100%);
}
.kv-feature-split {
  position: relative; z-index: 2; display: flex; width: 100%;
}
.kv-feature-block.reverse .kv-feature-split { flex-direction: row-reverse; }
.kv-feature-text {
  flex: 1; padding: 60px; background: rgba(25, 5, 5, 0.95);
  border-radius: 0; border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.8), 0 0 0 6px var(--gold-dark), 0 30px 60px rgba(0,0,0,0.9);
  position: relative;
}
.kv-feature-space { flex: 1.2; }

.kv-feature-icon {
  width: 70px; height: 70px; border-radius: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #2a1100; margin-bottom: 30px;
  box-shadow: 0 0 20px var(--gold-glow);
}
.kv-feature-text h3 {
  font-family: 'Cinzel', serif; font-size: 40px; color: var(--text-primary); margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.kv-feature-text p {
  font-size: 18px; color: var(--text-secondary); line-height: 1.8;
}
/* ============================================
   FOOTER
   ============================================ */
.kv-footer {
  position: relative; z-index: 1;
  padding: 60px 0 30px;
  background: #08090c;
  border-top: 1px solid var(--glass-border);
}
.kv-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.kv-footer-logo { width: 120px; opacity: 0.7; }
.kv-footer-links { display: flex; gap: 24px; }
.kv-footer-links a {
  font-size: 13px; color: var(--text-muted);
  transition: color var(--transition);
}
.kv-footer-links a:hover { color: var(--gold); }
.kv-footer-copy {
  width: 100%; text-align: center;
  padding-top: 24px; margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; color: var(--text-muted);
}

/* ============================================
   WELCOME MODAL (kept & enhanced)
   ============================================ */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.welcome-overlay.show { opacity: 1; }
.welcome-modal {
  background: linear-gradient(150deg, #15161c, #0a0b10);
  border: 2px solid var(--gold-dark);
  border-radius: 24px;
  width: 92%; max-width: 480px;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.2), 0 30px 60px rgba(0,0,0,0.8);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.welcome-overlay.show .welcome-modal { transform: scale(1) translateY(0); }
.welcome-modal-header {
  height: 180px;
  background: url('../images/headerbanner.jpg') center 30% / cover no-repeat;
  position: relative;
}
.welcome-modal-header::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, #1a1d28, transparent 60%);
}
.welcome-btn-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
  transition: all var(--transition);
}
.welcome-btn-close:hover { background: var(--gold); color: #0a0b0f; transform: rotate(90deg); }
.welcome-modal-body {
  padding: 32px 28px; text-align: center; color: var(--text-primary);
}
.welcome-title {
  font-family: 'Cinzel', serif;
  font-size: 24px; font-weight: 700; color: var(--gold-light);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.welcome-text { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }
.welcome-text strong { color: var(--gold-light); }
.welcome-btn {
  display: inline-block; padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0b0f; font-weight: 700; font-size: 14px;
  border-radius: 12px; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(212,168,66,0.3);
  transition: all var(--transition);
}
.welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212,168,66,0.5);
  color: #0a0b0f;
}

/* Giftcode Modal Styles */
.kv-giftcode-list {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 5px;
}
.kv-giftcode-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.03); padding: 12px 16px;
  border-radius: 12px; border: 1px solid rgba(212,168,66,0.2);
  transition: all var(--transition);
}
.kv-giftcode-item:hover { border-color: rgba(212,168,66,0.5); background: rgba(212,168,66,0.05); }
.kv-gc-label {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.kv-gc-box {
  display: flex; align-items: center; gap: 10px;
}
.kv-gc-code {
  font-family: 'Inter', monospace; font-size: 16px; font-weight: 800;
  color: var(--gold-light); letter-spacing: 2px;
}
.kv-gc-copy {
  background: transparent; border: none; color: var(--gold);
  font-size: 16px; cursor: pointer; transition: all 0.2s;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; outline: none;
}
.kv-gc-copy:hover {
  background: rgba(212,168,66,0.15); transform: scale(1.1);
}

/* ============================================
   MOBILE BOTTOM MENU
   ============================================ */
.kv-mobile-bottom-menu {
  display: none;
  position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
  background: rgba(10, 11, 15, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}
.kv-mb-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-secondary); transition: all var(--transition);
  border-right: 1px solid rgba(255,255,255,0.05);
}
.kv-mb-btn:last-child { border-right: none; }
.kv-mb-btn i { font-size: 18px; color: var(--gold); }
.kv-mb-btn span { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.kv-mb-btn:hover { background: rgba(255,215,0,0.05); color: var(--gold-light); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .kv-faction-item { flex-direction: column; text-align: center; }
  .kv-faction-art { flex: none; }
  .kv-faction-desc { border-left: none; padding-left: 0; max-width: 100%; border-bottom: 2px solid var(--gold-dark); padding-bottom: 20px; }
  .kv-faction-info { display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 768px) {
  body { padding-bottom: 60px; } /* Space for bottom menu */
  .kv-mobile-bottom-menu { display: flex; }
  .kv-header-cta { display: none; }
  .kv-hamburger { display: flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 1100; }
  .kv-hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); background: var(--gold); }
  .kv-hamburger.active span:nth-child(2) { opacity: 0; }
  .kv-hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); background: var(--gold); }

  .kv-hero-main-logo { max-width: 320px; }
  .kv-hero-main-buttons { gap: 15px; }
  .kv-hero-secondary-group { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .kv-btn-hero-side { min-width: unset; height: 65px; flex-direction: row; gap: 10px; padding: 10px; width: 100%; }
  .kv-btn-hero-side .btn-icon { margin-bottom: 0; font-size: 20px; }
  .kv-btn-hero-side .btn-text { font-size: 14px; }
  .kv-hero-main-buttons > .kv-btn-play { width: 100%; justify-content: center; }

  .kv-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(10, 11, 15, 0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: stretch; gap: 15px;
    padding: 0 40px; margin: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000; border-left: 1px solid var(--glass-border);
  }
  .kv-nav.show { right: 0; }
  .kv-nav a { 
    text-align: center; padding: 15px; font-size: 16px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    display: flex; justify-content: center; align-items: center; gap: 10px;
  }
  .kv-nav a::after { display: none; }

  .kv-header { padding: 0 20px; }
  .kv-hero-desc { font-size: 15px; }
  .kv-faction-tabs { gap: 6px; }
  .kv-faction-tab { padding: 8px 12px; font-size: 12px; }
  .kv-faction-tab img { width: 28px; height: 28px; }
  .kv-faction-tab span { display: none; }
  .kv-faction-art img { max-height: 320px; }
  .kv-faction-name { font-size: 28px; }
  .kv-download-grid { grid-template-columns: 1fr 1fr; }
  .kv-footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .kv-download-grid { grid-template-columns: 1fr; }
  .kv-hero-buttons { flex-direction: column; align-items: center; }
}

/* Hide old site structure */
.wrap, .wrapper, .page-header, .section-1, .section-3, .section.footer,
.nav-right, .Rating, .NavBg, #page, #content, #primary, #main { display: none !important; }
