:root {
  color-scheme: light;
  --ink: #29231f;
  --muted: #786d66;
  --bg: #f7f3ea;
  --panel: #fffdf8;
  --paper: #fffaf1;
  --line: rgba(41, 35, 31, 0.16);
  --line-strong: rgba(41, 35, 31, 0.28);
  --tomato: #bd4e3d;
  --teal: #28706f;
  --leaf: #7f9d79;
  --gold: #e5b54f;
  --sky: #cfe4e7;
  --dog: #ead7b8;
  --dog-dark: #7a583e;
  --shadow: 0 24px 60px rgba(50, 35, 24, 0.16);
  --soft-shadow: 0 14px 36px rgba(50, 35, 24, 0.1);
  --radius: 24px;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(207, 228, 231, 0.72) 0 24%, transparent 24% 100%),
    linear-gradient(315deg, rgba(189, 78, 61, 0.1) 0 20%, transparent 20% 100%),
    var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--panel);
  background: var(--ink);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(41, 35, 31, 0.2);
}

.brand-mark svg,
button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

button svg path:nth-child(n + 2) {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-kicker,
.eyebrow {
  display: block;
  margin: 0 0 4px;
  color: var(--tomato);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.primary-button,
.secondary-button,
.copy-button,
.walk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--soft-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.secondary-button:hover,
.copy-button:hover,
.walk-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel);
}

.primary-button:active,
.secondary-button:active,
.copy-button:active,
.walk-button:active {
  transform: translateY(1px) scale(0.99);
}

.decision-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 34px;
}

.input-panel,
.stage-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.input-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 640px;
  padding: 26px;
}

.section-heading h1,
.stage-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.section-heading h1 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 4.8vw, 3.9rem);
  line-height: 1.02;
}

form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: #fffefa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

input {
  min-height: 48px;
  padding: 0 16px;
  font-weight: 800;
}

textarea {
  height: 138px;
  min-height: 120px;
  resize: vertical;
  padding: 15px 16px;
  line-height: 1.65;
}

input:focus,
textarea:focus {
  border-color: rgba(40, 112, 111, 0.62);
  box-shadow:
    0 0 0 4px rgba(40, 112, 111, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.error-message {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--tomato);
  font-size: 0.93rem;
  font-weight: 800;
}

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

.primary-button {
  flex: 1 1 230px;
  min-height: 54px;
  border: 0;
  color: #fffdf8;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(41, 35, 31, 0.24);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #3a312b;
}

.primary-button:disabled,
.walk-button:disabled {
  cursor: wait;
  color: rgba(255, 253, 248, 0.72);
  background: #5a514b;
  box-shadow: none;
}

.secondary-button {
  flex: 0 0 auto;
}

.tiny-log {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tiny-log span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.84rem;
  font-weight: 800;
}

.stage-panel {
  overflow: hidden;
}

.stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 16px;
}

.stage-heading h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.95rem);
  line-height: 1.14;
}

.status-pill {
  flex: 0 0 auto;
  color: var(--teal);
  background: rgba(207, 228, 231, 0.6);
}

.oracle-stage {
  position: relative;
  min-height: 540px;
  padding: 8px 30px 30px;
  overflow: hidden;
}

.motion-arena {
  position: relative;
  min-height: 176px;
  border: 1px solid rgba(41, 35, 31, 0.12);
  border-radius: 24px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 250, 241, 0.18)),
    var(--sky);
  box-shadow: 0 14px 34px rgba(41, 35, 31, 0.1);
}

.arena-backdrop,
.arena-backdrop span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.window-shape {
  left: auto;
  right: 38px;
  top: 24px;
  width: 128px;
  height: 86px;
  border: 1px solid rgba(41, 35, 31, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(41, 35, 31, 0.08) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(41, 35, 31, 0.08) 49% 51%, transparent 52%),
    rgba(255, 253, 248, 0.48);
}

