:root{color:#36363d;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto;background:#fff;font-family:Segoe UI,system-ui,sans-serif;font-weight:400}*{box-sizing:border-box}body{background:#fff;min-width:320px;min-height:100svh;margin:0}button{font:inherit;touch-action:manipulation}#app{flex-direction:column;width:min(100% - 64px,1120px);min-height:100svh;margin:0 auto;display:flex}.topbar{border-bottom:1px solid #f0eeeb;justify-content:space-between;align-items:center;height:82px;display:flex}.brand{color:#36363d;letter-spacing:1.4px;align-items:center;gap:10px;font-family:Segoe UI,system-ui,sans-serif;font-size:15px;font-weight:800;text-decoration:none;display:inline-flex}.brand-icon{color:#a76e14;background:#f9e3ad;border-radius:10px;place-items:center;width:31px;height:31px;font-size:18px;display:grid}.score-card{background:#fff;border:1px solid #f0eeeb;border-radius:12px;align-items:center;gap:12px;min-width:90px;padding:8px 13px;display:flex}.score-label{color:#989198;letter-spacing:1px;font-size:10px;font-weight:700}#score-value{color:#36363d;font-family:Segoe UI,system-ui,sans-serif;font-size:20px;font-weight:700;line-height:1}.topbar-actions{align-items:center;gap:9px;display:flex}.face-controls{position:relative}.add-faces-button,.music-toggle-button,.restart-button{color:#58545b;cursor:pointer;background:#fff;border:1px solid #eae7e3;border-radius:10px;align-items:center;gap:8px;padding:9px 13px;font-size:13px;font-weight:600;transition:background-color .14s,border-color .14s;display:inline-flex}.add-faces-button{color:#765822;background:#fffaf0;border-color:#f0dfbd}.music-toggle-button{color:#596b8a;background:#f7f9fd;border-color:#dce5f1}.music-toggle-button:hover,.music-toggle-button[aria-pressed=true]{background:#edf3fb;border-color:#cbd9eb}.music-toggle-button span:first-child{color:#7588a8;font-size:16px}.add-faces-button:hover{background:#fff5df;border-color:#e2c78f}.restart-button:hover{background:#faf8f5;border-color:#dbd3c8}.add-faces-button:focus-visible,.music-toggle-button:focus-visible,.restart-button:focus-visible{outline-offset:3px;outline:3px solid #f5c15d}.face-menu{z-index:20;background:#fff;border:1px solid #eee6d9;border-radius:12px;gap:8px;width:250px;max-height:min(520px,100vh - 100px);padding:14px;display:grid;position:absolute;top:calc(100% + 10px);right:0;overflow-y:auto;box-shadow:0 12px 30px #36363d24}.face-menu[hidden]{display:none}#face-choices{gap:8px;display:grid}#face-choices[hidden],.face-crop-editor[hidden]{display:none}.face-menu p{color:#78717a;margin:0 0 2px;font-size:12px;line-height:1.45}.face-menu .face-upload-status{color:#a09589;min-height:17px;margin-top:2px;font-size:11px}.face-choice-button{color:#4a464d;cursor:pointer;text-align:left;background:#faf8f5;border:1px solid #f0eeeb;border-radius:8px;padding:9px 10px;font-size:12px;font-weight:600}.face-choice-button:hover,.face-choice-button:focus-visible{background:#fff8e9;border-color:#e2c78f}.face-crop-editor{justify-items:center;gap:9px;display:grid}.face-menu .face-crop-title{color:#4a464d;width:100%;margin:0;font-weight:700}.face-crop-preview{cursor:grab;touch-action:none;background:#f3efe9;border:2px solid #e8dfd3;border-radius:50%;width:168px;height:168px;display:block;box-shadow:0 2px 8px #36363d1f}.face-crop-preview:active{cursor:grabbing}.face-zoom-label{color:#78717a;width:100%;font-size:12px;font-weight:600}.face-angle-heading{justify-content:space-between;align-items:center;width:100%;display:flex}#face-angle-value{color:#a09589;font-size:11px}#face-zoom,#face-angle{accent-color:#bd8b3c;width:100%;margin:0}.face-crop-actions{justify-content:space-between;gap:8px;width:100%;display:flex}.face-cancel-button,.face-apply-button{cursor:pointer;border:1px solid #eae7e3;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:600}.face-cancel-button{color:#625e65;background:#fff}.face-apply-button{color:#765822;background:#fff5df;border-color:#e2c78f}.restart-button span:first-child{color:#9c7d4d;font-size:19px;line-height:1}.screen-reader-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}main{width:100%;margin:auto 0;padding:28px 0 42px}.game-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px;display:flex}.eyebrow{color:#a09589;letter-spacing:1.5px;margin:0 0 4px;font-size:10px;font-weight:700}h1{color:#36363d;letter-spacing:-.8px;margin:0;font-family:Segoe UI,system-ui,sans-serif;font-size:clamp(24px,3vw,32px);font-weight:700;line-height:1.15}.hint{color:#77727a;align-items:center;gap:8px;margin:0 0 3px;font-size:13px;display:flex}.hint-dot{background:#8bcdb7;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #eaf5f0}.game-frame{background:#faf8f5;border:1px solid #ebe7e1;border-radius:18px;overflow:hidden;box-shadow:0 14px 40px #342b2212}#game-container{aspect-ratio:3/2;overscroll-behavior:contain;touch-action:none;width:100%}#game-container canvas{touch-action:none;width:100%;height:100%;display:block}.frame-caption{color:#89838a;background:#fff;border-top:1px solid #ebe7e1;justify-content:space-between;align-items:center;gap:12px;min-height:43px;padding:0 16px;font-size:11px;display:flex}.caption-right{color:#a09589}@media (width<=600px){#app{width:100%;padding-right:max(14px, env(safe-area-inset-right));padding-left:max(14px, env(safe-area-inset-left))}.topbar{grid-template-columns:1fr auto;grid-template-areas:"brand score""actions actions";row-gap:10px;height:auto;min-height:68px;padding:12px 0;display:grid}.brand{grid-area:brand}.score-card{grid-area:score}.topbar-actions{grid-area:actions;justify-content:stretch;gap:6px;width:100%}.add-faces-button,.music-toggle-button,.restart-button{justify-content:center;gap:5px;min-height:44px;padding:8px 7px;font-size:12px}.face-controls,.music-toggle-button,.restart-button{flex:1;min-width:0}.add-faces-button{width:100%}.brand-icon{width:27px;height:27px}.score-card{gap:8px;min-width:74px;padding:7px 10px}.face-menu{width:min(250px,100vw - 28px)}main{padding:24px 0}.game-heading{align-items:start;margin-bottom:13px}.hint{max-width:112px;font-size:11px;line-height:1.35}.frame-caption{min-height:38px;padding:6px 10px;font-size:9px}.caption-right{text-align:right}}@media (width<=380px){.add-faces-button,.music-toggle-button,.restart-button{gap:3px;padding-left:4px;padding-right:4px;font-size:11px}.caption-right{display:none}}@media (height<=500px) and (orientation:landscape){#app{min-height:100svh}main{padding-top:12px;padding-bottom:max(16px, env(safe-area-inset-bottom))}.topbar{min-height:58px}.game-heading{margin-bottom:8px}}
