:root{color-scheme:light}html,body,#activity-root{width:100%;height:100%;height:100dvh;overflow:hidden}body{margin:0;background:#466948}button{font:inherit}.cp-game{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;color:#3d3226;--cp-size:clamp(64px,9.5vh,88px)}.cp-header{display:flex;align-items:center;justify-content:center;gap:18px;flex:0 0 auto}.cp-header div{text-align:center;max-width:70%}.cp-header h1{font:600 clamp(17px,2.2vw,27px)/1.15 Fredoka,sans-serif;margin:0;text-wrap:balance}.cp-header p{font:400 14px Fredoka,sans-serif;margin:4px 0 0}.cp-actor{width:98px;height:84px;object-fit:contain;pointer-events:none}.cp-puzzle{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(7px,1.5vh,15px);width:100%;touch-action:none}.cp-strip{display:flex;align-items:center;justify-content:center;gap:clamp(4px,1vw,12px);flex:0 0 auto;max-width:100%}.cp-token,.cp-stone{width:var(--cp-size);height:var(--cp-size);display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;background:var(--stone);border-radius:45% 48% 44% 46%;border:3px solid #6b543d;box-shadow:inset 0 -5px 0 #00000016;color:#3d3226;padding:10px}.cp-token svg,.cp-stone svg{width:100%;height:100%;fill:#fff8e6;stroke:#463923;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.cp-stone{font:inherit;cursor:pointer;touch-action:none}.cp-stone:hover,.cp-tool:hover,.cp-slot:hover{filter:brightness(1.07)}.cp-stone:active,.cp-tool:active{transform:scale(.95)}.cp-game button:focus-visible{outline:4px solid #254c56;outline-offset:4px}.cp-game .cp-selected{outline:4px solid #254c56;outline-offset:4px}.cp-arrow{font-size:24px;line-height:1;color:#705333}.cp-field{position:relative;flex:1;min-height:120px;width:min(100%,650px)}.cp-field>svg,.cp-mirror-grid>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.cp-field line,.cp-mirror-grid line{stroke:#647952;stroke-width:2.6;stroke-linecap:round}.cp-field marker path{fill:#3d553d}.cp-route>.cp-stone{position:absolute;transform:translate(-50%,-50%)}.cp-candidate{display:flex;gap:8px;min-height:28px}.cp-candidate .cp-token{width:29px;height:29px;border-width:2px;padding:4px}.cp-footer{display:flex;align-items:center;gap:10px;min-height:48px;flex:0 0 auto}.cp-status{font:400 clamp(14px,1.5vw,18px)/1.2 Fredoka,sans-serif;flex:1;margin:0;min-height:1.3em}.cp-tool{font:500 16px Fredoka,sans-serif;color:#3d3226;background:#f4e6c6;border:2px solid #8a6340;border-radius:14px;min-height:48px;min-width:48px;padding:8px;display:inline-flex;justify-content:center;align-items:center;gap:7px;cursor:pointer;touch-action:manipulation}.cp-tool svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.cp-tool:disabled{opacity:.4;cursor:default}.cp-swap-row{display:flex;align-items:center;justify-content:center;gap:clamp(3px,1.2vw,15px);min-height:130px;max-width:100%}.cp-swap-row .cp-stone{--cp-size:clamp(48px,7vw,78px)}.cp-read{max-height:250px;min-height:120px}.cp-map-stone{position:absolute;transform:translate(-50%,-50%)}.cp-map-stone .cp-token{--cp-size:clamp(48px,7vh,70px)}.cp-start{position:absolute;transform:translate(-150%,-145%);width:28px;height:28px}.cp-start svg{width:100%;height:100%;stroke:#4b6244;stroke-width:2;fill:#e9bd53}.cp-slots{display:flex;justify-content:center;gap:10px;max-width:100%}.cp-slot{width:var(--cp-size);height:var(--cp-size);padding:3px;background:#f5eace;border:3px dashed #927752;border-radius:13px;display:flex;align-items:center;justify-content:center;font:600 30px Fredoka,sans-serif;color:#765d42;cursor:pointer;touch-action:none}.cp-slot .cp-token{width:100%;height:100%;border-width:2px;padding:7px}.cp-supply{display:flex;gap:10px;justify-content:center;flex:0 0 auto}.cp-supply .cp-stone{--cp-size:clamp(48px,5.6vh,62px)}.cp-mirror{width:min(100%,680px);height:100%;min-height:150px;display:grid;grid-template-columns:1fr 16px 1fr;gap:8px}.cp-mirror-grid{position:relative;min-height:0}.cp-axis{height:100%;border-left:5px dashed #9c799b;justify-self:center}.cp-dot{position:absolute;transform:translate(-50%,-50%);width:48px;height:48px;border:3px solid #70563e;border-radius:50%;background:#ddd0aa;cursor:pointer;touch-action:none}.cp-fixed{background:#a3af80;pointer-events:none}.cp-ring{position:relative;flex:1;min-height:150px;width:min(100%,420px);touch-action:none}.cp-ring-line{position:absolute;left:15%;top:15%;width:70%;height:70%;border:10px solid #b99362;border-radius:50%;pointer-events:none}.cp-ring-stone{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;pointer-events:none}.cp-window{outline:5px solid #4e694d;outline-offset:5px;border-radius:50%}.cp-window small{position:absolute;right:-12px;top:-16px;font:600 16px Fredoka,sans-serif;background:#f3e7ca;padding:1px 5px;border-radius:50%;color:#304931}.cp-turn-tools{display:flex;gap:30px}.cp-hand{position:fixed;z-index:35;width:clamp(56px,7vw,90px);height:auto;pointer-events:none;object-fit:contain}.cp-game .cp-mismatch{outline:4px solid #946d37;outline-offset:3px}.cp-game ::selection{background:#dcbf76;color:#3d3226}
@media(max-width:600px){.cp-game{--cp-size:48px;gap:7px}.cp-header{gap:7px}.cp-header h1{font-size:18px}.cp-header p{font-size:13px}.cp-actor{height:58px;width:58px}.cp-arrow{font-size:18px}.cp-strip{gap:5px}.cp-token,.cp-stone{padding:8px;border-width:2px}.cp-swap-row{gap:3px}.cp-swap-row .cp-stone{--cp-size:48px}.cp-supply{gap:5px}.cp-slots{gap:7px}.cp-field{width:100%}.cp-mirror{gap:0;grid-template-columns:1fr 12px 1fr}.cp-dot{width:44px;height:44px}.cp-footer{gap:6px}.cp-tool span{display:none}}
@media(orientation:landscape) and (max-height:600px){.cp-game{--cp-size:48px;gap:2px}.cp-header{position:absolute;left:0;right:0;top:-5px;pointer-events:none;justify-content:space-between;padding:0 4px}.cp-header div{display:none}.cp-actor{height:43px;width:43px}.cp-puzzle{gap:5px}.cp-footer{min-height:42px}.cp-tool{min-height:42px;padding:5px}.cp-status{font-size:14px}.cp-field{min-height:90px}.cp-ring{min-height:90px;width:280px}.cp-ring-line{border-width:6px}.cp-read{min-height:90px}.cp-swap-row{min-height:90px}.cp-supply .cp-stone{--cp-size:48px}.cp-mirror{min-height:100px}.cp-dot{width:42px;height:42px}.cp-candidate{display:none}}


