* {
  box-sizing: border-box;
  margin: 0;
}

:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --surface-3: #e7e6df;
  --line: #d7d7d0;
  --line-strong: #a9aaa1;
  --ink: #211e1f;
  --muted: #6c6265;
  --green: #97324c;
  --green-dark: #75243a;
  --green-soft: #f2e7ea;
  --blue: #5a6270;
  --blue-soft: #e9e8eb;
  --amber: #916b3d;
  --amber-soft: #f2e9dc;
  --red: #9f3f44;
  --red-soft: #f4e4e4;
  --radius: 4px;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-serif);
  font-size: 15px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--green-dark);
  font-weight: 650;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

input,
select,
textarea {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(122, 49, 72, 0.14);
  outline-offset: 1px;
}

::placeholder {
  color: #9b908a;
}

.muted {
  color: var(--muted);
}

.grow {
  flex: 1;
  min-width: 0;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: -3px;
}

/* App chrome */

.topnav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 238, 0.97);
  padding: 10px clamp(18px, 4vw, 58px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: transparent;
  color: var(--green);
}

.brand-mark .ui-icon {
  width: 20px;
  height: 20px;
}

.navlinks {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 24px;
}

.navlinks a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: #655b56;
  font-size: 13px;
  font-weight: 560;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--ink);
  text-decoration: none;
}

.navlinks a:hover::after,
.navlinks a.active::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 1px;
  background: var(--green);
  content: "";
}

.topnav .spacer {
  flex: 1;
}

.navmeta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.nav-profile-link {
  color: #655b56;
  font-size: 13px;
  font-weight: 560;
}

.nav-profile-link:hover {
  color: var(--ink);
}

.nav-human-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.nav-human-mark:hover {
  border-color: var(--green);
  text-decoration: none;
}

@media (max-width: 960px) {
  .topnav .badge-label {
    display: none;
  }}

.nav-name{
  font-weight: 650;
}

.band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: #43383a;
  padding: 8px 20px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-style: italic;
  font-weight: 600;
}

.band .sub {
  color: var(--muted);
  font-weight: 450;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.badge.ok .status-dot {
  background: var(--green);
}

.badge.warn {
  color: var(--amber);
}

.code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 2px 7px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 550;
}

/* Shared layout and controls */

.content {
  display: flex;
  width: 100%;
  max-width: 1200px;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  padding: 28px clamp(14px, 3vw, 28px) 64px;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2,
.match-log-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 730;
  letter-spacing: -0.015em;
}

.section-head p {
  margin-top: 2px;
  font-size: 12.5px;
}

button.primary,
.primary[href]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  padding: 8px 14px;
  font-weight: 680;
}

button.primary:hover,
.primary[href]:hover {
  background: var(--green-dark);
  text-decoration: none;
}

button.ghost,
.msg-form button{
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 13px;
  font-weight: 650;
}

button.ghost:hover,
.msg-form button:hover{
  border-color: #938789;
  background: var(--surface-2);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 3px;
  font-size: 12px;
  font-weight: 680;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pet identity */

.avatar,
.pet-token {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
}

.avatar {
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.pet-token {
  --pet-accent: #8a4250;
  overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--pet-accent) 55%, #c9b4ae);
  border-radius: 7px;
  background: color-mix(in srgb, var(--pet-accent) 14%, #fffdf8);
  color: color-mix(in srgb, var(--pet-accent) 76%, #46292e);
}

.pet-glyph {
  width: 86%;
  height: 86%;
}

.pet-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.pet-token.has-art {
  border-width: 1px;
  border-color: color-mix(in srgb, var(--pet-accent) 26%, #c9b4ae);
  background: #f6efe7;
}

.pet-token.mood-won {
  outline: 3px solid rgba(154, 106, 34, 0.22);
}

.pet-token.mood-lost {
  filter: grayscale(0.72);
  opacity: 0.72;
}

.pet-token.mood-draw {
  filter: saturate(0.65);
}

.navmeta > .pet-token,
.navmeta > .avatar {
  width: 28px;
  height: 28px;
}

.nav-companion {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-companion b {
  font-size: 11px;
  font-weight: 620;
}

.nav-companion small {
  color: var(--muted);
  font-size: 8px;
}
.tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag {
  border: 1px solid var(--line-strong);
  color: var(--muted);
  padding: 3px 6px;
}

.tag.bot {
  border-color: #b7c9d7;
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.you {
  border-color: #d2b7bc;
  background: var(--green-soft);
  color: var(--green-dark);
}

.post-drawer {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.post-drawer > summary {
  width: max-content;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
}

.field {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 4px;
}

.field.grow {
  flex: 2.5 1 260px;
}

.field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
}

.quick {
  scroll-margin-top: 76px;
}

.quick > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 690;
  list-style-position: inside;
}

.quick > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
}

/* Rooms */

.room-content {
  max-width: 1320px;
}

.match-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
}

.match-log-head h2 {
  font-size: 14px;
}

.seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.seat.mine {
  border-color: #bb9ba0;
  box-shadow: inset 3px 0 0 var(--green);
}

.seat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.seat-head .pet-token,
.seat-head .avatar {
  width: 34px;
  height: 34px;
}

.seat-companion {
  display: flex;
  min-width: 90px;
  flex-direction: column;
  line-height: 1.15;
}

.seat-companion b {
  font-size: 12px;
}

.seat-companion small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cac4c5;
}

.dot.on {
  background: var(--green);
}

.name {
  font-weight: 700;
}

.feed {
  display: flex;
  min-height: 160px;
  max-height: 44vh;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px;
}

.row {
  display: flex;
}

.row.right {
  justify-content: flex-end;
}

.row.center {
  justify-content: center;
}

.chip {
  max-width: 84%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 6px 9px;
  font-size: 12px;
}

.row.right .chip {
  border-color: #d3bec1;
  background: var(--green-soft);
}

.chip b {
  margin-right: 4px;
  color: var(--muted);
  font-weight: 650;
}

.chip.sys {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.chip.sys .ui-icon {
  width: 13px;
  height: 13px;
}

.actionbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-form {
  display: flex;
  gap: 7px;
}
.msg-form input {
  flex: 1;
}
.lock-stamp {
  position: absolute;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.lock-stamp {
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 2px 5px;
}

/* Companion adoption */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 27, 30, 0.72);
  padding: 16px;
}

body:has(.modal-backdrop) {
  overflow: hidden;
}

.modal {
  width: 100%;
  max-width: 730px;
  max-height: 92vh;
  overflow-y: auto;
  border-top: 3px solid var(--green);
  box-shadow: 0 20px 54px rgba(40, 27, 30, 0.24);
  padding: 22px;
}

.adoption-modal {
  max-width: 860px;
  padding: clamp(20px, 4vw, 38px);
}

.adoption-modal h1 {
  max-width: 680px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.adopt-intro {
  max-width: 720px;
  margin-top: 14px;
  color: #665c57;
  line-height: 1.65;
}

.adopt-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 25px;
}

.adopt-step > span {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 18px;
}

.adopt-step b,
.adopt-step small {
  display: block;
}

.adopt-step b {
  font-size: 13px;
}

.adopt-step small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.adopt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin: 17px 0;
}

.adopt-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink);
  min-height: 152px;
  padding: 12px 9px 10px;
}

.adopt-card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.adopt-card.picked {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.adopt-card .pet-token {
  width: 66px;
  height: 66px;
}

.adopt-card small {
  max-width: 150px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.adopt-label {
  overflow: hidden;
  width: 100%;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adopt-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.nature-choice {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.nature-choice span {
  color: var(--muted);
  font-size: 10px;
}

.nature-choice.picked {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.adopt-foot {
  margin-top: 12px;
}

.adopt-submit {
  min-height: 40px;
}

/* Manual tools and feedback */

.console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 13px;
  font-size: 12px;
}

.console summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 620;
}

.console-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0;
}

.console-tools button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--blue);
  padding: 4px 7px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
}

.console textarea {
  width: 100%;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

.console-out {
  max-height: 230px;
  overflow-y: auto;
  margin-top: 7px;
  border-radius: 4px;
  background: var(--surface-2);
  color: #594d4f;
  padding: 7px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #fffdf8;
  color: #46292e;
  padding: 9px 16px;
  box-shadow: 0 10px 28px rgba(56, 33, 37, 0.22);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
}

.landing {
  max-width: 620px;
  margin: 0 auto;
  padding: 72px 20px;
  text-align: center;
}

.landing h1 {
  font-size: 34px;
}

.tagline {
  margin-top: 6px;
  color: var(--green);
  font-weight: 680;
}

.sub {
  margin-top: 8px;
  color: var(--muted);
}

/* Connections — an editorial, human-first layer over the shared room engine */

.connections-content {
  max-width: 1320px;
  gap: 36px;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
}

.eyebrow {
  display: block;
  color: #826657;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.connections-hero {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
  border-bottom: 1px solid var(--line-strong);
  padding: 62px 4px 44px;
}

.connections-hero.compact {
  min-height: 230px;
}

.connections-hero > div:first-child {
  max-width: 760px;
}

.connections-hero h1,
.profile-editor h2,
.profile-person h3,
.connection-intro,
.adventure-stage h1,
.adventure-complete h1,
.adventure-consent h1 {
  font-family: var(--font-display);
}

.connections-hero h1 {
  max-width: 800px;
  margin-top: 14px;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.connections-hero p {
  max-width: 670px;
  margin-top: 26px;
  color: #655c57;
  font-size: 15px;
  line-height: 1.72;
}

.discover-hero {
  min-height: 238px;
  align-items: flex-end;
  padding: 42px 4px 32px;
}

.discover-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.5vw, 60px);
  line-height: 0.98;
}

.discover-hero p {
  max-width: 590px;
  margin-top: 17px;
  font-size: 13px;
}

.discover-profile-state {
  min-width: 250px;
  border-left: 1px solid var(--line-strong);
  padding: 8px 0 8px 24px;
}

.discover-profile-state strong,
.discover-profile-state a {
  display: block;
}

.discover-profile-state strong {
  margin-top: 8px;
  color: #493f3b;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.discover-profile-state a {
  margin-top: 8px;
  font-size: 10px;
}

.profile-page-head {
  display: flex;
  min-height: 180px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line-strong);
  padding: 38px 4px 28px;
}

.profile-page-head h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.profile-page-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.profile-head-status,
.profile-form-status {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-head-status::before,
.profile-form-status::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
  vertical-align: 1px;
}

.profile-head-status.published::before,
.profile-form-status.published::before {
  background: var(--green);
}

.hero-proof {
  display: flex;
  min-width: 250px;
  flex-direction: column;
  gap: 0;
  margin: 0;
  border-left: 1px solid var(--line-strong);
  padding: 0 0 0 30px;
  list-style: none;
}

.hero-proof li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  color: #5f5550;
  font-size: 13px;
  font-weight: 560;
}

.hero-proof li:first-child {
  border-top: 0;
}

.hero-proof b {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.profile-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 680;
}

.profile-live .status-dot {
  background: var(--green);
}

.connections-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(310px, 0.72fr);
  align-items: start;
  gap: 34px;
}

.profiles-column,
.profile-column,
.adventures-page,
.intro-section {
  min-width: 0;
}

.profiles-head {
  align-items: end;
  margin-bottom: 18px;
}

.profiles-head h2,
.intro-section h2 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 500;
}

