.home-guide-links { display:flex; justify-content:center; flex-wrap:wrap; gap:0 1rem; }
.home-guide-links a { color:#fff2d9; font:600 .9rem/1.4 Inter, sans-serif; padding:.35rem 0; text-decoration:underline; text-underline-offset:.2em; }
.home-guide-links a:focus-visible, .field-guide a:focus-visible { outline:3px solid #ffd68c; outline-offset:3px; }
.game-introduction, .field-guide { box-sizing:border-box; color:#fff4e2; background:linear-gradient(168deg,#080c22 12%,#251939 65%,#473343); font:1rem/1.65 Inter, sans-serif; }
.game-introduction { position:fixed; inset:0; overflow:auto; padding:clamp(1.5rem,9vw,7rem); text-align:center; }
.game-introduction h1 { font:500 clamp(2rem,4.3vw,3.25rem)/1.12 var(--sans,Inter,system-ui,sans-serif); letter-spacing:-.035em; text-wrap:balance; margin:.5em auto; max-width:20ch; }
.game-introduction p { max-width:54ch; margin:0 auto 1rem; }
.field-guide { min-height:100svh; padding:clamp(1rem,4vw,3rem) max(1.25rem,calc((100vw - 61rem)/2)) 4rem; }
.guide-top { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.guide-top img { width:clamp(7rem,20vw,10.5rem); height:auto; }
.guide-play { background:#fae2ae; color:#19282a; font-weight:650; border-radius:2rem; padding:.6em 1.1em; text-decoration:none; }
.guide-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(6rem,24%); align-items:center; gap:clamp(1rem,5vw,4rem); padding:clamp(2.5rem,7vw,5rem) 0; }
.guide-hero h1 { font:500 clamp(2.3rem,5.5vw,4.7rem)/1.06 Kurale,Georgia,serif; margin:0 0 .35em; }
.guide-hero p { margin:0; color:#f3e5d6; max-width:58ch; }
.guide-hero img { width:100%; height:auto; }
.guide-body { background:#fbf6ed; color:#203033; padding:clamp(1.4rem,5vw,3.5rem); border-radius:1.4rem; }
.guide-body section + section { margin-top:1.8rem; }
.guide-body h2 { font:500 clamp(1.4rem,3vw,2rem)/1.2 Kurale,Georgia,serif; margin:0 0 .45rem; }
.guide-body p { margin:0; max-width:68ch; }
.guide-body .guide-source { margin-top: .5rem; font-size: .9rem; }
.guide-source a { color: #235856; text-decoration: underline; text-underline-offset: .2em; }
.field-guide .guide-source a:focus-visible { outline-color: #235856; }
.guide-next { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem 2rem; padding:1.5rem 0; }
.guide-next a { color:#ffe3ab; text-underline-offset:.2em; }
@media(max-width:430px){ .guide-hero {grid-template-columns:minmax(0,1fr) 4.5rem;} }


.home-discovery {
  width:min(100%,60rem);
  margin-inline:auto;
  display:grid;
  gap:clamp(.9rem,2.2vw,1.65rem);
  color:#faf3e7;
  font:400 1rem/1.65 var(--sans,Inter,system-ui,sans-serif);
  text-align:left;
}
.home-discovery, .home-discovery * { box-sizing:border-box; }
.home-discovery > *, .discovery-story > * { min-width:0; }
.home-discovery h2 {
  margin:0 0 .6rem;
  font:500 clamp(1.35rem,2.6vw,1.9rem)/1.2 var(--sans,Inter,system-ui,sans-serif);
  letter-spacing:-.032em;
  text-wrap:balance;
}
.welcome-screen .login-card #loginTitle { font-weight:500; }
.home-discovery p { margin:0; max-width:66ch; }
.discovery-card {
  border:1px solid #c9bdd040;
  border-radius:clamp(1.05rem,2.4vw,1.65rem);
  padding:clamp(1.3rem,3.7vw,2.65rem);
}
.discovery-faq summary {
  display:flex; align-items:center; justify-content:space-between; gap:.8rem;
  padding:.8rem 1rem; min-height:46px; color:inherit;
  font-weight:400; line-height:1.4; cursor:pointer; list-style:none;
}
.discovery-faq summary::-webkit-details-marker { display:none; }
.discovery-faq summary::after {
  content:""; width:.5rem; height:.5rem; flex:none; border:solid currentColor;
  border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin-right:.2rem;
}
.discovery-faq details[open] summary::after { transform:rotate(225deg); }
.discovery-genre {
  padding-block:clamp(1rem,3vw,2.25rem) .5rem; color:#e1dbe7;
}
.home-discovery .discovery-genre h2 { color:#fff0d4; font-size:clamp(1.85rem,4vw,3rem); line-height:1.1; }
.discovery-story {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr));
  gap:inherit;
}
.discovery-chapter {
  display:grid; grid-template-columns:clamp(5rem,25vw,7.5rem) minmax(0,1fr); align-items:center;
  gap:clamp(.65rem,2vw,1.5rem); padding:clamp(.9rem,2.2vw,1.65rem);
  border-color:#d3c8ef45; color:#e8e2ef; background:linear-gradient(135deg,#303854,#30223f 80%);
}
.discovery-chapter h2 { color:#e5ccff; }
.discovery-chapter:nth-child(2) h2 { color:#b7f3dd; }
.discovery-chapter:nth-child(2) { color:#e0ede9; background:linear-gradient(135deg,#23504c,#14343c 80%); }
.discovery-visual {
  display:grid; place-items:center; min-width:0;
  background:radial-gradient(ellipse closest-side,#9c80de59,transparent);
}
.discovery-chapter:nth-child(2) .discovery-visual { background:radial-gradient(ellipse closest-side,#91e2bd55,transparent); }
.discovery-art {
  display:block; width:100%; height:auto;
  filter:brightness(1.35) drop-shadow(0 .4rem .75rem #14102455);
}
.discovery-chapter-copy { min-width:0; overflow-wrap:anywhere; }
.discovery-standings {
  grid-column:1/-1; background:linear-gradient(110deg,#443526,#292532 78%);
  border-color:#f6dca34d; color:#f2e7dc;
}
.discovery-standings h2 { color:#ffe1a1; }
.discovery-standings .discovery-visual { background:radial-gradient(ellipse closest-side,#e7b56538,transparent); }
.discovery-medal {
  display:block; width:min(100%,5.5rem); aspect-ratio:1;
  background:url('/assets/badges/keeper-medallions.webp') left top / 200% 200% no-repeat;
}
.discovery-standings a {
  display:inline-flex; gap:.35em; align-items:center; min-height:44px; color:#ffe1a1;
  text-decoration:underline; text-underline-offset:.22em;
}
.discovery-secondary {
  display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:clamp(1.5rem,6vw,4rem);
  padding-top:clamp(1.5rem,3vw,2.25rem); border-top:1px solid #aaa4b855;
  color:#d4dbe6;
}
.discovery-secondary h2 { font-size:clamp(1.2rem,2.3vw,1.55rem); color:#f2edf4; }
.discovery-faq details { border-bottom:1px solid #8d99aa55; }
.discovery-faq summary { padding:.85rem 0; color:#e5e9ef; }
.discovery-faq details > p { padding:0 1.5rem 1rem 0; }
.discovery-social,.discovery-languages { display:flex; flex-wrap:wrap; gap:.25rem 1.1rem; }
.discovery-social { margin-top:.5rem; }
.discovery-social a,.discovery-languages a { display:inline-flex; align-items:center; min-height:44px; color:#bce7df; text-decoration:underline; text-underline-offset:.23em; }
.discovery-languages { justify-content:center; }
.home-discovery > .discovery-languages { justify-content:flex-start; border-top:1px solid #aaa4b855; padding-top:.5rem; }
.discovery-languages a { color:#dee4ef; font-size:.94rem; }
.discovery-languages a[aria-current=page] { color:#fff0d4; text-decoration-thickness:2px; }
.home-discovery :is(a,button):focus-visible,.discovery-faq summary:focus-visible {
  outline:3px solid #ffda89; outline-offset:3px;
}
@media(hover:hover){
  .discovery-faq summary:hover, .discovery-standings a:hover { color:#fff0c9; }
  .discovery-social a:hover,.discovery-languages a:hover { color:white; }
}
.login-screen .login-discovery { box-sizing:border-box; width:100%; padding:1.5rem clamp(1rem,3vw,2rem) 1rem; background:linear-gradient(160deg,#1b182bf5,#141d2a 85%); }
.login-screen:has(.login-discovery) .login-site-footer { position:static; background:#141d2a; }
.game-introduction > .home-discovery { margin-block:2rem 1rem; }
@media(max-width:640px){
  .discovery-secondary { grid-template-columns:minmax(0,1fr); }
  .game-introduction { padding-inline:clamp(.75rem,4vw,1.5rem); }
}
@media(max-width:420px){
  .discovery-social { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
