:root {
  --bg: #040202;
  --text: #f8f3ee;
  --muted: #d8cfc6;
  --shadow: 0 30px 90px rgba(0,0,0,.62);
  --stroke: rgba(255,255,255,.1);
  --gold: #f1be81;
  --red: #c11717;
}

* { 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;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(circle at center, rgba(145,18,18,.22), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,0,.98));
  transition: opacity .75s ease, visibility .75s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-core {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,82,82,.22), transparent 48%),
    conic-gradient(from 0deg, rgba(255,140,70,.0), rgba(255,98,98,.45), rgba(255,140,70,.0));
  filter: blur(10px);
  animation: coreSpin 4s linear infinite;
}

.loading-logo {
  width: min(340px, 62vw);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(255,50,50,.42));
  animation: logoPulse 2.8s ease-in-out infinite;
}

.loading-title {
  position: relative;
  z-index: 1;
  font-family: Cinzel, serif;
  letter-spacing: .34em;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.loading-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.loading-bar {
  position: relative;
  z-index: 1;
  width: min(420px, 78vw);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.loading-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(140,8,8,.5), rgba(255,96,64,1), rgba(255,196,120,1));
  box-shadow: 0 0 18px rgba(255,100,80,.55);
  transition: width .2s ease;
}

.bg-video,
.bg-overlay,
.bg-vignette,
.embers,
.fog,
.sigil,
.hero-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) contrast(1.08) brightness(.34);
  background: #000;
  transform: scale(1.06);
}

.bg-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,42,42,.16), transparent 28%),
    radial-gradient(circle at 50% 85%, rgba(255,108,44,.08), transparent 22%),
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.72)),
    linear-gradient(115deg, rgba(95,0,0,.3), rgba(0,0,0,.45) 44%, rgba(65,0,0,.18));
}

.bg-vignette {
  z-index: 2;
  box-shadow: inset 0 0 240px rgba(0,0,0,.92), inset 0 -120px 120px rgba(0,0,0,.58);
}

.hero-light {
  z-index: 3;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,190,100,.08), transparent 22%),
    radial-gradient(circle at 50% 48%, rgba(255,60,60,.08), transparent 28%);
}

.embers {
  z-index: 4;
  background-image:
    radial-gradient(circle at 15% 28%, rgba(255,126,42,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 22%, rgba(255,38,38,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 70%, rgba(255,180,120,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 82%, rgba(255,40,40,.12) 0 2px, transparent 3px),
    radial-gradient(circle at 56% 35%, rgba(255,88,0,.08) 0 1px, transparent 2px);
  animation: floatEmbers 12s linear infinite;
}

.fog {
  z-index: 4;
  opacity: .45;
}

.fog-a {
  background: radial-gradient(circle at 15% 60%, rgba(90,18,18,.42), transparent 25%), radial-gradient(circle at 85% 30%, rgba(74,10,10,.25), transparent 24%);
  filter: blur(34px);
  animation: fogMoveA 16s ease-in-out infinite alternate;
}

.fog-b {
  background: radial-gradient(circle at 70% 76%, rgba(145,28,18,.28), transparent 22%), radial-gradient(circle at 28% 22%, rgba(110,18,18,.24), transparent 22%);
  filter: blur(42px);
  animation: fogMoveB 20s ease-in-out infinite alternate;
}

.sigil {
  z-index: 4;
  width: 420px;
  height: 420px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: .07;
  filter: blur(.2px);
  mix-blend-mode: screen;
}

.sigil-left {
  left: -90px;
  background:
    radial-gradient(circle, transparent 56%, rgba(255,90,50,.55) 57% 58%, transparent 59%),
    radial-gradient(circle, transparent 44%, rgba(255,148,100,.35) 45% 46%, transparent 47%);
}

.sigil-right {
  right: -90px;
  background:
    radial-gradient(circle, transparent 56%, rgba(255,90,50,.55) 57% 58%, transparent 59%),
    radial-gradient(circle, transparent 44%, rgba(255,148,100,.35) 45% 46%, transparent 47%);
}

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

.hero-card {
  position: relative;
  width: min(1320px, 100%);
  padding: 30px 32px 30px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(37,8,8,.48), rgba(10,3,3,.76)),
    radial-gradient(circle at 50% 16%, rgba(255,112,60,.08), transparent 20%);
  backdrop-filter: blur(10px);
  border-radius: 34px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,140,100,.04);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent),
    radial-gradient(circle at 50% 0%, rgba(255,178,105,.08), transparent 26%);
  pointer-events: none;
}

