/* The photographic village and its paper field guide use the original artwork
   and brand palette. All scene coordinates stay in the photograph's space. */
body.village-edition {
  --v-night: #112b3b; --v-deep: #102a3a; --v-blue: #224459;
  --v-cream: #fff4dd; --v-paper: #f6ead3; --v-green: #226b50;
  --v-gold: #f7cf83; --v-ink: #263a42; --v-line: #82979755;
  background: radial-gradient(ellipse at 90% 0%, #254c58 0, transparent 57%),
              linear-gradient(150deg, #193848, #112938 76%);
  color: var(--v-cream);
}
body.village-edition :is(button, summary, a, input, select, textarea):focus-visible {
  outline: 3px solid #ffdc96; outline-offset: 3px;
}
body.village-edition .v-folder-content :focus-visible,
body.village-edition .v-intro-actions :focus-visible { outline: 3px solid #a43d45; outline-offset: 3px; }
body.village-edition header { min-height:74px; padding:10px clamp(14px,2.8vw,38px); border-bottom:1px solid #ead3a72b; }
body.village-edition header .approved-logo { width:165px; height:52px; object-fit:contain; object-position:left center; }
body.village-edition .topmeta strong { color:var(--v-gold); font-size:.9rem; }
body.village-edition .topmeta small { font-size:.78rem; color:#d7e3e5; }
body.village-edition main { max-width:1320px; }
body.village-edition .nav button { font:700 .83rem/1.15 Nunito,system-ui,sans-serif; min-height:48px; }
body.village-edition .nav button.active { color:#fff3cf; background:#225743; border-color:#a9c8a377; }
body.village-edition .nav button svg { width:21px; height:21px; }
body.village-edition main>footer, body.village-edition main>.footer { color:#bdccd0; }
body.village-edition [data-view="explore"] { padding-top:clamp(8px,2.1vw,30px); }
body.village-edition [data-view="explore"] .v-map-hero {
  display:grid; grid-template-columns:minmax(255px,.72fr) minmax(0,1.75fr);
  align-items:stretch; overflow:hidden; border-radius:24px;
  border:1px solid #c4bba1; box-shadow:0 18px 46px #04151e40;
  background:var(--v-paper);
}
.village-edition .v-map-intro {
  min-width:0; padding:clamp(20px,2.7vw,44px); display:flex;
  flex-direction:column; align-items:flex-start; justify-content:center; gap:clamp(14px,2.1vw,30px);
  background:linear-gradient(140deg,#fff8e9,#f3e5c9); color:var(--v-ink);
}
body.village-edition[data-screen="explore"] .world-heading { margin:0; display:block; }
body.village-edition[data-screen="explore"] .world-heading h1 { font:600 clamp(2.35rem,3.7vw,4.2rem)/.98 Fredoka,"Trebuchet MS",system-ui,sans-serif; color:#254b40; letter-spacing:-.045em; }
.village-edition .world-heading h1 span { display:block; }
body.village-edition[data-screen="explore"] .world-heading p {
  font-size:clamp(1rem,1.35vw,1.13rem); color:#475b56; margin:14px 0 0; max-width:22ch; line-height:1.45;
}
.village-edition .v-intro-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.village-edition .v-intro-actions button { min-height:48px; border-radius:13px; font-weight:800; font-size:.95rem; }
.village-edition .v-intro-actions .v-visit { color:#fff8e9; background:#22634b; border:1px solid #174b36; box-shadow:0 2px 0 #143c2a; padding:12px 18px; }
.village-edition .v-intro-actions .v-visit:hover { background:#194c39; }
.village-edition .v-intro-actions #worldguide {
  color:#264f46; border:0; box-shadow:none; padding:10px; background:transparent;
}
.village-edition .v-intro-actions #worldguide::before { content:'♪'; padding-right:5px; }
.village-edition .v-visit-progress { display:flex; flex-direction:column; gap:6px; font-size:.83rem; font-weight:800; color:#4b5b4f; }
.village-edition .v-progress-stamps { display:flex; gap:4px; }
.village-edition .v-stamp { display:block; flex-shrink:0; object-fit:contain; }
.village-edition .v-progress-stamps .v-stamp { width:26px; height:26px; filter:grayscale(.9); opacity:.45; }
.village-edition .v-progress-stamps .v-collected { opacity:1; filter:none; }
body.village-edition[data-screen="explore"] #worldmap {
  width:100%; max-width:none; margin:0!important; border:0; border-left:1px solid #88785c;
  border-radius:0; box-shadow:none; overflow:hidden; align-self:center;
}
body.village-edition #worldmap .world-node.photo-hit {
  border-color:transparent!important; min-width:48px; min-height:48px;
  padding:0!important; justify-content:center; align-items:center;
}
body.village-edition #worldmap .world-node.photo-hit:hover,
body.village-edition #worldmap .world-node.photo-hit:focus-visible {
  background:#ffe4a91b!important; border-color:#ffdb90!important;
}
body.village-edition #worldmap .world-node.photo-hit span {
  display:inline-block; width:max-content; max-width:none; padding:5px 9px; margin-top:16%;
  border:1px solid #e2c58c; background:#143c34f7; color:#fff4dd;
  border-radius:6px; box-shadow:0 2px 4px #0a202965; font-size:clamp(.75rem,1.05vw,.96rem);
  font-weight:800; line-height:1.16; white-space:nowrap;
}
body.village-edition #worldmap .world-node.photo-hit.visited span::after { color:#ffdb84; }
.village-edition .v-shelves {
  margin-top:clamp(12px,1.9vw,26px); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px;
}
body.village-edition .v-folder {
  min-width:0; width:auto; max-width:none; margin:0; color:#fff4dd;
  border:1px solid #8faaa963; border-radius:16px; background:#1d3e4c; overflow:visible;
  box-shadow:none;
}
body.village-edition .v-folder>summary {
  display:flex; align-items:center; min-height:64px; gap:12px; padding:9px 15px;
  cursor:pointer; color:var(--v-cream); font-size:1rem; font-weight:800; list-style:none;
  border-radius:15px;
}
.village-edition .v-folder>summary::-webkit-details-marker { display:none; }
.village-edition .v-folder>summary:hover { background:#294e59; }
.village-edition .v-folder>summary>.v-stamp { width:40px; height:40px; }
.village-edition .v-folder-sign {
  display:block; margin-left:auto; flex-shrink:0; width:9px; height:9px; transform:rotate(45deg);
  border-right:2px solid var(--v-gold); border-bottom:2px solid var(--v-gold);
}
.village-edition .v-folder[open]>summary>.v-folder-sign { transform:rotate(225deg); }
.village-edition .v-shelves:has(>.v-folder[open]) { grid-template-columns:1fr; }
.village-edition .v-shelves>.v-folder:not([open]) { align-self:start; }
.village-edition .v-folder-content, .village-edition .v-folder>#destinations {
  padding:12px; border-top:1px solid var(--v-line); display:grid; gap:12px;
}
.village-edition .v-folder-content>:is(.child-trail,.rp-mission,.home-extras,.daily-card,.rp-card,.encounter,.room-secondary) {
  margin:0!important; width:100%; max-width:none;
}
.village-edition .v-folder-content .world-foot { margin:0; padding:0 8px; color:#cfdddf; font-size:.85rem; }
.village-edition .v-family { display:flex; justify-content:flex-end; margin:10px 0 0; }
body.village-edition #parentlink { font-size:.85rem; color:#d0dedb; background:transparent; border:0; box-shadow:none; margin:0; min-height:48px; padding:8px 12px; }
body.village-edition #parentlink:hover { color:#fff4dd; text-decoration:underline; }

body.village-edition[data-screen="room"] [data-view="room"] { max-width:1050px; margin-inline:auto; }
body.village-edition[data-screen="room"] .compact-head { max-width:none; margin:8px 0; align-items:center; }
body.village-edition[data-screen="room"] #phototitle { text-align:left; font-size:clamp(1.75rem,3.1vw,2.75rem); margin:.2em 0 .35em; }
body.village-edition[data-screen="room"] .room-hero.photo-aligned { max-width:100%; border-radius:18px; box-shadow:0 12px 30px #0b1b2540; }
.village-edition .world-stations:not(.no-hints) .world-station.photo-hit { border-color:transparent!important; }
.village-edition .world-stations:not(.no-hints) .world-station.photo-hit span { background:#143c34f0; padding:4px 7px; font-size:clamp(.7rem,1.05vw,.92rem); }
.village-edition .world-stations .world-station.photo-hit:focus-visible { outline:3px solid var(--v-gold)!important; outline-offset:0; }
.village-edition [data-view="room"] .child-room-cue { margin:10px 0 4px; text-align:left; font-size:1rem; }
body.village-edition [data-view="room"] .room-actions { width:100%; max-width:none; grid-template-columns:repeat(3,minmax(0,1fr)); margin:10px auto; }
body.village-edition [data-view="room"] .room-actions button { min-height:52px; border-radius:14px; }
.village-edition [data-view="room"] .v-object-list, .village-edition [data-view="room"]>.v-folder { margin:10px 0; max-width:none; }
.village-edition [data-view="room"] .v-object-list>summary { min-height:48px; align-content:center; }
.village-edition [data-view="room"] .room-secondary { display:flex; justify-content:flex-start; flex-wrap:wrap; }
.village-edition [data-view="room"] :is(.rp-card,.rp-mission,.child-trail) { border-radius:14px; }
.village-edition [data-view="room"] .v-folder-content:empty {display:none;}
@media (min-width:960px) {
  body.village-edition header { max-width:1320px; margin:0 auto; min-height:76px; }
  body.village-edition nav.nav {
    position:absolute; top:15px; bottom:auto; left:50%; right:auto; transform:translateX(-50%);
    max-width:none; width:max-content; max-width:51vw; border:0; border-radius:0; background:transparent; box-shadow:none;
    backdrop-filter:none; padding:0; gap:3px; opacity:1;
  }
  body.village-edition .nav button { display:flex; align-items:center; justify-content:center; gap:6px; padding:7px 13px; border-radius:22px; min-height:44px; }
  body.village-edition .nav button span { display:grid; place-content:center; }
  body.village-edition main { padding:0 clamp(20px,2.8vw,38px) 30px; }
}
@media (min-width:701px) and (max-width:959px) {
  body.village-edition [data-view="explore"] .v-map-hero { grid-template-columns:minmax(195px,.65fr) minmax(0,1.55fr); }
  .village-edition .v-map-intro { padding:16px; gap:12px; }
  body.village-edition[data-screen="explore"] .world-heading h1 { font-size:2.25rem; }
  body.village-edition[data-screen="explore"] .world-heading p { font-size:.94rem; margin-top:8px; }
  .village-edition .v-progress-stamps { display:none; }
}
@media (max-width:700px) {
  body.village-edition:is([data-screen="room"],[data-screen="explore"]) header {
    display:flex; min-height:58px; padding:5px 14px; margin:0 0 6px;
  }
  body.village-edition header .approved-logo { width:128px; height:44px; }
  body.village-edition .topmeta strong { font-size:.78rem; }
  body.village-edition .topmeta small { font-size:.72rem; }
  body.village-edition [data-view="explore"] { padding-top:4px; }
  body.village-edition [data-view="explore"] .v-map-hero { display:flex; flex-direction:column; border-radius:18px; }
  .village-edition .v-map-intro { display:contents; }
  body.village-edition[data-screen="explore"] .world-heading {
    padding:15px 16px 12px; width:100%; order:0; color:var(--v-ink);
  }
  body.village-edition[data-screen="explore"] .world-heading h1 { font-size:clamp(1.7rem,5.8vw,2.2rem); }
  .village-edition .world-heading h1 span { display:inline; }
  body.village-edition[data-screen="explore"] .world-heading p { margin:5px 0 0; max-width:none; font-size:.95rem; }
  body.village-edition[data-screen="explore"] #worldmap { order:1; border:0; align-self:auto; }
  body.village-edition #worldmap .world-node.photo-hit span { font-size:clamp(.65rem,2.35vw,.83rem); padding:3px 4px; margin-top:10px; }
  .village-edition .v-intro-actions { order:2; padding:10px 14px 0; }
  .village-edition .v-visit-progress { order:3; padding:8px 16px 12px; flex-direction:row; align-items:center; gap:8px; }
  .village-edition .v-progress-stamps {gap:3px;}
  .village-edition .v-progress-stamps .v-stamp { width:16px; height:16px; }
  .village-edition .v-shelves { grid-template-columns:1fr; gap:8px; margin-top:12px; }
  body.village-edition .v-folder>summary { min-height:52px; padding:5px 12px; }
  .village-edition .v-folder>summary>.v-stamp { width:33px; height:33px; }
  .village-edition .v-folder-content, .village-edition .v-folder>#destinations { padding:8px; }
  body.village-edition .nav { width:calc(100% - 12px); border-radius:18px; padding:4px 3px; }
  body.village-edition .nav button { font-size:.7rem; gap:2px; }
  .village-edition .v-family { margin:0; }
  body.village-edition[data-screen="room"] #phototitle { font-size:1.6rem; }
  body.village-edition[data-screen="room"] .compact-head { flex-wrap:wrap; gap:4px; }
  .village-edition [data-view="room"] .room-actions button { font-size:.85rem; }
}
@media (max-width:370px) {
  .village-edition .v-progress-stamps { display:none; }
  body.village-edition #worldmap .world-node.photo-hit span { padding:2px 3px; }
}
@media (max-height:460px) and (orientation:landscape) {
  body.village-edition[data-screen="room"] header {display:none;}
  body.village-edition .v-progress-stamps { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .village-edition :is(.v-folder-sign,.v-visit,.world-node,.world-station) { transition:none!important; }
}
