:root {
  --gold: #e8c57a;
  --gold-strong: #ffdf9b;
  --ember: #ff7a2f;
  --crimson: #7d1010;
  --mist: rgba(255, 241, 210, 0.88);
  --panel: rgba(19, 8, 4, 0.56);
  --line: rgba(255, 214, 137, 0.28);
  --shadow: rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Noto Serif SC", serif;
  color: #fff5dc;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 163, 82, 0.28), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(120, 0, 0, 0.35), transparent 34%),
    linear-gradient(rgba(8, 4, 2, 0.18), rgba(8, 4, 2, 0.72)),
    url("./image.avif") center/cover no-repeat fixed;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(115deg, rgba(255, 196, 104, 0.08), transparent 30%, rgba(255, 196, 104, 0.04) 60%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 56px,
      rgba(255, 214, 137, 0.03) 57px,
      transparent 58px
    );
  mix-blend-mode: screen;
}

body::after {
  background: radial-gradient(circle, rgba(255, 220, 144, 0.22) 0 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.16;
  animation: drift 18s linear infinite;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 180, 73, 0.08), transparent 28%),
    linear-gradient(to bottom, rgba(14, 7, 4, 0.24), rgba(14, 7, 4, 0.78));
}

.hero-panel {
  position: relative;
  width: min(980px, 100%);
  padding: 56px 48px 52px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(67, 20, 10, 0.58), rgba(18, 6, 4, 0.78)),
    var(--panel);
  box-shadow:
    0 24px 90px var(--shadow),
    inset 0 0 0 1px rgba(255, 222, 160, 0.05),
    inset 0 0 42px rgba(255, 150, 67, 0.08);
  backdrop-filter: blur(10px);
  text-align: center;
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 213, 140, 0.16);
  border-radius: 24px;
  transform: rotate(45deg);
}

.hero-panel::before {
  top: -120px;
  left: -120px;
}

.hero-panel::after {
  right: -120px;
  bottom: -120px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.5em;
  font-size: 12px;
}

h1 {
  margin: 16px 0 14px;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  color: #fff3d2;
  text-shadow: 0 0 22px rgba(255, 170, 76, 0.28);
}

.subtitle {
  width: min(700px, 100%);
  margin: 0 auto 36px;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.85;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  border: 1px solid rgba(255, 214, 137, 0.2);
  border-radius: 20px;
  text-decoration: none;
  color: #fff7e8;
  background:
    linear-gradient(140deg, rgba(255, 176, 73, 0.12), rgba(0, 0, 0, 0.22));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  text-align: left;
}

.portal-btn:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 222, 160, 0.52);
  background:
    linear-gradient(140deg, rgba(255, 176, 73, 0.2), rgba(74, 11, 0, 0.32));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 163, 70, 0.12);
}

.portal-btn.primary {
  background:
    linear-gradient(135deg, rgba(255, 205, 118, 0.28), rgba(125, 16, 16, 0.36));
}

.icon {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 214, 137, 0.26), rgba(255, 122, 47, 0.12));
  font-size: 28px;
  box-shadow: inset 0 0 18px rgba(255, 223, 155, 0.1);
}

.text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.text-group strong {
  font-size: 22px;
  font-weight: 700;
}

.text-group em {
  font-style: normal;
  color: rgba(255, 240, 208, 0.72);
  font-size: 14px;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(22px);
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .hero-panel {
    padding: 36px 22px 28px;
    border-radius: 22px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .text-group strong {
    font-size: 20px;
  }

  .subtitle {
    font-size: 15px;
    line-height: 1.7;
  }
}

