button{cursor:pointer}button:disabled{cursor:default}button:focus-visible{outline:3px solid #c45d42;outline-offset:3px}html:not(.keyboard-navigation) button:focus,html:not(.keyboard-navigation) input[role=switch]:focus+span{outline:none!important}.shell{height:100dvh;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--color-ruly-dark)}.app{width:100%;height:100dvh;padding:4px;position:relative;overflow:hidden;display:flex;flex-direction:column}.topbar{position:relative;display:flex;align-items:center;justify-content:space-between;padding:8px}.hero{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 8px;overflow:hidden}.hero h1{font-size:clamp(2.75rem,min(14vw,14dvh),4.8rem);white-space:nowrap}.hero p{margin-top:clamp(.45rem,1.65dvh,.625rem);line-height:1.25}.hero-action{margin-top:12px}.hub{flex-shrink:0;margin-top:auto;padding:0 12px clamp(.5rem,2.2dvh,2rem)}.paper{background:var(--color-ruly-picker-fresh);border-radius:10px}.small{padding:8px 16px;font-size:14px;font-weight:700;border:2px solid transparent}.primary,.secondary{display:block;width:100%;padding:12px 16px;border-radius:10px;border:2px solid #1a353322;font-weight:700}.primary{background:#1a3533;color:#fcfbf9}.secondary{background:#f5f0e8}.puzzle{margin:16px auto;max-width:384px;width:100%;padding:24px;text-align:center}.puzzle h2{font-size:24px;font-weight:700;margin:12px 0}.puzzle .secondary{margin-top:12px}.placeholder{font-size:40px;opacity:.35;padding:28px}.muted{opacity:.7;line-height:1.6;font-size:14px}.eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase}.warning{padding:8px;text-align:center;font-size:13px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:16px;background:#000a;z-index:50}.modal{width:100%;max-width:384px;max-height:90dvh;overflow:auto;padding:16px;border-radius:16px;background:#fcfbf9;border:1px solid #1a353322;box-shadow:0 10px 30px #0003}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.modal h2{font-size:20px;font-weight:700}.icon{display:inline-grid;place-items:center;width:40px;min-height:40px;border-radius:10px;background:#f5f0e8;font-size:26px}.menu-list{display:flex;flex-direction:column;gap:10px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;font-weight:700}.setting-row input{accent-color:#1a3533;width:22px;height:22px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}.stat{padding:16px;background:#f5f0e8;border-radius:12px;text-align:center}.stat strong{font-size:28px;display:block}.stat span{font-size:13px}.ruly-dark.shell{background:#071911;color:#fcfbf9}.ruly-dark .app{background:#203d3c}.ruly-dark .modal,.ruly-dark .paper,.ruly-dark .secondary,.ruly-dark .icon,.ruly-dark .stat{background:#1a3533;color:#fcfbf9}.ruly-dark .modal{border-color:#88a98a55}.ruly-dark .primary{background:#e4b63a;color:#1a3533}.ruly-dark .setting-row input{accent-color:#e4b63a}.ruly-dark .welcome-puzzle-select-flat{box-shadow:none}@media(min-width:640px){.app{width:520px;padding:16px;border:1px solid #1a353326;border-radius:12px;box-shadow:0 1px 3px #1a35331a}}@media(max-height:640px){.hero h1{font-size:clamp(2rem,min(12vw,12dvh),3.5rem)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}:root.ruly-reduced-motion *,:root.ruly-reduced-motion *:before,:root.ruly-reduced-motion *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}:root.ruly-reduced-motion button:hover{transform:none!important;filter:none!important}.puzzle-page .puzzle{margin:auto}.puzzle-page{overflow-y:auto}input[role=switch]:focus-visible+span{outline:3px solid #c45d42;outline-offset:3px}.game{display:flex;flex:1 0 auto;flex-direction:column;box-sizing:border-box;width:100%;max-width:460px;margin:0 auto;padding:12px 12px 28px;text-align:center}.game h1{font-size:clamp(25px,6vw,34px);margin:8px 0}.metro-board{position:relative;width:100%;margin:22px 0 16px}.metro-network{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none}.metro-lanes{position:relative;z-index:1}.metro-lane{position:relative;height:100px;pointer-events:none}.metro-station{position:absolute;top:0;width:48px;height:100px;display:flex;align-items:center;pointer-events:none}.metro-station-start{left:0}.metro-station-target{right:0}.metro-labels{position:absolute;inset:2px 0 auto;z-index:2;pointer-events:none}.metro-side-label{position:absolute;width:96px;text-align:center;font-size:14px;font-weight:800;line-height:1;opacity:.9}.metro-side-label-current{left:-24px}.metro-side-label-target{right:-24px}.colour-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex-shrink:0;border:1px solid #0003}.colour-0{background:#d65c4e}.colour-1{background:#4c8cd5}.colour-2{background:#4b9b64}.colour-3{background:#d4a51e}.metro-endpoint{position:absolute;left:0;top:26px;box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;display:grid;place-items:center;border:0;color:#fff;font-size:22px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1}.metro-endpoint.colour-0{background:#a83b32}.metro-endpoint.colour-1{background:#2d5e9a}.metro-endpoint.colour-2{background:#2e7041}.metro-endpoint.colour-3{background:#9a7513}.metro-receiver{position:absolute;left:50%;top:50%;z-index:3;transform:translate(-50%,-50%);width:min(34%,9rem);height:7.25rem;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:2px dashed #4b8060;border-radius:12px;background:#fcfbf9ed;color:#1a3533;padding:2px;cursor:pointer;touch-action:none}.metro-receiver-empty{display:flex;align-items:center;justify-content:center;gap:5px;font-size:15px;font-weight:700;white-space:nowrap}.metro-receiver-empty b{font-size:22px;line-height:1}.metro-receiver[data-drag-hover=true]{background:#e4b63a;border-color:#1a3533;transform:translate(-50%,-50%) scale(1.06)}.received-tile{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;overflow:hidden;border:2px solid #88a98a70;border-radius:12px;background:var(--color-ruly-picker-fresh);color:var(--color-ruly-dark);padding:8px 3px;box-shadow:0 2px 5px #0003;font-size:13px;font-weight:700}.rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rule-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:116px;border:2px solid #88a98a70;border-radius:12px;background:var(--color-ruly-picker-fresh);font-size:13px;font-weight:700;padding:8px 3px;touch-action:none}.rule-tile:hover:not(:disabled){background:#e0eadb;border-color:#1a3533}.rule-changes{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}.rule-change-circle,.rule-swap-dot{box-sizing:border-box;display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;flex:0 0 2.5rem;border:1px solid #0003;border-radius:50%;color:#fff;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}.rule-swap{display:flex;align-items:center;justify-content:center;gap:7px}.rule-swap-arrow{font-size:20px;font-weight:700;line-height:1}.rule-change-circle.colour-3{color:#1a3533}.rule-tile.used{opacity:.42;border-style:dashed}.rule-tile.hinted{outline:3px solid #d4a51e;outline-offset:1px}.rule-tile.selected{outline:3px solid #d4a51e;outline-offset:2px}.rule-tile.drag-source{opacity:.38}.tile-drag-ghost{position:fixed;top:0;left:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;overflow:hidden;border:2px solid #88a98a;border-radius:12px;background:var(--color-ruly-picker-fresh);color:var(--color-ruly-dark);padding:8px 3px;box-shadow:0 8px 24px #0003;pointer-events:none;will-change:transform;contain:layout paint style}.attempt-message{font-size:13px;line-height:1.5;min-height:40px;margin:14px 0 8px}.game-controls{display:flex;gap:8px;margin-top:auto;margin-bottom:16px;padding-top:20px}.game-controls .secondary{padding:10px 6px;margin:0}.game-controls button:disabled{opacity:.4}.ruly-dark .rule-tile{background:#1a3533;color:#fcfbf9;border-color:#88a98a88}.ruly-dark .metro-receiver{background:#1a3533;color:#fcfbf9;border-color:#88a98a}.ruly-dark .metro-receiver[data-drag-hover=true]{background:#e4b63a;color:#1a3533;border-color:#e4b63a}.ruly-dark .received-tile,.ruly-dark .tile-drag-ghost{background:#1a3533;color:#fcfbf9;border-color:#88a98a88}.ruly-dark .rule-tile:hover:not(:disabled){background:#23553f}.ruly-dark .rule-tile.selected{outline-color:#e4b63a}.puzzle-page .topbar{flex-shrink:0}@media(max-width:360px){.game{padding-inline:6px}.rule-grid{gap:5px}.rule-tile{font-size:11px}}
