:root {
  color: #263238;
  background: #eef3f2;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
  --ink: #263238;
  --muted: #7c898b;
  --paper: #ffffff;
  --mist: #eef3f2;
  --mint: #77a99d;
  --coral: #ff706b;
  --line: rgba(38, 50, 56, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(119, 169, 157, 0.14), transparent 27%),
    linear-gradient(155deg, #f7faf9 0%, var(--mist) 58%, #e8efee 100%);
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(255, 112, 107, 0.55);
  outline-offset: 3px;
}

.app-shell {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.title-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
}

.title-lockup strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.tiny-mark {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--coral);
  border-radius: 6px 2px 6px 2px;
  transform: rotate(-4deg);
}

.tiny-mark::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--coral);
}

.score-count {
  display: flex;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
}

.score-count strong {
  margin-right: 2px;
  color: var(--ink);
  font: 700 21px/1 "Arial Rounded MT Bold", Arial, sans-serif;
}

.photo-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 25px;
  background: #dce5e3;
  box-shadow: 0 18px 46px rgba(61, 80, 78, 0.15);
  isolation: isolate;
}

.photo-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

#photoImage {
  z-index: 1;
}

.next-image {
  z-index: 2;
  opacity: 0;
  transition: opacity 260ms ease;
}

.photo-stage.is-swapping .next-image {
  opacity: 1;
}

.stage-shade {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 28, 29, 0.08), rgba(20, 28, 29, 0.64));
  opacity: 0;
  transition: opacity 260ms ease;
}

.photo-stage.has-sheet .stage-shade {
  opacity: 1;
}

.puzzle-grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
  perspective: 900px;
}

.photo-stage.is-playing .puzzle-grid,
.photo-stage.is-finished .puzzle-grid {
  opacity: 1;
}

.photo-stage.is-complete .puzzle-grid {
  opacity: 0;
  transition-delay: 260ms;
}

.puzzle-piece {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 280ms ease;
  transform-style: preserve-3d;
}

.puzzle-piece:nth-child(4n) {
  border-right: 0;
}

.puzzle-piece:nth-child(n + 17) {
  border-bottom: 0;
}

.puzzle-piece::before {
  position: absolute;
  top: 50%;
  right: -9px;
  width: 17px;
  height: 17px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  opacity: 0;
}

.puzzle-piece:not(:nth-child(4n)):nth-child(2n)::before {
  opacity: 1;
}

.puzzle-piece.is-open {
  border-color: rgba(255, 255, 255, 0.5);
}

.puzzle-piece.is-turning {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.18);
  animation: turn-piece 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.entry-button {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  place-items: center;
  color: white;
  background: transparent;
  cursor: pointer;
}

.entry-frame {
  position: absolute;
  top: 31%;
  left: 50%;
  overflow: hidden;
  width: 45%;
  aspect-ratio: 1 / 1.05;
  border-radius: 18px;
  background: rgba(25, 39, 40, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(0.6px);
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.94);
}

.corner-a { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; border-radius: 8px 0 0; }
.corner-b { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; border-radius: 0 8px 0 0; }
.corner-c { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; border-radius: 0 0 0 8px; }
.corner-d { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 8px; }

.scan-line {
  position: absolute;
  right: 9px;
  left: 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  animation: scan 2.4s ease-in-out infinite;
}

