:root {
  color-scheme: light;
  --cream: #fff5dc;
  --paper: #fffaf0;
  --ink: #151515;
  --muted: #6e6258;
  --line: #151515;
  --pink: #ff8ac5;
  --peach: #ffb16f;
  --butter: #ffe96a;
  --mint: #9df7c4;
  --sky: #88d8ff;
  --lilac: #c8a5ff;
  --green: #b9f064;
  --brown: #8d5b30;
  --shadow: 8px 8px 0 #151515;
  --shadow-soft: 0 22px 60px rgba(21, 21, 21, 0.14);
  --radius: 30px;
  font-family:
    "Cooper Black",
    "Arial Rounded MT Bold",
    "Avenir Next",
    "Trebuchet MS",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 14%, rgba(255, 138, 197, 0.55), transparent 18rem),
    radial-gradient(circle at 86% 8%, rgba(136, 216, 255, 0.62), transparent 20rem),
    radial-gradient(circle at 76% 80%, rgba(185, 240, 100, 0.55), transparent 24rem),
    linear-gradient(135deg, #fff5dc 0%, #ffe9c7 55%, #f7ddff 100%);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background-image: radial-gradient(rgba(21, 21, 21, 0.2) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  content: "";
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  position: fixed;
  z-index: -3;
}

body::after {
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(21, 21, 21, 0.05) 45% 46%, transparent 46% 100%),
    linear-gradient(0deg, transparent 0 45%, rgba(21, 21, 21, 0.04) 45% 46%, transparent 46% 100%);
  background-size: 88px 88px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.ambient,
.scanlines {
  pointer-events: none;
  position: fixed;
}

.ambient {
  border: 3px solid var(--line);
  border-radius: 42% 58% 62% 38% / 42% 38% 62% 58%;
  box-shadow: var(--shadow);
  opacity: 0.72;
  z-index: -1;
}

.ambient-a {
  animation: blobWiggle 12s ease-in-out infinite;
  background: var(--pink);
  height: 240px;
  left: -92px;
  top: 150px;
  transform: rotate(-16deg);
  width: 240px;
}

.ambient-b {
  animation: blobWiggle 15s ease-in-out infinite reverse;
  background: var(--sky);
  bottom: 80px;
  height: 310px;
  right: -120px;
  transform: rotate(18deg);
  width: 310px;
}

.ambient-c {
  animation: potatoBounce 6s ease-in-out infinite;
  background: var(--butter);
  height: 150px;
  left: 44%;
  top: -70px;
  transform: rotate(8deg);
  width: 260px;
}

.scanlines {
  background: repeating-linear-gradient(
    -8deg,
    transparent 0,
    transparent 11px,
    rgba(21, 21, 21, 0.035) 11px,
    rgba(21, 21, 21, 0.035) 13px
  );
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.38;
  z-index: 20;
}

.app-shell {
  margin: 0 auto;
  max-width: 1480px;
  padding: 26px clamp(18px, 4vw, 60px) 76px;
  width: 100%;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 32px;
  position: sticky;
  top: 16px;
  z-index: 30;
}

.brand-mark {
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--line);
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.brand-mark span {
  background: var(--green);
  border: 2px solid var(--line);
  border-radius: 50%;
  display: grid;
  font-size: 13px;
  font-weight: 1000;
  height: 42px;
  place-items: center;
  width: 42px;
}

.brand-mark strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.tabs {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--line);
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px;
  transform: rotate(1deg);
  width: min(460px, 62vw);
}

.tab {
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 1000;
  min-height: 42px;
  text-transform: uppercase;
}

.tab.active {
  background: var(--pink);
  color: var(--ink);
  outline: 2px solid var(--line);
}

.view {
  display: block;
}

body.mode-rot {
  --rot-cream: #f7efe5;
  --rot-oat: #d8c7b3;
  --rot-rose: #cfa6a0;
  --rot-sage: #a8b8a1;
  --rot-blue: #9fb3c8;
  --rot-lavender: #b8afc9;
  --rot-ink: #3e3934;
  background:
    radial-gradient(circle at 16% 12%, rgba(207, 166, 160, 0.34), transparent 18rem),
    radial-gradient(circle at 84% 18%, rgba(159, 179, 200, 0.32), transparent 20rem),
    radial-gradient(circle at 78% 82%, rgba(168, 184, 161, 0.34), transparent 24rem),
    linear-gradient(135deg, var(--rot-cream) 0%, var(--rot-oat) 62%, var(--rot-cream) 100%);
  color: var(--rot-ink);
}

body.mode-rot::before {
  background-image: radial-gradient(rgba(62, 57, 52, 0.14) 1.1px, transparent 1.1px);
}

body.mode-rot .hero-copy h1 {
  color: var(--rot-ink);
  text-shadow: 3px 3px 0 rgba(207, 166, 160, 0.52);
}

body.mode-rot .hero-console,
body.mode-rot .feature-card,
body.mode-rot .dashboard-card {
  background: var(--rot-oat);
  border-color: var(--rot-ink);
  box-shadow: 5px 5px 0 rgba(62, 57, 52, 0.82);
  color: var(--rot-ink);
  filter: saturate(0.78);
}

body.mode-rot .alive-button {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.54), transparent 24%),
    linear-gradient(135deg, var(--rot-sage), var(--rot-blue) 58%, var(--rot-lavender));
  border-color: var(--rot-ink);
  box-shadow: 8px 8px 0 var(--rot-ink), 0 20px 70px rgba(159, 179, 200, 0.32);
  color: var(--rot-ink);
}

body.mode-rot .ambient {
  animation-duration: 20s;
  border-color: var(--rot-ink);
  box-shadow: 6px 6px 0 rgba(62, 57, 52, 0.72);
  opacity: 0.34;
}

body.mode-rot .ambient-a {
  background: var(--rot-rose);
}

body.mode-rot .ambient-b {
  background: var(--rot-blue);
}

body.mode-rot .ambient-c {
  background: var(--rot-lavender);
}

body.mode-rot .recharge-card {
  background: var(--rot-lavender);
}

body.mode-rot .mode-card {
  background: var(--rot-oat);
}

body.mode-rot .proof-card,
body.mode-rot .notes-card {
  background: var(--rot-sage);
}

body.mode-rot .receipt-card,
body.mode-rot .summary-card {
  background: var(--rot-blue);
}

body.mode-rot .goal-card,
body.mode-rot .locked-card {
  background: var(--rot-rose);
}

body.mode-rot .potato-card,
body.mode-rot .world-card,
body.mode-rot .screen-card {
  background: linear-gradient(135deg, var(--rot-oat), var(--rot-cream));
}

body.mode-rot .card-kicker,
body.mode-rot .eyebrow,
body.mode-rot .console-topline,
body.mode-rot .potato-stage-kicker,
body.mode-rot .share-preview-kicker {
  background: var(--rot-ink);
  color: var(--rot-cream);
}

body.mode-rot .soft-input,
body.mode-rot .single-line-input,
body.mode-rot .receipt-preview,
body.mode-rot .share-preview,
body.mode-rot .world-text,
body.mode-rot .world-detail,
body.mode-rot .adaptive-rule,
body.mode-rot .life-noticed-card,
body.mode-rot .noticed-item,
body.mode-rot .capacity-context,
body.mode-rot .live-time-card,
body.mode-rot .mission-card,
body.mode-rot .schedule-item,
body.mode-rot .note-item,
body.mode-rot .future-message,
body.mode-rot .empty-soft {
  background: rgba(247, 239, 229, 0.9);
  border-color: var(--rot-ink);
  color: var(--rot-ink);
}

body.mode-rot .dark-button {
  background: var(--rot-ink);
  border-color: var(--rot-ink);
  color: var(--rot-cream);
}

