:root {
  --bg: #fdfbf7;
  --panel: #ffffff;
  --line: #f0e8e1;
  --line-strong: #e7d8cf;
  --text: #544b49;
  --muted: #a3928e;
  --accent: #ffb3a7;
  --shadow: 0 6px 20px rgba(84, 75, 73, 0.04);
  --radius: 14px;
  --font: "Nunito", "Quicksand", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  padding: 28px 20px 40px;
  display: grid;
  place-items: center;
}

.shell-home {
  padding-top: 10vh;
}

.panel,
.result-card,
.empty-card {
  width: min(100%, 720px);
  border: 1px solid rgba(74, 62, 61, 0.06);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-card {
  width: min(100%, 560px);
  padding: 40px 32px 34px;
  display: flex;
  flex-direction: column;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: #fdf5f0;
}

.home-card h1,
.question-title,
.result-title {
  margin: 0;
}

.home-card h1 {
  margin-top: 20px;
  font-size: clamp(1.68rem, 3vw, 2.08rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.home-card p {
  margin: 14px 0 0;
  max-width: none;
  font-size: 1.02rem;
  color: var(--muted);
  text-wrap: pretty;
}

.home-start-shell {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.home-card .mini-brand {
  align-self: center;
}

.paw-start {
  position: relative;
  width: 238px;
  height: 220px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 160ms ease;
}

.paw-start:hover {
  transform: translateY(-2px);
}

.paw-start:focus-visible {
  outline: 2px solid rgba(255, 179, 167, 0.4);
  outline-offset: 6px;
}

.paw-start::before,
.paw-start::after {
  content: "";
  position: absolute;
  top: 90px;
  width: 22px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(145, 82, 41, 0.9) 0%, rgba(99, 55, 26, 0.82) 100%);
  opacity: 0.2;
}

.paw-start::before {
  left: 34px;
  transform: rotate(-18deg);
}

.paw-start::after {
  right: 34px;
  transform: rotate(18deg);
}

.paw-pad {
  position: absolute;
  border: 1px solid rgba(101, 58, 29, 0.14);
  background: linear-gradient(180deg, #f7bf78 0%, #e99c4a 65%, #d17b32 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 235, 0.62), 0 10px 18px rgba(92, 58, 34, 0.1);
}

.toe {
  top: 8px;
  width: 54px;
  height: 68px;
  border-radius: 56% 56% 50% 50% / 68% 68% 38% 38%;
  transform-origin: center bottom;
  transform: rotate(var(--toe-rotate, 0deg));
}

.toe-1 {
  left: 38px;
  --toe-rotate: -16deg;
}

.toe-2 {
  left: 78px;
  --toe-rotate: -5deg;
}

.toe-3 {
  right: 78px;
  --toe-rotate: 5deg;
}

.toe-4 {
  right: 38px;
  --toe-rotate: 16deg;
}

.paw-core {
  bottom: 16px;
  left: 50%;
  width: 142px;
  height: 124px;
  border-radius: 44% 44% 42% 42% / 40% 40% 52% 52%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffaf5;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.paw-core::before,
.paw-core::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 16px;
  height: 44px;
  border-radius: 999px;
  background: rgba(110, 57, 18, 0.16);
}

.paw-core::before {
  left: 28px;
  transform: rotate(18deg);
}

.paw-core::after {
  right: 28px;
  transform: rotate(-18deg);
}

.paw-start.is-launching .paw-core {
  animation: paw-core-press 780ms ease forwards;
}

.paw-start.is-launching .toe-1,
.paw-start.is-launching .toe-4 {
  animation: paw-toe-pop-outer 700ms ease forwards;
}

.paw-start.is-launching .toe-2,
.paw-start.is-launching .toe-3 {
  animation: paw-toe-pop-inner 700ms ease forwards;
}

@keyframes paw-core-press {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  30% {
    transform: translateX(-50%) scale(0.96);
  }

  70% {
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes paw-toe-pop-outer {
  0%,
  100% {
    opacity: 1;
  }

  35% {
    transform: translateY(-6px) scale(0.96) rotate(var(--toe-rotate, 0deg));
  }

  70% {
    transform: translateY(8px) scale(1.04) rotate(var(--toe-rotate, 0deg));
  }
}

@keyframes paw-toe-pop-inner {
  0%,
  100% {
    opacity: 1;
  }

  35% {
    transform: translateY(-4px) scale(0.97) rotate(var(--toe-rotate, 0deg));
  }

  70% {
    transform: translateY(6px) scale(1.03) rotate(var(--toe-rotate, 0deg));
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease,
    transform 140ms ease;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: #ff9a8c;
  border-color: #ff9a8c;
}

.button-secondary {
  background: #fff;
  color: var(--text);
}

.button-secondary:hover {
  background: #fff9f5;
  border-color: var(--line-strong);
  box-shadow: 0 4px 14px rgba(74, 62, 61, 0.05);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  opacity: 0.46;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.quiz-panel {
  padding: 28px 28px 24px;
}

.quiz-progress {
  display: grid;
  gap: 10px;
}

.quiz-progress-text {
  display: flex;
  gap: 4px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.progress-track,
.meter-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f5f1ec;
}

.progress-fill,
.meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.question-area {
  padding: 30px 0 22px;
}

.question-area.is-entering {
  animation: question-fade-in 280ms ease-out;
}

.question-dimension,
.result-code,
.result-summary,
.note-box p,
.detail-card p,
.meter-labels,
.empty-card p {
  color: var(--muted);
}

.question-dimension {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffbf9;
  color: #a89489;
  font-size: 0.84rem;
}

.question-title {
  max-width: none;
  font-size: clamp(1.12rem, 1.75vw, 1.46rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.answer-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.answer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid #f3ebe4;
  border-radius: 14px;
  background: #fdfbf7;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}

.answer-card:hover {
  background: #fff8f3;
  border-color: #ebdacc;
  box-shadow: 0 6px 14px rgba(84, 75, 73, 0.04);
}

.answer-card:hover .answer-index,
.answer-card.is-picked .answer-index {
  border-color: #ebdacc;
  background: #fffbf9;
  color: #a38c80;
}

.answer-card:hover .answer-tag,
.answer-card.is-picked .answer-tag {
  border-color: #f0e1d8;
  background: #fffcfb;
  color: #a89489;
}

.answer-card:active {
  transform: scale(0.985);
}

.answer-card.is-picked {
  background: #fff8f3;
  border-color: #ebdacc;
  box-shadow: 0 6px 14px rgba(84, 75, 73, 0.04);
}

.answer-card.is-current {
  border-color: #ebdacc;
  background: #fff8f3;
}

.answer-card.is-dimmed {
  opacity: 0.62;
}

.answer-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.answer-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #eadfd5;
  border-radius: 50%;
  background: #fff;
  color: #b09d97;
  flex: none;
  font-weight: 700;
}

.answer-copy strong,
.answer-copy span {
  display: block;
}

.answer-copy {
  flex: 1;
  min-width: 0;
}

.answer-copy strong {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.answer-copy span {
  color: var(--muted);
}

.answer-tag {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(74, 62, 61, 0.06);
  border-radius: 999px;
  color: #a89489;
  background: #fff;
  font-size: 0.84rem;
}

.quiz-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shell-result {
  align-items: start;
  padding-top: 36px;
  padding-bottom: 48px;
}

.result-card {
  width: min(100%, 600px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.result-stage {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.result-image-frame {
  width: min(100%, 548px);
  padding: 12px;
  border: 1px solid rgba(74, 62, 61, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(74, 62, 61, 0.05);
}

.result-image {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(74, 62, 61, 0.08);
}

.result-save-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.result-save-hint::before {
  content: "\2193";
  display: inline-block;
  margin-right: 6px;
}

.result-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.result-toggle-row .button,
.result-toggle-button {
  background: #fff;
  box-shadow: 0 4px 14px rgba(74, 62, 61, 0.04);
  min-width: 148px;
}

.result-detail-panel {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(74, 62, 61, 0.05);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(74, 62, 61, 0.04);
}

.result-detail-panel.is-open {
  animation: result-detail-fade 220ms ease-out;
}

.result-detail-panel[hidden] {
  display: none;
}

.result-detail-panel > :first-child {
  margin-top: 0;
}

.result-detail-panel > :last-child {
  margin-bottom: 0;
}

.result-card-fallback {
  padding: 24px;
  border: 1px solid rgba(74, 62, 61, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.result-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.result-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  flex: none;
}

.result-head-copy {
  display: grid;
  gap: 8px;
}

.result-head-copy-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.result-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(74, 62, 61, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.result-code,
.result-summary {
  margin: 0;
}

.result-summary {
  line-height: 1.68;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.keyword {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid #ebe3de;
  border-radius: 999px;
  background: #fffbf9;
  color: #8c7b74;
  font-size: 0.84rem;
}

.note-box,
.detail-card,
.meter-card {
  border: 1px solid rgba(74, 62, 61, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.note-box {
  padding: 18px;
  border-color: #eae1db;
  background: #fffaf5;
}

.note-box strong {
  display: block;
  color: var(--text);
  font-size: 0.94rem;
}

.note-box p {
  margin: 8px 0 0;
  line-height: 1.72;
}

.detail-grid,
.meter-list {
  display: grid;
  gap: 14px;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.detail-card {
  padding: 18px 18px 16px;
  border-color: rgba(74, 62, 61, 0.05);
  background: #fffdfd;
}

.detail-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.detail-card p {
  margin: 8px 0 0;
  line-height: 1.68;
}

.meter-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.meter-card {
  padding: 16px 16px 14px;
  border-color: rgba(74, 62, 61, 0.05);
  background: #fffdfd;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.meter-value {
  font-weight: 700;
  color: var(--text);
}

.meter-track {
  background: #f6f1ec;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.88rem;
}

.result-actions {
  justify-content: center;
  margin-top: 16px;
}

.result-actions .button {
  min-width: 126px;
}

.gallery-page {
  background: var(--bg);
}

.gallery-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-header h1 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--text);
}

.gallery-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.gallery-card {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.gallery-card span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.gallery-card img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(74, 62, 61, 0.06);
  background: #fff;
  box-shadow: 0 8px 20px rgba(74, 62, 61, 0.06);
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

.gallery-card:hover img {
  border-color: rgba(255, 143, 171, 0.24);
  box-shadow: 0 10px 22px rgba(74, 62, 61, 0.09);
}

.result-card-fallback .result-actions {
  margin-top: 20px;
}

.empty-card {
  padding: 32px 28px;
}

.empty-card h1 {
  margin: 0;
  font-size: 1.8rem;
}

.empty-card p {
  margin: 12px 0 0;
}

.empty-card .result-actions {
  margin-top: 20px;
}

@media (max-width: 760px) {
  .shell {
    padding: 20px 16px 40px;
  }

  .home-card,
  .quiz-panel,
  .empty-card {
    padding: 22px 18px;
  }

  .home-card {
    padding: 30px 22px 26px;
  }

  .paw-start {
    width: 210px;
    height: 194px;
  }

  .paw-start::before,
  .paw-start::after {
    top: 82px;
    width: 18px;
    height: 56px;
  }

  .paw-start::before {
    left: 32px;
  }

  .paw-start::after {
    right: 32px;
  }

  .toe {
    width: 46px;
    height: 58px;
  }

  .toe-1 {
    left: 32px;
  }

  .toe-2 {
    left: 68px;
  }

  .toe-3 {
    right: 68px;
  }

  .toe-4 {
    right: 32px;
  }

  .paw-core {
    width: 126px;
    height: 110px;
    font-size: 0.98rem;
  }

  .detail-grid,
  .meter-list {
    grid-template-columns: 1fr;
  }

  .question-title {
    font-size: 1.22rem;
  }

  .answer-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .answer-tag {
    align-self: center;
    margin-left: 8px;
  }

  .home-trail-button {
    width: 212px;
    height: 88px;
  }

  .shell-result {
    padding-top: 24px;
  }

  .result-image-frame {
    padding: 10px;
    border-radius: 18px;
  }

  .result-save-hint {
    font-size: 0.8rem;
  }

  .result-detail-panel {
    padding: 18px;
    gap: 14px;
  }

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

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

  .gallery-shell {
    padding: 24px 16px 40px;
  }

  .gallery-header {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-actions {
    width: 100%;
  }

  .gallery-actions .button {
    flex: 1 1 0;
  }

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

@media (max-width: 520px) {
  .shell {
    padding: 16px 14px 28px;
  }

  .shell-home {
    padding-top: 28px;
    align-items: start;
  }

  .home-card {
    width: 100%;
    padding: 26px 18px 22px;
  }

  .mini-brand {
    height: 26px;
    font-size: 0.72rem;
  }

  .home-card h1 {
    margin-top: 16px;
    font-size: 1.48rem;
    line-height: 1.24;
  }

  .home-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .home-start-shell {
    margin-top: 22px;
  }

  .home-trail-button {
    width: 196px;
    height: 78px;
  }

  .home-trail-button .paw-trail-label {
    font-size: 0.98rem;
  }

  .home-trail-button .trail svg {
    width: 18px;
    height: 18px;
  }

  .home-trail-button .trail svg:nth-child(1) {
    left: 18px;
    bottom: 16px;
  }

  .home-trail-button .trail svg:nth-child(2) {
    left: 54px;
    top: 16px;
  }

  .home-trail-button .trail svg:nth-child(3) {
    left: 96px;
    bottom: 16px;
  }

  .home-trail-button .trail svg:nth-child(4) {
    left: 138px;
    top: 16px;
  }

  .quiz-panel {
    padding: 18px 14px 16px;
  }

  .quiz-progress-text {
    font-size: 0.8rem;
  }

  .question-area {
    padding: 22px 0 18px;
  }

  .question-dimension {
    min-height: 26px;
    margin-bottom: 12px;
    padding: 0 9px;
    font-size: 0.8rem;
  }

  .question-title {
    font-size: 1.08rem;
    line-height: 1.42;
  }

  .answer-list {
    gap: 10px;
    margin-top: 18px;
  }

  .answer-card {
    padding: 14px 12px 13px;
    gap: 10px;
  }

  .answer-main {
    gap: 12px;
  }

  .answer-index {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .answer-copy strong {
    font-size: 0.95rem;
  }

  .answer-copy span {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .answer-tag {
    padding: 4px 9px;
    font-size: 0.8rem;
    margin-left: 6px;
  }

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

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

  .shell-result {
    padding: 18px 14px 32px;
  }

  .result-image-frame {
    padding: 8px;
    border-radius: 16px;
  }

  .result-save-hint {
    font-size: 0.78rem;
  }

  .result-toggle-row {
    width: 100%;
  }

  .result-toggle-row .button,
  .result-toggle-button {
    width: 100%;
  }

  .result-detail-panel {
    padding: 16px;
    gap: 12px;
  }

  .note-box,
  .detail-card,
  .meter-card {
    padding: 14px;
  }

  .result-header {
    gap: 12px;
  }

  .result-mark {
    width: 60px;
    height: 60px;
    font-size: 1.02rem;
  }

  .result-title {
    font-size: 1.48rem;
  }

  .result-chip {
    font-size: 0.82rem;
  }

  .result-actions {
    gap: 8px;
  }

  .result-actions .button {
    min-width: 0;
  }

  .gallery-header h1 {
    font-size: 1.36rem;
  }

  .gallery-header p {
    font-size: 0.94rem;
  }

  .gallery-actions {
    flex-direction: column;
  }

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

  .gallery-grid {
    gap: 12px;
  }
}

.entry-preview-page {
  width: min(100%, 860px);
  display: grid;
  gap: 18px;
}

.preview-header {
  padding: 24px;
}

.preview-header h1,
.preview-card h2 {
  margin: 0;
}

.preview-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.preview-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
}

.preview-source {
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-demo {
  min-height: 230px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fffcf8;
}

.preview-demo-b {
  background: linear-gradient(180deg, #fffcf8 0%, #fff7ee 100%);
}

.preview-demo-c {
  background: linear-gradient(180deg, #fffdfa 0%, #fdf6ef 100%);
}

.preview-button {
  min-width: 176px;
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(67, 48, 33, 0.07);
}

.preview-button svg {
  width: 31px;
  height: 31px;
  flex: none;
  color: var(--paw-color, #ffc29c);
}

.paw-trail-button {
  position: relative;
  width: 208px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 62, 61, 0.05);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 9px 18px rgba(255, 143, 171, 0.13),
    0 2px 8px rgba(74, 62, 61, 0.04);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.home-trail-button {
  width: 220px;
  height: 96px;
}

.paw-trail-button:hover {
  transform: translateY(-2px);
  border-color: #ece2db;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 12px 22px rgba(255, 143, 171, 0.16),
    0 3px 10px rgba(74, 62, 61, 0.05);
}

.paw-trail-button:active,
.paw-trail-button[data-busy="true"] {
  transform: scale(0.985);
}

.paw-trail-label {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: transparent;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.trail svg {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--paw-color, #ffc29c);
  opacity: 0;
  transform-origin: center;
  animation: trail-step 2.4s ease-in-out infinite;
}

.trail svg:nth-child(1) {
  left: 22px;
  bottom: 20px;
  animation-delay: 0s;
}

.trail svg:nth-child(2) {
  left: 64px;
  top: 18px;
  animation-delay: 0.5s;
}

.trail svg:nth-child(3) {
  left: 116px;
  bottom: 20px;
  animation-delay: 1s;
}

.trail svg:nth-child(4) {
  left: 162px;
  top: 18px;
  animation-delay: 1.5s;
}

.paw-trail-button:hover .trail svg {
  animation-duration: 1.6s;
}

.preview-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.preview-actions {
  display: flex;
  justify-content: center;
}

@keyframes trail-step {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.9) translate(-4px, 4px);
  }

  18%,
  42% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }

  58% {
    opacity: 0;
    transform: scale(1.02) translate(4px, -2px);
  }
}

@keyframes question-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes result-detail-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .entry-preview-page {
    gap: 14px;
  }

  .preview-header,
  .preview-card {
    padding: 18px;
  }

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