:root{--purple:#6551d9;--ink:#29235f;--deep:#3b2f94;--cream:#fff8e8;--mint:#5ed6b0;--gold:#ffc93c;--coral:#ff7a6b;font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,-apple-system,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{height:100dvh;background:#cfe8d2;touch-action:none;user-select:none;-webkit-user-select:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0;min-width:44px;min-height:44px;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #dbaa32;outline-offset:2px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#view{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none;image-rendering:auto}#vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#29235f05,transparent 35%,transparent 80%,#29235f07)}
#hud{position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));display:grid;grid-template-columns:1fr auto;gap:7px 12px;pointer-events:none}.world-badge{display:flex;align-items:center;gap:8px;min-width:0}.world-badge>span{width:43px;height:45px;display:grid;place-items:center;flex-shrink:0;background:var(--purple);color:white;border-radius:12px;font-size:21px;font-weight:950}.world-badge>div{background:#fff8e8ec;padding:6px 11px;border-radius:10px;min-width:0}.world-badge small{display:block;font-size:8px;font-weight:850;letter-spacing:1.3px;white-space:nowrap}.world-badge strong{display:block;font-size:17px;line-height:1.35;white-space:nowrap}.hud-actions{display:flex;gap:6px;pointer-events:auto}.icon-btn{height:45px;width:45px;border-radius:12px;background:#fff8e8ec;border:1px solid #29235f12;display:grid;place-items:center;position:relative;box-shadow:0 3px 0 #29235f10}#newFact{width:8px;height:8px;border-radius:50%;background:var(--coral);position:absolute;top:5px;right:5px}#mission{display:flex;align-items:center;gap:7px;padding:6px 10px;background:#fff8e8e8;border-radius:9px;width:fit-content;font-size:12px;font-weight:800;min-width:0;max-width:100%}#mission i{width:6px;height:6px;background:var(--purple);border-radius:50%;flex-shrink:0}#objective{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.counters{display:flex;align-items:center;gap:13px;padding:5px 11px;background:#fff8e8e8;border-radius:9px;font-size:12px;white-space:nowrap}.counters span{display:flex;align-items:center;gap:4px}.counters b{font-size:14px}.counters small{font-size:10px;opacity:.6}
#banner{position:absolute;top:107px;left:12px;right:12px;margin:auto;max-width:480px;padding:9px 13px;border:1px solid #fff8e8;border-radius:12px;background:#fff8e8eb;display:grid;grid-template-columns:auto 1fr;gap:1px 9px;pointer-events:none;z-index:7;box-shadow:0 4px 16px #29235f0b}#bannerIcon{grid-row:1/3;align-self:center;font-size:23px}#bannerTitle{font-size:13px}#bannerText{font-size:12px;line-height:1.4;margin:0}#banner p:empty{display:none}#context{position:absolute;left:12px;right:12px;bottom:157px;display:flex;justify-content:center;pointer-events:none}#context span{max-width:380px;background:#fff8e8ee;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:800;text-align:center}
#movePad,#actionControls,#tiltPill{display:none}#movePad{position:absolute;left:max(12px,env(safe-area-inset-left));bottom:max(25px,env(safe-area-inset-bottom));width:106px;height:106px;border:2px solid #fff8e8bb;border-radius:50%;background:#fff8e850;box-shadow:inset 0 0 0 10px #fff8e829;place-items:center;touch-action:none}.pad-axis{width:65px;height:65px;border:1px dashed #29235f28;border-radius:50%}#stick{position:absolute;width:43px;height:43px;border-radius:50%;background:#6551d9ce;border:3px solid #fff8e8c0;pointer-events:none}#movePad>span{position:absolute;bottom:-17px;font-size:8px;letter-spacing:2px;font-weight:850}#actionControls{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(25px,env(safe-area-inset-bottom));gap:9px;align-items:flex-end}.action{width:57px;height:57px;border-radius:18px;border:2px solid #fff8e8e8;background:#fff8e8df;box-shadow:0 4px 0 #29235f15;flex-direction:column;align-items:center;justify-content:center;gap:1px}.action span{font-size:26px;line-height:1}.action b{font-size:8px;letter-spacing:1.4px}.action.jump{width:68px;height:68px;background:var(--purple);border-color:var(--purple);color:white}.action.use:not(:disabled){background:var(--gold)}.touch-mode #movePad{display:grid}.touch-mode #actionControls{display:flex}.touch-mode .action{display:flex}.touch-mode #keyboardHint{display:none}.touch-mode.tilt-mode #tiltPill:not([hidden]){display:flex}#tiltPill{position:absolute;bottom:146px;left:12px;align-items:center;gap:6px;background:#fff8e8dd;border-radius:10px;padding-left:9px;font-size:10px}#tiltPill button{background:transparent;font-size:11px;font-weight:800}.tilt-mode #movePad{opacity:.6;transform:scale(.86);transform-origin:bottom left}.tilt-mode #context{bottom:203px}#compass{position:absolute;left:50%;transform:translateX(-50%);bottom:52px;width:88px;height:110px;border:3px solid #fff8e8e8;border-radius:15px;background:#fff8e8d9;pointer-events:none;box-shadow:0 3px 14px #29235f14}#keyboardHint{position:absolute;left:50%;transform:translateX(-50%);bottom:15px;padding:7px 12px;border-radius:9px;background:#fff8e8c9;font-size:10px;font-weight:800;white-space:nowrap}.touch-mode #compass{bottom:22px;width:76px;height:95px}
#overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px;z-index:20;background:linear-gradient(115deg,#fff8e815,#fff8e869)}.panel{width:min(820px,100%);height:min(620px,calc(100dvh - 24px));padding:23px;display:flex;flex-direction:column;gap:11px;background:#fff8e8f7;border:2px solid #fff;border-radius:23px;box-shadow:0 12px 60px #29235f16;overflow:hidden}.panel.home{height:auto;max-height:calc(100dvh - 24px);max-width:820px;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:25px;padding:34px}.eyebrow{font-size:9px;font-weight:900;letter-spacing:1.9px;margin:0 0 12px;display:flex;align-items:center;gap:8px}.eyebrow:before{content:'';display:inline-block;width:17px;height:17px;background:var(--purple);border-radius:5px;clip-path:polygon(0 0,40% 17%,60% 17%,100% 0,100% 80%,80% 100%,20% 100%,0 80%)}h1{font-size:57px;line-height:1.01;letter-spacing:-2px;margin:10px 0 13px;font-weight:950}h1 em{font-style:normal;color:var(--purple)}.panel p{margin:0;font-size:13px;line-height:1.5;color:var(--ink)}.panel .tagline{font-size:10px;font-weight:900;letter-spacing:.65px;margin-bottom:10px}.intro{max-width:340px}.tag-pills{display:flex;flex-wrap:wrap;gap:5px;margin-top:15px}.tag-pills span{padding:6px 8px;background:#6551d90b;border-radius:7px;font-size:9px;font-weight:800}.primary,.secondary{min-height:46px;border-radius:11px;padding:9px 12px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:850;width:100%;line-height:1.2}.primary{background:var(--purple);color:white;box-shadow:0 3px 0 var(--deep)}.secondary{background:#6551d90a;border:1px solid #6551d927}.hero-actions{display:flex;flex-direction:column;gap:10px}.row{display:flex;gap:8px}.row>*{flex:1;min-width:0}.footnote{font-size:10px!important;line-height:1.4!important;opacity:.72}.panel-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;min-height:47px}.panel-top .eyebrow{font-size:8px;margin:0 0 4px;letter-spacing:1.5px}.panel h2{margin:0;font-size:28px;line-height:1.07;letter-spacing:-.7px}.close-btn{width:44px;height:44px;flex-shrink:0;border-radius:11px;background:#6551d90b;font-size:23px}.sub{font-size:12px!important;line-height:1.35!important;flex-shrink:0}.panel-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}.panel-footer{flex-shrink:0;display:flex;gap:8px;align-items:center}.panel-footer>*{flex:1;min-width:0}.panel-footer .minor{max-width:42%;background:transparent;text-decoration:underline;font-size:11px}.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;flex:1;min-height:0}.world-card{min-width:0;display:flex;flex-direction:column;text-align:left;padding:0;border:1px solid #29235f15;border-radius:13px;background:white;overflow:hidden;position:relative}.world-card.active{border:2px solid var(--purple)}.world-card:disabled{opacity:.65}.world-card .swatch{flex:1;min-height:25px;max-height:100px;background:var(--sky);position:relative;overflow:hidden}.world-card .swatch:before{content:'';position:absolute;inset:18% -5% -15%;background:var(--land);clip-path:polygon(0 30%,15% 5%,31% 25%,48% 0,65% 36%,83% 8%,100% 36%,100% 100%,0 100%)}.world-card .swatch:after{content:attr(data-icon);position:absolute;right:12px;top:4px;font-size:36px;color:var(--ink)}.world-card .number{position:absolute;top:7px;left:7px;font-size:10px;font-weight:900;padding:2px 5px;border-radius:5px;background:#fff8e8e8}.card-name{display:block;font-size:13px;font-weight:900;line-height:1.2;padding:9px 9px 4px}.card-status{display:block;font-size:10px;line-height:1.25;padding:0 9px 10px;opacity:.75}.pause-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:center;flex:1}.summary{display:flex;gap:8px}.summary>div{flex:1;border-radius:11px;background:#6551d909;padding:10px;text-align:center}.summary b{display:block;font-size:23px;color:var(--purple)}.summary small{font-size:9px;font-weight:800;letter-spacing:.5px}.select-world{height:44px;min-height:44px;width:100%;border:1px solid #6551d925;border-radius:10px;background:#fffaf0;padding:0 10px;font-size:12px;font-weight:800;touch-action:manipulation}.journal-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:11px;flex:1;min-height:0}.fact-card{min-height:0;padding:13px;border-radius:12px;border:1px solid #29235f14;background:white;display:flex;flex-direction:column;gap:6px;justify-content:center}.fact-card small{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:1px;color:var(--deep)}.fact-card strong{font-size:15px;line-height:1.15}.fact-card p{font-size:12px;line-height:1.45}.fact-card.unfound{background:#6551d907;border-style:dashed}.pager{display:flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:44px}.pager button{background:#6551d90b;border-radius:10px;width:44px;height:44px;font-size:19px}.pager span{font-size:10px;font-weight:800;min-width:90px;text-align:center}.tabs{display:flex;gap:6px;flex-shrink:0}.tabs button{min-height:44px;flex:1;border-radius:10px;background:#6551d90b;font-size:12px;font-weight:800}.tabs button.chosen{background:var(--purple);color:white}.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;align-content:center;flex:1;min-height:0}.field{min-width:0}.field-label{font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:space-between;min-height:25px;margin-bottom:5px}.segmented{display:flex;gap:5px}.segmented button{flex:1;min-width:44px;min-height:44px;border-radius:10px;background:#6551d90b;font-size:11px;font-weight:800;padding:6px}.segmented button.chosen{background:var(--purple);color:white}input[type=range]{width:100%;height:44px;accent-color:var(--purple);margin:0;touch-action:pan-x}.toggle-row{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:800}.toggle{position:relative;width:52px;height:44px;background:transparent}.toggle:before{content:'';position:absolute;inset:8px 0;border-radius:20px;background:#dfdbd0}.toggle:after{content:'';position:absolute;width:20px;height:20px;top:12px;left:4px;background:white;border-radius:50%}.toggle.on:before{background:var(--purple)}.toggle.on:after{left:28px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:1;min-height:0}.help-card{padding:16px;border-radius:13px;background:#6551d909;display:flex;flex-direction:column;justify-content:center;gap:8px}.help-card h3{font-size:16px;margin:0;line-height:1.2}.help-card p{font-size:13px;line-height:1.5}.map-wrap{flex:1;min-height:0;display:flex;justify-content:center;background:#e2e9d8;border-radius:12px;overflow:hidden}.map-wrap canvas{width:100%;height:100%;object-fit:contain}.legend{font-size:9px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.legend span{white-space:nowrap}.goal-stamp{width:63px;height:63px;display:grid;place-items:center;font-size:32px;background:var(--gold);border-radius:18px;flex-shrink:0}.complete-copy{display:flex;align-items:center;gap:17px}.progress-dots{display:flex;gap:5px;margin:9px 0}.progress-dots i{height:6px;width:22px;background:#6551d91c;border-radius:3px}.progress-dots i.done{background:var(--purple)}.confirm-copy{margin:auto 0!important;max-width:480px;align-self:center}.error-note{background:#ff7a6b17;padding:10px;border-radius:10px;font-size:11px!important}#boot{position:absolute;inset:0;background:var(--cream);z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--purple);font-size:13px}#boot>div{font-size:55px}.no-js{position:fixed;inset:30% 12px auto;background:var(--cream);padding:20px;border-radius:18px;z-index:50}
@media(max-width:700px){#hud{left:9px;right:9px;gap:6px}.world-badge{gap:5px}.world-badge>span{width:35px;height:43px;font-size:18px}.world-badge small{font-size:6px;letter-spacing:.8px}.world-badge strong{font-size:13px}.world-badge>div{padding:6px 8px;max-width:190px}.hud-actions{gap:4px}.icon-btn{width:44px;height:44px;border-radius:10px}#mission{font-size:11px;padding:5px 9px;grid-column:1/-1}.counters{grid-row:3;grid-column:1/-1;width:fit-content;padding:4px 9px;gap:13px;font-size:11px}.counters b{font-size:12px}.counters small{font-size:9px}#banner{top:135px;max-width:430px;left:9px;right:9px;padding:8px 11px}#bannerTitle{font-size:12px}#bannerText{font-size:11px}.panel{padding:17px;gap:9px;border-radius:19px}.panel.home{padding:23px;grid-template-columns:1fr;gap:20px;max-width:450px}h1{font-size:44px}.panel h2{font-size:25px}.panel-top{min-height:44px}.sub{font-size:11px!important}.primary,.secondary{font-size:12px;min-height:44px;padding:8px}.world-grid{gap:8px;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr))}.card-name{font-size:12px;padding:7px 8px 3px}.card-status{font-size:9px;padding:0 8px 7px}.world-card .swatch{max-height:65px}.journal-grid{grid-template-rows:1fr 1fr;grid-template-columns:1fr}.fact-card{padding:12px;gap:5px}.fact-card strong{font-size:14px}.fact-card p{font-size:12px}.help-grid{grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:9px}.help-card{padding:13px}.help-card h3{font-size:14px}.help-card p{font-size:12px}.settings-fields{grid-template-columns:1fr;gap:11px;align-content:center}.settings-fields .field-label{font-size:11px;margin-bottom:3px}.summary>div{padding:9px}.summary b{font-size:21px}.complete-copy{gap:11px}.goal-stamp{width:54px;height:54px;font-size:28px}}
@media(max-width:430px){.hud-actions #journalBtn{display:none}.world-badge>div{max-width:180px}.world-badge strong{font-size:12px}.world-badge small{font-size:6px}.panel.home{padding:19px;gap:16px}.panel.home h1{font-size:39px}.eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:9px}.panel .intro{font-size:12px;line-height:1.45}.tagline{font-size:9px!important}.tag-pills{margin-top:11px}.tag-pills span{font-size:8px;padding:5px 6px}.hero-actions{gap:8px}.footnote{font-size:9px!important}.panel{padding:15px;gap:8px}.panel h2{font-size:23px}.panel-top .eyebrow{font-size:7px}.world-card .swatch{max-height:42px}.world-card .swatch:after{font-size:26px}.card-name{font-size:11px}.card-status{font-size:8px}.help-card p{font-size:11px;line-height:1.5}.fact-card{padding:10px}.fact-card p{font-size:11px;line-height:1.5}.fact-card strong{font-size:13px}#movePad{width:96px;height:96px;left:10px;bottom:24px}.pad-axis{width:60px;height:60px}#stick{width:39px;height:39px}.action{width:51px;height:51px}.action.jump{width:63px;height:63px}#actionControls{right:10px;gap:8px}.action span{font-size:24px}.touch-mode #compass{width:66px;height:82px;bottom:21px}#context{bottom:143px}#context span{font-size:11px;padding:7px 10px}.tilt-mode #context{bottom:196px}#tiltPill{bottom:139px}}
@media(max-width:360px){.touch-mode #compass{left:46%;width:60px;height:75px}.panel.home h1{font-size:35px}.panel.home{padding:17px;gap:13px}.panel.home .intro{font-size:11px}.hero-actions .footnote{font-size:8px!important}.tag-pills{margin-top:9px}.world-badge>div{max-width:160px}.world-grid{gap:7px}.card-name{font-size:10px}.summary b{font-size:19px}}
@media(orientation:landscape) and (max-height:540px){
 #hud{left:8px;right:8px;top:7px;grid-template-columns:auto 1fr auto;gap:0 9px;align-items:center;height:44px}.world-badge>span{width:31px;height:39px;font-size:16px;border-radius:9px}.world-badge>div{padding:4px 7px;max-width:157px}.world-badge small{font-size:5px;letter-spacing:.5px}.world-badge strong{font-size:11px}.hud-actions{grid-column:3;grid-row:1;height:44px}.hud-actions #journalBtn{display:none}#mission{grid-column:2;grid-row:1;font-size:10px;min-height:29px;padding:5px 8px;max-width:100%;margin-bottom:13px}.counters{grid-row:1;grid-column:2;background:transparent;align-self:end;justify-self:start;padding:0 8px 0;font-size:8px;gap:9px;height:14px;line-height:14px}.counters b{font-size:9px}.counters small{font-size:7px}#banner{top:56px;max-width:500px;left:18%;right:18%;min-height:27px;padding:5px 9px;display:flex;gap:7px;align-items:center;border-radius:9px}#bannerIcon{font-size:16px}#bannerTitle{font-size:10px;flex-shrink:0}#bannerText{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}#banner.fact #bannerTitle{display:none}#banner.fact #bannerText{white-space:normal;max-height:30px}#context{bottom:99px;left:120px;right:154px}#context span{font-size:10px;padding:6px 10px}.tilt-mode #context{bottom:150px}#movePad{width:83px;height:83px;left:11px;bottom:17px}#movePad>span{font-size:7px;bottom:-13px}.pad-axis{width:50px;height:50px}#stick{width:34px;height:34px}#actionControls{right:12px;bottom:17px}.action{width:48px;height:48px;border-radius:16px}.action.jump{width:57px;height:57px}.action span{font-size:22px}.touch-mode #compass{width:59px;height:73px;bottom:15px;left:50%}#tiltPill{left:10px;bottom:110px;font-size:9px}#keyboardHint{display:none}
 #overlay{padding:9px}.panel{height:calc(100dvh - 18px);padding:12px 17px;gap:6px;border-radius:17px;max-width:850px}.panel.home{grid-template-columns:1fr 1fr;max-width:760px;padding:17px 22px;gap:22px;height:auto;max-height:calc(100dvh - 18px)}.panel.home h1{font-size:38px;line-height:1;margin:7px 0 9px}.panel.home .eyebrow{font-size:7px;margin-bottom:6px}.panel.home .tagline{font-size:8px!important;margin-bottom:8px}.panel.home .intro{font-size:11px;line-height:1.4}.tag-pills{margin-top:10px}.tag-pills span{font-size:8px;padding:5px 6px}.hero-actions{gap:7px}.hero-actions .footnote{font-size:8px!important}.primary,.secondary{min-height:44px;font-size:11px;padding:7px 9px}.panel-top{min-height:42px;height:42px}.panel-top .eyebrow{font-size:6px;margin:0 0 2px;letter-spacing:1px}.panel h2{font-size:22px;line-height:1.1}.sub{font-size:10px!important;line-height:1.25!important}.panel-body{gap:6px}.panel-footer{gap:7px}.world-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}.world-card .swatch{max-height:30px;min-height:12px}.world-card .swatch:after{font-size:20px;top:1px}.world-card .number{top:3px;left:4px;font-size:8px}.card-name{font-size:10px;padding:4px 7px 2px}.card-status{font-size:8px;padding:0 7px 5px}.select-world{height:44px;min-height:44px;font-size:11px}.journal-grid{grid-template-columns:1fr 1fr;grid-template-rows:1fr;gap:7px}.fact-card{padding:8px;gap:4px}.fact-card small{font-size:7px}.fact-card strong{font-size:11px}.fact-card p{font-size:10px;line-height:1.35}.pager{gap:6px;height:44px}.pager span{font-size:9px}.pager button{font-size:16px}.tabs button{font-size:10px}.settings-fields{grid-template-columns:1fr 1fr;gap:5px 18px;align-content:center}.field-label{font-size:10px!important;min-height:17px;margin-bottom:2px}.settings-fields .footnote{font-size:8px!important}.segmented button{font-size:10px;padding:5px}.toggle-row{font-size:11px}.help-grid{grid-template-columns:1fr 1fr;grid-template-rows:1fr;gap:9px}.help-card{padding:10px;gap:5px}.help-card h3{font-size:12px}.help-card p{font-size:10px;line-height:1.4}.pause-grid{gap:7px;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;align-content:center}.summary>div{padding:6px}.summary b{font-size:18px}.summary small{font-size:8px}.goal-stamp{width:44px;height:44px;font-size:23px;border-radius:13px}.complete-copy{gap:11px}.complete-copy p{font-size:11px}.progress-dots{margin:4px 0}.legend{font-size:8px;gap:8px}
}
@media(orientation:landscape) and (max-height:340px){.panel.home{padding:12px 17px;gap:18px}.panel.home h1{font-size:33px}.panel.home .intro{font-size:10px}.panel.home .tagline{font-size:7px!important}.tag-pills{margin-top:7px}.tag-pills span{padding:4px 5px;font-size:7px}.panel{padding:10px 13px;gap:5px}.panel h2{font-size:20px}.panel-top{height:40px;min-height:40px}.sub{font-size:9px!important}.fact-card p{font-size:9px}.help-card p{font-size:9px}.help-card h3{font-size:11px}.world-card .swatch{max-height:20px;min-height:8px}.card-name{font-size:9px}.card-status{font-size:7px}.world-grid{gap:5px}.summary b{font-size:16px}.summary small{font-size:7px}}
@media(orientation:landscape) and (max-height:540px){#banner{top:53px;padding:4px 8px;min-height:25px}#bannerIcon{font-size:15px;line-height:1}#bannerTitle{line-height:1.2}#bannerText{line-height:1.2}}
@media(orientation:landscape) and (max-height:340px){.fact-card p,.help-card p{font-size:10px}.fact-card strong,.help-card h3{font-size:12px}}

/* Edition 3: keep the route and the foreground under Whiz clear. */
#compass,.touch-mode #compass{left:auto;right:12px;transform:none;bottom:16px;width:78px;height:98px;background:#fff8e8ed}
.touch-mode #compass{top:120px;bottom:auto;right:10px;width:60px;height:76px}
.counters{background:#fff8e8f5;border:1px solid #29235f1c;color:#29235f;box-shadow:0 2px 8px #29235f12}
#gemSymbol{font-style:normal;color:#3b2f94}
#microToast{position:absolute;top:110px;left:12px;max-width:min(210px,calc(100% - 100px));height:28px;padding:6px 10px;border-radius:9px;background:#fff8e8f5;border:1px solid #29235f20;color:#29235f;font-size:11px;line-height:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;z-index:8}
@media(max-width:700px) and (orientation:portrait){#microToast{top:119px;left:9px}#banner{top:154px}}
@media(orientation:landscape) and (max-height:540px){
 .counters{background:#fff8e8f5;padding:1px 7px;height:17px;border-radius:5px;line-height:13px;align-self:end;margin-bottom:-2px}
 .touch-mode #compass{top:88px;right:10px;bottom:auto;left:auto;width:56px;height:70px;transform:none}
 #microToast{top:55px;left:10px;height:26px;padding:5px 8px;font-size:10px;max-width:190px}
}

.counters small{opacity:1;font-weight:700}
/* Context stays beside the HUD, leaving Whiz and the foreground open. */
#context,.tilt-mode #context{top:119px;bottom:auto;left:9px;right:auto;max-width:calc(100% - 90px);justify-content:flex-start}
#context span{min-width:0;max-width:100%;font-size:11px;line-height:15px;padding:7px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.touch-mode #banner{left:9px;right:84px}
#microToast:not([hidden])~#context{opacity:0}
@media(orientation:landscape) and (max-height:540px){
 #context,.tilt-mode #context{top:85px;bottom:auto;left:10px;right:auto;max-width:min(220px,calc(100% - 90px))}
 #context span{font-size:10px;line-height:13px;padding:6px 9px}
 .touch-mode #banner{left:18%;right:18%}
}
/* Owl Whiz site player: its floating Back button sits top-left (x 8-52px, y 64-108px). Keep the goal pill and counters clear of it. */
@media not all and (orientation:landscape) and (max-height:540px){#mission{margin-left:48px;max-width:calc(100% - 48px)}}
@media (max-width:700px) and (orientation:portrait){.counters{margin-left:48px}}
