.game-shell.theme-connect .play:has(.gravity-room) {background:#edeff1;color:#253142}
.page-game .game-shell.theme-connect.wide .play:has(.gravity-room) {width:min(97%,91rem); min-height:calc(100dvh - 53px);justify-content:flex-start;padding:clamp(.7rem,2.9dvh,1.9rem) clamp(.7rem,2.9vw,2.1rem)}
.game-shell .play .gravity-room {--drop-ink:#263446;--drop-accent:#3b566d;--drop-rail:#354a5c;--drop-cir:#e9ae66;--drop-dia:#91c4c7;--drop-line:#afbbc5;width:100%;min-width:0;max-width:74rem;margin-inline:auto;text-align:start}
.game-shell .play .gravity-room p {margin-inline:0;max-width:none;color:var(--drop-ink);overflow-wrap:anywhere}
.game-shell .play .gravity-room .gravity-kicker {margin:0 0 .2rem;color:#3f657d;font-weight:740}
.game-shell .play .gravity-room h2 {outline:0;color:var(--drop-ink);margin:0 0 clamp(.6rem,1.8dvh,1.25rem);font-size:clamp(1.6rem,min(4vw,6.5dvh),3.45rem);line-height:1.12}
.gravity-layout {display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:clamp(.55rem,3vw,2.25rem);align-items:start}
.gravity-board-panel {max-width:min(100%,calc(11.8dvh * var(--cols)));min-width:0;padding:clamp(.29rem,1vw,.66rem);background:#364a5b;border-radius:.67rem;color:#fffcf4;box-shadow:0 4px 0 #22323f,inset 0 1px 0 #7e9aac}
.gravity-columns,.gravity-letters,.gravity-board {display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:clamp(.14rem,.6vw,.43rem)}
.gravity-columns,.gravity-letters {margin-bottom:clamp(.2rem,.6vw,.43rem)}
.gravity-columns button {min-height:44px;padding:.28rem .1rem;border:1px solid #8099ac;border-radius:.3rem;background:#304254;color:#f8f6ee;font:inherit;font-weight:740;cursor:pointer}
.gravity-columns button[aria-pressed=true] {border-color:#edba81;color:#fff0ae;background:#273544;box-shadow:inset 0 -2px #e0ab72}
.gravity-columns button:disabled {border-color:#6a7b89;color:#a9b6bc;cursor:default}
.gravity-letters {text-align:center;font-weight:700;color:#dce4e7;font-size:.9rem}
.gravity-board {padding:.15rem}
.gravity-grid-with-rows {display:grid;grid-template-columns:1rem minmax(0,1fr);gap:.22rem}
.gravity-row-numbers {display:grid;grid-template-rows:repeat(var(--rows),minmax(0,1fr));align-items:center;justify-items:center;color:#dae5ea;font-size:.73rem}
.gravity-columns,.gravity-letters {margin-inline-start:1.22rem}
.gravity-cell.landed > span {animation:gravity-seat .23s ease-out both}
@keyframes gravity-seat {from{transform:translateY(-27%) scale(.82);opacity:.56}to{transform:translateY(0) scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.gravity-cell.landed > span{animation:none}}
.gravity-cell {aspect-ratio:1;display:grid;place-items:center;position:relative;min-width:0;background:#253544;border-radius:50%;box-shadow:inset 0 2px 5px #152533;color:#26394e;overflow:hidden}
.gravity-cell > span {border-radius:50%;line-height:1;display:grid;place-items:center;width:82%;height:82%;font-weight:770;font-size:clamp(.9rem,min(2.6vw,3.8dvh),2.25rem)}
.gravity-cell.stone-0 > span {background:radial-gradient(circle at 38% 28%,#f4c98f,var(--drop-cir) 72%);border:2px solid #7b472e;box-shadow:inset 0 0 0 3px #e6ab6f}
.gravity-cell.stone-1 > span {background:radial-gradient(circle at 38% 28%,#b4d9d9,var(--drop-dia) 72%);border:2px solid #28506a;box-shadow:inset 0 0 0 3px #98bdc2}
.gravity-cell.ghost > span {background:#526d82;border:2px dashed #ffe2a5;color:#f9dba5}
.gravity-cell.last::after {content:"";position:absolute;inset:3%;border:2px solid #f7edce;border-radius:50%;pointer-events:none}
.gravity-cell.line::after,.gravity-cell.threat::after {content:"";position:absolute;inset:2%;border:3px solid #fff1ad;border-radius:50%;pointer-events:none}
.gravity-cell.threat > span {color:#f9dea1;background:#445264}
.gravity-cell.threat::after {border-style:dashed;border-color:#f4d996}
.gravity-operation {border-block:1px solid var(--drop-line);padding:.55rem 0 .75rem;min-width:0}
.game-shell .play .gravity-operation h3 {margin:.3rem 0 .5rem;color:var(--drop-ink)}
.game-shell .play .gravity-room .gravity-location {font-weight:750;margin:.35rem 0 .65rem;color:var(--drop-ink)}
.gravity-actions,.gravity-possibility > div {display:flex;flex-wrap:wrap;align-items:center;gap:.38rem .53rem;margin:.55rem 0}
.game-shell .play .gravity-room button {min-height:44px}
.gravity-room button:focus-visible {outline:3px solid #c38248;outline-offset:2px}
.gravity-room .button.cta {background:#34556a;color:#fff;border-color:#34556a}
.gravity-room .button.secondary {background:#fffdfa;color:#294458;border-color:#93a9b6}
.gravity-room .button.secondary[aria-pressed=true] {box-shadow:inset 0 0 0 1px #466e87;background:#dfecf0}
.gravity-room .button:disabled {cursor:default;opacity:.58}
.gravity-possibility {border-left:2px solid #8193a4;padding:.38rem 0 .48rem .65rem;margin:.64rem 0;background:linear-gradient(90deg,#dfe8ed,transparent)}
@media(max-width:720px){.gravity-layout{grid-template-columns:minmax(0,1fr)}.gravity-board-panel{max-width:min(100%,37rem);width:100%;margin-inline:auto}.gravity-board{gap:.22rem}.gravity-board-panel{box-sizing:border-box}}
@media(max-width:393px){.gravity-room[data-gravity-cols="7"] .gravity-columns{grid-template-columns:repeat(4,minmax(44px,1fr));margin-inline-start:0}.gravity-room[data-gravity-cols="7"] .gravity-columns button{min-width:44px}}
@media(min-width:960px){.game-shell.wide .gravity-room[data-gravity-cols="7"] .gravity-layout{grid-template-columns:minmax(0,min(54%,77dvh)) minmax(0,1fr)}.game-shell.wide .gravity-room[data-gravity-cols="5"] .gravity-layout{grid-template-columns:minmax(0,min(53%,70dvh)) minmax(0,1fr)}}

.page-game .game-shell.theme-connect:has(.gravity-room) {
  --drop-stage:#f9f2e4;
  --drop-royal:#244f99;
  --drop-border:#bba68b;
  background:var(--drop-stage);color:#192c46;
}
.game-shell.theme-connect .play:has(.gravity-room) {background:transparent}
.page-game .game-shell.theme-connect.wide .play:has(.gravity-room) {min-height:0;margin-block:0}
.page-game .game-shell.theme-connect:has(.gravity-room) .game-toolbar {
  background:var(--drop-stage);color:#192c46;border-color:var(--drop-border);
}
.page-game .game-shell.theme-connect:has(.gravity-room) .game-toolbar .button,
.page-game .game-shell.theme-connect .play .gravity-room .button.secondary {
  background:#fffbf1;color:#233a59;border-color:#8196b2;
}
.page-game .game-shell.theme-connect .play .gravity-room .button.cta {
  background:var(--drop-royal);color:white;border-color:var(--drop-royal);
}
.page-game .game-shell.theme-connect .play .gravity-room .button.cta:enabled:hover {background:#193b78}
.page-game .game-shell.theme-connect .play .gravity-room .button:disabled {
  background:#e3e7ec;color:#526278;border-color:#9dacc0;opacity:1;
}
.game-shell.theme-connect .play .gravity-room {
  --drop-ink:#192c46;--drop-accent:var(--drop-royal);--drop-line:var(--drop-border);
  --drop-cir:#efa339;--drop-dia:#82d3d0;
}
.game-shell.theme-connect .play .gravity-room h2 {
  font-size:clamp(1.65rem,4.2vw,3.4rem);letter-spacing:-.035em;line-height:1.08;
}
.game-shell .play .gravity-room .gravity-kicker {color:#435a80}
.gravity-board-panel {
  background:linear-gradient(140deg,#3f6fc1,#1b4385);
  box-shadow:0 .35rem 0 #102d61,0 .8rem 1.35rem #1f417039,inset 0 2px 0 #98b5e7a0;
}
.gravity-columns button {background:#173c79;border-color:#88a6d0;color:#fff}
.gravity-columns button[aria-pressed=true] {
  background:#fff0cc;border-color:#f1b557;color:#30261c;box-shadow:inset 0 -2px #c8873e;
}
.gravity-columns button:disabled {background:#2f5086;border-color:#9aabc0;color:#e7ecf5;opacity:1}
.gravity-columns button:enabled:hover:not([aria-pressed=true]) {background:#315eab}
.game-shell.theme-connect .play .gravity-board {
  background:#416fbd;
  box-shadow:inset 0 1px 0 #a1bae3,0 2px 0 #15346a;
  border-radius:.5rem;
}
.gravity-cell {
  background:#17305c;
  box-shadow:inset 0 .22rem .45rem #0c1a37;
}
.gravity-cell.stone-0 > span {border-color:#874605;box-shadow:inset 0 0 0 2px #ffe1a2}
.gravity-cell.stone-1 > span {border-color:#266b73;box-shadow:inset 0 0 0 2px #d6f7ed}
.gravity-cell.ghost > span {background:#335b9b;border-color:#ffe0a0;color:#fff0bd}
.gravity-operation {padding-block:.65rem .85rem}
.game-shell .play .gravity-room .gravity-location {
  font-size:clamp(1.15rem,2.45vw,1.95rem);font-variant-numeric:tabular-nums;
}
.gravity-possibility {background:linear-gradient(90deg,#e5eef8,transparent);border-color:#6281ae}
@media(max-width:720px) {
  .page-game .game-shell.theme-connect.wide .play:has(.gravity-room) {width:100%;padding-block:1.1rem 1.8rem}
  .game-shell.theme-connect .play .gravity-board {padding:clamp(.25rem,1.2vw,.55rem)}
  .gravity-layout {gap:1rem}
}
