.case-art {
  width: fit-content;
  max-width: min(100%, 560px);
  margin: 0 auto 0.9rem;
  background: color-mix(in srgb, var(--pink) 28%, #fff);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.case-art img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(42vh, 340px);
  margin: 0 auto;
  object-fit: contain;
}
.wrap { max-width: 960px; }
.block-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  color: var(--navy);
}
.case-block { margin: 0.15rem 0 1.35rem; }
.play-block { margin: 0 0 0.95rem; }
.case-lead {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}
#scene-reply { margin: 0 0 0.7rem; }
.case-steps {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--navy);
  font-weight: 700;
}
.case-steps li { margin: 0.2rem 0; }
.hunt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 0.8rem;
  align-items: start;
}
.hunt-layout:has(> #notebook[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.hunt-stage { min-width: 0; }
.fair-map {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto 0.35rem;
}
.fair-map-base {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}
.hotspot {
  position: absolute;
  z-index: 1;
  margin: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.15;
  padding: 0;
  text-align: center;
  cursor: pointer;
}
.hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: transparent;
  pointer-events: none;
}
.pin-stall { left: 7%; top: 8%; width: 22%; height: 35%; }
.pin-wheel { left: 8%; top: 60%; width: 28%; height: 40%; }
.pin-film { left: 72%; top: 8%; width: 24%; height: 35%; }
.pin-hall { left: 32%; top: 6%; width: 36%; height: 58%; }
.pin-desk { left: 68%; top: 52%; width: 28%; height: 48%; }
.pin-store { left: 40%; top: 64%; width: 24%; height: 36%; }
.hotspot:hover,
.hotspot:focus,
.hotspot:focus-visible {
  background: transparent;
}
.hotspot:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.scene-look {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
  min-width: 0;
}
.scene-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  line-height: 0;
}
#scene-spots { position: absolute; inset: 0; }
.scene-spot {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.scene-spot svg { display: block; }
.scene-ask {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.ask-thread {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  max-height: min(62vh, 26rem);
  margin: 0 0 0.75rem;
  padding: 0.1rem 0.05rem 0.15rem;
  overflow: auto;
}
.ask-thread .talk-next { width: 100%; margin: 0; }
.zoom-card .talk-said,
.zoom-card .talk-reply {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}
.zoom-card .talk-said {
  align-self: flex-end;
  max-width: 92%;
  border-radius: 16px 16px 4px 16px;
  background: var(--choice-bg);
  color: var(--choice-ink);
}
.zoom-card .talk-reply {
  align-self: flex-start;
  max-width: 92%;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
}
.scene-spot:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.zoom-pop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--navy) 46%, transparent);
}
.zoom-pop[hidden] { display: none !important; }
.zoom-card {
  width: min(100%, 22rem);
  margin: 0;
  padding: 0.9rem 0.95rem 1rem;
  border: 0;
  border-radius: 18px;
  background: var(--cream);
  color: var(--navy);
}
.zoom-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.zoom-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14rem;
  overflow: hidden;
  border-radius: 12px;
  background: #fff8ee;
}
.zoom-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zoom-card p {
  margin: 0.6rem 0 0.75rem;
  font-weight: 700;
}
.zoom-card .btn { width: 100%; }
#scene-art {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 720px);
  max-height: min(46vh, 420px);
  margin: 0;
  object-fit: contain;
  border-radius: 12px;
}
.notebook {
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
}
/* Lined clipboard crops of いらすとや clipboard2_notebook.png
   https://www.irasutoya.com/2017/02/blog-post.html */
