@font-face {
  font-family: Batang;
  src: url("/assets/css/fonts/RIDIBatang.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: Square;
  src: url("/assets/css/fonts/NanumSquareB.woff") format("woff");
  font-display: swap;
  font-weight: 700;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  font-family:
    system-ui,
    -apple-system,
    "Malgun Gothic",
    sans-serif;
  color: #263b37;
  background: #f4f2ee;
  font-synthesis: none;
  word-break: keep-all;
}
body {
  margin: 0;
}
main,
.top {
  width: min(100% - 32px, 940px);
  margin: auto;
}
.top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}
.top img {
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}
.top a,
footer a {
  color: inherit;
  text-decoration: none;
}
.top a:hover,
footer a:hover {
  text-decoration: underline;
}
.title {
  padding: 22px 0 20px;
  border-top: 1px solid #bbbfaf;
}
.title h1 {
  font:
    normal clamp(32px, 5vw, 53px) / 1.2 Batang,
    serif;
  letter-spacing: -0.07em;
  margin: 0;
}
.title p {
  margin: 9px 0 0;
  font-size: 1rem;
  line-height: 1.6;
}
#briefing,
#stage,
#end {
  overflow: hidden;
  border: 1px solid #84948a;
  border-radius: 9px;
  box-shadow: 0 4px 0 #cecfc5;
}
.ribbon {
  background: #28483f;
  color: #fff9e7;
  padding: 10px 16px;
  font:
    700 0.91rem/1.4 Square,
    sans-serif;
  display: flex;
  justify-content: space-between;
}
#briefing {
  background: #fffcf5;
}
.scene-strip {
  display: flex;
  height: clamp(110px, 18vw, 164px);
  overflow: hidden;
  border-bottom: 3px solid #bda67b;
}
.scene-strip img {
  width: 33.333%;
  object-fit: cover;
  object-position: center 13%;
  image-rendering: pixelated;
}
.dispatch {
  padding: clamp(16px, 3vw, 30px);
  max-width: 72ch;
  margin: auto;
}
.dispatch p {
  line-height: 1.65;
  margin: 12px 0;
}
.dispatch .dateline,
#end .dateline {
  font-size: 0.85rem;
  color: #526555;
  margin: 0 0 6px;
}
.dispatch h2 {
  font:
    normal clamp(23px, 4vw, 34px) / 1.3 Batang,
    serif;
  margin: 0;
}
.dispatch blockquote {
  background: #f4edd6;
  border-left: 3px solid #af9762;
  margin: 14px 0;
  padding: 10px 14px;
  font:
    normal 1.04rem/1.55 Batang,
    serif;
}
#begin {
  background: #274f43;
  color: white;
  padding-inline: 20px;
}
.field-note,
.case-file {
  background: #fffcf5;
  border: 1px solid #b9b39e;
}
.field-note {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid #ad8c45;
}
.field-note h3,
.case-file h3 {
  font-size: 1rem;
  margin: 0 0 5px;
}
.field-note blockquote {
  margin: 5px 0 0;
  line-height: 1.55;
}
.case-file {
  max-width: 72ch;
  border-radius: 8px;
}
.case-file h3 {
  margin-top: 18px;
}
#notes-list blockquote {
  font: inherit;
  line-height: 1.5;
  margin: 7px 0;
}
#notes-list strong {
  display: block;
  color: #28483f;
}
#record-options {
  display: grid;
  gap: 7px;
}
#record-options button {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  text-align: left;
}
#record-options .record-correct {
  opacity: 1;
  border-color: #486251;
  background: #e6f0e1;
  color: #234833;
}
#record-options .record-wrong {
  opacity: 1;
  border-color: #a16158;
  background: #fae9e1;
  color: #72332c;
}
#case-verdict {
  color: #285b46;
}
#case-result.miss #case-verdict {
  color: #823d3b;
}
#verdict,
#case-verdict {
  scroll-margin-top: 14px;
}
#return-visit {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}
#return-face {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
#return-visit h3 {
  margin: 0;
}
#return-visit p {
  margin: 5px 0 0;
}
#return-choices {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
#return-choices button {
  text-align: left;
}
#return-answer {
  color: #485c50;
  font-size: 0.9rem;
}
#return-effect {
  display: block;
  margin-top: 8px;
}
@media (max-width: 460px) {
  #return-visit {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }
  #return-face {
    width: 44px;
    height: 44px;
  }
}
#file-report {
  background: #274f43;
  color: white;
}
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: #fffcf5;
}
.chapter {
  margin: 0;
  padding: 8px 16px;
  background: #eef0e5;
  color: #344a40;
  font-size: 0.89rem;
  line-height: 1.45;
  border-bottom: 1px solid #bdc6b7;
}
#verdict {
  transform-origin: left center;
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.person {
  position: relative;
  align-self: start;
  min-width: 0;
  background: #344c43;
  overflow: hidden;
}
.person img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
}
.nameplate {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #213c35f5;
  color: white;
  border-left: 3px solid #d7bc84;
  padding: 9px 13px;
  display: grid;
  gap: 4px;
}
.nameplate strong {
  font:
    normal 24px/1.2 Batang,
    serif;
}
.nameplate span {
  font-size: 0.84rem;
  color: #f2e5c8;
}
.interview {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  overflow-wrap: anywhere;
  padding: clamp(14px, 2.4vw, 26px);
  display: grid;
  align-content: start;
  gap: 16px;
}
.memo {
  border: 1px solid #d9ceab;
  border-left: 4px solid #af9762;
  background: #f4edd6;
  padding: 12px 14px;
}
.talk h2 {
  font:
    normal 18px/1.3 Batang,
    serif;
  margin: 0 0 8px;
}
.quote {
  min-height: 85px;
}
.quote span,
#tip {
  color: #5d6963;
  font-size: 0.85rem;
}
.quote p {
  font:
    normal clamp(17px, 2vw, 21px) / 1.55 Batang,
    serif;
  margin: 4px 0 10px;
}
#questions {
  display: grid;
  gap: 6px;
}
#proof h2 {
  margin: 0;
  font-size: 1.1rem;
}
#proof p {
  margin: 5px 0 12px;
  font-size: 0.9rem;
}
#proof-options {
  display: grid;
  gap: 8px;
}
#proof-options button {
  text-align: left;
  font: inherit;
  line-height: 1.5;
}
#proof-options strong {
  display: block;
  color: #345348;
  font-size: 0.86rem;
}
#back-to-talk {
  margin-top: 12px;
}
button {
  min-height: 44px;
  cursor: pointer;
  background: #fffef9;
  color: #273e36;
  border: 1px solid #aab3a5;
  border-radius: 5px;
  padding: 9px 13px;
  font:
    700 0.94rem/1.4 Square,
    system-ui,
    sans-serif;
  touch-action: manipulation;
}
#questions button {
  text-align: left;
}
button:hover:enabled,
button[aria-pressed="true"] {
  background: #e6eee6;
  border-color: #5f786d;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #b77c24;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
#decision,
#review {
  border-top: 1px solid #d4d6c9;
  padding-top: 10px;
}
#tip {
  margin: 0 0 8px;
}
.decide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#friend,
#again,
#next {
  background: #274f43;
  color: white;
  border-color: #274f43;
}
#actor {
  background: #76424c;
  color: white;
  border-color: #76424c;
}
#review h2 {
  font-size: 1.05rem;
  color: #285b46;
  margin: 0;
}
#reason {
  white-space: pre-line;
  margin: 8px 0 12px;
  line-height: 1.55;
}
#reason h3 {
  font-size: 0.94rem;
  margin: 0 0 2px;
}
#reason section + section {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #d7d9cc;
}
#review.miss h2 {
  color: #824344;
}
#review p,
#end p {
  margin: 6px 0 10px;
  line-height: 1.55;
}
#next {
  width: 100%;
}
#end {
  background: #fffcf5;
  padding: clamp(18px, 4vw, 38px);
  max-width: 760px;
  margin: auto;
}
#end h2 {
  font:
    normal clamp(24px, 4vw, 38px) / 1.3 Batang,
    serif;
  margin: 0;
}
#end ul {
  padding: 0;
  list-style: none;
}
#end li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px solid #d7d9cc;
}
#end li span:last-child {
  text-align: right;
}
.actions,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.help {
  margin-top: 18px;
  font-size: 0.94rem;
}
.help summary {
  cursor: pointer;
  font-weight: 700;
}
.help p {
  max-width: 65ch;
  line-height: 1.7;
}
.ad {
  text-align: center;
  margin: 25px auto;
  max-width: 760px;
}
.ad small {
  font-size: 0.72rem;
  color: #666;
}
.ad:has(ins[data-ad-status="unfilled"]) {
  display: none;
}
footer {
  padding: 18px 0;
  border-top: 1px solid #ccd1c4;
  margin-top: 22px;
  font-size: 0.83rem;
}
footer nav {
  gap: 16px;
}
@media (max-width: 660px) {
  main,
  .top {
    width: min(100% - 22px, 500px);
  }
  .top {
    height: 38px;
  }
  .title {
    padding: 12px 0;
  }
  .title h1 {
    font-size: 31px;
  }
  .title p {
    font-size: 0.89rem;
    margin-top: 4px;
  }
  .ribbon {
    padding: 7px 11px;
  }
  .desk {
    grid-template-columns: 1fr;
  }
  .person {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .person img {
    width: clamp(98px, 29vw, 138px);
    flex: none;
  }
  .nameplate {
    position: static;
    background: transparent;
    padding: 6px 9px;
  }
  .nameplate strong {
    font-size: 18px;
  }
  .nameplate span {
    font-size: 0.76rem;
  }
  .interview {
    padding: 10px 12px 13px;
    gap: 9px;
  }
  .memo {
    padding: 7px 10px;
  }
  .talk h2 {
    font-size: 15px;
    margin-bottom: 5px;
  }
  .quote {
    min-height: 0;
  }
  .quote p {
    font-size: 17px;
    margin: 3px 0 6px;
  }
  .quote span,
  #tip {
    font-size: 0.79rem;
  }
  #questions {
    gap: 5px;
  }
  #questions button {
    padding: 7px 10px;
  }
  .help {
    margin-top: 13px;
  }
}

#scene-notes strong {
  color: #365449;
  font-size: 0.86rem;
}
#scene-notes p {
  margin: 3px 0 0;
  line-height: 1.55;
}
#scene-notes > div + div,
#scene-notes:not(:empty) + #listen {
  margin-top: 10px;
}
#questions button {
  width: 100%;
}
#questions button[aria-expanded="true"] {
  background: #e6eee6;
  border-color: #5f786d;
}
#questions p {
  margin: 6px 4px 9px;
  padding-left: 10px;
  border-left: 2px solid #af9762;
  line-height: 1.55;
}
#flagged {
  border-left: 3px solid #af9762;
  padding-left: 10px;
}
#original-records,
#case-hint {
  margin-bottom: 14px;
}
#original-records summary,
#case-hint summary {
  cursor: pointer;
  padding-block: 8px;
}
.record-line {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.record-line + .record-line {
  margin-top: 3px;
}
#epilogue {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid #ad8c45;
  background: #f4edd6;
  font:
    normal 1.08rem/1.65 Batang,
    serif;
}
#file-scene {
  line-height: 1.6;
}

#call-prompt {
  margin: 15px 0 8px;
}
#request-posting {
  width: 100%;
  margin-top: 6px;
}