body.mode-rot .state-button.active,
body.mode-rot .mode-button.active,
body.mode-rot .time-button.active,
body.mode-rot .operating-mode.active,
body.mode-rot .proof-chip.active,
body.mode-rot .receipt-toggle.active,
body.mode-rot .artifact-type.active {
  background: var(--rot-sage);
}

body.mode-rot .tab.active {
  background: var(--rot-rose);
  color: var(--rot-ink);
}

body.mode-rot .state-button,
body.mode-rot .meal-button,
body.mode-rot .mode-button,
body.mode-rot .time-button,
body.mode-rot .capacity-button,
body.mode-rot .artifact-type,
body.mode-rot .receipt-toggle,
body.mode-rot .operating-mode,
body.mode-rot .proof-chip,
body.mode-rot .task-check-button,
body.mode-rot .schedule-check,
body.mode-rot .receipt-actions button,
body.mode-rot .response-actions button,
body.mode-rot .printer-actions button:not(.dark-button),
body.mode-rot .note-delete {
  background: var(--rot-cream);
  border-color: var(--rot-ink);
  box-shadow: 3px 3px 0 rgba(62, 57, 52, 0.82);
  color: var(--rot-ink);
}

body.mode-rot .meal-button:nth-child(1),
body.mode-rot .proof-chip:nth-child(1),
body.mode-rot .state-button:nth-child(1) {
  background: var(--rot-oat);
}

body.mode-rot .meal-button:nth-child(2),
body.mode-rot .proof-chip:nth-child(2),
body.mode-rot .state-button:nth-child(2) {
  background: var(--rot-blue);
}

body.mode-rot .meal-button:nth-child(3),
body.mode-rot .proof-chip:nth-child(3),
body.mode-rot .state-button:nth-child(3) {
  background: var(--rot-rose);
}

body.mode-rot .meal-button:nth-child(4),
body.mode-rot .proof-chip:nth-child(4),
body.mode-rot .state-button:nth-child(4) {
  background: var(--rot-sage);
}

body.mode-rot .proof-chip:nth-child(5),
body.mode-rot .proof-chip:nth-child(6) {
  background: var(--rot-lavender);
}

body.mode-rot .proof-chip:nth-child(7),
body.mode-rot .proof-chip:nth-child(8) {
  background: var(--rot-oat);
}

body.mode-rot .state-button.active,
body.mode-rot .mode-button.active,
body.mode-rot .time-button.active,
body.mode-rot .capacity-button.active,
body.mode-rot .operating-mode.active,
body.mode-rot .proof-chip.active,
body.mode-rot .receipt-toggle.active,
body.mode-rot .artifact-type.active,
body.mode-rot .task-check-button.done,
body.mode-rot .schedule-item.done .schedule-check {
  background: var(--rot-sage);
  color: var(--rot-ink);
}

body.mode-rot .today-plan-chip,
body.mode-rot .ai-planner-status,
body.mode-rot .schedule-note,
body.mode-rot .adaptive-rules-card,
body.mode-rot .potato-next-action,
body.mode-rot .potato-mirror-panel,
body.mode-rot .potato-mirror,
body.mode-rot .potato-noticed,
body.mode-rot .response-card,
body.mode-rot .response-step,
body.mode-rot .share-caption,
body.mode-rot .history-task {
  background: rgba(247, 239, 229, 0.84);
  border-color: rgba(62, 57, 52, 0.45);
  color: var(--rot-ink);
}

body.mode-rot .mirror-signal {
  background: rgba(216, 199, 179, 0.74);
  border-color: rgba(62, 57, 52, 0.4);
  color: var(--rot-ink);
}

body.mode-rot .mirror-signal.active,
body.mode-rot .response-mood {
  background: var(--rot-sage);
  border-color: var(--rot-ink);
  color: var(--rot-ink);
}

body.mode-rot .potato-meter {
  background: rgba(247, 239, 229, 0.7);
  border-color: var(--rot-ink);
}

body.mode-rot .potato-meter span {
  background: linear-gradient(90deg, var(--rot-rose), var(--rot-sage), var(--rot-blue), var(--rot-lavender));
}

body.mode-rot .schedule-item.today,
body.mode-rot .calendar-day.today,
body.mode-rot .history-item.today {
  background: var(--rot-blue);
  color: var(--rot-ink);
}

body.mode-rot .calendar-panel .glass-card,
body.mode-rot .printer-card {
  background: linear-gradient(135deg, var(--rot-oat), var(--rot-cream));
}

body.mode-rot .calendar-title-row,
body.mode-rot .calendar-day,
body.mode-rot .calendar-empty,
body.mode-rot .history-item,
body.mode-rot .locked-in-item {
  background: rgba(247, 239, 229, 0.9);
  border-color: var(--rot-ink);
  box-shadow: 4px 4px 0 rgba(62, 57, 52, 0.78);
  color: var(--rot-ink);
}

body.mode-rot .potato-card.dirt,
body.mode-rot .potato-card.plain,
body.mode-rot .potato-card.salted,
body.mode-rot .potato-card.butter,
body.mode-rot .potato-card.mashed,
body.mode-rot .potato-card.garlic,
body.mode-rot .potato-card.soup,
body.mode-rot .potato-card.baked,
body.mode-rot .potato-card.loaded,
body.mode-rot .potato-card.hash,
body.mode-rot .potato-card.home-fries,
body.mode-rot .potato-card.wedges,
body.mode-rot .potato-card.fries,
body.mode-rot .potato-card.curly,
body.mode-rot .potato-card.tots,
body.mode-rot .potato-card.croquette,
body.mode-rot .potato-card.gratin,
body.mode-rot .potato-card.legendary {
  background:
    radial-gradient(circle at 78% 18%, rgba(184, 175, 201, 0.32), transparent 120px),
    linear-gradient(135deg, var(--rot-oat), var(--rot-cream));
}

body.mode-rot .potato-stage-art,
body.mode-rot .potato-card.dirt .potato-stage-art,
body.mode-rot .potato-card.plain .potato-stage-art,
body.mode-rot .potato-card.salted .potato-stage-art,
body.mode-rot .potato-card.butter .potato-stage-art,
body.mode-rot .potato-card.mashed .potato-stage-art,
body.mode-rot .potato-card.garlic .potato-stage-art,
body.mode-rot .potato-card.soup .potato-stage-art,
body.mode-rot .potato-card.baked .potato-stage-art,
body.mode-rot .potato-card.loaded .potato-stage-art,
body.mode-rot .potato-card.hash .potato-stage-art,
body.mode-rot .potato-card.home-fries .potato-stage-art,
body.mode-rot .potato-card.wedges .potato-stage-art,
body.mode-rot .potato-card.fries .potato-stage-art,
body.mode-rot .potato-card.curly .potato-stage-art,
body.mode-rot .potato-card.tots .potato-stage-art,
body.mode-rot .potato-card.croquette .potato-stage-art,
body.mode-rot .potato-card.gratin .potato-stage-art,
body.mode-rot .potato-card.legendary .potato-stage-art {
  background:
    radial-gradient(circle at 35% 30%, rgba(247, 239, 229, 0.74), transparent 18%),
    radial-gradient(circle at 54% 58%, var(--rot-oat) 0 46%, transparent 47%),
    linear-gradient(135deg, var(--rot-sage), var(--rot-blue));
  border-color: var(--rot-ink);
  box-shadow: inset -14px -16px 0 rgba(62, 57, 52, 0.08), 6px 6px 0 rgba(62, 57, 52, 0.86);
}

body.mode-rot .potato-card.loaded .potato-stage-art::before,
body.mode-rot .potato-card.garlic .potato-stage-art::before {
  background: var(--rot-cream);
  border-color: rgba(62, 57, 52, 0.45);
}

body.mode-rot .potato-card::after {
  background: linear-gradient(110deg, transparent 0 35%, rgba(247, 239, 229, 0.42) 44%, transparent 56% 100%);
}

