:root {
  --void: #05070d;
  --midnight: #0b1020;
  --slate: #121827;
  --slate-2: #172033;
  --mist: #e8eef2;
  --ash: #a9b6c2;
  --muted: #6f7d8b;
  --aurora: #31f0b1;
  --violet: #8d5cff;
  --teal: #1fa7a6;
  --blood: #c94b5b;
  --shadow: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mist);
  background:
    radial-gradient(circle at 14% 8%, rgba(49, 240, 177, 0.18), transparent 28%),
    radial-gradient(circle at 78% 0%, rgba(141, 92, 255, 0.20), transparent 32%),
    linear-gradient(180deg, var(--midnight), var(--void) 52%, #020309);
  background-size: 135% 135%, 145% 145%, auto;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  animation: aurora-drift 28s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
}

body::after {
  content: none;
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.78rem clamp(1rem, 3vw, 2.4rem);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(49, 240, 177, 0.16);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--mist);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.92rem;
}


.brand span { color: var(--aurora); font-size: 0.72rem; letter-spacing: 0.16em; }

nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--ash);
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

nav a:hover, nav a.active {
  color: var(--mist);
  border-color: rgba(49, 240, 177, 0.35);
  box-shadow: 0 0 22px rgba(49, 240, 177, 0.12);
}

main {
  position: relative;
  z-index: 1;
  animation: page-rise 700ms ease-out both;
}

.hero, .page-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.6rem) clamp(1rem, 3vw, 2.2rem) 1.8rem;
}

.eyebrow {
  color: var(--aurora);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 4.9vw, 4.45rem);
  letter-spacing: -0.045em;
  text-shadow: 0 0 34px rgba(49, 240, 177, 0.18);
}

h2 { font-size: clamp(1.65rem, 3.6vw, 2.65rem); }
h3 { font-size: 1.15rem; }

.lead {
  max-width: 760px;
  color: var(--ash);
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.15rem; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 240, 177, 0.42);
  background: linear-gradient(135deg, rgba(49, 240, 177, 0.12), rgba(141, 92, 255, 0.12));
  color: var(--mist);
  padding: 0.68rem 0.92rem;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 0 28px rgba(49, 240, 177, 0.10);
}

.button.secondary, button.secondary {
  border-color: rgba(141, 92, 255, 0.35);
  background: rgba(18, 24, 39, 0.72);
}

.button, button { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.button:hover, button:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(49, 240, 177, 0.18); }

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.35rem clamp(1rem, 3vw, 2.2rem);
}

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

.card, .rune-card, .reading-card {
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.86), rgba(8, 12, 22, 0.90));
  border: 1px solid rgba(169, 182, 194, 0.14);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 18px 50px var(--shadow);
  animation: page-rise 700ms ease-out both;
}

.card:hover, .rune-card:hover {
  border-color: rgba(49, 240, 177, 0.32);
}

.rune-symbol {
  font-size: 3rem;
  line-height: 1;
  color: var(--aurora);
  text-shadow: 0 0 24px rgba(49, 240, 177, 0.35);
  margin-bottom: 0.7rem;
  animation: rune-wake 900ms ease-out both;
}

.rune-name { font-weight: 800; font-size: 1.1rem; }
.rune-sound, .small { color: var(--muted); font-size: 0.9rem; }
.keywords { color: var(--ash); font-size: 0.95rem; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 0.7rem;
}

.rune-tile {
  min-height: 74px;
  border: 1px solid rgba(169, 182, 194, 0.16);
  background: rgba(18, 24, 39, 0.72);
  border-radius: 16px;
  color: var(--mist);
  cursor: pointer;
  text-align: center;
  padding: 0.7rem;
}

.rune-tile .sym { display: block; color: var(--aurora); font-size: 1.65rem; line-height: 1; }
.rune-tile.selected { border-color: var(--aurora); box-shadow: 0 0 28px rgba(49, 240, 177, 0.18); }

