.third-wrap{width:100%;min-width:0}.third-tools{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin:8px 0 16px}.third-tools button,.third-zoom select{min-height:44px;padding:9px 12px;color:#175c4e;background:white;border:1px solid #b9cec3;border-radius:9px;font:700 .75rem system-ui;cursor:pointer}.third-tools button:disabled{opacity:.4}.third-zoom{font-size:.72rem;font-weight:700;color:#4f6e60}.third-message{font-size:.75rem;line-height:1.7;color:#476459;text-align:center;min-height:2.6em;margin:10px 0}.third-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;padding:24px 22px;box-sizing:border-box;border-radius:15px;background:#f0f5f1}.third-scroll>div{margin-inline:auto}.third-grid{display:grid;grid-template-columns:repeat(var(--n),minmax(44px,1fr));width:max(100%,calc(var(--n)*44px*var(--zoom)));max-width:none;min-width:calc(var(--n)*44px*var(--zoom));--zoom:1;background:#fffdf8;touch-action:none}.net-grid{max-width:700px}.net-tile{position:relative;aspect-ratio:1;min-height:44px;padding:0;border:1px solid #d6e2dc;background:white;cursor:pointer;color:#1c5c4c;overflow:hidden}.net-tile svg{display:block;width:100%;height:100%;pointer-events:none}.net-tile.is-connected{background:#e4f3e8;color:#176b5b}.net-tile.is-locked{background:#f0eee5}.net-tile.is-selected{box-shadow:inset 0 0 0 3px #dda63b}.net-tile.is-conflict{box-shadow:inset 0 0 0 3px #bd4536;background:#fff0ed}.net-tile.is-hint{background:#fff0ba}.net-lock{position:absolute;right:3px;top:0;font:800 .65rem system-ui;color:#6e674d}.net-fixed{border-color:#938466}.net-source{color:#b17c31}.rect-grid{position:relative}.rect-cell{aspect-ratio:1;min-height:44px;position:relative;display:grid;place-items:center;padding:0;border:1px solid #d1ddd4;background:white;color:#254f3d;font:850 clamp(.9rem,2.5vw,1.4rem) system-ui;cursor:crosshair}.rect-cell.has-region{background:hsl(var(--tone) 35% 92%)}.rect-cell.is-region-top{border-top:3px solid #2c7460}.rect-cell.is-region-bottom{border-bottom:3px solid #2c7460}.rect-cell.is-region-left{border-left:3px solid #2c7460}.rect-cell.is-region-right{border-right:3px solid #2c7460}.rect-cell.is-selected{background:#fff0c2}.rect-cell.is-preview{box-shadow:inset 0 0 0 3px #d7a43a;background:#fff4d6}.rect-cell.is-conflict{background:#ffded7;color:#9e3125}.rect-cell.is-hint{outline:3px solid #d7a43a;outline-offset:-5px}.rect-cell small{position:absolute;bottom:1px;right:2px;font-size:.5rem;color:#506c5d}.pearl-field{position:relative;--space:52px;width:calc((var(--n) - 1)*var(--space));height:calc((var(--n) - 1)*var(--space));margin:22px auto!important;background-image:linear-gradient(#d8e3dd 1px,transparent 1px),linear-gradient(90deg,#d8e3dd 1px,transparent 1px);background-size:var(--space) var(--space);touch-action:none}.pearl-node{position:absolute;z-index:4;display:grid;place-items:center;transform:translate(-50%,-50%);width:28px;height:28px;border:2px solid #243f34;background:#fff;border-radius:50%;pointer-events:none;font-size:.6rem;color:#214035}.pearl-node.is-empty{width:6px;height:6px;background:#a2b7ab;border:0}.pearl-node.is-black{background:#243f34;color:white}.pearl-node.is-conflict{box-shadow:0 0 0 5px #e9a294}.pearl-node.is-hint{box-shadow:0 0 0 5px #f0ca65}.pearl-edge{position:absolute;z-index:2;border:0;padding:0;background:none;cursor:pointer}.pearl-edge.is-h{height:44px;width:var(--space);transform:translateY(-50%)}.pearl-edge.is-v{width:44px;height:var(--space);transform:translateX(-50%)}.pearl-edge span{display:block;position:absolute;background:#ceddd2;border-radius:4px;pointer-events:none}.pearl-edge.is-h span{height:3px;left:0;right:0;top:calc(50% - 1.5px)}.pearl-edge.is-v span{width:3px;top:0;bottom:0;left:calc(50% - 1.5px)}.pearl-edge.has-line span{background:#17705d}.pearl-edge.is-h.has-line span{height:6px;top:calc(50% - 3px)}.pearl-edge.is-v.has-line span{width:6px;left:calc(50% - 3px)}.pearl-edge i{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);font:800 16px system-ui;color:#7f614b;font-style:normal;pointer-events:none}.pearl-edge.is-fixed span{background:#77694e}.pearl-edge.is-conflict span{background:#bc4436}.pearl-edge.is-hint{filter:drop-shadow(0 0 4px #d19b25)}.pearl-edge:focus-visible{outline:3px solid #d7a43a;outline-offset:-5px}.third-grid button:focus-visible{outline:3px solid #d7a43a;outline-offset:-5px;z-index:5}.puzzle-app.is-high-contrast .third-grid button{color:#000;border-color:#333}.puzzle-app.is-high-contrast .pearl-edge.has-line span{background:#000}.puzzle-app.is-high-contrast .net-tile.is-connected{background:#b9e8c8}.rule-diagrams{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}.rule-diagrams figure{flex:1 1 220px;border:1px solid #d6e2dc;border-radius:16px;padding:18px;margin:0;background:#fff}.rule-diagrams svg{display:block;width:100%;max-height:140px}.rule-diagrams figcaption{font-size:.8rem;line-height:1.8;color:#4f6b5a;margin-top:12px}@media(max-width:600px){.third-scroll{padding:22px}.third-tools{justify-content:flex-start}.third-tools button{flex:1 1 100px}.third-message{text-align:left}}