.rug-shape {
  top: auto;
  bottom: 18px;
  left: 50%;
  width: 390px;
  height: 82px;
  border-radius: 50%;
  background: rgba(189, 78, 61, 0.12);
  transform: translateX(-50%);
}

.bowl-shape {
  inset: auto 34px 30px auto;
  width: 58px;
  height: 24px;
  border: 2px solid rgba(41, 35, 31, 0.18);
  border-radius: 8px 8px 26px 26px;
  background: rgba(40, 112, 111, 0.24);
}

.motion-note {
  position: absolute;
  left: 22px;
  top: 18px;
  z-index: 2;
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
}

.dog-puppet {
  --dog-x: 36px;
  --dog-y: 56px;
  --exit-x: 900px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 168px;
  height: 128px;
  pointer-events: none;
  transform: translate3d(var(--dog-x), var(--dog-y), 0);
  transform-origin: 70px 96px;
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dog-puppet span {
  position: absolute;
  display: block;
}

.dog-shadow {
  left: 22px;
  bottom: 8px;
  width: 126px;
  height: 18px;
  border-radius: 50%;
  background: rgba(41, 35, 31, 0.18);
  filter: blur(2px);
}

.dog-body {
  left: 42px;
  top: 50px;
  width: 86px;
  height: 54px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-radius: 46% 42% 38% 48%;
  background: var(--dog);
}

.dog-spot {
  left: 66px;
  top: 58px;
  width: 27px;
  height: 21px;
  border-radius: 48% 52% 44% 56%;
  background: rgba(122, 88, 62, 0.28);
}

.dog-tail {
  left: 18px;
  top: 56px;
  width: 46px;
  height: 16px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: var(--dog);
  transform-origin: 100% 50%;
  animation: tail-wag 520ms ease-in-out infinite;
}

.dog-leg {
  top: 92px;
  width: 15px;
  height: 30px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--dog);
  transform-origin: 50% 0;
}

.dog-leg-back-a {
  left: 51px;
}

.dog-leg-back-b {
  left: 74px;
}

.dog-leg-front-a {
  left: 101px;
}

.dog-leg-front-b {
  left: 121px;
}

.dog-head {
  left: 104px;
  top: 28px;
  width: 60px;
  height: 58px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-radius: 44% 48% 44% 48%;
  background: #f1dfc2;
  transform-origin: 16px 46px;
  transition: transform 240ms ease;
}

.dog-ear {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  background: var(--dog-dark);
}

.dog-ear-left {
  left: -4px;
  top: 2px;
  border-radius: 70% 42% 62% 48%;
  transform: rotate(18deg);
}

.dog-ear-right {
  right: -4px;
  top: 4px;
  border-radius: 42% 70% 48% 62%;
  transform: rotate(-16deg);
}