.notebook-sheet {
  position: relative;
  background-color: transparent;
  background-image: url("illust/clipboard-line.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-origin: content-box;
  background-clip: content-box;
  padding: calc(100cqw * 167 / 583) 0 calc(100cqw * 83 / 583);
}
.notebook-sheet::before,
.notebook-sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.notebook-sheet::before {
  top: 0;
  height: calc(100cqw * 167 / 583);
  background-image: url("illust/clipboard-top.png");
}
.notebook-sheet::after {
  bottom: 0;
  height: calc(100cqw * 83 / 583);
  background-image: url("illust/clipboard-bottom.png");
}
.notebook-write {
  position: relative;
  z-index: 1;
  margin: 0 calc(100cqw * 68 / 583) 0 calc(100cqw * 124 / 583);
  padding-top: calc(100cqw * 16 / 583);
  color: var(--navy);
}
.notebook h2,
.notebook-purpose,
.clue-card,
.clue-card strong,
.clue-card p {
  margin: 0;
  line-height: calc(100cqw * 60 / 583);
  font-weight: 700;
}
.notebook h2 {
  font-family: var(--font-display);
  font-size: calc(100cqw * 40 / 583);
}
.notebook-purpose,
.clue-card p {
  font-size: calc(100cqw * 30 / 583);
}
.clue-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--navy);
}
.clue-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: calc(100cqw * 32 / 583);
}
.notebook .btn-row { margin: calc(100cqw * 18 / 583) 0 calc(100cqw * 10 / 583); }
.notebook .btn {
  width: 100%;
  padding: 0.4rem 0.7rem;
  font-size: calc(100cqw * 32 / 583);
}
.hunt-q {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  color: var(--navy);
}
.hunt-kind {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.85rem;
}
.solve-label {
  display: block;
  margin: 0.55rem 0 0.3rem;
  font-weight: 800;
  color: var(--navy);
}
.hint {
  margin: 0.6rem 0 0;
  font-weight: 700;
  color: var(--navy);
}
.ending {
  margin-top: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--green) 18%, #fff);
  color: var(--navy);
  font-weight: 700;
}
.ending h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}
.ending p { margin: 0; }
#intro { max-width: 36rem; margin: 0 auto; }
.story-card {
  margin: 0 0 1rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border: 0;
  border-radius: 28px;
}
.story-card-case { background: var(--navy); }
.story-card-case .block-label { color: var(--cream); }
.story-card-play { background: var(--sunny); }
.report-sheet {
  min-height: 7.2rem;
  padding: 0.9rem 1rem 0.85rem;
  border: 0;
  border-radius: 18px;
  background: #fffaf1;
  color: var(--navy);
}
.report-sheet h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.report-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.report-nav button {
  border: 0;
  border-radius: 999px;
  background: var(--sunny);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.35rem 0.85rem;
}
#report-count {
  margin: 0;
  color: var(--cream);
  font-weight: 700;
}
.report-dots { display: flex; gap: 0.35rem; }
.report-dots button {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  background: color-mix(in srgb, var(--cream) 40%, transparent);
}
.report-dots button[aria-current="true"] { background: var(--cream); }
.report-nav button:disabled {
  background: color-mix(in srgb, var(--sunny) 38%, #fff);
  color: color-mix(in srgb, var(--navy) 42%, #fff);
}
.case-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.story-icon {
  width: 3.6rem;
  height: auto;
  flex: 0 0 auto;
}
#you-intro { margin: 0 0 0.55rem; }
.play-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.play-steps li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.55rem 0;
  color: var(--navy);
  font-weight: 700;
}
.play-steps img {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
  flex: 0 0 auto;
}
.start-look {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: min(100%, 20rem);
  margin: 0.35rem auto 0.2rem;
  padding: 0.2rem 1.15rem 0.2rem 0.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: none;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.start-look img {
  display: block;
  width: 4.6rem;
  height: auto;
}
.start-look:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
  border-radius: 12px;
}
.start-look:hover { transform: translateY(-2px); }
.person-avatar {
  width: 3.15rem;
  height: 3.15rem;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  flex: 0 0 auto;
  /* Soft butter disc from the site sunny/cream family. Transparent headshot corners show this circle, not the blue bubble. */
  background-color: color-mix(in srgb, var(--sunny) 46%, #fff);
}
.talk-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.45rem 0;
}
.talk-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
}
.talk-line p { margin: 0; }
@media (max-width: 720px) {
  .hunt-layout { grid-template-columns: 1fr; gap: 0.45rem; }
  .hunt-q { margin-bottom: 0.3rem; }
  .scene-look { flex-wrap: wrap; }
  .hotspot { font-size: 0.66rem; }
  .notebook { max-width: 22rem; margin-inline: auto; }
}
