/* Original planet-merging game. Physics is essential; decorative motion is optional. */
.sg-dialog{--sg-ink:#172b43;--sg-paper:#fff9ed;--sg-lime:#dced88;--sg-lilac:#d4c6f5;position:fixed;inset:0;width:min(950px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:clip;border:2px solid var(--sg-ink);border-radius:26px;background:var(--sg-paper);color:var(--sg-ink);box-shadow:7px 7px 0 #bcb2ed,0 30px 90px #0009;font-family:var(--sans,system-ui,sans-serif)}
.sg-dialog::backdrop{background:#060c20e8;backdrop-filter:blur(10px)}.sg-dialog[open]{animation:sg-arrive .35s cubic-bezier(.16,1,.3,1) both}.sg-dialog [hidden]{display:none!important}.sg-shell{max-height:calc(100dvh - 28px);padding:24px;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;scrollbar-width:thin}.sg-dialog button,.sg-dialog select,.sg-dialog input{font:inherit}.sg-dialog button{cursor:pointer;touch-action:manipulation}.sg-dialog button:disabled{cursor:default;opacity:.48}.sg-close{position:absolute;z-index:12;top:13px;right:13px;width:48px;height:48px;display:grid;place-items:center;padding:0;border:1.5px solid #172b4355;border-radius:50%;background:#fff9edf5;color:var(--sg-ink);font:400 28px/1 sans-serif!important;box-shadow:0 3px 10px #172b4315}.sg-close:hover{background:var(--sg-lilac)}
.sg-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-right:57px;margin:0 0 10px}.sg-kicker{margin:0 0 6px;font:800 9px/1.4 var(--latin,system-ui,sans-serif);letter-spacing:.08em;color:#765886}.sg-header h2{margin:0;font-size:clamp(23px,3vw,32px);font-weight:800;line-height:1.3;letter-spacing:-.04em}.sg-language{min-height:46px;min-width:84px;padding:7px 10px;border:1px solid #172b4344;border-radius:10px;background:#fffef8;color:var(--sg-ink);font-size:12px!important}.sg-intro{margin:0 0 18px;font-size:14px;line-height:1.6;font-weight:600}.sg-layout{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:25px;align-items:start}.sg-play-area{min-width:0}.sg-dashboard{display:grid;grid-template-columns:1fr 1fr 54px;gap:10px;align-items:center;min-height:65px;padding:10px 12px;margin-bottom:10px;border:1.5px solid #172b4330;border-radius:14px;background:#eee7f5}.sg-score-card{display:grid;grid-template-columns:auto 1fr;gap:4px 9px;align-items:center}.sg-score-card>span{font-size:10px;font-weight:700}.sg-score-card>strong{font:800 26px/1.1 var(--latin,system-ui,sans-serif);font-variant-numeric:tabular-nums}.sg-score-card>small{grid-column:1/-1;font:600 10px/1.4 var(--latin,system-ui,sans-serif);color:#596079}.sg-score-card>small b{margin-left:4px;color:var(--sg-ink)}.sg-preview{display:grid;grid-template-columns:43px minmax(0,1fr);gap:0 5px;align-items:center}.sg-preview>span:first-child{grid-column:1/-1;font-size:10px;font-weight:600}.sg-next-icon{height:43px}.sg-next-name{font-size:11px;line-height:1.4}.sg-after{display:grid;justify-items:center;border-left:1px solid #172b4330;padding-left:7px;font-size:9px;gap:3px}.sg-after-icon{height:32px}.sg-board{position:relative;isolation:isolate;width:100%;aspect-ratio:3/4;overflow:hidden;border:2px solid #263752;border-radius:18px;background:#11203b;box-shadow:inset 0 0 0 2px #ffffff10;transition:border-color .2s,box-shadow .2s}.sg-board.sg-danger{border-color:#dc825e;box-shadow:0 0 0 3px #ed86572b}.sg-canvas{display:block;width:100%;height:100%;touch-action:pan-y;outline-offset:-5px!important}.sg-warning{position:absolute;top:16.5%;left:10px;right:10px;margin:0;text-align:center;color:#e1d6b7;font-size:9px;line-height:1.3;pointer-events:none}.sg-danger .sg-warning{color:#ffd2b7;font-weight:700}.sg-overlay{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:24px;background:#101b35e8;color:#fff9ed;text-align:center;backdrop-filter:blur(5px)}.sg-overlay-orbit{font:400 48px/1 sans-serif;color:var(--sg-lime)}.sg-overlay h3{max-width:310px;margin:0;font-size:23px;line-height:1.45;font-weight:800;letter-spacing:-.03em}.sg-overlay>p{max-width:310px;margin:0;color:#dee1ef;font-size:13px;line-height:1.8}.sg-demo{display:flex;align-items:center;gap:7px;height:48px;color:#d5c4f0;font-size:20px}.sg-dialog:not([data-state=ready]) .sg-demo{display:none}.sg-dialog[data-state=full] .sg-overlay-orbit{color:#ffad8a}.sg-dialog[data-state=won] .sg-overlay-orbit{font-size:65px;text-shadow:0 0 24px #ffe77577}.sg-rescue-note{font-size:10px;line-height:1.7;color:#c7d3e5}.sg-primary,.sg-secondary{min-height:48px;border:1.5px solid var(--sg-ink);border-radius:999px;padding:10px 16px;line-height:1.5;font-weight:700!important;font-size:12px!important;color:var(--sg-ink);transition:transform .18s,box-shadow .18s,background .18s}.sg-primary{background:var(--sg-lime);box-shadow:3px 3px 0 var(--sg-ink)}.sg-primary:not(:disabled):hover{background:#e5f3a4;transform:translateY(-1px);box-shadow:3px 4px 0 var(--sg-ink)}.sg-primary:not(:disabled):active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--sg-ink)}.sg-secondary{background:#fff9ed}.sg-secondary:not(:disabled):hover{background:#eee4fc}.sg-overlay .sg-primary{width:100%;max-width:300px;min-height:50px;border-color:#c3d779;box-shadow:0 4px 0 #526e3b;color:#172b43}.sg-overlay .sg-secondary{min-height:44px;padding:7px 16px;border-color:#ffffff55;background:#ffffff10;color:#fff9ed}.sg-overlay .sg-secondary:hover{background:#ffffff20}.sg-aim-row{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;margin-top:12px}.sg-aim-row>label{font-size:10px;font-weight:600}.sg-aim{grid-column:1;grid-row:2;width:100%;height:38px;margin:0;accent-color:#6f588c;cursor:ew-resize;touch-action:pan-y}.sg-drop{grid-row:1/3;grid-column:2;min-width:134px}.sg-toolbar{display:flex;gap:9px;margin-top:9px}.sg-toolbar>button{flex:1;min-height:44px;padding:8px 10px;font-size:11px!important}.sg-keyboard{margin:9px 0 0;font-size:10px;line-height:1.6;color:#5e6980}.sg-side{display:grid;gap:18px;min-width:0}.sg-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0;padding:0;list-style:none}.sg-rules li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:13px 5px;min-height:84px;border:1px solid #172b432b;border-radius:12px;background:#f4ecfc;text-align:center}.sg-rules span{font:500 25px/1 var(--latin,system-ui,sans-serif);color:#765886}.sg-rules strong{font-size:10px;line-height:1.5}.sg-feedback-box{min-height:73px;padding:15px 17px;border:1.5px solid #172b4330;border-radius:14px;background:var(--sg-lime)}.sg-feedback{margin:0;font-size:15px;line-height:1.65;font-weight:800}.sg-combo{margin:7px 0 0;font-size:11px;font-weight:700;color:#426345}.sg-combo:empty{display:none}.sg-section-head{display:flex;gap:8px;align-items:center;justify-content:space-between}.sg-section-head h3{margin:0;font-size:17px;line-height:1.4}.sg-grown{font:700 10px/1.4 var(--latin,var(--sans,system-ui,sans-serif));color:#5a637a}.sg-catalog-hint{margin:8px 0 11px;font-size:11px;line-height:1.7;color:#5a637a}.sg-catalog{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.sg-catalog>button{display:grid;place-items:center;width:100%;min-height:55px;padding:3px;border:1.5px dashed #172b4340;border-radius:12px;background:#ece9e5;opacity:.6;transition:transform .2s,background .2s}.sg-catalog>button.sg-found{opacity:1;border-style:solid;background:#f1e7ff}.sg-catalog>button.sg-selected{opacity:1;background:#e6eeaa;border-color:#172b43;box-shadow:2px 2px 0 #172b43}.sg-catalog>button:hover{transform:translateY(-2px);opacity:1}.sg-fact-card{position:relative;padding:18px;border:1.5px solid #172b4335;border-radius:16px;background:#f2eafb;transition:background .3s}.sg-fact-card.sg-new-discovery{background:#f9eacb}.sg-new-star{display:block;width:max-content;margin:0 0 10px;padding:4px 7px;transform:rotate(-3deg);background:#f59065;color:#172b43;font:800 9px/1.2 var(--latin,system-ui,sans-serif)}.sg-fact-kicker{margin:0 0 10px;color:#71537a;font-size:10px;line-height:1.4;font-weight:700}.sg-fact-name{margin:0 0 10px;font-size:17px;font-weight:800;line-height:1.5}.sg-fact{margin:0;font-size:13px;line-height:1.9;color:#354b65}.sg-source{display:inline-flex;align-items:center;min-height:44px;margin:7px 0 -6px;color:#68517e;text-decoration:underline;text-underline-offset:4px;font-size:10px;font-weight:600}.sg-fiction{margin:0;padding:12px 14px;border-left:3px solid #bba8d6;background:#eee8ee;color:#5c5970;font-size:11px;line-height:1.8}.sg-storage{margin:-7px 0 0;color:#687183;font-size:9px;line-height:1.6}.sg-sr{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sg-dialog button:focus-visible,.sg-dialog input:focus-visible,.sg-dialog select:focus-visible,.sg-canvas:focus-visible,.sg-source:focus-visible{outline:3px solid #aa84d6;outline-offset:3px}
@keyframes sg-arrive{from{opacity:0;transform:translateY(15px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:720px){.sg-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:21px;box-shadow:4px 4px 0 #bcb2ed}.sg-shell{max-height:calc(100dvh - 20px);padding:17px 14px}.sg-header{padding-right:48px;gap:9px;margin-bottom:9px}.sg-header h2{font-size:23px}.sg-kicker{font-size:7px;letter-spacing:.03em}.sg-language{min-width:74px;padding:7px;font-size:11px!important}.sg-close{top:10px;right:9px;width:44px;height:44px}.sg-intro{font-size:12px;margin-bottom:12px}.sg-layout{grid-template-columns:minmax(0,1fr);gap:18px;max-width:460px;margin:auto}.sg-dashboard{margin-bottom:8px;padding:8px 10px;min-height:59px;gap:8px;grid-template-columns:1fr 1fr 44px}.sg-score-card>strong{font-size:24px}.sg-score-card>span,.sg-score-card>small,.sg-preview>span:first-child{font-size:9px}.sg-preview{grid-template-columns:38px 1fr}.sg-next-icon svg{width:38px;height:38px}.sg-next-icon{height:38px}.sg-next-name{font-size:10px}.sg-after{font-size:8px;padding-left:4px}.sg-board{border-radius:15px}.sg-warning{font-size:8px}.sg-overlay{padding:22px;gap:12px}.sg-overlay-orbit{font-size:38px}.sg-overlay h3{font-size:21px}.sg-overlay>p{font-size:12px;line-height:1.75}.sg-overlay .sg-primary{font-size:11px!important;min-height:48px}.sg-overlay .sg-secondary{font-size:11px!important}.sg-demo{gap:5px;height:43px}.sg-demo svg{width:36px;height:36px}.sg-aim-row{margin-top:9px;gap:0 10px}.sg-drop{min-width:128px}.sg-toolbar{margin-top:7px}.sg-keyboard{font-size:9px}.sg-side{gap:14px}.sg-rules li{min-height:65px;padding:10px 5px;gap:6px}.sg-rules span{font-size:21px}.sg-rules strong{font-size:10px}.sg-feedback-box{padding:12px 14px;min-height:60px}.sg-feedback{font-size:14px}.sg-catalog{grid-template-columns:repeat(8,1fr);gap:4px}.sg-catalog>button{min-height:43px;padding:0;border-radius:9px}.sg-catalog svg{width:100%;height:auto;max-width:43px}.sg-fact-card{padding:16px}.sg-fact-name{font-size:16px}.sg-fact{font-size:12px}.sg-fiction{font-size:10px}.sg-storage{font-size:9px;margin-top:-3px}}
@media(max-width:370px){.sg-shell{padding:15px 11px}.sg-header h2{font-size:20px}.sg-kicker{font-size:6px}.sg-language{min-width:67px;font-size:10px!important;padding-inline:5px}.sg-intro{font-size:11px}.sg-dashboard{grid-template-columns:.9fr 1.1fr 35px;padding:7px;gap:6px}.sg-next-name{font-size:9px}.sg-score-card{gap:3px 5px}.sg-score-card>strong{font-size:21px}.sg-overlay{padding:17px;gap:9px}.sg-overlay h3{font-size:18px}.sg-overlay>p{font-size:11px}.sg-overlay-orbit{font-size:29px}.sg-demo{height:35px}.sg-demo svg{width:30px;height:30px}.sg-overlay .sg-primary{font-size:10px!important;padding-inline:10px;min-height:46px}.sg-rescue-note{font-size:9px}.sg-catalog{grid-template-columns:repeat(4,1fr);gap:7px}.sg-catalog>button{min-height:48px}.sg-drop{min-width:120px;font-size:11px!important}}
@media(max-height:520px) and (min-width:721px){.sg-shell{padding:18px}.sg-header{margin-bottom:7px}.sg-header h2{font-size:25px}.sg-intro{margin-bottom:12px}.sg-layout{grid-template-columns:minmax(0,350px) minmax(0,1fr);gap:20px}.sg-board{max-width:350px}}
html[data-motion=off] .sg-dialog,html[data-motion=off] .sg-dialog *,html[data-motion=off] .sg-dialog *:after,.sg-dialog[data-reduced=true],.sg-dialog[data-reduced=true] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.sg-dialog,.sg-dialog *,.sg-dialog *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the result beside the board and the reading size comfortable on a phone. */
.sg-play-area>.sg-feedback-box{min-height:52px;margin:0 0 10px;padding:10px 13px}.sg-feedback{font-size:14px;line-height:1.6}.sg-combo{font-size:12px;margin-top:4px}.sg-intro,.sg-overlay>p,.sg-fact{font-size:14px;line-height:1.8}.sg-primary,.sg-secondary{font-size:14px!important}.sg-aim-row>label,.sg-keyboard,.sg-catalog-hint,.sg-fiction,.sg-rescue-note,.sg-storage,.sg-source{font-size:12px}.sg-rules strong{font-size:12px}.sg-overlay{overflow-y:auto;overscroll-behavior:contain;justify-content:flex-start}.sg-overlay>*{flex-shrink:0}.sg-overlay-orbit{margin-top:auto}.sg-overlay-other{margin-bottom:auto}.sg-overlay .sg-primary,.sg-overlay .sg-secondary,.sg-toolbar>button{font-size:14px!important}.sg-fact{line-height:1.9}.sg-overlay h3{font-size:22px}.sg-warning{font-size:10px}.sg-drop{min-width:142px}.sg-preview .sg-next-name{font-size:12px}
@media(max-width:720px){.sg-intro{font-size:14px;margin-bottom:14px}.sg-play-area>.sg-feedback-box{min-height:47px;margin-bottom:9px;padding:9px 12px}.sg-overlay{padding:18px;gap:11px}.sg-overlay>p{font-size:14px;line-height:1.7}.sg-overlay h3{font-size:21px}.sg-overlay-orbit{font-size:30px}.sg-dialog[data-state=ready] .sg-overlay-orbit{display:none}.sg-dialog[data-state=ready] .sg-overlay-title{margin-top:auto}.sg-dialog[data-state=ready] .sg-overlay-main{margin-bottom:auto}.sg-dialog[data-state=paused] .sg-overlay-main{margin-bottom:auto}.sg-rescue-note{font-size:12px}.sg-fact{font-size:14px}.sg-fiction{font-size:12px}.sg-source{font-size:12px}.sg-storage{font-size:12px;line-height:1.7}.sg-rules strong{font-size:12px}.sg-keyboard{font-size:12px}.sg-aim-row{grid-template-columns:1fr 142px}.sg-drop{min-width:0;padding-inline:10px}.sg-preview .sg-next-name{font-size:11px}.sg-catalog>button{min-height:48px}}
@media(max-width:370px){.sg-overlay{padding:14px;gap:10px}.sg-overlay h3{font-size:20px}.sg-overlay>p{font-size:14px}.sg-overlay .sg-primary,.sg-overlay .sg-secondary{font-size:14px!important}.sg-aim-row{grid-template-columns:minmax(0,1fr) 138px}.sg-drop{font-size:14px!important}.sg-demo{height:35px}.sg-intro{font-size:14px}.sg-feedback{font-size:14px}}
/* On a laptop the controls sit beside the full board, keeping the drop action visible. */
@media(min-width:721px){.sg-play-area{display:contents}.sg-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;gap:10px 24px}.sg-board{grid-column:1;grid-row:1/6;align-self:start;justify-self:center;width:min(100%,420px,max(210px,calc((100dvh - 190px)*.75)));max-width:none;height:auto;min-height:0}.sg-dashboard{grid-column:2;grid-row:1;margin:0}.sg-play-area>.sg-feedback-box{grid-column:2;grid-row:2;margin:0}.sg-aim-row{grid-column:2;grid-row:3;margin:0}.sg-toolbar{grid-column:2;grid-row:4;margin:0}.sg-keyboard{grid-column:1;grid-row:6;margin:0}.sg-side{grid-column:2;grid-row:5}.sg-rules{display:none}.sg-header{margin-bottom:7px}.sg-intro{margin-bottom:14px}.sg-side{gap:15px}.sg-overlay{padding:22px}}
@media(max-width:720px){.sg-intro{display:none}.sg-board{width:min(100%,calc(max(260px,100dvh - 400px)*.75));margin-inline:auto}.sg-header{margin-bottom:13px}.sg-play-area>.sg-feedback-box{margin-bottom:9px}.sg-aim-row{margin-top:9px}.sg-overlay>p{max-width:280px}.sg-overlay h3{font-size:20px}}
