:root {
  color-scheme: light;
  --ink: #274c46;
  --muted: #6d817a;
  --paper: #fffdf7;
  --cream: #f8f1dc;
  --line: #ddd2b4;
  --green: #4f9b75;
  --green-dark: #377c60;
  --gold: #e2a544;
  --coral: #e96f62;
  --violet: #776bb0;
  --shadow: 0 18px 38px rgba(62, 74, 57, .13);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: var(--ink);
  background: #f7f0dc;
}

* { box-sizing: border-box; }

html { min-width: 0; }

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 11px 11px, rgba(255,255,255,.78) 0 2px, transparent 2.6px) 0 0 / 23px 23px,
    linear-gradient(145deg, #f8f2de, #f2ead2);
}

button { font: inherit; }

button, [role="button"] { -webkit-tap-highlight-color: transparent; }

img { display: block; max-width: 100%; }

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

.paper {
  border: 2px solid rgba(205, 191, 153, .72);
  background: rgba(255, 253, 247, .95);
  box-shadow: var(--shadow);
}

.loading-card {
  width: min(520px, 100%);
  margin: 18vh auto 0;
  padding: 52px 30px;
  border: 2px solid var(--line);
  border-radius: 36px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}

.loading-card span { font-size: 56px; }
.loading-card p { margin: 15px 0 0; font-weight: 800; }

.topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 3px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-badge {
  width: 51px;
  height: 51px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px 16px 16px 6px;
  color: #fff7d4;
  background: linear-gradient(145deg, #4fa376, #377b60);
  box-shadow: 0 7px 0 #cfc19e, 0 11px 20px rgba(48, 82, 66, .15);
  font-size: 27px;
}

.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-copy span {
  color: #987026;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand-copy strong { font-size: 23px; line-height: 1; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.icon-button,
.soft-button,
.primary-button {
  min-height: 46px;
  border-radius: 15px;
  border: 2px solid var(--line);
  padding: 11px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 5px 0 #d8ccb0;
}

.soft-button {
  color: var(--ink);
  background: #fffaf0;
  box-shadow: 0 5px 0 #d8ccb0;
}

.primary-button {
  color: #fff;
  border-color: #df6155;
  background: linear-gradient(#ee786b, #e9665a);
  box-shadow: 0 6px 0 #b94c43;
}

.icon-button:hover,
.soft-button:hover,
.primary-button:hover { transform: translateY(-2px); }

.icon-button:active,
.soft-button:active,
.primary-button:active { transform: translateY(3px); box-shadow: none; }

button:focus-visible {
  outline: 4px solid rgba(58, 139, 202, .35);
  outline-offset: 3px;
}

.eyebrow {
  display: block;
  color: #9a7028;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 385px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border-radius: 38px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 62px 30px 52px 38px;
}

.hero h1,
.section-head h2,
.game-head h1,
.result-card h1,
.journal h1,
.detail-card h1 {
  margin: 6px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  color: #1f5045;
  letter-spacing: -.035em;
}

.hero h1 { font-size: clamp(50px, 6.2vw, 78px); line-height: .98; }

.hero-copy > p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.result-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.hero-art {
  position: relative;
  min-height: 385px;
  overflow: hidden;
  background:
    radial-gradient(circle at 69% 36%, rgba(255,255,255,.68) 0 4px, transparent 5px),
    linear-gradient(145deg, #d8ead3, #bcd9b7);
  clip-path: ellipse(84% 91% at 75% 59%);
}

.hero-hill {
  position: absolute;
  width: 128%;
  height: 58%;
  left: -6%;
  bottom: -22%;
  border-radius: 50%;
  background: #9fc69b;
}

.hero-glass {
  position: absolute;
  width: 190px;
  height: 190px;
  left: 34%;
  top: 62px;
  border: 15px solid #f5c15f;
  border-radius: 50%;
  background: rgba(255,255,255,.29);
  box-shadow: inset 0 0 0 4px rgba(72, 91, 61, .18), 0 18px 25px rgba(57, 76, 52, .16);
  transform: rotate(-9deg);
}

.hero-glass::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 135px;
  right: -57px;
  bottom: -95px;
  border: 5px solid #784d37;
  border-radius: 17px;
  background: #9a6546;
  transform: rotate(-34deg);
}

.hero-print {
  position: absolute;
  width: 48px;
  height: 54px;
  border-radius: 44% 44% 48% 48%;
  background: #315d51;
  box-shadow:
    -22px -28px 0 -12px #315d51,
    -7px -40px 0 -13px #315d51,
    10px -40px 0 -13px #315d51,
    25px -27px 0 -13px #315d51;
  opacity: .92;
}

.hero-print.one { left: 72px; bottom: 75px; transform: rotate(18deg) scale(.62); }
.hero-print.two { left: 156px; bottom: 132px; transform: rotate(28deg) scale(.54); }

.hero-feather {
  position: absolute;
  right: 34px;
  top: 38px;
  width: 72px;
  height: 185px;
  border-radius: 90% 15% 90% 15%;
  background:
    linear-gradient(90deg, transparent 47%, #785945 48% 52%, transparent 53%),
    repeating-linear-gradient(35deg, #6a98a4 0 9px, #e9c868 10px 19px);
  transform: rotate(21deg);
  box-shadow: 0 11px 18px rgba(54, 70, 54, .13);
}

.how-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 17px 0 28px;
}

.how-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border-radius: 25px;
}

.how-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 18px 7px;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 2px;
}

.how-card strong { display: block; margin-bottom: 3px; font-size: 17px; }
.how-card p { margin: 0; color: var(--muted); line-height: 1.35; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 4px 14px;
}

.section-head h2 { font-size: clamp(34px, 4vw, 48px); }

.progress-label,
.step-counter {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 16px;
  color: #447362;
  background: #eaf3e2;
  font-weight: 900;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.route-card {
  position: relative;
  min-height: 272px;
  overflow: hidden;
  padding: 25px;
  border: 2px solid rgba(128, 111, 75, .22);
  border-radius: 31px;
  color: var(--ink);
  background: var(--route-soft);
  box-shadow: 0 9px 0 var(--route-shadow), 0 20px 30px rgba(56, 71, 50, .1);
  cursor: pointer;
  text-align: left;
  transition: transform .17s ease;
}

.route-card:hover { transform: translateY(-4px) rotate(-.3deg); }

.route-icon {
  width: 69px;
  height: 69px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border: 3px solid rgba(255,255,255,.72);
  border-radius: 24px 24px 24px 8px;
  background: var(--route);
  box-shadow: 0 8px 0 rgba(83, 71, 49, .15);
  font-size: 34px;
}

.route-card h3 { margin: 0 0 7px; font-size: 27px; }
.route-card p { min-height: 46px; margin: 0; color: #5d746c; line-height: 1.42; }

.route-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
  font-weight: 900;
}

.route-progress-track {
  height: 9px;
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.76);
}

.route-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--route);
}

.adult-note {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 23px;
  padding: 20px 23px;
  border-radius: 27px;
}

.adult-note > span {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background: #fff2bf;
  font-size: 29px;
}

.adult-note strong { display: block; margin-bottom: 4px; }
.adult-note p { margin: 0; color: var(--muted); line-height: 1.45; }

.game-shell {
  overflow: hidden;
  border-radius: 37px;
}

.game-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 27px 29px 20px;
}

.game-head h1 { font-size: clamp(38px, 5vw, 58px); }
.game-head p { margin: -6px 0 0; color: var(--muted); font-size: 18px; }

.progress-track {
  height: 11px;
  margin: 0 29px 21px;
  overflow: hidden;
  border-radius: 12px;
  background: #ebe5d2;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--route-color, var(--green));
  transition: width .25s ease;
}

.case-board {
  display: grid;
  grid-template-columns: minmax(310px, .86fr) minmax(0, 1.14fr);
  border-top: 2px dashed #ded4b9;
  border-bottom: 2px dashed #ded4b9;
  background: #f8f3e4;
}

.evidence-panel {
  min-height: 446px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  border-right: 2px dashed #d8cdb0;
  background:
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.15)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(107,139,124,.08) 30px 31px);
}

