@font-face{font-family:HillArabic;src:url("tajawal-arabic-400.woff2?v=7") format("woff2");font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC;}
@font-face{font-family:HillArabic;src:url("tajawal-latin-400.woff2?v=7") format("woff2");font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F;}
@font-face{font-family:HillArabic;src:url("tajawal-arabic-700.woff2?v=7") format("woff2");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC;}
@font-face{font-family:HillArabic;src:url("tajawal-latin-700.woff2?v=7") format("woff2");font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F;}
:root{color-scheme:dark;--ink:#102d32;--cream:#fff7df;--muted:#b4cdc8;--gold:#ffd16c;--green:#b6ef98;--line:#ffffff23;font-family:HillArabic,"Segoe UI",sans-serif;color:var(--cream);background:var(--ink)}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button:disabled{cursor:default;opacity:.45}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}#hill-game{position:fixed;inset:0;overflow:hidden}canvas{display:block;width:100%;height:100%}.overlay{position:absolute;inset:0;background:linear-gradient(100deg,#10292fe8,#112c309e 65%,#112c3070);overflow:auto;padding:max(22px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left))}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1280px;margin:auto}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--cream);font-weight:900;letter-spacing:3px;direction:ltr}.brand-mark{display:grid;place-items:center;background:var(--gold);color:var(--ink);height:42px;width:42px;border-radius:14px;font-size:26px;transform:rotate(-6deg)}.top-actions{display:flex;gap:9px;align-items:center}.pill,.icon-button{border:1px solid var(--line);border-radius:14px;background:#16383ac9;padding:11px 17px;font-weight:700}.icon-button{font-size:22px;min-width:46px;padding:7px 13px}.pill.active{background:var(--cream);color:var(--ink)}.campaign{max-width:1280px;margin:22px auto 0;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(500px,1.6fr);gap:36px;align-items:center;min-height:calc(100vh - 130px)}.eyebrow{color:var(--gold);font-size:12px;font-weight:800;letter-spacing:2px;display:flex;gap:12px;align-items:center}.eyebrow:before{content:"";width:30px;height:2px;background:var(--gold)}h1{font-size:clamp(32px,4.5vw,65px);line-height:1.25;letter-spacing:-2px;margin:20px 0}h1 em{font-style:normal;color:var(--green)}.intro p{color:#d1e0d7;line-height:1.85;font-size:15px;max-width:380px}.primary{background:var(--gold);color:var(--ink);border-radius:16px;padding:16px 24px;font-weight:900;font-size:16px;box-shadow:0 5px 0 #c18e3d;min-width:150px}.secondary{background:#ffffff12;border:1px solid var(--line);border-radius:15px;padding:14px 20px;font-weight:700}.intro .primary{margin-top:14px}.car-preview{height:150px;margin:18px 0 8px;position:relative;background:radial-gradient(ellipse at 50% 90%,#0006,transparent 65%)}.car-preview canvas{height:100%;width:100%}.storage-note{font-size:12px!important;color:var(--muted)!important}.world-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:18px}.world-header h2{margin:7px 0 0;font-size:24px}.world-header small{color:var(--muted)}.star-total{background:#102c2acc;border:1px solid #d5e5bb36;padding:12px 18px;border-radius:15px;direction:ltr;color:var(--gold);font-weight:800;white-space:nowrap}.level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.level-card{min-height:144px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(155deg,#37675bdb,#183c35e8);padding:15px;text-align:start;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:10px;transition:background .2s}.level-card:not(:disabled):hover{background:linear-gradient(155deg,#56866b,#21473b)}.level-card.current{border:2px solid var(--gold);background:linear-gradient(155deg,#638264ed,#2e5643f0)}.level-card:disabled{opacity:.65;background:#153235c7}.level-number{font-family:Georgia,serif;font-size:38px;font-weight:bold;color:#d6e9d1;line-height:1}.level-card.current .level-number{color:var(--gold)}.level-card .stars{color:var(--gold);font-size:16px;letter-spacing:3px;direction:ltr}.level-card strong{font-size:13px}.level-card .lock{position:absolute;inset-inline-end:15px;top:16px;font-size:13px;color:#adc7be}.next-world{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding:14px 17px;border-radius:16px;border:1px dashed #c8e1d64d;color:var(--muted);font-size:12px}.next-world strong{color:#e3d3ad}.panel-wrap{min-height:100%;display:grid;place-items:center;padding:24px 0}.panel{width:min(650px,100%);background:linear-gradient(145deg,#1d4645fa,#102d32fc);border:1px solid #ffffff30;border-radius:28px;padding:32px;box-shadow:0 20px 80px #001a2a55;text-align:center}.panel h2{font-size:32px;margin:15px 0}.panel p{color:#c9dbd2;line-height:1.8}.panel .actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}.result-stars{font-size:52px;color:var(--gold);letter-spacing:10px;direction:ltr}.result-details{display:flex;gap:12px;justify-content:center;margin:15px 0}.result-details span{border:1px solid var(--line);border-radius:14px;padding:12px 18px;font-size:13px}.reward-note{padding:15px;background:#b6ef9814;color:var(--green)!important;border-radius:14px}.vehicle-options{display:flex;gap:12px;margin:15px 0}.vehicle-options button{flex:1;padding:15px;border:1px solid var(--line);border-radius:15px;background:#ffffff0b}.vehicle-options .selected{border-color:var(--gold);color:var(--gold)}.upgrade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.upgrade-grid div{background:#ffffff09;padding:12px 8px;border-radius:13px}.upgrade-grid small{display:block;color:var(--muted);margin-bottom:7px}.upgrade-grid b{color:var(--green)}.choice{display:flex;justify-content:center;gap:16px;background:#ffffff08;border-radius:15px;padding:12px}.choice label{cursor:pointer}.choice input{accent-color:#ffd16c}.help-grid{display:grid;gap:12px;text-align:start}.help-grid p{background:#ffffff08;padding:12px;border-radius:12px;margin:0}.help-grid b{color:var(--gold)}#hill-hud{position:absolute;top:max(14px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));display:flex;align-items:center;gap:24px;border:1px solid #ffffff50;border-radius:18px;background:#163a36e8;padding:12px 18px;box-shadow:0 7px 22px #00302b20}.hud-name{display:flex;flex-direction:column;gap:5px;min-width:150px}.hud-name small{color:var(--green);font-size:10px;letter-spacing:1px}.hud-name strong{font-size:16px}.hud-fuel{min-width:100px;max-width:220px;flex:1;display:flex;align-items:center;gap:10px;font-size:12px;color:#d0e2ce}.hud-stats{margin-inline-start:auto;display:flex;align-items:center;gap:20px;color:var(--gold);font-weight:900;font-variant-numeric:tabular-nums;direction:ltr}progress{appearance:none;height:8px;border:0;border-radius:10px;overflow:hidden;width:100%;background:#0a2628}progress::-webkit-progress-bar{background:#0a2628}progress::-webkit-progress-value{background:var(--green);border-radius:10px}progress::-moz-progress-bar{background:var(--green)}#fuel.low::-webkit-progress-value{background:#ff946c}#distance{position:absolute;bottom:-1px;left:16px;right:16px;width:calc(100% - 32px);height:3px}#distance::-webkit-progress-value{background:var(--gold)}#hill-pedals{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right));display:flex;justify-content:space-between;direction:ltr;pointer-events:none}#hill-pedals button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;width:120px;height:85px;border-radius:22px;border:2px solid #fff9;box-shadow:0 5px 0 #102e3299;color:#102e32;font-weight:900;font-size:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}#brake{background:#fff3dce8}#gas{background:#c2f4a7ed}#hill-pedals small{font-size:10px;font-weight:500;letter-spacing:2px}#hill-pedals button.held{transform:translateY(4px);box-shadow:none;filter:brightness(.9)}#drive-tip{position:absolute;bottom:28px;left:180px;right:180px;text-align:center;color:#fff;background:#173e39c9;border:1px solid #ffffff33;border-radius:14px;padding:11px;font-size:12px;line-height:1.7;margin:0;pointer-events:none}#rotate{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:#102d32f5;padding:30px;text-align:center}#rotate p{color:var(--muted)}.rotate-icon{font-size:70px;color:var(--gold)}#hill-notice:empty{display:none}#hill-notice{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;background:#102d32f2;border:1px solid #ffd16c66;border-radius:12px;padding:12px 20px;margin:0;z-index:30;font-size:13px;text-align:center}
@media(max-width:1050px){.campaign{gap:22px;grid-template-columns:250px 1fr}.level-card{min-height:125px;padding:12px}.level-number{font-size:28px}.level-grid{gap:8px}.overlay{padding:18px}.car-preview{height:110px}h1{font-size:38px}.intro p{font-size:13px}}@media(max-height:600px) and (orientation:landscape){.topbar{max-height:40px}.brand-mark{height:34px;width:34px}.campaign{margin-top:12px;min-height:0;gap:22px;grid-template-columns:220px 1fr}.intro h1{font-size:32px;margin:8px 0}.intro p{font-size:11px;margin:8px 0}.intro .primary{font-size:13px;padding:12px 17px;margin-top:3px}.car-preview{height:75px;margin:6px 0}.level-card{min-height:100px;gap:6px;padding:9px;border-radius:14px}.level-card strong{font-size:11px}.level-number{font-size:25px}.level-card .stars{font-size:13px}.world-header{margin-bottom:10px}.world-header h2{font-size:19px;margin:3px 0}.next-world{margin-top:8px;padding:8px 12px}.eyebrow{font-size:10px}.panel{padding:20px;max-width:590px}.panel h2{font-size:23px;margin:6px 0}.panel p{font-size:12px}.result-stars{font-size:38px}.panel .actions{margin-top:12px}.panel .car-preview{height:90px}.upgrade-grid{margin-top:10px}.hud-name strong{font-size:13px}#hill-hud{padding:8px 12px;gap:12px;top:max(8px,env(safe-area-inset-top))}#hill-pedals button{height:67px;width:98px;font-size:16px}#hill-pedals{bottom:max(12px,env(safe-area-inset-bottom))}#drive-tip{bottom:14px;left:145px;right:145px;font-size:11px;padding:7px}.result-details{margin:8px 0}.reward-note{padding:8px}}@media(orientation:portrait){.campaign{display:flex;flex-direction:column;align-items:stretch}.intro{text-align:center}.eyebrow{justify-content:center}.intro p{margin:auto;max-width:480px}.car-preview{height:115px}.intro h1{font-size:40px;margin:14px}.level-card{min-height:120px}.level-grid{grid-template-columns:repeat(2,1fr)}.world-header{margin-top:16px}.brand{font-size:13px;letter-spacing:2px}.top-actions .pill{font-size:12px;padding:10px}.overlay{padding:18px}.next-world{margin-bottom:20px}.panel{padding:22px}.upgrade-grid{grid-template-columns:repeat(2,1fr)}}
/* Home, stage selection and the route briefing are separate screens. */
.topbar{flex-wrap:wrap}.top-actions{flex-wrap:wrap}.course-preview{width:100%;height:35px;color:#b6ef98;overflow:visible;direction:ltr}.level-card.locked{background:#153235db}.level-card.locked .course-preview{color:#b3cac1}.level-card.locked .level-number{color:#b3cac1}.level-card{gap:6px;min-height:165px}.level-card .stars{margin-top:auto}.landing{max-width:1220px;min-height:calc(100dvh - 120px);margin:auto;display:grid;grid-template-columns:1fr 1.2fr;gap:45px;align-items:center}.landing-copy h1{font-size:clamp(48px,6vw,84px);line-height:1.2}.landing-copy>p{max-width:410px;color:#d3e2d7;line-height:1.8}.landing-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.landing-facts{display:flex;gap:30px;margin-top:35px;color:var(--muted);font-size:13px}.landing-facts span{display:flex;align-items:baseline;gap:9px}.landing-facts b{font-size:26px;color:var(--gold)}.landing-car .car-preview{height:280px}.landing-car>p{text-align:center;font-size:14px;font-weight:bold}.landing-car>p span{color:var(--muted);font-weight:400}.briefing{min-height:calc(100dvh - 120px)}.briefing .panel{width:min(790px,100%)}.route-preview{padding:12px 20px;background:#0c272b99;border:1px solid var(--line);border-radius:18px;margin:20px 0}.route-legend{display:flex;justify-content:space-between;direction:ltr;font-size:11px;color:var(--muted);margin-bottom:10px}.course-preview.large{height:155px}.stage-goals{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;color:var(--gold);font-size:12px}.stage-goals span{padding:10px 14px;border-radius:11px;background:#ffffff09}#hud-slope{font-size:12px;color:var(--green);min-width:85px;text-align:center;direction:rtl}.hud-stats{gap:16px}
@media(max-height:600px) and (orientation:landscape){.topbar{gap:8px}.brand{font-size:12px;letter-spacing:1px}.top-actions{gap:5px}.top-actions .pill{font-size:11px;padding:8px 10px}.top-actions .icon-button{font-size:18px;min-width:34px;padding:3px 8px}.landing{min-height:calc(100dvh - 80px);gap:20px;grid-template-columns:1fr 1fr}.landing-copy h1{font-size:40px;margin:12px 0}.landing-copy>p{font-size:12px;margin:10px 0}.landing-actions{margin-top:14px;gap:8px}.landing-actions button{font-size:12px;padding:11px 14px;min-width:0}.landing-facts{margin-top:16px;gap:18px;font-size:11px}.landing-facts b{font-size:20px}.landing-car .car-preview{height:170px}.landing-car>p{font-size:11px}.level-card{min-height:112px;gap:4px}.level-card .course-preview{height:24px}.campaign{margin-top:18px}.briefing{padding:12px 0;min-height:0}.briefing .panel{padding:15px 22px}.briefing .panel h2{font-size:23px}.route-preview{margin:10px 0;padding:8px 15px}.course-preview.large{height:85px}.route-legend{margin-bottom:0}.briefing .panel p{margin:8px 0}.stage-goals{gap:6px;font-size:10px}.stage-goals span{padding:6px 9px}.briefing .actions{margin-top:12px}.briefing .actions button{padding:10px 20px;font-size:13px}.hud-fuel{max-width:130px}.hud-stats{gap:12px}#hud-slope{font-size:10px;min-width:68px}}
@media(orientation:portrait){.topbar{justify-content:center;gap:12px}.top-actions{justify-content:center;gap:5px}.top-actions .pill{padding:8px 9px;font-size:11px}.landing{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:5px;padding:25px 0}.landing-copy h1{font-size:48px;margin:14px 0}.landing-copy>p{font-size:14px}.landing-actions,.landing-facts{justify-content:center}.landing-facts{margin-top:20px}.landing-car{width:100%}.landing-car .car-preview{height:160px}.level-card{min-height:160px}.course-preview.large{height:125px}.briefing .panel{padding:22px 18px}}
/* A continuous journey, with accessible HTML stops over the illustrated road. */
.journey-campaign{grid-template-columns:minmax(230px,.7fr) minmax(0,1.7fr);gap:28px}.world-map{min-width:0}.journey-scroll{overflow-x:auto;padding:18px 0 6px}.journey-board{height:430px;min-width:490px;position:relative;border:1px solid #c3e5b931;border-radius:28px;background:radial-gradient(ellipse at 15% 70%,#5b967734,transparent 55%),linear-gradient(150deg,#2f5745c9,#173d39de);box-shadow:inset 0 0 60px #102d3244;direction:ltr}.journey-land{position:absolute;width:100%;height:100%;inset:0;pointer-events:none}.journey-road{fill:none;stroke:#aabda13d;stroke-width:11;stroke-dasharray:7 9;stroke-linecap:round}.journey-road.open{stroke:#edce81;stroke-dasharray:none;filter:drop-shadow(0 2px 2px #192f26)}.journey-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:122px;min-height:124px;border-radius:22px;background:linear-gradient(155deg,#436e55,#1d4139);border:1px solid #bbd9b855;box-shadow:0 5px 0 #112d2d77;display:flex;align-items:center;flex-direction:column;gap:7px;padding:11px 6px}.journey-node:active:not(:disabled){transform:translate(-50%,calc(-50% + 2px))}.journey-node:hover{border-color:var(--gold)}.route-number{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#132f32aa;font-size:23px;color:#e3eacb;font-family:Georgia,serif}.journey-node strong{font-size:12px}.journey-node .stars{font-size:16px;color:var(--gold);letter-spacing:2px}.journey-node.locked{background:linear-gradient(155deg,#29483fe8,#163735f5);color:#b0c6ba}.journey-node.locked .route-number{color:#92aaa0}.journey-node.locked .stars{color:#82998c}.journey-node.complete .route-number{background:#a8d28d;color:#193d30}.journey-node.current{border:2px solid var(--gold);background:linear-gradient(145deg,#668663,#335440)}.you-are-here{position:absolute;top:-26px;white-space:nowrap;color:var(--ink);background:var(--gold);border-radius:8px;font-size:10px;font-weight:bold;padding:5px 10px}.you-are-here:after{content:'';position:absolute;left:calc(50% - 4px);bottom:-4px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--gold)}.map-landmark{position:absolute;color:#bcd5b380;font-size:12px;letter-spacing:1px;pointer-events:none}.map-landmark.village{left:53%;top:43%}.map-landmark.river{left:27%;top:52%;color:#99d5d5aa}.map-landmark.hills{left:64%;top:51%}.unlock-teaser{margin-top:18px;padding:12px 14px;border:1px solid #c9e68d45;background:#173c35bc;border-radius:14px;width:100%;max-width:320px;text-align:start;color:#d4e6c5;font-size:12px;line-height:1.7}.unlock-teaser span{display:block;color:var(--gold);font-size:11px;margin-top:4px}.vehicle-options small{display:block;margin-top:7px;color:var(--muted);font-size:11px}.car-specs{display:flex;justify-content:center;gap:18px;margin:14px 0 24px}.car-specs span{font-size:12px;color:var(--muted)}.car-specs meter{display:block;width:145px;height:14px;margin-top:8px;accent-color:var(--green)}.garage-preview{height:185px!important}.unlock-progress{border:1px solid #ffd16c44;background:#ffffff06;border-radius:16px;padding:18px;text-align:start}.unlock-progress b{font-size:14px}.unlock-progress div{display:flex;justify-content:space-between;color:var(--gold);font-size:12px;margin:14px 0}.unlock-progress small{display:block;color:var(--muted);font-size:11px;margin-top:10px;line-height:1.6}.stage-features{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}.stage-features span{padding:5px 10px;background:#eeb36718;border:1px solid #eeb36732;border-radius:20px;font-size:11px;color:#f0d4a3}.ghost-choice{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;font-size:12px;cursor:pointer}.ghost-choice input{accent-color:var(--gold);width:17px;height:17px}.ghost-note{display:block;color:var(--muted);font-size:10px;margin-top:7px}
@media(max-width:1100px){.journey-node{width:104px;min-height:110px;padding:8px 4px}.journey-node strong{font-size:11px}.journey-campaign{gap:18px}.journey-board{height:390px}}
@media(max-height:600px) and (orientation:landscape){.journey-campaign{grid-template-columns:190px minmax(0,1fr);gap:18px;margin-top:17px}.journey-campaign .intro h1{font-size:29px}.journey-campaign .intro .car-preview{height:68px}.journey-campaign .intro>p:not(.storage-note){font-size:10px}.journey-campaign .storage-note{font-size:10px!important}.journey-board{height:275px;min-width:470px;border-radius:20px}.journey-scroll{padding-top:12px}.journey-node{width:92px;min-height:90px;gap:3px;border-radius:15px;padding:7px 3px}.route-number{width:29px;height:29px;font-size:19px}.journey-node strong{font-size:10px}.journey-node .stars{font-size:13px}.you-are-here{top:-21px;font-size:9px;padding:3px 8px}.unlock-teaser{margin-top:9px;padding:8px;font-size:10px}.unlock-teaser span{font-size:10px}.world-header{margin-bottom:0}.map-landmark{font-size:10px}.garage-preview{height:130px!important}.ghost-choice{margin-top:10px;font-size:11px}.ghost-note{font-size:9px}.stage-features span{font-size:10px;padding:3px 8px}}
@media(orientation:portrait){.journey-campaign .intro .car-preview{height:90px}.journey-campaign .intro h1{font-size:34px}.journey-campaign .intro{padding-bottom:8px}.unlock-teaser{margin:15px auto 0}.journey-board{min-width:490px;height:360px}.journey-node{width:95px}.journey-scroll{margin-inline:-8px}.garage-preview{height:155px!important}.car-specs{gap:10px}.car-specs meter{width:120px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#hill-balance{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;gap:10px;direction:ltr;pointer-events:auto}#hill-pedals #hill-balance button{width:68px;height:68px;border-radius:18px;background:#d8e8f1ed;font-size:28px;gap:2px}#hill-pedals #hill-balance small{font-size:9px;letter-spacing:0}#drive-tip{bottom:122px;padding:8px 12px}
@media(max-height:600px) and (orientation:landscape){#hill-pedals #hill-balance button{width:55px;height:55px;font-size:24px;border-radius:15px}#hill-balance{gap:8px}#drive-tip{bottom:91px;left:145px;right:145px;padding:6px;font-size:10px}.upgrade-grid b{font-size:12px}}
