
/* Hero replaces the thick site event banner on this page. */
body:has(.event-hero) .site-event-banner {
  display: none;
}
/* Pull the event hero flush under the site header. */
body:has(.event-hero) .page {
  padding-top: 0.25rem;
}
.community {
  display: grid;
  gap: 0.85rem;
  padding: 0 0 1.25rem;
}
.community:has(.event-hero) {
  gap: 0.65rem;
}
.event-hero {
  --event-panel-w: 19rem;
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, 64rem);
  min-height: 22rem;
  margin: 0 auto;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #c47a2a 35%, #2a1c10);
  background:
    linear-gradient(120deg, color-mix(in srgb, #3a2210 70%, #000), color-mix(in srgb, #1a1008 90%, #000));
}
.event-hero--halloween {
  border-color: color-mix(in srgb, #8a3a12 50%, #2a1018);
}
.event-hero--yule {
  border-color: color-mix(in srgb, #2a6a4a 45%, #1a2018);
}
.event-hero--valentine {
  border-color: color-mix(in srgb, #a04868 45%, #2a1018);
}
.event-hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--event-panel-w);
  gap: 0;
  min-height: 22rem;
  align-items: stretch;
}
.event-hero__art {
  min-height: 22rem;
  overflow: hidden;
  box-shadow: none;
}
/* Right rim is covered by the sidebar so the picture butts against it. */
.event-hero__art.pixel-frame::after,
.event-hero__art > .pixel-frame__fx {
  clip-path: inset(0 var(--frame-rim) 0 0);
}
.event-hero__master {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: center 32%;
}
.event-hero__panel {
  box-sizing: border-box;
  position: relative;
  z-index: 6;
  width: var(--event-panel-w);
  margin-left: calc(-1 * var(--frame-rim));
  min-height: 100%;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 0.55rem 0.65rem 0.7rem;
  overflow: visible;
  background:
    linear-gradient(180deg, color-mix(in srgb, #5a3a1c 58%, #1a1008), color-mix(in srgb, #2a1a0c 90%, #000));
  border-left: 1px solid color-mix(in srgb, #8a5a28 40%, transparent);
  color: #f0e4c8;
}
.event-hero__village {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #c8b89a;
  line-height: 1.2;
}
.event-hero__meter {
  height: 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, #140a04 80%, #000);
  border: 1px solid color-mix(in srgb, #6a4a22 55%, transparent);
  overflow: hidden;
}
.event-hero__meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8a5a18, #e0b03a);
}
.event-play {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.event-hero__h {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e0b03a;
  text-align: center;
}
.event-hero__h--title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.event-hero__row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}
.event-hero__steer,
.event-hero__pack {
  margin: 0.35rem 0 0;
  line-height: 1.35;
}
.event-hero__drops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.event-hero__drop {
  box-sizing: border-box;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, #3a2814 70%, #000), color-mix(in srgb, #1a1008 88%, #000));
  border: 1px solid color-mix(in srgb, #8a6a3a 55%, #2a1c10);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #f0e4c8 12%, transparent);
}
.event-hero__drop-svg {
  display: block;
  image-rendering: pixelated;
}
.event-hero__form--roost {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
}
.event-hero__go {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border: 2px solid #0e0805;
  background: #3d9a4a;
  color: #f4fff4;
  font: 700 0.85rem var(--font-pixel-body, inherit);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.event-hero__go--claim {
  background: #e0b03a;
  color: #1a1008;
}
.event-hero__go--cap,
.event-hero__go--busy {
  background: color-mix(in srgb, #6a5030 65%, #1a1008);
  color: #c8b89a;
  cursor: default;
}
.event-hero__go-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgb(0 0 0 / 28%);
  pointer-events: none;
}
.event-hero__go > span {
  position: relative;
  font-variant-numeric: tabular-nums;
}
.event-hero__favors {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.event-hero__favor {
  font-size: 0.74rem;
  color: #e8dcc4;
  line-height: 1.2;
}
.event-hero__favor-name {
  display: block;
}
.event-hero__favor em {
  font-style: normal;
  color: #b8a88c;
}
.event-hero__favor--ok em {
  color: #9bd96a;
}
.event-hero__bar {
  height: 5px;
  margin-top: 0.15rem;
  background: color-mix(in srgb, #140a04 80%, #000);
  border: 1px solid color-mix(in srgb, #6a4a22 55%, transparent);
  overflow: hidden;
}
.event-hero__bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8a5a18, #e0b03a);
}
.event-hero__favor-btn.btn,
.event-hero__tribute-btn.btn {
  --btn-pad-x: 0.7rem;
  --btn-depth-rest: 5px;
  justify-self: start;
  padding: 0.22rem var(--btn-pad-x);
  font-size: 0.72rem;
}
.event-hero__hint {
  margin: 0;
  font-size: 0.64rem;
  text-align: center;
}
.event-hero__tribute-grid {
  display: grid;
  gap: 0.35rem;
}
.event-hero__egg {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.4rem;
  background: color-mix(in srgb, #1a1008 55%, transparent);
  border: 1px dashed color-mix(in srgb, #6a4a22 55%, transparent);
  font-size: 0.7rem;
  color: #c8b89a;
}
.event-hero__egg .event-hero__bar {
  flex: 1;
  margin: 0;
}
.event-hero__egg--got {
  border-style: solid;
  border-color: #e0b03a;
  color: #e0b03a;
}
.event-hero__tribute {
  display: grid;
  gap: 0.22rem;
  padding: 0.3rem 0.35rem;
  background: color-mix(in srgb, #1a1008 70%, #000);
  border: 1px solid color-mix(in srgb, #6a4a22 50%, transparent);
  border-radius: 0.3rem;
}
.event-hero__tribute--done {
  opacity: 0.65;
}
.event-hero__tribute-h {
  margin: 0;
  font-size: 0.72rem;
  color: #f0e4c8;
}
.event-hero__slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.22rem;
}
.event-hero__slot {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  min-height: 2.15rem;
  padding: 0.18rem 0.1rem;
  border-radius: 0.22rem;
  background: color-mix(in srgb, #2a1a0c 80%, #000);
  border: 1px solid color-mix(in srgb, #6a4a22 55%, transparent);
  font-size: 0.55rem;
  line-height: 1.1;
  color: #d8cbb8;
}
.event-hero__slot .event-hero__drop-svg {
  width: 16px;
  height: 16px;
}
.event-hero__slot--ok {
  border-color: color-mix(in srgb, #3d9a4a 55%, #6a4a22);
}
.event-hero__slot--empty {
  opacity: 0.35;
}
.event-hero__slot-qty {
  color: #b8a88c;
}
.event-hero__lock {
  margin: 0;
  font-size: 0.62rem;
}
.event-hero__form {
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 56rem) {
  .event-hero {
    max-width: 100%;
    min-height: 0;
  }
  .event-hero__stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .event-hero__art,
  .event-hero__master {
    min-height: min(62vh, 28rem);
    height: min(62vh, 28rem);
  }
  .event-hero__art.pixel-frame::after,
  .event-hero__art > .pixel-frame__fx {
    clip-path: inset(0 0 var(--frame-rim) 0);
  }
  .event-hero__panel {
    width: 100%;
    max-width: none;
    margin: calc(-1 * var(--frame-rim)) 0 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, #8a5a28 40%, transparent);
  }
}
@media (max-width: 45rem) {
  body:has(.event-hero) .page {
    padding-top: 0.15rem;
  }
  .event-hero__art,
  .event-hero__master {
    min-height: min(58vh, 24rem);
    height: min(58vh, 24rem);
  }
  .event-hero__panel {
    max-width: 100%;
  }
}
.community__head {
  display: grid;
  gap: 0.35rem;
}
.community__title {
  margin: 0;
  font-size: 1.35rem;
  color: #f0e4c8;
}
.community__lead {
  margin: 0;
  max-width: 42rem;
}
.community__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}
/* Global .btn. White ink stays on the current tab and the Oracle button. */
.community__tab.btn {
  color: #fff;
  --btn-ink: #fff;
}
.community__panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem 1rem;
  background: color-mix(in srgb, #120c08 88%, #000);
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 18%, #2a1c10);
  border-radius: 0.45rem;
}
.community__block-h {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e0b03a;
}
.community-board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: #fff;
}
.community-board th,
.community-board td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, #5a4020 45%, transparent);
  text-align: left;
  color: #fff;
}
.community-board th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.community-board__rank {
  width: 2.5rem;
  color: #fff;
  font-weight: 800;
}
.community-board a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.community-board a:hover,
.community-board a:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}
.community-empty {
  color: #fff;
}
.community-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.55rem;
}
.community-member {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, #24180e 78%, #000);
  border: 1px solid color-mix(in srgb, #6a4a22 55%, transparent);
  border-radius: 0.4rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.community-member:hover,
.community-member:focus-visible {
  border-color: color-mix(in srgb, #e0b03a 55%, #6a4a22);
  background: color-mix(in srgb, #2e2012 82%, #000);
  outline: none;
}
.community-member__name {
  font-weight: 800;
  color: #f0e4c8;
}
.community-member__meta {
  font-size: 0.8rem;
  color: #b8a88c;
}
.community-card {
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
  padding: 1rem 1.1rem 1.15rem;
  background: color-mix(in srgb, #120c08 88%, #000);
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 22%, #2a1c10);
  border-radius: 0.5rem;
}
.community-card__name {
  margin: 0;
  font-size: 1.25rem;
  color: #f0e4c8;
}
.community-card__stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: #d8cbb8;
}
.community-card__stats strong {
  color: #f0e4c8;
}
.community-empty {
  margin: 0;
  color: #b8a88c;
}
@media (max-width: 45rem) {
  .community-members {
    grid-template-columns: 1fr;
  }
}

/* Offering tab · full-bleed roost calendar. The painter is offering-calendar.js. */
html body:has(.offering-viewport) .site-layout {
  width: 100%;
  max-width: none;
  margin: 0;
}
html body:has(.offering-viewport) .site-layout > .page {
  padding: 0;
}
body:has(.offering-viewport) .site-event-banner {
  display: none;
}
.offering-viewport {
  width: 100%;
}
.offering {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #10081c;
}
.offering__scene,
.offering__fx,
.offering__birdwrap {
  position: absolute;
  left: 0;
  top: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.offering__scene { z-index: 0; }
.offering__birdwrap {
  z-index: 1;
  animation: offering-bob 1.2s steps(2, end) infinite alternate;
}
.offering__birdwrap.hop { animation: offering-hop 0.5s steps(7, end) 1; }
.offering__birdwrap { cursor: pointer; }
.offering__bird {
  display: block;
  cursor: pointer;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.offering__fx { z-index: 2; pointer-events: none; }
@keyframes offering-bob {
  from { transform: translateY(0); }
  to { transform: translateY(calc(var(--px, 3px) * -1)); }
}
@keyframes offering-hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(calc(var(--px, 3px) * -4)); }
  100% { transform: translateY(0); }
}
/* Lodge wood v2 chrome · hand-in panel is not an activity timer card. */
.offering__hud.pixel-frame,
.offering__panel.pixel-frame {
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}
.offering__hud.pixel-frame::after,
.offering__panel.pixel-frame::after {
  /* Canvas wood only · CSS two-tone stand-in removed (flat until paint). */
  z-index: 4;
}
.offering__hud {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  left: 0.5rem;
  max-width: min(36rem, calc(100% - 30rem));
  display: grid;
  gap: 0.35rem;
  /* Set: card. */
  --frame-pad-y: 0.4rem;
  --frame-pad-x: 0.55rem;
  --frame-pad-b: 0.5rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, #3a2414 72%, #120808), color-mix(in srgb, #1a1008 92%, #000));
  color: var(--ink, #f6e6c8);
}
.offering__hud-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  min-width: 0;
}
.offering__title {
  margin: 0;
  font-family: var(--font-pixel-body);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, #f6e6c8);
  white-space: nowrap;
}
.offering__hud-rule {
  flex: 0 0 auto;
  width: 2px;
  align-self: stretch;
  min-height: 1.15rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #f0d080 20%, transparent),
    #e0b03a 18%,
    #ffd34d 50%,
    #e0b03a 82%,
    color-mix(in srgb, #f0d080 20%, transparent)
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, #8a5a18 45%, transparent);
}
.offering__month {
  display: inline-flex;
  min-width: 0;
}
.offering__month-select {
  max-width: 11rem;
  padding: 0.28rem 0.45rem;
  border: 2px solid color-mix(in srgb, #e0b03a 70%, #2a1c10);
  background: #170e0a;
  color: #f6e6c8;
  font: 700 0.85rem var(--font-pixel-body, inherit);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.offering__month-select:focus-visible {
  outline: 2px solid var(--accent, #ff9a1f);
  outline-offset: 2px;
}
.offering__hud .community__tabs {
  position: relative;
  z-index: 2;
  gap: 0.35rem;
}
.offering__panel {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  right: 0.55rem;
  bottom: 0.55rem;
  box-sizing: border-box;
  width: min(30rem, calc(100% - 1.2rem));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Set: flush (frame-set registry). */
  background:
    linear-gradient(180deg, color-mix(in srgb, #4a3018 55%, #1a1008), color-mix(in srgb, #1c120a 94%, #000));
  color: var(--ink, #f6e6c8);
}
@media (min-width: 1100px) {
  .offering__panel {
    width: min(34rem, calc(100% - 1.2rem));
  }
  .offering__hud {
    max-width: min(36rem, calc(100% - 36rem));
  }
}
.offering__panel-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 1rem;
}
/* Offering Calendar demo panel · pa (roost+favors) / pb (tribute+egg). */
.event-play {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.event-play__pa,
.event-play__pb {
  min-width: 0;
}
.offering__panel .event-hero__h {
  margin: 0.7rem 0 0.25rem;
  padding-top: 0.55rem;
  border-top: 2px solid color-mix(in srgb, #8a6a3a 55%, #2a1c10);
  color: var(--accent, #ff9a1f);
  letter-spacing: 0.12em;
  text-align: center;
  font-size: 0.95rem;
}
.offering__panel .event-hero__h--title {
  margin: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}
.offering__panel .event-hero__row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
  margin-top: 0.5rem;
}
.offering__panel .event-hero__row > .event-hero__go--busy {
  flex: 1;
  min-width: 0;
}
.offering__panel .event-hero__drops {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: none;
}
.offering__panel .event-hero__drop {
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #170e0a;
  border: 2px solid color-mix(in srgb, #8a6a3a 70%, #2a1c10);
}
.offering__panel .event-hero__form--roost {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.offering__panel .event-hero__form--roost-finish {
  flex: 0 0 auto;
  margin: 0;
}
.offering__panel .event-hero__go--finish {
  width: auto;
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem;
  background: #6a8ab0;
  color: #0e141c;
}
.offering__panel .event-hero__go {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 3px solid #0e0805;
  background: var(--accent, #ff9a1f);
  color: #1a1008;
  font: 700 1.05rem var(--font-pixel-body, inherit);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    inset 0 3px 0 rgb(255 255 255 / 35%),
    inset 0 -4px 0 rgb(0 0 0 / 25%);
  cursor: pointer;
}
.offering__panel .event-hero__go:disabled {
  cursor: default;
}
.offering__panel .event-hero__go--claim {
  background: #9bd96a;
}
.offering__panel .event-hero__go--cap {
  background: color-mix(in srgb, #6a5030 70%, #1a1008);
  color: #c8b89a;
  box-shadow: none;
}
.offering__panel .event-hero__go-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgb(0 0 0 / 28%);
  pointer-events: none;
}
.offering__panel .event-hero__go > span {
  position: relative;
  font-variant-numeric: tabular-nums;
}
.offering__panel .event-hero__steer,
.offering__panel .event-hero__pack {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #b8a88c;
}
.offering__panel .event-hero__favors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.4rem;
  list-style: none;
  padding: 0;
}
.offering__panel .event-hero__favor {
  margin: 0;
  min-width: 0;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-size: 0.92rem;
  color: #f0e4c8;
}
.offering__panel .event-hero__favor-name {
  display: block;
  font-size: 0.88rem;
  line-height: 1.15;
  min-height: 2.3em;
  color: #f0e4c8;
}
.offering__panel .event-hero__favor em {
  display: block;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  margin-top: 0.15rem;
  color: #b8a88c;
}
.offering__panel .event-hero__favor--ok em {
  color: #9bd96a;
}
.offering__panel .event-hero__bar {
  height: 7px;
  margin-top: 0.2rem;
  background: #170e0a;
  border: 1px solid color-mix(in srgb, #8a6a3a 55%, #2a1c10);
}
.offering__panel .event-hero__bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent, #ff9a1f);
}
.offering__panel .event-hero__hint {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
  color: #b8a88c;
}
.offering__panel .event-hero__tribute-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.offering__panel .event-hero__tribute {
  margin: 0;
  padding: 0.5rem;
  border-radius: 0;
  background: color-mix(in srgb, #33211a 88%, #000);
  border: 2px solid color-mix(in srgb, #8a6a3a 55%, #2a1c10);
  box-shadow: none;
}
.offering__panel .event-hero__tribute--done {
  border-color: var(--accent, #ff9a1f);
  box-shadow:
    0 0 0 1px var(--accent, #ff9a1f),
    inset 0 0 14px color-mix(in srgb, var(--accent, #ff9a1f) 28%, transparent);
  background: linear-gradient(
    color-mix(in srgb, #33211a 88%, #000),
    color-mix(in srgb, var(--accent, #ff9a1f) 12%, #33211a)
  );
}
.offering__panel .event-hero__tribute--locked {
  opacity: 0.55;
}
.offering__panel .event-hero__tribute-h {
  margin: 0 0 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #f0e4c8;
}
.offering__panel .event-hero__tribute-h em {
  font: 500 0.78rem var(--font-body, inherit);
  font-style: normal;
  color: #b8a88c;
}
.offering__panel .event-hero__tribute--done .event-hero__tribute-h em {
  color: var(--accent, #ff9a1f);
  font-weight: 700;
}
.offering__panel .event-hero__slots {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), 1fr);
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.offering__panel .event-hero__slot {
  box-sizing: border-box;
  min-width: 0;
  padding: 0.3rem 0 0.15rem;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  border-radius: 0;
  background: #170e0a;
  border: 2px solid color-mix(in srgb, #8a6a3a 55%, #2a1c10);
  font: 700 0.78rem var(--font-pixel-body, inherit);
  color: #b8a88c;
}
.offering__panel .event-hero__slot--ok {
  border-color: #9bd96a;
  color: #9bd96a;
}
.offering__panel .event-hero__slot--empty {
  visibility: hidden;
}
.offering__panel .event-hero__slot-qty {
  line-height: 1;
}
.offering__panel .event-hero__egg {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding: 0.45rem 0.55rem;
  background: #170e0a;
  border: 2px dashed color-mix(in srgb, #8a6a3a 55%, #2a1c10);
  font-size: 0.9rem;
  color: #c8b89a;
}
.offering__panel .event-hero__egg .event-hero__bar {
  flex: 1;
  margin: 0;
}
.offering__panel .event-hero__egg span {
  flex: none;
}
.offering__panel .event-hero__egg--got {
  border-style: solid;
  border-color: var(--accent, #ff9a1f);
  color: var(--accent, #ff9a1f);
  font-weight: 700;
}
.offering__panel .event-hero__favor-btn.btn,
.offering__panel .event-hero__tribute-btn.btn {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
}
.offering-item-icon,
.offering__panel .event-hero__drop-svg {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
@media (min-width: 761px) and (max-aspect-ratio: 13/10) {
  .offering__panel .event-play {
    display: grid;
    grid-template-columns: minmax(15rem, 0.75fr) 2fr;
    gap: 0 1.5rem;
    align-items: start;
  }
  .offering__panel .event-play__pb .event-hero__h:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}
.offering__toast {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.85rem;
  background: #1a1008;
  border: 2px solid var(--accent, #ff9a1f);
  color: var(--ink, #f6e6c8);
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
}
.offering__toast.on { opacity: 1; }
@media (max-width: 760px), (max-aspect-ratio: 13/10) {
  .offering__hud {
    max-width: calc(100% - 1rem);
  }
  .offering__month-select {
    max-width: 9.5rem;
    font-size: 0.78rem;
  }
  .offering__panel {
    left: 0.5rem;
    right: 0.5rem;
    top: auto;
    width: auto;
    max-height: 48vh;
    bottom: 0.5rem;
  }
  .offering__panel .event-hero__drop {
    width: 2.4rem;
    height: 2.4rem;
  }
  .offering__panel .event-hero__favor-name {
    font-size: 0.8rem;
    min-height: 2.1em;
  }
  .offering__panel .event-hero__go {
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
  }
  .offering__toast {
    bottom: calc(48vh + 0.75rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .offering__birdwrap,
  .offering__birdwrap.hop { animation: none; }
}
@media (max-width: 45rem) {
  html:has(.offering-viewport),
  html body:has(.offering-viewport) {
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
  }
  html body:has(.offering-viewport) {
    height: 100dvh;
  }
  html body:has(.offering-viewport) .site-layout {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  html body:has(.offering-viewport) .site-footer {
    position: fixed;
    left: 0;
    right: 0;
  }
  html body:has(.offering-viewport) .site-layout > .page {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
}


html body:has(.village-viewport) .site-layout {
  width: 100%;
  max-width: none;
  margin: 0;
}
html body:has(.village-viewport) .site-layout > .page {
  padding: 0;
}
.village-viewport {
  width: 100%;
}
.village {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.village__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #0b1a12;
  touch-action: pan-x pan-y;
}
.village__scroller {
  position: absolute;
  inset: 0;
  overflow: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.village__scroller::-webkit-scrollbar {
  display: none;
}
.village__scroller--pan-x {
  overflow-x: auto;
}
.village__scroller--pan-y {
  overflow-y: auto;
}
.village__canvas {
  display: block;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
/* Title + section buttons, top-left inside the scene. */
.village__hud {
  position: absolute;
  z-index: 3;
  top: 0.6rem;
  left: 0.6rem;
  max-width: calc(100% - 1.2rem);
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, #c47a2a 40%, #2a1c10);
  background: rgb(18 12 8 / 78%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 40%);
  backdrop-filter: blur(2px);
}
.village__title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0e4c8;
  text-shadow: 0 1px 0 #1a1008;
}
.village__hud .community__tabs {
  gap: 0.4rem;
}
.village__tip {
  position: absolute;
  z-index: 4;
  max-width: 12rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  color: #f4ead6;
  background: rgba(10, 8, 6, 0.86);
  border: 1px solid rgba(196, 122, 42, 0.5);
  pointer-events: none;
  transform: translate(-50%, -130%);
}
.village__tip[hidden] {
  display: none;
}
/* Keyboard / screen-reader route to the same buildings: hidden until focused. */
.village__links {
  position: absolute;
  z-index: 3;
  left: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 1.2rem);
}
.village__links a:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.village__links a:focus-visible {
  padding: 0.25rem 0.6rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  color: #f4ead6;
  background: rgba(10, 8, 6, 0.9);
  border: 1px solid rgba(196, 122, 42, 0.7);
}
/* The normal "N villagers here" line is screen-reader only; problems
   (offline, village full, session ended) switch the class off and show a pill. */
.village__status {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  max-width: calc(100% - 1.2rem);
  margin: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 0.4rem;
  text-align: center;
  color: #f4ead6;
  background: rgba(10, 8, 6, 0.86);
  border: 1px solid rgba(196, 122, 42, 0.5);
}
.village__status--quiet {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Phones: other page-viewport pages fall back to normal document scroll; the
   village keeps the locked layout (header, scene, pinned footer) so the scene
   always has a definite height. Extra "html" lifts these above those rules. */
@media (max-width: 45rem) {
  html:has(.village-viewport),
  html body:has(.village-viewport) {
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
  }
  html body:has(.village-viewport) {
    height: 100dvh;
  }
  html body:has(.village-viewport) .site-layout {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  html body:has(.village-viewport) .site-footer {
    position: fixed;
    left: 0;
    right: 0;
  }
  html body:has(.village-viewport) .site-layout > .page {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  .village__hud {
    top: 0.4rem;
    left: 0.4rem;
    padding: 0.35rem 0.45rem 0.45rem;
    gap: 0.3rem;
  }
  .village__title {
    font-size: 0.8rem;
  }
  .village__hud .community__tab.btn {
    min-height: 2rem;
  }
  .village__hud .community__tabs {
    gap: 0.3rem;
  }
  .village__tip {
    font-size: 0.7rem;
  }
}
/* Short windows (phone on its side): title and buttons share one slim row. */
@media (max-height: 32.5rem) {
  .village__hud {
    grid-auto-flow: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
  /* Title stays in the page for assistive tech but stops covering the town. */
  .village__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .village__hud {
    padding: 0.25rem 0.4rem;
  }
  .village__hud .community__tab.btn {
    min-height: 1.9rem;
  }
}

/* ---- Phone held upright: no scrolling anywhere ----
   The scene is arranged to fit the screen (phone.js) and a list sheet sits under
   it. The sheet only peeks (handle, label, Boards billboard); tapping the handle
   opens the rest, which is sized to fit without scrolling. */
.village__sheet {
  display: none;
}
.village__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 45rem) and (orientation: portrait) {
  /* One compact footer line instead of the tall one. */
  html body:has(.village-viewport) .site-footer,
  html body:has(.village-viewport) .site-footer__inner {
    height: 2.1rem;
  }
  html body:has(.village-viewport) .site-layout {
    padding-bottom: 2.1rem;
  }
  html body:has(.village-viewport):has(.nav-rail) .site-layout {
    padding-bottom: calc(2.1rem + var(--tab-h));
  }
  html body:has(.village-viewport) .site-footer__inner {
    gap: 0.5rem;
    width: calc(100% - 1.25rem);
  }
  html body:has(.village-viewport) .site-footer__copy {
    font-size: 0.7rem;
    white-space: nowrap;
  }
  html body:has(.village-viewport) .site-footer__legal {
    flex-wrap: nowrap;
    gap: 0 0.7rem;
    white-space: nowrap;
  }
  html body:has(.village-viewport) .site-footer__legal a {
    font-size: 0.7rem;
  }
  /* The tabs and building links move into the list; the title stays for screen readers. */
  .village__hud {
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: none;
    box-shadow: none;
  }
  .village__hud .community__tabs,
  .village__links,
  .village__tip {
    display: none;
  }
  .village__sheet {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: calc(100% - 2.5rem);
    overflow: hidden;
    box-sizing: border-box;
    background: #1a120b;
    color: #f0e4c8;
    border-top: 3px solid #6b4a2a;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 45%);
  }
  .village__sheet:not(.is-open) {
    transform: translateY(110%);
    visibility: hidden;
    pointer-events: none;
  }
  .btn.village__sheet-fab {
    display: inline-flex;
    position: absolute;
    z-index: 7;
    right: 0.7rem;
    bottom: 0.7rem;
  }
  .village__stage.is-sheet-open .village__sheet-fab { display: none; }
  .village__tip {
    z-index: 4;
  }
  .village__stage.is-sheet-open::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgb(6 10 8 / 45%);
    pointer-events: none;
  }
  .village__sheet-handle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1.7rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    touch-action: none;
  }
  .village__sheet-grip {
    width: 2.5rem;
    height: 4px;
    border-radius: 2px;
    background: #6b5a44;
  }
  .village__sheet-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.9rem 0.5rem;
  }
  .village__sheet-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d9c9a6;
  }
  .village__presence {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 1.6rem;
    padding: 0 0.65rem;
    border-radius: 0.8rem;
    background: #241a10;
    border: 1px solid #5a4630;
    font-size: 0.75rem;
  }
  .village__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fd08c;
    box-shadow: 0 0 8px #6fd08c;
  }
  /* The Boards billboard */
  .village__board {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0.75rem 0.75rem;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
    min-height: 7.6rem;
    text-decoration: none;
    color: #f0e4c8;
    background: #4a3320;
    border: 4px solid #6b4a2a;
    box-shadow: 0 0 0 2px #2a1b10, 0 5px 0 #2a1b10;
  }
  .village__board-icon {
    flex: 0 0 4rem;
    display: grid;
    place-items: center;
    height: 4.6rem;
    color: #1a1008;
    background: #c4a06a;
    border-bottom: 4px solid #6f5630;
    border-radius: 4px;
  }
  .village__board-text {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.2rem;
    justify-items: start;
  }
  .village__board-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .village__board-sub {
    font-size: 0.8rem;
    color: #d9c9a6;
  }
  .village__board-tag {
    margin-top: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background: #e0b03a;
    color: #1a1008;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .village__board-ranks {
    flex: 0 0 3.6rem;
    display: grid;
    gap: 0.4rem;
  }
  .village__board-ranks i {
    display: block;
    height: 0.5rem;
    background: #6b4a2a;
    border-left: 0.9rem solid #e0b03a;
  }
  .village__board-ranks i:nth-child(2) {
    width: 72%;
    border-left-color: #b9bfc9;
  }
  .village__board-ranks i:nth-child(3) {
    width: 46%;
    border-left-color: #b0783c;
  }
  .village__sheet-more {
    display: none;
    flex: 0 1 auto;
    min-height: 0;
    overflow: auto;
  }
  .village__sheet.is-open .village__sheet-more {
    display: block;
  }
  .village__row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.5rem;
    padding: 0 0.9rem;
    box-sizing: border-box;
    text-decoration: none;
    color: #f0e4c8;
    border-bottom: 1px solid #2c2118;
  }
  button.village__row {
    width: 100%;
    margin: 0;
    border-width: 0 0 1px;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .village__swatch {
    flex: 0 0 2.3rem;
    height: 2.3rem;
    border-radius: 4px;
    background: var(--row-face);
    border-bottom: 4px solid var(--row-lip);
  }
  .village__row-text {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.1rem;
  }
  .village__row-name {
    font-size: 1rem;
    font-weight: 700;
  }
  .village__row-sub {
    font-size: 0.75rem;
    color: #a8977a;
  }
  .village__chev {
    flex: 0 0 auto;
    color: #a8977a;
  }
  .village__group {
    margin: 0;
    padding: 0.7rem 0.9rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8977a;
  }
  .village__places {
    display: block;
  }
}
/* Shorter phones: tighter rows so the opened list still fits without scrolling. */
@media (max-width: 45rem) and (orientation: portrait) and (max-height: 47.5rem) {
  .village__board {
    min-height: 6rem;
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.8rem;
  }
  .village__board-icon {
    height: 3.6rem;
  }
  .village__board-ranks {
    display: none;
  }
  .village__row {
    min-height: 2.9rem;
  }
  .village__swatch {
    flex-basis: 1.9rem;
    height: 1.9rem;
  }
}
@media (max-width: 45rem) and (orientation: portrait) and (max-height: 47.5rem) {
  .village__places {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .village__places .village__row {
    padding: 0 0.6rem;
    gap: 0.55rem;
  }
  .village__places .village__row-sub,
  .village__places .village__chev {
    display: none;
  }
  .village__row {
    min-height: 2.6rem;
  }
  .village__board {
    min-height: 5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .village__board-icon {
    height: 3rem;
  }
}
@media (max-width: 45rem) and (orientation: portrait) and (max-height: 36rem) {
  .village__board {
    min-height: 4rem;
    margin-bottom: 0.4rem;
    gap: 0.65rem;
  }
  .village__board-icon {
    height: 2.6rem;
    flex-basis: 3.2rem;
  }
  .village__board-sub {
    display: none;
  }
  .village__row {
    min-height: 2.3rem;
  }
  .village__group {
    padding-top: 0.4rem;
    padding-bottom: 0.2rem;
  }
  .village__sheet-head {
    padding-bottom: 0.3rem;
  }
}
