:root {
  --ink: #1b2030;
  --muted: #626678;
  --paper: #fff9ed;
  --line: rgba(27, 32, 48, 0.15);
  --red: #ff4f5f;
  --green: #00a878;
  --blue: #3d7eff;
  --yellow: #ffd166;
  --pink: #ff8ab3;
  --violet: #8f67ff;
  --sky: #73d2ff;
  --shadow: 0 26px 70px rgba(44, 49, 74, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f8f3ff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 231, 128, 0.74), rgba(156, 224, 255, 0.6) 48%, rgba(255, 171, 207, 0.56)),
    #f8f3ff;
}

#cityCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 42px;
}

.topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-dots {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.step-dots span {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(27, 32, 48, 0.18);
}

.step-dots span.active {
  background: var(--ink);
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-left: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.8);
}

.lang-switch button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--paper);
}

.home-lang {
  position: absolute;
  right: clamp(22px, 4vw, 50px);
  bottom: clamp(20px, 4vw, 42px);
  z-index: 6;
  border: 2px solid #19112c;
  background: #fff5c7;
  box-shadow: 4px 4px 0 rgba(25, 17, 44, 0.2);
}

.home-lang button.active {
  background: #19112c;
  color: #fff9ed;
}

.hidden {
  visibility: hidden;
}

.screen {
  min-height: calc(100vh - 120px);
  display: none;
  align-items: center;
}

.screen.active {
  display: grid;
  animation: rise 0.42s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen[data-screen="home"] {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 52px;
}

.home-copy {
  padding-bottom: 8vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: #006b55;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(4.4rem, 10vw, 9.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow: 8px 8px 0 rgba(255, 209, 102, 0.54);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5.5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.stack-title span {
  display: block;
}

.tagline,
.question-panel p,
.quest-card p,
.local-note,
.log-entry p {
  color: var(--muted);
  line-height: 1.7;
}

.tagline {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: clamp(1.18rem, 2vw, 1.72rem);
}

.primary-button,
.secondary-button,
.ghost-button {
  padding: 0 18px;
  font-weight: 850;
}

.primary-button {
  background: linear-gradient(135deg, var(--ink), #4a2f9f);
  color: white;
  box-shadow: 0 14px 32px rgba(74, 47, 159, 0.24);
}

.secondary-button,
.ghost-button,
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 248, 234, 0.82);
  color: var(--ink);
}

.ghost-button {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.38);
}

.phone-preview,
.question-panel,
.quest-card,
.log-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 237, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.phone-preview {
  min-height: 560px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  transform: rotate(1.2deg);
  outline: 8px solid rgba(255, 255, 255, 0.42);
}

.preview-header,
.quest-meta,
.quest-actions,
.city-row {
  display: flex;
  align-items: center;
}

.preview-header {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.ticket {
  min-height: 340px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff3ca;
}

.ticket p {
  margin: 0;
  color: #007b66;
  font-weight: 900;
}

.ticket h2 {
  margin: 0;
  font-size: 2.35rem;
}

.ticket-art {
  height: 132px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f7efe2;
}

.ticket-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-feed {
  display: grid;
  gap: 8px;
}

.mini-feed span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.question-panel {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
}

.question-panel.wide {
  width: min(980px, 100%);
}

.city-row {
  gap: 10px;
  margin: 18px 0 22px;
}

.selected-city {
  min-height: 56px;
  flex: 1;
  display: grid;
  align-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.selected-city span {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.selected-city strong {
  font-size: 1.3rem;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  outline: 0;
}

input {
  height: 48px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

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

.locate-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.map-card {
  position: relative;
  min-height: 360px;
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--focus-x, 45%) var(--focus-y, 42%), rgba(255, 209, 102, 0.36), transparent 18%),
    radial-gradient(circle at 18% 30%, rgba(115, 210, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(143, 103, 255, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(11, 20, 42, 0.98), rgba(26, 43, 83, 0.95)),
    #1b2030;
  box-shadow: inset 0 0 80px rgba(115, 210, 255, 0.12), 0 22px 55px rgba(27, 32, 48, 0.22);
}

.world-map,
.map-focus {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-map {
  width: 100%;
  height: 100%;
  padding: 18px;
  opacity: 0.95;
}

.continents path {
  fill: rgba(205, 232, 244, 0.26);
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 3;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.2));
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.route-line {
  fill: none;
  stroke: rgba(255, 209, 102, 0.42);
  stroke-width: 3;
  stroke-dasharray: 9 12;
}

.route-line.soft {
  stroke: rgba(115, 210, 255, 0.24);
  stroke-width: 2;
}

.map-focus {
  left: calc(var(--focus-x, 45%) - 120px);
  top: calc(var(--focus-y, 42%) - 120px);
  width: 240px;
  height: 240px;
  inset: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.44), rgba(255, 79, 95, 0.12) 34%, rgba(115, 210, 255, 0.1) 54%, transparent 72%);
  filter: blur(1px);
  transition: left 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.city-chips {
  position: absolute;
  inset: 0;
}

.city-chips button {
  position: absolute;
  min-height: 34px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(236, 246, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(115, 210, 255, 0.08);
  font-weight: 800;
  color: #1b2030;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.city-chips button::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--red);
}

.city-chips button.active {
  background: #fff9ed;
  color: white;
  transform: translate(-50%, -50%) scale(1.08);
  color: #1b2030;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 0 9px rgba(255, 209, 102, 0.18);
}

.city-chips button.active::before {
  background: var(--yellow);
}

.city-chips:hover button:not(:hover):not(.active) {
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(0.92);
}

.city-chips button:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.13);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 0 10px rgba(255, 209, 102, 0.2);
}

.next-button {
  width: 100%;
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice-group label {
  position: relative;
}

.choice-group input {
  position: absolute;
  opacity: 0;
}

.choice-group span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #4b443b;
  text-align: center;
}

.choice-group input:checked + span {
  border-color: #4a2f9f;
  background: #d9ccff;
  color: var(--ink);
}

.quest-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.quest-visual {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff0a6;
  box-shadow: var(--shadow);
}

.sun-mark {
  position: absolute;
  top: 34px;
  right: 34px;
  width: 88px;
  height: 88px;
  border: 14px solid rgba(255, 248, 234, 0.78);
  border-radius: 50%;
}

.visual-caption {
  position: absolute;
  left: 26px;
  top: 28px;
  z-index: 2;
  max-width: 72%;
  padding: 12px 14px;
  border: 1px solid rgba(29, 26, 22, 0.16);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.74);
}

.visual-caption span,
.visual-caption strong {
  display: block;
}

.visual-caption span {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
}

.visual-caption strong {
  margin-top: 2px;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.02;
}

.visual-illustration {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 108px 24px 24px;
}

.visual-illustration svg {
  width: min(92%, 430px);
  height: auto;
  filter: drop-shadow(0 20px 22px rgba(27, 32, 48, 0.18));
}

.sun-mark,
.visual-road,
.visual-shape {
  display: none;
}

.quest-visual[data-art="food"] {
  background: #f7d8d5;
}

.quest-visual[data-art="photo"] {
  background: #dbeaf0;
}

.quest-visual[data-art="sound"] {
  background: #ead9df;
}

.quest-visual[data-art="shop"] {
  background: #dce9d1;
}

.quest-card {
  min-height: 520px;
  padding: clamp(22px, 4vw, 38px);
}

.quest-card h2 {
  font-size: clamp(2.4rem, 5vw, 5.2rem);
}

.task-box {
  margin: 18px 0;
  padding: 18px;
  border: 2px solid rgba(27, 32, 48, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.36), rgba(255, 249, 237, 0.82));
}

