/* Wheel operator surface — scoped, no changes to other game workspaces. */
.wop-shell{--wo-ink:#233644;--wo-muted:#617182;--wo-line:#dce4eb;--wo-accent:#ae8740;gap:18px;max-width:1440px;font-size:15px;line-height:1.5;color:var(--wo-ink)}
.wop-shell *{box-sizing:border-box}.wop-shell :is(button,input,select),.wop-sheet :is(button,input,select){font:inherit;min-height:44px;border:1px solid #d4dee8;border-radius:9px;background:#fff;color:#233644;padding:10px 14px;max-width:100%}.wop-shell button,.wop-sheet button{cursor:pointer;font-weight:600}.wop-shell button:disabled,.wop-sheet button:disabled{cursor:not-allowed;opacity:.5}.wop-shell :is(button,input,select,a,summary):focus-visible,.wop-sheet :is(button,input,select,a,summary):focus-visible{outline:3px solid #ae8740;outline-offset:3px}.wop-shell button:hover:not(:disabled),.wop-sheet button:hover:not(:disabled){border-color:#ad8741;background:#faf8f3}.wop-shell button.primary{background:#192d39;color:#f3ddb0;border-color:#192d39}.wop-shell :is(h2,h3,p){margin:0}.wop-header{display:flex;align-items:center;gap:24px;min-width:0;flex-wrap:wrap;padding:0 0 4px}.wop-title{display:flex;align-items:center;gap:8px}.wop-title h2{font-size:25px;line-height:1.3;font-weight:700}.wop-shell .wop-back{border:0;padding:8px;min-width:44px;background:transparent;font-size:22px}.wop-context{display:flex;align-items:center;gap:10px;flex:1;min-width:200px}.wop-context label{display:flex;align-items:center;gap:8px;min-width:0}.wop-context label>span{font-size:14px;color:var(--wo-muted);white-space:nowrap}.wop-context select{width:240px;max-width:30vw;text-overflow:ellipsis}.wop-online,.wop-enabled{font-size:14px;white-space:nowrap;color:#29755c}.wop-online:before,.wop-enabled:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:middle}.wop-shell .is-warning{color:#936326}.wop-header-actions{display:flex;gap:8px}.wop-shell .gw-tabs{display:flex;align-items:center;background:transparent;border:0;border-bottom:1px solid var(--wo-line);border-radius:0;padding:0;gap:24px;width:100%;margin:0}.wop-shell .gw-tabs button{border:0;border-radius:0;padding:10px 2px 13px;min-height:48px;background:transparent;color:var(--wo-muted);font-size:15px}.wop-shell .gw-tabs button.is-active{background:transparent;border-bottom:3px solid #ae8740;color:#192d39}.wop-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:24px;align-items:start}.wop-draw{background:#fff;border:1px solid var(--wo-line);border-radius:14px;padding:24px 28px;min-width:0}.wop-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.wop-section-head h3{font-size:18px;font-weight:700}.wop-section-head>button{border:0;padding:6px 0;min-height:44px;color:var(--wo-muted)}.wop-name{display:flex;align-items:center;gap:22px;margin-bottom:24px}.wop-name>span{white-space:nowrap;font-size:15px}.wop-name small{font-size:14px;font-weight:400;color:var(--wo-muted);margin-left:6px}.wop-name input{flex:1;min-width:0;max-width:440px;font-weight:400}.wop-name input::placeholder{color:#768594}.wop-conditions{border:0;padding:0;margin:0 0 24px;min-width:0}.wop-conditions legend{font-weight:600;margin-bottom:12px;padding:0;font-size:15px}.wop-condition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wop-shell .wop-condition{display:flex;flex-direction:column;gap:16px;justify-content:space-between;align-items:stretch;padding:14px;text-align:left;min-height:106px;background:#fbfcfd;border-color:#dde4ea;transition:background .15s,border-color .15s;min-width:0}.wop-condition-title{display:flex;align-items:flex-start;justify-content:space-between;gap:5px;min-width:0}.wop-condition-title b{font-size:16px;font-weight:600;overflow-wrap:anywhere}.wop-condition-title i{font-style:normal;color:#936b25;width:18px;flex-shrink:0;text-align:right}.wop-condition-meta{font-weight:400;color:var(--wo-muted);display:flex;flex-direction:column;gap:3px;font-size:14px}.wop-condition-meta strong{font-size:17px;font-weight:600;color:#233644}.wop-shell .wop-condition[aria-pressed=true]{border:2px solid #ad8741;padding:13px;background:#faf7ef}.wop-mode-row{display:flex;align-items:center;gap:22px;justify-content:space-between;margin:0 0 20px;font-size:15px}.wop-modes{display:flex;gap:0;padding:3px;border-radius:9px;background:#edf1f4}.wop-shell .wop-modes button{border:0;min-width:132px;background:transparent;color:var(--wo-muted);min-height:44px;padding:7px 14px}.wop-shell .wop-modes button[aria-pressed=true]{background:#fff;color:#233644;box-shadow:0 1px 3px #1b2d3b12}.wop-action{display:flex;flex-direction:column;gap:8px;padding:0 0 24px}.wop-action>span{font-size:14px;color:var(--wo-muted);line-height:1.5;min-height:21px;overflow-wrap:anywhere}.wop-action button{width:100%;height:54px;font-size:18px;letter-spacing:1px}.wop-result{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--wo-line);padding-top:20px;min-height:92px}.wop-result>div{min-width:0}.wop-result span{font-size:14px;color:var(--wo-muted);display:block;margin-bottom:5px}.wop-result strong{display:block;font-size:25px;line-height:1.3;color:#936b25;overflow-wrap:anywhere}.wop-result strong.wop-result-placeholder{font-size:16px;color:#617182;font-weight:400}.wop-result p{font-size:14px;overflow-wrap:anywhere;margin-top:3px}.wop-result>button,.wop-draw-footer>button{border:0;color:var(--wo-muted);background:transparent;padding:8px 0;white-space:nowrap}.wop-draw-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:var(--wo-muted);padding-top:8px}.wop-draw-footer b{font-weight:600;color:#233644}.wop-inspector{min-width:0;display:grid;gap:20px}.wop-timing,.wop-television{background:#fff;border:1px solid var(--wo-line);border-radius:14px;padding:20px;min-width:0}.wop-timing .gw-clock{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;border:0;background:transparent;padding:0;border-radius:0;box-shadow:none;margin:0}.wop-timing .gw-clock-identity{display:flex;justify-content:space-between;gap:8px;align-items:center}.wop-timing .gw-clock-identity strong{font-size:17px}.wop-timing .gw-clock-identity small{font-size:14px;color:var(--wo-muted)}.wop-timing .gw-clock-time{font-size:48px;line-height:1.2;letter-spacing:-1.5px;font-weight:650;font-variant-numeric:tabular-nums;margin:4px 0}.wop-timing .gw-clock-data{display:flex;gap:10px;flex-wrap:wrap;font-size:14px}.wop-timing .gw-clock-data div:first-child{display:block}.wop-timing .gw-clock-data b{font-weight:500}.wop-timing .gw-clock-data div:last-child:before{content:attr(data-level);font-weight:500}.wop-timing .gw-clock-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 0}.wop-timing .gw-clock-actions>button{flex:1;padding:8px;white-space:nowrap}.wop-timing .gw-clock-actions>button[data-action=previous]{display:none}.wop-timing .gw-clock-actions>details{position:relative;flex-shrink:0}.wop-timing summary{min-height:44px;padding:10px 8px;cursor:pointer;list-style:none;font-size:14px}.wop-timing .gw-clock-actions details>div{position:absolute;right:0;top:44px;z-index:5;width:210px;background:#fff;border:1px solid var(--wo-line);padding:12px;border-radius:10px;box-shadow:0 8px 24px #132a391a;display:grid;gap:8px}.wop-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0 16px;padding-top:18px;border-top:1px solid var(--wo-line)}.wop-stats>div{min-width:0}.wop-stats dt{font-size:14px;color:var(--wo-muted);margin-bottom:4px}.wop-stats dd{font-size:22px;font-weight:600;margin:0;overflow-wrap:anywhere;line-height:1.3;font-variant-numeric:tabular-nums}.wop-timing>button{width:100%;font-size:14px}.wop-structure{border-top:1px solid var(--wo-line);margin-top:18px;padding-top:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}.wop-structure span{font-size:14px;color:var(--wo-muted)}.wop-structure b{font-size:14px;font-weight:500;grid-column:1;overflow-wrap:anywhere}.wop-structure button{grid-column:2;grid-row:1/3;border:0;background:transparent;font-size:14px;padding:6px 0;white-space:nowrap}.wop-television .wop-section-head{margin:0 0 12px}.wop-television h3{font-size:16px}.wop-tv-lines{display:grid;gap:12px;max-height:180px;overflow:auto}.wop-tv-lines>div{display:flex;gap:8px;align-items:flex-start;min-width:0}.wop-tv-lines b{font-size:15px;display:block;font-weight:500;overflow-wrap:anywhere}.wop-tv-lines small{font-size:14px;color:var(--wo-muted);display:block}.wop-tv-dot{width:7px;height:7px;background:#a5aeb8;border-radius:50%;margin-top:9px;flex-shrink:0}.wop-tv-dot.is-online{background:#398568}.wop-television>button{width:100%;margin-top:16px;font-size:14px}.wop-shell .wop-tv-warning{font-size:14px;color:#8b6228;margin-top:12px;line-height:1.5}.wop-shell>.gc-feedback{margin:0;font-size:14px}.wop-sheet{border:0;padding:0;margin:0 0 0 auto;max-width:min(680px,100vw);width:680px;max-height:100%;height:100%;color:#233644;font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;box-shadow:-12px 0 32px #0b223029}.wop-sheet::backdrop{background:#10253466}.wop-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #dce4eb;position:sticky;top:0;background:#fff;z-index:1;gap:12px}.wop-sheet-header h3{font-size:20px;margin:0}.wop-sheet-header button{border:0;background:#f1f4f6}.wop-sheet-body{padding:24px;overflow-wrap:anywhere}.wop-sheet-body>p{font-size:15px;line-height:1.8}.wop-sheet-body :is(.gt-panel,.gc-panel){border:0;padding:0;box-shadow:none;border-radius:0}.wop-sheet .gt-summary{padding:0 0 20px}.wop-sheet .gt-summary>button{display:none}.wop-sheet .gt-summary dl{gap:16px}.wop-sheet .gt-summary dd{font-size:22px}.wop-sheet .gt-summary dt{font-size:14px}.wop-sheet .gt-adjust,.wop-sheet .gt-structure{padding:20px 0}.wop-sheet[data-panel=stats] .gt-structure,.wop-sheet[data-panel=structure] .gt-panel:not(.gt-structure){display:none}.wop-sheet .gt-label,.wop-sheet .gt-field>span,.wop-sheet .gt-help{font-size:14px}.wop-sheet .gt-edit-fields{grid-template-columns:1fr 1fr}.wop-sheet .gt-edit-fields>label:last-child{grid-column:1/-1}.wop-sheet .gt-buyin .gt-field{flex:1}.wop-sheet .gt-buyin .gt-field input{width:100%}.wop-sheet .gt-section-title p{display:none}.wop-sheet .gt-section-title small{font-size:14px}.wop-sheet .gt-quick{gap:10px}.wop-sheet .gt-quick button{flex:1 1 44%}.wop-sheet .gt-template-choice{align-items:stretch;flex-direction:column}.wop-sheet .gt-table{max-width:100%}.wop-sheet .gt-table table{min-width:380px}.wop-more-list{display:grid;gap:12px}.wop-more-list>button{text-align:left;width:100%;font-size:15px}.wop-more-list>button.danger{margin-top:16px;border-color:#e1b9b5;color:#ac3e34}.wop-more-list details{font-size:14px;line-height:1.8}.wop-more-list summary{min-height:44px;cursor:pointer;padding:10px 0}.wop-more-list p{color:#617182}.wop-sheet .gc-device{width:100%;margin:10px 0}.wop-sheet .gc-feedback{margin:14px 0 0;font-size:14px}.wop-sheet .gc-feedback:empty{display:none}.wop-sheet[data-panel=structure] .gt-help{font-size:14px}.wop-shell .wop-action button:not(:disabled):active{background:#294454}.wop-page-empty{padding:36px 20px;border:1px dashed #cdd7e1;border-radius:12px;background:#fff;line-height:2}
@media(min-width:1500px){.wop-condition-meta{flex-direction:row;justify-content:space-between}.wop-draw{padding:28px 32px}.wop-condition{min-height:120px}}
@media(max-width:1100px){.wop-header{gap:12px}.wop-context select{max-width:24vw}.wop-layout{gap:16px;grid-template-columns:minmax(0,1.7fr) minmax(285px,1fr)}.wop-draw{padding:20px}.wop-condition-grid{gap:8px}.wop-shell .wop-condition{padding:12px}.wop-shell .wop-condition[aria-pressed=true]{padding:11px}.wop-name{gap:12px}.wop-context{min-width:150px}}
@media(max-width:900px){.wop-layout{grid-template-columns:1fr}.wop-inspector{grid-template-columns:1fr 1fr;align-items:start}.wop-header{gap:12px}.wop-context{order:3;flex-basis:100%;min-width:0}.wop-context label{flex:1}.wop-context select{max-width:100%;width:100%;flex:1;min-width:0}.wop-header-actions{margin-left:auto}.wop-timing .gw-clock-time{font-size:42px}.wop-condition-meta{flex-direction:row;justify-content:space-between}.wop-shell .wop-condition{min-height:108px}.wop-header-actions button{padding:8px 10px}}
@media(max-width:600px){.wop-shell{gap:14px;padding-bottom:108px}.wop-title{gap:2px}.wop-title h2{font-size:21px}.wop-header{gap:10px}.wop-context{gap:10px}.wop-context select{font-size:16px}.wop-header-actions{gap:4px}.wop-header-actions button{font-size:14px;padding:8px}.wop-shell .wop-back{padding:4px;min-width:44px}.wop-shell .gw-tabs{gap:24px}.wop-shell .gw-tabs button{font-size:15px}.wop-draw{padding:18px 16px;border-radius:12px}.wop-section-head{margin-bottom:18px}.wop-name{display:block;margin-bottom:20px}.wop-name>span{display:block;margin-bottom:8px}.wop-name input{width:100%;max-width:100%;font-size:16px;min-height:46px}.wop-condition-grid{grid-template-columns:1fr 1fr;gap:10px}.wop-condition-title b{font-size:16px}.wop-condition-meta{flex-direction:column;gap:4px;font-size:14px}.wop-conditions{margin-bottom:20px}.wop-shell .wop-condition{min-height:112px;padding:12px}.wop-shell .wop-condition[aria-pressed=true]{padding:11px}.wop-mode-row{align-items:stretch;flex-direction:column;gap:8px}.wop-modes button{flex:1;min-width:0}.wop-action{position:fixed;bottom:0;left:0;right:0;z-index:35;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce4eb;box-shadow:0 -5px 18px #172c3808;gap:6px}.wop-action>span{font-size:14px;min-height:21px;max-height:42px;overflow:auto}.wop-action button{height:50px;font-size:17px}.wop-inspector{grid-template-columns:1fr;gap:16px}.wop-result{margin-top:8px}.wop-result strong{font-size:24px}.wop-timing,.wop-television{padding:18px 16px}.wop-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.wop-sheet{max-width:100vw;width:100vw;height:100%;max-height:100dvh}.wop-sheet-header{padding:14px 16px}.wop-sheet-body{padding:18px 16px calc(24px + env(safe-area-inset-bottom))}.wop-sheet input,.wop-sheet select{font-size:16px}.wop-sheet .gt-summary dl{grid-template-columns:1fr 1fr}.wop-sheet .gt-summary dl>div{padding-left:0;border:0}.wop-sheet .gt-buyin>div:first-child,.wop-sheet .gt-buyin>.gt-field{width:100%;flex-basis:100%}.wop-sheet .gt-buyin>button{width:100%}.wop-sheet .gt-edit{padding:14px}.wop-sheet .gt-edit-fields{gap:10px}.wop-sheet .gt-section-title h3{font-size:17px}.wop-sheet .gt-table{overflow:auto}.wop-sheet a{font-size:14px}.wop-more-list>button{min-height:48px}}
@media(prefers-reduced-motion:reduce){.wop-shell *,.wop-sheet *{transition:none!important;scroll-behavior:auto!important}}

body.wop-sheet-open{overflow:hidden}.wop-config-help{margin:8px 0 16px;font-size:14px;line-height:1.7}.wop-config-help summary{cursor:pointer;min-height:44px;padding:10px 0;color:#617182}.wop-shell .gc-config-warning{font-size:14px}

.wop-action [data-wop-error]{font-size:14px;color:#a23329;margin:0;line-height:1.5}.wop-action [hidden]{display:none!important}.wop-timer-pending{display:grid;gap:8px;color:#986429;font-size:14px;margin-top:12px}.wop-shell .gc-layout{min-width:0}.wop-shell .gc-form{min-width:0}

/* Enable is available beside the disabled state; stopping remains in More. */
.wop-shell button.wop-enable{min-height:44px;padding:9px 14px;border:1px solid #b28a43;background:#faf6ec;color:#80591c;font-size:14px;white-space:nowrap}
.wop-shell button.wop-enable:before{display:none}
.wop-shell button.wop-enable:hover:not(:disabled){background:#f3e9d2;border-color:#936b25}

/* Center game workspace settings on desktop and mobile. */
.wop-sheet{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(860px,calc(100vw - 48px));max-width:860px;height:fit-content;max-height:calc(100dvh - 64px);border:1px solid #dce4eb;border-radius:16px;overflow:hidden;box-shadow:0 24px 64px #0b223033}
.wop-sheet[open]{display:flex;flex-direction:column}
.wop-sheet .wop-sheet-header{position:relative;flex-shrink:0}
.wop-sheet .wop-sheet-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:600px){.wop-sheet{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);border-radius:12px}}

/* SaaS member and coupon controls. */
.wheel-saas-member{padding:20px;border:1px solid #dce4ed;border-radius:14px;background:#f7f9fc;margin:20px 0}.wheel-saas-head,.wheel-saas-search,.wheel-saas-links{display:flex;gap:12px;align-items:center;justify-content:space-between}.wheel-saas-head small{color:#64748b}.wheel-saas-search{margin:16px 0}.wheel-saas-search input{min-width:0;flex:1}.wheel-saas-member input,.wheel-saas-member select,.wheel-saas-bindings input,.wheel-saas-bindings select{width:100%;min-height:44px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#1e293b;font:inherit;box-sizing:border-box}.wheel-saas-links{justify-content:flex-start;flex-wrap:wrap;margin-top:12px}.wheel-saas-member .gc-field{display:grid;gap:8px}.wheel-saas-bindings{display:grid;gap:12px;margin:18px 0}.wheel-saas-bindings section{padding:16px;border:1px solid #dce4ed;border-radius:12px;display:grid;gap:12px}.wheel-saas-bindings label{display:grid;gap:6px}.wheel-saas-record,.wheel-saas-coupon{padding:20px;background:white;border:1px solid #dce4ed;border-radius:12px;margin:12px 0;display:grid;gap:8px;overflow-wrap:anywhere}.wheel-saas-record>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.wheel-saas-record small,.wheel-saas-coupon small{display:block;color:#64748b}.wheel-saas-record p{margin:0}.wheel-saas-record button{justify-self:start}.wheel-saas-member [role=alert]{color:#b45309}.wheel-saas-record [role=status]{color:#b45309}@media(max-width:600px){.wheel-saas-head{align-items:flex-start;flex-direction:column;gap:5px}.wheel-saas-member{padding:14px}.wheel-saas-bindings section{padding:12px}}
