:root {
  --aerie-black: #050505;
  --aerie-ash: #111014;
  --aerie-gold: #c8a35a;
  --aerie-old-gold: #8f6b2f;
  --aerie-parchment: #e7dac2;
  --aerie-violet: #6f3fb5;
  --aerie-white: #f8f2e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--aerie-black);
  color: var(--aerie-white);
}

.aerie-gates-page {
  min-height: 100vh;
  overflow: hidden;
}

.aerie-gates {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9)),
    radial-gradient(circle at center, rgba(111, 63, 181, 0.25), transparent 45%),
    linear-gradient(135deg, #151217, #050505 60%);
}

.aerie-gates::before,
.aerie-gates::after {
  content: "";
  position: absolute;
  top: 0;
  width: 24%;
  height: 100%;
  border-color: rgba(200, 163, 90, 0.22);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(200, 163, 90, 0.08) 0,
      rgba(200, 163, 90, 0.08) 4px,
      transparent 4px,
      transparent 34px
    );
  opacity: 0.65;
  transition: transform 1.5s ease;
}

.aerie-gates::before {
  left: 0;
  border-right: 1px solid rgba(200, 163, 90, 0.35);
}

.aerie-gates::after {
  right: 0;
  border-left: 1px solid rgba(200, 163, 90, 0.35);
}

.aerie-gates.opening::before {
  transform: translateX(-100%);
}

.aerie-gates.opening::after {
  transform: translateX(100%);
}

.aerie-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, transparent 25%, rgba(0, 0, 0, 0.75)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.aerie-gates-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(1000px, 92vw);
  padding: 2rem;
  animation: aerieFadeIn 1.5s ease forwards;
}

.aerie-kicker {
  margin: 0 0 1.2rem;
  color: var(--aerie-gold);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.85rem;
}

.aerie-gates-content h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 35px rgba(0, 0, 0, 1);
}

.aerie-subtitle {
  max-width: 760px;
  margin: 1.8rem auto 2.5rem;
  color: var(--aerie-parchment);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.aerie-button {
  cursor: pointer;
  border: 1px solid var(--aerie-gold);
  background: rgba(0, 0, 0, 0.75);
  color: var(--aerie-gold);
  padding: 1rem 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: all 0.3s ease;
}

.aerie-button:hover {
  background: var(--aerie-gold);
  color: var(--aerie-black);
  box-shadow: 0 0 30px rgba(200, 163, 90, 0.45);
}

@keyframes aerieFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}.aerie-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(111, 63, 181, 0.18), transparent 35%),
    linear-gradient(135deg, #09080c, #050505 70%);
}

.courtyard-page {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 5rem 0;
}

.courtyard-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.courtyard-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.courtyard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.location-card {
  min-height: 170px;
  border: 1px solid rgba(200, 163, 90, 0.55);
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.9));
  color: var(--aerie-white);
  text-decoration: none;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.3s ease;
}

.location-card span {
  color: var(--aerie-gold);
  font-size: 1.45rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.location-card small {
  color: var(--aerie-parchment);
  font-size: 1rem;
  line-height: 1.4;
}

.location-card:hover {
  transform: translateY(-4px);
  border-color: var(--aerie-gold);
  box-shadow: 0 0 25px rgba(200, 163, 90, 0.2);
}

.location-card.locked {
  opacity: 0.85;
}

.location-card.sealed {
  border-color: rgba(111, 63, 181, 0.7);
  box-shadow: inset 0 0 25px rgba(111, 63, 181, 0.12);
}

.aerie-nav {
  margin-top: 3rem;
  text-align: center;
}

.aerie-nav a {
  color: var(--aerie-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--aerie-gold);
  padding: 0.9rem 1.3rem;
  display: inline-block;
}

.aerie-nav a:hover {
  background: var(--aerie-gold);
  color: var(--aerie-black);
}.archives-page {
  width: min(1300px, 92vw);
  margin: 0 auto;
  padding: 5rem 0;
}

.archives-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.archives-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.archive-card {
  min-height: 230px;
  border: 1px solid rgba(200, 163, 90, 0.55);
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.95));
  padding: 1.7rem;
  transition: all 0.3s ease;
}