.evidence-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #946a24;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.evidence-kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 3px solid var(--route-color);
  border-radius: 50%;
}

.evidence-visual {
  min-height: 250px;
  display: grid;
  flex: 1;
  place-items: center;
  margin: 15px 0;
}

.track-svg {
  width: min(340px, 95%);
  height: 240px;
  overflow: visible;
  filter: drop-shadow(0 8px 5px rgba(76, 67, 48, .12));
}

.track-svg .ground { fill: #eadfbd; }
.track-svg .print { fill: #675b4b; }
.track-svg .line {
  fill: none;
  stroke: #675b4b;
  stroke-width: 8;
  stroke-linecap: round;
}

.texture-sample {
  position: relative;
  width: min(320px, 90%);
  aspect-ratio: 1.3;
  overflow: hidden;
  border: 12px solid #fffaf0;
  border-radius: 45% 38% 44% 31%;
  box-shadow: 0 15px 28px rgba(66, 72, 52, .18), 0 0 0 3px #d8caa8;
  transform: rotate(-2deg);
}

.texture-sample::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.38), transparent 45%);
}

.texture-zebra {
  background: repeating-linear-gradient(76deg, #f7f1df 0 22px, #272d2c 23px 38px, #f7f1df 39px 56px, #272d2c 57px 67px);
}
.texture-tiger {
  background: repeating-linear-gradient(102deg, #e59a3d 0 27px, #2c2926 28px 39px, #eeb35c 40px 65px);
}
.texture-giraffe {
  background-color: #edc778;
  background-image:
    radial-gradient(ellipse at 20% 30%, #9b5d32 0 17%, transparent 18%),
    radial-gradient(ellipse at 73% 24%, #a46435 0 21%, transparent 22%),
    radial-gradient(ellipse at 47% 76%, #8f532f 0 20%, transparent 21%),
    radial-gradient(ellipse at 91% 77%, #9d6035 0 16%, transparent 17%),
    radial-gradient(ellipse at 5% 90%, #98582f 0 19%, transparent 20%);
}
.texture-panda {
  background:
    radial-gradient(ellipse at 34% 48%, #252827 0 13%, transparent 14%),
    radial-gradient(ellipse at 67% 48%, #252827 0 13%, transparent 14%),
    radial-gradient(circle at 50% 70%, #252827 0 8%, transparent 9%),
    #f8f3e7;
}
.texture-leopard {
  background-color: #d89e4b;
  background-image:
    radial-gradient(circle, transparent 0 7px, #5a3827 8px 12px, transparent 13px);
  background-size: 58px 52px;
}
.texture-cheetah {
  background-color: #e0aa55;
  background-image: radial-gradient(circle, #3d3028 0 6px, transparent 7px);
  background-size: 31px 28px;
}
.texture-flamingo {
  background: repeating-linear-gradient(25deg, #f7b2b2 0 18px, #ed8e9a 19px 30px, #f6c5bf 31px 48px);
}
.texture-peafowl {
  background:
    radial-gradient(ellipse at center, #202c54 0 9%, #2d9b8b 10% 20%, #d6a83c 21% 31%, #426b55 32% 46%, transparent 47%),
    repeating-linear-gradient(90deg, #437d6e 0 16px, #2f5f55 17px 25px);
}
.texture-owl {
  background-color: #a47b55;
  background-image:
    radial-gradient(ellipse, #efe3c8 0 7px, #5c4637 8px 12px, transparent 13px);
  background-size: 43px 31px;
}
.texture-penguin {
  background: linear-gradient(102deg, #222b2c 0 41%, #f4f0df 42% 65%, #212a2c 66% 100%);
}

.silhouette-stage {
  position: relative;
  width: min(340px, 95%);
  height: 275px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 48% 44% 42% 46%;
  background:
    radial-gradient(circle at 50% 58%, #fff9e8 0 35%, transparent 36%),
    repeating-conic-gradient(from 4deg, #edf0d4 0 13deg, #f7edc9 14deg 28deg);
}

.silhouette-stage::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 23px;
  bottom: 21px;
  border-radius: 50%;
  background: rgba(68, 75, 57, .15);
}

.silhouette-stage img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter .35s ease, transform .35s ease;
}

.silhouette-stage.is-revealed img {
  filter: none;
  transform: scale(1.03);
}

.evidence-copy {
  padding: 16px 18px;
  border: 2px solid #dfd3b6;
  border-radius: 20px 20px 20px 7px;
  background: rgba(255,253,247,.88);
}

.evidence-copy strong { display: block; margin-bottom: 4px; font-size: 20px; }
.evidence-copy p { margin: 0; color: var(--muted); line-height: 1.42; }

.suspect-panel { padding: 27px; }

.suspect-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: end;
  margin-bottom: 17px;
}

.suspect-head h2 { margin: 0; font-size: 27px; }
.suspect-head span { color: var(--muted); font-size: 14px; }

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

.suspect-card {
  position: relative;
  min-width: 0;
  min-height: 185px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: 10px 12px 14px;
  border: 2px solid #ddd4bd;
  border-radius: 24px;
  color: var(--ink);
  background: #fffdf7;
  box-shadow: 0 7px 0 #dfd6c1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.suspect-card:hover { transform: translateY(-3px) rotate(.3deg); border-color: var(--route-color); }
.suspect-card:active { transform: translateY(3px); box-shadow: none; }

.suspect-card img {
  width: 100%;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 8px 6px rgba(53, 65, 48, .13));
}

.suspect-card span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 12px;
  background: #f8f3e5;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.suspect-card.is-wrong {
  border-color: var(--coral);
  background: #fff0ea;
  animation: shake .28s ease;
}

.suspect-card.is-correct {
  border-color: var(--green);
  background: #eaf7ea;
  box-shadow: 0 7px 0 #9bcbae;
}

.suspect-card:disabled { cursor: default; }

@keyframes shake {
  30% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

.feedback-area {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 17px;
  align-items: center;
  padding: 23px 27px 27px;
}

.feedback {
  min-height: 57px;
  display: flex;
  align-items: center;
  padding: 14px 17px;
  border-radius: 18px;
  color: var(--muted);
  background: #f5f0df;
  line-height: 1.42;
}

.feedback.is-error { color: #9c443c; background: #fff0e9; }
.feedback.is-hint { color: #75591f; background: #fff3c8; }
.feedback.is-success { color: #2f7658; background: #e8f5e8; }

.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.success-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 17px;
  align-items: center;
  padding: 17px;
  border: 2px solid #a8cfb2;
  border-radius: 24px;
  background: #edf8ea;
}

.success-note img {
  width: 106px;
  height: 106px;
  object-fit: contain;
}

.success-note strong { display: block; margin-bottom: 5px; font-size: 21px; }
.success-note p { margin: 0; color: #537064; line-height: 1.45; }

.result-card,
.detail-card {
  padding: 46px 32px;
  border-radius: 38px;
  text-align: center;
}

.result-card h1,
.detail-card h1 { font-size: clamp(42px, 6vw, 67px); }

.result-card > p,
.detail-card > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.stars {
  margin: 10px 0 18px;
  color: #e9ad40;
  font-size: 49px;
  letter-spacing: 6px;
}

.result-scene {
  min-height: 205px;
  display: flex;
  justify-content: center;
  align-items: end;
  margin: 14px 0 4px;
}

.result-scene img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  margin: 0 -13px;
  filter: drop-shadow(0 13px 8px rgba(51,66,48,.16));
}

.result-actions,
.detail-actions { justify-content: center; }

.journal {
  padding: 31px;
  border-radius: 38px;
}

.journal h1 { font-size: clamp(41px, 5vw, 61px); }

.journal > p { margin: 0 0 25px; color: var(--muted); line-height: 1.5; }

.journal-section + .journal-section { margin-top: 30px; }

.journal-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 25px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.journal-card {
  min-width: 0;
  min-height: 166px;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 9px;
  border: 2px solid #ddd3b9;
  border-radius: 21px;
  color: var(--ink);
  background: #fffdf7;
  cursor: pointer;
}

.journal-card img {
  width: 100%;
  height: 105px;
  object-fit: contain;
}

.journal-card span {
  min-height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f5f0df;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.journal-card.is-locked {
  cursor: default;
  border-style: dashed;
  color: #9a9380;
  background: #f1ecdf;
}

.locked-clue {
  display: grid;
  place-items: center;
  color: #aaa18b;
  font-size: 43px;
}

.detail-layout {
  max-width: 790px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 27px;
  align-items: center;
  margin: 25px auto;
  text-align: left;
}

.detail-layout img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

.detail-facts {
  display: grid;
  gap: 12px;
}

.detail-facts div {
  padding: 16px;
  border: 2px solid #ddd3b8;
  border-radius: 18px;
  background: #faf5e7;
}

.detail-facts strong { display: block; margin-bottom: 4px; }
.detail-facts p { margin: 0; color: var(--muted); line-height: 1.44; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 28px; }
  .hero-art { min-height: 285px; clip-path: ellipse(83% 100% at 65% 69%); }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 0; }
  .route-card p { min-height: 0; }
  .case-board { grid-template-columns: 1fr; }
  .evidence-panel { min-height: 400px; border-right: 0; border-bottom: 2px dashed #d8cdb0; }
  .journal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .app { width: min(100% - 20px, 1120px); padding-top: 10px; }
  .topbar { margin-bottom: 10px; }
  .brand-copy span { display: none; }
  .brand-copy strong { font-size: 19px; }
  .button-label { display: none; }
  .icon-button { min-width: 47px; justify-content: center; padding: 10px 13px; }
  .hero { border-radius: 29px; }
  .hero-copy { padding: 35px 20px 25px; }
  .hero h1 { font-size: 51px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions button { width: 100%; }
  .hero-art { min-height: 245px; }
  .hero-glass { width: 145px; height: 145px; left: 36%; top: 39px; }
  .hero-feather { height: 145px; width: 55px; }
  .how-strip { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 37px; }
  .route-card { padding: 21px; border-radius: 26px; }
  .game-head { padding: 22px 18px 17px; }
  .game-head h1 { font-size: 40px; }
  .progress-track { margin: 0 18px 18px; }
  .evidence-panel,
  .suspect-panel { padding: 20px 17px; }
  .evidence-panel { min-height: 370px; }
  .evidence-visual { min-height: 225px; }
  .track-svg { height: 205px; }
  .suspect-grid { gap: 9px; }
  .suspect-card { min-height: 164px; padding: 8px 8px 12px; border-radius: 20px; }
  .suspect-card img { height: 108px; }
  .suspect-card span { font-size: 15px; }
  .feedback-area { grid-template-columns: 1fr; padding: 18px 17px 22px; }
  .game-actions { justify-content: stretch; }
  .game-actions button { flex: 1; }
  .success-note { grid-template-columns: 78px 1fr; }
  .success-note img { width: 78px; height: 78px; }
  .journal { padding: 23px 16px; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-card,
  .detail-card { padding: 35px 18px; border-radius: 29px; }
  .result-scene img { width: 125px; height: 145px; }
  .detail-layout { grid-template-columns: 1fr; text-align: center; }
  .detail-layout img { width: 230px; height: 230px; margin: 0 auto; }
}

@media (max-width: 390px) {
  .app { width: min(100% - 14px, 1120px); }
  .brand-badge { width: 47px; height: 47px; }
  .top-actions { gap: 6px; }
  .hero h1 { font-size: 47px; }
  .hero-copy { padding-left: 18px; padding-right: 18px; }
  .hero-art { min-height: 225px; }
  .hero-glass { left: 33%; }
  .section-head { gap: 8px; }
  .progress-label { padding: 9px 11px; font-size: 13px; }
  .suspect-head { align-items: start; }
  .suspect-head h2 { font-size: 24px; }
  .suspect-head span { max-width: 76px; text-align: right; }
  .evidence-panel { min-height: 350px; }
  .evidence-copy strong { font-size: 18px; }
  .game-actions { flex-direction: column; }
  .success-note { grid-template-columns: 1fr; text-align: center; }
  .success-note img { margin: 0 auto; }
}
