:root{font-family:Inter,"Microsoft YaHei",Arial,sans-serif;color:#222723;background:#c9cdca;color-scheme:light;--accent:#c9ee65;--ink:#19201b;--glass:#fafcf8e8}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #527634;outline-offset:4px}button{transition:background .18s,border-color .18s,transform .18s}button:disabled{cursor:wait;opacity:.4}header{height:76px;position:fixed;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;padding:0 34px;gap:32px;pointer-events:none}.logo{font-size:27px;font-weight:900;letter-spacing:-1.8px;color:#172018;text-decoration:none;pointer-events:auto}.logo span{color:#6d8b38}.header-mid{font-size:9px;letter-spacing:.22em;flex:1;color:#545e55}.header-mid b{color:#76835d}.outline{background:#fafcf8d9;backdrop-filter:blur(12px);border:1px solid #fff9;border-radius:8px;padding:12px 17px;color:#263225;font-size:11px;pointer-events:auto;box-shadow:0 4px 20px #1426190b}main{height:100dvh;min-height:660px;position:relative;overflow:hidden}.stage-wrap{position:absolute;inset:0}#stage{position:absolute;inset:0 0 174px;overflow:hidden}#viewport{position:absolute;inset:0;touch-action:none}canvas{display:block;width:100%;height:100%}.stage-top{position:absolute;top:86px;left:35px;right:35px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.1em;color:#5d655d;pointer-events:none}.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#5b842c;margin-right:4px}.stage-caption{position:absolute;left:35px;top:114px;pointer-events:none}.stage-caption small{font-size:9px;letter-spacing:.22em;color:#606a61}.stage-caption h2{font-size:27px;font-weight:500;letter-spacing:-.06em;line-height:1.2;margin:9px 0}.stage-caption h2 br{display:none}.stage-caption h2 i{font-style:normal;font-weight:700;margin-left:8px}.stage-bottom{position:absolute;bottom:23px;left:35px;right:35px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#535c54;pointer-events:none}.stage-bottom div{display:flex;gap:5px;pointer-events:auto}.stage-bottom button{padding:10px 16px;border:1px solid #ffffffb3;border-radius:24px;background:#f6f8f3d9;backdrop-filter:blur(15px);font-size:11px;color:#384236}.stage-bottom button.active{color:#f7faed;background:#242e25;border-color:#242e25}.wheel-focus .stage-caption{opacity:0}.wheel-bar{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);width:min(710px,calc(100% - 190px));height:139px;background:#f8faf5e8;border:1px solid #ffffffb3;border-radius:16px;box-shadow:0 10px 40px #22332612;backdrop-filter:blur(22px);padding:13px 22px 10px}.bar-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.bar-heading small{display:none}.bar-heading h3{font-weight:500;font-size:10px;letter-spacing:.15em;margin:0 0 9px}.bar-heading>span{font-size:9px;color:#788075;margin-bottom:9px}.wheels{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.wheel{display:flex;align-items:center;gap:9px;padding:5px 8px 5px 3px;border:1px solid transparent;border-radius:10px;background:transparent;color:#384334;text-align:left;height:88px}.wheel:hover{background:#e3e8dc}.wheel.active{background:#e7eddf;border-color:#859673}.wheel img{height:73px;width:73px;object-fit:contain}.wheel strong{display:block;font-size:10px;white-space:nowrap}.wheel small{display:block;font-size:8px;color:#7a8473;margin-top:6px}.disclaimer{position:absolute;bottom:10px;left:30px;right:30px;text-align:center;font-size:8px;color:#687263;line-height:1.5}.disclaimer button{border:0;background:transparent;color:#425536;font-size:9px}.rail{position:absolute;left:30px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:5px;padding:7px;background:var(--glass);border:1px solid #fff9;border-radius:15px;box-shadow:0 8px 30px #17211612;z-index:4;backdrop-filter:blur(14px)}.rail button{border:0;border-radius:9px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:48px;height:51px;font-size:9px;color:#535e4c}.rail button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.3}.rail button.active{background:#263224;color:#f0f7df}.panel{position:absolute;left:100px;top:50%;transform:translateY(-50%);width:274px;max-height:calc(100dvh - 225px);overflow:auto;border-radius:16px;padding:23px;background:var(--glass);border:1px solid #fff9;backdrop-filter:blur(22px);box-shadow:0 12px 40px #15291515;z-index:4}.panel[hidden]{display:none}.panel-title{margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}.panel-title h1{font-size:15px;margin:0;font-weight:600}.close-panel{border:0;background:transparent;font-size:23px;color:#6b7569}.panel section[hidden]{display:none}.section-title{display:none}.vehicle{width:100%;text-align:left;border:1px solid #809768;background:#e9efdf;padding:14px 10px;color:#263724;font-size:12px;border-radius:8px}.vehicle span{float:right;font-size:10px;color:#728464}.note{font-size:10px;line-height:1.7;color:#788170;margin:14px 0 0}.swatches{display:flex;gap:12px;flex-wrap:wrap;padding:5px 2px}.swatches button{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#ffffff55,transparent 50%,#0003),var(--color);border:3px solid #f5f7f1;box-shadow:0 0 0 1px #a3aca0}.swatches button.active{box-shadow:0 0 0 2px #526b3b}.selected-label{font-size:12px;margin:18px 0 5px}.sizes{display:flex;gap:6px}.sizes button{flex:1;padding:12px 0;background:#f1f4eb;border:1px solid #d5ddca;border-radius:6px;font-size:11px;color:#48593a}.sizes button.active{background:#273922;color:#f6f9f0;border-color:#273922}.panel-actions{position:fixed;right:33px;bottom:75px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:10px}.primary{border:0;background:#253420;color:#f4f8eb;padding:13px 20px;border-radius:24px;font-size:11px;font-weight:600;box-shadow:0 5px 20px #24341e18}.primary span{margin-left:22px}.text-btn{border:0;background:transparent;color:#56694a;font-size:10px;padding:8px 4px}#error{position:absolute;left:25%;right:25%;top:35%;background:#fff4ed;border:1px solid #b86542;border-radius:12px;padding:25px;color:#7d3720;font-size:14px;z-index:5}.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#c9cdca;z-index:3;transition:opacity .5s;pointer-events:none}.loading[hidden]{display:none}.loading strong{font-size:30px;letter-spacing:-1px}.loading p{font-size:11px;letter-spacing:.1em;color:#55624f}.loading progress{width:180px;height:3px;accent-color:#5c743f}.live-config{position:absolute;right:35px;top:114px;font-size:10px;text-align:right;color:#5c6854;line-height:1.8;pointer-events:none}.live-config strong{display:block;color:#263623;font-size:17px;font-weight:500}.quality{margin-top:20px;padding-top:15px;border-top:1px solid #d8dfd1;display:flex;align-items:center;gap:8px;font-size:10px;color:#5d6b55}.quality select{padding:6px;border:1px solid #b9c4ae;background:#f5f8ef;border-radius:5px;color:#374b2b;font:inherit}dialog{background:#f7f9f2;color:#24331d;border:1px solid #dbe4cf;border-radius:18px;max-width:540px;width:90vw;padding:30px;box-shadow:0 20px 100px #1a281e40}dialog::backdrop{background:#13201570;backdrop-filter:blur(8px)}.close{float:right;background:none;border:0;font-size:24px;color:#596c49}dialog small{font-size:9px;letter-spacing:.2em;color:#6e855a}dialog h2{font-size:22px}dialog p{font-size:12px;line-height:1.8;color:#65735b}dialog a{color:#405e2a}dialog label{display:block;font-size:11px;margin:12px 0}dialog input,dialog textarea{display:block;width:100%;margin-top:6px;background:#fff;border:1px solid #cbd5c0;border-radius:6px;color:#253b1c;padding:10px;font:inherit}#summary{font-size:11px;background:#e8efde;border-radius:8px;padding:12px;line-height:1.8}#toast{position:fixed;bottom:190px;left:50%;transform:translateX(-50%);background:#263421;color:#eff6e4;padding:12px 20px;border-radius:25px;display:none;font-size:12px;z-index:20}.diagnostics{position:absolute;top:190px;right:20px;background:#fff9;font-size:10px;padding:10px;white-space:pre;pointer-events:none;z-index:9}
@media(max-width:1050px){.panel-actions{right:22px;bottom:188px}.wheel-bar{width:min(680px,calc(100% - 44px))}.wheel img{width:60px;height:68px}.stage-top>span:last-child{display:none}.stage-bottom>span{display:none}.stage-bottom{justify-content:flex-end}.rail{left:20px}.panel{left:88px}}
@media(max-width:600px){header{height:62px;padding:0 18px;gap:15px}.logo{font-size:23px}.header-mid{font-size:7px;letter-spacing:.1em}.outline{padding:10px;font-size:10px}main{min-height:640px}#stage{bottom:225px}.stage-top{top:73px;left:18px;right:18px;font-size:8px}.stage-caption{top:96px;left:18px}.stage-caption small{font-size:7px}.stage-caption h2{font-size:19px}.live-config{right:18px;top:115px;font-size:8px}.live-config strong{font-size:12px}.rail{top:auto;bottom:174px;left:50%;transform:translateX(-50%);flex-direction:row;padding:3px;border-radius:12px;gap:3px}.rail button{width:55px;height:42px;font-size:8px;gap:2px}.rail button svg{width:17px;height:17px}.panel{top:auto;bottom:226px;left:18px;right:18px;width:auto;transform:none;padding:18px;max-height:300px}.panel-title{margin-bottom:15px}.panel-title h1{font-size:13px}.wheel-bar{bottom:42px;left:14px;right:14px;transform:none;width:auto;height:122px;padding:12px 11px 6px;border-radius:13px}.bar-heading h3{font-size:9px;letter-spacing:.06em}.bar-heading>span{font-size:7px;max-width:145px}.wheels{gap:4px}.wheel{display:flex;flex-direction:column;gap:0;height:81px;padding:0 3px 3px;justify-content:center;text-align:center}.wheel img{width:60px;height:58px}.wheel strong{font-size:8px}.wheel small{display:none}.stage-bottom{bottom:49px;left:15px;right:15px;justify-content:center}.stage-bottom div{gap:4px}.stage-bottom button{padding:8px 10px;font-size:9px}.panel-actions{right:18px;bottom:236px;left:18px;flex-direction:row;justify-content:center;gap:13px}.primary{font-size:10px;padding:10px 17px}.primary span{margin-left:13px}.text-btn{font-size:9px}.disclaimer{bottom:8px;left:16px;right:16px;font-size:7px;line-height:1.5}.disclaimer button{font-size:8px}.swatches button{width:31px;height:31px}#error{left:20px;right:20px;top:35%;font-size:12px}.quality{margin-top:12px;padding-top:10px}#toast{bottom:235px;width:max-content;max-width:90vw;font-size:10px}.stage-caption h2 i{margin-left:5px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.wheels{grid-template-columns:repeat(4,minmax(0,1fr))}.wheel{min-width:0}
@media(max-width:600px){.header-mid{max-width:90px}.stage-caption h2{font-size:19px}.wheel img{max-width:100%}.stage-top{letter-spacing:0}.live-config{top:150px}.stage-caption{top:99px}}
.panel{z-index:6}
.wheel-focus .live-config{background:#f4f7efd9;border:1px solid #fff8;padding:9px 12px;border-radius:10px;backdrop-filter:blur(10px)}.wheel-focus .stage-top{visibility:hidden}@media(max-width:600px){.wheel-focus .live-config{top:69px;font-size:8px}.wheel-focus .live-config strong{font-size:11px}}

.vehicle{background:#f7f8f4;border-color:#d9dfd2}.vehicle.selected{background:#e9efdf;border-color:#809768}

.drive-control{position:absolute;right:30px;bottom:76px;width:210px;padding:12px 14px;border-radius:14px;background:rgba(248,250,245,.9);color:#253128;box-shadow:0 5px 24px #0001;font-size:12px}.drive-control>div:first-child{display:flex;justify-content:space-between;align-items:center}.drive-control strong{font-size:12px}.drive-control span{font-weight:600}.drive-input{display:flex;align-items:center;gap:8px;margin:8px 0}.drive-input button{border:0;border-radius:20px;background:#243528;color:white;padding:7px 10px;white-space:nowrap;cursor:pointer}.drive-input button:disabled{opacity:.45;cursor:default}.drive-input input{width:100%;min-width:0;accent-color:#344d38}.drive-control small{font-size:10px;color:#637067}@media(max-width:700px){.drive-control{right:12px;bottom:75px;width:180px;padding:9px 10px}.drive-control small{font-size:9px}}

.finish-label{font-size:12px;margin:18px 0 12px;font-weight:600}.finish-options{display:flex;flex-wrap:wrap;gap:7px}.finish-options button{border:1px solid #b9c1b5;background:#fff9;border-radius:9px;padding:10px 14px;cursor:pointer;color:#344032}.finish-options button.active{background:#263a2a;color:white;border-color:#263a2a}.panel .controls{max-height:calc(100dvh - 220px);overflow:auto}.live-config{max-width:260px;line-height:1.6}

.stage-bottom div{flex-wrap:wrap;justify-content:flex-end}@media(max-width:600px){.stage-bottom div{justify-content:center}.stage-bottom button{padding:7px 8px}.drive-control{bottom:125px}}

.corner-picker[hidden]{display:none}.corner-picker{position:absolute;top:92px;left:110px;z-index:2;width:190px;padding:12px;border-radius:14px;background:#f8faf5ed;border:1px solid #fff9;box-shadow:0 8px 30px #17211618;color:#29352b}.corner-title{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-bottom:8px}.corner-title span{font-size:9px;color:#788575}.corner-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.corner-grid button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:4px;border-radius:9px;border:1px solid #dce3d8;background:#ffffff8c;color:#485747;font-size:11px}.corner-grid button.active{background:#dce8d5;border-color:#6d865f;color:#1f3524}.corner-grid svg{width:22px;height:32px}.corner-grid .body{fill:#edf1ea;stroke:#718270;stroke-width:1}.corner-grid .seam{fill:none;stroke:#718270;stroke-width:.7}.corner-grid .nose,.corner-grid .tire{fill:#87958a}.corner-grid .selected-wheel{fill:#73a04a;stroke:#fff;stroke-width:.8}.corner-modes{display:flex;gap:5px;margin-top:8px}.corner-modes button{flex:1;padding:7px 3px;border-radius:8px;border:1px solid #cbd5c7;background:#fff9;color:#536151;font-size:10px}.corner-modes button.active{background:#293b2d;border-color:#293b2d;color:white}.corner-picker small{display:block;margin-top:7px;font-size:9px;color:#788575}@media(max-width:600px){.corner-picker{top:68px;left:12px;width:162px;padding:8px}.corner-grid button{min-height:41px;font-size:10px}.corner-grid svg{width:19px;height:27px}.corner-picker small{font-size:8px}.stage-bottom div{max-width:100%}}

@media(min-width:601px){.corner-picker{top:190px}}
@media(max-width:600px){.corner-focus .stage-caption,.corner-focus .stage-top{opacity:0}}

.view-controls{position:absolute;right:30px;bottom:23px;z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:calc(100% - 120px);pointer-events:none}
.controls-upper{display:flex;align-items:flex-end;gap:8px;pointer-events:auto}
.view-controls .corner-picker,.view-controls .drive-control,.view-controls .stage-bottom{position:static;transform:none;pointer-events:auto}
.view-controls .corner-picker{width:190px}
.view-controls .drive-control{width:210px}
.view-controls .stage-bottom{display:block;max-width:100%}
.view-controls .stage-bottom div{justify-content:flex-end}
@media(max-width:600px){.view-controls{right:10px;bottom:10px;max-width:calc(100% - 20px);gap:5px}.controls-upper{gap:5px;align-items:flex-end}.view-controls .corner-picker{width:152px;padding:7px}.view-controls .corner-grid button{min-height:34px;gap:4px}.view-controls .corner-grid svg{width:17px;height:23px}.view-controls .corner-title{margin-bottom:4px}.view-controls .corner-modes{margin-top:4px}.view-controls .corner-picker small{margin-top:3px}.view-controls .drive-control{width:150px;padding:8px}.view-controls .stage-bottom div{justify-content:flex-end;gap:3px}.view-controls .stage-bottom button{padding:6px 8px}}

/* Illustrated view selector */
.view-controls{width:min(470px,calc(100% - 120px));gap:7px}.controls-upper{display:contents}.view-controls .corner-picker{width:250px;order:1;padding:12px;background:#fafbf9f2;border-radius:16px}.view-controls .drive-control{order:2;width:100%;padding:12px 15px;background:#fafbf9ed}.view-controls .stage-bottom{order:3;width:100%}.corner-title{font-size:13px;margin-bottom:9px}.corner-title strong{display:flex;align-items:center;gap:7px}.corner-title strong .title-car{width:23px;height:20px;fill:none;stroke:#193022;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.corner-grid,.corner-modes{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.corner-modes{margin-top:5px}.corner-grid button,.corner-modes button{min-height:72px;padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;background:#fff9;border:1px solid #e1e6e0;border-radius:9px;font-size:11px;color:#23332a}.corner-grid button.active,.corner-modes button.active{background:#e9f1e6;border-color:#8dab86;color:#1f3524}.corner-grid .view-illustration,.corner-modes .view-illustration{width:83px;height:49px}.corner-picker small{margin-top:5px}.drive-input{margin:7px 0}.drive-input button{width:32px;height:32px;flex:0 0 32px;border-radius:50%;padding:0;font-size:0}.drive-input button::before{content:'▶';font-size:14px;color:white;margin-left:2px}.drive-input button[aria-pressed="true"]::before{content:'Ⅱ';margin-left:0}.stage-bottom button{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.stage-bottom button svg{width:19px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#compare::before{content:'⟳';font-size:17px;line-height:1}#reset{font-size:17px;line-height:1;padding:7px 12px}
@media(max-width:600px){.view-controls{width:calc(100% - 20px);max-width:calc(100% - 20px);gap:4px}.view-controls .corner-picker{width:174px;padding:6px}.corner-title{font-size:10px;margin-bottom:3px}.corner-title strong .title-car{width:16px;height:14px}.corner-grid,.corner-modes{gap:3px}.corner-modes{margin-top:3px}.corner-grid button,.corner-modes button{min-height:42px;font-size:9px}.corner-grid .view-illustration,.corner-modes .view-illustration{width:57px;height:29px}.view-controls .drive-control{width:100%;padding:6px 9px}.drive-input{margin:2px 0}.drive-input button{width:25px;height:25px;flex-basis:25px}.drive-control small{display:none}.view-controls .stage-bottom button{padding:5px 7px;font-size:9px}.stage-bottom button svg{width:15px;height:13px}#reset{font-size:14px}}

@media(min-width:601px){.view-controls{width:min(500px,calc(100% - 120px))}.view-controls .corner-picker{padding:9px}.corner-title{margin-bottom:5px}.corner-grid button,.corner-modes button{min-height:59px}.corner-grid .view-illustration,.corner-modes .view-illustration{height:38px;width:73px}.view-controls .drive-control{padding:8px 12px}.drive-input{margin:3px 0}.view-controls .stage-bottom button{padding:8px 11px}.view-controls #reset{padding:6px 10px}}

@media(min-width:601px) and (max-height:820px){.live-config{top:65px}.stage-top>span:last-child{display:none}}

/* Named color chips remain readable on touch screens. */
.swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:2px}.swatches button{width:auto;height:auto;min-width:0;min-height:51px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;border-radius:8px;border:1px solid transparent;box-shadow:none;background:transparent;color:#435044;font-size:9px;white-space:nowrap}.swatches button:hover{background:#e8eee3}.swatches button.active{background:#e1ebda;border-color:#8ba47e;box-shadow:none}.swatch-dot{display:block;width:25px;height:25px;flex:none;border-radius:50%;background:linear-gradient(135deg,#ffffff66,transparent 52%,#0004),var(--color);border:2px solid #fff;box-shadow:0 0 0 1px #b7c1b4}.swatches button.active .swatch-dot{box-shadow:0 0 0 2px #526b3b}@media(max-width:600px){.swatches button{width:auto;height:auto;min-height:47px}.swatch-dot{width:22px;height:22px}}

/* The supplied maydro lockup is used throughout the interface. */
.logo{display:inline-flex;align-items:center;line-height:0;flex:0 0 auto}.logo img{display:block;width:145px;height:auto;filter:brightness(0) saturate(100%) opacity(.9)}.loading-logo{display:block;width:min(220px,58vw);height:auto;filter:brightness(0) saturate(100%) opacity(.88)}@media(max-width:600px){.logo img{width:112px}.loading-logo{width:min(190px,55vw)}}

/* A dedicated area below the mobile canvas prevents controls covering the car. */
@media(max-width:600px){
 main{height:1060px;min-height:100dvh;overflow:visible}
 #stage{height:760px;bottom:auto}
 #viewport{bottom:300px}
 .header-mid{display:none}header{justify-content:space-between;background:#d5d8d8e8}
 .view-controls{bottom:8px;right:10px;width:calc(100% - 20px)}
 .view-controls .stage-bottom div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .view-controls .stage-bottom button{font-size:10px;min-height:32px}
 .rail{top:775px;bottom:auto}
 .wheel-bar{top:834px;bottom:auto}
 .panel-actions{position:absolute;top:973px;bottom:auto}
 .panel{top:180px;bottom:auto;max-height:420px}
 .live-config{top:135px}
 .diagnostics{top:160px;right:10px}
}