.dog-eye {
  left: 36px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.dog-muzzle {
  right: -14px;
  top: 30px;
  width: 34px;
  height: 22px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-radius: 52% 48% 46% 54%;
  background: #fff8ea;
}

.dog-nose {
  right: -17px;
  top: 34px;
  width: 10px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.dog-mouth {
  right: -6px;
  top: 45px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 12px 12px;
}

.drool-drop {
  right: -18px;
  top: 47px;
  width: 8px;
  height: 15px;
  border-radius: 60% 60% 70% 70%;
  background: rgba(207, 228, 231, 0.86);
  opacity: 0;
  transform: translateY(-4px) scale(0.55);
}

.mouth-paper {
  left: 145px;
  top: 58px;
  z-index: -1;
  width: 58px;
  min-height: 34px;
  border: 1px solid rgba(104, 76, 48, 0.3);
  border-radius: 5px;
  padding: 7px 6px;
  background: var(--paper);
  box-shadow: 0 10px 18px rgba(41, 35, 31, 0.18);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  opacity: 0;
  transform: rotate(8deg) scale(0.6);
  transform-origin: 0 50%;
}

.mouth-paper span {
  position: static;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sleep-marks {
  left: 136px;
  top: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0;
}

.sniff-cloud {
  left: 158px;
  top: 55px;
  display: flex;
  gap: 6px;
  opacity: 0;
}

.sniff-cloud span {
  position: static;
  width: 8px;
  height: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  animation: sniff 900ms ease-in-out infinite;
}

.sniff-cloud span:nth-child(2) {
  animation-delay: 120ms;
}

.sniff-cloud span:nth-child(3) {
  animation-delay: 240ms;
}

.dog-puppet.is-sniffing .dog-head {
  animation: head-sniff 440ms ease-in-out infinite;
}

.dog-puppet.is-sniffing .dog-body {
  animation: body-breathe 440ms ease-in-out infinite;
}

.dog-puppet.is-sniffing .sniff-cloud {
  opacity: 1;
}

.dog-puppet.is-sitting .dog-body {
  transform: translateY(12px) rotate(-2deg);
}

.dog-puppet.is-sitting .dog-head {
  transform: translate(-8px, 16px) rotate(-8deg);
}

.dog-puppet.is-sitting .dog-leg {
  height: 16px;
  transform: translateY(16px) rotate(var(--sit-leg, 0deg));
}

.dog-puppet.is-sitting .dog-leg-front-a,
.dog-puppet.is-sitting .dog-leg-back-a {
  --sit-leg: -18deg;
}

.dog-puppet.is-sitting .dog-leg-front-b,
.dog-puppet.is-sitting .dog-leg-back-b {
  --sit-leg: 18deg;
}

.dog-puppet.is-running-away {
  animation: dog-dash-away 1.08s cubic-bezier(0.22, 0.74, 0.28, 1) forwards;
}

.dog-puppet.is-running-away .dog-body,
.dog-puppet.is-running-away .dog-head {
  animation: run-bob 160ms ease-in-out infinite;
}

.dog-puppet.is-running-away .dog-leg {
  animation: run-leg 160ms ease-in-out infinite;
}

.dog-puppet.is-running-away .dog-leg-back-b,
.dog-puppet.is-running-away .dog-leg-front-b {
  animation-delay: 80ms;
}

.dog-puppet.is-running-away .mouth-paper {
  opacity: 1;
  animation: paper-flutter 180ms ease-in-out infinite;
}

.dog-puppet.is-sleeping .dog-body {
  transform: translateY(18px) rotate(-7deg);
}

.dog-puppet.is-sleeping .dog-head {
  transform: translate(4px, 30px) rotate(15deg);
}

.dog-puppet.is-sleeping .dog-eye {
  width: 12px;
  height: 2px;
  border-radius: 0;
}

.dog-puppet.is-sleeping .sleep-marks {
  opacity: 1;
  animation: float-up 1.5s ease-in-out infinite;
}

.dog-puppet.is-drooling .dog-head {
  transform: translateY(10px) rotate(5deg);
}

.dog-puppet.is-drooling .drool-drop {
  animation: drool-fall 920ms ease-in-out 1 forwards;
}

.dog-puppet.is-walk-demand {
  animation: demand-hop 620ms ease-in-out infinite;
}

.dog-puppet.is-walk-demand .dog-tail {
  animation-duration: 260ms;
}

.choice-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(580px, 100%);
  margin-top: 16px;
  isolation: isolate;
}

.paper {
  position: relative;
  display: grid;
  min-height: 104px;
  align-content: center;
  border: 1px solid rgba(104, 76, 48, 0.18);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(229, 181, 79, 0.18) 0 2px, transparent 2px 100%),
    var(--paper);
  box-shadow: 0 16px 28px rgba(50, 35, 24, 0.1);
  transform: rotate(var(--tilt, -1deg));
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms ease,
    opacity 320ms ease,
    border-color 320ms ease;
}

.paper:nth-child(2n) {
  --tilt: 1.2deg;
  margin-top: 12px;
}

.paper:nth-child(3n) {
  --tilt: -2deg;
}

.paper small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: clamp(1.14rem, 2vw, 1.46rem);
  line-height: 1.12;
}