.archive-card p {
  margin: 0 0 1.2rem;
  color: var(--aerie-gold);
  font-weight: bold;
  letter-spacing: 0.08em;
}

.archive-card h2 {
  margin: 0 0 1rem;
  color: var(--aerie-white);
  font-size: 1.55rem;
  line-height: 1.1;
}

.archive-card span {
  color: var(--aerie-parchment);
  font-size: 1rem;
  line-height: 1.45;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: var(--aerie-gold);
  box-shadow: 0 0 25px rgba(200, 163, 90, 0.18);
}

.sealed-card {
  opacity: 0.65;
  border-color: rgba(111, 63, 181, 0.7);
  box-shadow: inset 0 0 30px rgba(111, 63, 181, 0.12);
}.archive-card {
  overflow: hidden;
  padding: 0;
}

.archive-image {
  min-height: 190px;
  background:
    radial-gradient(circle at center, rgba(200, 163, 90, 0.14), transparent 45%),
    linear-gradient(135deg, rgba(20, 17, 14, 0.95), rgba(0, 0, 0, 0.95));
  border-bottom: 1px solid rgba(200, 163, 90, 0.35);
  display: grid;
  place-items: center;
  position: relative;
}

.archive-image::before {
  content: "Awaiting Archive Image";
  color: rgba(200, 163, 90, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

.archive-image img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.archive-image img[src=""] {
  display: none;
}

.archive-card-content {
  padding: 1.7rem;
}

.sealed-image {
  background:
    radial-gradient(circle at center, rgba(111, 63, 181, 0.22), transparent 45%),
    linear-gradient(135deg, rgba(15, 10, 22, 0.95), rgba(0, 0, 0, 0.95));
}

.sealed-image::before {
  content: "";
}

.sealed-image span {
  color: rgba(200, 163, 90, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  border: 1px solid rgba(200, 163, 90, 0.45);
  padding: 0.8rem 1.2rem;
}.courtyard-map-panel {
  border: 1px solid rgba(200, 163, 90, 0.45);
  background:
    radial-gradient(circle at 80% 50%, rgba(111, 63, 181, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(18, 14, 12, 0.95), rgba(0, 0, 0, 0.95));
  min-height: 300px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.courtyard-map-copy h2 {
  margin: 0 0 1rem;
  color: var(--aerie-white);
  font-size: clamp(2rem, 4vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.courtyard-map-copy p {
  max-width: 720px;
  color: var(--aerie-parchment);
  font-size: 1.15rem;
  line-height: 1.6;
}

.great-ash-symbol {
  color: rgba(200, 163, 90, 0.45);
  font-size: clamp(8rem, 18vw, 16rem);
  text-align: center;
  text-shadow: 0 0 45px rgba(111, 63, 181, 0.35);
}

.location-card.featured {
  border-color: var(--aerie-gold);
  background:
    radial-gradient(circle at top, rgba(200, 163, 90, 0.16), transparent 40%),
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.95));
  box-shadow: inset 0 0 35px rgba(200, 163, 90, 0.08);
}

@media (max-width: 760px) {
  .courtyard-map-panel {
    grid-template-columns: 1fr;
  }

  .great-ash-symbol {
    font-size: 7rem;
  }
}.location-page {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 5rem 0;
}

.location-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.location-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.location-record {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border: 1px solid rgba(200, 163, 90, 0.45);
  background:
    radial-gradient(circle at top right, rgba(111, 63, 181, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(18, 14, 12, 0.95), rgba(0, 0, 0, 0.95));
  padding: 2rem;
}

.location-record-image {
  min-height: 420px;
  background:
    radial-gradient(circle at center, rgba(200, 163, 90, 0.12), transparent 45%),
    linear-gradient(135deg, rgba(20, 17, 14, 0.95), rgba(0, 0, 0, 0.95));
  border: 1px solid rgba(200, 163, 90, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.location-record-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-record-copy h2 {
  margin: 0 0 1.2rem;
  color: var(--aerie-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location-record-copy p {
  color: var(--aerie-parchment);
  font-size: 1.1rem;
  line-height: 1.65;
}

.restricted-note {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(111, 63, 181, 0.55);
  color: var(--aerie-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  background: rgba(111, 63, 181, 0.08);
}

@media (max-width: 850px) {
  .location-record {
    grid-template-columns: 1fr;
  }
}.location-card.locked {
  pointer-events: auto;
  cursor: pointer;
}

.location-card.locked:hover {
  transform: translateY(-4px);
  border-color: var(--aerie-gold);
  box-shadow: 0 0 25px rgba(200, 163, 90, 0.2);
}
/* Aerie Dominion top navigation */

.aerie-top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(200, 163, 90, 0.35);
  backdrop-filter: blur(10px);
}

.aerie-top-nav-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.aerie-top-brand {
  color: var(--aerie-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  font-weight: bold;
}

.aerie-top-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.aerie-top-links a {
  color: var(--aerie-parchment);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.aerie-top-links a:hover {
  color: var(--aerie-gold);
}

.aerie-location-nav {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0 0 0.65rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.aerie-location-nav a {
  color: rgba(231, 218, 194, 0.75);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.aerie-location-nav a:hover {
  color: var(--aerie-gold);
}

.archives-page,
.location-page,
.courtyard-page {
  padding-top: 3.5rem;
}

@media (max-width: 700px) {
  .aerie-top-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .aerie-top-links {
    gap: 0.75rem;
  }

  .aerie-location-nav {
    justify-content: flex-start;
    padding-bottom: 1rem;
  }
}.sealed-archive-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(111, 63, 181, 0.75);
  box-shadow:
    inset 0 0 35px rgba(111, 63, 181, 0.16),
    0 0 18px rgba(111, 63, 181, 0.12);
}

.sealed-archive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(111, 63, 181, 0.08) 0,
      rgba(111, 63, 181, 0.08) 8px,
      transparent 8px,
      transparent 18px
    );
  pointer-events: none;
  opacity: 0.35;
}


.sealed-archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 163, 90, 0.85);
  box-shadow:
    inset 0 0 45px rgba(111, 63, 181, 0.2),
    0 0 30px rgba(200, 163, 90, 0.18);
}

.sealed-archive-card .sealed-image {
  min-height: 220px;
}

.sealed-archive-card .sealed-image span {
  color: var(--aerie-gold);
  border: 1px solid rgba(200, 163, 90, 0.55);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.9rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  box-shadow: 0 0 20px rgba(111, 63, 181, 0.25);
}

.sealed-warning {
  margin-top: 1.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(111, 63, 181, 0.6);
  color: var(--aerie-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  background: rgba(111, 63, 181, 0.1);
  text-align: center;

.aerie-top-links a.is-active::after,
.aerie-location-nav a.is-active::after {
  display: none;
}
/* Opening Iron Gates animation */

.gate-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(200, 163, 90, 0.3), transparent 24%),
    radial-gradient(circle at center, rgba(111, 63, 181, 0.45), transparent 45%);
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 1.2s ease, transform 1.6s ease;
  z-index: 0;
}

.iron-gate {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(20, 18, 22, 0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(200, 163, 90, 0.12) 0,
      rgba(200, 163, 90, 0.12) 3px,
      transparent 3px,
      transparent 34px
    );
  border-color: rgba(200, 163, 90, 0.35);
  transition: transform 1.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.iron-gate-left {
  left: 0;
  border-right: 1px solid rgba(200, 163, 90, 0.45);
}

.iron-gate-right {
  right: 0;
  border-left: 1px solid rgba(200, 163, 90, 0.45);
}

.gate-bars {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(200, 163, 90, 0.22) 0,
      rgba(200, 163, 90, 0.22) 4px,
      transparent 4px,
      transparent 42px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 80px,
      rgba(200, 163, 90, 0.14) 80px,
      rgba(200, 163, 90, 0.14) 84px
    );
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.95);
}

.iron-gate::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 38%;
  border: 1px solid rgba(200, 163, 90, 0.28);
  border-radius: 50% 50% 0 0;
  opacity: 0.55;
}

.iron-gate-left::before {
  right: 10%;
}

.iron-gate-right::before {
  left: 10%;
}

.iron-gate::after {
  content: "◆";
  position: absolute;
  top: 48%;
  color: rgba(200, 163, 90, 0.45);
  font-size: 2.4rem;
  text-shadow: 0 0 18px rgba(111, 63, 181, 0.45);
}

.iron-gate-left::after {
  right: 1.2rem;
}

.iron-gate-right::after {
  left: 1.2rem;
}

.aerie-gates-content {
  z-index: 3;
}

.aerie-gates.opening .iron-gate-left {
  transform: translateX(-105%);
}

.aerie-gates.opening .iron-gate-right {
  transform: translateX(105%);
}

.aerie-gates.opening .gate-light {
  opacity: 1;
  transform: scale(1.2);
}

.aerie-gates.opening .aerie-gates-content {
  animation: gatesContentFade 1.2s ease forwards;
}

@keyframes gatesContentFade {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }  }
}
.trial-page {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  background:
    radial-gradient(circle at top, rgba(200, 163, 90, 0.12), transparent 34rem),
    linear-gradient(180deg, #080808 0%, #111 100%);
}

.trial-shell {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.trial-shell h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  margin: 0.2rem 0 1rem;
}

.trial-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: rgba(245, 239, 226, 0.78);
  font-size: 1.08rem;
  line-height: 1.8;
}

.trial-panel {
  margin: 2rem auto 0;
  max-width: 780px;
  padding: 2rem;
  border: 1px solid rgba(200, 163, 90, 0.38);
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.45);
}

.trial-panel h2 {
  margin-top: 0;
  color: var(--aerie-gold);
}

.trial-panel p {
  color: rgba(245, 239, 226, 0.78);
  line-height: 1.7;
}

.hidden {
  display: none;
}

.trial-progress {
  color: var(--aerie-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.answer-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.answer-button {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(200, 163, 90, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--aerie-cream);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: 0.2s ease;
}

.answer-button:hover {
  border-color: var(--aerie-gold);
  background: rgba(200, 163, 90, 0.12);
  transform: translateY(-2px);
}

.trial-result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.trial-result-stats p {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(200, 163, 90, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.trial-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.trial-callout {
  max-width: 820px;
  margin: 2rem auto 3rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(200, 163, 90, 0.35);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.35);
}

.trial-callout h2 {
  margin-top: 0.3rem;
  color: var(--aerie-gold);
}

.trial-callout p {
  color: rgba(245, 239, 226, 0.78);
  line-height: 1.7;
}
.academy-result-card {
  margin: 1.5rem auto 0;
  padding: 1.6rem;
  border: 1px solid rgba(200, 163, 90, 0.42);
  background:
    linear-gradient(135deg, rgba(200, 163, 90, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.52);
  text-align: left;
  box-shadow: inset 0 0 24px rgba(200, 163, 90, 0.06);
}

.result-seal {
  margin: 0 0 1.2rem;
  color: var(--aerie-gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-align: center;
}

.result-card-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(200, 163, 90, 0.18);
}

.result-card-row span {
  color: rgba(245, 239, 226, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.result-card-row strong {
  color: rgba(245, 239, 226, 0.9);
  font-weight: 500;
}

.warning-row strong {
  color: var(--aerie-gold);
}

.archive-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(200, 163, 90, 0.24);
  background: rgba(255, 255, 255, 0.035);
}

.archive-note p:last-child {
  margin-bottom: 0;
}

.result-description {
  margin-top: 1.2rem;
}

.share-result-box {
  margin-top: 1.4rem;
  padding: 1rem;
  border-left: 3px solid var(--aerie-gold);
  background: rgba(200, 163, 90, 0.08);
}

.share-result-box p {
  margin: 0;
  color: rgba(245, 239, 226, 0.88);
  font-style: italic;
}

.raven-result {
  border-color: rgba(200, 163, 90, 0.72);
  box-shadow:
    0 0 28px rgba(200, 163, 90, 0.16),
    inset 0 0 28px rgba(200, 163, 90, 0.1);
}

@media (max-width: 640px) {
  .result-card-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}.academy-result-card {
  position: relative;
  margin: 1.5rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(200, 163, 90, 0.55);
  background:
    radial-gradient(circle at top, rgba(200, 163, 90, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(200, 163, 90, 0.08), transparent 45%),
    rgba(0, 0, 0, 0.62);
  text-align: left;
  box-shadow:
    0 0 36px rgba(0, 0, 0, 0.7),
    inset 0 0 28px rgba(200, 163, 90, 0.08);
  overflow: hidden;
}

.academy-result-card::before,
.academy-result-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(200, 163, 90, 0.18);
  transform: rotate(45deg);
  pointer-events: none;
}

.academy-result-card::before {
  top: -75px;
  left: -75px;
}

.academy-result-card::after {
  bottom: -75px;
  right: -75px;
}

.result-card-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(200, 163, 90, 0.24);
  margin-bottom: 1.3rem;
}

.result-seal {
  margin: 0 0 1rem;
  color: var(--aerie-gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.result-house-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 163, 90, 0.7);
  border-radius: 50%;
  color: var(--aerie-gold);
  font-size: 2.4rem;
  font-weight: 700;
  box-shadow:
    0 0 24px rgba(200, 163, 90, 0.22),
    inset 0 0 18px rgba(200, 163, 90, 0.1);
}

.result-card-header h3 {
  margin: 0;
  color: var(--aerie-gold);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.result-status {
  margin: 0.7rem auto 0;
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(200, 163, 90, 0.38);
  color: rgba(245, 239, 226, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  background: rgba(200, 163, 90, 0.08);
}

.result-card-grid {
  display: grid;
  gap: 0.8rem;
}

.result-card-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(200, 163, 90, 0.16);
}

.result-card-row span {
  color: rgba(245, 239, 226, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.result-card-row strong {
  color: rgba(245, 239, 226, 0.9);
  font-weight: 500;
}

.warning-row strong {
  color: var(--aerie-gold);
}

.archive-note {
  margin-top: 1.4rem;
  padding: 1.1rem;
  border: 1px solid rgba(200, 163, 90, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.archive-note p:last-child {
  margin-bottom: 0;
}

.result-description {
  margin-top: 1.3rem;
  line-height: 1.8;
  text-align: center;
}

.share-result-box {
  margin-top: 1.4rem;
  padding: 1rem;
  border-left: 3px solid var(--aerie-gold);
  background: rgba(200, 163, 90, 0.08);
}

.share-result-box p {
  margin: 0;
  color: rgba(245, 239, 226, 0.88);
  font-style: italic;
}

.raven-result {
  border-color: rgba(200, 163, 90, 0.85);
  background:
    radial-gradient(circle at top, rgba(200, 163, 90, 0.2), transparent 16rem),
    radial-gradient(circle at bottom, rgba(90, 0, 0, 0.22), transparent 18rem),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    0 0 42px rgba(200, 163, 90, 0.18),
    inset 0 0 36px rgba(200, 163, 90, 0.12);
}

.raven-result .result-house-mark {
  border-radius: 4px;
  transform: rotate(45deg);
}

.raven-result .result-house-mark::first-letter {
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  .academy-result-card {
    padding: 1.3rem;
  }

  .result-card-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .result-house-mark {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}.result-card-deluxe {
  background:
    radial-gradient(circle at top center, var(--house-tint), transparent 55%),
    rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(200, 163, 90, 0.35);
  box-shadow:
    0 0 0 1px rgba(200, 163, 90, 0.08) inset,
    0 0 38px var(--house-glow);
  padding: 2.2rem 2rem;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.result-card-deluxe::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 163, 90, 0.12);
  pointer-events: none;
}

.result-card-header h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--house-accent);
  margin: 0.5rem 0 0.5rem;
  line-height: 1.08;
}

.result-seal {
  color: var(--aerie-gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.result-status {
  color: #f3eadf;
  opacity: 0.95;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.result-sigil-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 163, 90, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--house-tint), rgba(0, 0, 0, 0.35));
  box-shadow:
    0 0 22px var(--house-glow),
    inset 0 0 18px rgba(200, 163, 90, 0.08);
  overflow: hidden;
}

.result-sigil {
  width: 86px;
  height: 86px;
  max-width: 86px;
  max-height: 86px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px var(--house-glow));
}

.result-house-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border: 1px solid rgba(200, 163, 90, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--house-accent);
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 0 18px var(--house-glow);
}

.result-card-deluxe .result-sigil {
  transform: scale(0.65);
  transform-origin: center;
}
.result-divider {
  width: 140px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--house-accent),
    transparent
  );
  margin: 1.6rem auto;
}

.result-copy {
  max-width: 720px;
  margin: 0 auto;
}

.result-copy p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #f1e7da;
}

.result-stats-heading {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aerie-gold);
  margin-bottom: 1rem;
}

.result-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.result-stat {
  border: 1px solid rgba(200, 163, 90, 0.22);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 0.8rem;
  text-align: center;
}

.result-stat.winner {
  border-color: var(--house-accent);
  box-shadow: 0 0 18px var(--house-glow);
  background: var(--house-tint);
}

.result-stat-name {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d8c9b5;
  margin-bottom: 0.45rem;
}

.result-stat-value {
  display: block;
  font-size: 1.35rem;
  color: #fff8ef;
}

.share-result-box {
  margin-top: 1.8rem;
  border: 1px solid rgba(200, 163, 90, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.1rem;
  text-align: center;
}

.share-label {
  color: var(--aerie-gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.share-result-box p:last-child {
  margin: 0;
  color: #f0e6d8;
  font-style: italic;
}

@media (max-width: 700px) {
  .result-card-deluxe {
    padding: 1.6rem 1.1rem;
  }

  .result-card-header h3 {
    font-size: 2rem;
  }

  .result-copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .result-sigil-wrap {
    width: 88px;
    height: 88px;
  }

  .result-sigil {
    width: 58px;
    height: 58px;
  }
}.result-card-deluxe {
  overflow: hidden;
}

.result-card-header {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-sigil-wrap {
  width: 118px !important;
  height: 118px !important;
  max-width: 118px !important;
  max-height: 118px !important;
  margin: 0.75rem auto 1rem !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(200, 163, 90, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 22px var(--house-glow),
    inset 0 0 18px rgba(200, 163, 90, 0.1);
}

.result-sigil-wrap img,
.result-sigil {
  width: 70px !important;
  height: 70px !important;
  max-width: 70px !important;
  max-height: 70px !important;
  object-fit: contain !important;
  display: block !important;
  transform: none !important;
}/* Force House sigils to stay small inside assessment cards */
.result-card-deluxe .result-card-header .result-sigil-wrap {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  margin: 0.8rem auto 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  border: 1px solid rgba(200, 163, 90, 0.5) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  box-shadow:
    0 0 22px var(--house-glow),
    inset 0 0 18px rgba(200, 163, 90, 0.12) !important;
}

.result-card-deluxe .result-card-header .result-sigil-wrap .result-sigil {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  object-fit: contain !important;
  display: block !important;
  position: static !important;
  transform: none !important;
}
/* Final forced sigil display */
.result-card-deluxe .result-sigil-wrap {
  width: 150px !important;
  height: 150px !important;
  margin: 0.8rem auto 1rem !important;

  display: block !important;
  overflow: hidden !important;

  border-radius: 50% !important;
  border: 1px solid rgba(200, 163, 90, 0.5) !important;

  background-color: rgba(0, 0, 0, 0.55) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 260px auto !important;

  box-shadow:
    0 0 22px var(--house-glow),
    inset 0 0 18px rgba(200, 163, 90, 0.12) !important;
}

.result-card-deluxe .result-sigil {
  display: none !important;
}

/* Final sigil badge fix — shows full crest, not cropped circle */
.result-card-deluxe .result-sigil-wrap {
  width: 170px !important;
  height: 170px !important;
  max-width: 170px !important;
  max-height: 170px !important;
  min-width: 170px !important;
  min-height: 170px !important;
  margin: 0.8rem auto 1.2rem !important;

  display: block !important;
  overflow: visible !important;

  border-radius: 0 !important;
  border: none !important;

  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;

  box-shadow: none !important;
}
/* Final crest badge fix for Trial result cards */
.result-card-deluxe .result-sigil-wrap {
  width: 180px !important;
  height: auto !important;
  max-width: 180px !important;
  margin: 0.8rem auto 1.2rem !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: visible !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.result-card-deluxe .result-sigil-wrap .result-sigil,
.result-card-deluxe img.result-sigil {
  display: block !important;
  width: 180px !important;
  height: auto !important;
  max-width: 180px !important;
  max-height: 180px !important;
  object-fit: contain !important;
  position: static !important;
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
}
.copy-result-button {
  margin-top: 1rem;
}

.copy-confirmation {
  min-height: 1.2rem;
  margin-top: 0.8rem;
  color: var(--aerie-gold);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}