:root {
  color-scheme: light dark;
  --hatch-app-bg: light-dark(#e8e5df, #050608);
  --hatch-screen: light-dark(#fbfaf7, #090b0f);
  --hatch-surface: light-dark(#ffffff, #15181e);
  --hatch-raised: light-dark(#f0eee9, #20242c);
  --hatch-text: light-dark(#121419, #f7f7f3);
  --hatch-muted: light-dark(#666b74, #a6adb8);
  --hatch-line: light-dark(rgba(18,20,25,.13), rgba(255,255,255,.14));
  --hatch-frost: light-dark(rgba(255,255,255,.92), rgba(12,14,18,.91));
  --hatch-accent: light-dark(#5939d8, #c4ff4b);
  --hatch-accent-text: light-dark(#ffffff, #111508);
  --hatch-purple: light-dark(#7059d8, #aa91ff);
  --hatch-cyan: light-dark(#0a7d8a, #4bd7e5);
  --hatch-warm: light-dark(#b9572d, #ff9166);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--hatch-app-bg);
  color: var(--hatch-text);
}

body {
  min-height: 100dvh;
  overscroll-behavior: none;
}

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

button { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--hatch-accent);
  outline-offset: 2px;
}

svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#app {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.hatch-app-shell {
  position: relative;
  width: min(100%, 430px);
  height: min(100dvh, 900px);
  min-height: 640px;
  overflow: hidden;
  background: var(--hatch-screen);
  color: var(--hatch-text);
  isolation: isolate;
  box-shadow: 0 30px 80px light-dark(rgba(21,23,28,.24), rgba(0,0,0,.58));
}

.hatch-app-content,
.hatch-watch-column,
.hatch-watch-stage {
  position: absolute;
  inset: 0;
}

.hatch-watch-stage { overflow: hidden; }
.hatch-web-navigation,
.hatch-web-story-panel,
.hatch-web-story-switcher { display: none; }

.hatch-feed,
.hatch-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--hatch-screen);
}

.hatch-story-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, light-dark(rgba(244,216,180,.76), rgba(255,193,122,.66)), transparent 19%),
    linear-gradient(155deg, light-dark(#6f7189, #202c4d), light-dark(#252c3d, #0a101f) 56%, light-dark(#80504f, #47272f));
}

.hatch-visual-violet {
  background:
    radial-gradient(circle at 27% 18%, light-dark(rgba(232,213,255,.70), rgba(203,164,255,.59)), transparent 23%),
    linear-gradient(148deg, light-dark(#9385a9, #3d2856), light-dark(#3a314e, #171122) 58%, light-dark(#786a86, #352a3f));
}

.hatch-visual-coral {
  background:
    radial-gradient(circle at 76% 20%, light-dark(rgba(255,230,153,.78), rgba(255,193,92,.65)), transparent 22%),
    linear-gradient(151deg, light-dark(#ef8c77, #76352f), light-dark(#963e53, #32151d) 53%, light-dark(#334d71, #16233b));
}

.hatch-visual-mars {
  background:
    radial-gradient(circle at 29% 19%, light-dark(rgba(197,255,173,.60), rgba(125,255,153,.42)), transparent 20%),
    linear-gradient(151deg, light-dark(#c47358, #6b2e25), light-dark(#724234, #301b19) 55%, light-dark(#345643, #183228));
}

.hatch-visual-orb {
  position: absolute;
  top: 15%;
  right: 13%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: light-dark(rgba(251,233,200,.86), rgba(255,220,171,.79));
  box-shadow: 0 0 80px light-dark(rgba(255,226,182,.46), rgba(255,185,102,.44));
}

.hatch-visual-violet .hatch-visual-orb {
  background: light-dark(rgba(233,219,255,.84), rgba(213,188,255,.78));
  box-shadow: 0 0 80px light-dark(rgba(188,157,255,.41), rgba(166,116,255,.42));
}

.hatch-visual-coral .hatch-visual-orb {
  background: light-dark(rgba(255,226,150,.85), rgba(255,203,113,.75));
}

.hatch-visual-mars .hatch-visual-orb {
  width: 84px;
  height: 84px;
  background: light-dark(rgba(182,255,169,.76), rgba(108,255,153,.58));
  box-shadow: 0 0 80px light-dark(rgba(139,255,170,.43), rgba(82,255,147,.38));
}

.hatch-visual-world {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 18%;
  height: 38%;
  opacity: .93;
  background:
    linear-gradient(83deg, transparent 0 9%, light-dark(rgba(22,25,32,.93), rgba(3,5,8,.95)) 9% 21%, transparent 21% 34%, light-dark(rgba(22,25,32,.91), rgba(3,5,8,.95)) 34% 49%, transparent 49% 65%, light-dark(rgba(22,25,32,.92), rgba(3,5,8,.95)) 65% 82%, transparent 82%),
    linear-gradient(to top, light-dark(rgba(9,11,16,.98), rgba(1,2,4,.99)), transparent);
  clip-path: polygon(0 100%, 0 47%, 14% 31%, 25% 49%, 38% 19%, 51% 52%, 66% 16%, 80% 43%, 91% 27%, 100% 48%, 100% 100%);
}

.hatch-visual-figure {
  position: absolute;
  z-index: 2;
  left: 24%;
  bottom: 15%;
  width: 31%;
  height: 39%;
  border-radius: 55% 55% 12% 12%;
  background: linear-gradient(120deg, light-dark(#151820, #030405), light-dark(#4c5061, #20232d));
  transform: rotate(-3deg);
  box-shadow: 45px 24px 70px light-dark(rgba(7,9,13,.38), rgba(0,0,0,.62));
}

.hatch-visual-figure::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 21%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: light-dark(#151820, #030405);
}

.hatch-visual-violet .hatch-visual-figure {
  left: 43%;
  transform: rotate(5deg);
}

.hatch-visual-coral .hatch-visual-figure {
  left: 31%;
  width: 38%;
  transform: rotate(1deg);
}

.hatch-visual-mars .hatch-visual-figure {
  left: 55%;
  width: 24%;
  height: 34%;
}

.hatch-visual-caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 49%;
  width: 76%;
  transform: translateX(-50%);
  color: light-dark(rgba(255,255,255,.88), rgba(255,255,255,.88));
  font-size: .78rem;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 10px light-dark(rgba(0,0,0,.72), rgba(0,0,0,.76));
}

.hatch-feed-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, light-dark(rgba(2,4,8,.48), rgba(0,0,0,.54)), transparent 26%, transparent 53%, light-dark(rgba(2,4,8,.87), rgba(0,0,0,.90)) 100%);
  pointer-events: none;
}

.hatch-scene-progress {
  position: absolute;
  z-index: 7;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.hatch-scene-progress button {
  appearance: none;
  flex: 1;
  min-width: 16px;
  height: 24px;
  padding: 11px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hatch-scene-progress span {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 3px;
  background: light-dark(rgba(255,255,255,.31), rgba(255,255,255,.31));
}

.hatch-scene-progress .is-complete span { background: light-dark(rgba(255,255,255,.90), rgba(255,255,255,.90)); }

.hatch-scene-progress .is-current span::after {
  content: "";
  display: block;
  width: 72%;
  height: 100%;
  background: light-dark(rgba(255,255,255,.98), rgba(255,255,255,.98));
  animation: hatch-scene-pulse 8s linear infinite;
}

@keyframes hatch-scene-pulse { from { width: 0; } to { width: 100%; } }

.hatch-feed-header {
  position: absolute;
  z-index: 8;
  top: calc(max(23px, env(safe-area-inset-top)) + 10px);
  left: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: light-dark(#ffffff, #ffffff);
}

.hatch-feed-header > strong {
  font-size: .91rem;
  font-weight: 500;
  letter-spacing: .16em;
}

.hatch-feed-header div { display: flex; gap: 14px; }

.hatch-feed-header button {
  appearance: none;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: light-dark(rgba(255,255,255,.63), rgba(255,255,255,.63));
  font-size: .72rem;
  cursor: pointer;
}

.hatch-feed-header button.is-selected {
  color: light-dark(#ffffff, #ffffff);
  border-color: currentColor;
}

.hatch-reason-link {
  position: absolute;
  z-index: 8;
  top: calc(max(62px, env(safe-area-inset-top)) + 12px);
  right: 14px;
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: light-dark(rgba(255,255,255,.72), rgba(255,255,255,.72));
  font-size: .65rem;
  cursor: pointer;
}

.hatch-entry-context {
  position: absolute;
  z-index: 8;
  top: calc(max(65px, env(safe-area-inset-top)) + 10px);
  left: 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid light-dark(rgba(255,255,255,.20), rgba(255,255,255,.20));
  border-radius: 999px;
  background: light-dark(rgba(6,8,12,.48), rgba(6,8,12,.61));
  color: light-dark(#ffffff, #ffffff);
  font-size: .66rem;
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.hatch-entry-context svg { width: 13px; height: 13px; }

.hatch-story-copy {
  position: absolute;
  z-index: 8;
  left: 15px;
  right: 72px;
  bottom: calc(112px + env(safe-area-inset-bottom));
  color: light-dark(#ffffff, #ffffff);
  text-shadow: 0 2px 14px light-dark(rgba(0,0,0,.66), rgba(0,0,0,.74));
}

.hatch-story-byline {
  margin: 0 0 7px;
  color: light-dark(rgba(255,255,255,.72), rgba(255,255,255,.72));
  font-size: .67rem;
}

.hatch-story-copy h1 {
  max-width: 315px;
  margin: 0 0 7px;
  font-size: clamp(1.7rem, 8vw, 2.15rem);
  line-height: 1.01;
  letter-spacing: -.045em;
  font-weight: 500;
}

.hatch-story-copy > p:not(.hatch-story-byline) {
  margin: 0;
  max-width: 310px;
  color: light-dark(rgba(255,255,255,.86), rgba(255,255,255,.86));
  font-size: .78rem;
  line-height: 1.4;
}

.hatch-story-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.hatch-story-copy-actions button {
  appearance: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid light-dark(rgba(255,255,255,.18), rgba(255,255,255,.18));
  border-radius: 999px;
  background: light-dark(rgba(8,10,14,.54), rgba(8,10,14,.66));
  color: light-dark(#ffffff, #ffffff);
  font-size: .70rem;
  font-weight: 500;
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.hatch-story-copy-actions svg { width: 14px; height: 14px; }

.hatch-social-rail {
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: calc(136px + env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  color: light-dark(#ffffff, #ffffff);
}

.hatch-social-rail > div {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: .57rem;
  text-shadow: 0 2px 8px light-dark(rgba(0,0,0,.72), rgba(0,0,0,.76));
}

.hatch-social-rail button {
  appearance: none;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid light-dark(rgba(255,255,255,.17), rgba(255,255,255,.17));
  border-radius: 50%;
  background: light-dark(rgba(7,9,13,.48), rgba(7,9,13,.61));
  color: light-dark(#ffffff, #ffffff);
  backdrop-filter: blur(15px);
  cursor: pointer;
}

.hatch-social-rail button.is-active {
  background: light-dark(rgba(225,79,107,.79), rgba(244,89,118,.77));
}

.hatch-social-rail svg { width: 20px; height: 20px; }

.hatch-swipe-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: calc(69px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: light-dark(rgba(255,255,255,.44), rgba(255,255,255,.44));
  font-size: .56rem;
  white-space: nowrap;
}

.hatch-bottom-navigation {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(60px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 5px 4px env(safe-area-inset-bottom);
  background: light-dark(rgba(8,10,14,.92), rgba(8,10,14,.94));
  border-top: 1px solid light-dark(rgba(255,255,255,.13), rgba(255,255,255,.13));
  backdrop-filter: blur(24px);
}

.hatch-bottom-navigation button {
  appearance: none;
  min-height: 52px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: light-dark(rgba(255,255,255,.56), rgba(255,255,255,.56));
  font-size: .57rem;
  cursor: pointer;
}

.hatch-bottom-navigation button.is-active { color: light-dark(#ffffff, #ffffff); }

.hatch-nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}

.hatch-nav-icon svg { width: 19px; height: 19px; }

.hatch-bottom-navigation .is-hatch .hatch-nav-icon {
  width: 32px;
  border: 1px solid light-dark(rgba(255,255,255,.31), rgba(255,255,255,.31));
  border-radius: 9px;
  background: light-dark(rgba(255,255,255,.09), rgba(255,255,255,.09));
  color: light-dark(#ffffff, #ffffff);
}

.hatch-page {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(24px + env(safe-area-inset-top)) 17px calc(84px + env(safe-area-inset-bottom));
}

.hatch-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 9px 0 20px;
}

.hatch-page-header p,
.hatch-profile-header p {
  margin: 0 0 4px;
  color: var(--hatch-muted);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hatch-page-header h1,
.hatch-profile-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 500;
}

.hatch-page-header > span {
  color: var(--hatch-muted);
  font-size: .70rem;
}

.hatch-world-list,
.hatch-activity-list { display: grid; gap: 9px; }

.hatch-world-row,
.hatch-activity-list > button {
  appearance: none;
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--hatch-line);
  border-radius: 18px;
  background: var(--hatch-surface);
  color: var(--hatch-text);
  text-align: left;
  cursor: pointer;
}

.hatch-world-art {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--hatch-purple), light-dark(#332850, #241d3b));
}

.hatch-world-art.hatch-visual-violet { background: linear-gradient(145deg, var(--hatch-purple), light-dark(#48365c, #2e223b)); }
.hatch-world-art.hatch-visual-coral { background: linear-gradient(145deg, var(--hatch-warm), light-dark(#704131, #45261f)); }
.hatch-world-art.hatch-visual-mars { background: linear-gradient(145deg, var(--hatch-cyan), light-dark(#395342, #1d3326)); }

.hatch-world-row > span:nth-child(2),
.hatch-activity-list > button > span:nth-child(2) { min-width: 0; }

.hatch-world-row strong,
.hatch-world-row small,
.hatch-activity-list strong,
.hatch-activity-list small {
  display: block;
}

.hatch-world-row strong,
.hatch-activity-list strong {
  margin-bottom: 4px;
  font-size: .82rem;
  font-weight: 500;
}

.hatch-world-row small,
.hatch-activity-list small {
  color: var(--hatch-muted);
  font-size: .66rem;
  line-height: 1.35;
}

.hatch-world-row > svg { color: var(--hatch-muted); }

.hatch-page-intro {
  margin: -6px 0 18px;
  color: var(--hatch-muted);
  font-size: .80rem;
  line-height: 1.5;
}

.hatch-create-form,
.hatch-shape-form { display: grid; gap: 15px; }

.hatch-create-form > label,
.hatch-shape-form > label,
.hatch-form-pair label {
  display: grid;
  gap: 7px;
  color: var(--hatch-text);
  font-size: .72rem;
  font-weight: 500;
}

.hatch-create-form input,
.hatch-create-form textarea,
.hatch-create-form select,
.hatch-shape-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hatch-line);
  border-radius: 15px;
  padding: 12px;
  background: var(--hatch-raised);
  color: var(--hatch-text);
  font-size: 16px;
  line-height: 1.4;
}

.hatch-create-form textarea,
.hatch-shape-form textarea {
  min-height: 92px;
  resize: vertical;
}

.hatch-form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.hatch-create-form fieldset,
.hatch-shape-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.hatch-create-form legend,
.hatch-shape-form legend {
  margin-bottom: 7px;
  font-size: .72rem;
  font-weight: 500;
}

.hatch-radio {
  position: relative;
  display: block;
  cursor: pointer;
}

.hatch-radio input {
  position: absolute;
  opacity: 0;
}

.hatch-radio span {
  display: block;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid var(--hatch-line);
  border-radius: 16px;
  background: var(--hatch-surface);
}

.hatch-radio input:checked + span {
  border-color: var(--hatch-accent);
  box-shadow: inset 0 0 0 1px var(--hatch-accent);
}

.hatch-radio strong,
.hatch-radio small { display: block; }

.hatch-radio strong { font-size: .76rem; font-weight: 500; }
.hatch-radio small { margin-top: 3px; color: var(--hatch-muted); font-size: .66rem; }

.hatch-main-action,
.hatch-sub-action,
.hatch-reset-action {
  appearance: none;
  min-height: 50px;
  border-radius: 16px;
  padding: 0 16px;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
}

.hatch-main-action {
  border: 0;
  background: var(--hatch-accent);
  color: var(--hatch-accent-text);
}

.hatch-main-action svg { vertical-align: -3px; }

.hatch-sub-action,
.hatch-reset-action {
  border: 1px solid var(--hatch-line);
  background: var(--hatch-raised);
  color: var(--hatch-text);
}

.hatch-activity-list > button {
  grid-template-columns: 48px 1fr;
  min-height: 73px;
}

.hatch-activity-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: light-dark(rgba(112,89,216,.12), rgba(170,145,255,.13));
  color: var(--hatch-purple);
}

.hatch-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 19px;
}

.hatch-profile-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hatch-accent);
  color: var(--hatch-accent-text);
  font-size: 1.1rem;
  font-weight: 500;
}

.hatch-earnings-summary {
  padding: 17px;
  border-radius: 22px;
  background: var(--hatch-raised);
}

.hatch-earnings-summary p,
.hatch-earnings-summary span { margin: 0; color: var(--hatch-muted); font-size: .68rem; }

.hatch-earnings-summary strong {
  display: block;
  margin: 7px 0;
  font-size: 2rem;
  letter-spacing: -.04em;
  font-weight: 500;
}

.hatch-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 20px;
}

.hatch-profile-stats div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--hatch-line);
  border-radius: 17px;
  background: var(--hatch-surface);
}

.hatch-profile-stats strong { font-size: 1rem; font-weight: 500; }
.hatch-profile-stats span { color: var(--hatch-muted); font-size: .60rem; line-height: 1.3; }

.hatch-earning-list h2 {
  margin: 0 0 10px;
  font-size: .85rem;
  font-weight: 500;
}

.hatch-earning-list > div {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--hatch-line);
}

.hatch-earning-list strong,
.hatch-earning-list small { display: block; }
.hatch-earning-list strong { font-size: .76rem; font-weight: 500; }
.hatch-earning-list small { margin-top: 3px; color: var(--hatch-muted); font-size: .60rem; }
.hatch-earning-list b { font-size: .75rem; font-weight: 500; }

.hatch-reset-action {
  width: 100%;
  margin-top: 22px;
}

.hatch-reset-action svg { vertical-align: -3px; }

.hatch-modal-backdrop {
  position: absolute;
  z-index: 30;
  inset: 0;
  background: light-dark(rgba(10,11,14,.42), rgba(0,0,0,.58));
  backdrop-filter: blur(3px);
}

.hatch-sheet {
  position: absolute;
  z-index: 35;
  left: 7px;
  right: 7px;
  bottom: 7px;
  max-height: calc(100% - 55px);
  overflow-y: auto;
  padding: 11px 15px calc(17px + env(safe-area-inset-bottom));
  border: 1px solid var(--hatch-line);
  border-radius: 28px 28px 32px 32px;
  background: var(--hatch-frost);
  color: var(--hatch-text);
  box-shadow: 0 -20px 60px light-dark(rgba(19,21,27,.20), rgba(0,0,0,.48));
  backdrop-filter: blur(24px);
}

.hatch-sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 4px;
  background: var(--hatch-line);
}

.hatch-sheet > header,
.hatch-full-modal > header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.hatch-sheet > header h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.035em;
  font-weight: 500;
}

.hatch-sheet > header button,
.hatch-full-modal > header button {
  appearance: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hatch-line);
  border-radius: 50%;
  background: var(--hatch-raised);
  color: var(--hatch-text);
  cursor: pointer;
}

.hatch-sheet-intro,
.hatch-fine-print {
  margin: 8px 0 13px;
  color: var(--hatch-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.hatch-context-heading { margin: 10px 0 17px; }
.hatch-context-heading p,
.hatch-path-header p,
.hatch-shape-heading p,
.hatch-review-copy p { margin: 0 0 4px; color: var(--hatch-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.hatch-context-heading h2,
.hatch-path-header h2,
.hatch-shape-heading h2,
.hatch-review-copy h2 { margin: 0; font-size: 1.55rem; line-height: 1.06; letter-spacing: -.035em; font-weight: 500; }
.hatch-context-heading > span,
.hatch-path-header > span { display: block; margin-top: 7px; color: var(--hatch-muted); font-size: .66rem; }

.hatch-context-section {
  padding: 13px 0;
  border-top: 1px solid var(--hatch-line);
}

.hatch-context-section h3,
.hatch-context-section strong {
  display: block;
  margin: 0 0 5px;
  font-size: .72rem;
  font-weight: 500;
}

.hatch-context-section p,
.hatch-context-section li { color: var(--hatch-muted); font-size: .70rem; line-height: 1.45; }
.hatch-context-section p { margin: 0 0 12px; }
.hatch-context-section ul { margin: 0; padding-left: 18px; }

.hatch-comments { display: grid; gap: 14px; margin: 15px 0; }
.hatch-comments > div { display: grid; grid-template-columns: 35px 1fr; gap: 9px; align-items: start; }
.hatch-comments > div > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--hatch-raised); color: var(--hatch-muted); font-size: .68rem; }
.hatch-comments p { margin: 0; color: var(--hatch-muted); font-size: .70rem; line-height: 1.45; }
.hatch-comments strong { display: block; margin-bottom: 2px; color: var(--hatch-text); font-size: .69rem; font-weight: 500; }

.hatch-comment-box { display: grid; gap: 7px; color: var(--hatch-muted); font-size: .68rem; }
.hatch-comment-box input { min-height: 47px; border: 1px solid var(--hatch-line); border-radius: 16px; padding: 0 12px; background: var(--hatch-raised); color: var(--hatch-text); font-size: 16px; }

.hatch-reason-list { display: grid; gap: 8px; margin: 14px 0; }
.hatch-reason-list > div { min-height: 55px; display: grid; grid-template-columns: 31px 1fr; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 15px; background: var(--hatch-raised); }
.hatch-reason-list span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: light-dark(rgba(10,125,138,.12), rgba(75,215,229,.12)); color: var(--hatch-cyan); font-size: .65rem; }
.hatch-reason-list p { margin: 0; font-size: .72rem; line-height: 1.35; }

.hatch-tune-actions { display: grid; gap: 7px; }
.hatch-tune-actions button,
.hatch-choice-list button,
.hatch-own-direction,
.hatch-branch-list button {
  appearance: none;
  min-height: 48px;
  border: 1px solid var(--hatch-line);
  border-radius: 15px;
  background: var(--hatch-surface);
  color: var(--hatch-text);
  font-size: .72rem;
  text-align: left;
  cursor: pointer;
}

.hatch-tune-actions button { padding: 0 12px; }

.hatch-choice-list { display: grid; gap: 8px; }
.hatch-choice-list button { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; }
.hatch-choice-list i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--hatch-raised); color: var(--hatch-muted); font-size: .62rem; font-style: normal; }
.hatch-choice-list span { line-height: 1.35; }
.hatch-choice-list svg { color: var(--hatch-muted); }
.hatch-own-direction { width: 100%; margin-top: 8px; padding: 0 12px; border-style: dashed; background: transparent; }

.hatch-full-modal {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--hatch-screen);
  color: var(--hatch-text);
}

.hatch-full-modal > header {
  grid-template-columns: 44px 1fr 44px;
  min-height: calc(59px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  border-bottom: 1px solid var(--hatch-line);
}

.hatch-full-modal > header strong { text-align: center; font-size: .75rem; font-weight: 500; }
.hatch-full-modal-content { overflow-y: auto; padding: 17px 16px calc(22px + env(safe-area-inset-bottom)); }

.hatch-lineage-list {
  position: relative;
  display: grid;
  gap: 9px;
  margin: 21px 0;
  padding-left: 20px;
}

.hatch-lineage-list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--hatch-line);
}

.hatch-lineage-list button {
  appearance: none;
  position: relative;
  min-height: 60px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--hatch-raised);
  color: var(--hatch-text);
  text-align: left;
  cursor: pointer;
}

.hatch-lineage-list button::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hatch-muted);
  box-shadow: 0 0 0 4px var(--hatch-screen);
}

.hatch-lineage-list button.is-current { border-color: var(--hatch-accent); }
.hatch-lineage-list button.is-current::before { background: var(--hatch-accent); }
.hatch-lineage-list i { color: var(--hatch-muted); font-size: .64rem; font-style: normal; }
.hatch-lineage-list strong,
.hatch-lineage-list small,
.hatch-branch-list strong,
.hatch-branch-list small { display: block; }
.hatch-lineage-list strong,
.hatch-branch-list strong { font-size: .72rem; font-weight: 500; }
.hatch-lineage-list small,
.hatch-branch-list small { margin-top: 3px; color: var(--hatch-muted); font-size: .62rem; }

.hatch-section-title { margin: 0 0 9px; font-size: .75rem; font-weight: 500; }
.hatch-branch-list { display: grid; gap: 8px; margin-bottom: 17px; }
.hatch-branch-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 9px 11px; }
.hatch-branch-list button.is-current { border-color: var(--hatch-accent); }

.hatch-shape-heading { margin-bottom: 17px; }
.hatch-chip-options { display: flex; flex-wrap: wrap; gap: 7px; }
.hatch-chip-options label { position: relative; cursor: pointer; }
.hatch-chip-options input { position: absolute; opacity: 0; }
.hatch-chip-options span { min-height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--hatch-line); border-radius: 999px; color: var(--hatch-muted); font-size: .68rem; }
.hatch-chip-options input:checked + span { border-color: var(--hatch-accent); background: var(--hatch-text); color: var(--hatch-screen); }

.hatch-preserve-box {
  padding: 12px;
  border-radius: 17px;
  background: var(--hatch-raised);
}

.hatch-preserve-box > strong { display: block; margin-bottom: 8px; font-size: .70rem; font-weight: 500; }
.hatch-preserve-box > div { display: flex; flex-wrap: wrap; gap: 6px; }
.hatch-preserve-box span { padding: 5px 8px; border-radius: 999px; background: var(--hatch-surface); color: var(--hatch-muted); font-size: .58rem; }

.hatch-cost-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--hatch-line); border-bottom: 1px solid var(--hatch-line); font-size: .71rem; }
.hatch-cost-row span { display: flex; align-items: center; gap: 7px; color: var(--hatch-muted); }
.hatch-cost-row strong { font-weight: 500; }

.hatch-generation-state {
  min-height: 72vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hatch-generation-orb {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hatch-accent);
  color: var(--hatch-accent-text);
  animation: hatch-breathe 1.8s ease-in-out infinite;
}

.hatch-generation-orb svg { width: 29px; height: 29px; }
.hatch-generation-state p { margin: 17px 0 6px; color: var(--hatch-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.hatch-generation-state h2 { max-width: 290px; margin: 0; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.hatch-generation-state small { max-width: 260px; color: var(--hatch-muted); font-size: .64rem; line-height: 1.4; }
.hatch-generation-track { width: min(100%, 280px); height: 4px; margin: 23px 0 14px; overflow: hidden; border-radius: 5px; background: var(--hatch-raised); }
.hatch-generation-track span { display: block; width: 43%; height: 100%; background: var(--hatch-accent); animation: hatch-progress 1.2s ease-in-out infinite alternate; }

@keyframes hatch-breathe { 50% { transform: scale(.92); opacity: .78; } }
@keyframes hatch-progress { from { transform: translateX(-80%); } to { transform: translateX(210%); } }

.hatch-review-visual {
  position: relative;
  height: 41vh;
  max-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(155deg, light-dark(#75788f, #202b4a), light-dark(#272d3c, #0a0f1d) 57%, light-dark(#7f504e, #46262e));
}

.hatch-review-visual.hatch-visual-violet { background: linear-gradient(150deg, light-dark(#9a8aaa, #412c59), light-dark(#41354f, #17101f)); }
.hatch-review-visual.hatch-visual-coral { background: linear-gradient(150deg, light-dark(#e58a74, #74352f), light-dark(#833a4c, #32141c)); }
.hatch-review-visual.hatch-visual-mars { background: linear-gradient(150deg, light-dark(#bd7256, #653027), light-dark(#604033, #241b18) 55%, light-dark(#3d674e, #173326)); }

.hatch-review-visual::before {
  content: "";
  position: absolute;
  left: 35%;
  bottom: -8%;
  width: 30%;
  height: 69%;
  border-radius: 50% 50% 12% 12%;
  background: light-dark(#171a21, #040506);
}

.hatch-review-visual button {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: light-dark(rgba(255,255,255,.88), rgba(255,255,255,.88));
  color: light-dark(#15171c, #15171c);
  cursor: pointer;
}

.hatch-review-visual span {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  background: light-dark(rgba(7,9,13,.60), rgba(7,9,13,.70));
  color: light-dark(#ffffff, #ffffff);
  font-size: .58rem;
}

.hatch-review-copy { margin: 15px 0; }
.hatch-review-copy > span { display: block; margin-top: 7px; color: var(--hatch-muted); font-size: .72rem; line-height: 1.45; }
.hatch-review-inheritance { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.hatch-review-inheritance span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 999px; background: var(--hatch-raised); color: var(--hatch-muted); font-size: .58rem; }
.hatch-review-inheritance svg { width: 13px; height: 13px; }
.hatch-full-modal-content > .hatch-main-action,
.hatch-full-modal-content > .hatch-sub-action { width: 100%; margin-top: 8px; }

.hatch-toast {
  position: absolute;
  z-index: 70;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom));
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--hatch-text);
  color: var(--hatch-screen);
  font-size: .68rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.hatch-toast:not(:empty) { opacity: 1; }

.hatch-empty-state {
  min-height: 75vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.hatch-empty-state > svg { width: 38px; height: 38px; color: var(--hatch-muted); }
.hatch-empty-state h1 { margin: 14px 0 5px; font-size: 1.45rem; font-weight: 500; }
.hatch-empty-state p { margin: 0 0 16px; color: var(--hatch-muted); font-size: .75rem; }

@media (min-width: 560px) {
  body { padding: 18px; }
  .hatch-app-shell { border: 8px solid light-dark(#23252b, #202328); border-radius: 42px; }
  .hatch-bottom-navigation { border-radius: 0 0 33px 33px; }
}

@media (min-width: 900px) {
  body {
    min-width: 900px;
    padding: 0;
    overflow: hidden;
  }

  #app { display: block; }

  .hatch-app-shell {
    width: 100%;
    height: 100dvh;
    min-height: 620px;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hatch-app-content {
    position: relative;
    inset: auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 36% 14%, light-dark(rgba(112,89,216,.09), rgba(170,145,255,.07)), transparent 31%),
      var(--hatch-screen);
  }

  .hatch-web-navigation {
    position: relative;
    z-index: 10;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 18px;
    border-right: 1px solid var(--hatch-line);
    background: light-dark(#f5f3ee, #0d0f13);
  }

  .hatch-web-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 28px;
  }

  .hatch-web-brand img {
    width: 35px;
    height: 35px;
  }

  .hatch-web-brand span,
  .hatch-web-profile-chip > span:nth-child(2) { min-width: 0; }
  .hatch-web-brand strong,
  .hatch-web-brand small,
  .hatch-web-profile-chip strong,
  .hatch-web-profile-chip small { display: block; }
  .hatch-web-brand strong { font-size: 1rem; font-weight: 650; letter-spacing: -.025em; }
  .hatch-web-brand small,
  .hatch-web-profile-chip small { margin-top: 2px; color: var(--hatch-muted); font-size: .66rem; }

  .hatch-web-nav-label {
    margin: 0 10px 8px;
    color: var(--hatch-muted);
    font-size: .62rem;
    font-weight: 650;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .hatch-web-navigation nav { display: grid; gap: 4px; }

  .hatch-web-navigation nav button,
  .hatch-web-create,
  .hatch-web-profile-chip {
    appearance: none;
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--hatch-muted);
    font-size: .78rem;
    text-align: left;
    cursor: pointer;
  }

  .hatch-web-navigation nav button:hover,
  .hatch-web-profile-chip:hover { background: var(--hatch-raised); color: var(--hatch-text); }
  .hatch-web-navigation nav button.is-active { background: var(--hatch-raised); color: var(--hatch-text); }
  .hatch-web-navigation nav button.is-active svg { color: var(--hatch-accent); }
  .hatch-web-navigation nav button > svg { width: 19px; height: 19px; }
  .hatch-web-navigation nav button i {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: var(--hatch-accent);
    color: var(--hatch-accent-text);
    font-size: .58rem;
    font-style: normal;
  }

  .hatch-web-create {
    justify-content: center;
    margin-top: 18px;
    border: 1px solid light-dark(rgba(89,57,216,.28), rgba(196,255,75,.26));
    background: var(--hatch-accent);
    color: var(--hatch-accent-text);
    font-weight: 650;
  }

  .hatch-web-create svg { width: 18px; height: 18px; }
  .hatch-web-nav-spacer { flex: 1; }

  .hatch-web-credit-card {
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid var(--hatch-line);
    border-radius: 16px;
    background: var(--hatch-surface);
  }

  .hatch-web-credit-card span,
  .hatch-web-credit-card small { display: block; color: var(--hatch-muted); font-size: .61rem; }
  .hatch-web-credit-card span { display: flex; align-items: center; gap: 6px; }
  .hatch-web-credit-card span svg { width: 14px; height: 14px; color: var(--hatch-accent); }
  .hatch-web-credit-card strong { display: block; margin: 8px 0 3px; font-size: 1.55rem; font-weight: 550; letter-spacing: -.04em; }

  .hatch-web-profile-chip {
    min-height: 54px;
    padding: 6px 8px;
    color: var(--hatch-text);
  }

  .hatch-web-profile-chip > svg { width: 15px; height: 15px; margin-left: auto; color: var(--hatch-muted); }
  .hatch-web-profile-chip strong { overflow: hidden; font-size: .72rem; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
  .hatch-web-avatar {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--hatch-purple);
    color: #fff;
    font-size: .72rem;
  }

  .hatch-bottom-navigation { display: none; }

  .hatch-feed {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(430px, 1fr) minmax(300px, 360px);
    gap: clamp(18px, 2.2vw, 34px);
    padding: 22px clamp(20px, 2.6vw, 38px);
    overflow: auto;
    background: transparent;
  }

  .hatch-watch-column {
    position: relative;
    inset: auto;
    min-width: 0;
    min-height: 620px;
    display: grid;
    place-items: center;
  }

  .hatch-watch-stage {
    position: relative;
    inset: auto;
    width: min(100%, 600px);
    height: calc(100dvh - 44px);
    min-height: 620px;
    max-height: 900px;
    overflow: hidden;
    border: 1px solid light-dark(rgba(18,20,25,.14), rgba(255,255,255,.15));
    border-radius: 24px;
    background: #080a0e;
    box-shadow: 0 22px 70px light-dark(rgba(20,23,31,.20), rgba(0,0,0,.48));
  }

  .hatch-feed-header strong { display: block; }
  .hatch-swipe-hint { display: none; }

  .hatch-web-story-switcher {
    position: absolute;
    z-index: 8;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    pointer-events: none;
  }

  .hatch-web-story-switcher button {
    appearance: none;
    min-height: 37px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(7,9,13,.68);
    color: rgba(255,255,255,.78);
    font-size: .62rem;
    backdrop-filter: blur(14px);
    cursor: pointer;
    pointer-events: auto;
  }

  .hatch-web-story-switcher button:last-child { justify-self: end; }
  .hatch-web-story-switcher > span { color: rgba(255,255,255,.58); font-size: .58rem; }
  .hatch-web-story-switcher svg { width: 14px; height: 14px; }

  .hatch-web-story-panel {
    min-height: 0;
    display: block;
    align-self: center;
    max-height: calc(100dvh - 44px);
    overflow-y: auto;
    padding: 4px 4px 24px;
    scrollbar-width: thin;
  }

  .hatch-web-story-panel > header { padding: 4px 2px 17px; }
  .hatch-web-story-panel > header p,
  .hatch-web-context-card > p,
  .hatch-web-scene-map > div > p,
  .hatch-web-up-next > p {
    margin: 0 0 6px;
    color: var(--hatch-muted);
    font-size: .61rem;
    font-weight: 650;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .hatch-web-story-panel > header h2 { margin: 0; font-size: clamp(1.65rem, 2.2vw, 2.5rem); font-weight: 520; letter-spacing: -.05em; }
  .hatch-web-story-panel > header span { display: block; margin-top: 8px; color: var(--hatch-muted); font-size: .73rem; line-height: 1.45; }
  .hatch-web-story-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--hatch-muted); font-size: .62rem; }

  .hatch-web-context-card {
    padding: 16px;
    border: 1px solid var(--hatch-line);
    border-radius: 18px;
    background: var(--hatch-surface);
  }

  .hatch-web-context-card strong { display: block; font-size: .75rem; line-height: 1.45; font-weight: 520; }
  .hatch-web-context-card button,
  .hatch-web-scene-map > div button {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    margin-top: 9px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--hatch-accent);
    font-size: .64rem;
    cursor: pointer;
  }

  .hatch-web-context-card button svg { width: 13px; height: 13px; }
  .hatch-web-scene-map,
  .hatch-web-up-next { margin-top: 19px; }
  .hatch-web-scene-map > div { display: flex; align-items: center; justify-content: space-between; }
  .hatch-web-scene-map > div button { margin: 0; color: var(--hatch-muted); }

  .hatch-web-scene-map > button,
  .hatch-web-up-next > button {
    appearance: none;
    width: 100%;
    min-height: 53px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border: 0;
    border-top: 1px solid var(--hatch-line);
    background: transparent;
    color: var(--hatch-text);
    text-align: left;
    cursor: pointer;
  }

  .hatch-web-scene-map > button i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hatch-line);
    border-radius: 50%;
    color: var(--hatch-muted);
    font-size: .56rem;
    font-style: normal;
  }

  .hatch-web-scene-map > button.is-current i { border-color: var(--hatch-accent); background: var(--hatch-accent); color: var(--hatch-accent-text); }
  .hatch-web-scene-map strong,
  .hatch-web-scene-map small,
  .hatch-web-up-next strong,
  .hatch-web-up-next small { display: block; }
  .hatch-web-scene-map strong,
  .hatch-web-up-next strong { font-size: .69rem; font-weight: 540; }
  .hatch-web-scene-map small,
  .hatch-web-up-next small { margin-top: 3px; overflow: hidden; color: var(--hatch-muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }

  .hatch-web-up-next > button { grid-template-columns: 46px 1fr auto; min-height: 60px; }
  .hatch-web-up-next .hatch-world-art { width: 43px; height: 43px; border-radius: 11px; }
  .hatch-web-up-next > button > svg { width: 14px; height: 14px; color: var(--hatch-muted); }

  .hatch-page {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    padding: clamp(34px, 5vw, 70px) clamp(36px, 6vw, 88px);
    background: transparent;
  }

  .hatch-page-header { align-items: center; max-width: 1180px; margin: 0 auto 30px; }
  .hatch-page-header h1,
  .hatch-profile-header h1 { font-size: clamp(2.5rem, 4vw, 4.4rem); font-weight: 500; }
  .hatch-page-intro { max-width: 720px; margin: -14px auto 28px; font-size: .9rem; }
  .hatch-world-list { max-width: 1180px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 auto; }
  .hatch-world-row { min-height: 128px; grid-template-columns: 92px 1fr auto; padding: 14px; border-radius: 22px; }
  .hatch-world-row:hover { transform: translateY(-2px); border-color: light-dark(rgba(89,57,216,.35), rgba(196,255,75,.28)); }
  .hatch-world-row .hatch-world-art { width: 88px; height: 88px; border-radius: 18px; }
  .hatch-world-row strong { font-size: .95rem; }
  .hatch-world-row small { font-size: .7rem; }

  .hatch-create-form {
    max-width: 1020px;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 20px 24px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--hatch-line);
    border-radius: 26px;
    background: var(--hatch-surface);
  }

  .hatch-create-form > label:nth-child(1),
  .hatch-create-form > label:nth-child(2) { grid-column: 1; }
  .hatch-create-form .hatch-form-pair,
  .hatch-create-form > label:nth-child(4),
  .hatch-create-form fieldset { grid-column: 2; }
  .hatch-create-form .hatch-form-pair { grid-row: 1; }
  .hatch-create-form > label:nth-child(4) { grid-row: 2; }
  .hatch-create-form fieldset { grid-row: 3; }
  .hatch-create-form > .hatch-main-action { grid-column: 1 / -1; width: 240px; justify-self: end; }
  .hatch-create-form input,
  .hatch-create-form textarea,
  .hatch-create-form select { font-size: .82rem; }

  .hatch-activity-list { max-width: 1050px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 auto; }
  .hatch-activity-list > button { min-height: 92px; padding: 14px; }

  .hatch-profile-page { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); grid-template-rows: auto auto 1fr; gap: 14px 34px; align-content: start; }
  .hatch-profile-header { grid-column: 1 / -1; margin: 0 0 18px; }
  .hatch-profile-avatar { width: 72px; height: 72px; font-size: 1.35rem; }
  .hatch-earnings-summary { grid-column: 1; grid-row: 2; min-height: 168px; padding: 24px; }
  .hatch-profile-stats { grid-column: 1; grid-row: 3; margin: 0; }
  .hatch-earning-list { grid-column: 2; grid-row: 2 / span 2; padding: 22px; border: 1px solid var(--hatch-line); border-radius: 22px; background: var(--hatch-surface); }
  .hatch-reset-action { grid-column: 1; width: auto; }

  .hatch-modal-backdrop { position: fixed; }
  .hatch-sheet {
    position: fixed;
    left: auto;
    right: 18px;
    top: 18px;
    bottom: 18px;
    width: min(430px, calc(100vw - 270px));
    max-height: none;
    padding: 18px 20px;
    border-radius: 24px;
  }

  .hatch-sheet-handle { display: none; }
  .hatch-full-modal {
    position: fixed;
    inset: 5vh max(4vw, calc((100vw - 980px) / 2));
    overflow: hidden;
    border: 1px solid var(--hatch-line);
    border-radius: 26px;
    box-shadow: 0 28px 90px rgba(0,0,0,.55);
  }

  .hatch-full-modal-content { padding: 24px clamp(24px, 5vw, 62px); }
  .hatch-toast { position: fixed; bottom: 24px; }
}

@media (min-width: 1280px) {
  .hatch-app-shell { grid-template-columns: 244px minmax(0, 1fr); }
  .hatch-feed { grid-template-columns: minmax(520px, 1fr) minmax(330px, 390px); }
  .hatch-world-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) and (max-width: 999px) {
  .hatch-app-shell { grid-template-columns: 204px minmax(0, 1fr); }
  .hatch-feed { grid-template-columns: minmax(0, 1fr); }
  .hatch-web-story-panel { display: none; }
  .hatch-watch-stage { width: min(100%, 650px); }
}

@media (max-width: 359px) {
  .hatch-story-copy { right: 65px; }
  .hatch-story-copy h1 { font-size: 1.55rem; }
  .hatch-story-copy > p:not(.hatch-story-byline) { font-size: .72rem; }
  .hatch-social-rail button { width: 42px; height: 42px; }
  .hatch-form-pair { grid-template-columns: 1fr; }
  .hatch-profile-stats { grid-template-columns: 1fr 1fr; }
}

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

/* Hosted public beta ------------------------------------------------------ */
.live-shell {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 14% 4%, color-mix(in srgb, var(--hatch-purple) 18%, transparent), transparent 28rem),
    var(--hatch-screen);
}

.live-shell button { color: inherit; cursor: pointer; }
.live-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--hatch-line);
  background: color-mix(in srgb, var(--hatch-screen) 88%, transparent);
  backdrop-filter: blur(22px);
}

.live-brand,
.live-account-chip,
.live-header nav button,
.live-footer button {
  border: 0;
  background: none;
}

.live-brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 0; text-align: left; }
.live-brand img { width: 34px; height: 34px; }
.live-brand span { display: grid; gap: 1px; }
.live-brand strong { font-size: .95rem; letter-spacing: -.03em; }
.live-brand small { color: var(--hatch-muted); font-size: .62rem; }
.live-header nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--hatch-line); border-radius: 999px; background: var(--hatch-surface); }
.live-header nav button { min-height: 36px; padding: 0 18px; border-radius: 999px; color: var(--hatch-muted); font-size: .75rem; }
.live-header nav button.is-current { background: var(--hatch-raised); color: var(--hatch-text); }
.live-account-chip { justify-self: end; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 9px; padding: 7px 12px 7px 8px; border: 1px solid var(--hatch-line); border-radius: 999px; background: var(--hatch-surface); }
.live-account-chip > span { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hatch-accent); color: var(--hatch-accent-text); font-size: .65rem; font-weight: 800; }
.live-account-chip b { font-size: .68rem; font-weight: 650; }
.live-account-chip i { color: var(--hatch-muted); font-size: .57rem; font-style: normal; }

.live-main { width: 100%; min-height: 0; }
.live-watch-layout {
  width: min(1380px, 100%);
  min-height: calc(100dvh - 124px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(18px, 3vw, 42px) clamp(18px, 4vw, 64px);
}

.live-stage {
  position: relative;
  min-height: min(76dvh, 840px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hatch-line) 80%, transparent);
  border-radius: 30px;
  background: #10141d;
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
}
.live-scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-scene-placeholder { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(145deg, #171d2a, #301b3f 58%, #0b2631); }
.live-scene-placeholder span { position: absolute; width: 42%; aspect-ratio: 1; left: 12%; top: 11%; border-radius: 50%; filter: blur(3px); background: radial-gradient(circle at 38% 35%, #d4ff75, #8b5cff 42%, transparent 68%); opacity: .76; }
.live-scene-placeholder i { position: absolute; width: 32%; height: 65%; right: 12%; bottom: -10%; border-radius: 48% 48% 10% 10%; transform: rotate(7deg); background: linear-gradient(#171a25, #040508); box-shadow: 0 0 70px rgba(196,255,75,.18); }
.live-stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,5,9,.50), transparent 30%, transparent 46%, rgba(4,5,9,.93)); }
.live-stage-top { position: absolute; inset: 24px 26px auto; display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: .6rem; letter-spacing: .12em; }
.live-stage-top b { font-weight: 550; letter-spacing: .04em; }
.live-story-copy { position: absolute; z-index: 2; left: clamp(24px, 5vw, 68px); right: clamp(24px, 8vw, 92px); bottom: clamp(28px, 6vw, 70px); color: #fff; }
.live-story-copy > p { margin: 0 0 10px; color: rgba(255,255,255,.63); font-size: .66rem; }
.live-story-copy h1 { max-width: 780px; margin: 0; font-size: clamp(2.3rem, 6vw, 5.8rem); line-height: .91; letter-spacing: -.065em; font-weight: 520; }
.live-story-copy > span { display: block; max-width: 680px; margin: 18px 0 25px; color: rgba(255,255,255,.78); font-size: clamp(.86rem, 1.3vw, 1.05rem); line-height: 1.55; }
.live-story-copy > div { display: flex; flex-wrap: wrap; gap: 8px; }
.live-primary,
.live-secondary,
.live-text-action {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .75rem;
}
.live-primary { padding: 0 22px; border: 0; background: var(--hatch-accent); color: var(--hatch-accent-text) !important; }
.live-secondary { padding: 0 18px; border: 1px solid rgba(255,255,255,.22); background: rgba(10,12,16,.43); color: #fff !important; backdrop-filter: blur(12px); }
.live-primary:disabled,
.live-secondary:disabled { cursor: default; opacity: .44; }
.live-text-action { padding: 0 12px; border: 0; background: none; color: var(--hatch-muted) !important; }

.live-context { align-self: center; display: grid; gap: 18px; padding: clamp(10px, 2vw, 28px); }
.live-context > p,
.live-page > header > p,
.live-access-layout > header > p,
.live-legal > p,
.live-empty > p { margin: 0; color: var(--hatch-accent); font-size: .65rem; text-transform: uppercase; letter-spacing: .13em; }
.live-context > h2 { margin: -9px 0 0; font-size: clamp(2.3rem, 4.2vw, 4.4rem); line-height: .92; letter-spacing: -.065em; font-weight: 520; }
.live-context > span { color: var(--hatch-muted); font-size: .85rem; line-height: 1.55; }
.live-context dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid var(--hatch-line); }
.live-context dl div { display: grid; gap: 5px; padding: 16px 0; }
.live-context dt { color: var(--hatch-muted); font-size: .58rem; }
.live-context dd { margin: 0; font-size: .72rem; }
.live-context > section { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--hatch-line); border-radius: 18px; background: var(--hatch-surface); }
.live-context > section small { color: var(--hatch-muted); font-size: .6rem; }
.live-context > section strong { font-size: .9rem; line-height: 1.35; font-weight: 550; }
.live-context > label { display: grid; gap: 7px; color: var(--hatch-muted); font-size: .6rem; }
.live-context select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--hatch-line); border-radius: 12px; background: var(--hatch-surface); color: var(--hatch-text); }
.live-story-switcher { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.live-story-switcher button { min-height: 40px; border: 1px solid var(--hatch-line); border-radius: 12px; background: transparent; font-size: .66rem; }
.live-story-switcher button:last-child { text-align: right; }
.live-story-switcher span { color: var(--hatch-muted); font-size: .6rem; }

.live-page,
.live-access-layout,
.live-legal,
.live-empty,
.live-centered { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.live-page { padding: clamp(45px, 8vw, 100px) 0; }
.live-page > header { max-width: 720px; margin-bottom: 40px; }
.live-page > header h1,
.live-access-layout > header h1,
.live-empty h1,
.live-legal h1 { margin: 10px 0 14px; font-size: clamp(2.5rem, 6vw, 5.8rem); line-height: .92; letter-spacing: -.065em; font-weight: 520; }
.live-page > header > span,
.live-access-layout > header > span,
.live-empty > span { color: var(--hatch-muted); line-height: 1.6; }
.live-world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.live-world-grid > button { min-height: 390px; display: grid; grid-template-rows: 220px 1fr; overflow: hidden; padding: 0; text-align: left; border: 1px solid var(--hatch-line); border-radius: 22px; background: var(--hatch-surface); }
.live-world-grid img,
.live-world-grid > button > i { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(145deg, #34224a, #16232e); }
.live-world-grid > button > span { display: grid; align-content: start; gap: 7px; padding: 18px; }
.live-world-grid small,
.live-world-grid b { color: var(--hatch-muted); font-size: .58rem; font-style: normal; font-weight: 500; }
.live-world-grid strong { font-size: 1.35rem; letter-spacing: -.04em; }
.live-world-grid em { min-height: 42px; color: var(--hatch-muted); font-size: .72rem; line-height: 1.45; font-style: normal; }

.live-access-layout { min-height: calc(100dvh - 124px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr); align-items: center; gap: clamp(50px, 10vw, 150px); padding: 50px 0; }
.live-form { display: grid; gap: 14px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--hatch-line); border-radius: 24px; background: var(--hatch-surface); box-shadow: 0 24px 70px rgba(0,0,0,.15); }
.live-form label { display: grid; gap: 7px; color: var(--hatch-muted); font-size: .63rem; }
.live-form input,
.live-form textarea,
.live-form select { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid var(--hatch-line); border-radius: 12px; background: var(--hatch-raised); color: var(--hatch-text); font-size: .82rem; }
.live-form textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.live-form .live-check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.live-form .live-check input { width: 18px; min-height: 18px; }
.live-form .live-primary { width: 100%; margin-top: 5px; }
.live-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-create-form > label:nth-child(1),
.live-create-form > label:nth-child(2),
.live-create-form > label:nth-last-child(2),
.live-create-form > button { grid-column: 1 / -1; }
.live-create-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-create-form > div label { display: grid; gap: 7px; }

.live-account-page { max-width: 900px; }
.live-wallet { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px 20px; padding: clamp(24px, 5vw, 46px); border-radius: 26px; background: linear-gradient(140deg, color-mix(in srgb, var(--hatch-purple) 45%, var(--hatch-surface)), var(--hatch-surface)); }
.live-wallet > span { grid-column: 1 / -1; color: var(--hatch-muted); font-size: .68rem; }
.live-wallet strong { font-size: clamp(3.5rem, 9vw, 7.5rem); line-height: .8; letter-spacing: -.07em; font-weight: 520; }
.live-wallet b { padding-bottom: 8px; color: var(--hatch-accent); font-size: .8rem; }
.live-wallet small { grid-column: 1 / -1; margin-top: 14px; color: var(--hatch-muted); }
.live-packs { margin-top: 28px; }
.live-packs h2 { margin-bottom: 5px; }
.live-packs > p { margin-top: 0; color: var(--hatch-muted); font-size: .72rem; }
.live-packs > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.live-packs button { display: flex; justify-content: space-between; align-items: center; min-height: 86px; padding: 16px; text-align: left; border: 1px solid var(--hatch-line); border-radius: 16px; background: var(--hatch-surface); }
.live-packs button span { display: grid; gap: 6px; }
.live-packs button small { color: var(--hatch-muted); }

.live-empty,
.live-centered { min-height: calc(100dvh - 124px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 780px; }
.live-empty .live-primary { margin-top: 28px; }
.live-centered { align-items: center; gap: 14px; color: var(--hatch-muted); }
.live-loader { width: 34px; height: 34px; border: 3px solid var(--hatch-line); border-top-color: var(--hatch-accent); border-radius: 50%; animation: live-spin .8s linear infinite; }
@keyframes live-spin { to { transform: rotate(360deg); } }

.live-modal-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(3,4,7,.72); backdrop-filter: blur(14px); }
.live-modal { position: fixed; z-index: 51; left: 50%; top: 50%; width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 34px); overflow: auto; transform: translate(-50%, -50%); padding: 22px; border: 1px solid var(--hatch-line); border-radius: 26px; background: var(--hatch-screen); box-shadow: 0 34px 100px rgba(0,0,0,.5); }
.live-modal > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live-modal > header h1 { margin: 0; font-size: 1rem; }
.live-modal > header button { width: 36px; height: 36px; border: 1px solid var(--hatch-line); border-radius: 50%; background: transparent; }
.live-modal .live-form { padding: 0; border: 0; box-shadow: none; }
.live-modal-intro { margin: 0 0 6px; color: var(--hatch-muted); font-size: .72rem; line-height: 1.5; }
.live-quote { display: grid; justify-items: center; gap: 10px; padding: 32px 12px; text-align: center; }
.live-quote p { margin: 0; color: var(--hatch-muted); font-size: .67rem; }
.live-quote strong { font-size: 3.2rem; letter-spacing: -.06em; }
.live-quote span { font-size: .74rem; }
.live-quote small { max-width: 390px; color: var(--hatch-muted); line-height: 1.5; }
.live-modal > .live-primary,
.live-modal > .live-text-action { width: 100%; margin-top: 8px; }
.live-generating { display: grid; justify-items: center; gap: 11px; padding: 48px 18px; text-align: center; }
.live-generating h2 { margin: 10px 0 0; font-size: 1.35rem; }
.live-generating p { max-width: 390px; margin: 0; color: var(--hatch-muted); font-size: .75rem; line-height: 1.5; }
.live-review img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 17px; background: var(--hatch-raised); }
.live-review p { margin: 17px 0 5px; color: var(--hatch-accent); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
.live-review h2 { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.live-review span { display: block; margin: 10px 0 18px; color: var(--hatch-muted); font-size: .67rem; }

.live-legal { max-width: 760px; padding: clamp(55px, 9vw, 120px) 0; }
.live-legal h2 { margin: 34px 0 8px; font-size: 1rem; }
.live-legal span { color: var(--hatch-muted); line-height: 1.7; }
.live-footer { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px clamp(18px, 4vw, 64px); border-top: 1px solid var(--hatch-line); color: var(--hatch-muted); font-size: .58rem; }
.live-footer div { display: flex; gap: 10px; }
.live-footer button { padding: 7px; color: var(--hatch-muted); }
.live-toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; max-width: min(560px, calc(100% - 28px)); padding: 12px 18px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; border: 1px solid var(--hatch-line); border-radius: 999px; background: var(--hatch-frost); color: var(--hatch-text); font-size: .7rem; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.28); transition: .2s ease; }
.live-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .live-header { grid-template-columns: 1fr auto; min-height: 68px; gap: 10px; padding: 10px 14px; }
  .live-header nav { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: 10px; justify-content: stretch; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
  .live-header nav button { flex: 1; }
  .live-account-chip { grid-column: 2; }
  .live-watch-layout { min-height: calc(100dvh - 68px); grid-template-columns: 1fr; padding: 0 0 76px; }
  .live-stage { min-height: calc(100dvh - 144px); border: 0; border-radius: 0 0 24px 24px; }
  .live-context { padding: 20px 18px 30px; }
  .live-context > h2 { font-size: 2.5rem; }
  .live-story-copy { left: 20px; right: 20px; bottom: 26px; }
  .live-story-copy h1 { font-size: clamp(2.4rem, 14vw, 4.8rem); }
  .live-story-copy > div { display: grid; grid-template-columns: 1fr 1fr; }
  .live-story-copy .live-primary { grid-column: 1 / -1; grid-row: 1; }
  .live-page,
  .live-access-layout,
  .live-legal,
  .live-empty,
  .live-centered { width: min(100% - 28px, 680px); }
  .live-page { padding: 48px 0 100px; }
  .live-world-grid { grid-template-columns: 1fr; }
  .live-world-grid > button { min-height: 320px; grid-template-rows: 180px 1fr; }
  .live-world-grid img,
  .live-world-grid > button > i { height: 180px; }
  .live-access-layout { grid-template-columns: 1fr; align-content: center; gap: 32px; padding: 44px 0 100px; }
  .live-create-form { grid-template-columns: 1fr; }
  .live-create-form > label,
  .live-create-form > button { grid-column: 1 !important; }
  .live-create-form > div { grid-template-columns: 1fr; }
  .live-packs > div { grid-template-columns: 1fr; }
  .live-empty,
  .live-centered { min-height: calc(100dvh - 116px); padding-bottom: 70px; }
  .live-footer { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .live-brand small,
  .live-account-chip i { display: none; }
  .live-account-chip { grid-template-columns: auto auto; }
  .live-account-chip > span { grid-row: auto; }
  .live-stage { min-height: calc(100dvh - 132px); }
  .live-stage-top { inset: 18px 18px auto; }
  .live-story-copy > p { font-size: .56rem; }
  .live-story-copy > span { margin: 12px 0 18px; font-size: .78rem; }
  .live-context dl { grid-template-columns: 1fr 1fr; }
  .live-footer { align-items: flex-start; flex-direction: column; }
  .live-wallet { grid-template-columns: 1fr; }
  .live-wallet strong { font-size: 4rem; }
  .live-wallet b { padding: 0; }
}
