.sg-shell{--ink:#1b2c45;--muted:#64738a;--line:#dfe6ec;color:var(--ink);font-family:inherit}.sg-shell *{box-sizing:border-box}.sg-shell h2,.sg-shell h3,.sg-shell h4,.sg-shell p{color:inherit}.sg-shell button,.sg-shell input,.sg-shell select{font-family:inherit}.sg-shell button{cursor:pointer}.sg-shell button:disabled{cursor:default;opacity:.5}.sg-shell :focus-visible{outline:3px solid #257bd0;outline-offset:4px}.sg-kicker{font-size:11px;letter-spacing:.16em;font-weight:800;color:#657489}.sg-hero{display:flex;justify-content:space-between;align-items:center;border-radius:26px;padding:28px;background:linear-gradient(125deg,#eff3ff,#f6f2eb 65%,#fff6e5);overflow:hidden;gap:12px}.sg-hero h2{font-size:clamp(25px,4vw,39px);line-height:1.12;letter-spacing:-.04em;margin:12px 0}.sg-hero p{font-size:14px;color:var(--muted)}.sg-free{display:inline-flex;padding:8px 12px;background:#fff;border:1px solid #dfdbc9;border-radius:30px;font-size:11px;font-weight:750;gap:8px}.sg-hero-art{width:150px;min-width:100px;height:150px;position:relative;transform:rotate(-8deg)}.sg-hero-art i{display:grid;place-items:center;position:absolute;width:88px;height:88px;border-radius:23px;font-style:normal;font-size:56px;box-shadow:0 15px 18px #1b2c451b;border:2px solid #ffffffa6}.sg-hero-art i:nth-child(1){background:#f0899a;color:#aa3755;left:0;top:45px;transform:rotate(-15deg)}.sg-hero-art i:nth-child(2){background:#8ed5c2;color:#267667;left:65px;top:56px;transform:rotate(13deg)}.sg-hero-art i:nth-child(3){background:#fff3d7;color:#c39741;top:0;left:35px;transform:rotate(12deg)}#sg-status{font-size:13px;line-height:1.5;color:#a83c4b;min-height:12px;margin:8px 0}#sg-status .sg-button{margin:0 8px 5px 0}.sg-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 24px}.sg-game-card{background:#f8f9fb;border:2px solid transparent;border-radius:17px;padding:17px 10px;text-align:left;color:var(--ink);transition:transform .16s,border-color .16s;min-width:0}.sg-game-card:hover{transform:translateY(-3px)}.sg-game-card.selected{border-color:#253c5e}.sg-game-card.coral{background:#fff0f2}.sg-game-card.mint{background:#eaf7f2}.sg-game-card.blue{background:#edf3ff}.sg-game-card.lavender{background:#f4effd}.sg-game-card.gold{background:#fff7e6}.sg-card-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#ffffffa6;font-size:29px;margin-bottom:12px;color:#314564}.sg-game-card b{display:block;font-size:13px;line-height:1.2;overflow-wrap:anywhere}.sg-game-card small{display:block;font-size:10px;color:#5a687e;margin-top:6px}.sg-game-card p{font-size:11px;line-height:1.4;margin:10px 0 0;color:#657187}.sg-lobby-columns{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.sg-start,.sg-friends{padding:22px;border:1px solid var(--line);border-radius:21px}.sg-shell h3{font-size:22px;margin:10px 0 18px;letter-spacing:-.025em}.sg-mode{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.sg-mode label{background:#f1f4f8;border-radius:12px;padding:12px;font-size:12px;font-weight:650;line-height:1.5}.sg-shell input[type=radio],.sg-shell input[type=checkbox]{accent-color:#294c78;width:16px;height:16px;vertical-align:middle;margin:0 7px 3px 0}.sg-home-choice{display:block;font-size:12px;margin:16px 0;line-height:1.6}.sg-shell .field{font-size:12px}.sg-shell .field input,.sg-shell .field select{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fafbfc;color:var(--ink);width:100%;font-size:16px;margin-top:7px;min-width:0}.sg-button{padding:11px 17px;background:#edf2f7;color:var(--ink);border:1px solid #d4deea;border-radius:12px;font-size:12px;font-weight:750;min-height:43px;line-height:1.4}.sg-button:hover{background:#dfeaf4}.sg-primary,.sg-button[data-sg-op=start],.sg-button[data-sg-op=roll]{background:#233b5c;color:#fff;border-color:#233b5c;box-shadow:0 6px 12px #20375213}.sg-primary:hover,.sg-button[data-sg-op=start]:hover,.sg-button[data-sg-op=roll]:hover{background:#345580}.sg-link{color:#355e8a;text-decoration:underline;text-underline-offset:4px;border:0;background:transparent;font-size:12px;padding:8px 0}.sg-rules{margin-top:18px;font-size:12px;line-height:1.65}.sg-rules summary{font-weight:750;cursor:pointer}.sg-rules p{color:var(--muted);margin:10px 0}.sg-friend-code{margin-top:24px;background:#f7f4ed;border:1px solid #e9e2d7;padding:14px;border-radius:14px}.sg-friend-code small{font-size:11px;color:var(--muted)}.sg-friend-code>div{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:8px}.sg-friend-code b{font-size:17px;letter-spacing:.13em}.sg-friend-code .sg-button{padding:7px 9px;font-size:11px}.sg-friends>p,.sg-invitations>p,.sg-my-games>p{font-size:12px;color:var(--muted);line-height:1.6}.sg-invitations,.sg-my-games{margin-top:24px}.sg-invitations h3,.sg-my-games h3{font-size:18px}.sg-invitations article,.sg-my-games article{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);gap:12px}.sg-invitations article>div,.sg-my-games article>div{min-width:0}.sg-invitations b,.sg-my-games b{display:block;font-size:13px}.sg-invitations small,.sg-my-games small{display:block;font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.sg-invitations article>div:last-child{display:flex;gap:6px}.sg-table-header{position:relative;text-align:center;border-bottom:1px solid var(--line);padding:0 0 20px}.sg-table-header>.sg-link{display:block;text-align:left;margin-bottom:12px}.sg-table-header h2{font-size:30px;margin:7px 0 14px;letter-spacing:-.04em}.sg-table-code{display:flex;align-items:center;justify-content:center;gap:12px;font-size:11px;color:var(--muted)}.sg-table-code b{letter-spacing:.13em;color:var(--ink);margin-left:7px;font-size:14px}.sg-table-code .sg-button{padding:7px 11px;min-height:34px}.sg-players{display:flex;gap:8px;margin:14px 0 20px;flex-wrap:wrap}.sg-player{display:flex;gap:9px;align-items:center;background:#f4f6f8;border:2px solid transparent;border-radius:12px;padding:9px 11px;flex:1;min-width:115px}.sg-player.is-turn{border-color:#4e7d9d;background:#eef7fa}.sg-player b{font-size:12px;display:block;overflow-wrap:anywhere}.sg-player small{font-size:10px;display:block;color:var(--muted);margin-top:3px}.sg-player-dot{display:grid;place-items:center;width:30px;height:30px;background:var(--piece);border-radius:50%;color:#fff;font-size:12px;font-weight:800;flex-shrink:0}.sg-player i{color:#427e87;font-size:10px;margin-left:auto}.sg-waiting{text-align:center;background:#f7f9fc;padding:24px;border-radius:22px}.sg-big-dice{font-size:78px;color:#3c608d}.sg-waiting h3{margin:8px 0}.sg-waiting p{font-size:13px;color:var(--muted);line-height:1.6}.sg-waiting>.button-row{justify-content:center}.sg-waiting form{max-width:360px;margin:22px auto;text-align:left}.sg-waiting form .sg-button{margin-top:10px}.sg-game-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:22px;align-items:start}.sg-board-wrap{width:100%;max-width:580px;justify-self:center;min-width:0;background:#f6f7fa;padding:13px;border:1px solid var(--line);border-radius:23px;box-shadow:0 15px 30px #1a30450b}.sg-ludo,.sg-ladders{display:block;width:100%;height:auto;overflow:visible}.sg-pawn.is-legal{cursor:pointer;filter:drop-shadow(0 1px 4px #1a2a4544)}.sg-pawn.is-legal:hover{filter:brightness(1.17)}.sg-game-aside{min-width:0}.sg-turn{padding:19px;border:1px solid var(--line);border-radius:18px;background:#fbfcfd}.sg-turn h3{font-size:21px;overflow-wrap:anywhere;margin:10px 0}.sg-turn p{font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}.sg-turn>small{display:block;font-size:10px;color:var(--muted);margin-top:14px}.sg-die{font-size:85px;line-height:1.1;color:#34547a;margin:12px 0;text-shadow:0 4px 8px #263a4c17}.sg-turn .sg-button{width:100%}.sg-log{margin-top:23px;color:var(--muted)}.sg-log h4{font-size:12px}.sg-log p{font-size:11px;line-height:1.5;padding-top:9px;border-top:1px solid var(--line);margin:8px 0}.sg-table-footer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:22px;padding-top:18px;justify-content:space-between}.sg-reactions{display:flex;gap:5px}.sg-reactions .sg-button{padding:5px 7px;font-size:20px;min-width:37px;background:white}.sg-reaction{font-size:12px}.sg-footnote{font-size:11px;color:var(--muted);line-height:1.6;margin-top:16px}.sg-memory{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.sg-memory-card{position:relative;aspect-ratio:1;border:1px solid #d4dce8;border-radius:13px;font-size:32px;display:grid;place-items:center;background:#fff}.sg-memory-card.back{background:repeating-linear-gradient(45deg,#344a70 0,#344a70 12px,#3b5279 12px,#3b5279 14px);color:#e7d4ac;border:3px solid #e5d4af}.sg-memory-card:disabled{opacity:1!important}.sg-memory-card.matched{background:#eff6f2;opacity:.8!important}.sg-memory-card i{position:absolute;bottom:5px;width:8px;height:8px;border-radius:50%}.sg-scores{display:grid;gap:6px;font-size:11px}.sg-scores span{display:flex;gap:8px;justify-content:space-between}.sg-ttt{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.sg-ttt button{aspect-ratio:1;border:1px solid #d2deeb;border-radius:14px;background:#fff;font-weight:850;font-size:clamp(25px,6vw,74px)}.sg-ttt button:disabled{opacity:1!important}.sg-connect-controls{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:0 0 10px}.sg-connect-controls button{border:1px solid #cfdbeb;background:#fff;border-radius:8px;padding:9px 0;color:#426ba4;font-weight:850}.sg-connect{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:12px;border-radius:14px;background:#456ea5;box-shadow:inset 0 -6px 0 #2a568e}.sg-disc{aspect-ratio:1;border-radius:50%;background:var(--piece);box-shadow:inset 0 3px 5px #193b622f;border:3px solid #e5eef655}.sg-disc.last{border:3px solid #fff}.sg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:720px){.sg-library{grid-template-columns:repeat(3,minmax(0,1fr))}.sg-game-card{padding:13px 9px}.sg-lobby-columns{grid-template-columns:1fr}.sg-game-layout{grid-template-columns:1fr}.sg-game-aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sg-game-aside>.sg-log{grid-column:1/-1;margin:0}.sg-turn{padding:14px}.sg-turn h3{font-size:18px}.sg-die{font-size:56px}.sg-hero{padding:22px}.sg-hero-art{transform:scale(.8) rotate(-8deg);transform-origin:center;min-width:90px;width:100px}.sg-invitations article{align-items:flex-start;flex-wrap:wrap}.sg-players{gap:5px}.sg-player{padding:7px;min-width:92px}.sg-player b{font-size:11px}.sg-board-wrap{padding:8px}.sg-reactions{gap:3px}.sg-reactions .sg-button{min-width:32px;padding:4px;font-size:19px}.sg-friend-code b{font-size:15px}.sg-friend-code .sg-button{padding:6px}.sg-game-card p{display:none}.sg-game-card small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.sg-shell *{transition:none!important;animation:none!important}}
.sg-leave-confirm{padding:16px;background:#fff5ec;border:1px solid #ecd4bb;border-radius:15px;margin-top:16px;font-size:13px;line-height:1.5}.sg-leave-confirm[hidden]{display:none}.sg-leave-confirm .sg-button{margin-right:8px}
.sg-closed-table{padding:30px;text-align:center}.sg-closed-table>span{font-size:64px;color:#b49c72}.sg-closed-table h3{font-size:23px}.sg-closed-table p{font-size:13px;color:var(--muted)}
.sg-token-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.sg-token-choices button{min-height:44px;border:1px solid #bbcedd;border-radius:10px;background:#eaf3fa;color:#264a6d;font-size:12px;font-weight:750}.sg-token-choices button:disabled{opacity:.42}.sg-connect-controls button{min-height:44px}
.sg-game-card.pearl{background:#eef4ef}.sg-reversi{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;padding:8px;border:1px solid #c6d3cb;border-radius:15px;background:#aabeb0}.sg-reversi-cell{display:grid;place-items:center;aspect-ratio:1;min-width:0;border:1px solid #c6d4c8;border-radius:5px;background:#eff4ec;padding:3px}.sg-reversi-cell:disabled{opacity:1!important;cursor:default}.sg-reversi-cell.legal{background:#fff8df;border-color:#a8925a}.sg-reversi-cell.legal:hover{background:#ead7a2}.sg-reversi-disc{display:block;width:88%;height:88%;border-radius:50%;background:var(--piece);border:2px solid #ffffffcf;box-shadow:0 2px 3px #1b3b3236,inset 0 -3px 0 #00000012}.sg-reversi-hint{display:block;width:22%;height:22%;border-radius:50%;background:#8d794a;min-width:6px;min-height:6px}.sg-reversi-cell.last{outline:2px solid #243c56;outline-offset:-3px}.sg-reversi-cell.flipped .sg-reversi-disc{box-shadow:0 0 0 1px #c4a060}.sg-board-instruction{font-size:12px;color:#586c67;line-height:1.5;margin:12px 3px 0}
.sg-reversi-cell[aria-disabled=true]{cursor:default}.sg-reversi-cell:focus-visible{outline:3px solid #254f81;outline-offset:1px;z-index:1}.sg-reversi-cell .sg-reversi-disc[style*="#f8edda"]{border-color:#68788b}
.sg-game-card.sand{background:#f4ecde}.sg-checkers{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;padding:8px;border:1px solid #ac9066;border-radius:14px;background:#927346;overflow:hidden}.sg-checkers-cell{display:grid;place-items:center;aspect-ratio:1;min-width:0;border:1px solid #ffffff18;border-radius:0;padding:5px;position:relative}.sg-checkers-cell.light{background:#f5ead3}.sg-checkers-cell.dark{background:#b99b71}.sg-checkers-cell[aria-disabled=true]{cursor:default}.sg-checkers-disc{display:grid;place-items:center;width:87%;height:87%;border-radius:50%;border:2px solid #ffffffbb;box-shadow:0 3px 4px #382b2538,inset 0 0 0 3px #ffffff2b,inset 0 -4px 0 #00000018}.sg-checkers-disc.navy{background:#203653;color:#f4d68e}.sg-checkers-disc.pearl{background:#fff3da;color:#4d3e25;border-color:#65543d}.sg-checkers-disc>span{font-size:clamp(15px,3.5vw,30px);line-height:1}.sg-checkers-cell.source .sg-checkers-disc{outline:2px solid #f8e6b8;outline-offset:2px}.sg-checkers-cell.selected{background:#8c764f}.sg-checkers-cell.selected .sg-checkers-disc{outline:3px solid #fff;outline-offset:2px}.sg-checkers-cell.destination{background:#ecd9a9;cursor:pointer}.sg-checkers-hint{width:24%;height:24%;min-width:6px;min-height:6px;border-radius:50%;background:#203653;box-shadow:0 0 0 4px #20365319}.sg-checkers-cell.last:after{content:'';position:absolute;inset:2px;border:1px dashed #203653;border-radius:2px;pointer-events:none}.sg-checkers-cell:focus-visible{outline:3px solid #1c639e;outline-offset:-3px;z-index:1}.sg-checkers-cell.source:hover,.sg-checkers-cell.destination:hover{filter:brightness(1.1)}

.sg-checkers-cell.source .sg-checkers-disc{outline:2px solid #102742;outline-offset:1px;box-shadow:0 0 0 4px #fff7e5,inset 0 0 0 3px #ffffff2b,inset 0 -4px 0 #00000018}.sg-checkers-cell.selected{background:#665334}.sg-checkers-cell.selected .sg-checkers-disc{outline:3px solid #102742;outline-offset:1px;box-shadow:0 0 0 5px #fff}.sg-checkers-cell:focus-visible{outline:3px solid #fff;outline-offset:-3px;box-shadow:inset 0 0 0 6px #102742}

/* Horizons Boxes: an original pearl-and-mint table; each hit target occupies a grid cell. */
.sg-boxes-area{width:100%;max-width:550px;margin:auto}.sg-boxes{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(9,minmax(0,1fr));aspect-ratio:1;padding:14px;background:#f3f7ef;border:1px solid #d2ded3;border-radius:26px;box-shadow:0 18px 46px #163b2a12;isolation:isolate}.sg-boxes-dot{position:relative;z-index:3;pointer-events:none}.sg-boxes-dot:before{content:"";position:absolute;inset:calc(50% - 4px);border-radius:50%;background:#314e49}.sg-boxes-edge{position:relative;border:0;border-radius:9px;padding:0;min-width:0;min-height:0;cursor:pointer;background:transparent;z-index:2;overflow:visible;touch-action:manipulation}.sg-boxes-edge span{display:block;position:absolute;pointer-events:none;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--piece);border-radius:5px;opacity:1}.sg-boxes-edge.horizontal span{width:calc(200% - 9px);height:5px}.sg-boxes-edge.vertical span{height:calc(200% - 9px);width:5px}.sg-boxes-edge.horizontal:not(.is-owned) span{background:repeating-linear-gradient(90deg,var(--piece) 0 4px,transparent 4px 8px)}.sg-boxes-edge.vertical:not(.is-owned) span{background:repeating-linear-gradient(0deg,var(--piece) 0 4px,transparent 4px 8px)}.sg-boxes-edge.is-owned span{opacity:1}.sg-shell .sg-boxes-edge[aria-disabled=true]{cursor:default;opacity:1}.sg-boxes-edge[aria-disabled=false]:hover{background:#16a99225}.sg-boxes-edge[aria-disabled=false]:hover span{background:#087563;opacity:1}.sg-boxes-edge:focus-visible{outline:3px solid #173c56;outline-offset:-3px;background:#fff}.sg-boxes-edge.is-last span{box-shadow:0 0 0 2px #fff}.sg-boxes-square{display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--piece);color:#183b38;font-size:1.25rem;min-width:0}.sg-boxes-square small{color:#637c73;font-size:.7rem}.sg-boxes-square b{background:#ffffffe0;border-radius:50%;width:1.6em;height:1.6em;display:grid;place-items:center}.sg-boxes-square.is-last{box-shadow:inset 0 0 0 2px #193f3e}.sg-boxes-progress{text-align:center;font-weight:650;color:#375c52}.sg-boxes-key{display:flex;justify-content:center;gap:8px 16px;flex-wrap:wrap;font-size:.8rem}.sg-boxes-key span{display:flex;align-items:center;gap:5px}.sg-boxes-key b{display:grid;place-items:center;background:var(--piece);color:#173b38;border-radius:50%;width:26px;height:26px;border:2px solid #fff;box-shadow:0 0 0 1px #ccd9ce}.sg-boxes:focus-visible{outline:3px solid #173c56;outline-offset:3px}@media(max-width:560px){.sg-boxes{padding:7px;border-radius:18px}.sg-boxes-dot:before{inset:calc(50% - 3px)}.sg-boxes-square{font-size:.9rem;border-radius:6px}.sg-boxes-edge.horizontal span{height:4px}.sg-boxes-edge.vertical span{width:4px}}
