.muze-widget-studio{margin:12px 0 20px}
.muze-widget-zone-guide{display:none}
.muze-profile.is-edit-mode .muze-widget-zone-guide{display:flex;gap:8px}
.muze-widget-zone-guide span,.muze-widget-zone-choice button{border:1px solid color-mix(in srgb,var(--muze-profile-accent) 38%,transparent);border-radius:999px;padding:7px 12px}
.muze-widget-zone-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.muze-widget-zone-choice button[aria-pressed=true]{background:linear-gradient(135deg,var(--muze-profile-accent),var(--muze-profile-accent-2));border-color:transparent;color:#fff}
.muze-widget-grid--left,.muze-widget-grid--middle{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px;width:100%}
.muze-widget-grid--left{margin:0 0 14px}
.muze-widget-grid--middle{margin:0 0 16px}
.muze-widget-grid--left .muze-profile-widget,.muze-widget-grid--middle .muze-profile-widget{grid-column:1/-1!important;width:100%;min-width:0}
.muze-widget-zone-add{display:none;width:100%;min-height:44px;border:1px dashed color-mix(in srgb,var(--muze-profile-accent) 55%,transparent)!important;border-radius:16px!important;background:color-mix(in srgb,var(--muze-profile-accent) 8%,transparent)!important;color:inherit!important}
.muze-profile.is-edit-mode .muze-widget-zone-add{display:block}
.muze-profile-widget__controls{z-index:12}

.muze-profile-chess{--chess-light:#ead9bd;--chess-dark:#69506f;--chess-ink:#130f18}
.muze-chess-empty{display:grid;gap:12px;text-align:left}
.muze-chess-empty__piece{align-items:center;background:linear-gradient(145deg,var(--muze-profile-accent),var(--muze-profile-accent-2));border-radius:18px;box-shadow:0 10px 26px color-mix(in srgb,var(--muze-profile-accent) 30%,transparent);color:#fff;display:flex;font-size:2.1rem;height:58px;justify-content:center;width:58px}
.muze-chess-empty strong{color:#fff;font-size:1.08rem}
.muze-chess-empty p{color:var(--muze-profile-muted,rgba(255,255,255,.68));line-height:1.45;margin:4px 0}
.muze-chess-empty label{display:grid;gap:6px;font-size:.75rem;font-weight:800}
.muze-chess-empty select{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:12px;color:inherit;min-height:42px;padding:8px 11px}
.muze-chess__match{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:9px}
.muze-chess__match>div:first-child{display:grid;gap:2px;min-width:0}
.muze-chess__match span{color:var(--muze-profile-accent);font-size:.62rem;font-weight:950;letter-spacing:.13em}
.muze-chess__match strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.muze-chess__match strong i{color:rgba(255,255,255,.44);font-style:normal;font-weight:600}
.muze-chess__window-actions{display:flex;gap:5px}
.muze-chess__window-actions button{min-height:34px!important;padding:6px 10px!important}
.muze-chess__invitation,.muze-chess__result,.muze-chess__offer{border:1px solid color-mix(in srgb,var(--muze-profile-accent) 32%,transparent);border-radius:15px;background:linear-gradient(135deg,color-mix(in srgb,var(--muze-profile-accent) 12%,transparent),rgba(255,255,255,.03));padding:13px}
.muze-chess__invitation p,.muze-chess__result p{color:rgba(255,255,255,.66);margin:4px 0 10px}
.muze-chess__result{align-items:center;display:grid;grid-template-columns:auto 1fr auto;gap:10px}
.muze-chess__result>span{font-size:2rem}
.muze-chess__board-shell{margin:10px auto;max-width:680px}
.muze-game-board--chess{aspect-ratio:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));overflow:hidden;border:4px solid color-mix(in srgb,var(--muze-profile-accent) 32%,#1b1520);border-radius:13px;box-shadow:0 18px 38px rgba(0,0,0,.32);width:100%}
.muze-game-board--chess button{align-items:center;aspect-ratio:1;background:var(--chess-light)!important;border:0!important;border-radius:0!important;color:var(--chess-ink)!important;display:flex;justify-content:center;min-height:0!important;padding:0!important;position:relative}
.muze-game-board--chess button:nth-child(16n+1),.muze-game-board--chess button:nth-child(16n+3),.muze-game-board--chess button:nth-child(16n+5),.muze-game-board--chess button:nth-child(16n+7),.muze-game-board--chess button:nth-child(16n+10),.muze-game-board--chess button:nth-child(16n+12),.muze-game-board--chess button:nth-child(16n+14),.muze-game-board--chess button:nth-child(16n+16){background:var(--chess-dark)!important}
.muze-game-board--chess button>span{font-family:"Segoe UI Symbol","Noto Sans Symbols 2",serif;font-size:clamp(1.35rem,5.3vw,3.5rem);filter:drop-shadow(0 2px 1px rgba(0,0,0,.35));line-height:1}
.muze-game-board--chess button i{bottom:2px;font:700 clamp(.35rem,.8vw,.55rem)/1 system-ui;opacity:.5;position:absolute;right:3px}
.muze-game-board--chess button.is-selected{box-shadow:inset 0 0 0 4px #29e0ff!important;z-index:2}
.muze-chess__controls{display:flex;flex-wrap:wrap;gap:7px}
.muze-chess__controls .is-danger{color:#ff9ab6!important}
.muze-chess__offer{align-items:center;display:flex;gap:10px;justify-content:space-between;margin-top:9px}
.muze-chess__save-note{align-items:center;color:rgba(255,255,255,.55);display:flex;font-size:.69rem;gap:6px;margin:10px 0 0}
.muze-chess__save-note span{color:#23dca9}
.muze-profile-chess.is-expanded{background:linear-gradient(160deg,#19151f,#0b0910);border:1px solid color-mix(in srgb,var(--muze-profile-accent) 40%,transparent);border-radius:22px;box-shadow:0 30px 100px rgba(0,0,0,.72);inset:4vh max(380px,calc((100vw - 1180px)/2)) 4vh max(18px,calc((100vw - 1180px)/2));overflow:auto;padding:20px;position:fixed;z-index:100050}
.muze-chess-modal-open{overflow:hidden}
.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(70vh,720px)}

@media(max-width:1180px){.muze-profile-chess.is-expanded{inset:3vh 18px 52vh}
.muze-game-board--chess button>span{font-size:clamp(1.2rem,8vw,3rem)}
}
@media(max-width:620px){.muze-profile-chess.is-expanded{border-radius:18px;inset:8px 8px 51vh;padding:12px}
.muze-chess__match{align-items:flex-start;flex-direction:column}
.muze-chess__window-actions{width:100%}
.muze-chess__window-actions button{flex:1}
.muze-chess__result{grid-template-columns:auto 1fr}
.muze-chess__result button{grid-column:1/-1}
.muze-chess__controls button{flex:1}
.muze-chess__offer{align-items:stretch;flex-direction:column}
.muze-game-board--chess{border-width:3px}
}

.muze-game-board--chess button.is-legal::after{background:#1fe0a8;border:2px solid rgba(0,0,0,.25);border-radius:50%;content:"";height:22%;position:absolute;width:22%;z-index:2}
.muze-game-board--chess button.is-legal:not(:empty)::after{background:transparent;inset:4px;border:3px solid #1fe0a8;border-radius:4px;height:auto;width:auto}


/* Premium board and piece treatment. The profile accent still supplies the glow. */
.muze-profile-chess{--chess-light:#e8d9c2;--chess-light-2:#cfb994;--chess-dark:#4a304f;--chess-dark-2:#2b1d35;--chess-gold:#ffd98a;--chess-move:#42e8c4;--chess-check:#ff426d}

.muze-chess__board-frame{background:linear-gradient(145deg,#100c15,#302139 52%,#0a080d);border:1px solid color-mix(in srgb,var(--muze-profile-accent) 38%,#6e5779);border-radius:20px;box-shadow:0 24px 55px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.11);padding:clamp(7px,1.5vw,13px);position:relative}

.muze-chess__board-frame::before{background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--muze-profile-accent) 85%,#fff),transparent);content:"";height:1px;left:14%;opacity:.8;position:absolute;right:14%;top:3px}

.muze-game-board--chess{border:1px solid rgba(255,255,255,.13);border-radius:11px;box-shadow:0 15px 32px rgba(0,0,0,.44),inset 0 0 0 1px rgba(0,0,0,.45);isolation:isolate}

.muze-game-board--chess button{background:linear-gradient(145deg,var(--chess-light),var(--chess-light-2))!important;box-shadow:inset 0 0 0 1px rgba(60,34,55,.07)!important;cursor:pointer;overflow:hidden;transition:filter .14s ease,transform .14s ease}

.muze-game-board--chess button:nth-child(16n+1),.muze-game-board--chess button:nth-child(16n+3),.muze-game-board--chess button:nth-child(16n+5),.muze-game-board--chess button:nth-child(16n+7),.muze-game-board--chess button:nth-child(16n+10),.muze-game-board--chess button:nth-child(16n+12),.muze-game-board--chess button:nth-child(16n+14),.muze-game-board--chess button:nth-child(16n+16){background:linear-gradient(145deg,var(--chess-dark),var(--chess-dark-2))!important}

.muze-game-board--chess button:not(:disabled):hover{filter:brightness(1.1);z-index:3}
.muze-game-board--chess button:not(:disabled):active>span{transform:translateY(1px) scale(.96)}

.muze-game-board--chess button>span{font-family:"Segoe UI Symbol","Noto Sans Symbols 2","Arial Unicode MS",serif;font-size:clamp(1.45rem,5.5vw,3.8rem);font-weight:400;line-height:.9;position:relative;transition:filter .16s ease,transform .16s ease;z-index:2}

.muze-game-board--chess .is-white-piece>span{color:#fff5d9;filter:drop-shadow(0 1px 0 #fff) drop-shadow(0 3px 2px rgba(38,17,39,.65));-webkit-text-stroke:clamp(.45px,.1vw,1.1px) #7a5424;text-shadow:0 0 9px rgba(255,231,174,.24)}

.muze-game-board--chess .is-black-piece>span{color:#1a101e;filter:drop-shadow(0 1px 0 rgba(255,255,255,.38)) drop-shadow(0 3px 2px rgba(0,0,0,.7));-webkit-text-stroke:clamp(.55px,.12vw,1.25px) #e258b2;text-shadow:0 0 8px color-mix(in srgb,var(--muze-profile-accent) 32%,transparent)}

.muze-game-board--chess button.is-last-move::before{background:color-mix(in srgb,var(--chess-move) 32%,transparent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--chess-move) 55%,transparent);content:"";inset:0;position:absolute;z-index:1}

.muze-game-board--chess button.is-selected{box-shadow:inset 0 0 0 4px var(--chess-gold),inset 0 0 18px rgba(255,217,138,.5)!important;z-index:4}
.muze-game-board--chess button.is-selected>span{filter:drop-shadow(0 0 7px #fff)}

.muze-game-board--chess button.is-legal::after{background:var(--chess-move);border:2px solid rgba(7,28,25,.42);box-shadow:0 0 0 3px rgba(66,232,196,.18),0 2px 5px rgba(0,0,0,.35);height:18%;width:18%;z-index:5}

.muze-game-board--chess button.is-legal:not(.has-piece)::after{background:var(--chess-move);border:2px solid rgba(7,28,25,.42);border-radius:50%;box-shadow:0 0 0 3px rgba(66,232,196,.18),0 2px 5px rgba(0,0,0,.35);height:18%;inset:auto;width:18%}

.muze-game-board--chess button.has-piece.is-legal::after{background:transparent;border:clamp(3px,.45vw,5px) solid var(--chess-move);border-radius:8px;box-shadow:inset 0 0 14px rgba(66,232,196,.3);height:auto;inset:3px;width:auto}

.muze-game-board--chess button.is-in-check{animation:muze-chess-check 1.35s ease-in-out infinite;box-shadow:inset 0 0 0 4px var(--chess-check),inset 0 0 23px rgba(255,66,109,.74)!important;z-index:4}

@keyframes muze-chess-check{0%,100%{filter:brightness(1)}
50%{filter:brightness(1.22)}
}

.muze-game-board--chess button i{display:block;font:800 clamp(.39rem,.8vw,.58rem)/1 system-ui;inset:0;opacity:.58;pointer-events:none;position:absolute;z-index:6}
.muze-game-board--chess button i em,.muze-game-board--chess button i b{display:none;font-style:normal;position:absolute}
.muze-game-board--chess button:nth-last-child(-n+8) i em{bottom:3px;display:block;right:4px}
.muze-game-board--chess button:nth-child(8n+1) i b{display:block;left:4px;top:3px}
.muze-game-board--chess button:nth-child(odd) i,.muze-game-board--chess button:nth-child(even) i{color:rgba(28,16,31,.62)}
.muze-game-board--chess button:nth-child(16n+1) i,.muze-game-board--chess button:nth-child(16n+3) i,.muze-game-board--chess button:nth-child(16n+5) i,.muze-game-board--chess button:nth-child(16n+7) i,.muze-game-board--chess button:nth-child(16n+10) i,.muze-game-board--chess button:nth-child(16n+12) i,.muze-game-board--chess button:nth-child(16n+14) i,.muze-game-board--chess button:nth-child(16n+16) i{color:rgba(255,242,250,.65)}

.muze-chess__legend{align-items:center;color:rgba(255,255,255,.62);display:flex;flex-wrap:wrap;font-size:.66rem;font-weight:750;gap:10px 16px;justify-content:center;margin:9px 0 0}
.muze-chess__legend span{align-items:center;display:flex;gap:6px}
.muze-chess__legend b{border-radius:50%;display:inline-block;height:9px;width:9px}
.muze-chess__legend .is-yours.is-white{background:linear-gradient(145deg,#fff7df,#b88948);box-shadow:0 0 0 1px #7a5424}
.muze-chess__legend .is-yours.is-black{background:linear-gradient(145deg,#3b263f,#110b14);box-shadow:0 0 0 1px #e258b2}
.muze-chess__legend .is-last{background:var(--chess-move);box-shadow:0 0 5px rgba(66,232,196,.8)}
.muze-chess__legend .is-legal{background:transparent;border:2px solid var(--chess-move)}

@media(max-width:620px){.muze-chess__board-frame{border-radius:14px;padding:6px}
.muze-game-board--chess{border-radius:8px}
.muze-game-board--chess button>span{font-size:clamp(1.35rem,9.1vw,2.75rem)}
.muze-chess__legend{gap:7px 10px}
.muze-game-board--chess button:nth-last-child(-n+8) i em{bottom:2px;right:2px}
.muze-game-board--chess button:nth-child(8n+1) i b{left:2px;top:2px}
}

@media(prefers-reduced-motion:reduce){.muze-game-board--chess button,.muze-game-board--chess button>span{transition:none}
.muze-game-board--chess button.is-in-check{animation:none}
}


.muze-chess-empty__actions{display:grid;gap:9px}
.muze-chess-empty__actions label{margin-top:2px}
.muze-chess-empty__actions button{justify-content:center;width:100%}
.muze-chess-empty__actions small{color:rgba(255,255,255,.55);font-size:.68rem;line-height:1.4;text-align:center}
.muze-chess-ai-start{align-items:center;display:flex!important;gap:7px}
.muze-chess-ai-start span{color:#fff6a8;font-size:1rem}
.muze-chess__ai-badge{background:linear-gradient(135deg,#20dfb3,#28a7ff);border-radius:999px;color:#061619;font:900 .54rem/1 system-ui;margin-left:7px;padding:4px 6px;vertical-align:middle}
.muze-chess-preview-play{background:linear-gradient(135deg,var(--muze-profile-accent),var(--muze-profile-accent-2));border:0;border-radius:12px;color:#fff;cursor:pointer;font-weight:900;margin-top:12px;min-height:42px;padding:9px 14px}
.muze-profile-widget.is-play-ready{animation:muze-chess-ready 1.1s ease 2;border-color:color-mix(in srgb,var(--muze-profile-accent) 78%,#fff);box-shadow:0 0 0 4px color-mix(in srgb,var(--muze-profile-accent) 18%,transparent),0 20px 55px rgba(0,0,0,.35)}
.muze-profile-widget__controls [data-widget-move]{background:color-mix(in srgb,var(--muze-widget-accent) 13%,transparent);font-size:1.08rem}
@keyframes muze-chess-ready{50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--muze-profile-accent) 22%,transparent),0 22px 60px rgba(0,0,0,.4)}
}

@media(prefers-reduced-motion:reduce){.muze-profile-widget.is-play-ready{animation:none}
}


/* Release-ready AI setup and a true viewport-level game window. */
.muze-chess-ai-setup{background:linear-gradient(145deg,rgba(68,226,194,.12),rgba(109,77,255,.11));border:1px solid color-mix(in srgb,var(--muze-profile-accent) 38%,transparent);border-radius:17px;display:grid;gap:11px;padding:14px}
.muze-chess-ai-setup header{align-items:center;display:flex;gap:10px}
.muze-chess-ai-setup header>span{align-items:center;background:linear-gradient(135deg,#20dfb3,#6f55ff);border-radius:12px;box-shadow:0 8px 24px rgba(32,223,179,.18);color:#fff;display:flex;font-size:1.15rem;height:38px;justify-content:center;width:38px}
.muze-chess-ai-setup header div{display:grid;gap:2px}
.muze-chess-ai-setup header small{color:rgba(255,255,255,.58);font-size:.68rem}
.muze-chess-ai-setup select{background:#16121d!important;border-color:rgba(255,255,255,.18)!important;color:#fff!important}
.muze-chess-demo-test{border-top:1px solid rgba(255,255,255,.09);padding-top:7px}
.muze-chess-demo-test summary{color:rgba(255,255,255,.58);cursor:pointer;font-size:.7rem;font-weight:800}
.muze-chess-demo-test button{margin-top:8px}
.muze-chess-demo-test small{display:block;margin-top:5px}
.muze-chess__live-status{background:rgba(12,10,17,.66);border-left:3px solid var(--chess-move);border-radius:7px;color:rgba(255,255,255,.72);font-size:.7rem;margin:6px 0 9px;padding:7px 9px}
.muze-chess__live-status.is-error{border-left-color:#ff678e;color:#ffc3d2}
.muze-profile-chess.is-busy{cursor:progress}
.muze-profile-chess.is-busy .muze-game-board--chess{filter:saturate(.72);opacity:.82;pointer-events:none}

.muze-chess__backdrop{backdrop-filter:blur(10px);background:rgba(4,3,7,.78);border:0!important;border-radius:0!important;inset:0;min-height:100vh!important;padding:0!important;position:fixed;z-index:100048}
.muze-chess__placeholder{background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.01));border:1px dashed color-mix(in srgb,var(--muze-profile-accent) 20%,transparent);border-radius:16px;width:100%}
.muze-profile-chess.is-expanded{background:radial-gradient(circle at 75% 4%,color-mix(in srgb,var(--muze-profile-accent) 17%,transparent),transparent 38%),linear-gradient(160deg,#19151f,#09070d);border:1px solid color-mix(in srgb,var(--muze-profile-accent) 45%,#473853);border-radius:22px;box-shadow:0 35px 120px rgba(0,0,0,.82);height:calc(100dvh - 40px);inset:20px auto auto 50%;margin:0;max-height:920px;max-width:940px;overflow:auto;overscroll-behavior:contain;padding:clamp(14px,2vw,24px);position:fixed;transform:translateX(-50%);width:min(940px,calc(100vw - 40px));z-index:100050}
.muze-profile-chess.is-expanded .muze-chess__board-shell{margin:14px auto;max-width:min(68dvh,760px)}
.muze-profile-chess.is-expanded .muze-chess__match{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:15px;padding:10px 12px;position:sticky;top:-10px;z-index:20}
.muze-chess-modal-open{overflow:hidden!important}
.muze-chess-companion-chat .muze-profile-chess.is-expanded{left:calc((100vw - min(390px,34vw))/2);width:min(900px,calc(100vw - min(390px,34vw) - 48px))}

@media(max-width:900px){.muze-profile-chess.is-expanded,.muze-chess-companion-chat .muze-profile-chess.is-expanded{border-radius:18px;height:calc(100dvh - 16px);inset:8px auto auto 50%;left:50%;max-height:none;padding:12px;transform:translateX(-50%);width:calc(100vw - 16px)}
.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(66dvh,calc(100vw - 46px))}
.muze-profile-chess.is-expanded .muze-chess__match{top:-5px}
.muze-chess__window-actions button{min-width:78px!important}
}

@media(max-width:520px){.muze-chess-ai-setup{padding:11px}
.muze-profile-chess.is-expanded .muze-chess__match{align-items:stretch;gap:8px}
.muze-profile-chess.is-expanded .muze-chess__match strong{white-space:normal}
.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:100%}
.muze-chess__live-status{font-size:.65rem}
.muze-game-board--chess button{touch-action:manipulation}
}

@media(prefers-reduced-motion:reduce){.muze-chess__backdrop{backdrop-filter:none}
}

/* Floating tournament presentation: no page-covering backdrop and no oversized pink controls. */
.muze-chess__backdrop{display:none!important}
.muze-chess-modal-open{overflow:auto!important}
.muze-profile-chess button:not(.muze-game-board--chess button){min-height:34px!important;padding:7px 11px!important;border:1px solid rgba(131,210,224,.22)!important;border-radius:9px!important;background:linear-gradient(145deg,rgba(54,68,82,.72),rgba(23,29,40,.86))!important;color:#e7f4f7!important;box-shadow:0 5px 15px rgba(0,0,0,.18)!important;font-size:.78rem!important;font-weight:750!important;letter-spacing:0!important;text-shadow:none!important}
.muze-profile-chess button:not(.muze-game-board--chess button):hover{border-color:#55d5df!important;background:linear-gradient(145deg,rgba(42,108,117,.75),rgba(29,45,60,.9))!important;transform:translateY(-1px)}
.muze-profile-chess button.is-primary:not(.muze-game-board--chess button){border-color:rgba(88,220,225,.45)!important;background:linear-gradient(135deg,#196f79,#4a5fa3)!important}
.muze-profile-chess button.is-danger:not(.muze-game-board--chess button){border-color:rgba(255,111,135,.35)!important;background:rgba(94,30,47,.36)!important;color:#ffbac7!important}
.muze-chess__match{padding:8px 10px;border:1px solid rgba(127,217,228,.14);border-radius:13px;background:linear-gradient(135deg,rgba(53,66,82,.33),rgba(16,21,30,.35))}
.muze-chess__window-actions button{min-width:0!important}
.muze-chess__arena{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}
.muze-chess__board-shell{grid-row:1;min-width:0;margin:4px auto;max-width:680px;width:100%}
.muze-chess__side{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.muze-chess__side--you{grid-row:2}.muze-chess__side--them{grid-row:3}
.muze-chess__capture-tray,.muze-chess__move-history,.muze-chess__position-tools{min-width:0;padding:10px;border:1px solid rgba(130,199,214,.14);border-radius:13px;background:linear-gradient(145deg,rgba(37,47,61,.58),rgba(12,17,25,.6));box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.muze-chess__capture-tray header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:#fff;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em}
.muze-chess__capture-tray header strong{color:#80e7d8;font-size:.67rem;letter-spacing:0;text-transform:none}
.muze-chess__captured-pieces{display:flex;flex-wrap:wrap;gap:2px;min-height:25px;align-items:center}
.muze-chess__captured-pieces>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:rgba(255,255,255,.045);font:1.25rem/1 "Segoe UI Symbol","Noto Sans Symbols 2",serif}
.muze-chess__captured-pieces .is-white-piece{color:#fff0c9;text-shadow:0 1px 1px #6a4524}.muze-chess__captured-pieces .is-black-piece{color:#231527;text-shadow:0 1px 0 #e168b8}
.muze-chess__captured-pieces small,.muze-chess__move-history small,.muze-chess__position-tools small{color:rgba(229,242,246,.53);font-size:.64rem;line-height:1.4}
.muze-chess__move-history>header,.muze-chess__position-tools>header{margin-bottom:7px;color:#a9e9ee;font-size:.67rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.muze-chess__move-history ol{display:grid;gap:3px;max-height:118px;margin:0;padding:0;overflow:auto;list-style:none;scrollbar-color:#4c9eaa rgba(255,255,255,.04);scrollbar-width:thin}
.muze-chess__move-history li{display:grid;grid-template-columns:20px 1fr auto;gap:5px;align-items:center;padding:4px 5px;border-radius:6px;background:rgba(255,255,255,.035);font-size:.65rem}
.muze-chess__move-history li b{color:#7892a4}.muze-chess__move-history li em{color:#80e7d8;font-size:.56rem;font-style:normal}
.muze-chess__position-tools{display:grid;gap:7px}.muze-chess__position-tools button{justify-self:start}.muze-chess__position-tools button span{margin-right:5px;color:#7ee5ec}
.muze-chess__result{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;overflow:hidden;padding:16px;border-color:rgba(100,218,226,.33);background:radial-gradient(circle at 12% 50%,rgba(88,222,210,.18),transparent 34%),linear-gradient(145deg,rgba(26,38,51,.94),rgba(10,15,23,.95));animation:muze-chess-result-in .5s cubic-bezier(.2,.8,.2,1) both}
.muze-chess__result-crown{display:grid;place-items:center;width:58px;height:58px;border:1px solid rgba(255,226,143,.36);border-radius:18px;background:rgba(255,211,100,.08);color:#ffe18f;font:2.25rem/1 "Segoe UI Symbol",serif;animation:muze-chess-crown 1.2s ease .25s both}
.muze-chess__result p{margin:0 0 2px;color:#9bb4c2;font-size:.66rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.muze-chess__result strong{display:block;color:#fff;font-size:clamp(1.55rem,4vw,2.65rem);line-height:1.02}.muze-chess__result span{display:block;margin-top:4px;color:rgba(232,243,246,.7);font-size:.78rem}
.muze-chess__rank-result{display:inline-flex;margin-top:9px;padding:5px 9px;border-radius:999px;font-size:.68rem}.muze-chess__rank-result.is-gain{background:rgba(61,210,157,.14);color:#83f0c4}.muze-chess__rank-result.is-loss{background:rgba(255,94,124,.14);color:#ffafbe}.muze-chess__rank-result.is-neutral{background:rgba(129,166,190,.12);color:#bbcfdb}
.muze-chess__result--loss{background:radial-gradient(circle at 12% 50%,rgba(219,74,101,.14),transparent 34%),linear-gradient(145deg,rgba(33,31,43,.94),rgba(12,14,21,.96))}.muze-chess__result--draw{background:radial-gradient(circle at 12% 50%,rgba(114,138,212,.15),transparent 34%),linear-gradient(145deg,rgba(29,36,51,.94),rgba(11,15,23,.96))}
@keyframes muze-chess-result-in{from{opacity:0;transform:translateY(-12px) scale(.97)}to{opacity:1;transform:none}}@keyframes muze-chess-crown{0%{opacity:0;transform:scale(.4) rotate(-20deg)}60%{transform:scale(1.15) rotate(5deg)}100%{opacity:1;transform:none}}
.muze-profile-chess.is-expanded{position:fixed;z-index:100050;inset:auto auto auto 50%;top:clamp(24px,6vh,70px);transform:translateX(-50%);width:min(980px,calc(100vw - 48px));height:auto;max-width:none;max-height:86dvh;min-width:min(720px,calc(100vw - 48px));min-height:440px;margin:0;padding:14px;overflow:auto;resize:both;border:1px solid rgba(116,218,228,.28);border-radius:20px;background:linear-gradient(155deg,rgba(20,26,37,.97),rgba(7,11,17,.97));box-shadow:0 34px 110px rgba(0,0,0,.68),0 0 0 1px rgba(255,255,255,.035);backdrop-filter:blur(22px)}
.muze-profile-chess.is-expanded .muze-chess__match{position:sticky;top:-8px;z-index:30;margin-bottom:10px;cursor:grab;background:rgba(20,27,38,.94);backdrop-filter:blur(16px)}.muze-profile-chess.is-expanded.is-dragging-window .muze-chess__match{cursor:grabbing}
.muze-profile-chess.is-expanded .muze-chess__arena{grid-template-columns:minmax(135px,180px) minmax(390px,1fr) minmax(135px,180px);gap:12px}.muze-profile-chess.is-expanded .muze-chess__board-shell{grid-column:2;grid-row:1;margin:0 auto;max-width:min(64dvh,640px)}.muze-profile-chess.is-expanded .muze-chess__side{display:grid;grid-template-columns:1fr;align-content:start;gap:9px}.muze-profile-chess.is-expanded .muze-chess__side--you{grid-column:1;grid-row:1}.muze-profile-chess.is-expanded .muze-chess__side--them{grid-column:3;grid-row:1}
.muze-chess-companion-chat .muze-profile-chess.is-expanded{left:calc((100vw - min(390px,34vw))/2);width:min(940px,calc(100vw - min(390px,34vw) - 42px));min-width:0}
@media(max-width:820px){.muze-profile-chess.is-expanded,.muze-chess-companion-chat .muze-profile-chess.is-expanded{top:72px;left:12px;right:12px;width:auto;min-width:0;max-height:calc(100dvh - 84px);transform:none;resize:none}.muze-profile-chess.is-expanded .muze-chess__arena{grid-template-columns:minmax(0,1fr)}.muze-profile-chess.is-expanded .muze-chess__board-shell{grid-column:1;grid-row:1;max-width:min(66dvh,100%)}.muze-profile-chess.is-expanded .muze-chess__side{grid-template-columns:1fr 1fr}.muze-profile-chess.is-expanded .muze-chess__side--you{grid-column:1;grid-row:2}.muze-profile-chess.is-expanded .muze-chess__side--them{grid-column:1;grid-row:3}}
@media(max-width:520px){.muze-profile-chess.is-expanded{top:72px;right:8px;left:8px;max-height:calc(100dvh - 80px);padding:10px}.muze-chess__side,.muze-profile-chess.is-expanded .muze-chess__side{grid-template-columns:1fr}.muze-chess__result{grid-template-columns:auto 1fr}.muze-chess__result>button{grid-column:1/-1}.muze-chess__result-crown{width:46px;height:46px;font-size:1.8rem}.muze-chess__controls button{flex:0 1 auto}}
@media(prefers-reduced-motion:reduce){.muze-chess__result,.muze-chess__result-crown{animation:none}}

/* Compact live state, distinct friend/AI starts, and flicker-free viewport play. */
.muze-chess-start-options{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.muze-chess-friend-setup,.muze-chess-ai-setup{display:grid;align-content:start;gap:11px;padding:14px;border:1px solid rgba(121,204,219,.2);border-radius:17px;background:linear-gradient(145deg,rgba(42,54,69,.68),rgba(14,19,28,.74))}.muze-chess-friend-setup header,.muze-chess-ai-setup header{display:flex;align-items:center;gap:10px}.muze-chess-friend-setup header>span,.muze-chess-ai-setup header>span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#1b7780,#536da8);color:#f2ffff;font:1.15rem/1 "Segoe UI Symbol",serif;box-shadow:0 8px 22px rgba(16,94,104,.2)}.muze-chess-friend-setup header div,.muze-chess-ai-setup header div{display:grid;gap:2px}.muze-chess-friend-setup header small,.muze-chess-ai-setup header small{color:rgba(228,241,245,.6);font-size:.68rem;text-align:left}.muze-chess-friend-setup label,.muze-chess-ai-setup label{display:grid;gap:5px}.muze-chess-friend-setup label>span,.muze-chess-ai-setup label>span{color:#a9c3ca;font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.muze-chess-friend-setup select,.muze-chess-ai-setup select{width:100%;min-height:38px;padding:7px 9px;border:1px solid rgba(133,205,217,.2);border-radius:9px;background:#111823!important;color:#f1f8fa!important}.muze-chess-friend-start,.muze-chess-ai-start{display:flex!important;align-items:center;justify-content:center;gap:7px!important}.muze-chess-find-friends{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 10px;border:1px solid rgba(110,213,222,.26);border-radius:9px;background:rgba(37,96,106,.22);color:#a9eff2;text-decoration:none;font-size:.76rem;font-weight:800}.muze-chess-demo-test{grid-column:1/-1}
.muze-chess__result-actions{display:grid;gap:6px;min-width:128px}.muze-chess__result-actions button{width:100%}
.muze-profile-chess.is-compact .muze-chess__arena,.muze-profile-chess.is-compact .muze-chess__controls,.muze-profile-chess.is-compact .muze-chess__offer,.muze-profile-chess.is-compact .muze-chess__save-note,.muze-profile-chess.is-compact .muze-chess__live-status{display:none!important}.muze-profile-chess.is-compact{min-height:0}.muze-profile-chess.is-compact .muze-chess__match{margin:0}.muze-profile-chess.is-compact .muze-profile-arcade__turn{margin:8px 0 0}.muze-profile-chess.is-compact .muze-chess__result{margin-top:8px;padding:9px;grid-template-columns:auto 1fr auto;gap:9px}.muze-profile-chess.is-compact .muze-chess__result-crown{width:38px;height:38px;border-radius:11px;font-size:1.45rem}.muze-profile-chess.is-compact .muze-chess__result p,.muze-profile-chess.is-compact .muze-chess__result span{display:none}.muze-profile-chess.is-compact .muze-chess__result strong{font-size:1.15rem}.muze-profile-chess.is-compact .muze-chess__rank-result{margin-top:4px;padding:3px 7px;font-size:.61rem}.muze-profile-chess.is-compact .muze-chess__result-actions{display:flex;min-width:0}.muze-profile-chess.is-compact .muze-chess__result-actions button{width:auto;min-height:30px!important;padding:5px 8px!important;font-size:.68rem!important}
.muze-profile-chess.is-busy .muze-game-board--chess{filter:none;opacity:1;pointer-events:none}.muze-profile-chess.is-busy .muze-chess__match{position:relative;overflow:hidden}.muze-profile-chess.is-busy .muze-chess__match:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,#63dfdf,transparent);animation:muze-chess-saving .85s linear infinite}.muze-game-board--chess button.is-piece-arrival span{animation:muze-chess-piece-arrival .25s cubic-bezier(.2,.8,.2,1)}@keyframes muze-chess-saving{from{transform:translateX(-80%)}to{transform:translateX(80%)}}@keyframes muze-chess-piece-arrival{from{opacity:.35;transform:scale(.72)}to{opacity:1;transform:none}}
.muze-profile-chess.is-expanded{top:clamp(22px,5vh,58px);height:min(780px,calc(100dvh - 76px));max-height:none;min-height:0;overflow:hidden;resize:none}.muze-profile-chess.is-expanded>.muze-chess,.muze-profile-chess.is-expanded>:where([data-game-live-shell])>.muze-chess{display:flex;flex-direction:column;height:100%;min-height:0}.muze-profile-chess.is-expanded .muze-chess__match{position:relative;top:auto;flex:0 0 auto;margin-bottom:7px;padding:7px 10px}.muze-profile-chess.is-expanded .muze-chess__result{flex:0 0 auto;margin-bottom:7px;padding:9px 11px}.muze-profile-chess.is-expanded .muze-chess__result-crown{width:42px;height:42px;border-radius:13px;font-size:1.65rem}.muze-profile-chess.is-expanded .muze-chess__result strong{font-size:clamp(1.2rem,2vw,1.75rem)}.muze-profile-chess.is-expanded .muze-chess__result span{font-size:.7rem}.muze-profile-chess.is-expanded .muze-chess__rank-result{margin-top:4px;padding:3px 8px}.muze-profile-chess.is-expanded .muze-profile-arcade__turn,.muze-profile-chess.is-expanded .muze-chess__live-status{flex:0 0 auto;margin:0 0 6px}.muze-profile-chess.is-expanded .muze-chess__arena{flex:1 1 auto;min-height:0;grid-template-columns:minmax(125px,170px) minmax(250px,1fr) minmax(125px,170px);align-items:stretch;overflow:hidden}.muze-profile-chess.is-expanded .muze-chess__board-shell{display:flex;flex-direction:column;justify-content:center;min-height:0;height:100%;max-width:min(560px,calc(100dvh - 250px));margin:0 auto}.muze-profile-chess.is-expanded .muze-chess__board-frame{flex:0 1 auto;min-height:0}.muze-profile-chess.is-expanded .muze-chess__side{min-height:0;overflow:hidden}.muze-profile-chess.is-expanded .muze-chess__move-history{min-height:0}.muze-profile-chess.is-expanded .muze-chess__move-history ol{max-height:none;min-height:0;overflow:auto}.muze-profile-chess.is-expanded .muze-chess__controls,.muze-profile-chess.is-expanded .muze-chess__offer,.muze-profile-chess.is-expanded .muze-chess__save-note{flex:0 0 auto;margin-top:6px}
@media(max-width:820px){.muze-chess-start-options{grid-template-columns:1fr}.muze-chess-demo-test{grid-column:1}.muze-profile-chess.is-expanded,.muze-chess-companion-chat .muze-profile-chess.is-expanded{top:72px;height:calc(100dvh - 84px);max-height:none;overflow:hidden}.muze-profile-chess.is-expanded .muze-chess__arena{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto;gap:7px}.muze-profile-chess.is-expanded .muze-chess__board-shell{grid-column:1/-1;grid-row:1;max-width:min(calc(100dvh - 320px),calc(100vw - 44px));height:100%}.muze-profile-chess.is-expanded .muze-chess__side{display:block;padding:0}.muze-profile-chess.is-expanded .muze-chess__side--you{grid-column:1;grid-row:2}.muze-profile-chess.is-expanded .muze-chess__side--them{grid-column:2;grid-row:2}.muze-profile-chess.is-expanded .muze-chess__move-history,.muze-profile-chess.is-expanded .muze-chess__position-tools{display:none}.muze-profile-chess.is-expanded .muze-chess__capture-tray{height:100%;padding:7px}.muze-profile-chess.is-expanded .muze-chess__captured-pieces{min-height:19px}.muze-profile-chess.is-expanded .muze-chess__captured-pieces>span{width:20px;height:20px;font-size:1rem}.muze-profile-chess.is-expanded .muze-chess__legend{font-size:.56rem}.muze-profile-chess.is-expanded .muze-chess__save-note{display:none}.muze-profile-chess.is-expanded .muze-chess__result{grid-template-columns:auto 1fr}.muze-profile-chess.is-expanded .muze-chess__result-actions{grid-column:1/-1;display:flex}.muze-profile-chess.is-expanded .muze-chess__result-actions button{flex:1}}
@media(max-width:520px){.muze-chess-friend-setup,.muze-chess-ai-setup{padding:11px}.muze-profile-chess.is-compact .muze-chess__result{grid-template-columns:auto 1fr}.muze-profile-chess.is-compact .muze-chess__result-actions{grid-column:1/-1}.muze-profile-chess.is-expanded .muze-chess__window-actions{width:auto;display:grid;grid-template-columns:repeat(2,1fr)}.muze-profile-chess.is-expanded .muze-chess__window-actions button{min-height:29px!important;padding:4px 7px!important;font-size:.68rem!important}.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(calc(100dvh - 330px),calc(100vw - 36px))}.muze-profile-chess.is-expanded .muze-chess__result-crown{display:none}}
@media(prefers-reduced-motion:reduce){.muze-profile-chess.is-busy .muze-chess__match:after,.muze-game-board--chess button.is-piece-arrival span{animation:none}}

/* Short-viewport guard found during production visual QA. */
.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(560px,calc(100dvh - 345px))}
@media(max-width:820px){.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(calc(100dvh - 350px),calc(100vw - 44px))}}
@media(max-width:520px){.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(calc(100dvh - 350px),calc(100vw - 36px))}}

/* Narrow profile columns keep every result action inside the widget. */
.muze-profile-chess{container-type:inline-size}
.muze-profile-chess.is-expanded [data-chess-compact]{display:none!important}
@container(max-width:430px){.muze-profile-chess:not(.is-expanded) .muze-chess__result{grid-template-columns:auto minmax(0,1fr);gap:9px;padding:11px}.muze-profile-chess:not(.is-expanded) .muze-chess__result>div:nth-child(2){min-width:0}.muze-profile-chess:not(.is-expanded) .muze-chess__result strong,.muze-profile-chess:not(.is-expanded) .muze-chess__result span{overflow-wrap:anywhere}.muze-profile-chess:not(.is-expanded) .muze-chess__result-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}.muze-profile-chess:not(.is-expanded) .muze-chess__result-actions button{width:100%;min-width:0;white-space:normal}.muze-profile-chess:not(.is-expanded) .muze-chess__result-crown{width:44px;height:44px;font-size:1.7rem}}
@container(max-width:290px){.muze-profile-chess:not(.is-expanded) .muze-chess__result-actions{grid-template-columns:1fr}.muze-profile-chess:not(.is-expanded) .muze-chess__result p{font-size:.58rem}.muze-profile-chess:not(.is-expanded) .muze-chess__result strong{font-size:1.2rem}}

/* Use the full short-desktop viewport and keep the board clear of footers. */
@media(min-width:821px){.muze-profile-chess.is-expanded{top:24px;height:min(800px,calc(100dvh - 48px))}}
@media(min-width:821px) and (max-height:650px){.muze-profile-chess.is-expanded .muze-chess__save-note{display:none}.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(560px,calc(100dvh - 345px))}}

/* Board-first expanded workspace with an in-window Muze Messenger berth. */
.muze-profile-chess.is-expanded{width:min(1180px,calc(100vw - 32px));height:min(820px,calc(100dvh - 32px));top:16px;padding:12px;transition:width .22s ease}
.muze-profile-chess.is-expanded>.muze-chess,.muze-profile-chess.is-expanded>:where([data-game-live-shell])>.muze-chess{position:relative;min-width:0;opacity:1!important;filter:none!important;transition:none!important}
.muze-profile-chess.is-expanded.is-busy>.muze-chess,.muze-profile-chess.is-expanded.is-busy>:where([data-game-live-shell])>.muze-chess{opacity:1!important;filter:none!important}
.muze-profile-chess.is-expanded.is-busy .muze-chess__match:after{content:"Saving";display:inline-flex;align-items:center;margin-left:auto;padding:4px 7px;border:1px solid rgba(84,226,211,.24);border-radius:999px;background:rgba(84,226,211,.08);color:#8ff1e6;font:800 .58rem/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.muze-profile-chess.is-expanded.has-embedded-messenger{display:block}
.muze-profile-chess.is-expanded .muze-chess__match{min-height:50px;padding:8px 11px}
.muze-chess__close-window{display:none!important}.muze-profile-chess.is-expanded .muze-chess__close-window{display:grid!important;place-items:center;width:32px;height:32px;min-height:32px!important;padding:0!important;border:1px solid rgba(255,132,163,.34)!important;border-radius:9px!important;background:rgba(147,33,68,.22)!important;color:#ffd8e3!important;font:500 1.25rem/1 system-ui,sans-serif!important}.muze-profile-chess.is-expanded .muze-chess__close-window:hover,.muze-profile-chess.is-expanded .muze-chess__close-window:focus-visible{border-color:#ff769b!important;background:rgba(184,41,83,.34)!important;color:#fff!important}
.muze-profile-chess.is-expanded .muze-chess__live-status{box-sizing:border-box;display:block;height:29px;min-height:29px;padding:6px 9px;overflow:hidden;font-size:.68rem;line-height:15px;white-space:nowrap;text-overflow:ellipsis}
.muze-profile-chess.is-expanded .muze-chess__arena{grid-template-columns:minmax(156px,190px) minmax(360px,var(--muze-chess-fitted-board,520px)) minmax(290px,330px);grid-template-rows:minmax(0,1fr) minmax(0,1fr);justify-content:center;gap:10px;overflow:hidden}
.muze-profile-chess.is-expanded .muze-chess__board-shell{grid-column:2;grid-row:1/3;align-self:center;width:var(--muze-chess-fitted-board,520px);height:auto;max-width:100%;max-height:100%}
.muze-profile-chess.is-expanded .muze-chess__side{display:grid;grid-template-columns:1fr;align-content:start;gap:7px;min-height:0;padding:0;overflow:auto;scrollbar-color:#4c9eaa rgba(255,255,255,.04);scrollbar-width:thin}
.muze-profile-chess.is-expanded .muze-chess__side--you{grid-column:1;grid-row:1}.muze-profile-chess.is-expanded .muze-chess__side--them{grid-column:1;grid-row:2}
.muze-profile-chess.is-expanded .muze-chess__capture-tray,.muze-profile-chess.is-expanded .muze-chess__move-history,.muze-profile-chess.is-expanded .muze-chess__position-tools{padding:8px;border-radius:10px}
.muze-profile-chess.is-expanded .muze-chess__board-frame{padding:7px}
.muze-profile-chess.is-expanded .muze-chess__move-history ol{max-height:116px}
.muze-profile-chess.is-expanded .muze-chess__controls,.muze-profile-chess.is-expanded .muze-chess__offer{margin-top:5px}
.muze-profile-chess.is-expanded .muze-chess__save-note{margin:5px 0 0}
.muze-chess__ai-chat-note{display:grid;gap:5px;padding:9px;border:1px solid rgba(123,127,255,.2);border-radius:11px;background:linear-gradient(145deg,rgba(94,72,164,.13),rgba(22,30,43,.3))}.muze-chess__ai-chat-note header{color:#9fe9f2;font:900 .67rem/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}.muze-chess__ai-chat-note strong{color:#f4fbff;font-size:.72rem;line-height:1.25}.muze-chess__ai-chat-note small{color:rgba(225,236,242,.62);font-size:.61rem;line-height:1.4}.muze-chess__ai-chat-note a{justify-self:start;margin-top:2px;color:#8fe9f2;font-size:.65rem;font-weight:850;text-decoration:none}.muze-chess__ai-chat-note a:hover{text-decoration:underline}
.muze-chess__messenger-slot{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:1px solid rgba(116,218,228,.22);border-radius:15px;background:linear-gradient(160deg,rgba(27,35,47,.92),rgba(10,14,21,.94));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.muze-profile-chess.is-expanded .muze-chess__messenger-slot{grid-column:3;grid-row:1/3}
.muze-chess__messenger-label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.07);color:#eefcff;font-size:.7rem;font-weight:850;letter-spacing:.04em}.muze-chess__messenger-label span{display:flex;align-items:center;gap:6px}.muze-chess__messenger-label b{color:#58e3c0;font-size:.65rem;text-shadow:0 0 10px #58e3c0}.muze-chess__messenger-label small{color:rgba(226,241,245,.52);font-size:.55rem;font-weight:650;letter-spacing:0}
.muze-chess__messenger-slot .muze-contact-dock__chat{position:relative;display:flex;flex:1 1 auto;width:100%;height:100%;min-height:0;max-height:none;flex-basis:auto;border:0;border-radius:0;background:transparent;box-shadow:none}
.muze-chess__messenger-slot .muze-contact-dock__chat>header{min-height:52px;background:rgba(255,255,255,.025)}
.muze-chess__messenger-slot .muze-contact-dock__messages{flex:1 1 auto;min-height:120px}
.muze-chess__messenger-slot .muze-contact-dock__composer{flex:0 0 auto}
.muze-chess__messenger-state{display:grid;place-items:center;align-content:center;gap:12px;flex:1 1 auto;min-height:150px;padding:22px;color:rgba(226,242,245,.68);font:700 .72rem/1.45 system-ui,sans-serif;text-align:center}.muze-chess__messenger-state button{min-height:34px;padding:7px 12px;border:1px solid rgba(91,223,215,.3);border-radius:9px;background:linear-gradient(145deg,rgba(35,112,119,.72),rgba(50,66,111,.78));color:#f2ffff;font:800 .68rem/1 system-ui,sans-serif;cursor:pointer}.muze-chess__messenger-slot.is-connecting:not(.is-ai-practice) .muze-chess__messenger-state:before{content:"";width:24px;height:24px;margin-bottom:10px;border:2px solid rgba(91,223,215,.18);border-top-color:#5bdfd7;border-radius:50%;animation:muze-chess-chat-spin .8s linear infinite}.muze-chess__messenger-slot.is-ai-practice .muze-chess__messenger-state:before{content:"✉";display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(91,223,215,.25);border-radius:13px;background:rgba(91,223,215,.08);color:#8fe9f2;font-size:1.25rem}.muze-chess__messenger-slot.is-unavailable .muze-chess__messenger-state{color:#ffd2dc}@keyframes muze-chess-chat-spin{to{transform:rotate(360deg)}}
.muze-chess__contact-picker{display:flex;align-items:stretch;justify-content:flex-start;gap:9px;min-height:0;padding:11px;text-align:left;overflow:hidden}.muze-chess__messenger-slot.is-ai-practice .muze-chess__contact-picker:before{display:none}.muze-chess__contact-intro{display:grid;gap:2px}.muze-chess__contact-intro strong{color:#f4fbff;font-size:.76rem}.muze-chess__contact-intro small{color:rgba(225,237,242,.58);font-size:.6rem;line-height:1.35}.muze-chess__contact-picker>input{width:100%;height:34px;padding:7px 10px;border:1px solid rgba(129,208,218,.2);border-radius:9px;background:rgba(5,10,17,.72);color:#f3fbff;font:650 .68rem/1 system-ui,sans-serif;outline:0}.muze-chess__contact-picker>input:focus{border-color:#59d9d8;box-shadow:0 0 0 3px rgba(89,217,216,.1)}.muze-chess__contact-list{display:grid;align-content:start;gap:5px;min-height:0;overflow:auto;padding-right:3px;scrollbar-color:#4c9eaa rgba(255,255,255,.04);scrollbar-width:thin}.muze-chess__messenger-state .muze-chess__contact{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:8px;width:100%;min-height:48px;padding:5px 7px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.035);box-shadow:none;text-align:left}.muze-chess__messenger-state .muze-chess__contact:hover,.muze-chess__messenger-state .muze-chess__contact:focus-visible{border-color:rgba(91,223,215,.38);background:rgba(91,223,215,.1)}.muze-chess__contact img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#121b25}.muze-chess__contact>span{display:grid;min-width:0;gap:2px}.muze-chess__contact strong,.muze-chess__contact small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muze-chess__contact strong{color:#f6fbff;font-size:.7rem}.muze-chess__contact small{color:rgba(224,237,242,.55);font-size:.58rem}.muze-chess__contact-list>p{margin:auto;padding:18px 8px;color:rgba(226,238,242,.58);font-size:.65rem;text-align:center}
@media(min-width:821px) and (max-height:650px){.muze-profile-chess.is-expanded{height:calc(100dvh - 24px);top:12px}.muze-profile-chess.is-expanded .muze-chess__board-shell{max-width:min(650px,var(--muze-chess-fitted-board,calc(100dvh - 250px)))}.muze-profile-chess.is-expanded .muze-chess__match{margin-bottom:5px}.muze-profile-chess.is-expanded .muze-chess__save-note{display:none}}
@media(max-width:1080px) and (min-width:821px){.muze-profile-chess.is-expanded .muze-chess__arena{grid-template-columns:minmax(136px,160px) minmax(320px,var(--muze-chess-fitted-board,430px)) minmax(260px,290px)}}
@media(max-width:820px){.muze-profile-chess.is-expanded,.muze-profile-chess.is-expanded.has-embedded-messenger{display:block;top:8px;left:8px;right:8px;width:auto;height:calc(100dvh - 16px);max-height:none}.muze-profile-chess.is-expanded .muze-chess__arena{grid-template-columns:1fr 1fr;grid-template-rows:max-content minmax(76px,auto) minmax(150px,1fr);overflow:hidden}.muze-profile-chess.is-expanded .muze-chess__board-shell{grid-column:1/-1;grid-row:1;min-height:calc(var(--muze-chess-fitted-board,240px) + 25px);max-width:min(var(--muze-chess-fitted-board,calc(100dvh - 360px)),calc(100vw - 40px));height:auto}.muze-profile-chess.is-expanded .muze-chess__side{min-height:0;overflow:auto}.muze-profile-chess.is-expanded .muze-chess__side--you{grid-column:1;grid-row:2}.muze-profile-chess.is-expanded .muze-chess__side--them{grid-column:2;grid-row:2}.muze-profile-chess.is-expanded .muze-chess__messenger-slot{grid-column:1/-1;grid-row:3;min-height:150px}.muze-profile-chess.is-expanded .muze-chess__move-history,.muze-profile-chess.is-expanded .muze-chess__position-tools{display:block}.muze-chess__messenger-label{padding:6px 9px}.muze-chess__messenger-slot .muze-contact-dock__chat>header{min-height:46px}}
@media(max-width:520px){.muze-profile-chess.is-expanded .muze-chess__board-frame{padding:5px}.muze-profile-chess.is-expanded .muze-chess__board-shell{grid-column:1/-1;grid-row:1;max-width:min(var(--muze-chess-fitted-board,calc(100dvh - 290px)),calc(100vw - 32px))}.muze-profile-chess.is-expanded .muze-chess__side--you{grid-column:1;grid-row:2}.muze-profile-chess.is-expanded .muze-chess__side--them{grid-column:2;grid-row:2}.muze-chess__messenger-label small{display:none}}

/* Chess setup stays compact until used and its floating window always has a close control. */
.muze-chess-empty{position:relative}
.muze-chess-empty__close{position:absolute;right:0;top:0;z-index:4}
.muze-chess-empty__toggle{justify-self:start;width:auto!important}
.muze-profile-chess.is-compact .muze-chess-empty{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.muze-profile-chess.is-compact .muze-chess-empty__piece{width:42px;height:42px;border-radius:12px;font-size:1.45rem}
.muze-profile-chess.is-compact .muze-chess-empty p,.muze-profile-chess.is-compact .muze-chess-empty__actions{display:none!important}
.muze-profile-chess.is-compact .muze-chess-empty strong{font-size:.86rem}
.muze-profile-chess.is-expanded.is-empty-game{width:min(980px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 32px);min-height:0;overflow:auto}
.muze-profile-chess.is-expanded.is-empty-game .muze-chess-empty{padding:8px 44px 8px 8px}
.muze-profile-chess.is-expanded.is-empty-game .muze-chess-empty__actions{margin-top:4px}

/* The game chat is a first-class view of one canonical Muze Messenger conversation. */
.muze-chess-chat{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;background:rgba(5,10,17,.34)}
.muze-chess-chat>header{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;flex:0 0 auto;padding:9px 10px;border-bottom:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025)}
.muze-chess-chat>header img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#15202b;box-shadow:0 0 0 2px rgba(86,220,217,.16)}
.muze-chess-chat>header div{display:grid;min-width:0;gap:2px}.muze-chess-chat>header strong,.muze-chess-chat>header small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muze-chess-chat>header strong{color:#f6fbff;font-size:.73rem}.muze-chess-chat>header small{color:rgba(222,239,242,.55);font-size:.58rem}
.muze-chess-chat__messages{display:flex;flex:1 1 auto;flex-direction:column;gap:7px;min-height:118px;overflow:auto;padding:10px;scrollbar-color:#4c9eaa rgba(255,255,255,.04);scrollbar-width:thin}
.muze-chess-chat__row{display:flex}.muze-chess-chat__row.is-mine{justify-content:flex-end}.muze-chess-chat__row.is-theirs{justify-content:flex-start}
.muze-chess-chat__bubble{max-width:88%;padding:8px 9px;border:1px solid rgba(255,255,255,.07);border-radius:12px 12px 12px 4px;background:rgba(65,70,82,.72);color:#f3f7f9;box-shadow:0 6px 16px rgba(0,0,0,.13)}.muze-chess-chat__row.is-mine .muze-chess-chat__bubble{border-color:rgba(76,219,207,.2);border-radius:12px 12px 4px 12px;background:linear-gradient(145deg,rgba(32,111,116,.8),rgba(57,75,128,.82))}
.muze-chess-chat__bubble p{margin:0;overflow-wrap:anywhere;font:650 .68rem/1.42 system-ui,sans-serif}.muze-chess-chat__bubble img{display:block;max-width:100%;max-height:140px;margin-top:6px;border-radius:8px;object-fit:contain}.muze-chess-chat__bubble time{display:block;margin-top:4px;color:rgba(238,247,249,.48);font:650 .5rem/1 system-ui,sans-serif;text-align:right}
.muze-chess-chat__status{min-height:17px;margin:0;padding:2px 9px;color:rgba(222,239,242,.58);font:700 .56rem/1.3 system-ui,sans-serif}.muze-chess-chat__status.is-error{color:#ffb5c7}
.muze-chess-chat__composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;flex:0 0 auto;padding:8px;border-top:1px solid rgba(255,255,255,.07);background:rgba(9,13,20,.76)}
.muze-chess-chat__composer textarea{box-sizing:border-box;width:100%;min-height:38px;max-height:90px;resize:vertical;padding:9px 10px;border:1px solid rgba(130,204,215,.2);border-radius:10px;background:#121925;color:#f4fbff;font:650 .7rem/1.35 system-ui,sans-serif;outline:0;scrollbar-color:#4c9eaa rgba(255,255,255,.04);scrollbar-width:thin}.muze-chess-chat__composer textarea:focus{border-color:#58dcd9;box-shadow:0 0 0 3px rgba(88,220,217,.1)}
.muze-chess-chat__composer button{min-width:54px!important;height:38px!important}
@media(max-width:820px){.muze-profile-chess.is-expanded.is-empty-game{top:8px;right:8px;left:8px;width:auto;height:auto;max-height:calc(100dvh - 16px)}.muze-chess-chat__messages{min-height:88px}.muze-chess-chat>header{padding:6px 8px}.muze-chess-chat>header img{width:32px;height:32px}.muze-chess-chat__composer{padding:6px}}
@media(max-width:520px){.muze-profile-chess.is-compact .muze-chess-empty{grid-template-columns:auto minmax(0,1fr)}.muze-profile-chess.is-compact .muze-chess-empty__toggle{grid-column:1/-1;width:100%!important}.muze-profile-chess.is-expanded.is-empty-game .muze-chess-empty{padding:5px 38px 5px 5px}}

/* 0.28.9 — Muze LumaFour setup is readable and refined in the narrow left rail. */
.muze-profile-widget[data-widget-type="connect-four-game"]{border-color:rgba(74,218,211,.2);background:linear-gradient(155deg,rgba(21,32,45,.96),rgba(9,14,23,.97));box-shadow:0 16px 38px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.035)}
.muze-profile-widget[data-widget-type="connect-four-game"]>.muze-profile-widget__header>span{border-color:rgba(77,220,213,.34);border-radius:12px;background:linear-gradient(145deg,rgba(29,113,119,.68),rgba(48,70,112,.72));box-shadow:0 8px 24px rgba(18,99,107,.2);color:#9cf8f0}
.muze-profile-widget[data-widget-type="connect-four-game"]>.muze-profile-widget__header h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:.9rem;font-weight:850;letter-spacing:.01em}
.muze-profile-widget[data-widget-type="connect-four-game"] .muze-chess-empty__piece{border:1px solid rgba(83,226,216,.28);border-radius:13px;background:linear-gradient(145deg,#176f78,#465e94);box-shadow:0 9px 24px rgba(11,93,102,.24);font-family:system-ui,sans-serif}
.muze-profile-widget[data-widget-type="connect-four-game"] .muze-chess-empty__toggle,.muze-profile-widget[data-widget-type="connect-four-game"] .muze-chess-friend-start,.muze-profile-widget[data-widget-type="connect-four-game"] .muze-chess-ai-start{border:1px solid rgba(96,220,215,.3)!important;border-radius:9px!important;background:linear-gradient(145deg,rgba(31,91,99,.9),rgba(46,63,102,.92))!important;box-shadow:0 5px 15px rgba(0,0,0,.2)!important;color:#f3ffff!important;font:800 .7rem/1.15 Inter,ui-sans-serif,system-ui,sans-serif!important;text-shadow:none!important}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-empty{gap:9px}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-empty>div:not(.muze-chess-empty__actions){display:grid;gap:2px}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-empty>div>strong{font:850 .82rem/1.2 Inter,ui-sans-serif,system-ui,sans-serif}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-empty>div>p{font:500 .67rem/1.42 Inter,ui-sans-serif,system-ui,sans-serif}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-start-options{grid-template-columns:1fr;gap:8px}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-setup{grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px;padding:9px;border-radius:12px;background:linear-gradient(150deg,rgba(28,42,55,.88),rgba(12,18,27,.9))}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup header,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-setup header{display:contents}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup header>span,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-setup header>span{grid-row:1/3;width:32px;height:32px;border-radius:10px;font-size:.9rem}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup header>div,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-setup header>div{grid-column:2;min-width:0}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup header strong,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-setup header strong{font:800 .74rem/1.15 Inter,ui-sans-serif,system-ui,sans-serif}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup header small,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-setup header small{display:none}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup label,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-setup label,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-setup>a{grid-column:1/-1}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-friend-start,.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-ai-start{grid-column:1/-1;min-height:34px!important;width:100%}
.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-demo-test{margin-top:0;padding-top:7px}
@media(max-width:520px){.muze-profile-widget[data-widget-type="connect-four-game"]{padding:14px}.muze-profile-widget[data-widget-type="connect-four-game"] .muze-chess-empty__toggle{width:auto!important}.muze-profile-widget[data-widget-zone="left"][data-widget-type="connect-four-game"] .muze-chess-start-options{grid-template-columns:1fr}}

/* First-class profile games share the Chess window, persistence and Messenger contract. */
.muze-mini-game{--mini-rose:#ff4f91;--mini-aqua:#43d9d2;--mini-gold:#ffd166;--mini-ink:#101722}
.muze-mini-game__board-shell{width:min(100%,520px)}
.muze-mini-game__player{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:2px 8px;padding:10px;border:1px solid rgba(119,214,222,.16);border-radius:12px;background:linear-gradient(150deg,rgba(35,48,62,.74),rgba(12,17,25,.82))}
.muze-mini-game__player span{overflow:hidden;color:#eaf8fb;font-size:.68rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.muze-mini-game__player strong{grid-row:1/3;grid-column:2;color:#fff;font:900 1.55rem/1 system-ui,sans-serif}.muze-mini-game__player small{color:rgba(218,235,239,.52);font-size:.58rem;text-transform:uppercase;letter-spacing:.08em}
.muze-mini-game__rules p{margin:6px 0;color:rgba(230,241,244,.72);font-size:.66rem;line-height:1.45}.muze-mini-game__history li{grid-template-columns:minmax(0,1fr);gap:1px}.muze-mini-game__history li b,.muze-mini-game__history li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muze-mini-game__history li b{color:#eaf8fb;font-size:.58rem}.muze-mini-game__legend{justify-content:center}
.muze-game-board--premium{width:100%;margin:0 auto;isolation:isolate}
.muze-game-board--ttt.muze-game-board--premium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:520px;padding:8px;border:1px solid rgba(120,218,225,.2);border-radius:18px;background:linear-gradient(145deg,rgba(24,35,48,.92),rgba(9,13,20,.96));box-shadow:0 22px 50px rgba(0,0,0,.38)}
.muze-profile-chess .muze-game-board--ttt.muze-game-board--premium button{display:grid!important;place-items:center;aspect-ratio:1;min-height:0!important;padding:0!important;border:1px solid rgba(157,218,225,.16)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(44,59,75,.86),rgba(20,27,39,.94))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important}
.muze-game-board--ttt.muze-game-board--premium button:not(:disabled):hover{border-color:var(--mini-aqua)!important;background:linear-gradient(145deg,rgba(39,83,91,.9),rgba(22,39,52,.96))!important}.muze-game-board--ttt.muze-game-board--premium button>span{font:900 clamp(2.3rem,10vw,5.4rem)/1 system-ui,sans-serif;text-shadow:0 8px 25px rgba(0,0,0,.38)}.muze-game-board--ttt .is-x>span{color:var(--mini-rose)}.muze-game-board--ttt .is-o>span{color:var(--mini-aqua)}
.muze-game-connect-controls{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-width:520px;margin:0 auto 7px}.muze-profile-chess .muze-game-connect-controls button{display:grid!important;place-items:center;min-height:30px!important;padding:2px!important;border-radius:8px!important;color:#8cece7!important}.muze-game-connect-controls button>span{font-size:1.05rem;line-height:1}
.muze-game-board--connect.muze-game-board--premium{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:520px;padding:10px;border:1px solid rgba(102,214,222,.25);border-radius:19px;background:linear-gradient(145deg,#21405e,#17283e);box-shadow:0 22px 50px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.08)}
.muze-game-board--connect.muze-game-board--premium span{aspect-ratio:1;border:2px solid rgba(255,255,255,.07);border-radius:50%;background:radial-gradient(circle at 35% 30%,#1c2938,#080d15 72%);box-shadow:inset 0 5px 10px rgba(0,0,0,.55)}.muze-game-board--connect.muze-game-board--premium span.is-r{border-color:#ff8bb6;background:radial-gradient(circle at 32% 25%,#ffb0ce,var(--mini-rose) 45%,#8b1e4f 95%);box-shadow:0 0 16px rgba(255,79,145,.28)}.muze-game-board--connect.muze-game-board--premium span.is-y{border-color:#9bf7ef;background:radial-gradient(circle at 32% 25%,#c4fff9,var(--mini-aqua) 45%,#126f72 95%);box-shadow:0 0 16px rgba(67,217,210,.25)}
.muze-game-board--checkers{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));overflow:hidden;aspect-ratio:1;max-width:560px;border:7px solid #171d29;border-radius:17px;background:#d6c5ae;box-shadow:0 22px 55px rgba(0,0,0,.46)}
.muze-profile-chess .muze-game-board--checkers button{display:grid!important;place-items:center;aspect-ratio:1;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#d8c9b4!important;box-shadow:inset 0 0 0 1px rgba(41,30,37,.06)!important;position:relative}
.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+1),.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+3),.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+5),.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+7),.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+10),.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+12),.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+14),.muze-profile-chess .muze-game-board--checkers button:nth-child(16n+16){background:#354253!important}
.muze-game-board--checkers button>span{display:grid;place-items:center;width:72%;aspect-ratio:1;border-radius:50%;position:relative}.muze-game-board--checkers .is-rose-piece>span{border:3px solid #ff9dbc;background:radial-gradient(circle at 35% 28%,#ffbed3,var(--mini-rose) 52%,#8e214f);box-shadow:0 5px 8px rgba(0,0,0,.42),inset 0 0 0 4px rgba(255,255,255,.12)}.muze-game-board--checkers .is-aqua-piece>span{border:3px solid #9ef8ef;background:radial-gradient(circle at 35% 28%,#c4fff9,var(--mini-aqua) 52%,#117078);box-shadow:0 5px 8px rgba(0,0,0,.42),inset 0 0 0 4px rgba(255,255,255,.12)}.muze-game-board--checkers button>span i{color:#fff5b7;font:900 clamp(.55rem,2vw,1.1rem)/1 system-ui,sans-serif;text-shadow:0 2px 4px rgba(0,0,0,.45)}
.muze-game-board--checkers button.is-selected{box-shadow:inset 0 0 0 4px var(--mini-gold)!important;z-index:3}.muze-game-board--checkers button.is-legal:after{content:"";width:24%;aspect-ratio:1;border-radius:50%;background:var(--mini-aqua);box-shadow:0 0 0 4px rgba(67,217,210,.2),0 0 18px rgba(67,217,210,.6)}.muze-game-board--checkers button.has-piece.is-legal:after{position:absolute;inset:4px;width:auto;border:4px solid var(--mini-aqua);border-radius:8px;background:transparent}.muze-game-board--checkers button.is-forced>span{animation:muze-game-forced 1.15s ease-in-out infinite}@keyframes muze-game-forced{50%{box-shadow:0 0 0 6px rgba(255,209,102,.24),0 6px 12px rgba(0,0,0,.45)}}
.muze-game-race--premium{position:relative;display:grid;gap:16px;margin:0;overflow:hidden;padding:20px 34px 20px 16px;border:1px solid rgba(112,215,223,.22);border-radius:20px;background:radial-gradient(circle at 80% 20%,rgba(67,217,210,.12),transparent 38%),linear-gradient(145deg,#1b2635,#0c121b);box-shadow:0 22px 50px rgba(0,0,0,.42)}
.muze-game-race__lane{position:relative;height:70px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 9%,rgba(255,255,255,.12) 9% 10%),linear-gradient(180deg,#2b3543,#141b25);box-shadow:inset 0 5px 14px rgba(0,0,0,.35)}.muze-game-race__lane:after{content:"";position:absolute;left:0;right:0;top:50%;border-top:2px dashed rgba(255,255,255,.2)}
.muze-game-race__car{position:absolute;z-index:2;left:clamp(0%,calc(var(--race-progress) - 8%),92%);top:50%;margin:0!important;transform:translateY(-50%);font-size:2.2rem;filter:drop-shadow(0 6px 5px rgba(0,0,0,.55));transition:left .35s cubic-bezier(.2,.8,.2,1)}.muze-game-race__car.is-rose{filter:drop-shadow(0 0 9px rgba(255,79,145,.45)) drop-shadow(0 6px 5px rgba(0,0,0,.5))}.muze-game-race__car.is-aqua{filter:drop-shadow(0 0 9px rgba(67,217,210,.42)) drop-shadow(0 6px 5px rgba(0,0,0,.5))}.muze-game-race__finish{position:absolute;right:8px;top:13px;bottom:13px;display:grid;place-items:center;width:20px;background:repeating-conic-gradient(#fff 0 25%,#151b24 0 50%) 0/10px 10px}.muze-game-race__finish b{padding:4px 2px;background:#111925;color:#fff;font-size:.44rem;letter-spacing:.05em;writing-mode:vertical-rl}
.muze-game-race__choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.muze-profile-chess .muze-game-race__choices button{display:grid!important;gap:3px;min-height:58px!important;text-align:left}.muze-game-race__choices strong{font-size:.75rem}.muze-game-race__choices small{color:rgba(223,238,242,.58);font-size:.56rem;line-height:1.25}
.muze-profile-chess.is-expanded .muze-mini-game__board-shell{width:var(--muze-chess-fitted-board,520px);max-width:100%}.muze-profile-chess.is-expanded .muze-mini-game__board-shell .muze-chess__board-frame{display:flex;flex-direction:column;justify-content:center;min-height:0}.muze-profile-chess.is-expanded .muze-game-board--ttt{max-height:100%}.muze-profile-chess.is-busy .muze-game-board--premium,.muze-profile-chess.is-busy .muze-game-race--premium{pointer-events:none}
@media(max-width:820px){.muze-mini-game__player{padding:7px}.muze-mini-game__player strong{font-size:1.15rem}.muze-mini-game__history,.muze-mini-game__rules{display:none!important}.muze-profile-chess.is-expanded .muze-mini-game__board-shell{width:min(var(--muze-chess-fitted-board,520px),100%)}.muze-game-race__lane{height:52px}.muze-game-race__car{font-size:1.7rem}}
@media(max-width:520px){.muze-game-board--connect.muze-game-board--premium{gap:4px;padding:7px}.muze-game-board--checkers{border-width:4px}.muze-game-race--premium{gap:10px;padding:12px 27px 12px 10px}.muze-game-race__choices{grid-template-columns:1fr}.muze-profile-chess .muze-game-race__choices button{min-height:42px!important}.muze-game-race__choices small{display:none}}
@media(prefers-reduced-motion:reduce){.muze-game-board--checkers button.is-forced>span{animation:none}.muze-game-race__car{transition:none}}

/* 0.32.3 — card games use a contained, scrollable expanded window at every viewport. */
.muze-profile-chess.muze-profile-card-game.is-expanded{box-sizing:border-box;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-color:rgba(83,230,210,.58) rgba(255,255,255,.045);scrollbar-gutter:stable;scrollbar-width:thin}
.muze-profile-chess.muze-profile-card-game.is-expanded::-webkit-scrollbar{width:10px}.muze-profile-chess.muze-profile-card-game.is-expanded::-webkit-scrollbar-track{border-radius:999px;background:rgba(255,255,255,.04)}.muze-profile-chess.muze-profile-card-game.is-expanded::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:linear-gradient(#55d9d1,#536eab);background-clip:padding-box}
.muze-profile-chess.muze-profile-card-game.is-expanded>.muze-chess,.muze-profile-chess.muze-profile-card-game.is-expanded>:where([data-game-live-shell])>.muze-chess{height:auto!important;min-height:100%;overflow:visible}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__match{position:sticky;top:0;z-index:35;margin-bottom:8px;background:rgba(18,25,36,.96);box-shadow:0 8px 22px rgba(0,0,0,.28);backdrop-filter:blur(16px)}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__arena{min-height:0!important;overflow:visible!important;align-items:start}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-mini-game__board-shell{align-self:start;width:100%!important;height:auto!important;max-width:720px!important;max-height:none!important;overflow:visible}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__board-frame{display:block!important;min-height:0!important;overflow:visible!important}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-card-table{box-sizing:border-box;width:100%;max-width:100%;min-height:0!important;align-content:start}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-card-table>*{box-sizing:border-box;min-width:0;max-width:100%}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-card-hand,.muze-profile-chess.muze-profile-card-game.is-expanded .muze-card-fan{box-sizing:border-box;width:100%;max-width:100%;justify-content:flex-start;scrollbar-color:rgba(83,230,210,.58) rgba(255,255,255,.035)}
.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__side{max-height:none;overflow:visible}
@media(max-width:820px){
	.muze-profile-chess.muze-profile-card-game.is-expanded,.muze-profile-chess.muze-profile-card-game.is-expanded.has-embedded-messenger{top:8px;right:8px;bottom:8px;left:8px;width:auto;height:auto;max-height:none;padding:10px;overflow-y:auto!important}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__arena{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:9px}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-mini-game__board-shell{grid-column:1;grid-row:1;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__side{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;padding:0;overflow:visible}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__side--you{grid-column:1;grid-row:2}.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__side--them{grid-column:1;grid-row:3}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__messenger-slot{grid-column:1;grid-row:4;min-height:220px}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-mini-game__history,.muze-profile-chess.muze-profile-card-game.is-expanded .muze-mini-game__rules{display:grid!important}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__save-note{display:flex}
}
@media(max-width:520px){
	.muze-profile-chess.muze-profile-card-game.is-expanded{padding:8px}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-chess__match{top:-1px;padding:7px 8px}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-card-table{gap:9px;padding:9px;border-radius:15px}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-playing-card{flex-basis:50px;width:50px}
	.muze-profile-chess.muze-profile-card-game.is-expanded .muze-card-rank-ask{gap:4px;padding:8px}.muze-profile-chess.muze-profile-card-game.is-expanded .muze-card-rank-ask button{min-height:31px;padding:6px 8px}
}

/* The live board and challenge queue share the same contained expanded window. */
.muze-profile-chess.is-expanded>[data-game-live-shell]{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto}
.muze-profile-chess.muze-profile-card-game.is-expanded>[data-game-live-shell]{height:auto;min-height:100%;grid-template-rows:auto auto}

/* Narrow profile columns keep the game setup action inside its card. */
@media(max-width:820px){
  .muze-profile-chess:not(.is-expanded) :is(.muze-chess,.muze-chess-empty,.muze-chess-empty>div,.muze-chess-start-options,.muze-chess-friend-setup,.muze-chess-ai-setup,.muze-chess__match,.muze-chess__board-shell){min-width:0;max-width:100%}
  .muze-profile-chess:not(.is-expanded) .muze-chess-empty strong{overflow-wrap:anywhere}
  .muze-profile-chess.is-compact .muze-chess-empty{grid-template-columns:42px minmax(0,1fr)}
  .muze-profile-chess.is-compact .muze-chess-empty__toggle{grid-column:1/-1;justify-self:stretch;width:100%!important;white-space:normal}
  .muze-profile-chess:not(.is-expanded) .muze-chess__window-actions{flex-wrap:wrap;min-width:0;max-width:100%}
  .muze-chess-friend-setup header>div,.muze-chess-ai-setup header>div{min-width:0;overflow-wrap:anywhere}
  .muze-chess-start-options :is(select,input,label){min-width:0;max-width:100%}
}
@media(max-width:700px){
  .muze-chess-start-options{grid-template-columns:minmax(0,1fr)}
  .muze-profile-chess .muze-chess-empty__toggle,.muze-profile-chess .muze-chess-start-options button{min-height:44px!important;font-size:.8125rem!important;white-space:normal}
  .muze-chess-start-options select{font-size:16px!important;min-height:44px}
}


