* { box-sizing: border-box; }
html { background: #fffaf9; color: #34242a; font-family: "Malgun Gothic","Apple SD Gothic Neo",sans-serif; }
body { margin: 0; min-height: 100vh; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #fa0036 url("background.png") center 7% / min(90vw, 960px) auto no-repeat; opacity: .12; }
main { width: min(100% - 24px, 840px); margin: auto; padding: clamp(72px, 19vh, 180px) 0 60px; }
header { margin-bottom: 30px; }
header p { color: #992345; font-weight: 700; font-size: 15px; margin: 0 0 10px; }
h1 { margin: 0; font-size: clamp(32px, 6vw, 56px); letter-spacing: -.065em; line-height: 1.22; }
details { background: rgba(255,255,255,.92); border: 1px solid #e8cdd2; margin-bottom: 12px; border-radius: 14px; box-shadow: 0 4px 18px #66354209; }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px clamp(16px, 4vw, 30px); font-size: clamp(16px, 3.8vw, 21px); font-weight: 700; letter-spacing: -.045em; border-radius: inherit; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; border: solid #a63150; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0 0; flex: none; }
details[open] > summary::after { transform: rotate(225deg); margin-top: 5px; }
summary:focus-visible { outline: 3px solid #a63150; outline-offset: 2px; }
.content { margin: 0 clamp(16px, 4vw, 30px); border-top: 1px solid #efdee2; padding: 0 0 20px; }
h2 { font-size: 16px; color: #8f2945; margin: 20px 0 6px; }
ul, ol { margin: 0; padding-left: 1.5em; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  summary { gap: 8px; padding-inline: 14px; font-size: clamp(16px, 4vw, 18px); }
}

.content :is(ol, ul) { padding: 0; list-style: none; display: grid; gap: 10px; }
.content li {
  display: grid; grid-template-columns: 38% minmax(0, 1fr);
  align-items: center; gap: 18px; padding: 14px;
  border: 1px solid #eddee1; border-radius: 10px; background: #fff;
}
.content li p { margin: 0; line-height: 1.55; }
.content li small { display: block; margin-bottom: 4px; font-weight: bold; color: #922e4b; }
.photo-slot {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 7px; overflow: hidden; background: #f7f1f2;
  color: #80636c; font-size: 13px;
}
.photo-slot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
@media (max-width: 600px) {
  .content li { grid-template-columns: 36% minmax(0, 1fr); gap: 10px; padding: 10px; }
}

.content li p { overflow-wrap: anywhere; }

.content li > :only-child { grid-column: 1 / -1; }

.content input[type="search"] { width: 100%; margin: 6px 0 12px; padding: 10px 12px; font: inherit; color: inherit; border: 1px solid #d7bac3; border-radius: 8px; }
.content li[hidden], .content [role="status"]:empty { display: none; }

.content li.game-row { padding: 0; }
.game { margin: 0; border: 0; box-shadow: none; background: transparent; border-radius: inherit; }
.game summary { justify-content: flex-start; flex-wrap: wrap; padding: 10px 12px; gap: 4px 7px; font-size: 16px; min-height: 44px; }
.game summary strong { min-width: 0; }
.game summary span { color: #743648; background: #f8eef1; border-radius: 5px; padding: 1px 6px; font-size: 13px; font-weight: 500; }
.game summary::after { margin-left: auto; }
.content .game p { border-top: 1px solid #efdee2; padding: 12px; white-space: pre-line; }

.content ul.precautions { display: block; list-style: disc; padding-inline-start: 1.4em; }
.content .precautions li { display: list-item; padding: 3px 0; border: 0; background: transparent; line-height: 1.6; }
.precautions li::marker { color: #922e4b; }

.game summary .recommendation {
  background: #a32650;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  white-space: nowrap;
}

.guide-note {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #a32650;
  border-radius: 6px;
  background: #fce9ef;
  color: #532438;
  line-height: 1.6;
  word-break: keep-all;
}
.guide-note strong { display: inline-block; color: #842043; }

.photo-slot a { display: grid; width: 100%; height: 100%; cursor: zoom-in; }

.photo-slot + div p { white-space: pre-line; }
