.hero-home {
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, 0.5) 0%, rgba(7, 10, 16, 0.1) 50%, rgba(7, 10, 16, 0.1) 100%),
    url('/assets/img/hero-home-bg.webp') center top / cover no-repeat;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at left center, rgba(202, 134, 68, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.hero-home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(12, 15, 21, 0) 0%,
    rgba(12, 15, 21, 0.38) 45%,
    #14161a 100%
  );
}

.hero-parallax-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-parallax-boundary {
  position: relative;
  width: min(calc(100% - 100px), 1280px);
  height: 100%;
  margin: 0 auto;
}

.hero-parallax-scene .hero-elfa-layer {
  right: 0;
}

.hero-elfa-layer {
  position: absolute;
  right: 0;
  bottom: -24px;
  width: auto;
  height: 700px;
  max-width: none;
  max-height: none;
  transform: translate3d(0, 0, 0);
  transform-origin: center bottom;
  will-change: transform;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.66));
  opacity: 0.96;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0px;
  min-height: inherit;
  padding: calc(var(--header-height) + 40px) 50px 70px;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  margin-bottom: 18px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  line-height: 1.02;
  text-wrap: balance;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #f1d7b3 38%, #d88d50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtext {
  max-width: 560px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.84);
  font-size: 1rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 1);
}

.hero-subtext strong {
  color: var(--color-text);
  font-weight: 700;
}

.hero-description {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(238, 242, 251, 0.88);
  font-size: 1.05rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 60px;
}

.btn-hero {
  min-width: 236px;
}

.btn-play-now {
  min-height: 64px;
  padding: 0 36px;
  font-size: 1.28rem;
  letter-spacing: 0.13em;
  border-radius: 17px;
  background: linear-gradient(135deg, #b46830 0%, #d88443 42%, #7e441f 100%);
  box-shadow:
    0 24px 54px rgba(110, 60, 26, 0.68),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 42px rgba(200, 139, 77, 1);
  gap: 19px;
}

.btn-play-now::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-play-now:hover {
  transform: translateY(-2px);
    box-shadow:
    0 24px 54px rgba(110, 60, 26, 0.68),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 42px rgba(200, 139, 77, 1);
}

.btn-play-now:hover::before {
  left: 120%;
}

.btn-server-info {
  min-height: 58px;
  padding: 0 24px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(24, 29, 40, 0.72), rgba(10, 13, 21, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 42px rgba(0,0,0,0.5);
  gap: 10px;
}

.btn-server-info:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 42px rgba(0,0,0,0.5);
}

.btn-start-adventure {
  gap: 15px;
}

.btn-play-now .btn-text,
.btn-server-info .btn-text,
.btn-start-adventure .btn-text,
.btn-player-dashboard .btn-text {
  display: inline-flex;
  align-items: center;
}

.btn-play-now .btn-icon-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.06em;
  height: 1.06em;
  font-size: 1.12rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.btn-play-now .btn-icon-primary .icon {
  width: 34px;
  height: 34px;
}

.btn-start-adventure {
  min-height: 72px;
  padding: 0 42px;
  gap: 15px;
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  border-radius: 20px;
  background: linear-gradient(135deg, #9c582b 0%, #cf8143 48%, #6d3e1d 100%);
  box-shadow:
    0 28px 62px rgba(115, 65, 30, 0.72),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 46px rgba(200, 139, 77, 0.38);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.btn-start-adventure::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-start-adventure:hover {
  transform: translateY(-2px);
  box-shadow:
    0 34px 80px rgba(115, 65, 30, 0.8),
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 0 70px rgba(200, 139, 77, 0.5);
}

.btn-start-adventure:hover::before {
  left: 120%;
}

.btn-start-adventure .btn-text {
  display: inline-flex;
  align-items: center;
  font-family: "Cinzel", serif;
  font-weight: 800;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.btn-start-adventure .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  font-size: 1.3rem;
}

.btn-start-adventure .btn-icon .icon {
  width: 20px;
  height: 20px;
}

.btn-hero-secondary {
  min-width: 212px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 18px 25px;
  border: 0px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.25), rgba(10, 14, 22, 0.20));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
  justify-content: center;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(238, 242, 251, 0.78);
  font-size: 0.90rem;
}

.hero-meta-item strong {
  color: rgba(255,255,255,0.92);
}

.hero-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  text-align: center;
  opacity: 0.9;
}

.hero-meta-online {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(85, 216, 139, 0.42);
  animation: pulseStatus 1.8s infinite;
}

.hero-meta-online.is-offline {
  background: #d45c5c;
  box-shadow: 0 0 0 0 rgba(212, 92, 92, 0.42);
}