body.mode-goblinAdmin .hero-copy,
body.mode-goblinAdmin .recharge-card,
body.mode-goblinAdmin .world-card,
body.mode-goblinAdmin .adaptive-rules-card,
body.mode-goblinAdmin .inbox-card,
body.mode-goblinAdmin .printer-grid,
body.mode-goblinAdmin .os-heading,
body.mode-goblinAdmin .printer-heading,
body.mode-goblinAdmin .telemetry-heading,
body.mode-goblinAdmin .meals-card,
body.mode-goblinAdmin .screen-card,
body.mode-goblinAdmin .summary-card,
body.mode-goblinAdmin .history-panel,
body.mode-goblinAdmin .tab[data-view="history"],
body.mode-goblinAdmin .receipt-card,
body.mode-goblinAdmin .proof-card,
body.mode-goblinAdmin .alive-panel {
  display: none !important;
}

body.mode-goblinAdmin {
  background:
    repeating-linear-gradient(0deg, rgba(21, 21, 21, 0.035) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, #ffe8c6 0%, #d7f0d2 100%);
}

body.mode-goblinAdmin .main-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.mode-goblinAdmin .goal-card {
  background: var(--butter);
  transform: rotate(0deg);
}

body.mode-goblinAdmin .os-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.mode-goblinAdmin .notes-card {
  background: var(--sky);
  grid-column: 1 / -1;
  transform: rotate(0deg);
}

body.mode-goblinAdmin .dashboard-grid {
  grid-template-columns: 1fr;
}

body.mode-goblinAdmin .calendar-panel {
  grid-column: 1 / -1;
}

.hero-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1180px;
  min-height: auto;
  padding-top: clamp(12px, 2vh, 24px);
}

.hero-copy {
  align-content: start;
  align-items: end;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 0;
  opacity: 0.92;
  padding-block: 0;
  position: relative;
}

.hero-copy::before {
  display: none;
}

.eyebrow,
.card-kicker {
  align-self: start;
  background: var(--ink);
  border-radius: 999px;
  color: var(--cream);
  display: inline-block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  padding: 9px 13px;
  text-transform: uppercase;
  width: fit-content;
}

.hero-copy h1 {
  font-size: clamp(38px, 4.2vw, 62px);
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  max-width: 620px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(255, 138, 197, 0.78);
}

.hero-dek {
  color: #3d342f;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 750;
  line-height: 1.33;
  margin: 0 0 4px;
  max-width: 390px;
}

.hero-ticker,
.sticker-board {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-ticker {
  display: none;
}

.hero-ticker span,
.sticker-board span {
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  padding: 11px 14px;
  text-transform: uppercase;
}

.hero-ticker span:nth-child(1) {
  background: var(--butter);
}

.hero-ticker span:nth-child(2) {
  background: var(--sky);
}

.hero-ticker span:nth-child(3) {
  background: var(--lilac);
}

.hero-ticker span:nth-child(4) {
  background: var(--mint);
}

.sticker-board {
  display: none;
}

.sticker-board span {
  background: var(--paper);
  border-radius: 18px;
}

.sticker-board span:nth-child(1) {
  transform: rotate(-3deg);
}

.sticker-board span:nth-child(2) {
  background: var(--peach);
  transform: rotate(2deg);
}

.sticker-board span:nth-child(3) {
  background: var(--green);
  transform: rotate(-1deg);
}

.hero-console,
.feature-card,
.dashboard-card,
.history-panel .glass-card {
  background: var(--paper);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-console {
  align-self: start;
  animation: consoleFloat 7s ease-in-out infinite;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 14px;
  padding: clamp(18px, 2.2vw, 30px);
  transform: rotate(0deg);
}

.console-topline {
  grid-column: 1 / -1;
}

.hero-console::after,
.feature-card::after,
.dashboard-card::after {
  background-image: radial-gradient(rgba(21, 21, 21, 0.18) 1px, transparent 1px);
  background-size: 10px 10px;
  content: "";
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  position: absolute;
}

.hero-console > *,
.feature-card > *,
.dashboard-card > * {
  position: relative;
  z-index: 1;
}

.console-topline {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--cream);
  display: flex;
  font-size: 12px;
  font-weight: 1000;
  justify-content: space-between;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  text-transform: uppercase;
}

#console-dot {
  color: var(--green);
}

.hero-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.streak-card,
.potato-card,
.glass-card,
.goal-card,
.summary-card {
  background: var(--cream);
  border: 3px solid var(--line);
  border-radius: 24px;
  margin: 0;
  padding: 18px;
}

.streak-card,
.potato-card {
  align-items: center;
  display: flex;
  gap: 16px;
  padding: 14px;
}

.streak-card h2,
.potato-card h2,
.glass-card h2,
.goal-card h2,
.summary-card h2,
.recharge-card h2 {
  font-size: clamp(22px, 2.1vw, 34px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.streak-card p,
.potato-card p,
.recharge-card p,
.muted-line {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.4;
  margin: 0;
}

.streak-card {
  background: var(--sky);
  min-height: 160px;
  order: 2;
  transform: rotate(-1deg);
}

.streak-number {
  color: var(--ink);
  font-size: clamp(48px, 4.4vw, 70px);
  font-weight: 1000;
  letter-spacing: -0.08em;
  min-width: 76px;
  text-align: center;
  text-shadow: 3px 3px 0 var(--cream);
}

.potato-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  background: var(--butter);
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  min-height: 230px;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(0.4deg);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.potato-card:hover {
  box-shadow: 12px 12px 0 var(--line), 0 22px 70px rgba(185, 240, 100, 0.28);
}

.potato-card.stage-pop {
  animation: stagePop 620ms cubic-bezier(0.2, 1.4, 0.35, 1);
}

.potato-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 54%);
  content: "";
  height: 180px;
  opacity: 0.32;
  position: absolute;
  right: -54px;
  top: -70px;
  width: 180px;
}

.potato-card::after {
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.42) 44%, transparent 56% 100%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-110%);
}

.potato-stage-art {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.52), transparent 20%),
    radial-gradient(circle at 50% 68%, rgba(21, 21, 21, 0.16), transparent 48%);
  border: 4px solid var(--line);
  border-radius: 44% 56% 48% 52% / 54% 46% 58% 42%;
  box-shadow: inset -16px -18px 0 rgba(21, 21, 21, 0.08), 7px 7px 0 var(--line);
  display: grid;
  justify-items: center;
  max-width: 220px;
  min-width: 138px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.potato-stage-art:hover .potato-emoji {
  transform: translateY(-4px) rotate(2deg) scale(1.06);
}

.potato-stage-art::before,
.potato-stage-art::after {
  border-radius: 50%;
  content: "";
  position: absolute;
}

.potato-stage-art::before {
  background: rgba(141, 91, 48, 0.28);
  height: 18%;
  left: 22%;
  top: 28%;
  width: 18%;
}

.potato-stage-art::after {
  background: rgba(141, 91, 48, 0.22);
  bottom: 22%;
  height: 14%;
  right: 24%;
  width: 14%;
}

.potato-stage-copy {
  min-width: 0;
}