.profiles-head p {
  margin-top: 5px;
  font-size: 11px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.discover-page {
  min-width: 0;
}

.discover-grid {
  width: 100%;
  max-width: 1080px;
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
}

.discover-range {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.discover-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.discover-pager span {
  min-width: 44px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.discover-pager button {
  min-width: 128px;
}

.discover-pager button:disabled {
  opacity: 0.42;
}

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

.discover-empty h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.discover-empty p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.connection-card {
  overflow: hidden;
  padding: 0;
}

.profile-monogram {
  display: flex;
  height: 122px;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 20px 22px 17px;
}

.profile-monogram > span {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.profile-monogram small {
  max-width: 135px;
  color: #7b6f68;
  font-size: 8px;
  font-weight: 660;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.connection-scene {
  position: relative;
  height: 150px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
}

.theme-lantern-library .connection-scene,
.adventure-stage.theme-lantern-library,
.adventure-complete.theme-lantern-library,
.adventure-consent.theme-lantern-library {
  --theme: #8f5c34;
  --theme-soft: #f3e8d8;
}

.theme-forest-train .connection-scene,
.adventure-stage.theme-forest-train,
.adventure-complete.theme-forest-train,
.adventure-consent.theme-forest-train {
  --theme: #7a3f49;
  --theme-soft: #ece3e4;
}

.theme-moon-garden .connection-scene,
.adventure-stage.theme-moon-garden,
.adventure-complete.theme-moon-garden,
.adventure-consent.theme-moon-garden {
  --theme: #4d566d;
  --theme-soft: #e6e8ef;
}

.connection-card.theme-lantern-library .connection-scene {
  background: #8f5c34;
}

.connection-card.theme-forest-train .connection-scene {
  background: #7a3f49;
}

.connection-card.theme-moon-garden .connection-scene {
  background: #4d566d;
}

.scene-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.orbit-one {
  width: 180px;
  height: 180px;
  top: -80px;
  right: -24px;
}

.orbit-two {
  width: 110px;
  height: 110px;
  right: 54px;
  bottom: -70px;
}

.scene-mark {
  position: absolute;
  top: 28px;
  left: 26px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
}

.scene-pet {
  position: absolute;
  top: 24px;
  left: 24px;
}

.scene-pet .pet-token,
.scene-pet .avatar {
  width: 88px;
  height: 88px;
  border-color: rgba(255, 255, 255, 0.5);
  border-left-width: 4px;
  background: rgba(255, 255, 255, 0.88);
}

.scene-label {
  position: absolute;
  left: 24px;
  bottom: 14px;
  font-family: var(--font-serif);
  font-size: 17px;
}

.scene-theme {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connection-body {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 24px 22px 22px;
}

.profile-person,
.introduction-top,
.contact-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-person > div {
  flex: 1;
}

.profile-person h3 {
  margin-top: 5px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.introduction-top .pet-token,
.introduction-top .avatar {
  width: 36px;
  height: 36px;
}

.tag.guide {
  border-color: #cdb69f;
  background: #f5ecdf;
  color: #76583c;
}

.tag.companion-pick,
.tag.match-tag {
  border-color: #c2a7ac;
  background: #f4edee;
  color: #823f4c;
}

.connection-intro {
  margin-top: 24px;
  color: #403936;
  font-size: 18px;
  line-height: 1.5;
}

.profile-detail-label {
  margin-top: 24px;
  color: #826657;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 7px;
}

.interest-list span {
  color: #5f5550;
  font-size: 11px;
  font-weight: 560;
}

.interest-list i {
  margin: 0 7px;
  color: #a69187;
  font-style: normal;
}

.looking-for {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.looking-for p {
  margin-top: 6px;
  color: #514844;
  font-size: 12px;
  line-height: 1.58;
}

.companion-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.companion-signature .pet-token,
.companion-signature .avatar {
  width: 36px;
  height: 36px;
}

.companion-signature span,
.companion-signature strong {
  display: block;
}

.companion-signature span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.companion-signature strong {
  margin-top: 2px;
  color: #493f3b;
  font-size: 10px;
  font-weight: 620;
}

.intro-open {
  width: 100%;
  min-height: 42px;
}

.intro-open:disabled {
  border-color: var(--line);
  background: var(--surface-3);
  color: #92898b;
}

.profile-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.mutual-like-note {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.dating-choice-row {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 8px;
}

.dating-choice-row button {
  min-height: 46px;
}

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.like-button .ui-icon {
  width: 16px;
  height: 16px;
}

.pass-button {
  color: #6e625c;
}

.orbit-profile-card {
  --orbit-accent: #9a6677;
  --orbit-soft: #f4ebe7;
  display: grid;
  min-height: 600px;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.orbit-profile-card.theme-lantern-library {
  --orbit-accent: #9a714c;
  --orbit-soft: #f4ece1;
}

.orbit-profile-card.theme-forest-train {
  --orbit-accent: #816468;
  --orbit-soft: #f0eaeb;
}

.orbit-profile-card.theme-moon-garden {
  --orbit-accent: #8b7183;
  --orbit-soft: #f2e9ee;
}

.orbit-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 600px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--orbit-soft);
}

.orbit-stage::before {
  position: absolute;
  inset: 8%;
  z-index: -2;
  border: 1px solid rgba(130, 102, 87, 0.1);
  border-radius: 50%;
  content: "";
}

.orbit-line {
  position: absolute;
  z-index: -1;
  width: 86%;
  height: 37%;
  border: 1px solid color-mix(in srgb, var(--orbit-accent) 44%, transparent);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.orbit-marker {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--orbit-accent) 72%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--orbit-soft) 55%, white);
}

.orbit-marker-one {
  top: 32%;
  left: 11%;
}

.orbit-marker-two {
  right: 12%;
  bottom: 28%;
  width: 7px;
  height: 7px;
}

.candidate-planet {
  position: relative;
  display: grid;
  width: min(68%, 310px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--orbit-accent) 58%, white);
  border-radius: 50%;
  background: #fffaf6;
}

.planet-monogram {
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(76px, 9vw, 116px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
  transform: translateY(-10%);
}

.planet-companion {
  position: absolute;
  bottom: 11%;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  transform: translateX(-50%);
}

.planet-companion .pet-token,
.planet-companion .avatar {
  width: 48px;
  height: 48px;
  border-color: color-mix(in srgb, var(--orbit-accent) 42%, white);
  background: #fff;
}

.planet-companion small {
  color: #75675f;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-flag,
.planet-theme,
.orbit-index {
  position: absolute;
  z-index: 2;
  color: #75675f;
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orbit-flag {
  top: 18%;
  right: 11%;
  border: 1px solid color-mix(in srgb, var(--orbit-accent) 42%, white);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.86);
  padding: 5px 9px;
  transform: rotate(4deg);
}

.orbit-flag.companion-pick {
  color: #80424e;
}

.planet-theme {
  right: 8%;
  bottom: 5%;
}

.orbit-index {
  bottom: 5%;
  left: 8%;
  font-variant-numeric: tabular-nums;
}

.orbit-profile-card .connection-body {
  min-height: 600px;
  padding: 42px 38px 32px;
}

.orbit-profile-card .profile-person h3 {
  font-size: clamp(36px, 4vw, 52px);
}

.orbit-profile-card .connection-intro {
  margin-top: 30px;
  font-size: 17px;
}

.orbit-profile-card .dating-choice-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Interest planets */

.planets-hero {
  min-height: 280px;
  align-items: flex-end;
  padding: 46px 4px 34px;
}

.planets-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 5vw, 66px);
}

.planets-hero p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 13px;
}

.planet-create-trigger {
  flex: none;
  min-width: 154px;
}

.planet-create-panel {
  margin: 28px 0 36px;
  border-top: 2px solid var(--green);
  padding: 26px;
}

.planet-create-head,
.planet-create-foot,
.planet-feed-head,
.planet-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.planet-create-head h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.planet-create-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.5fr) minmax(180px, 0.8fr);
  align-items: start;
  gap: 14px;
  margin-top: 24px;
}

.planet-create-fields .field {
  margin: 0;
}

.planet-create-foot {
  align-items: flex-end;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.planet-create-foot p {
  max-width: 660px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.planet-create-foot button {
  flex: none;
}

.planets-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
  align-items: start;
  gap: 30px;
  margin-top: 36px;
}

.planet-directory {
  position: sticky;
  top: 86px;
  min-width: 0;
}

.planet-directory .section-head {
  margin-bottom: 14px;
}

.planet-directory .section-head h2 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.planet-directory-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planet-directory-item {
  display: grid;
  width: 100%;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.planet-directory-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.planet-directory-item.active {
  border-color: var(--line-strong);
  background: var(--surface);
}

.planet-directory-mark,
.planet-board-mark {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #c9aaa9;
  border-radius: 50%;
  background: #fff9f5;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 500;
}

.planet-directory-mark {
  width: 52px;
  font-size: 17px;
}

.planet-directory-copy {
  min-width: 0;
}

.planet-directory-copy strong,
.planet-directory-copy small,
.planet-directory-copy i {
  display: block;
}

.planet-directory-copy strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planet-directory-copy small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #665b55;
  font-size: 9px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.planet-directory-copy i {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.planet-board {
  min-width: 0;
  padding: 34px;
}

.planet-board-head {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.planet-board-mark {
  width: 78px;
  font-size: 27px;
}

.planet-board-head h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 45px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.planet-board-head p {
  max-width: 670px;
  margin-top: 12px;
  color: #5f5550;
  font-size: 12px;
  line-height: 1.55;
}

.planet-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.planet-tag-row span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #6d5e56;
  padding: 5px 9px;
  font-size: 9px;
}

.planet-house-rules {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px 20px;
}

.planet-house-rules ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.planet-house-rules li {
  color: #5e544f;
  padding-left: 3px;
  font-size: 9px;
  line-height: 1.5;
}

.planet-feed {
  margin-top: 30px;
}

.planet-feed-head {
  padding-bottom: 12px;
}

.planet-feed-head h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
}

.planet-feed-head span {
  color: var(--muted);
  font-size: 9px;
}

.planet-post {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.planet-post > .pet-token,
.planet-post > .avatar {
  width: 38px;
  height: 38px;
}

.planet-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.planet-post-meta strong {
  font-size: 11px;
  font-weight: 660;
}

.planet-post-meta time {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
}

.planet-post-meta .tag {
  padding: 3px 6px;
  font-size: 7px;
}

.planet-post small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.planet-post p {
  margin-top: 9px;
  color: #443b37;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.planet-feed-empty {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
}

.planet-feed-empty h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.planet-feed-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.planet-compose {
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  background: #fffdfb;
  padding: 18px;
}

.planet-compose > div:first-child p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.planet-compose textarea {
  width: 100%;
  margin-top: 14px;
  resize: vertical;
}

.planet-compose-actions {
  align-items: center;
  margin-top: 10px;
}

.planet-compose-actions small {
  color: var(--muted);
  font-size: 8px;
}

.planet-compose-actions button {
  min-width: 92px;
}

.planets-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
}

.planets-empty h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.planets-empty p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.safety-action {
  align-self: center;
  border: 0;
  background: transparent;
  color: #847770;
  padding: 3px 6px;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.safety-action:hover {
  color: #7c403b;
  text-decoration-color: currentColor;
}

.profile-column {
  position: sticky;
  top: 78px;
}

.profile-editor {
  border-top: 2px solid var(--green);
  padding: 24px;
  scroll-margin-top: 82px;
}

.profile-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.profile-editor h2 {
  max-width: 250px;
  margin-top: 7px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.profile-editor-deck {
  max-width: 250px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.profile-editor .field {
  margin-top: 13px;
}

.profile-editor .field > span {
  color: #796b64;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-editor input,
.profile-editor textarea,
.profile-editor select {
  width: 100%;
  border-color: #cdbeb7;
  background: #fffaf7;
}

.envoy-button {
  display: grid;
  max-width: 155px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 10px;
  text-align: left;
}

.envoy-button .pet-token,
.envoy-button .avatar {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
}

.envoy-button small {
  color: var(--muted);
  font-size: 8px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  border: 1px solid #d9c6c7;
  border-radius: 5px;
  background: #f5e9e9;
  padding: 11px;
  color: #574d47;
  font-size: 11px;
}

.consent-check input {
  width: 17px;
  height: 17px;
  min-width: 17px;
  flex: none;
  margin-top: 1px;
  accent-color: #722f3b;
}

.consent-check b,
.consent-check small {
  display: block;
}

.consent-check small {
  margin-top: 3px;
  color: #776b63;
  line-height: 1.4;
}

.profile-save {
  width: 100%;
  margin-top: 12px;
}

.profile-page-layout {
  display: grid;
  width: 100%;
  max-width: 1060px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: 28px;
  margin: 0 auto;
}

.profile-page-editor {
  position: static;
  padding: 26px 28px;
}

.profile-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-form-head h2 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 9px;
}

.profile-form-actions .profile-save {
  width: auto;
  min-width: 130px;
  margin-top: 0;
}

.profile-preview {
  position: sticky;
  top: 86px;
  overflow: hidden;
  padding: 0;
}

.profile-preview-monogram {
  display: flex;
  height: 142px;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 22px;
}

.profile-preview-monogram > span {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.profile-preview-monogram small {
  max-width: 145px;
  color: #7b6f68;
  font-size: 8px;
  font-weight: 660;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.profile-preview-body {
  padding: 24px;
}

.profile-preview-body h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.profile-preview-intro {
  margin-top: 20px;
  color: #403936;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
}

.profile-preview-intro.empty,
.profile-preview-empty {
  color: var(--muted);
}

.profile-preview-empty {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.5;
}

.profile-preview-companion {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.profile-preview-companion .pet-token,
.profile-preview-companion .avatar {
  width: 36px;
  height: 36px;
}

.profile-preview-companion span,
.profile-preview-companion strong {
  display: block;
}

.profile-preview-companion span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-preview-companion strong {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 620;
}

.profile-preview-companion .text-button {
  font-size: 9px;
}

.introduction-modal {
  position: relative;
  max-width: 560px;
  border-top-color: var(--green);
  padding: 28px;
}

.introduction-modal h2 {
  max-width: 450px;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.12;
}

.introduction-modal p {
  margin-top: 12px;
  font-size: 12px;
}

.introduction-modal textarea {
  width: 100%;
  margin-top: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.safety-cue {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #ded2c6;
  border-radius: 6px;
  background: #f8f4ed;
  color: #665952;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.45;
}

.safety-cue .ui-icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: #7c5c4b;
}

.introduction-modal .safety-cue {
  margin-top: 14px;
}

.report-modal {
  position: relative;
  max-width: 520px;
  border-top-color: #86504b;
}

.report-modal h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.report-modal > .muted {
  margin: 8px 0 18px;
  font-size: 11px;
}

.report-modal .field + .field {
  margin-top: 12px;
}

.report-storage-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.danger-button {
  border-color: #86504b;
  background: #86504b;
  color: #fff;
}

.danger-button:hover {
  border-color: #6f3e39;
  background: #6f3e39;
}

.adventure-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
}

.adventure-count b {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
}

.adventure-count span {
  color: var(--muted);
  font-size: 11px;
}

.adventures-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.introduction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dating-match-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
}

.match-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.match-card-top > div {
  flex: 1;
}

.match-card-top h3 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.match-card-top small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.dating-match-card > p {
  margin: 22px 0;
  color: #544b47;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
}

.introduction-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
}

.introduction-top > div {
  flex: 1;
}

.introduction-top h3 {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.intro-companion-line {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.introduction-card blockquote {
  margin: 18px 0;
  border-left: 2px solid var(--green);
  color: #453c38;
  padding-left: 14px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
}

.introduction-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.introduction-meta .ui-icon {
  width: 14px;
  height: 14px;
}

.introduction-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.introduction-actions .waiting-note {
  margin: 0;
}

.introduction-actions .safety-action {
  flex: none;
  margin-left: auto;
}

.waiting-note {
  color: var(--muted);
  font-size: 11px;
}

.adventure-enter {
  align-self: flex-start;
}

.adventures-empty {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.adventures-empty .empty-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
}

.adventures-empty h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.adventures-empty p {
  max-width: 420px;
  margin: 8px 0 18px;
  color: var(--muted);
}

/* Shared adventure room */

.adventure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 16px;
}

.adventure-main,
.adventure-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.adventure-seats .seat {
  padding: 10px 12px;
}

.adventure-side {
  position: sticky;
  top: 76px;
  overflow: hidden;
  padding: 0;
}

.adventure-side .feed {
  min-height: 430px;
  max-height: calc(100vh - 255px);
  border: 0;
  border-radius: 0;
}

.room-safety-cue {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f4ed;
  color: #6f625a;
  padding: 8px 12px;
  font-size: 9px;
  line-height: 1.4;
}

.room-safety-cue.blocked {
  background: #f5e9e7;
  color: #73453f;
}

.room-safety-cue .ui-icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.room-safety-cue > span {
  flex: 1;
}

.room-safety-cue .safety-action {
  align-self: flex-start;
  flex: none;
  margin: -2px 0;
}

.adventure-closed {
  border-top: 3px solid #86504b;
  padding: clamp(24px, 5vw, 48px);
}

.adventure-closed h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
}

.adventure-closed p {
  max-width: 560px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.adventure-side .actionbar {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.adventure-side .msg-form {
  flex-wrap: wrap;
}

.adventure-side .msg-form input {
  flex-basis: 100%;
}

.chip.sys.story {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d8c6b7;
  border-radius: 999px;
  background: #f5eee8;
  color: #6f584a;
  padding: 5px 9px;
}

/* ---------- room: companion voice ---------- */

.row.pet-row {
  align-items: flex-end;
  gap: 7px;
}

.row.pet-row.right {
  flex-direction: row-reverse;
}

.row.pet-row .pet-token,
.row.pet-row .avatar {
  width: 26px;
  height: 26px;
}

.chip.msg.pet {
  border-color: #d8c6b7;
  background: #f7f1e9;
}

.chip.msg.pet b {
  display: block;
  margin: 0 0 2px;
  color: #6f584a;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip.msg.pet i {
  font-family: var(--font-display);
  font-size: 12.5px;
  line-height: 1.45;
}

.seat-line {
  width: 100%;
  margin: 6px 0 0;
  border-left: 2px solid #d8c6b7;
  color: #6f584a;
  padding-left: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
}

.chapter-choice-detail small.chapter-said {
  color: #6f584a;
  font-style: normal;
}

.adventure-consent,
.adventure-stage,
.adventure-complete {
  border-top: 5px solid var(--theme);
}

.adventure-consent {
  min-height: 470px;
  padding: clamp(24px, 5vw, 56px);
  text-align: center;
}

.adventure-consent h1,
.adventure-complete h1 {
  max-width: 620px;
  margin: 12px auto;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.adventure-consent > p,
.adventure-complete > p {
  max-width: 630px;
  margin: 0 auto;
  color: #695e60;
  line-height: 1.6;
}

.consent-people {
  display: flex;
  max-width: 460px;
  justify-content: center;
  gap: 40px;
  margin: 32px auto 24px;
}

.consent-people > div {
  display: flex;
  width: 150px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.consent-people .pet-token,
.consent-people .avatar {
  width: 66px;
  height: 66px;
  opacity: 0.72;
}

.consent-people .ready .pet-token,
.consent-people .ready .avatar {
  opacity: 1;
}

.consent-people strong {
  color: var(--ink);
  font-size: 12px;
}

.consent-people small {
  color: var(--muted);
  font-size: 8px;
}

.consent-people .ready span {
  color: var(--green);
  font-weight: 700;
}

.begin-adventure {
  margin-top: 18px;
  padding: 10px 22px;
}

.adventure-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  text-align: center;
}

.adventure-stage::before {
  position: absolute;
  top: -95px;
  left: 50%;
  width: 190px;
  height: 190px;
  transform: translateX(-50%);
  border: 1px solid var(--theme);
  border-radius: 50%;
  content: "";
  opacity: 0.16;
}

.adventure-stage-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.story-points {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
}

.journey-carry {
  display: flex;
  max-width: 560px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px auto 0;
  border: 1px solid color-mix(in srgb, var(--theme) 42%, var(--line));
  border-radius: 6px;
  background: var(--theme-soft);
  padding: 9px 12px;
  text-align: left;
}

.journey-carry b {
  color: var(--theme);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.journey-carry.empty {
  border-style: dashed;
  background: transparent;
}

.journey-carry.empty b {
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
}

.chapter-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.chapter-progress span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.chapter-progress span.current {
  border-color: var(--theme);
  color: var(--theme);
  box-shadow: inset 0 0 0 2px var(--surface);
  background: var(--theme-soft);
}

.chapter-progress span.done {
  border-color: var(--theme);
  background: var(--theme);
  color: #fff;
}

.scene-emblem {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: 40px auto 18px;
  border: 1px solid var(--theme);
  border-radius: 50%;
  background: var(--theme-soft);
  color: var(--theme);
}

.scene-emblem .ui-icon {
  width: 27px;
  height: 27px;
}

.adventure-stage h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.scene-prompt {
  max-width: 630px;
  margin: 13px auto 28px;
  color: #5c514c;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
}

.choice-status {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.choice-status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.choice-status .ready {
  color: var(--green);
  font-weight: 680;
}

.your-choice .ui-icon {
  width: 13px;
  height: 13px;
}

.adventure-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.adventure-choice {
  position: relative;
  display: flex;
  min-height: 125px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fbfbf9;
  color: var(--ink);
  padding: 13px 8px;
}

.adventure-choice:hover:not(:disabled) {
  border-color: var(--theme);
  background: var(--theme-soft);
}

.adventure-choice.selected {
  border-color: var(--theme);
  background: var(--theme-soft);
  box-shadow: inset 0 0 0 1px var(--theme);
}

.choice-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--theme);
}

.adventure-choice b {
  font-size: 12px;
}

.adventure-choice small {
  color: var(--muted);
  font-size: 9px;
}

.adventure-choice .lock-stamp {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--theme);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.06em;
}

.adventure-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.story-history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.story-chapter {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px 12px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.story-chapter:first-of-type {
  border-top: 0;
}

.chapter-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
}

.story-chapter p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
}

.chapter-choices {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 9px;
}

.chapter-choices span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chapter-choice-detail {
  display: flex;
  min-width: min(240px, 100%);
  flex: 1 1 220px;
  flex-direction: column;
  gap: 4px;
}

.chapter-choice-detail small {
  max-width: 38em;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

.current-choice-intent {
  margin: -2px 0 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

.chapter-choices .ui-icon {
  width: 12px;
  height: 12px;
}

.chapter-relic {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.chapter-relic span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  text-transform: capitalize;
}

.chapter-relic b {
  color: #66534e;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
}

.adventure-complete {
  padding: 42px 24px;
  text-align: center;
}

.adventure-complete .chapter-progress {
  margin-top: 24px;
}

.keepsake {
  display: flex;
  max-width: 650px;
  align-items: center;
  gap: 16px;
  margin: 24px auto 0;
  border: 1px solid color-mix(in srgb, var(--theme) 45%, var(--line));
  border-radius: 7px;
  background: var(--theme-soft);
  padding: 18px;
  text-align: left;
}

.keepsake-mark {
  display: grid;
  width: 56px;
  height: 56px;
  flex: none;
  place-items: center;
  border: 1px solid var(--theme);
  border-radius: 50%;
  color: var(--theme);
}

.keepsake h2 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
}

.keepsake p {
  margin-top: 5px;
  color: #655a55;
  font-size: 11px;
  line-height: 1.55;
}

.contact-card {
  border-top: 3px solid var(--green);
  padding: 22px;
}

.contact-title {
  align-items: flex-start;
}

.contact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #cdb5aa;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.contact-title h2 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
}

.contact-card > p:not(.contact-warning) {
  margin: 14px 0;
  color: #655a55;
  font-size: 12px;
}

.contact-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.contact-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6c4c7;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 650;
}

.contact-warning {
  margin-top: 12px;
  font-size: 9px;
  line-height: 1.45;
}

.contact-reveal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.contact-reveal-grid > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 12px;
}

.contact-reveal-grid span,
.contact-reveal-grid strong {
  display: block;
}

.contact-reveal-grid span {
  color: var(--muted);
  font-size: 9px;
}

.contact-reveal-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .connections-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .discover-grid {
    grid-template-columns: minmax(0, 1fr);
  }}

@media (max-width: 900px) {
  .connections-layout,
  .adventure-layout,
  .profile-page-layout {
    grid-template-columns: 1fr;
  }

  .profile-column,
  .adventure-side {
    position: static;
  }

  .profile-column.needs-profile {
    grid-row: 1;
  }

  .adventure-side .feed {
    min-height: 260px;
    max-height: 420px;
  }

  .profile-preview {
    position: static;
  }

  .orbit-profile-card {
    grid-template-columns: 1fr;
  }

  .orbit-stage {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .candidate-planet {
    width: min(58%, 290px);
  }

  .orbit-profile-card .connection-body {
    min-height: 0;
  }

  .planets-layout {
    grid-template-columns: 1fr;
  }

  .planet-directory {
    position: static;
  }

  .planet-directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}

@media (max-width: 680px) {
  .connections-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    padding: 30px 0 26px;
  }

  .connections-hero h1 {
    font-size: 43px;
  }

  .connections-hero p {
    font-size: 14px;
  }

  .discover-hero {
    padding: 30px 0 26px;
  }

  .discover-profile-state {
    width: 100%;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 18px 0 0;
  }

  .profile-page-head {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 30px 0 24px;
  }

  .profile-page-head h1 {
    font-size: 39px;
  }

  .hero-proof,
  .adventure-count {
    width: 100%;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 16px 0 0;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-proof li {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 4px 12px;
    font-size: 9px;
  }

  .hero-proof li:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .hero-proof b {
    font-size: 15px;
  }

  .profiles-grid,
  .introduction-grid {
    grid-template-columns: 1fr;
  }

  .discover-pager {
    justify-content: space-between;
    gap: 8px;
  }

  .discover-pager button {
    min-width: 0;
  }

  .connection-body {
    min-height: 410px;
  }

  .orbit-stage {
    min-height: 340px;
  }

  .orbit-profile-card .connection-body {
    min-height: 0;
    padding: 28px 24px 24px;
  }

  .orbit-profile-card .connection-intro {
    margin-top: 23px;
    font-size: 16px;
  }

  .planets-hero .planet-create-trigger {
    width: 100%;
  }

  .planet-create-fields,
  .planet-house-rules ol {
    grid-template-columns: 1fr;
  }

  .planet-directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .planet-directory-item {
    flex: initial;
    scroll-snap-align: none;
  }

  .planet-create-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .planet-create-foot button {
    width: 100%;
  }

  .planets-layout {
    gap: 24px;
    margin-top: 28px;
  }

  .planet-board {
    padding: 26px 22px;
  }

  .planet-board-head {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
  }

  .planet-board-mark {
    width: 62px;
    font-size: 22px;
  }

  .planet-house-rules ol {
    gap: 8px;
  }

  .adventure-stage-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .story-points {
    justify-self: center;
  }

  .adventure-choices {
    grid-template-columns: 1fr;
  }

  .adventure-choice {
    min-height: 82px;
    display: grid;
    grid-template-columns: 40px 1fr;
    justify-items: start;
    text-align: left;
  }

  .adventure-choice small {
    grid-column: 2;
  }

  .contact-form {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-reveal-grid {
    grid-template-columns: 1fr;
  }}

@media (max-width: 840px) {

  .adopt-grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }}

@media (max-width: 650px) {
  .topnav {
    gap: 13px;
    padding: 8px 12px;
  }

  .brand {
    gap: 6px;
    font-size: 17px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .navlinks {
    gap: 12px;
  }

  .navlinks a {
    font-size: 11px;
  }

  .nav-companion {
    display: none;
  }

  .quick > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .seats {
    grid-template-columns: 1fr;
  }
  .msg-form {
    flex-wrap: wrap;
  }
  .msg-form input {
    flex-basis: calc(100% - 120px);
  }

  .adopt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .adopt-card {
    min-height: 112px;
  }

  .adopt-card .pet-token {
    width: 58px;
    height: 58px;
  }

  .adopt-card small {
    display: none;
  }

  .nature-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 18px 14px;
  }

  .adopt-foot {
    align-items: stretch;
  }

  .adopt-foot .field {
    flex-basis: 100%;
  }

  .adopt-submit {
    width: 100%;
  }

  .journey-carry,
  .keepsake {
    align-items: flex-start;
    flex-direction: column;
  }}

@media (max-width: 430px) {
  .topnav {
    gap: 10px;
  }

  .navlinks {
    gap: 9px;
  }

  .navmeta {
    display: none;
  }

  .nav-profile-link {
    display: none;
  }

  .nav-companion {
    display: none;
  }

  .content {
    padding-top: 20px;
  }

  .card {
    padding: 14px;
  }

  .connection-card {
    padding: 0;
  }

  .connection-body {
    padding: 22px 18px 18px;
  }

  .orbit-stage {
    min-height: 310px;
  }

  .candidate-planet {
    width: min(64%, 220px);
  }

  .planet-monogram {
    font-size: 72px;
  }

  .planet-companion .pet-token,
  .planet-companion .avatar {
    width: 40px;
    height: 40px;
  }

  .orbit-flag {
    top: 12%;
    right: 7%;
  }

  .planet-theme,
  .orbit-index {
    bottom: 4%;
    font-size: 7px;
  }

  .orbit-profile-card .connection-body {
    padding: 24px 18px 18px;
  }

  .planet-create-panel,
  .planet-board {
    padding: 20px 16px;
  }

  .planet-create-head {
    align-items: flex-start;
  }

  .planet-create-head h2 {
    font-size: 25px;
  }

  .planet-board-head {
    grid-template-columns: 1fr;
  }

  .planet-board-mark {
    width: 54px;
  }

  .planet-post {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .planet-post > .pet-token,
  .planet-post > .avatar {
    width: 32px;
    height: 32px;
  }

  .planet-compose-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .planet-compose-actions button {
    width: 100%;
  }

  .profile-monogram {
    height: 106px;
    padding: 18px;
  }

  .profile-editor {
    padding: 20px 18px;
  }

  .profile-preview {
    padding: 0;
  }

  .profile-preview-body {
    padding: 20px 18px;
  }

  .profile-preview-monogram {
    height: 112px;
    padding: 18px;
  }

  .profile-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-form-actions .profile-save {
    width: 100%;
  }}

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

/* Content-first social UI */

.brand {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.topnav {
  min-height: 58px;
  gap: 20px;
  background: rgba(255, 255, 255, 0.97);
  padding: 8px clamp(16px, 3vw, 42px);
}

.navlinks {
  gap: 22px;
}

.navlinks a:hover::after,
.navlinks a.active::after {
  bottom: -9px;
}

.connections-content {
  max-width: 1120px;
  gap: 22px;
  padding-top: 0;
}

.app-page-head {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
  padding: 24px 0 20px;
}

.app-page-head h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1;
}

.app-page-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.app-page-action {
  flex: none;
}

.discover-profile-state {
  min-width: 0;
  border-left: 0;
  padding: 0;
  text-align: right;
}

.discover-profile-state strong,
.discover-profile-state a {
  display: block;
  font-family: inherit;
  font-size: 11px;
}

.discover-profile-state strong {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}

.discover-profile-state a {
  margin-top: 3px;
}

.discover-page {
  width: 100%;
}

.discover-toolbar {
  display: flex;
  width: 100%;
  max-width: 820px;
  align-items: center;
  justify-content: space-between;
  margin: 2px auto 8px;
  color: var(--muted);
  font-size: 11px;
}

.discover-grid {
  max-width: 820px;
}

.human-profile-card {
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.human-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
}

.human-profile-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.human-profile-person > .pet-token,
.human-profile-person > .avatar {
  width: 48px;
  height: 48px;
}

.human-profile-person h3 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.human-profile-person small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.human-profile-copy {
  padding: 26px 30px;
}

.human-profile-copy .connection-intro {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.62;
}

.human-profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.human-profile-details section {
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.human-profile-details section + section {
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 18px;
}

.human-profile-details p {
  margin-top: 8px;
  color: #433e3f;
  font-size: 13px;
  line-height: 1.55;
}

.human-profile-details .interest-list {
  margin-top: 8px;
}

.human-profile-story,
.profile-preview-story {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.human-profile-story strong,
.profile-preview-story strong {
  color: var(--ink);
  font-weight: 650;
}

.human-profile-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: #fafaf7;
  padding: 14px 20px;
}

.human-profile-footer > small,
.human-profile-footer > .muted {
  flex: 1;
  font-size: 10px;
}

.human-profile-footer .dating-choice-row {
  display: flex;
  width: auto;
  gap: 8px;
}

.human-profile-footer .dating-choice-row button {
  min-width: 90px;
}

.human-profile-footer .safety-action {
  flex: none;
}

.human-profile-footer .intro-open {
  width: auto;
  min-height: 36px;
  flex: none;
}

.discover-pager {
  width: 100%;
  max-width: 820px;
  justify-content: space-between;
  margin-inline: auto;
}

.discover-pager button {
  min-width: 0;
}

.adventure-count {
  border-left: 0;
  padding-left: 0;
}

.adventure-count b {
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
}

.adventures-page {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.adventures-empty {
  min-height: 0;
  align-items: flex-start;
  padding: 30px;
  text-align: left;
}

.adventures-empty h2 {
  font-size: 21px;
  font-weight: 700;
}

.adventures-empty p {
  max-width: 560px;
  margin: 8px 0 18px;
}

.dating-match-card {
  min-height: 0;
}

.dating-match-card > p {
  font-family: inherit;
  font-size: 14px;
}

.profile-page-layout {
  max-width: 980px;
  gap: 20px;
}

.profile-page-editor {
  border-top-width: 1px;
  padding: 24px;
}

.profile-form-head h2,
.profile-editor h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-editor .field > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.profile-editor input,
.profile-editor textarea,
.profile-editor select {
  border-color: var(--line-strong);
  background: var(--surface);
}

.consent-check {
  border-color: var(--line);
  background: var(--surface-2);
}

.profile-preview-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px 22px;
}

.profile-preview-owner > .pet-token,
.profile-preview-owner > .avatar {
  width: 50px;
  height: 50px;
}

.profile-preview-owner h2 {
  margin-top: 2px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.profile-preview-owner small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.profile-preview-body {
  padding: 22px;
}

.profile-preview-intro {
  margin-top: 0;
  font-family: inherit;
  font-size: 15px;
}

.profile-preview-companion {
  grid-template-columns: minmax(0, 1fr) auto;
}

.planets-layout {
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.6fr);
  gap: 24px;
  margin-top: 2px;
}

.planet-directory {
  top: 76px;
}

.planet-directory .section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.planet-directory-item {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  border-radius: 4px;
  padding: 10px;
}

.planet-directory-item > .pet-token,
.planet-directory-item > .avatar {
  width: 38px;
  height: 38px;
}

.planet-directory-copy strong {
  font-family: inherit;
  font-size: 13px;
  font-weight: 680;
}

.planet-directory-copy small {
  font-size: 9px;
}

.planet-board {
  padding: 26px 28px;
}

.planet-board-head {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
  align-items: start;
  gap: 24px;
}

.planet-board-head h2 {
  margin-top: 5px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.planet-board-owner {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.planet-board-owner > .pet-token,
.planet-board-owner > .avatar {
  width: 34px;
  height: 34px;
}

.planet-tag-row {
  margin: 20px 0 12px;
  border-bottom: 0;
  padding-bottom: 0;
}

.planet-tag-row span {
  border: 0;
  border-radius: 2px;
  background: var(--surface-2);
  padding: 4px 7px;
}

.planet-house-rules {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  color: var(--muted);
  font-size: 10px;
}

.planet-house-rules summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
}

.planet-house-rules ol {
  margin-top: 12px;
}

.planet-feed {
  margin-top: 22px;
}

.planet-feed-head h3 {
  font-size: 18px;
  font-weight: 700;
}

.planet-post p {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.planet-compose {
  border-color: var(--line);
  background: #fafaf7;
}

.planet-compose > div:first-child strong {
  font-size: 12px;
}

.planet-create-panel {
  margin: 0;
  border-top-width: 1px;
}

.planet-create-head h2 {
  font-size: 22px;
  font-weight: 700;
}

.adoption-modal {
  max-width: 780px;
  padding: 28px;
}

.adoption-modal h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 720;
  letter-spacing: -0.03em;
}

.adopt-intro {
  max-width: 600px;
  margin-top: 9px;
  line-height: 1.5;
}

.adopt-step {
  margin-top: 20px;
}

.adopt-step > span {
  min-width: 42px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adopt-card,
.nature-choice {
  background: var(--surface);
}

.adopt-card {
  min-height: 136px;
}

.adopt-card small {
  font-family: inherit;
}

@media (max-width: 860px) {
  .profile-page-layout {
    grid-template-columns: 1fr;
  }

  .profile-preview {
    position: static;
  }

  .planets-layout {
    grid-template-columns: 1fr;
  }

  .planet-directory {
    position: static;
  }

  .planet-directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}

@media (max-width: 680px) {
  .topnav {
    min-height: 54px;
  }

  .topnav .navlinks {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 24;
    display: flex;
    height: 58px;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 0 6px env(safe-area-inset-bottom);
  }

  .topnav .navlinks a {
    flex: 1;
    justify-content: center;
    padding: 0 5px;
    font-size: 11px;
  }

  .topnav .navlinks a:hover::after,
  .topnav .navlinks a.active::after {
    top: 0;
    right: 28%;
    bottom: auto;
    left: 28%;
    height: 2px;
  }

  .content {
    padding-bottom: 96px;
  }

  .connections-content {
    padding-top: 0;
  }

  .app-page-head {
    min-height: 92px;
    padding: 18px 0 16px;
  }

  .app-page-head h1 {
    font-size: 28px;
  }

  .app-page-head p {
    font-size: 11px;
  }

  .human-profile-details {
    grid-template-columns: 1fr;
  }

  .human-profile-details section {
    padding-right: 0;
  }

  .human-profile-details section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .planet-directory-list {
    display: flex;
    grid-template-columns: none;
  }

  .planet-board-head {
    grid-template-columns: 1fr;
  }

  .planet-board-owner {
    max-width: 220px;
  }

  .planet-house-rules ol {
    grid-template-columns: 1fr;
  }}

@media (max-width: 520px) {
  .app-page-head {
    align-items: flex-start;
  }

  .app-page-head p {
    max-width: 220px;
  }

  .human-profile-head {
    align-items: flex-start;
    padding: 16px;
  }

  .human-profile-person > .pet-token,
  .human-profile-person > .avatar {
    width: 42px;
    height: 42px;
  }

  .human-profile-person h3 {
    font-size: 21px;
  }

  .human-profile-copy {
    padding: 22px 18px;
  }

  .human-profile-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .human-profile-footer .dating-choice-row {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .human-profile-footer .safety-action {
    align-self: flex-start;
  }

  .planet-board {
    padding: 20px 16px;
  }

  .profile-preview-owner {
    padding: 16px 18px;
  }

  .adoption-modal {
    padding: 20px;
  }}

/* Planets — editorial room index
   A single material object leads each room; the surrounding UI behaves like
   a quiet catalog instead of a stack of interchangeable cards. */

.page-planets {
  --planet-ink: #392226;
  --planet-muted: #716567;
  --planet-rule: #c2b6b9;
  --planet-coral: #d85f50;
  width: 100%;
  max-width: 1260px !important;
  gap: 0;
  padding-bottom: 84px;
}

.page-planets .app-page-head {
  min-height: 132px;
  border-bottom: 0;
  padding: 30px 0 26px;
}

.page-planets .app-page-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 20px;
}

.page-planets .app-page-title .page-kicker {
  grid-column: 1 / -1;
  color: #73686a;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.page-planets .app-page-head h1 {
  color: var(--planet-ink);
  font-family: var(--font-ui);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 520;
  letter-spacing: -0.06em;
}

.page-planets .app-page-head p {
  max-width: 440px;
  color: var(--planet-muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-planets .planet-create-trigger,
.page-planets .planet-create-trigger:hover {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #847779;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--planet-ink);
  padding: 7px 1px 6px;
  font-size: 11px;
  font-weight: 680;
}

.page-planets .planet-create-trigger::after {
  content: " ↗";
  color: var(--planet-coral);
}

.page-planets .planet-create-panel {
  margin: 0 0 34px;
  border: 0;
  border-top: 1px solid var(--planet-rule);
  border-bottom: 1px solid var(--planet-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 26px 0 28px;
}

.page-planets .planets-layout {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 5vw, 70px);
  margin-top: 0;
  border-top: 1px solid var(--planet-rule);
  padding-top: 16px;
}

.page-planets .planet-directory {
  position: sticky;
  top: 80px;
}

.page-planets .planet-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--planet-rule);
  padding: 0 2px 13px;
  color: var(--planet-ink);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-planets .planet-directory-heading small {
  color: #7a817b;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.page-planets .planet-directory-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-planets .planet-directory-item,
.page-planets .planet-directory-item:hover,
.page-planets .planet-directory-item.active {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #d4d5cd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--planet-ink);
  padding: 15px 2px 14px;
  text-align: left;
  transform: none;
}

.page-planets .planet-directory-item:hover {
  border-bottom-color: #988e90;
}

.page-planets .planet-directory-number {
  color: #858b85;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.page-planets .planet-directory-item.active .planet-directory-number {
  color: var(--planet-coral);
}

.page-planets .planet-directory-item.active::after {
  position: absolute;
  top: 19px;
  right: 1px;
  width: 13px;
  height: 1px;
  background: var(--planet-coral);
  content: "";
}

.page-planets .planet-directory-copy {
  min-width: 0;
  padding-right: 13px;
}

.page-planets .planet-directory-copy strong,
.page-planets .planet-directory-copy small,
.page-planets .planet-directory-copy i {
  display: block;
}

.page-planets .planet-directory-copy strong {
  overflow: visible;
  color: var(--planet-ink);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.17;
  text-overflow: clip;
  white-space: normal;
}

.page-planets .planet-directory-copy small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #726769;
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-planets .planet-directory-copy i {
  margin-top: 7px;
  color: #858b85;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.03em;
}

.page-planets .planet-board {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-planets .planet-editorial-feature {
  display: grid;
  min-height: 395px;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.98fr);
  align-items: center;
  gap: clamp(30px, 4vw, 54px);
  border-bottom: 1px solid var(--planet-rule);
  padding: 24px 0 44px;
}

.page-planets .planet-feature-copy {
  min-width: 0;
}

.page-planets .planet-catalog-line {
  display: block;
  color: #736567;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-planets .planet-catalog-line::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--planet-coral);
  content: "";
}

.page-planets .planet-feature-copy h2 {
  max-width: 570px;
  margin-top: 24px;
  color: var(--planet-ink);
  font-family: var(--font-serif);
  font-size: clamp(43px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.page-planets .planet-feature-copy h2 em {
  font-weight: 400;
}

.page-planets .planet-feature-description {
  max-width: 480px;
  margin-top: 24px;
  color: #635557;
  font-size: 12px;
  line-height: 1.65;
}

.page-planets .planet-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 23px 0 0;
  border: 0;
  padding: 0;
}

.page-planets .planet-tag-row span,
.page-planets .planet-tag-row span:nth-child(2n) {
  border: 0;
  border-right: 1px solid #b4aaac;
  border-radius: 0;
  background: transparent;
  color: #6a5e60;
  padding: 0 10px;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-planets .planet-tag-row span:first-child {
  padding-left: 0;
}

.page-planets .planet-tag-row span:last-child {
  border-right: 0;
}

.page-planets .planet-host-byline {
  display: flex;
  max-width: 480px;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
  border-top: 1px solid #c9cbc3;
  padding-top: 16px;
}

.page-planets .planet-host-byline > .pet-token,
.page-planets .planet-host-byline > .avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #9a8e90;
  border-left-width: 1px;
  box-shadow: none;
}

.page-planets .planet-host-byline div {
  display: grid;
  gap: 2px;
}

.page-planets .planet-host-byline span {
  color: #818780;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-planets .planet-host-byline strong {
  color: var(--planet-ink);
  font-size: 10px;
  font-weight: 660;
}

.page-planets .planet-material-visual {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid #c8c8bd;
  background: #ebe7dd;
}

.page-planets .planet-material-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-planets .planet-material-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 13px;
  display: grid;
  gap: 1px;
  color: #573b40;
  text-align: right;
  text-transform: uppercase;
}

.page-planets .planet-material-visual figcaption span {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 7px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.page-planets .planet-material-visual figcaption small {
  color: #7d7274;
  font-size: 6px;
  letter-spacing: 0.08em;
}

.page-planets .planet-material-composition {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 38%),
    #e8e3d8;
}

.page-planets .material-piece,
.page-planets .material-thread {
  position: absolute;
  display: block;
}

.page-planets .material-piece {
  border: 1px solid rgba(86, 59, 64, 0.42);
  background:
    repeating-linear-gradient(0deg, rgba(70, 41, 47, 0.04) 0 1px, transparent 1px 8px),
    #f4f0e5;
  box-shadow: 0 22px 34px rgba(52, 40, 42, 0.13);
}

.page-planets .material-piece-a {
  top: 19%;
  left: 19%;
  width: 48%;
  height: 58%;
  transform: rotate(-8deg);
}

.page-planets .material-piece-b {
  top: 27%;
  left: 32%;
  width: 45%;
  height: 50%;
  background: #d6d9cc;
  transform: rotate(6deg);
}

.page-planets .material-piece-c {
  top: 38%;
  left: 27%;
  width: 37%;
  height: 34%;
  border-color: rgba(216, 95, 80, 0.68);
  background: #eee8dc;
  transform: rotate(-2deg);
}

.page-planets .material-thread {
  top: 48%;
  left: 11%;
  width: 77%;
  height: 3px;
  background: var(--planet-coral);
  box-shadow: 0 8px 0 #5e2e37;
  transform: rotate(-11deg);
}

.page-planets .material-trail .material-piece-a,
.page-planets .material-trail .material-piece-b,
.page-planets .material-tokens .material-piece-a,
.page-planets .material-tokens .material-piece-b,
.page-planets .material-tokens .material-piece-c {
  border-radius: 50%;
}

.page-planets .material-weave .material-piece {
  height: 18%;
}

.page-planets .material-folio .material-piece-b {
  background: #e6d8c7;
}

.page-planets .planet-house-rules {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--planet-rule);
  border-radius: 0;
  background: transparent;
  color: var(--planet-muted);
  padding: 14px 0;
}

.page-planets .planet-house-rules summary {
  color: #5e4e51;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-planets .planet-house-rules ol {
  margin-top: 16px;
}

.page-planets .planet-feed {
  margin-top: 38px;
}

.page-planets .planet-feed-head {
  align-items: baseline;
  border-bottom: 1px solid var(--planet-rule);
  padding-bottom: 13px;
}

.page-planets .planet-feed-head h3 {
  color: var(--planet-ink);
  font-family: var(--font-serif);
  font-size: 31px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.page-planets .planet-feed-head span {
  color: #858b85;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.page-planets .planet-post {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  border-top: 0;
  border-bottom: 1px solid #d8d9d2;
  padding: 22px 0;
}

.page-planets .planet-post > .pet-token,
.page-planets .planet-post > .avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #988b8d;
  border-left-width: 1px;
  box-shadow: none;
}

.page-planets .planet-post-meta strong {
  color: var(--planet-ink);
  font-size: 11px;
}

.page-planets .planet-post-meta .tag {
  border: 1px solid #bbbdb5;
  border-radius: 0;
  background: transparent;
  padding: 2px 5px;
  font-size: 7px;
}

.page-planets .planet-post p {
  max-width: 720px;
  margin-top: 10px;
  color: #573c42;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
}

.page-planets .planet-feed-empty {
  border: 0;
  border-bottom: 1px solid #d8d9d2;
  border-radius: 0;
  background: transparent;
}

.page-planets .planet-compose {
  margin-top: 25px;
  border: 0;
  border-top: 1px solid var(--planet-rule);
  border-left: 3px solid var(--planet-coral);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0 0 20px;
}

.page-planets .planet-compose textarea {
  min-height: 88px;
  border: 1px solid #beb4b7;
  border-radius: 1px;
  background: rgba(255, 253, 248, 0.64);
}

.page-planets .planet-compose-actions button {
  min-width: 76px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .page-planets .planets-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
  }

  .page-planets .planet-editorial-feature {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.82fr);
    gap: 28px;
  }

  .page-planets .planet-feature-copy h2 {
    font-size: clamp(39px, 5.7vw, 55px);
  }}

@media (max-width: 820px) {
  .page-planets .planets-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .page-planets .planet-directory {
    position: static;
  }

  .page-planets .planet-directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    overflow-x: visible;
  }

  .page-planets .planet-directory-item,
  .page-planets .planet-directory-item:hover,
  .page-planets .planet-directory-item.active {
    min-height: 0;
    border-right: 1px solid #d4d5cd;
  }}

@media (max-width: 680px) {
  .page-planets {
    padding-bottom: 105px;
  }

  .page-planets .app-page-head {
    min-height: 116px;
    padding: 20px 0 18px;
  }

  .page-planets .app-page-title {
    display: block;
  }

  .page-planets .app-page-title .page-kicker {
    margin-bottom: 5px;
  }

  .page-planets .app-page-head h1 {
    font-size: 40px;
  }

  .page-planets .app-page-head p {
    max-width: 255px;
    margin-top: 4px;
    font-size: 10px;
  }

  .page-planets .planet-editorial-feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 18px 0 34px;
  }

  .page-planets .planet-feature-copy h2 {
    max-width: 500px;
    margin-top: 20px;
    font-size: clamp(40px, 12vw, 56px);
  }

  .page-planets .planet-material-visual {
    min-height: 0;
  }

  .page-planets .planet-house-rules ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-planets .planet-board {
    box-shadow: none;
  }

  .page-planets .planet-post {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .page-planets .planet-post > .pet-token,
  .page-planets .planet-post > .avatar {
    width: 34px;
    height: 34px;
  }}

@media (max-width: 460px) {
  .page-planets .planet-create-trigger,
  .page-planets .planet-create-trigger:hover {
    max-width: 92px;
    text-align: right;
  }

  .page-planets .planet-create-fields {
    grid-template-columns: 1fr;
  }

  .page-planets .planet-feature-copy h2 {
    font-size: 41px;
  }

  .page-planets .planet-compose {
    padding-left: 14px;
  }}

/* Crafted field-guide visual system */

:root {
  --bg: #f6efe7;
  --surface: #fffdf8;
  --surface-2: #f8e4df;
  --surface-3: #e4dff7;
  --line: #cec9bc;
  --line-strong: #46292e;
  --ink: #382125;
  --muted: #716567;
  --green: #ed6b5d;
  --green-dark: #a83f3b;
  --green-soft: #f9d8d1;
  --blue: #7164b4;
  --blue-soft: #e5e0f8;
  --amber: #b9780d;
  --amber-soft: #f7df9b;
  --red: #a83f3b;
  --red-soft: #f8d8d2;
  --forest: #46292e;
  --coral: #ed6b5d;
  --marigold: #f1bd43;
  --lavender: #b8abf2;
  --mint: #d9acb3;
  --blush: #f4cbc8;
  --radius: 12px;
  --font-display: var(--font-serif);
}

body {
  background: var(--bg);
  color: var(--ink);
}

::selection {
  background: var(--marigold);
  color: var(--forest);
}

a {
  color: var(--green-dark);
}

.topnav {
  min-height: 62px;
  gap: 24px;
  border-bottom: 1.5px solid var(--forest);
  background: rgb(252, 246, 240);
  padding: 8px clamp(18px, 3.5vw, 50px);
}

.brand {
  color: var(--coral);
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
}

.brand-mark {
  color: var(--forest);
}

.navlinks a {
  color: #564548;
  font-size: 12px;
  font-weight: 680;
}

.navlinks a:hover::after,
.navlinks a.active::after {
  bottom: -10px;
  height: 3px;
  background: var(--coral);
}

.nav-human-mark {
  border: 1.5px solid var(--forest);
  background: var(--marigold);
  color: var(--forest);
  box-shadow: 2px 2px 0 var(--forest);
}

.content.connections-content {
  max-width: 1160px;
}

.card {
  border-color: var(--line);
  background: var(--surface);
}

button.primary,
.primary[href]{
  border: 1.5px solid var(--forest);
  border-radius: 7px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--forest);
  color: var(--forest);
  font-weight: 780;
}

button.primary:hover,
.primary[href]:hover {
  transform: translate(2px, 2px);
  background: #f27a6d;
  box-shadow: 1px 1px 0 var(--forest);
}

button.ghost,
.msg-form button{
  border: 1.5px solid var(--forest);
  border-radius: 7px;
  background: var(--surface);
  color: var(--forest);
  box-shadow: 2px 2px 0 var(--forest);
}

button.ghost:hover,
.msg-form button:hover{
  transform: translate(1px, 1px);
  border-color: var(--forest);
  background: var(--amber-soft);
  box-shadow: 1px 1px 0 var(--forest);
}

input,
select,
textarea {
  border: 1.5px solid #968c8e;
  border-radius: 8px;
  background: #fffef9;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  border-color: var(--forest);
  outline-color: rgba(237, 107, 93, 0.28);
}

.app-page-head {
  min-height: 132px;
  border-bottom: 1.5px solid var(--forest);
  padding: 30px 0 24px;
}

.app-page-title {
  min-width: 0;
}

.page-kicker,
.profile-record-label,
.field-card-label,
.planet-room-stamp-label {
  display: block;
  color: var(--coral);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-page-head h1 {
  margin-top: 6px;
  color: var(--forest);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 820;
  letter-spacing: -0.055em;
}

.app-page-head p {
  max-width: 590px;
  margin-top: 8px;
  color: #615154;
  font-size: 13px;
}

.discover-profile-state {
  min-width: 150px;
  border: 1.5px solid var(--forest);
  background: var(--marigold);
  box-shadow: 3px 3px 0 var(--forest);
  padding: 10px 13px;
  text-align: left;
  transform: rotate(0.7deg);
}

.discover-profile-state a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discover-toolbar,
.discover-grid,
.discover-pager {
  max-width: 1000px;
}

.discover-toolbar {
  margin-top: 14px;
  margin-bottom: 10px;
  color: #66575a;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.human-profile-card {
  overflow: visible;
  border: 1.5px solid var(--forest);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--forest);
}

.human-profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.55fr);
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.companion-field-card {
  position: relative;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  border-right: 1.5px solid var(--forest);
  background: var(--lavender);
  padding: 24px;
}

.theme-lantern-library .companion-field-card {
  background: #f2c866;
}

.theme-forest-train .companion-field-card {
  background: var(--mint);
}

.theme-moon-garden .companion-field-card {
  background: var(--lavender);
}

.field-card-label {
  color: var(--forest);
}

.companion-vignette,
.profile-preview-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.companion-vignette {
  display: grid;
  min-height: 310px;
  place-items: center;
  margin: 22px 2px 20px;
  border: 1.5px solid var(--forest);
  background: var(--blush);
  box-shadow: 6px 6px 0 rgba(70, 41, 46, 0.92);
  transform: rotate(-1deg);
}

.companion-vignette::before,
.profile-preview-visual::before {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: -1;
  width: 42px;
  height: 9px;
  border-top: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  content: "";
  opacity: 0.5;
}

.vignette-sun {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: -1;
  width: 66px;
  height: 66px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  background: var(--marigold);
}

.vignette-ground {
  position: absolute;
  right: -12%;
  bottom: -34px;
  left: -12%;
  z-index: -1;
  height: 120px;
  border: 1.5px solid var(--forest);
  border-radius: 50% 50% 0 0;
  background: var(--mint);
  transform: rotate(-3deg);
}

.companion-vignette > .pet-token,
.companion-vignette > .avatar {
  width: 164px;
  height: 164px;
  border: 2px solid var(--forest);
  border-left-width: 2px;
  border-radius: 46% 46% 42% 42%;
  background: #fff9ec;
  box-shadow: 4px 4px 0 var(--forest);
  color: color-mix(in srgb, var(--pet-accent) 68%, var(--forest));
}

.field-card-caption {
  margin-top: auto;
  border-top: 1.5px solid rgba(70, 41, 46, 0.72);
  padding-top: 14px;
}

.field-card-caption strong,
.field-card-caption small {
  display: block;
}

.field-card-caption strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  line-height: 1;
}

.field-card-caption small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.human-profile-main {
  min-width: 0;
  background: var(--surface);
}

.human-profile-head {
  align-items: flex-start;
  border-bottom: 0;
  padding: 40px 42px 10px;
}

.human-profile-person {
  display: block;
}

.human-profile-person h3 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 66px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.human-profile-person small {
  margin-top: 9px;
  color: #625456;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.human-profile-head .tag {
  border: 1px solid var(--forest);
  border-radius: 2px;
  box-shadow: 2px 2px 0 var(--forest);
  transform: rotate(-1deg);
}

.human-profile-copy {
  padding: 18px 42px 38px;
}

.human-profile-copy .connection-intro {
  max-width: 620px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
}

.human-profile-details {
  gap: 28px;
  margin-top: 28px;
  border-top: 1.5px solid var(--forest);
  border-bottom: 0;
  padding-top: 20px;
}

.human-profile-details section {
  padding: 0;
}

.human-profile-details section + section {
  border-left: 0;
  padding: 0;
}

.profile-detail-label {
  color: var(--coral);
  font-weight: 820;
}

.human-profile-details p {
  margin-top: 10px;
  color: #583a3f;
  font-size: 13px;
}

.human-profile-card .interest-list {
  gap: 8px;
  margin-top: 11px;
}

.human-profile-card .interest-list span,
.profile-preview .interest-list span {
  border: 1px solid var(--forest);
  background: #fffdf6;
  color: var(--forest);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
}

.human-profile-card .interest-list span:nth-child(2n),
.profile-preview .interest-list span:nth-child(2n) {
  background: var(--blue-soft);
  transform: rotate(0.7deg);
}

.human-profile-card .interest-list span:nth-child(3n),
.profile-preview .interest-list span:nth-child(3n) {
  background: var(--amber-soft);
  transform: rotate(-0.8deg);
}

.human-profile-card .interest-list i,
.profile-preview .interest-list i {
  display: none;
}

.adventure-ticket,
.profile-preview-story {
  position: relative;
  min-height: 62px;
  margin-top: 26px;
  border: 1.5px solid var(--forest);
  background: var(--marigold);
  box-shadow: 3px 3px 0 var(--forest);
  padding: 13px 20px;
}

.adventure-ticket::before,
.adventure-ticket::after,
.profile-preview-story::before,
.profile-preview-story::after {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 24px;
  border: 1.5px solid var(--forest);
  background: var(--surface);
  content: "";
  transform: translateY(-50%);
}

.adventure-ticket::before,
.profile-preview-story::before {
  left: -9px;
  border-radius: 0 13px 13px 0;
  border-left: 0;
}

.adventure-ticket::after,
.profile-preview-story::after {
  right: -9px;
  border-right: 0;
  border-radius: 13px 0 0 13px;
}

.adventure-ticket span,
.profile-preview-story span {
  color: var(--forest);
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adventure-ticket strong,
.profile-preview-story strong {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
}

.human-profile-footer {
  border-top: 1.5px solid var(--forest);
  border-radius: 0 0 12px 12px;
  background: #f8f4e9;
  padding: 17px 24px;
}

.human-profile-footer .dating-choice-row button,
.human-profile-footer .intro-open {
  min-height: 40px;
  min-width: 104px;
}

.human-profile-footer .pass-button {
  background: #fffdf7;
}

.discover-pager {
  margin-top: 24px;
}

.discover-pager button {
  min-width: 116px;
}

/* Interest rooms */

.page-planets .app-page-head .planet-create-trigger {
  min-width: 145px;
}

.planets-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.62fr);
  gap: 32px;
  margin-top: 18px;
}

.planet-directory {
  top: 82px;
}

.planet-directory .section-head h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
}

.planet-directory-list {
  gap: 10px;
}

.planet-directory-item {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 12px;
}

.planet-directory-item:nth-child(3n + 1) {
  --room-paper: #f8ded8;
}

.planet-directory-item:nth-child(3n + 2) {
  --room-paper: #e2ddf7;
}

.planet-directory-item:nth-child(3n) {
  --room-paper: #efdcde;
}

.planet-directory-item:hover {
  border-color: var(--forest);
  background: var(--room-paper);
}

.planet-directory-item.active {
  border-color: var(--forest);
  background: var(--room-paper);
  box-shadow: 3px 3px 0 var(--forest);
}

.planet-directory-item > .pet-token,
.planet-directory-item > .avatar {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--forest);
  border-left-width: 1.5px;
  background: #fffdf6;
}

.planet-directory-copy strong {
  color: var(--forest);
  font-size: 14px;
  font-weight: 780;
}

.planet-directory-copy small {
  color: #625456;
}

.planet-board {
  overflow: visible;
  border: 1.5px solid var(--forest);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--forest);
  padding: 34px 36px;
}

.planet-board-head {
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 34px;
}

.planet-board-head h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-style: italic;
  font-weight: 700;
  line-height: 0.98;
}

