@layer wg-ft1 {
 /* Calm emerald palette. Red/black roulette outcomes keep their game meanings. */
 html[data-theme=emerald]{--wg-accent:#639f90!important;--wg-accent-hi:#86b9aa!important;--wg-accent-lo:#326458!important;--accent:#639f90!important;--wc-accent:#78b4a4!important}
 html[data-theme=emerald] :is(.mp-nav-item.active,.wg-shell-nav a.active,.pt-tab[aria-selected=true],.wc-tabs button[aria-selected=true]){background:#183b35!important;border-color:#588e80!important;color:#d9eee8!important;box-shadow:inset 3px 0 #739f91!important}
 html[data-theme=emerald] :is(.play,.play-button,.sbar-go,.lrk-play,.wc-primary,.primary,.mp-btn-primary,.game-play,.game-card-play,.hot-play,.sq-widget-actions button:first-child){background:linear-gradient(135deg,#507e70,#3a6158)!important;border-color:#749d8c!important;color:#f1faf6!important;box-shadow:none!important}
 html[data-theme=emerald] :is(.wg-cat-tab,.category-chip,.cat-chip,.catalog-tab,.filter-chip,.filter-btn,.game-category,.mp-cat,.mp-category,.category-pill,.category-btn,.games-filter,.game-filter,.mp-filter,.mp-cat-tab,.mp-category-tab,.mp-filter-btn,.game-categories button,.catalog-filters button){color:#d2e2df!important;border-color:#35514d!important;background:#132b32!important;box-shadow:none!important}
 html[data-theme=emerald] :is(.wg-cat-tab,.category-chip,.cat-chip,.catalog-tab,.filter-chip,.filter-btn,.game-category,.mp-cat,.mp-category,.category-pill,.category-btn,.games-filter,.game-filter,.mp-filter,.mp-cat-tab,.mp-category-tab,.mp-filter-btn,.game-categories button,.catalog-filters button):is(.active,.is-active,[aria-selected=true],[aria-pressed=true]){color:#e2f3ec!important;background:#294a41!important;border-color:#77a594!important;box-shadow:inset 0 0 0 1px #77a59444!important}
 html[data-theme=emerald] :is(.fav-btn,.favorite-btn,.mp-fav,.mp-favorite,.hot-card .play,.hot-card button,.wc-button){background:#23433c!important;color:#d7eee3!important;border-color:#4d776b!important;box-shadow:none!important}
 html[data-theme=emerald] :is(#wind-provider.wp-shell,#wind-provider-dialog.wp-modal){--wp-gold:#aecbbb;--wp-muted:#aebebb;--wp-accent:#6a9e8b;background:#102029!important;border-color:#36504e!important}
 html[data-theme=emerald] #wind-provider :is(.wp-header,.wp-console,.wp-status){background:#13262e!important}
 html[data-theme=emerald] #wind-provider.wp-shell button,html[data-theme=emerald] #wind-provider-dialog.wp-modal button{background:#243a40!important;border-color:#3d5859!important;color:#e1eee9!important;box-shadow:none!important}
 html[data-theme=emerald] #wind-provider.wp-shell .wp-spin,html[data-theme=emerald] #wind-provider-dialog.wp-modal .wp-primary{background:linear-gradient(135deg,#6f9f8c,#486f61)!important;color:#071b15!important;border-color:#90b9a9!important}
 html[data-theme=emerald] #wind-provider.wp-shell .wp-offer-rail button{background:linear-gradient(145deg,#29463e,#142b30)!important;border-color:#719782!important}
 html[data-theme=emerald] #wind-provider .wp-speed-picker button[aria-pressed=true],html[data-theme=emerald] #wind-provider-dialog .wp-filters button[aria-pressed=true]{background:#416353!important;color:#effbf5!important;border-color:#739984!important}
 html[data-theme=emerald] .wp-modal-head{background:#13262e!important}
 html[data-theme=emerald] .wp-option span,html[data-theme=emerald] .wp-guide-section h3{color:#b4d1bf!important}
 /* Floating chat: physical position belongs to the reader, never to the game layout. */
 html body :is(.wg-help-fab,#wp-support-dock):has(.wg-chat-floating){transform:none!important;filter:none!important;contain:none!important}
 html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable]{position:fixed!important;inset:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:min(var(--wg-chat-width,480px),calc(100vw - 16px))!important;height:min(var(--wg-chat-height,680px),calc(100dvh - 24px))!important;max-height:calc(100dvh - 16px)!important;min-height:0!important;z-index:10001!important;box-sizing:border-box!important;box-shadow:0 18px 70px #0008!important;border-radius:18px!important}
 html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable][hidden]{display:none!important}
 #wg-help-panel.wg-chat-floating .wg-help-head{cursor:grab;touch-action:none;user-select:none;gap:8px!important}
 #wg-help-panel.wg-chat-floating .wg-help-head.is-dragging{cursor:grabbing}
 #wg-help-panel.wg-chat-floating .wg-chat-move{display:grid!important;place-items:center;width:28px;min-width:28px;height:32px;cursor:grab;color:#aab4bd;border:0;background:transparent;font-size:25px;padding:0}
 #wg-help-panel .wg-chat-reset{font:20px/1 system-ui;cursor:pointer}
 html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] .wg-help-head{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;flex-wrap:nowrap!important;padding:12px!important}
 html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] .wg-help-head::before,html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] .wg-help-head::after{display:none!important}
 html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] .wg-help-tabs{display:none!important}
 html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] #wg-help-title{display:block!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;font-size:16px!important;margin:0!important}
 html.gs-help-docked:has(.wg-chat-floating){--gs-drawer:0px!important}
 @media(max-width:600px){html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable]{height:min(580px,calc(85dvh - 16px))!important;border-radius:16px!important}#wg-help-panel.wg-chat-floating .wg-help-head{padding:10px!important}#wg-help-panel .wg-help-tools{gap:4px!important}#wg-help-panel .wg-help-tools>*{width:31px!important;min-width:31px!important;height:32px!important}}
 /* Full-sized roulette scene, independent from the table's min-content sizing. */
 html.wg-game-screen body.g3p-roulette .lrk{grid-template-columns:minmax(0,1fr) minmax(270px,320px)!important}
 html.wg-game-screen body.g3p-roulette .lrk-stage.lrk-card{display:grid!important;grid-template-rows:auto minmax(220px,1fr) auto auto auto!important;gap:5px!important;min-height:0!important}
 html.wg-game-screen body.g3p-roulette .lrk-scene-skin{position:relative!important;flex:none!important;min-height:220px!important;height:100%!important;overflow:hidden!important}
 html.wg-game-screen body.g3p-roulette .lrk-stage #lv-stage{position:relative!important;inset:auto!important;height:100%!important;width:100%!important;display:block!important;min-height:240px!important}
 html.wg-game-screen body.g3p-roulette .lrk-caption{padding:6px 10px!important}
 html.wg-game-screen body.g3p-roulette .lrk-rtable{min-height:0!important;overflow:auto!important;margin-top:0!important}
 html.wg-game-screen body.g3p-roulette .lrk-next{position:absolute!important;inset:auto 12px 12px auto!important;width:auto!important;height:auto!important;min-width:110px!important;padding:9px 13px!important;border:1px solid #b69b6355!important;background:#11141ee8!important;border-radius:12px!important;transform:none!important;box-shadow:none!important;backdrop-filter:none!important}
 html.wg-game-screen body.g3p-roulette .lrk-next b{font-size:24px!important;line-height:1!important;text-shadow:none!important}
 html.wg-game-screen body.g3p-roulette .lrk-next small{font-size:10px!important;letter-spacing:0!important}
 @media(max-width:780px){html.wg-game-screen body.g3p-roulette .gs-main{overflow:auto!important}html.wg-game-screen body.g3p-roulette .lrk{display:flex!important;flex-direction:column!important;max-height:none!important;overflow:visible!important;flex:none!important}html.wg-game-screen body.g3p-roulette .lrk-stage.lrk-card{height:auto!important;overflow:visible!important;grid-template-rows:auto 230px auto auto auto!important}html.wg-game-screen body.g3p-roulette .lrk-side{max-height:none!important;overflow:visible!important}html.wg-game-screen body.g3p-roulette .lrk-scene-skin{min-height:230px!important}html.wg-game-screen body.g3p-roulette .lrk-rtable{overflow-x:auto!important}}
 /* Duels: a compact create card, open challenges and history each get their own space. */
 html.wg-game-screen body:has(#open-list) .gs-main{display:grid!important;grid-template-columns:minmax(250px,.8fr) minmax(0,1.5fr)!important;grid-template-rows:auto minmax(250px,1fr) auto!important;gap:14px!important;overflow:auto!important;align-content:start!important}
 html.wg-game-screen body:has(#open-list) .gs-main>.hero{grid-column:1/-1!important;display:block!important;min-height:0!important;padding:0!important;margin:0!important}
 html.wg-game-screen body:has(#open-list) .hero img,html.wg-game-screen body:has(#open-list) .hero p,html.wg-game-screen body:has(#open-list) .hero .eyebrow{display:none!important}
 html.wg-game-screen body:has(#open-list) .hero h1{font-size:22px!important;margin:0!important}
 html.wg-game-screen body:has(#open-list) .columns{display:contents!important}
 html.wg-game-screen body:has(#open-list) .panel.create{grid-column:1!important;grid-row:2/4!important}
 html.wg-game-screen body:has(#open-list) .panel:has(#open-list){grid-column:2!important;grid-row:2!important}
 html.wg-game-screen body:has(#open-list) .panel.own{grid-column:2!important;grid-row:3!important;max-height:300px!important;overflow:auto!important}
 html.wg-game-screen body:has(#open-list) .panel{padding:18px!important;border-radius:16px!important;min-height:0!important}
 html.wg-game-screen body:has(#open-list) .panel.create>.hint{font-size:12px!important;line-height:1.5!important}
 html.wg-game-screen body:has(#open-list) .stakes{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
 html.wg-game-screen body:has(#open-list) .stakes button{min-width:48px!important;flex:1!important;padding:11px 6px!important}
 html.wg-game-screen body:has(#open-list) #create{min-height:46px!important;width:100%!important}
 html.wg-game-screen body:has(#open-list) .rules{grid-column:1/-1!important}
 html.wg-game-screen body:has(#open-list) .cards{gap:10px!important}.gs-main #mine-list .card{padding:14px!important}
 html.wg-game-screen body:has(#open-list) .gs-main{grid-template-rows:auto 350px minmax(200px,auto) auto!important}
 html.wg-game-screen body:has(#open-list) .panel.create{grid-row:2!important;grid-column:1!important;overflow:auto!important}
 html.wg-game-screen body:has(#open-list) .panel.create:has(.sbar)>.stakes{display:none!important}
 html.wg-game-screen body:has(#open-list) .wgdf-panel{grid-row:2!important;grid-column:2!important;margin:0!important;min-height:0!important;max-height:350px!important;overflow:hidden!important;border-radius:16px!important}
 html.wg-game-screen body:has(#open-list) .wgdf-arena{height:300px!important;min-height:0!important}
 html.wg-game-screen body:has(#open-list) .panel:has(#open-list){grid-row:3!important;grid-column:1!important;max-height:275px!important;overflow:auto!important}
 html.wg-game-screen body:has(#open-list) .panel.own{grid-row:3!important;grid-column:2!important;max-height:275px!important;overflow:auto!important}
 html[data-theme=emerald] :is(.wg-cat-tab,.stakes button,.sbar-chip,.sbar-presets button,.wg-help-tabs button,.action.cta,.wgt-account,.mp-auth-button,.auth-button){background:#1a3036!important;color:#d9e9e4!important;border-color:#395b58!important;box-shadow:none!important}
 html[data-theme=emerald] :is(.wg-cat-tab,.stakes button,.sbar-chip,.sbar-presets button,.wg-help-tabs button):is(.is-active,.selected,[aria-pressed=true],[aria-selected=true]){background:#294a41!important;color:#e2f3ec!important;border-color:#77a594!important;box-shadow:inset 0 0 0 1px #77a59444!important}
 @media(max-width:780px){html.wg-game-screen body:has(#open-list) .gs-main{display:flex!important;flex-direction:column!important;overflow:auto!important}html.wg-game-screen body:has(#open-list) .columns{display:flex!important;flex-direction:column!important;gap:12px!important}html.wg-game-screen body:has(#open-list) .panel.own{max-height:none!important}html.wg-game-screen body:has(#open-list) .panel.create{max-height:none!important}}
 @media(prefers-reduced-motion:reduce){#wind-provider *,#wind-provider-dialog *{scroll-behavior:auto!important;transition:none!important}}
}

@layer wg-ft1 {html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] .wg-chat-move{grid-column:1!important;grid-row:1!important}html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] #wg-help-title{grid-column:2!important;grid-row:1!important}html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-chat-floating[data-movable] .wg-help-tools{grid-column:3!important;grid-row:1!important}} 