.task-box span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #4a2f9f;
  font-size: 0.82rem;
  font-weight: 950;
}

.task-box h2 {
  margin-bottom: 12px;
}

.task-box p {
  margin: 0;
  color: #33384a;
  font-size: 1.05rem;
}

.local-note {
  margin: 20px 0;
  padding: 14px;
  border-left: 5px solid var(--violet);
  background: rgba(255, 255, 255, 0.58);
}

.live-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.live-panel > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.live-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f7ead8;
  box-shadow: inset 0 0 0 1px rgba(27, 32, 48, 0.08);
}

.live-icon svg {
  width: 42px;
  height: 42px;
}

.live-copy {
  min-width: 0;
}

.live-panel span {
  display: block;
  margin-bottom: 4px;
  color: #006b55;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-panel strong {
  display: block;
  margin-bottom: 4px;
}

.live-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.live-panel a {
  color: var(--ink);
  font-weight: 900;
}

.quest-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.quest-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #4b443b;
  font-size: 0.86rem;
}

.quest-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.log-panel {
  margin-top: 18px;
  padding: 18px;
}

.output-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.output-intro h3 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.12;
}

.output-intro p {
  margin: 0;
}

.output-controls {
  display: grid;
  gap: 14px;
}

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

.output-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.output-note {
  grid-column: 1 / -1;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  line-height: 1.65;
}

.log-form {
  display: grid;
  gap: 12px;
}

.full {
  width: 100%;
}

.log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.log-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.52);
}

.log-entry h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.log-entry p {
  margin: 0;
}

@media (max-width: 900px) {
  .screen[data-screen="home"],
  .quest-layout,
  .choice-grid,
  .output-panel {
    grid-template-columns: 1fr;
  }

  .home-copy {
    padding-bottom: 0;
  }

  .phone-preview,
  .quest-visual,
  .quest-card {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 14px;
  }

  h1 {
    max-width: 5em;
    font-size: clamp(3.85rem, 17vw, 5.7rem);
    line-height: 0.98;
  }

  .question-panel,
  .quest-card,
  .log-panel {
    padding: 16px;
  }

  .map-card {
    min-height: 300px;
  }

  .city-chips button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .city-row,
  .quest-actions,
  .output-actions {
    align-items: stretch;
  }

  .quest-actions button,
  .output-actions button {
    width: 100%;
  }

  .choice-group.compact {
    grid-template-columns: 1fr;
  }
}

/* Editorial magazine redesign */
:root {
  --ink: #222222;
  --muted: #68615b;
  --paper: #fbf8ef;
  --line: rgba(34, 34, 34, 0.22);
  --red: #e9553f;
  --green: #4f6f45;
  --blue: #6f9bb0;
  --yellow: #f0c66b;
  --pink: #e9b8bd;
  --violet: #6f5aa8;
  --shadow: 0 16px 44px rgba(34, 34, 34, 0.08);
}

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

.scene {
  background:
    linear-gradient(rgba(34, 34, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 34, 34, 0.025) 1px, transparent 1px),
    #fbf8ef;
  background-size: 64px 64px, 64px 64px, auto;
}

#cityCanvas {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.app-shell {
  width: min(1240px, calc(100% - 42px));
  padding: 18px 0 58px;
}

.topbar {
  min-height: 64px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.22);
  margin-bottom: 22px;
}

.masthead {
  position: absolute;
  left: 50%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  line-height: 1.1;
}

.masthead strong {
  font-size: 1rem;
}

.masthead span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.step-dots span {
  width: 28px;
  height: 3px;
  background: rgba(34, 34, 34, 0.18);
}

.step-dots span.active {
  background: var(--ink);
}

.ghost-button {
  min-height: 38px;
  border-color: rgba(34, 34, 34, 0.42);
  border-radius: 999px;
  background: transparent;
}

.screen {
  min-height: calc(100vh - 140px);
}

.screen[data-screen="home"] {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 6vw, 92px);
}

.home-copy {
  align-self: center;
  padding-bottom: 0;
}

.eyebrow {
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: none;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.6rem, 13vw, 13rem);
  font-weight: 700;
  line-height: 0.82;
  text-shadow: none;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.93;
}

.tagline {
  max-width: 500px;
  color: #383330;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: none;
}

.primary-button {
  background: var(--ink);
  color: var(--paper);
}

.secondary-button {
  background: transparent;
}

.phone-preview,
.question-panel,
.quest-card,
.log-panel {
  border: 1px solid rgba(34, 34, 34, 0.22);
  border-radius: 26px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.phone-preview {
  min-height: 610px;
  padding: 24px;
  align-self: center;
  transform: rotate(-1.2deg);
  outline: none;
}

.phone-preview::before {
  content: "FIELD NOTE";
  align-self: end;
  width: max-content;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.preview-header {
  border-bottom: 1px solid rgba(34, 34, 34, 0.18);
  padding-bottom: 14px;
}

.ticket {
  min-height: 360px;
  border: 0;
  background: transparent;
  padding: 10px 0 0;
}

.ticket p {
  color: var(--red);
}

.ticket h2 {
  max-width: 320px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 3.7rem);
  line-height: 0.93;
}

.ticket-art {
  height: 180px;
  margin-top: 24px;
  border-color: rgba(34, 34, 34, 0.18);
  border-radius: 24px;
}

.mini-feed {
  grid-template-columns: repeat(3, 1fr);
}

.mini-feed span {
  border: 1px solid rgba(34, 34, 34, 0.22);
  border-radius: 999px;
  background: transparent;
  text-align: center;
}

.question-panel {
  width: min(1040px, 100%);
  padding: clamp(24px, 4vw, 54px);
}

.question-panel.wide {
  width: min(1060px, 100%);
}

.question-panel > p:not(.eyebrow) {
  max-width: 840px;
  color: #4c4642;
  font-size: 1.1rem;
}

.map-card {
  min-height: 430px;
  border: 1px solid rgba(34, 34, 34, 0.25);
  border-radius: 28px;
  background:
    radial-gradient(circle at var(--focus-x, 45%) var(--focus-y, 42%), rgba(233, 184, 189, 0.55), transparent 17%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.8), rgba(239, 232, 213, 0.9)),
    #f4eddf;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.world-map {
  padding: 18px 28px;
}

