@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: dark;
  --ink: #0d0c0b;
  --paper: #f4e7d1;
  --muted: #c5b9a5;
  --brass: #e2ba78;
  --rule: #5c492e;
  --display: "Instrument Serif", Georgia, serif;
  --engraved: "Cinzel", Georgia, serif;
  font: 1rem "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.guild-document { scroll-behavior: auto; }
body { margin: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.wrap { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--paper); font: 700 1.04rem/1 var(--engraved); white-space: nowrap; }
.brand img { object-fit: contain; width: 38px; height: 38px; }
nav { display: flex; gap: clamp(18px, 3vw, 48px); color: var(--muted); font-size: .91rem; }
nav a:hover, .text-link:hover { color: var(--paper); }
.mast-cta { justify-self: end; padding: 10px 15px; border: 1px solid var(--rule); color: var(--brass); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.mast-cta:hover { border-color: var(--brass); }
.front { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(24px, 6vw, 86px); min-height: 593px; padding: clamp(32px, 6.15vw, 90px); border: 1px solid var(--rule); background: #1b1510; }
.front::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #0d0c0b 0%, #110d09de 35%, #100c0870 76%), linear-gradient(0deg, #0d0c0be0, transparent 55%), url("/campfire-a.webp?v=3") center 51% / cover; }
.front::after { position: absolute; inset: 8px; border: 1px solid #bd986043; content: ""; pointer-events: none; }
.eyebrow { margin: 0 0 13px; color: var(--brass); text-transform: uppercase; font: 700 .875rem/1.4 var(--engraved); letter-spacing: .1em; }
.dot { display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 2px; background: var(--brass); transform: rotate(45deg); }
h1, h2 { margin: 0; font: 400 clamp(2.65rem, 4vw, 4.3rem)/.98 var(--display); }
h1 { font-size: clamp(4.15rem, 8vw, 8.5rem); letter-spacing: -.035em; }
h1 em { color: var(--brass); font-weight: 400; }
p { color: var(--muted); line-height: 1.65; }
.lead { max-width: 40ch; margin: 23px 0 26px; font-size: 1.08rem; }
.wait label { display: block; margin-bottom: 10px; font-size: .9rem; color: var(--paper); }
.form-row { display: flex; flex-wrap: wrap; gap: 7px; max-width: 445px; }
.form-row input { min-width: 0; flex: 1 1 158px; padding: 12px; border-radius: 0; border: 1px solid #827050; background: #100d0aeb; color: var(--paper); }
.form-row input::placeholder { color: var(--muted); }
.button { min-height: 47px; padding: 11px 15px; border: 1px solid var(--brass); border-radius: 0; background: linear-gradient(#ebca8f,#c89350); color: #171008; font-size: .9rem; font-weight: 700; cursor: pointer; }
.button:hover { background: #f4d6a1; }
.button:disabled { opacity: .7; cursor: wait; }
.status { margin: 8px 0 0; color: var(--brass); font-size: .9rem; }
.status:empty { margin: 0; }
.market { padding: clamp(19px, 2.8vw, 35px); background: linear-gradient(145deg, #272017fa, #110f0cf7 72%); border: 1px solid #9c7849; box-shadow: inset 0 0 0 4px #150f0b, 0 14px 60px #0007; }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.board-heading h2 { font-size: clamp(2.2rem, 3.4vw, 3.55rem); }
.board-heading .eyebrow { margin-bottom: 7px; }
.board-ornament { color: var(--brass); font-size: 1.8rem; }
.listings { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 3px; cursor: pointer; list-style: none; font: 400 1.45rem/1.15 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brass); font: 1rem "DM Sans", sans-serif; }
details[open] summary { color: var(--brass); }
details[open] summary::after { content: "−"; }
summary:hover { color: var(--brass); }
details p { margin: 0 23px 13px 3px; }
.board-note { margin: 16px 0 0; font-size: .875rem; }
.membership, .growth { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(20px, 7vw, 110px); padding: clamp(30px, 5vw, 66px) clamp(16px, 4vw, 55px); border-bottom: 1px solid var(--rule); }
.membership { align-items: center; background: linear-gradient(90deg, #1a1510, #11100e 70%); border-inline: 1px solid var(--rule); }
.membership p:last-child { margin: 0; }
.growth-copy > p { max-width: 46ch; }
.growth-topics { margin: 0; border-top: 1px solid var(--rule); }
.growth-topics div { padding: 13px 0; border-bottom: 1px solid var(--rule); }
dt { font: 400 1.55rem/1.15 var(--display); }
dd { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.text-link { color: var(--brass); text-decoration: underline; text-underline-offset: 5px; }
.footer { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 20px; }
.section { padding-block: 48px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 38px); }
  .front { gap: 23px; padding: 35px; min-height: 0; }
  h1 { font-size: clamp(3.55rem, 8.7vw, 7rem); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 26px); }
  .mast { grid-template-columns: 1fr auto; gap: 8px; padding-block: 7px 13px; }
  nav { grid-row: 2; grid-column: 1 / -1; gap: 8px 18px; flex-wrap: wrap; }
  .front, .membership, .growth { grid-template-columns: 1fr; }
  .front { padding: 34px 22px 25px; gap: 35px; }
  .front::before { background-image: linear-gradient(90deg, #110c08e8, #110c0880), linear-gradient(0deg, #0d0c0b 25%, transparent 80%), url("/campfire-a.webp?v=3"); background-position: 64% top; }
  .market { padding: 20px; }
}
@media (max-width: 390px) {
  .form-row button { width: 100%; }
  .brand { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root{--ink:#110d1c;--paper:#fff5fc;--muted:#dbcee8;--brass:#d9b6ff;--rule:#60487a;--surface:#221533;--inset:#191126;--action:#c9a0fa;--action-ink:#1e112c;--wash:linear-gradient(90deg,#180f2bf7,#1b0f2abc 33%,#29154b30 66%,transparent)}
.mast-actions{display:flex;justify-self:end;gap:8px;align-items:center}
.mast-cta{padding:9px 11px;border:1px solid var(--rule);border-radius:6px;white-space:nowrap}
.mast-cta:hover{background:var(--surface)}
.front{display:flex;align-items:center;overflow:hidden;min-height:clamp(570px,53vw,735px);border-radius:15px;background:var(--surface)}
.front::before{background:var(--wash),url("/campfire-a.webp?v=3") 72% center / cover}
.front::after{border:0}
.front-copy{max-width:670px;width:100%}
h1{font-size:clamp(3.85rem,7.5vw,7.85rem)}
.atmosphere{position:absolute;z-index:-1;inset:0;pointer-events:none}
.atmosphere i{position:absolute;left:var(--x);top:var(--y);width:4px;height:4px;border-radius:50%;background:#ffead5;box-shadow:0 0 14px 3px #e2a8ff;animation:drift var(--time) ease-in-out var(--delay) infinite alternate}
.atmosphere i:nth-child(1){--x:69%;--y:78%;--time:7s;--delay:-2s}
.atmosphere i:nth-child(2){--x:82%;--y:46%;--time:8s;--delay:-5s}
.atmosphere i:nth-child(3){--x:91%;--y:62%;--time:10s;--delay:-4s}
.atmosphere i:nth-child(4){--x:64%;--y:65%;--time:6s;--delay:-3s}
.atmosphere i:nth-child(5){--x:75%;--y:87%;--time:9s;--delay:-7s}
@keyframes drift{from{transform:translate(0,0);opacity:.12}to{transform:translate(10px,-31px);opacity:.85}}
.form-row input{background:var(--inset);border-color:var(--rule);border-radius:6px}
.button{background:var(--action);color:var(--action-ink);border-color:var(--rule);border-radius:6px}
.button:hover{background:var(--action);filter:brightness(1.1)}
.market{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(24px,7vw,100px);padding:clamp(32px,5vw,68px) clamp(16px,4vw,55px);border:0;border-bottom:1px solid var(--rule);background:transparent;box-shadow:none}
.board-heading{display:block;margin:0}
.board-heading h2{font-size:clamp(2.65rem,4.5vw,4.4rem)}
.board-note{max-width:39ch;font-size:1rem}
.listings{border:1px solid var(--rule);border-radius:10px;background:var(--inset);overflow:hidden}
.listings details:last-child{border-bottom:0}
.listings details[open]{background:var(--surface)}
summary{padding:13px 16px}
details p{margin:0 16px 14px}
.membership{background:linear-gradient(110deg,var(--surface),var(--inset));border-radius:0 0 12px 12px}
@media (max-width:960px){.mast{grid-template-columns:auto 1fr;padding-block:9px 14px}nav{grid-row:2;grid-column:1 / -1}}
@media (max-width:700px){
  :root{--wash:linear-gradient(180deg,#1d102cf7,#1d102ce4 35%,#1d102c62 68%,#160e2320)}
  .front{min-height:610px;align-items:start;padding-bottom:160px}
  .front::before{background-position:72% bottom}
  h1{font-size:clamp(3rem,10.3vw,5rem)}
  .market{grid-template-columns:1fr;gap:19px}
}
@media (max-width:390px){.mast-actions .mast-cta{display:none}}
@media (prefers-reduced-motion:reduce){.atmosphere i{animation:none}}

.world {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--ink);
}
.world::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(0deg,var(--ink),transparent 24%),
    linear-gradient(180deg,#120e20a6,transparent 23%),
    var(--wash),
    url("/campfire-a.webp?v=3") 73% center / cover;
}
.world .mast {
  display: flex;
  min-height: 78px;
  justify-content: space-between;
  padding-block: 10px;
}
.world .front {
  position: static;
  isolation: auto;
  overflow: visible;
  flex: 1;
  min-height: 0;
  align-items: center;
  padding: clamp(52px, 8vh, 120px) 0 clamp(75px, 12vh, 150px);
  border: 0;
  border-radius: 0;
  background: transparent;
}
.world .front::before, .world .front::after { content: none; }
.world .front-copy { width: min(100%, 660px); padding-left: clamp(0px, 4vw, 70px); }
.world h1 { font-size: clamp(4.4rem, 9vw, 9rem); }
.world .lead { max-width: 36ch; }
.game-menu {
  display: grid;
  width: fit-content;
  gap: 5px;
  color: var(--paper);
}
.game-menu a {
  position: relative;
  width: fit-content;
  padding: 9px 16px 9px 28px;
  border-left: 1px solid transparent;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.game-menu a::before {
  position: absolute;
  left: 10px;
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  transform: rotate(45deg);
  opacity: .52;
}
.game-menu a:hover, .game-menu .menu-primary {
  border-left-color: var(--brass);
  color: var(--brass);
  background: linear-gradient(90deg,var(--surface),transparent);
}
.join {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(24px, 7vw, 100px);
  align-items: center;
  padding: clamp(32px, 5vw, 68px) clamp(16px, 4vw, 55px);
  border-bottom: 1px solid var(--rule);
}
.join p:empty { margin: 0; }
#waitlist, #guild-board, #membership { scroll-margin-top: 24px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .world .mast { min-height: 65px; }
  .world .front { align-items: start; padding: 35px 8px 105px; }
  .world .front-copy { padding: 0; }
  .world h1 { font-size: clamp(4.25rem, 13vw, 6.2rem); }
  .world::before { background-position: center, center, center, 70% bottom; }
  .join { grid-template-columns: 1fr; gap: 9px; }
}

.sample-post {
  grid-column: 1 / -1;
  position: relative;
  border: 1px solid #775d90;
  border-radius: 5px;
  background: linear-gradient(116deg, #2c203d, #1a1227 78%);
  box-shadow: 0 8px 24px #09061160;
}
.sample-post::before {
  position: absolute;
  top: -5px;
  left: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbaa74;
  box-shadow: 0 2px 3px #0d0915;
  content: "";
  pointer-events: none;
}
.sample-post summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 15px;
  padding: 21px clamp(15px, 3vw, 30px);
}
.post-heading { display: grid; gap: 7px; }
.post-label, .post-note { font: 500 .875rem/1.5 "DM Sans", sans-serif; color: var(--muted); }
.post-title { font: italic 400 clamp(1.55rem, 3vw, 2.25rem)/1.1 var(--display); }
.post-seal { width: 44px; height: 44px; object-fit: contain; }
.post-body {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(20px, 4vw, 54px);
  padding: 20px clamp(15px, 3vw, 30px) 24px;
  border-top: 1px solid var(--rule);
}
.post-body h3 { margin: 0 0 8px; font: 400 1.48rem/1.2 var(--display); }
.post-body p { margin: 0; }
.post-replies { display: grid; gap: 11px; list-style: none; padding: 0; margin: 0 0 10px; }
.post-replies span { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
@media (max-width: 700px) {
  .post-body { grid-template-columns: 1fr; }
  .post-seal { width: 34px; height: 34px; }
}

.world::before {
  background:
    linear-gradient(0deg, var(--ink), transparent 18%),
    linear-gradient(180deg, #140e276b, #1a102a5c 42%, transparent 75%),
    url("/campfire-a.webp?v=3") 65% bottom / cover;
}
.world .front {
  justify-content: center;
  align-items: start;
  padding: clamp(36px, 8vh, 105px) 0 clamp(230px, 38vh, 410px);
}
.world .front-copy {
  width: min(100%, 920px);
  padding: 0;
  text-align: center;
}
.world h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  text-wrap: balance;
  text-shadow: 0 4px 22px #10091fbf;
}
.world h1 em { color: #edccac; }
.world .lead {
  max-width: 44ch;
  margin-inline: auto;
  color: #f1e5f6;
  text-shadow: 0 2px 8px #10091f;
}
.world .game-menu { margin-inline: auto; width: min(100%, 255px); gap: 8px; }
.world .game-menu a {
  justify-content: center;
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ab8cc8;
  border-radius: 4px;
  background: #201635dd;
}
.world .game-menu a::before { content: none; }
.world .game-menu .menu-primary {
  border-color: #e8bd91;
  color: #ffe9ce;
  background: #412738ef;
  box-shadow: 0 0 21px #f5b27640, inset 0 0 12px #f5b27624;
}
.world .game-menu a:hover { background: #583b69; }
.world .atmosphere i { left: calc(62% + (var(--x) - 64%) / 4); top: calc(56% + var(--y) / 5); }
.village { padding: clamp(42px, 6vw, 80px) 0 24px; }
.village-heading { margin: 0 auto 20px; text-align: center; }
.village-heading p { margin: 9px 0 0; }
.village-scene { position: relative; isolation: isolate; }
.village-art { display: block; width: 100%; height: auto; border-radius: 10px; }
.village-links { display: block; position: absolute; inset: 0; }
.village-links a {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  transform: translate(-50%, -50%);
  padding: 9px 16px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #edca98;
  border-radius: 5px;
  background: linear-gradient(#f7dba9, #cfa26c);
  box-shadow: 0 3px 13px #100a1fac;
  color: #271a2e;
  white-space: nowrap;
  font-weight: 700;
}
.village-links a:hover { background: #ffe2b5; box-shadow: 0 0 16px #f4bb7d88; }
.village-board { --pin-x: 40%; --pin-y: 54%; }
.village-room { --pin-x: 87%; --pin-y: 50%; }
.village-gate { --pin-x: 71%; --pin-y: 79%; }
#explore, #sample-post { scroll-margin-top: 24px; }
@media (max-width: 700px) {
  .world::before { background-position: center, center, 65% bottom; }
  .world .front { padding: 25px 0 235px; }
  .world h1 { font-size: clamp(3.4rem, 11.5vw, 6rem); }
  .village-links a { min-height: 44px; padding-inline: 8px; font-size: .875rem; }
  .village-room { --pin-x: 84%; }
}
@media (max-width: 370px) {
  .village-links a { white-space: normal; text-align: center; }
}

.village { position: relative; }
.village-heading { padding-inline: 12px; }
.village-heading h2 { text-wrap: balance; }
.village-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 17px;
  border-radius: 6px;
  background: #dfba82;
  color: #251732;
  font-weight: 700;
}
.village-cta:hover { background: #f4d4a2; }
@media (min-width: 820px) {
  .village-heading {
    position: absolute;
    z-index: 1;
    top: 45%;
    left: 4%;
    width: 23%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    text-align: left;
    text-shadow: 0 2px 12px #1a102a;
  }
  .village-heading h2 { text-wrap: initial; }
  .village-heading p { color: #fff0f8; }
  .village-cta { text-shadow: none; }
}
.village-crest {
  position: absolute;
  left: 61.5%;
  top: 13.7%;
  width: 2.8%;
  height: auto;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.campfire-page {
  --campfire-art: url("/campfire-a.webp?v=3");
  position: relative;
  min-height: 100svh;
  color: #f9d29d;
  background: #25183b var(--campfire-art) center bottom / cover no-repeat;
  font-family: Georgia, "Times New Roman", serif;
}
.campfire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 2.5vh, 27px) clamp(18px, 3.5vw, 62px);
}
.campfire-brand { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 2.9vw, 2.9rem); white-space: nowrap; }
.campfire-brand img { width: clamp(57px, 6.2vw, 96px); height: auto; }
.campfire-nav { display: flex; gap: clamp(14px, 3vw, 42px); color: #ffecd0; font-size: clamp(.95rem, 1.35vw, 1.3rem); }
.campfire-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.campfire-title {
  padding: clamp(28px, 7.8vh, 84px) 20px clamp(132px, 30vh, 295px);
  text-align: center;
  text-shadow: 0 2px 8px #150c24;
}
.campfire-title h1 {
  margin: 0;
  font: 700 clamp(2.55rem, 4.25vw, 5rem)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.campfire-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 340px);
  margin: clamp(10px, 2vh, 25px) auto;
  font-size: 1.55rem;
  line-height: 1;
}
.campfire-divider::before, .campfire-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #e9b878); }
.campfire-divider::after { transform: scaleX(-1); }
.campfire-menu { display: grid; justify-items: center; gap: clamp(6px, 1.25vh, 12px); width: min(100%, 320px); margin-inline: auto; }
.campfire-menu a {
  --cut: 10px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: clamp(42px, 5vh, 53px);
  width: 86%;
  padding: 7px 15px;
  color: #fff0d9;
  background: #8a7197;
  font-size: clamp(1.03rem, 1.4vw, 1.45rem);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.campfire-menu a::before { content: ""; position: absolute; z-index: -1; inset: 1px; background: #231a36; clip-path: inherit; }
.campfire-menu .campfire-primary { width: 100%; background: #ffd791; color: #ffe4af; min-height: clamp(46px, 5.8vh, 60px); font-size: clamp(1.25rem, 1.8vw, 1.85rem); }
.campfire-menu .campfire-primary::before { inset: 2px; background: radial-gradient(ellipse at bottom, #76452b, #352339 78%); }
.campfire-menu a:hover::before, .campfire-menu a:focus-visible::before { background: #513446; }
.campfire-menu a:focus-visible { background: #fff2b0; color: #fff9eb; }
.guild-mast { display: flex; justify-content: space-between; align-items: center; }
.guild-page .village { padding-top: 10px; }
.travel-clouds { display: none; }
.clouds-arriving .travel-clouds, .clouds-leaving .travel-clouds {
  display: block;
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.travel-clouds::before, .travel-clouds::after {
  position: absolute;
  inset: -22%;
  content: "";
  background: url("/clouds.webp") center / cover;
}
.travel-clouds::before {
  mask-image: radial-gradient(ellipse 67% 41% at 22% 31%, #000 10%, #000e 42%, #0005 69%, transparent 93%);
  opacity: .94;
}
.travel-clouds::after {
  background-position: right 72%;
  mask-image: radial-gradient(ellipse 66% 42% at 83% 72%, #000 12%, #000e 40%, #0005 70%, transparent 94%);
  opacity: .89;
}
.clouds-leaving .travel-clouds { animation: mist-appear 690ms ease-in-out both; }
.clouds-arriving .travel-clouds { animation: mist-clear 1000ms ease-out both; }
.clouds-leaving .travel-clouds::before { animation: mist-drift-east 690ms ease-in-out both; }
.clouds-leaving .travel-clouds::after { animation: mist-drift-west 690ms ease-in-out both; }
.clouds-arriving .travel-clouds::before { animation: mist-exit-east 1000ms ease-out both; }
.clouds-arriving .travel-clouds::after { animation: mist-exit-west 1000ms ease-out both; }
@keyframes mist-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes mist-clear { from { opacity: 1; } to { opacity: 0; } }
@keyframes mist-drift-east { from { transform: translate(-18vw, -7%); } to { transform: translate(4%, 3%); } }
@keyframes mist-drift-west { from { transform: translate(18vw, 10%); } to { transform: translate(-5%, -2%); } }
@keyframes mist-exit-east { from { transform: translate(4%, 3%); } to { transform: translate(18vw, -6%); } }
@keyframes mist-exit-west { from { transform: translate(-5%, -2%); } to { transform: translate(-18vw, 9%); } }
@media (max-width: 680px) {
  .campfire-title { padding-top: 42px; padding-bottom: 185px; }
  .campfire-page { background-position: 50% bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .clouds-arriving .travel-clouds, .clouds-leaving .travel-clouds { display: none; animation: none; }
}

.guild-mast {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  min-height: 68px;
  text-shadow: 0 1px 8px #201329;
}
.guild-mast .text-link {
  padding: 9px 13px;
  border-radius: 5px;
  background: #1a1229de;
  color: #fff1dc;
}
.guild-page .village {
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 76px clamp(18px, 4vw, 68px) 35px;
  overflow: clip;
}
.guild-page .village-heading {
  position: relative;
  inset: auto;
  transform: none;
  z-index: 2;
  width: min(24vw, 390px);
  margin: 0;
  padding: 0;
  text-align: left;
  text-shadow: 0 2px 14px #1a102a;
}
.guild-page .village-heading h1 {
  font-size: clamp(3rem, 5.7vw, 7rem);
  text-wrap: balance;
}
.guild-page .village-heading p { color: #fff1dc; }
.guild-page .village-scene {
  position: absolute;
  inset: 0;
  container-type: size;
}
.guild-page .village-art {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.guild-page .village-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg,#140d27a6,transparent 23%),
              linear-gradient(90deg,#140e326a,transparent 39%);
  pointer-events: none;
}
.guild-page .village-links {
  z-index: 1;
  inset: auto;
  top: 50%;
  left: 50%;
  width: max(100cqw,177.68cqh);
  height: max(100cqh,56.28cqw);
  transform: translate(-50%,-50%);
}
.guild-page .village-crest { display: none; }
@media (max-aspect-ratio: 3/2), (max-width: 760px) {
  .guild-page .village { align-items: start; padding-top: clamp(85px, 14vh, 125px); padding-bottom: 110px; }
  .guild-page .village-heading { width: min(100%, 440px); }
  .guild-page .village-heading h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); text-wrap: initial; }
  .guild-page .village-heading p { max-width: 34ch; }
  .guild-page .village-heading .village-cta { display: none; }
  .guild-page .village-scene::after {
    background: linear-gradient(180deg,#140d27eb, #140d277b 25%,transparent 50%,#140d27b8);
  }
}
@media (max-aspect-ratio: 1/1), (max-width: 640px) {
  .guild-page .village-art { object-position: 58% center; }
  .guild-page .village-links {
    inset: auto 12px max(22px, env(safe-area-inset-bottom)) 12px;
    width: auto;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    transform: none;
  }
  .guild-page .village-links a { position: static; transform: none; padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .clouds-arriving .travel-clouds, .clouds-leaving .travel-clouds { display: none; animation: none; }
}

.guild-page .village-room { --pin-x: 62%; --pin-y: 44%; }

.landmark-label { display: block; }
.guild-page .village-links a:active { filter: brightness(1.13); }
@media (min-aspect-ratio: 1001/1000) and (min-width: 641px) {
  .guild-page .village-heading { pointer-events: none; }
  .guild-page .village-cta { pointer-events: auto; }
  .guild-page .village-links a {
    inset: var(--landmark-top) auto auto var(--landmark-left);
    width: var(--landmark-width);
    height: var(--landmark-height);
    display: grid;
    align-items: end;
    justify-items: center;
    transform: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
    cursor: pointer;
  }
  .guild-page .village-board {
    --landmark-left: 32%;
    --landmark-top: 33%;
    --landmark-width: 15%;
    --landmark-height: 24%;
  }
  .guild-page .village-room {
    --landmark-left: 50%;
    --landmark-top: 17%;
    --landmark-width: 24%;
    --landmark-height: 29%;
  }
  .guild-page .village-gate {
    --landmark-left: 63%;
    --landmark-top: 55%;
    --landmark-width: 17%;
    --landmark-height: 27%;
  }
  .guild-page .landmark-label {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid #edca98;
    border-radius: 5px;
    background: linear-gradient(#f7dba9,#cfa26c);
    box-shadow: 0 4px 0 #513225, 0 7px 14px #100a1f90;
    transition: transform 170ms ease-out, box-shadow 170ms ease-out, background 170ms ease-out;
  }
  .guild-page .village-links a:is(:hover,:focus-visible) .landmark-label {
    transform: perspective(260px) translateY(-4px) rotateX(7deg);
    background: linear-gradient(#ffedcf,#e6b970);
    box-shadow: 0 5px 0 #66402a, 0 0 18px #ffc77388;
  }
  .guild-page .village-links a:active .landmark-label { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
  .village-outlines path, .guild-page .landmark-label { transition: none; }
  .guild-page .village-links a:is(:hover,:focus-visible,:active) .landmark-label { transform: none; }
}

.village-outlines { display: none; }
@media (min-aspect-ratio: 1001/1000) and (min-width: 641px) {
  .village-outlines {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .village-outlines path {
    fill: none;
    stroke: #ffe0a5;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px #eeb870);
    opacity: 0;
  }
  .guild-page .village-links a:focus-visible { outline: none; }
  .village-links:has(.village-board:is(:hover,:focus-visible,:active)) .outline-board,
  .village-links:has(.village-room:is(:hover,:focus-visible,:active)) .outline-room,
  .village-links:has(.village-gate:is(:hover,:focus-visible,:active)) .outline-gate { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .village-outlines path { transition: opacity 170ms ease-out; }
}

/* Shared bevel shape for the camp menu and the village sign faces. */
.guild-page, .member-preview-page {
  --sign-notched: polygon(10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.guild-mast .camp-return {
  position: relative;
  isolation: isolate;
  padding: 9px 17px;
  color: #ffe7be;
  background: #bf9879;
  clip-path: var(--sign-notched);
  font: 600 1rem/1.25 Georgia, "Times New Roman", serif;
}
.guild-mast .camp-return::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  content: "";
  clip-path: inherit;
  background: #2c203b;
}
.guild-mast .camp-return:is(:hover,:focus-visible)::before { background: #583b47; }
.guild-mast .camp-return:focus-visible { background: #fff0b9; }
.house-landmarks .landmark-label,
.guild-page .landmark-label,
.guild-page .village-links a:is(:hover,:focus-visible) .landmark-label {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px clamp(11px,1.25vw,20px);
  border: 0;
  border-radius: 0;
  clip-path: var(--sign-notched);
  background: linear-gradient(#ffe9bb,#936237 48%,#f4c982 72%,#6d4029);
  box-shadow: none;
  color: #382233;
  font: 700 clamp(.89rem,1.35vw,1.25rem)/1.1 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px #ffe9bb88;
}
.house-landmarks .landmark-label::before,
.guild-page .landmark-label::before {
  position: absolute;
  z-index: -1;
  inset: 2px;
  clip-path: inherit;
  content: "";
  background: repeating-linear-gradient(179deg,#a46c2a18 0 1px,transparent 1px 5px),
    linear-gradient(#f1d7a2,#cb9b65);
}
.house-landmarks a:is(:hover,:focus-visible) .landmark-label::before,
.guild-page .village-links a:is(:hover,:focus-visible) .landmark-label::before {
  background: linear-gradient(#ffe8ba,#e4b477);
}
@media (max-aspect-ratio: 1/1), (max-width: 640px) {
  .guild-page .village-links a,
  .guild-page .village-links a:hover {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
}

.scene-sound {
  position: fixed;
  z-index: 8;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  color: #ffe5b5;
  font: 500 .9rem/1 Georgia, "Times New Roman", serif;
}
.sound-toggle {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d7ae78;
  border-radius: 7px;
  background: linear-gradient(#40304e,#251a36);
  box-shadow: 0 3px 14px #180d23a0;
  color: inherit;
  cursor: pointer;
}
.sound-toggle:is(:hover,:focus-visible) {
  border-color: #ffe1a6;
  background: #543945;
}
.sound-waves, .sound-playing .sound-cross { display: none; }
.sound-playing .sound-waves { display: initial; }
.sound-adjust {
  position: absolute;
  right: 46px;
  display: flex;
  align-items: center;
  padding-right: 7px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 130ms ease-out;
}
.scene-sound:not(.sound-pointer):has(:focus-visible) .sound-adjust,
.scene-sound.sound-touch-open .sound-adjust {
  opacity: 1;
  visibility: visible;
}
@media (hover: hover) {
  .scene-sound:hover .sound-adjust {
    opacity: 1;
    visibility: visible;
  }
}
.sound-slider {
  box-sizing: content-box;
  width: min(112px, calc(100vw - 94px));
  height: 32px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid #c89e68;
  border-radius: 6px;
  background: #291d3aeF;
  accent-color: #edc58d;
  cursor: pointer;
}
.guild-page .footer { padding-right: 54px; }
@media (max-aspect-ratio: 1/1), (max-width: 640px) {
  .guild-page .village-links { bottom: max(78px, calc(env(safe-area-inset-bottom) + 62px)); }
}
@media (prefers-reduced-motion: reduce) { .sound-adjust { transition: none; } }

.guild-mast .brand {
  gap: clamp(6px, 1.2vw, 13px);
  font-size: clamp(1.22rem, 2.35vw, 2.3rem);
}
.guild-mast .brand img {
  width: clamp(48px, 5.4vw, 80px);
  height: auto;
}
@media (max-width: 420px) {
  .guild-mast { gap: 8px; }
  .guild-mast .camp-return { padding-inline: 10px; font-size: .875rem; white-space: nowrap; }
}

.campfire-motion {
  --fire-depth: max(16.5%, 9.2vw);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.campfire-header, .campfire-title { position: relative; }
.campfire-motion::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--campfire-art) center bottom / cover no-repeat;
  mask-image: radial-gradient(ellipse clamp(28px,5vw,94px) clamp(44px,8vw,145px)
    at 50.3% calc(100% - var(--fire-depth)), #000 13%, #0009 52%, transparent 83%);
  animation: flame-flicker 2.7s linear infinite alternate;
}
.fire-glow {
  position: absolute;
  left: 50.3%;
  bottom: var(--fire-depth);
  width: clamp(150px, 28vw, 510px);
  aspect-ratio: 1.85;
  transform: translate(-50%, 50%);
  background: radial-gradient(ellipse,#ffb56042, #ff884d1c 34%, transparent 71%);
  mix-blend-mode: screen;
  animation: fire-light 3.2s ease-in-out infinite alternate;
}
.campfire-mist {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: max(19%, 11vw);
  height: clamp(65px, 12vw, 210px);
  background: radial-gradient(ellipse at 33% 49%,#b399de28,transparent 42%),
              radial-gradient(ellipse at 75% 62%,#c0a1d72a,transparent 45%);
  filter: blur(10px);
  animation: valley-mist 24s ease-in-out infinite alternate;
}
.embers {
  position: absolute;
  left: 50.3%;
  bottom: var(--fire-depth);
}
.embers i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd0a0;
  box-shadow: 0 0 8px 2px #ff9f59b0;
  opacity: 0;
  animation: rise-ember var(--time) linear var(--delay) infinite;
}
.embers i:nth-child(1) { --time: 3.5s; --delay: -.8s; --x: -24px; --y: -67px; }
.embers i:nth-child(2) { --time: 4.6s; --delay: -3s; --x: 29px; --y: -94px; }
.embers i:nth-child(3) { --time: 3.2s; --delay: -1.9s; --x: 15px; --y: -55px; }
.embers i:nth-child(4) { --time: 5.1s; --delay: -3.8s; --x: -34px; --y: -118px; }
.embers i:nth-child(5) { --time: 4.3s; --delay: -1.2s; --x: 7px; --y: -83px; }
@keyframes flame-flicker {
  0%, 37%, 73%, 100% { filter: brightness(1.02) saturate(1.05); opacity: .5; }
  12%, 53%, 88% { filter: brightness(1.35) saturate(1.16); opacity: .89; }
  24%, 60% { filter: brightness(1.15) saturate(1.08); opacity: .7; }
}
@keyframes fire-light {
  0%, 52%, 100% { opacity: .28; }
  19%, 75% { opacity: .72; }
}
@keyframes valley-mist {
  from { transform: translateX(-7%); opacity: .25; }
  to { transform: translateX(7%); opacity: .8; }
}
@keyframes rise-ember {
  0% { opacity: 0; transform: translate(0,0) scale(.72); }
  19% { opacity: .9; }
  75% { opacity: .45; }
  100% { opacity: 0; transform: translate(var(--x),var(--y)) scale(.32); }
}
@media (prefers-reduced-motion: reduce) {
  .campfire-motion { display: none; }
}

.fire-glow {
  width: clamp(185px, 34vw, 580px);
  background: radial-gradient(ellipse, #ffbd706b 0%, #ffa15635 27%, #e7664412 52%, transparent 73%);
}
@keyframes fire-light {
  0%, 52%, 100% { opacity: .49; }
  19%, 75% { opacity: .88; }
}
.fire-smoke {
  position: absolute;
  left: 50.3%;
  bottom: calc(var(--fire-depth) + clamp(14px, 1.9vw, 35px));
}
.fire-smoke i {
  position: absolute;
  left: -10px;
  bottom: 0;
  width: clamp(20px, 3.5vw, 57px);
  height: clamp(70px, 10vw, 190px);
  transform-origin: center bottom;
  background:
    radial-gradient(ellipse at 35% 57%, #c5b5d69a 0%, #ac9ebb49 33%, transparent 67%),
    radial-gradient(ellipse at 64% 30%, #d3beda79 0%, transparent 52%);
  filter: blur(clamp(3px, .45vw, 8px));
  opacity: 0;
  animation: smoke-rise 7.4s ease-out infinite;
}
.fire-smoke i:nth-child(2) { animation-delay: -2.5s; }
.fire-smoke i:nth-child(3) { animation-delay: -5s; }
@keyframes smoke-rise {
  0% { opacity: 0; transform: translate(-10%, 13%) scale(.21,.32) rotate(-5deg); }
  24% { opacity: .54; }
  58% { opacity: .29; transform: translate(24%, -35%) scale(.87,.83) rotate(12deg); }
  100% { opacity: 0; transform: translate(55%,-76%) scale(1.48,1.16) rotate(18deg); }
}
.campfire-mist {
  left: -9%;
  right: -9%;
  bottom: max(32%, 18vw);
  height: clamp(55px, 8.8vw, 155px);
  background:
    radial-gradient(ellipse 32% 23% at 61% 52%, #c3afe045, transparent 85%),
    radial-gradient(ellipse 33% 25% at 38% 73%, #8e86bf36, transparent 85%),
    radial-gradient(ellipse 29% 20% at 84% 31%, #bd9ed72f, transparent 90%);
  filter: blur(clamp(3px,.55vw,9px));
  animation-duration: 31s;
}
@keyframes valley-mist {
  from { transform: translateX(-5%) skewX(-7deg); opacity: .48; }
  to { transform: translateX(5%) skewX(5deg); opacity: .84; }
}

.campfire-filters { position: absolute; }
.grass-breeze {
  position: absolute;
  inset: 0;
  background: var(--campfire-art) center bottom / cover no-repeat;
}
.grass-breeze-west {
  filter: url(#grass-breeze-west);
  mask-image:
    radial-gradient(ellipse 20% 10% at 15% 95%, #000 18%, #000b 46%, transparent 76%),
    radial-gradient(ellipse 9% 5% at 38% 98%, #000 15%, transparent 79%);
}
.grass-breeze-east {
  filter: url(#grass-breeze-east);
  mask-image:
    radial-gradient(ellipse 17% 11% at 93% 96%, #000 14%, #000a 42%, transparent 75%),
    radial-gradient(ellipse 9% 5% at 64% 98%, #000 16%, transparent 74%);
}
@media (max-width: 680px) {
  .grass-breeze-west {
    mask-image: radial-gradient(ellipse 26% 8% at 12% 99%, #000 15%, transparent 78%);
  }
  .grass-breeze-east {
    mask-image: radial-gradient(ellipse 24% 8% at 88% 99%, #000 15%, transparent 78%);
  }
}

.campfire-motion { container-type: size; }
.campfire-mist {
  position: absolute;
  inset: auto auto 0 50%;
  width: max(100cqw, 177.68cqh);
  height: max(100cqh, 56.28cqw);
  transform: translateX(-50%);
  background: none;
  filter: none;
  opacity: .66;
  mix-blend-mode: screen;
  animation: none;
  mask-image:
    radial-gradient(ellipse 13% 2.6% at 48% 54.5%, #000b, transparent 96%),
    radial-gradient(ellipse 11% 2.3% at 65% 50.8%, #000a, transparent 98%),
    radial-gradient(ellipse 8% 1.8% at 73% 54%, #0008, transparent 96%);
}
.campfire-mist::before, .campfire-mist::after {
  position: absolute;
  top: 45%;
  left: 24%;
  width: 56%;
  height: 15%;
  content: "";
  background: url("/clouds.webp") 45% 65% / 125% 185%;
  filter: blur(3px);
}
.campfire-mist::before { animation: valley-drift-east 19s ease-in-out infinite alternate; }
.campfire-mist::after {
  background-position: 75% 40%;
  opacity: .43;
  animation: valley-drift-west 27s ease-in-out infinite alternate;
}
@keyframes valley-drift-east { from { transform: translateX(-12%); } to { transform: translateX(16%); } }
@keyframes valley-drift-west { from { transform: translateX(21%); } to { transform: translateX(-9%); } }
.clouds-arriving .travel-clouds {
  animation: none;
  opacity: 1;
  background-color: #d6bfebbe;
}
.clouds-arriving .travel-clouds::before { animation: none; transform: translate(4%, 3%); }
.clouds-arriving .travel-clouds::after { animation: none; transform: translate(-5%, -2%); }
.clouds-revealing .travel-clouds { animation: mist-clear 1000ms ease-out both; }
.clouds-revealing .travel-clouds::before { animation: mist-exit-east 1000ms ease-out both; }
.clouds-revealing .travel-clouds::after { animation: mist-exit-west 1000ms ease-out both; }
@keyframes mist-appear {
  0% { opacity: 0; background-color: transparent; }
  55% { opacity: 1; background-color: transparent; }
  100% { opacity: 1; background-color: #d6bfebbe; }
}
@keyframes mist-clear {
  0% { opacity: 1; background-color: #d6bfebbe; }
  42% { opacity: .93; background-color: transparent; }
  100% { opacity: 0; background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .clouds-arriving .travel-clouds, .clouds-leaving .travel-clouds { display: none; animation: none; }
}

.scene-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(12px, 2.5vh, 27px) clamp(18px, 3.5vw, 62px);
}
.scene-header.guild-mast {
  position: absolute;
  min-height: 0;
}
.scene-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(7px, 1.1vw, 14px);
  color: #f9d29d;
  font: 600 clamp(1.34rem, 2.9vw, 2.7rem)/1.05 Georgia, "Times New Roman", serif;
  white-space: nowrap;
  text-shadow: 0 1px 8px #201329;
}
.scene-brand img {
  display: block;
  flex: none;
  width: clamp(52px, 5.9vw, 90px);
  height: auto;
}

.guild-document:has(.guild-house[open]) { overflow: hidden; }
.guild-house {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #24172e;
  color: var(--paper);
}
.guild-house::backdrop { background: #1a1129; }
.guild-house[open] { animation: enter-house 280ms ease-out both; }
@keyframes enter-house {
  from { opacity: 0; }
  to { opacity: 1; }
}
.house-scene {
  --hall-width: max(100cqw, 177.68cqh);
  --hall-height: max(100cqh, 56.28cqw);
  position: absolute;
  inset: 0;
  container-type: size;
  background: linear-gradient(#180f26b0, #180f26e8), url("/guild-house.webp?v=4") center / cover;
}
.house-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.house-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(14px, 3vw, 48px);
  background: linear-gradient(#1a102cf0,transparent);
}
.house-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #c79b68;
  border-radius: 5px;
  background: linear-gradient(#553748,#39233d);
  color: #fff0d4;
  box-shadow: 0 2px 9px #1c1027b0;
  font: 600 1rem/1.2 Georgia, "Times New Roman", serif;
  text-align: center;
  cursor: pointer;
}
.house-button:is(:hover,:focus-visible) {
  background: linear-gradient(#725044,#5a354b);
  border-color: #ffe1a6;
}
.house-landmarks {
  position: absolute;
  inset: 0;
}
.house-landmarks a { color: inherit; }
.house-landmarks svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--hall-width);
  height: var(--hall-height);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.house-landmarks path {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 170ms ease-out, stroke 170ms ease-out, filter 170ms ease-out;
  pointer-events: fill;
  cursor: pointer;
}
.house-landmarks a:is(:hover,:focus-visible,:active) path {
  stroke: #ffe0a5;
  filter: drop-shadow(0 0 4px #eeb870);
}
.house-landmarks .landmark-label {
  position: absolute;
  top: calc(50% + var(--house-pin-y) * var(--hall-height));
  left: calc(50% + var(--house-pin-x) * var(--hall-width));
  transform: translate(-50%, -50%);
  transition: translate 170ms ease-out;
  white-space: nowrap;
}
.house-landmarks a:is(:hover,:focus-visible) span { translate: 0 -3px; }
.house-landmarks a:focus-visible { outline: none; }
.house-landmarks a:focus-visible span { outline: 2px solid #ffe4a7; outline-offset: 3px; }
.house-crest { --house-pin-x: .167; --house-pin-y: -.148; }
@media (min-width: 801px) and (min-aspect-ratio: 3/2) {
  .house-crest .landmark-label { transform: translate(-50%, -50%) skewY(-10deg) scaleX(.93); }
}
.house-board { --house-pin-x: .176; --house-pin-y: .029; }
.house-workshop { --house-pin-x: -.182; --house-pin-y: .097; }
.house-table { --house-pin-x: -.021; --house-pin-y: .275; }
.house-exit { --house-pin-x: .391; --house-pin-y: .076; }
.house-note {
  position: absolute;
  z-index: 1;
  top: 52%;
  left: 50%;
  width: min(550px, calc(100% - 28px));
  max-height: calc(100% - 140px);
  overflow: auto;
  overscroll-behavior: contain;
  transform: translate(-50%,-50%);
  padding: clamp(16px, 3vw, 35px);
  border: 1px solid #a46c43;
  border-radius: 7px;
  color: #49302a;
  background:
    radial-gradient(ellipse at 45% 18%,#ffedc8,transparent 84%),
    linear-gradient(120deg,#e0b780,#f1d6a0 44%,#d1a677);
  box-shadow: 0 0 0 100vmax #160d22a1, 0 12px 48px #201122c5;
}
.house-note[hidden] { display: none; }
.house-note h2 { font-size: clamp(2.5rem, 6vw, 3.8rem); margin-top: 14px; }
.house-note h3 { margin: 17px 0 0; font: 400 1.7rem var(--display); }
.house-note p, .house-note dd { color: #50382d; }
.note-return { min-height: 38px; font-size: .91rem; }
.board-example { border: 1px solid #9b684a; border-radius: 4px; }
.board-example summary { color: #4b2a3c; padding: 12px 16px; }
.board-example summary::after { color: #754553; }
.board-example dl { padding: 0 16px; }
.board-example dd { margin-bottom: 8px; }
.board-example small { display: block; padding: 0 16px 12px; }
.ledger-leaf {
  background: repeating-linear-gradient(0deg,transparent 0 30px,#94624928 30px 31px),
    linear-gradient(95deg,#d5a973,#f8e0b2 18%,#f4d9a9 85%,#d4a773);
}
.ledger-leaf form { display: grid; gap: 9px; margin-top: 21px; }
.ledger-leaf input {
  min-height: 44px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid #875638;
  background: #fff4d990;
  color: #332233;
}
.ledger-leaf form button { width: fit-content; }
.ledger-stamp:not([hidden]) {
  display: block;
  margin-left: auto;
  padding: 4px;
  border: 1px solid #46233d;
  border-radius: 50%;
  background: radial-gradient(#744478,#4c2548);
  box-shadow: 0 3px 5px #49273b88;
}
@media (max-width: 800px), (max-aspect-ratio: 17/10), (min-aspect-ratio: 19/10) {
  .house-scene {
    --hall-width: min(100cqw, 177.68cqh);
    --hall-height: min(100cqh, 56.28cqw);
  }
  .house-art { object-fit: contain; }
}
@media (max-width: 800px), (max-aspect-ratio: 3/2) {
  .house-header .scene-brand { font-size: clamp(1.12rem, 4vw, 1.38rem); }
  .house-landmarks {
    display: flex;
    align-content: end;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px 8px calc(max(16px, env(safe-area-inset-bottom)) + 57px);
    pointer-events: none;
  }
  .house-landmarks a { pointer-events: auto; }
  .house-landmarks .landmark-label { position: static; transform: none; padding-inline: 9px; font-size: .875rem; }
  .house-note { top: 55%; max-height: calc(100% - 115px); }
}
@media (prefers-reduced-motion: reduce) {
  .guild-house[open], .house-landmarks span, .house-landmarks path { animation: none; transition: none; }
  .house-landmarks a:is(:hover,:focus-visible) span { translate: none; }
}

.scene-actions { display: flex; gap: 9px; align-items: center; }
.scene-header { align-items: start; }
.scene-header > .house-button, .scene-header > .scene-actions { align-self: center; }
.preview-label {
  padding: 7px 9px;
  border: 1px solid #be9467;
  border-radius: 4px;
  color: #f8dcb4;
  background: #2b1d36;
  font-size: .84rem;
  white-space: nowrap;
}
.sign-in-page {
  min-height: 100svh;
  background: linear-gradient(#1d112ac9,#1d112a9c), url("/lantern-village-l-post.webp?v=3") center / cover fixed;
}
.sign-in-center { display: grid; place-items: center; padding: 18px 18px 50px; }
.sign-in-letter {
  width: min(100%, 460px);
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid #b28a64;
  border-radius: 7px;
  background: linear-gradient(135deg,#ffe7bd,#e9c28d);
  color: #49302a;
  box-shadow: 0 16px 50px #170d22bf;
}
.sign-in-letter > img { display: block; margin: 0 auto 12px; }
.sign-in-letter h1 { font-size: clamp(2.65rem, 7vw, 3.7rem); }
.sign-in-letter p { color: #543b36; }
.sign-in-letter form { display: grid; gap: 8px; }
.sign-in-letter input {
  min-height: 44px;
  padding: 7px 11px;
  margin-bottom: 8px;
  border: 1px solid #a57557;
  border-radius: 4px;
  background: #fff5df;
  color: #39263a;
}
.sign-in-letter button { margin-top: 7px; }
.destination-dialog {
  position: fixed;
  width: min(880px, calc(100% - 22px));
  max-width: none;
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 1px solid #af8061;
  border-radius: 8px;
  overflow: auto;
  background: linear-gradient(#47324a,#281a36);
  box-shadow: 0 12px 46px #190c2bc7;
}
.destination-dialog::backdrop { background: #1d13236e; }
.destination-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 17px;
  background: #32243ff7;
}
.destination-header .scene-brand { font-size: 1.35rem; }
.destination-header .scene-brand img { width: 45px; }
.destination-dialog .house-note {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  max-height: none;
  overflow: visible;
  margin: 12px;
  padding: clamp(19px, 4vw, 35px);
  box-shadow: none;
}
.destination-dialog .house-note h2 { margin: 0; }
.destination-dialog[open] { animation: enter-house 200ms ease-out both; }
.destination-scene {
  min-height: clamp(120px, 23svh, 215px);
  border-block: 1px solid #ba8e67;
  background: url("/lantern-village-l-post.webp?v=3") center / 100% auto no-repeat;
}
[data-destination="guild-board"] .destination-scene { background-size: 245% auto; background-position: 32% 48%; }
[data-destination="membership"] .destination-scene { background-position: 60% 29%; }
[data-destination="waitlist"] .destination-scene { background-size: 205% auto; background-position: 80% 78%; }
.membership-crest { float: right; width: clamp(58px, 12vw, 96px); height: auto; margin: 0 0 8px 11px; }
.member-destination { width: min(610px, calc(100% - 22px)); }
.pinned-example { padding: 11px 15px; border-left: 2px solid #976055; background: #fff3d29b; }
@media (max-width: 680px) {
  .scene-header .scene-actions { gap: 3px; flex-direction: column-reverse; align-self: start; align-items: end; }
  .scene-actions .member-sign-in { padding-inline: 8px; min-height: 34px; font-size: .88rem; white-space: nowrap; }
  .scene-actions .camp-return { padding-block: 5px; }
  .house-header .scene-actions { gap: 4px; flex-direction: column; align-items: end; }
  .destination-header .destination-close { font-size: .88rem; padding-inline: 9px; }
  .destination-header .scene-brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .destination-dialog[open] { animation: none; }
}
@media (max-aspect-ratio: 999/1000) {
  .campfire-page {
    --campfire-art: url("/campfire-mobile.webp?v=3");
    background-position: center bottom;
  }
  .campfire-motion { --fire-depth: max(25%, 44.4vw); }
  .campfire-mist, .grass-breeze { display: none; }
  .guild-page .village-art { object-position: center 58%; }
  .guild-page .village-scene::after {
    background: linear-gradient(#140d2785, transparent 38%, transparent 77%, #140d2778);
  }
}

.house-landmarks .house-mobile-outline { display: none; }

@media (max-aspect-ratio: 999/1000) {
  .house-scene { background: #24172e; }
  .house-art { object-fit: cover; object-position: 73% center; }
  .house-landmarks > a > svg:not(.house-mobile-outline) { display: none; }
  .house-landmarks .house-mobile-outline {
    display: block;
    left: 73%;
    width: max(100cqw, 56.28cqh);
    height: max(100cqh, 177.68cqw);
    transform: translate(-73%, -50%);
  }
}
/* The scene artwork keeps its original light values with a quieter palette. */
.campfire-page {
  background-image: linear-gradient(#201e2d17, #19182215), var(--campfire-art);
}
.village-art, .house-art, .destination-scene { filter: saturate(.82); }
.campfire-motion::before, .grass-breeze { filter: saturate(.88); }
.grass-breeze-west { filter: url(#grass-breeze-west) saturate(.88); }
.grass-breeze-east { filter: url(#grass-breeze-east) saturate(.88); }

.village-mobile-outlines { display: none; }
.village-links .landmark-label, .house-landmarks .landmark-label {
  background: linear-gradient(164deg,#fff2ca,#a37240 48%,#f5d591 73%,#684327);
  letter-spacing: .01em;
}
.village-links .landmark-label::before, .house-landmarks .landmark-label::before {
  inset: 3px;
  border: 1px solid #a4724e;
  background: repeating-linear-gradient(176deg,#a46c2a1e 0 1px,transparent 1px 5px),
    linear-gradient(#f5d9a3,#e1b578 70%,#c99a63);
}
.house-landmarks .landmark-label { filter: drop-shadow(0 2px 2px #291825); }
.member-destination { width: min(710px, calc(100% - 22px)); }
.member-items, .member-form { display: grid; gap: 12px; margin: 12px 0; }
.member-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.member-entry {
  padding: 13px 15px;
  border: 1px solid #b59069;
  border-left: 3px solid #79576e;
  background: #fff1d38c;
  border-radius: 5px;
}
.member-entry h3 { margin: 2px 0 7px; }
.member-entry p { margin: 4px 0 10px; overflow-wrap: anywhere; }
.member-entry small { color: #694852; }
.member-entry summary { color: #533650; font-weight: 700; cursor: pointer; }
.member-profile-card { display: flex; gap: 14px; align-items: center; margin-top: 15px; }
.member-profile-card img { flex: none; }
.member-profile-card a { color: #563552; text-decoration: underline; }
.member-form label { display: grid; gap: 4px; color: #5d3f51; font-weight: 600; min-width: 0; }
.member-destination input:not([type="checkbox"]), .member-destination select, .member-destination textarea {
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  color: #302036;
  background: #fff8e9;
  border: 1px solid #916b63;
  border-radius: 4px;
  font: inherit;
}
.member-destination textarea { resize: vertical; }
.member-form .house-button { justify-self: start; }
.member-entry button[aria-pressed="true"] { background: #6c4e57; }
.member-destination .project-task { display: flex; gap: 9px; align-items: center; }
.project-task input { width: 20px; height: 20px; flex: none; accent-color: #614263; }
.community-channels { display: grid; gap: 10px; }
.community-channels dt { font-weight: 700; }
.community-channels dd { margin: 2px 0 0; }
.member-feedback:empty { display: none; }
.member-local-note {
  padding: 10px 16px;
  text-align: center;
  background: #291c32;
  color: #f4d9b8;
  font-size: .85rem;
}

@media (min-aspect-ratio: 19/10) and (min-width: 801px) {
  .house-scene {
    --hall-width: max(100cqw, 177.68cqh);
    --hall-height: max(100cqh, 56.28cqw);
  }
  .house-art { object-fit: cover; }
}

@media (max-aspect-ratio: 999/1000) {
  .guild-page .village-links, .house-landmarks {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: end;
    gap: 7px;
    padding: 0 10px calc(max(16px, env(safe-area-inset-bottom)) + 56px);
    pointer-events: none;
  }
  .guild-page .village-links > a, .house-landmarks > a {
    position: static;
    display: block;
    width: auto;
    height: auto;
    transform: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
  }
  .guild-page .village-links .landmark-label, .house-landmarks .landmark-label {
    position: static;
    width: 100%;
    min-height: 46px;
    transform: none;
    padding-inline: 5px;
    text-align: center;
    font-size: clamp(.74rem, 3.5vw, .95rem);
    white-space: normal;
  }
  .village-mobile-outlines {
    display: block;
    position: absolute;
    top: 58%;
    left: 50%;
    width: max(100cqw,56.28cqh);
    height: max(100cqh,177.68cqw);
    transform: translate(-50%,-58%);
    pointer-events: none;
  }
  .village-mobile-outlines path {
    fill: transparent;
    stroke: transparent;
    stroke-width: 1.8px;
    vector-effect: non-scaling-stroke;
    pointer-events: fill;
    stroke-linejoin: round;
  }
  .village-mobile-outlines a:is(:hover,:active) path,
  .village-links:has(.village-board:is(:hover,:focus-visible)) .village-mobile-outlines .outline-board,
  .village-links:has(.village-room:is(:hover,:focus-visible)) .village-mobile-outlines .outline-room,
  .village-links:has(.village-gate:is(:hover,:focus-visible)) .village-mobile-outlines .outline-gate,
  .village-links[data-highlight="guild-board"] .village-mobile-outlines .outline-board,
  .village-links[data-highlight="membership"] .village-mobile-outlines .outline-room,
  .village-links[data-highlight="waitlist"] .village-mobile-outlines .outline-gate,
  .house-landmarks[data-highlight="member-profile"] .house-crest path,
  .house-landmarks[data-highlight="member-board"] .house-board path,
  .house-landmarks[data-highlight="member-projects"] .house-workshop path,
  .house-landmarks[data-highlight="member-community"] .house-table path {
    stroke: #ffe0a5;
    filter: drop-shadow(0 0 5px #eeb870);
  }
  .scene-header.guild-mast {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    justify-items: start;
  }
  .guild-mast .scene-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .guild-mast .scene-actions a { min-height: 40px; display: inline-grid; place-items: center; }
  .guild-page .village { padding-top: clamp(147px, 22svh, 220px); }
  .guild-page .village-heading h1 { font-size: clamp(2.65rem, 8vw, 4.2rem); }
  .house-art { object-position: 73% center; }
}

@media (max-width: 440px) {
  .member-fields { grid-template-columns: 1fr; }
}

@media (max-aspect-ratio: 999/1000) {
  .guild-page .village-links .landmark-label, .house-landmarks .landmark-label {
    position: relative;
    inset: auto;
    z-index: 1;
    border: 1px solid #bc8f59;
    border-radius: 7px;
    clip-path: none;
    background: linear-gradient(170deg, #3b293f, #211a2a);
    box-shadow: inset 0 1px #f4d3a325, 0 2px 6px #160c1cba;
    color: #f9e3bc;
    text-shadow: 0 1px #1b1025;
    font-weight: 600;
  }
  .guild-page .village-links .landmark-label::before, .house-landmarks .landmark-label::before {
    content: none;
  }
  .guild-page .village-links > a:is(:hover,:focus-visible) .landmark-label,
  .house-landmarks > a:is(:hover,:focus-visible) .landmark-label {
    border-color: #f4d2a1;
    background: linear-gradient(170deg, #55384d, #312337);
  }
}
.village-secret {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  outline: none;
}
.village-secret svg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max(100cqw,177.68cqh);
  height: max(100cqh,56.28cqw);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.village-secret path {
  stroke: transparent;
  stroke-width: 1.15;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: fill;
  cursor: pointer;
  transition: stroke 170ms ease-out;
}
.village-secret:is(:hover,:focus-visible,:active) path {
  stroke: #ffe0a5;
  filter: drop-shadow(0 0 5px #eeb870);
}
.village-secret .secret-portrait { display: none; }

.cave-page { background: #191624; color: #f9e5c8; }
.cave-scene { position: relative; min-height: 100svh; display: grid; align-content: end; }
.cave-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
}
.cave-mast {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  background: linear-gradient(#180f25ba,transparent);
}
.cave-controls {
  position: relative;
  width: min(440px, calc(100% - 36px));
  margin: 0 0 clamp(26px, 8vh, 85px) clamp(18px, 7vw, 125px);
}
.cave-note {
  margin-top: 10px;
  padding: 15px 20px;
  border: 1px solid #ba9163;
  border-radius: 6px;
  background: #251b2eea;
}
.cave-note h2 { margin: 0; color: #f5d5a0; font-size: 1.7rem; }
.cave-note p { margin: 7px 0 0; color: #f9e5c8; }

@media (max-aspect-ratio: 999/1000) {
  .village-secret .secret-wide { display: none; }
  .village-secret .secret-portrait {
    display: block;
    inset: 58% auto auto 50%;
    width: max(100cqw,56.28cqh);
    height: max(100cqh,177.68cqw);
    transform: translate(-50%,-58%);
  }
  .cave-art { object-position: 60% center; }
  .cave-controls { margin: 0 18px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .village-secret path { transition: none; }
}

.cave-scene { --cave-frame-x: 59%; container-type: size; height: 100svh; overflow: hidden; }
.cave-art { object-position: var(--cave-frame-x) center; }
.cave-controls { z-index: 2; }
.cave-npc {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.cave-npc svg {
  position: absolute;
  top: 50%;
  left: var(--cave-frame-x);
  width: max(100cqw, 177.68cqh);
  height: max(100cqh, 56.28cqw);
  transform: translate(calc(-1 * var(--cave-frame-x)), -50%);
  pointer-events: none;
}
.cave-npc path {
  fill: transparent;
  stroke: transparent;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  pointer-events: fill;
  cursor: pointer;
}
.cave-npc:is(:hover,:focus-visible) path:not(.cave-marker-hit) {
  stroke: #ffdfa3;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px #d69c53);
}
.cave-npc:focus-visible { outline: none; }
.cave-note { max-height: min(60svh, 430px); overflow-y: auto; }
.cave-note-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cave-close {
  width: 44px;
  height: 44px;
  border: 1px solid #a47a55;
  border-radius: 5px;
  background: #38253a;
  color: #ffe8c3;
  font-size: 1.45rem;
}
.cave-line { min-height: 3em; }
.cave-line:focus { outline: none; }
.cave-replies { display: grid; gap: 6px; margin-top: 15px; }
.cave-replies button {
  min-height: 44px;
  border: 1px solid #916a53;
  border-radius: 4px;
  padding: 8px 12px;
  text-align: left;
  background: #39283c;
  color: #fce5c1;
  font: inherit;
  cursor: pointer;
}
.cave-replies button:is(:hover,:focus-visible) { background: #62404b; border-color: #f5cd91; }
.cave-page:has(.cave-note:not([hidden])) .cave-talk { display: none; }

@media (max-aspect-ratio: 999/1000) {
  .cave-scene { --cave-frame-x: 66%; }
  .cave-mast .house-button { padding-inline: 8px; font-size: .85rem; }
  .cave-note { padding: 12px 15px; }
}

.cave-npc .cave-marker-hit { stroke-opacity: 0; }
.cave-controls { width: min(840px, calc(100% - 36px)); }
.cave-controls:has(.cave-note:not([hidden])) {
  position: fixed;
  inset: auto 0 0;
  width: auto;
  margin: 0;
  padding: 0 clamp(12px, 5vw, 90px) max(10px, env(safe-area-inset-bottom));
}
.cave-note {
  position: relative;
  padding: 18px clamp(14px, 2.5vw, 30px);
  max-height: min(58svh, 470px);
  background: #2d2548ed;
  border-color: #d79e71;
}
.cave-note-heading { justify-content: start; }
.cave-close { margin-left: auto; }
.cave-portrait {
  width: clamp(52px, 7vw, 76px);
  height: auto;
  border: 2px solid #d79e71;
  border-radius: 6px;
}
.cave-next { margin-top: 8px; }
.cave-next[hidden], .cave-note [hidden] { display: none; }
.cave-status:empty { display: none; }
.cave-reward { padding-block: 12px 0; }
.cave-reward code { color: #ffdfa3; user-select: all; }
.cave-banner-reward {
  padding: 18px;
  border: 1px solid #d79e71;
  background: linear-gradient(90deg,#251d3ae8,#251d3a80), url("/nelly-cave.webp?v=2") left 47% / cover;
  color: #ffe4b4;
}
.cave-banner-reward small { display: block; }
.woods-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(ellipse at 45% 20%, #43375a, #191624 75%);
  color: #f9e5c8;
}
.woods-tracker {
  width: min(500px, 100%);
  padding: clamp(18px,5vw,38px);
  border: 1px solid #d79e71;
  border-radius: 7px;
  background: #2d2548;
}
.woods-tracker h1 { font: 600 clamp(2rem,8vw,3.8rem)/1 var(--display); }
.woods-tracker progress { width: 100%; accent-color: #e7b779; }

html.entering-cave::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  animation: cave-darken 650ms ease-in forwards;
}
.cave-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  pointer-events: none;
}
.cave-ready .cave-page::after { animation: cave-lighten 650ms ease-out forwards; }
@keyframes cave-darken { from { opacity: 0; } to { opacity: 1; } }
@keyframes cave-lighten { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  html.entering-cave::after, .cave-ready .cave-page::after { animation-duration: 1ms; }
}

.cave-quest-tracker {
  padding: 10px 14px;
  border: 1px solid #d79e71;
  border-radius: 5px;
  color: #ffe4b8;
  background: #211b32ed;
}

@media (max-aspect-ratio: 999/1000) {
  .cave-art { object-position: center top; }
  .cave-mast { padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 10px; }
  .cave-mast .scene-brand { gap: 5px; font-size: 1.15rem; }
  .cave-mast .scene-brand img { width: 43px; }
  .cave-mast .house-button { min-height: 43px; padding: 7px 10px; font-size: .85rem; }
  .cave-controls:has(.cave-note:not([hidden])) {
    padding: 0 10px calc(max(10px, env(safe-area-inset-bottom)) + 55px);
  }
  .cave-note {
    max-height: 47svh;
    margin-top: 0;
    padding: 10px 12px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .cave-note-heading { gap: 10px; }
  .cave-portrait { width: 45px; }
  .cave-note h2 { font-size: 1.45rem; }
  .cave-close { width: 44px; height: 44px; flex: none; }
  .cave-line { font-size: 1rem; line-height: 1.45; margin-top: 9px; }
  .cave-replies { gap: 6px; margin-top: 10px; }
  .cave-replies button { min-height: 46px; font-size: 1rem; line-height: 1.3; }
  .cave-quest-tracker { margin: 6px 0 0; font-size: .875rem; }
}
@media (max-height: 520px) {
  .cave-controls:has(.cave-note:not([hidden])) { padding-bottom: 10px; padding-right: 76px; }
  .cave-note { max-height: 67svh; }
  .cave-portrait { width: 42px; }
}

.village-secret:is(:hover,:focus-visible,:active) path {
  stroke: #edc78f;
  filter: drop-shadow(0 0 3px #eeb87088);
}