.planet-board-head p {
  color: #615154;
  font-size: 13px;
}

.planet-room-stamp {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--forest);
  background: var(--lavender);
  box-shadow: 4px 4px 0 var(--forest);
  padding: 16px;
  text-align: center;
  transform: rotate(1deg);
}

.planet-room-stamp-label {
  color: var(--forest);
}

.planet-room-stamp > .pet-token,
.planet-room-stamp > .avatar {
  width: 78px;
  height: 78px;
  margin: 11px 0 8px;
  border: 1.5px solid var(--forest);
  border-left-width: 1.5px;
  border-radius: 50%;
  background: #fffdf6;
}

.planet-room-stamp small {
  color: var(--forest);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.35;
}

.planet-tag-row span {
  border: 1px solid var(--forest);
  border-radius: 2px;
  background: var(--amber-soft);
  color: var(--forest);
  font-weight: 720;
}

.planet-tag-row span:nth-child(2n) {
  background: var(--blue-soft);
}

.planet-house-rules {
  border-top: 1.5px dashed #918285;
  border-bottom: 1.5px dashed #918285;
}

.planet-feed-head {
  border-bottom: 1.5px solid var(--forest);
  padding-bottom: 12px;
}

.planet-feed-head h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-style: italic;
}

.planet-post > .pet-token,
.planet-post > .avatar {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--forest);
  border-left-width: 1.5px;
  background: #fffdf6;
}