input, textarea {
  width: 100%;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid rgba(169, 182, 194, 0.18);
  color: var(--mist);
  border-radius: 14px;
  padding: 0.82rem;
  font: inherit;
}

textarea { min-height: 95px; resize: vertical; }

.output {
  min-height: 72px;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(49, 240, 177, 0.2);
  background: rgba(5, 7, 13, 0.56);
  word-break: break-word;
}

.rune-text { font-size: clamp(1.65rem, 4.8vw, 3.3rem); letter-spacing: 0.10em; color: var(--aurora); }

.notice {
  border-left: 3px solid var(--violet);
  color: var(--ash);
  padding: 0.9rem 1rem;
  background: rgba(141, 92, 255, 0.08);
  border-radius: 14px;
}

footer {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 1.2rem auto 0;
  padding: 1rem clamp(1rem, 3vw, 2.2rem) 1.35rem;
  color: rgba(169, 182, 194, 0.62);
  border-top: 0;
  background: transparent;
}

@media (max-width: 1100px) {
  h1 { font-size: clamp(2.15rem, 5.6vw, 3.65rem); }
  .hero, .page-hero { padding-top: clamp(1.8rem, 3.5vw, 2.8rem); }
}



/* v0.1.7 mobile navigation + tighter phone layout */
.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 14px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0.72rem 1rem;
    position: sticky;
  }

  .brand {
    font-size: 0.84rem;
    letter-spacing: 0.07em;
    max-width: calc(100% - 58px);
  }

  .brand span {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    padding: 0.72rem 1rem 0.95rem;
    background: rgba(5, 7, 13, 0.96);
    border-top: 1px solid rgba(49, 240, 177, 0.10);
    border-bottom: 1px solid rgba(49, 240, 177, 0.18);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
  }

  nav.open { display: flex; }

  nav a {
    padding: 0.58rem 0.7rem;
    border-radius: 12px;
    background: rgba(18, 24, 39, 0.34);
    font-size: 0.95rem;
    line-height: 1.2;
  }

  nav a.active {
    color: var(--aurora);
    border-color: rgba(49, 240, 177, 0.22);
    background: rgba(49, 240, 177, 0.065);
    box-shadow: none;
  }

  .hero, .page-hero {
    padding: 1.25rem 1rem 0.95rem;
  }

  .home-page .hero {
    min-height: auto;
    padding-top: 1.35rem;
    padding-bottom: 1.15rem;
    justify-content: flex-start;
  }

  h1, .home-page h1 {
    font-size: clamp(1.95rem, 8.7vw, 2.65rem);
    line-height: 1.06;
    letter-spacing: -0.052em;
  }

  .lead, .home-page .lead {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.20em;
  }

  .actions {
    gap: 0.55rem;
    margin-top: 0.85rem;
  }

  .actions .button {
    flex: 1 1 100%;
    padding: 0.74rem 0.85rem;
  }

  .section {
    padding: 0.95rem 1rem;
  }

  h2 { font-size: clamp(1.45rem, 6.6vw, 1.95rem); }

  .grid {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .card, .rune-card, .reading-card {
    padding: 0.88rem;
    border-radius: 16px;
  }

  .select-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.52rem;
  }

  .rune-tile {
    min-height: 66px;
    padding: 0.52rem 0.32rem;
    font-size: 0.8rem;
  }

  .rune-tile .sym { font-size: 1.42rem; }

  .rune-symbol { font-size: 2.45rem; }

  .rune-text {
    font-size: clamp(1.45rem, 8.4vw, 2.15rem);
    letter-spacing: 0.075em;
    overflow-wrap: anywhere;
  }

  body.home-page {
    background-position: 62% top;
  }

  body.home-page::after {
    display: none;
  }
}

@media (min-width: 761px) {
  nav { display: flex !important; }
  .menu-toggle { display: none !important; }
}

@keyframes aurora-drift {
  from { background-position: 0% 0%, 100% 0%, 0 0; }
  to { background-position: 12% 7%, 85% 10%, 0 0; }
}