.world-map rect {
  opacity: 0.35;
}

.continents path {
  fill: rgba(79, 111, 69, 0.3);
  stroke: rgba(34, 34, 34, 0.24);
  stroke-width: 2.4;
  filter: none;
}

.route-line {
  stroke: rgba(217, 74, 58, 0.34);
  stroke-width: 2;
}

.route-line.soft {
  stroke: rgba(111, 155, 176, 0.34);
}

.map-focus {
  background: radial-gradient(circle, rgba(240, 198, 107, 0.5), rgba(233, 184, 189, 0.2) 42%, transparent 70%);
}

.city-chips button {
  border: 1px solid rgba(34, 34, 34, 0.28);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 8px 22px rgba(34, 34, 34, 0.12);
}

.city-chips button.active,
.city-chips button:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px rgba(34, 34, 34, 0.18);
}

.selected-city,
.choice-group span,
input,
textarea {
  border-color: rgba(34, 34, 34, 0.24);
  background: rgba(255, 253, 247, 0.74);
}

.choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.choice-group span {
  justify-content: flex-start;
  padding: 13px 14px;
  border-radius: 18px;
}

.choice-group input:checked + span {
  border-color: var(--ink);
  background: #f3dfc7;
}

.quest-layout {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
}

.quest-visual {
  min-height: 620px;
  border: 0;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.visual-caption {
  left: 28px;
  top: 28px;
  border: 1px solid rgba(34, 34, 34, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.82);
}

.visual-caption span {
  color: var(--red);
}

.quest-card {
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.task-box {
  margin: 20px 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(34, 34, 34, 0.25);
  border-radius: 28px;
  background: #fffdf7;
}

.task-box span {
  color: var(--red);
}

.task-box h2 {
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.task-box p {
  color: #3a342f;
  font-size: 1.14rem;
  line-height: 1.75;
}

.local-note {
  border-left: 0;
  border-top: 1px solid rgba(34, 34, 34, 0.22);
  border-bottom: 1px solid rgba(34, 34, 34, 0.22);
  background: transparent;
  color: #4c4642;
}

.live-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.live-panel > div {
  grid-template-columns: 1fr;
  border-color: rgba(34, 34, 34, 0.18);
  border-radius: 22px;
  background: #fffdf7;
}

.live-icon {
  width: 68px;
  height: 68px;
  background: #f3dfc7;
}

.quest-meta span {
  border-color: rgba(34, 34, 34, 0.22);
  border-radius: 999px;
  background: transparent;
}

.log-panel {
  border-radius: 28px;
}

@media (max-width: 900px) {
  .masthead {
    position: static;
    transform: none;
    justify-items: start;
    margin-left: 12px;
  }

  .screen[data-screen="home"],
  .quest-layout,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .phone-preview,
  .quest-visual {
    min-height: 520px;
  }

  .live-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 24px, 1240px);
  }

  .topbar {
    gap: 10px;
  }

  .masthead span {
    display: none;
  }

  h1 {
    max-width: 4.6em;
    font-size: clamp(4.3rem, 18vw, 6.4rem);
  }

  h2,
  .task-box h2 {
    font-size: clamp(2.6rem, 12vw, 4.6rem);
  }

  .phone-preview,
  .question-panel,
  .log-panel,
  .task-box {
    border-radius: 22px;
  }

  .phone-preview,
  .quest-visual {
    min-height: 460px;
  }

  .mini-feed {
    grid-template-columns: 1fr;
  }
}

/* Calm editorial pass */
:root {
  --ink: #242424;
  --muted: #6f6a63;
  --paper: #fbf7ee;
  --line: rgba(36, 36, 36, 0.16);
  --red: #d84b3a;
  --green: #526f49;
  --blue: #6f9daf;
  --yellow: #ecc46d;
  --pink: #e8bebf;
  --violet: #77679a;
  --shadow: 0 18px 40px rgba(36, 36, 36, 0.07);
}

body {
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scene {
  background:
    linear-gradient(rgba(36, 36, 36, 0.026) 1px, transparent 1px),
    #fbf7ee;
  background-size: 100% 42px;
}

#cityCanvas {
  opacity: 0.035;
}

.app-shell {
  width: min(1120px, calc(100% - 48px));
  padding: 20px 0 64px;
}

.topbar {
  min-height: 58px;
  margin-bottom: 42px;
}

.screen {
  min-height: calc(100vh - 164px);
}

.screen[data-screen="home"] {
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 8.5vw, 7.8rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4.6vw, 4.7rem);
  line-height: 1.05;
}

.tagline {
  max-width: 520px;
  margin-bottom: 34px;
  color: #4f4944;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.8;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 760;
}

.phone-preview,
.question-panel,
.log-panel {
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.phone-preview {
  min-height: 560px;
  padding: 24px;
  transform: none;
}

.phone-preview::before {
  display: none;
}

.ticket {
  min-height: 350px;
  padding-top: 18px;
}

.ticket h2 {
  max-width: 330px;
  font-size: clamp(2.1rem, 3.4vw, 3.25rem);
  line-height: 1.08;
}

.ticket-art {
  height: 190px;
  border-radius: 22px;
}

.mini-feed {
  gap: 10px;
}

.mini-feed span {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.question-panel {
  width: min(980px, 100%);
  padding: clamp(28px, 4vw, 52px);
}

.question-panel > p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.map-card {
  min-height: 390px;
  margin-top: 30px;
  border-radius: 24px;
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 32px 0;
}

legend {
  margin-bottom: 12px;
  color: #514b45;
}

.choice-group {
  gap: 10px;
}

.choice-group span {
  min-height: 52px;
  border-radius: 16px;
  line-height: 1.35;
}

.quest-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.quest-visual {
  min-height: 560px;
  border-radius: 26px;
}

.visual-illustration {
  padding: 112px 24px 30px;
}

.visual-caption {
  border-radius: 16px;
}

.quest-card {
  padding-top: 4px;
}

.task-box {
  margin: 18px 0 22px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
}

.task-box h2 {
  font-size: clamp(2.55rem, 5.5vw, 5.8rem);
  line-height: 1.04;
}

.task-box p,
.local-note,
.live-panel p {
  font-size: 1rem;
  line-height: 1.8;
}

.local-note {
  margin: 18px 0;
  padding: 18px 0;
}

.live-panel {
  grid-template-columns: 1fr;
  gap: 12px;
}

.live-panel > div {
  grid-template-columns: 68px 1fr;
  border-radius: 18px;
  padding: 14px;
}

.quest-actions {
  gap: 12px;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 34px, 1120px);
  }

  .screen[data-screen="home"],
  .quest-layout,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    margin-bottom: 28px;
  }

  .phone-preview,
  .quest-visual {
    min-height: 500px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 12px;
  }

  .topbar {
    min-height: 50px;
    margin-bottom: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.15rem, 15vw, 4.75rem);
    line-height: 1.04;
  }

  h2,
  .task-box h2 {
    font-size: clamp(2.05rem, 9vw, 3.25rem);
    line-height: 1.08;
  }

  .tagline {
    font-size: 1.02rem;
  }

  .phone-preview,
  .question-panel,
  .log-panel,
  .task-box {
    border-radius: 18px;
  }

  .phone-preview {
    min-height: 500px;
  }

  .ticket h2 {
    font-size: 2.25rem;
  }

  .map-card {
    min-height: 310px;
  }

  .quest-visual {
    min-height: 430px;
  }

  .visual-illustration {
    padding: 104px 12px 18px;
  }

  .live-panel > div {
    grid-template-columns: 58px 1fr;
  }
}

