:root{--scope-color:#d1ee94}#guide-x,#guide-y{stroke:var(--scope-color);stroke-width:1.45;stroke-dasharray:4 5;opacity:.75;filter:drop-shadow(0 0 1px #0b160c)}.guide-shadow{stroke:#08150d;stroke-width:3.6;stroke-dasharray:4 5;opacity:.55}#ring-circle,#ring-ray,#orbit-path,#orbit-drift{fill:none;stroke:var(--scope-color);stroke-width:1.5;filter:drop-shadow(0 0 1px #0008)}#ring-circle{opacity:.85}#ring-ray{stroke-dasharray:4 6;opacity:.6}.ring-shadow{fill:none;stroke:#07140c;stroke-width:4;opacity:.5}#orbit-drift{stroke-width:2.2;stroke-dasharray:3 4}.challenge-strip{display:flex;align-items:center;gap:14px;min-height:36px;margin-bottom:10px;flex-shrink:0;font-size:10px}.challenge-mode{margin-right:auto;color:#6d8057;font-weight:bold;font-size:9px;letter-spacing:1px}#practice-aim-label{display:flex;align-items:center;gap:9px;letter-spacing:0;font-weight:normal;font-size:10px}#practice-aim{font:inherit;border:1px solid #c9d2bb;border-radius:5px;padding:7px 22px 7px 10px;background:#fffef8;color:#34472a;min-height:32px}.pace-indicator{font-size:7px;letter-spacing:1px;color:#889777;white-space:nowrap}.pace-indicator strong{font-size:12px;font-weight:normal;color:#5c7d3e;margin-left:3px;font-variant-numeric:tabular-nums}.pace-indicator strong.pace-hot{color:#b56b3c}.strip-button{font:inherit;border:1px solid #cbd5bc;border-radius:5px;padding:8px 12px;background:#fffef8;color:#62794d;font-size:10px;line-height:1.3;min-height:33px;white-space:nowrap}.strip-button:hover{background:#e8efd9}.locker-button{display:flex;gap:12px;align-items:center;color:#344d24}.locker-button>span{font-size:10px;color:#718e4a;font-variant-numeric:tabular-nums}.locker-button strong{font-weight:normal}.progression{max-width:1180px;margin:12px auto 8px;padding:28px;scroll-margin-top:18px}.progression-top{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:24px}.progression h2{font-family:Georgia,serif;font-size:34px;font-weight:normal;letter-spacing:-1px;margin:10px 0}.progression-top p{font-size:11px;line-height:1.6;color:#7b896e;max-width:530px}.streak-summary{display:flex;align-items:center;gap:13px}.streak-summary>strong{font-family:Georgia,serif;font-size:52px;font-weight:normal;color:#718a4f}.streak-summary>span{font-size:11px;color:#657d4e;white-space:nowrap}.streak-summary small{display:block;font-size:9px;color:#8b987b;margin-top:8px}.streak-summary b{font-weight:normal}.mission-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.mission-card{display:flex;flex-direction:column;min-height:180px;padding:20px;border:1px solid #d5dccb;background:#fffef8;border-radius:8px}.mission-card h3{font-size:15px;letter-spacing:-.3px;font-weight:normal;margin:3px 0 10px;color:#34482a;padding-right:48px}.mission-card p{font-size:11px;line-height:1.65;color:#859176;margin:0 0 20px;max-width:260px}.mission-card>div:first-child{position:relative;flex:1}.mission-reward{position:absolute;right:0;top:0;color:#9aab72;font-size:10px}.mission-progress{height:3px;border-radius:4px;background:#e8ecdf;overflow:hidden}.mission-progress>span{display:block;height:100%;background:#a9c878}.mission-footer{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#9aa58c;margin-top:12px}.mission-done{background:#edf3e1;border-color:#bbcc9e}.mission-done .mission-footer{color:#64823f}.streak-track{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:24px 0 0}.streak-track>div:first-child>span{font-size:8px;letter-spacing:1.1px;color:#6e8356;font-weight:bold}.streak-track p{font-size:10px;color:#929c84;max-width:330px;line-height:1.6;margin:7px 0}.streak-track #streak-milestones{display:flex;gap:8px}#streak-milestones>span{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;border:1px solid #d4ddc7;border-radius:50%;width:43px;height:43px;font-family:Georgia,serif;font-size:15px;color:#a1ad8d;background:#eeefe7}#streak-milestones small{font:7px Arial,sans-serif;color:#a7b297}#streak-milestones>.milestone-done{border-color:#a2b97a;background:#dfecc7;color:#617d3d}#streak-milestones>.milestone-done small{color:#7b9658}.locker-dialog{width:calc(100% - 28px);max-width:860px;padding:24px;max-height:calc(100svh - 28px)}.locker-head{position:sticky;top:-24px;z-index:4;background:var(--bg);padding:8px 0 15px;margin-bottom:18px;border-bottom:1px solid #d5ddc9}.locker-head .close-dialog{right:0;top:0}.locker-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.locker-title-row h2{font-size:36px;margin:12px 0 7px}.locker-balance{font-size:17px;color:#7e9d53}.locker-balance strong{font-family:Georgia,serif;font-size:29px;letter-spacing:-1px;font-weight:normal}.locker-head #collection-count{font-size:11px;color:#8b9a76;margin:0 0 17px}.locker-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:4px;border-radius:6px;background:#e6ebdb}.locker-tabs button{border:0;border-radius:4px;background:none;min-height:36px;color:#89977a;font-size:11px;padding:8px}.locker-tabs button[aria-pressed=true]{background:#fffef8;color:#405a2a;box-shadow:0 1px 3px #0000000a}#locker-status{min-height:16px;color:#798e5f;font-size:11px;line-height:1.5;margin:12px 0 0}.locker-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.design-card{display:flex;flex-direction:column;padding:17px;background:#fffef8;border:1px solid #d6deca;border-radius:8px;min-width:0;min-height:258px}.design-equipped{border-color:#9bbf67;background:#eef5df}.design-art{height:95px;display:flex;justify-content:center;align-items:center;margin-bottom:14px}.design-art svg{display:block;height:88px;max-width:100%;overflow:visible}.design-tier{font-size:7px;letter-spacing:1px;color:#9ca98a}.design-card h3{font-family:Georgia,serif;font-size:20px;font-weight:normal;letter-spacing:-.5px;color:#3e542c;margin:7px 0}.design-card p{font-size:10px;line-height:1.6;color:#909e7d;min-height:33px;margin:0 0 14px}.design-action{margin-top:auto;min-height:35px;width:100%;background:#ecf2de;border:1px solid #c7d7ad;border-radius:4px;color:#5a783b;padding:8px;font-size:10px}.design-action:hover:not(:disabled){background:#d8e8bc}.design-action:disabled{opacity:.65;color:#8d9e77;cursor:default}.design-equipped .design-action{border-color:#a6c17c;color:#618637;opacity:1;background:#e0edca}.locker-milestone-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.milestone-card{display:flex;align-items:flex-start;gap:13px;padding:17px;border:1px solid #d6decb;background:#fffef8;border-radius:7px}.milestone-icon{display:grid;place-items:center;font-family:Georgia,serif;width:30px;height:30px;flex-shrink:0;border-radius:50%;background:#edf0e4;color:#b0bc9c;font-size:21px}.milestone-card h3{font-size:14px;letter-spacing:-.2px;font-weight:normal;margin:2px 0 8px;color:#526b3b}.milestone-card p{font-size:10px;line-height:1.6;margin:0 0 9px;color:#929e82}.milestone-card>div>span{font-size:9px;color:#abb696}.milestone-unlocked{background:#ecf3df;border-color:#bdcfa1}.milestone-unlocked .milestone-icon{color:#6d9342;background:#dbeabd}.milestone-unlocked>div>span{color:#7d9b55}.result-rewards{color:#7e9d4b!important;background:#e5efcf;border-radius:5px;padding:9px 12px;font-size:11px!important;line-height:1.5!important;margin:0 0 12px!important}
@media(min-width:641px){.arena{height:calc(100svh - 191px)}}
@media(max-width:900px){.streak-track{flex-wrap:wrap;gap:18px}.streak-track>div:first-child{flex:1}.streak-track>.strip-button{margin-left:auto}.progression{padding-left:18px;padding-right:18px}.mission-card{padding:16px}.mission-card h3{font-size:14px}}
@media(max-width:640px){.challenge-strip{gap:7px;min-height:32px;margin-bottom:7px}.challenge-mode{font-size:7px;letter-spacing:.6px;min-width:0}#practice-aim-label{font-size:0;gap:0}#practice-aim{font-size:10px;padding:6px 20px 6px 8px;min-height:31px}.strip-button{font-size:9px;padding:7px 9px;min-height:31px}.locker-button{gap:7px}.locker-button>span{font-size:9px}.pace-indicator{font-size:0;letter-spacing:0}.pace-indicator strong{font-size:10px;margin:0}.progression{padding:25px 12px;margin:0 auto 8px;scroll-margin-top:12px}.progression-top{gap:15px;margin-bottom:18px;align-items:flex-start}.progression h2{font-size:29px;margin:9px 0}.progression .eyebrow{font-size:7px}.progression-top p{font-size:10px;max-width:245px}.streak-summary{gap:7px;flex-shrink:0;align-items:flex-start}.streak-summary>strong{font-size:34px;line-height:1}.streak-summary>span{font-size:9px;line-height:1.4}.streak-summary small{font-size:7px;max-width:75px;white-space:normal;margin-top:4px}.mission-cards{grid-template-columns:1fr;gap:10px}.mission-card{min-height:133px;padding:16px}.mission-card p{max-width:none;margin-bottom:15px;font-size:10px}.mission-footer{margin-top:9px}.mission-progress{height:3px}.streak-track{padding-top:18px;display:grid;grid-template-columns:1fr auto;gap:14px}.streak-track>div:first-child{grid-column:1/-1}.streak-track p{max-width:none;font-size:9px}.streak-track #streak-milestones{gap:5px}#streak-milestones>span{height:36px;width:36px;font-size:13px}#streak-milestones small{font-size:6px}.streak-track>.strip-button{font-size:8px;padding:6px}.locker-dialog{padding:18px;width:calc(100% - 18px);max-height:calc(100svh - 18px)}.locker-head{top:-18px;padding-top:7px;margin-bottom:14px}.locker-head .eyebrow{font-size:7px}.locker-title-row h2{font-size:31px;margin:12px 0 7px}.locker-balance{font-size:14px}.locker-balance strong{font-size:24px}.locker-head #collection-count{font-size:10px;margin-bottom:13px}.locker-tabs{gap:3px;padding:3px}.locker-tabs button{font-size:9px;padding:6px 3px;min-height:33px}#locker-status{font-size:10px;margin-top:9px}.locker-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.design-card{min-height:246px;padding:13px}.design-art{height:83px;margin-bottom:13px}.design-art svg{height:79px}.design-tier{font-size:6px;letter-spacing:.6px}.design-card h3{font-size:18px;line-height:1.1;margin:8px 0}.design-card p{font-size:9px;min-height:42px;line-height:1.6;margin-bottom:12px}.design-action{font-size:9px;min-height:34px;padding:7px 3px}.locker-milestone-list{grid-template-columns:1fr;gap:9px}.milestone-card{padding:15px}.result-rewards{font-size:10px!important;padding:8px 10px;margin-bottom:10px!important}.result-publish-status{min-height:30px;margin-top:8px!important;margin-bottom:14px!important}}

/* Keep the game at its intended scale while allowing page and locker scrolling. */
html,body{touch-action:pan-y}#board-input,#action{touch-action:none}
@media(max-width:640px){input,textarea,select,#practice-aim{font-size:16px}}

.profile-dialog{max-width:520px;width:calc(100% - 28px);max-height:calc(100svh - 28px);padding:28px}.profile-head{position:sticky;top:-28px;background:var(--bg);padding:8px 0 16px;z-index:3}.profile-head .close-dialog{right:0;top:0}.profile-head h2{margin:10px 0 0;font-size:34px}.profile-identity{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-top:1px solid #d2dac5;border-bottom:1px solid #d2dac5}.profile-identity strong{display:block;font-family:Georgia,serif;font-size:22px;overflow-wrap:anywhere;font-weight:normal}.profile-identity span{display:block;font-size:10px;color:#8a7655;margin-top:7px}.profile-identity span.profile-protected{color:#58743d}.profile-identity button{white-space:nowrap;flex-shrink:0;font-size:10px}.profile-section{padding-top:19px}.profile-section h3{font-size:16px;font-weight:normal;color:#3c542b;margin:0 0 8px}.profile-section>p{font-size:12px;line-height:1.6;color:#647450;margin:0 0 13px}.profile-section input{width:100%;background:#fffef8;border:1px solid #bdcba8;border-radius:5px;padding:11px;font:16px monospace;color:#304623;min-width:0}.profile-code-row{display:flex;gap:7px;margin-bottom:10px}.profile-code-row input{flex:1}.profile-code-row button{flex-shrink:0;width:55px}#profile-restore{margin-top:12px}.profile-status{font-size:11px!important;line-height:1.5!important;min-height:0;margin:10px 0 0!important;color:#617b45!important}.profile-status:empty{display:none}.profile-section .form-label{margin:12px 0 7px}.profile-section .secondary-action{min-height:37px}.result-save-profile{display:block;width:100%;margin-top:10px;min-height:34px}.connection-retry{margin-left:12px;border:1px solid #a7ba8b;border-radius:4px;background:#fffef8;padding:6px 10px;color:#4d6636;font-size:11px}.mission-card p{color:#62714f}
@media(max-width:640px){header{gap:8px}.header-right{display:flex;flex:1;min-width:0;justify-content:flex-end;gap:4px}.header-right .player-button{min-width:0;max-width:125px;flex:0 1 auto}.header-right .icon-button{width:28px;height:28px;min-width:28px;flex-shrink:0}.profile-dialog{padding:20px;width:calc(100% - 20px);max-height:calc(100svh - 20px)}.profile-head{top:-20px;padding-top:6px}.profile-head .eyebrow{font-size:7px}.profile-head h2{font-size:30px}.profile-identity{gap:10px}.profile-identity strong{font-size:20px}.profile-identity button{font-size:9px;padding:8px}.profile-section{padding-top:17px}.profile-section>p{font-size:11px}.profile-section h3{font-size:15px}.profile-section .main-action{min-height:41px}.profile-code-row button{font-size:10px;width:50px}.connection-retry{margin-top:6px;margin-left:8px}.mission-card p{font-size:11px}}

.profile-identity>div{flex:1;min-width:0}.profile-identity>button{width:auto;flex:0 0 auto}
