:root { color-scheme: dark; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; background: #000; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #000; }
body { display: flex; justify-content: center; }
button, input { font: inherit; }
.flow-shell { flex: 0 1 460px; width: 100%; max-width: 460px; }
.flow-stage { position: relative; width: 100%; overflow: hidden; background: #070719; }
.screen-image { display: block; width: 100%; height: auto; user-select: none; }
.screen-controls { position: absolute; inset: 0; }
.control-image, .action-image { position: absolute; display: block; height: auto; }
.answer-controls { left: 6.8%; top: 76.1%; width: 86.4%; pointer-events: none; }
.answer-form { position: absolute; inset: 0; }
.answer-input {
  position: absolute; left: 7.3%; top: 76.15%; width: 54.3%; height: 5.35%;
  padding: 0 4%; border: 0; border-radius: 999px; background: transparent;
  color: #111; font-size: clamp(1rem, 5vw, 1.35rem); text-align: center; outline: 0;
}
.answer-input:focus { box-shadow: inset 0 0 0 4px #ffd400; }
.action-button {
  position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.action-button:focus-visible { outline: 4px solid #ffd400; outline-offset: 3px; }
.submit-answer { left: 64.7%; top: 76.15%; width: 28.7%; height: 5.35%; }
.hint-button { left: 35.7%; top: 86.4%; width: 28.6%; height: 5.5%; }
.start-story { left: 20%; top: 84.1%; width: 60%; height: 5.9%; }
.action-button img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.flow-status { position: fixed; left: -10000px; }
.wrong-dialog, .hint-dialog { padding: 0; border: 0; background: transparent; }
.wrong-dialog { width: min(88vw, 420px); }
.wrong-dialog::backdrop, .hint-dialog::backdrop { background: rgba(0,0,0,.75); }
.wrong-close { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.wrong-close img { display: block; width: 100%; height: auto; }
.hint-dialog { width: min(88vw, 420px); color: #16111a; }
.hint-panel { padding: 20px; border: 3px double #d2a900; border-radius: 16px; background: #f7f3e9; }
.hint-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hint-panel h2 { margin: 0; }
.hint-panel header button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #111; color: #fff; font-size: 1.4rem; }
.hint-panel p { margin: 18px 0 4px; line-height: 1.7; }
.hint-item { margin-top: 16px; border: 1px solid #b8a876; }
.hint-item summary { padding: 14px; min-height: 48px; cursor: pointer; font-weight: 700; }
.hint-item p { margin: 0; padding: 14px; border-top: 1px solid #b8a876; }
.noscript { padding: 1rem; color: #fff; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