.potato-stage-kicker {
  background: var(--ink);
  border-radius: 999px;
  color: var(--cream);
  display: inline-block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.potato-meter {
  background: rgba(255, 250, 240, 0.72);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 3px 3px 0 rgba(21, 21, 21, 0.12);
  height: 22px;
  margin: 14px 0 12px;
  overflow: hidden;
}

.potato-meter span {
  background: linear-gradient(90deg, #9aa096, var(--green), var(--butter), #fff3a3);
  background-size: 180% 100%;
  animation: meterShimmer 2.8s ease-in-out infinite;
  display: block;
  height: 100%;
  transition: width 420ms ease;
  width: 0;
}

.potato-next-action {
  background: rgba(255, 250, 240, 0.76);
  border: 2px dashed rgba(21, 21, 21, 0.32);
  border-radius: 16px;
  color: #3f342f;
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 10px;
  padding: 10px;
}

.potato-mirror-panel {
  background: rgba(255, 250, 240, 0.68);
  border: 2px solid rgba(21, 21, 21, 0.48);
  border-radius: 18px;
  box-shadow: inset 2px 2px 0 rgba(21, 21, 21, 0.08);
  margin: 10px 0;
  padding: 10px;
}

.potato-mirror {
  background: rgba(255, 250, 240, 0.74);
  border: 2px solid rgba(21, 21, 21, 0.5);
  border-radius: 999px;
  color: #3f342f;
  display: inline-block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.potato-mirror-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.mirror-signal {
  background: rgba(255, 250, 240, 0.72);
  border: 2px solid rgba(21, 21, 21, 0.38);
  border-radius: 999px;
  color: #58483e;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.mirror-signal.active {
  animation: mirrorBlink 2.8s ease-in-out infinite;
  background: var(--green);
  color: var(--ink);
  transform: rotate(-1deg);
}

.potato-noticed {
  background: rgba(21, 21, 21, 0.08);
  border-radius: 13px;
  color: #352b26;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  margin: 8px 0 0;
  padding: 9px;
}

.potato-card.mirror-overstimulated {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 138, 197, 0.52), transparent 120px),
    linear-gradient(135deg, #c5efff, #f3d5ff);
}

.potato-card.mirror-overstimulated .potato-stage-art {
  animation: sickPotato 1.8s ease-in-out infinite;
}

.potato-card.mirror-recovering,
.potato-card.mirror-bare-minimum {
  background: linear-gradient(135deg, #d9d2bf, #c8a5ff);
}

.potato-card.mirror-admin {
  background:
    repeating-linear-gradient(-8deg, rgba(255, 250, 240, 0.16) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--peach), var(--butter));
}

.potato-card.mirror-well-fed,
.potato-card.mirror-witnessed {
  background: linear-gradient(135deg, var(--mint), var(--butter));
}

.potato-card.mirror-shiny,
.potato-card.mirror-powerful {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72), transparent 96px),
    linear-gradient(135deg, var(--butter), var(--mint), var(--sky));
}

