scene {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 14px 18px;
  background: #fefefa;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(80, 60, 40, 0.08);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #2e2e2e;
}

loc {
  display: block;
  text-align: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff5e6, #ffecd2);
  border-radius: 12px;
  font-size: 13px;
  color: #b87333;
  font-weight: 600;
  letter-spacing: 0.5px;
}

text {
  display: block;
  padding: 6px 2px;
  margin-bottom: 10px;
}

scene text p {
  margin: 0 0 12px 0;
  text-indent: 2em;
  text-align: justify;
  word-break: break-word;
}

mc {
  display: inline;
  color: #2b7de9;
  font-weight: 600;
  font-style: normal;
}

mc::before {
  content: "「";
  color: #2b7de9;
}

mc::after {
  content: "」";
  color: #2b7de9;
}

npc {
  display: inline;
  color: #e04848;
  font-weight: 600;
  font-style: normal;
}

npc::before {
  content: "「";
  color: #e04848;
}

npc::after {
  content: "」";
  color: #e04848;
}

scene details {
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fafaf7;
  border: 1.5px solid #ece8df;
  transition: box-shadow 0.25s ease;
}

scene details:hover {
  box-shadow: 0 2px 12px rgba(180, 160, 120, 0.12);
}

scene details summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14.5px;
  color: #5a4e3c;
  background: linear-gradient(135deg, #fdf6ec, #f5efe3);
  list-style: none;
  user-select: none;
  border-radius: 12px;
  transition: background 0.2s ease;
}

scene details summary::-webkit-details-marker {
  display: none;
}

scene details summary::before {
  content: "▸ ";
  font-size: 12px;
  color: #c4a76c;
  transition: transform 0.2s ease;
}

scene details[open] summary::before {
  content: "▾ ";
}

scene details[open] summary {
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #f5efe3, #ede5d5);
}

scene .panel-content {
  padding: 10px 14px 12px;
}

scene .panel-content p {
  margin: 3px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a4a4a;
  text-indent: 0;
  text-align: left;
}

scene .panel-content b {
  color: #6b5b3e;
}

scene hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4c9b0, transparent);
  margin: 10px 0;
}

scene .panel-content div[data-action="append-textinput"] {
  margin: 4px 0;
  padding: 6px 10px;
  background: linear-gradient(135deg, #eef6ff, #e8f0fe);
  border-radius: 8px;
  border: 1px dashed #a8c8f0;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

scene .panel-content div[data-action="append-textinput"]:hover {
  background: rgba(43, 125, 233, 0.1);
  box-shadow: 0 1px 6px rgba(43, 125, 233, 0.12);
}

scene .panel-content div[data-action="append-textinput"] p {
  margin: 0;
  font-size: 13.5px;
  color: #3a6db5;
  line-height: 1.65;
  text-indent: 0;
  text-align: left;
  cursor: pointer;
}