@keyframes rune-haze {
  from { opacity: 0.72; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-4px); }
}

@keyframes page-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rune-wake {
  from { opacity: 0; transform: scale(0.94); filter: blur(5px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* v0.1.4 homepage footer fade polish */
body.home-page {
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.84) 0%, rgba(5, 7, 13, 0.58) 45%, rgba(5, 7, 13, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.05) 0%, rgba(5, 7, 13, 0.58) 60%, rgba(5, 7, 13, 0.78) 100%),
    url('../images/homepage-yggdrasil.webp') center top / cover fixed no-repeat;
  animation: none;
}

body.home-page::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(49, 240, 177, 0.14), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(141, 92, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.24));
  opacity: 1;
}

body.home-page::after {
  display: none;
}

.home-page .hero {
  min-height: clamp(330px, 46vh, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(2.2rem, 5vw, 4.8rem);
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
}

.home-page h1 {
  max-width: 840px;
  font-size: clamp(2.25rem, 4.4vw, 4.05rem);
  text-shadow: 0 0 34px rgba(5, 7, 13, 0.8), 0 0 30px rgba(49, 240, 177, 0.16);
}

.home-page .lead {
  max-width: 720px;
  text-shadow: 0 0 22px rgba(5, 7, 13, 0.95);
}

.home-page .card,
.home-page .notice {
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  body.home-page {
    background-position: 58% top;
    background-attachment: scroll;
  }
  .home-page .hero {
    min-height: auto;
  }
}


/* v0.1.9 tiny mobile/header/footer polish */
footer {
  margin-top: 0.7rem;
  padding-top: 0.45rem;
  padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.58rem 1rem;
  }

  .brand {
    font-size: 0.78rem;
    letter-spacing: 0.065em;
  }

  .brand span {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .menu-toggle {
    width: 40px;
    height: 38px;
    border-radius: 13px;
    font-size: 1.2rem;
  }

  .home-page .hero {
    padding-top: 1.12rem;
    padding-bottom: 0.95rem;
  }

  h1, .home-page h1 {
    font-size: clamp(1.78rem, 8.1vw, 2.38rem);
  }

  .lead, .home-page .lead {
    font-size: 0.9rem;
    line-height: 1.44;
  }

  .card, .rune-card, .reading-card {
    padding: 0.82rem;
  }

  .card p, .reading-card p, .notice {
    font-size: 0.93rem;
    line-height: 1.48;
  }

  footer {
    margin-top: 0.35rem;
    padding-top: 0.2rem;
    padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.7rem));
    font-size: 0.82rem;
  }
}


/* v0.2.0 no footer rune strip */
body::after, body.home-page::after { content: none !important; display: none !important; }


/* v0.2.1 trust pages + official domain polish */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: rgba(169, 182, 194, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(49, 240, 177, 0.18);
}

.footer-links a:hover {
  color: var(--mist);
  border-bottom-color: rgba(49, 240, 177, 0.48);
}

.trust-page .section {
  max-width: 880px;
}

.copy-block {
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.72), rgba(8, 12, 22, 0.84));
  border: 1px solid rgba(169, 182, 194, 0.13);
  border-radius: 18px;
  padding: clamp(1rem, 2.6vw, 1.35rem);
  box-shadow: 0 18px 50px var(--shadow);
  margin: 1rem 0;
}

.copy-block h2,
.copy-block h3 {
  margin-top: 0;
}

.copy-block ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  color: var(--ash);
}

.copy-block li + li {
  margin-top: 0.45rem;
}

.copy-block a {
  color: var(--aurora);
}