/* Quest output window */
.output-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(36, 36, 36, 0.16);
}

.output-intro h3 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.output-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.output-controls {
  display: grid;
  gap: 16px;
}

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

.output-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.output-note {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf7;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .output-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .choice-group.compact {
    grid-template-columns: 1fr;
  }

  .output-actions button {
    width: 100%;
  }
}

/* Playful kinetic home */
body[data-screen="home"] {
  background: #f4dc57;
}

body[data-screen="home"] .app-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body[data-screen="home"] .topbar {
  display: none;
}

.screen[data-screen="home"].active {
  display: block;
}

.play-home {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #f4dc57;
  color: #19112c;
  isolation: isolate;
  --px: 0;
  --py: 0;
  --ink: #19112c;
  --lavender: #8d68ff;
  --mint: #7bd9a5;
  --dusty-pink: #f2a8db;
  --sky: #a9d8ff;
  --coral: #f0642a;
  --deep-purple: #3b216d;
}

.play-nav {
  position: absolute;
  left: clamp(22px, 4vw, 50px);
  right: clamp(22px, 4vw, 50px);
  top: clamp(20px, 4vw, 42px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #050505;
  font-size: clamp(1.25rem, 2.15vw, 2.2rem);
  letter-spacing: -0.03em;
}

.play-nav strong {
  position: relative;
  font-size: 0;
  width: 84px;
  height: 54px;
}

.play-nav strong::before,
.play-nav strong::after {
  content: "";
  position: absolute;
  inset: auto;
}

.play-nav strong::before {
  left: 4px;
  top: 6px;
  width: 36px;
  height: 46px;
  border-radius: 50% 45% 48% 52%;
  background: #8d68ff;
  transform: rotate(18deg);
}

.play-nav strong::after {
  right: 0;
  top: 2px;
  width: 54px;
  height: 46px;
  border-radius: 13px;
  background:
    linear-gradient(#ef5a2b 0 30%, transparent 30% 38%, #ef5a2b 38% 68%, transparent 68% 76%, #ef5a2b 76%);
}

.play-copy {
  position: relative;
  z-index: 4;
  width: min(1220px, 92vw);
  text-align: center;
  padding: clamp(18px, 3vw, 36px) clamp(14px, 3vw, 42px);
  transform: none;
}

.play-copy .eyebrow {
  display: block;
  color: #19112c;
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.play-copy h1 {
  max-width: none;
  margin: 0 auto 26px;
  color: #19112c;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "PingFang SC", Inter, sans-serif;
  font-size: clamp(4.8rem, 12vw, 12rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0.04em;
  text-shadow: none;
  white-space: nowrap;
  transform: none;
}

.play-copy h1::after {
  display: none;
}

.play-copy .tagline {
  max-width: 960px;
  margin: 0 auto 34px;
  display: block;
  color: #19112c;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
  font-size: clamp(1.02rem, 1.48vw, 1.3rem);
  line-height: 1.9;
  font-weight: 650;
  transform: none;
  text-wrap: balance;
}

.play-copy .tagline span {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.play-copy .tagline span:nth-child(2) {
  background: transparent;
  transform: none;
}

.play-copy .primary-button {
  min-width: 220px;
  min-height: 58px;
  border: 2px solid #19112c;
  border-radius: 999px;
  background: #fff5c7;
  color: #19112c;
  box-shadow: 5px 5px 0 #19112c;
  font-size: 1.08rem;
  transition: transform 180ms ease, background 180ms ease;
  transform: rotate(1.5deg);
}

.play-copy .primary-button:hover {
  transform: translate(3px, 3px) rotate(-1deg);
  box-shadow: 2px 2px 0 #19112c;
  background: #b7f2cf;
}

.kinetic-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.float-shape {
  position: absolute;
  display: block;
  will-change: transform;
  translate:
    calc((var(--px) * var(--depth, 16px)) + var(--push-x, 0px))
    calc((var(--py) * var(--depth, 16px)) + var(--push-y, 0px));
  transition: translate 220ms cubic-bezier(.2,.8,.2,1);
}

.ring {
  --depth: -22px;
  left: 4%;
  top: auto;
  bottom: 28%;
  width: 148px;
  aspect-ratio: 1;
  border: 9px solid var(--coral);
  border-radius: 50%;
  animation: drift-a 8s ease-in-out infinite;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 33%;
  border: 8px solid var(--coral);
  border-radius: 50%;
}

.sock {
  --depth: 28px;
  left: 18%;
  top: auto;
  bottom: 23%;
  width: 138px;
  height: 188px;
  border: 7px solid var(--ink);
  background: rgba(123, 217, 165, 0.38);
  border-radius: 18px 18px 72px 64px;
  transform: rotate(22deg);
  animation: swing 7s ease-in-out infinite;
}

.sock::before,
.sock::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  border: 7px solid #438b78;
  border-color: var(--ink);
}

.sock::before {
  top: 38px;
}

.sock::after {
  bottom: -20px;
  width: 92px;
  height: 80px;
  border-top: 0;
  border-radius: 0 0 56px 56px;
}

.cherry {
  --depth: -34px;
  left: 43%;
  top: auto;
  bottom: 32%;
  width: 160px;
  height: 124px;
  border: 7px solid var(--lavender);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: drift-b 9s ease-in-out infinite;
}

.cherry::before,
.cherry::after {
  content: "";
  position: absolute;
  border: 7px solid var(--lavender);
}

.cherry::before {
  left: -62px;
  top: 54px;
  width: 54px;
  height: 36px;
  border-radius: 50%;
  border-right: 0;
  border-top: 0;
}

.cherry::after {
  right: 8px;
  bottom: -34px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(244, 220, 87, 0.68);
}

.pill {
  --depth: 22px;
  right: 20%;
  top: auto;
  bottom: 35%;
  width: 240px;
  height: 72px;
  border-radius: 999px;
  border: 5px solid var(--ink);
  background: var(--mint);
  transform: rotate(7deg);
  animation: drift-c 10s ease-in-out infinite;
}

.flower {
  --depth: -26px;
  right: 7%;
  top: auto;
  bottom: 24%;
  width: 170px;
  height: 170px;
  animation: spin-soft 12s linear infinite;
}

.flower::before,
.flower::after {
  content: "";
  position: absolute;
  inset: 40%;
  border-radius: 999px;
  background: var(--lavender);
  box-shadow:
    0 -72px 0 var(--lavender),
    0 72px 0 var(--lavender),
    -72px 0 0 var(--lavender),
    72px 0 0 var(--lavender);
}

.flower::after {
  transform: rotate(45deg);
}

.blob {
  --depth: 18px;
  left: 17%;
  bottom: 1%;
  width: 360px;
  height: 220px;
  border-radius: 62% 38% 54% 46% / 46% 42% 58% 54%;
  border: 5px solid var(--ink);
  background: var(--coral);
  animation: blob 8s ease-in-out infinite;
}

.moon {
  --depth: -18px;
  right: 1%;
  bottom: -14%;
  width: 320px;
  height: 390px;
  border-radius: 52% 48% 0 0 / 72% 72% 0 0;
  border: 5px solid var(--ink);
  background: var(--dusty-pink);
  animation: drift-b 9.5s ease-in-out infinite reverse;
}

.moon::after {
  content: "";
  position: absolute;
  left: -92px;
  top: 92px;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: #f4dc57;
}

.star {
  --depth: 34px;
  left: 5%;
  bottom: 8%;
  width: 78px;
  height: 78px;
  animation: pulse 4.5s ease-in-out infinite;
}

.star::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}

.star::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #f4dc57;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}

.squiggle {
  --depth: -28px;
  left: 28%;
  bottom: 7%;
  width: 130px;
  height: 64px;
  border-bottom: 7px solid var(--ink);
  border-radius: 50%;
  animation: drift-a 7s ease-in-out infinite reverse;
}

.squiggle::before,
.squiggle::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 56px;
  height: 44px;
  border: 7px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.squiggle::before {
  left: 24px;
}

.squiggle::after {
  left: 76px;
}

.dot {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.dot.one {
  --depth: 38px;
  left: 3%;
  bottom: 17%;
  border: 4px solid var(--ink);
  background: var(--lavender);
  animation: drift-c 6.5s ease-in-out infinite;
}

.dot.two {
  --depth: -32px;
  left: 13%;
  bottom: 8%;
  border: 4px solid var(--ink);
  background: var(--mint);
  animation: drift-b 8s ease-in-out infinite;
}

.coffee {
  --depth: 26px;
  left: 36%;
  bottom: 17%;
  width: 96px;
  height: 74px;
  border: 7px solid var(--ink);
  border-radius: 0 0 38px 38px;
  border-top: 0;
  animation: silly-sway 6.2s ease-in-out infinite;
}

.coffee::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 7px solid var(--ink);
  border-left: 0;
  border-radius: 0 30px 30px 0;
}

.coffee::after {
  content: "";
  position: absolute;
  left: 16px;
  top: -34px;
  width: 56px;
  height: 18px;
  border-top: 7px solid var(--ink);
  border-radius: 50%;
  opacity: 0.7;
}

.key {
  --depth: -30px;
  right: 35%;
  bottom: 17%;
  width: 155px;
  height: 96px;
  animation: silly-wiggle 5.4s ease-in-out infinite;
}

.key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 54px;
  height: 54px;
  border: 8px solid var(--sky);
  box-shadow: 0 0 0 4px var(--ink);
  border-radius: 50%;
}

.key::after {
  content: "";
  position: absolute;
  left: 51px;
  top: 51px;
  width: 108px;
  height: 8px;
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 62px 16px 0 -1px var(--sky), 82px -16px 0 -1px var(--sky);
  transform: rotate(-42deg);
  transform-origin: left center;
}

.bread {
  --depth: 18px;
  left: 50%;
  bottom: 3%;
  width: 230px;
  height: 118px;
  border-radius: 62% 38% 46% 54% / 64% 48% 52% 36%;
  border: 5px solid var(--ink);
  background: #fff1b5;
  animation: silly-breathe 5.2s ease-in-out infinite;
}

.bread::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 30px;
  height: 12px;
  border-radius: 999px;
  background: rgba(240, 100, 42, 0.45);
  box-shadow: 0 28px 0 rgba(240, 100, 42, 0.35);
}

.ticket-stub {
  --depth: -24px;
  right: 19%;
  bottom: 11%;
  width: 126px;
  height: 74px;
  border-radius: 16px;
  background:
    radial-gradient(circle at left center, #f2da58 0 13px, transparent 14px),
    radial-gradient(circle at right center, #f2da58 0 13px, transparent 14px),
    #fff5c7;
  border: 5px solid var(--ink);
  transform: rotate(10deg);
  animation: silly-float-y 6.6s ease-in-out infinite;
}

.ticket-stub::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  border-left: 4px dotted var(--ink);
}

.music-note {
  --depth: 32px;
  right: 12%;
  bottom: 19%;
  width: 74px;
  height: 118px;
  border-left: 8px solid var(--ink);
  border-top: 8px solid var(--ink);
  transform: rotate(10deg);
  animation: silly-float-y 5.8s ease-in-out infinite;
}

.music-note::before,
.music-note::after {
  content: "";
  position: absolute;
  bottom: -22px;
  width: 42px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--lavender);
}

.music-note::before {
  left: -34px;
}

.music-note::after {
  right: -10px;
}

.pencil {
  --depth: -28px;
  left: 69%;
  bottom: 5%;
  width: 180px;
  height: 34px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  background: linear-gradient(90deg, var(--coral) 0 72%, #fff5c7 72% 86%, var(--ink) 86%);
  transform: rotate(-16deg);
  animation: silly-sway 6.4s ease-in-out infinite;
}

.pencil::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-right: 24px solid var(--mint);
}

.flower-small {
  --depth: 34px;
  left: 8%;
  bottom: 32%;
  width: 54px;
  height: 54px;
  animation: silly-twinkle 4.2s ease-in-out infinite;
}

.flower-small::before,
.flower-small::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 999px;
  background: #fff5c7;
  box-shadow:
    0 -22px 0 #fff5c7,
    0 22px 0 #fff5c7,
    -22px 0 0 #fff5c7,
    22px 0 0 #fff5c7;
}

