/* ============================================================
   PRIMENETWORK 1.6.5 Semi PvE - Theme: Dark Navy + Gold
   ============================================================ */

:root {
  --gold: #f0b429;
  --gold-light: #ffd24a;
  --gold-dark: #c8860a;
  --gold-glow: rgba(240, 180, 41, 0.35);

  --bg: #120c06;
  --bg-2: #1a120b;
  --bg-3: #221507;
  --card: rgba(34, 22, 10, 0.72);
  --card-hover: rgba(44, 28, 12, 0.85);
  --border: rgba(240, 180, 41, 0.18);
  --border-strong: rgba(240, 180, 41, 0.4);

  --text: #f4ead6;
  --muted: #b09a78;
  --muted-2: #8a7558;

  --green: #3ddc84;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --maxw: 1180px;

  --font-head: "Cinzel", "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

/* ---- Preloader ---- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1a120b, #0a0703);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  width: 90px; height: 90px; object-fit: contain;
  animation: logoSpin 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 22px var(--gold-glow));
}
.preloader-text {
  margin-top: 22px; font-family: var(--font-head); font-weight: 700;
  letter-spacing: 4px; font-size: 1rem; color: var(--gold);
}
.preloader-bar {
  margin-top: 18px; width: 180px; height: 3px; border-radius: 3px;
  background: rgba(240,180,41,0.15); overflow: hidden;
}
.preloader-bar::after {
  content: ""; display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  border-radius: 3px; animation: loadSlide 1.2s ease-in-out infinite;
}
@keyframes logoSpin {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}
@keyframes loadSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---- Particle canvas ---- */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-scale { opacity: 0; transform: scale(0.9); }
.reveal-scale.visible { transform: scale(1); }

/* ---- 3D Tilt cards ---- */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.tilt-inner { transform: translateZ(40px); }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.18), transparent 45%);
  opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: overlay;
}
.tilt:hover .tilt-glare { opacity: 1; }

/* ---- Floating decorations in hero ---- */
.hero-deco { position: absolute; pointer-events: none; opacity: 0.85; }
.deco-1 { top: 14%; left: 6%; width: 70px; animation: floatA 7s ease-in-out infinite; }
.deco-2 { top: 22%; right: 8%; width: 56px; animation: floatB 9s ease-in-out infinite; }
.deco-3 { bottom: 22%; left: 12%; width: 44px; animation: floatA 6s ease-in-out infinite 1s; }
.deco-4 { bottom: 28%; right: 14%; width: 64px; animation: floatB 8s ease-in-out infinite 0.5s; }
@keyframes floatA { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(-10deg); } }

.float { animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-delay { animation-delay: 0.8s; }

/* ---- Glow utility ---- */
.glow-gold { filter: drop-shadow(0 0 18px var(--gold-glow)); }
.glow-gold-strong { filter: drop-shadow(0 0 30px var(--gold-glow)); }

/* ---- Background layers ---- */
.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.05);
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(240, 180, 41, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(26, 18, 11, 0.82) 0%, rgba(26, 18, 11, 0.92) 40%, rgba(12, 8, 4, 0.97) 100%);
}