@media (max-width: 760px) {
  footer {
    padding-bottom: 2.1rem;
  }

  .footer-links {
    gap: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .copy-block {
    border-radius: 16px;
  }
}


/* v0.2.5 guide-page polish */
.small-lead { max-width: 760px; font-size: 1rem; color: var(--ash); }
.text-section p { max-width: 860px; }
.copy-block + .copy-block { margin-top: 1rem; }
@media (max-width: 760px) {
  .small-lead { font-size: 0.92rem; }
}


/* v0.2.6 content depth helpers */
.topic-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.topic-list li {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(122, 95, 255, 0.22);
  border-radius: 18px;
  background: rgba(9, 14, 28, 0.62);
  color: var(--muted);
}
.topic-list strong {
  color: var(--text);
}
.faq-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.faq-item h3 {
  margin-bottom: 0.35rem;
}
.path-note {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.8rem;
}


/* v0.2.8 games hub and isolated game shell */
.game-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 240, 177, 0.26);
  color: var(--aurora);
  background: rgba(49, 240, 177, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-list-card {
  position: relative;
  overflow: hidden;
}
.game-list-card::after {
  content: "ᚱ";
  position: absolute;
  right: 1rem;
  bottom: -1.4rem;
  font-size: 7rem;
  line-height: 1;
  color: rgba(49, 240, 177, 0.035);
  pointer-events: none;
}
.game-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}
.game-panel {
  border: 1px solid rgba(49, 240, 177, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(18, 24, 39, 0.92), rgba(7, 10, 20, 0.86));
  box-shadow: 0 24px 70px rgba(0,0,0,0.3);
  padding: clamp(1rem, 3vw, 2rem);
}
.game-question {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.game-rune-symbol {
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 1;
  text-align: center;
  color: var(--aurora);
  text-shadow: 0 0 26px rgba(49, 240, 177, 0.35);
}
.game-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.game-option {
  width: 100%;
  border: 1px solid rgba(141, 92, 255, 0.34);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(9, 14, 28, 0.74);
  color: var(--mist);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.game-option:hover, .game-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(49, 240, 177, 0.55);
  box-shadow: 0 0 24px rgba(49, 240, 177, 0.14);
  outline: none;
}
.game-option.correct {
  border-color: rgba(49, 240, 177, 0.8);
  background: rgba(49, 240, 177, 0.16);
}
.game-option.wrong {
  border-color: rgba(201, 75, 91, 0.75);
  background: rgba(201, 75, 91, 0.12);
}
.game-feedback {
  min-height: 3rem;
  margin-top: 1rem;
  color: var(--ash);
}
.game-score-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.game-score {
  color: var(--aurora);
  font-weight: 800;
}
@media (max-width: 640px) {
  .game-options { grid-template-columns: 1fr; }
  .game-panel { border-radius: 22px; }
}

/* v0.2.9 Rune Match layout tightening */
body.rune-match-page .page-hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(1.2rem, 3vw, 2.2rem);
}
body.rune-match-page .page-hero h1 {
  margin-bottom: 0.55rem;
}
body.rune-match-page .page-hero .lead {
  max-width: 760px;
}
body.rune-match-page .game-shell {
  max-width: 900px;
  padding-top: 0.4rem;
  padding-bottom: clamp(1rem, 2vw, 1.6rem);
}
body.rune-match-page .game-panel {
  padding: clamp(1rem, 2.2vw, 1.55rem);
}
body.rune-match-page .game-question {
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}
body.rune-match-page .game-rune-symbol {
  font-size: clamp(3.2rem, 11vw, 6.2rem);
  margin: 0.1rem 0 0.2rem;
}
body.rune-match-page .game-options {
  gap: 0.65rem;
}
body.rune-match-page .game-option {
  min-height: 3.25rem;
  padding: 0.68rem 0.85rem;
}
body.rune-match-page .game-feedback {
  min-height: 1.8rem;
  margin-top: 0.8rem;
}
body.rune-match-page .game-score-row {
  margin-top: 0.55rem;
}
@media (max-width: 760px) {
  body.rune-match-page .page-hero {
    padding-top: 1.55rem;
    padding-bottom: 0.9rem;
  }
  body.rune-match-page .page-hero h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }
  body.rune-match-page .page-hero .lead {
    font-size: 1rem;
    line-height: 1.55;
  }
  body.rune-match-page .game-shell {
    padding: 0.55rem 1rem 1rem;
  }
  body.rune-match-page .game-panel {
    padding: 1rem;
  }
  body.rune-match-page .game-rune-symbol {
    font-size: clamp(4.2rem, 23vw, 6.2rem);
  }
  body.rune-match-page .game-option {
    min-height: 3.1rem;
    padding: 0.62rem 0.8rem;
    border-radius: 16px;
  }
  body.rune-match-page .game-feedback {
    font-size: 0.95rem;
  }
}
@media (max-width: 430px) {
  body.rune-match-page .page-hero {
    padding-top: 1.25rem;
  }
  body.rune-match-page .game-rune-symbol {
    font-size: 4rem;
  }
  body.rune-match-page .game-panel {
    border-radius: 20px;
  }
}

