
    .moving-text { --drive-plum:#724568; font-family:Arial,sans-serif; color:#382b37; }
    .moving-text * { box-sizing:border-box; }
    .moving-text .lesson-block { position:relative; background:#faf6fa; border:1px solid #dfcfde; border-radius:22px; overflow:hidden; }
    .moving-text .lesson-copy { padding:32px 34px 20px; position:relative; z-index:1; }
    .moving-text [contenteditable] { cursor:text; overflow-wrap:anywhere; white-space:pre-wrap; }
    .moving-text .mt-heading { font:700 clamp(26px,5vw,35px)/1.15 Georgia,serif; margin:0 0 15px; color:#593550; }
    .moving-text .lesson-copy p:last-child { font-size:17px; line-height:1.65; margin:0; max-width:540px; }
    .moving-text .road-stage { position:relative; height:140px; margin:0 22px 0; }
    .moving-text .road { position:absolute; height:21px; bottom:13px; left:-22px; right:-22px; background:#e9dce7; border-top:2px solid #dbc9d9; }
    .moving-text .road:after { content:""; position:absolute; left:0; right:0; top:8px; height:2px; background:repeating-linear-gradient(90deg,#b899b1 0 20px,transparent 20px 45px); }
    .moving-text .vehicle { position:absolute; bottom:24px; left:0; width:152px; height:94px; will-change:transform; }
    .moving-text .car-art { position:relative; width:100%; height:100%; }
    .moving-text .shell { position:absolute; top:0; left:0; width:152px; height:94px; transform-origin:100px 65px; }
    .moving-text .cabin { position:absolute; inset:0; transform-origin:76px 49px; }
    .moving-text .roof { position:absolute; left:16px; top:4px; width:104px; height:67px; background:var(--drive-plum); border:3px solid #493345; border-radius:40px 52px 18px 15px; box-shadow:inset 2px 5px #ffffff22; }
    .moving-text .window { position:absolute; top:14px; height:35px; background:#d6e8ee; border:2px solid #493345; }
    .moving-text .rear-window { left:26px; width:30px; border-radius:25px 5px 5px 5px; }
    .moving-text .front-window { left:57px; top:11px; height:38px; width:51px; border-radius:6px 31px 7px 5px; background:#d6e8ee; }
    .moving-text .car-body { position:absolute; top:45px; left:2px; width:148px; height:38px; background:var(--drive-plum); border:3px solid #493345; border-radius:19px 29px 19px 17px; box-shadow:inset 0 5px #ffffff25,inset 0 -6px #382b3726; }
    .moving-text .door { position:absolute; top:49px; left:60px; height:29px; width:43px; border-left:2px solid #49334580; border-right:2px solid #49334580; border-bottom:2px solid #49334580; border-radius:0 0 12px 10px; }
    .moving-text .handle { position:absolute; top:53px; left:69px; width:17px; height:9px; background:transparent; border-bottom:2.5px solid #fff8f3; border-radius:0 0 65% 65%; }
    .moving-text .mirror { position:absolute; left:101px; top:42px; width:13px; height:10px; border:2px solid #493345; border-radius:50%; background:var(--drive-plum); }
    .moving-text .lamp { position:absolute; top:53px; right:8px; width:13px; height:11px; background:#ffe6a8; border:1.5px solid #493345; border-radius:50%; transform:rotate(-15deg); box-shadow:inset 2px 2px #fff6db; }
    .moving-text .grille { display:none; }
    .moving-text .tail { position:absolute; top:53px; left:6px; width:6px; height:10px; background:#e36e78; border:1px solid #493345; border-radius:5px; }
    .moving-text .wheel { position:absolute; top:62px; width:32px; height:32px; border:6px solid #382e3a; border-radius:50%; background:conic-gradient(#e3dbe6 0 25%,#938097 25% 50%,#e3dbe6 50% 75%,#938097 75%); box-shadow:0 0 0 2px #f8edf5; }
    .moving-text .wheel:after { content:""; position:absolute; inset:7px; border-radius:50%; background:#54485a; }
    .moving-text .wheel-a { left:21px; } .moving-text .wheel-b { right:20px; }
    .moving-text .under { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 4px 0; }
    .moving-text .motion-status { font-size:13px; color:#735d70; }
    .moving-text button { font:500 14px Arial,sans-serif; color:#603b59; border:1px solid #d5bfd1; border-radius:9px; background:#faf6fa; padding:10px 15px; cursor:pointer; white-space:nowrap; min-height:44px; }
    .moving-text button:disabled { opacity:.65; cursor:default; }
    @media(max-width:440px) { .moving-text .lesson-copy { padding:26px 23px 12px; } .moving-text .lesson-copy p:last-child { font-size:16px; } .moving-text .under { gap:10px; } }


    .moving-text .mood-choices { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }
    .moving-text .mood-choices button[aria-pressed="true"] { color:#faf6fa; background:#724568; border-color:#724568; }
    .moving-text .car-eye { position:absolute; background:#fffdfa; border:1.5px solid #493345; border-radius:50%; overflow:hidden; }
    .moving-text .eye-left { left:1px; top:8px; width:21px; height:26px; }
    .moving-text .eye-right { left:21px; top:5px; width:23px; height:29px; }
    .moving-text .car-eye:before { content:""; position:absolute; right:1px; top:5px; width:10px; height:14px; background:#332c38; border-radius:50%; }
    .moving-text .car-eye:after { content:""; position:absolute; right:3px; top:7px; width:3px; height:4px; background:#fffdfa; border-radius:50%; }
    .moving-text .brows { position:absolute; left:57px; top:-4px; width:50px; height:12px; }
    .moving-text .brow { position:absolute; width:20px; height:4px; border-radius:60%; background:#493345; }
    .moving-text .brow-left { left:0; top:0; transform:rotate(-12deg); } .moving-text .brow-right { left:23px; top:7px; transform:rotate(12deg); }
    .moving-text .mood-happy .brow { height:7px; background:transparent; border-top:4px solid #493345; border-radius:70% 70% 0 0; }
    .moving-text .mood-sad .cabin { transform:scaleY(.82); }
    .moving-text .mood-sad .brow-left { transform:rotate(-28deg); }
    .moving-text .mood-sad .brow-right { transform:rotate(28deg); }
    .moving-text .mood-sad .handle { top:56px; border-bottom:0; border-top:2.5px solid #fff8f3; border-radius:65% 65% 0 0; }
    .moving-text .mood-mad .shell { transform:rotate(4deg) skewX(-3deg); }
    .moving-text .mood-mad .brow-left { top:-2px; transform:rotate(27deg); height:5px; }
    .moving-text .mood-mad .brow-right { top:1px; transform:rotate(-27deg); height:5px; }
    .moving-text .lid { display:none; }
    .moving-text .mood-mad .lid { display:block; position:absolute; z-index:2; left:-5px; top:-10px; width:33px; height:21px; background:var(--drive-plum); border-bottom:1.5px solid #493345; }
    .moving-text .mood-mad .eye-left .lid { transform:rotate(27deg); }
    .moving-text .mood-mad .eye-right .lid { transform:rotate(-27deg); }
    .moving-text .cheek { display:none; }
    .moving-text .mood-mad .cheek { display:block; position:absolute; top:46px; width:20px; height:13px; background:radial-gradient(ellipse,#efadc7aa 0%,#efadc755 35%,#efadc700 73%); border-radius:50%; }
    .moving-text .cheek-left { left:51px; } .moving-text .cheek-right { left:89px; }
    .moving-text .mood-mad .handle { top:54px; width:20px; height:9px; border:0; border-radius:0; background:#fff8f3; clip-path:polygon(0 0,25% 57%,50% 0,75% 57%,100% 0,100% 40%,75% 100%,50% 43%,25% 100%,0 40%); }
    .moving-text .mood-excited .brow { height:9px; background:transparent; border-top:4px solid #493345; border-radius:80% 80% 0 0; }
    .moving-text .mood-excited .brows { top:-6px; }
    .moving-text .mood-excited .brow-left { transform:rotate(-18deg); } .moving-text .mood-excited .brow-right { transform:rotate(18deg); }
    .moving-text .mood-excited .handle { top:52px; left:72px; width:12px; height:15px; border:2.5px solid #fff8f3; border-radius:50%; background:#4c3147; }


    .moving-text .beacon { display:none; position:absolute; left:57px; top:-11px; width:25px; height:17px; z-index:3; }
    .moving-text .beacon:after { content:""; position:absolute; bottom:0; left:-3px; width:31px; height:4px; border-radius:3px; background:#282a2c; }
    .moving-text .beacon-lamp { position:absolute; inset:0 1px 2px; border:2px solid #691c29; border-radius:10px 10px 3px 3px; background:linear-gradient(90deg,#bf293a,#fb5d62 50%,#d9273e); box-shadow:inset 3px 2px #ffacac80,0 0 5px #ff334466; }
    .moving-text .beacon-glow { position:absolute; left:-20px; top:-23px; width:65px; height:61px; border-radius:50%; background:radial-gradient(ellipse,#ff505588 0%,#ff334455 33%,#ff334400 73%); opacity:.22; }
    .moving-text.police-scene .beacon { display:block; }
    .moving-text.police-scene .brows { display:none; }
    .moving-text.police-scene .roof { background:#f5f5f3; border-color:#222426; box-shadow:inset 2px 5px #ffffff75; }
    .moving-text.police-scene .car-body { background:linear-gradient(90deg,#202225 0 34%,#f4f4f1 34% 70%,#202225 70%); border-color:#222426; box-shadow:inset 0 4px #ffffff22,inset 0 -5px #0000001c; }
    .moving-text.police-scene .window, .moving-text.police-scene .car-eye { border-color:#222426; }
    .moving-text.police-scene .door { border-color:#7f8082; }
    .moving-text.police-scene .mirror { background:#222426; border-color:#121315; }
    .moving-text.police-scene .wheel { border-color:#232528; background:conic-gradient(#dfe1e2 0 25%,#92969a 25% 50%,#dfe1e2 50% 75%,#92969a 75%); box-shadow:0 0 0 2px #eceeed; }
    .moving-text.police-scene .wheel:after { background:#555a60; }
    .moving-text.police-scene .handle { background:#242528; border-color:#fff; }


    .moving-text.night-scene .lesson-block { background:#696969; border-color:#777; color:#fff; }
    .moving-text.night-scene h2 { color:#fff; }
    .moving-text.night-scene .road { background:#101012; border-top-color:#171719; height:27px; bottom:7px; }
    .moving-text.night-scene .road:after { top:11px; height:3px; background:repeating-linear-gradient(90deg,#f5d365 0 22px,transparent 22px 46px); }
    .moving-text.night-scene .lamp { background:#fff2c3; border-color:#eee0aa; box-shadow:0 0 6px 2px #fff2c3a0; }
    .moving-text.night-scene .brow { background:#27242b; }
    .moving-text.night-scene .mood-happy .brow { background:transparent; border-top-color:#27242b; }
    .moving-text .headlight-beam { display:none; pointer-events:none; position:absolute; left:141px; top:40px; width:220px; height:63px; background:linear-gradient(90deg,#fff6ce9e 0%,#fff3bc55 32%,#fff3bc15 78%,#fff3bc00 100%); clip-path:polygon(0 23%,100% 0,100% 100%,0 40%); filter:blur(2px); }
    .moving-text .road-light { display:none; pointer-events:none; position:absolute; top:83px; left:155px; width:202px; height:23px; background:radial-gradient(ellipse at 15% 50%,#fff3bd65 0%,#fff3bd33 40%,#fff3bd00 73%); }
    .moving-text.night-scene .headlight-beam, .moving-text.night-scene .road-light { display:block; }

.family-moving-text,.family-car-note{container-type:inline-size}
.moving-text{--drive-plum:var(--driver-palette,var(--course-accent,#8b4f91))}
.moving-text .lesson-block{background:var(--driver-tint,var(--course-progress-tint,#eee0f0));border-color:var(--drive-plum);color:#2f2d32}
.moving-text .mt-heading,.moving-text .mt-heading *,.car-note .ct-heading,.car-note .ct-heading *{font-family:Georgia,'Times New Roman',serif!important;font-weight:700;line-height:1.15}
.moving-text .mt-heading{font-size:clamp(26px,4.7cqi,35px);color:#382b37!important}
.moving-text .mt-heading *{color:inherit!important}
.moving-text .mt-body,.moving-text .mt-body *,.car-note .ct-body,.car-note .ct-body *{font-family:Arial,Helvetica,sans-serif!important;line-height:1.6;color:inherit!important}
.moving-text .mt-body{font-size:1.0625em;max-width:620px;overflow-wrap:anywhere}
.moving-text .rich p{margin:0 0 .5em}.moving-text .rich p:last-child{margin-bottom:0;font-size:inherit;line-height:inherit}
.moving-text .night-scene{color:#fff}.moving-text.night-scene .lesson-block,.moving-text.night-scene .mt-heading{color:#fff!important}
.moving-text .motion-status{color:#625961;font:13px/1.4 Arial,sans-serif!important}
.moving-text .under button{font:14px/1.3 Arial,sans-serif!important;color:#382b37;background:#fbfaf7;border-color:#8a7b8d;min-width:110px}
.moving-text .under button:focus-visible{outline:3px solid var(--drive-plum);outline-offset:3px}
.moving-text .lesson-copy{overflow-wrap:anywhere}
@container(max-width:440px){.moving-text .lesson-copy{padding:25px 20px 12px}.moving-text .road-stage{margin-inline:15px}.moving-text .under{gap:8px;flex-wrap:wrap}}
.car-note{--ct-accent:var(--driver-palette,var(--course-accent,#8b4f91));--ct-tint:var(--driver-tint,var(--course-progress-tint,#eee0f0));display:flex;align-items:flex-end;position:relative;padding:20px 0 32px;isolation:isolate;color:#2f2d32}
.car-note:after{content:'';position:absolute;bottom:9px;height:1px;background:#bdb6ad;left:0;right:0}
.car-note .ct-car{width:32%;flex-shrink:0;position:relative;aspect-ratio:1.7;z-index:2;margin-bottom:-20px;pointer-events:none}
.car-note .ct-car img,.car-note .ct-car canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-height:none!important;max-width:none!important}
.car-note .ct-car canvas[hidden]{display:none}
.car-note .ct-trailer{flex:1;min-width:0;position:relative;border:2px solid var(--ct-accent);border-radius:13px;background:#fbfaf7;padding:25px 25px 31px;min-height:170px;margin-left:15px}
.car-note .ct-trailer:before{content:'';position:absolute;width:19px;height:7px;left:-19px;bottom:8px;border-radius:3px;background:#423a41}
.car-note .ct-heading{font-size:clamp(23px,4.1cqi,37px);margin:0 0 14px;color:#4b344c!important;overflow-wrap:anywhere}
.car-note .ct-heading *{color:inherit!important}.car-note .ct-body{font-size:1.03em;overflow-wrap:anywhere}
.car-note .rich p{margin:0 0 .4em}.car-note .rich p:last-child{margin-bottom:0}
.car-note .ct-tire{position:absolute;bottom:-23px;width:39px;height:39px;border:9px solid #353137;box-shadow:0 0 0 3px #d5ae69;border-radius:50%;background:radial-gradient(circle,#6d6670 0 24%,#eee9df 27% 55%,#aaa1a4 58%)}
.car-note .ct-tire.first{left:15%}.car-note .ct-tire.last{right:14%}
.car-note.ct-roadtrip .ct-trailer{background:var(--ct-tint);border:0;border-bottom:15px solid var(--ct-accent);border-radius:12px 0 8px 8px}
.car-note.ct-roadtrip .ct-trailer:after{content:'';position:absolute;top:0;right:0;width:32px;height:32px;background:linear-gradient(45deg,#edc374 50%,#fbfaf7 51%);box-shadow:-2px 2px 2px #0002}
.car-note.ct-roadtrip .ct-tire{bottom:-31px}
.car-note.ct-caravan .ct-trailer{border-radius:60px 60px 23px 23px;background:#f5ebce;border-color:#cfb575;padding-top:33px;border-bottom:9px double var(--ct-accent)}
.car-note.ct-caravan .ct-trailer:after{content:'';position:absolute;top:-13px;right:26%;width:42px;height:12px;border-radius:10px 10px 0 0;background:var(--ct-accent)}
@container(max-width:500px){.car-note{padding-bottom:82px}.car-note .ct-car{position:absolute;left:0;bottom:20px;width:100px;margin:0}.car-note .ct-trailer{margin-left:0;padding:22px 20px 30px;margin-bottom:20px}.car-note .ct-trailer:before{left:100px;bottom:-61px;width:3px;height:60px}.car-note .ct-tire.first{left:38%}.car-note:after{bottom:20px}}
.ct-mini{height:90px;position:relative;overflow:hidden;pointer-events:none}.ct-mini .car-note{width:580px;transform:scale(.35);transform-origin:left top;padding-top:10px}.ct-mini .moving-text{width:540px;transform:scale(.38);transform-origin:left top}.ct-mini .lesson-copy{padding:10px 25px 0}.ct-mini .mt-heading{font-size:28px;margin-bottom:0}.ct-mini .road-stage{height:130px}.ct-mini .under{display:none}

.moving-text:not(.night-scene) .road{background:var(--driver-tint,var(--course-progress-tint,#eee0f0));border-color:var(--drive-plum)}
.moving-text:not(.night-scene) .road:after{background:repeating-linear-gradient(90deg,var(--drive-plum) 0 20px,transparent 20px 45px)}
.car-note .ct-car img,.car-note .ct-car canvas{object-position:center bottom}

.ct-mini{--driver-palette:#8b4f91;--driver-tint:#eee0f0}

@container(min-width:501px){.car-note .ct-trailer:before{width:35px;left:-35px}}
