/* 2026-09-13: single-turn dock + detective reasoning board */

.game-screen {
  min-height: calc(900px - 68px);
  background:
    radial-gradient(circle at 10% 2%, rgba(5, 102, 255, 0.08), transparent 31%),
    #f2f4f6;
}

.game-statusbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px 16px;
  border: 0;
}

.game-statusbar h1 {
  margin: 5px 0 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.detective-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-rows: minmax(500px, 1fr) auto;
  gap: 18px;
  min-height: 720px;
  padding: 0 24px 24px;
}

.logic-panel,
.detective-side,
.turn-dock {
  border: 1px solid rgba(21, 21, 21, 0.07);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 44px rgba(31, 45, 66, 0.08);
}

.logic-panel {
  min-width: 0;
  overflow: hidden;
}

.logic-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 106px;
  padding: 24px 28px 18px;
}

.logic-panel-head h2 {
  margin: 4px 0 5px;
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: -0.055em;
}

.logic-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.logic-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(5, 102, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.logic-board {
  position: relative;
  min-height: 414px;
  overflow: hidden;
  border-top: 1px solid rgba(21, 21, 21, 0.06);
  background:
    radial-gradient(circle at 52% 44%, rgba(5, 102, 255, 0.12), transparent 37%),
    linear-gradient(rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    rgba(239, 243, 247, 0.72);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.logic-board::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(21, 21, 21, 0.32);
  content: "每一问，都是证据链的一部分";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logic-empty-note {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(420px, 74%);
  margin: 0;
  color: rgba(21, 21, 21, 0.44);
  font-size: 12px;
  text-align: center;
  transform: translateX(-50%);
}

.evidence-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.evidence-line {
  fill: none;
  stroke: rgba(102, 126, 163, 0.14);
  stroke-dasharray: 2 3;
  stroke-linecap: round;
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
  transition: stroke 420ms ease, stroke-dashoffset 620ms var(--ease-out), opacity 420ms ease;
}

.evidence-line.is-active {
  stroke: rgba(5, 102, 255, 0.58);
  stroke-dasharray: 0;
  stroke-width: 0.65;
  animation: evidence-line-in 620ms var(--ease-out) both;
}

@keyframes evidence-line-in {
  from { opacity: 0; stroke-dasharray: 3 3; stroke-dashoffset: 12; }
  to { opacity: 1; stroke-dasharray: 0; stroke-dashoffset: 0; }
}

.evidence-card {
  position: absolute;
  z-index: 3;
  left: var(--card-x);
  top: var(--card-y);
  display: flex;
  width: clamp(176px, 19vw, 232px);
  min-height: 116px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 15px 12px;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(26, 45, 75, 0.1);
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.evidence-card.is-yes {
  border-color: rgba(5, 102, 255, 0.28);
  box-shadow: 0 12px 30px rgba(5, 102, 255, 0.12);
}

.evidence-card.is-no {
  border-color: rgba(21, 21, 21, 0.12);
}

.evidence-card-head,
.evidence-verdict {
  display: flex;
  align-items: center;
}

.evidence-card-head {
  justify-content: space-between;
  color: #6d7c91;
  font-size: 11px;
  font-weight: 900;
}

.evidence-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.evidence-card.is-yes .evidence-status-dot {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(199, 255, 53, 0.2);
}

.evidence-card > strong {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 12px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.evidence-verdict {
  gap: 9px;
  min-height: 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.evidence-verdict b {
  display: grid;
  width: 29px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
}

.evidence-card.is-yes .evidence-verdict b {
  color: var(--ink);
  background: var(--lime);
}

.evidence-card.is-new {
  animation: evidence-card-arrive 720ms var(--ease-pop) both;
}

@keyframes evidence-card-arrive {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.82) rotate(-2deg); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.035) rotate(0.6deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}

.evidence-card.is-placeholder {
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(88, 113, 151, 0.3);
  color: #8b99ac;
  background: rgba(247, 250, 253, 0.48);
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
}

.evidence-card.is-placeholder.is-target {
  border-color: rgba(5, 102, 255, 0.42);
  background: rgba(220, 233, 255, 0.48);
  animation: evidence-target-pulse 1.3s ease-in-out infinite;
}

.placeholder-plus {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 102, 255, 0.08);
  font-size: 22px;
  font-weight: 400;
}

@keyframes evidence-target-pulse {
  50% { border-color: rgba(5, 102, 255, 0.72); transform: translate(-50%, -50%) scale(1.025); }
}

.detective-side {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
}

.host-panel-v2 {
  position: relative;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 26px 20px;
  background:
    radial-gradient(circle at 50% 53%, rgba(5, 102, 255, 0.14), transparent 38%),
    linear-gradient(180deg, #f7faff, #edf4ff);
}

.host-panel-v2::before {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(5, 102, 255, 0.1);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.host-copy {
  position: relative;
  z-index: 2;
}

.host-copy h2 {
  margin: 5px 0 5px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.host-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.host-panel-v2 img {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 60px;
  width: 78%;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(24, 43, 74, 0.12));
}

.host-bubble {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  max-width: 88%;
  margin-top: auto;
  padding: 13px 15px;
  border-radius: 17px 17px 17px 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 22px rgba(31, 51, 82, 0.08);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.case-note {
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(21, 21, 21, 0.07);
  background: rgba(255, 255, 255, 0.74);
}

.case-note span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.case-note p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #4d5867;
  font-size: 11px;
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.turn-dock {
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 16px 18px 15px;
}

.turn-dock-top {
  min-height: 70px;
}

.turn-empty,
.current-exchange {
  display: grid;
  min-height: 66px;
  align-items: center;
  border-radius: 18px;
  background: #f4f6f8;
}

.turn-empty {
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 10px 14px;
  color: var(--muted);
}

.turn-empty-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(5, 102, 255, 0.1);
  font-weight: 900;
}

.turn-empty strong { color: var(--ink); font-size: 12px; }
.turn-empty p { margin: 4px 0 0; font-size: 11px; }

.current-exchange {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.07);
  background: #fff;
  transition: opacity 180ms ease, transform 240ms var(--ease-out);
}

.current-exchange.is-departing {
  opacity: 0.16;
  transform: translateY(-12px) scale(0.985);
}

.current-question,
.current-answer {
  min-width: 0;
  padding: 12px 16px;
}

.current-question {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
}

.current-question span,
.current-answer > span:first-child {
  color: #8090a6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.current-question strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-answer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  border-left: 1px solid rgba(21, 21, 21, 0.07);
  background: rgba(235, 242, 252, 0.62);
}

.current-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.current-verdict {
  display: grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
}

.current-exchange.is-yes .current-verdict {
  color: var(--ink);
  background: var(--lime);
}

.current-exchange.is-rejected .current-answer {
  grid-template-columns: auto auto 1fr;
  background: #f7f8fa;
}

.current-exchange.is-rejected .current-answer strong {
  font-size: 12px;
}

.turn-dock-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 10px;
}

.turn-dock .composer-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  gap: 8px;
}

.turn-dock .question-input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #cbd3dd;
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.turn-dock .question-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5, 102, 255, 0.1);
}

.turn-dock .recommend-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 14px;
  color: #4e5b6c;
  background: #f4f6f8;
  font-size: 11px;
  font-weight: 900;
}