/* v0.3.0 Rune Match 100% desktop compression
   Target: make normal desktop feel closer to the clean 80% zoom test without cramping mobile. */
body.rune-match-page .page-hero {
  padding-top: clamp(1.45rem, 3.2vw, 2.8rem);
  padding-bottom: clamp(0.75rem, 1.8vw, 1.35rem);
}
body.rune-match-page .page-hero h1 {
  font-size: clamp(3.1rem, 5.4vw, 5.6rem);
  line-height: 0.96;
  margin-bottom: 0.45rem;
}
body.rune-match-page .page-hero .lead {
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.45;
  max-width: 800px;
}
body.rune-match-page .game-shell {
  max-width: 860px;
  padding-top: 0.15rem;
  padding-bottom: clamp(0.6rem, 1.4vw, 1.1rem);
}
body.rune-match-page .game-panel {
  padding: clamp(0.95rem, 1.7vw, 1.25rem);
  border-radius: 24px;
}
body.rune-match-page .game-question {
  gap: 0.28rem;
  margin-bottom: 0.65rem;
}
body.rune-match-page .game-question .eyebrow {
  margin-bottom: 0.15rem;
}
body.rune-match-page .game-rune-symbol {
  font-size: clamp(3rem, 8.5vw, 5.1rem);
  margin: 0;
  line-height: 0.95;
}
body.rune-match-page .small-lead {
  font-size: 0.96rem;
  line-height: 1.35;
}
body.rune-match-page .game-options {
  gap: 0.55rem;
}
body.rune-match-page .game-option {
  min-height: 2.7rem;
  padding: 0.52rem 0.75rem;
  border-radius: 15px;
}
body.rune-match-page .game-feedback {
  min-height: 1.35rem;
  margin-top: 0.55rem;
  font-size: 0.95rem;
}
body.rune-match-page .game-score-row {
  margin-top: 0.35rem;
}
body.rune-match-page .game-score {
  margin: 0;
}
body.rune-match-page footer {
  padding-top: clamp(0.9rem, 2vw, 1.5rem);
}
@media (max-width: 760px) {
  body.rune-match-page .page-hero {
    padding-top: 1.05rem;
    padding-bottom: 0.55rem;
  }
  body.rune-match-page .page-hero h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.6rem);
  }
  body.rune-match-page .page-hero .lead {
    font-size: 0.98rem;
    line-height: 1.45;
  }
  body.rune-match-page .game-shell {
    padding: 0.4rem 1rem 0.85rem;
  }
  body.rune-match-page .game-panel {
    padding: 0.9rem;
    border-radius: 20px;
  }
  body.rune-match-page .game-question {
    gap: 0.25rem;
    margin-bottom: 0.55rem;
  }
  body.rune-match-page .game-rune-symbol {
    font-size: clamp(3.5rem, 19vw, 5.1rem);
  }
  body.rune-match-page .game-option {
    min-height: 2.8rem;
    padding: 0.48rem 0.75rem;
  }
  body.rune-match-page .game-feedback {
    min-height: 1.15rem;
    margin-top: 0.45rem;
  }
}
@media (max-width: 430px) {
  body.rune-match-page .page-hero {
    padding-top: 0.9rem;
  }
  body.rune-match-page .game-rune-symbol {
    font-size: 3.55rem;
  }
}