.cp-game,.cp-header,.cp-puzzle,.cp-footer{min-width:0;width:100%}.cp-header div{min-width:0;flex:1;max-width:none}.cp-actor{flex:0 0 auto}.cp-status{min-width:0}
@media(max-width:600px){.cp-strip,.cp-swap-row{gap:2px}.cp-arrow{font-size:14px;width:8px;flex:0 0 8px}.cp-header h1{font-size:17px}}
@media(orientation:landscape) and (max-height:600px){.cp-puzzle:has(.cp-ring){display:grid;grid-template-columns:auto auto;grid-template-rows:1fr 42px;column-gap:35px;justify-content:center;align-items:center}.cp-puzzle:has(.cp-ring)>.cp-strip{grid-column:1;grid-row:1}.cp-puzzle>.cp-ring{height:140px;min-height:140px;width:210px;grid-column:2;grid-row:1}.cp-turn-tools{grid-column:2;grid-row:2}}
@media(prefers-reduced-motion:reduce){.cp-stone:active,.cp-tool:active{transform:none}}

.cp-mirror-grid .cp-edge-hit{stroke:transparent;stroke-width:9;pointer-events:stroke;cursor:pointer}

.cp-route-head{fill:#3d553d}

.cp-direction{position:absolute;width:30px;height:30px;pointer-events:none}.cp-direction svg{width:100%;height:100%;fill:#3d553d}
