:root{font-family:'DM Sans','Noto Sans TC',system-ui,sans-serif;color:#202825;background:#f7f7f3;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7cb49b;outline-offset:2px}
.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{background:#172c28;color:#edf5ec;display:flex;flex-direction:column;padding:28px 18px 24px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;margin:6px 11px 70px;font-family:Manrope,system-ui,sans-serif;font-size:24px;font-weight:800;letter-spacing:-1.3px;line-height:1}.brand-accent{color:#a6d7b5}.brand small{display:block;color:#a6b9ad;font-size:11px;letter-spacing:1.6px;font-weight:600;margin-top:8px}.brand-mark{width:30px;height:30px;display:grid;grid-template-columns:repeat(2,1fr);gap:3px;transform:rotate(-10deg)}.brand-mark i{background:#a6d7b5;border-radius:3px}.brand-mark i:nth-child(2){opacity:.55}.brand-mark i:nth-child(3){opacity:.75}.brand-mark i:nth-child(4){background:#f1ce86}.nav-caption,.eyebrow{font-family:Manrope,system-ui,sans-serif;font-size:10px;letter-spacing:2px;font-weight:800;text-transform:uppercase}.nav-caption{color:#81978c;margin:0 12px 16px}.nav-link{display:flex;align-items:center;gap:12px;border-radius:10px;padding:12px 14px;color:#b9c8bd;font-size:14px;font-weight:600;margin:3px 0;transition:.18s}.nav-link:hover,.nav-link.active{color:#f5fcf3;background:#29463d}.nav-icon{width:24px;font-size:20px;line-height:1;text-align:center;font-weight:400}.sidebar-bottom{margin-top:auto;border-top:1px solid #385048;padding:24px 12px 0;color:#c5d8cb;font-size:12px;line-height:1.7}.sidebar-bottom small{display:block;color:#7e9a88;margin-left:16px;letter-spacing:1px}.sidebar-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8fd3a3;margin-right:9px;box-shadow:0 0 0 4px #8fd3a326}.main-column{min-width:0}.topbar{height:70px;border-bottom:1px solid #e3e7df;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(24px,5vw,70px);color:#66736c;font-size:12px;font-weight:700}.breadcrumb span{color:#b2bdb5;margin:0 8px}.topbar-right{letter-spacing:.6px}.home-page,.game-page{max-width:1400px;margin:auto;padding:0 clamp(24px,5vw,70px) 70px}
.hero{margin:38px 0 58px;min-height:385px;background:#e8efe7;border-radius:20px;overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;position:relative}.hero-copy{padding:56px 10px 48px 7%;position:relative;z-index:2}.eyebrow{color:#59806a}.eyebrow-line{display:inline-block;width:25px;height:1px;background:#668c72;vertical-align:middle;margin-right:10px}.hero h1{font-family:Manrope,'Noto Sans TC',sans-serif;font-size:clamp(46px,5vw,72px);line-height:1.12;letter-spacing:-3px;margin:22px 0 19px;font-weight:800}.hero h1 em{font-style:normal;color:#3b755b}.hero p{color:#5d7165;font-size:15px;line-height:1.8;max-width:430px;margin:0 0 28px}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;border:1px solid transparent;border-radius:9px;padding:12px 17px;font-size:13px;font-weight:700;min-height:43px;transition:transform .15s,background .15s,border-color .15s}.button:hover{transform:translateY(-1px)}.button.primary{background:#275c48;color:white}.button.primary:hover{background:#1b4a39}.button.secondary{background:#eff4ed;color:#285d47;border-color:#d7e4d8}.button.secondary:hover{background:#e6eee4}.button.subtle{background:white;border-color:#dfe5dd;color:#405b4b}.button.subtle:hover{background:#f0f5ee}.button.wide{width:100%}.hero-button{padding:14px 19px}.hero-button span{font-size:17px}.hero-art{display:grid;place-items:center;position:relative;isolation:isolate}.hero-art:before{content:'';position:absolute;width:460px;height:460px;border-radius:50%;background:#dce8dc;right:-40px;top:-45px;z-index:-1}.art-grid{width:min(280px,74%);aspect-ratio:1;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);background:#f9fbf5;box-shadow:18px 22px 0 #c9dcc9,0 20px 50px #46634c30;transform:rotate(8deg)}.art-cell{border:1px solid #c9d9c9;display:grid;place-items:center;font:800 20px Manrope,sans-serif;color:#294d3c}.art-cell:nth-child(5n+1){background:#e1eedd}.art-cell:nth-child(5n+4){background:#f0e4c6}.art-cell:nth-child(7n+3){background:#d7e8e2}.art-note{position:absolute;bottom:26px;right:26px;color:#72917b;font:800 9px Manrope,sans-serif;letter-spacing:2px}.section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:19px}.section-title h2{font:800 26px Manrope,'Noto Sans TC',sans-serif;margin:7px 0 0;letter-spacing:-.7px}.section-count{font:800 11px Manrope,sans-serif;color:#9ba8a0;letter-spacing:1.2px}.game-card{background:#fff;display:grid;grid-template-columns:180px minmax(0,1fr) 45px;gap:28px;align-items:center;border:1px solid #e6e9e3;border-radius:16px;padding:27px 30px;box-shadow:0 8px 28px #213d2a08;transition:transform .18s,box-shadow .18s}.game-card:hover{transform:translateY(-3px);box-shadow:0 15px 36px #213d2a16}.game-symbol{height:145px;background:#e9f0e8;border-radius:11px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:4px;padding:16px}.game-symbol span{border-radius:4px;background:#c9dfce}.game-symbol span:nth-child(2){background:#f0dba9}.game-symbol span:nth-child(3){background:#add2ba}.game-symbol span:nth-child(4){background:#d6e9df}.game-card-top{display:flex;justify-content:space-between;align-items:center}.pill{display:inline-block;border-radius:100px;padding:5px 10px;font-size:10px;font-weight:800;letter-spacing:.5px}.pill.live{background:#e5f2e8;color:#2c7751}.game-number{color:#afb9b2;font:800 11px Manrope,sans-serif}.game-details h3{font:800 29px Manrope,'Noto Sans TC',sans-serif;letter-spacing:-1px;margin:13px 0 9px}.game-details h3 small{font-size:15px;letter-spacing:0;color:#658373;margin-left:10px}.game-details p{color:#718077;font-size:13px;line-height:1.7;margin:0}.game-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.game-meta span{color:#779184;background:#f4f7f2;padding:5px 9px;border-radius:5px;font-size:10px;font-weight:700}.card-arrow{font-size:25px;color:#4e7860;align-self:start;text-align:right}.home-foot{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:36px;color:#55675b}.home-foot>div{border-top:1px solid #dfe5de;padding-top:20px}.home-foot strong{font-size:13px;color:#2d3a31}.home-foot p{font-size:12px;line-height:1.7;margin:7px 0}
.game-page{padding-top:32px}.game-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:25px}.back-link{display:block;color:#6d8a75;font-weight:700;font-size:11px;margin-bottom:18px}.game-heading h1{font:800 clamp(32px,3vw,45px) Manrope,'Noto Sans TC',sans-serif;letter-spacing:-1.6px;margin:6px 0}.game-heading h1 span{font-size:17px;letter-spacing:0;color:#829086;margin-left:8px}.game-heading p{font-size:13px;color:#7c8a80;margin:0}.heading-badge{background:white;border:1px solid #e4eae2;border-radius:10px;padding:12px 17px;min-width:116px;text-align:right}.heading-badge span{display:block;color:#96a49a;font-size:10px;font-weight:700;margin-bottom:4px}.heading-badge strong{font-size:12px}.heading-badge .good{color:#2f8257}.heading-badge .bad{color:#c45a48}.heading-badge .quiet{color:#5a7765}.game-layout{display:grid;grid-template-columns:minmax(440px,1fr) 308px;gap:22px;align-items:start}.puzzle-panel,.tool-panel{background:#fff;border:1px solid #e4e9e2;border-radius:15px;box-shadow:0 5px 25px #1c3c2706}.puzzle-panel{padding:28px clamp(23px,3vw,40px) 25px}.panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.panel-top h2,.panel-label h2{font:800 18px Manrope,'Noto Sans TC',sans-serif;margin:7px 0 0;letter-spacing:-.4px}.progress{text-align:right}.progress strong{font:800 27px Manrope,sans-serif;color:#356a4e}.progress strong span{color:#a7b8a9;font-size:16px}.progress small{display:block;color:#9aa99c;font-size:10px}.board-frame{max-width:560px;margin:auto;background:#e9eee8;border-radius:9px;padding:8px}.board{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));aspect-ratio:1;gap:2px;background:#d8e3d7;border:2px solid #c3d0c2;border-radius:4px;overflow:hidden}.cell{border:2px solid #edf3ea;background:#fbfcf8;display:grid;place-items:center;min-width:0;min-height:0;padding:0;color:#2b4535;font:800 clamp(15px,2vw,24px) Manrope,sans-serif;position:relative;transition:filter .15s,background .15s}.cell:hover{filter:brightness(.96)}.cell span{position:relative;z-index:2}.cell.active-clue span:not(:empty){background:#285d46;color:white;min-width:31px;min-height:31px;border-radius:50%;display:grid;place-items:center}.cell.first-corner:after{content:'';position:absolute;width:13px;height:13px;background:#f2b746;border:3px solid white;border-radius:50%;right:5px;top:5px;box-shadow:0 1px 5px #0002}.cell.filled{background:var(--fill);border-color:var(--fill);color:#244334}.cell.edge-top{border-top-color:var(--stroke);border-top-width:4px}.cell.edge-bottom{border-bottom-color:var(--stroke);border-bottom-width:4px}.cell.edge-left{border-left-color:var(--stroke);border-left-width:4px}.cell.edge-right{border-right-color:var(--stroke);border-right-width:4px}.tone-0{--fill:#d8e9d5;--stroke:#5f9e6c}.tone-1{--fill:#eee4c7;--stroke:#c8a44f}.tone-2{--fill:#d4e6eb;--stroke:#6b9eae}.tone-3{--fill:#e9dfe9;--stroke:#a47ca9}.tone-4{--fill:#e7e4d4;--stroke:#a3a068}.tone-5{--fill:#d7e9df;--stroke:#71a887}.board-instruction{display:flex;gap:10px;align-items:center;color:#748579;font-size:11px;line-height:1.5;margin:17px 0}.instruction-mark{border:1px solid #a3baaa;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}.notice{border-radius:8px;padding:12px 14px;font-size:11px;line-height:1.6;background:#f3f6f1;color:#526658}.notice.good{background:#edf6ec;color:#337657}.notice.bad{background:#fff1ed;color:#af5747}.game-aside{display:grid;gap:16px}.tool-panel{padding:22px}.panel-label{margin-bottom:17px}.field-label{display:block;color:#6e8173;font-weight:700;font-size:11px;margin:13px 0 7px}.tool-panel input,.tool-panel select,.import-dialog input,.import-dialog textarea{border:1px solid #dce4db;border-radius:7px;background:#fbfcf9;color:#243d2d;padding:10px 11px;width:100%;outline:none;font-size:12px}.tool-panel input:focus,.tool-panel select:focus,.import-dialog input:focus,.import-dialog textarea:focus{border-color:#5d9971}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:13px 0}.form-row label{font-size:10px;font-weight:700;color:#748579}.form-row select{display:block;margin-top:6px}.meta-line{display:flex;justify-content:space-between;border-top:1px solid #edf0eb;margin-top:17px;padding-top:13px;font-size:11px;color:#889a8c}.meta-line strong{color:#3c7955}.clue-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:180px;overflow:auto}.clue-item{border:1px solid #e4ebe1;background:#fafcf8;display:flex;align-items:center;gap:7px;border-radius:7px;padding:8px 7px;min-width:0;text-align:left}.clue-item:hover,.clue-item.selected{border-color:#75aa7d;background:#edf5e9}.clue-item.done{background:#eef3ec}.clue-value{font:800 18px Manrope,sans-serif;color:#315d43;min-width:18px}.clue-location{color:#829486;font-size:9px;white-space:nowrap}.clue-state{margin-left:auto;color:#6aab77;font-weight:800}.text-button{background:none;border:0;padding:11px 0 0;color:#588366;font-size:11px;font-weight:700}.text-button:hover{text-decoration:underline}.hint-placeholder{text-align:center;color:#8da092;padding:5px 5px 15px}.hint-icon{display:block;color:#659d76;font-size:22px;margin:0 0 6px}.hint-placeholder strong{font-size:12px;color:#526e59}.hint-placeholder p,.hint-content p{font-size:11px;line-height:1.7;color:#7e9082;margin:6px 0 14px}.hint-content h3{font:800 16px Manrope,'Noto Sans TC',sans-serif;margin:10px 0 6px}.hint-content p strong{color:#315e45}.hint-tier{background:#ebf2e9;color:#548365}.hint-panel>.button{margin-top:8px}.bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:23px;background:white;border:1px solid #e4e9e2;border-radius:13px;padding:20px 25px}.bottom-actions strong{display:block;font-size:13px;margin-top:5px}.action-group{display:flex;flex-wrap:wrap;justify-content:end;gap:7px}.action-group .button{min-height:36px;padding:8px 12px;font-size:11px}.puzzle-id{font-size:10px;letter-spacing:.8px;color:#9aa99c;margin:19px 4px;display:flex;gap:10px}.puzzle-id code{color:#68836e}.puzzle-id span{margin-left:auto;letter-spacing:0}
dialog{border:0;border-radius:16px;padding:0;box-shadow:0 30px 100px #10251c50;width:min(520px,calc(100% - 30px));max-height:90vh}dialog::backdrop{background:#11271cb3}.import-dialog{padding:25px 28px 30px;overflow:auto;max-height:90vh}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-top .icon-button{border:0;background:none;color:#789083;font-size:24px;line-height:1}.import-dialog h2{font:800 23px Manrope,'Noto Sans TC',sans-serif;margin:10px 0 4px}.import-dialog p{color:#718174;font-size:12px;line-height:1.6}.import-dialog textarea{resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.5}.import-dialog .button{margin-top:10px}.divider{text-align:center;color:#9cab9f;font-size:11px;margin:20px 0;position:relative}.divider:before{content:'';position:absolute;height:1px;background:#e4ebe2;left:0;right:0;top:50%}.divider span{background:white;padding:0 11px;position:relative}.dimensions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dimensions label{font-size:11px;color:#6b806f;font-weight:700}.dimensions input{display:block;margin-top:5px}.dialog-error{color:#b74f42!important;min-height:15px}
@media(max-width:1120px){.game-layout{grid-template-columns:minmax(0,1fr) 270px}.clue-list{grid-template-columns:1fr}.game-card{grid-template-columns:140px minmax(0,1fr) 25px}.game-symbol{height:130px}}
@media(max-width:880px){.app-shell{display:block}.sidebar{height:auto;position:static;flex-direction:row;align-items:center;gap:20px;padding:14px 24px}.brand{margin:0;font-size:20px}.brand small,.sidebar-bottom,.nav-caption{display:none}.sidebar nav{display:flex;margin-left:auto}.nav-link{padding:8px 10px;font-size:12px}.topbar{height:50px}.game-layout{grid-template-columns:1fr}.game-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.game-aside .hint-panel{grid-column:1/-1}.clue-list{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.sidebar{padding:12px 16px}.brand-mark{width:23px;height:23px}.brand{font-size:17px}.nav-link{gap:5px;padding:7px}.nav-icon{font-size:17px}.topbar{padding:0 18px}.topbar-right{display:none}.home-page,.game-page{padding-left:16px;padding-right:16px}.hero{grid-template-columns:1fr;min-height:0;margin:20px 0 40px}.hero-copy{padding:35px 27px 32px}.hero h1{font-size:48px}.hero-art{display:none}.game-card{grid-template-columns:85px 1fr;padding:17px;gap:16px}.game-symbol{height:85px;padding:8px}.game-details h3{font-size:20px}.game-details h3 small{display:block;margin:2px 0}.game-details p{font-size:11px}.game-meta,.card-arrow{display:none}.home-foot{grid-template-columns:1fr}.game-heading{align-items:start}.heading-badge{display:none}.game-layout{display:block}.puzzle-panel{padding:19px 13px}.game-aside{display:grid;grid-template-columns:1fr;margin-top:14px}.clue-list{grid-template-columns:1fr 1fr}.board-frame{padding:5px}.cell{font-size:16px}.bottom-actions{display:block;padding:18px}.action-group{justify-content:start;margin-top:14px}.puzzle-id{flex-wrap:wrap}}
.cell.hint-cell:not(.filled){background:#fff5d9}
.cell.hint-cell{box-shadow:inset 0 0 0 3px #e4b85d}
.hint-rule{display:block;color:#778b79;font-size:10px;letter-spacing:.3px}
.hint-premises{border:1px solid #e7eee5;background:#f8faf6;border-radius:7px;padding:10px;margin:13px 0}
.hint-premises>strong{color:#53755a;font-size:10px}
.hint-premises ul{padding-left:17px;margin:7px 0 0;max-height:95px;overflow:auto}
.hint-premises li,.hint-premises p{color:#768b7a;font-size:10px;line-height:1.6;margin:3px 0}
html{scrollbar-gutter:stable}
.puzzle-panel{min-width:0}
.board-frame{width:min(100%,var(--board-max));max-width:none;overflow:hidden}
.board{width:100%;aspect-ratio:var(--columns) / var(--rows);grid-template-rows:repeat(var(--rows),minmax(0,1fr));touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.cell{touch-action:none;-webkit-tap-highlight-color:transparent}
@media(max-width:1200px) and (min-width:881px){.game-layout{grid-template-columns:minmax(0,1fr)}.game-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.game-aside .hint-panel{grid-column:1/-1}.clue-list{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.game-page{padding-left:0;padding-right:0}.game-heading{padding:0 16px}.puzzle-panel{border-radius:0;padding:18px 0}.panel-top,.board-instruction,.notice{margin-left:16px;margin-right:16px}.game-aside,.bottom-actions,.puzzle-id{margin-left:16px;margin-right:16px}.board-frame{padding:0}}
.board{position:relative;isolation:isolate}
.region-outline{position:absolute;inset:0;z-index:2;border:4px solid var(--stroke);border-radius:3px;pointer-events:none;transition:opacity 100ms ease}
.region-outline.preview-covered{opacity:.16}
.drag-outline{position:absolute;top:0;left:0;z-index:3;border:4px solid var(--stroke);border-radius:3px;background:color-mix(in srgb,var(--fill) 34%,transparent);pointer-events:none;transform:translate3d(0,0,0);transition:transform 85ms ease-out,width 85ms ease-out,height 85ms ease-out,background-color 85ms ease-out,border-color 85ms ease-out;will-change:transform,width,height}
.drag-outline[hidden]{display:none}
.drag-outline.neutral{--fill:#d9eadc;--stroke:#5f9e6c}
.drag-outline.invalid{--fill:#f7dbd5;--stroke:#cc6c5c}
.board-tools{width:min(100%,var(--board-max,640px));display:flex;justify-content:flex-end;gap:8px;margin:-12px auto 12px}
.board-tools .icon-button{width:44px;height:44px;border:1px solid #dce7db;border-radius:8px;background:#f7faf5;color:#315f48;font-size:23px;line-height:1;display:grid;place-items:center;padding:0}
.board-tools .icon-button:hover:not(:disabled){background:#e6f1e5;border-color:#9ebfa4}
.board-tools .icon-button:disabled{opacity:.35;cursor:default}
@media(max-width:620px){.board-tools{padding-right:12px;margin-top:-7px}}
.tone-0{--fill:#d0efd8;--stroke:#2e8752}
.tone-1{--fill:#ffedb3;--stroke:#af7513}
.tone-2{--fill:#cfeaf6;--stroke:#287b9b}
.tone-3{--fill:#efd8f4;--stroke:#8d4fa5}
.tone-4{--fill:#ffdfc9;--stroke:#b96230}
.tone-5{--fill:#d0eee6;--stroke:#268270}
.region-outline,.drag-outline{border-width:5px}
.drag-outline{background:color-mix(in srgb,var(--fill) 60%,transparent)}
.hint-outline{position:absolute;inset:0;z-index:3;pointer-events:none;border:4px dashed var(--stroke);border-radius:4px;background:color-mix(in srgb,var(--fill) 42%,transparent)}
.shikaku-page .hint-panel{align-self:start;position:sticky;top:18px}
.shikaku-page .hint-placeholder{text-align:left;padding:2px 0 12px}
.shikaku-page .hint-placeholder .hint-icon{margin-bottom:7px}
.shikaku-page .hint-content p{font-size:12px;line-height:1.7}
.area-hint-reason{margin:12px 0 15px;color:#53675a}
.area-hint-targets{display:grid;gap:8px}
.area-hint-target{display:flex;align-items:center;gap:11px;border-left:5px solid var(--stroke);border-radius:7px;background:var(--fill);padding:10px 11px;color:#2b4535}
.area-hint-target strong{font:800 22px Manrope,sans-serif;min-width:27px}
.area-hint-target span{font-size:11px;line-height:1.55}
.area-hint-proof{border-top:1px solid #e4eee5;padding-top:10px;color:#6e8474}
@media (max-width:880px){.shikaku-page .hint-panel{position:static}}

.mambo-card{margin-top:14px}.mambo-symbol{background:#e7edf4}.mambo-symbol span{display:grid;place-items:center;font:800 30px Manrope,sans-serif;color:#315c77;background:#d4e3ec}.mambo-symbol span:nth-child(2),.mambo-symbol span:nth-child(3){background:#f4dfb8;color:#815b25}
.chromedoku-card{margin-top:14px}.chromedoku-symbol{background:#e8f3f4}.chromedoku-symbol span{background:#55a6c9;border-radius:8px}.chromedoku-symbol span:nth-child(2){background:#0b827e}.chromedoku-symbol span:nth-child(3){background:#d386ac}.chromedoku-symbol span:nth-child(4){background:#efc85e}
.topbar-path{display:flex;align-items:center;gap:22px;min-width:0}.hub-return-link{color:#276a65;font-weight:800;white-space:nowrap}.hub-return-link:hover{text-decoration:underline}
@media(max-width:620px){.sidebar{flex-wrap:wrap;gap:6px}.sidebar nav{width:100%;margin-left:0;justify-content:flex-start;flex-wrap:wrap;gap:2px}.nav-link{flex:1 1 calc(33.333% - 4px);min-width:0;justify-content:center;font-size:10px;padding:7px 4px;gap:3px;margin:0}.nav-icon{font-size:15px;width:auto}}
@media(min-width:621px) and (max-width:880px){.sidebar nav{gap:2px}.nav-link{font-size:0;padding:8px;margin:0;gap:0}.nav-icon{width:18px;font-size:18px}}
@media(max-width:620px){.topbar-path{gap:12px}.breadcrumb{font-size:10px}}
.mambo-page .game-heading p{max-width:660px;line-height:1.7}.mambo-tools{--board-max:560px}.mambo-board-wrap{width:min(100%,560px);margin:auto;padding:9px;background:#e8eef0;border-radius:11px}.mambo-board{display:grid;grid-template-columns:repeat(var(--mambo-size),minmax(0,1fr));grid-template-rows:repeat(var(--mambo-size),minmax(0,1fr));gap:8px;aspect-ratio:1;position:relative}.mambo-cell{border:2px solid #cfdde0;border-radius:7px;min-width:0;min-height:0;padding:0;background:#fff;color:#35536a;font:800 clamp(17px,3vw,34px) Manrope,sans-serif;box-shadow:0 2px 4px #183b480b}.mambo-cell.editable:hover{border-color:#61a1a8;background:#f2fbfa}.mambo-cell.given{color:#284f43;background:#d7e9d8;border-color:#9dbda5;cursor:default;opacity:1}.mambo-cell.value-1:not(.given){color:#8d5d23;background:#fff4df;border-color:#dfc390}.mambo-cell.hinted{box-shadow:inset 0 0 0 3px #e3aa43}.mambo-relation{position:absolute;z-index:2;width:22px;height:22px;border-radius:6px;transform:translate(-50%,-50%);display:grid;place-items:center;background:#214d57;color:white;font:800 16px Manrope,sans-serif;pointer-events:none;box-shadow:0 1px 5px #1237}.mambo-relation.different{background:#9b6940}.mambo-page .hint-panel{align-self:start}.mambo-page .hint-content p{font-size:12px}.mambo-page .hint-content p strong{font-size:16px}.mambo-page .board-instruction{max-width:560px;margin-left:auto;margin-right:auto}.mambo-page .notice{max-width:560px;margin-left:auto;margin-right:auto}
@media(max-width:620px){.mambo-board-wrap{padding:5px}.mambo-board{gap:5px}.mambo-cell{border-radius:4px;font-size:20px}.mambo-relation{width:17px;height:17px;font-size:12px;border-radius:4px}.mambo-page .board-instruction,.mambo-page .notice{margin-left:16px;margin-right:16px}}

.mambo-cell.value-0:not(.given){background:#eaf4fb;border-color:#a8c8dc;color:#315d78}
.mambo-cell.hint-context{outline:3px solid #4e8d81;outline-offset:-5px}.mambo-cell.hint-assumption{outline:3px solid #d69a36;outline-offset:-5px;background:#fff1d3}.mambo-cell.hint-conflict{outline:3px solid #d65b60;outline-offset:-5px;background:#fbe3e3}.mambo-cell.hint-target{outline:3px solid #4e88bd;outline-offset:-5px;background:#e5f1fc}.mambo-hint-ghost{opacity:.62;font-style:italic}.mambo-page .hint-panel{order:-1}
.mambo-cell.trial-change:not(.given){background:#f2e7f8;border-color:#ad85c5;color:#633b7d}
.mambo-trial-bar{width:min(100%,560px);margin:0 auto 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#718075;font-size:11px;font-weight:700}
.mambo-trial-bar>div{display:flex;gap:7px;flex-wrap:wrap}.mambo-trial-bar .button{min-height:34px;padding:7px 11px;font-size:11px}.mambo-trial-status{color:#744a8c;background:#f4eaf8;padding:8px 10px;border-radius:7px}
.mambo-legend{width:min(100%,560px);display:flex;gap:8px 15px;flex-wrap:wrap;margin:14px auto 0;color:#65786d;font-size:11px}.mambo-legend span{display:inline-flex;align-items:center;gap:6px}.mambo-legend i{display:inline-block;width:14px;height:14px;border:1px solid;border-radius:3px}.mambo-legend i.given{background:#d7e9d8;border-color:#9dbda5}.mambo-legend i.zero{background:#eaf4fb;border-color:#a8c8dc}.mambo-legend i.one{background:#fff4df;border-color:#dfc390}.mambo-legend i.trial{background:#f2e7f8;border-color:#ad85c5}
.mambo-hint-conclusion{margin-bottom:12px}.mambo-hint-steps{margin:0 0 13px;padding-left:21px;display:grid;gap:9px;color:#536c5c;font-size:12px;line-height:1.65}.mambo-hint-steps li::marker{color:#447c63;font-weight:800}.mambo-hint-candidates{margin:0 0 12px;padding:10px;border-radius:8px;background:#f5f8f4}.mambo-hint-candidates summary{cursor:pointer;font-size:11px;font-weight:800;color:#5e7867}.mambo-hint-candidates div{display:grid;gap:5px;margin-top:8px}.mambo-hint-candidates code{font-size:12px;letter-spacing:.1em;white-space:nowrap}.mambo-hint-proof{border-top:1px solid #e7ede5;padding-top:10px;color:#6a8975!important;font-size:11px!important}
.mambo-hint-progress{display:block;margin:3px 0 10px;color:#637e70;font-size:11px;font-weight:800;letter-spacing:.08em}.mambo-hint-stage{min-height:66px;line-height:1.75}.mambo-hint-navigation{display:flex;gap:8px;margin:12px 0}.mambo-hint-navigation .button{flex:1;min-width:0}.mambo-hint-navigation .button:disabled{opacity:.45;cursor:default}
.mambo-page .hint-panel .panel-label{position:relative}.mambo-hint-dismiss{position:absolute;right:0;top:0;border:0;background:transparent;color:#6b8171;font-size:22px;line-height:1;cursor:pointer}.mambo-hint-dismiss:hover{color:#a44e4e}
@media(max-width:620px){.mambo-page.hint-open{padding-bottom:300px}.mambo-page.hint-open .hint-panel{position:fixed;z-index:30;left:8px;right:8px;bottom:8px;width:auto;max-height:min(52vh,calc(100vh - 380px));overflow:auto;padding:15px 17px;box-shadow:0 12px 38px #0b211b70}.mambo-page.hint-open .hint-panel .panel-label{margin-bottom:6px}.mambo-page.hint-open .hint-panel .panel-label h2{font-size:14px}.mambo-page.hint-open .mambo-hint-stage{min-height:0}.mambo-page.hint-open .hint-panel>.button{min-height:32px;margin-top:5px;font-size:10px}}
.mambo-touch-entry{display:none;width:min(100%,560px);margin:0 auto 14px;align-items:center;gap:8px;color:#65786d;font-size:11px}.mambo-touch-entry button{border:1px solid #abc4c8;background:#fff;color:#35536a;border-radius:6px;min-width:38px;min-height:36px;font-weight:800}.mambo-touch-entry button.selected{background:#275c48;border-color:#275c48;color:#fff}.mambo-touch-entry small{font-size:10px}
@media(pointer:coarse){.mambo-touch-entry{display:flex}}
@media(max-width:620px){.mambo-trial-bar{padding:0 12px;flex-wrap:wrap}.mambo-legend{padding:0 16px}.mambo-touch-entry{padding:0 16px}}

.codebreak-card{margin-top:14px}.codebreak-symbol{background:#f2ebdf}.codebreak-symbol span{display:grid;place-items:center;border-radius:50%;font:800 23px Manrope,sans-serif;color:#fff;background:#bf6554}.codebreak-symbol span:nth-child(2){background:#d5a63c}.codebreak-symbol span:nth-child(3){background:#508ea3}.codebreak-symbol span:nth-child(4){background:#7a68a6}
.codebreak-page .game-heading p{max-width:650px;line-height:1.7}.codebreak-page .puzzle-panel{max-width:850px}.codebreak-counter{color:#778b79;font-size:12px;font-weight:700}.codebreak-history{display:grid;gap:8px;min-height:110px;max-height:340px;overflow:auto;padding:3px 1px 14px}.codebreak-empty{color:#93a299;font-size:13px;padding:20px 0}.codebreak-row{display:flex;align-items:center;gap:16px;padding:10px 13px;background:#f8faf7;border:1px solid #e5ece4;border-radius:10px}.codebreak-index{font:800 12px Manrope,sans-serif;color:#96a89a;width:20px}.codebreak-code,.codebreak-draft,.codebreak-palette{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.codebreak-feedback{margin-left:auto;color:#60786b;font-size:12px;white-space:nowrap}.codebreak-feedback b{font-size:17px;color:#2b6248}.codebreak-peg,.codebreak-slot{width:42px;height:42px;border-radius:50%;border:2px solid #ffffffbb;box-shadow:0 2px 7px #1d332526;color:#fff;font:800 16px Manrope,sans-serif;display:grid;place-items:center;flex:none}.codebreak-peg{cursor:pointer}.codebreak-row .codebreak-peg{width:34px;height:34px;font-size:13px}.codebreak-slot{width:55px;height:55px;cursor:pointer}.codebreak-slot.empty{background:#eff3ed;border:2px dashed #b6c7b9;color:#91a394;box-shadow:none}.codebreak-slot.selected{outline:3px solid #3d8061;outline-offset:3px}.color-0{background:#c35552}.color-1{background:#db9d32}.color-2{background:#3d90ae}.color-3{background:#6b6ab5}.color-4{background:#579767}.color-5{background:#bd70a4}.color-6{background:#5e7586}.color-7{background:#ae7648}.codebreak-draft{justify-content:center;margin:28px 0 20px}.codebreak-palette{justify-content:center;padding:17px;background:#f7faf5;border-radius:10px}.codebreak-palette button:hover{transform:translateY(-3px)}.codebreak-entry-actions{display:flex;justify-content:center;gap:10px;margin:17px 0 20px}.codebreak-page .notice{margin-top:15px}.codebreak-manual-entry{display:flex;gap:9px;flex-wrap:wrap;align-items:end;padding:15px;background:#f7faf5;border-radius:10px}.codebreak-manual-entry p{width:100%;font-size:12px;color:#6f8575;margin:0 0 5px}.codebreak-manual-entry label{font-size:11px;color:#65776c;font-weight:700}.codebreak-manual-entry input{display:block;border:1px solid #cfded0;border-radius:6px;padding:8px;width:85px;margin-top:5px}.codebreak-manual-entry label:first-of-type input{width:150px}.codebreak-page .hint-content p{font-size:12px}.codebreak-page .hint-panel{align-self:start}
@media(min-width:881px){.codebreak-page .game-layout{grid-template-columns:minmax(0,1fr) 280px}.codebreak-page .game-aside{display:grid;grid-template-columns:1fr}.codebreak-page .game-aside .hint-panel{grid-column:auto}}
@media(max-width:620px){.codebreak-row{gap:6px;padding:8px}.codebreak-row .codebreak-peg{width:28px;height:28px;font-size:11px}.codebreak-code{gap:3px}.codebreak-feedback{font-size:10px}.codebreak-feedback b{font-size:12px}.codebreak-slot{width:45px;height:45px}.codebreak-page .puzzle-panel{padding:18px 12px}}

.pipes-card{margin-top:14px}.pipes-symbol{background:#e7f0ec}.pipes-symbol span{display:grid;place-items:center;border-radius:8px;background:#d4e6df;color:#2c725f;font:800 29px Manrope,sans-serif}.pipes-symbol span:nth-child(2),.pipes-symbol span:nth-child(4){background:#c8dfd6}
.pipes-page .game-heading p{max-width:700px;line-height:1.7}.pipes-page .game-layout{grid-template-columns:minmax(0,1fr) 280px}.pipes-page .game-aside{display:grid;grid-template-columns:1fr}.pipes-page .game-aside .hint-panel{grid-column:auto}.pipes-page .hint-panel{align-self:start}.pipes-tools{--board-max:560px}
.pipes-board-wrap{width:min(100%,560px);margin:auto;padding:10px;border-radius:14px;background:#dce9e4}.pipes-board{display:grid;grid-template-columns:repeat(var(--pipes-columns),minmax(0,1fr));grid-template-rows:repeat(var(--pipes-rows),minmax(0,1fr));gap:7px;aspect-ratio:var(--pipes-columns) / var(--pipes-rows)}
.pipes-cell{min-width:0;min-height:0;border:2px solid #adcec0;border-radius:9px;background:#f7fcf8;color:#3e8771;display:grid;place-items:center;padding:0;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.pipes-cell svg{width:78%;height:78%;overflow:visible}.pipes-cell:hover{background:#ebf7ee;border-color:#62a984}.pipes-cell:active{transform:scale(.95)}.pipes-cell.committed{background:#d7ede3;border-color:#64a486;color:#246b52}.pipes-cell.hinted{outline:4px solid #e0ac42;outline-offset:-4px;background:#fff4d8}.pipes-page .board-instruction,.pipes-page .notice{max-width:560px;margin-left:auto;margin-right:auto}.pipes-profile-note{font-size:11px;font-weight:800;color:#47735e;align-self:end;padding:9px 0}.pipes-profile-note small{font-size:10px;font-weight:500;color:#829589}.pipes-page .hint-content p{font-size:12px}
.pipes-page .pipes-board-scroller{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.pipes-page .pipes-seed-help{display:block;margin:6px 0 14px;color:#728a81;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.pipes-page .pipes-seed-help code{font-size:10px}
.pipes-page .pipes-difficulty-help{display:block;margin:0 0 14px;color:#728a81;font-size:10px;line-height:1.6}
@media(max-width:880px){.pipes-page .game-layout{grid-template-columns:1fr}.pipes-page .game-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.pipes-page .game-aside .hint-panel{grid-column:auto}}
@media(max-width:620px){.pipes-board-wrap{padding:5px;border-radius:7px}.pipes-page .pipes-board-wrap{min-width:var(--pipe-min-size)}.pipes-board{gap:5px}.pipes-cell{border-radius:5px}.pipes-page .game-aside{grid-template-columns:1fr}.pipes-page .puzzle-panel{padding:18px 12px}.pipes-page .board-instruction,.pipes-page .notice{margin-left:4px;margin-right:4px}}

/* Pipes source and terminal edition: floating linework on a dark waterworks board. */
.pipes-page.source-mode{background:radial-gradient(circle at 45% 30%,#22313a 0,#17232c 44%,#131d25 100%);color:#e9f0ee;max-width:none;min-height:calc(100vh - 70px);padding-top:36px;border-radius:0 0 20px 20px}
.pipes-page.source-mode .eyebrow{color:#91c6c1}.pipes-page.source-mode .game-heading h1{color:#f4f7f6}.pipes-page.source-mode .game-heading h1 span{color:#9fb1bc}.pipes-page.source-mode .game-heading p{color:#adbec2}.pipes-page.source-mode .heading-badge{background:#21303a;border-color:#34454e}.pipes-page.source-mode .heading-badge span{color:#91a6af}.pipes-page.source-mode .heading-badge .quiet{color:#a7ccc7}.pipes-page.source-mode .heading-badge .good{color:#8bdfc8}
.pipes-page.source-mode .puzzle-panel,.pipes-page.source-mode .tool-panel,.pipes-page.source-mode .bottom-actions{background:#1c2933;border-color:#33444d;box-shadow:0 14px 36px #09121630;color:#e4efec}
.pipes-page.source-mode .panel-top h2,.pipes-page.source-mode .panel-label h2,.pipes-page.source-mode .bottom-actions strong{color:#eef5f2}.pipes-page.source-mode .progress strong{color:#89dfcb}.pipes-page.source-mode .progress strong span,.pipes-page.source-mode .progress small{color:#91a8ac}
.pipes-page.source-mode .board-tools .icon-button{background:#263741;border-color:#40535c;color:#b8d7d0}.pipes-page.source-mode .board-tools .icon-button:hover:not(:disabled){background:#34515a;border-color:#6d9898}
.pipes-page.source-mode .pipes-board-wrap{width:min(100%,var(--pipe-board-size));max-width:600px;padding:0;background:transparent;border-radius:0;box-shadow:none;margin:14px auto 4px}
.pipes-page.source-mode .pipes-board{gap:0;background:transparent;aspect-ratio:var(--pipes-columns) / var(--pipes-rows)}
.pipes-page.source-mode .pipes-seed-help{color:#92adb0}
.pipes-page.source-mode .pipes-cell{border:0;border-radius:0;background:transparent;color:#b7c4c7;box-shadow:none;transition:background .16s,color .16s,filter .16s;outline-offset:-5px}
.pipes-page.source-mode .pipes-cell:hover{background:#c6f2e50a;color:#e1ecec}.pipes-page.source-mode .pipes-cell:active{transform:scale(.97)}.pipes-page.source-mode .pipes-cell svg{width:100%;height:100%;overflow:visible;pointer-events:none}
.pipes-page.source-mode .pipe-outer,.pipes-page.source-mode .pipe-inner{fill:none;stroke-linecap:butt;stroke-linejoin:round;transition:stroke .18s}.pipes-page.source-mode .pipe-outer{stroke:#aab9bd;stroke-width:15}.pipes-page.source-mode .pipe-inner{stroke:#1c2933;stroke-width:11}.pipes-page.source-mode .pipes-cell.powered .pipe-outer{stroke:#8bddcc;filter:drop-shadow(0 0 4px #61c8bb55)}.pipes-page.source-mode .pipes-cell.powered .pipe-inner{stroke:#25484c}
.pipes-page.source-mode .pipe-node{fill:#1c2933;stroke:#b6c5c9;stroke-width:3}.pipes-page.source-mode .terminal.powered .pipe-node{stroke:#9de1cf;filter:drop-shadow(0 0 5px #7cd9c888)}
.pipes-page.source-mode .source .pipe-node{fill:#b6acd9;stroke:#e6ddff;stroke-width:3;filter:drop-shadow(0 0 8px #b2a5f0aa)}.pipes-page.source-mode .source .pipe-node-halo{fill:#ac9de02b;stroke:#b5a6e08a;stroke-width:1;transform-origin:50px 50px;animation:pipePulse 2.8s ease-in-out infinite}.pipes-page.source-mode .source .pipe-drop{fill:#28323e}
.pipes-page.source-mode .pipes-cell.hinted{background:#e0ae4c1b;outline:2px dashed #e5bd68;outline-offset:-6px}
.pipes-legend{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;margin:10px auto 18px;color:#a9bbc0;font-size:11px}.pipes-legend span{display:flex;align-items:center;gap:8px}.pipes-legend i{display:block;width:12px;height:12px;border-radius:50%;border:2px solid #b7c6ca}.pipes-legend i.legend-source{background:#baaee0;border-color:#eee5ff;box-shadow:0 0 7px #b2a5f0}.pipes-legend i.legend-terminal{background:#1c2933}.pipes-legend i.legend-flow{background:#83d9c8;border-color:#a9edda;box-shadow:0 0 6px #72d3c4}
.pipes-page.source-mode .board-instruction{color:#a7b8bd}.pipes-page.source-mode .instruction-mark{border-color:#718b93;color:#a5c7c6}.pipes-page.source-mode .notice{background:#253943;color:#c5e8dc}.pipes-page.source-mode .notice.bad{background:#4a3133;color:#ffd3c8}
.pipes-page.source-mode .field-label,.pipes-page.source-mode .form-row label,.pipes-page.source-mode .pipes-profile-note,.pipes-page.source-mode .meta-line,.pipes-page.source-mode .hint-placeholder,.pipes-page.source-mode .hint-content p{color:#a8b9bb}.pipes-page.source-mode .pipes-profile-note small{color:#91a5a9}.pipes-page.source-mode .meta-line{border-color:#384b52}.pipes-page.source-mode .meta-line strong,.pipes-page.source-mode .hint-content p strong{color:#a2e2d0}.pipes-page.source-mode .hint-placeholder strong{color:#d7e7e2}.pipes-page.source-mode .hint-icon{color:#a5dacf}.pipes-page.source-mode .hint-tier{background:#244c4e;color:#b6eadb}
.pipes-page.source-mode .tool-panel input,.pipes-page.source-mode .tool-panel select{background:#14222a;border-color:#40545b;color:#e3eeeb}.pipes-page.source-mode .button.primary{background:#75c8b2;color:#113a36}.pipes-page.source-mode .button.primary:hover{background:#9be2ce}.pipes-page.source-mode .button.secondary,.pipes-page.source-mode .button.subtle{background:#273b44;border-color:#446069;color:#d1e7df}.pipes-page.source-mode .button.secondary:hover,.pipes-page.source-mode .button.subtle:hover{background:#34515b}.pipes-page.source-mode .puzzle-id,.pipes-page.source-mode .puzzle-id code{color:#91a6a8}
@keyframes pipePulse{50%{transform:scale(1.1);opacity:.55}}
@media(prefers-reduced-motion:reduce){.pipes-page.source-mode .source .pipe-node-halo{animation:none}}
@media(max-width:880px){.pipes-page.source-mode{min-height:calc(100vh - 50px)}}
@media(max-width:620px){.pipes-page.source-mode{padding:22px 12px 60px;border-radius:0}.pipes-page.source-mode .puzzle-panel{padding:17px 10px}.pipes-page.source-mode .game-heading{padding:0 4px}.pipes-page.source-mode .board-instruction,.pipes-page.source-mode .notice{margin-left:4px;margin-right:4px}.pipes-page.source-mode .pipes-board-wrap{width:min(100%,var(--pipe-board-size))}.pipes-page.source-mode .pipes-legend{gap:12px}.pipes-page.source-mode .bottom-actions{margin-left:0;margin-right:0}.pipes-page.source-mode .puzzle-id{margin-left:0;margin-right:0}}
.codebreak-reason{border-top:1px solid #e6eee5;padding-top:12px}.codebreak-reason h3{line-height:1.35}.codebreak-reason p{color:#5c7163;line-height:1.75}.codebreak-proof{background:#f3f8f1;border-left:3px solid #72a27b;border-radius:5px;padding:10px 11px;color:#526d59;font-size:11px;line-height:1.75;margin:12px 0}.codebreak-proof strong{color:#2f6546}
#codebreak-import-dialog{width:min(850px,calc(100% - 30px))}.codebreak-image-review{border:1px solid #dce8dd;border-radius:10px;padding:15px;margin-top:14px;background:#f9fbf8}.codebreak-image-review h3{font-size:16px;margin:0 0 10px}.codebreak-image-review>img{display:block;max-width:100%;max-height:360px;object-fit:contain;border-radius:7px;background:#172026;margin:0 auto 14px}.codebreak-import-legend{display:flex;align-items:center;gap:8px 13px;flex-wrap:wrap;width:100%;font-size:12px;color:#5c7163;margin:8px 0}.codebreak-import-legend span{display:inline-flex;align-items:center;gap:5px;font-weight:800}.codebreak-import-legend i{display:inline-block;width:18px;height:18px;border-radius:50%;border:1px solid #0001}.codebreak-image-note,.codebreak-image-warning{font-size:11px;line-height:1.55;margin:8px 0}.codebreak-image-warning{color:#a5642d!important}.codebreak-image-rows{display:grid;gap:9px;margin:13px 0}.codebreak-image-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:end;background:#fff;border:1px solid #e3ebe2;border-radius:8px;padding:10px}.codebreak-image-row>strong{font-size:11px;color:#55715b;align-self:center}.codebreak-image-colors,.codebreak-image-feedback{display:flex;align-items:end;gap:6px;flex-wrap:wrap}.codebreak-image-row label{font-size:10px;color:#6a806d;font-weight:700;white-space:nowrap}.codebreak-image-row select{display:block;width:44px;margin-top:3px;padding:6px}.codebreak-image-feedback input{display:block;width:48px;margin-top:3px;padding:6px}.codebreak-image-feedback .button{min-height:32px;padding:6px 9px;font-size:10px;margin:0}.codebreak-image-result{font-weight:700;color:#33684b!important;margin:12px 0!important}.codebreak-image-result.bad{color:#b24b42!important}.codebreak-image-review .button:disabled{opacity:.45;cursor:default}
@media(max-width:720px){.codebreak-image-row{grid-template-columns:1fr}.codebreak-image-row>strong{align-self:start}.codebreak-image-feedback{margin-top:4px}}
.codebreak-image-review select{border:1px solid #dce4db;border-radius:7px;background:#fbfcf9;color:#243d2d;outline:none}
.codebreak-image-review select:focus{border-color:#5d9971}
#sets-import-dialog{width:min(900px,calc(100% - 30px))}.sets-external-review{border:1px solid #dce3f2;border-radius:10px;padding:15px;margin-top:14px;background:#f8f9fe}.sets-external-review h3{font-size:16px;margin:0 0 10px}.sets-external-preview{display:block;max-width:100%;max-height:350px;object-fit:contain;border-radius:7px;background:#172026;margin:0 auto 12px}.sets-external-warning{font-size:11px!important;color:#73568b!important}.sets-external-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}.sets-external-card{border:1px solid #dce3f0;background:#fff;border-radius:9px;padding:10px;min-width:0}.sets-external-card>strong{font-size:11px;color:#48598e}.sets-external-card>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.sets-external-card label{font-size:10px;font-weight:700;color:#65728d}.sets-external-card select{display:block;width:100%;min-width:0;margin-top:3px;padding:6px;border:1px solid #ccd6ea;border-radius:6px;background:#fff;color:#293653}.sets-external-analysis{border-radius:8px;background:#eaf0ff;padding:11px 13px;color:#34476e;font-size:12px}.sets-external-analysis strong{font-size:13px}.sets-external-analysis ol{display:flex;flex-wrap:wrap;gap:4px 24px;padding-left:22px;margin:8px 0}.sets-external-analysis p{margin:7px 0 0!important;color:inherit!important}.sets-external-review .button:disabled{opacity:.45;cursor:default}
@media(max-width:680px){.sets-external-cards{grid-template-columns:1fr 1fr}}@media(max-width:440px){.sets-external-cards{grid-template-columns:1fr}}

.color-sweeper-card{margin-top:14px}.color-sweeper-symbol{background:#e8edf5}.color-sweeper-symbol span{display:grid;place-items:center;background:#5688b8;color:#fff;font:800 27px Manrope,sans-serif}.color-sweeper-symbol span:nth-child(2),.color-sweeper-symbol span:nth-child(4){background:#e59a5b}.color-sweeper-page .game-heading p{max-width:690px;line-height:1.7}.color-sweeper-page .game-layout{grid-template-columns:minmax(0,1fr) 280px}.color-sweeper-page .game-aside{display:grid;grid-template-columns:1fr}.color-sweeper-page .hint-panel{align-self:start}.color-sweeper-page .hint-content p{font-size:12px;line-height:1.75}.color-tools{--board-max:560px}
.color-board-wrap{width:min(100%,560px);margin:auto;padding:8px;background:#dee7e8;border-radius:13px}.color-board{display:grid;grid-template-columns:repeat(var(--color-columns),minmax(0,1fr));grid-template-rows:repeat(var(--color-rows),minmax(0,1fr));gap:5px;aspect-ratio:var(--color-columns) / var(--color-rows)}.color-cell{min-width:0;min-height:0;border:2px solid #d4dfe1;border-radius:6px;background:#f7faf9;color:#294158;padding:0;display:grid;place-items:center;font:800 clamp(17px,3vw,30px) Manrope,sans-serif;transition:filter .15s,transform .15s,border-color .15s}.color-cell:not(:disabled):hover{filter:brightness(.94);border-color:#577f86}.color-cell:not(:disabled):active{transform:scale(.96)}.color-cell.color-0{background:#7aa9cf;border-color:#5e92bb;color:#173d5c}.color-cell.color-1{background:#edb47a;border-color:#d99b5e;color:#653c1e}.color-cell.given{filter:saturate(1.15);cursor:default;opacity:1}.color-cell.given strong{display:grid;place-items:center;width:60%;height:60%;border-radius:50%;background:#ffffffd9;box-shadow:0 2px 8px #1232}.color-cell.hinted{outline:3px solid #6b504e;outline-offset:-5px}.color-palette{width:min(100%,560px);display:flex;justify-content:center;gap:12px;margin:16px auto}.color-palette .swatch{display:inline-flex;align-items:center;gap:9px;background:#fff;border:2px solid #dce4df;border-radius:9px;padding:9px 15px;font-size:12px;font-weight:800;color:#435c59}.color-palette .swatch.selected{border-color:#315e60;background:#eff7f4}.color-palette .swatch i{width:19px;height:19px;border-radius:5px;background:#7aa9cf}.color-palette .swatch.orange i{background:#edb47a}.color-sweeper-page .board-instruction,.color-sweeper-page .notice{max-width:560px;margin-left:auto;margin-right:auto}
.color-cell.color-2{background:#8dc5a0;border-color:#62a47a;color:#234b31}.color-cell.color-3{background:#bd9bcf;border-color:#9f79b6;color:#473054}.color-cell.trial-change{box-shadow:inset 0 0 0 4px #633b7d,0 0 0 2px #fff}.color-palette{flex-wrap:wrap}.color-palette .swatch.color-1 i{background:#edb47a}.color-palette .swatch.color-2 i{background:#8dc5a0}.color-palette .swatch.color-3 i{background:#bd9bcf}.color-trial-bar{width:min(100%,560px);margin:0 auto 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#65786d;font-size:11px;font-weight:700}.color-trial-bar>div{display:flex;gap:7px;flex-wrap:wrap}.color-trial-bar .button{min-height:34px;padding:7px 11px;font-size:11px}.color-trial-status{color:#633b7d;background:#f2e7f8;padding:8px 10px;border-radius:7px}
@media(max-width:620px){.color-trial-bar{padding:0 12px;flex-wrap:wrap}}
@media(max-width:880px){.color-sweeper-page .game-layout{grid-template-columns:1fr}.color-sweeper-page .game-aside{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.color-sweeper-page .game-aside{grid-template-columns:1fr}.color-sweeper-page .puzzle-panel{padding:18px 12px}.color-board-wrap{padding:5px}.color-board{gap:3px}.color-cell{border-radius:4px}.color-sweeper-page .board-instruction,.color-sweeper-page .notice{margin-left:4px;margin-right:4px}}

.color-cell.given strong{width:58%;height:auto;aspect-ratio:1;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;border-radius:50%}.color-cell.given strong span{display:block;line-height:1;transform:translateY(-.06em);font-variant-numeric:lining-nums tabular-nums}.color-cell.hint-target{outline:4px solid #dfb048;outline-offset:-5px;box-shadow:inset 0 0 0 3px #fff8}
.color-sweeper-page .color-difficulty-help{margin:2px 0 15px;color:#77897b;font-size:11px;line-height:1.55}.color-hint-content h3{line-height:1.45}.color-hint-steps{margin:13px 0;padding-left:22px;display:grid;gap:10px;color:#536c5c;font-size:12px;line-height:1.65}.color-hint-steps li::marker{color:#447c63;font-weight:800}.color-hint-proof{padding:9px 0 12px;border-top:1px solid #e7ede5;color:#6a8975!important;font-size:11px!important}
.color-cell.hinted{outline:2px solid #8aa6a1;outline-offset:-5px}.color-cell.hint-source{outline:3px solid #684f7d;outline-offset:-5px}.color-cell.hint-target{outline:4px solid #dfb048;outline-offset:-5px}.color-hint-steps{font-size:12.5px;line-height:1.7}

/* Shared puzzle layout: board at left, settings then hints at right. */
.game-page .game-layout{grid-template-columns:minmax(0,1fr) 280px}
.game-page .game-aside{display:grid;grid-template-columns:1fr;align-content:start;gap:16px}
.game-page .game-aside .hint-panel{grid-column:auto}
.codebreak-page .puzzle-panel{max-width:none}
.pipes-page.source-mode{max-width:1400px}
.seed-help{display:block;margin:6px 0 14px;color:#728a81;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.seed-help code{font-size:10px}
@media(max-width:1159px){.game-page .game-layout{grid-template-columns:1fr}.game-page .game-aside{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.game-page .game-aside{grid-template-columns:1fr}}

.atoms-symbol{background:#edf1e8}.atoms-symbol span{display:grid;place-items:center;color:#426953;font:800 24px Manrope,sans-serif}.atoms-symbol span:first-child,.atoms-symbol span:last-child{background:#b9d4bd;border-radius:50%;color:#204f3b}.atoms-page .game-heading p{max-width:710px;line-height:1.7}.atoms-board-wrap{width:min(100%,570px);margin:18px auto;padding:18px;border-radius:16px;background:#e8efe7}.atoms-board{display:grid;grid-template-columns:repeat(var(--atoms-cols),minmax(0,1fr));grid-template-rows:repeat(var(--atoms-rows),minmax(0,1fr));width:100%;aspect-ratio:var(--atoms-cols)/var(--atoms-rows)}.atoms-node{z-index:2;align-self:center;justify-self:center;width:72%;height:72%;min-width:30px;min-height:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid #709e80;border-radius:50%;background:#fff;color:#2a6043;box-shadow:0 3px 9px #16382424;font-family:Manrope,sans-serif}.atoms-node strong{font-size:clamp(17px,2vw,28px);line-height:1}.atoms-node small{font-size:10px;line-height:1.2;color:#789383}.atoms-node.satisfied{border-color:#319364;background:#daf3e2}.atoms-node.exceeded{border-color:#cb705b;background:#fff0e9;color:#a34b3a}.atoms-edge{z-index:1;position:relative;display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;background:transparent;color:#af6a56;font:800 26px Manrope,sans-serif;cursor:pointer;touch-action:manipulation}.atoms-edge::before{content:"";position:absolute;z-index:-1;border-radius:99px;background:#adc5b2}.atoms-edge.horizontal::before{width:200%;height:5px}.atoms-edge.vertical::before{width:5px;height:200%}.atoms-edge.undecided::before{opacity:.35}.atoms-edge.linked::before{background:#32825e;box-shadow:0 0 0 2px #d3e9d8}.atoms-edge.excluded::before{opacity:0}.atoms-edge:hover{background:#9dcdb02c;border-radius:8px}.atoms-edge.hinted{outline:3px solid #dfae48;outline-offset:-4px;border-radius:8px;background:#ffe9ad66}.atoms-page .board-instruction,.atoms-page .notice{max-width:570px;margin-left:auto;margin-right:auto}.atoms-page .hint-content p{font-size:12px;line-height:1.75}
@media(max-width:620px){.atoms-board-wrap{padding:7px}.atoms-node{border-width:2px;width:82%;height:82%}.atoms-node strong{font-size:clamp(13px,4vw,22px)}.atoms-node small{font-size:8px}.atoms-edge.horizontal::before{height:4px}.atoms-edge.vertical::before{width:4px}.atoms-page .puzzle-panel{padding:18px 10px}.atoms-page .board-instruction,.atoms-page .notice{margin-left:4px;margin-right:4px}}

/* Hashi-style Atoms: sparse circles, long links and parallel bonds. */
.atoms-board{position:relative;display:block;min-height:220px;background-color:#fbfdfa;background-image:linear-gradient(to right,#c9d9cc77 1px,transparent 1px),linear-gradient(to bottom,#c9d9cc77 1px,transparent 1px);background-size:var(--atoms-x) var(--atoms-y);border:1px solid #d8e3d7;border-radius:12px}
.atoms-node{position:absolute;z-index:3;display:grid;place-items:center;width:clamp(32px,6vw,50px);height:clamp(32px,6vw,50px);min-width:0;min-height:0;padding:0;transform:translate(-50%,-50%);border:3px solid #526b57;border-radius:50%;background:#fff;color:#344c38;cursor:pointer;font:800 clamp(16px,2.2vw,25px) Manrope,sans-serif}
.atoms-node.satisfied{background:#343936;border-color:#343936;color:#fff}.atoms-node.exceeded{border-color:#ef8790;background:#343936;color:#fff;box-shadow:0 0 0 3px #ef8790}.atoms-node.selected{outline:4px solid #dfad4d;outline-offset:2px}
.atoms-edge{position:absolute;z-index:1;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#aa595b;font-size:24px;touch-action:none}
.atoms-edge.horizontal{height:38px;transform:translateY(-50%)}.atoms-edge.vertical{width:38px;transform:translateX(-50%)}
.atoms-edge::before,.atoms-edge::after{content:"";position:absolute;z-index:-1;border:0;border-radius:99px;box-shadow:none}
.atoms-edge.horizontal::before,.atoms-edge.horizontal::after{left:0;right:0;width:100%;height:4px;top:50%;transform:translateY(-50%)}
.atoms-edge.vertical::before,.atoms-edge.vertical::after{top:0;bottom:0;width:4px;height:100%;left:50%;transform:translateX(-50%)}
.atoms-edge.undecided::before{background:#b8c9ba;opacity:.24}.atoms-edge.undecided::after{display:none}
.atoms-edge.single::before,.atoms-edge.double::before,.atoms-edge.double::after{background:#353c37;opacity:1}
.atoms-edge.single::after{display:none}
.atoms-edge.double.horizontal::before{top:calc(50% - 5px)}.atoms-edge.double.horizontal::after{top:calc(50% + 5px)}
.atoms-edge.double.vertical::before{left:calc(50% - 5px)}.atoms-edge.double.vertical::after{left:calc(50% + 5px)}
.atoms-edge.excluded::before,.atoms-edge.excluded::after{display:none}
.atoms-edge.hinted{outline:3px solid #dfae48;outline-offset:-4px;background:#ffe8a477}
.atoms-page .board-instruction{line-height:1.6}
@media(max-width:620px){.atoms-node{width:clamp(31px,8vw,42px);height:clamp(31px,8vw,42px);font-size:17px}.atoms-edge.horizontal{height:36px}.atoms-edge.vertical{width:36px}.atoms-board-wrap{padding:12px 7px}}

/* Keep a readable lane between islands on larger Hashi boards. */
.atoms-page.atoms-wide .game-layout{grid-template-columns:minmax(0,1fr)}
.atoms-page.atoms-wide .game-aside{grid-template-columns:repeat(2,minmax(0,1fr))}
.atoms-page .atoms-board-wrap{box-sizing:border-box;width:min(100%,calc(var(--atoms-min-width) + 28px));max-width:100%;padding:14px;overflow-x:auto;overscroll-behavior-inline:contain}
.atoms-page .atoms-board{box-sizing:border-box;min-width:var(--atoms-min-width);background-image:linear-gradient(to right,#c9d9cc55 1px,transparent 1px),linear-gradient(to bottom,#c9d9cc55 1px,transparent 1px)}
.atoms-page .atoms-node{width:46px;height:46px;border-width:2px;font-size:22px;box-shadow:0 2px 7px #142c1b24}
.atoms-page.atoms-large .atoms-node{width:38px;height:38px;font-size:19px}
.atoms-page .atoms-edge{--atoms-bridge:#24664b;--atoms-bridge-outline:#eff8ef;font-size:21px}
.atoms-page .atoms-edge.horizontal{height:32px}.atoms-page .atoms-edge.vertical{width:32px}
.atoms-page .atoms-edge.undecided::before{opacity:0}
.atoms-page .atoms-edge.undecided:hover::before,.atoms-page .atoms-edge.undecided:focus-visible::before{opacity:.38}
.atoms-page .atoms-edge.single::before,.atoms-page .atoms-edge.double::before,.atoms-page .atoms-edge.double::after{background:var(--atoms-bridge);box-shadow:0 0 0 1px var(--atoms-bridge-outline)}
.atoms-page .board-instruction,.atoms-page .notice{max-width:min(100%,830px)}
@media(min-width:881px){.atoms-page.atoms-large .atoms-board{min-width:0}}
@media(max-width:620px){.atoms-page.atoms-wide .game-aside{grid-template-columns:1fr}.atoms-page .atoms-board-wrap{padding:10px}.atoms-page .atoms-node,.atoms-page.atoms-large .atoms-node{width:44px;height:44px;font-size:20px}.atoms-page .atoms-edge.horizontal{height:32px}.atoms-page .atoms-edge.vertical{width:32px}}

/* Native option popups need an explicit palette when the OS and page themes differ. */
html[data-theme="light"] select{color-scheme:light}
html[data-theme="light"] select option{background:#fbfcf9;color:#243d2d}
.mosaic-symbol{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;background:#edf1ea}.mosaic-symbol span{background:#6292df}.mosaic-symbol span:nth-child(2){background:#ad62cd}.mosaic-symbol span:nth-child(3){background:#d94351}.mosaic-symbol span:nth-child(4){background:#58b751}
.mosaic-page .game-heading p{max-width:710px;line-height:1.7}.mosaic-board-wrap{width:min(100%,390px);margin:14px auto 18px;padding:5px;border-radius:8px;background:#dce3e3}.mosaic-board{display:grid;grid-template-columns:repeat(var(--mosaic-cols),minmax(0,1fr));grid-template-rows:repeat(var(--mosaic-rows),minmax(0,1fr));gap:1px;aspect-ratio:var(--mosaic-cols)/var(--mosaic-rows);overflow:hidden;border:1px solid #27364b4d;border-radius:4px;background:#27364b4d}.mosaic-cell{min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:var(--mosaic-color);cursor:pointer;touch-action:manipulation}.mosaic-cell:focus-visible{outline:2px solid #fff;outline-offset:-2px;z-index:1}.mosaic-palette{display:flex;justify-content:center;gap:8px;margin:0 auto 18px;max-width:390px}.mosaic-color{display:grid;place-items:center;width:46px;height:42px;padding:0;border:2px solid #fff;border-radius:9px;background:var(--mosaic-color);box-shadow:0 2px 7px #122b252b;cursor:pointer}.mosaic-color span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.mosaic-color:hover:not(:disabled){transform:translateY(-3px)}.mosaic-color:disabled{opacity:.55;cursor:default}.mosaic-color.active{box-shadow:0 0 0 2px #a8e5c2,0 4px 12px #0004;transform:translateY(-2px)}.mosaic-page .board-instruction,.mosaic-page .notice{max-width:390px;margin-left:auto;margin-right:auto}.mosaic-page .hint-placeholder{margin-bottom:12px}
.mosaic-cell.hint-region{filter:brightness(1.08);z-index:1}.mosaic-cell.hint-edge-top{border-top:2px solid #d2f1e3}.mosaic-cell.hint-edge-right{border-right:2px solid #d2f1e3}.mosaic-cell.hint-edge-bottom{border-bottom:2px solid #d2f1e3}.mosaic-cell.hint-edge-left{border-left:2px solid #d2f1e3}.mosaic-hint-content h3{font-size:14px;line-height:1.5}.mosaic-hint-content p{font-size:12px;line-height:1.75}.mosaic-hint-content p strong{font-size:12px}
@media(max-width:620px){.mosaic-board-wrap{padding:4px}.mosaic-color{width:42px;height:40px}.mosaic-page .puzzle-panel{padding:18px 10px}.mosaic-page .board-instruction,.mosaic-page .notice{margin-left:4px;margin-right:4px}}

.lits-symbol{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;background:#e8eee8}.lits-symbol span{display:grid;place-items:center;background:#c5d6ca;color:#315b48;font-size:30px}.lits-page .game-heading p{max-width:730px;line-height:1.7}.lits-board-wrap{--lits-grid-line:#aebfb1;--lits-region-line:#2c5940;width:min(100%,540px);margin:18px auto;padding:10px;border-radius:14px;background:#dce7df}.lits-board{display:grid;grid-template-columns:repeat(var(--lits-columns),minmax(0,1fr));grid-template-rows:repeat(var(--lits-rows),minmax(0,1fr));aspect-ratio:var(--lits-columns)/var(--lits-rows)}.lits-cell{min-width:0;min-height:0;display:grid;place-items:center;border-style:solid;background:#f8fbf7;color:#849a86;font:800 clamp(18px,3vw,31px) Manrope,sans-serif;cursor:pointer;touch-action:manipulation;transition:background .12s}.lits-cell:hover{background:#e7f1e5}.lits-cell.shaded,.lits-cell.shaded:hover{background:#3c6952;color:#fff}.lits-cell.empty{background:#f6f8f2}.lits-cell.hinted{outline:4px solid #e8ad40;outline-offset:-8px}.lits-page .board-instruction,.lits-page .notice{max-width:540px;margin-left:auto;margin-right:auto}.lits-size-note{margin:0 0 13px;color:#697e70;font-size:12px;line-height:1.6}
@media(max-width:620px){.lits-board-wrap{padding:5px}.lits-page .puzzle-panel{padding:18px 10px}.lits-page .board-instruction,.lits-page .notice{margin-left:4px;margin-right:4px}}

/* LITS cells carry region color; a single SVG draws every shared boundary without seams. */
.lits-board{position:relative;isolation:isolate;touch-action:none;user-select:none;-webkit-user-select:none}
.lits-cell{border:0;background:var(--lits-region-bg);color:#5b6d61;touch-action:none}
.lits-cell:hover{filter:brightness(.96);background:var(--lits-region-bg)}
.lits-cell.empty{background:var(--lits-region-bg)}
.lits-cell.shaded,.lits-cell.shaded:hover{background:var(--lits-shade);color:#fff}
.lits-tone-0{--lits-region-bg:#e8f5f1;--lits-shade:#267b72}
.lits-tone-1{--lits-region-bg:#fff3df;--lits-shade:#a66b17}
.lits-tone-2{--lits-region-bg:#f1eafb;--lits-shade:#7652b1}
.lits-tone-3{--lits-region-bg:#ffece9;--lits-shade:#b75c50}
.lits-tone-4{--lits-region-bg:#eaf2ff;--lits-shade:#376cad}
.lits-tone-5{--lits-region-bg:#f0f6df;--lits-shade:#657e28}
.lits-lines{position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none}
.lits-grid-lines{stroke:var(--lits-grid-line);stroke-width:1;vector-effect:non-scaling-stroke}
.lits-region-lines{stroke:var(--lits-region-line);stroke-width:5;stroke-linecap:square;stroke-linejoin:miter;vector-effect:non-scaling-stroke}
.lits-cell.violation{position:relative;box-shadow:inset 0 0 0 3px #b9332c,inset 0 0 0 5px #fff;filter:none}
.lits-cell.violation::after{content:'!';position:absolute;top:5px;right:5px;display:grid;place-items:center;width:18px;height:18px;border:1px solid #fff;border-radius:50%;background:#b9332c;color:#fff;font:900 13px/1 Arial,sans-serif;box-shadow:0 1px 3px #0004;pointer-events:none}
@media(max-width:620px){.lits-cell.violation::after{top:3px;right:3px;width:16px;height:16px;font-size:12px}}

.sets-home-symbol{display:flex;align-items:center;justify-content:center;gap:6px;background:#e9edfa;color:#d75c6e}
.sets-page .eyebrow{color:#6a70ab}.sets-page .game-heading h1 span{color:#526aaf}.sets-page .game-heading p{color:#69758e}.sets-page .heading-badge strong,.sets-page .meta-line strong{color:#4c5eac}
.sets-page .button.primary{background:#4259a3;color:#fff}.sets-page .button.primary:hover{background:#344989}.sets-page .button.secondary{background:#e8ecf9;border-color:#cfd8ee;color:#384f96}.sets-page .button.secondary:hover{background:#dfe6f8}.sets-page .button.subtle{color:#465795;border-color:#d9def0}
.sets-page .game-layout{grid-template-columns:minmax(0,1fr) 280px}.sets-page .game-aside{display:grid;grid-template-columns:1fr}.sets-page .game-aside .hint-panel{grid-column:auto}
@media(max-width:1159px){.sets-page .game-layout{grid-template-columns:1fr}.sets-page .game-aside{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.sets-page .game-aside{grid-template-columns:1fr}}
.sets-home-symbol span{font-size:30px;line-height:1}.sets-home-symbol span:nth-child(2){color:#c49328}.sets-home-symbol span:nth-child(3){color:#4b78ce}
.sets-table-stats{display:flex;gap:14px;font-size:12px;color:#69738b}
.sets-table-stats b{font-size:16px;color:#2b3454}
.sets-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.sets-board.external{grid-template-columns:repeat(3,minmax(0,1fr))}
.sets-play-area{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:12px;align-items:start}.sets-play-area .sets-board{grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0}
.sets-memory{margin:18px 0;border:1px solid #d8dfef;border-radius:10px;background:#f7f8fd;padding:9px}.sets-memory-head{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:7px;color:#3c4c83;font-size:11px}.sets-memory-head span{font-weight:800;color:#596b9d}.sets-memory-list{display:grid;gap:6px}.sets-memory-list>small{font-size:10px;line-height:1.5;color:#75839e}
.sets-memory-set{min-width:0;border:1px solid #d8dfef;border-radius:7px;background:#fff}.sets-memory-set[open]{border-color:#97a9d9}.sets-memory-set summary{display:flex;align-items:center;gap:3px;list-style:none;cursor:pointer;padding:5px 4px}.sets-memory-set summary::-webkit-details-marker{display:none}.sets-memory-set summary:hover{background:#edf1fb}.sets-memory-set summary:focus-visible{outline:2px solid #7486cc;outline-offset:2px}.sets-memory-index{flex:none;width:12px;color:#6e7da1;font-size:10px;font-weight:800;text-align:center}.sets-memory-expand{flex:none;color:#7182a9;font-size:12px;line-height:1}.sets-memory-set[open] .sets-memory-expand{transform:rotate(180deg)}.sets-memory-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;min-width:0;flex:1}.sets-memory-card{min-width:0;height:56px;border:1px solid #d4dcec;border-radius:5px;background:#f9faff;display:flex;align-items:center;justify-content:center;padding:4px 2px}.sets-memory-card .sets-symbols svg{height:40px}.sets-memory-reasons{display:grid;gap:3px;border-top:1px solid #e6eaf5;padding:6px}.sets-memory-reasons span{border-radius:4px;background:#e8ecfa;color:#465c9b;padding:3px 5px;font-size:10px;font-weight:700;line-height:1.35}
.sets-card{position:relative;min-width:0;min-height:114px;border:2px solid #d8deea;border-radius:12px;background:#fff;box-shadow:0 3px 0 #cbd2e3;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:12px 9px;transition:transform .13s ease,border-color .13s ease,box-shadow .13s ease}
.sets-card:hover{transform:translateY(-2px);border-color:#8fa3d3}.sets-card:focus-visible{outline:3px solid #5979c7;outline-offset:2px}
.sets-card.selected{border-color:#4568c8;box-shadow:0 0 0 3px #a7baf0,0 3px 0 #4568c8;transform:translateY(-2px)}
.sets-symbols{display:flex;align-items:center;justify-content:center;width:100%;gap:1px}.sets-symbols svg{width:min(31%,70px);height:65px;flex:1 1 0}
.sets-color-0{color:#cf5064}.sets-color-1{color:#b78119}.sets-color-2{color:#3d73cb}
.sets-card-number{position:absolute;right:8px;bottom:5px;font-size:9px;letter-spacing:.1em;color:#8e98aa}
.sets-found{border-top:1px solid #e1e5ef;padding:13px 0 11px;font-size:11px;color:#68748b}.sets-found>strong,.sets-answers>strong{display:block;margin-bottom:8px;color:#3f4b6a}.sets-found-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:9px}.sets-found .sets-found-list{grid-template-columns:1fr}.sets-found-list small{font-size:11px}
.sets-result{border:1px solid #d8dfef;border-radius:9px;background:#f7f8fd;padding:10px 11px}.sets-result-head{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:8px;color:#3c4c83}.sets-result-head strong{font-size:11px}.sets-result-head b{white-space:nowrap;font-size:11px;letter-spacing:.03em}.sets-result-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:9px}.sets-result-card{min-width:0;min-height:67px;border:1px solid #cbd5e9;border-radius:7px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 3px 4px}.sets-result-card .sets-symbols svg{height:36px}.sets-result-card-number{font-size:9px;font-weight:800;line-height:1;color:#748099}.sets-result-reasons{display:flex;flex-wrap:wrap;gap:5px}.sets-result-reasons span{border-radius:5px;background:#e8ecfa;color:#465c9b;padding:4px 6px;font-size:10px;font-weight:700;line-height:1.4}
.sets-answers{margin:8px 0 16px;border-top:1px solid #e1e5ef;padding-top:13px}.sets-answers p{font-size:11px;color:#69758e;line-height:1.6;margin:0 0 11px}
.sets-card-used,.sets-card-guide{position:absolute;top:6px;border-radius:4px;padding:2px 4px;font-size:9px;line-height:1.3;font-weight:800}.sets-card-used{right:6px;background:#e6e9f7;color:#4d5c8c}.sets-card-guide{left:6px;background:#fff0d4;color:#8b5a16}.sets-card.guide{outline:3px solid #e1a951;outline-offset:-3px}
.sets-board-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sets-board-actions span{font-size:12px;color:#69738b}
.sets-page .notice{margin-top:16px}.sets-rule-tags{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 15px}.sets-rule-tags span{padding:5px 9px;border-radius:100px;background:#e8ecfa;color:#4964a7;font-size:11px;font-weight:700}.sets-hint-text{background:#f1f2fc;border-left:3px solid #7486cc;border-radius:6px;padding:11px 12px;font-size:12px;line-height:1.7;color:#3e4c80;margin:3px 0 11px}
.sets-page .sets-compact-hint{order:-1;padding:16px 18px}.sets-compact-hint .panel-label{margin-bottom:8px}.sets-compact-hint .panel-label h2{font-size:15px}.sets-hint-idle{margin:0;color:#69758e;font-size:11px;line-height:1.5}.sets-compact-hint .sets-hint-text{margin:0;padding:8px 10px;font-size:11px;line-height:1.55}.sets-compact-hint>.button{min-height:34px;margin-top:9px}
@media(max-width:620px){.sets-play-area{grid-template-columns:1fr;gap:0}.sets-memory{grid-row:1;top:0;max-height:none;margin:0 0 8px;padding:8px;overflow:visible}.sets-memory-head{margin-bottom:5px}.sets-memory-list{display:flex;gap:6px;overflow-x:auto;padding:1px 1px 4px}.sets-memory-set{flex:0 0 220px}.sets-play-area .sets-board{margin:0 0 14px}}
@media(max-width:620px){.sets-page .game-aside{grid-template-columns:1fr}.sets-page .puzzle-panel{padding:18px 12px}.sets-page .board-instruction,.sets-page .notice{margin-left:0;margin-right:0}.sets-board{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sets-card{min-height:91px;padding:9px 5px;border-radius:8px}.sets-symbols svg{height:51px}.sets-table-stats{gap:8px;font-size:11px}}
.save-recovery-notice{position:fixed;z-index:9999;left:16px;right:16px;bottom:16px;max-width:740px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:2px solid #a34e1f;border-radius:10px;background:#fff3df;color:#532d17;box-shadow:0 8px 30px #0003;font-size:14px;line-height:1.5}.save-recovery-notice button{flex:none;border:0;background:transparent;color:inherit;font-size:26px;cursor:pointer}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Source Pipes keeps its dark pipe artwork while using the Hub page surfaces. */
.pipes-page.source-mode{background:transparent;color:#202825;max-width:1400px;min-height:0;padding-top:32px;border-radius:0}
.pipes-page.source-mode .eyebrow{color:#59806a}.pipes-page.source-mode .game-heading h1{color:#202825}.pipes-page.source-mode .game-heading h1 span{color:#829086}.pipes-page.source-mode .game-heading p{color:#7c8a80}
.pipes-page.source-mode .heading-badge,.pipes-page.source-mode .puzzle-panel,.pipes-page.source-mode .tool-panel,.pipes-page.source-mode .bottom-actions{background:#fff;border-color:#e4e9e2;color:#202825;box-shadow:0 5px 25px #1c3c2706}
.pipes-page.source-mode .heading-badge span{color:#96a49a}.pipes-page.source-mode .heading-badge .quiet{color:#5a7765}.pipes-page.source-mode .heading-badge .good{color:#2f8257}
.pipes-page.source-mode .panel-top h2,.pipes-page.source-mode .panel-label h2,.pipes-page.source-mode .bottom-actions strong{color:#202825}.pipes-page.source-mode .progress strong{color:#356a4e}.pipes-page.source-mode .progress strong span,.pipes-page.source-mode .progress small{color:#9aa99c}
.pipes-page.source-mode .board-tools .icon-button{background:#f7faf5;border-color:#dce6db;color:#3f7554}.pipes-page.source-mode .board-tools .icon-button:hover:not(:disabled){background:#eaf3e8;border-color:#7baa83}
.pipes-page.source-mode .pipes-board-wrap{background:#1c2933;border:1px solid #40555c;border-radius:14px;padding:9px;box-shadow:0 8px 24px #152c2830}
.pipes-page.source-mode .pipes-legend{color:#5c766b}.pipes-page.source-mode .board-instruction{color:#748579}.pipes-page.source-mode .instruction-mark{border-color:#a3baaa;color:#748579}
.pipes-page.source-mode .notice{background:#edf6ec;color:#337657}.pipes-page.source-mode .notice.bad{background:#fff1ed;color:#af5747}
.pipes-page.source-mode .field-label,.pipes-page.source-mode .form-row label,.pipes-page.source-mode .pipes-profile-note,.pipes-page.source-mode .meta-line,.pipes-page.source-mode .hint-placeholder,.pipes-page.source-mode .hint-content p{color:#748579}.pipes-page.source-mode .pipes-profile-note small{color:#829589}.pipes-page.source-mode .meta-line{border-color:#edf0eb}.pipes-page.source-mode .meta-line strong,.pipes-page.source-mode .hint-content p strong{color:#3c7955}.pipes-page.source-mode .hint-placeholder strong{color:#526e59}.pipes-page.source-mode .hint-icon{color:#659d76}.pipes-page.source-mode .hint-tier{background:#ebf2e9;color:#548365}
.pipes-page.source-mode .tool-panel input,.pipes-page.source-mode .tool-panel select{background:#fbfcf9;border-color:#dce4db;color:#243d2d}.pipes-page.source-mode .button.primary{background:#275c48;color:white}.pipes-page.source-mode .button.primary:hover{background:#1b4a39}.pipes-page.source-mode .button.secondary,.pipes-page.source-mode .button.subtle{background:#eff4ed;border-color:#d7e4d8;color:#285d47}.pipes-page.source-mode .button.secondary:hover,.pipes-page.source-mode .button.subtle:hover{background:#e6eee4}.pipes-page.source-mode .puzzle-id,.pipes-page.source-mode .puzzle-id code{color:#81968a}
.pipes-page.source-mode .pipes-cell{position:relative}.pipe-wrap-port{position:absolute;display:block;width:15%;height:15%;min-width:6px;min-height:6px;border-radius:50%;background:#f4c76d;border:2px solid #172830;box-shadow:0 0 0 2px #f4c76d,0 0 9px #f4c76d88;pointer-events:none;z-index:2}.pipe-wrap-port.north{top:0;left:50%;transform:translate(-50%,-25%)}.pipe-wrap-port.south{bottom:0;left:50%;transform:translate(-50%,25%)}.pipe-wrap-port.east{right:0;top:50%;transform:translate(25%,-50%)}.pipe-wrap-port.west{left:0;top:50%;transform:translate(-25%,-50%)}
.pipes-page.source-mode .pipe-wrap-port.matched{background:#78cfb3;box-shadow:0 0 0 2px #78cfb3,0 0 8px #78cfb388}.pipes-page.source-mode .pipe-wrap-port.flowing{background:#a4f3d8;box-shadow:0 0 0 2px #a4f3d8,0 0 13px #a4f3d8}
.pipes-wrap-controls{max-width:600px;margin:12px auto 0;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#546d61;font-size:11px;font-weight:700}.pipes-wrap-controls>div{display:flex;gap:4px}.pipes-wrap-controls button{width:31px;height:29px;border:1px solid #bed1c4;border-radius:6px;background:#f2f7f1;color:#315d49;font-size:16px;font-weight:800;cursor:pointer}.pipes-wrap-controls button:hover{background:#dceee1;border-color:#73a889}.pipes-wrap-controls button:focus-visible{outline:2px solid #2e7652;outline-offset:2px}.pipes-wrap-guide{max-width:600px;margin:7px auto 0;display:flex;align-items:center;gap:13px;flex-wrap:wrap;color:#71877a;font-size:10px}.pipes-wrap-guide span{display:flex;align-items:center;gap:5px}.pipes-wrap-guide small{font-size:10px}.pipe-wrap-key{display:inline-block;width:10px;height:10px;border-radius:50%;background:#f4c76d;box-shadow:0 0 0 1px #b8892d}.pipe-wrap-key.matched{background:#78cfb3;box-shadow:0 0 0 1px #3e9276}
.pipes-wrap-controls button.pipes-wrap-reset{width:auto;min-width:38px;padding:0 5px;font-size:11px}
@media(max-width:620px){.pipes-page.source-mode{padding:22px 12px 60px}.pipes-page.source-mode .pipes-board-wrap{padding:5px}.pipe-wrap-port{border-width:1px}}

/* Blue water and exact conflict locations on the Pipes board. */
.pipes-page.source-mode .pipes-cell.powered .pipe-outer{stroke:#80c9ff;filter:drop-shadow(0 0 4px #52aef588)}
.pipes-page.source-mode .pipes-cell.powered .pipe-inner{stroke:#203e57}
.pipes-page.source-mode .terminal.powered .pipe-node{stroke:#8ed0ff;filter:drop-shadow(0 0 5px #69b9f5aa)}
.pipes-page.source-mode .source .pipe-node{fill:#79b6f0;stroke:#d5ebff;filter:drop-shadow(0 0 8px #6aaff1aa)}
.pipes-page.source-mode .source .pipe-node-halo{fill:#6cb4f233;stroke:#81c0f399}
.pipes-page.source-mode .source .pipe-drop{fill:#203e57}
.pipes-page.source-mode .progress strong{color:#287bb2}
.pipes-legend i.legend-source{background:#79b6f0;border-color:#d5ebff;box-shadow:0 0 7px #6aaff1}
.pipes-legend i.legend-flow{background:#80c9ff;border-color:#b9e5ff;box-shadow:0 0 6px #63b7f5}
.pipes-page.source-mode .pipe-wrap-port.matched{background:#71bbef;box-shadow:0 0 0 2px #71bbef,0 0 8px #71bbef88}
.pipes-page.source-mode .pipe-wrap-port.flowing{background:#a3dcff;box-shadow:0 0 0 2px #a3dcff,0 0 13px #a3dcff}
.pipe-wrap-key.matched{background:#71bbef;box-shadow:0 0 0 1px #438ec2}
.pipes-page.source-mode .pipes-cell.conflict{background:#ee716522;outline:2px solid #ef867b;outline-offset:-3px}
.pipe-conflict-edge{position:absolute;z-index:4;display:block;width:34%;height:6px;border-radius:5px;background:#ff786d;box-shadow:0 0 0 2px #1c2933,0 0 12px #ff786dcc;pointer-events:none}
.pipe-conflict-edge.north{top:0;left:50%;transform:translateX(-50%)}
.pipe-conflict-edge.south{bottom:0;left:50%;transform:translateX(-50%)}
.pipe-conflict-edge.east{right:0;top:50%;width:6px;height:34%;transform:translateY(-50%)}
.pipe-conflict-edge.west{left:0;top:50%;width:6px;height:34%;transform:translateY(-50%)}

/* LITS screenshot recognition and visual correction. */
#lits-import-dialog{width:min(920px,calc(100% - 28px))}
.lits-image-review{margin:15px 0;padding:16px;border:1px solid #d4e4db;border-radius:12px;background:#f7faf8}
.lits-image-review h3{margin:0 0 6px;font-size:17px;color:#285340}
.lits-image-review p{margin:7px 0 12px}
.lits-image-compare{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(300px,1.2fr);gap:16px;align-items:start;margin:14px 0}
.lits-image-compare>div{min-width:0}
.lits-image-compare strong{display:block;margin-bottom:8px;color:#688574;font-size:11px}
.lits-image-preview{display:grid;place-items:center;max-height:320px;overflow:hidden;padding:8px;border-radius:10px;background:#18232c}
.lits-image-preview img{display:block;max-width:100%;max-height:300px;object-fit:contain}
.lits-image-size,.lits-image-modes{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.lits-image-size label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:750;color:#486451}
.lits-image-size select{width:70px;padding:6px;border:1px solid #a8c1ad;border-radius:6px;background:#fff;color:#254634}
.lits-image-size span{font-size:11px;color:#6b816f}
.lits-image-modes .button{margin:0;min-height:36px}
.lits-image-help{font-weight:700;color:#4c6d58!important}
.lits-review-board{display:grid;grid-template-columns:repeat(var(--lits-review-cols),minmax(0,1fr));position:relative;width:100%;aspect-ratio:var(--lits-review-cols)/var(--lits-review-rows);margin:0 auto 16px;outline:4px solid #f5f0e6;border-radius:2px;background:#1c272b}
.lits-review-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:0;border:1px solid #78847e;background:color-mix(in srgb,var(--region-color) 22%,#172329);color:#e9f4eb;font-size:clamp(18px,4vw,34px);font-weight:850;cursor:default}
.lits-review-cell.shaded{background:var(--region-color);color:#1e2b2b}
.lits-review-cell.empty{background:#19242a;color:#f4f5f2}
.lits-review-cell small{position:absolute;top:3px;left:5px;font-size:10px;font-weight:750;color:#ffffffa8;line-height:1}
.lits-review-cell.shaded small{color:#213733a8}
.lits-image-modes:has([data-lits-image-mode="cells"][aria-pressed="true"])~.lits-review-board .lits-review-cell{cursor:pointer}
.lits-review-edge{position:absolute;z-index:2;display:grid;place-items:center;transform:translate(-50%,-50%);padding:0;border:0;background:transparent;cursor:pointer}
.lits-review-edge.vertical{width:20px;min-height:20px}.lits-review-edge.horizontal{height:20px;min-width:20px}
.lits-review-edge:after{content:'';display:block;border-radius:3px;background:#83958d;opacity:.7;transition:background .12s,box-shadow .12s}
.lits-review-edge.vertical:after{width:2px;height:80%}.lits-review-edge.horizontal:after{height:2px;width:80%}
.lits-review-edge.on:after{background:#fff9df;opacity:1;box-shadow:0 0 0 1px #374940}
.lits-review-edge.vertical.on:after{width:5px}.lits-review-edge.horizontal.on:after{height:5px}
.lits-review-edge:hover:after,.lits-review-edge:focus-visible:after{background:#ffcf73;opacity:1}
.lits-image-warning{padding:9px 11px;border-radius:7px;background:#fff0e8;color:#a74f37!important;font-size:12px!important;font-weight:700}
.lits-image-crop{margin:12px 0;color:#55725f;font-size:11px}.lits-image-crop summary{cursor:pointer;font-weight:750}.lits-image-crop>div{display:flex;align-items:end;gap:7px;flex-wrap:wrap;margin-top:10px}
.lits-image-crop label{font-size:10px;font-weight:700}.lits-image-crop input{display:block;width:74px;margin-top:3px;padding:5px}.lits-image-crop .button{margin:0;min-height:32px}
@media(max-width:700px){.lits-image-review{padding:10px}.lits-image-compare{grid-template-columns:1fr}.lits-review-board{width:min(100%,480px)}.lits-review-cell small{font-size:8px;top:2px;left:2px}}
