
/* 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;
  }
}


:root {
  --landing-night: #04070d;
  --landing-night-2: #090f1d;
  --landing-slate: #131a2e;
  --landing-slate-2: #1a2440;
  --landing-hairline: rgb(233 200 119 / 24%);
  --landing-gold: #e9c877;
  --landing-gold-soft: #cdb47c;
  --landing-gold-deep: #9b6d2f;
  --landing-ink: #f1e8d4;
  --landing-muted: #cbc3b1;
  --landing-accent: #9b86e0;
  --landing-wood-dark: #2a170c;
  --landing-wood: #5a3a20;
  --landing-wood-light: #8a5d34;
  --landing-radius: 6px;
  /* 1800px content column · matches the home hero's invisible wrap. */
  --landing-col: min(112.5rem, calc(100% - clamp(2.75rem, 7vw, 5.5rem)));
}

/* ---------- Page frame ---------- */
.site-layout--gate:has(.landing-page) { width: 100%; padding-top: 0; }
.site-layout--gate:has(.landing-page) .page {
  width: 100%;
  padding: 0;
  overflow-x: clip;
}
.landing-page {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  color: var(--landing-ink);
}
.landing-page--inner {
  position: relative;
  isolation: isolate;
  background: transparent;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
/* Fixed full-viewport painting behind World and Village; content scrolls over it. */
.landing-page--inner > .landing-scene {
  position: fixed;
  inset: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  margin: 0;
  pointer-events: none;
}
.landing-page--inner > :not(.landing-scene) {
  position: relative;
  z-index: 1;
}
/* Logged-out landing pages: footer legal moves into the hero / Settings; keep the first screen clean. */
html[data-auth="0"]:has(.landing-page) .site-footer { display: none; }
.landing-kicker {
  margin: 0;
  color: var(--landing-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.landing-muted { margin: 0; color: var(--landing-muted); font-size: 0.92rem; }
.landing-page h1,
.landing-page h2,
.landing-page h3 { color: var(--landing-ink); font-family: var(--font-display); }
.landing-page .icon { flex: 0 0 auto; }

/* ---------- Header on logged-out pages: fully see-through, the painting runs up under it ---------- */
html[data-auth="0"] {
  --header-h: 4.1rem;
  --header-offset: 4.1rem;
}
html[data-auth="0"] .site-header__inner,
html[data-auth="0"] .site-header__inner--landing {
  --header-h: 4.1rem;
  height: 4.1rem;
}
html[data-auth="0"] .site-header,
html[data-auth="0"] .site-header.pixel-frame--bar {
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: background 0.2s ease-out, border-color 0.2s ease-out;
}
html[data-auth="0"] .site-header.pixel-frame,
html[data-auth="0"] .site-header.pixel-frame--bar {
  outline: none;
  box-shadow: none;
}
html[data-auth="0"] .site-header.pixel-frame::before,
html[data-auth="0"] .site-header.pixel-frame::after,
html[data-auth="0"] .site-header.pixel-frame--bar::after { content: none; display: none; background: none; }
html[data-auth="0"] .site-header > .pixel-frame__fx { display: none; }
/* Logged-out settings board · taller and closer to the screen edges. */
html[data-auth="0"] .profile-menu {
  --settings-inset: 0.35rem;
  width: min(76rem, calc(100vw - 0.5rem));
}
/* Past the top: same plate as the hero copy, with the shared gold hairline. */
html[data-auth="0"].landing-scrolled .site-header,
html[data-auth="0"].landing-scrolled .site-header.pixel-frame--bar {
  border-bottom: 1px solid rgb(199 154 85 / 32%);
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(199 154 85 / 8%), transparent 55%),
    linear-gradient(180deg, rgb(22 24 28 / 80%), rgb(8 10 13 / 80%));
  box-shadow: none;
}
/* Header bar is edge-to-edge; the tools sit in the same 1800px content wrap as the page body. */
.site-header__inner--landing {
  position: relative;
  box-sizing: border-box;
  width: min(112.5rem, calc(100% - clamp(1.5rem, 4vw, 3.5rem)));
  max-width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: clamp(0.65rem, 2vw, 2rem);
  align-items: center;
}
.site-header__inner--landing .header-end,
.site-header__inner--landing .header-auth {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  min-width: 0;
}
.site-header__inner--landing .header-auth .btn,
.site-header__inner--landing .header-auth .signin,
.site-header__inner--landing .header-auth .profile-btn,
.site-header__inner--landing .header-auth .profile-drop {
  margin: 0;
  margin-bottom: 0;
  flex: 0 0 auto;
}
.site-header__inner--landing > .brand { grid-column: 1; min-width: 0; max-width: 42%; }
.site-header__inner--landing > .landing-nav {
  position: static;
  grid-column: 2;
  justify-self: center;
  width: auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: center;
  transform: none;
}
html[data-auth="0"] .brand--logo { position: relative; }
/* Wide header: the chip hangs off the logo image, so it tracks the mark instead of a fixed header offset. */
html[data-auth="0"]:not([data-fps-under-gear="1"]) #chiken-fps[data-fps-dock="header-brand"] {
  position: absolute;
  left: calc(100% + 0.4rem);
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
}
.site-header__inner--landing > .header-end { grid-column: 3; justify-self: end; }
/* Narrow header: FPS sits under Settings so the nav can use the gap. Off = Settings stays centered. */
@media (max-width: 60rem) {
  html[data-auth="0"][data-fps-under-gear="1"] .site-header__inner--landing > .header-end {
    align-self: start;
    margin-top: 0.28rem;
  }
}
/* Gold emblem logo replaces the feather + wordmark on the landing header. It fills the full banner height; the FPS chip docks to its right. */
.brand--logo { margin-bottom: 0; padding-top: 0.35rem; }
.brand__logo { display: block; height: 3.3rem; width: auto; max-width: 42vw; object-fit: contain; filter: drop-shadow(0 1px 6px rgb(0 0 0 / 55%)); }
.landing-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2.25rem);
}
.landing-nav__link,
.landing-phone-nav__link {
  position: relative;
  padding: 0.35rem 0.1rem;
  color: #ddd3bd;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.landing-nav__link::after,
.landing-phone-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--landing-gold);
  transform: scaleX(0);
  transition: transform 0.18s ease-out;
}
.landing-nav__link:hover,
.landing-nav__link:focus-visible,
.landing-nav__link[aria-current="page"],
.landing-phone-nav__link:hover,
.landing-phone-nav__link[aria-current="page"] { color: #fff6dc; }
.landing-nav__link:hover::after,
.landing-nav__link:focus-visible::after,
.landing-nav__link[aria-current="page"]::after,
.landing-phone-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.landing-phone-nav { display: none !important; }
/* Narrow widths: page CTA covers Discord; keep Home / World + Dev + Settings on one row. */
@media (max-width: 60rem) {
  .site-header__inner--landing .signin--aether:not(.signin--aether-slim):not(.signin--aether-core) { display: none; }
  .site-header__inner--landing .landing-nav { gap: 0.75rem; }
  .site-header__inner--landing .landing-nav__link { font-size: 0.92rem; }
}
@media (max-width: 45rem) {
  .site-header__inner--landing {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.45rem;
    width: calc(100% - 0.9rem);
  }
  .site-header__inner--landing > .landing-nav {
    display: flex;
    position: static;
    transform: none;
    grid-column: 2;
    gap: 0.55rem;
    justify-content: center;
  }
  .site-header__inner--landing > .header-end { grid-column: 3; }
  .landing-nav__link { font-size: 0.82rem; padding: 0.25rem 0.05rem; }
  .site-header__inner--landing .signin--aether:not(.signin--aether-slim):not(.signin--aether-core) { display: none; }
  .site-header__inner--landing .header-end,
  .site-header__inner--landing .header-auth {
    gap: 0.55rem;
  }
  .site-header__inner--landing .signin--dev,
  .site-header__inner--landing .profile-btn--guest.btn {
    height: 34px;
    min-height: 34px;
    padding: 0;
  }
  .site-header__inner--landing .signin--dev .label,
  .site-header__inner--landing .profile-btn__label { display: none; }
  .site-header__inner--landing .signin--dev .icon,
  .site-header__inner--landing .profile-btn--guest .icon {
    width: 1.35rem;
    height: 1.35rem;
  }
  .brand__logo { height: 2.55rem; }
}

/* ---------- Painted night-gate scene (home hero + every inner banner) ---------- */
/*
 * The frame is a size container, so the painting is fitted with container units:
 * "cover" plus --stage-zoom, with --stage-focus (a point in the art) pinned to --stage-anchor (a point in the frame).
 * Vignette, mist and the egg / torch / rune glow are baked into the painting. What runs live is small and opacity-only:
 * the rippled water strip sliding a few px, a slow egg pulse, a rune glow that sweeps down the pillars and rests, four torches on their own rhythms.
 * No parallax, no blend modes, no filters: the frame cost stays flat on big screens.
 */
.landing-scene {
  --stage-focus-x: 0.6955;
  --stage-focus-y: 0.44;
  --stage-anchor-x: 0.72;
  --stage-anchor-y: 0.5;
  --stage-zoom: 1.04;
  --stage-art-w: calc(max(100cqw, 177.67cqh) * var(--stage-zoom));
  --stage-art-h: calc(var(--stage-art-w) * 0.5628);
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
  background: #03060b;
}
.landing-scene__art {
  position: absolute;
  width: var(--stage-art-w);
  height: var(--stage-art-h);
  left: clamp(
    calc(100cqw - var(--stage-art-w)),
    calc(var(--stage-anchor-x) * 100cqw - var(--stage-focus-x) * var(--stage-art-w)),
    0px
  );
  top: clamp(
    calc(100cqh - var(--stage-art-h)),
    calc(var(--stage-anchor-y) * 100cqh - var(--stage-focus-y) * var(--stage-art-h)),
    0px
  );
}
.landing-scene__photo {
  position: absolute;
  inset: 0;
  background: url("/assets/marketing/landing-hero.webp?v=mwjubnal") 0 0 / 100% 100% no-repeat;
}
/* Bottom 30% of the painting again, pre-rippled in the image (its top edge fades out in the image's own alpha). */
.landing-scene__water {
  position: absolute;
  left: -1%;
  right: -1%;
  top: 70%;
  bottom: 0;
}
.landing-scene__water::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/marketing/landing-water.webp?v=mwjubnal") 0 0 / 100% 100% no-repeat;
  animation: landing-water-drift 18s steps(144) infinite alternate;
}
.landing-scene__glow,
.landing-scene__runes {
  position: absolute;
  transform: translate(-50%, -50%);
}
.landing-scene__glow { border-radius: 50%; }
/* Slow, stepped (fewer repaints), and each on its own rhythm so nothing pulses in unison. */
.landing-scene__glow--egg-core {
  background: radial-gradient(closest-side, rgb(255 232 170 / 75%), rgb(255 170 60 / 0%) 100%);
  opacity: 0.03;
  animation: landing-egg-breathe 5.2s steps(26) infinite;
}
.landing-scene__glow--egg-halo {
  background: radial-gradient(closest-side, rgb(255 170 60 / 50%), rgb(255 130 30 / 16%) 50%, rgb(255 110 20 / 0%) 100%);
  opacity: 0.03;
  animation: landing-egg-breathe 6.8s steps(34) -2s infinite;
}
.landing-scene__glow--torch {
  background: radial-gradient(closest-side, rgb(255 175 65 / 75%), rgb(255 125 25 / 22%) 55%, rgb(255 110 20 / 0%) 100%);
  opacity: 0.1;
  animation: landing-torch-flicker var(--glow-length, 1s) ease-in-out var(--glow-delay, 0s) infinite alternate;
}
/* Traced glow of each rune stroke. Left + right share one clock. Fade out before reset so the loop does not blink. */
.landing-scene__runes {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 28%, rgb(0 0 0 / 100%) 40%, rgb(0 0 0 / 100%) 60%, transparent 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, transparent 28%, rgb(0 0 0 / 100%) 40%, rgb(0 0 0 / 100%) 60%, transparent 72%, transparent 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 110%;
  mask-position: 0 110%;
  opacity: 0;
  filter: brightness(1.38) saturate(1.14) drop-shadow(0 0 8px rgb(255 200 120 / 28%));
  animation: landing-rune-sweep 18s linear infinite;
}
.landing-scene__runes--left { background: url("/assets/marketing/landing-runes-left.webp?v=mwjubnal") 0 0 / 100% 100% no-repeat; }
.landing-scene__runes--right {
  background: url("/assets/marketing/landing-runes-right.webp?v=mwjubnal") 0 0 / 100% 100% no-repeat;
  animation-duration: 18s;
  animation-delay: 0s;
}
/* Ember dust. Smooth waft (no step timing). Peak opacity is per mote so the left stays faint. */
.landing-scene__embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.landing-scene__ember {
  position: absolute;
  left: var(--ember-left, 50%);
  bottom: var(--ember-bottom, 10%);
  width: var(--ember-size, 4px);
  height: var(--ember-size, 4px);
  border-radius: 50%;
  background: rgb(255 214 140 / 95%);
  box-shadow: 0 0 7px 2px rgb(255 150 50 / 55%);
  opacity: 0;
  animation: landing-ember-drift var(--ember-dur, 22s) ease-in-out var(--ember-delay, -4s) infinite;
}
@keyframes landing-water-drift { from { transform: translateX(-0.4%); } to { transform: translateX(0.4%); } }
@keyframes landing-egg-breathe { 0%, 100% { opacity: 0.03; } 50% { opacity: 0.2; } }
@keyframes landing-torch-flicker { from { opacity: 0.05; } to { opacity: 0.5; } }
@keyframes landing-rune-sweep {
  /* Enter below, fade in, sweep down the pillars, rest, fade out, then reset while invisible. */
  0% {
    -webkit-mask-position: 0 110%;
    mask-position: 0 110%;
    opacity: 0;
  }
  6% { opacity: 1; }
  42% {
    -webkit-mask-position: 0 -8%;
    mask-position: 0 -8%;
    opacity: 1;
  }
  54% {
    -webkit-mask-position: 0 -8%;
    mask-position: 0 -8%;
    opacity: 0;
  }
  55%, 100% {
    -webkit-mask-position: 0 110%;
    mask-position: 0 110%;
    opacity: 0;
  }
}
@keyframes landing-ember-drift {
  0% { transform: translate3d(0, 10vh, 0); opacity: 0; }
  8% { opacity: var(--ember-peak, 0.6); }
  32% { transform: translate3d(var(--ember-x, 14px), -16vh, 0); opacity: var(--ember-peak, 0.6); }
  58% { transform: translate3d(calc(var(--ember-x, 14px) * -0.7), -38vh, 0); opacity: var(--ember-peak, 0.6); }
  82% { transform: translate3d(var(--ember-x, 14px), -62vh, 0); opacity: var(--ember-peak, 0.6); }
  100% { transform: translate3d(calc(var(--ember-x, 14px) * -0.2), -84vh, 0); opacity: 0; }
}
/* Off-screen (viewport-pause.js), Low quality, and reduced motion: hold still. */
.landing-scene[data-inview="0"] * { animation-play-state: paused; }
html[data-quality="low"] .landing-scene *,
html[data-quality="low"] .landing-scene *::before,
html[data-quality="low"] .signin__halo,
html[data-quality="low"] .signin--cta .signin__flare { animation: none; }
html[data-quality="low"] .landing-scene__embers { display: none; }
/* Browsers without container units still get the painting, just without the glued-on effects. */
@supports not (width: 1cqw) {
  .landing-scene__art { inset: 0; width: auto; height: auto; }
  .landing-scene__photo { background-size: cover; background-position: 70% 50%; }
  .landing-scene__water,
  .landing-scene__glow,
  .landing-scene__runes,
  .landing-scene__embers { display: none; }
}

