.ch-host{min-width:0;container-type:inline-size}@media (width>=62rem){.rm__layout.has-chess:not(.is-side-hidden){grid-template-columns:minmax(0,1fr) 36rem}}.rm-pane--chess{padding:.75rem}.ch-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);align-items:center;gap:1rem;padding:1rem 1.1rem;display:flex}.ch-card__img{object-fit:cover;border-radius:var(--radius);flex:none;width:4.5rem;height:4.5rem}.ch-card__title{font-family:var(--font-display);color:var(--heading);margin:0 0 .15rem;font-size:1.1rem}.ch-card__text{color:var(--text-2);margin:0 0 .6rem}.ch-muted{color:var(--text-3);margin:.2rem 0 0;font-size:.9rem}.ch-error{color:var(--danger);margin:0;font-size:.9rem}.ch-error[hidden]{display:none}.ch-lobby{gap:1rem;display:grid}.ch-lobby__title{font-family:var(--font-display);color:var(--heading);margin:0;font-size:1.4rem}.ch-lobby__lede{color:var(--text-2);margin:.2rem 0 0;font-size:.92rem}.ch-new{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);gap:.85rem;padding:.9rem;display:grid}.ch-fieldset{border:0;min-width:0;margin:0;padding:0}.ch-fieldset legend{color:var(--heading);margin-bottom:.45rem;padding:0;font-size:.92rem;font-weight:600}.ch-choices{grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:.45rem;display:grid}.ch-choice{cursor:pointer;display:block;position:relative}.ch-choice input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.ch-choice__text{background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);padding:.5rem .7rem;display:grid}.ch-choice__text strong{color:var(--text);font-size:.92rem}.ch-choice__text span{color:var(--text-3);font-size:.78rem}.ch-choice input:checked+.ch-choice__text{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, var(--surface))}.ch-choice input:focus-visible+.ch-choice__text{outline:2px solid var(--accent);outline-offset:2px}.ch-color{color:var(--text-2);align-items:center;gap:.6rem;font-size:.92rem;display:flex}.ch-color select{font:inherit;border-radius:var(--radius);border:1px solid var(--line-strong);background:var(--surface);color:var(--text);padding:.35rem .6rem}.ch-list__title{color:var(--heading);margin:0 0 .5rem;font-size:1rem}.ch-games{gap:.45rem;margin:0;padding:0;list-style:none;display:grid}.ch-games__item{background:var(--surface-2);border-radius:var(--radius);justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .75rem;display:flex}.ch-games__who{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ch-game{grid-template-columns:minmax(0,1fr);align-items:start;gap:.9rem;display:grid}@container (width>=46rem){.ch-game{grid-template-columns:minmax(0,1fr) 16rem}}.ch-game__board{gap:.45rem;width:min(100%,36rem);margin-inline:auto;display:grid;position:relative}.ch-board{aspect-ratio:1;width:100%}.ch-player{align-items:center;gap:.5rem;display:flex}.ch-player__name{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text);flex:1;font-weight:600;overflow:hidden}.ch-dot{background:var(--text-3);border-radius:50%;flex:none;width:.6rem;height:.6rem}.ch-dot[data-online=true]{background:var(--ok)}.ch-dot[hidden]{display:none}.ch-clock{text-align:center;min-width:4.5rem;font-family:var(--font-display);font-variant-numeric:tabular-nums;color:var(--text-2);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:.15rem .6rem;font-size:1.2rem}.ch-clock[hidden]{display:none}.ch-clock.is-running{color:var(--on-accent);background:var(--accent);border-color:var(--accent)}.ch-clock.is-low{color:#fff;background:var(--danger);border-color:var(--danger)}.ch-game__side{align-content:start;gap:.7rem;min-width:0;display:grid}.ch-status{color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);margin:0;padding:.5rem .75rem;font-weight:600}.ch-status[data-tone=mine]{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, var(--surface))}.ch-actions{flex-wrap:wrap;gap:.4rem;display:flex}.ch-moves{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);font-variant-numeric:tabular-nums;max-height:12rem;margin:0;padding:.4rem .65rem;list-style:none;overflow-y:auto}.ch-moves__row{color:var(--text);grid-template-columns:2rem 1fr 1fr;gap:.4rem;padding:.1rem 0;display:grid}.ch-moves__n{color:var(--text-3)}.ch-promo{z-index:5;background:color-mix(in srgb, var(--surface) 92%, transparent);border-radius:var(--radius);place-content:center;justify-items:center;gap:.75rem;display:grid;position:absolute;inset:0}.ch-promo[hidden]{display:none}.ch-promo__title{color:var(--heading);margin:0;font-weight:600}.ch-promo__row{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.ch-promo__btn{justify-items:center;gap:.1rem;padding:.5rem .8rem;display:grid}.ch-promo__glyph{font-size:2rem;line-height:1}@media (prefers-reduced-motion:reduce){.ch-clock{transition:none}}.ch-host,.ch-dialog{--ch-serif:"Cormorant Garamond", "DM Serif Display", Georgia, "Times New Roman", serif}.ch-host{font-family:var(--ch-serif);font-size:1.08rem}.ch-host .btn,.ch-dialog .btn{font-family:var(--font-body)}.ch-lobby,.ch-game{background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:2px var(--radius) var(--radius) 2px;box-shadow:3px 3px 0 var(--surface-2), 4px 4px 0 var(--line);padding:clamp(.8rem,3cqi,1.8rem)}.ch-lobby__head{text-align:center;border-bottom:3px double var(--rule-accent);padding-bottom:.7rem}.ch-lobby__title{font-size:2rem;font-weight:400}.ch-lobby__lede{font-size:1.05rem;font-style:italic}.ch-new{background:0 0;border-width:0 0 1px;border-radius:0;padding:.3rem 0 1.1rem}.ch-fieldset legend,.ch-list__title{font-family:var(--font-display);font-size:1.1rem;font-weight:400}.ch-choice__text strong{font-size:1.05rem}.ch-choice__text span{font-size:.9rem;font-style:italic}.ch-games{gap:0}.ch-games__item{border-bottom:1px dotted var(--line-strong);background:0 0;border-radius:0;padding:.65rem 0}.ch-board{border:1px solid var(--accent);outline:4px solid var(--surface);box-shadow:0 0 0 5px var(--line-strong);margin-block:.3rem}.ch-board cg-board{background-color:#eef4f8;background-image:conic-gradient(#7ea6c0 25%, #eef4f8 0 50%, #7ea6c0 0 75%, #eef4f8 0);background-size:25% 25%}.ch-board coords{font-family:var(--font-body);font-weight:700}.ch-board.cg-wrap coords coord:nth-child(n){color:#06344f;text-shadow:0 0 2px #fff}.ch-player__name{font-family:var(--font-display);font-size:1.1rem;font-weight:400}.ch-status{text-align:center;background:0 0;border-style:double;border-width:0 0 3px;border-radius:0;font-size:1.15rem;font-style:italic}.ch-status[data-tone=mine]{background:color-mix(in srgb, var(--accent) 8%, transparent)}.ch-moves{font-family:var(--ch-serif);background:0 0;border-width:1px 0;border-radius:0;font-size:1.1rem}.ch-moves__row:nth-child(2n){background:var(--surface-2)}.ch-toast{text-align:center;color:var(--text);background:var(--surface-2);border:1px solid var(--line-strong);border-radius:var(--radius);margin:0;padding:.45rem .75rem;font-style:italic}.ch-dialog{text-align:center;width:min(22rem,100vw - 2rem);color:var(--text);background:var(--surface);font-family:var(--ch-serif);border:1px solid var(--line-strong);border-top:5px solid var(--accent);border-radius:var(--radius);padding:1.6rem 1.4rem 1.3rem;box-shadow:0 18px 50px -12px #00000073}.ch-dialog::backdrop{background:#0a141c80}.ch-dialog[open]{animation:.18s ease-out ch-pop}.ch-dialog__glyph{color:var(--accent);font-size:2.8rem;line-height:1}.ch-dialog__title{margin:.5rem 0 .3rem;font-size:1.6rem}.ch-dialog__text{color:var(--text-2);margin:0 0 1.1rem;font-size:1.1rem}.ch-dialog__actions{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}@keyframes ch-pop{0%{opacity:0;transform:translateY(.5rem)}}@media (prefers-reduced-motion:reduce){.ch-dialog[open]{animation:none}}