.potato-card.dirt {
  background:
    radial-gradient(circle at 24% 24%, rgba(93, 61, 35, 0.45) 0 14px, transparent 15px),
    linear-gradient(135deg, #b98955, #7f5a38);
}

.potato-card.plain {
  background: linear-gradient(135deg, #e8d6ad, #cda86b);
}

.potato-card.salted {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px),
    radial-gradient(circle at 68% 52%, rgba(255, 255, 255, 0.72) 0 5px, transparent 6px),
    linear-gradient(135deg, #ecd9a9, #d2ad70);
}

.potato-card.butter {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 233, 106, 0.86), transparent 110px),
    linear-gradient(135deg, #f8d88f, #ffc474);
}

.potato-card.mashed,
.potato-card.garlic {
  background: linear-gradient(135deg, #f2dfbd, #e6c58c);
}

.potato-card.garlic {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 250, 240, 0.72) 0 12px, transparent 13px),
    linear-gradient(135deg, #f0d9ac, #d9b375);
}

.potato-card.soup {
  background: linear-gradient(135deg, #ffc46f, #ffdf93);
}

.potato-card.baked {
  background: linear-gradient(135deg, #c98b50, #f1c276);
}

.potato-card.loaded {
  background:
    radial-gradient(circle at 22% 28%, var(--green) 0 12px, transparent 13px),
    radial-gradient(circle at 74% 22%, var(--pink) 0 10px, transparent 11px),
    radial-gradient(circle at 76% 70%, var(--butter) 0 14px, transparent 15px),
    linear-gradient(135deg, #d6914f, #ffd477);
}

.potato-card.hash {
  background:
    repeating-linear-gradient(28deg, rgba(141, 91, 48, 0.22) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #f0b35f, #d98936);
}

.potato-card.home-fries {
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 138, 197, 0.4), transparent 88px),
    linear-gradient(135deg, #ffb16f, #ffe190);
}

.potato-card.wedges {
  background: linear-gradient(135deg, #ffbe55, #f08737);
}

.potato-card.fries {
  background: linear-gradient(135deg, #ffe96a, #ffb16f);
}

.potato-card.curly {
  background:
    repeating-radial-gradient(circle at 24% 38%, rgba(21, 21, 21, 0.1) 0 3px, transparent 3px 16px),
    linear-gradient(135deg, #ffb16f, #ff8ac5);
}

.potato-card.tots {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 233, 106, 0.74) 0 14px, transparent 15px),
    radial-gradient(circle at 76% 62%, rgba(255, 233, 106, 0.62) 0 13px, transparent 14px),
    linear-gradient(135deg, #ffd86f, #9df7c4);
}

.potato-card.croquette {
  background: linear-gradient(135deg, #d9903d, #fff0b0);
}

.potato-card.gratin {
  background:
    repeating-linear-gradient(0deg, rgba(141, 91, 48, 0.16) 0 10px, transparent 10px 22px),
    linear-gradient(135deg, #ffe96a, #f4bd71);
}

.potato-card.legendary {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 88px),
    radial-gradient(circle at 76% 34%, rgba(255, 233, 106, 0.9), transparent 110px),
    linear-gradient(135deg, #fff3a3, #ffc84d, #9df7c4);
}

.potato-card.dirt .potato-stage-art,
.potato-card.plain .potato-stage-art,
.potato-card.salted .potato-stage-art,
.potato-card.butter .potato-stage-art,
.potato-card.baked .potato-stage-art {
  animation: potatoBreathe 3s ease-in-out infinite;
}

.potato-card.mashed .potato-stage-art,
.potato-card.garlic .potato-stage-art,
.potato-card.soup .potato-stage-art {
  animation: potatoSag 3.6s ease-in-out infinite;
  border-radius: 50% 50% 42% 58% / 46% 54% 48% 52%;
}

.potato-card.hash .potato-stage-art,
.potato-card.curly .potato-stage-art {
  animation: sickPotato 2.4s ease-in-out infinite;
}

.potato-card.loaded .potato-stage-art,
.potato-card.home-fries .potato-stage-art,
.potato-card.wedges .potato-stage-art,
.potato-card.fries .potato-stage-art,
.potato-card.tots .potato-stage-art,
.potato-card.croquette .potato-stage-art,
.potato-card.gratin .potato-stage-art,
.potato-card.legendary .potato-stage-art {
  animation: potatoBreathe 2.2s ease-in-out infinite;
}

.potato-card.gratin::after,
.potato-card.legendary::after {
  animation: shineSweep 3.4s ease-in-out infinite;
  opacity: 1;
}

.potato-card.stage-1 .potato-stage-art,
.potato-card.stage-2 .potato-stage-art,
.potato-card.stage-3 .potato-stage-art,
.potato-card.stage-4 .potato-stage-art {
  filter: grayscale(1) saturate(0.45);
  opacity: 0.78;
}

.potato-card.stage-13 .potato-stage-art,
.potato-card.stage-14 .potato-stage-art,
.potato-card.stage-15 .potato-stage-art,
.potato-card.stage-16 .potato-stage-art,
.potato-card.stage-17 .potato-stage-art,
.potato-card.stage-18 .potato-stage-art {
  transform: scale(1.04);
}

.potato-card.dirt .potato-stage-art {
  background:
    radial-gradient(circle at 48% 72%, #5f3c22 0 24%, transparent 25%),
    radial-gradient(circle at 52% 50%, #c99b5d 0 32%, transparent 33%),
    linear-gradient(180deg, #8c633a, #5b3b24);
}

.potato-card.plain .potato-stage-art {
  background:
    radial-gradient(circle, #efd9a8 0 45%, transparent 46%),
    radial-gradient(circle at 50% 68%, rgba(21, 21, 21, 0.13), transparent 48%);
}

.potato-card.salted .potato-stage-art {
  background:
    radial-gradient(circle at 34% 32%, #fffaf0 0 4px, transparent 5px),
    radial-gradient(circle at 58% 42%, #fffaf0 0 4px, transparent 5px),
    radial-gradient(circle at 48% 58%, #efd39b 0 44%, transparent 45%);
}

.potato-card.butter .potato-stage-art {
  background:
    linear-gradient(135deg, transparent 0 42%, #ffe96a 42% 58%, transparent 58%),
    radial-gradient(circle at 50% 56%, #e5b56d 0 44%, transparent 45%);
}

.potato-card.mashed .potato-stage-art,
.potato-card.garlic .potato-stage-art {
  background:
    radial-gradient(circle at 35% 48%, #f8e9c8 0 25%, transparent 26%),
    radial-gradient(circle at 60% 44%, #f5dfb8 0 27%, transparent 28%),
    radial-gradient(circle at 50% 62%, #e9c991 0 36%, transparent 37%);
}

.potato-card.garlic .potato-stage-art::before {
  background: #fffaf0;
  border: 2px solid rgba(21, 21, 21, 0.35);
  border-radius: 52% 48% 44% 56% / 55% 40% 60% 45%;
  height: 22%;
  left: 18%;
  top: 20%;
  width: 18%;
}

.potato-card.soup .potato-stage-art {
  background:
    radial-gradient(ellipse at 50% 44%, #ffd483 0 42%, transparent 43%),
    radial-gradient(ellipse at 50% 60%, #fffaf0 0 54%, transparent 55%);
  border-radius: 50% 50% 42% 42% / 46% 46% 54% 54%;
}

.potato-card.baked .potato-stage-art,
.potato-card.loaded .potato-stage-art {
  background:
    linear-gradient(90deg, transparent 0 46%, #fff5dc 46% 54%, transparent 54%),
    radial-gradient(ellipse at 50% 54%, #a86735 0 48%, transparent 49%);
}

.potato-card.loaded .potato-stage-art::before {
  background:
    radial-gradient(circle at 30% 30%, var(--green) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 50%, var(--pink) 0 6px, transparent 7px),
    var(--butter);
  border-radius: 999px;
  height: 28%;
  left: 31%;
  top: 34%;
  width: 38%;
}

.potato-card.hash .potato-stage-art {
  background:
    repeating-linear-gradient(32deg, #d4862f 0 8px, #ffd083 8px 14px, #9f5f24 14px 18px);
  border-radius: 30% 70% 34% 66% / 56% 35% 65% 44%;
}

.potato-card.home-fries .potato-stage-art {
  background:
    radial-gradient(circle at 34% 46%, #d97c35 0 16%, transparent 17%),
    radial-gradient(circle at 60% 42%, #ffbf61 0 18%, transparent 19%),
    radial-gradient(circle at 48% 66%, #b66a2e 0 17%, transparent 18%),
    radial-gradient(ellipse at 50% 62%, #fffaf0 0 58%, transparent 59%);
}

.potato-card.wedges .potato-stage-art {
  background:
    conic-gradient(from 45deg, #f28b31 0 16%, transparent 16% 22%, #ffc761 22% 38%, transparent 38% 44%, #d97625 44% 60%, transparent 60% 100%),
    radial-gradient(circle, #fff1b2 0 52%, transparent 53%);
}

.potato-card.fries .potato-stage-art {
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, #ffd857 10px 22px, #d48a28 22px 26px, transparent 26px 32px),
    linear-gradient(#ff445f, #b8122b);
  border-radius: 18px 18px 38px 38px;
}

.potato-card.curly .potato-stage-art {
  background:
    repeating-radial-gradient(circle at 50% 50%, #f08c2d 0 8px, transparent 8px 16px),
    radial-gradient(circle, #ffd181 0 48%, transparent 49%);
}

.potato-card.tots .potato-stage-art {
  background:
    radial-gradient(circle at 28% 32%, #d99338 0 15%, transparent 16%),
    radial-gradient(circle at 55% 30%, #f4b64b 0 14%, transparent 15%),
    radial-gradient(circle at 42% 60%, #c97928 0 15%, transparent 16%),
    radial-gradient(circle at 70% 62%, #f0a13a 0 14%, transparent 15%);
}

.potato-card.croquette .potato-stage-art {
  background:
    radial-gradient(ellipse at 50% 50%, #d6842d 0 48%, transparent 49%),
    radial-gradient(ellipse at 50% 50%, #fff1b6 0 56%, transparent 57%);
  border-radius: 999px;
}

.potato-card.gratin .potato-stage-art {
  background:
    repeating-linear-gradient(0deg, #ffe190 0 14px, #d99145 14px 19px, #fff0bd 19px 30px);
  border-radius: 32px;
}

.potato-card.legendary .potato-stage-art {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.92), transparent 18%),
    radial-gradient(circle, #ffe96a 0 44%, #f8b83f 45% 58%, transparent 59%);
  box-shadow: inset -14px -16px 0 rgba(255, 138, 197, 0.16), 8px 8px 0 var(--line), 0 0 54px rgba(255, 233, 106, 0.8);
}

.potato-emoji {
  filter: grayscale(0.15) drop-shadow(4px 4px 0 rgba(21, 21, 21, 0.2));
  font-size: clamp(78px, 7.2vw, 126px);
  min-width: 88px;
  text-align: center;
  transform: translateY(2px);
  transition: transform 220ms ease;
}

.potato-spark {
  animation: potatoSpark 920ms ease-out forwards;
  font-size: 28px;
  left: 34%;
  pointer-events: none;
  position: absolute;
  top: 42%;
  z-index: 5;
}

.alive-stage {
  position: relative;
  align-self: stretch;
  display: grid;
}

.alive-button {
  animation: pulse 3.4s ease-in-out infinite;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.56), transparent 24%),
    linear-gradient(135deg, var(--green), var(--mint) 60%, var(--sky));
  border: 5px solid var(--line);
  border-radius: 40px;
  box-shadow: 10px 10px 0 var(--line), 0 20px 80px rgba(157, 247, 196, 0.48);
  color: var(--ink);
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: clamp(24px, 3vw, 42px) 26px;
  place-items: center;
  position: relative;
  width: 100%;
  z-index: 2;
}

.alive-button::after {
  border: 3px dashed rgba(21, 21, 21, 0.24);
  border-radius: 25px;
  content: "";
  inset: 13px;
  pointer-events: none;
  position: absolute;
}

.alive-button span {
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 1000;
  letter-spacing: -0.052em;
  line-height: 0.88;
  max-width: 760px;
  text-align: center;
  text-transform: uppercase;
}

.alive-button small {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 1000;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  text-transform: uppercase;
}

.today-plan-chip {
  animation: slideUp 320ms ease-out;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--line);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.4;
  padding: 16px 18px;
}

.today-plan-chip small {
  background: var(--butter);
  border: 2px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 6px 9px;
  text-transform: uppercase;
}

.life-noticed-card {
  animation: slideUp 320ms ease-out;
  background: linear-gradient(135deg, var(--paper), #e8fff1 58%, #fff2bf);
  border: 3px solid var(--line);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--line);
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 16px;
}

.life-noticed-card > div:first-child small {
  background: var(--ink);
  border-radius: 999px;
  color: var(--cream);
  display: inline-block;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.life-noticed-card > div:first-child strong {
  display: block;
  font-size: clamp(22px, 2vw, 34px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.noticed-item {
  background: rgba(255, 250, 240, 0.78);
  border: 2px dashed rgba(21, 21, 21, 0.36);
  border-radius: 18px;
  padding: 12px;
}

.noticed-item p {
  color: #302822;
  font-size: 15px;
  font-weight: 950;
  margin: 0 0 8px;
}

.noticed-item span,
.world-detail span,
.adaptive-rule span,
.capacity-context small {
  color: #5b5048;
  display: block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sticker-layer {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.sticker {
  animation: stickerPop 900ms ease-out forwards;
  font-size: 36px;
  left: 50%;
  position: absolute;
  top: 54px;
}

.hidden {
  display: none !important;
}

.alive-panel {
  animation: slideUp 340ms ease-out;
  background: var(--lilac);
}

.ritual-grid {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  background: var(--cream);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--line);
  padding: 18px;
}

.mini-card h2 {
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.mini-card p {
  color: #4a3b32;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 12px;
}

.proof-card {
  background: var(--butter);
}

.mode-card {
  background: var(--lilac);
}

.receipt-card {
  background: var(--mint);
}

.account-card {
  background: var(--paper);
  grid-column: 1 / -1;
}

.account-form,
.account-signed-in {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.account-signed-in {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.account-signed-in strong {
  overflow-wrap: anywhere;
}

.account-form button,
.account-signed-in button,
.shared-home-link {
  background: var(--butter);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  min-height: 52px;
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.account-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.share-view {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.share-view-card {
  background:
    linear-gradient(180deg, transparent 0 14px, rgba(21, 21, 21, 0.05) 15px),
    var(--paper);
  background-size: 100% 16px;
  border: 4px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  max-width: 760px;
  padding: clamp(24px, 5vw, 54px);
  width: min(100%, 760px);
}

.share-view-card h1 {
  font-size: clamp(42px, 8vw, 86px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.share-view-card pre {
  font: inherit;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 900;
  line-height: 1.4;
  white-space: pre-wrap;
}

.share-view-card p {
  background: var(--mint);
  border: 2px dashed rgba(21, 21, 21, 0.36);
  border-radius: 18px;
  font-weight: 900;
  padding: 14px;
}

body.adapt-morning .proof-card,
body.adapt-survival .proof-card,
body.adapt-comeback .proof-card {
  box-shadow: 9px 9px 0 var(--line);
  order: -2;
  transform: rotate(-1deg) scale(1.01);
}

body.adapt-midday .goal-card,
body.adapt-locked .goal-card {
  box-shadow: 12px 12px 0 var(--line);
  transform: rotate(-0.35deg) scale(1.01);
}

body.adapt-lateNight .recharge-card,
body.adapt-lateNight .notes-card,
body.adapt-lateNight .inbox-card {
  box-shadow: 10px 10px 0 var(--line);
  transform: rotate(0deg) scale(1.01);
}

body.adapt-offline .screen-card,
body.adapt-offline .life-noticed-card {
  box-shadow: 10px 10px 0 var(--line);
  transform: rotate(-0.4deg);
}

body.adapt-survival .printer-grid,
body.adapt-survival .mission-heading,
body.adapt-comeback .printer-grid {
  opacity: 0.58;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.proof-chip {
  align-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 1000;
  min-height: 36px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.proof-chip.active {
  background: var(--green);
  transform: rotate(-1deg);
}

.mode-stack {
  display: grid;
  gap: 10px;
}

.operating-mode {
  align-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  display: grid;
  gap: 2px 9px;
  grid-template-columns: auto 1fr;
  min-height: 54px;
  padding: 10px;
  text-align: left;
}

.operating-mode span {
  font-size: 24px;
  grid-row: span 2;
}

.operating-mode strong {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.operating-mode small {
  color: #59493f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.operating-mode.active {
  background: var(--green);
}

.receipt-preview {
  background: rgba(255, 250, 240, 0.84);
  border: 2px dashed rgba(21, 21, 21, 0.38);
  border-radius: 16px;
  color: #3c312b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  max-height: 210px;
  overflow: auto;
  padding: 12px;
}

.receipt-preview pre {
  font: inherit;
  margin: 0;
  white-space: pre-wrap;
}

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

.receipt-actions button,
.note-delete {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  min-height: 38px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.alive-state-grid,
.meal-grid,
.mode-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.state-button,
.meal-button,
.mode-button,
.time-button {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-weight: 1000;
  min-height: 66px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.state-button.active,
.mode-button.active,
.time-button.active {
  background: var(--green);
  color: var(--ink);
  transform: rotate(-1deg);
}

.section-heading {
  margin: clamp(42px, 7vw, 96px) 0 24px;
  max-width: 1040px;
}

.section-heading h2 {
  font-size: clamp(38px, 5.2vw, 84px);
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--pink);
}

.dashboard-heading {
  margin-top: clamp(58px, 8vw, 110px);
}

.os-grid {
  align-items: stretch;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.world-card {
  background: var(--green);
  grid-column: span 4;
  transform: rotate(-0.6deg);
}

.notes-card {
  background: var(--butter);
  grid-column: span 4;
  transform: rotate(0.7deg);
}

.inbox-card {
  background: var(--sky);
  grid-column: span 4;
  transform: rotate(-0.4deg);
}

.printer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
}

.locked-card {
  background: var(--peach);
  transform: rotate(-0.5deg);
}

.printer-card {
  background: linear-gradient(135deg, var(--paper), #fff0f7 48%, #e7fff1);
  transform: rotate(0.35deg);
}

.printer-help {
  color: #4a3b32;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 16px;
}

.single-line-input {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 3px 3px 0 rgba(21, 21, 21, 0.08);
  color: var(--ink);
  font-weight: 850;
  min-height: 56px;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.artifact-type-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.artifact-type,
.receipt-toggle {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 17px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
  min-height: 52px;
  padding: 10px;
  text-align: left;
}

.artifact-type span {
  display: inline-block;
  font-size: 19px;
  margin-right: 6px;
}

.artifact-type.active,
.receipt-toggle.active {
  background: var(--green);
  transform: rotate(-0.5deg);
}

.receipt-element-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.receipt-toggle {
  border-width: 2px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  font-size: 12px;
  min-height: 38px;
  padding: 8px 11px;
  text-transform: uppercase;
}

.note-picker {
  color: #46382f;
  display: grid;
  font-size: 12px;
  font-weight: 1000;
  gap: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.note-picker select {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 12px;
}

.printer-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.printer-actions .dark-button {
  margin-top: 0;
}

.printer-actions button:not(.dark-button) {
  background: var(--mint);
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  min-height: 56px;
  padding: 10px;
  text-transform: uppercase;
}

.share-preview {
  background:
    linear-gradient(180deg, transparent 0 14px, rgba(21, 21, 21, 0.05) 15px),
    var(--paper);
  background-size: 100% 16px;
  border: 4px solid var(--line);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--line);
  color: var(--ink);
  margin-top: 20px;
  min-height: 260px;
  padding: clamp(20px, 3vw, 34px);
}

.share-preview-kicker {
  background: var(--ink);
  border-radius: 999px;
  color: var(--cream);
  display: inline-block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding: 8px 11px;
  text-transform: uppercase;
}

.share-preview pre {
  font: inherit;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 900;
  line-height: 1.38;
  margin: 0;
  white-space: pre-wrap;
}

.share-caption {
  background: var(--butter);
  border: 2px dashed rgba(21, 21, 21, 0.45);
  border-radius: 16px;
  color: #42362f;
  font-size: 14px;
  font-weight: 900;
  margin: 18px 0 0;
  padding: 12px;
}

.locked-in-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.locked-in-item {
  background: rgba(255, 250, 240, 0.86);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.7);
  color: #342b26;
  display: grid;
  gap: 7px;
  font-weight: 850;
  line-height: 1.35;
  padding: 14px;
}

.locked-in-item strong {
  font-size: 18px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.locked-in-item small {
  color: #5f4d42;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-text {
  background: rgba(255, 250, 240, 0.82);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--line);
  color: #302822;
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 950;
  line-height: 1.3;
  padding: 20px;
}

.world-detail-grid,
.adaptive-rules-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.world-detail,
.adaptive-rule {
  background: rgba(255, 250, 240, 0.86);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.72);
  color: #342b26;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.world-detail strong,
.adaptive-rule strong {
  display: block;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.adaptive-rules-card {
  background: linear-gradient(135deg, var(--paper), #f3e8ff 50%, #e8fff1);
  grid-column: span 4;
  transform: rotate(-0.25deg);
}

.adaptive-rule.accepted {
  background: var(--mint);
}

.adaptive-rule.triggered {
  box-shadow: 7px 7px 0 var(--line);
}

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

.rule-actions button {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  min-height: 38px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.small-input {
  min-height: 110px;
}

.notes-list,
.future-inbox-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.note-item,
.future-message,
.empty-soft {
  background: rgba(255, 250, 240, 0.86);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.7);
  color: #342b26;
  font-weight: 850;
  line-height: 1.35;
  padding: 14px;
}

.note-item p,
.future-message p,
.empty-soft {
  margin: 0;
}

.note-item small,
.future-message small {
  color: #5f4d42;
  display: block;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  margin: 8px 0;
  text-transform: uppercase;
}

.future-message.locked {
  opacity: 0.68;
}

.future-message.available {
  background: var(--mint);
}

.future-message.opened {
  opacity: 0.76;
}

.main-grid {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.feature-card {
  min-height: 620px;
  padding: clamp(22px, 3vw, 36px);
}

.goal-card {
  background: var(--sky);
  transform: rotate(-0.8deg);
}

.recharge-card {
  background: var(--pink);
  transform: rotate(0.8deg);
}

.recharge-card > *:not(.glow) {
  position: relative;
  z-index: 1;
}

.glow {
  border: 3px solid var(--line);
  border-radius: 999px;
  position: absolute;
}

.glow-one {
  animation: blobWiggle 8s ease-in-out infinite;
  background: var(--butter);
  height: 180px;
  right: -70px;
  top: -60px;
  width: 180px;
}

.glow-two {
  animation: blobWiggle 10s ease-in-out infinite reverse;
  background: var(--mint);
  bottom: -70px;
  height: 200px;
  left: -72px;
  width: 200px;
}

.soft-input {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: inset 3px 3px 0 rgba(21, 21, 21, 0.08);
  color: var(--ink);
  font-weight: 800;
  min-height: 132px;
  outline: none;
  padding: 18px;
  resize: vertical;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.soft-input:focus,
.screen-inputs input:focus {
  box-shadow: 5px 5px 0 var(--line), inset 3px 3px 0 rgba(21, 21, 21, 0.08);
  transform: translate(-2px, -2px);
}

.button-row {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.button-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.capacity-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
}

.capacity-button {
  background: rgba(255, 250, 240, 0.86);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 10px;
  text-align: left;
}

.capacity-button span {
  font-size: 22px;
}

.capacity-button strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capacity-button small {
  color: #55483f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.capacity-button.active {
  background: var(--butter);
  transform: rotate(-1deg);
}

.dark-button {
  background: var(--ink);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 5px 5px 0 rgba(21, 21, 21, 0.36);
  color: var(--cream);
  font-weight: 1000;
  letter-spacing: 0.04em;
  margin-top: 14px;
  min-height: 56px;
  text-transform: uppercase;
  width: 100%;
}

.dark-button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.ai-planner-status {
  background: rgba(255, 250, 240, 0.72);
  border: 2px dashed rgba(21, 21, 21, 0.3);
  border-radius: 999px;
  color: #44372f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  margin: 12px 0 0;
  padding: 9px 12px;
}

.goal-output {
  color: #42362f;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 18px;
}

.capacity-context {
  background: rgba(255, 250, 240, 0.78);
  border: 2px dashed rgba(21, 21, 21, 0.38);
  border-radius: 18px;
  color: #352d28;
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
}

.capacity-context strong {
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.capacity-context span {
  font-size: 13px;
  font-weight: 850;
}

.mission-card {
  animation: softGlow 2.6s ease-in-out infinite;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--line);
  color: #27211e;
  font-size: 18px;
  line-height: 1.45;
  padding: 20px;
  transform: rotate(1deg);
}

.task-check-button {
  background: var(--mint);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  margin-top: 16px;
  min-height: 44px;
  padding: 10px 14px;
  text-transform: uppercase;
  width: fit-content;
}

.task-check-button.done {
  background: var(--green);
}

.schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.schedule-item {
  background: rgba(255, 250, 240, 0.88);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.7);
  color: #2d2622;
  display: flex;
  gap: 12px;
  line-height: 1.38;
  padding: 15px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.schedule-item.today {
  background: var(--green);
  box-shadow: 6px 6px 0 var(--line);
  transform: rotate(-0.7deg);
}

.schedule-item.done {
  background: rgba(255, 250, 240, 0.62);
  opacity: 0.72;
}

.schedule-item.done span {
  text-decoration: line-through;
  text-decoration-color: rgba(21, 21, 21, 0.45);
  text-decoration-thickness: 2px;
}

.schedule-check {
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 18px;
  font-weight: 1000;
  height: 34px;
  justify-content: center;
  margin-top: 2px;
  padding: 0;
  width: 34px;
}

.schedule-item.done .schedule-check {
  background: var(--green);
}

.schedule-item small {
  color: #42362f;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.schedule-item strong {
  color: var(--ink);
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.schedule-note {
  background: rgba(255, 250, 240, 0.72);
  border: 2px dashed rgba(21, 21, 21, 0.34);
  border-radius: 16px;
  color: #3e342f;
  font-size: 14px;
  font-weight: 850;
  margin-top: 12px;
  padding: 12px;
}

.response-mood {
  background: var(--mint);
  border: 2px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.mission-card small {
  background: var(--green);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.mission-card strong {
  color: var(--ink);
  display: block;
  font-size: 26px;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.response-card {
  animation: slideUp 360ms ease-out;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--line);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.48;
  margin-top: 18px;
  padding: 18px;
}

.response-step {
  background: var(--butter);
  border: 3px solid var(--line);
  border-radius: 18px;
  margin-top: 14px;
  padding: 14px;
}

.response-step small {
  color: var(--ink);
  display: block;
  font-size: 12px;
  font-weight: 1000;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.response-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.response-actions button {
  background: var(--mint);
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-weight: 1000;
  min-height: 46px;
}

.dashboard-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-card {
  padding: clamp(20px, 2.3vw, 32px);
}

.meals-card {
  background: var(--mint);
  grid-column: span 5;
  transform: rotate(0.8deg);
}

.screen-card {
  background: var(--peach);
  grid-column: span 3;
  transform: rotate(-1deg);
}

.summary-card {
  background: var(--lilac);
  grid-column: span 4;
  transform: rotate(0.5deg);
}

.history-panel {
  grid-column: 1 / -1;
}

.calendar-panel {
  grid-column: 1 / -1;
}

.history-panel .glass-card {
  background: var(--paper);
  display: block;
}

.calendar-panel .glass-card {
  background: linear-gradient(135deg, var(--sky), var(--mint));
}

.calendar-help {
  color: #45372f;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 18px;
}

.calendar-title-row {
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px;
}

.calendar-title-row small,
.calendar-title-row span {
  color: #57473d;
  display: block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-title-row strong {
  color: var(--ink);
  display: block;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 4px;
  text-transform: uppercase;
}

.weekly-calendar-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

.calendar-day,
.calendar-empty {
  background: rgba(255, 250, 240, 0.9);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 5px 5px 0 rgba(21, 21, 21, 0.75);
  color: #322923;
  min-height: 230px;
  padding: 16px;
  position: relative;
}

.calendar-day.today {
  background: var(--butter);
  transform: rotate(-0.7deg);
}

.calendar-day.done {
  background: rgba(255, 250, 240, 0.66);
  opacity: 0.72;
}

.calendar-day small {
  background: var(--ink);
  border-radius: 999px;
  color: var(--cream);
  display: inline-block;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 6px 9px;
  text-transform: uppercase;
}

.calendar-day strong,
.calendar-empty strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.calendar-day p,
.calendar-empty span {
  color: #46382f;
  display: block;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 44px;
}

.calendar-day .schedule-check {
  bottom: 14px;
  position: absolute;
  right: 14px;
}

.calendar-empty {
  min-height: auto;
}

.meal-button {
  display: grid;
  gap: 6px;
  min-height: 98px;
  place-items: center;
}

.meal-button:nth-child(1) {
  background: var(--butter);
}

.meal-button:nth-child(2) {
  background: var(--sky);
}

.meal-button:nth-child(3) {
  background: var(--pink);
}

.meal-button:nth-child(4) {
  background: var(--green);
}

.meal-button::after,
.state-button::after,
.mode-button::after,
.time-button::after {
  background: rgba(255, 255, 255, 0.38);
  content: "";
  height: 140%;
  left: -110%;
  position: absolute;
  top: -20%;
  transform: rotate(18deg);
  transition: left 420ms ease;
  width: 34%;
}

.meal-button:hover::after,
.state-button:hover::after,
.mode-button:hover::after,
.time-button:hover::after {
  left: 130%;
}

.meal-emoji {
  font-size: 32px;
}

.live-time-card {
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--line);
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
}

.live-time-card span {
  font-size: 42px;
}

.live-time-card p {
  color: var(--brown);
  font-size: 12px;
  font-weight: 1000;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.live-time-card strong {
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.screen-inputs {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.screen-inputs input {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 1000;
  min-height: 70px;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.screen-inputs span {
  color: #49382e;
  display: block;
  font-size: 13px;
  font-weight: 1000;
  margin-top: 8px;
  text-transform: uppercase;
}

.summary-row {
  align-items: center;
  border-bottom: 2px dashed rgba(21, 21, 21, 0.24);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 0;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span:first-child {
  color: #43352f;
  font-weight: 900;
}

.summary-row span:last-child {
  font-weight: 1000;
  text-align: right;
}

.history-item {
  background: var(--cream);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--line);
  margin-bottom: 16px;
  padding: 18px;
}

.history-item.today {
  background: var(--green);
  transform: rotate(-0.5deg);
}

.history-item.empty {
  background: rgba(255, 250, 240, 0.62);
  opacity: 0.76;
}

.history-item h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.history-task {
  background: rgba(255, 250, 240, 0.76);
  border: 2px dashed rgba(21, 21, 21, 0.32);
  border-radius: 14px;
  color: #3f342f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  margin: 12px 0 4px;
  padding: 10px;
}

.cute-press {
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.cute-press:hover {
  filter: saturate(1.08);
  transform: translate(-3px, -3px) rotate(-0.6deg);
}

.cute-press:active {
  box-shadow: 1px 1px 0 var(--line);
  transform: translate(3px, 3px) scale(0.98);
}

.tap-pop {
  animation: tapPop 340ms ease-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1) rotate(-0.4deg);
  }
  50% {
    transform: scale(1.012) rotate(0.4deg);
  }
}

@keyframes consoleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-0.2deg);
  }
}

@keyframes meterShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes stagePop {
  0% {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(0.4deg) scale(1);
  }
  45% {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-1deg) scale(1.035);
  }
  100% {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(0.4deg) scale(1);
  }
}

@keyframes tapPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.035) rotate(-0.8deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes potatoSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.65) rotate(0deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), -88px) scale(1.35) rotate(var(--spark-r));
  }
}

@keyframes potatoBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-8px) rotate(4deg) scale(1.05);
  }
}

@keyframes potatoBreathe {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(-1deg);
  }
  50% {
    transform: translateY(-5px) scale(1.025) rotate(1deg);
  }
}

@keyframes potatoSag {
  0%,
  100% {
    transform: translateY(1px) scaleX(1.02) scaleY(0.98) rotate(-2deg);
  }
  50% {
    transform: translateY(7px) scaleX(1.06) scaleY(0.94) rotate(2deg);
  }
}

@keyframes shineSweep {
  0%,
  45% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes sickPotato {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg) scale(0.94);
  }
  50% {
    transform: translateY(3px) rotate(3deg) scale(0.9);
  }
}

@keyframes stickerPop {
  0% {
    opacity: 0;
    transform: translate(-50%, 22px) scale(0.65) rotate(0deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), -116px) scale(1.35) rotate(var(--r));
  }
}

@keyframes softGlow {
  0%,
  100% {
    transform: rotate(1deg) scale(1);
  }
  50% {
    transform: rotate(-0.6deg) scale(1.012);
  }
}

@keyframes mirrorBlink {
  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    filter: saturate(1.25);
    transform: translateY(-2px) rotate(1deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes blobWiggle {
  0%,
  100% {
    border-radius: 42% 58% 62% 38% / 42% 38% 62% 58%;
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    border-radius: 63% 37% 42% 58% / 52% 64% 36% 48%;
    transform: translate3d(24px, -18px, 0) rotate(10deg);
  }
}

@media (min-width: 1200px) {
  .hero-console {
    position: relative;
    top: auto;
  }

  #history-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-item {
    margin-bottom: 0;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .main-grid,
  .printer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    align-items: start;
    display: grid;
    min-height: auto;
    padding-block: 36px 8px;
  }

  .hero-copy::before {
    display: none;
  }

  .hero-console {
    align-self: stretch;
    grid-template-columns: 1fr;
  }

  .console-topline {
    grid-column: auto;
  }

  .meals-card,
  .screen-card,
  .summary-card,
  .world-card,
  .adaptive-rules-card,
  .notes-card,
  .inbox-card,
  .calendar-panel {
    grid-column: span 6;
  }

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

  .printer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 18px 14px 44px;
  }

  .site-nav {
    align-items: stretch;
    flex-direction: column;
    position: static;
  }

  .tabs {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 16vw, 72px);
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    order: 2;
    padding-block: 12px 0;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
    max-width: 100%;
  }

  .hero-dek,
  .hero-ticker,
  .sticker-board {
    display: none;
  }

  .hero-console {
    order: 1;
    padding: 16px;
  }

  .hero-dek {
    font-size: 17px;
  }

  .hero-stats,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .streak-card {
    min-height: 84px;
    padding: 12px;
  }

  .streak-number {
    font-size: 44px;
    min-width: 58px;
  }

  .streak-card h2 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .streak-card p {
    font-size: 13px;
    line-height: 1.2;
  }

  .potato-card {
    gap: 14px;
    grid-template-columns: minmax(104px, 0.44fr) minmax(0, 1fr);
    min-height: 0;
    padding: 14px;
    text-align: left;
  }

  .potato-stage-art {
    max-width: 118px;
    min-width: 96px;
  }

  .potato-card h2 {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .potato-stage-kicker,
  .potato-next-action,
  .potato-card .muted-line {
    font-size: 12px;
  }

  .potato-meter {
    height: 18px;
    margin: 10px 0 8px;
  }

  .potato-emoji {
    font-size: clamp(62px, 18vw, 92px);
  }

  .alive-button {
    min-height: 148px;
    padding: 22px 16px;
  }

  .alive-button span {
    font-size: clamp(34px, 11vw, 52px);
  }

  .meals-card,
  .screen-card,
  .summary-card,
  .world-card,
  .adaptive-rules-card,
  .notes-card,
  .inbox-card,
  .calendar-panel,
  .history-panel {
    grid-column: auto;
  }

  .weekly-calendar-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .calendar-title-row {
    align-items: start;
    display: grid;
  }

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

  .alive-state-grid,
  .meal-grid,
  .mode-grid,
  .capacity-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    min-height: auto;
  }
}

@media (max-width: 440px) {
  .button-row.three,
  .capacity-row,
  .screen-inputs,
  .response-actions,
  .receipt-actions,
  .artifact-type-grid,
  .printer-actions {
    grid-template-columns: 1fr;
  }

  .alive-state-grid,
  .meal-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }
}

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