/* Preserve game_vote_app.css; only the new API integration and dialog accessibility live here. */
#actionArea{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
#actionArea .action-btn{white-space:normal;min-height:34px;height:auto;padding:6px 12px;line-height:1.35}
#actionArea .action-btn.is-done{opacity:.6}
#statusPanel:has(#actionArea button:nth-child(4)){border-radius:16px}
#voteDrawer[hidden],#voteDrawerBackdrop[hidden],#voteDrawer [hidden]{display:none!important}
#voteDrawer{box-sizing:border-box;padding-bottom:max(10px,env(safe-area-inset-bottom));outline:none}
#voteDrawer .vote-drawer-shell{box-sizing:border-box;max-height:min(72vh,620px);max-height:min(72dvh,620px)}
#voteDrawer .vote-drawer-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px}
#voteDrawer .vote-target-grid{overflow:visible}
#voteDrawer .vote-drawer-head,#voteDrawer .vote-drawer-footer{flex-shrink:0}
#voteDrawer .vote-drawer-footer{flex-wrap:wrap}
#voteDrawer .vote-setting-check{display:flex;align-items:center;gap:6px;font-size:13px;margin-top:8px}
#voteDrawer .vote-setting-check input{flex-shrink:0}
#voteDrawer .vote-confirmation{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 2px}
#voteDrawer .vote-error{font-size:13px;line-height:1.5;white-space:pre-wrap;color:#b91c1c;margin:8px 0 0}
#voteDrawer .vote-secondary-btn.is-selected{border-color:#ca8a04;background:rgba(250,204,21,.5)}
#voteDrawer button:disabled{cursor:not-allowed}
#voteDrawer :focus-visible,#actionArea .action-btn:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
#voteDrawer.is-night .vote-drawer-shell{background:rgba(15,23,42,.98);color:snow;border-color:rgba(255,255,255,.14)}
#voteDrawer.is-night .vote-role-editor,#voteDrawer.is-night .vote-victory-editor{background:rgba(30,41,59,.82);border-color:rgba(255,255,255,.14)}
#voteDrawer.is-night .vote-role-select{background:#0f172a;color:#f8fafc;border-color:rgba(255,255,255,.18)}
#voteDrawer.is-night .vote-target-card.is-live{background:rgba(30,41,59,.92);color:snow;border-color:rgba(255,255,255,.2)}
#voteDrawer.is-night .vote-secondary-btn,#voteDrawer.is-night .vote-drawer-close{background:#1e293b;color:snow;border-color:rgba(255,255,255,.2)}
#voteDrawer.is-night .vote-target-card.is-selected,#voteDrawer.is-night .vote-secondary-btn.is-selected{background:#facc15;color:#111827;border-color:#ca8a04}
#voteDrawer.is-night .vote-error{color:#fca5a5}
#voteDrawer.is-night .vote-action-card{background:#1e293b;color:#f8fafc;border-color:rgba(255,255,255,.2)}
#voteDrawer.is-night .vote-action-card:hover:not(:disabled){background:#334155;border-color:#93c5fd}
@media(prefers-reduced-motion:reduce){#voteDrawer,#voteDrawerBackdrop{transition:none}}

.topbar-village-actions{display:inline-flex;flex-wrap:wrap;gap:6px}#actionButtons{padding:0}#voteActionList[hidden]{display:none}.room-option-btn{background:rgba(99,102,241,.14);border-color:rgba(99,102,241,.38);color:#3730a3}.game-app[data-phase=night] .room-option-btn{background:rgba(99,102,241,.24);border-color:rgba(165,180,252,.42);color:#c7d2fe}#optionsDialog{width:min(760px,90vw);max-height:76vh;overflow:auto;border-radius:18px;padding:16px}.room-option-form{display:grid;gap:10px}.room-option-fieldset{border:1px solid #cbd5e1;border-radius:14px;padding:10px;margin:0}.room-option-check{display:flex;align-items:center;gap:7px;min-height:28px}.room-option-time-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.room-option-time-row input{width:72px}.room-option-time-row label{display:flex;align-items:center;gap:6px}

#optionsDialog .room-option-check,#optionsDialog .room-option-time-row label{flex-direction:row}#optionsDialog .room-option-check input{width:16px;height:16px;flex:0 0 16px;padding:0}#optionsDialog .room-option-time-row input{height:30px}#optionsDialog .form-actions button{border-radius:999px}#optionsDialog .room-option-fieldset legend{font-size:13px;font-weight:800}