.flower-small::after {
  transform: rotate(45deg);
}

.bubble-dot {
  --depth: -36px;
  right: 39%;
  bottom: 30%;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: #fff5c7;
  box-shadow: 28px -18px 0 var(--lavender), -22px 18px 0 var(--mint);
  animation: silly-breathe 4.8s ease-in-out infinite;
}

.thumb {
  --depth: 30px;
  left: 72%;
  bottom: 22%;
  width: 116px;
  height: 104px;
  border: 6px solid var(--ink);
  border-radius: 32px 34px 30px 28px;
  background: var(--sky);
  transform: rotate(-8deg);
  animation: silly-wiggle 5.9s ease-in-out infinite;
}

.thumb::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -52px;
  width: 42px;
  height: 74px;
  border: 6px solid var(--ink);
  border-bottom: 0;
  border-radius: 28px 28px 12px 12px;
  background: #fff5c7;
  transform: rotate(-20deg);
}

.thumb::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 22px;
  width: 48px;
  height: 20px;
  border: 5px solid var(--ink);
  border-radius: 999px;
  background: var(--dusty-pink);
  box-shadow: -6px 30px 0 -1px var(--dusty-pink), -6px 30px 0 4px var(--ink);
}

.scissors {
  --depth: -34px;
  left: 59%;
  bottom: 7%;
  width: 170px;
  height: 118px;
  transform: rotate(-18deg);
  animation: silly-sway 6.1s ease-in-out infinite;
}

