:root {
  --cream: #f1ede1;
  --cream-soft: rgba(241, 237, 225, .68);
  --cream-faint: rgba(241, 237, 225, .38);
  --line-light: rgba(241, 237, 225, .16);
  --forest: #08120f;
  --ink: #17241c;
  --ink-soft: #5d685f;
  --paper: #f1ecdf;
  --paper-deep: #e7e0d0;
  --green: #396d53;
  --accent: #e6a17d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Bahnschrift, "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 300px;
  height: 100%;
  background: var(--forest);
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--sans);
  background: var(--forest);
}

body::after {
  content: "";
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, .42);
}

button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--paper); background: var(--green); }

:focus-visible {
  outline: 2px solid rgba(225, 240, 213, .88);
  outline-offset: 4px;
}

#worldCanvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  transition: opacity .5s ease;
}

.scene-shade {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 9, 7, .68) 0%, rgba(3, 9, 7, .26) 15%, transparent 37%),
    linear-gradient(90deg, rgba(3, 9, 7, .5) 0%, rgba(3, 9, 7, .24) 30%, transparent 57%),
    linear-gradient(0deg, rgba(3, 9, 7, .76) 0%, rgba(3, 9, 7, .2) 27%, transparent 48%);
}

.grain {
  position: fixed;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.78'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.veil {
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: var(--veil-colour, rgba(232, 226, 211, .72));
  backdrop-filter: blur(16px);
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
}

.veil.is-visible { opacity: .86; }

.topbar > *,
.bottom-bar > * { transition: opacity .4s ease, transform .4s ease; }

body.is-changing #worldCanvas { opacity: .5; }
body.is-changing .place-copy,
body.is-changing .topbar > *,
body.is-changing .bottom-bar > * {
  opacity: 0;
  transform: translateY(8px);
}

