:root {
  color-scheme: dark;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
main {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
}

.scene-button {
  display: block;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  cursor: crosshair;
}

.scene-button:disabled {
  cursor: wait;
}

.scene-button:focus {
  outline: none;
}

.scene-button:focus-visible {
  outline: 7px solid #ffe04b;
  outline-offset: -7px;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  user-select: none;
  transition: opacity 260ms ease, filter 260ms ease;
  -webkit-user-drag: none;
}

#scene.is-changing {
  opacity: 0;
  filter: brightness(0.35);
}

.print-area {
  position: fixed;
  left: -200vw;
  top: 0;
  width: 210mm;
  min-height: 297mm;
  padding: 20mm 21mm 16mm;
  color: #000;
  background: #fff;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 5mm;
  border-bottom: 1px solid #aaa;
}

.doc-time,
.doc-scene {
  margin: 0;
  font-size: 8.5pt;
}

.print-area h1 {
  margin: 9mm 0 4mm;
  text-align: center;
  font-size: 25pt;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.print-area h2 {
  margin: 0 0 8mm;
  text-align: center;
  font-size: 13pt;
}

.apology-text p {
  margin: 0 0 4.5mm;
  font-size: 10.6pt;
  font-weight: 500;
  line-height: 1.66;
  word-break: keep-all;
}

.commitment-box {
  margin-top: 7mm;
  padding: 5mm 6mm;
  border: 1.5px solid #111;
}

.commitment-box h3 {
  margin: 0 0 3mm;
  font-size: 11pt;
}

.commitment-box ul {
  margin: 0;
  padding-left: 5mm;
}

.commitment-box li {
  margin: 1.8mm 0;
  font-size: 9.5pt;
  line-height: 1.5;
}

.command {
  margin: 8mm 0 0;
  padding: 3.5mm 0;
  border: 2px solid #000;
  text-align: center;
  font-size: 18pt;
  font-weight: 900;
}

.signature {
  margin: 5mm 0 0;
  text-align: right;
  font-size: 9.5pt;
}

@media (prefers-reduced-motion: reduce) {
  #scene {
    transition: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    overflow: visible;
    background: #fff;
  }

  body * {
    visibility: hidden;
  }

  #printArea,
  #printArea * {
    visibility: visible;
  }

  #printArea {
    position: fixed;
    inset: 0;
    width: 210mm;
    min-height: 297mm;
  }
}