.entry-copy {
  position: absolute;
  bottom: 48px;
  left: 50%;
  display: grid;
  min-width: 132px;
  padding: 11px 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(32, 47, 48, 0.46);
  box-shadow: 0 9px 28px rgba(11, 20, 20, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(13px);
}

.entry-copy strong,
.entry-copy small {
  display: block;
}

.entry-copy strong {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.entry-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}

.question-sheet,
.result-sheet {
  position: absolute;
  z-index: 7;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(250, 252, 251, 0.94);
  box-shadow: 0 18px 48px rgba(22, 37, 37, 0.22);
  backdrop-filter: blur(18px);
  animation: sheet-up 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.question-sheet {
  max-height: calc(100% - 48px);
  overflow-y: auto;
  scrollbar-width: none;
}

.question-sheet::-webkit-scrollbar {
  display: none;
}

.sheet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.sheet-meta span:first-child {
  color: var(--mint);
  font-weight: 700;
}

.question-sheet h1 {
  margin: 9px 0 4px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(18px, 5vw, 23px);
  line-height: 1.35;
}

.question-helper {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option-grid.is-choice,
.option-grid.is-text {
  grid-template-columns: 1fr;
}

.option-button {
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(238, 243, 242, 0.75);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  transition: 170ms ease;
}

.option-grid.is-choice .option-button {
  display: flex;
  min-height: 51px;
  align-items: center;
  padding: 8px 13px;
  text-align: left;
}

.choice-copy,
.choice-label,
.choice-detail {
  display: block;
}

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

.choice-label {
  font-size: 13px;
  line-height: 1.25;
}

.choice-detail {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.answer-input,
.answer-submit {
  height: 47px;
  border-radius: 12px;
  font: inherit;
}

.answer-input {
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  transition: 170ms ease;
}

.answer-input::placeholder {
  color: #a2adae;
}

.answer-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(119, 169, 157, 0.15);
}

.answer-input.is-correct {
  border-color: var(--mint);
  color: #426c62;
  background: #e4f0ed;
}

.answer-input.is-wrong {
  border-color: rgba(255, 112, 107, 0.58);
  color: #b24f4b;
  background: #fff2f1;
}

.answer-submit {
  padding: 0 15px;
  border: 0;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.answer-submit:disabled {
  cursor: default;
  opacity: 0.58;
}

.option-grid.is-image-choice {
  align-items: stretch;
}

.dog-option {
  overflow: hidden;
  min-height: 0;
  padding: 0 0 10px;
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
}

.dog-photo {
  display: block;
  width: 100%;
  height: clamp(112px, 31vw, 142px);
  margin-bottom: 9px;
  border-bottom: 1px solid var(--line);
  background-repeat: no-repeat;
  background-size: 200% auto;
}

.dog-photo.is-left {
  background-position: left 56%;
}

.dog-photo.is-right {
  background-position: right 18%;
}

.dog-option .choice-copy {
  padding: 0 10px;
}

.dog-option .choice-label {
  font-size: 14px;
}

.option-button:hover:not(:disabled) {
  border-color: rgba(119, 169, 157, 0.62);
  background: #e7f0ed;
}

.option-button:disabled {
  cursor: default;
}

.option-button.is-correct {
  border-color: var(--mint);
  color: #426c62;
  background: #dcebe7;
}

.option-button.is-wrong {
  border-color: rgba(255, 112, 107, 0.58);
  color: #b24f4b;
  background: #fff0ef;
}

.option-button.is-muted {
  opacity: 0.46;
}

.feedback {
  min-height: 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.feedback.is-good {
  color: #4f7f74;
}

.feedback.is-miss {
  color: #c35d59;
}

.next-button,
.result-primary,
.result-secondary {
  min-height: 43px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.next-button {
  width: 100%;
  margin-top: 8px;
  border: 0;
  color: white;
  background: var(--ink);
}

.result-sheet > p:first-child {
  margin: 0 0 9px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.result-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.result-line strong {
  color: var(--ink);
  font: 700 40px/1 "Arial Rounded MT Bold", Arial, sans-serif;
  letter-spacing: -0.06em;
}

.result-line span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.result-copy {
  margin: 9px 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.result-actions,
.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-primary,
.result-secondary {
  border: 0;
  font-size: 12px;
}

.result-primary {
  color: white;
  background: var(--ink);
}

.result-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.step-dots {
  position: absolute;
  z-index: 8;
  top: 13px;
  left: 50%;
  display: flex;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(31, 44, 45, 0.34);
  transform: translateX(-50%);
  opacity: 0;
  backdrop-filter: blur(9px);
  transition: opacity 220ms ease;
}

.photo-stage.is-playing .step-dots,
.photo-stage.is-finished .step-dots {
  opacity: 1;
}

.step-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.step-dots i.is-correct {
  border-color: white;
  background: white;
}

.step-dots i.is-wrong {
  border-color: var(--coral);
  background: var(--coral);
}

/* 照片里的轻松聊天：透明对话层 + 一张会“蹦”出来的反馈贴纸。 */
.score-count {
  display: none;
}

.stage-shade {
  background: linear-gradient(
    180deg,
    rgba(17, 24, 25, 0.02) 10%,
    rgba(17, 24, 25, 0.08) 48%,
    rgba(17, 24, 25, 0.52) 100%
  );
}

.entry-teaser {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  padding: 11px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px 16px 16px 5px;
  background: rgba(27, 38, 39, 0.34);
  box-shadow: 0 9px 28px rgba(10, 18, 18, 0.13);
  text-align: left;
  text-shadow: 0 1px 10px rgba(10, 17, 18, 0.32);
  backdrop-filter: blur(12px) saturate(125%);
}

.entry-teaser strong {
  font-size: 16px;
  line-height: 1.2;
}

.entry-teaser small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.entry-copy {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(26, 37, 38, 0.58);
}

.question-sheet,
.result-sheet {
  right: 17px;
  bottom: 20px;
  left: 17px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px 24px 24px 8px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(38, 50, 51, 0.7), rgba(25, 34, 35, 0.56));
  box-shadow: 0 20px 56px rgba(10, 19, 19, 0.27);
  backdrop-filter: blur(22px) saturate(128%);
}

.question-sheet {
  max-height: none;
  overflow: visible;
}

.sheet-meta {
  display: none;
}

.question-sheet h1 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: clamp(19px, 5.4vw, 25px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(6, 13, 13, 0.24);
}

.question-helper {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
}

.option-grid {
  transition: opacity 240ms ease, transform 240ms ease, filter 240ms ease;
}

.option-grid.is-resolved {
  pointer-events: none;
  opacity: 0.28;
  filter: saturate(0.65);
  transform: translateY(3px);
}

.option-grid.is-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.option-button,
.option-grid.is-choice .option-button {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(9px);
}

.option-grid.is-choice .option-button {
  width: auto;
  min-height: 46px;
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
}

.option-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.choice-detail {
  color: rgba(255, 255, 255, 0.58);
}

.option-button.is-correct {
  border-color: rgba(176, 224, 197, 0.7);
  color: #ffffff;
  background: rgba(93, 151, 126, 0.42);
}

.option-button.is-wrong {
  border-color: rgba(255, 158, 150, 0.68);
  color: #ffffff;
  background: rgba(180, 76, 70, 0.34);
}

.answer-input {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(8, 17, 18, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.answer-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.answer-input:focus {
  border-color: rgba(204, 232, 221, 0.72);
  box-shadow: 0 0 0 3px rgba(192, 225, 212, 0.13);
}

.answer-input.is-correct,
.answer-input.is-wrong {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.answer-submit {
  color: #263238;
  background: #f6e6a6;
  box-shadow: 0 7px 20px rgba(10, 17, 18, 0.18);
}

.answer-submit:hover:not(:disabled) {
  background: #fff0b8;
}

.feedback {
  position: absolute;
  bottom: calc(100% + 11px);
  left: 13px;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 26px);
  min-height: 0;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px 15px 15px 4px;
  color: #514626;
  background: rgba(255, 244, 197, 0.96);
  box-shadow: 0 13px 36px rgba(12, 21, 21, 0.23);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  pointer-events: none;
  transform: rotate(-1deg);
  animation: sticker-pop 440ms cubic-bezier(0.2, 1.55, 0.36, 1) both;
}

.feedback:empty {
  display: none;
}

.feedback.is-good {
  color: #3f624f;
  background: rgba(222, 244, 224, 0.97);
}

.feedback.is-miss {
  color: #7c403c;
  background: rgba(255, 224, 217, 0.97);
  transform: rotate(1deg);
}

.next-button {
  width: auto;
  min-height: 38px;
  margin: 10px 0 0 auto;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.next-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.option-grid.is-image-choice {
  gap: 12px;
}

.dog-option {
  overflow: visible;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dog-option:hover:not(:disabled) {
  border: 0;
  background: transparent;
  transform: translateY(-4px) scale(1.015);
}

.dog-photo {
  height: clamp(112px, 31vw, 142px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(9, 17, 17, 0.2);
}

.dog-option .choice-copy {
  position: relative;
  width: calc(100% - 18px);
  margin: -10px auto 0;
  padding: 7px 9px 8px;
  border-radius: 4px;
  color: #3f3a2c;
  background: rgba(255, 239, 174, 0.95);
  box-shadow: 0 7px 18px rgba(9, 16, 16, 0.17);
  transform: rotate(-1.2deg);
}

.dog-option:nth-child(2) .choice-copy {
  transform: rotate(1.2deg);
}

.dog-option .choice-detail {
  color: rgba(63, 58, 44, 0.65);
}

.result-sheet > p:first-child,
.result-line strong,
.result-line span {
  color: #ffffff;
}

.result-sheet > p:first-child {
  color: #d8eadf;
}

.result-copy {
  color: rgba(255, 255, 255, 0.68);
}

.result-primary {
  color: #263238;
  background: #f6e6a6;
}

.result-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.step-dots {
  gap: 7px;
  padding: 8px 10px;
  background: rgba(25, 35, 36, 0.28);
}

.step-dots i {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.38);
  clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  transition: 260ms ease;
}

.step-dots i.is-correct {
  background: #fff0ad;
  filter: drop-shadow(0 0 5px rgba(255, 231, 134, 0.72));
  transform: scale(1.2) rotate(9deg);
}

.step-dots i.is-wrong {
  background: #ff9289;
  transform: scale(0.82) rotate(45deg);
}

@keyframes scan {
  0%, 100% { top: 10%; opacity: 0.35; }
  50% { top: 90%; opacity: 1; }
}

@keyframes sheet-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes turn-piece {
  0% { transform: rotateY(0) scale(1); opacity: 0.55; }
  48% { transform: rotateY(86deg) scale(0.94); opacity: 0.9; }
  100% { transform: rotateY(0) scale(1); opacity: 0; }
}

@keyframes sticker-pop {
  0% { opacity: 0; transform: translateY(12px) scale(0.82) rotate(-4deg); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.035) rotate(-0.6deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-1deg); }
}

@media (min-width: 700px) {
  .app-shell {
    padding-top: 24px;
  }
}

@media (max-height: 700px) {
  .app-shell {
    width: min(100%, 390px);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar {
    height: 34px;
  }

  .photo-stage {
    aspect-ratio: 4 / 5;
  }

  .photo-stage > img {
    object-position: center 37%;
  }

  .question-sheet,
  .result-sheet {
    padding: 14px;
  }

  .question-sheet h1 {
    margin: 7px 0 10px;
  }

  .option-button {
    min-height: 40px;
  }

}

@media (max-width: 350px) {
  .app-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .question-sheet,
  .result-sheet {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .sheet-meta span:last-child {
    display: none;
  }
}

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

/* 默契解锁局：照片贴纸闯关版 */
:root {
  --game-ink: #344044;
  --game-butter: #ffe89a;
  --game-mint: #bfe8d4;
  --game-coral: #ff8e88;
  --game-sky: #b9e3f5;
  --game-lilac: #ddd4ff;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 190, 184, 0.22), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(185, 227, 245, 0.28), transparent 24%),
    linear-gradient(155deg, #fffdf6 0%, #edf7f3 58%, #f7f2ff 100%);
}

.tiny-mark {
  border-color: var(--game-coral);
  background: rgba(255, 232, 154, 0.4);
  transform: rotate(-7deg);
}

.tiny-mark::after {
  background: var(--game-coral);
}

.photo-stage {
  box-shadow: 0 20px 52px rgba(70, 91, 86, 0.16);
}

.stage-shade {
  background: linear-gradient(180deg, transparent 38%, rgba(30, 42, 43, 0.08) 64%, rgba(30, 42, 43, 0.28));
}

.entry-teaser {
  top: 19px;
  left: 18px;
  padding: 11px 15px 12px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 21px 19px 22px 7px;
  color: var(--game-ink);
  background: rgba(255, 235, 159, 0.94);
  box-shadow: 0 8px 0 rgba(68, 82, 80, 0.08), 0 13px 28px rgba(30, 43, 43, 0.12);
  text-shadow: none;
  transform: rotate(-1.5deg);
  backdrop-filter: none;
}

.entry-teaser::after {
  position: absolute;
  bottom: -8px;
  left: 21px;
  width: 17px;
  height: 17px;
  content: "";
  background: rgba(255, 235, 159, 0.94);
  clip-path: polygon(0 0, 100% 0, 18% 100%);
}

.entry-teaser strong {
  font-size: 17px;
}

.entry-teaser small {
  color: rgba(52, 64, 68, 0.68);
  font-size: 10px;
}

.entry-copy {
  min-width: 142px;
  padding: 12px 19px 11px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  color: #ffffff;
  background: rgba(255, 126, 119, 0.92);
  box-shadow: 0 8px 0 rgba(130, 63, 59, 0.18), 0 15px 28px rgba(28, 39, 39, 0.18);
  backdrop-filter: none;
  animation: cta-bob 2.2s ease-in-out infinite;
}

.entry-copy small {
  color: rgba(255, 255, 255, 0.78);
}

.question-sheet {
  right: 0;
  bottom: 10px;
  left: 0;
  padding: 0 18px 18px;
  border: 0;
  border-radius: 0;
  color: var(--game-ink);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.question-sheet h1 {
  position: relative;
  width: fit-content;
  max-width: 96%;
  margin: 0 0 8px;
  padding: 13px 16px 15px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px 24px 25px 8px;
  color: var(--game-ink);
  background: rgba(255, 232, 154, 0.96);
  box-shadow: 0 8px 0 rgba(61, 74, 72, 0.09), 0 15px 32px rgba(23, 34, 34, 0.16);
  font-size: clamp(18px, 5.2vw, 24px);
  letter-spacing: -0.025em;
  line-height: 1.34;
  text-shadow: none;
  transform: rotate(-0.6deg);
  transform-origin: left bottom;
  transition: 300ms ease;
}

.question-sheet h1::after {
  position: absolute;
  bottom: -11px;
  left: 24px;
  width: 20px;
  height: 17px;
  content: "";
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 18% 100%);
}

.question-sheet.is-step-2 h1 { background: rgba(185, 227, 245, 0.97); transform: rotate(0.7deg); }
.question-sheet.is-step-3 h1 { background: rgba(191, 232, 212, 0.97); transform: rotate(-0.7deg); }
.question-sheet.is-step-4 h1 { background: rgba(255, 203, 197, 0.97); transform: rotate(0.6deg); }
.question-sheet.is-step-5 h1 { background: rgba(221, 212, 255, 0.97); transform: rotate(-0.5deg); }

.question-helper {
  display: inline-block;
  width: fit-content;
  max-width: 94%;
  margin: 0 0 11px 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: rgba(52, 64, 68, 0.74);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 18px rgba(27, 40, 39, 0.11);
  font-size: 9px;
  line-height: 1.35;
  backdrop-filter: blur(7px);
  transition: 280ms ease;
}

.answer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.answer-form.has-unit {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.answer-form.has-icon {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.answer-input {
  height: 48px;
  padding: 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--game-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 22px rgba(28, 41, 40, 0.14);
  font-size: 16px;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

.answer-input::placeholder {
  color: rgba(52, 64, 68, 0.46);
}

.answer-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 232, 154, 0.3), 0 8px 24px rgba(28, 41, 40, 0.16);
}

.answer-input.is-correct,
.answer-input.is-wrong {
  color: var(--game-ink);
  background: rgba(255, 255, 255, 0.9);
}

.answer-unit,
.answer-icon {
  display: grid;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--game-ink);
  background: var(--game-sky);
  box-shadow: 0 6px 18px rgba(29, 42, 42, 0.12);
  font-size: 10px;
  font-weight: 700;
}

.answer-unit {
  min-width: 50px;
  padding: 0 9px;
  border-radius: 17px 20px 16px 8px;
  transform: rotate(2deg);
}

.answer-icon {
  width: 42px;
  border-radius: 50%;
  background: var(--game-butter);
  font-size: 18px;
  transform: rotate(-5deg);
}

.is-step-5 .answer-icon {
  background: var(--game-lilac);
}

.answer-submit {
  height: 46px;
  padding: 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: #ffffff;
  background: var(--game-coral);
  box-shadow: 0 7px 0 rgba(138, 68, 64, 0.18), 0 12px 22px rgba(29, 40, 40, 0.14);
  font-size: 10px;
}

.answer-submit:hover:not(:disabled) {
  background: #ff7f78;
  transform: translateY(-2px);
}

.option-grid.is-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 1px 5px 4px;
}

.option-grid.is-choice .option-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 8px 9px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px 20px 21px 8px;
  color: var(--game-ink);
  background: var(--game-butter);
  box-shadow: 0 7px 0 rgba(63, 78, 74, 0.1), 0 12px 23px rgba(27, 39, 39, 0.14);
  backdrop-filter: none;
  transform: rotate(-1.5deg);
}

.option-grid.is-choice .option-button:nth-child(2) {
  background: var(--game-mint);
  transform: rotate(1.4deg);
}

.option-grid.is-choice .option-button:nth-child(3) {
  background: var(--game-sky);
  transform: rotate(-0.6deg);
}

.option-grid.is-choice .option-button:hover:not(:disabled) {
  border-color: #ffffff;
  background: var(--game-butter);
  transform: translateY(-4px) rotate(0deg) scale(1.025);
}

.option-grid.is-choice .option-button:nth-child(2):hover:not(:disabled) { background: var(--game-mint); }
.option-grid.is-choice .option-button:nth-child(3):hover:not(:disabled) { background: var(--game-sky); }

.option-grid.is-choice .choice-detail {
  color: rgba(52, 64, 68, 0.62);
  font-size: clamp(8px, 2.35vw, 9px);
}

.option-grid.is-image-choice {
  gap: 14px;
  padding: 0 4px 5px;
}

.dog-option,
.dog-option:hover:not(:disabled) {
  overflow: visible;
  padding: 0;
  border: 0;
  color: var(--game-ink);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dog-option:hover:not(:disabled) {
  transform: translateY(-7px) rotate(-1deg) scale(1.035);
}

.dog-option:nth-child(2):hover:not(:disabled) {
  transform: translateY(-7px) rotate(1deg) scale(1.035);
}

.dog-photo {
  height: clamp(120px, 33vw, 150px);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 49% 51% 44% 56% / 46% 43% 57% 54%;
  box-shadow: 0 9px 0 rgba(66, 79, 76, 0.1), 0 15px 30px rgba(25, 37, 37, 0.16);
  transform: rotate(-1.7deg);
}

.dog-option:nth-child(2) .dog-photo {
  border-radius: 52% 48% 55% 45% / 44% 54% 46% 56%;
  transform: rotate(1.7deg);
}

.dog-option .choice-copy,
.dog-option:nth-child(2) .choice-copy {
  width: 100%;
  margin: -6px 0 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transform: none;
}

.dog-option .choice-label {
  display: inline-block;
  padding: 5px 13px 6px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--game-ink);
  background: var(--game-butter);
  box-shadow: 0 6px 0 rgba(67, 78, 75, 0.1), 0 9px 18px rgba(24, 35, 35, 0.13);
  transform: rotate(-2deg);
}

.dog-option:nth-child(2) .choice-label {
  background: var(--game-sky);
  transform: rotate(2deg);
}

.dog-option .choice-detail {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 9px rgba(18, 27, 27, 0.75);
  white-space: normal;
}

.question-sheet.is-resolved h1,
.question-sheet.is-resolved .question-helper {
  pointer-events: none;
  opacity: 0.12;
  filter: blur(1.5px);
  transform: translateY(-12px) rotate(-4deg) scale(0.94);
}

.question-sheet.is-resolved .option-grid {
  pointer-events: none;
  opacity: 0;
  filter: blur(1px) saturate(0.5);
  transform: translateY(20px) scale(0.86);
}

.feedback {
  top: 9px;
  bottom: auto;
  left: 50%;
  width: fit-content;
  max-width: calc(100% - 44px);
  padding: 13px 16px 14px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px 22px 23px 8px;
  color: #3f624f;
  background: rgba(210, 244, 221, 0.98);
  box-shadow: 0 8px 0 rgba(57, 79, 71, 0.11), 0 16px 35px rgba(22, 34, 33, 0.19);
  font-size: 12px;
  line-height: 1.5;
  transform: translateX(-50%) rotate(-1deg);
  animation: game-feedback-pop 500ms cubic-bezier(0.2, 1.55, 0.36, 1) both;
}

.feedback::before {
  position: absolute;
  top: -11px;
  right: 16px;
  content: "✦";
  color: #fff0a7;
  font-size: 22px;
  filter: drop-shadow(0 2px 2px rgba(41, 55, 51, 0.18));
}

.feedback.is-miss {
  color: #7b413e;
  background: rgba(255, 215, 210, 0.98);
  transform: translateX(-50%) rotate(1deg);
}

.question-sheet.is-step-2 .feedback.is-good::after {
  display: inline-grid;
  width: 35px;
  height: 35px;
  margin-left: 9px;
  content: "津";
  place-items: center;
  border: 2px solid #d56d65;
  border-radius: 50%;
  color: #c65e58;
  font-size: 15px;
  transform: rotate(-9deg);
}

.next-button {
  width: auto;
  min-height: 42px;
  margin: 12px 5px 0 auto;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #ffffff;
  background: var(--game-coral);
  box-shadow: 0 7px 0 rgba(130, 64, 60, 0.17), 0 12px 22px rgba(25, 37, 36, 0.14);
  font-size: 11px;
  backdrop-filter: none;
  animation: next-bob 1.8s ease-in-out infinite;
}

.next-button:hover {
  background: #ff7e77;
  transform: translateY(-2px);
}

.result-sheet {
  right: 18px;
  bottom: 19px;
  left: 18px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 34px 29px 36px 10px;
  color: var(--game-ink);
  background: rgba(255, 244, 199, 0.96);
  box-shadow: 0 9px 0 rgba(69, 82, 78, 0.1), 0 20px 45px rgba(22, 35, 34, 0.2);
  backdrop-filter: blur(10px);
  transform: rotate(-0.4deg);
}

.result-sheet::before {
  position: absolute;
  top: -17px;
  right: 25px;
  content: "✦";
  color: #ffffff;
  font-size: 30px;
  filter: drop-shadow(0 3px 2px rgba(49, 62, 58, 0.14));
}

.result-sheet > p:first-child,
.result-line strong,
.result-line span,
.result-copy {
  color: var(--game-ink);
}

.result-sheet > p:first-child {
  color: #6d817b;
}

.result-copy {
  color: rgba(52, 64, 68, 0.68);
}

.result-primary {
  color: #ffffff;
  background: var(--game-coral);
}

.result-secondary {
  border: 2px solid rgba(52, 64, 68, 0.11);
  color: var(--game-ink);
  background: rgba(255, 255, 255, 0.58);
}

.step-dots {
  gap: 8px;
  padding: 8px 11px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(25, 37, 36, 0.12);
  backdrop-filter: blur(8px);
}

.step-dots i {
  width: 10px;
  height: 10px;
  background: rgba(52, 64, 68, 0.24);
}

.step-dots i.is-correct {
  background: #f7cc58;
  filter: drop-shadow(0 0 4px rgba(247, 204, 88, 0.65));
}

.step-dots i.is-wrong {
  background: var(--game-coral);
}

@keyframes cta-bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-0.5deg); }
  50% { transform: translateX(-50%) translateY(-5px) rotate(0.7deg); }
}

@keyframes next-bob {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-3px) rotate(0.8deg); }
}

@keyframes game-feedback-pop {
  0% { opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.78) rotate(-6deg); }
  72% { opacity: 1; transform: translateX(-50%) translateY(-3px) scale(1.04) rotate(0.7deg); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(-1deg); }
}

@media (max-height: 700px) {
  .question-sheet {
    right: 0;
    bottom: 4px;
    left: 0;
    padding: 0 14px 12px;
  }

  .question-sheet h1 {
    margin: 0 0 6px;
    padding: 10px 13px 12px;
    font-size: 18px;
  }

  .question-helper {
    margin-bottom: 7px;
    padding: 4px 8px;
  }

  .dog-photo {
    height: 104px;
  }

  .option-grid.is-choice .option-button {
    min-height: 40px;
    padding: 6px 12px;
  }
}

@media (max-width: 350px) {
  .question-sheet {
    right: 0;
    left: 0;
  }

  .answer-submit {
    padding: 0 11px;
  }

  .answer-unit {
    min-width: 45px;
  }
}

/* 原图解锁局：陌生人线索语境 + 4/5 兔子档案补卡关 */
.question-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 7px 9px;
  padding: 5px 11px 6px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: #775d28;
  background: rgba(255, 238, 169, 0.97);
  box-shadow: 0 5px 0 rgba(91, 74, 39, 0.1), 0 9px 18px rgba(28, 40, 39, 0.13);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: rotate(-1.5deg);
  animation: luck-tag 1.8s ease-in-out infinite;
}

.question-sheet.is-step-4 h1 {
  border-radius: 15px 27px 24px 26px;
}

.profile-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 2px dashed rgba(82, 112, 101, 0.36);
  border-radius: 12px 15px 11px 16px;
  color: #4f6d62;
  background: rgba(213, 243, 225, 0.72);
  font-size: 9px;
  transform: rotate(-0.7deg);
}

.profile-sticker strong {
  font-size: 12px;
}

.bonus-entry {
  grid-column: 1 / -1;
  min-height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: #ffffff;
  background: var(--game-coral);
  box-shadow: 0 7px 0 rgba(130, 64, 60, 0.16), 0 12px 22px rgba(25, 37, 36, 0.14);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  animation: next-bob 1.8s ease-in-out infinite;
}

.bonus-sheet {
  position: absolute;
  z-index: 13;
  right: 17px;
  bottom: 18px;
  left: 17px;
  padding: 17px 17px 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 31px 27px 33px 10px;
  color: var(--game-ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 232, 154, 0.88) 0 46px, transparent 47px),
    rgba(238, 251, 246, 0.96);
  box-shadow: 0 10px 0 rgba(55, 79, 70, 0.11), 0 22px 52px rgba(19, 34, 31, 0.24);
  backdrop-filter: blur(15px) saturate(125%);
  transform: rotate(-0.35deg);
  animation: sheet-up 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bonus-sheet::after {
  position: absolute;
  top: -14px;
  right: 24px;
  content: "✦";
  color: #ffffff;
  font-size: 26px;
  filter: drop-shadow(0 3px 2px rgba(49, 62, 58, 0.14));
}

.bonus-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.bonus-kicker span {
  display: inline-flex;
  padding: 5px 10px 6px;
  border-radius: 999px;
  color: #7b4b46;
  background: rgba(255, 205, 199, 0.9);
  font-size: 10px;
  font-weight: 800;
  transform: rotate(-1deg);
}

.bonus-kicker i {
  color: rgba(52, 64, 68, 0.48);
  font-size: 8px;
  font-style: normal;
}

.bonus-step h1 {
  max-width: 90%;
  margin: 0 0 5px;
  font-size: clamp(19px, 5.3vw, 25px);
  letter-spacing: -0.025em;
  line-height: 1.34;
}

.bonus-step > p {
  margin: 0 0 14px;
  color: rgba(52, 64, 68, 0.64);
  font-size: 10px;
  line-height: 1.5;
}

.height-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.height-bubbles button {
  min-height: 45px;
  padding: 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 22px 20px 21px 8px;
  color: var(--game-ink);
  background: var(--game-butter);
  box-shadow: 0 6px 0 rgba(63, 78, 74, 0.1), 0 11px 20px rgba(27, 39, 39, 0.13);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-1.5deg);
  transition: 180ms ease;
}

.height-bubbles button:nth-child(2) {
  background: var(--game-sky);
  transform: rotate(1.2deg);
}

.height-bubbles button:nth-child(3) {
  background: var(--game-lilac);
  transform: rotate(-0.6deg);
}

.height-bubbles button:hover:not(:disabled),
.height-bubbles button.is-picked {
  transform: translateY(-4px) rotate(0) scale(1.035);
}

.height-bubbles button.is-picked {
  outline: 3px solid rgba(255, 142, 136, 0.38);
}

.height-bubbles button:disabled:not(.is-picked) {
  opacity: 0.28;
}

.weight-game {
  display: grid;
  grid-template-columns: 44px minmax(132px, 1fr) 44px;
  align-items: center;
  gap: 10px;
  max-width: 292px;
  margin: 3px auto 12px;
}

.weight-adjust {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: var(--game-ink);
  background: var(--game-butter);
  box-shadow: 0 6px 0 rgba(64, 78, 74, 0.1);
  cursor: pointer;
  font-size: 23px;
  font-weight: 800;
}

.weight-adjust.is-plus {
  background: var(--game-sky);
}

.weight-wheel {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 46% 54% 48% 52% / 53% 46% 54% 47%;
  color: #ffffff;
  background: #344b51;
  box-shadow: inset 0 0 0 2px rgba(185, 227, 245, 0.14), 0 9px 0 rgba(48, 64, 66, 0.12), 0 15px 28px rgba(23, 36, 36, 0.18);
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.weight-wheel::before,
.weight-wheel::after {
  position: absolute;
  right: 17px;
  left: 17px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}

.weight-wheel::before { top: 37px; }
.weight-wheel::after { bottom: 37px; }

.weight-wheel > span {
  color: rgba(255, 255, 255, 0.36);
  font-size: 13px;
  line-height: 1;
}

.weight-wheel strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.weight-wheel b {
  font: 800 47px/1 "Arial Rounded MT Bold", Arial, sans-serif;
  letter-spacing: -0.06em;
}

.weight-wheel em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-style: normal;
}

.weight-wheel.is-ticking b {
  animation: weight-tick 180ms ease-out;
}

.weight-wheel:focus-visible {
  outline: 4px solid rgba(255, 232, 154, 0.58);
  outline-offset: 3px;
}

.bonus-check,
.bonus-finish {
  display: block;
  min-height: 43px;
  margin-left: auto;
  padding: 0 19px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #ffffff;
  background: var(--game-coral);
  box-shadow: 0 7px 0 rgba(130, 64, 60, 0.16), 0 12px 22px rgba(25, 37, 36, 0.13);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.bonus-feedback {
  position: relative;
  margin: 4px 0 13px;
  padding: 14px 15px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px 22px 23px 8px;
  box-shadow: 0 8px 0 rgba(57, 79, 71, 0.1), 0 15px 30px rgba(22, 34, 33, 0.14);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.bonus-feedback.is-good {
  color: #3f624f;
  background: rgba(210, 244, 221, 0.98);
}

.bonus-feedback.is-miss {
  color: #7b413e;
  background: rgba(255, 215, 210, 0.98);
}

.bonus-dossier {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin: 0 0 13px 8px;
  padding: 11px 13px;
  border: 2px dashed rgba(80, 112, 100, 0.38);
  border-radius: 14px 18px 13px 7px;
  color: #4d6b60;
  background: rgba(255, 255, 255, 0.68);
  transform: rotate(-0.8deg);
}

.bonus-dossier span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 9px;
  font-weight: 800;
}

.bonus-dossier strong {
  font-size: 11px;
}

.step-dots i.is-rescued {
  background: linear-gradient(135deg, var(--game-coral) 0 44%, #f7cc58 46% 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 0 4px rgba(247, 204, 88, 0.65));
}

@keyframes luck-tag {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

@keyframes weight-tick {
  0% { opacity: 0.35; transform: translateY(8px) scale(0.88); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 700px) {
  .bonus-sheet {
    bottom: 7px;
    padding: 13px 14px 14px;
  }

  .bonus-kicker {
    margin-bottom: 6px;
  }

  .bonus-step h1 {
    font-size: 18px;
  }

  .bonus-step > p {
    margin-bottom: 9px;
  }

  .weight-wheel {
    min-height: 108px;
  }

  .weight-wheel::before { top: 29px; }
  .weight-wheel::after { bottom: 29px; }
}

/* 轻量结算：让照片成为结局，只留一枚拼图成绩章。 */
.result-sheet {
  right: 14px;
  bottom: 13px;
  left: 14px;
  padding: 14px 15px 13px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 29px 25px 31px 9px;
  background: rgba(228, 243, 248, 0.96);
  box-shadow: 0 8px 0 rgba(56, 73, 72, 0.1), 0 18px 38px rgba(19, 32, 31, 0.2);
  transform: rotate(-0.25deg);
}

.result-sheet.is-near {
  background: rgba(255, 244, 199, 0.97);
}

.result-sheet.is-success {
  background: rgba(222, 246, 231, 0.97);
}

.result-sheet.is-locked {
  background: rgba(231, 226, 250, 0.97);
}

.result-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 8px;
  color: rgba(52, 64, 68, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-kicker span {
  padding: 4px 9px 5px;
  border-radius: 999px;
  color: #6f514d;
  background: rgba(255, 205, 199, 0.82);
  transform: rotate(-1deg);
}

.result-kicker i {
  font-style: normal;
}

.result-line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.result-line strong {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50% 46% 52% 48% / 47% 53% 46% 54%;
  color: #ffffff;
  background: #6faecc;
  box-shadow: 0 7px 0 rgba(54, 74, 77, 0.1), 0 12px 22px rgba(24, 37, 37, 0.13);
  font-size: 26px;
  letter-spacing: -0.07em;
  transform: rotate(-3deg);
}

.result-sheet.is-near .result-line strong {
  background: var(--game-coral);
}

.result-sheet.is-success .result-line strong {
  background: #6fbd94;
}

.result-line span {
  color: var(--game-ink);
  font-size: clamp(16px, 4.8vw, 21px);
  line-height: 1.28;
}

.result-copy {
  margin: 8px 3px 11px 86px;
  color: rgba(52, 64, 68, 0.66);
  font-size: 10px;
  line-height: 1.5;
}

.result-sheet .profile-sticker {
  margin: 0 3px 11px 86px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.result-peek,
.result-sheet .bonus-entry {
  width: 100%;
  min-height: 43px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  color: #ffffff;
  background: var(--game-coral);
  box-shadow: 0 6px 0 rgba(130, 64, 60, 0.15), 0 11px 21px rgba(24, 37, 36, 0.13);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.result-sheet.is-success .result-peek {
  background: #64b489;
  box-shadow: 0 6px 0 rgba(52, 112, 79, 0.14), 0 11px 21px rgba(24, 37, 36, 0.13);
}

.result-sheet .result-secondary {
  min-height: 29px;
  border: 0;
  color: rgba(52, 64, 68, 0.64);
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: rgba(52, 64, 68, 0.24);
  text-underline-offset: 4px;
}

.result-sheet .result-secondary.is-primary-action {
  min-height: 43px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #ffffff;
  background: var(--game-coral);
  box-shadow: 0 6px 0 rgba(130, 64, 60, 0.15), 0 11px 21px rgba(24, 37, 36, 0.13);
  font-size: 11px;
  text-decoration: none;
}

.result-recall {
  position: absolute;
  z-index: 14;
  right: 15px;
  bottom: 15px;
  min-height: 37px;
  padding: 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(52, 64, 68, 0.68);
  box-shadow: 0 8px 22px rgba(18, 29, 29, 0.18);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  animation: result-recall-in 260ms ease-out both;
}

.photo-stage.is-result-hidden .stage-shade,
.photo-stage.is-result-hidden .step-dots {
  opacity: 0;
}

.bonus-kicker {
  justify-content: flex-start;
}

@keyframes result-recall-in {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 700px) {
  .result-sheet {
    bottom: 6px;
    padding: 11px 13px 10px;
  }

  .result-line {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .result-line strong {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .result-copy,
  .result-sheet .profile-sticker {
    margin-left: 74px;
  }
}
