:root { background: #f9f6ed; color: #111; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
#viewport { width: min(100%, 390px); margin: auto; }
#screen {
  position: relative; width: 390px; height: var(--screen-height, 844px);
  zoom: var(--scale, 1);
  background: #f9f6ed;
}
.art, .hotspot { position: absolute; }
.art { inset: 0; width: 390px; border: 0; pointer-events: none; }
.hotspot {
  display: block; background: transparent; color: inherit; border: 0;
  border-radius: 5px; padding: 0; cursor: pointer; touch-action: manipulation;
}
.hotspot:focus-visible { outline: 2px solid #3d6549; outline-offset: 2px; }
.event-body { position: relative; height: 100%; }
.detail-navigation {
  position: sticky; bottom: 0; z-index: 1;
  width: 390px; height: 49px; zoom: var(--scale, 1); overflow: hidden;
}
.detail-footer {
  position: relative; width: 390px; height: 49px; background: #f9f6ed;
}
.detail-footer .art { top: -796px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px;
}
.prototype-detail:active { background: url("./art/details-pressed.svg") center / 100% 100% no-repeat; }

.carousel {
  position: absolute; left: 29px; top: 313px; width: 334px; height: 475px;
  display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:active { cursor: grabbing; }
.activity {
  position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start;
  user-select: none;
}
.card-art { display: block; width: 100%; height: 100%; pointer-events: none; }
.hotspot:disabled { cursor: default; }

.vote-form { position: absolute; inset: 0; pointer-events: none; }
.vote-input {
  position: absolute; background: transparent; border: 0; border-radius: 5px;
  color: inherit; font: 16px system-ui, sans-serif; padding: 0 6px;
  scroll-margin-block: 20px 66px;
}
.vote-form .hotspot, .vote-input { pointer-events: auto; }
.vote-input:focus { outline: 2px solid #3d6549; }
.vote-status {
  position: absolute; top: 1015px; inset-inline: 0; margin: 0;
  text-align: center; font-size: 12px;
}