.hero-meta-online.is-pending {
  background: #c08f44;
  box-shadow: none;
  animation: none;
}

@keyframes pulseStatus {
  0% { box-shadow: 0 0 0 0 rgba(85, 216, 139, 0.42); }
  70% { box-shadow: 0 0 0 10px rgba(85, 216, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 216, 139, 0); }
}

.section-features {
  padding-top: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.0));
}

.section-philosophy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
}

.section-steps {
  background:
    linear-gradient(180deg, rgba(200, 139, 77, 0.18), rgba(200, 139, 77, 0.0));
}

.section-duel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
}

.section-cta {
  background:
    linear-gradient(180deg, rgba(200, 139, 77, 0.0), rgba(200, 139, 77, 0.0));
}

.feature-card {
  position: relative;
  height: 100%;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(200,139,77,0.35);
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      rgba(10, 14, 22, 0.9) 0%,
      rgba(10, 14, 22, 0.5) 45%,
      rgba(10, 14, 22, 0.9) 100%
    ),
    var(--card-bg) center center / cover no-repeat,
    linear-gradient(
      180deg,
      rgba(30, 37, 53, 0.92),
      rgba(18, 24, 36, 0.9)
    );
  box-shadow:
    0 18px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-size var(--transition);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200,139,77,0.9),
    transparent
  );
  opacity: 0.7;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(200, 139, 77, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
  pointer-events: none;
  z-index: 0;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(200,139,77,0.35);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.6),
    0 0 30px rgba(200,139,77,0.12);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border: 0px solid rgba(200, 139, 77, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle at top, rgb(235 212 189 / 25%), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 20px rgba(200,139,77,0.15);
}

.feature-icon .icon {
  width: 38px;
  height: 38px;
}

.feature-card h3,
.step-card h3 {
  margin-bottom: 12px;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 1);
}

.feature-card p,
.step-card p {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.steps-grid {
  position: relative;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid rgba(200,139,77,0.35);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(16, 22, 33, 0), rgba(10, 14, 22, 0.9)),
    var(--step-bg) center center / cover no-repeat;
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.04), rgba(10, 14, 20, 0.74));
  pointer-events: none;
}

.step-card > * {
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border: 1px solid rgba(200, 139, 77, 0.3);
  border-radius: 50%;
  background: rgba(11, 16, 24, 0.58);
  color: var(--color-primary-strong);
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.cta-panel {
  padding: 48px 28px;
  text-align: center;
  border: 1px solid rgba(200, 139, 77, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(200, 139, 77, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(28, 35, 49, 0.94), rgba(18, 23, 34, 0.92));
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.cta-panel h2 {
  max-width: 780px;
  margin-inline: auto;
}

.cta-panel p {
  max-width: 700px;
  margin: 0 auto 24px;
}

.btn-cta {
  min-width: 350px;
}

@media (min-width: 1440px) {
  .hero-parallax-boundary {
    width: min(calc(100% - 100px), 1440px);
  }
}

@media (max-width: 1279px) {
  .hero-elfa-layer {
    height: 660px;
  }
}

@media (max-width: 1023px) {
  .hero-home {
    min-height: 760px;
    background-position: center top;
  }

  .hero-parallax-scene {
    display: none;
  }

  .hero-parallax-boundary {
    width: min(calc(100% - 48px), 1280px);
  }

}

@media (max-width: 767px) {
  .btn-play-now,
  .btn-server-info,
  .btn-start-adventure {
    width: 100%;
  }

  .btn-start-adventure .btn-icon .icon {
    width: 23px;
    height: 23px;
  }

  .hero-home {
    min-height: 620px;
    background:
      linear-gradient(180deg, rgba(7, 10, 16, 0.42) 0%, rgba(7, 10, 16, 0.2) 40%, rgba(7, 10, 16, 0.34) 100%),
      url('/assets/img/hero-home-bg.webp') center top / cover no-repeat;
  }

  .hero-parallax-boundary {
    width: min(calc(100% - 32px), 1280px);
  }

  .hero-grid {
    padding: calc(var(--header-height) + 28px) 0 30px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8.9vw, 2.7rem);
  }

  .hero-subtext,
  .hero-description,
  .hero-meta-item {
    font-size: 0.96rem;
  }

  .hero-actions > * {
    width: 100%;
  }

  .hero-meta {
    display: inherit;
    gap: 10px 14px;
    padding: 16px 16px;
    border-radius: 18px;
  }

  .hero-meta-item {
    width: 100%;
  }

  .feature-card,
  .step-card,
  .cta-panel {
    border-radius: 22px;
  }

  .step-card {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-elfa-layer {
    transform: none !important;
  }
}
