/* Frozen Dungeon — Futuristic spacey game vibe */
:root {
  --bg-deep: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2234;
  --ice: #7dd3fc;
  --ice-bright: #bae6fd;
  --frost: #22d3ee;
  --space-blue: #3b82f6;
  --accent: #818cf8;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --glow: rgba(34, 211, 238, 0.4);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

.home-page {
  background: #020617 url("images/fd.jpg") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}

.home-page .starfield {
  display: none;
}

/* Starfield background */
.starfield {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(129, 140, 248, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.starfield::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.25), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent);
  background-size: 200px 200px;
  animation: twinkle 8s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

/* Snowfall overlay */
.snowfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1em;
  text-shadow: 0 0 4px rgba(186, 230, 253, 0.5);
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px) translateX(0);
  }
  100% {
    transform: translateY(100vh) translateX(var(--drift, 0));
  }
}

/* Ice cursor trail */
.ice-trail-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.ice-trail-dot {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 8px rgba(34, 211, 238, 0.8),
    0 0 14px rgba(186, 230, 253, 0.5),
    0 0 4px rgba(255, 255, 255, 0.6);
  animation: ice-trail-fade 0.9s ease-out forwards;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ice-trail-fade {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.4) rotate(90deg);
    opacity: 0;
  }
}

.ice-burst-dot {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.98);
  text-shadow:
    0 0 10px rgba(34, 211, 238, 0.9),
    0 0 18px rgba(186, 230, 253, 0.6),
    0 0 6px rgba(255, 255, 255, 0.7);
  animation: ice-burst 0.9s ease-out forwards;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ice-burst {
  0% {
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.2) rotate(120deg);
    opacity: 0;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ice);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: min(95vw, 920px);
  width: 100%;
}

.hero-logo {
  display: block;
  width: min(95vw, 900px);
  max-width: 900px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  border-radius: 24px;
  border: 3px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 60px var(--glow);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--ice-bright), var(--frost));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ice);
  margin: 0 0 0.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--ice), var(--frost));
  border: none;
  box-shadow: 0 0 24px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--glow);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Sections */
.section {
  position: relative;
  padding: 4rem 1.5rem;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ice-bright);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--frost);
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

/* About */
.section-about {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 34, 52, 0.5) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

.about-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--frost);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--ice-bright);
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px);
}

.game-card-visual {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(129, 140, 248, 0.15));
  border-radius: 16px;
  font-size: 2rem;
  color: var(--frost);
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: var(--ice-bright);
}

.game-meta {
  font-size: 0.85rem;
  color: var(--frost);
  margin: 0 0 0.75rem;
}

.game-card p:last-of-type {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Frost Survival */
.section-frost {
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.04) 50%, transparent 100%);
}

.frost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.frost-card {
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.frost-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.frost-card i {
  font-size: 1.75rem;
  color: var(--frost);
  margin-bottom: 0.75rem;
}

.frost-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--ice-bright);
}

.frost-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Related */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.related-item:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.related-item i {
  font-size: 1.5rem;
  color: var(--frost);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.related-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--ice-bright);
}

.related-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  position: relative;
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ice-bright);
}

.footer-tagline {
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.footer-meta {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-vpn {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

.footer-vpn a {
  color: var(--frost);
  text-decoration: none;
}

.footer-vpn a:hover {
  color: var(--ice-bright);
  text-decoration: underline;
}

.footer-counter {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.footer-counter #visitor-count {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--frost);
}

/* VPN promo (BTGuard) */
.vpn-promo {
  padding: 1.5rem 1.5rem;
}

.vpn-promo-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(129, 140, 248, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.vpn-promo-link:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--text);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.vpn-promo-icon {
  font-size: 1.5rem;
  color: var(--frost);
}

.vpn-promo-text strong {
  color: var(--ice-bright);
}

.vpn-promo-cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--frost);
}

/* Game pages */
.game-page .game-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  z-index: 1;
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.game-hero-present .game-hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 60%);
}

.game-hero-witch .game-hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(129, 140, 248, 0.12) 0%, transparent 60%);
}

.game-hero-dead .game-hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(248, 113, 113, 0.08) 0%, transparent 60%);
}

.game-hero-content {
  position: relative;
  text-align: center;
}

.game-hero-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 24px;
  font-size: 2.5rem;
  color: var(--frost);
  border: 2px solid rgba(34, 211, 238, 0.3);
}

.game-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--ice-bright), var(--frost));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ice);
  margin: 0 0 0.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-hero-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.game-story {
  max-width: 680px;
  margin: 0 auto;
}

.game-story p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.game-story p:last-child {
  margin-bottom: 0;
}

.game-story strong {
  color: var(--ice-bright);
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 34, 52, 0.4) 50%, transparent 100%);
}

.game-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.game-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.game-feature:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.game-feature i {
  font-size: 1.25rem;
  color: var(--frost);
  flex-shrink: 0;
}

.game-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.game-screenshots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.game-card-link .game-card {
  height: 100%;
}

.game-card-link:hover .game-card {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-4px);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 1rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  }

  .hero {
    padding-top: 5rem;
  }
}
