html { scroll-behavior: smooth; }
.wc .pill-preview { display: none; }
.wc .preview-label { font: 10px var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.wc .preview { position: fixed; bottom: 10px; left: 12px; z-index: 55; width: min(350px, calc(100vw - 24px)); font-size: 12px; }
.wc .preview-toggle { border: var(--line); background: var(--paper); padding: 10px; min-height: 44px; border-radius: var(--r); }
.wc .preview-body { background: var(--paper); border: var(--line); padding: 16px; max-height: 65vh; overflow: auto; display: grid; gap: 10px; }
.wc .preview-body button { min-height: 36px; }
.wc .camps-heading { padding: 12px; font-size: 18px; }
.wc .supply-side > .scene-side > .signboard { display: none; }
@media(max-width:767px) {
  .wc .supplies-screen > .supply-side { display: none; }
}
.wc .hello { padding-bottom: 24px; }
.wc .hello h1 { margin-bottom: 12px; }
.wc .hello .sub { color: var(--muted); margin-bottom: 12px; }
.wc .hello .actions { margin-top: 18px; }
.wc .home-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wc .clearing-title { font: 700 22px var(--display); margin-bottom: 10px; }
.wc .my-campers-layout { display: grid; grid-template-columns: minmax(0,3fr) minmax(230px,1fr); gap: 24px; align-items: start; }
.wc .my-campers-layout .camper-grid { margin: 0; }
.wc .my-campers-layout aside .card { padding: 16px; }
.wc .how-panels { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.wc .how-panels h2 { margin-top: 0; font-size: 28px; }
@media(max-width:1200px) {
  .wc .my-campers-layout { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:767px) {
  .wc .how-panels { grid-template-columns: minmax(0,1fr); }
}
.wc .world-hero { background: var(--night); color: var(--paper); min-height: min(850px, calc(100dvh - 76px)); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); align-items: center; gap: 20px; padding: 48px 40px; }
.wc .world-copy { max-width: 560px; position: relative; }
.wc .world-copy h1 { font: 800 70px/.99 var(--display); letter-spacing: -.02em; margin-block: 16px 24px; }
.wc .world-copy .lede { color: #cfdcd3; font-size: 18px; }
.wc .world-copy .kicker { color: var(--signal); }
.wc .world-copy .ctas { margin-block: 24px; }
.wc .world-copy .stats { margin-top: 40px; }
.wc .world-copy .stats small { color: #cfdcd3; font: 10px var(--mono); text-transform: uppercase; }
.wc .notfound { min-height: 70vh; display: grid; place-items: center; padding: 40px 24px; }
.wc .notfound > div { max-width: 740px; padding: 40px; background: var(--paper); border: var(--line); }
.wc .notfound h1 { margin-block: 12px 20px; }
.wc .notfound .row { margin-top: 24px; }
.wc .auth-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.3fr); gap: 48px; align-items: center; min-height: calc(100dvh - 180px); }
.wc[data-pitch=true] .page { background: var(--night); }
.wc[data-pitch=true] .panel-title h1, .wc[data-pitch=true] .panel-sub, .wc[data-pitch=true] .panel-foot, .wc[data-pitch=true] .preview-label, .wc[data-pitch=true] .atlas-layout > div > p { color: var(--paper); }
.wc[data-pitch=true] .panel-head .row, .wc[data-pitch=true] .atlas-layout > div > .field-row, .wc[data-pitch=true] .atlas-layout > div > .callout { display: none; }
.wc[data-pitch=true] .camps-heading { display: none; }
.wc .world-access { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); color: var(--forest); }
.wc .world-access .auth { max-height: calc(100dvh - 160px); overflow-y: auto; }
.wc .world-auth-open .world-intro { visibility: hidden; }
.wc .world-access .auth .switch { position: static; }
@media(max-width:767px) {
  .wc .world-access { position: static; transform: none; width: 100%; }
  .wc .world-access .auth { max-height: none; padding: 20px; }
  .wc .world-auth-open .world-intro { display: none; }
  .wc .world-auth-open .world-copy { width: 100%; }
}
@media (max-width: 1200px) {
  .wc .world-copy h1 { font-size: 58px; }
}
@media (max-width: 767px) {
  .wc:has(#fieldBody .savebar) .preview { visibility: hidden; }
  .wc .roster-screen > .stack:last-child { display: contents; }
  .wc .roster-screen > .stack:first-child { grid-row: 2; }
  .wc .roster-screen .scene-side { grid-row: 1; }
  .wc .roster-screen .gate-section { grid-row: 3; }
  .wc .badges-layout > div:last-child { display: none; }
  .wc .badges-layout[data-editing] > div:first-child { display: none; }
  .wc .badges-layout[data-editing] > div:last-child { display: block; }
  .wc .home-columns { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .wc .preview { bottom: 72px; }
  .wc .preview { display: none; }
  .wc .home .hello { display: grid; }
  .wc .hello h1 { font-size: 32px; }
  .wc .world-hero { display: flex; flex-direction: column; min-height: 0; padding: 20px 20px 40px; }
  .wc .world-copy h1 { font-size: 46px; }
  .wc .world-copy .lede { font-size: 16px; }
  .wc .world-copy .ctas { display: grid; }
  .wc .world-copy .ctas .btn { justify-content: center; }
  .wc .world-copy .stats { gap: 20px; margin-top: 24px; }
  .wc .world-copy .stats b { font-size: 22px; }
  .wc .notfound > div { padding: 24px; }
  .wc .auth-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .wc .auth-layout > .atlas-side { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.wc.site .preview-label { margin-bottom: 0; padding-block: 8px; }
.wc.site.home .preview-label { background: var(--night); color: #cfdcd3; max-width: none; }
.wc .watch-ui > .preview-label { position: absolute; left: 20px; top: 2px; z-index: 4; background: var(--paper); padding: 2px 6px; pointer-events: none; }
.wc .preview { pointer-events: none; width: fit-content; max-width: calc(100vw - 24px); }
.wc .preview > * { pointer-events: auto; }
.wc .preview-body { width: min(350px, calc(100vw - 24px)); }
.wc:has(#fieldBody .atlas-card:not([hidden]), #fieldBody .walk-reading:not([hidden]), #watch:not([hidden]) .inspector:not([hidden]), #accountMenu:not([hidden]), .switch[open], .row-actions[open]) .preview, .wc.has-dialog .preview { visibility: hidden; }
.wc[data-mode=watch] .preview { left: auto; right: 20px; bottom: 100px; }
.wc .home-columns { grid-template-areas: 'needs clearing' 'log register'; }
.wc .home-columns.no-needs { grid-template-areas: 'log clearing' 'log register'; }
.wc .home-needs { grid-area: needs; }
.wc .home-clearing { grid-area: clearing; }
.wc .home-log { grid-area: log; }
.wc .home-register { grid-area: register; }
@media(max-width:767px) {
  .wc .world-hero > #publicAtlas { order: -1; width: 100%; }
  .wc .home-columns { grid-template-areas: 'needs' 'clearing' 'log' 'register'; }
  .wc .home-columns.no-needs { grid-template-areas: 'clearing' 'log' 'register'; }
}
.wc[data-context=auth] .preview-label { color: var(--paper-2); }
/* Phase 5 (connect). Kit candidates for the Design system agent: the 3D Earth inside the atlas, the place
   editor's town results and pin, the badge-art patch, and the Walk 3D window. */
.wc .atlas-globe { position: absolute; inset: 0; }
.wc .atlas-globe[hidden], .wc .atlas-pins[hidden], .wc .atlas > img[hidden] { display: none; }
.wc .place-results:empty { display: none; }
.wc .place-results .item-row { width: 100%; text-align: left; }
.wc .place-globe { position: relative; aspect-ratio: 1.4; border: var(--line); border-radius: var(--r); overflow: hidden; background: var(--night); }
.wc .place-globe[hidden] { display: none; }
.wc .patch-art { width: 72px; height: 72px; }
.wc .patch.locked .patch-art { opacity: .45; filter: grayscale(1); }
.wc .walk-window { aspect-ratio: 1.3; }
.wc .walk-world { position: absolute; inset: 0; }
@media (max-width: 767px) { .wc .walk-window { aspect-ratio: 1; } }
.wc img.ascii-empty { width: min(320px, 100%); height: auto; margin-inline: auto; }
.wc .state.loading > div[aria-hidden] { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
.wc .walk-layout > .walk-reading { align-content: start; align-self: start; }

/* Coming soon (2 Nov 2026): the public pages redirect here while the game is built. */
.wc .coming-soon .soon-logo { height: 32px; margin-bottom: 24px; }
.wc .coming-soon .small { margin-top: 24px; }
