/* ===== Animated cover wall background ===== */
.home-bg-wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}
.home-bg-row {
  display: flex;
  gap: 16px;
  position: absolute;
  left: 0;
  height: 220px;
  white-space: nowrap;
  animation: home-bg-scroll linear infinite;
  will-change: transform;
}
.home-bg-row.r1 { top: 30px;  animation-duration: 90s; }
.home-bg-row.r2 { top: 266px; animation-duration: 110s; animation-direction: reverse; }
.home-bg-row.r3 { top: 502px; animation-duration: 100s; }
.home-bg-row .cv {
  width: 160px; height: 220px;
  flex-shrink: 0;
  border-radius: 8px;
  background-size: cover; background-position: center;
  background-color: #0e1424;
}
@keyframes home-bg-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

.home-stage {
  position: relative;
  overflow: hidden;
}
.home-stage::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(8,9,12,0.6) 70%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}
.home-stage > .container,
.home-stage > .hero { position: relative; z-index: 2; }
.home-stage + .site-footer { margin-top: 0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 0;
  margin: 0;
  text-align: center;
}
.hero-letterbox { display: none; }
.hero-stage {
  padding: 70px 32px 0;
  background: transparent;
  position: relative;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 920px;
  margin: 0 auto 18px;
  opacity: 0;
  animation: hero-cin-fade 1.4s ease 0.3s forwards;
}
.hero h1 .gold { color: var(--gold-bright); }
.hero p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  opacity: 0;
  animation: hero-cin-fade 1s ease 1s forwards;
}
@keyframes hero-cin-fade { to { opacity: 1; } }

/* ===== REGION GRID ===== */
.regions {
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
}
.region-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  min-height: 180px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.18);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.region-card.featured {
  background: linear-gradient(160deg, rgba(212,175,106,0.10), rgba(212,175,106,0.02));
  border-color: rgba(212,175,106,0.3);
  border-top-color: rgba(212,175,106,0.5);
}
.region-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.region-card .tag {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.region-flag {
  width: 56px; height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  margin-bottom: 14px;
}
.region-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.region-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.region-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== STEAM SECTION ===== */
.steam-section {
  padding: 50px 0 24px;
  position: relative;
  z-index: 2;
}
.steam-section .section-head { margin-bottom: 12px; }
.steam-section .section-title { font-size: 18px; font-weight: 700; }
.steam-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px 20px;
  min-height: 100px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.18);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.steam-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.steam-icon {
  width: 56px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.steam-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.steam-text { flex: 1; min-width: 0; }
.steam-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.steam-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.steam-card .arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.steam-card:hover .arrow { color: var(--gold-bright); transform: translateX(3px); }
.steam-card .arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero h1 { font-size: 40px; }
  .hero-stage { padding: 56px 24px 44px; }
  .regions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero h1 { font-size: 26px; }
  .hero-stage { padding: 40px 18px 32px; }
  .regions { padding: 28px 0 0; grid-template-columns: 1fr; }
  .steam-section { padding: 36px 0 60px; }
  .steam-card { flex-direction: column; text-align: center; }
}

/* ===== MOBILE FOUNDATION (B1) ===== */
@media (max-width: 480px) {
  .hero-stage { padding: 32px 14px 24px; }
  .hero h1 { font-size: 22px; margin-bottom: 14px; }
  .hero p { font-size: 13px; line-height: 1.55; }

  .regions { padding: 20px 0 0; gap: 12px; }
  .region-card { padding: 18px 18px 16px; min-height: 150px; }
  .region-flag { width: 48px; height: 32px; margin-bottom: 12px; }
  .region-name { font-size: 20px; }
  .region-card .tag { top: 12px; right: 12px; padding: 3px 8px; font-size: 9px; }

  .steam-section { padding: 28px 0 40px; }
  .steam-card { padding: 18px; min-height: auto; gap: 12px; }
  .steam-icon { width: 48px; height: 32px; }
  .steam-name { font-size: 20px; }
}
