/* Floating messages reserve no space in the lobby or game table. */
html body #notice:not(:empty){
 display:flex!important;position:fixed!important;
 top:calc(max(env(safe-area-inset-top,0px),var(--notice-header-bottom,0px)) + 12px)!important;
 right:calc(env(safe-area-inset-right,0px) + 20px)!important;
 bottom:auto!important;left:auto!important;transform:none!important;
 width:min(440px,calc(100vw - 40px))!important;box-sizing:border-box;
 margin:0!important;padding:16px 18px!important;gap:16px;align-items:center;
 z-index:10000;border:1px solid #aa914a;border-radius:14px;
 background:#1b2c48;color:#f2e5bc;box-shadow:0 8px 28px #0006;
 font-size:15px;line-height:1.45;overflow-wrap:anywhere;
}
html body #notice:empty,html body #notice[hidden],html body #tableFeedback{display:none!important}
html body #notice[data-kind=error]{background:#51262d;color:#ffe4e6;border-color:#df757c}
html body #notice[data-kind=success]{background:#39331c;color:#ffe39a;border-color:#d4af37}
#notice>span{flex:1;min-width:0}
#notice .notice-close{flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;margin:0;border:0;background:transparent;color:inherit;font-size:27px;line-height:1;cursor:pointer}
#notice .notice-close:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:600px){html body #notice:not(:empty){top:calc(max(env(safe-area-inset-top,0px),var(--notice-header-bottom,0px)) + 12px)!important;right:12px!important;width:calc(100vw - 24px)!important;padding:12px 14px!important;font-size:14px}}

/* Invalid moves are anchored to the player's area without intercepting play. */
html body #notice.player-area-notice:not(:empty){
 top:var(--player-notice-top)!important;left:var(--player-notice-left)!important;right:auto!important;
 width:var(--player-notice-width)!important;background:#941f32;color:#fff7ed;
 border:2px solid #ffb1a3;box-shadow:0 4px 20px #0009,0 0 0 3px #941f3233;
 font-weight:600;pointer-events:none;
}
#notice.player-area-notice .notice-close{pointer-events:auto}
@media(max-width:600px),(max-height:550px){html body #notice.player-area-notice:not(:empty){font-size:12px;padding:8px 10px!important;gap:8px}}