/* Keep content above particle canvas */
.navbar, .hero, .section, .cta-band, .footer { position: relative; z-index: 2; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 50px; cursor: pointer;
  text-decoration: none; border: none; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: #1a1303;
  box-shadow: 0 8px 26px var(--gold-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--gold-glow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(240, 180, 41, 0.12); border-color: var(--gold); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---- Status pill ---- */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 50px;
  background: rgba(61, 220, 132, 0.12);
  color: var(--green);
  border: 1px solid rgba(61, 220, 132, 0.35);
  letter-spacing: 0.3px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 1.8s infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.online-text { color: var(--green); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
  background: rgba(26, 18, 11, 0.4);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(26, 18, 11, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}
.nav-inner { display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--text); letter-spacing: 1.5px;
}
.brand-sub {
  font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative; text-decoration: none; color: var(--muted);
  font-size: 0.92rem; font-weight: 500; padding: 9px 15px; border-radius: 8px;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}
.nav-discord {
  background: rgba(88, 101, 242, 0.16); color: #aab4ff;
  border: 1px solid rgba(88, 101, 242, 0.4);
}
.nav-discord:hover { background: rgba(88, 101, 242, 0.28); color: #fff; }
.nav-discord.active::after { display: none; }

.nav-register {
  background: rgba(240,180,41,0.14); color: var(--gold-light);
  border: 1px solid var(--border-strong); font-weight: 600;
}
.nav-register:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #1a1303; }
.nav-register.active::after { display: none; }

.nav-status { margin-left: 8px; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 22px 60px; position: relative;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px; border-radius: 50px;
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem; font-weight: 500; color: var(--gold-light);
  margin-bottom: 26px; letter-spacing: 0.5px;
  animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-badge img { width: 26px; height: 26px; border-radius: 50%; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title { animation: heroIn 0.9s 0.12s cubic-bezier(0.16,1,0.3,1) both; }
.hero-tagline { animation: heroIn 0.9s 0.24s cubic-bezier(0.16,1,0.3,1) both; }
.hero-clock { animation: heroIn 0.9s 0.36s cubic-bezier(0.16,1,0.3,1) both; }
.hero-actions { animation: heroIn 0.9s 0.48s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }

.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: 4px; line-height: 1.05;
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline {
  margin-top: 16px; font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--muted); max-width: 640px; font-weight: 300;
}

.hero-clock {
  margin-top: 40px; display: flex; align-items: center; gap: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 26px;
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.clock-item { display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.clock-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2); }
.clock-value { font-size: 1.35rem; font-weight: 600; color: var(--text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.clock-divider { width: 1px; height: 36px; background: var(--border); }

.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; letter-spacing: 2px; color: var(--muted-2);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ SECTIONS ============ */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, rgba(34,22,10,0.55), rgba(26,18,11,0.4)); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block; font-size: 0.74rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: 1px;
}
.section-desc { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ---- Feature cards ---- */
.feature-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  backdrop-filter: blur(8px); transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); box-shadow: 0 20px 50px rgba(240,180,41,0.12); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(240,180,41,0.18), rgba(240,180,41,0.05));
  border: 1px solid var(--border); color: var(--gold); margin-bottom: 18px;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; letter-spacing: 0.5px; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

/* ============ DOWNLOAD ============ */
.download-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  background: linear-gradient(135deg, var(--card), rgba(240,180,41,0.05));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 34px 38px; backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.download-left { display: flex; align-items: center; gap: 22px; }
.download-logo {
  width: 84px; height: 84px; flex-shrink: 0; border-radius: 18px;
  background: rgba(26,18,11,0.6); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.download-logo img { width: 100%; height: 100%; object-fit: contain; }
.download-left h3 { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: 0.5px; }
.download-left p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; max-width: 460px; }
.download-left code {
  background: rgba(240,180,41,0.12); color: var(--gold-light);
  padding: 1px 7px; border-radius: 5px; font-size: 0.86rem;
}
.download-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.download-meta span { display: inline-flex; align-items: center; gap: 5px; }
.download-meta .ver { color: var(--gold); font-weight: 600; }

.download-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.step {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px 20px; text-align: center;
  transition: 0.25s;
}
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(240,180,41,0.1); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1303; font-weight: 700; font-size: 1.05rem;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.84rem; }
.step code { background: rgba(240,180,41,0.12); color: var(--gold-light); padding: 1px 6px; border-radius: 4px; font-size: 0.8rem; }

/* ============ REQUIREMENTS ============ */
.req-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 30px; backdrop-filter: blur(8px);
  transition: 0.3s;
}
.req-card:hover { border-color: var(--border-strong); box-shadow: 0 20px 50px rgba(240,180,41,0.1); }
.req-rec { border-color: var(--border-strong); box-shadow: 0 0 0 1px var(--border-strong) inset; }
.req-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.req-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 50px;
}
.req-badge.min { background: rgba(147,160,189,0.14); color: var(--muted); }
.req-badge.rec { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #1a1303; }
.req-head h3 { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 0.5px; }
.req-list { list-style: none; }
.req-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px dashed rgba(240,180,41,0.1); color: var(--text); font-size: 0.95rem;
}
.req-list li:last-child { border-bottom: none; }
.req-list span {
  display: inline-block; min-width: 92px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--gold);
}

/* ============ GUIDE ============ */
.guide-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px); }
.guide-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 14px;
  background: rgba(26,18,11,0.5); border-bottom: 1px solid var(--border);
}
.guide-tab {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  padding: 10px 18px; border-radius: 50px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid transparent;
  transition: 0.2s;
}
.guide-tab:hover { color: var(--text); background: rgba(240,180,41,0.08); }
.guide-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1303; font-weight: 600;
}
.guide-panels { padding: 34px 34px 38px; }
.guide-panel { display: none; animation: fade 0.4s ease; }
.guide-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.guide-panel h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 22px; letter-spacing: 0.5px; color: var(--gold-light); }
.guide-ol { list-style: none; counter-reset: g; }
.guide-ol li { counter-increment: g; position: relative; padding: 0 0 22px 52px; }
.guide-ol li::before {
  content: counter(g); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(240,180,41,0.12); border: 1px solid var(--border-strong);
  color: var(--gold); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.guide-ol strong { display: block; font-size: 1.05rem; color: var(--text); margin-bottom: 4px; }
.guide-ol p { color: var(--muted); font-size: 0.92rem; }
.guide-ol code, .guide-ul code {
  background: rgba(240,180,41,0.12); color: var(--gold-light);
  padding: 1px 6px; border-radius: 5px; font-size: 0.85rem;
}
.guide-ol a, .guide-panel a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold-dark); }
.guide-ol a:hover, .guide-panel a:hover { color: var(--gold-light); }

