/* Village pages (/villages/…): same game dress as the home page — sea chart hero, parchment cards, gold lettering. */

/* ---------- hero: copy on the left, the fully built island on the right ---------- */
.vhero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(180deg, rgba(8, 60, 140, .25), rgba(8, 40, 110, .6)), url("../img/sea-chart.webp") center / cover;
  padding-block: clamp(34px, 5vw, 64px) clamp(120px, 12vw, 170px);
}
.vhero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 3; }
.vhero__copy { display: grid; justify-items: start; gap: 18px; }
.crumbs { font-family: var(--display); font-weight: 800; font-size: .9rem; color: #cfe3ff; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.vhero__sticker { width: clamp(120px, 16vw, 190px); height: auto; filter: drop-shadow(0 12px 12px rgba(0, 20, 60, .5)); animation: bob 5s ease-in-out infinite; }
.vhero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.vhero__lead { font-size: 1.12rem; max-width: 56ch; color: #eef6ff; text-shadow: 0 1px 2px rgba(0, 20, 60, .5); }
.vhero__isl { position: relative; justify-self: center; width: min(460px, 100%); }
.vhero__isl img {
  width: 100%; aspect-ratio: 760 / 1150; object-fit: cover; border-radius: 28px;
  box-shadow: 0 0 0 5px var(--gold), 0 0 0 8px var(--gold-lo), 0 26px 50px rgba(0, 15, 50, .55);
}
.vhero__isl figcaption {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--display); font-weight: 900; font-size: .9rem; letter-spacing: .04em; color: var(--white);
  background: var(--navy); padding: 4px 16px; border-radius: 999px; box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--gold-lo);
}

/* ---------- the village slot machine; name and win pill are live text over the painted plates ---------- */
.vslot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.vslot__m { position: relative; width: min(460px, 100%); justify-self: center; container-type: inline-size; }
.vslot__m img { width: 100%; border-radius: 26px; box-shadow: 0 0 0 5px var(--gold), 0 0 0 8px var(--gold-lo), 0 22px 44px rgba(40, 30, 80, .35); }
.vslot__plate, .vslot__win { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; }
.vslot__plate b, .vslot__win b {
  font-family: var(--display); font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: .02em;
  color: var(--gold);
  text-shadow: 1px 1px 0 var(--gold-deep), -1px 1px 0 var(--gold-deep), 1px -1px 0 var(--gold-deep), -1px -1px 0 var(--gold-deep), 0 2px 0 var(--gold-deep);
}
.vslot__plate b { max-width: 100%; }
.vslot__win b { font-size: clamp(10px, 3.9cqw, 22px); }
.vslot__copy { display: grid; justify-items: start; gap: 16px; }
.vslot__copy h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.vslot__copy p { font-size: 1.08rem; max-width: 46ch; }

/* ---------- the six landmarks ---------- */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.bcard { padding: 22px 22px 26px; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--ink); }
.bcard img { width: 100%; max-width: 230px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(60, 35, 5, .3)); transition: transform .25s ease; }
.bcard:hover img { transform: translateY(-6px) scale(1.03); }
.bcard h3 { font-size: 1.45rem; color: var(--navy); }
.bcard p { font-size: .98rem; line-height: 1.55; color: var(--ink-soft); }
.bcard__n {
  position: absolute; top: -14px; left: -10px; width: 42px; height: 42px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: var(--white);
  background: radial-gradient(circle at 35% 30%, var(--blue-hi), var(--blue) 55%, var(--blue-lo)); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--gold-lo), 0 4px 8px rgba(0, 0, 0, .3);
}

/* ---------- previous / all / next ---------- */
.vnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding-block: 44px; }
.vnav a:not(.btn) { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; color: var(--white); font-size: 1.1rem; }
.vnav a:not(.btn):hover { color: var(--gold); }
.vnav small { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb7ea; }
.vnav img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); }
.vnav__n { justify-content: flex-end; text-align: right; }
main:has(.vnav) { background: var(--navy); }

/* ---------- index of all villages ---------- */
.vindex h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.vsearch input {
  width: min(420px, 86vw); padding: .75em 1.2em; border-radius: 999px; border: 0; outline: 0;
  font: 700 1rem var(--body); color: var(--ink); background: var(--parch);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--gold-lo), 0 8px 20px rgba(0, 20, 60, .35);
}
.vsearch input:focus-visible { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--gold-lo), 0 8px 20px rgba(0, 20, 60, .35); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 26px 14px; }
.vtile { display: grid; justify-items: center; gap: 6px; text-decoration: none; text-align: center; }
.vtile[hidden] { display: none; }
.vtile img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 20, 60, .45)); transition: transform .2s ease; }
.vtile:hover img, .vtile:focus-visible img { transform: translateY(-6px) rotate(-2deg); }
.vtile > span {
  font-family: var(--display); font-weight: 900; font-size: .82rem; letter-spacing: .02em; color: var(--white); line-height: 1.2;
  background: var(--navy); padding: 3px 12px 4px; border-radius: 14px; max-width: 100%; box-shadow: 0 0 0 2px var(--gold);
}
.vtile b { color: var(--gold); margin-right: 5px; }
.vnone { text-align: center; font-family: var(--display); font-weight: 800; margin-top: 20px; }

@media (max-width: 900px) {
  .vhero__grid, .vslot { grid-template-columns: 1fr; }
  .vhero__copy { justify-items: center; text-align: center; }
  .vhero .stores { justify-content: center; }
  .vslot__copy { justify-items: center; text-align: center; }
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
}
@media (max-width: 560px) {
  .bgrid { grid-template-columns: 1fr; }
  .bcard img { max-width: 200px; }
  .vnav { grid-template-columns: 1fr 1fr; }
  .vnav__all { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .vnav img { width: 52px; height: 52px; }
  .vnav a:not(.btn) { font-size: .95rem; }
  .vtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
  .vtile > span { font-size: .7rem; padding: 2px 8px 3px; }
}
