.my-empire-entrance-page {
  --empire-night: #071327;
  --empire-blue: #102b51;
  --empire-gold: #d9a93b;
  --empire-gold-light: #ffe49a;
  --empire-cream: #fff9eb;
  --empire-line: rgba(211, 170, 78, 0.24);
  background: #f7f2e8;
}

.my-empire-entrance-page main {
  overflow: hidden;
}

.empire-entrance-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.empire-entrance-hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--empire-night);
  color: #fff;
}

.empire-entrance-hero-image,
.empire-entrance-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.empire-entrance-hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  animation: empire-hero-reveal 900ms ease-out both;
}

.empire-entrance-hero-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 72% 25%, transparent 0 19%, rgba(4, 12, 26, 0.1) 47%, rgba(4, 12, 26, 0.42) 100%),
    linear-gradient(90deg, rgba(4, 12, 26, 0.98) 0%, rgba(5, 18, 37, 0.91) 38%, rgba(5, 18, 37, 0.28) 72%, rgba(5, 18, 37, 0.1) 100%),
    linear-gradient(0deg, rgba(4, 12, 26, 0.72), transparent 35%);
}

.empire-entrance-hero-inner {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  align-items: center;
  padding: 88px 0 98px;
}

.empire-entrance-hero-copy {
  animation: empire-copy-rise 650ms 100ms ease-out both;
}

.empire-entrance-kicker,
.empire-preview-label {
  margin: 0 0 13px;
  color: var(--empire-gold-light);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.empire-entrance-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 7.5vw, 6.65rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.93;
  text-wrap: balance;
}

.empire-entrance-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.empire-entrance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.empire-entrance-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.empire-entrance-button:hover {
  transform: translateY(-2px);
}

.empire-entrance-button.is-gold {
  color: #211703;
  background: linear-gradient(135deg, #f5d276, #c79122);
  box-shadow: 0 12px 30px rgba(6, 10, 19, 0.32);
}

.empire-entrance-button.is-gold:hover {
  box-shadow: 0 16px 36px rgba(6, 10, 19, 0.38);
}

.empire-entrance-button.is-glass {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(8, 22, 42, 0.42);
  backdrop-filter: blur(8px);
}

.empire-entrance-button.is-outline {
  color: #fff;
  border-color: rgba(255, 228, 154, 0.52);
  background: transparent;
}

.empire-entrance-text-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
  color: #fff;
  font-weight: 750;
  text-underline-offset: 5px;
}

.empire-entrance-note {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.empire-avatar-court {
  position: absolute;
  right: 2%;
  bottom: 20px;
  width: 245px;
  height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 30px 26px 16px;
  border: 1px solid rgba(255, 225, 142, 0.34);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
  background: linear-gradient(180deg, rgba(12, 28, 51, 0.38), rgba(7, 19, 39, 0.88));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 22px 50px rgba(2, 8, 18, 0.38);
  backdrop-filter: blur(7px);
  animation: empire-copy-rise 650ms 300ms ease-out both;
}

.empire-avatar {
  --avatar-skin: #b96f47;
  position: relative;
  width: 76px;
  height: 100px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.3));
}

