:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  background: #171323;
  color: #f3edff;
}

* { box-sizing: border-box; }
.controls[hidden], button[hidden] { display: none; }
body { margin: 0; }
main { max-width: 1180px; margin: auto; padding: clamp(14px, 4vw, 32px); }
header { margin-block-end: 24px; }
a { color: #dbc0ff; }
h1, h2, p { margin: 0; }
h1 { margin-block: 8px 3px; font-size: clamp(26px, 5vw, 38px); }
h2 { font-size: clamp(20px, 3.5vw, 26px); }
p, figcaption { color: #cbc0df; }
header p, #detail { max-width: 65ch; }
.step { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-block-end: 14px; }
.counter { color: #dbc0ff; font: 700 12px/1.3 system-ui, sans-serif; }
.controls { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }
button {
  font: inherit;
  min-height: 42px;
  padding: 7px 12px;
  background: #261d37;
  border: 1px solid #ab93cd;
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
}
#next { background: #e1c9ff; color: #210f36; font-weight: 700; }
button:disabled { opacity: .56; cursor: default; }
:focus-visible { outline: 3px solid #ffd572; outline-offset: 3px; }
figure { margin: 0; }
.capture { position: relative; border: 1px solid #775e9a; border-radius: 6px; }
.capture img { width: 100%; height: auto; display: block; border-radius: inherit; }
figcaption { margin-block-start: 8px; font-size: 13px; }
.hotspot {
  position: absolute;
  background: transparent;
  border: 2px solid #ffd572;
  box-shadow: 0 0 0 2px #171323;
  min-height: 0;
  padding: 0;
}
.hotspot:hover { background: #ffd57233; }
[data-step="room"] .hotspot { inset: 1.28% auto auto 2.5%; width: 9.04%; height: 2.73%; }
[data-step="proposal"] .hotspot { inset: 18.79% auto auto 91.58%; width: 4.55%; height: 3.68%; }
[data-step="kept"] .hotspot { inset: 92.35% auto auto 60.48%; width: 4.61%; height: 4.45%; }
[data-step="undone"] .hotspot { inset: 92.35% auto auto 3.87%; width: 9.15%; height: 4.45%; }

@media (max-width: 760px) {
  .step { align-items: start; flex-direction: column; }
  .hotspot { display: none; }
}

#zoom { margin-block-end: 8px; }
#viewport { overflow: auto; }
#viewport.enlarged .capture { min-width: 1240px; }

@media (max-width: 520px) {
  a { display: inline-flex; align-items: center; }
  :is(a, button) { min-height: 44px; min-width: 44px; }
}
