/* Continuous driving: keep the road clear; detailed text belongs to the review. */
.drive-heading-actions{display:flex;gap:8px}.drive-heading>h1{margin:0}.drive-tools button{width:36px;min-height:36px;height:36px;padding:0;border-radius:50%;font-size:15px}.drive-target{padding:11px 14px;max-width:310px;min-height:0}.drive-target p{display:none}.drive-target-icon{width:28px;height:29px;font-size:21px;background:transparent}.drive-target small{font-size:8px;margin-bottom:4px}.drive-target strong{font-size:12px}.drive-run-status{top:94px;font-size:9px;padding:8px 11px;gap:15px}.drive-run-status b{font-size:11px}.drive-hint{left:20px;right:auto;top:140px;bottom:auto;transform:none;max-width:260px;width:max-content;padding:8px 12px;text-align:left;font-size:11px;line-height:1.4;border-radius:10px;box-shadow:none;background:#234957ed}.drive-map{width:146px;height:159px;padding:6px;right:18px;top:68px;bottom:auto;border-radius:15px}.drive-map canvas{width:132px;height:132px}.drive-map-label{font-size:8px}.drive-onboarding{position:absolute;z-index:5;left:50%;bottom:28px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);display:flex;gap:17px;align-items:center;padding:12px 15px;border-radius:16px}.drive-onboarding p{margin:0;font-size:11px;max-width:230px;line-height:1.5}.drive-onboarding .primary{min-height:38px;padding:9px 18px;white-space:nowrap;font-size:12px}.drive-pause-strip{position:absolute;z-index:8;left:50%;top:20px;transform:translateX(-50%);display:flex;gap:18px;align-items:center;padding:7px 9px 7px 17px;border-radius:999px;font-size:12px}.drive-pause-strip button{min-height:32px;padding:7px 15px;font-size:11px}.drive-help-panel{position:absolute;z-index:9;right:18px;top:65px;width:min(300px,calc(100% - 36px));padding:20px;border-radius:18px;font-size:11px;line-height:1.65}.drive-help-panel h2{font-size:19px;margin:0 0 10px}.drive-help-panel p{margin:0 0 10px}.drive-help-panel>#drive-help-close{position:absolute;right:6px;top:6px;min-height:30px;width:30px;padding:0;background:transparent;border:0;font-size:22px}.drive-help-panel p:last-child{margin-bottom:0}.drive-list{z-index:12}.drive-review{max-width:860px;margin:35px auto 65px;padding:0 20px}.drive-review-heading>p:first-child{font-size:12px;color:#64808e;margin:0 0 14px}.drive-review h1{font-size:clamp(30px,5vw,46px);letter-spacing:-.055em;margin:0 0 17px;line-height:1.1}.drive-review-heading>p:last-child{font-size:13px;line-height:1.7;max-width:66ch;color:#537083}.drive-review-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:28px 0 36px;border-top:1px solid #bbced7;border-bottom:1px solid #bbced7;padding:21px 0;gap:15px}.drive-review-stats span{display:block;font-size:11px;color:#69838f}.drive-review-stats b{display:block;font-size:25px;font-weight:500;letter-spacing:-.04em;margin-top:10px;color:#234859}.drive-journal h2{font-size:21px;margin-bottom:17px;letter-spacing:-.035em}.drive-journal-entry{border-top:1px solid #c2d3db;padding:20px 0 23px}.drive-journal-meta{display:flex;gap:14px;font-size:10px;color:#a55d47;align-items:center}.drive-journal-meta time{font-variant-numeric:tabular-nums;color:#718895}.drive-journal-entry h3{font-size:20px;letter-spacing:-.025em;margin:10px 0 5px}.drive-journal-entry p{font-size:13px;color:#496b7d;line-height:1.75;max-width:67ch;margin:10px 0}.drive-journal-entry .drive-journal-place{font-size:10px;color:#7a909a;margin:0 0 10px}.drive-journal-entry a{font-size:11px;color:#1e7298}.drive-journal-empty{padding:20px 0}.drive-journal-empty p{font-size:13px;color:#607e8c;line-height:1.7}.drive-review>.primary{margin-top:22px;min-width:190px}.drive-review-note{font-size:10px;color:#788f9c;max-width:67ch;line-height:1.7;margin:19px 0 0}#view-drive.is-review .drive-heading{display:none}body[data-view=drive]:has(.drive-review:not([hidden])){overflow:auto}
@media(pointer:coarse),(max-width:700px){.drive-target{top:12px;left:12px;max-width:calc(100% - 136px);padding:9px 11px}.drive-target-icon{display:none}.drive-target small{font-size:8px}.drive-target strong{font-size:11px}.drive-tools{top:12px;right:12px;gap:5px}.drive-tools button{min-height:32px;height:32px;width:32px;padding:0;font-size:14px}.drive-run-status{left:12px;top:77px;padding:7px 10px;font-size:8px;gap:13px}.drive-run-status b{font-size:10px}.drive-map{top:56px;right:12px;width:98px;height:107px;padding:4px;border-radius:12px}.drive-map canvas{width:88px;height:88px}.drive-map-label{font-size:6px}.drive-hint{top:118px;left:12px;right:auto;bottom:auto;max-width:calc(100% - 126px);font-size:9px;padding:7px 9px;transform:none}.drive-onboarding{left:12px;right:12px;bottom:156px;transform:none;width:auto;max-width:none;padding:12px;gap:12px}.drive-onboarding p{max-width:170px;font-size:10px}.drive-onboarding .primary{font-size:11px;padding:8px 15px;min-height:36px}.drive-pause-strip{top:174px;left:12px;transform:none;padding:6px 7px 6px 13px;font-size:11px}.drive-help-panel{top:55px;right:12px;max-height:calc(100% - 70px);overflow:auto;width:calc(100% - 24px);font-size:11px}.drive-heading-actions{gap:6px}body[data-view=drive] .drive-progress-button{font-size:10px;padding:8px 11px;min-height:34px}.drive-review{padding:0 10px;margin-top:25px}.drive-review-stats{gap:8px;padding:17px 0;margin:23px 0 28px}.drive-review-stats b{font-size:21px}.drive-review-stats span{font-size:9px}.drive-journal-entry{padding:18px 0}.drive-journal-entry h3{font-size:19px}.drive-journal-entry p{font-size:12px}.drive-review-heading>p:last-child{font-size:12px}}
@media(max-width:360px){body[data-view=drive] .drive-heading h1{font-size:21px}body[data-view=drive] .drive-progress-button{font-size:9px;padding:7px 9px}.drive-target{max-width:calc(100% - 128px);padding:8px}.drive-target strong{font-size:10px}.drive-map{width:88px;height:96px}.drive-map canvas{width:78px;height:78px}.drive-onboarding{bottom:126px;padding:10px;gap:7px}.drive-onboarding p{font-size:9px}.drive-onboarding .primary{font-size:10px;padding:7px 13px}}
@media(max-height:650px) and (max-width:700px){.drive-onboarding{bottom:119px}.drive-pause-strip{top:140px}.drive-hint{top:109px;font-size:8px}}
@media(max-height:520px) and (orientation:landscape){.drive-target{top:10px;left:12px;max-width:210px}.drive-run-status{top:76px;left:12px}.drive-hint{top:110px;left:12px}.drive-map{display:none}.drive-onboarding{left:50%;right:auto;bottom:15px;width:max-content;transform:translateX(-50%);max-width:calc(100% - 300px);padding:10px}.drive-onboarding p{font-size:10px}.drive-pause-strip{left:50%;top:14px;transform:translateX(-50%)}.drive-help-panel{top:15px;right:120px;max-height:calc(100% - 30px)}.drive-review{max-width:700px;margin-top:20px}}
/* Account for the stage border and bottom gutter on compact screens. */
@media(min-width:851px){body[data-view=drive] .drive-stage{height:calc(100dvh - 142px)}}
@media(max-width:420px){body[data-view=drive] .drive-stage{height:calc(100dvh - 160px)}}
.drive-speed{position:relative}#drive-speed-limit{position:absolute;right:-9px;top:-7px;width:30px;height:30px;border:3px solid #b84645;border-radius:50%;display:grid;place-items:center;background:#fff;color:#253f4b;font-size:12px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
@media(pointer:coarse),(max-width:700px){#drive-speed-limit{width:27px;height:27px;font-size:10px;right:-9px;top:-8px}}
/* Give driving the viewport. Site navigation returns when leaving or reviewing. */
body[data-view=drive]:has(#view-drive.is-playing)>.header{display:none}body[data-view=drive]:has(#view-drive.is-playing) main{padding:6px 8px 8px}#view-drive.is-playing .drive-heading{height:36px;margin:0 2px 6px;display:flex}#view-drive.is-playing .drive-heading h1{display:none}.drive-exit{min-height:32px;padding:7px 11px;border:0;background:transparent;font-size:11px;color:#52768a}body[data-view=drive] #view-drive.is-playing .drive-stage{height:calc(100dvh - 56px);min-height:240px}body[data-view=drive] #view-drive.is-playing .drive-progress-button{min-height:32px;padding:7px 12px;font-size:10px}


.drive-tools button{width:auto;min-height:36px;padding:0 12px;border-radius:12px;font-size:12px}
.drive-pause-strip{padding:9px 14px}
#view-drive:not(.is-playing) :is(#drive-pause,#drive-reset,#drive-finish){display:none}
.drive-stage:has(#drive-help-panel:not([hidden])) :is(.drive-tools,.drive-pause-strip){visibility:hidden}
@media(pointer:coarse),(max-width:700px){
  .drive-tools button{height:34px;min-height:34px;padding:0 9px;font-size:11px}
  #drive-stage .drive-target{max-width:calc(100% - 182px)}
}