.topbar {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  min-height: 72px;
  padding: 22px clamp(22px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--cream);
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(220, 236, 210, .84);
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-word {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1;
}

.brand-slash {
  color: var(--cream-faint);
  font-size: 14px;
  font-weight: 300;
}

.brand-sub {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--cream-soft);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.seed-label {
  margin-right: 9px;
  color: var(--cream-faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.quiet-button,
.icon-button,
.trail-button {
  border: 1px solid var(--line-light);
  background: rgba(8, 17, 13, .16);
  color: var(--cream-soft);
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.quiet-button:hover,
.icon-button:hover,
.trail-button:hover:not(:disabled) {
  color: var(--cream);
  border-color: rgba(241, 237, 225, .32);
  background: rgba(8, 17, 13, .3);
}

.quiet-button {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.count-badge {
  min-width: 18px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(207, 229, 194, .12);
  color: rgba(217, 236, 203, .82);
  font-size: 8px;
  letter-spacing: .02em;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.icon-button svg { width: 17px; height: 17px; }
.icon-button .sound-off { display: none; }
.icon-button.is-playing {
  color: #d8edcd;
  border-color: rgba(189, 225, 183, .38);
  background: rgba(118, 158, 110, .14);
}
.icon-button.is-playing .sound-on { display: block; }
.icon-button:not(.is-playing) .sound-on { display: none; }
.icon-button:not(.is-playing) .sound-off { display: block; }

.stage {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(24px, 4.6vw, 72px) clamp(88px, 10vh, 116px);
  pointer-events: none;
}

.place-copy {
  width: min(690px, 49vw);
  pointer-events: auto;
  transition: opacity .35s ease, transform .45s ease;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cream-faint);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .19em;
  line-height: 1;
  text-transform: uppercase;
}

.status-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: background .5s ease, box-shadow .5s ease;
}

.eyebrow-rule {
  width: 22px;
  height: 1px;
  background: var(--line-light);
}

#weatherLabel { color: rgba(241, 237, 225, .55); }

.place-copy h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(58px, 5.7vw, 92px);
  font-weight: 400;
  line-height: .91;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .16);
}

.place-copy h1.is-long {
  font-size: clamp(50px, 4.9vw, 79px);
  letter-spacing: -.04em;
}

.lore {
  max-width: 410px;
  margin: 0;
  color: rgba(241, 237, 225, .69);
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  font-style: italic;
  line-height: 1.48;
  letter-spacing: .002em;
}

.place-actions {
  margin-top: clamp(22px, 3vw, 32px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.wander-button {
  min-height: 51px;
  padding: 0 8px 0 21px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 15px 44px rgba(0, 0, 0, .2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.wander-button:hover {
  transform: translateY(-1px);
  background: #fbf8ed;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .26);
}

.wander-button:active { transform: translateY(0); }

.wander-button:disabled,
.keep-button:disabled,
.text-link:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.wander-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
}

.wander-icon svg { width: 18px; height: 18px; }

.keep-button {
  min-height: 51px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(241, 237, 225, .22);
  border-radius: 999px;
  background: rgba(8, 17, 13, .18);
  color: rgba(241, 237, 225, .72);
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.keep-button:hover {
  color: var(--cream);
  border-color: rgba(241, 237, 225, .42);
  background: rgba(8, 17, 13, .3);
}

.keep-icon { width: 16px; height: 16px; }
.keep-button .keep-icon path { transition: fill .2s ease; }
.keep-button.is-kept {
  color: #d8edcd;
  border-color: rgba(178, 218, 167, .38);
  background: rgba(112, 153, 106, .16);
}
.keep-button.is-kept .keep-icon path { fill: currentColor; }

.under-actions {
  margin-top: 21px;
  display: flex;
  align-items: center;
  gap: 23px;
}

.text-link {
  padding: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid rgba(241, 237, 225, .22);
  background: transparent;
  color: rgba(241, 237, 225, .56);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}

.text-link:hover { color: var(--cream); border-color: rgba(241, 237, 225, .48); }
.text-link svg { width: 13px; height: 13px; }

.coordinates {
  color: rgba(241, 237, 225, .33);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.visitor-invite {
  margin-top: 13px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(241, 237, 225, .54);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.3;
  text-align: left;
  transition: color .2s ease;
}

.visitor-invite:hover { color: var(--cream); }
.visitor-invite:disabled { opacity: .4; cursor: not-allowed; }
.visitor-invite svg { width: 14px; height: 14px; transition: transform .2s ease; }
.visitor-invite:hover svg { transform: translateX(3px); }

.visitor-pip {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  animation: visitor-breathe 3.2s ease-in-out infinite;
}

@keyframes visitor-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .6; }
}

.bottom-bar {
  position: fixed;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 72px;
  padding: 15px clamp(22px, 4vw, 58px) 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
}

.trail-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.trail-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.trail-button svg { width: 17px; height: 17px; }
.trail-button:disabled { opacity: .25; }

.trail-label {
  min-width: 78px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trail-label span,
.scene-meta,
.hint {
  color: rgba(241, 237, 225, .32);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.trail-label strong {
  color: rgba(241, 237, 225, .7);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hint {
  align-self: center;
  justify-self: center;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hint span { color: rgba(241, 237, 225, .18); }
kbd {
  padding: 2px 5px;
  border: 1px solid rgba(241, 237, 225, .17);
  border-radius: 4px;
  background: rgba(8, 17, 13, .18);
  color: rgba(241, 237, 225, .55);
  font: 600 7px var(--sans);
  letter-spacing: .08em;
}

.scene-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.scene-meta-rule { width: 18px; height: 1px; background: rgba(241, 237, 225, .18); }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 92px;
  min-width: 240px;
  max-width: calc(100vw - 40px);
  padding: 12px 18px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(241, 237, 225, .16);
  border-radius: 999px;
  background: rgba(11, 24, 17, .93);
  color: var(--cream-soft);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.toast-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 222, 181, .1);
}

.toast-mark::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cfe8c2;
}

.modal {
  width: min(735px, calc(100vw - 32px));
  max-height: min(760px, calc(100svh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 28, .14);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 35px 110px rgba(0, 0, 0, .52);
}

.modal::backdrop {
  background: rgba(3, 9, 6, .64);
  backdrop-filter: blur(9px);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in .24s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  padding: 29px 30px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow.dark { color: #8a948b; }

.modal-head h2 {
  margin: 11px 0 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 36, 28, .14);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: color .2s ease, background .2s ease;
}

.modal-close:hover { color: var(--ink); background: rgba(23, 36, 28, .06); }
.modal-close svg { width: 16px; height: 16px; }

.notes-lede {
  max-width: 480px;
  margin: 0;
  padding: 0 30px 17px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

.notes-scroll {
  flex: 1;
  min-height: 250px;
  overflow: auto;
  padding: 0 30px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 36, 28, .22) transparent;
}

.notes-list { margin: 0; padding: 0; list-style: none; }

.note-item {
  min-height: 78px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid rgba(23, 36, 28, .09);
}

.note-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(23, 36, 28, .04);
}

.note-copy { min-width: 0; }
.note-name {
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-lore {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.note-date {
  display: block;
  margin-top: 4px;
  color: #a1a89f;
  font-size: 6.8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.note-visitor {
  display: block;
  margin-top: 2px;
  color: rgba(57, 109, 83, .72);
  font-family: var(--serif);
  font-size: 9.5px;
  font-style: italic;
}

.note-visit {
  padding: 6px 9px;
  border: 1px solid rgba(23, 36, 28, .14);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.note-visit:hover { color: var(--ink); border-color: rgba(23, 36, 28, .28); background: rgba(255, 255, 255, .3); }

.note-remove {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a4aaa2;
  font-size: 16px;
  line-height: 1;
  transition: color .2s ease, background .2s ease;
}
.note-remove:hover { color: #8c5045; background: rgba(140, 80, 69, .08); }

.notes-list[hidden], .notes-empty[hidden] { display: none; }

.notes-empty {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-mark { margin-bottom: 12px; color: #849587; font-size: 31px; }
.notes-empty h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.notes-empty p { max-width: 290px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 12.5px; line-height: 1.45; }

.modal-foot {
  padding: 17px 30px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(23, 36, 28, .08);
}

.notes-meta {
  color: #8f988f;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.danger-link {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #9c7769;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.danger-link:hover:not(:disabled) { color: #7e4438; }
.worldwright-modal { width: min(720px, calc(100vw - 32px)); }

.worldwright-body {
  flex: 1;
  min-height: 0;
  padding: 0 30px 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 36, 28, .22) transparent;
}

.worldwright-lede {
  max-width: 500px;
  margin: 0 0 19px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

.field-group { margin-bottom: 16px; }

.field-label {
  display: block;
  margin: 0 0 7px;
  color: #879087;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.field-input,
.field-textarea {
  width: 100%;
  border: 1px solid rgba(23, 36, 28, .13);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, .23);
  color: var(--ink);
  font-family: var(--serif);
  transition: border-color .2s ease, background .2s ease;
}

.field-input {
  height: 44px;
  padding: 0 13px;
  font-size: 17px;
}

.field-textarea {
  min-height: 82px;
  padding: 10px 13px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.45;
}

.field-input::placeholder,
.field-textarea::placeholder { color: #a1a79f; opacity: 1; }

.field-input:focus,
.field-textarea:focus {
  border-color: rgba(57, 109, 83, .58);
  background: rgba(255, 255, 255, .36);
}

.light-fieldset {
  margin: 19px 0 0;
  padding: 0;
  border: 0;
}

.palette-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.palette-option {
  min-width: 0;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(23, 36, 28, .1);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.palette-option:hover {
  color: var(--ink);
  border-color: rgba(23, 36, 28, .22);
  background: rgba(255, 255, 255, .24);
}

.palette-option.is-active {
  color: var(--ink);
  border-color: rgba(57, 109, 83, .48);
  background: rgba(255, 255, 255, .38);
}

.palette-swatch {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 6px rgba(23, 36, 28, .12);
}

.palette-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seed-line {
  margin-top: 19px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(23, 36, 28, .09);
}

.seed-line-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.seed-line-copy span {
  color: #929a92;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.seed-line-copy strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tool-button {
  padding: 7px 10px;
  border: 1px solid rgba(23, 36, 28, .13);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tool-button:hover:not(:disabled) {
  color: var(--ink);
  border-color: rgba(23, 36, 28, .27);
  background: rgba(255, 255, 255, .26);
}

.tool-button:disabled { opacity: .35; }

.world-save {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.world-save:hover { background: #20392b; transform: translateY(-1px); }
.world-save:active { transform: translateY(0); }

.worldwright-foot .modal-tools { flex-wrap: wrap; justify-content: flex-end; }

.visitor-modal {
  position: relative;
  width: min(610px, calc(100vw - 32px));
}

.visitor-close { position: absolute; z-index: 2; top: 22px; right: 24px; }

.visitor-mark {
  width: 43px;
  height: 43px;
  margin: 34px 0 17px 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff9ea, var(--accent) 54%, rgba(23, 36, 28, .25) 100%);
  box-shadow: 0 0 0 9px rgba(57, 109, 83, .055), 0 9px 26px rgba(23, 36, 28, .14);
}

.visitor-body { padding: 0 36px 28px; }

.visitor-body h2 {
  margin: 13px 0 4px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 48px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.visitor-role {
  margin: 0;
  color: #8c958c;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.visitor-line {
  margin: 27px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  line-height: 1.5;
}

.visitor-reply {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 36, 28, .1);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  animation: reply-in .35s ease both;
}

.visitor-reply[hidden] { display: none; }

@keyframes reply-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.visitor-foot { border-top: 1px solid rgba(23, 36, 28, .08); }

.visitor-listen {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.visitor-listen:hover { background: #20392b; transform: translateY(-1px); }
.visitor-listen:active { transform: translateY(0); }
@media (max-width: 1040px) {
  .seed-label { display: none; }
  .place-copy { width: min(650px, 54vw); }
}

@media (max-width: 760px) {
  .topbar { padding: 15px 18px; min-height: 62px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-word { font-size: 12px; }
  .brand-sub { font-size: 14px; }
  .brand-slash { font-size: 12px; }
  .top-actions { gap: 7px; }
  .quiet-button { padding: 0 10px; }
  .stage {
    align-items: flex-start;
    padding: 104px 22px 0;
  }
  .place-copy { width: 100%; }
  .place-copy h1 {
    max-width: 520px;
    margin-top: 15px;
    font-size: clamp(46px, 12vw, 68px);
  }
  .place-copy h1.is-long { font-size: clamp(38px, 10.3vw, 55px); }
  .lore { max-width: 345px; font-size: 14px; }
  .place-actions { margin-top: 20px; gap: 8px; }
  .wander-button { min-height: 47px; padding-left: 17px; gap: 13px; }
  .wander-icon { width: 32px; height: 32px; }
  .keep-button { min-height: 47px; padding: 0 14px; }
  .under-actions { margin-top: 16px; }
  .coordinates { display: none; }
  .visitor-invite { margin-top: 11px; font-size: 12px; }
  .hint { display: none; }
  .bottom-bar {
    grid-template-columns: 1fr;
    padding: 12px 22px 18px;
  }
  .trail-nav { justify-self: start; }
  .scene-meta { display: none; }
  .toast { bottom: 78px; }
}

@media (max-width: 430px) {
  .quiet-button { gap: 6px; padding: 0 9px; }
  .notes-button-label { font-size: 8px; letter-spacing: .08em; }
  .place-copy h1 { font-size: clamp(41px, 12.4vw, 56px); max-width: 340px; }
  .place-copy h1.is-long { font-size: clamp(35px, 9.8vw, 46px); }
  .lore { max-width: 315px; }
  .wander-button { padding-left: 15px; gap: 10px; font-size: 8.5px; }
  .keep-button { padding: 0 11px; font-size: 8.2px; }
  .keep-button svg { width: 14px; height: 14px; }
  .modal { width: calc(100vw - 20px); max-height: calc(100svh - 20px); }
  .modal-head { padding: 23px 20px 14px; }
  .modal-head h2 { font-size: 31px; }
  .notes-lede { padding: 0 20px 14px; }
  .notes-scroll { padding: 0 20px 8px; }
  .note-item { grid-template-columns: 10px minmax(0, 1fr) auto 22px; gap: 8px; }
  .note-visit { display: inline-block; padding: 5px 7px; font-size: 7px; }
  .note-name { font-size: 16px; }
  .modal-foot { padding: 15px 20px 18px; }
  .worldwright-body { padding: 0 20px 7px; }
  .palette-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worldwright-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
  .worldwright-foot .modal-tools { width: 100%; justify-content: stretch; }
  .worldwright-foot .modal-tools .tool-button { flex: 1; }
  .tool-button {
  padding: 7px 10px;
  border: 1px solid rgba(23, 36, 28, .13);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tool-button:hover:not(:disabled) {
  color: var(--ink);
  border-color: rgba(23, 36, 28, .27);
  background: rgba(255, 255, 255, .26);
}

.tool-button:disabled { opacity: .35; }

.world-save { flex: 1; }
}

@media (max-width: 360px) {
  .brand-sub, .brand-slash { display: none; }
  .notes-button-label { display: none; }
  .topbar { padding-left: 14px; padding-right: 14px; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .topbar { min-height: 58px; padding-top: 14px; padding-bottom: 14px; }
  .stage { padding-bottom: 76px; }
  .place-copy h1 { margin-top: 12px; margin-bottom: 11px; font-size: clamp(48px, 5vw, 72px); }
  .lore { font-size: 14.5px; }
  .place-actions { margin-top: 17px; }
  .wander-button, .keep-button { min-height: 44px; }
  .wander-icon { width: 30px; height: 30px; }
  .under-actions { margin-top: 13px; }
  .bottom-bar { min-height: 60px; padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}









