[hidden] { display:none !important; }
.viewer { width:min(100% - 28px,655px); margin:clamp(16px,5vw,63px) auto; }
.viewer-head { position:relative; isolation:isolate; min-height:200px; display:flex; flex-direction:column; justify-content:center; padding:clamp(16px,5vw,37px); margin:0 0 12px; background:linear-gradient(130deg,#6b3a55,#34213c); border:1px solid #bb7f95; border-radius:19px; overflow:hidden; box-shadow:0 15px 20px #120c1c71; }
.viewer-head::before { content:""; position:absolute; z-index:-1; inset:8px; border:1px dashed #eac2b668; border-radius:inherit; }
.viewer-head h1 { margin:0; max-width:68%; text-wrap:balance; font:clamp(37px,9vw,71px)/.94 var(--serif); letter-spacing:-.045em; }
.viewer-head p:last-of-type { margin:10px 0 0; width:min(27ch,66%); color:#f5d6d0; }
.viewer-head img { z-index:-1; position:absolute; width:min(33%,191px); height:auto; right:1%; bottom:0; filter:drop-shadow(0 9px 10px #210f25); }
.viewer-methods { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0; }
.viewer-methods [aria-pressed="true"] { color:var(--text); border-color:var(--accent); background:var(--deep); }
.viewer .sticker-grid { grid-template-columns:repeat(auto-fit,minmax(60px,1fr)); }
.viewer button[type="submit"] { margin-top:9px; }
.viewer #drawing { aspect-ratio:7/4; }
.viewer #feedback { margin-top:8px; }
#ballot-result { padding: clamp(18px,4vw,30px); background: #f3ddcc; border-color: #e7aea2; color: #563247; box-shadow: inset 0 0 0 3px #ecc7bd; }
#ballot-result h2 { color: inherit; line-height: 1.15; overflow-wrap: anywhere; }
#ballot-result p { margin: 7px 0 0; color: #6d4759; }
.public-story { max-width: 460px; }
.public-story-head { margin-bottom: 12px; padding: 12px 16px 16px; text-align: center; color: #f9e1d0; background: #442737; border: 1px solid #bc7b87; border-radius: 19px; }
.public-story-head h1 { margin: 0; }
.public-story-head img { display: block; width: min(100%,320px); height: auto; margin: auto; border-radius: 12px; }
.public-story-head p { margin: 12px auto 0; max-width: 32ch; }
.public-story #story-options { display: grid; gap: 8px; }
.story-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px dashed #ae6a70; border-radius: 9px; color: #4d2939; background: #f8e5d4; cursor: pointer; }
.story-radio:has(input:checked) { outline: 2px solid #cc7e91; background: #f0c5c7; }
.story-radio input { margin: 0; min-height: 0; accent-color: #8e3e5c; }
.public-story #story-signin { margin-top: 12px; }
.public-story #feedback:empty { display: none; }
@media (max-width:600px) {
  .viewer .control :is(input:not([type="color"]),select) { font-size:16px; min-height:44px; }
  .viewer button:not([data-sticker]) { min-height:44px; }
}