.scissors::before,
.scissors::after {
  content: "";
  position: absolute;
  border: 7px solid var(--ink);
}

.scissors::before {
  left: 0;
  bottom: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 66px -2px 0 -7px var(--sky), 66px -2px 0 0 var(--ink);
}

.scissors::after {
  left: 70px;
  top: 8px;
  width: 112px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: -2px 44px 0 -2px var(--ink);
  transform: rotate(-28deg);
  transform-origin: left center;
}

.orbit {
  --depth: -38px;
  left: 38%;
  top: 17%;
  width: 260px;
  height: 170px;
  border: 7px solid var(--lavender);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: silly-float-x 8s ease-in-out infinite;
}

.orbit::before {
  content: "";
  position: absolute;
  left: 54%;
  top: -18px;
  width: 30px;
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
}

.orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 4px dashed var(--deep-purple);
  border-radius: 50%;
}

.cloud {
  --depth: 20px;
  right: 5%;
  bottom: 2%;
  width: 350px;
  height: 145px;
  border: 5px solid var(--ink);
  border-radius: 999px 999px 48px 48px;
  background: rgba(169, 216, 255, 0.86);
  animation: silly-breathe 6.8s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 52px;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: rgba(169, 216, 255, 0.92);
}

.cloud::before {
  left: 44px;
  width: 118px;
  height: 86px;
}

.cloud::after {
  right: 54px;
  width: 150px;
  height: 112px;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(18px, -24px, 0) rotate(5deg); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(-22px, 18px, 0) rotate(-5deg); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(7deg); }
  50% { transform: translate3d(26px, 18px, 0) rotate(12deg); }
}

@keyframes swing {
  0%, 100% { transform: rotate(21deg) translateY(0); }
  50% { transform: rotate(14deg) translateY(16px); }
}

@keyframes spin-soft {
  to { transform: rotate(360deg); }
}

@keyframes blob {
  0%, 100% { border-radius: 62% 38% 54% 46% / 46% 42% 58% 54%; transform: translateY(0) rotate(-8deg); }
  50% { border-radius: 44% 56% 38% 62% / 58% 46% 54% 42%; transform: translateY(-18px) rotate(-2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.12) rotate(8deg); }
}

@media (max-width: 900px) {
  .play-home {
    min-height: 700px;
  }

  .play-copy h1 {
    font-size: clamp(4rem, 14vw, 8rem);
    transform: none;
  }

  .play-copy .tagline {
    transform: none;
  }

  .play-copy .primary-button {
    transform: rotate(1.5deg);
  }

  .play-copy .primary-button:hover {
    transform: translate(3px, 3px) rotate(-1deg);
  }

  .ring { left: -6%; top: auto; bottom: 28%; }
  .sock { left: 17%; top: auto; bottom: 24%; transform: scale(0.78) rotate(22deg); }
  .cherry { left: 43%; top: auto; bottom: 31%; transform: scale(0.78) rotate(-18deg); }
  .pill { right: 8%; top: auto; bottom: 34%; width: 200px; }
  .flower { right: -6%; top: auto; bottom: 24%; transform: scale(0.78); }
  .blob { left: 8%; bottom: 1%; width: 260px; }
  .moon { right: -18%; bottom: -14%; }
  .pencil { right: 4%; left: auto; bottom: 7%; width: 140px; }
  .music-note { right: 8%; bottom: 24%; }
  .thumb { right: 10%; left: auto; bottom: 24%; transform: scale(0.82) rotate(-8deg); }
  .scissors { left: 52%; bottom: 7%; transform: scale(0.82) rotate(-18deg); }
  .orbit { left: 31%; top: 20%; width: 220px; height: 140px; }
  .cloud { right: -10%; bottom: 0; width: 280px; }
}

@media (max-width: 560px) {
  .play-home {
    min-height: 620px;
  }

  .play-nav {
    font-size: 1rem;
  }

  .play-copy {
    width: min(100% - 24px, 520px);
    text-align: center;
    transform: none;
  }

  .play-copy h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
    letter-spacing: 0.01em;
    transform: none;
  }

  .play-copy .tagline {
    font-size: 1.08rem;
    justify-content: center;
    transform: none;
  }

  .play-copy .primary-button {
    transform: none;
  }

  .play-copy .primary-button:hover {
    transform: translateY(-2px) rotate(-1deg);
  }

  .sock,
  .cherry,
  .pill {
    opacity: 0.7;
  }

  .pencil,
  .music-note,
  .ticket-stub,
  .thumb,
  .scissors {
    opacity: 0.72;
  }

  .orbit {
    left: 20%;
    top: 24%;
    width: 180px;
    height: 112px;
    opacity: 0.7;
  }

  .cloud {
    right: -28%;
    width: 250px;
    opacity: 0.68;
  }
}

/* Silly Animations: reusable micro-motion classes */
.motion-spin,
.motion-sway,
.motion-float-y,
.motion-float-x,
.motion-breathe,
.motion-twinkle,
.motion-wiggle,
.motion-blob {
  transform-origin: 50% 50%;
  animation-delay: var(--motion-delay, 0s);
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.motion-spin {
  animation-name: silly-spin;
  animation-duration: 18s;
  animation-timing-function: linear;
}

.motion-sway {
  animation-name: silly-sway;
  animation-duration: 5.8s;
}

.motion-float-y {
  animation-name: silly-float-y;
  animation-duration: 6.4s;
}

.motion-float-x {
  animation-name: silly-float-x;
  animation-duration: 7.2s;
}

.motion-breathe {
  animation-name: silly-breathe;
  animation-duration: 4.6s;
}

.motion-twinkle {
  animation-name: silly-twinkle;
  animation-duration: 4.2s;
}

.motion-wiggle {
  animation-name: silly-wiggle;
  animation-duration: 5.2s;
}

.motion-blob {
  animation-name: silly-blob;
  animation-duration: 7.5s;
}

.motion-spin.slow,
.motion-sway.slow,
.motion-float-y.slow,
.motion-float-x.slow,
.motion-breathe.slow {
  animation-duration: 9s;
}

.ring { --motion-delay: -0.8s; }
.sock { --motion-delay: -1.6s; }
.cherry { --motion-delay: -2.2s; }
.pill { --motion-delay: -0.4s; }
.flower { --motion-delay: -3.4s; }
.blob { --motion-delay: -1.2s; }
.moon { --motion-delay: -2.8s; }
.star { --motion-delay: -0.9s; }
.squiggle { --motion-delay: -2s; }
.dot.one { --motion-delay: -1.1s; }
.dot.two { --motion-delay: -2.6s; }
.coffee { --motion-delay: -1.4s; }
.key { --motion-delay: -2.1s; }
.bread { --motion-delay: -0.7s; }
.ticket-stub { --motion-delay: -2.9s; }
.music-note { --motion-delay: -1.8s; }
.pencil { --motion-delay: -3.1s; }
.flower-small { --motion-delay: -0.6s; }
.bubble-dot { --motion-delay: -2.4s; }
.thumb { --motion-delay: -1.7s; }
.scissors { --motion-delay: -2.7s; }
.orbit { --motion-delay: -3.5s; }
.cloud { --motion-delay: -1s; }

@keyframes silly-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes silly-sway {
  0%, 100% { rotate: -5deg; }
  50% { rotate: 6deg; }
}

@keyframes silly-float-y {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(7px); }
}