.send-question-button {
  display: grid;
  width: 48px;
  min-height: 48px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(5, 102, 255, 0.22);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.send-question-button:hover {
  box-shadow: 0 11px 24px rgba(5, 102, 255, 0.28);
  transform: translateY(-2px);
}

.send-question-button:active,
.final-guess-button:active {
  transform: translateY(1px) scale(0.985);
}

.send-question-button:disabled,
.turn-dock .recommend-button:disabled,
.turn-dock .question-input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.final-guess-button {
  min-width: 168px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(5, 102, 255, 0.18);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.final-guess-button:hover {
  box-shadow: 0 12px 25px rgba(5, 102, 255, 0.26);
  transform: translateY(-2px);
}

.dock-hint {
  display: block;
  margin: 8px 2px 0;
  color: #8a94a2;
  font-size: 10px;
  font-weight: 700;
}

.turn-dock .error-text {
  margin: 8px 2px 0;
}

.turn-dock .recommend-panel {
  right: 206px;
  bottom: 86px;
  left: 18px;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 46px rgba(29, 44, 67, 0.15);
}

.turn-dock .chip-button {
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 12px;
  box-shadow: none;
}

.fly-evidence-card {
  position: fixed;
  z-index: 999;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 12px 16px;
  border: 1px solid rgba(5, 102, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(18, 40, 74, 0.22);
  pointer-events: none;
  transform-origin: top left;
}

.fly-evidence-card > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.fly-evidence-card > strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fly-evidence-card > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fly-evidence-card b {
  display: grid;
  width: 30px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.fly-evidence-card.is-yes b {
  color: var(--ink);
  background: var(--lime);
}

.fly-evidence-card em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .detective-workspace { grid-template-columns: minmax(0, 1fr) 280px; }
  .evidence-card { width: clamp(160px, 20vw, 196px); }
  .host-panel-v2 img { width: 88%; right: 8px; }
  .current-exchange { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 820px) {
  .game-statusbar { padding: 14px 18px; }
  .detective-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 0 12px 18px;
  }
  .logic-panel { min-height: 540px; }
  .detective-side {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
    grid-template-rows: 1fr;
  }
  .host-panel-v2 { min-height: 290px; }
  .host-panel-v2 img { width: 58%; max-height: 190px; }
  .case-note { border-top: 0; border-left: 1px solid rgba(21, 21, 21, 0.07); }
  .turn-dock { grid-column: 1; }
  .current-exchange { grid-template-columns: 1fr; }
  .current-answer { border-top: 1px solid rgba(21, 21, 21, 0.07); border-left: 0; }
  .turn-dock-bottom { grid-template-columns: 1fr; }
  .final-guess-button { width: 100%; }
  .turn-dock .recommend-panel { right: 18px; bottom: 132px; }
}

@media (max-width: 620px) {
  .logic-panel-head { align-items: flex-start; padding: 20px; }
  .logic-panel-head p { display: none; }
  .logic-board {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
  }
  .logic-board::after,
  .evidence-lines { display: none; }
  .evidence-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 112px;
    transform: none;
  }
  .evidence-card.is-new { animation: evidence-card-mobile 520ms var(--ease-pop) both; }
  .evidence-card.is-placeholder.is-target { animation: none; }
  .logic-empty-note {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    transform: none;
  }
  @keyframes evidence-card-mobile {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
  }
  .detective-side { grid-template-columns: 1fr; }
  .case-note { border-top: 1px solid rgba(21, 21, 21, 0.07); border-left: 0; }
  .current-question { grid-template-columns: 1fr; }
  .current-answer { grid-template-columns: auto auto 1fr; }
  .turn-dock .composer-line { grid-template-columns: 1fr 48px; }
  .turn-dock .recommend-button { grid-column: 1 / -1; grid-row: 2; }
  .turn-dock .recommend-panel { bottom: 178px; }
  .fly-evidence-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .evidence-card.is-new,
  .evidence-line.is-active,
  .evidence-card.is-placeholder.is-target { animation: none !important; }
}

/* Formal content update: four host verdicts, speech input and LiuBTI report. */
.evidence-card.is-partial {
  border-color: rgba(224, 132, 33, 0.42);
  box-shadow: 0 10px 25px rgba(224, 132, 33, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.evidence-card.is-irrelevant { border-color: rgba(113, 126, 145, 0.28); }
.evidence-card.is-partial .evidence-pin { background: #e08421; }
.evidence-card.is-irrelevant .evidence-pin { background: #8993a2; }
.evidence-card.is-partial .evidence-footer-strip { color: #fff; background: #e08421; }
.evidence-card.is-irrelevant .evidence-footer-strip { color: #fff; background: #8993a2; }

.current-exchange.is-partial .current-answer { background: rgba(255, 239, 216, 0.78); }
.current-exchange.is-partial .current-verdict { background: #e08421; }
.current-exchange.is-irrelevant .current-answer { background: #f0f2f5; }
.current-exchange.is-irrelevant .current-verdict { background: #8993a2; }
.fly-evidence-card.is-partial b { color: #b7620c; background: #fff0dc; }
.fly-evidence-card.is-irrelevant b { color: #5f6977; background: #edf0f4; }

.guess-input-wrap { position: relative; }
.guess-input-wrap .guess-input { padding-bottom: 70px; }

.voice-input-button {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 7px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  color: #475569;
  background: #f5f7fa;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.voice-input-button span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
}

.voice-input-button.is-listening { color: #a32124; background: #fff2f2; }
.voice-input-button.is-listening span { background: #c63538; animation: voice-pulse 1.1s ease-in-out infinite; }
.voice-input-note { margin: -3px 0 16px !important; color: #7a8594 !important; font-size: 11px !important; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 7px rgba(198, 53, 56, 0.12); } }

.report-card.tag-card.liubti-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #f3f6fa;
}

.report-card.tag-card.liubti-card p { color: #5e6876; }
.liubti-title span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.liubti-title h2 { margin-top: 6px; font-size: clamp(32px, 3vw, 48px); }
.liubti-axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.liubti-axes span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 9px;
  color: #526074;
  background: rgba(255, 255, 255, 0.86);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.liubti-axes b {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
}

.report-host.liubti-host {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  height: min(230px, 23vh);
  margin-top: auto;
  border-radius: 14px;
  background: #fff;
  filter: none;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.path-step.partial { background: #e08421; }
.path-step.irrelevant { background: #8993a2; }

.case-scene-host,
.host-panel-v2 > img,
.hint-agent-guide img { mix-blend-mode: multiply; }

.glass-visual .host-hero-image { mix-blend-mode: multiply; }

@media (max-width: 720px) {
  .liubti-axes { grid-template-columns: 1fr; }
  .report-host.liubti-host { height: 250px; }
}

/* 2026-09 evidence-board refinement */
.case-animation {
  min-height: 570px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 54px rgba(34, 49, 74, 0.1);
}

.case-animation-stage {
  position: relative;
  height: 100%;
  min-height: 570px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 48%, rgba(5, 102, 255, 0.14), transparent 32%),
    linear-gradient(rgba(21, 21, 21, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.03) 1px, transparent 1px),
    #f6f8fb;
  background-size: auto, 30px 30px, 30px 30px, auto;
}

.case-animation-label,
.case-animation-caption {
  position: absolute;
  z-index: 5;
  left: 24px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.case-animation-label { top: 22px; color: var(--blue); }
.case-animation-caption { bottom: 22px; color: #7b8797; letter-spacing: 0.04em; }

.case-scene-host {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: 34px;
  width: 62%;
  max-height: 410px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(25, 44, 75, 0.12));
  animation: case-host-observe 3.2s ease-in-out infinite;
  transform-origin: 56% 85%;
}

@keyframes case-host-observe {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-7px) rotate(0.7deg); }
}

.scene-materials {
  position: absolute;
  z-index: 3;
  top: 25%;
  left: 8%;
  display: grid;
  gap: 12px;
}

.scene-slab {
  display: grid;
  width: 118px;
  height: 78px;
  place-content: center;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 49, 78, 0.1);
  text-align: center;
}

.scene-slab b { font-size: 22px; }
.scene-slab small { margin-top: 3px; color: var(--muted); font-weight: 800; }
.scene-slab.is-metal { background: linear-gradient(135deg, #eef4fb, #cdd8e7); }
.scene-slab.is-wood { background: linear-gradient(135deg, #fff4df, #e6bd82); }
.scene-touch {
  position: absolute;
  top: 26px;
  right: -18px;
  width: 34px;
  height: 34px;
  border: 7px solid var(--blue);
  border-radius: 50%;
  animation: scene-pulse 1.8s ease-in-out infinite;
}

@keyframes scene-pulse { 50% { opacity: 0.35; transform: scale(1.22); } }

.scene-sky {
  position: absolute;
  z-index: 2;
  inset: 17% 7% 25%;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(150deg, #dceaff, #f8fbff 72%);
}

.scene-plane { position: absolute; top: 33%; left: 18%; color: var(--blue); font-size: 42px; animation: scene-plane 4s ease-in-out infinite; }
.scene-trail { position: absolute; top: 43%; left: 4%; height: 4px; border-radius: 99px; background: #fff; box-shadow: 0 0 16px #fff; }
.scene-trail.is-short { width: 32%; opacity: 0.7; }
.scene-trail.is-wide { top: 59%; width: 72%; height: 16px; opacity: 0.85; filter: blur(3px); }
@keyframes scene-plane { 50% { transform: translate(12px, -5px) rotate(-2deg); } }

.scene-review {
  position: absolute;
  z-index: 3;
  top: 26%;
  left: 7%;
  display: grid;
  width: 58%;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(31, 49, 78, 0.12);
  animation: review-alert 2.6s ease-in-out infinite;
}
.scene-review span { color: var(--muted); font-size: 10px; font-weight: 800; }
.scene-review strong { color: #ffb11b; letter-spacing: 0.08em; }
.scene-review small { color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1.45; }
@keyframes review-alert { 50% { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(5, 102, 255, 0.16); } }

.scene-lighthouse { position: absolute; z-index: 2; inset: 17% 4% 20%; overflow: hidden; border-radius: 26px; background: linear-gradient(#dce7f7 0 58%, #8eb7dd 59% 100%); }
.scene-lighthouse > span { position: absolute; left: 21%; bottom: 18%; width: 46px; height: 150px; background: linear-gradient(90deg, #f9f9f9 50%, #e65353 50%); clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%); }
.scene-lighthouse > span::before { position: absolute; top: -19px; left: 10px; width: 28px; height: 25px; border-radius: 4px 4px 1px 1px; background: #fff78d; content: ""; }
.scene-lighthouse > b { position: absolute; right: 12%; bottom: 12%; color: #fff; font-size: 68px; letter-spacing: -0.2em; }
.scene-beam { position: absolute; z-index: 1; top: 19%; left: 25%; width: 75%; height: 70px; background: linear-gradient(90deg, rgba(255, 245, 131, 0.78), transparent); clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 58%); transform-origin: left center; animation: lighthouse-sweep 3.6s ease-in-out infinite; }
@keyframes lighthouse-sweep { 0%, 100% { transform: rotate(-8deg); opacity: 0.45; } 50% { transform: rotate(8deg); opacity: 0.95; } }

.logic-board { overflow: hidden; }

.evidence-line {
  stroke: rgba(61, 84, 115, 0.34);
  stroke-dasharray: 5 6;
  stroke-width: 1.8;
}

.evidence-line.is-active {
  stroke: rgba(5, 102, 255, 0.82);
  stroke-width: 2.4;
}

.evidence-card {
  width: clamp(158px, 16vw, 178px);
  min-height: 112px;
  overflow: visible;
  padding: 18px 14px 29px;
  border: 1px solid rgba(37, 48, 64, 0.16);
  border-radius: 11px;
  background-color: #fbfcfd;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(44, 62, 88, 0.075) 0.7px, transparent 0.8px),
    linear-gradient(112deg, transparent 0 62%, rgba(5, 102, 255, 0.025) 62% 63%, transparent 63% 100%);
  background-size: 8px 8px, 100% 100%;
  box-shadow: 0 9px 22px rgba(26, 45, 75, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%) rotate(var(--card-r, 0deg));
  user-select: none;
}

.evidence-card::before,
.evidence-card::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(40, 58, 82, 0.22);
  content: "";
  pointer-events: none;
}

.evidence-card::before {
  top: 6px;
  right: 6px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.evidence-card::after {
  bottom: 27px;
  left: 6px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.evidence-card.is-yes {
  border-color: rgba(5, 102, 255, 0.32);
  box-shadow: 0 10px 25px rgba(5, 102, 255, 0.13), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.evidence-card.is-no {
  border-color: rgba(56, 66, 81, 0.2);
}

.evidence-card.is-dragging {
  z-index: 12;
  cursor: grabbing;
  animation: none;
  box-shadow: 0 18px 38px rgba(5, 102, 255, 0.18);
  transition: none;
}

.evidence-card.is-placeholder { cursor: default; pointer-events: none; }

.evidence-pin {
  position: absolute;
  z-index: 7;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 7px rgba(21, 21, 21, 0.28);
  transform: translateX(-50%);
}

.evidence-card.is-yes .evidence-pin { background: var(--blue); }

.evidence-host-mini {
  position: absolute;
  z-index: 6;
  top: -34px;
  left: -22px;
  width: 78px;
  height: 62px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 4px rgba(23, 38, 62, 0.13));
  pointer-events: none;
  transform: rotate(-3deg);
}

.evidence-card > strong {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  margin: 10px 0 5px;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-card-head {
  position: relative;
  z-index: 2;
  padding-left: 24px;
  letter-spacing: 0.11em;
}
.evidence-verdict { position: relative; z-index: 2; gap: 6px; min-height: 22px; }
.evidence-verdict b { width: 25px; height: 21px; font-size: 11px; }
.evidence-verdict span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.evidence-watermark {
  position: absolute;
  z-index: 0;
  right: 9px;
  top: 13px;
  color: rgba(43, 60, 83, 0.07);
  font-family: Georgia, serif;
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: rotate(8deg);
}

.evidence-stamp {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 37px;
  padding: 2px 4px 1px;
  border: 1px solid rgba(188, 45, 47, 0.62);
  color: rgba(188, 45, 47, 0.72);
  font-family: Consolas, "Courier New", monospace;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-7deg);
}

.evidence-index {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 6px;
  color: rgba(54, 71, 94, 0.48);
  font-family: Consolas, "Courier New", monospace;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.evidence-index i {
  width: 30px;
  height: 3px;
  opacity: 0.55;
  background: repeating-linear-gradient(90deg, #43536a 0 2px, transparent 2px 4px);
}

.evidence-footer-strip {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 0 0 10px 10px;
  color: #fff;
  background: #303b4a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.evidence-card.is-yes .evidence-footer-strip { color: #fff; background: var(--blue); }
.evidence-footer-strip i { height: 1px; background: rgba(255, 255, 255, 0.42); }
.evidence-footer-strip small { font: inherit; opacity: 0.7; }

@keyframes evidence-card-arrive {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.82) rotate(calc(var(--card-r, 0deg) - 3deg)); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.035) rotate(calc(var(--card-r, 0deg) + 0.8deg)); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(var(--card-r, 0deg)); }
}

@keyframes evidence-target-pulse {
  50% { border-color: rgba(5, 102, 255, 0.72); transform: translate(-50%, -50%) scale(1.025) rotate(var(--card-r, 0deg)); }
}

.turn-empty {
  display: block;
  min-height: 66px;
  padding: 0;
  border: 1px solid rgba(21, 21, 21, 0.06);
  background: #f4f6f8;
}

.dock-end-actions { display: flex; gap: 8px; }
.skip-answer-button {
  min-width: 108px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(21, 21, 21, 0.13);
  border-radius: 14px;
  color: #586575;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.skip-answer-button:hover { border-color: var(--blue); color: var(--blue); background: #f5f8ff; }
.skip-answer-button:disabled { cursor: not-allowed; opacity: 0.48; }

.turn-dock .recommend-panel { right: 300px; }
.turn-dock .recommend-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.turn-dock .chip-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: #3d4b5d;
  background: #f6f8fa;
  text-align: left;
}
.turn-dock .chip-button i { color: var(--blue); font-style: normal; }
.turn-dock .chip-button.is-selected { border-color: rgba(5, 102, 255, 0.4); color: var(--blue); background: rgba(5, 102, 255, 0.06); }
.hint-agent-guide {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(5, 102, 255, 0.06);
}
.hint-agent-guide img { width: 42px; height: 42px; object-fit: contain; }
.hint-agent-guide strong { font-size: 11px; }
.hint-agent-guide p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.score-number.is-direct { margin-top: 12px; font-size: clamp(28px, 4vw, 54px); letter-spacing: -0.05em; }
.metric-big.is-direct { font-size: clamp(28px, 3vw, 46px); }

@media (max-width: 1100px) {
  .evidence-card { width: 154px; }
  .turn-dock .recommend-panel { right: 18px; }
}

@media (max-width: 820px) {
  .case-animation,
  .case-animation-stage { min-height: 480px; }
  .case-scene-host { width: 54%; max-height: 350px; }
  .turn-dock-bottom { grid-template-columns: 1fr; }
  .dock-end-actions { width: 100%; }
  .dock-end-actions .final-guess-button { flex: 1; width: auto; }
  .skip-answer-button { flex: 0 0 auto; }
  .turn-dock .recommend-panel { bottom: 132px; }
}

@media (max-width: 620px) {
  .case-animation,
  .case-animation-stage { min-height: 390px; }
  .case-scene-host { right: 0; width: 58%; max-height: 300px; }
  .scene-materials { left: 5%; transform: scale(0.82); transform-origin: left center; }
  .evidence-card {
    width: auto;
    min-height: 112px;
    cursor: default;
    touch-action: auto;
    transform: none;
  }
  .evidence-host-mini { top: -27px; left: -13px; width: 65px; height: 52px; }
  .evidence-pin { display: none; }
  .turn-dock .recommend-list { grid-template-columns: 1fr; }
  .dock-end-actions { display: grid; grid-template-columns: 1fr 1.35fr; }
  .skip-answer-button { min-width: 0; }
  .turn-dock .recommend-panel { bottom: 178px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-scene-host,
  .scene-touch,
  .scene-plane,
  .scene-review,
  .scene-beam { animation: none !important; }
}

/* 2026-09-14: homepage layering + editorial case brief */
.glass-visual::before {
  z-index: 0;
}

.glass-visual .host-halo {
  z-index: 1;
}

.glass-visual .host-hero-image {
  z-index: 2;
  mix-blend-mode: normal;
}

.glass-copy .hero-title {
  max-width: 700px;
  font-size: clamp(72px, 7.2vw, 112px);
  line-height: 0.9;
}

.case-intro {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  align-items: stretch;
  gap: 26px;
}

.case-prompt {
  min-width: 0;
  padding: clamp(26px, 3vw, 46px);
}

.case-prompt blockquote {
  max-height: 390px;
  overflow-y: auto;
  margin: 26px 0;
  padding-right: 10px;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 780;
  line-height: 1.72;
  letter-spacing: -0.025em;
  text-wrap: pretty;
  scrollbar-color: rgba(255, 255, 255, 0.56) transparent;
  scrollbar-width: thin;
}

.case-prompt footer {
  align-items: flex-end;
  flex-direction: column;
}

.case-prompt footer > span {
  align-self: flex-start;
}

.polaroid-comic.case-animation {
  display: grid;
  min-height: 570px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  overflow: visible;
  padding: clamp(18px, 2.3vw, 30px) clamp(18px, 2.3vw, 30px) 0;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(34, 49, 74, 0.14), 0 2px 7px rgba(34, 49, 74, 0.08);
  transform: rotate(0.35deg);
}

.polaroid-window {
  min-height: 440px;
  overflow: hidden;
  background: #d9dee5;
}

.polaroid-comic .case-animation-stage {
  min-height: 100%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    #d9dee5;
  background-size: 34px 34px, 34px 34px, auto;
}

.comic-blue-shape {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: -14%;
  width: 64%;
  height: 92%;
  border-radius: 48% 52% 38% 62% / 58% 35% 65% 42%;
  background: linear-gradient(145deg, rgba(5, 102, 255, 0.94), rgba(111, 168, 255, 0.74));
  transform: rotate(-7deg);
}

.polaroid-comic .case-scene-host {
  z-index: 4;
  right: 9%;
  bottom: -1%;
  width: min(55%, 430px);
  max-height: 425px;
  mix-blend-mode: normal;
}

.polaroid-comic .case-animation-label {
  z-index: 6;
  top: 18px;
  left: 20px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 21, 21, 0.78);
  letter-spacing: 0.1em;
}

.polaroid-note {
  position: relative;
  display: flex;
  min-height: 116px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px 26px;
  color: #485669;
}

.polaroid-note span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.polaroid-note strong {
  max-width: 360px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.18;
  text-align: right;
}

.polaroid-note i {
  position: absolute;
  right: 3px;
  bottom: 8px;
  color: var(--blue);
  font-size: 11px;
}

.evidence-host-mini {
  z-index: 9;
  top: -39px;
  left: -25px;
  width: 86px;
  height: 70px;
  opacity: 1;
  mix-blend-mode: normal;
  filter: drop-shadow(0 5px 5px rgba(23, 38, 62, 0.18)) contrast(1.08);
}

@media (max-width: 980px) {
  .case-intro {
    grid-template-columns: 1fr;
  }

  .case-prompt blockquote {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .glass-copy .hero-title {
    font-size: clamp(54px, 18vw, 78px);
  }

  .polaroid-comic.case-animation {
    min-height: 430px;
    padding: 14px 14px 0;
  }

  .polaroid-window {
    min-height: 330px;
  }

  .polaroid-note {
    min-height: 88px;
    padding: 18px 2px 20px;
  }

  .polaroid-note strong {
    max-width: 220px;
    font-size: 17px;
  }

  .evidence-host-mini {
    top: -31px;
    left: -18px;
    width: 72px;
    height: 58px;
  }
}

/* 2026-09-15: 3:2 reasoning layout and verdict GIF host feedback */
.detective-workspace {
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
}

.logic-panel,
.logic-board,
.detective-side,
.turn-dock,
.turn-empty,
.current-exchange {
  background-color: #fff;
}

.logic-board {
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
}

.turn-empty {
  border-color: rgba(21, 21, 21, 0.05);
  background: #fff;
}

.host-panel-v2 {
  min-height: 372px;
  background:
    radial-gradient(circle at 50% 56%, rgba(5, 102, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #f8faff, #f1f6ff);
}

.host-panel-v2::before {
  top: 29%;
  width: 260px;
  height: 260px;
}

.host-reaction-frame {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(72%, 252px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  align-self: center;
  overflow: hidden;
  margin: 14px auto 12px;
  border: 1px solid rgba(21, 21, 21, 0.07);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 34px rgba(30, 48, 78, 0.11);
}

.host-panel-v2 .host-reaction-media {
  position: static;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: none;
  mix-blend-mode: normal;
}

.host-reaction-frame.is-idle .host-reaction-media {
  box-sizing: border-box;
  padding: 8% 9% 0;
  object-fit: contain;
}

.host-reaction-frame.is-yes,
.host-reaction-frame.is-partial {
  box-shadow: 0 16px 34px rgba(5, 102, 255, 0.13);
}

.host-reaction-frame.is-no {
  box-shadow: 0 16px 34px rgba(40, 50, 65, 0.12);
}

.host-bubble {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .detective-workspace {
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  }

  .host-reaction-frame {
    width: min(76%, 220px);
  }
}

@media (max-width: 820px) {
  .detective-workspace {
    grid-template-columns: 1fr;
  }

  .host-reaction-frame {
    width: min(66%, 210px);
  }
}

/* 2026-09-15: merged-version readability, case comics and compact host */
.glass-copy .hero-title {
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-title,
.report-header h1,
.answer-main h1 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.topic-card h2 {
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.game-statusbar h1 {
  overflow: visible;
  max-width: min(980px, 100%);
  line-height: 1.42;
  letter-spacing: -0.015em;
  text-overflow: clip;
  text-wrap: pretty;
  white-space: normal;
}

.polaroid-window,
.polaroid-comic .case-animation-stage {
  background: #fff;
}

.case-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  user-select: none;
}

.detective-side {
  grid-template-rows: minmax(285px, 1fr) minmax(132px, 200px);
}

.host-panel-v2 {
  min-height: 0;
  padding: 22px 24px 16px;
}

.host-panel-v2::before {
  top: 31%;
  width: 198px;
  height: 198px;
}

.host-reaction-frame {
  width: min(54%, 188px);
  margin: 8px auto 7px;
}

.case-note {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.case-note p {
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 9px;
  padding-right: 9px;
  color: #354153;
  font-size: 13px;
  line-height: 1.78;
  white-space: pre-line;
  overscroll-behavior: contain;
  scrollbar-color: rgba(5, 102, 255, 0.45) rgba(21, 21, 21, 0.05);
  scrollbar-width: thin;
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
}

.case-note p::-webkit-scrollbar {
  width: 7px;
}

.case-note p::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.05);
}

.case-note p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(5, 102, 255, 0.45);
}

.case-note:focus-visible {
  outline: 3px solid rgba(5, 102, 255, 0.36);
  outline-offset: -3px;
}

.report-grid {
  grid-auto-rows: minmax(220px, auto);
}

.report-example-card {
  grid-column: span 2;
}

/* Report overview: two equal-weight primary cards, followed by a balanced detail grid. */
.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  align-items: stretch;
}

.report-card.tag-card.liubti-card,
.report-card.community-card {
  grid-column: auto;
  grid-row: auto;
}

.report-primary-card {
  min-height: 540px;
  height: 100%;
}

.report-card.community-card.report-primary-card {
  display: flex;
  flex-direction: column;
}

.report-card.community-card.report-primary-card .demo-data {
  align-self: flex-start;
  margin-top: auto;
}

.report-example-card {
  grid-column: auto;
}

@media (max-width: 1100px) {
  .host-reaction-frame {
    width: min(52%, 176px);
  }
}

@media (max-width: 820px) {
  .detective-side {
    grid-template-rows: auto minmax(150px, 230px);
  }

  .host-panel-v2 {
    min-height: 300px;
  }

  .host-reaction-frame {
    width: min(48%, 168px);
  }

  .case-note p {
    font-size: 14px;
  }

  .report-primary-card {
    min-height: auto;
  }

  .report-card.tag-card.liubti-card.report-primary-card {
    min-height: 440px;
  }
}

@media (max-width: 620px) {
  .glass-copy .hero-title,
  .section-title,
  .report-header h1,
  .answer-main h1 {
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .report-example-card {
    grid-column: auto;
  }
}
