:root {
  --bg: #050505;
  --text: #f5f2ee;
  --muted: #d9d1ca;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --card: rgba(8, 4, 4, 0.5);
  --stroke: rgba(255,255,255,.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  overflow: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) contrast(1.05) brightness(.42);
  background: #000;
}

.bg-overlay,
.bg-vignette,
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.58)),
    radial-gradient(circle at center, rgba(255,35,35,.14), transparent 38%),
    linear-gradient(135deg, rgba(120,0,0,.24), rgba(0,0,0,.55));
}

.bg-vignette {
  z-index: 2;
  box-shadow: inset 0 0 220px rgba(0,0,0,.9);
}

.embers {
  z-index: 3;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,88,0,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 25%, rgba(255,22,22,.14) 0 1px, transparent 2px),
    radial-gradient(circle at 65% 70%, rgba(255,170,75,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 80%, rgba(255,44,44,.12) 0 2px, transparent 3px);
  animation: floatEmbers 12s linear infinite;
}

.hero {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.hero-card {
  width: min(1320px, 100%);
  padding: 26px 28px 28px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(30,7,7,.56), rgba(9,4,4,.74));
  backdrop-filter: blur(9px);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.top-row {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(420px, 560px) minmax(250px, 1fr);
  gap: 28px;
  align-items: center;
}

.logo-wrap {
  display: grid;
  place-items: center;
}

.main-logo {
  width: min(520px, 100%);
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 37, 37, .38)) drop-shadow(0 12px 42px rgba(0,0,0,.85));
}

.top-portal {
  position: relative;
  min-height: 184px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.32);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  isolation: isolate;
}

.top-portal:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 197, 126, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 56px rgba(0,0,0,.42), 0 0 22px rgba(255,80,45,.18);
}

.panel-portal,
.forum-portal {
  background:
    radial-gradient(circle at 25% 75%, rgba(255,80,80,.26), transparent 22%),
    linear-gradient(135deg, rgba(135,8,8,.84), rgba(36,3,3,.88));
}

.portal-watermark {
  position: absolute;
  inset: 0;
  background: url('assets/logo.png') center center no-repeat;
  background-size: 78%;
  opacity: .11;
  filter: blur(.2px);
  z-index: -1;
}

.portal-title {
  font-family: Cinzel, serif;
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  letter-spacing: .18em;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 43, 43, .22);
}

.portal-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 1rem;
}

.headline-wrap {
  text-align: center;
  margin: 8px auto 24px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: .22em;
  color: #ffbc8c;
  font-size: .92rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: .08em;
  text-shadow: 0 0 22px rgba(255, 25, 25, .22);
}

.subtext {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.social-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 58px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 16px 18px 16px 14px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 40px rgba(0,0,0,.32);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.social-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 197, 126, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 48px rgba(0,0,0,.42), 0 0 22px rgba(255,80,45,.18);
}

.social-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 110px;
  background: radial-gradient(circle at center, rgba(255, 55, 55, .35), transparent 60%);
  pointer-events: none;
}

.social-logo {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 12px rgba(255,255,255,.08), 0 10px 20px rgba(0,0,0,.35);
}

.social-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
}

.social-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.12);
}

.social-copy strong {
  font-size: 1.16rem;
  font-weight: 800;
}

.social-arrow {
  justify-self: end;
  opacity: .95;
}

.discord { background-image: linear-gradient(135deg, rgba(74,64,151,.68), rgba(18,15,39,.84)); }
.facebook { background-image: linear-gradient(135deg, rgba(27,72,151,.66), rgba(10,18,48,.84)); }
.instagram { background-image: linear-gradient(135deg, rgba(198,57,121,.65), rgba(72,13,39,.86)); }
.youtube { background-image: linear-gradient(135deg, rgba(204,27,27,.72), rgba(50,7,7,.86)); }

.sound-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12, 5, 5, .74);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  color: rgba(255,255,255,.82);
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
}

@keyframes floatEmbers {
  0% { transform: translateY(0); opacity: .65; }
  50% { transform: translateY(-18px); opacity: 1; }
  100% { transform: translateY(-36px); opacity: .45; }
}

@media (max-width: 1180px) {
  body { overflow: auto; }
  .hero { min-height: auto; }
  .hero-card { margin: 22px 0 92px; }
  .top-row { grid-template-columns: 1fr; gap: 18px; }
  .logo-wrap { order: -1; }
  .social-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hero { padding: 16px; }
  .hero-card { padding: 18px 16px 18px; border-radius: 24px; }
  .top-portal { min-height: 120px; }
  .social-row { grid-template-columns: 1fr; }
  .social-card { grid-template-columns: 58px 52px 1fr 20px; gap: 10px; min-height: 92px; }
  .social-logo { width: 58px; height: 58px; }
  .social-icon { width: 52px; height: 52px; }
  .site-footer { width: calc(100% - 32px); font-size: .85rem; bottom: 14px; }
  .sound-toggle { right: 14px; bottom: 56px; }
}