/* v0.3.1 Norse Gods hub */
.gods-hero .lead {
  max-width: 820px;
}

.gods-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.god-card {
  position: relative;
  overflow: hidden;
}

.god-card h3 {
  margin-top: 0.55rem;
}

.god-card .game-status {
  color: var(--aurora);
  border-color: rgba(49, 240, 177, 0.28);
  background: rgba(49, 240, 177, 0.06);
}

@media (max-width: 640px) {
  .gods-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.3.2 Gods hub clarity + Rune Match mobile squeeze */
.gods-context-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.compact-card p {
  margin-bottom: 0;
}

.gods-note-section {
  max-width: 940px;
}

.faq-section details {
  border: 1px solid rgba(214, 179, 99, 0.18);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin: 0.75rem 0;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.faq-section summary {
  cursor: pointer;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
}

.faq-section details p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .gods-hero {
    padding-top: 1.3rem;
    padding-bottom: 1rem;
  }

  .gods-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .gods-context-section,
  .gods-note-section,
  .faq-section {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .god-card h3 {
    margin-bottom: 0.35rem;
  }

  .god-card p,
  .compact-card p,
  .faq-section details p {
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  body.rune-match-page .page-hero {
    padding-top: 0.4rem;
    padding-bottom: 0.1rem;
  }

  body.rune-match-page .page-hero h1 {
    font-size: clamp(1.65rem, 8.5vw, 2.15rem);
    margin-bottom: 0.1rem;
  }

  body.rune-match-page .page-hero .lead {
    display: none;
  }

  body.rune-match-page .game-shell {
    padding-top: 0.05rem;
    padding-inline: 0.65rem;
  }

  body.rune-match-page .game-panel {
    padding: 0.68rem;
  }

  body.rune-match-page .game-rune-symbol {
    font-size: clamp(3rem, 16vw, 3.75rem);
    margin: 0.05rem 0;
  }

  body.rune-match-page .game-question {
    margin-bottom: 0.35rem;
  }

  body.rune-match-page .game-option {
    min-height: 2.38rem;
    padding: 0.36rem 0.55rem;
  }

  body.rune-match-page .game-feedback {
    font-size: 0.88rem;
    line-height: 1.32;
  }
}


/* v0.3.3 Norse Spirit Animal quiz */
.animal-hero { max-width: 980px; }
.animal-quiz-note { margin-top: 1.2rem; text-align: left; }
.quiz-section { max-width: 980px; }
.quiz-card { display: grid; gap: 1rem; }
.quiz-card fieldset { border: 1px solid rgba(214, 179, 99, 0.18); border-radius: 20px; background: rgba(255, 255, 255, 0.04); padding: 1.1rem; box-shadow: 0 18px 50px rgba(0,0,0,0.16); }
.quiz-card legend { color: var(--gold); font-family: Cinzel, Georgia, serif; font-size: 1.08rem; font-weight: 700; padding: 0 0.35rem; }
.quiz-card label { display: block; margin-top: 0.7rem; padding: 0.72rem 0.8rem; border: 1px solid rgba(255,255,255,0.095); border-radius: 14px; background: rgba(5, 7, 13, 0.34); cursor: pointer; }
.quiz-card label:hover, .quiz-card label:focus-within { border-color: rgba(49, 240, 177, 0.36); background: rgba(49, 240, 177, 0.055); }
.quiz-card input[type="radio"] { margin-right: 0.5rem; accent-color: var(--aurora); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.animal-result { margin-top: 1.4rem; }
.animal-result-card { display: grid; grid-template-columns: 160px 1fr; gap: 1.2rem; align-items: center; border: 1px solid rgba(214, 179, 99, 0.22); border-radius: 24px; background: radial-gradient(circle at top left, rgba(49, 240, 177, 0.12), transparent 32%), rgba(255,255,255,0.045); box-shadow: 0 24px 70px rgba(0,0,0,0.24); padding: 1.2rem; }
.animal-star-sigil { min-height: 150px; display: grid; place-items: center; border-radius: 22px; border: 1px solid rgba(49, 240, 177, 0.22); background: radial-gradient(circle at 24% 28%, rgba(255,255,255,0.9) 0 1px, transparent 2px), radial-gradient(circle at 72% 36%, rgba(255,255,255,0.75) 0 1px, transparent 2px), radial-gradient(circle at 62% 72%, rgba(255,255,255,0.65) 0 1px, transparent 2px), radial-gradient(circle at 36% 78%, rgba(255,255,255,0.75) 0 1px, transparent 2px), linear-gradient(145deg, rgba(12,22,42,0.96), rgba(5,7,13,0.96)); }
.animal-star-sigil span { color: var(--aurora); font-size: 4rem; text-shadow: 0 0 24px rgba(49,240,177,0.58); }
.animal-result-card h2 { margin-top: 0; margin-bottom: 0.3rem; }
@media (max-width: 760px) { .animal-hero { padding-top: 1.25rem; padding-bottom: 1rem; } .animal-hero h1 { font-size: clamp(2rem, 10vw, 3rem); } .animal-result-card { grid-template-columns: 1fr; } .animal-star-sigil { min-height: 120px; } }
@media (max-width: 480px) { .animal-hero .lead { font-size: 1rem; } .animal-quiz-note { font-size: 0.92rem; } .quiz-card fieldset { padding: 0.85rem; } .quiz-card label { padding: 0.62rem 0.65rem; } .quiz-actions .button { width: 100%; justify-content: center; } }

/* v0.3.4 Spirit Animal quiz polish: desktop choice cards + mobile result fit */
.animal-quiz-page .quiz-section { padding-top: clamp(1.25rem, 3vw, 2rem); }
.animal-quiz-page .quiz-card { gap: 1.05rem; }
.animal-quiz-page .quiz-card fieldset { scroll-margin-top: 120px; }
.animal-quiz-page .quiz-card label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.9rem 1rem;
  padding-right: 3rem;
  line-height: 1.35;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.animal-quiz-page .quiz-card input[type="radio"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.animal-quiz-page .quiz-card label::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  transform: translateY(-50%);
  border: 1px solid rgba(219, 231, 255, 0.34);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 3px rgba(5,7,13,0.92);
}
.animal-quiz-page .quiz-card label:hover,
.animal-quiz-page .quiz-card label:focus-within {
  transform: translateY(-1px);
}
.animal-quiz-page .quiz-card label:has(input[type="radio"]:checked) {
  border-color: rgba(49, 240, 177, 0.72);
  background: linear-gradient(135deg, rgba(49, 240, 177, 0.13), rgba(124, 92, 255, 0.08));
  box-shadow: 0 0 0 1px rgba(49, 240, 177, 0.16), 0 14px 38px rgba(49, 240, 177, 0.08);
}
.animal-quiz-page .quiz-card label:has(input[type="radio"]:checked)::after {
  border-color: rgba(49, 240, 177, 0.9);
  background: var(--aurora);
  box-shadow: 0 0 16px rgba(49, 240, 177, 0.58);
}
.animal-result {
  scroll-margin-top: 118px;
}
.animal-result .eyebrow {
  margin-bottom: 0.7rem;
}
.animal-result-card > div:last-child p {
  margin-top: 0.65rem;
  margin-bottom: 0;
}
.animal-result-card .small-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .animal-quiz-page main { padding-top: 0; }
  .animal-quiz-page .animal-hero {
    padding-top: 0.95rem;
    padding-bottom: 0.8rem;
  }
  .animal-quiz-page .quiz-section {
    padding-top: 0.85rem;
  }
  .animal-quiz-page .quiz-card { gap: 0.82rem; }
  .animal-quiz-page .quiz-card fieldset {
    padding: 0.82rem;
    border-radius: 18px;
  }
  .animal-quiz-page .quiz-card legend {
    font-size: 1rem;
    line-height: 1.28;
  }
  .animal-quiz-page .quiz-card label {
    min-height: 48px;
    margin-top: 0.56rem;
    padding: 0.72rem 0.82rem;
    padding-right: 2.55rem;
  }
  .animal-quiz-page .quiz-card label::after {
    right: 0.85rem;
    width: 0.62rem;
    height: 0.62rem;
  }
  .animal-result {
    scroll-margin-top: 104px;
    margin-top: 1rem;
  }
  .animal-result-card {
    gap: 0.85rem;
    padding: 0.95rem;
    border-radius: 22px;
  }
  .animal-star-sigil {
    min-height: 96px;
    border-radius: 18px;
  }
  .animal-star-sigil span {
    font-size: 3.15rem;
  }
  .animal-result-card h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    margin-bottom: 0.2rem;
  }
  .animal-result-card > div:last-child p {
    margin-top: 0.52rem;
    line-height: 1.55;
  }
  .animal-quiz-page .text-section {
    padding-top: 1.35rem;
  }
}

@media (max-width: 480px) {
  .animal-quiz-page .site-header { min-height: 92px; }
  .animal-quiz-page .animal-hero {
    padding-top: 0.8rem;
    padding-bottom: 0.65rem;
  }
  .animal-quiz-page .animal-hero h1 {
    font-size: clamp(1.78rem, 9vw, 2.45rem);
  }
  .animal-quiz-page .animal-hero .eyebrow {
    margin-bottom: 0.45rem;
  }
  .animal-quiz-page .animal-hero .lead {
    margin-top: 0.55rem;
    line-height: 1.5;
  }
  .animal-quiz-page .animal-quiz-note {
    margin-top: 0.82rem;
    padding: 0.82rem 0.92rem;
    line-height: 1.45;
  }
  .animal-quiz-page .quiz-card fieldset {
    padding: 0.72rem;
  }
  .animal-quiz-page .quiz-card label {
    font-size: 0.95rem;
    min-height: 46px;
    padding: 0.68rem 0.72rem;
    padding-right: 2.35rem;
  }
  .animal-result {
    scroll-margin-top: 98px;
  }
  .animal-result .eyebrow {
    margin-bottom: 0.52rem;
  }
  .animal-result-card {
    padding: 0.78rem;
    border-radius: 20px;
  }
  .animal-star-sigil {
    min-height: 82px;
  }
  .animal-star-sigil span {
    font-size: 2.75rem;
  }
  .animal-result-card .small-lead {
    font-size: 0.98rem;
  }
  .animal-result-card > div:last-child p {
    font-size: 1rem;
    line-height: 1.48;
  }
  .animal-quiz-page .text-section h2 {
    font-size: clamp(1.6rem, 8vw, 2.25rem);
  }
}

/* v0.3.5 Spirit Animal quiz heading cleanup: avoid native fieldset/legend border artefacts */
.animal-quiz-page .quiz-card fieldset {
  position: relative;
  border: 0 !important;
  overflow: hidden;
  margin: 0;
  min-inline-size: 0;
}
.animal-quiz-page .quiz-card fieldset::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(214, 179, 99, 0.18);
  border-radius: inherit;
  pointer-events: none;
}
.animal-quiz-page .quiz-card legend {
  display: block;
  width: 100%;
  padding: 0 0 0.85rem 0 !important;
  margin: 0;
  color: #f3f6ff;
  background: transparent;
}
.animal-quiz-page .quiz-card label:first-of-type {
  margin-top: 0;
}

@media (max-width: 760px) {
  .animal-quiz-page .quiz-card legend {
    padding-bottom: 0.68rem !important;
  }
}