.planet-compose {
  border: 1.5px solid var(--forest);
  border-radius: 10px;
  background: #f4efd8;
  box-shadow: 3px 3px 0 var(--forest);
}

/* Connections */

.adventures-page {
  max-width: 980px;
}

.adventure-count {
  min-width: 102px;
  border: 1.5px solid var(--forest);
  background: var(--lavender);
  box-shadow: 3px 3px 0 var(--forest);
  padding: 8px 13px;
}

.adventure-count b {
  color: var(--forest);
  font-size: 32px;
  font-weight: 760;
}

.adventure-count span {
  color: var(--forest);
  font-weight: 700;
}

.adventures-empty {
  min-height: 430px;
  border: 1.5px solid var(--forest);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 var(--forest);
  padding: 42px;
}

.connection-empty-scene {
  display: flex;
  width: min(100%, 440px);
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.empty-companion-card {
  display: grid;
  width: 118px;
  height: 132px;
  place-items: center;
  border: 1.5px solid var(--forest);
  box-shadow: 4px 4px 0 var(--forest);
}

.empty-companion-card.mine {
  background: var(--lavender);
  transform: rotate(-3deg);
}

.empty-companion-card.future {
  background: var(--blush);
  transform: rotate(3deg);
}

.empty-companion-card .pet-token,
.empty-companion-card .avatar {
  width: 78px;
  height: 78px;
  border: 1.5px solid var(--forest);
  border-left-width: 1.5px;
  border-radius: 50%;
  background: #fffdf6;
}

.empty-story-path {
  width: 112px;
  border-top: 3px dashed var(--forest);
}

.future-pet-mark {
  position: relative;
  width: 72px;
  height: 72px;
  border: 2px dashed var(--forest);
  border-radius: 48% 48% 44% 44%;
  opacity: 0.52;
}

.future-pet-mark::before,
.future-pet-mark::after {
  position: absolute;
  top: -8px;
  width: 22px;
  height: 24px;
  border-top: 2px dashed var(--forest);
  content: "";
}

.future-pet-mark::before {
  left: 8px;
  transform: rotate(38deg);
}

.future-pet-mark::after {
  right: 8px;
  transform: rotate(-38deg);
}

.adventures-empty .page-kicker {
  color: var(--coral);
}

.adventures-empty h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-style: italic;
  font-weight: 700;
}