.guide-ul { list-style: none; }
.guide-ul li {
  position: relative; padding: 11px 0 11px 28px; color: var(--muted); font-size: 0.95rem;
  border-bottom: 1px dashed rgba(240,180,41,0.1);
}
.guide-ul li:last-child { border-bottom: none; }
.guide-ul li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
.guide-ul strong { color: var(--text); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: rgba(26,18,11,0.4); }
.faq-q {
  width: 100%; text-align: left; padding: 17px 22px;
  background: none; border: none; cursor: pointer; color: var(--text);
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q:hover { color: var(--gold-light); }
.faq-icon { font-size: 1.4rem; color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 22px 18px; color: var(--muted); font-size: 0.92rem; }

/* ============ CTA BAND ============ */
.cta-band { padding: 56px 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  background: linear-gradient(135deg, rgba(240,180,41,0.12), rgba(26,18,11,0.6));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 40px 46px; backdrop-filter: blur(8px);
}
.cta-inner h2 { font-family: var(--font-head); font-size: 2rem; letter-spacing: 0.5px; }
.cta-inner p { color: var(--muted); margin-top: 6px; }
.cta-btns { display: flex; gap: 14px; flex-shrink: 0; }

/* ============ FOOTER ============ */
.footer { background: rgba(10, 7, 3, 0.93); border-top: 1px solid var(--border); padding-top: 56px; backdrop-filter: blur(8px); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px;
  padding-bottom: 44px; border-bottom: 1px solid var(--border);
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-desc { color: var(--muted); font-size: 0.9rem; max-width: 340px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.5px;
  margin-bottom: 18px; color: var(--gold-light);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }

.social { display: flex; gap: 12px; margin-bottom: 18px; }
.social-link {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,180,41,0.06); border: 1px solid var(--border);
  color: var(--text); transition: 0.25s; text-decoration: none;
}
.social-link:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1303; transform: translateY(-3px); border-color: var(--gold);
  box-shadow: 0 8px 20px var(--gold-glow);
}
.footer-note { font-size: 0.85rem; color: var(--muted); }

.footer-bottom { padding: 22px 0; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--muted-2); }
.footer-disclaimer { font-size: 0.74rem !important; color: var(--muted-2); opacity: 0.7; }

/* ============ RESPONSIVE ============ */
/* Prevent horizontal scroll without trapping vertical scroll.
   NOTE: overflow-x on <html> forces overflow-y to compute to 'auto',
   which can lock page scroll. Use 'clip' on body only (does not alter
   the other axis) and never set overflow on <html>. */
body { overflow-x: clip; max-width: 100%; overscroll-behavior-y: none; }