.empire-avatar.skin-warm { --avatar-skin: #d99a6c; }
.empire-avatar.skin-deep { --avatar-skin: #825035; }

.empire-avatar-crown {
  position: absolute;
  z-index: 5;
  top: -27px;
  left: 50%;
  color: #f3c453;
  font-size: 1.9rem;
  line-height: 1;
  transform: translateX(-50%);
  text-shadow: 0 2px 10px rgba(245, 195, 80, 0.5);
}

.empire-avatar-head {
  position: absolute;
  z-index: 2;
  top: 23px;
  left: 17px;
  width: 42px;
  height: 48px;
  border: 2px solid rgba(255, 239, 198, 0.26);
  border-radius: 46% 46% 48% 48%;
  background: var(--avatar-skin);
}

.empire-avatar-head i {
  position: absolute;
  top: 21px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #17233d;
}

.empire-avatar-head i:first-child { left: 11px; }
.empire-avatar-head i:nth-child(2) { right: 11px; }

.empire-avatar-head b {
  position: absolute;
  left: 15px;
  bottom: 9px;
  width: 11px;
  height: 5px;
  border-bottom: 2px solid rgba(76, 32, 24, 0.72);
  border-radius: 50%;
}

.empire-avatar-hair {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 11px;
  width: 54px;
  height: 33px;
  border-radius: 50% 50% 35% 35%;
  background: #251a19;
}

.empire-avatar.is-boy .empire-avatar-hair {
  top: 17px;
  left: 16px;
  width: 44px;
  height: 23px;
  border-radius: 50% 55% 30% 25%;
}

.empire-avatar.is-girl .empire-avatar-hair::before,
.empire-avatar.is-girl .empire-avatar-hair::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 13px;
  height: 38px;
  border-radius: 10px;
  background: #251a19;
}

.empire-avatar.is-girl .empire-avatar-hair::before { left: -1px; transform: rotate(8deg); }
.empire-avatar.is-girl .empire-avatar-hair::after { right: -1px; transform: rotate(-8deg); }

.empire-avatar-body {
  position: absolute;
  left: 9px;
  bottom: 0;
  width: 58px;
  height: 39px;
  border: 2px solid rgba(255, 239, 179, 0.52);
  border-radius: 25px 25px 8px 8px;
  background: linear-gradient(135deg, #d1a437, #72501a);
}

.empire-entrance-section {
  padding: 100px 0;
}

.empire-entrance-section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.empire-entrance-section-heading .empire-entrance-kicker,
.empire-parent-copy .empire-entrance-kicker {
  color: #8b6516;
}

.empire-entrance-section-heading h2,
.empire-parent-copy h2,
.empire-final-inner h2 {
  margin: 0;
  color: var(--empire-night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.empire-entrance-section-heading > p:last-child,
.empire-parent-copy > p,
.empire-final-inner > p {
  max-width: 690px;
  margin: 18px 0 0;
  color: #586475;
  font-size: 1.03rem;
}

.empire-preview-section {
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(218, 174, 72, 0.13), transparent 31%),
    #f8f4eb;
}

.empire-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.empire-preview-card {
  overflow: hidden;
  border: 1px solid rgba(99, 74, 24, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24, 29, 38, 0.08);
}

.empire-preview-card.is-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
}

.empire-castle-comparison {
  min-height: 350px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--empire-night);
}

.empire-castle-comparison figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.empire-castle-comparison figure + figure {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.empire-castle-comparison img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.empire-castle-comparison figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 14, 29, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.empire-preview-image {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
}

.empire-preview-copy {
  padding: 26px 28px 30px;
}

.empire-preview-card.is-wide .empire-preview-copy {
  display: grid;
  align-content: center;
}

.empire-preview-label {
  color: #8b6516;
  font-size: 0.72rem;
}

.empire-preview-copy h3 {
  margin: 0;
  color: var(--empire-night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}

.empire-preview-copy p:last-child {
  margin: 13px 0 0;
  color: #5d6876;
}

.empire-journey-section {
  color: #fff;
  background:
    radial-gradient(circle at 12% 110%, rgba(220, 172, 61, 0.16), transparent 30%),
    linear-gradient(145deg, #071327, #102b51);
}

.empire-journey-section .empire-entrance-section-heading h2 {
  color: #fff;
}

.empire-journey-list {
  counter-reset: empire-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.empire-journey-list li {
  position: relative;
  min-height: 270px;
  padding: 35px 30px 30px;
  border: 1px solid var(--empire-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.empire-step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 227, 150, 0.42);
  border-radius: 50%;
  color: var(--empire-gold-light);
  background: rgba(213, 166, 56, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.empire-journey-list h3 {
  margin: 28px 0 10px;
  color: #fff;
  font-size: 1.28rem;
}

.empire-journey-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.empire-parent-section {
  background: #f8f4eb;
}

.empire-parent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
}

.empire-parent-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.empire-parent-features li {
  position: relative;
  padding-left: 27px;
  color: #273448;
  font-weight: 700;
}

.empire-parent-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #97701b;
  font-weight: 900;
}

.empire-parent-section .empire-entrance-button.is-outline {
  color: var(--empire-night);
  border-color: rgba(7, 19, 39, 0.38);
}

.empire-family-panel {
  position: relative;
  min-height: 450px;
  padding: 90px 34px 34px;
  border: 1px solid rgba(222, 186, 101, 0.36);
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(10, 33, 61, 0.93), rgba(5, 17, 35, 0.98)),
    url("student-empire/castle-stage-3.webp") center / cover;
  box-shadow: 0 28px 70px rgba(7, 19, 39, 0.2);
}

.empire-family-panel::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  top: -90px;
  border: 1px solid rgba(255, 220, 127, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 220, 127, 0.04), 0 0 0 58px rgba(255, 220, 127, 0.03);
}

.empire-family-banner {
  position: absolute;
  top: 28px;
  left: 34px;
  right: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--empire-gold-light);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.empire-family-banner b {
  padding: 6px 9px;
  border: 1px solid rgba(255, 229, 162, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.empire-learner-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(7px);
}

.empire-learner-card.is-first {
  margin-top: 0;
}

.empire-learner-card b,
.empire-learner-card i {
  display: block;
}

.empire-learner-card i {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-style: normal;
}

.empire-learner-card strong {
  color: var(--empire-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.empire-mini-avatar {
  --mini-skin: #825035;
  position: relative;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 225, 143, 0.42);
  border-radius: 50%;
  background: var(--mini-skin);
  box-shadow: inset 0 15px #251a19;
}

.empire-mini-avatar.skin-warm { --mini-skin: #d99a6c; }

.empire-mini-avatar::before,
.empire-mini-avatar::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #16233a;
}

.empire-mini-avatar::before { left: 12px; }
.empire-mini-avatar::after { right: 12px; }

.empire-family-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.empire-family-path span {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}

.empire-family-path span:first-child,
.empire-family-path span:nth-child(2) {
  background: linear-gradient(90deg, #ba8522, #f5d375);
}

.empire-trust-section {
  background: #fff;
}

.empire-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.empire-trust-grid article {
  padding: 26px 23px;
  border-top: 3px solid #c89d38;
  background: #f8f5ee;
}

.empire-trust-grid article > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6f4c08;
  background: #f0dfae;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
}

.empire-trust-grid h3 {
  margin: 22px 0 9px;
  color: var(--empire-night);
  font-size: 1.03rem;
}

.empire-trust-grid p {
  margin: 0;
  color: #647083;
  font-size: 0.9rem;
}

.empire-final-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(226, 177, 62, 0.16), transparent 27%),
    linear-gradient(140deg, #071327, #0f294e);
}

.empire-final-section::before {
  content: "♛";
  position: absolute;
  right: 4%;
  bottom: -100px;
  color: rgba(255, 226, 145, 0.055);
  font-size: 23rem;
  line-height: 1;
}

.empire-final-inner {
  position: relative;
  text-align: center;
}

.empire-final-inner h2 {
  color: #fff;
}

.empire-final-inner > p {
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
}

.empire-final-actions {
  max-width: 930px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px auto 0;
}

.empire-final-actions a {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 226, 145, 0.3);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.empire-final-actions a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 226, 145, 0.62);
  background: rgba(255, 255, 255, 0.085);
}

.empire-final-actions span {
  color: var(--empire-gold-light);
  font-size: 2rem;
}

.empire-final-actions strong {
  line-height: 1.25;
}

.empire-entrance-button:focus-visible,
.empire-entrance-text-link:focus-visible,
.empire-final-actions a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@keyframes empire-hero-reveal {
  from { opacity: 0.55; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes empire-copy-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .empire-entrance-hero,
  .empire-entrance-hero-inner {
    min-height: 650px;
  }

  .empire-entrance-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .empire-avatar-court {
    right: -16px;
    opacity: 0.88;
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .empire-preview-card.is-wide {
    grid-template-columns: 1fr;
  }

  .empire-parent-layout {
    grid-template-columns: 1fr;
  }

  .empire-family-panel {
    width: min(100%, 620px);
  }

  .empire-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .empire-entrance-inner {
    width: min(100% - 28px, 1180px);
  }

  .empire-entrance-hero,
  .empire-entrance-hero-inner {
    min-height: 720px;
  }

  .empire-entrance-hero-inner {
    align-items: start;
    padding-top: 72px;
    padding-bottom: 155px;
  }

  .empire-entrance-hero-image {
    object-position: 66% center;
  }

  .empire-entrance-hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 12, 26, 0.84) 0%, rgba(4, 12, 26, 0.79) 56%, rgba(4, 12, 26, 0.94) 100%),
      linear-gradient(90deg, rgba(4, 12, 26, 0.86), rgba(4, 12, 26, 0.22));
  }

  .empire-entrance-hero h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .empire-avatar-court {
    right: 50%;
    bottom: 0;
    height: 140px;
    transform: translateX(50%) scale(0.72);
    transform-origin: bottom center;
  }

  .empire-entrance-section,
  .empire-final-section {
    padding: 74px 0;
  }

  .empire-preview-grid,
  .empire-journey-list,
  .empire-final-actions {
    grid-template-columns: 1fr;
  }

  .empire-castle-comparison,
  .empire-castle-comparison img {
    min-height: 230px;
  }

  .empire-journey-list li {
    min-height: 0;
  }

  .empire-parent-features {
    grid-template-columns: 1fr;
  }

  .empire-final-actions a {
    min-height: 82px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .empire-entrance-actions {
    align-items: stretch;
  }

  .empire-entrance-button {
    width: 100%;
  }

  .empire-entrance-text-link {
    justify-content: center;
  }

  .empire-castle-comparison {
    grid-template-columns: 1fr;
  }

  .empire-castle-comparison figure + figure {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .empire-castle-comparison img {
    min-height: 210px;
  }

  .empire-trust-grid {
    grid-template-columns: 1fr;
  }

  .empire-family-panel {
    min-height: 410px;
    padding: 86px 18px 24px;
  }

  .empire-family-banner {
    right: 20px;
    left: 20px;
  }

  .empire-learner-card {
    grid-template-columns: 44px 1fr auto;
    padding: 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .empire-entrance-hero-image,
  .empire-entrance-hero-copy,
  .empire-avatar-court {
    animation: none;
  }

  .empire-entrance-button,
  .empire-final-actions a {
    transition: none;
  }

  .empire-entrance-button:hover,
  .empire-final-actions a:hover {
    transform: none;
  }
}