.corner-flare {
  position: absolute;
  width: 140px;
  height: 140px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,200,120,.12), transparent 58%);
  filter: blur(8px);
}
.corner-flare-tl { top: -40px; left: -28px; }
.corner-flare-tr { top: -40px; right: -28px; }
.corner-flare-bl { bottom: -54px; left: -22px; }
.corner-flare-br { bottom: -54px; right: -22px; }

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

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

.logo-aura {
  position: absolute;
  width: min(540px, 100%);
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,82,82,.26), rgba(255,82,82,.08) 36%, transparent 70%);
  filter: blur(22px);
  animation: auraPulse 3.8s ease-in-out infinite;
}

.main-logo {
  position: relative;
  width: min(540px, 100%);
  display: block;
  filter: drop-shadow(0 0 22px rgba(255, 47, 47, .5)) drop-shadow(0 18px 54px rgba(0,0,0,.88));
  animation: logoFloat 4.6s ease-in-out infinite;
}

.top-portal {
  position: relative;
  min-height: 186px;
  border-radius: 28px;
  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,.34);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  isolation: isolate;
}

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

.portal-shine {
  position: absolute;
  inset: -30% auto auto -30%;
  width: 60%;
  height: 220%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  opacity: .34;
  transition: transform .45s ease;
}

.top-portal:hover .portal-shine {
  transform: translateX(180%) rotate(22deg);
}

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

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

.portal-title {
  font-family: Cinzel, serif;
  font-size: clamp(2.1rem, 3vw, 2.95rem);
  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: 44px;
  height: 44px;
  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 {
  position: relative;
  text-align: center;
  margin: 10px auto 26px;
}

.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(3rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: .08em;
  text-shadow: 0 0 26px rgba(255, 25, 25, .25);
}

.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,.34);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.social-card:hover {
  transform: translateY(-5px) scale(1.015);
  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,.44), 0 0 22px rgba(255,80,45,.2);
}

.card-energy {
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 112px;
  background: radial-gradient(circle at center, rgba(255, 55, 55, .36), transparent 60%);
  pointer-events: none;
}

.social-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.06) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}

.social-card:hover::after {
  transform: translateX(120%);
}

.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,.7), rgba(18,15,39,.88)); }
.facebook { background-image: linear-gradient(135deg, rgba(27,72,151,.7), rgba(10,18,48,.88)); }
.instagram { background-image: linear-gradient(135deg, rgba(198,57,121,.68), rgba(72,13,39,.88)); }
.youtube { background-image: linear-gradient(135deg, rgba(204,27,27,.76), rgba(50,7,7,.88)); }
.streamer-apply { background-image: linear-gradient(135deg, rgba(105,35,22,.74), rgba(30,10,10,.9)); }
.live-broadcast { background-image: linear-gradient(135deg, rgba(123,32,12,.74), rgba(33,8,6,.9)); }
.whatsapp-channel { background-image: linear-gradient(135deg, rgba(14,112,48,.74), rgba(6,36,16,.9)); }
.whatsapp-group { background-image: linear-gradient(135deg, rgba(78,86,28,.74), rgba(26,31,10,.9)); }

.sound-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12, 5, 5, .76);
  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: 8;
  color: rgba(255,255,255,.82);
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
}

@keyframes coreSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: 1; }
}

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

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

@keyframes fogMoveA {
  from { transform: translate3d(-3%, 0, 0); }
  to { transform: translate3d(3%, -2%, 0); }
}

@keyframes fogMoveB {
  from { transform: translate3d(2%, 0, 0); }
  to { transform: translate3d(-2%, 2%, 0); }
}

@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; }
  .sigil { display: none; }
}

@media (max-width: 680px) {
  .hero { padding: 16px; }
  .hero-card { padding: 18px 16px 18px; border-radius: 24px; }
  .top-portal { min-height: 124px; }
  .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; }
  .loading-core { width: 250px; height: 250px; }
}
