/* ============================================================
   DEEP WELT — Main Stylesheet
   Colors: #0A0E1A (bg), #C8A84B (gold), #E8D08A (gold light),
           #3D1A6B (deep purple), #7B3FA0 (nebula), #1A2E5C (midnight blue)
   Fonts: Cinzel (headings), Raleway (body)
============================================================ */

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

:root {
  --bg:          #0A0E1A;
  --bg-2:        #0F1424;
  --bg-3:        #141830;
  --gold:        #C8A84B;
  --gold-light:  #E8D08A;
  --gold-dim:    #7A6530;
  --purple:      #3D1A6B;
  --nebula:      #7B3FA0;
  --blue:        #1A2E5C;
  --white:       #F0EDE6;
  --muted:       #8A8A9A;
  --border:      rgba(200, 168, 75, 0.15);
  --font-display: 'Cinzel', serif;
  --font-body:    'Raleway', sans-serif;
  --max-w:       1100px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: opacity var(--transition);
}
.nav-logo-img:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.lang-toggle {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover {
  border-color: var(--gold);
  background: rgba(200, 168, 75, 0.08);
}

[data-lang="en"] .lang-de,
[data-lang="de"] .lang-en { display: none; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/banner.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.78);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(10,14,26,0.9) 0%, transparent 70%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 2rem;
  animation: fadeUp 1s ease both;
}

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

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow: 0 0 40px rgba(200, 168, 75, 0.2);
  animation: fadeUp 1s 0.1s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.1;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.75rem;
  animation: fadeUp 1s 0.3s ease both;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 320px;
  animation: fadeUp 1s 0.4s ease both;
}
.divider-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.divider-icon {
  color: var(--gold);
  font-size: 14px;
}

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.75);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s 0.5s ease both;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 36px;
  border-radius: 2px;
  transition: all var(--transition);
  animation: fadeUp 1s 0.6s ease both;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 168, 75, 0.25);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 0.5px solid var(--gold);
  padding: 12px 32px;
  border-radius: 2px;
  transition: all var(--transition);
  margin-top: 1.5rem;
}
.btn-secondary:hover {
  background: rgba(200, 168, 75, 0.08);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-dim);
  font-size: 20px;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION LABEL
============================================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* ============================================================
   FEATURED GAME
============================================================ */
.featured {
  padding: 8rem 0;
  background: var(--bg-2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.game-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.game-card-featured-image {
  aspect-ratio: 9/16;
  max-height: 520px;
  border-radius: 4px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  position: relative;
}

.game-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(61, 26, 107, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(26, 46, 92, 0.4) 0%, transparent 50%),
    var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.game-placeholder span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.game-genre {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.game-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.7);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.game-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  border: 0.5px solid var(--border);
  color: var(--muted);
}

.badge-soon {
  border-color: rgba(200, 168, 75, 0.3);
  color: var(--gold);
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  padding: 8rem 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.about-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.65);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-logo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.85;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 3rem 0;
  border-top: 0.5px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
}

.footer-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 11px;
  color: rgba(138, 138, 154, 0.5);
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .nav { padding: 0.75rem 1.25rem; }
  .nav-links { display: none; }

  .game-card-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .game-card-featured-image { max-height: 320px; }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-logo { display: none; }

  .featured, .about { padding: 5rem 0; }
}

/* ============================================================
   PAGE HERO (внутрішні сторінки)
============================================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 26, 107, 0.4) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.2;
  letter-spacing: 0.05em;
}

/* ============================================================
   GAMES LIST
============================================================ */
.games-list {
  padding: 5rem 0 8rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.game-card {
  display: block;
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.game-card:hover {
  border-color: rgba(200, 168, 75, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.game-card-soon {
  cursor: default;
  opacity: 0.6;
}
.game-card-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.game-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.game-placeholder-small {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(61, 26, 107, 0.6) 0%, transparent 60%),
    var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-placeholder-small span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-card-image-soon {
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.soon-icon {
  font-size: 2rem;
  color: var(--gold-dim);
}

.game-card-body {
  padding: 1.5rem;
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.game-card-genre {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.game-card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.game-card:hover .game-card-arrow {
  transform: translateX(4px);
}

/* ============================================================
   GAME HERO (Ironbloom page)
============================================================ */
.game-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(61, 26, 107, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(26, 46, 92, 0.4) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}

.game-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.back-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--gold); }

.game-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.game-hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.game-hero-genre {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.game-hero-badges {
  display: flex;
  gap: 0.75rem;
}

/* ============================================================
   GAME ABOUT
============================================================ */
.game-about {
  padding: 5rem 0;
  border-top: 0.5px solid var(--border);
}

.game-about-inner {
  max-width: 720px;
}

.game-about-desc {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.8);
  line-height: 2;
}

/* ============================================================
   GAME FEATURES
============================================================ */
.game-features {
  padding: 5rem 0;
  background: var(--bg-2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

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

.feature-card {
  padding: 1.5rem;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg-3);
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: rgba(200, 168, 75, 0.3);
}

.feature-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.6);
  line-height: 1.7;
}

/* ============================================================
   SCREENSHOTS
============================================================ */
.game-screenshots {
  padding: 5rem 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.screenshot-placeholder {
  aspect-ratio: 9/16;
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ============================================================
   GAME CTA
============================================================ */
.game-cta-section {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.game-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.game-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.game-cta-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.6);
  margin-bottom: 2rem;
}

/* ============================================================
   LEGAL PAGES
============================================================ */
.legal-page {
  padding: 140px 0 6rem;
}

.legal-container {
  max-width: 760px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.legal-date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.legal-container h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin: 2.5rem 0 0.75rem;
}

.legal-container p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.7);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-container ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-container li {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.7);
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.legal-container a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(200, 168, 75, 0.3);
}

.legal-container a:hover {
  text-decoration-color: var(--gold);
}

.legal-note {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border: 0.5px solid rgba(200, 168, 75, 0.2);
  border-radius: 4px;
  background: rgba(200, 168, 75, 0.04);
}

.legal-note p {
  font-size: 0.875rem;
  color: var(--gold-dim);
  margin: 0;
}

/* Lang visibility for legal pages */
[data-lang="en"] .lang-show-de { display: none; }
[data-lang="de"] .lang-show-en { display: none; }

/* ============================================================
   i18n extra keys
============================================================ */