.dating-match-card {
  border: 1.5px solid var(--forest);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--forest);
}

.dating-match-card:nth-child(2n) {
  background: #f2eefc;
}

/* Profile editor and live card */

.profile-page-layout {
  max-width: 1040px;
  gap: 30px;
}

.profile-page-editor {
  border: 1.5px solid var(--forest);
  border-top: 8px solid var(--coral);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 5px 5px 0 var(--forest);
  padding: 28px 30px;
}

.profile-form-head h2,
.profile-editor h2 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 29px;
  font-style: italic;
  font-weight: 700;
}

.profile-editor .field > span {
  color: var(--forest);
  font-size: 10px;
  font-weight: 760;
}

.profile-editor input,
.profile-editor textarea,
.profile-editor select {
  border-color: #87777a;
  background: #fffef9;
}

.consent-check {
  border: 1.5px dashed var(--forest);
  border-radius: 8px;
  background: #f6e7b3;
}

.profile-preview {
  overflow: visible;
  border: 1.5px solid var(--forest);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 var(--forest);
}

.profile-preview-visual {
  display: grid;
  height: 210px;
  place-items: center;
  border-bottom: 1.5px solid var(--forest);
  border-radius: 10px 10px 0 0;
  background: var(--lavender);
}

.profile-preview-visual.theme-lantern-library {
  background: #f2c866;
}

.profile-preview-visual.theme-forest-train {
  background: var(--mint);
}

.profile-preview-visual.theme-moon-garden {
  background: var(--lavender);
}

.profile-preview-visual > .pet-token,
.profile-preview-visual > .avatar {
  width: 126px;
  height: 126px;
  border: 2px solid var(--forest);
  border-left-width: 2px;
  border-radius: 46%;
  background: #fff9ec;
  box-shadow: 4px 4px 0 var(--forest);
}

.profile-preview-visual > small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--forest);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-preview-owner {
  border-bottom: 0;
  background: #fffdf8;
  padding: 22px 24px 4px;
}

.profile-preview-owner h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-style: italic;
}

.profile-preview-body {
  padding: 18px 24px 26px;
}

.profile-preview-intro {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
}

.profile-preview .interest-list {
  gap: 7px;
  margin-top: 10px;
}

.profile-preview .looking-for {
  border-top: 1.5px solid var(--forest);
}

.profile-preview-story {
  display: flex;
}

.profile-preview-companion {
  border-top: 1.5px solid var(--forest);
}

.profile-head-status {
  border: 1.5px solid var(--forest);
  background: var(--blush);
  box-shadow: 3px 3px 0 var(--forest);
  padding: 9px 12px;
  color: var(--forest);
}

/* Adoption keeps the same tactile language. */

.adoption-modal {
  border: 1.5px solid var(--forest);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 8px 8px 0 var(--forest);
}

.adoption-modal h1 {
  font-family: var(--font-display);
  font-style: italic;
}

.adopt-card,
.nature-choice {
  border: 1.5px solid var(--forest);
  border-radius: 10px;
  background: #fffdf8;
}

.adopt-card:nth-child(3n + 1) {
  background: #f8ded8;
}

.adopt-card:nth-child(3n + 2) {
  background: #e2ddf7;
}

.adopt-card:nth-child(3n) {
  background: #efdcde;
}

.adopt-card.selected,
.nature-choice.selected {
  border-color: var(--forest);
  box-shadow: 3px 3px 0 var(--forest);
}

@media (max-width: 860px) {
  .human-profile-layout {
    grid-template-columns: 1fr;
  }

  .companion-field-card {
    display: grid;
    min-height: 290px;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 12px 22px;
    border-right: 0;
    border-bottom: 1.5px solid var(--forest);
  }

  .companion-vignette {
    min-height: 230px;
    grid-row: 1 / 3;
    margin: 0;
  }

  .companion-vignette > .pet-token,
  .companion-vignette > .avatar {
    width: 136px;
    height: 136px;
  }

  .field-card-caption {
    align-self: end;
  }

  .planets-layout {
    grid-template-columns: 1fr;
  }

  .planet-directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page-layout {
    grid-template-columns: 1fr;
  }}