/* ---------- Home hero · lock to one viewport (no page scroll) ---------- */
html:has(.landing-page--home),
html:has(.landing-page--home) body {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}
html:has(.landing-page--home) body {
  min-height: 0;
  display: block;
}
html:has(.landing-page--home) .site-layout--gate {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
html:has(.landing-page--home) .site-layout--gate .page {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.landing-page--home {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.landing-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  /* Fluffy side pad so the Chikling title never kisses the frame; painting still fills edge to edge. */
  padding:
    calc(var(--header-offset) + clamp(0.75rem, 2.6vh, 2.35rem))
    max(clamp(1.15rem, 4.8vw, 3.4rem), calc((100% - 112.5rem) / 2))
    clamp(0.55rem, 1.6vh, 1.05rem);
  box-sizing: border-box;
  background: var(--landing-night);
}
/* Edge vignettes only · no side wash behind the title. */
.landing-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(3 6 12 / 55%) 0%, transparent 16%),
    linear-gradient(0deg, rgb(3 6 12 / 85%) 0%, transparent 26%);
}
.landing-hero__content {
  position: relative;
  align-self: center;
  display: grid;
  justify-items: start;
  gap: clamp(0.45rem, 1.4vh, 0.85rem);
  width: min(42rem, 100%);
  max-width: 100%;
  margin-left: clamp(0.15rem, 1.8vw, 1.4rem);
  padding: clamp(1.05rem, 2.2vh, 1.35rem) clamp(1.35rem, 3.8vw, 2.15rem) clamp(1.1rem, 2vh, 1.3rem);
  box-sizing: border-box;
  border: 1px solid rgb(199 154 85 / 32%);
  border-radius: 5px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(199 154 85 / 8%), transparent 55%),
    linear-gradient(180deg, rgb(22 24 28 / 80%), rgb(8 10 13 / 80%));
  box-shadow: 0 10px 26px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 6%);
  text-align: left;
  min-height: 0;
  overflow: visible;
}
.landing-hero .landing-hero__title {
  margin: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding-right: 0.06em;
  font-size: clamp(2.05rem, 1.1rem + 6.2vw, 5.4rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fbe8bd 0%, #e2b66c 48%, #a9763a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 90%)) drop-shadow(0 0 22px rgb(227 170 80 / 22%));
}
.landing-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
}
.landing-hero__tagline {
  margin: 0.4rem 0 0;
  color: #ecd9ae;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.9vw, 1.45rem);
  letter-spacing: 0.24em;
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}
.landing-hero__lead {
  margin: 0.2rem 0 0;
  max-width: 21rem;
  color: #ece4d2;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 0 2px 12px #000;
}
.landing-hero__divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0.4rem 0 0.2rem;
}
.landing-hero__divider::before,
.landing-hero__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--landing-gold-deep));
}
.landing-hero__divider::after { background: linear-gradient(270deg, transparent, var(--landing-gold-deep)); }
.landing-hero__divider i {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 0.6rem;
  border: 1px solid var(--landing-gold);
  transform: rotate(45deg);
}
.landing-hero__divider i::after { content: ""; position: absolute; inset: 2px; background: var(--landing-gold); }

.landing-hero__cta {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}
.landing-hero__cta .signin--cta,
.landing-hero__cta .signin--dev { flex: 0 0 auto; }
.landing-hero__cta .signin--aether.signin--dev {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  gap: 0;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgb(200 245 210 / 74%),
    0 0 0 2px rgb(30 100 50 / 70%),
    0 6px 12px rgb(0 0 0 / 26%),
    inset 0 1px rgb(255 255 255 / 32%);
}
.landing-hero__cta .signin--dev .label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.landing-hero__cta .signin--cta .icon,
.landing-hero__cta .signin--dev .icon { width: 22px; height: 22px; }

/*
 * Sign-in buttons, ported from the landing demo: "top" is .sign-top (header), "cta" is .cta (hero + join band).
 * Standalone .signin family, no shared .btn, so the pixel-art button rules and the Discord-blue !important vars never apply.
 * The halo is its own layer and animates opacity only, so it costs no layout or paint work.
 */