/* Larger touch targets on coarse pointers (touch devices) */
@media (pointer: coarse) {
  .btn { min-height: 48px; padding-top: 14px; padding-bottom: 14px; }
  .nav-link { min-height: 48px; }
  .social-link { width: 48px; height: 48px; }
  .menu-toggle { padding: 12px; }
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .download-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .game-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; height: 100dvh; width: 82%; max-width: 320px;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    background: rgba(20, 14, 7, 0.98); backdrop-filter: blur(16px);
    padding: 90px 26px 30px; gap: 4px; transition: right 0.35s ease; z-index: 101;
    border-left: 1px solid var(--border); overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-link { width: 100%; padding: 15px 12px; font-size: 1rem; border-radius: 10px; }
  .nav-link.active { background: rgba(240,180,41,0.1); }
  .nav-link.active::after { display: none; }
  .nav-status { display: none; }
  .menu-toggle { display: flex; z-index: 102; position: relative; margin-left: auto; }

  /* Mobile menu backdrop overlay */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }

  .hero { min-height: auto; padding-top: 110px; padding-bottom: 50px; }
  .hero-clock { flex-direction: column; gap: 14px; padding: 22px; width: 100%; max-width: 360px; }
  .clock-divider { width: 60px; height: 1px; }
  .clock-item { padding: 4px 0; }
  .clock-value { font-size: 1.2rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; align-items: stretch; text-align: left; padding: 26px 22px; }
  .download-left { flex-direction: column; text-align: center; align-items: center; gap: 16px; }
  .download-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { justify-content: center; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 38px; }
  .guide-panels { padding: 22px 18px 26px; }
  .guide-tabs { padding: 10px; }
  .guide-tab { padding: 9px 14px; font-size: 0.84rem; }

  /* Game cards mobile */
  .game-card { min-height: auto; padding: 24px; }
  .game-logo { width: 76px; height: 76px; }
  .game-card h3 { font-size: 1.4rem; }

  /* Coming soon mobile */
  .cs-hero { padding-top: 110px; }
  .cs-logo { width: 90px; height: 90px; }

  .cta-inner { padding: 30px 24px; }
  .cta-inner h2 { font-size: 1.5rem; }
  .req-card { padding: 26px 22px; }
  .req-list span { min-width: 84px; }
  .footer-bottom .container { gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; letter-spacing: 1px; }
  .hero-title { letter-spacing: 2px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; }
  .hero-deco { display: none; }
  .section { padding: 44px 0; }
  .section-title { letter-spacing: 0.5px; }
  .download-steps .step, .feature-card, .req-card { padding: 20px 18px; }
  .portal-hero { padding-top: 100px; }
  .game-grid { gap: 16px; }
  .social { gap: 10px; }
  .social-link { width: 42px; height: 42px; }
  .faq-q { padding: 15px 18px; font-size: 0.92rem; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .game-logo { width: 64px; height: 64px; }
  .game-card { padding: 20px; }
  .clock-value { font-size: 1.05rem; }
  .btn { font-size: 0.9rem; padding-left: 20px; padding-right: 20px; }
}

/* Landscape phone: keep hero usable */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100vh; min-height: 100dvh; padding-top: 80px; }
  .hero-clock { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .portal-hero { padding-top: 80px; padding-bottom: 14px; }
}