@media (max-width: 680px) {
  .topnav {
    min-height: 56px;
  }

  .topnav .navlinks {
    border-top: 1.5px solid var(--forest);
    background: rgba(252, 246, 240, 0.99);
  }

  .topnav .navlinks a:hover::after,
  .topnav .navlinks a.active::after {
    height: 3px;
    background: var(--coral);
  }

  .app-page-head {
    min-height: 112px;
    padding: 23px 0 19px;
  }

  .app-page-head h1 {
    font-size: 38px;
  }

  .discover-profile-state,
  .adventure-count,
  .profile-head-status {
    box-shadow: 2px 2px 0 var(--forest);
  }

  .human-profile-card,
  .planet-board,
  .adventures-empty,
  .profile-page-editor,
  .profile-preview {
    box-shadow: 4px 4px 0 var(--forest);
  }

  .human-profile-head {
    padding: 30px 26px 8px;
  }

  .human-profile-person h3 {
    font-size: 48px;
  }

  .human-profile-copy {
    padding: 16px 26px 30px;
  }

  .human-profile-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .human-profile-details section + section {
    border-top: 1px dashed #96888a;
    padding-top: 18px;
  }

  .planet-directory-list {
    display: flex;
  }

  .planet-board-head {
    grid-template-columns: 1fr;
  }

  .planet-room-stamp {
    min-height: 118px;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    transform: none;
  }

  .planet-room-stamp-label {
    display: none;
  }

  .planet-room-stamp > .pet-token,
  .planet-room-stamp > .avatar {
    width: 68px;
    height: 68px;
    margin: 0;
  }

  .connection-empty-scene {
    transform: scale(0.88);
  }}