.paper.is-active {
  border-color: rgba(40, 112, 111, 0.55);
  box-shadow:
    0 20px 40px rgba(40, 112, 111, 0.18),
    inset 0 0 0 1px rgba(40, 112, 111, 0.18);
  transform: translateY(-8px) rotate(0deg);
}

.paper.is-muted {
  opacity: 0.34;
}

.paper.is-selected {
  border-color: rgba(189, 78, 61, 0.62);
  background:
    radial-gradient(circle at 78% 28%, rgba(189, 78, 61, 0.15) 0 20%, transparent 21%),
    var(--paper);
}

.paper.is-sat::after,
.paper.has-drool::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.paper.is-sat::after {
  inset: 20px 34px auto auto;
  width: 74px;
  height: 56px;
  border-radius: 44% 56% 48% 52%;
  background: rgba(41, 35, 31, 0.76);
  box-shadow:
    -23px 11px 0 rgba(41, 35, 31, 0.44),
    18px 13px 0 rgba(41, 35, 31, 0.42);
  transform: rotate(-8deg);
  animation: sit-stamp 280ms ease-out both;
}

.paper.has-drool::after {
  right: 22px;
  bottom: 18px;
  width: 68px;
  height: 44px;
  border: 2px solid rgba(40, 112, 111, 0.3);
  border-radius: 48% 52% 43% 57%;
  background: rgba(207, 228, 231, 0.58);
  filter: blur(0.2px);
  animation: drool-spread 520ms ease-out both;
}

.paper.is-grabbed {
  border-color: rgba(189, 78, 61, 0.72);
  transform: translateX(8px) rotate(4deg);
}

.paper.is-taken {
  opacity: 0;
  transform: translate(260px, -74px) rotate(18deg);
}

.walk-ticket {
  display: grid;
  min-height: 104px;
  align-content: center;
  border: 2px dashed rgba(40, 112, 111, 0.46);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--teal);
  background: rgba(207, 228, 231, 0.5);
  box-shadow: 0 16px 28px rgba(40, 112, 111, 0.11);
  animation: pop-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.walk-ticket small {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.walk-ticket strong {
  margin-top: 8px;
  font-size: 1.5rem;
}

.verdict {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 12;
  width: min(360px, calc(100% - 60px));
  border: 1px solid rgba(41, 35, 31, 0.16);
  border-radius: 22px;
  padding: 22px;
  color: #fffdf8;
  background: #2f2925;
  box-shadow: 0 26px 70px rgba(41, 35, 31, 0.28);
  animation: verdict-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.verdict-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.verdict p:last-of-type {
  margin: 0 0 18px;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.7;
  white-space: pre-line;
}

.verdict-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.copy-button,
.walk-button {
  width: 100%;
  border-color: rgba(255, 253, 248, 0.18);
  color: #fffdf8;
  background: rgba(255, 253, 248, 0.08);
  box-shadow: none;
}

.walk-button {
  background: rgba(40, 112, 111, 0.36);
}

.copy-button:hover,
.walk-button:hover {
  border-color: rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.14);
}

.walk-button:hover {
  background: rgba(40, 112, 111, 0.5);
}

.walk-scene {
  position: absolute;
  inset: 12px 22px 28px;
  z-index: 30;
  overflow: hidden;
  border: 1px solid rgba(41, 35, 31, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, #d9edf0 0 54%, #b6d7bb 54% 100%);
  box-shadow: 0 28px 80px rgba(41, 35, 31, 0.28);
}

.walk-scene[hidden] {
  display: none;
}

.walk-sky,
.walk-ground,
.walk-sky span,
.walk-ground span {
  position: absolute;
  inset: 0;
}

.sun {
  left: auto;
  right: 44px;
  top: 34px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e8b84d;
  box-shadow: 0 0 0 14px rgba(232, 184, 77, 0.16);
}

.cloud {
  width: 92px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 16px;
  top: -14px;
  width: 34px;
  height: 34px;
}

.cloud::after {
  right: 16px;
  top: -10px;
  width: 28px;
  height: 28px;
}

.cloud-a {
  left: 52px;
  top: 54px;
  animation: cloud-drift 10s linear infinite;
}

.cloud-b {
  left: 230px;
  top: 28px;
  transform: scale(0.78);
  animation: cloud-drift 13s linear infinite reverse;
}

.tree {
  top: auto;
  bottom: 86px;
  width: 38px;
  height: 92px;
}

.tree::before {
  position: absolute;
  left: 15px;
  bottom: 0;
  width: 9px;
  height: 48px;
  content: "";
  background: #725239;
}

.tree::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 48px;
  border-radius: 50% 50% 42% 42%;
  content: "";
  background: #5f8c68;
  box-shadow: 12px 20px 0 #6f9b72, -10px 22px 0 #789f76;
}

.tree-a {
  left: 52px;
}

.tree-b {
  right: 82px;
  transform: scale(0.9);
}

.bench {
  inset: auto 152px 96px auto;
  width: 82px;
  height: 24px;
  border-top: 8px solid #7a583e;
  border-bottom: 6px solid #7a583e;
}

.bench::before,
.bench::after {
  position: absolute;
  bottom: -34px;
  width: 7px;
  height: 34px;
  content: "";
  background: #594330;
}

.bench::before {
  left: 12px;
}

.bench::after {
  right: 12px;
}

.path-line {
  inset: auto -40px 36px -40px;
  height: 90px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 250, 241, 0.72);
  transform: rotate(-2deg);
}

