/*! Solar System Repair Co. | Source: https://orbitalforest.com */
/* Clear cable targets, bounded Pluto boards, split pipes and illustrated repairs. */
#answer-grid:has(.pluto-compact-repair,.tea-making-puzzle,.has-color-machine,.has-nine-gears,.has-split-flow) { container-type:size; }
.bench-cable-runs { width:100%;display:grid;gap:12px; }
.bench-cable-run { min-width:0;padding:7px;border:2px solid #73988c;background:#12303be8;border-radius:5px; }
.bench-cable-target { display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px;font:700 12px/1.2 ui-monospace,monospace; }
.bench-cable-target b { color:#ffe098;font-size:18px; }
.bench-cable-target span { color:#b8d9cc;font-size:11px; }
.has-two-cables .bench-cable-run .bench-socket-label { font-size:10px;padding:0; }
.has-two-cables .bench-cable-run .bench-socket { height:clamp(44px,calc((100cqh - 300px)/2),90px); }
.has-nine-gears .bench-work { grid-template-columns:minmax(0,1fr) 260px; }
.has-nine-gears .bench-parts { grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px; }
#game-shell .has-nine-gears .bench-part { height:clamp(44px,calc((100cqh - 205px)/3),86px); }
.has-nine-gears .bench-slots[data-mode="gears"] { grid-template-columns:repeat(4,minmax(44px,1fr)); }
.has-split-flow .bench-pipe-frame { grid-template-columns:32px auto 56px;gap:4px; }
.bench-outputs { grid-column:3;grid-row:1;display:grid;grid-template-rows:repeat(var(--bench-rows,5),var(--bench-cell));gap:3px;align-self:stretch; }
.bench-outlet { align-self:center;color:#e1bc79;font:800 10px/1.2 ui-monospace,monospace;white-space:nowrap; }
.bench-outlet.is-fed { color:#8dd7c7; }
.has-split-flow .bench-port:first-child { margin-top:calc((var(--in-row) - 1)*(var(--bench-cell) + 3px) + (var(--bench-cell) - 12px)/2); }
#game-shell #answer-grid .is-number-memory .proto-memory-card.is-face-up { background:#eee0b8;color:#16353d; }
.proto-memory-number { font:900 clamp(24px,6cqw,38px)/1 ui-monospace,monospace; }
#game-shell #answer-grid .has-color-machine .proto-work { grid-template-columns:minmax(0,1fr) 194px;gap:12px; }
.proto-color-machine { position:relative;width:min(100%,calc((100cqh - 190px)*1.5));aspect-ratio:3/2;justify-self:center; }
.proto-color-machine-art { display:block;width:100%;height:100%;object-fit:contain;pointer-events:none; }
#game-shell #answer-grid .proto-color-slot { position:absolute;display:grid;place-items:center;border:4px solid var(--socket-color);border-radius:4px;background:#0b242b8c;padding:4px;box-shadow:inset 0 0 0 2px #112831;min-width:44px;min-height:44px; }
.proto-socket-mark { position:absolute;left:2px;right:2px;top:1px;text-align:center;color:var(--socket-color);font:800 10px/1 ui-monospace,monospace;text-shadow:0 1px #06131d; }
.proto-fitted-module { width:100%;height:100%;object-fit:contain;pointer-events:none; }
.proto-color-parts { display:grid;grid-template-columns:repeat(2,minmax(44px,90px));gap:6px; }
#game-shell #answer-grid .proto-color-part { height:clamp(44px,calc((100cqh - 210px)/3),90px);display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:2px;border-bottom:5px solid var(--socket-color);padding:3px; }
.proto-color-part img { display:block;min-height:0;width:100%;height:100%;object-fit:contain;pointer-events:none; }
.proto-color-part small { font:800 10px/1 ui-monospace,monospace; }
.proto-color-controls { display:none; }
.needs-color-controls .proto-color-controls { display:grid;grid-template-columns:44px minmax(64px,1fr) 44px;gap:4px; }
#game-shell #answer-grid .proto-color-controls .proto-button { min-height:44px;font-size:11px;padding:3px; }
#game-shell #answer-grid .needs-color-controls .proto-color-slot { min-width:0;min-height:0;border-width:3px; }
.needs-color-controls .proto-color-slot.is-cursor { outline:3px solid #fff2c6;outline-offset:2px; }
.pluto-compact-repair { box-sizing:border-box;display:grid;height:100%;width:100%;min-height:0;padding:8px;gap:8px;overflow:hidden;color:#efdfb5; }
.pluto-compact-head { padding-right:28px; }
.pluto-compact-head>strong { color:#e5bd78;font:800 14px/1.3 ui-monospace,monospace; }
.pluto-compact-head p { margin:4px 0 0;font:14px/1.3 system-ui,sans-serif; }
.pluto-compact-repair.is-heater-math { grid-template-rows:auto minmax(0,1fr) 30px; }
.pluto-heater-work { display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;min-height:0;align-items:center; }
.pluto-heater-diagram { width:100%;height:100%;min-height:0;display:grid;place-items:center; }
.pluto-heater-diagram svg { display:block;width:100%;height:100%;max-height:330px; }
.pluto-heater-answers { display:grid;gap:18px; }
.pluto-heater-answer { display:grid;gap:6px; }
.pluto-heater-answer>strong { font:800 13px/1.3 ui-monospace,monospace; }
.pluto-heater-options { display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px; }
#game-shell .pluto-compact-button { border:2px solid #74978b;border-image:none;border-radius:4px;background:#214349;color:#f2e5bb;min-width:44px;min-height:44px;box-shadow:inset 0 2px #fff2,0 3px #071a23;padding:4px;font:800 24px/1 ui-monospace,monospace;touch-action:manipulation; }
#game-shell .pluto-compact-button[aria-pressed="true"] { background:#e6c782;color:#19353c;outline:2px solid #ffe6aa;outline-offset:1px; }
#game-shell .pluto-compact-button:focus-visible { outline:3px solid #9ddce0;outline-offset:2px; }
#game-shell .pluto-heater-options .pluto-compact-button { height:56px; }
.pluto-compact-status { margin:0;padding-right:100px;font:12px/1.25 system-ui,sans-serif;align-self:center; }
.pluto-compact-repair>.concept-test { display:none; }
.pluto-compact-repair.is-light-pattern { grid-template-rows:auto 72px minmax(96px,1fr) 52px 24px; }
.pluto-pattern-previews { display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;min-height:0; }
.pluto-pattern-preview { display:grid;grid-template-rows:18px minmax(0,1fr);gap:3px;padding:5px;border:1px solid #638f88;background:#142f39;min-width:0; }
.pluto-pattern-preview>strong { font:700 10px/1.2 ui-monospace,monospace;color:#bad9ca; }
.pluto-preview-lights { display:flex;align-items:center;justify-content:space-around;gap:3px;min-width:0; }
.pluto-preview-symbol { font:800 clamp(18px,4cqw,32px)/1 ui-monospace,monospace; }
.pluto-ten-lights { display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));grid-template-rows:repeat(2,minmax(44px,1fr));gap:6px;min-height:0; }
#game-shell .pluto-ten-lights .pluto-light { display:grid;grid-template-rows:12px minmax(0,1fr);align-items:center;justify-items:center;padding:3px;min-width:44px;width:100%;min-height:44px;height:auto;gap:2px; }
.pluto-ten-lights .pluto-light small { font:10px/1 ui-monospace,monospace; }
.pluto-ten-lights .pluto-light b { font-size:clamp(24px,7cqh,42px);line-height:1; }
.pluto-five-keys { display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:6px; }
#game-shell .pluto-five-keys .pluto-compact-button { display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px; }
.pluto-five-keys small { font:11px/1 system-ui,sans-serif; }
.pluto-five-keys b { font:800 24px/1 ui-monospace,monospace; }
.pluto-compact-repair [data-symbol="circle"] { --symbol-colour:#83bfd5; }
.pluto-compact-repair [data-symbol="triangle"] { --symbol-colour:#e7bc6f; }
.pluto-compact-repair [data-symbol="square"] { --symbol-colour:#93bd90; }
.pluto-compact-repair [data-symbol="diamond"] { --symbol-colour:#c3a0d8; }
.pluto-compact-repair [data-symbol="star"] { --symbol-colour:#e7a990; }
.pluto-preview-symbol,.pluto-ten-lights b,.pluto-five-keys b { color:var(--symbol-colour,#f2e1b4); }
.tea-making-puzzle { box-sizing:border-box;position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) 78px;height:100%;width:100%;min-height:0;gap:8px;padding:8px;overflow:hidden;color:#f0dfb4; }
.tea-making-head { padding-right:28px; }
.tea-making-head strong { color:#edd09b;font:800 15px/1.3 ui-monospace,monospace; }
.tea-making-head p { margin:4px 0 0;font:14px/1.3 system-ui,sans-serif; }
.tea-making-scene { position:relative;min-height:0;border:3px solid #ae9470;border-radius:7px;overflow:hidden;background:#443d31;isolation:isolate; }
.tea-making-background { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;pointer-events:none; }
.tea-making-kettle { position:absolute;left:12%;bottom:18%;width:29%;height:auto;max-height:72%;object-fit:contain;transform-origin:50% 65%;transition:left .5s ease,bottom .5s ease,transform .5s ease;pointer-events:none; }
.tea-making-cup { position:absolute;left:55%;bottom:15%;width:29%;aspect-ratio:3/2;transition:transform .6s ease; }
.tea-making-cup img { position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none; }
.tea-cup-water { position:absolute;left:19%;top:17%;width:57%;height:22%;border-radius:50%;background:#c4dada;box-shadow:inset 0 1px 4px #eaf1d1;pointer-events:none; }
.tea-making-cup .tea-full-cup { z-index:2; }
.tea-making-bag { position:absolute;left:86%;bottom:20%;width:9%;height:30%;object-fit:contain;cursor:grab;transition:left .6s ease,bottom .6s ease; }
.tea-making-puzzle:is([data-phase="steeping"],[data-phase="ready"],[data-phase="enjoyed"]) .tea-making-bag { left:66%;bottom:34%;width:6%;height:20%;pointer-events:none;z-index:3; }
.tea-making-puzzle[data-phase="enjoyed"] .tea-making-cup { transform:translateY(-16px) rotate(-5deg); }
.tea-making-puzzle.is-pouring .tea-making-kettle { left:28%;bottom:30%;transform:rotate(20deg); }
.tea-making-steam { position:absolute;left:27%;bottom:70%;display:flex;gap:5px;color:#fff0d3;opacity:0;font-size:28px;pointer-events:none; }
.tea-making-puzzle:is([data-phase="boiling"],[data-phase="boiled"],[data-phase="ready"]) .tea-making-steam { opacity:.8; }
.tea-making-puzzle[data-phase="ready"] .tea-making-steam { left:68%;bottom:55%; }
.tea-making-stream { position:absolute;inset:0;pointer-events:none;opacity:0; }
.tea-making-stream svg { width:100%;height:100%;display:block; }
.is-pouring .tea-making-stream { opacity:.9; }
.tea-making-meter { position:absolute;left:12px;right:12px;bottom:9px;display:grid;grid-template-columns:190px minmax(0,1fr);gap:8px;align-items:center;padding:5px 8px;border:1px solid #b69d76;background:#17313ade; }
.tea-meter-label { font:800 11px/1.2 ui-monospace,monospace; }
.tea-meter-track { height:9px;overflow:hidden;border:1px solid #a9b9a2;background:#102b32; }
.tea-meter-fill { display:block;height:100%;background:#b2c7a2; }
.tea-making-footer { display:grid;grid-template-rows:48px auto;gap:5px;min-height:0; }
.tea-making-controls { display:grid;grid-template-columns:repeat(4,minmax(44px,1fr)) 100px;gap:6px; }
#game-shell .tea-action { min-width:44px;min-height:44px;margin:0;border:2px solid #819c8d;border-image:none;border-radius:5px;background:#e3d1a8;color:#19363d;padding:5px;font:800 13px/1.1 ui-monospace,monospace;box-shadow:inset 0 2px #fff4,0 3px #081c23;touch-action:manipulation; }
#game-shell .tea-action:disabled { opacity:.55; }
#game-shell .tea-action:focus-visible { outline:3px solid #a7e1e0;outline-offset:2px; }
.tea-making-status { margin:0;padding-right:100px;font:12px/1.2 system-ui,sans-serif; }
#game-shell .tea-making-exit { min-height:52px;opacity:1; }
@media(prefers-reduced-motion:no-preference) { .tea-making-steam span { animation:tea-steam-rise 2.4s ease-in-out infinite; }.tea-making-steam span:nth-child(2) { animation-delay:.5s; }.tea-making-steam span:nth-child(3) { animation-delay:1s; } }
@keyframes tea-steam-rise { 0% { transform:translateY(4px);opacity:0; } 30% { opacity:.8; } 100% { transform:translateY(-16px);opacity:0; } }
body.reduce-motion :is(.tea-making-steam span,.tea-making-kettle,.tea-making-cup,.tea-making-bag) { animation:none;transition:none; }
@container (max-width:619px) {
  .bench-cable-target { flex-wrap:wrap;font-size:10px;gap:3px; }.bench-cable-target b { font-size:15px; }.bench-cable-target span { font-size:10px; }
  .bench-cable-runs { gap:6px; }.bench-cable-run { padding:4px; }
  .has-nine-gears .bench-work { grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:6px; }
  .has-nine-gears .bench-parts { grid-template-columns:repeat(3,minmax(44px,1fr)); }
  #game-shell .has-nine-gears .bench-part { height:50px; }.has-nine-gears .bench-rack-label { display:none; }
  #game-shell .has-nine-gears .bench-socket { height:72px; }.has-nine-gears .bench-reference { font-size:10px; }
  .pluto-compact-repair { padding:4px;gap:6px; }.pluto-compact-head p { font-size:12px; }
  .pluto-heater-work { grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px; }
  .pluto-heater-answers { gap:10px; }.pluto-heater-answer { gap:4px; }.pluto-heater-answer>strong { font-size:11px; }
  #game-shell .pluto-heater-options .pluto-compact-button { height:44px; }
  .pluto-pattern-previews { gap:4px;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr 1fr; }
  .pluto-pattern-preview { grid-template-columns:92px minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:center;padding:3px; }
  .pluto-pattern-preview>strong { font-size:9px; }.pluto-preview-symbol { font-size:20px; }
  .pluto-compact-repair.is-light-pattern { grid-template-rows:auto 86px minmax(94px,1fr) 48px 26px; }
  .pluto-five-keys { gap:4px; }.pluto-five-keys small { display:none; }
  .pluto-ten-lights { gap:4px; }
  #game-shell #answer-grid .has-color-machine .proto-work { grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:6px; }
  .proto-color-machine { width:min(100%,calc((100cqh - 270px)*1.5)); }
  .proto-color-parts { grid-template-columns:repeat(3,minmax(44px,1fr));gap:4px; }
  #game-shell #answer-grid .proto-color-part { height:52px; }
  #game-shell #answer-grid .has-color-machine .proto-rack-title { display:none; }
  .tea-making-puzzle { padding:4px;gap:5px;grid-template-rows:auto minmax(0,1fr) 108px; }
  .tea-making-head p { font-size:12px; }.tea-making-head strong { font-size:13px; }
  .tea-making-controls { grid-template-columns:repeat(3,minmax(44px,1fr));gap:5px; }
  #game-shell .tea-action { font-size:11px; }.tea-making-footer { grid-template-rows:auto 16px; }
  .tea-making-meter { left:5px;right:5px;grid-template-columns:minmax(0,1fr);gap:3px; }.tea-meter-label { font-size:9px; }
  .tea-making-status { font-size:10px; }
}
@container (max-height:399px) {
  .bench-cable-runs { gap:4px; }.bench-cable-run { padding:3px; }.bench-cable-target { margin-bottom:2px;font-size:10px; }.bench-cable-target b { font-size:14px; }.bench-cable-target span { font-size:9px; }
  .has-nine-gears .bench-work { grid-template-columns:minmax(0,1fr) 224px;grid-template-rows:minmax(0,1fr); }.has-nine-gears .bench-rack-label { display:none; }
  #game-shell .has-nine-gears .bench-part { height:44px; }#game-shell .has-nine-gears .bench-socket { height:60px; }
  .pluto-compact-repair { padding:4px;gap:4px; }.pluto-compact-head>strong { font-size:11px; }.pluto-compact-head p { font-size:11px;line-height:1.15;margin-top:2px; }
  .pluto-compact-repair.is-light-pattern { grid-template-rows:auto 50px minmax(92px,1fr) 44px 16px; }
  .pluto-pattern-previews { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);grid-template-rows:minmax(0,1fr);gap:4px; }
  .pluto-pattern-preview { grid-template-columns:minmax(0,1fr);grid-template-rows:12px minmax(0,1fr);padding:2px;gap:1px; }
  .pluto-preview-symbol { font-size:18px; }.pluto-pattern-preview>strong { font-size:9px; }
  .pluto-ten-lights .pluto-light b { font-size:25px; }#game-shell .pluto-five-keys .pluto-compact-button { min-height:44px;gap:3px; }.pluto-five-keys small { display:none; }
  .pluto-compact-status { font-size:10px;line-height:1.1; }
  .pluto-compact-repair.is-heater-math { grid-template-rows:auto minmax(0,1fr) 20px; }
  .pluto-heater-work { grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:minmax(0,1fr);gap:6px; }.pluto-heater-answers { gap:8px; }.pluto-heater-answer>strong { font-size:10px; }
  #game-shell #answer-grid .has-color-machine .proto-work { grid-template-columns:minmax(80px,1fr) 188px;grid-template-rows:minmax(0,1fr);gap:6px; }
  .proto-color-machine { width:min(100%,calc((100cqh - 140px)*1.5)); }
  #game-shell #answer-grid .has-color-machine .proto-rack { gap:4px; }
  .proto-color-parts { grid-template-columns:repeat(3,minmax(44px,1fr));gap:4px; }
  #game-shell #answer-grid .proto-color-part { height:44px; }
  .proto-socket-mark { font-size:8px; }#game-shell #answer-grid .has-color-machine .proto-howto { font-size:11px;line-height:1.15; }
  .tea-making-puzzle { padding:4px;gap:4px;grid-template-rows:auto minmax(0,1fr) 66px; }.tea-making-head p { font-size:11px;line-height:1.2; }.tea-making-head strong { font-size:12px; }
  .tea-making-controls { grid-template-columns:repeat(4,minmax(44px,1fr)) 88px;gap:4px; }.tea-making-footer { grid-template-rows:44px auto;gap:4px; }#game-shell .tea-action { font-size:11px;padding:3px; }
  .tea-making-meter { grid-template-columns:160px minmax(0,1fr);padding:3px;bottom:4px;gap:4px; }.tea-meter-label { font-size:9px; }
}
@container (max-width:359px) and (max-height:399px) {
  .pluto-heater-work { grid-template-columns:minmax(0,1fr);grid-template-rows:76px minmax(0,1fr);gap:3px; }
  .pluto-heater-answers { grid-template-columns:repeat(2,minmax(0,1fr));gap:6px; }.pluto-heater-options { gap:3px; }
  .tea-making-controls { grid-template-columns:repeat(3,minmax(44px,1fr)); }.tea-making-puzzle { grid-template-rows:auto minmax(0,1fr) 106px; }
}