@media (max-width: 520px) {
  .brand {
    font-size: 22px;
  }

  .app-page-head {
    min-height: 102px;
    gap: 14px;
    padding: 17px 0 15px;
  }

  .app-page-head h1 {
    font-size: 34px;
  }

  .app-page-head p {
    max-width: 230px;
  }

  .app-page-action {
    max-width: 138px;
  }

  .discover-profile-state {
    min-width: 118px;
    padding: 8px 9px;
  }

  .companion-field-card {
    display: flex;
    min-height: 286px;
    padding: 15px;
  }

  .companion-vignette {
    width: 100%;
    min-height: 176px;
    margin: 12px 0;
  }

  .companion-vignette > .pet-token,
  .companion-vignette > .avatar {
    width: 106px;
    height: 106px;
  }

  .companion-vignette .vignette-sun {
    top: 18px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .field-card-caption {
    padding-top: 10px;
  }

  .field-card-caption strong {
    font-size: 23px;
  }

  .human-profile-head {
    align-items: flex-start;
    padding: 26px 20px 8px;
  }

  .human-profile-person h3 {
    font-size: 43px;
  }

  .planet-board-head h2 {
    font-size: 37px;
  }

  .human-profile-copy {
    padding: 14px 20px 26px;
  }

  .human-profile-footer {
    padding: 16px 18px;
  }

  .adventure-ticket,
  .profile-preview-story {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .adventures-empty {
    min-height: 400px;
    padding: 28px 18px;
  }

  .connection-empty-scene {
    width: 340px;
    margin-inline: -28px;
    transform: scale(0.76);
  }

  .profile-page-editor {
    padding: 23px 19px;
  }

  .profile-preview-visual {
    height: 185px;
  }

  .profile-preview-visual > .pet-token,
  .profile-preview-visual > .avatar {
    width: 110px;
    height: 110px;
  }}

/* Component-level refinement
   Everyday controls stay quiet; only companion art and story tickets carry
   the heavier field-guide treatment. */

:root {
  --ui-border: #c8c8be;
  --ui-border-strong: #9a8f92;
  --ui-surface-soft: #f7f4ec;
  --ui-shadow: 0 14px 38px rgba(64, 38, 43, 0.08);
  --ui-shadow-small: 0 6px 18px rgba(64, 38, 43, 0.07);
  --ui-shadow-modal: 0 28px 80px rgba(46, 27, 31, 0.2);
}

/* Navigation and page framing */

.topnav {
  border-bottom: 1px solid #c7c8bf;
  box-shadow: none;
}

.navlinks a {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.005em;
}

.navlinks a:hover::after,
.navlinks a.active::after {
  bottom: -10px;
  height: 2px;
}

.nav-human-mark {
  border: 1px solid #b4aaad;
  background: #f8f5ec;
  box-shadow: none;
}

.app-page-head {
  min-height: 124px;
  border-bottom: 1px solid #c7c8bf;
}

.app-page-head h1 {
  font-size: clamp(36px, 4vw, 50px);
  letter-spacing: -0.045em;
}

.app-page-head p {
  color: #65585a;
  font-size: 13.5px;
  line-height: 1.55;
}

.page-kicker,
.profile-record-label,
.field-card-label,
.planet-room-stamp-label {
  letter-spacing: 0.13em;
}

/* Buttons, links, fields and feedback */

button.primary,
.primary[href]{
  border: 1px solid #55202a;
  border-radius: 6px;
  background: #722f3b;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.16), 0 1px 2px rgba(56, 33, 37, 0.22);
  color: #fffaf0;
  font-weight: 640;
  letter-spacing: 0.01em;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button.primary:hover,
.primary[href]:hover{
  border-color: #45292e;
  background: #632530;
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.14), 0 4px 12px rgba(70, 41, 46, 0.18);
  transform: translateY(-1px);
}

button.primary:active,
.primary[href]:active{
  box-shadow: inset 0 2px 3px rgba(33, 19, 22, 0.28);
  transform: translateY(0);
}

button.ghost,
.msg-form button{
  border: 1px solid #b4aaac;
  border-radius: 7px;
  background: #fffdf8;
  box-shadow: none;
  color: #5c333b;
  font-weight: 680;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

button.ghost:hover,
.msg-form button:hover{
  border-color: #8a7c7f;
  background: #f4f1e8;
  box-shadow: none;
  transform: none;
}

.human-profile-footer .like-button {
  border-color: #bc554c;
  background: var(--coral);
  color: #41262b;
}

.human-profile-footer .like-button:hover {
  border-color: #a74640;
  background: #e76357;
}

.text-button,
.safety-action {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6c5e60;
  text-decoration: underline;
  text-decoration-color: #c2bcbd;
  text-underline-offset: 3px;
}

.text-button:hover,
.safety-action:hover {
  background: transparent;
  color: #46292e;
  text-decoration-color: currentColor;
}

.danger-button {
  border: 1px solid #b7665f;
  border-radius: 7px;
  background: #fff8f5;
  box-shadow: none;
  color: #8b3935;
}

input,
select,
textarea,
.profile-editor input,
.profile-editor select,
.profile-editor textarea {
  border: 1px solid #b4aaac;
  border-radius: 7px;
  background: #fffefb;
  box-shadow: inset 0 1px 0 rgba(70, 41, 46, 0.025);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #988e90;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7c5058;
  box-shadow: 0 0 0 3px rgba(114, 47, 59, 0.11);
  outline: none;
}

.tag,
.human-profile-head .tag,
.tag.guide,
.tag.companion-pick,
.tag.match-tag {
  border: 1px solid #c9bfc1;
  border-radius: 999px;
  background: #f3edee;
  box-shadow: none;
  color: #663840;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.025em;
  text-transform: none;
  transform: none;
}

.tag.companion-pick {
  border-color: #c9c2e3;
  background: #f0edf9;
  color: #564d7a;
}

.toast {
  border: 1px solid #46292e;
  border-radius: 3px;
  box-shadow: 0 10px 32px rgba(31, 18, 21, 0.18);
}

/* Discover status, record and controls */

.discover-profile-state,
.profile-head-status {
  position: relative;
  min-width: 0;
  border: 1px solid #cabfc2;
  border-radius: 999px;
  background: #f1f2e9;
  box-shadow: none;
  color: #654249;
  padding: 7px 11px 7px 27px;
  text-align: left;
  transform: none;
}

.discover-profile-state::before,
.profile-head-status::before {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #986b75;
  content: "";
  transform: translateY(-50%);
}

.discover-profile-state strong,
.profile-head-status strong {
  color: #5e373e;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.discover-profile-state a {
  color: #6a585b;
  font-size: 9px;
  text-decoration-color: #b7adaf;
}

.discover-toolbar {
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

.human-profile-card {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  box-shadow: var(--ui-shadow);
}

.human-profile-layout {
  border-radius: 11px 11px 0 0;
}

.companion-field-card {
  border-right: 1px solid rgba(70, 41, 46, 0.44);
}

.companion-vignette {
  /* The companion portrait is intentionally the one tactile object. */
  box-shadow: 6px 6px 0 rgba(70, 41, 46, 0.9);
}

.field-card-caption {
  border-top-width: 1px;
}

.human-profile-head {
  padding: 38px 42px 12px;
}

.human-profile-person h3 {
  font-size: clamp(42px, 4.5vw, 56px);
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.human-profile-person small {
  color: #74686a;
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: 0.035em;
  text-transform: none;
}

.human-profile-copy {
  padding: 17px 42px 36px;
}

.human-profile-copy .connection-intro {
  max-width: 610px;
  border-left: 2px solid #e7a19a;
  padding-left: 17px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.58;
}

.human-profile-details {
  gap: 30px;
  border-top: 1px solid #d4d5cc;
}

.profile-detail-label {
  color: #655255;
  font-size: 11.5px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

.human-profile-details p {
  color: #503e41;
  font-size: 13.5px;
  line-height: 1.55;
}

.human-profile-card .interest-list span,
.profile-preview .interest-list span {
  border: 0;
  border-radius: 999px;
  background: #f2edee;
  color: #554144;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 650;
  transform: none;
}

.human-profile-card .interest-list span:nth-child(2n),
.profile-preview .interest-list span:nth-child(2n) {
  background: #efedf7;
  transform: none;
}

.human-profile-card .interest-list span:nth-child(3n),
.profile-preview .interest-list span:nth-child(3n) {
  background: #f6eed8;
  transform: none;
}

.adventure-ticket,
.profile-preview-story {
  /* Story admission is the second deliberately crafted artifact. */
  border-width: 1px;
  box-shadow: 3px 3px 0 var(--forest);
}

.human-profile-footer {
  border-top: 1px solid #d2d4cb;
  background: #faf8f1;
}

.human-profile-footer .dating-choice-row button,
.human-profile-footer .intro-open {
  min-width: 98px;
}

.discover-pager {
  display: grid;
  width: max-content;
  grid-template-columns: auto auto auto;
  gap: 0;
  overflow: hidden;
  margin: 24px auto 0;
  border: 1px solid #c4babd;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: none;
}

.discover-pager button.ghost {
  min-width: 108px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 12px;
}

.discover-pager button.ghost:hover {
  background: #f2f0e9;
}

.discover-pager button:disabled {
  background: #f8f6f0;
  color: #a79ea0;
}

.discover-pager span {
  display: grid;
  min-width: 66px;
  place-items: center;
  border-right: 1px solid #d2d4cd;
  border-left: 1px solid #d2d4cd;
  color: #716567;
  font-size: 10.5px;
  font-weight: 650;
}

.discover-empty,
.planets-empty {
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-small);
}

/* Planets directory, room header, discussion and composer */

.planet-directory .section-head h2,
.planet-feed-head h3 {
  font-style: normal;
}

.planet-directory-item {
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 130ms ease, border-color 130ms ease;
}

.planet-directory-item:hover {
  border-color: #c5c8bf;
  background: #f5f2ea;
}

.planet-directory-item.active {
  border-color: #c6b8ba;
  background: #f1ebec;
  box-shadow: inset 3px 0 0 #7d4f58;
}

.planet-directory-item > .pet-token,
.planet-directory-item > .avatar,
.planet-post > .pet-token,
.planet-post > .avatar {
  border: 1px solid #968689;
  border-left-width: 1px;
  box-shadow: none;
}

.planet-board {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  box-shadow: var(--ui-shadow);
}

.planet-board-head {
  grid-template-columns: minmax(0, 1fr) 190px;
}

.planet-board-head h2 {
  font-size: clamp(32px, 3.7vw, 44px);
  font-style: normal;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.planet-room-stamp {
  display: grid;
  min-height: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 10px;
  border: 1px solid #cbc6dc;
  border-radius: 9px;
  background: #f1eef8;
  box-shadow: none;
  padding: 12px;
  text-align: left;
  transform: none;
}

.planet-room-stamp-label {
  grid-column: 1 / -1;
  color: #655d7a;
}

.planet-room-stamp > .pet-token,
.planet-room-stamp > .avatar {
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid #8b8797;
  border-left-width: 1px;
  box-shadow: none;
}

.planet-room-stamp small {
  color: #494557;
  font-size: 10px;
  font-weight: 650;
}

.planet-tag-row {
  gap: 7px;
}

.planet-tag-row span,
.planet-tag-row span:nth-child(2n) {
  border: 0;
  border-radius: 999px;
  background: #f0f1e9;
  color: #5e4c4f;
  padding: 6px 10px;
  font-weight: 650;
}

.planet-tag-row span:nth-child(2n) {
  background: #efedf7;
}

.planet-house-rules {
  border-top: 1px solid #d5d6ce;
  border-bottom: 1px solid #d5d6ce;
  background: #faf8f2;
}

.planet-feed-head {
  border-bottom: 1px solid #d5cacd;
}

.planet-post {
  border-bottom-color: #dedfd8;
}

.planet-compose,
.planet-create-card {
  border: 1px solid #cdc2c5;
  border-radius: 9px;
  background: #f8f5eb;
  box-shadow: none;
}

.planet-compose {
  border-left: 3px solid #d6a64b;
}

.planet-feed-empty {
  border: 1px dashed #c8bec1;
  border-radius: 9px;
  background: #fbfaf6;
}

/* Connections and empty states */

.adventure-count {
  min-width: 92px;
  border: 1px solid #c8c2dc;
  border-radius: 8px;
  background: #f0edf8;
  box-shadow: none;
  padding: 7px 11px;
}

.adventure-count b {
  font-size: 24px;
  font-weight: 740;
}

.adventure-count span {
  color: #625c72;
  font-size: 10px;
  font-weight: 650;
}

.adventures-empty {
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  box-shadow: var(--ui-shadow);
}

.empty-story-path {
  height: 2px;
  border: 0;
  background: repeating-linear-gradient(90deg, #88777a 0 8px, transparent 8px 14px);
  opacity: 0.7;
}

.adventures-empty h2 {
  font-size: 32px;
  font-style: normal;
}

.dating-match-card {
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  box-shadow: var(--ui-shadow-small);
}

.dating-match-card:nth-child(2n) {
  background: #fbfaf6;
}

.match-card-top {
  border-bottom-color: #d7d9d1;
}

/* Profile form and public preview */

.profile-page-editor {
  border: 1px solid var(--ui-border);
  border-top: 3px solid #df766b;
  border-radius: 10px;
  box-shadow: var(--ui-shadow-small);
}

.profile-form-head h2,
.profile-editor h2 {
  font-size: 27px;
  font-style: normal;
  letter-spacing: -0.025em;
}

.profile-editor .field > span {
  color: #574346;
  font-size: 12px;
  font-weight: 690;
  letter-spacing: 0;
  text-transform: none;
}

.consent-check {
  border: 1px solid #d5c58e;
  border-radius: 7px;
  background: #faf2d7;
}

.profile-preview {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  box-shadow: var(--ui-shadow);
}

.profile-preview-visual {
  border-bottom: 1px solid rgba(70, 41, 46, 0.42);
}

.profile-preview-owner h2 {
  font-size: 32px;
  font-style: normal;
  letter-spacing: -0.035em;
}

.profile-preview-intro {
  font-size: 17px;
  line-height: 1.55;
}

.profile-preview .looking-for,
.profile-preview-companion {
  border-top: 1px solid #d5d7cf;
}

.profile-preview-companion {
  background: #faf8f2;
}

/* Modals and selectable cards */

.modal-backdrop {
  background: rgba(48, 30, 33, 0.58);
  backdrop-filter: blur(3px);
}

.modal,
.adoption-modal,
.report-modal {
  border: 1px solid #bfb5b7;
  border-top: 3px solid #df766b;
  border-radius: 13px;
  background: #f7f4ec;
  box-shadow: var(--ui-shadow-modal);
}

.adoption-modal h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-style: normal;
}

.adopt-card,
.nature-choice {
  border: 1px solid #c9bec1;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: none;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.adopt-card:nth-child(3n + 1),
.adopt-card:nth-child(3n + 2),
.adopt-card:nth-child(3n),
.nature-choice {
  background: #fffdf8;
}

.adopt-card:hover,
.nature-choice:hover {
  border-color: #9c8d90;
  background: #f7f5ee;
}

.adopt-card.picked,
.adopt-card.selected,
.nature-choice.picked,
.nature-choice.selected {
  border-color: #82424e;
  background: #f3edee;
  box-shadow: inset 0 0 0 1px #82424e;
}

.adopt-step > span {
  display: grid;
  width: auto;
  min-width: 42px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #e9e3d4;
  color: #615154;
  padding: 0 8px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .companion-field-card {
    border-right: 0;
    border-bottom: 1px solid rgba(70, 41, 46, 0.44);
  }

  .planet-board-head {
    grid-template-columns: minmax(0, 1fr) 180px;
  }}

@media (max-width: 680px) {
  .topnav .navlinks {
    border-top: 1px solid #c7c8bf;
    box-shadow: 0 -5px 20px rgba(64, 38, 43, 0.05);
  }

  .discover-profile-state,
  .adventure-count,
  .profile-head-status {
    box-shadow: none;
  }

  .human-profile-card,
  .planet-board,
  .adventures-empty,
  .profile-page-editor,
  .profile-preview {
    box-shadow: 0 9px 26px rgba(64, 38, 43, 0.07);
  }

  .human-profile-person h3 {
    font-size: 43px;
  }

  .human-profile-details section + section {
    border-top: 1px solid #d7d8d1;
  }

  .planet-board-head {
    grid-template-columns: 1fr;
  }

  .planet-room-stamp {
    display: grid;
    min-height: 0;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 11px;
    transform: none;
  }

  .planet-room-stamp-label {
    display: block;
  }

  .planet-room-stamp > .pet-token,
  .planet-room-stamp > .avatar {
    width: 52px;
    height: 52px;
  }}

@media (max-width: 520px) {
  .app-page-head h1 {
    font-size: 32px;
  }

  .discover-profile-state {
    min-width: 0;
  }

  .human-profile-person h3 {
    font-size: 39px;
  }

  .discover-pager {
    width: 100%;
  }

  .discover-pager button.ghost {
    min-width: 0;
  }

  .profile-page-editor {
    padding: 22px 18px;
  }

  .adoption-modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 16px);
    overflow-x: hidden;
    border-radius: 11px;
    padding: 20px 16px;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 8px;
  }

  .adoption-modal h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .adopt-intro {
    line-height: 1.52;
  }

  .adopt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adopt-card {
    min-width: 0;
    min-height: 124px;
  }

  .adopt-foot .field,
  .adopt-foot input,
  .adopt-foot button {
    width: 100%;
  }}

/* Keep the Planets catalog action text-sized after the global component pass. */
.page-planets .app-page-head .planet-create-trigger,
.page-planets .app-page-head .planet-create-trigger:hover {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #847779;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--planet-ink);
}

/* Plain community pass
   Real profiles and conversations lead; containers only appear where a form
   or modal needs a boundary. */

.page-discover,
.page-adventures,
.page-profile,
.page-planets {
  gap: 0;
}

.page-discover .app-page-head,
.page-adventures .app-page-head,
.page-profile .app-page-head,
.page-planets .app-page-head {
  min-height: 92px;
  border-bottom: 1px solid #bfc2b9;
  padding: 22px 0 18px;
}

.page-discover .app-page-title,
.page-adventures .app-page-title,
.page-profile .app-page-title,
.page-planets .app-page-title {
  display: block;
}

.page-discover .app-page-head h1,
.page-adventures .app-page-head h1,
.page-profile .app-page-head h1,
.page-planets .app-page-head h1 {
  margin: 0;
  color: #3e2429;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.page-status-text,
.page-utility-link {
  color: #625255;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.page-utility-link {
  border-bottom: 1px solid #988c8e;
  padding-bottom: 4px;
}

.page-utility-link:hover {
  text-decoration: none;
}

/* Discover: open editorial spread, never a draggable card stack. */

.page-discover .discover-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 18px;
}

.page-discover .discover-practice-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #bfc2b9;
  border-bottom: 1px solid #bfc2b9;
  padding: 10px 0;
}

.page-discover .discover-practice-kicker {
  color: #a44f43;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-discover .discover-practice-strip p,
.page-discover .discover-choice-note {
  margin: 0;
  color: #655558;
  font-size: 11px;
  line-height: 1.45;
}

.page-discover .discover-practice-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4c2b31;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
}

.page-discover .discover-practice-link:hover {
  color: #a44f43;
  transform: none;
}

.page-discover .discover-choice-note {
  padding: 14px 0 18px;
}

.page-discover .discover-grid {
  width: 100%;
}

.page-discover .discover-grid.page-enter-next,
.page-discover .discover-grid.page-enter-previous {
  animation: discover-page-enter 180ms ease-out both;
}

@keyframes discover-page-enter {
  from {
    opacity: 0.66;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }}

.page-discover .human-profile-card {
  overflow: visible;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-discover .human-profile-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(42px, 6vw, 88px);
  overflow: visible;
  min-height: 520px;
  border-radius: 0;
}

.page-discover .companion-field-card {
  position: relative;
  display: grid;
  min-height: 520px;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  border: 0;
  background-position: center;
  background-size: cover;
  padding: 40px 28px;
}

.page-discover .theme-lantern-library .companion-field-card {
  background-image: url("/discover/lantern-library-desktop.webp");
}

.page-discover .theme-forest-train .companion-field-card {
  background-image: url("/discover/forest-train-desktop.webp");
}

.page-discover .theme-moon-garden .companion-field-card {
  background-image: url("/discover/moon-garden-desktop.webp");
}

.page-discover .companion-vignette {
  position: relative;
  display: grid;
  width: 220px;
  min-height: 230px;
  aspect-ratio: 1;
  place-items: center;
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.page-discover .companion-vignette::after {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 0;
  width: 132px;
  height: 14px;
  border-radius: 50%;
  background: rgba(38, 30, 27, 0.2);
  content: "";
  filter: blur(7px);
  transform: translateX(-50%);
}

.page-discover .companion-vignette::before,
.page-discover .companion-vignette .vignette-sun,
.page-discover .companion-vignette .vignette-ground {
  display: none;
}

.page-discover .companion-vignette > .pet-token,
.page-discover .companion-vignette > .avatar {
  position: relative;
  z-index: 1;
  width: 190px;
  height: auto;
  aspect-ratio: 1;
  box-shadow: none;
}

.page-discover .companion-vignette > .pet-token.has-art {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.page-discover .companion-vignette > .pet-token:not(.has-art),
.page-discover .companion-vignette > .avatar {
  width: 140px;
  border: 1px solid rgba(84, 70, 72, 0.55);
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.92);
}

.page-discover .companion-vignette .pet-art {
  filter: drop-shadow(0 9px 7px rgba(35, 25, 25, 0.14)) drop-shadow(0 0 1px rgba(246, 239, 231, 0.7));
}

.page-discover .field-card-caption {
  margin-top: 14px;
  border: 0;
  background: rgba(247, 242, 232, 0.9);
  padding: 5px 10px;
}

.page-discover .field-card-caption strong {
  color: #41262b;
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.page-discover .human-profile-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  padding: clamp(48px, 7vw, 82px) 0 34px;
}

.page-discover .human-profile-head {
  align-items: baseline;
  border: 0;
  padding: 0 0 16px;
}

.page-discover .human-profile-person {
  display: block;
}

.page-discover .human-profile-person h2 {
  margin: 0;
  color: #3c2328;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.page-discover .profile-context {
  color: #796f71;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-discover .profile-context.companion-pick::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #d85f50;
  content: "";
}

.page-discover .companion-pick-reason {
  max-width: 620px;
  margin: 0 0 20px;
  color: #534245;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}

.page-discover .human-profile-copy {
  padding: 0;
}

.page-discover .human-profile-copy .connection-intro {
  max-width: 650px;
  border: 0;
  color: #4d3c3f;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-discover .human-profile-details {
  display: block;
  margin-top: 22px;
  border: 0;
  padding: 0;
}

.page-discover .interest-list,
.page-profile .interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
}

.page-discover .human-profile-card .interest-list span,
.page-discover .human-profile-card .interest-list span:nth-child(2n),
.page-discover .human-profile-card .interest-list span:nth-child(3n),
.page-profile .profile-preview .interest-list span,
.page-profile .profile-preview .interest-list span:nth-child(2n),
.page-profile .profile-preview .interest-list span:nth-child(3n) {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #625154;
  padding: 0;
  font-size: 12px;
  font-weight: 650;
  transform: none;
}

.page-discover .human-profile-card .interest-list i,
.page-profile .profile-preview .interest-list i {
  display: inline;
  margin: 0 8px;
  color: #d85f50;
  font-style: normal;
}

.page-discover .human-profile-details .interest-line {
  color: #534245;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-discover .discover-story-caption {
  margin: 24px 0 0;
  color: #747b75;
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
}

.page-discover .human-profile-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid #bfc2b9;
  border-radius: 0;
  background: transparent;
  padding: 18px 0 0;
}

.page-discover .human-profile-footer .dating-choice-row {
  display: flex;
  width: auto;
  gap: 8px;
}

.page-discover .profile-required-cta {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  border-radius: 2px;
  padding: 0 14px;
  font-size: 11px;
  text-decoration: none;
}

.page-discover .human-profile-footer .dating-choice-row button {
  min-width: 86px;
  min-height: 37px;
  border-radius: 2px;
  box-shadow: none;
}

.page-discover .human-profile-footer .safety-action {
  margin-left: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #817779;
  padding: 5px 0;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-discover .discover-empty {
  border-top: 1px solid #bfc2b9;
  border-bottom: 1px solid #bfc2b9;
  padding: 72px 0;
}

.page-discover .discover-empty h2 {
  margin: 0;
  color: #514043;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

/* Landing: the first screen, before any companion exists. */

.content.landing-content {
  max-width: 760px;
  gap: 0;
}

.landing-page {
  display: grid;
  justify-items: start;
  padding: clamp(24px, 8vh, 84px) 0 48px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f3134;
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.landing-brand .ui-icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.landing-eyebrow {
  margin-top: 30px;
  color: #a44f43;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-page h1 {
  max-width: 15ch;
  margin: 12px 0 0;
  color: #33272a;
  font-family: var(--font-serif);
  font-size: clamp(32px, 5.2vw, 50px);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.06;
  text-wrap: balance;
}

.landing-sub {
  max-width: 54ch;
  margin: 16px 0 0;
  color: #514043;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: balance;
}

.landing-steps {
  display: grid;
  width: 100%;
  max-width: 560px;
  margin: 32px 0 0;
  border-top: 1px solid #bfc2b9;
  padding: 0;
  list-style: none;
}

.landing-steps li {
  display: grid;
  align-items: baseline;
  gap: 14px;
  grid-template-columns: 22px minmax(0, 1fr);
  border-bottom: 1px solid #bfc2b9;
  padding: 13px 0;
}

.landing-step-mark {
  color: #a44f43;
  font-size: 11px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.landing-steps b {
  display: block;
  color: #3f3134;
  font-size: 13px;
  font-weight: 680;
}

.landing-steps small {
  display: block;
  margin-top: 3px;
  color: #7d7375;
  font-size: 11px;
  line-height: 1.45;
}

.landing-cta {
  min-height: 42px;
  margin-top: 30px;
  padding: 0 22px;
  font-size: 13px;
}

.landing-foot {
  max-width: 72ch;
  margin: 22px 0 0;
  color: #7d7375;
  font-size: 11px;
  line-height: 1.5;
}

/* Companion activity: an owner-only trace of what the pet did. */

.page-discover .companion-activity {
  display: grid;
  align-items: baseline;
  gap: 4px 18px;
  grid-template-columns: auto minmax(0, 1fr);
  border-top: 1px solid #bfc2b9;
  padding: 12px 0 11px;
}

.page-discover .companion-activity-pet {
  color: #a44f43;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-discover .companion-activity ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-discover .companion-activity li {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
  color: #4c2b31;
  font-size: 11px;
}

.page-discover .companion-activity li + li::before {
  color: #b0a6a3;
  content: "·";
}

.page-discover .companion-activity li > span {
  overflow: hidden;
  max-width: 44ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-discover .companion-activity time {
  color: #8f8285;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.page-discover .companion-activity p {
  margin: 0;
  color: #655558;
  font-size: 11px;
  line-height: 1.45;
}

/* My profile: the companion's draft, private until the human approves it. */

.page-profile .companion-draft {
  display: grid;
  gap: 15px;
  grid-column: 1 / -1;
}

.page-profile .companion-draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-profile .companion-draft-head h2 {
  margin: 0;
  color: #33272a;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-profile .companion-draft-head p {
  margin: 3px 0 0;
  color: #7d7375;
  font-size: 11px;
}

.page-profile .draft-flag {
  flex: none;
  border: 1px solid #c9b6b8;
  padding: 3px 8px;
  color: #a44f43;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-profile .companion-draft-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid #d7d2c8;
  border-bottom: 1px solid #d7d2c8;
  padding: 15px 0;
}

.page-profile .draft-line {
  display: grid;
  align-items: baseline;
  gap: 14px;
  grid-template-columns: 84px minmax(0, 1fr);
}

.page-profile .draft-line > span {
  color: #7c837d;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-profile .draft-line p {
  margin: 0;
  color: #3f3134;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
}

.page-profile .companion-draft .consent-check {
  margin-top: 0;
  border-top: 0; /* the draft body already closes with a rule */
}

.page-profile .companion-draft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-profile .companion-draft-hint {
  margin: 0;
  color: #655558;
  font-size: 12px;
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .page-profile .draft-line {
    gap: 3px;
    grid-template-columns: minmax(0, 1fr);
  }}

/* Connections: relationships are rows, not notification cards. */

.page-adventures .adventures-page {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 24px;
}

.page-adventures .introduction-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-adventures .dating-match-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.7fr) auto;
  align-items: center;
  gap: 28px;
  border: 0;
  border-top: 1px solid #bfc2b9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 20px 0;
}

.page-adventures .dating-match-card:last-child {
  border-bottom: 1px solid #bfc2b9;
}

.page-adventures .match-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0;
}

.page-adventures .match-companion-pair {
  display: flex;
  flex: none;
  gap: 8px;
}

/* 64 px so the contained art reads as a whole animal; no overlap, nothing clipped. */
.page-adventures .match-companion-pair > .pet-token,
.page-adventures .match-companion-pair > .avatar {
  width: 64px;
  height: 64px;
  border: 1px solid #8d7e80;
  border-left-width: 1px;
  box-shadow: none;
}

.page-adventures .match-companion-pair > .pet-token > .pet-art {
  object-fit: contain;
}

.page-adventures .match-card-top h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-adventures .match-card-top small {
  color: #7d7375;
  font-size: 11px;
}

.page-adventures .introduction-meta {
  display: grid;
  gap: 3px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.page-adventures .introduction-meta span {
  color: #7c837d;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-adventures .introduction-meta strong {
  color: #58373d;
  font-size: 12px;
}

.page-adventures .introduction-actions {
  justify-content: flex-end;
  margin: 0;
}

.page-adventures .adventures-empty {
  overflow: hidden;
  min-height: 0;
  align-items: flex-start;
  border: 0;
  border-top: 1px solid #bfc2b9;
  border-bottom: 1px solid #bfc2b9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 36px 0;
  text-align: left;
}

/* Profile: editor and preview share one open sheet. */

.page-profile .profile-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid #bfc2b9;
}

.page-profile .profile-page-editor,
.page-profile .profile-preview {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-profile .profile-page-editor {
  border-right: 1px solid #bfc2b9;
  padding: 30px 40px 12px 0;
}

.page-profile .profile-preview {
  padding: 30px 0 12px 40px;
}

.page-profile .profile-preview-visual,
.page-profile .profile-preview-visual.theme-lantern-library,
.page-profile .profile-preview-visual.theme-forest-train,
.page-profile .profile-preview-visual.theme-moon-garden {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 132px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-profile .profile-preview-visual::before,
.page-profile .profile-preview-visual .vignette-sun,
.page-profile .profile-preview-visual .vignette-ground {
  display: none;
}

.page-profile .profile-preview-visual > .pet-token,
.page-profile .profile-preview-visual > .avatar {
  width: 112px;
  height: 112px;
  border: 1px solid #88777a;
  border-left-width: 1px;
  border-radius: 50%;
  background: #f6f1e7;
  box-shadow: none;
}

.page-profile .profile-preview-visual > small {
  display: none;
}

.page-profile .profile-preview-owner,
.page-profile .profile-preview-body {
  border: 0;
  background: transparent;
  padding: 14px 0 0;
}

.page-profile .profile-preview-owner h2 {
  overflow-wrap: anywhere;
}

.page-profile .consent-check {
  gap: 9px;
  border: 0;
  border-top: 1px solid #d1d3cc;
  border-radius: 0;
  background: transparent;
  padding: 14px 0 0;
}

.page-profile .consent-check small {
  margin-top: 2px;
}

.page-profile .profile-preview-story {
  position: static;
  min-height: 0;
  border: 0;
  border-top: 1px solid #d1d3cc;
  background: transparent;
  box-shadow: none;
  padding: 14px 0 0;
}

.page-profile .profile-preview-story::before,
.page-profile .profile-preview-story::after {
  display: none;
}

.page-profile .profile-preview-companion {
  background: transparent;
}

/* Planets: no swipe rail; the room index always wraps in the page. */

.page-planets .planet-material-visual {
  border: 0;
  background: transparent;
}

.page-planets .planet-material-visual img {
  object-fit: contain;
}

.page-planets .planet-material-visual figcaption {
  display: none;
}

.page-planets .planet-compose {
  border: 0;
  border-top: 1px solid var(--planet-rule);
  background: transparent;
  padding: 18px 0 0;
}

.page-planets .planet-compose textarea {
  margin-top: 0;
}

.page-planets .planet-compose-actions {
  justify-content: flex-end;
}

.page-planets .planet-directory-copy i {
  margin-top: 5px;
}

.page-discover .connection-intro,
.page-discover .human-profile-person h2,
.page-discover .field-card-caption strong,
.page-discover .interest-list span,
.page-adventures .match-card-top h3,
.page-adventures .match-card-top small,
.page-planets .planet-feature-copy h2,
.page-planets .planet-post p,
.page-planets .planet-directory-copy strong,
.page-planets .planet-feature-description,
.page-planets .planet-tag-row span,
.page-planets .planet-host-byline strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-adventures .match-card-top > div:last-child {
  min-width: 0;
}

.page-discover .tag,
.page-adventures .tag,
.page-profile .tag,
.page-planets .tag,
.page-planets .planet-post-meta .tag {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #746769;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 920px) {
  .page-planets .planets-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-planets .planet-directory {
    position: static;
  }

  .page-planets .planet-directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 0;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .page-planets .planet-directory-item,
  .page-planets .planet-directory-item:hover,
  .page-planets .planet-directory-item.active {
    min-height: 0;
    flex: initial;
    border-right: 1px solid #d4d5cd;
    padding: 11px 4px 10px;
    scroll-snap-align: none;
  }

  .page-planets .planet-directory-item:nth-child(2n) {
    border-right: 0;
    padding-left: 14px;
  }

  .page-planets .planet-editorial-feature {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.82fr);
  }}

@media (max-width: 820px) {
  .page-adventures .dating-match-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-adventures .introduction-actions {
    justify-content: flex-start;
  }}

@media (max-width: 700px) {
  .page-discover .app-page-head,
  .page-adventures .app-page-head,
  .page-profile .app-page-head,
  .page-planets .app-page-head {
    min-height: 74px;
    padding: 16px 0 14px;
  }

  .page-discover .app-page-head h1,
  .page-adventures .app-page-head h1,
  .page-profile .app-page-head h1,
  .page-planets .app-page-head h1 {
    font-size: 35px;
  }

  .page-discover .discover-page,
  .page-adventures .adventures-page {
    padding-top: 18px;
  }

  .page-discover .discover-practice-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 14px;
  }

  .page-discover .discover-practice-kicker,
  .page-discover .discover-practice-strip p {
    grid-column: 1;
  }

  .page-discover .discover-practice-link {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .page-discover .human-profile-layout {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .page-discover .companion-field-card {
    min-height: clamp(236px, 64vw, 260px);
    padding: 34px 24px;
  }

  .page-discover .theme-lantern-library .companion-field-card {
    background-image: url("/discover/lantern-library-mobile.webp");
  }

  .page-discover .theme-forest-train .companion-field-card {
    background-image: url("/discover/forest-train-mobile.webp");
  }

  .page-discover .theme-moon-garden .companion-field-card {
    background-image: url("/discover/moon-garden-mobile.webp");
  }

  .page-discover .companion-vignette {
    width: 178px;
    min-height: 178px;
    aspect-ratio: 1;
  }

  .page-discover .companion-vignette > .pet-token,
  .page-discover .companion-vignette > .avatar {
    width: 150px;
  }

  .page-discover .companion-vignette > .pet-token.has-art {
    width: 176px;
  }

  .page-discover .companion-vignette > .pet-token:not(.has-art),
  .page-discover .companion-vignette > .avatar {
    width: 132px;
  }

  .page-discover .field-card-caption {
    margin-top: 12px;
  }

  .page-discover .human-profile-main {
    padding: 32px 0 26px;
  }

  .page-discover .human-profile-head {
    padding: 0 0 14px;
  }

  .page-discover .human-profile-person h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .page-profile .profile-page-layout {
    grid-template-columns: 1fr;
  }

  .page-profile .profile-page-editor {
    border-right: 0;
    border-bottom: 1px solid #bfc2b9;
    padding: 26px 0 30px;
  }

  .page-profile .profile-preview {
    padding: 30px 0 10px;
  }

  .page-planets .planet-editorial-feature {
    grid-template-columns: 1fr;
  }}

@media (max-width: 520px) {
  .page-discover .discover-practice-strip {
    gap: 2px 8px;
  }

  .page-discover .discover-practice-strip p {
    max-width: 190px;
  }

  .page-discover .companion-vignette {
    width: 158px;
    min-height: 158px;
  }

  .page-discover .companion-vignette > .pet-token,
  .page-discover .companion-vignette > .avatar {
    width: 136px;
  }

  .page-discover .companion-vignette > .pet-token.has-art {
    width: 156px;
  }

  .page-discover .companion-vignette > .pet-token:not(.has-art),
  .page-discover .companion-vignette > .avatar {
    width: 118px;
  }

  .page-discover .field-card-caption strong {
    font-size: 13px;
  }

  .page-discover .human-profile-person h2 {
    font-size: 42px;
  }

  .page-discover .human-profile-footer {
    flex-wrap: wrap;
  }

  .page-discover .human-profile-footer .dating-choice-row {
    flex: 1;
  }

  .page-discover .human-profile-footer .dating-choice-row button {
    flex: 1;
  }

  .page-planets .planet-directory-list {
    grid-template-columns: 1fr;
  }

  .page-planets .planet-directory-item,
  .page-planets .planet-directory-item:hover,
  .page-planets .planet-directory-item.active,
  .page-planets .planet-directory-item:nth-child(2n) {
    border-right: 0;
    padding: 10px 2px;
  }

  .page-planets .planet-directory-copy i {
    display: none;
  }}

/* Pagination and scalable room index refinement. */

.page-discover .interest-line,
.page-profile .interest-line {
  min-width: 0;
  margin: 0;
  color: #625154;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.page-discover .profile-intent,
.page-profile .profile-intent {
  display: block;
  margin: 10px 0 0;
  overflow: hidden;
  color: #726466;
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-discover .profile-intent span,
.page-profile .profile-intent span {
  margin-right: 8px;
  color: #65454b;
  font-weight: 700;
}

.page-discover .human-profile-person h2 {
  scroll-margin-top: 92px;
}

.page-discover .discover-pagination {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 auto;
  border-bottom: 1px solid #bfc2b9;
  padding: 12px 0;
}

.page-discover .discover-pagination button,
.page-planets .planet-directory-pagination button {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #523439;
  padding: 0;
  font-size: 11px;
  font-weight: 680;
}

.page-discover .discover-pagination button:first-child,
.page-planets .planet-directory-pagination button:first-child {
  justify-self: start;
}

.page-discover .discover-pagination button:last-child,
.page-planets .planet-directory-pagination button:last-child {
  justify-self: end;
}

.page-discover .discover-pagination button:disabled,
.page-planets .planet-directory-pagination button:disabled {
  color: #a59fa0;
  cursor: default;
}

.page-discover .discover-pagination > span,
.page-planets .planet-directory-pagination > span {
  color: #7d7375;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.page-discover .discover-pagination-status {
  min-width: 0;
  text-align: center;
}

.page-profile .profile-editor-head,
.page-profile .profile-preview-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #d1d3cc;
  padding-bottom: 12px;
}

.page-profile .profile-section-label {
  color: #584548;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-profile .profile-editor-head .text-button {
  color: #746769;
  font-size: 11px;
}

.page-profile .profile-preview-identity {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #d1d3cc;
  padding: 0 0 22px;
}

.page-profile .profile-preview-visual,
.page-profile .profile-preview-visual.theme-lantern-library,
.page-profile .profile-preview-visual.theme-forest-train,
.page-profile .profile-preview-visual.theme-moon-garden {
  width: 88px;
  min-height: 0;
  height: 88px;
}

.page-profile .profile-preview-visual > .pet-token,
.page-profile .profile-preview-visual > .avatar {
  width: 84px;
  height: 84px;
}

.page-profile .profile-preview-owner,
.page-profile .profile-preview-body {
  padding: 0;
}

.page-profile .profile-preview-owner h2 {
  margin: 0;
  font-size: clamp(29px, 3.2vw, 38px);
  line-height: 1;
}

.page-profile .profile-preview-owner small {
  display: block;
  margin-top: 7px;
  color: #746769;
  font-size: 11px;
}

.page-profile .profile-preview-body {
  padding-top: 22px;
}

.page-profile .profile-preview-intro {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #4d3c3f;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-profile .profile-preview-published .interest-line {
  margin-top: 14px;
  border-top: 1px solid #d1d3cc;
  padding-top: 12px;
}

.page-profile .profile-preview-empty {
  margin: 0;
  color: #7b827c;
  font-size: 12px;
}

.page-profile .profile-preview-story {
  margin-top: 18px;
}

.page-planets .planet-directory-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d4d5cd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--planet-ink);
  padding: 12px 2px;
  font-size: 12px;
}

.page-planets .planet-directory-search:focus {
  border-bottom-color: #736467;
  outline: 0;
  box-shadow: none;
}

.page-planets .planet-directory-search::placeholder {
  color: #8b918b;
}

.page-planets .planet-directory-empty {
  border-bottom: 1px solid #d4d5cd;
  color: #7b827c;
  padding: 20px 2px;
  font-size: 11px;
}

.page-planets .planet-directory-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--planet-rule);
  padding: 8px 2px;
}

.page-planets .planet-material-visual {
  aspect-ratio: 4 / 3;
}

.page-planets .planet-material-visual img {
  object-fit: cover;
}

@media (max-width: 900px) {
  .page-profile .profile-page-layout {
    grid-template-columns: 1fr;
  }

  .page-profile .profile-page-editor {
    border-right: 0;
    border-bottom: 1px solid #bfc2b9;
    padding: 26px 0 30px;
  }

  .page-profile .profile-preview {
    position: static;
    padding: 30px 0 10px;
  }}

@media (max-width: 520px) {
  .page-discover .discover-pagination,
  .page-planets .planet-directory-pagination {
    padding-block: 8px;
  }

  .page-profile .profile-preview-identity {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
  }

  .page-profile .profile-preview-visual,
  .page-profile .profile-preview-visual.theme-lantern-library,
  .page-profile .profile-preview-visual.theme-forest-train,
  .page-profile .profile-preview-visual.theme-moon-garden {
    width: 70px;
    height: 70px;
  }

  .page-profile .profile-preview-visual > .pet-token,
  .page-profile .profile-preview-visual > .avatar {
    width: 66px;
    height: 66px;
  }}

@media (prefers-reduced-motion: reduce) {
  .page-discover .discover-grid.page-enter-next,
  .page-discover .discover-grid.page-enter-previous {
    animation: none;
  }}

/* Let the paper companions read as characters, not icons inside another badge. */
.adopt-card .pet-token.has-art,
.page-profile .profile-preview-visual > .pet-token.has-art {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.adopt-card .pet-token.has-art .pet-art,
.page-profile .profile-preview-visual > .pet-token.has-art .pet-art {
  filter: drop-shadow(0 5px 4px rgba(45, 30, 31, 0.13));
}

/* Paper-puppet motion: the feet stay planted and the movement includes long rests. */
.pet-token.has-art .pet-art {
  --pet-motion-breath-x: 1.0025;
  --pet-motion-breath-y: 1.007;
  --pet-motion-settle-x: 0.9995;
  --pet-motion-settle-y: 1.002;
  --pet-motion-sway: 0.24deg;
  --pet-motion-return: -0.08deg;
  transform-origin: 50% 96%;
}

.pet-token.pet-fox .pet-art {
  --pet-motion-breath-x: 1.003;
  --pet-motion-breath-y: 1.009;
  --pet-motion-sway: 0.42deg;
  --pet-motion-return: -0.14deg;
}

.pet-token.pet-cat .pet-art {
  --pet-motion-breath-x: 1.002;
  --pet-motion-breath-y: 1.006;
  --pet-motion-sway: -0.28deg;
  --pet-motion-return: 0.1deg;
}

.pet-token.pet-hound .pet-art {
  --pet-motion-breath-x: 1.0025;
  --pet-motion-breath-y: 1.007;
  --pet-motion-sway: 0.18deg;
  --pet-motion-return: -0.06deg;
}

.page-discover .companion-vignette > .pet-token.has-art .pet-art,
.page-profile .profile-preview-visual > .pet-token.has-art .pet-art,
.adopt-card.picked .pet-token.has-art .pet-art {
  animation: paper-companion-rest var(--pet-motion-duration, 8.2s) cubic-bezier(0.37, 0, 0.2, 1) var(--pet-motion-delay, 0s) infinite both;
  will-change: transform;
}

.adopt-card.picked .pet-token.has-art .pet-art {
  animation-delay: 0s;
}

.adopt-card:not(.picked) .pet-token.has-art .pet-art {
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.28, 1);
}

.adopt-card:not(.picked):hover .pet-token.has-art .pet-art,
.adopt-card:not(.picked):focus-visible .pet-token.has-art .pet-art {
  transform: rotate(var(--pet-motion-sway)) scale(1.012);
}

@keyframes paper-companion-rest {
  0%,
  16%,
  88%,
  100% {
    transform: rotate(0deg) scale(1, 1);
  }

  42% {
    transform: rotate(var(--pet-motion-sway)) scale(var(--pet-motion-breath-x), var(--pet-motion-breath-y));
  }

  59% {
    transform: rotate(var(--pet-motion-return)) scale(var(--pet-motion-settle-x), var(--pet-motion-settle-y));
  }

  72% {
    transform: rotate(0.04deg) scale(1.0005, 1.003);
  }}

@media (prefers-reduced-motion: reduce) {
  .page-discover .companion-vignette > .pet-token.has-art .pet-art,
  .page-profile .profile-preview-visual > .pet-token.has-art .pet-art,
  .adopt-card .pet-token.has-art .pet-art,
  .adopt-card:not(.picked):hover .pet-token.has-art .pet-art,
  .adopt-card:not(.picked):focus-visible .pet-token.has-art .pet-art {
    animation: none;
    transition: none;
    transform: none;
  }}

/* Material pass: one printed sheet of paper grain over the whole surface. */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.05;
}

/* Keep the adoption action reachable on short viewports: the roster scrolls, the footer stays. */
.adoption-modal .adopt-foot {
  position: sticky;
  bottom: 0;
  margin: 12px -22px -22px;
  padding: 12px 22px 22px;
  background: var(--surface);
  border-top: 1px solid var(--ui-border);
}