.game-chat-owner{min-width:0}.game-chat-trigger{z-index:90;top:50%;right:max(0px, env(safe-area-inset-right));border:1px solid var(--ui-border-strong);background:var(--ui-surface-raised);width:44px;min-width:44px;min-height:44px;color:var(--ui-heading);box-shadow:var(--ui-shadow);cursor:pointer;font:700 .76rem/1 var(--site-sans);border-right:0;border-radius:.65rem 0 0 .65rem;justify-content:center;align-items:center;gap:.35rem;padding:.52rem .45rem;transition:width .16s,padding .16s;display:inline-flex;position:fixed;transform:translateY(-50%)}.game-chat-trigger:hover{background:var(--ui-surface-hover)}.game-chat-trigger:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}.game-chat-trigger[aria-expanded=true]{visibility:hidden;pointer-events:none}.game-chat-trigger__rest{background:currentColor;border-radius:.45rem;width:.9rem;height:.72rem;font-size:0;position:relative}.game-chat-trigger__rest:after{clip-path:polygon(0 0,100% 0,100% 100%);content:"";background:currentColor;width:.28rem;height:.28rem;position:absolute;bottom:-.18rem;right:.08rem}.game-chat-trigger__text{opacity:0;white-space:nowrap;width:0;transition:opacity .12s;overflow:hidden}.game-chat-trigger:hover,.game-chat-trigger:focus-visible{width:5.2rem;padding-inline:.65rem}.game-chat-trigger:hover .game-chat-trigger__text,.game-chat-trigger:focus-visible .game-chat-trigger__text{opacity:1;width:auto}.game-chat-trigger__badge{background:var(--ui-accent);min-width:1.25rem;height:1.25rem;color:var(--ui-accent-contrast);font-variant-numeric:tabular-nums;border-radius:999px;place-items:center;padding-inline:.2rem;font-size:.68rem;display:inline-grid;position:absolute;top:-.3rem;left:-.35rem}.game-chat-rail{border:1px solid var(--ui-border);background:var(--ui-surface-raised);min-width:0;height:min(100svh - 1rem,52rem);max-height:calc(100svh - 1rem);box-shadow:var(--ui-shadow-strong);border-radius:.75rem;flex-direction:column;display:flex;overflow:hidden}.game-chat-panel{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.game-chat-panel__heading{border-bottom:1px solid var(--ui-border);background:var(--ui-surface);flex:none;justify-content:space-between;align-items:center;gap:.75rem;min-height:4.25rem;padding:.78rem .9rem;display:flex}.game-chat-panel__heading h2{color:var(--ui-heading);font:700 1.12rem/1.2 var(--site-serif);margin:0}.game-chat-panel__heading small,.game-chat-dialog__subtitle{color:var(--ui-text-secondary);font-size:.72rem}.game-chat__close{place-items:center;width:2.35rem;min-width:44px;height:2.35rem;min-height:44px;padding:0;font-size:1.45rem;display:grid}.game-chat-panel__body{flex-direction:column;flex:1;gap:.6rem;min-height:0;padding:.75rem;display:flex}.game-chat__messages{overscroll-behavior:contain;flex-direction:column;flex:1;gap:.5rem;min-height:0;display:flex;overflow-y:auto}.game-chat__load-older{align-self:center}.game-chat__empty,.game-chat__status,.game-chat__error{color:var(--ui-text-secondary);margin:.35rem 0;font-size:.78rem;line-height:1.4}.game-chat__status{border-left:.2rem solid var(--ui-warning-border);background:var(--ui-warning-surface);color:var(--ui-warning-text);padding:.6rem .7rem}.game-chat__error{border-left:.2rem solid var(--ui-danger-border);background:var(--ui-danger-surface);color:var(--ui-danger-text);padding:.55rem .65rem}.game-chat__message-list{gap:.55rem;margin:0;padding:0;list-style:none;display:grid}.game-chat__message{border:1px solid var(--ui-border);background:var(--ui-surface);max-width:94%;color:var(--ui-text);overflow-wrap:anywhere;border-radius:.65rem;padding:.55rem .62rem;font-size:.78rem;line-height:1.4}.game-chat__message--own{border-color:var(--ui-success-border);background:var(--ui-success-surface-subtle);justify-self:end}.game-chat__message--unavailable{color:var(--ui-text-muted);background:var(--ui-surface-subtle)}.game-chat__message-meta{color:var(--ui-text-secondary);justify-content:space-between;align-items:baseline;gap:.6rem;margin-bottom:.18rem;font-size:.68rem;display:flex}.game-chat__message-meta strong{color:var(--ui-heading)}.game-chat__message-meta time{font-variant-numeric:tabular-nums;flex:none}.game-chat__message p{margin:0}.game-chat__message-actions{justify-content:flex-end;gap:.35rem;margin-top:.35rem;display:flex}.game-chat__message-action{min-height:28px;color:var(--ui-text-secondary);cursor:pointer;font:700 .65rem/1 var(--site-sans);background:0 0;border:0;padding:.2rem .25rem;text-decoration:underline}.game-chat__message-action:disabled{cursor:default;opacity:.55}.game-chat__retry{border:1px solid var(--ui-warning-border);background:var(--ui-warning-surface);min-width:0;color:var(--ui-warning-text);border-radius:.45rem;justify-content:space-between;align-items:center;gap:.5rem;padding:.45rem .55rem;font-size:.72rem;display:flex}.game-chat__composer{border-top:1px solid var(--ui-border);grid-template-columns:minmax(0,1fr) auto;gap:.4rem;padding-top:.6rem;display:grid}.game-chat__composer label{color:var(--ui-text-secondary);grid-column:1/-1;font-size:.7rem;font-weight:700}.game-chat__composer textarea{resize:vertical;border:1px solid var(--ui-input-border);background:var(--ui-input);min-width:0;color:var(--ui-text);font:inherit;border-radius:.45rem;padding:.5rem .55rem;font-size:.78rem}.game-chat__composer textarea:focus-visible{outline:3px solid var(--ui-focus);outline-offset:1px}.game-chat__composer .game-button{align-self:end;min-width:4.2rem;min-height:44px;padding-inline:.65rem}.game-dialog.game-chat-dialog{--game-surface-padding:0;flex-direction:column;width:min(420px,72vw);max-height:calc(100svh - 2rem);display:flex;overflow:hidden}.game-chat-dialog>.game-dialog__heading{border-bottom:0;flex:none;margin:0;padding:.78rem .9rem .45rem}.game-chat-dialog>.game-dialog__heading h2{font:700 1.2rem/1.2 var(--site-serif)}.game-chat-dialog>.game-dialog__heading+div{flex-direction:column;flex:1;min-height:0;display:flex}.game-chat-dialog__subtitle{border-bottom:1px solid var(--ui-border);margin:0;padding:0 .9rem .7rem}.game-chat-dialog .game-chat-panel{min-height:0}.game-chat-dialog .game-chat-panel__body{padding-top:.55rem}@media (width>=1280px){.game-layout--with-chat:has(.game-chat-rail){grid-template-columns:minmax(0,1fr) minmax(17rem,23rem) 348px}.game-layout--with-chat:has(.game-chat-rail)>.game-chat-owner{grid-area:1/3/span 3;align-self:stretch;display:block}.game-layout--board-expanded.game-layout--with-chat:has(.game-chat-rail){grid-template-columns:minmax(0,1fr) 348px}.game-layout--board-expanded.game-layout--with-chat:has(.game-chat-rail)>.game-chat-owner{grid-column:2}.game-layout--board-expanded.game-layout--with-chat:has(.game-chat-rail)>.game-sidebar{grid-column:1}.game-layout--with-chat>.game-chat-owner>.game-chat-rail{top:max(.5rem, env(safe-area-inset-top));position:sticky}}@media (width<=1279px){.game-chat-rail{display:none}}@media (width>=721px) and (width<=1279px){.game-dialog.game-chat-dialog{width:min(420px,72vw);max-height:none;padding-left:max(0px, env(safe-area-inset-left));padding-right:max(.9rem, env(safe-area-inset-right));border-radius:.8rem 0 0 .8rem;align-self:stretch;margin:0 0 0 auto}.game-dialog-backdrop:has(.game-chat-dialog){justify-content:flex-end;align-items:stretch;padding:0;display:flex}}@media (width<=720px){.game-layout--chat-open .game-layout__bottom-dock{visibility:hidden;pointer-events:none}.game-dialog.game-chat-dialog{width:100%;max-width:none;max-height:min(74svh,34rem);padding-left:max(.9rem, env(safe-area-inset-left));padding-right:max(.9rem, env(safe-area-inset-right));border-radius:.9rem .9rem 0 0;margin:auto 0 0}.game-dialog-backdrop:has(.game-chat-dialog){align-items:flex-end;padding:0;display:flex}.game-dialog.game-chat-dialog{padding-bottom:env(safe-area-inset-bottom)}.game-chat-dialog .game-chat__composer{padding-bottom:.2rem}.game-chat-trigger{right:max(.35rem, env(safe-area-inset-right))}}@media (prefers-reduced-motion:reduce){.game-chat-trigger,.game-chat-trigger__text{transition:none}}
