/* President v0.1.1 – moderne forside og tydelig live-lobby */

.hero-modern {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 14px;
  padding: clamp(44px, 8vw, 76px) 16px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 20%, rgba(61, 130, 96, 0.26), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(215, 182, 107, 0.18), transparent 29%),
    linear-gradient(145deg, rgba(14, 31, 25, 0.94), rgba(6, 15, 12, 0.9));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.hero-modern h1,
.hero-modern .hero-copy,
.hero-modern .eyebrow {
  position: relative;
  z-index: 3;
}

.hero-modern h1 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(2.8rem, 11vw, 6.2rem);
  text-wrap: balance;
}

.hero-modern h1 span {
  color: var(--accent-strong);
}

.hero-modern .hero-copy {
  max-width: 440px;
  font-size: clamp(0.96rem, 2.8vw, 1.08rem);
}

.ambient-cards {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.82;
}

.ambient-card {
  position: absolute;
  width: clamp(54px, 9vw, 82px);
  aspect-ratio: 0.7;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 15px;
  color: #141816;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(229, 235, 230, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 900;
  animation: ambient-card-float 7s ease-in-out infinite;
}

.ambient-card.red { color: #b52e2a; }
.ambient-card:nth-child(1) { left: -12px; top: 18%; transform: rotate(-17deg); }
.ambient-card:nth-child(2) { left: 8%; bottom: -36px; transform: rotate(10deg); animation-delay: -2s; }
.ambient-card:nth-child(3) { right: 7%; top: -30px; transform: rotate(13deg); animation-delay: -4s; }
.ambient-card:nth-child(4) { right: -14px; bottom: 13%; transform: rotate(-12deg); animation-delay: -1s; }

.home-grid {
  margin-top: 16px;
}

.home-grid .card-panel {
  min-height: 100%;
  padding: clamp(19px, 4vw, 26px);
}

.home-grid .panel-icon {
  margin-bottom: 18px;
}

.home-grid .panel-copy {
  min-height: auto;
  margin-bottom: 18px;
}

.live-lobby-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.live-lobby-stat {
  display: grid;
  gap: 4px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.live-lobby-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-lobby-stat strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(125, 222, 172, 0.4);
  animation: live-pulse 1.8s infinite;
}

.lobby-layout h2[data-live-count] {
  display: flex;
  align-items: center;
  gap: 9px;
}

@keyframes ambient-card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 222, 172, 0.42); }
  70% { box-shadow: 0 0 0 10px rgba(125, 222, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 222, 172, 0); }
}

@media (max-width: 699px) {
  .hero-modern {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .ambient-cards {
    opacity: 0.48;
  }

  .ambient-card:nth-child(2),
  .ambient-card:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-card,
  .live-dot {
    animation: none;
  }
}
