/* Coast Run: responsive showroom and driving overlay. No remote font or image dependency. */
:root{--sbd-blue:#17666b;--sbd-blue-hi:#8edbd3;--sbd-gold:#f4cc88;--sbd-ink:#101f28;--sbd-glass:#122632ed}
*{box-sizing:border-box}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #f7d399;outline-offset:5px}button{color:inherit}body{background:#142b36;font-family:Arial,Helvetica,sans-serif}button,a{touch-action:manipulation}
.coast-nav{position:absolute;z-index:15;top:max(22px,env(safe-area-inset-top));left:32px;right:32px;display:flex;justify-content:space-between;pointer-events:auto;font-size:12px;font-weight:700;letter-spacing:.04em}.coast-nav a{color:#fff;text-decoration:none;padding:11px 16px;background:#0c252a99;border:1px solid #ffffff25;border-radius:30px;backdrop-filter:blur(12px)}
#sbdhd-title{display:block;background:linear-gradient(90deg,#071d25f5 0%,#0a242dc7 28%,#0b20280b 70%),linear-gradient(0deg,#091d29b0,transparent 35%);overflow:auto;padding:100px 5vw 30px;touch-action:pan-y}#sbdhd-title.hidden{display:none}.coast-heading{max-width:430px}.coast-heading h1{font-size:clamp(60px,6.6vw,104px);line-height:.95;letter-spacing:-6px;margin:14px 0 14px;font-weight:700}.coast-heading h1 em{font-family:Georgia,serif;font-weight:400;color:#f6d0a0}.coast-heading>p:last-child{color:#c8d6d9;font-size:16px;letter-spacing:.02em}.sbdhd-kicker{font-size:9px;letter-spacing:2.8px;color:#9ed9d1;font-weight:700}.coast-setup{width:386px;margin-top:28px}.coast-select-top{font-size:9px;letter-spacing:2px;color:#b8d0d2;display:flex;justify-content:space-between;border-top:1px solid #ffffff25;padding-top:17px}
#sbdhd-carsel{gap:10px;margin:12px 0 14px}#sbdhd-card{flex:1;width:auto;border:0;background:transparent;box-shadow:none;backdrop-filter:none;padding:0 4px;text-align:left}#sbdhd-carname{font-size:32px;letter-spacing:-.5px}#sbdhd-cartrim{font-size:10px;line-height:1.5;letter-spacing:.2px;color:#bdd0d1;font-weight:400;margin:5px 0 0;min-height:30px}.sbdhd-arrow{border:1px solid #ffffff30;background:#fff0;border-radius:50%;width:38px;height:38px;flex-shrink:0;padding:0;font-size:25px;color:white}#coast-car-tabs{display:flex;gap:5px}#coast-car-tabs button{flex:1;padding:8px 3px;border-radius:6px;border:1px solid #ffffff2a;background:transparent;font-size:10px;color:#bdcbce}#coast-car-tabs button[aria-pressed=true]{background:#d4f0e8;color:#123b3d;border-color:#d4f0e8;font-weight:700}.coast-paint{display:flex;align-items:center;justify-content:space-between;margin:18px 0 8px;gap:8px}.coast-paint>span{font-size:10px;color:#ccdadc}#coast-swatches{display:flex;gap:9px}#coast-swatches button{height:20px;width:20px;border:2px solid #ffffff60;border-radius:50%;padding:0}#coast-swatches button[aria-pressed=true]{outline:2px solid #edce9a;outline-offset:3px}.coast-model-note{font-size:9px;color:#90aaae;margin:10px 0 19px}.coast-modes{border:0;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.coast-modes legend{font-size:9px;letter-spacing:2px;color:#b8d0d2;margin-bottom:10px}.coast-modes label{display:flex;gap:8px;align-items:center;border:1px solid #ffffff25;border-radius:10px;padding:12px 9px;background:#142f38c0;cursor:pointer}.coast-modes label:has(input:checked){border-color:#95c9c4;background:#1d454ae6}.coast-modes input{accent-color:#9edbd0;width:12px;margin:0}.coast-modes b{font-size:11px;display:block}.coast-modes small{font-size:9px;display:block;color:#b1c7cb;line-height:1.5;margin-top:4px}.sbdhd-go{background:#f2d09b;color:#142e37;box-shadow:0 8px 25px #03131820;border-radius:9px;letter-spacing:1.5px;font-size:13px;font-weight:800;padding:16px 24px}#sbdhd-start{margin-top:16px;width:100%;display:flex;justify-content:space-between;align-items:center}#coast-start-status{font-size:10px;color:#bed0d2;text-align:center;margin:10px 0}.coast-help{font-size:11px;color:#c3d1d3;margin-top:16px;line-height:1.65}.coast-help summary{cursor:pointer;font-weight:600;color:#d5e2e1}.coast-help p{max-width:380px}.coast-scene-label{position:absolute;top:24%;left:55%;width:37%;display:flex;align-items:center;gap:8px;color:#fff;font-size:9px;letter-spacing:2px;text-shadow:0 1px 8px #0006}.coast-scene-label span:last-child{margin-left:auto}.coast-live-dot{width:5px;height:5px;background:#c0f6d4;border-radius:50%}.coast-location{position:absolute;bottom:50px;right:6%;display:flex;flex-direction:column;gap:7px;letter-spacing:2px;text-align:right;color:#eaf2ed}.coast-location span{font-size:9px;color:#c2d8da}.coast-location b{font-family:Georgia,serif;font-style:italic;font-size:21px;letter-spacing:.2px;font-weight:400}
#sbdhd-wrap:not(.sbdhd-driving)>.sbdhd-hud,#sbdhd-wrap:not(.sbdhd-driving)>#sbdhd-pops,#sbdhd-wrap:not(.sbdhd-driving)>.coast-tools{display:none}.sbdhd-driving .coast-nav{display:none}.coast-tools{position:absolute;z-index:9;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;gap:6px}.coast-tools button{padding:10px 13px;border-radius:20px;border:1px solid #ffffff55;background:#102b3cc7;color:white;font-size:11px;backdrop-filter:blur(10px)}#sbdhd-mobile-top{display:none}
#sbdhd-score,#sbdhd-time{background:#0c2534c9;border:1px solid #ffffff26;border-radius:12px;padding:12px 16px;min-width:112px;backdrop-filter:blur(8px)}#sbdhd-score .sc{font-size:28px}#sbdhd-score .lbl,#sbdhd-time .lbl{font-size:8px;letter-spacing:2px}#sbdhd-time .t{font-size:26px}#sbdhd-combo{top:100px;font-size:16px}#sbdhd-speed{background:#0a2034b8;border:1px solid #ffffff30;border-radius:14px;padding:14px 18px;min-width:100px;bottom:40px}#sbdhd-speed .v{font-size:48px}#sbdhd-speed .u{font-size:9px}#sbdhd-speed .gear{font-size:10px;color:#eaceaa}.coast-route{bottom:35px;left:50%;transform:translateX(-50%);width:270px;background:#0c2534c9;border:1px solid #ffffff26;border-radius:10px;padding:12px 14px;color:#fff;font-size:9px;letter-spacing:1px}.coast-route>div:first-child{display:flex;justify-content:space-between;gap:10px}.coast-route-track{margin-top:9px;height:3px;background:#ffffff30}.coast-route-track i{display:block;background:#eaca95;height:100%;width:0}.coast-route p{font-size:9px;letter-spacing:0;color:#cedce0;margin:8px 0 0}#sbdhd-fine{font-size:9px;color:#d1dce1b0;bottom:9px;letter-spacing:.3px}#sbdhd-toast{top:21%;font-size:24px;letter-spacing:2px}#sbdhd-toast .sub{font-size:10px;letter-spacing:1.4px}#sbdhd-pops{top:35%}.sbdhd-pop{font-size:20px}.sbdhd-screen:not(#sbdhd-title){background:#081e2be8;backdrop-filter:blur(16px)}.sbdhd-mobile-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.sbdhd-mobile-actions .sbdhd-go{margin-top:10px;font-size:11px;letter-spacing:1px;padding:12px 20px}.coast-secondary{background:#163a44;color:#d5e7e8}.sbdhd-keys{font-size:11px;letter-spacing:0}#sbdhd-pause .sbdhd-title{font-family:Georgia,serif;font-weight:400;font-size:42px;letter-spacing:-1px}#sbdhd-pause>p{color:#adc8d1;font-size:13px}#sbdhd-pause .sbdhd-keys{display:none}#sbdhd-results{padding-top:90px}#sbdhd-cta{background:#163a43;border-color:#ffffff30}#sbdhd-cta a{background:#e6c691;color:#17353c;font-size:11px;letter-spacing:1px;box-shadow:none;padding:14px 18px}#sbdhd-cta .msrp{font-size:12px;line-height:1.6}#sbdhd-best{color:#a1cdc7}#sbdhd-again{display:none}.driving-rankings{flex-shrink:0}
@media(max-height:800px) and (min-width:761px){#sbdhd-title{padding-top:86px}.coast-heading h1{font-size:70px}.coast-heading>p:last-child{font-size:13px}.coast-setup{margin-top:18px}.coast-model-note{margin-bottom:12px}.coast-paint{margin-top:12px}.coast-help{margin-top:10px}}
@media(max-width:760px){.coast-nav{left:16px;right:16px;top:max(12px,env(safe-area-inset-top));font-size:10px}.coast-nav a{padding:9px 12px}#sbdhd-title{padding:77px 20px 28px;background:linear-gradient(180deg,#102b3880 0%,#102b3800 35%,#071e2be6 51%,#071e2b 70%);overflow-y:auto}.coast-heading{max-width:none;pointer-events:none}.coast-heading h1{font-size:62px;letter-spacing:-3px;margin:12px 0 8px}.coast-heading>p:last-child{font-size:12px}.coast-heading .sbdhd-kicker{font-size:7px;letter-spacing:1.8px}.coast-scene-label{position:relative;top:auto;left:auto;width:100%;margin-top:14px;font-size:7px;letter-spacing:1.3px}.coast-setup{width:100%;margin-top:195px}.coast-select-top{padding-top:13px}.coast-location{display:none}#sbdhd-carsel{width:100%;gap:10px;margin:8px 0 10px}#sbdhd-card{padding:0 7px}#sbdhd-carname{font-size:26px}#sbdhd-cartrim{font-size:10px;margin-top:2px;min-height:0;line-height:1.4}#coast-car-tabs button{font-size:9px;padding:8px 3px}.coast-paint{margin-top:14px;margin-bottom:8px}.coast-model-note{margin:10px 0 12px;font-size:8px}.coast-modes label{padding:10px 8px}.coast-modes small{font-size:8px}.coast-modes b{font-size:10px}.coast-modes legend{font-size:8px;margin-bottom:7px}.coast-help{font-size:11px}.coast-tools{top:max(13px,env(safe-area-inset-top));gap:4px}.coast-tools button{font-size:9px;padding:9px 8px}#sbdhd-score,#sbdhd-time{padding:9px 10px;min-width:77px;top:max(12px,env(safe-area-inset-top))}#sbdhd-score{left:10px}#sbdhd-time{right:10px}#sbdhd-score .sc,#sbdhd-time .t{font-size:21px}#sbdhd-time .lbl,#sbdhd-score .lbl{font-size:7px;letter-spacing:1px}#sbdhd-combo{top:78px;font-size:13px;left:11px}#sbdhd-combo .bar{width:65px}#sbdhd-toast{top:23%;font-size:18px;letter-spacing:1px}#sbdhd-toast .sub{font-size:8px}#sbdhd-pops{top:33%}.sbdhd-pop{font-size:15px}.coast-route{bottom:136px;width:210px;padding:10px 12px;font-size:8px}.coast-route p{font-size:8px}#sbdhd-speed{bottom:228px;right:12px;padding:10px;min-width:68px;background:#0b2935b0}#sbdhd-speed .v{font-size:32px}#sbdhd-speed .gear{font-size:8px}#sbdhd-speed .u{font-size:8px}#sbdhd-drift{bottom:240px;left:12px;font-size:13px}#sbdhd-wheel{width:94px;height:94px;background:#0d2939da;border:2px solid #f1debd}#sbdhd-hb{width:42px;height:42px;font-size:8px}#sbdhd-gas{width:48px;height:75px;font-size:10px}#sbdhd-brake{width:63px;height:82px;font-size:10px}.sbdhd-touch{background:#0c2738dc;border-color:#ffffff55}#sbdhd-results{padding:77px 16px 30px}#sbdhd-grade{font-size:60px}#sbdhd-cta,#sbdhd-break{width:min(100%,400px)}#sbdhd-pause .sbdhd-title{font-size:31px}#sbdhd-fine{display:none}}
@media(max-width:760px) and (min-height:780px){.coast-setup{margin-top:225px}}
@media(max-height:500px) and (orientation:landscape){#sbdhd-title{padding:65px 22px 24px;background:linear-gradient(90deg,#0b232fee 0%,#0b232fd4 35%,transparent 80%)}.coast-heading{width:43%}.coast-heading h1{font-size:44px;margin:8px 0;letter-spacing:-2px}.coast-heading>p:last-child{font-size:11px}.coast-heading .sbdhd-kicker{font-size:7px}.coast-setup{width:43%;margin-top:20px}.coast-scene-label{position:absolute;left:53%;width:42%;top:24%;margin:0}.coast-select-top{padding-top:12px}#sbdhd-carsel{margin:7px 0}.coast-location{display:none}.coast-help{margin-top:10px}.coast-nav{top:10px;left:20px;right:20px}#coast-car-tabs button{font-size:8px}.coast-modes{grid-template-columns:1fr}.coast-paint{flex-wrap:wrap}.coast-model-note{line-height:1.4}.coast-route{bottom:12px;width:210px;padding:8px 12px}.coast-route p{display:none}#sbdhd-speed{bottom:110px;right:20px}#sbdhd-drift{bottom:110px}.coast-tools{top:10px}#sbdhd-toast{top:24%;font-size:18px}#sbdhd-combo{top:83px}#sbdhd-mobile{display:block}#sbdhd-results{padding-top:65px}.coast-setup #sbdhd-start{position:fixed;right:23px;bottom:20px;width:40%;z-index:5;box-shadow:0 8px 30px #0007}.coast-setup #coast-start-status{display:none}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.001s!important;transition:none!important}}

#sbdhd-wrap:not(.sbdhd-driving) #sbdhd-mobile{display:none}
#sbdhd-wrap:not(.sbdhd-driving){touch-action:pan-y}
@media(max-width:760px) and (orientation:portrait){.coast-heading h1{white-space:nowrap;font-size:clamp(47px,15.8vw,62px)}}
@media(max-width:760px) and (max-height:720px) and (orientation:portrait){#sbdhd-title{padding-top:65px;padding-bottom:90px}.coast-heading h1{font-size:47px}.coast-heading>p:last-child{font-size:11px}.coast-scene-label{margin-top:12px}.coast-setup{margin-top:180px}.coast-setup #sbdhd-start{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:20px;width:calc(100% - 40px);z-index:4;box-shadow:0 0 0 9px #0b2532,0 -10px 35px 15px #0b2532}.coast-setup #coast-start-status{display:none}}
@media(max-width:760px) and (max-height:720px) and (orientation:portrait){.coast-setup{background:#0b2532ed;padding:12px;border-radius:12px;border:1px solid #ffffff18}.coast-paint{flex-wrap:wrap;gap:12px}.coast-select-top{border-top:0;padding-top:0}}