/* Respect device safe areas (notched phones) */
@supports (padding: env(safe-area-inset-top)) {
  .navbar { padding-top: max(14px, env(safe-area-inset-top)); }
  .footer-bottom { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .nav-links { padding-top: max(90px, calc(env(safe-area-inset-top) + 80px)); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-deco { display: none; }
}

/* ============================================================
   CONTENT PROTECTION
   ============================================================ */
/* Disable text selection site-wide (inputs excluded via JS) */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
/* Disable image drag / save gestures */
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Obscure page when devtools detected (paired with protection.js) */
html.devtools-detected body {
  filter: blur(24px) grayscale(1) brightness(0.3);
  transition: filter 0.2s ease;
  pointer-events: none;
}
html.devtools-detected::after {
  content: "Access Restricted";
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: clamp(1.4rem, 5vw, 2.6rem);
  letter-spacing: 3px; color: var(--gold);
  background: rgba(12, 8, 4, 0.96);
  text-shadow: 0 0 30px var(--gold-glow);
}

/* Hide print content */
@media print { body { display: none !important; } html::after { content: "Printing disabled"; display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; } }

/* ============================================================
   PORTAL / GAME LAUNCHER
   ============================================================ */

/* nav portal back link */
.nav-portal {
  background: rgba(240,180,41,0.1); color: var(--gold-light);
  border: 1px solid var(--border); font-weight: 600; font-size: 0.85rem;
}
.nav-portal:hover { background: rgba(240,180,41,0.2); color: var(--gold); }
.nav-portal.active::after { display: none; }

/* Per-game accent theming (set on <body data-game="...">) */
[data-game="pw"] { --accent: #f0b429; --accent-l: #ffd24a; --accent-d: #c8860a; --accent-glow: rgba(240,180,41,0.4); }
[data-game="ro"] { --accent: #e85a6a; --accent-l: #ff8090; --accent-d: #b8334a; --accent-glow: rgba(232,90,106,0.4); }
[data-game="gc"] { --accent: #a674ff; --accent-l: #c4a3ff; --accent-d: #7c4ddb; --accent-glow: rgba(166,116,255,0.4); }
[data-game="rf"] { --accent: #2fd4e8; --accent-l: #6fe8f5; --accent-d: #179aae; --accent-glow: rgba(47,212,232,0.4); }

.accent { background: linear-gradient(135deg, var(--accent-l), var(--accent), var(--accent-d)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.btn-primary { background: linear-gradient(135deg, var(--accent-l), var(--accent), var(--accent-d)); box-shadow: 0 8px 26px var(--accent-glow); }
.hero-badge { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-l); }
.status-pill { background: rgba(61,220,132,0.12); color: var(--green); border-color: rgba(61,220,132,0.35); }

/* ---- Portal hero (compact so game grid sits near top) ---- */
.portal-hero {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 22px 24px; position: relative; min-height: auto;
}
.portal-logo-big {
  width: 78px; height: 78px; object-fit: contain; margin-bottom: 16px;
  filter: drop-shadow(0 0 26px var(--gold-glow));
  animation: floatY 4s ease-in-out infinite;
}
.portal-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: 4px; line-height: 1.05;
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}
.portal-title .accent { background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.portal-tagline { margin-top: 10px; font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--muted); font-weight: 300; }
.portal-sub { margin-top: 8px; font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 600; animation: heroIn 0.9s 0.3s cubic-bezier(0.16,1,0.3,1) both; }

/* ---- Game grid ---- */
.game-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
  max-width: 1000px; margin: 26px auto 0; padding: 0 22px;
}
.game-card {
  position: relative; overflow: hidden; display: block; text-decoration: none;
  border-radius: var(--radius); min-height: 250px; padding: 30px;
  background: linear-gradient(150deg, rgba(34,22,10,0.92), rgba(20,14,7,0.97));
  border: 1px solid var(--border); cursor: pointer;
  transform-style: preserve-3d; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.game-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 80% 15%, var(--accent-glow), transparent 55%);
  opacity: 0.5; transition: opacity 0.3s;
}
.game-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.4s;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}
.game-card:hover { border-color: var(--accent); box-shadow: 0 24px 60px var(--accent-glow); }
.game-card:hover::before { opacity: 0.9; }
.game-card:hover::after { opacity: 1; }
.game-card-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; transform: translateZ(50px); }

/* game logo image */
.game-logo {
  width: 92px; height: 92px; object-fit: contain; margin-bottom: 16px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  transition: filter 0.3s, transform 0.3s;
}
.game-card:hover .game-logo { filter: drop-shadow(0 6px 22px var(--accent-glow)); transform: scale(1.06); }

.game-icon {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-l);
}
.game-card h3 { font-family: var(--font-head); font-size: 1.7rem; letter-spacing: 1px; color: var(--text); }
.game-card h3 .accent { display: block; font-size: 1.1rem; margin-top: 2px; }
.game-card .game-desc { color: var(--muted); font-size: 0.88rem; margin-top: 8px; max-width: 320px; }
.game-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.game-status {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 50px;
}
.game-status.online { background: rgba(61,220,132,0.14); color: var(--green); border: 1px solid rgba(61,220,132,0.4); }
.game-status.soon { background: rgba(240,180,41,0.14); color: var(--gold); border: 1px solid rgba(240,180,41,0.4); }
.game-ver { font-size: 0.78rem; color: var(--muted-2); }
.game-enter {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-weight: 600; font-size: 0.92rem; color: var(--accent-l);
  transition: gap 0.25s;
}
.game-card:hover .game-enter { gap: 14px; }
.game-enter svg { transition: transform 0.25s; }
.game-card:hover .game-enter svg { transform: translateX(4px); }

.game-card-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.16), transparent 45%);
  opacity: 0; transition: opacity 0.3s; mix-blend-mode: overlay;
}
.game-card:hover .game-card-glare { opacity: 1; }

.portal-foot-note { text-align: center; margin: 50px auto 0; color: var(--muted-2); font-size: 0.85rem; }
.portal-foot-note a { color: var(--gold); text-decoration: none; }

/* ---- Coming soon page ---- */
.cs-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 130px 22px 60px; position: relative;
}
.cs-icon {
  width: 96px; height: 96px; border-radius: 24px; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-l); filter: drop-shadow(0 0 24px var(--accent-glow));
  animation: floatY 4s ease-in-out infinite;
}
.cs-logo {
  width: 120px; height: 120px; object-fit: contain; margin-bottom: 26px;
  filter: drop-shadow(0 8px 26px rgba(0,0,0,0.55)) drop-shadow(0 0 22px var(--accent-glow));
  animation: floatY 4s ease-in-out infinite;
}
.cs-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem,6vw,4.2rem); letter-spacing: 3px; }
.cs-tagline { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.cs-badge {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px; border-radius: 50px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-l); font-weight: 600; letter-spacing: 1px; font-size: 0.85rem;
}
.cs-badge .dot { background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 1.8s infinite; }
.cs-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cs-features { max-width: 880px; margin: 0 auto; padding: 30px 22px 80px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cs-features .feature-card { background: var(--card); }

/* responsive game grid */
@media (max-width: 760px) {
  .cs-features { grid-template-columns: 1fr; }
}
