.world-guide {
  --guide-gold: #efcb8f;
  --guide-border: #624f39;
  --guide-paper: #141920;
  --guide-text: #d9d2c8;
  line-height: 1.6;
}
.guide-wrap {
  width: min(1140px, 90%);
  margin-inline: auto;
}
.world-guide .bar { z-index: 5; }
.guide-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--guide-border);
  background: radial-gradient(ellipse at 21% 50%, #38302a 0, transparent 46%), linear-gradient(100deg, #1a212b, #10151d 64%, #0d1118);
}
.guide-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  min-height: 340px;
  padding-block: 2.8rem;
}
.guide-intro { position: relative; z-index: 1; }
.guide-kicker { margin: 0; color: var(--guide-gold); font-weight: 650; }
.guide-intro h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.22;
  margin: .18em 0 .14em;
}
.guide-intro > p:not(.guide-kicker), .section-lead {
  max-width: 56ch;
  color: var(--guide-text);
  line-height: 1.9;
}
.guide-jump { flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.guide-jump a {
  padding: .35rem .9rem;
  border: 1px solid var(--guide-border);
  background: #11161d;
  border-radius: .3rem;
  color: var(--guide-gold);
}
.guide-jump a:hover { border-color: var(--guide-gold); }
.guide-hand { position: relative; min-width: 0; height: 245px; }
.guide-hand img {
  position: absolute;
  width: auto;
  height: 91%;
  top: 50%;
  left: 50%;
  border-radius: 5%;
  box-shadow: 0 12px 24px #0009;
}
.guide-hand .hand-front { height: 100%; transform: translate(-50%, -50%) rotate(-3deg); }
.hand-side { transform: translate(5%, -45%) rotate(12deg); }
.hand-back { transform: translate(-107%, -47%) rotate(-15deg); }
.guide-section { padding-block: clamp(2.3rem, 5vw, 4.2rem); }
.guide-section + .guide-section { border-top: 1px solid var(--guide-border); }
.guide-section h2 {
  margin: 0 0 .28em;
  color: var(--guide-gold);
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  line-height: 1.3;
}
.section-lead { margin: 0 0 1.5rem; max-width: 74ch; }
.rank-group { margin-top: 1.65rem; }
.rank-group > h3 {
  display: flex; align-items: center; gap: .8rem;
  color: var(--guide-gold); font-size: 1.05rem; margin: 0 0 .65rem;
}
.rank-group > h3::after { content: ""; height: 1px; flex: 1; background: linear-gradient(to left, #725b3a8c, transparent); }
.bestiary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.creature {
  display: flex; align-items: center; gap: .9rem;
  min-width: 0; padding: .72rem;
  border: 1px solid #403b33; border-radius: .55rem;
  background: linear-gradient(125deg, #151920, #121820);
}
.creature img { width: clamp(64px, 6.2vw, 88px); height: auto; flex: none; border-radius: 5%; }
.creature h4, .wardrobe-card h3, .party-box h3, .more-systems h3, .taming-note h3 {
  margin: 0 0 .25em; font-size: 1.18rem; color: #fff0d8;
}
.creature p, .wardrobe-card p, .more-systems p, .party-box p, .taming-note p {
  margin: 0; color: var(--guide-text); line-height: 1.85;
}
.creature p { font-size: .93rem; }
.taming-note {
  margin-top: 1.6rem; border-inline-start: 3px solid #bd9154;
  padding: 1rem 1.25rem; background: #191a1d;
}
.taming-note p + p { margin-top: .5rem; }
.taming-note a, .world-guide footer a:hover { color: var(--guide-gold); text-decoration: underline; text-underline-offset: .2em; }
.wardrobe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wardrobe-card, .party-box {
  overflow: hidden; background: var(--guide-paper); border: 1px solid #484239; border-radius: .7rem;
}
.wardrobe-card figure {
  display: grid; place-items: center; margin: 0;
  height: clamp(190px, 19vw, 240px);
  background: radial-gradient(ellipse at 50% 85%, #6b48284f, transparent 72%), #1b1a1c;
  border-bottom: 1px solid #484239;
}
.wardrobe-card:nth-child(2) figure { background: radial-gradient(ellipse at 50% 80%, #5140668c, transparent 67%), #191923; }
.wardrobe-card img { width: 91%; height: 100%; min-height: 0; object-fit: contain; padding: .7rem; }
.wardrobe-card > div, .more-systems article { padding: 1.2rem 1.4rem; }
.wardrobe-card .item-price { margin-top: .75rem; color: var(--guide-gold); font-weight: 650; }
.item-price span { margin-inline: .25em; }
.outfit-gallery { margin: 1rem 0 0; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; overflow: hidden; border: 1px solid #484239; border-radius: .7rem; background: var(--guide-paper); }
.outfit-gallery img { display: block; width: 100%; height: auto; }
.outfit-gallery figcaption { padding: 1rem 1.4rem; }
.outfit-gallery h3 { margin: 0; color: #fff0d8; }
.outfit-gallery p { margin: .4rem 0 0; line-height: 1.85; color: var(--guide-text); }
.party-box { display: grid; grid-template-columns: 1.5fr .85fr; gap: 2rem; padding: clamp(1.1rem, 3vw, 2rem); margin-block: 1rem; }
.party-box caption { text-align: start; color: #d4b584; padding-bottom: .35rem; }
.party-box table { width: 100%; border-collapse: collapse; margin-block: 1.1rem; font-size: .95rem; }
.party-box th, .party-box td { text-align: start; padding: .42rem .5rem; border-bottom: 1px solid #383c41; }
.party-box thead { color: var(--guide-gold); background: #1f2328; }
.meter-demo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; margin: 0; padding: .8rem 1rem; border-inline-start: 1px solid #484239; }
.meter-demo img { width: 192px; max-width: 100%; height: auto; }
.meter-demo figcaption { text-align: center; color: var(--guide-text); max-width: 32ch; }
.meter-demo strong { display: block; color: var(--guide-gold); }
.more-systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.more-systems article { border: 1px solid #403b33; border-radius: .55rem; background: #12161c; }
@media (max-width: 900px) {
  .bestiary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-hand { height: 185px; }
}
@media (max-width: 680px) {
  .guide-hero-inner { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 1.8rem 1.3rem; }
  .guide-hand { height: 150px; }
  .guide-jump { gap: .35rem; }
  .guide-jump a { padding: .3rem .65rem; font-size: .9rem; }
  .guide-section[id] { scroll-margin-top: 7.5rem; }
  .bestiary, .wardrobe-grid, .outfit-gallery, .party-box, .more-systems { grid-template-columns: 1fr; }
  .creature img { width: 68px; }
  .party-box { gap: 1rem; }
  .meter-demo { padding: 1rem 0 0; border-inline-start: 0; border-top: 1px solid #484239; }
}
