:root{--cw-live-accent:#6d28d9;--cw-panel:#15151a;--cw-panel-2:#202026;--cw-line:#34343d;--cw-text:#fff;--cw-muted:#a1a1aa}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#09090b;color:var(--cw-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.modal-open{overflow:hidden}
a{color:#c4b5fd}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;background:#6d28d9;color:#fff;border:0;border-radius:10px;padding:10px 14px;font:inherit;font-weight:750;cursor:pointer}
button:hover,.button:hover{filter:brightness(1.08)}
button:disabled{opacity:.55;cursor:not-allowed}
input,textarea,select{font:inherit}
.muted,.optional{color:var(--cw-muted)}
.error{color:#fecaca}.success{color:#bbf7d0}.notice{padding:12px 14px;background:#202026;border:1px solid #3f3f46;border-radius:12px}
.check{display:flex!important;align-items:flex-start;gap:9px}.check input{width:auto!important;margin-top:3px}

/* Public live stage */
.cw-live-app{position:relative;min-height:100vh;background:#09090b;color:#fff;border:4px solid var(--cw-live-accent);border-radius:20px;overflow:hidden;display:grid;grid-template-rows:auto auto auto auto minmax(320px,1fr) minmax(170px,28vh)}
.cw-live-topbar,.cw-live-presence{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#111114}
.cw-live-topbar{gap:16px}.cw-live-brand{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.cw-live-topbar strong{font-size:1.1rem}.cw-live-badge{font-size:.85rem;opacity:.84}.cw-wait-count{font-size:.78rem;background:#27272a;border:1px solid #3f3f46;padding:5px 8px;border-radius:999px;white-space:nowrap}
.cw-live-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.cw-live-app button{border-radius:999px}.cw-live-actions .button{border-radius:999px}
#cw-raise-hand{background:#f59e0b;color:#18181b}
.cw-live-presence{border-top:1px solid #24242a;border-bottom:1px solid #24242a;gap:12px}.cw-live-users{display:flex;gap:8px;overflow-x:auto;flex:1}.cw-live-user{width:40px;height:40px;border-radius:50%;background:#27272a;display:grid;place-items:center;border:2px solid var(--cw-live-accent);flex:0 0 auto;font-size:.78rem;font-weight:800}
.cw-public-waiting{display:flex;align-items:center;gap:12px;padding:9px 16px;background:#15151a;border-bottom:1px solid #303039;overflow-x:auto}.cw-public-waiting>strong{white-space:nowrap}.cw-public-waiting>div{display:flex;gap:8px;overflow-x:auto}.cw-public-waiting span{white-space:nowrap;background:#27272a;border:1px solid #3f3f46;border-radius:999px;padding:6px 9px;font-size:.78rem}.cw-public-waiting em{color:#c4b5fd;font-style:normal}.cw-queue-status{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px;background:#201803;border-bottom:1px solid #6b4d08}.cw-queue-status>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.cw-queue-status span{color:#fde68a}.cw-queue-status-actions{display:flex;gap:8px;flex-wrap:wrap}.cw-queue-status-actions button,.cw-queue-status-actions .button{padding:8px 12px;font-size:.86rem}
.cw-live-stage{display:grid;grid-template-columns:repeat(var(--stream-cols,1),minmax(0,1fr));grid-template-rows:repeat(var(--stream-rows,1),minmax(0,1fr));gap:4px;background:#000;min-height:0;overflow:auto}.cw-live-frame{position:relative;min-width:0;min-height:0;background:#050505}.cw-live-frame iframe{width:100%;height:100%;border:0;position:absolute;inset:0}.cw-live-frame-label{position:absolute;left:10px;top:10px;z-index:2;background:rgba(0,0,0,.72);border:1px solid var(--cw-live-accent);padding:6px 10px;border-radius:999px;font-size:.8rem}.cw-live-offline{display:grid;place-content:center;text-align:center;padding:36px;min-height:320px}
.cw-live-chat{display:grid;grid-template-rows:1fr auto;background:#131316;border-top:1px solid #2b2b31;min-height:0}.cw-live-messages{overflow-y:auto;padding:12px 16px}.cw-live-message{margin:0 0 8px}.cw-live-message strong{color:var(--cw-live-accent)}#cw-live-chat-form{display:grid;grid-template-columns:minmax(90px,160px) 1fr auto;gap:8px;padding:10px;border-top:1px solid #2b2b31}#cw-live-chat-form input{background:#202025;border:1px solid #35353d;border-radius:12px;color:#fff;padding:11px 12px;min-width:0}#cw-live-chat-form button{background:var(--cw-live-accent);color:#fff}

/* Raise-hand modal */
.cw-modal[hidden]{display:none}.cw-modal{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.76);display:grid;place-items:center;padding:18px}.cw-modal-card{position:relative;width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#17171c;border:1px solid #3f3f46;border-radius:20px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.5)}.cw-modal-card h2{margin-top:0}.cw-modal-close{position:absolute;right:14px;top:14px;width:38px;height:38px;padding:0;background:#2a2a31;font-size:1.45rem}.cw-modal form{display:grid;gap:14px}.cw-modal label:not(.check){display:grid;gap:7px}.cw-modal input,.cw-modal textarea{width:100%;background:#232329;color:#fff;border:1px solid #3a3a42;border-radius:10px;padding:11px}

/* Installer, settings, control center */
.installer{min-height:100vh;display:grid;place-items:center}.installer form,.admin main,.control main,.queue-admin main,.backstage main{width:min(980px,calc(100% - 32px));margin:32px auto;background:var(--cw-panel);padding:24px;border-radius:18px}.installer form{width:min(480px,calc(100% - 32px));display:grid;gap:12px}.installer input,.admin input,.admin textarea,.admin select{width:100%;background:#232329;color:#fff;border:1px solid #3a3a42;border-radius:10px;padding:11px}.admin form{display:grid;gap:18px}.admin label{display:grid;gap:6px}.admin-section{background:#1b1b21;border:1px solid #303039;padding:18px;border-radius:16px}.admin-section h2{margin-top:0}.admin-nav{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.admin-nav a{background:#232329;border:1px solid #363640;border-radius:999px;padding:8px 12px;text-decoration:none}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.account-grid article{background:#202026;padding:18px;border-radius:16px}.platform-dot{display:block;width:14px;height:14px;border-radius:50%}

/* Host waiting-list dashboard */
.queue-heading-actions{display:flex;gap:8px;flex-wrap:wrap}.queue-heading-actions .danger{background:#7f1d1d}.queue-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.queue-heading h1{margin-bottom:4px}.queue-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:22px 0}.queue-summary>div{background:#202026;border:1px solid #34343d;border-radius:14px;padding:14px;text-align:center}.queue-summary strong{display:block;font-size:1.65rem}.queue-summary span{font-size:.8rem;color:var(--cw-muted)}.queue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;margin-bottom:26px}.queue-card{position:relative;min-width:0;background:#202026;border:1px solid #3a3a43;border-left:5px solid #71717a;border-radius:15px;padding:15px}.queue-card form,.queue-card label,.queue-card input,.queue-card textarea,.queue-card select{min-width:0;max-width:100%}.queue-card .muted,.queue-card p,.queue-card code{overflow-wrap:anywhere;word-break:break-word}.queue-card.status-waiting{border-left-color:#f59e0b}.queue-card.status-invited{border-left-color:#38bdf8}.queue-card.status-backstage{border-left-color:#a78bfa}.queue-card.status-live{border-left-color:#22c55e}.queue-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.queue-card h3{margin:0 0 6px}.queue-card time{font-size:.72rem;color:var(--cw-muted);text-align:right}.queue-position{position:absolute;right:10px;top:-10px;background:#f59e0b;color:#18181b;font-weight:900;border-radius:999px;padding:5px 9px}.status-pill{display:inline-flex;border-radius:999px;background:#303038;padding:4px 8px;font-size:.72rem;text-transform:capitalize}.queue-note{min-height:42px}.queue-readiness,.queue-actions{display:flex;gap:7px;flex-wrap:wrap}.queue-badge{background:#303038;border:1px solid #454550;border-radius:999px;padding:5px 8px;font-size:.72rem}.queue-badge.is-ready{color:#bbf7d0;border-color:#166534}.queue-badge.is-off{color:#d4d4d8}.queue-actions{margin-top:14px}.queue-action{padding:7px 10px;font-size:.76rem;background:#3f3f46}.queue-action.primary{background:#6d28d9}.queue-action.danger{background:#7f1d1d}.empty-state{background:#202026;border:1px dashed #44444d;border-radius:14px;padding:18px;color:var(--cw-muted)}

/* Backstage device check */
.backstage main{width:min(840px,calc(100% - 32px))}.backstage-preview{position:relative;aspect-ratio:16/9;background:#050505;border:1px solid #3f3f46;border-radius:16px;overflow:hidden}.backstage-preview video{width:100%;height:100%;object-fit:cover}.backstage-preview div{position:absolute;inset:0;display:grid;place-items:center;color:var(--cw-muted)}.backstage-controls{display:grid;gap:12px;margin-top:16px}

@media(max-width:900px){.queue-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.cw-live-topbar{align-items:flex-start;flex-direction:column}.cw-live-actions{justify-content:flex-start}}
@media(max-width:760px){.cw-live-app{border-radius:0;border-width:2px;grid-template-rows:auto auto auto auto minmax(300px,1fr) minmax(180px,32vh)}.cw-live-topbar{padding:10px}.cw-live-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cw-live-actions button,.cw-live-actions .button{padding:9px 8px;font-size:.76rem;text-align:center}.cw-queue-status{align-items:flex-start;flex-direction:column}.cw-queue-status>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}.cw-live-stage{grid-template-columns:1fr!important;grid-template-rows:none!important}.cw-live-frame{min-height:240px}.cw-live-frame iframe{position:absolute}#cw-live-chat-form{grid-template-columns:1fr auto}#cw-live-name{grid-column:1/-1}.cw-live-presence{padding:8px 10px}.cw-live-user{width:36px;height:36px}.queue-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.queue-heading{flex-direction:column}.queue-heading button{width:100%}.installer form,.admin main,.control main,.queue-admin main,.backstage main{width:calc(100% - 20px);margin:10px auto;padding:16px}.cw-modal{padding:8px}.cw-modal-card{max-height:calc(100vh - 16px);padding:20px 16px}.admin-nav{gap:7px}.admin-nav a{font-size:.82rem}}

:root{--accent:#6d28d9;--cw-live-accent:var(--accent)}
.cw-live-app{border-color:var(--accent)}
.cw-user-chip{display:inline-grid;grid-template-rows:auto auto;justify-items:center;align-content:start;gap:4px;min-width:58px;max-width:64px;background:#202026;border:1px solid #35353d;padding:8px 6px;border-radius:18px;white-space:normal;text-align:center;flex:0 0 auto}.cw-user-chip b{display:block;max-width:100%;font-size:.68rem;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cw-user-chip img,.cw-mini-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#2a2a31}.cw-mini-avatar{margin-right:8px;vertical-align:middle}
.cw-live-stage.grid-1{grid-template-columns:1fr}.cw-live-stage.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-live-stage.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cw-stage-card{display:grid;grid-template-rows:auto 1fr;min-height:240px;background:#050505;border:1px solid #24242c}.cw-stage-card iframe{width:100%;height:100%;border:0}.cw-stage-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 10px;background:#111114;border-bottom:1px solid #23232a}.cw-stage-meta span{font-size:.8rem;color:var(--cw-muted)}
.cw-live-games,.cw-live-soundboard{padding:14px 16px;background:#111114;border-top:1px solid #24242a}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-head h2{margin:0;font-size:1rem}.game-card{background:#1a1a21;border:1px solid #303039;border-radius:16px;padding:16px}.game-card h3{margin:0 0 8px}.game-card form{display:grid;gap:10px}.game-option{display:flex!important;align-items:center;gap:8px;background:#232329;border:1px solid #35353d;border-radius:12px;padding:10px}.game-option input{width:auto}.game-wheel-items,.game-counts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.game-wheel-items span,.game-counts span{background:#25252d;border:1px solid #3b3b45;border-radius:999px;padding:7px 10px;font-size:.85rem}.game-result{margin-top:12px;padding:10px 12px;background:#221d0e;border:1px solid #5e4d18;border-radius:12px}.game-scoreboard{margin-top:14px}.game-scoreboard ol,.score-list{margin:10px 0 0;padding-left:18px}.game-scoreboard li,.score-list li{display:flex;justify-content:space-between;gap:10px;padding:4px 0}.cw-live-games input,.cw-live-soundboard input{background:#202025;border:1px solid #35353d;border-radius:12px;color:#fff;padding:10px 12px;min-width:0}
.cw-sound-buttons{display:flex;gap:8px;flex-wrap:wrap}.sound-btn{background:#232329;border:1px solid #34343d;border-radius:999px;padding:10px 14px}.sound-btn:hover{background:#2b2b33}
.admin-grid.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.button-row{display:flex;gap:8px;flex-wrap:wrap}.prank-avatar-preview{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid #34343d;display:block;margin-bottom:10px}
@media(max-width:760px){.cw-live-games,.cw-live-soundboard{padding:10px}.cw-live-stage.grid-2,.cw-live-stage.grid-3{grid-template-columns:1fr}.button-row button{width:100%}}

.installer-panel{width:min(680px,calc(100% - 24px));margin:24px auto;background:var(--cw-panel);padding:24px;border-radius:18px}.installer-panel form{display:grid;gap:12px}.installer-panel label{display:grid;gap:6px}.installer-panel input{width:100%;background:#232329;color:#fff;border:1px solid #3a3a42;border-radius:10px;padding:11px}.preflight{background:#1b1b21;border:1px solid #303039;border-radius:14px;padding:14px;margin:16px 0}.preflight h2{margin-top:0}.preflight-row{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-top:1px solid #2c2c34}.preflight-row:first-of-type{border-top:0}.preflight-row.ok strong{color:#bbf7d0}.preflight-row.bad strong{color:#fecaca}.preflight-row span{color:var(--cw-muted);text-align:right}
@media(max-width:620px){.preflight-row{flex-direction:column;gap:3px}.preflight-row span{text-align:left}.installer-panel{padding:16px}}

/* Viewer and guest avatars */
.avatar-button-icon{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;overflow:hidden;background:#303038}.avatar-button-icon img{width:100%;height:100%;object-fit:cover}.avatar-editor-preview,.backstage-identity,.queue-person{display:flex;align-items:center;gap:12px}.avatar-placeholder{width:78px;height:78px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#2b2b33;border:3px solid var(--accent);font-size:1.5rem;font-weight:800}.avatar-placeholder img{width:100%;height:100%;object-fit:cover}.avatar-preset-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.avatar-preset-grid.compact{grid-template-columns:repeat(8,42px);margin:8px 0}.avatar-preset{padding:2px;border-radius:50%;background:#2b2b33;border:3px solid transparent;aspect-ratio:1}.avatar-preset.selected{border-color:var(--accent)}.avatar-preset img{width:100%;height:100%;border-radius:50%;object-fit:cover}.avatar-initial-small{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#35353d;font-weight:800}.cw-live-message{display:flex;align-items:flex-start;gap:8px}.cw-mini-avatar{flex:0 0 auto}.cw-guest-avatar-tile{display:grid;place-items:center;align-content:center;gap:12px;min-height:240px;padding:22px;background:radial-gradient(circle at center,#25252d,#08080a)}.cw-guest-avatar-tile img,.cw-guest-avatar-tile>span{width:min(42%,190px);aspect-ratio:1;border-radius:50%;object-fit:cover;border:5px solid var(--accent)}.cw-guest-avatar-tile>span{display:grid;place-items:center;background:#2b2b33;font-size:3rem;font-weight:800}.queue-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#303038;border:2px solid var(--accent);font-weight:800;flex:0 0 auto}.queue-avatar img{width:100%;height:100%;object-fit:cover}.backstage-identity{margin:12px 0 18px}.queue-person>div{min-width:0}.queue-person h3{margin:0 0 6px}
@media(max-width:760px){.avatar-preset-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.avatar-preset-grid.compact{grid-template-columns:repeat(4,48px)}}

/* Moderation */
.cw-moderation-notice{display:flex;align-items:flex-start;gap:10px;padding:10px 16px;background:#2b1717;border-bottom:1px solid #7f1d1d;color:#fecaca}.cw-moderation-notice span{display:block}.cw-moderation-notice a{color:#fff;text-decoration:underline}.cw-message-body{min-width:0;flex:1}.cw-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.cw-report-message{background:transparent!important;color:#a1a1aa!important;border:0!important;padding:3px 6px!important;font-size:.72rem!important;font-weight:600!important}.cw-report-message:hover{color:#fff!important}.cw-live-message{display:flex;align-items:flex-start;gap:8px}.cw-site-ban-modal{z-index:1200}.cw-site-ban-modal .cw-modal-card{text-align:center;border-color:#7f1d1d}.moderation-search{display:flex!important;grid-template-columns:1fr auto!important;gap:8px;min-width:min(420px,100%)}.moderation-search input{min-width:0}.inline-form{display:inline-flex!important;gap:6px!important;margin:0!important}.inline-form button{font-size:.75rem;padding:7px 9px;background:#3f3f46}.scope-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.moderation-user-head{display:flex;align-items:center;gap:10px}.moderation-user-head img{width:44px;height:44px;border-radius:50%;object-fit:cover}.queue-card blockquote{margin:12px 0;padding:10px 12px;background:#17171b;border-left:3px solid #52525b;border-radius:8px}.queue-card code{font-size:.72rem;color:#a1a1aa;word-break:break-all}
@media(max-width:760px){.moderation-search{min-width:0;width:100%;display:grid!important}.cw-message-head{align-items:flex-start}.cw-report-message{white-space:nowrap}.scope-grid{grid-template-columns:1fr}.inline-form{width:auto!important}.inline-form button{width:auto!important}}

/* v0.7.15 game-first home, guest hosting, and suggestions */
body:not(.cw-live-active) .cw-live-app{display:block;min-height:100vh}
body.cw-live-active .cw-live-app{display:grid}
.cw-game-home[hidden],#cw-live-experience-top[hidden],#cw-live-experience-bottom[hidden]{display:none!important}
.cw-game-home{padding:22px;background:radial-gradient(circle at top right,color-mix(in srgb,var(--accent) 18%,#09090b),#09090b 58%)}
.cw-game-home-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;margin-bottom:18px;border:1px solid #35353d;border-radius:22px;background:#15151a}
.cw-game-home-hero h1{margin:4px 0 8px;font-size:clamp(1.8rem,4vw,3rem)}
.cw-game-home-hero p{margin:0;color:var(--cw-muted);max-width:720px}
.cw-host-main{white-space:nowrap;background:var(--accent)}
.cw-game-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.cw-game-home-card{display:flex;flex-direction:column;min-height:245px;padding:20px;border:1px solid #34343d;border-top:4px solid var(--accent);border-radius:20px;background:#17171d}
.cw-game-home-card h2{margin:10px 0 8px}.cw-game-home-card p{margin:0 0 18px;color:var(--cw-muted);line-height:1.5;flex:1}.cw-game-home-card .button{align-self:flex-start;background:var(--accent)}
.cw-game-card-icon{font-size:2.2rem;line-height:1}.cw-suggestion-card{border-top-color:#f59e0b}
.cw-suggestion-card .button{background:#a16207}

.game-host-page,.suggestion-page{min-height:100vh;background:#09090b;color:#fff}
.game-host-shell,.suggestion-shell{width:min(1180px,calc(100% - 28px));margin:18px auto 40px}
.game-host-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;border:1px solid #34343d;border-radius:20px;background:#15151a;margin-bottom:16px}
.game-host-header h1,.suggestion-card h1{margin:5px 0 8px}.game-host-header p,.suggestion-card>p{margin:0;color:var(--cw-muted)}
.game-host-current,.game-host-card,.game-host-lower>article,.suggestion-card,.suggestion-admin-card{background:#17171d;border:1px solid #34343d;border-radius:18px;padding:18px}
.game-host-current{margin-bottom:16px;border-left:5px solid var(--accent)}
.game-host-current h2,.game-host-card h2,.game-host-lower h2{margin-top:0}.game-host-current form{margin-top:12px}
.game-host-lock{padding:12px 14px;border:1px solid #854d0e;border-radius:12px;background:#2a1d08;color:#fde68a}
.game-host-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}
.game-host-card.selected{border-color:var(--accent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent)}
.game-host-card form,.suggestion-form{display:grid;gap:12px}.game-host-card label,.suggestion-form label{display:grid;gap:6px}
.game-host-card input,.game-host-card textarea,.game-host-card select,.suggestion-form input,.suggestion-form textarea,.suggestion-form select,.suggestion-admin-actions select{width:100%;background:#232329;color:#fff;border:1px solid #3a3a42;border-radius:10px;padding:11px}
.game-host-lower{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.game-host-lower ul,.game-host-lower ol{margin:0;padding-left:20px}.game-host-lower li{padding:5px 0}.game-host-lower ol li{display:flex;justify-content:space-between;gap:12px}
.suggestion-shell{width:min(720px,calc(100% - 24px))}.suggestion-shell>.back-link{display:inline-block;margin:0 0 12px}.suggestion-card{padding:24px}.suggestion-form{margin-top:20px}.suggestion-form button{justify-self:start}
.suggestion-admin-grid{display:grid;gap:14px}.suggestion-admin-card h2{margin:6px 0}.suggestion-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.suggestion-admin-head time{font-size:.75rem;color:var(--cw-muted);white-space:nowrap}.suggestion-admin-actions{display:grid!important;grid-template-columns:1fr auto;gap:8px!important;margin-top:14px!important}.suggestion-admin-actions button{width:auto!important}
@media(max-width:760px){.cw-game-home{padding:10px}.cw-game-home-hero{align-items:flex-start;flex-direction:column;padding:18px}.cw-host-main{width:100%}.cw-game-home-grid{grid-template-columns:1fr}.cw-game-home-card{min-height:0}.game-host-shell{width:calc(100% - 16px);margin:8px auto 24px}.game-host-header{flex-direction:column;padding:16px}.game-host-header .button{width:100%}.game-host-grid,.game-host-lower{grid-template-columns:1fr}.suggestion-card{padding:18px}.suggestion-admin-head{flex-direction:column}.suggestion-admin-actions{grid-template-columns:1fr}}
body.cw-live-active #cw-live-experience-top:not([hidden]),body.cw-live-active #cw-live-experience-bottom:not([hidden]){display:contents}

/* v0.7.17 simplified game flow and public chatroom */
body:not(.cw-live-active) .cw-home-live-game{display:none!important}
.cw-active-game-card[hidden]{display:none!important}
.cw-active-game-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:18px 20px;border:2px solid #22c55e;border-radius:18px;background:#102016}
.cw-active-game-card h2{margin:5px 0}.cw-active-game-card p{margin:0 0 5px;color:#d1fae5}.cw-active-game-card small{color:#86efac}.cw-active-game-card .button{background:#15803d;white-space:nowrap}
.cw-active-game-badge,.game-play-live-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#166534;color:#dcfce7;font-size:.72rem;font-weight:900;letter-spacing:.06em}
.cw-game-steps{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:11px 14px;border:1px solid #34343d;border-radius:14px;background:#111116;color:var(--cw-muted)}
.cw-game-steps strong{color:#fff}.cw-game-steps span{padding-right:10px;border-right:1px solid #3f3f46}.cw-game-steps span:last-child{border-right:0}
.cw-chatroom-card{border-top-color:#22c55e}.cw-chatroom-card .button{background:#15803d}

.game-play-page,.public-chatroom-page{min-height:100vh;background:#09090b;color:#fff}
.game-play-shell,.public-chatroom-shell{width:min(1040px,calc(100% - 28px));margin:18px auto 40px}
.game-play-header,.public-chatroom-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;border:1px solid #34343d;border-radius:20px;background:#15151a;margin-bottom:16px}
.game-play-header h1,.public-chatroom-header h1{margin:6px 0 8px}.game-play-header p,.public-chatroom-header p{margin:0;color:var(--cw-muted);max-width:700px}
.game-play-header-actions,.public-chatroom-actions{display:flex;gap:8px;flex-wrap:wrap}.game-play-header-actions .button,.public-chatroom-actions .button{white-space:nowrap}
.game-play-started{padding:12px 14px;border:1px solid #166534;border-radius:12px;background:#102016}
.game-play-name-card{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px;padding:14px 16px;border:1px solid #34343d;border-radius:14px;background:#15151a}.game-play-name-card label{display:grid;gap:6px;min-width:min(100%,320px)}.game-play-name-card input{width:100%;background:#232329;color:#fff;border:1px solid #3a3a42;border-radius:10px;padding:11px}.game-play-name-card p{margin:0;color:var(--cw-muted);font-size:.86rem}
.game-play-status[hidden]{display:none}.game-play-status{margin-bottom:12px;padding:10px 12px;border-radius:10px;background:#202026}.game-play-status.success{border:1px solid #166534}.game-play-status.error{border:1px solid #7f1d1d}
.game-play-stage,.public-chatroom-card{background:#17171d;border:1px solid #34343d;border-radius:20px;padding:20px}
.game-play-card h2{margin:7px 0}.game-play-card-head p{margin:0;color:var(--cw-muted)}.game-play-prompt{font-size:1.08rem;margin:18px 0}
.game-play-card form{display:grid;gap:10px;margin:16px 0}.game-play-card input{width:100%;background:#232329;color:#fff;border:1px solid #3a3a42;border-radius:10px;padding:11px}.game-play-card button{justify-self:start}
.game-play-wheel-items{display:flex;gap:8px;flex-wrap:wrap}.game-play-wheel-items span{padding:8px 10px;border:1px solid #3f3f46;border-radius:999px;background:#25252d}.game-play-result{padding:12px 14px;border:1px solid #854d0e;border-radius:12px;background:#2a1d08}.game-play-entries{margin-top:16px}.game-play-scoreboard{margin-top:18px;border-top:1px solid #34343d;padding-top:14px}.game-play-scoreboard ol{margin:0;padding-left:20px}.game-play-scoreboard li{display:flex;justify-content:space-between;gap:12px;padding:5px 0}.game-play-empty{text-align:center;padding:30px}.game-play-empty>span{font-size:3rem}.game-play-empty .button-row{justify-content:center}

.public-chatroom-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.public-chatroom-heading h2{margin:0 0 4px}.public-chatroom-heading p{margin:0;color:var(--cw-muted)}
.public-chatroom-messages{height:min(58vh,620px);min-height:360px;overflow-y:auto;padding:12px;border:1px solid #34343d;border-radius:14px;background:#101014}
.public-chatroom-message{display:flex;align-items:flex-start;gap:10px;padding:9px 2px}.public-chatroom-message>img,.public-chatroom-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;display:grid;place-items:center;flex:0 0 auto;background:#303038;border:2px solid var(--cw-live-accent);font-weight:900}.public-chatroom-message>div{min-width:0;flex:1}.public-chatroom-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.public-chatroom-message-head time{font-size:.72rem;color:var(--cw-muted)}.public-chatroom-message p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#public-chatroom-form{display:grid;grid-template-columns:minmax(130px,200px) minmax(0,1fr);gap:10px;margin-top:12px}#public-chatroom-form label{display:grid;gap:6px}#public-chatroom-form input{width:100%;min-width:0;background:#232329;color:#fff;border:1px solid #3a3a42;border-radius:10px;padding:11px}
.public-chatroom-composer{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-self:end}.public-chatroom-composer>button:first-child{width:46px;padding:0;background:#232329;border:1px solid #3a3a42;font-size:1.2rem}.public-chatroom-emoji-picker[hidden]{display:none!important}.public-chatroom-emoji-picker{position:absolute;left:0;bottom:calc(100% + 8px);z-index:20;width:min(360px,calc(100vw - 38px));display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:10px;border:1px solid #44444d;border-radius:14px;background:#1b1b21;box-shadow:0 18px 45px rgba(0,0,0,.55)}.public-chatroom-emoji{display:grid;place-items:center;aspect-ratio:1;padding:4px;background:#27272f!important;border:1px solid transparent;border-radius:8px;font-size:1.2rem}.public-chatroom-emoji:hover{border-color:var(--cw-live-accent)}

@media(max-width:760px){.cw-active-game-card,.game-play-header,.public-chatroom-header,.game-play-name-card{align-items:flex-start;flex-direction:column}.cw-active-game-card .button,.game-play-header-actions,.public-chatroom-actions{width:100%}.game-play-header-actions .button,.public-chatroom-actions .button{flex:1}.cw-game-steps{align-items:flex-start;flex-direction:column}.cw-game-steps span{border-right:0;padding-right:0}.game-play-shell,.public-chatroom-shell{width:calc(100% - 16px);margin:8px auto 24px}.game-play-stage,.public-chatroom-card{padding:14px}#public-chatroom-form{grid-template-columns:1fr}.public-chatroom-messages{min-height:340px}.public-chatroom-emoji-picker{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* v0.7.18 dedicated game rooms, single-game setup, and player counts */
.cw-active-game-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cw-active-game-players,.cw-game-card-playing{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:5px 9px;border-radius:999px;background:#14532d;color:#dcfce7;font-size:.76rem;font-weight:900}
.cw-game-card-playing[hidden]{display:none!important}
.cw-game-home-card.has-live-players{border-color:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.18)}
.cw-game-home-card.has-live-players .button{background:#15803d}

.game-host-picker{margin:14px 0;padding:20px;border:1px solid #34343d;border-radius:20px;background:#17171d}
.game-host-picker-heading h2{margin:0 0 6px}.game-host-picker-heading p{margin:0;color:var(--cw-muted)}
.game-host-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:16px}
.game-host-pick{display:grid;gap:6px;min-height:150px;padding:18px;border:1px solid #3f3f46;border-top:4px solid var(--accent);border-radius:16px;background:#202026;color:#fff;text-decoration:none}
.game-host-pick:hover,.game-host-pick:focus-visible{border-color:var(--accent);transform:translateY(-2px)}
.game-host-pick>span{font-size:2rem}.game-host-pick strong{font-size:1.05rem}.game-host-pick small{color:var(--cw-muted)}
.game-host-selected-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 8px}.game-host-selected-head span{color:var(--cw-muted);font-size:.8rem}
.game-host-grid.single-game{grid-template-columns:minmax(0,680px);justify-content:center}
.game-host-grid.single-game .game-host-card{min-height:0}

.game-room-shell{width:min(1180px,calc(100% - 24px));margin:12px auto 36px}
.game-room-header{border-top:5px solid var(--cw-live-accent)}
.game-room-presence{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:14px 16px;border:1px solid #34343d;border-radius:16px;background:#15151a}
.game-room-presence>div:first-child{display:grid;gap:3px}.game-room-presence strong{font-size:1rem}.game-room-presence span{color:var(--cw-muted);font-size:.8rem}
.game-room-player-list{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:65%}
.game-room-player-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px 5px 5px;border:1px solid #3f3f46;border-radius:999px;background:#24242a}
.game-room-player-chip>b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--cw-live-accent);color:#fff;font-size:.72rem}
.game-room-player-chip>span{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:.76rem}
.game-room-stage{min-height:520px;padding:22px;border-top:5px solid var(--cw-live-accent);background:radial-gradient(circle at top center,color-mix(in srgb,var(--cw-live-accent) 16%,#17171d),#101014 66%)}
.game-room-card{min-height:470px;display:flex;flex-direction:column}
.game-room-card .game-play-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.game-room-card .game-play-prompt{font-size:clamp(1.2rem,3vw,2rem);font-weight:900;text-align:center;margin:18px auto 24px;max-width:840px}

.game-room-wheel-layout{display:grid;grid-template-columns:minmax(280px,420px) minmax(220px,1fr);gap:28px;align-items:center;justify-content:center;margin:auto 0}
.game-room-wheel-machine{position:relative;display:grid;place-items:center;min-height:370px}
.game-room-wheel-pointer{position:absolute;top:0;z-index:2;color:#fff;font-size:2.2rem;text-shadow:0 2px 5px #000}
.game-room-wheel-disc{display:grid;place-items:center;width:min(330px,72vw);aspect-ratio:1;border:12px solid #f4f4f5;border-radius:50%;background:conic-gradient(#7c3aed 0 12.5%,#db2777 12.5% 25%,#ea580c 25% 37.5%,#ca8a04 37.5% 50%,#16a34a 50% 62.5%,#0891b2 62.5% 75%,#2563eb 75% 87.5%,#9333ea 87.5% 100%);box-shadow:0 20px 55px rgba(0,0,0,.5),inset 0 0 0 8px #111827;text-align:center}
.game-room-wheel-disc>span{font-size:4rem}.game-room-wheel-disc>b{display:grid;place-items:center;max-width:70%;min-height:58px;padding:8px 14px;border-radius:14px;background:rgba(0,0,0,.82);color:#fff;font-size:1.1rem}
.game-room-wheel-machine.has-result .game-room-wheel-disc{animation:game-wheel-settle 1.1s ease-out}
@keyframes game-wheel-settle{0%{transform:rotate(0)}70%{transform:rotate(690deg)}100%{transform:rotate(720deg)}}
.game-room-wheel-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.game-room-wheel-choices span{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #3f3f46;border-radius:12px;background:#232329}.game-room-wheel-choices span>b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#3f3f46}.game-room-wheel-choices span.selected{border-color:#facc15;background:#422006;box-shadow:0 0 0 3px rgba(250,204,21,.18)}
.game-room-instruction{text-align:center;color:var(--cw-muted)}
.game-room-big-result{font-size:1.15rem;text-align:center;margin:18px auto;max-width:700px}

.game-room-choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;max-width:900px;width:100%;margin:0 auto!important}
.game-room-choice{display:block}.game-room-choice input{position:absolute;opacity:0;pointer-events:none}.game-room-choice>span{display:flex;align-items:center;gap:12px;min-height:80px;padding:14px 16px;border:2px solid #3f3f46;border-radius:16px;background:#232329;font-size:1.02rem;font-weight:800;cursor:pointer}.game-room-choice>span>b{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--cw-live-accent);color:#fff;flex:0 0 auto}.game-room-choice input:checked+span{border-color:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--cw-live-accent) 45%,transparent);background:color-mix(in srgb,var(--cw-live-accent) 22%,#232329)}
.game-room-submit{grid-column:1/-1;justify-self:center!important;min-width:220px;padding:13px 24px!important;font-size:1rem}
.game-room-vote-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;max-width:900px;margin:18px auto 0}.game-room-vote-counts span{display:grid;gap:3px;padding:12px;border:1px solid #3f3f46;border-radius:12px;background:#202026;text-align:center}.game-room-vote-counts b{font-size:1.5rem}

.game-room-clue{display:flex;align-items:center;justify-content:center;gap:18px;max-width:820px;margin:24px auto;padding:28px;border:2px dashed var(--cw-live-accent);border-radius:22px;background:color-mix(in srgb,var(--cw-live-accent) 13%,#17171d)}
.game-room-clue>span{font-size:4rem}.game-room-clue>div{display:grid;gap:6px}.game-room-clue small{color:var(--cw-muted);font-weight:900;letter-spacing:.12em}.game-room-clue strong{font-size:clamp(1.3rem,4vw,2.4rem)}
.game-room-entry-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;max-width:720px;margin:18px auto!important}.game-room-entry-form button{justify-self:stretch!important}
.game-play-entries{max-width:760px;margin:18px auto}.game-play-entries p{padding:9px 11px;border:1px solid #34343d;border-radius:10px;background:#202026}

.game-room-secret-board{display:grid;justify-items:center;gap:16px;margin:28px auto}.game-room-secret-icon{font-size:5rem}.game-room-secret-slots{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.game-room-secret-slots span{display:grid;place-items:center;width:56px;height:66px;border:2px solid #71717a;border-radius:12px;background:#f8fafc;color:#111827;font-size:1.6rem;font-weight:900}.game-room-secret-board p{color:var(--cw-muted)}.game-room-winner{text-align:center;font-size:1.4rem;font-weight:900;color:#fde68a}
.game-play-scoreboard li span{display:flex;align-items:center;gap:8px}.game-play-scoreboard li span>b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#303038}

@media(max-width:760px){
  .game-host-selected-head,.game-room-presence{align-items:flex-start;flex-direction:column}.game-room-player-list{justify-content:flex-start;max-width:100%}
  .game-room-stage{min-height:430px;padding:14px}.game-room-card{min-height:400px}.game-room-wheel-layout{grid-template-columns:1fr;gap:12px}.game-room-wheel-machine{min-height:310px}.game-room-wheel-disc{width:min(290px,78vw)}
  .game-room-wheel-choices,.game-room-choice-grid{grid-template-columns:1fr}.game-room-entry-form{grid-template-columns:1fr}.game-room-entry-form button{width:100%}.game-room-clue{align-items:flex-start;padding:20px}.game-room-clue>span{font-size:3rem}
}
@media(prefers-reduced-motion:reduce){.game-room-wheel-machine.has-result .game-room-wheel-disc{animation:none}}

/* v0.7.19 live game controls and stable answer entry */
.game-room-host-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:11px 13px;border:1px solid color-mix(in srgb,var(--cw-live-accent) 68%,#3f3f46);border-radius:14px;background:color-mix(in srgb,var(--cw-live-accent) 13%,#17171d)}
.game-room-host-panel>span{font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#f4f4f5}
.game-room-host-panel>div{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.game-room-host-panel button,.game-room-host-panel .button{min-height:38px;padding:8px 12px;border-radius:10px}
.game-room-host-panel .secondary,.game-room-host-panel button.secondary{background:#303038!important;border:1px solid #555563;color:#fff}
.game-room-host-hint{margin:10px 0 0;color:var(--cw-muted);font-size:.82rem;text-align:center}
.game-room-wheel-choice{display:flex;align-items:center;gap:8px;width:100%;padding:10px;border:1px solid #3f3f46;border-radius:12px;background:#232329;color:#fff;text-align:left;font:inherit}
button.game-room-wheel-choice{cursor:pointer}
button.game-room-wheel-choice:hover,button.game-room-wheel-choice:focus-visible{border-color:var(--cw-live-accent);background:color-mix(in srgb,var(--cw-live-accent) 18%,#232329)}
.game-room-wheel-choice>b{display:grid;place-items:center;width:28px;height:28px;flex:0 0 auto;border-radius:50%;background:#3f3f46}
.game-room-wheel-choice.selected{border-color:#facc15;background:#422006;box-shadow:0 0 0 3px rgba(250,204,21,.18)}
.game-room-wheel-machine.is-spinning .game-room-wheel-disc{animation:game-wheel-live-spin .85s cubic-bezier(.2,.7,.2,1)}
@keyframes game-wheel-live-spin{0%{transform:rotate(0)}100%{transform:rotate(1080deg)}}
.game-room-entry-form input:focus,.game-room-choice input:focus+span{outline:3px solid color-mix(in srgb,var(--cw-live-accent) 72%,#fff);outline-offset:2px}
@media(max-width:760px){.game-room-host-panel{align-items:stretch;flex-direction:column}.game-room-host-panel>div{display:grid;grid-template-columns:1fr;width:100%}.game-room-host-panel button,.game-room-host-panel .button{width:100%;text-align:center}.game-room-wheel-choices{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.game-room-wheel-machine.is-spinning .game-room-wheel-disc{animation:none}}

/* v0.7.20 saved game content, Auto Play, Phrase Game, and Quote Game */
.game-autoplay-setup{display:grid;grid-template-columns:minmax(0,.8fr) minmax(340px,1.2fr);gap:18px;align-items:start;margin:18px 0;padding:18px;border:1px solid color-mix(in srgb,var(--cw-live-accent) 68%,#3f3f46);border-radius:18px;background:color-mix(in srgb,var(--cw-live-accent) 10%,#17171d)}
.game-autoplay-setup h2{margin:5px 0 7px}.game-autoplay-setup p{margin:0;color:var(--cw-muted)}
.game-autoplay-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-autoplay-form>input[type="text"]{grid-column:1/-1}.game-autoplay-form label:not(.check){display:grid;gap:6px}.game-autoplay-form .check{align-self:center}.game-autoplay-form button{grid-column:1/-1}
.game-autoplay-live{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 4px;padding:12px 14px;border:1px solid #166534;border-radius:14px;background:#102016}
.game-autoplay-live>div:first-child{display:grid;gap:4px}.game-autoplay-live small{color:#bbf7d0}.game-autoplay-countdown{display:grid;place-items:center;min-width:72px;height:52px;padding:0 12px;border-radius:14px;background:#052e16;color:#86efac;font-size:1.4rem;font-weight:1000;font-variant-numeric:tabular-nums}
.game-phrase-board{display:grid;justify-items:center;gap:14px;max-width:900px;margin:20px auto;padding:26px;border:2px dashed var(--cw-live-accent);border-radius:22px;background:color-mix(in srgb,var(--cw-live-accent) 10%,#17171d);text-align:center}
.game-phrase-board>span{font-size:.78rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#ddd6fe}.game-phrase-board>strong{font-size:clamp(1.5rem,5vw,3.4rem);letter-spacing:.1em;overflow-wrap:anywhere}.game-phrase-board p{margin:0;color:var(--cw-muted)}
.game-quote-board{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;max-width:900px;margin:20px auto;padding:28px;border:1px solid #4c1d95;border-radius:22px;background:#211238}
.game-quote-board>span{font-size:4rem;line-height:.8;color:#c4b5fd}.game-quote-board blockquote{margin:0;font-size:clamp(1.25rem,3.5vw,2.3rem);line-height:1.4;font-weight:800;text-align:center}.game-quote-board p{grid-column:1/-1;margin:8px 0 0;text-align:center;color:#ddd6fe}
.game-content-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.game-content-tabs .button.active{box-shadow:0 0 0 3px color-mix(in srgb,var(--cw-live-accent) 42%,transparent);border-color:#fff}
.game-content-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}.game-content-layout code{display:block;padding:10px;border:1px solid #3f3f46;border-radius:10px;background:#111114;overflow-wrap:anywhere}
.game-content-list{padding:18px;border:1px solid #34343d;border-radius:18px;background:#15151a}.game-content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.game-content-item{display:flex;flex-direction:column;justify-content:space-between;gap:14px;padding:14px;border:1px solid #3f3f46;border-radius:14px;background:#202026}.game-content-item.is-disabled{opacity:.55}.game-content-item h3{margin:7px 0}.game-content-item p{overflow-wrap:anywhere}.game-content-item .button-row form{margin:0}.game-content-item .danger{background:#7f1d1d!important}
@media(max-width:760px){.game-autoplay-setup,.game-content-layout{grid-template-columns:1fr}.game-autoplay-form{grid-template-columns:1fr}.game-autoplay-form>input[type="text"],.game-autoplay-form button{grid-column:auto}.game-autoplay-live{align-items:flex-start}.game-quote-board{padding:20px}.game-quote-board>span{font-size:2.7rem}}

/* v0.7.21 participant selector and game sounds */
.game-sound-toggle{min-height:38px;padding:8px 12px;border:1px solid #52525e;border-radius:10px;background:#303038!important;color:#fff;white-space:nowrap}
.game-sound-toggle[aria-pressed="true"]{border-color:#22c55e;background:#12341f!important;color:#dcfce7}
.game-wheel-participants{display:grid;gap:12px;margin:0 0 20px;padding:15px;border:1px solid color-mix(in srgb,var(--cw-live-accent) 60%,#3f3f46);border-radius:18px;background:color-mix(in srgb,var(--cw-live-accent) 8%,#17171d)}
.game-wheel-participants-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.game-wheel-participants-head>div{display:grid;gap:3px}.game-wheel-participants-head span{font-size:.7rem;font-weight:900;letter-spacing:.12em;color:#c4b5fd}.game-wheel-participants-head strong{font-size:1.15rem}.game-wheel-participants-head small{max-width:340px;color:var(--cw-muted);text-align:right}
.game-wheel-participant-list{display:grid;gap:7px}
.game-wheel-participant{position:relative;display:grid;grid-template-columns:18px 34px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:48px;padding:7px 10px;border:1px solid #3f3f46;border-radius:12px;background:#202026;transition:border-color .12s ease,background .12s ease,transform .12s ease}
.game-wheel-participant-dot{display:block;width:10px;height:10px;border-radius:50%;background:#52525b;box-shadow:0 0 0 3px rgba(255,255,255,.05)}
.game-wheel-participant>b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--cw-live-accent);font-size:.72rem}.game-wheel-participant>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-wheel-participant>small{color:var(--cw-muted);font-variant-numeric:tabular-nums}
.game-wheel-participant.is-choosing{border-color:#facc15;background:#3a2a08;transform:translateX(5px)}
.game-wheel-participant.is-choosing .game-wheel-participant-dot{background:#facc15;box-shadow:0 0 0 4px rgba(250,204,21,.18),0 0 16px rgba(250,204,21,.8)}
.game-wheel-participant.is-selected{border-color:#22c55e;background:#102c1a;box-shadow:0 0 0 3px rgba(34,197,94,.16)}
.game-wheel-participant.is-selected .game-wheel-participant-dot{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18),0 0 16px rgba(34,197,94,.75)}
button.game-room-wheel-choice:disabled{opacity:.42;cursor:not-allowed;filter:none}
@media(max-width:760px){.game-wheel-participants-head{flex-direction:column}.game-wheel-participants-head small{text-align:left}.game-sound-toggle{width:100%}.game-wheel-participant{grid-template-columns:16px 32px minmax(0,1fr) auto}}
@media(prefers-reduced-motion:reduce){.game-wheel-participant{transition:none}.game-wheel-participant.is-choosing{transform:none}}

/* v0.7.22 spreadsheet-style game content importer */
.game-file-import-card{grid-column:1/-1;border-color:color-mix(in srgb,var(--cw-live-accent) 72%,#3f3f46)}
.game-file-import-card form{margin-top:14px}
.game-file-import-card input[type="file"]{width:100%;padding:10px;border:1px dashed #52525e;border-radius:11px;background:#17171d;color:#fff}
.game-file-import-card code{margin:8px 0}
@media(max-width:760px){.game-file-import-card{grid-column:auto}}


/* v0.7.23 open-answer trivia CSV import */
.game-room-submitted-count{margin:8px 0 0;color:var(--cw-muted);text-align:center;font-size:.9rem}

/* v0.7.25 private Wheel host prompts and full-screen public chatroom */
.wheel-host-prompt-summary{display:grid;gap:6px;margin:0 0 14px;padding:13px 14px;border:1px solid #6d28d9;border-radius:14px;background:#21163b}
.wheel-host-prompt-summary>span{font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#ddd6fe}
.wheel-host-prompt-summary>strong{font-size:1.05rem}
.wheel-host-prompt-summary>p{margin:0;color:#d4d4d8}
.wheel-host-prompt-summary>a{width:max-content;font-weight:800}
.game-wheel-private-prompt{display:grid;gap:12px;margin:0 0 20px;padding:16px;border:2px solid #7c3aed;border-radius:18px;background:linear-gradient(135deg,#251347,#17171d 72%)}
.game-wheel-private-prompt.has-prompt{border-color:#22c55e;background:linear-gradient(135deg,#123322,#17171d 72%)}
.game-wheel-private-prompt-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.game-wheel-private-prompt-head>div{display:grid;gap:4px}
.game-wheel-private-prompt-head span{font-size:.72rem;font-weight:950;letter-spacing:.12em;color:#ddd6fe}
.game-wheel-private-prompt.has-prompt .game-wheel-private-prompt-head span{color:#bbf7d0}
.game-wheel-private-prompt-head strong{font-size:1rem}
.game-wheel-private-prompt-head small{max-width:320px;color:var(--cw-muted);text-align:right}
.game-wheel-private-prompt>p{margin:0;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(0,0,0,.26);font-size:clamp(1rem,2.2vw,1.25rem);font-weight:800;line-height:1.5}
.game-wheel-private-prompt>button{justify-self:start}

html:has(body.public-chatroom-page){height:100%;overflow:hidden}
body.public-chatroom-page{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.public-chatroom-page .public-chatroom-shell{display:flex;flex-direction:column;gap:10px;width:100%;height:100vh;height:100dvh;margin:0;padding:10px;overflow:hidden}
.public-chatroom-page .public-chatroom-header{flex:0 0 auto;align-items:center;margin:0;padding:12px 16px;border-radius:16px}
.public-chatroom-page .public-chatroom-header h1{margin:3px 0 4px;font-size:clamp(1.35rem,3vw,2rem)}
.public-chatroom-page .public-chatroom-header p{max-width:840px;font-size:.9rem}
.public-chatroom-page .public-chatroom-card{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding:14px;border-radius:16px}
.public-chatroom-page .public-chatroom-heading{flex:0 0 auto;margin-bottom:8px}
.public-chatroom-page .public-chatroom-messages{flex:1 1 auto;height:auto;min-height:0;overscroll-behavior:contain}
.public-chatroom-page #public-chatroom-form{flex:0 0 auto;margin-top:8px}
.public-chatroom-page:fullscreen{background:#09090b}
.public-chatroom-page .public-chatroom-actions button,.public-chatroom-page .public-chatroom-actions .button{white-space:nowrap}

@media(max-width:760px){
  .game-wheel-private-prompt-head{flex-direction:column}
  .game-wheel-private-prompt-head small{text-align:left}
  .game-wheel-private-prompt>button{width:100%}
  .public-chatroom-page .public-chatroom-shell{width:100%;margin:0;padding:6px}
  .public-chatroom-page .public-chatroom-header{gap:8px;padding:10px 12px}
  .public-chatroom-page .public-chatroom-header p{display:none}
  .public-chatroom-page .public-chatroom-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .public-chatroom-page .public-chatroom-actions button,.public-chatroom-page .public-chatroom-actions .button{width:100%;padding:9px 10px}
  .public-chatroom-page .public-chatroom-card{padding:8px}
  .public-chatroom-page .public-chatroom-messages{min-height:0}
  .public-chatroom-page #public-chatroom-form{grid-template-columns:1fr;gap:6px}
  .public-chatroom-page #public-chatroom-form label{grid-template-columns:auto minmax(0,1fr);align-items:center}
  .public-chatroom-page #public-chatroom-form label input{min-height:42px}
}

/* v0.7.27 hosting modes, host handoff, and auto-host controls */
.game-host-mode-picker{
  margin:18px 0;
  padding:22px;
  border:1px solid rgba(124,92,255,.34);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(34,26,73,.96),rgba(14,17,34,.96));
}
.game-host-mode-picker h2{margin:5px 0 6px}
.game-host-mode-picker p{margin:0;color:var(--muted,#aeb4c7)}
.game-host-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.game-host-mode-card{
  display:grid;
  gap:7px;
  min-height:150px;
  align-content:center;
  padding:20px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  color:inherit;
  text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.game-host-mode-card:hover,.game-host-mode-card:focus-visible{transform:translateY(-2px);border-color:rgba(124,92,255,.72);background:rgba(124,92,255,.12)}
.game-host-mode-card>span{font-size:2rem}
.game-host-mode-card>strong{font-size:1.15rem}
.game-host-mode-card>small{color:var(--muted,#aeb4c7);line-height:1.45}
.game-host-mode-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0;padding:12px 15px;border:1px solid rgba(124,92,255,.3);border-radius:14px;background:rgba(124,92,255,.08)}
.game-host-mode-switch a{font-weight:700}

.game-host-management{
  margin:14px 0 18px;
  padding:16px;
  border:1px solid rgba(79,209,197,.35);
  border-radius:18px;
  background:rgba(18,39,50,.82);
}
.game-host-management-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.game-host-management-head>div{display:grid;gap:4px}
.game-host-management-head span{font-size:.72rem;font-weight:800;letter-spacing:.1em;color:#74e4d8}
.game-host-management-head strong{font-size:1.05rem}
.game-host-management-head small{max-width:310px;color:var(--muted,#aeb4c7);text-align:right;line-height:1.4}
.game-host-management-actions{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:14px}
.game-host-management-actions button{min-height:42px}
.game-host-transfer{display:grid;gap:5px;min-width:min(100%,260px);flex:1}
.game-host-transfer>span{font-size:.78rem;font-weight:700;color:var(--muted,#aeb4c7)}
.game-host-transfer select{width:100%;min-height:42px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#111629;color:#fff;padding:8px 10px}
.game-host-management>p{margin:11px 0 0;color:var(--muted,#aeb4c7);font-size:.88rem}
.game-host-play-note{margin:14px 0;padding:12px 14px;border:1px dashed rgba(79,209,197,.5);border-radius:12px;background:rgba(79,209,197,.08)}

.game-wheel-auto-live{border-color:rgba(79,209,197,.42)!important;background:linear-gradient(135deg,rgba(18,54,59,.92),rgba(19,25,48,.92))!important}
.game-wheel-auto-prompt{margin:15px 0;padding:18px;border:1px solid rgba(79,209,197,.45);border-radius:18px;background:linear-gradient(145deg,rgba(21,67,65,.94),rgba(19,29,51,.96))}
.game-wheel-auto-prompt>div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.game-wheel-auto-prompt span{font-size:.75rem;font-weight:900;letter-spacing:.1em;color:#7ff0df}
.game-wheel-auto-prompt strong{font-size:.82rem;padding:5px 9px;border-radius:999px;background:rgba(127,240,223,.12)}
.game-wheel-auto-prompt p{margin:13px 0 0;font-size:1.18rem;line-height:1.55;font-weight:700}

@media (max-width:700px){
  .game-host-mode-grid{grid-template-columns:1fr}
  .game-host-management-head{display:grid}
  .game-host-management-head small{text-align:left}
  .game-host-management-actions{display:grid;grid-template-columns:1fr}
  .game-host-management-actions button,.game-host-transfer{width:100%}
}

/* v0.7.28 reliable host transfer, sound switches, and lower game controls */
.cw-game-home-hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.game-sound-switch{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:7px 11px;border:1px solid #52525e;border-radius:12px;background:#202026;color:#fff;cursor:pointer;user-select:none}
.game-sound-switch input{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.game-sound-switch-track{position:relative;display:inline-flex;align-items:center;width:46px;height:25px;padding:3px;border-radius:999px;background:#52525b;transition:background .16s ease}
.game-sound-switch-track>span{display:block;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.4);transform:translateX(0);transition:transform .16s ease}
.game-sound-switch.is-on,.game-sound-switch:has(input:checked){border-color:#22c55e;background:#12341f;color:#dcfce7}
.game-sound-switch.is-on .game-sound-switch-track,.game-sound-switch:has(input:checked) .game-sound-switch-track{background:#16a34a}
.game-sound-switch.is-on .game-sound-switch-track>span,.game-sound-switch:has(input:checked) .game-sound-switch-track>span{transform:translateX(21px)}
.game-sound-switch input:focus-visible+.game-sound-switch-track{outline:3px solid color-mix(in srgb,var(--cw-live-accent,#7c3aed) 55%,transparent);outline-offset:3px}
.game-sound-switch strong{font-size:.88rem;white-space:nowrap}
.game-lobby-sound-switch{background:#17171d}

.game-room-page{padding-bottom:112px}
.game-room-page .game-room-host-panel{position:fixed;left:50%;bottom:max(10px,env(safe-area-inset-bottom));z-index:120;width:min(980px,calc(100% - 20px));margin:0;transform:translateX(-50%);border-width:2px;background:color-mix(in srgb,var(--cw-live-accent) 18%,#111116);box-shadow:0 18px 50px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.05);backdrop-filter:blur(16px)}
.game-room-page .game-room-host-panel>span::after{content:' · stays visible while you play';font-weight:600;letter-spacing:0;text-transform:none;color:var(--cw-muted)}
.game-room-page .game-room-host-panel>div{max-width:100%}
.game-room-page .game-room-host-panel button,.game-room-page .game-room-host-panel .button{min-height:42px}

.game-host-transfer-notice{display:grid;gap:5px;margin:0 0 16px;padding:15px 16px;border:2px solid #22c55e;border-radius:16px;background:linear-gradient(135deg,#12341f,#17171d 75%);box-shadow:0 0 0 4px rgba(34,197,94,.09)}
.game-host-transfer-notice>span{font-size:.72rem;font-weight:950;letter-spacing:.11em;color:#bbf7d0}
.game-host-transfer-notice>strong{font-size:1.2rem;color:#fff}
.game-host-transfer-notice>p{margin:0;color:#dcfce7}
.game-host-transfer select{min-width:220px}

@media(max-width:760px){
  .cw-game-home-hero-actions{width:100%;justify-content:stretch}
  .cw-game-home-hero-actions .game-sound-switch,.cw-game-home-hero-actions .button{width:100%;justify-content:center}
  .game-room-page{padding-bottom:176px}
  .game-room-page .game-room-host-panel{align-items:stretch;max-height:38vh;padding:10px;overflow:auto}
  .game-room-page .game-room-host-panel>span::after{display:none}
  .game-room-page .game-room-host-panel>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .game-room-page .game-room-host-panel button,.game-room-page .game-room-host-panel .button{width:100%;padding:9px 10px;font-size:.9rem}
  .game-play-header-actions .game-sound-switch{width:100%;justify-content:center}
}
@media(max-width:460px){
  .game-room-page{padding-bottom:230px}
  .game-room-page .game-room-host-panel>div{grid-template-columns:1fr}
}
/* v0.7.29 dedicated live-stage route and clear go-live guidance */
.cw-live-stage-card{border-top-color:#ef4444}
.cw-live-stage-card .button{background:#b91c1c}
.cw-force-stage-view .cw-live-app,.cw-stage-view .cw-live-app{min-height:100vh}
.cw-live-stage.is-offline{display:grid;grid-template-columns:1fr;place-items:stretch;background:radial-gradient(circle at top,#20202a,#09090b 68%)}
.cw-live-offline{width:min(720px,calc(100% - 32px));margin:auto;border:1px solid #34343d;border-radius:22px;background:#15151a}
.cw-live-offline-icon{display:block;font-size:3.2rem;margin-bottom:8px}
.cw-live-offline-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0 10px}
.button.secondary{background:#27272a;border:1px solid #52525b}
.control-help{margin:18px 0;padding:18px;border:1px solid #34343d;border-radius:16px;background:#1b1b21}
.control-help ol{margin:10px 0 0;padding-left:22px;line-height:1.7}
.control-help-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.account-grid article p{overflow-wrap:anywhere}
@media(max-width:760px){.cw-live-offline{width:calc(100% - 16px);padding:24px 16px}.cw-live-offline-actions,.control-help-actions{display:grid}.cw-live-offline-actions .button,.control-help-actions .button{width:100%}}


/* v0.7.31 Cash App support badge */
.cw-cashapp-badge{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:7px 12px 7px 8px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(17,24,39,.86);color:#fff;text-decoration:none;box-shadow:0 8px 20px rgba(0,0,0,.18);vertical-align:middle;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.cw-cashapp-badge:hover,.cw-cashapp-badge:focus-visible{transform:translateY(-1px);border-color:#00d64f;box-shadow:0 10px 24px rgba(0,214,79,.18);color:#fff}
.cw-cashapp-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#00d64f;color:#fff;font-size:1.25rem;font-weight:1000;line-height:1;font-family:Arial,sans-serif;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.cw-cashapp-copy{display:grid;gap:0;line-height:1.05;text-align:left}.cw-cashapp-copy small{font-size:.68rem;color:#cbd5e1;font-weight:700}.cw-cashapp-copy strong{font-size:.93rem;color:#fff;letter-spacing:.01em}
.cw-cashapp-admin-preview{margin-top:12px}.cw-cashapp-topbar{margin-right:2px}.cw-cashapp-domino-room{margin-top:11px;width:max-content}.cw-cashapp-domino-lobby{margin-top:14px;width:max-content}
@media(max-width:720px){.cw-cashapp-badge{min-height:40px;padding:5px 10px 5px 6px;border-radius:12px}.cw-cashapp-mark{width:31px;height:31px;flex-basis:31px;border-radius:8px}.cw-cashapp-copy small{font-size:.64rem}.cw-cashapp-copy strong{font-size:.86rem}.cw-cashapp-topbar{order:20}}

/* v0.7.36 Play the Machine links */
.cw-game-card-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto}.cw-game-card-actions .button{flex:1;min-width:120px;text-align:center}.game-host-mode-card.machine-mode{background:linear-gradient(145deg,rgba(14,116,144,.26),rgba(124,58,237,.2));border-color:rgba(34,211,238,.38)}@media(max-width:560px){.cw-game-card-actions{flex-direction:column}.cw-game-card-actions .button{width:100%}}


/* v0.7.44 universal leave-game controls */
.game-leave-button{background:#7f1d1d!important;border-color:#b91c1c!important;color:#fff!important}
.game-leave-button:hover{background:#991b1b!important}
@media(max-width:760px){.game-play-header-actions .game-leave-button{flex:1 1 100%}}

/* v0.7.45 Games Home admin/settings access */
.cw-admin-settings-link,.cw-admin-settings-hero{white-space:nowrap}
@media(max-width:760px){.cw-admin-settings-link,.cw-admin-settings-hero{width:100%;text-align:center}}

/* v0.7.51 compact mobile live controls and Play the Machine links */
.cw-mobile-menu-toggle,.cw-mobile-reactions-toggle{display:none}
.game-machine-link{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;color:#c4b5fd;text-decoration:none;font-weight:800;font-size:.82rem;border:1px solid rgba(167,139,250,.34);background:rgba(109,40,217,.12)}
.game-machine-link:hover{background:rgba(109,40,217,.22)}
.game-machine-mobile-label{display:none}
@media(max-width:760px){
  .cw-live-topbar{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
  .cw-live-brand{min-width:0}
  .cw-mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;border-radius:999px;white-space:nowrap}
  .cw-live-actions{display:none;grid-column:1/-1;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:4px}
  .cw-live-actions.is-mobile-open{display:grid}
  .cw-mobile-reactions-toggle{position:fixed;right:12px;bottom:12px;z-index:1230;display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:999px;background:#27272a;border:1px solid #52525b;color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.4)}
  .cw-live-soundboard{position:fixed;left:10px;right:10px;bottom:64px;z-index:1220;display:none;max-height:46vh;overflow-y:auto;border:1px solid #3f3f46;border-radius:18px;box-shadow:0 18px 45px rgba(0,0,0,.5)}
  .cw-live-soundboard.is-mobile-open{display:block}
  .cw-sound-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .sound-btn{padding:10px 8px;font-size:.8rem}
  .game-machine-link{padding:5px 8px;font-size:.78rem}
  .game-machine-desktop-label{display:none}
  .game-machine-mobile-label{display:inline}
}