@keyframes silly-float-x {
  0%, 100% { transform: translateX(-7px); }
  50% { transform: translateX(8px); }
}

@keyframes silly-breathe {
  0%, 100% { scale: 0.97; }
  50% { scale: 1.04; }
}

@keyframes silly-twinkle {
  0%, 100% { scale: 0.96; opacity: 0.92; }
  50% { scale: 1.05; opacity: 1; }
}

@keyframes silly-wiggle {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
  35% { transform: translate3d(4px, -3px, 0) rotate(2deg); }
  70% { transform: translate3d(-3px, 3px, 0) rotate(-1deg); }
}

@keyframes silly-blob {
  0%, 100% {
    scale: 0.99;
    border-radius: 62% 38% 54% 46% / 46% 42% 58% 54%;
  }
  50% {
    scale: 1.025;
    border-radius: 44% 56% 38% 62% / 58% 46% 54% 42%;
  }
}

/* Restore softer home colors after the brighter neo-brutalist pass. */
body[data-screen="home"],
.play-home {
  background: #f2da58;
}

.play-home {
  --ink: #050505;
  --lavender: #8d68ff;
  --mint: #438b78;
  --dusty-pink: #eda7dd;
  --sky: #9aa8e8;
  --coral: #f0642a;
  --deep-purple: #050505;
}

.play-copy h1 {
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "PingFang SC", Inter, sans-serif;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0.04em;
}

.play-copy .tagline {
  max-width: 920px;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.36rem);
}

.play-copy .eyebrow {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.play-copy .tagline {
  display: block;
  line-height: 1.9;
  font-weight: 650;
  text-wrap: balance;
}

.play-copy .tagline span,
.play-copy .tagline span:nth-child(2) {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-lang="en"] .play-copy h1 {
  max-width: 980px;
  font-size: clamp(4rem, 8vw, 9rem);
  letter-spacing: -0.01em;
  white-space: normal;
}

body[data-lang="en"] .play-copy .tagline {
  max-width: 780px;
}

body[data-lang="en"] h2,
body[data-lang="en"] .task-box h2 {
  letter-spacing: -0.015em;
}

.ring {
  left: 7%;
  bottom: 24%;
  border-color: #ed6a2b;
}

.ring::after {
  border-color: #ed6a2b;
}

.sock {
  left: 20%;
  bottom: 25%;
  border-color: #438b78;
  background: transparent;
}

.sock::before,
.sock::after {
  border-color: #438b78;
}

.cherry,
.cherry::before,
.cherry::after {
  border-color: #8d68ff;
}

.cherry::after {
  background: rgba(242, 218, 88, 0.7);
}

.pill {
  right: 22%;
  border: 0;
  background: #438b78;
}

.flower::before,
.flower::after {
  background: #8d68ff;
  box-shadow:
    0 -72px 0 #8d68ff,
    0 72px 0 #8d68ff,
    -72px 0 0 #8d68ff,
    72px 0 0 #8d68ff;
}

.blob {
  border: 0;
  background: #f0642a;
}

.moon {
  border: 0;
  background: #eda7dd;
}

.moon::after,
.star::after {
  background: #f2da58;
}

.star::before {
  background: #050505;
}

.squiggle {
  border-bottom-color: #050505;
}

.squiggle::before,
.squiggle::after {
  border-color: #050505;
}

.dot.one {
  border: 0;
  background: #8d68ff;
}

.dot.two {
  border: 0;
  background: #438b78;
}

.coffee,
.coffee::before {
  border-color: #050505;
}

.coffee::after {
  border-top-color: #050505;
}

.key::before {
  border-color: #9aa8e8;
  box-shadow: none;
}

.key::after {
  background: #9aa8e8;
  box-shadow: 62px 16px 0 -1px #9aa8e8, 82px -16px 0 -1px #9aa8e8;
}

.bread {
  border: 0;
  background: #ffeeb0;
}

.ticket-stub {
  border-color: #050505;
}

.ticket-stub::after {
  border-left-color: #050505;
}

.music-note {
  border-left-color: #050505;
  border-top-color: #050505;
}

.music-note::before,
.music-note::after {
  border: 0;
  background: #8d68ff;
}

.pencil {
  border: 0;
  background: linear-gradient(90deg, #f0642a 0 72%, #fff5c7 72% 86%, #050505 86%);
}

.pencil::before {
  border-right-color: #438b78;
}

.bubble-dot {
  border: 0;
  background: #fff5c7;
  box-shadow: 28px -18px 0 #8d68ff, -22px 18px 0 #438b78;
}

.thumb,
.scissors,
.orbit,
.cloud {
  display: none;
}

@media (max-width: 560px) {
  .play-copy h1 {
    letter-spacing: 0.02em;
  }
}

/* Playful UI pass for the flow pages. Keeps existing illustrations unchanged. */
body:not([data-screen="home"]) {
  background: #fbf4df;
}

body:not([data-screen="home"]) .scene {
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 218, 88, 0.38), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(237, 167, 221, 0.32), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(154, 168, 232, 0.28), transparent 26%),
    linear-gradient(rgba(5, 5, 5, 0.035) 1px, transparent 1px),
    #fbf4df;
  background-size: auto, auto, auto, 100% 42px, auto;
}

body:not([data-screen="home"]) .topbar {
  border-bottom: 2px solid #19112c;
}

body:not([data-screen="home"]) .masthead strong,
body:not([data-screen="home"]) h2,
body:not([data-screen="home"]) h3,
body:not([data-screen="home"]) legend,
body:not([data-screen="home"]) label span {
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
}

body:not([data-screen="home"]) h2,
body:not([data-screen="home"]) .task-box h2 {
  color: #19112c;
  letter-spacing: 0.01em;
}