.signin {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease-out, transform 0.1s ease-out;
}
.signin:active { transform: translateY(1px); }
.signin:focus-visible { outline: 2px solid var(--landing-gold); outline-offset: 3px; }
.signin .icon { flex: 0 0 auto; color: currentColor; }
.signin__halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  animation: landing-halo 5s ease-in-out infinite;
}
@keyframes landing-halo { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.75; } }
@keyframes landing-halo-hover { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.signin--top {
  box-sizing: border-box;
  justify-content: center;
  height: 2.25rem;
  padding: 0 14px;
  border: 1.5px solid #cfd6ff;
  border-radius: 6px;
  background: linear-gradient(180deg, #1d1f45, #101230);
  color: #f4f4ff;
  font-size: 13px;
  box-shadow: 0 0 0 1px rgb(15 17 50 / 90%), 0 0 8px rgb(130 140 255 / 10%), inset 0 0 8px rgb(120 130 255 / 7%);
}
.signin--top .signin__halo { border-radius: 6px; box-shadow: 0 0 11px 1px rgb(130 140 255 / 28%); }
.signin--top .icon { width: 18px; height: 18px; }
/* Settings: the same thin plate in dark gray, square. Header-scoped so it outranks the shared .btn rules. */
html[data-auth="0"] .site-header .profile-btn--guest.btn {
  --btn-depth: 0px;
  --btn-drop: 0px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  height: 2.25rem;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 0.85rem;
  border: 1.5px solid #c4c8d0;
  border-radius: 6px;
  border-image: none;
  clip-path: none;
  image-rendering: auto;
  background: linear-gradient(180deg, #2c2f35, #17191d);
  color: #eceef2;
  text-shadow: none;
  transform: none;
  box-shadow: 0 0 0 1px rgb(10 11 14 / 90%), inset 0 0 8px rgb(255 255 255 / 5%);
  transition: border-color 0.15s ease-out;
}
html[data-auth="0"] .site-header .profile-btn--guest.btn::before,
html[data-auth="0"] .site-header .profile-btn--guest.btn::after { content: none; display: none; }
html[data-auth="0"] .site-header .profile-btn--guest.btn:hover,
html[data-auth="0"] .site-header .profile-btn--guest.btn:focus-visible,
html[data-auth="0"] .profile-drop.open .profile-btn--guest.btn { border-color: #ffffff; background: linear-gradient(180deg, #373b42, #1e2126); }
/* Header links sit straight on the painting, so give them a soft shadow to stay readable. */
html[data-auth="0"] .landing-nav__link { text-shadow: 0 1px 6px rgb(0 0 0 / 85%); }
/* Dev login: the header button in blue. */
.signin--dev {
  padding: 0 1.05rem;
  border-color: #a9cdff;
  background: linear-gradient(180deg, #1b3d7a, #0d2250);
  color: #eef5ff;
  box-shadow: 0 0 0 1px rgb(8 20 60 / 90%), 0 0 8px rgb(80 150 255 / 18%), inset 0 0 8px rgb(80 150 255 / 12%);
}
.signin--dev .icon { width: 18px; height: 18px; }
html[data-auth="0"] .site-header .profile-btn--guest .profile-btn__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
html[data-auth="0"] .site-header .profile-btn--guest .icon { width: 18px; height: 18px; }
.signin--dev .signin__halo { box-shadow: 0 0 11px 1px rgb(80 160 255 / 40%); }

.signin--cta {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  padding: 0 0.7rem;
  gap: 0.3rem;
  border: 1px solid #f0d078;
  background: linear-gradient(180deg, #5a3d14 0%, #c9952e 22%, #f2c45a 48%, #a87828 72%, #3f2a0c 100%);
  color: #2c2926;
  font-size: 17px;
  text-shadow: none;
  box-shadow:
    inset 0 0 0 2px #2a1a08,
    inset 0 0 0 3px rgb(255 220 140 / 55%),
    inset 0 1px 0 rgb(255 245 200 / 55%),
    0 0 14px rgb(255 190 70 / 28%),
    0 6px 18px rgb(0 0 0 / 55%);
}
/* Side diamonds dropped. Glass sweep stays; hover sunburst is the particle canvas. */
.signin--cta::before,
.signin--cta::after { content: none; display: none; }
.signin--cta .particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
/* Inner glass burst · slow sweep always on (Aether-style inner light, gold). */
.signin--cta .signin__flare {
  position: absolute;
  inset: 2px;
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
  background:
    linear-gradient(
      115deg,
      rgb(255 255 240 / 0%) 0%,
      rgb(255 255 240 / 0%) 36%,
      rgb(255 255 245 / 55%) 48%,
      rgb(255 230 160 / 28%) 54%,
      rgb(255 255 240 / 0%) 66%,
      rgb(255 255 240 / 0%) 100%
    ),
    linear-gradient(130deg, rgb(255 245 210 / 34%), transparent 24% 40%, rgb(40 22 4 / 18%) 62%, rgb(255 220 140 / 22%));
  background-size: 220% 100%, 100% 100%;
  background-position: 120% 50%, 0 0;
  box-shadow: inset 0 0 0 1px rgb(255 236 180 / 55%);
  animation: landing-cta-glass 4.8s ease-in-out infinite;
}
.signin--cta .inner-edge {
  position: absolute;
  inset: 4px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgb(255 230 160 / 55%);
  border-radius: 0;
  box-shadow: inset 0 0 10px rgb(255 210 120 / 18%);
}
.signin--cta .signin__halo {
  border-radius: 2px;
  box-shadow: 0 0 16px 3px rgb(255 190 70 / 48%);
  animation: landing-halo 5s ease-in-out infinite;
}
.signin--cta .icon,
.signin--cta > span:not(.inner-edge):not(.signin__flare):not(.signin__halo) {
  position: relative;
  z-index: 5;
}
.signin--cta .icon { width: 18px; height: 18px; }
@keyframes landing-cta-glass {
  0%, 100% { background-position: 130% 50%, 0 0; opacity: 0.85; }
  45% { background-position: -30% 50%, 0 0; opacity: 1; }
  70% { background-position: -40% 50%, 0 0; opacity: 0.9; }
}

/* Hover only for pointers that can hover, so a tap on a phone never leaves it glowing. */
@media (hover: hover) {
  .signin--top:hover { border-color: #e8ebff; }
  .signin--top:hover .signin__halo { box-shadow: 0 0 16px 3px rgb(130 140 255 / 50%); animation: landing-halo-hover 6s ease-in-out infinite; }
  .signin--dev:hover { border-color: #d6e8ff; }
  .signin--dev:hover .signin__halo { box-shadow: 0 0 16px 3px rgb(80 160 255 / 60%); }
  a.signin--cta:hover,
  a.signin--cta:focus-visible {
    color: #3d2b12;
    border-color: #ffe7a8;
    filter: none;
    text-shadow: 0 1px 0 rgb(255 228 160 / 45%);
  }
  .signin--cta:hover .signin__halo { box-shadow: 0 0 24px 5px rgb(255 200 80 / 65%); animation: landing-halo-hover 6s ease-in-out infinite; }
  .signin--cta:hover .signin__flare { animation-duration: 2.8s; }
}

/*
 * Aether Sigil 03D option 2 (Narrow, ~200x44). Crystal slab, rune engraving, hover particles.
 * Ported from logs/.assets/Demos/discord_button_showcase_v6.html. Replaces the indigo header plate and the gold hero plate.
 */
.signin--aether {
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  width: min(100%, 168px);
  height: 34px;
  min-height: 34px;
  padding: 0 6px;
  gap: 5px;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.005em;
  /* Square plate · no chamfer clip, no rune line art. Slim depth (no thick 3D boot). */
  clip-path: none;
  background: linear-gradient(112deg, #9c7cff 0%, #684dc4 18%, #382766 49%, #65409e 78%, #bd98ff 100%);
  background-size: 170% 100%;
  background-position: 50% 50%;
  box-shadow:
    0 0 0 1px rgb(231 211 255 / 74%),
    0 0 0 2px rgb(88 58 141 / 65%),
    0 2px 0 #251a3d,
    0 6px 12px rgb(0 0 0 / 28%),
    inset 0 1px rgb(255 255 255 / 32%);
  filter: drop-shadow(0 0 8px rgb(150 105 255 / 10%));
  transition: background-position 0.65s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.signin--aether:active { transform: none; filter: brightness(1.16) saturate(1.1); }
.signin--aether:focus-visible { outline: 2px solid #eadbff; outline-offset: 6px; }
.signin--aether::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 1;
  pointer-events: none;
  clip-path: none;
  border-radius: 0;
  background: linear-gradient(130deg, rgb(255 255 255 / 20%), transparent 22% 38%, rgb(11 5 36 / 28%) 61%, rgb(242 222 255 / 17%));
  box-shadow: inset 0 0 0 1px rgb(250 238 255 / 55%);
}
.signin--aether::after { content: none; display: none; }
.signin--aether .inner-edge {
  position: absolute;
  inset: 4px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgb(238 220 255 / 34%);
  clip-path: none;
  border-radius: 0;
}
.signin--aether .rune-engraving { display: none; }
.signin--aether .particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.signin--aether .discord-mark {
  position: relative;
  z-index: 5;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 28%));
}
.signin--aether .label {
  position: relative;
  z-index: 5;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(14 7 29 / 34%);
}
.signin--aether .rune-engraving {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.signin--aether .rune-engraving path,
.signin--aether .rune-engraving polygon {
  fill: none;
  stroke: rgb(221 190 255 / 48%);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  transition: stroke 0.35s ease, opacity 0.35s ease, stroke-dashoffset 0.75s ease;
}
.signin--aether .rune-engraving .etched {
  stroke: rgb(230 207 255 / 62%);
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  opacity: 0.45;
}
.signin--aether .rune-engraving .seal { stroke: rgb(235 216 255 / 48%); opacity: 0.34; }
.signin--aether .rune-engraving .side-rails { opacity: 0.32; }
@media (hover: hover) {
  .signin--aether:hover,
  .signin--aether:focus-visible {
    background-position: 100% 50%;
    box-shadow:
      0 0 0 1px rgb(255 240 255 / 95%),
      0 0 0 2px rgb(158 115 235 / 90%),
      0 2px 0 #251a3d,
      0 8px 16px rgb(124 80 211 / 30%),
      0 0 18px rgb(191 150 255 / 26%),
      inset 0 1px rgb(255 255 255 / 50%);
    filter: brightness(1.14) saturate(1.16);
  }
  .signin--aether:hover::before,
  .signin--aether:focus-visible::before {
    background: linear-gradient(130deg, rgb(255 255 255 / 27%), transparent 22% 38%, rgb(11 5 36 / 20%) 61%, rgb(248 226 255 / 22%));
  }
}

/*
 * Header Dev and Settings · crystal cut like Discord, own colors.
 * Same slim height as header Sign in (34px). Center rune + particles, no rails.
 */
.signin--aether-core {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 34px;
  min-height: 34px;
  padding: 0 6px;
  gap: 4px;
  font-size: 10px;
  clip-path: none;
  border-radius: 0;
}
.signin--aether-core::after { content: none; display: none; }
/* Dev · green crystal, compact. */
.signin--aether.signin--dev {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 34px;
  min-height: 34px;
  background: linear-gradient(112deg, #8adf9a 0%, #3a9a55 18%, #143f22 49%, #2a7a42 78%, #a8ecc0 100%);
  box-shadow:
    0 0 0 1px rgb(200 245 210 / 74%),
    0 0 0 2px rgb(30 100 50 / 70%),
    0 2px 0 #0d2a18,
    0 6px 12px rgb(0 0 0 / 26%),
    inset 0 1px rgb(255 255 255 / 32%);
}
/* Header crystals only: a hair of rounding. Gold CTA stays square. */
.site-header .signin--aether,
.site-header .signin--aether::before,
.site-header .signin--aether .inner-edge {
  border-radius: 3px;
}

/* Settings · gray square gear. No .btn class on this control, so do not require one. */
html[data-auth="0"] .site-header .profile-btn--guest.signin--aether {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  gap: 0;
  border: 0;
  border-image: none;
  border-radius: 3px;
  clip-path: none;
  background: linear-gradient(112deg, #9a9eaa 0%, #5a5e68 18%, #2a2c32 49%, #3e424a 78%, #b0b4bc 100%);
  background-size: 170% 100%;
  background-position: 50% 50%;
  color: #f2f3f6;
  text-shadow: none;
  box-shadow:
    0 0 0 1px rgb(220 222 228 / 70%),
    0 0 0 2px rgb(40 42 48 / 70%),
    0 2px 0 #141518,
    0 6px 12px rgb(0 0 0 / 26%),
    inset 0 1px rgb(255 255 255 / 28%);
}
html[data-auth="0"] .site-header .profile-btn--guest.signin--aether-core .profile-btn__label,
html[data-auth="0"] .site-header .profile-btn--guest.signin--aether-core .label {
  display: none;
}
html[data-auth="0"] .site-header .profile-btn--guest.signin--aether-core .icon {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 5;
}
html[data-auth="0"] .site-header .profile-btn--guest.signin--aether::before { content: ""; display: block; }
html[data-auth="0"] .site-header .profile-btn--guest.signin--aether::after { content: none; display: none; }
html[data-auth="0"] .site-header .profile-btn--guest.signin--aether-core .inner-edge {
  border-color: rgb(230 232 236 / 34%);
}
@media (hover: hover) {
  .signin--aether.signin--dev:hover,
  .signin--aether.signin--dev:focus-visible {
    background: linear-gradient(112deg, #8adf9a 0%, #3a9a55 18%, #143f22 49%, #2a7a42 78%, #a8ecc0 100%);
    background-size: 170% 100%;
    background-position: 100% 50%;
    box-shadow:
      0 0 0 1px rgb(220 255 230 / 95%),
      0 0 0 2px rgb(50 160 80 / 90%),
      0 2px 0 #0d2a18,
      0 8px 14px rgb(30 120 60 / 28%),
      inset 0 1px rgb(255 255 255 / 50%);
    filter: brightness(1.12) saturate(1.12);
  }
  html[data-auth="0"] .site-header .profile-btn--guest.signin--aether:hover,
  html[data-auth="0"] .site-header .profile-btn--guest.signin--aether:focus-visible,
  html[data-auth="0"] .profile-drop.open .profile-btn--guest.signin--aether {
    background: linear-gradient(112deg, #b0b4bc 0%, #6a6e78 18%, #32343a 49%, #4a4e56 78%, #c4c8d0 100%);
    background-size: 170% 100%;
    background-position: 100% 50%;
    border-color: transparent;
    color: #fff;
    box-shadow:
      0 0 0 1px rgb(240 242 246 / 90%),
      0 0 0 2px rgb(70 74 82 / 80%),
      0 2px 0 #141518,
      0 8px 14px rgb(0 0 0 / 28%),
      inset 0 1px rgb(255 255 255 / 45%);
    filter: brightness(1.08);
  }
}

/* Join band secondary: night glass with a gold hairline, so the framed Sign in stays the main action. */
.landing-page .btn.landing-join__discord {
  --btn-depth: 0px;
  --btn-drop: 0px;
  min-height: 0;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 4px;
  border-image: none;
  clip-path: none;
  image-rendering: auto;
  background: rgb(10 15 29 / 70%);
  color: var(--landing-gold) !important;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: none;
  transform: none;
  box-shadow: inset 0 0 0 1px var(--landing-hairline);
  transition: box-shadow 0.15s ease-out, background 0.15s ease-out;
}
.landing-page .btn.landing-join__discord::before,
.landing-page .btn.landing-join__discord::after { content: none; display: none; }
.landing-page .btn.landing-join__discord:hover {
  background: rgb(26 36 64 / 85%);
  color: #fff6dc !important;
  box-shadow: inset 0 0 0 1px var(--landing-gold-soft);
}
.landing-page .btn.landing-join__discord:focus-visible { outline: 2px solid var(--landing-gold); outline-offset: 3px; }
.landing-hero__invite-only {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}
/* Tiny legal line replaces the site footer on the logged-out home (also in Settings). */
.landing-hero__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0.15rem 0 0;
  color: #9a9180;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.landing-hero__legal a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}
.landing-hero__legal a:hover,
.landing-hero__legal a:focus-visible { color: #e6ddc9; opacity: 1; }

/* Five feature cards along the bottom of the scene: separate boxes, capped width, plain selectable text. */
.landing-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 17.5rem));
  justify-content: center;
  gap: 0.875rem;
  margin-top: clamp(0.45rem, 1.6vh, 1.25rem);
  min-height: 0;
}
button.landing-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: start;
  column-gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 1rem clamp(0.75rem, 1.5vw, 1.4rem) 1.6rem;
  color: inherit;
  font: inherit;
  text-align: left;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(199 154 85 / 8%), transparent 55%),
    linear-gradient(180deg, rgb(22 24 28 / 80%), rgb(8 10 13 / 80%));
  border: 1px solid rgb(199 154 85 / 32%);
  border-radius: 5px;
  box-shadow: 0 10px 26px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 6%);
  user-select: text;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.landing-feature::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(240 205 140 / 75%), transparent);
}
.landing-feature::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgb(199 154 85 / 10%);
  border-radius: 3px;
  pointer-events: none;
}
.landing-feature__glyph {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: inline-flex;
  padding: 0.35rem;
  color: var(--landing-gold);
  border: 1px solid rgb(199 154 85 / 35%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(199 154 85 / 18%), rgb(0 0 0 / 25%));
  filter: drop-shadow(0 0 5px rgb(227 184 105 / 25%));
}
.landing-feature__glyph .icon { width: 1.4rem; height: 1.4rem; }
/* Full card width · letter-spacing leaves a trailing gap, so cancel it with matching margin. */
.landing-page .landing-feature__label {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: stretch;
  margin: 0 -0.2em 0.65rem 0;
  padding-top: 0.15rem;
  color: var(--landing-gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.landing-feature__hook {
  grid-column: 2;
  grid-row: 2;
  min-height: 2.5em;
  margin-bottom: 0.3rem;
  color: #f6dfae;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}
.landing-feature__body {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0.5rem 0 0;
  color: #cdc5b3;
  font-size: 0.82rem;
  line-height: 1.45;
}
.landing-feature-modal__hook {
  margin: 0 0 0.55rem;
  color: #f6dfae;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}
.landing-feature-modal__body {
  margin: 0;
  color: var(--ink-soft, #cdc5b3);
  line-height: 1.55;
}
.landing-feature-modal__soon {
  margin: 0.85rem 0 0;
  color: var(--landing-gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
dialog.modal.modal--landing-feature .modal__panel {
  width: min(22rem, calc(100vw - 2rem));
}
.landing-feature__soon {
  position: absolute;
  left: 0.75rem;
  top: 0;
  right: auto;
  bottom: auto;
  padding: calc(0.08rem + 2px) 0.45rem calc(0.06rem + 2px);
  line-height: 1.05;
  color: #f3e6c8;
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgb(0 0 0 / 70%);
  background: linear-gradient(180deg, rgb(90 72 42 / 88%), rgb(52 40 22 / 92%));
  border: 1px solid rgb(199 154 85 / 35%);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 35%);
}
/* Keyboard focus: a clear gold ring on the dark scene. */
.landing-page a:focus-visible,
.landing-page button:focus-visible { outline: 2px solid #f6dfae; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 75rem) {
  .landing-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Short or square windows: the centered stack was overflowing into the header and the cards. */
@media (max-width: 52rem), (max-height: 52rem) {
  .landing-hero {
    padding-top: calc(var(--header-offset) + 0.35rem);
    padding-bottom: 0.35rem;
  }
  .landing-hero__content {
    align-self: safe center;
    gap: 0.32rem;
    padding: 0.6rem 0.85rem 0.65rem;
  }
  .landing-hero .landing-hero__title { font-size: clamp(1.65rem, 4.4vw, 2.85rem); }
  .landing-hero__tagline {
    margin-top: 0.1rem;
    font-size: clamp(0.7rem, 1.45vw, 0.92rem);
    letter-spacing: 0.12em;
    line-height: 1.35;
  }
  .landing-hero__divider { margin: 0.1rem 0; }
  .landing-features { gap: 0.4rem; margin-top: 0.35rem; }
  button.landing-feature { padding: 0.5rem 0.65rem 0.65rem; }
  .landing-feature__hook { min-height: 0; margin-bottom: 0.1rem; font-size: 0.78rem; }
  .landing-feature__body { margin-top: 0.25rem; font-size: 0.74rem; line-height: 1.3; }
}
@media (max-width: 45rem) {
  /* Phones keep the copy inside the painting instead of splitting the art into its own row. */
  .landing-hero {
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding: calc(var(--header-offset) + 0.45rem) 0.55rem 0.4rem;
  }
  .landing-hero__content {
    align-self: center;
    justify-self: stretch;
    justify-items: center;
    gap: 0.52rem;
    width: min(24rem, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 0.7rem 0.85rem;
    overflow: visible;
    border: 1px solid rgb(199 154 85 / 32%);
    border-radius: 5px;
    background:
      radial-gradient(120% 90% at 0% 0%, rgb(199 154 85 / 8%), transparent 55%),
      linear-gradient(180deg, rgb(22 24 28 / 80%), rgb(8 10 13 / 80%));
    box-shadow: 0 10px 26px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 6%);
  }
  .landing-hero .landing-hero__title {
    font-size: clamp(2.05rem, 13vw, 3.1rem);
    letter-spacing: 0.03em;
    padding-right: 0.14em;
  }
  /* Keep phone framing in step with Home’s desktop scale (no extra zoom). */
  .landing-scene--home,
  .landing-scene--world {
    --stage-anchor-x: 0.5 !important;
    --stage-anchor-y: 0.48 !important;
    --stage-zoom: 1.04 !important;
  }
  .landing-hero__tagline {
    margin-top: 0;
    font-size: clamp(0.74rem, 3.6vw, 0.92rem);
    letter-spacing: 0.16em;
    line-height: 1.45;
  }
  .landing-hero__lead {
    max-width: 19rem;
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .landing-hero__intro .landing-hero__divider { width: 100%; margin: 0.15rem 0; }
  .landing-hero__invite-only { letter-spacing: 0.08em; }
  .landing-hero > .landing-scene {
    position: absolute;
    inset: 0;
    z-index: -2;
    grid-row: 1 / -1;
    height: auto;
    margin: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .landing-features {
    grid-row: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.28rem;
    margin-top: 0.55rem;
  }
  button.landing-feature {
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 0.22rem;
    padding: 0.42rem 0.22rem 0.5rem;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
  }
  .landing-feature__glyph {
    grid-column: 1;
    grid-row: 1;
    padding: 0.18rem;
  }
  .landing-feature__glyph .icon { width: 0.9rem; height: 0.9rem; }
  .landing-page .landing-feature__label {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: clamp(0.46rem, 2.25vw, 0.55rem);
    letter-spacing: 0.05em;
    line-height: 1.12;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .landing-feature__hook,
  .landing-feature__body { display: none; }
  .landing-feature__soon {
    left: 0.16rem;
    top: 0;
    padding: calc(0.1rem + 2px) 0.18rem calc(0.08rem + 2px);
    font-size: 0.38rem;
    letter-spacing: 0.04em;
  }
  .landing-hero__legal { font-size: 0.62rem; }
  .signin--cta { height: 40px; padding: 0 0.65rem; font-size: 14px; }
  .signin--cta .icon { width: 16px; height: 16px; }
}

/* ---------- Inner page title band (painting is the fixed page backdrop) ---------- */
.landing-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(clamp(12rem, 28vh, 18rem) + var(--header-offset));
  padding: calc(var(--header-offset) + 1.35rem) clamp(0.85rem, 3.5vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  overflow: visible;
}
.landing-banner::after { content: none; display: none; }
.landing-banner__inner {
  width: min(var(--landing-col), 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
  position: relative;
  box-sizing: border-box;
  padding: 1.1rem clamp(1.35rem, 3.5vw, 2rem) 1.2rem;
  border: 1px solid rgb(199 154 85 / 32%);
  border-radius: 5px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(199 154 85 / 8%), transparent 55%),
    linear-gradient(180deg, rgb(22 24 28 / 80%), rgb(8 10 13 / 80%));
  box-shadow: 0 10px 26px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 6%);
}
.landing-hero__content::before,
.landing-banner__inner::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(240 205 140 / 75%), transparent);
  pointer-events: none;
}
.landing-hero__content::after,
.landing-banner__inner::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgb(199 154 85 / 10%);
  border-radius: 3px;
  pointer-events: none;
}
.landing-banner h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.9rem, 0.9rem + 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fbe8bd 0%, #e2b66c 55%, #b07d3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgb(0 0 0 / 80%));
}
.landing-banner__lead {
  margin: 0;
  max-width: 36rem;
  color: #e6ddc9;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgb(0 0 0 / 80%);
}
@media (prefers-reduced-motion: no-preference) {
  .landing-hero__content > *,
  .landing-banner__inner > * { animation: landing-rise 0.9s both; }
  .landing-hero__content > :nth-child(2),
  .landing-banner__inner > :nth-child(2) { animation-delay: 0.14s; }
  .landing-hero__content > :nth-child(3),
  .landing-banner__inner > :nth-child(3) { animation-delay: 0.26s; }
  .landing-hero__content > :nth-child(4) { animation-delay: 0.36s; }
  .landing-hero__content > :nth-child(5) { animation-delay: 0.46s; }
  .landing-hero__content > :nth-child(6) { animation-delay: 0.56s; }
  .landing-features { animation: landing-rise 0.9s 0.7s both; }
}
@keyframes landing-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Inner page body + sections ---------- */
.landing-body {
  width: var(--landing-col);
  margin: 0 auto;
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
  box-sizing: border-box;
  padding: clamp(1.75rem, 4.5vw, 2.75rem) clamp(1.2rem, 4vw, 2.35rem) clamp(2rem, 5vw, 3rem);
  background: transparent;
}
.landing-section { display: grid; gap: 1.5rem; }
.landing-section__head { display: grid; gap: 0.45rem; max-width: 44rem; }
.landing-section__head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}
.landing-section__lead { margin: 0; color: var(--landing-muted); font-size: 1.02rem; line-height: 1.6; }

/* Shared card look: frosted night glass, gold hairline, a lit top edge. Hover only brightens the rim; nothing grows. */
.landing-stats__item,
.landing-roster__card,
.landing-pillar,
.landing-entry__notes,
.landing-eggwatch,
.landing-loop__step,
.landing-season,
.landing-board,
.landing-gallery-panel,
.landing-split__col,
.landing-promise,
.landing-join {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 38%),
    linear-gradient(180deg, rgb(20 26 46 / 94%), rgb(9 12 24 / 96%));
  border: 1px solid var(--landing-hairline);
  border-radius: var(--landing-radius);
  box-shadow:
    inset 0 1px 0 rgb(255 205 120 / 40%),
    0 14px 34px rgb(0 0 0 / 38%);
}

/* The World: stats (live inside "What we know so far") */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.landing-stats__item { padding: 1.1rem 1.25rem; display: grid; gap: 0.15rem; }
.landing-stats__item dt {
  color: var(--landing-gold);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
}
.landing-stats__item dd { margin: 0; color: var(--landing-muted); font-size: 0.95rem; }
.landing-stats--inline {
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}
.landing-stats--inline .landing-stats__item {
  padding: 0.55rem 0.6rem;
  background: rgb(0 0 0 / 22%);
  border: 1px solid rgb(255 205 120 / 18%);
  border-radius: 4px;
  box-shadow: none;
}
.landing-stats--inline .landing-stats__item dt {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}
.landing-stats--inline .landing-stats__item dd {
  font-size: 0.72rem;
  line-height: 1.25;
}

/* The World: roster */
.landing-roster {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 10.5rem));
  justify-content: center;
  gap: 1rem;
}
.landing-roster__card {
  margin: 0;
  padding: 0.9rem 0.9rem 1rem;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
  transition: border-color 0.15s;
}
.landing-roster__card:hover { border-color: var(--landing-gold-soft); }
/* No scene behind the birds: the canvas animates on its own. */
.landing-roster__card canvas {
  width: 82%;
  border-radius: 4px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.landing-roster__card figcaption { display: grid; gap: 0.15rem; }
.landing-roster__card strong { font-family: var(--font-display); font-size: 1.02rem; }
.landing-roster__card span { color: var(--landing-muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* The World: pillars */
.landing-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.landing-pillar { padding: 1.5rem; display: grid; align-content: start; gap: 0.5rem; }
.landing-pillar__glyph,
.landing-promise__glyph,
.landing-loop__glyph {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: var(--landing-gold);
  background: rgb(233 200 119 / 10%);
  box-shadow: inset 0 0 0 1px var(--landing-hairline);
}
.landing-pillar__glyph .icon,
.landing-promise__glyph .icon,
.landing-loop__glyph .icon { width: 1.3rem; height: 1.3rem; }
.landing-pillar h3 { margin: 0; font-size: 1.25rem; }
.landing-pillar p:not(.landing-kicker) { margin: 0; color: var(--landing-muted); line-height: 1.6; }

/* The World: places lane */
.landing-places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
/* Text tiles: no art and no border, just a faint night-glass panel. */
.landing-place {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--landing-radius);
  background: rgb(8 10 24 / 45%);
}
.landing-place__lane {
  color: var(--landing-gold-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.landing-place__name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--landing-ink);
}
.landing-place__name .icon { width: 0.95rem; height: 0.95rem; color: var(--landing-gold-soft); }
.landing-place__activity { color: var(--landing-muted); font-size: 0.88rem; }
.landing-place--locked .landing-place__name { color: #c9c0ad; }
.landing-place--locked .landing-place__activity { opacity: 0.75; }

/* First entry + notes (group inside the village slate) */
.landing-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}
.landing-entry__page.parchment { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.landing-entry__page h2 { margin: 0.35rem 0 0.9rem; color: #3a2614; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
.landing-entry__date { margin: 0; color: #7a5a34; font-size: 0.78rem; font-style: italic; letter-spacing: 0.04em; }
.landing-entry__text { margin: 0 0 0.75rem; color: #3e2c1a; font-size: 1.04rem; line-height: 1.7; }
.landing-entry__text:first-of-type::first-letter {
  float: left;
  margin: 0.1rem 0.45rem 0 0;
  color: #7a3f1c;
  font-family: var(--font-display);
  font-size: 3.1rem;
  line-height: 0.85;
}
.landing-entry__notes { padding: 1.4rem; display: grid; gap: 0.9rem; }
.landing-entry__notes ul,
.landing-checklist,
.landing-split__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.landing-entry__notes li,
.landing-checklist li { display: flex; gap: 0.65rem; align-items: flex-start; color: #ddd4c1; line-height: 1.5; }
.landing-entry__notes li .icon,
.landing-checklist li .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--landing-gold); }

/* The Chronicle: egg watch */
.landing-eggwatch {
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background:
    radial-gradient(ellipse 50% 70% at 12% 50%, rgb(155 134 224 / 16%), transparent 70%),
    linear-gradient(180deg, var(--landing-slate-2), var(--landing-slate));
}
.landing-eggwatch__egg { position: relative; width: 100%; aspect-ratio: 1; }
/* The canvas is out of flow so it can never feed its own height back into the aspect-ratio box (that ran the page to millions of px). */
.landing-eggwatch__egg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.landing-eggwatch__egg::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 190 90 / 28%), transparent 66%);
}
.landing-eggwatch__body { display: grid; gap: 1rem; min-width: 0; }
.landing-eggwatch__body h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.landing-eggwatch__meter { display: grid; gap: 0.5rem; }
.landing-eggwatch__numbers {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 700;
  color: #e9dfca;
}
.landing-meter {
  position: relative;
  height: 1.35rem;
  overflow: hidden;
  background: rgb(6 8 20 / 80%);
  border: 1px solid var(--landing-wood);
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 50%);
}
.landing-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgb(255 255 255 / 10%) 10px 12px),
    linear-gradient(90deg, #5b4bc4, var(--landing-accent) 70%, #e9c877);
  box-shadow: 0 0 14px rgb(155 134 224 / 60%);
}
.landing-meter__pct {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f1e8d4;
  font-size: 0.75rem;
  font-weight: 800;
}
.landing-stages {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.landing-stage {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.7rem 0.7rem;
  border-top: 3px solid rgb(255 255 255 / 12%);
  background: rgb(8 10 24 / 40%);
  border-radius: 0 0 4px 4px;
}
.landing-stage strong { font-size: 0.92rem; color: #cfc6b3; }
.landing-stage span { font-size: 0.8rem; color: #8f887b; line-height: 1.4; }
.landing-stage--past { border-top-color: var(--landing-gold-soft); }
.landing-stage--past strong { color: var(--landing-gold-soft); }
.landing-stage--now { border-top-color: var(--landing-accent); background: rgb(155 134 224 / 14%); }
.landing-stage--now strong { color: #fff3d8; }
.landing-stage--now span { color: #cfc6e8; }

/* The Chronicle: loop */
.landing-loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}
.landing-loop__step { position: relative; padding: 1.3rem 1.2rem; display: grid; gap: 0.45rem; align-content: start; }
.landing-loop__step strong { font-family: var(--font-display); font-size: 1.12rem; }
.landing-loop__step > span:last-child { color: var(--landing-muted); line-height: 1.55; font-size: 0.95rem; }
.landing-loop__num {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  color: rgb(233 200 119 / 30%);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

/* Seasons group (inside the village slate · no second outer panel) */
.landing-seasons-block {
  display: grid;
  gap: 1.15rem;
}
.landing-seasons-block .landing-section__head { margin: 0; max-width: none; }
.landing-seasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.landing-season-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.landing-season {
  --accent: #c9a45c;
  --accent-hi: #f6e6b4;
  --accent-deep: #4a3818;
  --icon-hi: var(--accent-hi);
  --icon-deep: var(--accent-deep);
  --cut: 12px;
  position: relative;
  container-type: inline-size;
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / 55%));
}
.landing-season__frame {
  height: 100%;
  padding: 3px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-hi) 55%, #e6c98a), #8a6a32 48%, color-mix(in srgb, var(--accent) 60%, #c9a45c));
  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));
}
.landing-season__body {
  position: relative;
  height: 100%;
  background:
    radial-gradient(ellipse 75% 95% at 22% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(165deg, #243044, #121a28 55%, #0b111e);
  clip-path: polygon(calc(var(--cut) - 2px) 0, calc(100% - (var(--cut) - 2px)) 0, 100% calc(var(--cut) - 2px), 100% calc(100% - (var(--cut) - 2px)), calc(100% - (var(--cut) - 2px)) 100%, calc(var(--cut) - 2px) 100%, 0 calc(100% - (var(--cut) - 2px)), 0 calc(var(--cut) - 2px));
}
.landing-season__strip {
  position: absolute;
  top: 4px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hi), var(--accent), transparent);
}
.landing-season__corner { position: absolute; bottom: 6px; width: 18px; height: 18px; color: var(--accent); }
.landing-season__corner--l { left: 6px; }
.landing-season__corner--r { right: 6px; transform: scaleX(-1); }
.landing-season__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "emblem month" "rule rule" "name name";
  align-items: center;
  column-gap: 0.65rem;
  min-height: 7.4rem;
  padding: 0.85rem 0.75rem 0.7rem;
}
.landing-season__emblem {
  grid-area: emblem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 80%, transparent);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 30%, #0d1424), #0a0f1b 72%);
  box-shadow: 0 0 0 2px #0a0e18, 0 0 0 3px #8a6a32, 0 0 14px color-mix(in srgb, var(--accent) 28%, transparent);
}
.landing-season__icon { width: 66%; height: 66%; }
.landing-season__month { grid-area: month; margin: 0; font-weight: 700; font-size: clamp(1.15rem, 12cqi, 1.7rem); letter-spacing: 0.06em; color: #f4ead6; line-height: 1; }
.landing-season__month abbr { text-decoration: none; }
.landing-season__rule { grid-area: rule; height: 1px; margin: 0.35rem 0 0.4rem; background: linear-gradient(90deg, var(--accent), transparent 80%); }
.landing-season__name { grid-area: name; margin: 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--accent-hi); }
.landing-season--now { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent)) drop-shadow(0 6px 8px rgb(0 0 0 / 55%)); }
.landing-season--jan { --accent: #82c6f5; --accent-hi: #e2f4ff; --accent-deep: #173c5c; }
.landing-season--feb { --accent: #e2607f; --accent-hi: #ffc2cf; --accent-deep: #5c1328; }
.landing-season--mar { --accent: #3fb071; --accent-hi: #b4ecc2; --accent-deep: #0f3d24; }
.landing-season--apr { --accent: #9ad457; --accent-hi: #e2f8b4; --accent-deep: #2f5412; }
.landing-season--may { --accent: #e3a0b8; --accent-hi: #ffe0ea; --accent-deep: #5a2f40; }
.landing-season--jun { --accent: #f3c93e; --accent-hi: #fff3b8; --accent-deep: #5e4508; }
.landing-season--jul { --accent: #a689f2; --accent-hi: #e4dbff; --accent-deep: #2e2066; }
.landing-season--aug { --accent: #eba13a; --accent-hi: #ffdf9a; --accent-deep: #5c3708; }
.landing-season--sep { --accent: #dc7337; --accent-hi: #ffc996; --accent-deep: #5a260b; }
.landing-season--oct { --accent: #ff7b24; --accent-hi: #ffd66b; --accent-deep: #5e1f03; }
.landing-season--nov { --accent: #cd8a55; --accent-hi: #f1cda5; --accent-deep: #4c2810; }
.landing-season--dec { --accent: #e5464f; --accent-hi: #ffb0b3; --accent-deep: #5a0d14; }
.landing-season[data-anim="turn"]:hover .landing-season__icon { animation: season-icon-turn 900ms ease-out; }
.landing-season[data-anim="beat"]:hover .landing-season__icon { animation: season-icon-beat 700ms ease-out; }
.landing-season[data-anim="sway"]:hover .landing-season__icon { animation: season-icon-sway 800ms ease-in-out; transform-origin: 50% 90%; }
.landing-season[data-anim="twinkle"]:hover .landing-season__icon { animation: season-icon-twinkle 700ms ease-out; }
.landing-season[data-anim="bob"]:hover .landing-season__icon { animation: season-icon-bob 650ms ease-in-out; }
.landing-season[data-anim="flicker"]:hover .landing-season__icon { animation: season-icon-flicker 800ms ease-in-out; }
@keyframes season-icon-turn { to { rotate: 60deg; } }
@keyframes season-icon-beat { 0%, 100% { scale: 1; } 25% { scale: 1.12; } 65% { scale: 1.07; } }
@keyframes season-icon-sway { 0%, 100% { rotate: 0deg; } 30% { rotate: -9deg; } 65% { rotate: 5deg; } }
@keyframes season-icon-twinkle { 40% { scale: 1.1; rotate: -10deg; } }
@keyframes season-icon-bob { 40% { translate: 0 -3px; } }
@keyframes season-icon-flicker { 20% { opacity: 0.75; } 55% { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) {
  .landing-season .landing-season__icon { animation: none !important; }
}

/* Screens gallery · own slate panel */
.landing-gallery-panel {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
}
.landing-gallery-panel .landing-section__head { margin: 0; }
.landing-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.landing-shot { margin: 0; display: grid; gap: 0.55rem; align-content: start; }
.landing-shot__frame {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--landing-night);
  border: 1px solid var(--landing-wood);
  border-radius: var(--landing-radius);
  box-shadow: 0 0 0 1px var(--landing-wood-dark), 0 12px 26px rgb(0 0 0 / 35%);
  transition: border-color 0.15s;
}
.landing-shot__frame:hover,
.landing-shot__frame:focus-visible { border-color: var(--landing-gold-soft); }
.landing-shot__frame:active { transform: translateY(1px); }
.landing-shot__frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.landing-shot figcaption { display: grid; gap: 0.1rem; }
.landing-shot figcaption strong { font-family: var(--font-display); font-size: 1.08rem; }
.landing-shot figcaption span { color: var(--landing-muted); font-size: 0.9rem; }

/* One village slate: corner + entry + seasons as sibling groups */
.landing-village-slate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
}
.landing-slate__group { display: grid; gap: 1.15rem; min-width: 0; }
.landing-yard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}
.landing-yard .landing-roster {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
}
.landing-board__copy { display: grid; gap: 0.8rem; }
.landing-board__copy h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 1.95rem); }

/* Shot lightbox · match logged-out night slate instead of the wood plank shop look */
dialog.modal.modal--landing-shot {
  width: min(52rem, calc(100vw - 1.25rem));
  max-height: min(92dvh, 40rem);
  border: 0;
  background: transparent;
  padding: 0;
}
dialog.modal.modal--landing-shot .modal__panel.landing-shot-panel {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 40rem);
  overflow: hidden;
  color: var(--landing-ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 38%),
    linear-gradient(180deg, rgb(20 26 46 / 96%), rgb(9 12 24 / 98%));
  border: 1px solid var(--landing-hairline);
  border-radius: var(--landing-radius);
  box-shadow:
    inset 0 1px 0 rgb(255 205 120 / 40%),
    0 22px 48px rgb(0 0 0 / 55%);
}
dialog.modal.modal--landing-shot .modal-wood-head {
  background:
    linear-gradient(180deg, rgb(6 4 2 / 8%), rgb(6 4 2 / 55%)),
    url("/assets/coop/popup-heads/chronicle.webp?v=mwjubnal") center / cover no-repeat;
  border-bottom: 0;
  color: var(--landing-ink);
  box-shadow: none;
}
dialog.modal.modal--landing-shot .modal-wood-head h2 {
  color: var(--landing-gold);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0;
  gap: 0.7rem;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__stage {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #060914;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__img {
  width: 100%;
  max-height: none;
  border-radius: 0;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__pager .gate-shot-lightbox__nav {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__nav {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--landing-hairline);
  border-radius: 5px;
  background: linear-gradient(180deg, rgb(28 34 52 / 92%), rgb(12 16 28 / 94%));
  color: var(--landing-gold);
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgb(255 205 120 / 25%);
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__nav:hover,
dialog.modal.modal--landing-shot .gate-shot-lightbox__nav:focus-visible {
  border-color: var(--landing-gold-soft);
  color: #fff6dc;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__caption {
  color: var(--landing-muted);
  margin: 0;
  padding: 0 1.1rem;
}
dialog.modal.modal--landing-shot .gate-shot-lightbox__caption li { line-height: 1.45; }
dialog.modal.modal--landing-shot .gate-shot-lightbox__index {
  color: var(--landing-gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.landing-steward__paper.parchment { padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: 0.9rem; }
.landing-steward__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.85rem; align-items: center; }
.landing-steward__portrait {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  color: #f6e2b0;
  background: #2a170c;
  border-radius: 4px;
}
.landing-steward__portrait .icon { width: 1.9rem; height: 1.9rem; }
.landing-steward__who { display: grid; gap: 0.1rem; }
.landing-steward__who strong { color: #3a2614; font-family: var(--font-display); font-size: 1.1rem; }
.landing-steward__who span { color: #6e5232; font-size: 0.85rem; }
.landing-steward__purse {
  display: grid;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  color: #f1e6cc;
  font-weight: 800;
  font-size: 0.9rem;
  background: #1c1410;
  border-radius: 4px;
}
.landing-steward__purse span { display: inline-flex; align-items: center; gap: 0.35rem; }
.landing-steward__purse small { color: var(--landing-gold-soft); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.landing-steward__xp {
  position: relative;
  height: 1.6rem;
  overflow: hidden;
  background: #2a1d12;
  border: 2px solid #1a1008;
  border-radius: 3px;
}
.landing-steward__xp-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #f0d58a, #c49a44); }
.landing-steward__xp-text {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 0.6rem;
  color: #fff4d6;
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 1px 0 #1a1008, 0 0 3px #1a1008;
}

/* A Look Inside: site vs Discord */
.landing-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.landing-split__col { padding: 1.4rem 1.5rem; display: grid; gap: 0.9rem; align-content: start; }
.landing-split__col h3 { margin: 0; display: flex; align-items: center; gap: 0.55rem; font-size: 1.2rem; }
.landing-split__col h3 .icon { width: 1.3rem; height: 1.3rem; color: var(--landing-gold); }
.landing-split__col--discord h3 .icon { color: #8e98ff; }
.landing-split__col li { position: relative; padding-left: 1.1rem; color: #ddd4c1; line-height: 1.5; }
.landing-split__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--landing-gold-soft);
}
.landing-split__col--discord li::before { background: #8e98ff; }

/* A Look Inside: promises */
.landing-promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.landing-promise { padding: 1.3rem; display: grid; gap: 0.45rem; align-content: start; }
.landing-promise strong { font-family: var(--font-display); font-size: 1.12rem; }
.landing-promise > span:last-child { color: var(--landing-muted); line-height: 1.55; }

/* ---------- Join band + pager (every inner page) ---------- */
.landing-join {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3.5vw, 2.1rem) clamp(1.4rem, 3.5vw, 2.5rem);
  background:
    radial-gradient(ellipse 40% 90% at 0% 50%, rgb(255 160 50 / 18%), transparent 70%),
    linear-gradient(180deg, rgb(24 31 54 / 72%), rgb(9 12 24 / 84%));
}
.landing-join__egg { width: 4.5rem; height: 4.5rem; image-rendering: pixelated; }
.landing-join__copy { display: grid; gap: 0.35rem; }
.landing-join__copy h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.landing-join__copy p:not(.landing-kicker) { margin: 0; color: var(--landing-muted); line-height: 1.55; max-width: 36rem; }
.landing-join__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; justify-content: flex-end; }
.landing-join__actions .btn { margin: 0; }

.landing-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: calc(-1 * clamp(1.5rem, 4vw, 3rem));
}
.landing-pager__link {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  color: var(--landing-ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.landing-pager__link--next { text-align: right; }
.landing-pager__link:hover,
.landing-pager__link:focus-visible { border-color: var(--landing-gold-soft); }
.landing-pager__link:active { transform: translateY(1px); }
.landing-pager__dir { color: var(--landing-gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.landing-pager__link strong { font-family: var(--font-display); font-size: 1.2rem; }
.landing-pager__link em { color: var(--landing-muted); font-size: 0.88rem; font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 56rem) {
  .landing-pillars,
  .landing-promises,
  .landing-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-seasons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-roster {
    grid-template-columns: repeat(3, minmax(0, 10.5rem));
    justify-content: center;
  }
  .landing-entry,
  .landing-yard,
  .landing-eggwatch { grid-template-columns: 1fr; }
  .landing-eggwatch__egg { width: min(12rem, 60%); justify-self: center; }
  .landing-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-join { grid-template-columns: auto minmax(0, 1fr); }
  .landing-join__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 1000px) {
  /* iOS scrolls a fixed layer that sits under overflow:clip, then snaps it back. */
  .site-layout--gate:has(.landing-page) .page { overflow-x: visible; }
  .landing-page {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
  .landing-page--inner > .landing-scene {
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100svh;
  }
  html:has(.landing-page) body { background-attachment: scroll; }
  html:has(.landing-page--home),
  html:has(.landing-page--home) body,
  html:has(.landing-page--home) .site-layout--gate,
  .landing-page--home,
  .landing-hero {
    height: 100svh;
    max-height: 100svh;
  }
  html:has(.landing-page--home),
  html:has(.landing-page--home) body {
    overscroll-behavior: none;
  }
}
@media (max-width: 45rem) {
  :root { --landing-col: calc(100% - 2.25rem); }
  .landing-hero {
    padding-left: clamp(0.85rem, 4vw, 1.35rem);
    padding-right: clamp(0.85rem, 4vw, 1.35rem);
  }
  .landing-hero__content {
    width: 100%;
    margin-left: 0;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .landing-hero .landing-hero__title {
    font-size: clamp(1.85rem, 0.75rem + 8.5vw, 3.1rem);
  }
  .landing-stats,
  .landing-pillars,
  .landing-promises,
  .landing-loop,
  .landing-split,
  .landing-pager,
  .landing-gallery { grid-template-columns: 1fr; }
  .landing-roster {
    grid-template-columns: repeat(2, minmax(0, 10.5rem));
    justify-content: center;
    gap: 0.7rem;
  }
  .landing-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .landing-place__name { font-size: 0.88rem; }
  .landing-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .landing-stages { grid-template-columns: 1fr; }
  .landing-join { grid-template-columns: 1fr; text-align: left; }
  .landing-join__egg { width: 3.5rem; height: 3.5rem; }
  .landing-pager__link--next { text-align: left; }
  .landing-steward__top { grid-template-columns: auto minmax(0, 1fr); }
  .landing-steward__purse { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-nav__link::after,
  .landing-phone-nav__link::after { transition: none; }
  .landing-scene *,
  .landing-scene *::before,
  .signin__halo,
  .signin--cta .signin__flare { animation: none; }
}


.hall,
#hall-board-modal {
  --hall-parchment: #f0e4c8;
  --hall-parchment-dim: #d9c9a6;
  --hall-muted: #a8977a;
  --hall-rim: #6b4a2a;
  --hall-shadow: #1a110a;
  --hall-trim: #d8b24a;
  --hall-medal-gold: #e0b03a;
  --hall-medal-silver: #b9bfc9;
  --hall-medal-bronze: #b0783c;
  --hall-you: #8b7cc9;
  --month-accent: #c28f52;
  --month-accent-2: #d8b24a;
}
.hall {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.hall__stage { touch-action: pan-x pan-y; }
.hall__board[hidden] { display: none; }
.hall__board--compact .lb__title { height: calc(var(--u) * 16); font-size: 1em; }
.hall__board--compact .lb__row:nth-child(n + 4) { display: none; }
.hall__board--compact .lb__list { flex: none; height: calc(var(--u) * 54); }
.hall__board--compact .lb__you { display: none; }
.lb__empty {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 0.5em;
  padding: 0 1em;
  text-align: center;
  color: var(--hall-parchment-dim);
}
.lb__empty small { font-size: 0.8em; color: var(--hall-muted); }
.hall__preview {
  position: absolute;
  z-index: 3;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.45rem 0.3rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hall-parchment-dim);
  background: rgb(14 9 5 / 88%);
  border: 1px dashed var(--hall-you);
  border-radius: 0.4rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 40%);
}
.hall__preview select {
  min-height: 2rem;
  padding: 0.15rem 0.4rem;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  color: var(--hall-parchment);
  background: #1e140c;
  border: 1px solid #5a4630;
  border-radius: 0.3rem;
}
.hall__preview select:focus-visible { outline: 2px solid var(--hall-you); outline-offset: 1px; }
.hall__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #120a06;
}
.hall__scroller {
  position: absolute;
  inset: 0;
  overflow: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.hall__scroller::-webkit-scrollbar { display: none; }
.hall__scroller--pan-x { overflow-x: auto; }
.hall__canvas {
  display: block;
  max-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
/* Real, focusable button laid exactly over the painted Leaderboard. */
.hall__board-hit {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
}
.hall__board-hit:focus-visible { outline: 3px solid #ffd36a; outline-offset: 2px; }
/* Nav floats over the scene, top-left, exactly like the village. */
.hall__hud {
  position: absolute;
  z-index: 3;
  top: 0.6rem;
  left: 0.6rem;
  display: grid;
}
.hall__title, .hall__subtitle {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hall__board {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 0 calc(var(--u) * 1.5);
  color: var(--hall-parchment);
  font-size: calc(var(--u) * var(--fs, 4.5));
  line-height: 1;
  pointer-events: none;
}
.lb__title {
  flex: none;
  height: calc(var(--u) * 11);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe08a;
  text-shadow: 0 1px 0 #000;
  border-bottom: max(1px, calc(var(--u) * 0.5)) solid color-mix(in srgb, var(--month-accent) 70%, #3a281a);
}
.lb__list {
  flex: none;
  min-height: 0;
  margin: 0;
  padding: calc(var(--u) * 0.8) 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: calc(var(--u) * 0.35);
}
.lb__row {
  flex: none;
  min-height: calc(var(--u) * 4.5);
  display: grid;
  grid-template-columns: 1.7em 1.8em minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55em;
  padding: 0 0.6em 0 0.2em;
}
.lb__row:nth-child(even) { background: rgb(255 255 255 / 5%); }
.lb__rank { text-align: center; font-weight: 800; color: #c4a06a; }
.lb__row--1 .lb__rank { color: var(--hall-medal-gold); }
.lb__row--2 .lb__rank { color: var(--hall-medal-silver); }
.lb__row--3 .lb__rank { color: var(--hall-medal-bronze); }
.lb__head { width: 1.8em; height: 1.8em; image-rendering: pixelated; }
.lb__name { font-weight: 700; color: #f4ead6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__you { padding: 0.18em 0.45em; font-size: 0.78em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #120c20; background: var(--hall-you); border-radius: 0.2em; }
.lb__lv { font-weight: 700; color: #c4a06a; font-variant-numeric: tabular-nums; }
.lb__row--you { background: color-mix(in srgb, var(--hall-you) 34%, transparent); box-shadow: inset 0.3em 0 0 var(--hall-you); }
.lb__row--private {
  opacity: 0.72;
  background: rgb(36 24 15 / 45%);
  box-shadow: none;
}
.lb__row--private .lb__name,
.lb__row--private .lb__lv { color: rgb(244 234 214 / 72%); font-style: italic; }
.lb__row--empty {
  opacity: 0.42;
}
.lb__row--empty .lb__name {
  color: var(--hall-parchment-dim, #8a7a62);
}
.hall__tip {
  position: absolute;
  z-index: 4;
  max-width: 15rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  color: #f4ead6;
  background: rgba(10, 8, 6, 0.9);
  border: 1px solid rgba(196, 122, 42, 0.55);
  pointer-events: none;
  transform: translate(-50%, -130%);
}
.hall__tip[hidden] { display: none; }
.hall__tip small { display: block; color: var(--hall-muted); font-size: 0.65rem; }
.hall__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.32rem 0.8rem 0.32rem 0.55rem;
  font-size: 0.75rem;
  color: var(--hall-parchment);
  white-space: nowrap;
  background: rgba(14, 9, 5, 0.88);
  border: 1px solid color-mix(in srgb, var(--month-accent) 55%, #2a1c10);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 40%);
}
.hall__hint[hidden] { display: none; }
.hall__hint-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  color: #1a1008;
  background: var(--hall-medal-gold);
  border-radius: 50%;
}
.hall__hint-touch { display: none; }
.hall__links {
  position: absolute;
  z-index: 3;
  left: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  gap: 0.4rem;
}
.hall__links a:not(:focus-visible) {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hall__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);
}
.hall__sr {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- full leaderboard (site dialog.modal, wood-bar head) ---- */
.modal--hall-board .modal__panel { width: min(40rem, calc(100vw - 1.5rem)); }
.modal--hall-board .modal__body { padding: 0.6rem 0.8rem 0; color: var(--hall-parchment); }
.hall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.hall-list__row > a,
.hall-list__row > div {
  display: grid;
  grid-template-columns: 1.8rem 2.4rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.8rem;
  padding: 0.25rem 0.6rem 0.25rem 0.45rem;
  color: inherit;
  text-decoration: none;
  background: #24180f;
  border: 1px solid #3c2a1a;
  border-bottom: 3px solid var(--hall-shadow);
  border-radius: 3px;
}
.hall-list__row > a:hover { background: #2c1e13; }
.hall-list__row > a:focus-visible { outline: 2px solid #ffd36a; outline-offset: 1px; }
.hall-list__rank {
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hall-parchment-dim);
  background: #1a120b;
  border: 2px solid #4a3622;
  border-radius: 50%;
}
.hall-list__row--1 .hall-list__rank { color: #1a1008; background: var(--hall-medal-gold); border-color: var(--hall-shadow); }
.hall-list__row--2 .hall-list__rank { color: #1a1008; background: var(--hall-medal-silver); border-color: var(--hall-shadow); }
.hall-list__row--3 .hall-list__rank { color: #1a1008; background: var(--hall-medal-bronze); border-color: var(--hall-shadow); }
.hall-list__portrait {
  width: 2.4rem;
  height: 2.4rem;
  box-sizing: border-box;
  image-rendering: pixelated;
  background: #3a2a1a;
  border: 2px solid #b08a3a;
  box-shadow: 0 0 0 1px var(--hall-shadow);
}
.hall-list__who { min-width: 0; display: grid; }
.hall-list__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-list__bird { font-size: 0.72rem; color: var(--hall-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-list__stat { font-size: 0.7rem; color: var(--hall-parchment-dim); text-align: right; white-space: nowrap; }
.hall-list__stat b { display: block; font-size: 0.95rem; color: var(--hall-parchment); }
.hall-list__row--you > a,
.hall-list__row--you > div {
  background: color-mix(in srgb, var(--hall-you) 16%, #24180f);
  border-color: var(--hall-you);
  box-shadow: inset 4px 0 0 var(--hall-you);
}
.hall-list__row--private > div {
  opacity: 0.72;
  background: rgb(36 24 15 / 45%);
  border-color: #3c2a1a;
  box-shadow: none;
}
.hall-list__row--private .hall-list__name,
.hall-list__row--private .hall-list__bird { color: rgb(244 234 214 / 70%); font-style: italic; }
.hall-list__portrait--empty { background: rgb(58 42 26 / 45%); border-color: rgb(176 138 58 / 45%); }
.hall-you-tag {
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #120c20;
  background: var(--hall-you);
  border-radius: 2px;
  vertical-align: 0.1rem;
}
.hall-list__empty { margin: 1rem 0; text-align: center; color: var(--hall-parchment-dim); }
.hall-list__note { margin: 0.7rem 0 0.6rem; font-size: 0.72rem; color: var(--hall-muted); text-align: center; }
.hall-list__you {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.6rem;
  margin: 0 -0.8rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--hall-you) 22%, #1e140c);
  border-top: 2px solid var(--hall-you);
}
.hall-list__you b { color: #fff; }
.hall-list__row--you { scroll-margin: 1rem 0 4.5rem; }

/* ---- phone ---- */
@media (max-width: 45rem) {
  .hall__hud {
    top: auto;
    left: 50%;
    bottom: 0.45rem;
    transform: translateX(-50%);
  }
  .hall__hud .community__tabs { flex-wrap: nowrap; gap: 0.35rem; }
  .hall__hud .btn { min-height: 2.25rem; font-size: 0.82rem; }
  .hall__tip { display: none; }
  .hall__hint { bottom: 4.1rem; font-size: 0.7rem; padding: 0.22rem 0.65rem 0.22rem 0.4rem; }
  .hall__hint-click { display: none; }
  .hall__hint-touch { display: inline; }
  .hall__preview { top: auto; bottom: 7rem; right: 0.5rem; }
  .modal--hall-board .modal__body { padding: 0.5rem 0.6rem 0; }
  .hall-list__row > a,
  .hall-list__row > div { grid-template-columns: 1.6rem 2.2rem minmax(0, 1fr) auto; gap: 0.45rem; }
  .hall-list__stat--streak { display: none; }
  .hall-list__portrait { width: 2.2rem; height: 2.2rem; }
  .hall-list__you { margin: 0 -0.6rem; }
}
/* Short windows (phone on its side): keep the tabs top-left and slim. */
@media (max-height: 32.5rem) and (min-width: 45rem) {
  .hall__hud .btn { min-height: 1.9rem; }
  .hall__hint { display: none; }
}