.walker-dog {
  position: absolute;
  left: -150px;
  bottom: 78px;
  z-index: 3;
  width: 134px;
  height: 96px;
  animation: walk-across 10s linear forwards;
}

.walker-dog span {
  position: absolute;
  display: block;
}

.walker-body {
  left: 32px;
  top: 38px;
  width: 72px;
  height: 42px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-radius: 44% 42% 38% 48%;
  background: var(--dog);
  animation: walk-bob 340ms ease-in-out infinite;
}

.walker-tail {
  left: 12px;
  top: 44px;
  width: 36px;
  height: 12px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: var(--dog);
  transform-origin: 100% 50%;
  animation: tail-wag 300ms ease-in-out infinite;
}

.walker-head {
  left: 92px;
  top: 22px;
  width: 46px;
  height: 44px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-radius: 44% 48% 44% 48%;
  background: #f1dfc2;
  animation: walk-head 420ms ease-in-out infinite;
}

.walker-ear {
  left: 0;
  top: 3px;
  width: 17px;
  height: 26px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-radius: 70% 42% 62% 48%;
  background: var(--dog-dark);
  transform: rotate(18deg);
}

.walker-eye {
  left: 29px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.walker-nose {
  right: -8px;
  top: 27px;
  width: 8px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.walker-leg {
  top: 72px;
  width: 11px;
  height: 24px;
  border: 2px solid rgba(41, 35, 31, 0.82);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--dog);
  transform-origin: 50% 0;
  animation: walk-leg 340ms ease-in-out infinite;
}

.walker-leg-a {
  left: 40px;
}

.walker-leg-b {
  left: 58px;
  animation-delay: 170ms;
}

.walker-leg-c {
  left: 82px;
  animation-delay: 170ms;
}

.walker-leg-d {
  left: 98px;
}

.leash {
  left: 126px;
  top: 34px;
  width: 82px;
  height: 2px;
  background: var(--tomato);
  transform: rotate(-24deg);
  transform-origin: 0 50%;
}

.walk-countdown {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 116px;
  border: 1px solid rgba(41, 35, 31, 0.18);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 16px 36px rgba(41, 35, 31, 0.16);
}

.walk-countdown span {
  color: var(--teal);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.walk-countdown small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

@keyframes sniff {
  0% {
    transform: translateX(6px) scale(0.4);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translateX(32px) scale(1);
    opacity: 0;
  }
}

@keyframes head-sniff {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  50% {
    transform: translate(12px, 6px) rotate(7deg);
  }
}

@keyframes body-breathe {
  50% {
    transform: translateY(3px);
  }
}

@keyframes tail-wag {
  0%,
  100% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(24deg);
  }
}

@keyframes dog-dash-away {
  0% {
    transform: translate3d(var(--dog-x), var(--dog-y), 0) rotate(0);
  }
  28% {
    transform: translate3d(calc(var(--dog-x) + 70px), calc(var(--dog-y) - 22px), 0) rotate(-4deg);
  }
  100% {
    transform: translate3d(var(--exit-x), calc(var(--dog-y) - 80px), 0) rotate(-10deg);
  }
}

@keyframes run-bob {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes run-leg {
  0%,
  100% {
    transform: rotate(-32deg);
  }
  50% {
    transform: rotate(34deg);
  }
}

@keyframes paper-flutter {
  0%,
  100% {
    transform: rotate(6deg) scale(1);
  }
  50% {
    transform: rotate(-9deg) scale(1.04);
  }
}

@keyframes demand-hop {
  0%,
  100% {
    transform: translate3d(var(--dog-x), var(--dog-y), 0);
  }
  50% {
    transform: translate3d(var(--dog-x), calc(var(--dog-y) - 10px), 0) rotate(-2deg);
  }
}

@keyframes drool-fall {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(0.55);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(30px) scale(1.05);
  }
}

@keyframes drool-spread {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes sit-stamp {
  from {
    transform: scale(0.7) rotate(-8deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(-8deg);
    opacity: 1;
  }
}

@keyframes verdict-in {
  from {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pop-in {
  from {
    transform: translateY(12px) rotate(-1deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) rotate(1deg);
    opacity: 1;
  }
}

@keyframes float-up {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes cloud-drift {
  0% {
    transform: translateX(-30px);
  }
  100% {
    transform: translateX(60px);
  }
}

@keyframes walk-across {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 260px));
  }
}

@keyframes walk-bob {
  50% {
    transform: translateY(-4px);
  }
}

@keyframes walk-head {
  50% {
    transform: translateY(3px) rotate(3deg);
  }
}

@keyframes walk-leg {
  0%,
  100% {
    transform: rotate(-20deg);
  }
  50% {
    transform: rotate(22deg);
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 24px, 720px);
    padding-top: 14px;
  }

  .topbar {
    align-items: flex-start;
  }

  .decision-layout {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .input-panel {
    min-height: auto;
  }

  .section-heading h1 {
    max-width: 14ch;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 430px);
  }

  .topbar {
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-kicker {
    display: none;
  }

  .input-panel,
  .stage-panel {
    border-radius: 20px;
  }

  .input-panel,
  .stage-heading,
  .oracle-stage {
    padding-left: 18px;
    padding-right: 18px;
  }

  .input-panel {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .stage-heading {
    flex-direction: column;
  }

  .oracle-stage {
    min-height: 700px;
    padding-bottom: 18px;
  }

  .motion-arena {
    min-height: 162px;
  }

  .motion-note {
    left: 16px;
    top: 14px;
    max-width: 210px;
    font-size: 0.82rem;
  }

  .window-shape {
    right: 18px;
    top: 18px;
    width: 88px;
    height: 62px;
  }

  .rug-shape {
    width: 260px;
  }

  .dog-puppet {
    scale: 0.84;
    transform-origin: 0 0;
  }

  .choice-board {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .paper,
  .walk-ticket {
    min-height: 92px;
  }

  .verdict {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .walk-scene {
    inset: 10px 14px 18px;
  }

  .tree-b,
  .bench {
    display: none;
  }

  .form-actions {
    display: grid;
  }
}