body:not([data-screen="home"]) .eyebrow {
  width: max-content;
  padding: 5px 10px;
  border: 2px solid #19112c;
  border-radius: 999px 760px 900px 720px / 760px 900px 720px 880px;
  background: #fff5c7;
  color: #19112c;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: none;
  transform: rotate(-1deg);
}

body:not([data-screen="home"]) .question-panel,
body:not([data-screen="home"]) .log-panel,
body:not([data-screen="home"]) .task-box,
body:not([data-screen="home"]) .live-panel > div,
body:not([data-screen="home"]) .output-note,
body:not([data-screen="home"]) .log-entry {
  border: 2px solid #19112c;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 8px 8px 0 rgba(25, 17, 44, 0.14);
}

body:not([data-screen="home"]) .question-panel,
body:not([data-screen="home"]) .log-panel {
  position: relative;
  border-radius: 32px 28px 34px 26px / 28px 34px 26px 32px;
}

body:not([data-screen="home"]) .question-panel::after,
body:not([data-screen="home"]) .log-panel::after {
  content: "";
  position: absolute;
  right: 26px;
  top: -18px;
  width: 48px;
  height: 48px;
  border: 2px solid #19112c;
  border-radius: 50%;
  background: #eda7dd;
  box-shadow: -30px 16px 0 -8px #8d68ff;
  pointer-events: none;
}

body:not([data-screen="home"]) .primary-button,
body:not([data-screen="home"]) .secondary-button,
body:not([data-screen="home"]) .ghost-button {
  border: 2px solid #19112c;
  border-radius: 999px;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
  font-weight: 850;
}

body:not([data-screen="home"]) .primary-button {
  background: #19112c;
  color: #fff9ed;
  box-shadow: 5px 5px 0 #eda7dd;
}

body:not([data-screen="home"]) .secondary-button,
body:not([data-screen="home"]) .ghost-button {
  background: #fff5c7;
  color: #19112c;
  box-shadow: 4px 4px 0 rgba(25, 17, 44, 0.16);
}

body:not([data-screen="home"]) .primary-button:hover,
body:not([data-screen="home"]) .secondary-button:hover,
body:not([data-screen="home"]) .ghost-button:hover {
  transform: translate(2px, 2px) rotate(-0.6deg);
  box-shadow: 2px 2px 0 rgba(25, 17, 44, 0.18);
}

body:not([data-screen="home"]) .map-card {
  border: 3px solid #19112c;
  border-radius: 30px 24px 34px 26px / 26px 34px 24px 30px;
  background:
    radial-gradient(circle at var(--focus-x, 45%) var(--focus-y, 42%), rgba(242, 218, 88, 0.58), transparent 17%),
    radial-gradient(circle at 16% 24%, rgba(237, 167, 221, 0.34), transparent 24%),
    linear-gradient(180deg, #b8d7e9, #f8efcf 68%, #fbf4df);
  box-shadow: 8px 8px 0 rgba(25, 17, 44, 0.16);
}

body:not([data-screen="home"]) .continents path {
  fill: rgba(67, 139, 120, 0.34);
  stroke: rgba(25, 17, 44, 0.48);
  stroke-width: 3;
}

body:not([data-screen="home"]) .route-line {
  stroke: rgba(240, 100, 42, 0.56);
  stroke-width: 3;
}

body:not([data-screen="home"]) .route-line.soft {
  stroke: rgba(141, 104, 255, 0.42);
}

body:not([data-screen="home"]) .city-chips button {
  border: 2px solid #19112c;
  background: #fff9ed;
  color: #19112c;
  box-shadow: 4px 4px 0 rgba(25, 17, 44, 0.18);
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
}

body:not([data-screen="home"]) .city-chips button.active,
body:not([data-screen="home"]) .city-chips button:hover {
  background: #fff5c7;
  color: #19112c;
  box-shadow: 4px 4px 0 #eda7dd;
}

body:not([data-screen="home"]) .selected-city,
body:not([data-screen="home"]) .choice-group span,
body:not([data-screen="home"]) input,
body:not([data-screen="home"]) textarea {
  border: 2px solid #19112c;
  border-radius: 18px 16px 20px 15px / 16px 20px 15px 18px;
  background: #fffdf7;
}

body:not([data-screen="home"]) .choice-group span {
  justify-content: center;
  color: #19112c;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body:not([data-screen="home"]) .choice-group label:nth-child(2n) span {
  transform: rotate(0.6deg);
}

body:not([data-screen="home"]) .choice-group label:nth-child(2n + 1) span {
  transform: rotate(-0.45deg);
}

body:not([data-screen="home"]) .choice-group input:checked + span {
  background: #d8e9d1;
  box-shadow: 4px 4px 0 #8d68ff;
  transform: rotate(0deg) translateY(-1px);
}

body:not([data-screen="home"]) .quest-visual {
  border: 3px solid #19112c;
  border-radius: 34px 26px 32px 28px / 28px 34px 26px 32px;
  box-shadow: 8px 8px 0 rgba(25, 17, 44, 0.14);
}

body:not([data-screen="home"]) .visual-caption {
  border: 2px solid #19112c;
  border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 4px 4px 0 rgba(25, 17, 44, 0.12);
}

body:not([data-screen="home"]) .task-box {
  border-radius: 32px 26px 34px 24px / 26px 34px 24px 32px;
  background:
    radial-gradient(circle at 92% 12%, rgba(237, 167, 221, 0.32), transparent 18%),
    #fffdf7;
}

body:not([data-screen="home"]) .task-box span,
body:not([data-screen="home"]) .live-panel span,
body:not([data-screen="home"]) .visual-caption span {
  color: #438b78;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
  letter-spacing: 0.02em;
}

body:not([data-screen="home"]) .local-note {
  border: 2px solid #19112c;
  border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px;
  background: #fff5c7;
  padding: 16px 18px;
}

body:not([data-screen="home"]) .quest-meta span {
  border: 2px solid #19112c;
  background: #fffdf7;
  font-family: "Hannotate SC", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", Inter, sans-serif;
  font-weight: 760;
}

body:not([data-screen="home"]) .live-icon {
  border: 2px solid #19112c;
  border-radius: 18px;
  background: #fff5c7;
}

body:not([data-screen="home"]) .output-panel {
  border-bottom: 2px dashed rgba(25, 17, 44, 0.35);
}

body:not([data-screen="home"]) .log-entry {
  border-radius: 20px 16px 22px 15px / 16px 22px 15px 20px;
}

.screen[data-screen="reminder"].active {
  align-items: center;
}

.screen[data-screen="reminder"] .log-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

.screen[data-screen="reminder"] .output-panel {
  margin-bottom: 26px;
}

@media (max-width: 560px) {
  body:not([data-screen="home"]) .question-panel::after,
  body:not([data-screen="home"]) .log-panel::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-spin,
  .motion-sway,
  .motion-float-y,
  .motion-float-x,
  .motion-breathe,
  .motion-twinkle,
  .motion-wiggle,
  .motion-blob {
    animation: none;
  }
}
