:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0e2a47;background:#0e2a47;font-synthesis:none;--navy:#0e2a47;--aqua:#00d4c6;--muted:#5b6b8a}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}button{border:0}a{color:inherit}button[hidden],[hidden]{display:none!important}.topbar{height:68px;background:#0e2a47;display:flex;align-items:center;gap:18px;padding:0 24px;color:white}.brand{width:215px;height:40px;object-fit:contain}.game-title{font-size:11px;font-weight:750;letter-spacing:1.7px;border-left:1px solid #ffffff28;padding-left:20px;margin-right:auto}.game-title span{display:block;font-size:10px;letter-spacing:.4px;margin-top:6px;font-weight:450;opacity:.7}.header-button{background:#ffffff0b;color:white;border:1px solid #ffffff26;min-height:42px;border-radius:14px;padding:0 12px;font-size:13px}#game{position:relative;height:calc(100dvh - 68px);min-height:320px;overflow:hidden;background:#d9eef1}#town{display:block;width:100%;height:100%;touch-action:none;outline:none}.hud{position:absolute;top:18px;left:50%;transform:translateX(-50%);display:flex;background:#fffffff0;backdrop-filter:blur(14px);border-radius:16px;box-shadow:0 8px 30px #173b4910;padding:14px 10px 20px;min-width:430px;overflow:hidden}.hud>div,.hud>button{flex:1;min-width:0;padding:0 18px;border-right:1px solid #dde6e9;text-align:left;background:none;color:var(--navy)}.hud>button{border:0}.hud span{font-size:10px;font-weight:750;letter-spacing:1px;display:block;margin-bottom:6px;color:#5b6b8a;white-space:nowrap}.hud strong{display:block;font-size:24px;letter-spacing:-.8px;font-variant-numeric:tabular-nums}#day-progress{position:absolute;left:0;bottom:0;width:100%;height:4px;border:0;border-radius:0;background:#dfece9;appearance:none}progress::-webkit-progress-bar{background:#e2ecea}progress::-webkit-progress-value{background:#00b9a9}.day-controls{position:absolute;left:50%;top:121px;transform:translateX(-50%);display:flex;gap:8px;align-items:center;white-space:nowrap}.day-controls button{border-radius:24px;padding:10px 16px;min-height:40px;background:#fffffff0;color:#0e2a47;font-size:13px;font-weight:650;box-shadow:0 3px 12px #173b4910}.day-controls #end-day{background:#0e2a47;color:white}.day-controls #end-day.attention{background:#c77b22}.sync-status{position:absolute;top:171px;left:50%;transform:translateX(-50%);max-width:70%;text-align:center;border-radius:12px;padding:4px 9px;background:#ffffffb9;color:#456374;font-size:11px;line-height:1.4}.sync-status[data-kind="offline"]{background:#fff0cf;color:#78531d}.map-tools{position:absolute;top:22px;right:20px;display:flex;flex-direction:column;gap:8px}.map-tools button{width:46px;height:46px;border-radius:12px;background:#fffffff4;color:var(--navy);box-shadow:0 5px 20px #173b4915;font-size:13px;font-weight:750}.map-tools button:nth-child(-n+2){font-size:24px;font-weight:450}.bottom-wrap{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(570px,calc(100% - 28px))}.context{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:#fffffff5;box-shadow:0 5px 30px #173b4912}.context>div{flex:1;min-width:0}.context strong{display:block;font-size:16px;line-height:1.4}.context small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:3px}.context>.primary{width:auto;flex:none;padding:12px 17px}.eyebrow{display:block;color:#078c80;font-size:11px;font-weight:800;letter-spacing:1.5px;line-height:1.4}.context .eyebrow{font-size:9px;color:#61758b;letter-spacing:1px;margin-bottom:3px}.bottom-nav{display:flex;gap:8px;margin-top:8px}.bottom-nav button{min-height:46px;flex:1;background:#fffffff0;color:var(--navy);border-radius:12px;font-size:13px;font-weight:700;white-space:nowrap}.bottom-nav b{display:inline-block;background:#def8f3;color:#007e74;padding:2px 5px;margin-left:4px;border-radius:5px;font-size:12px}#queue-tip{display:flex;align-items:center;gap:10px;background:#fff3d6;border:1px solid #e8d5a2;border-radius:12px;margin-bottom:8px;padding:9px 12px;font-size:12px;line-height:1.4}#queue-tip span{flex:1}#queue-tip button{background:#0e2a47;color:white;border-radius:9px;padding:10px 12px;min-height:40px;font-size:12px;white-space:nowrap}#toast{position:absolute;left:50%;bottom:205px;transform:translateX(-50%) translateY(6px);max-width:82%;width:max-content;background:#0e2a47;color:white;border-radius:12px;padding:11px 16px;font-size:13px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translateX(-50%)}
/* Compact mobile sheets: the action stays fixed; secondary information has its own page. */
#panel{padding:0;border:0;border-radius:22px;width:min(460px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 24px);background:#f7fafc;color:#0e2a47;overflow:hidden;box-shadow:0 25px 90px #061f5060}#panel[open]{display:flex;flex-direction:column}#panel::backdrop{background:#0e2a4780;backdrop-filter:blur(4px)}#panel-top{height:68px;flex:none;background:white;border-bottom:1px solid #e3eaf0;display:flex;align-items:center;justify-content:space-between;padding:12px 21px;gap:12px}#panel-top img{width:178px;height:33px;object-fit:contain}#panel-top .close{height:40px;min-width:44px;background:#f6f9fb;border:1px solid #e2e8ed;border-radius:50%;font-size:12px;color:#53677e;padding:0 8px}#panel-top .back{min-height:40px;background:#eff5f8;color:#0e2a47;border-radius:10px;padding:0 14px;font-size:14px;font-weight:650}#panel-body{padding:23px 24px 12px;overflow:auto;overscroll-behavior:contain;min-height:0}#panel-title{font-size:27px;line-height:1.15;letter-spacing:-1px;font-weight:750;margin:9px 0 16px;outline:none}.lead{font-size:16px;line-height:1.55;margin:0 0 16px;color:#53677e}.fine{font-size:12px;line-height:1.5;color:#62768a;margin:12px 0 0}.notice{font-size:15px;line-height:1.5;color:#235b60;background:#e4f7f3;border:1px solid #cfeae4;border-radius:12px;padding:14px;margin:10px 0}.notice.warn{color:#7b591c;background:#fff2d6;border-color:#efdcaf}.notice.muted{color:#576b80;background:#edf3f8;border-color:#dce6ef}#panel-footer{padding:12px 24px 19px;background:#f7fafc;flex:none;display:flex;flex-direction:column;gap:9px;border-top:1px solid #e4ebf0}#sheet-status{font-size:13px;color:#8c501f;background:#fff0d8;line-height:1.4;border-radius:8px;padding:8px 10px;margin:0}.primary,.secondary{display:block;width:100%;min-height:46px;padding:12px 15px;border-radius:10px;font-size:14px;line-height:1.4;font-weight:750;text-align:center;text-decoration:none;color:#0e2a47}.primary{background:#00d4c6;border:1px solid #00cbbc}.primary:hover{background:#00c7ba}.secondary{background:#eaf1f6;border:1px solid #e0e9ef}.text-button{background:none;color:#486178;min-height:34px;font-size:13px;font-weight:650;padding:6px 10px}.footer-links{display:flex;justify-content:center;gap:5px}.two-actions{display:flex;gap:8px}.two-actions>*{flex:1;min-width:0}.menu-row{display:flex;width:100%;gap:10px;align-items:center;justify-content:space-between;background:white;color:var(--navy);border:1px solid #e0e8ee;border-radius:12px;padding:13px 14px;margin:8px 0;min-height:62px;text-align:left}.menu-row>span{flex:1;min-width:0}.menu-row b{display:block;font-size:15px;line-height:1.35}.menu-row small{display:block;font-size:12px;line-height:1.4;color:#65798f;margin-top:4px}.menu-row>strong{font-size:14px;white-space:nowrap}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tile{min-height:62px;border-radius:12px;border:1px solid #dce7ec;background:white;color:#0e2a47;font-size:14px;font-weight:650;padding:12px;line-height:1.4}.pager{display:flex;align-items:center;gap:12px}.pager .secondary{flex:1;min-width:0;min-height:40px;padding:8px;font-size:13px}.pager span{font-size:12px;color:#62768a;white-space:nowrap}.field-label{display:block;font-size:14px;font-weight:650;margin:15px 0 8px}.field{display:block;width:100%;background:white;border:1px solid #cbd9e4;border-radius:10px;color:#0e2a47;padding:12px 14px;min-height:46px;font-size:16px}.recovery-key{height:100px;resize:none;font-size:14px;overflow-wrap:anywhere}.intro-three{display:grid;grid-template-columns:auto 1fr;gap:15px 16px;background:white;border-radius:14px;border:1px solid #dfe8ef;padding:18px;margin:14px 0}.intro-three b{font-size:14px}.intro-three span{font-size:14px;line-height:1.45;color:#62768a}.portrait{flex:none;width:56px;height:77px;background:url('/assets/people.webp') no-repeat 0 -77px;background-size:224px 154px}.portrait.stevens{background-position:-56px -77px}.portrait.barista{background-position:-112px -77px}.portrait.harriet,.portrait.sam{background-position:-168px -77px}.client-brief{display:flex;align-items:center;gap:12px;margin:8px 0 13px}.client-brief p{font-size:15px;line-height:1.5;color:#50677c;margin:0}.facts{margin:10px 0}.facts>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e3ebf0;padding:11px 0;font-size:14px;line-height:1.4}.facts>div:last-child{border-bottom:0}.facts dt{color:#62768a;flex:1;min-width:0}.facts dd{margin:0;text-align:right;font-weight:650;max-width:62%;overflow-wrap:anywhere}.case-meta{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #dfe8ee;margin-top:16px;padding-top:13px;align-items:center;font-size:12px;line-height:1.5;color:#62768a}.case-meta b{font-size:18px;color:#0e2a47;white-space:nowrap}.step-dots{display:flex;gap:6px;margin:0 0 19px}.step-dots i{height:5px;background:#d8e5e9;border-radius:4px;flex:1}.step-dots i.on{background:#00baa9}.success-mark{width:62px;height:62px;display:grid;place-items:center;background:#d8f8ec;color:#008773;border-radius:50%;font-size:30px;margin:6px auto 20px}.benefit-grid{display:grid;gap:10px}.benefit-grid>div{display:flex;gap:12px;align-items:center;padding:13px;background:white;border-radius:11px;border:1px solid #e2e9ee}.benefit-grid b{font-size:14px;min-width:115px}.benefit-grid span{font-size:14px;line-height:1.4;color:#62768a}.source-chip{font-size:11px;font-weight:750;color:#08776e;display:inline-block;background:#e3f5ef;padding:4px 7px;border-radius:5px;margin-bottom:8px}.history-item{padding:10px 0;border-bottom:1px solid #dfe8ee}.history-item>b{display:block;font-size:14px;line-height:1.4}.history-item p{font-size:14px;line-height:1.45;color:#62768a;margin:7px 0}.field-selection{display:grid;grid-template-columns:1fr 1fr;gap:8px}.field-selection label{display:flex;align-items:center;gap:7px;font-size:13px;line-height:1.3;padding:10px;background:white;border:1px solid #e0e8ee;border-radius:9px}.field-selection input{accent-color:#00b8a8;width:18px;height:18px;flex:none}.day-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.day-stats>div{background:white;border:1px solid #e1e9ee;padding:15px;border-radius:12px}.day-stats span{font-size:12px;color:#62768a;display:block;margin-bottom:8px}.day-stats b{font-size:24px;letter-spacing:-.7px}.month-total{font-size:45px;font-weight:750;letter-spacing:-2px;color:#008e81;padding:9px 0 22px}.score-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e1e8ed;padding:13px 7px;font-size:14px}.score-row>span{flex:1}.score-row.you{background:#e4f8f2}.score-row>b{font-size:12px;color:#688092;min-width:20px}.score-row strong{font-variant-numeric:tabular-nums}.save-line{font-size:14px;color:#536b80;line-height:1.5}.real-answer{font-size:42px;letter-spacing:-1px;font-weight:750;color:#00a99b;margin:5px 0 18px}
@media(max-width:760px){.topbar{height:62px;padding:0 13px;gap:9px}.brand{width:151px;height:34px}.game-title{font-size:8px;letter-spacing:1px;padding-left:9px}.game-title span{font-size:8px;letter-spacing:0;margin-top:4px}.header-button{padding:0 7px;min-height:37px;font-size:11px;border-radius:10px}#game{height:calc(100dvh - 62px)}.hud{top:12px;min-width:0;width:calc(100% - 28px);padding:11px 5px 17px;border-radius:14px}.hud>div,.hud>button{padding:0 10px}.hud span{font-size:9px;letter-spacing:.25px;margin-bottom:5px}.hud strong{font-size:22px}.day-controls{top:108px;gap:7px}.day-controls button{font-size:12px;padding:9px 12px;min-height:39px}.sync-status{top:154px;font-size:10px;max-width:68%;left:14px;transform:none;max-height:35px;overflow:hidden}.map-tools{top:154px;right:12px;gap:6px}.map-tools button{width:42px;height:42px;border-radius:10px;font-size:12px}.context{padding:12px;gap:10px}.context strong{font-size:14px}.context small{font-size:11px;line-height:1.4}.context>.primary{padding:10px 12px;font-size:12px}.bottom-nav{gap:6px}.bottom-nav button{font-size:12px;min-height:44px}.bottom-wrap{bottom:max(10px,env(safe-area-inset-bottom));width:calc(100% - 24px)}#toast{bottom:190px;font-size:12px}#panel{width:calc(100vw - 28px)}#panel-top{height:60px;padding:10px 18px}#panel-top img{width:167px;height:30px}#panel-body{padding:19px 20px 10px}#panel-title{font-size:25px;margin-bottom:14px}#panel-footer{padding:10px 20px 15px;gap:8px}.menu-row{min-height:60px;padding:11px 12px}.menu-row small{font-size:12px}.benefit-grid b{min-width:104px}.lead{font-size:16px}.task-copy{font-size:16px}.notice{padding:12px;font-size:14px}}
@media(max-height:700px) and (max-width:760px){#panel{max-height:calc(100dvh - 16px);border-radius:18px}#panel-top{height:52px;padding:8px 16px}#panel-top img{width:155px;height:28px}#panel-top .close,#panel-top .back{height:36px;min-height:36px}#panel-body{padding:14px 18px 8px}#panel-title{font-size:22px;margin:6px 0 12px}.eyebrow{font-size:10px}.lead{font-size:15px;line-height:1.45;margin-bottom:12px}.notice{padding:10px 12px;font-size:14px;line-height:1.45;margin:8px 0}#panel-footer{padding:9px 18px 12px;gap:7px}.primary,.secondary{min-height:43px;padding:10px 12px;font-size:13px}.text-button{min-height:30px;font-size:12px}.menu-row{min-height:54px;padding:9px 11px;margin:6px 0}.menu-row b{font-size:14px}.menu-row small{font-size:11px}.facts>div{padding:9px 0;font-size:13px}.case-meta{margin-top:12px;padding-top:10px}.client-brief p{font-size:14px}.intro-three{padding:13px;gap:12px}.intro-three b,.intro-three span{font-size:13px}.step-dots{margin-bottom:14px}.history-item p{font-size:13px;line-height:1.4}.tile{min-height:56px;font-size:13px}.hud{top:8px;padding:8px 4px 14px}.hud strong{font-size:20px}.day-controls{top:94px}.sync-status{top:137px}.map-tools{top:139px;display:grid;grid-template-columns:42px 42px}.context small{font-size:10px}.bottom-wrap{bottom:8px}#queue-tip{padding:6px 9px;margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
