/* V3 brand layer: the Pet Office service counter, with the existing game intact. */
:root{--cream:#faf6ed;--paper:#fffaf1;--ink:#564338;--brown:#664d3e;--line:#e6d4bd;--mint:#9bac92;--coral:#d88064;--yellow:#d6bc7d;--shadow:0 8px 24px #59433216;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif}
body{background:#e8e8da url('../assets/game/v3/brand-street.webp') center/cover fixed;color:var(--ink)}
body:before{content:'';position:fixed;inset:0;background:#ede7d8ab;backdrop-filter:blur(4px);pointer-events:none}
.game-shell{border:5px solid #fffaf1;border-radius:28px;box-shadow:0 0 0 1px #dac6ad,0 22px 65px #56433830}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline-color:#7a9275}
.button{border-radius:19px;font-weight:700;letter-spacing:.02em;min-height:51px;font-size:16px}
.primary,.coral{background:linear-gradient(135deg,#e58e70,#ce735a);border:1px solid #e7a58b;color:#fffaf1;box-shadow:inset 0 1px 0 #ffffff4d,0 5px 12px #9e543522;text-shadow:none}
.button:active{transform:translateY(1px)}
.secondary{background:#fffaf1;border:1px solid var(--line);color:var(--brown);box-shadow:0 3px 9px #5943320d}
.quiet{color:#8f7964;background:none;box-shadow:none;min-height:44px;font-size:13px}
.icon-button{width:39px;height:39px;border:1px solid var(--line);border-radius:15px;background:#fffaf1;box-shadow:0 3px 9px #59433212;color:#785e4b;font-size:20px}
.sound{top:max(19px,calc(env(safe-area-inset-top) + 12px));right:17px}
.home{background:#dbe4d5 url('../assets/game/v3/entrance.webp') center/cover no-repeat}
.home:after{background:linear-gradient(#f8edcf00 65%,#886a3026)}
.home-top{position:absolute;left:14px;right:14px;top:max(12px,env(safe-area-inset-top));height:55px;padding:8px 54px 8px 10px;justify-content:flex-start;gap:10px;background:#fffaf1f5;border:1px solid #ffffffd9;border-radius:20px;box-shadow:0 4px 18px #5c422d13;text-align:left}
.brand-mark{width:39px;height:36px;padding:3px;background:#ffd0bf;border-radius:13px}
.home-top b{font-size:14px;letter-spacing:.05em;display:block}
.edition{display:block;color:#8c7863;font-size:9px;font-weight:500;letter-spacing:.1em;margin-top:3px}
.office-sign{top:22%;left:9%;width:82%;font-family:"PingFang TC","Microsoft JhengHei",sans-serif;font-size:clamp(26px,7.7vw,33px);font-weight:850;color:#694c32;line-height:1.45;letter-spacing:.07em;transform:none;text-shadow:0 1px 0 #fff9}
.office-sign small{font-size:8px;letter-spacing:.16em;margin-top:1px;font-weight:600;color:#937759}
.scene-cue{position:absolute;top:37%;left:50%;transform:translateX(-50%);z-index:1;white-space:nowrap;color:#66523f;background:#fffaf1eb;border:1px solid #eadbc3;padding:9px 14px;border-radius:30px;font-size:11px;box-shadow:0 4px 12px #56381f12}
.scene-cue span{color:#bf8c4c;font-size:16px;vertical-align:-1px;margin-right:5px}
.home-bottom{left:17px;right:17px;bottom:max(23px,calc(env(safe-area-inset-bottom) + 16px));background:#fffaf1f7;border:1px solid #fff;border-radius:24px;padding:14px 17px 12px;box-shadow:0 8px 25px #65493321;text-align:left}
.dialogue-speaker{font-size:10px;color:#bb7054;letter-spacing:.08em;font-weight:700}
.home-bottom h1{font-size:21px;letter-spacing:.055em;line-height:1.4;margin-top:3px;font-weight:800}
.home-bottom p{font-size:11px;line-height:1.65;color:#8c7865;text-shadow:none;margin-top:5px;font-weight:500}
.home-bottom p br{display:none}
.start-button{font-size:15px;min-height:47px;margin-top:12px;justify-content:space-between;padding:0 17px;border-radius:16px}
.start-button span{background:none;color:inherit;font-size:26px;font-weight:400;padding:0;line-height:1}
.exam-tag{display:block;text-align:center;background:none;box-shadow:none;font-size:9px;font-weight:500;padding:0;margin:9px 0 0;color:#9a826b;letter-spacing:.03em}
.exam-tag i{padding:0 5px}
.version{font-size:7px;color:#fff9ee;bottom:7px;letter-spacing:.15em;text-shadow:0 1px 3px #785d3f}
.panel-screen{background:linear-gradient(#5b513224,#6852353d),url('../assets/game/v3/brand-counter.webp') center/cover;padding:77px 17px 30px}
.back-button{top:22px;left:18px;background:#fffaf1;border:1px solid var(--line);border-radius:15px;min-height:39px;padding:8px 13px;color:var(--brown);box-shadow:0 3px 9px #59433212}




.paper{background:#fffaf1;border:1px solid var(--line);border-radius:24px;box-shadow:0 7px 24px #5943321a;padding:25px 18px}
.eyebrow{color:#9d8064;font-size:10px;font-weight:650;letter-spacing:.15em}
.setup-paper>h2{font-size:22px;letter-spacing:.02em}
.setup-paper>.muted{color:#97806b;font-size:12px}
.setup-steps{border:0;padding:0;gap:6px;margin:20px 0 17px}
.setup-steps button{background:#f0ebdf;border-radius:20px;padding:10px 2px;font-size:11px;font-weight:650;color:#9a8974}
.setup-steps button.active{background:#e5ebdf;color:#61755e;box-shadow:inset 0 0 0 1px #b5c1a6}
.setup-steps button span{font-weight:500;font-size:9px}
.characters{margin:0;scrollbar-color:#c6ccb7 #f3efe5;padding:5px 1px 10px;gap:10px 8px}
.character{background:#f4f0e6;border:1px solid #ece1d1;border-radius:17px;padding:8px 3px 11px}
.character img{height:78px;filter:drop-shadow(0 3px 3px #6f5c3f13)}
.character.selected{background:#eaf0e3;border-color:#9fad91;box-shadow:0 2px 7px #74846513}
.character.selected:after{background:#829575;top:6px;right:6px;font-size:10px;font-weight:700}
.character b{font-size:11px;margin-top:6px;font-weight:650}
.selection-hint{font-size:10px;color:#a39179;margin-top:9px}
.selection-summary{color:#75604c;padding-top:15px;font-size:13px}
.selection-summary span{color:#9b856d;font-size:11px}
.garage-preview{background:radial-gradient(ellipse,#e7e9db88,transparent 72%)}
.car-choice{background:#f5f1e8;border:1px solid #e9dfcf;border-radius:17px;padding:9px 12px;gap:14px}
.car-choice.selected{background:#edf0e5;border-color:#a6b299;box-shadow:0 2px 7px #7484650c}
.car-choice.selected:after{color:#7d9270}
.car-choice b{font-weight:650;font-size:13px}
.car-choice small{color:#9b856e;font-size:10px}
.car-choice>img{height:63px;width:50px}
.difficulty-heading .field-label{font-size:13px;color:#715943}
.difficulty-options{gap:6px;margin-top:11px}
.difficulty-choice{font-size:11px;border:1px solid #e8ddcc;background:#f4efe5;border-radius:16px;padding:14px 1px;color:#89765e;font-weight:650}
.difficulty-choice small{font-size:9px;font-weight:400;letter-spacing:0;margin-top:6px}
.difficulty-choice.selected{box-shadow:0 3px 8px #65563f0b}
.difficulty-note{color:#927e67;font-size:11px;line-height:1.8;margin-top:12px}
.registration-summary{border-bottom:1px solid #e8dece;color:#927961;padding:9px 0 15px;margin-bottom:16px}
.text-button{color:#9d8064;min-height:32px}
.field-label{color:#6d5745;font-weight:650}
input[type=text],input:not([type]){background:#fffdf7;border:1px solid #ddc9b0;border-radius:14px;color:#5c4737;min-height:47px}
.upload-button{border:1px dashed #cdbb9f;background:#f9f5ea;color:#897054;border-radius:15px;font-size:12px;min-height:49px}
.privacy{color:#a08b72}
.tutorial-paper{margin-top:13px}
.clipboard-clip{background:#aab49b;border-color:#f8f1de;box-shadow:0 2px 3px #5c553829}
.lesson>b{font-size:18px;color:#93a184;font-weight:600}
.lesson strong{font-weight:650;font-size:14px}
.tutorial-road{background-color:#a0a396;border-color:#e5dbca}
.hud{height:49px;background:#fffaf1f5;border:1px solid #e6d4bd;box-shadow:0 4px 13px #55463016;border-radius:18px;left:14px;right:66px;top:19px}
.hud #hearts{font-size:20px;color:#cd867b;text-shadow:none;letter-spacing:1px}
.hud #hearts span{color:#ded3bf}
.score b{font-size:24px;font-weight:700}.progress-value b{font-size:17px;font-weight:700}
.score small,.progress-value small{font-size:10px;color:#967e65}
.progress-track{background:#fffaf14d;top:77px;left:18px;right:70px;height:4px}
.progress-track div{background:#d6bc7d}
.pause{top:67px;right:17px}
.stage-label{top:99px;font-size:10px;letter-spacing:.06em;text-shadow:0 1px 3px #565b4d;font-weight:650}
.brake{background:linear-gradient(#fffaf1,#f1e8d5);color:#755a40;border:1px solid #e2cdb0;box-shadow:0 4px 0 #aa9272,0 7px 17px #55442c22;border-radius:20px;min-width:158px;padding:10px 22px}
.brake b{font-size:15px;font-weight:700}
.brake.held{background:#d28a73;box-shadow:0 1px 0 #9b6856;color:#fffaf1}
.steer-buttons{font-size:10px;font-weight:500;letter-spacing:.04em;gap:12px;opacity:1}
.steer-buttons button{width:39px;height:33px;border-radius:13px;background:#fffaf126;border:1px solid #fffaf173}
.traffic-hint{font-size:15px;background:#c7836d;border:1px solid #ecd8ba;box-shadow:0 3px 9px #55463016;border-radius:18px}
.traffic-hint.green{background:#829875}.traffic-hint.parking{background:#839b98}
.game-message{font-size:18px;font-weight:750;text-shadow:0 2px 4px #524938;line-height:1.65}
.countdown{color:#fff5df;font-weight:650;text-shadow:0 3px 7px #655036;-webkit-text-stroke:0}
.result-screen{background:linear-gradient(#f8f5ecea,#f6f2e8 240px),url('../assets/game/v3/brand-counter.webp') center top/auto 310px no-repeat;padding:24px 19px 30px}
.result-heading{height:89px;justify-content:flex-start;padding:0 5px 13px;gap:12px}
.result-heading>img:first-child{width:42px;height:39px;padding:4px;background:#fbd0bf;border-radius:14px}
.result-heading>div>span{font-size:11px;letter-spacing:.1em;color:#90785f}
.result-heading b{font-size:21px;letter-spacing:.1em;font-weight:750;display:block;margin-top:3px}
.result-heading .examiner{width:64px;height:72px;right:1px;bottom:8px;transform:none}
.certificate{background:#fffcf5;border:1px solid #dfcdb4;border-radius:21px;box-shadow:0 7px 23px #7153360f;padding:23px 19px 16px}
.certificate:before{inset:6px;border:1px solid #f0e6d5;border-radius:16px}
.certificate-top>span:first-child{font-size:7px;letter-spacing:.04em;color:#a68e71}
.certificate-top>span:last-child{font-size:9px;padding:3px 8px;border-radius:12px;border:0;background:var(--cert-pale)}
.certificate h2{color:#654f3d;font-size:19px;margin-top:13px;font-weight:750;letter-spacing:.015em}
.cert-subtitle{font-size:9px;letter-spacing:.06em;color:#aa947a;margin-top:6px}
.certificate-level{background:var(--cert-pale);color:var(--cert-accent);border:1px solid color-mix(in srgb,var(--cert-accent) 18%,transparent);border-radius:13px;padding:11px 4px;margin:19px 0 22px;font-size:14px;letter-spacing:.04em}
.pet-info{gap:15px}.pet-info>img{width:90px;height:106px;object-fit:cover;border:1px solid #e5d5bb;border-radius:17px;padding:4px;background:#f3ebda;box-shadow:0 2px 4px #937a5520}
.pet-info b{font-weight:750;color:#594537;font-size:22px;margin-top:3px}.pet-info small{font-size:9px;color:#9e876e;line-height:1.9}
.difficulty-badge{border-radius:9px;font-size:9px;padding:4px 7px;margin:5px 0}
.result-summary{margin-top:17px;padding:0 0 17px;border-bottom:1px solid #e8decb;gap:22px}
.result-score strong{font-weight:700;font-size:66px;letter-spacing:-3px}.rank-group>small{font-size:9px;color:#a58e71}
.result-rank{font-size:13px;font-weight:650;color:#775e46;line-height:1.75}
.ability-heading{font-size:10px;color:#8f7659;margin-top:17px;font-weight:600;letter-spacing:.05em}
.ability-heading small{color:#ae987d}.ability>div,.ability b{font-size:10px}.ability b{font-weight:500;color:#8b765f}
.ability-track{background:#eee7d8;height:4px}.ability-track>i{opacity:.65}
.abilities{gap:12px 16px;margin-bottom:19px}
.achievements{border-top:1px solid #eee3d2;padding-top:13px;gap:6px}
.achievement{border:0;border-radius:15px;font-size:9px;font-weight:500;padding:6px 9px}
.certificate-signoff{margin-top:18px;padding:2px 0;gap:5px}
.certificate-signoff>div>span{font-size:10px;color:#8c7257;font-weight:600;letter-spacing:0}
.certificate-signoff small{font-size:9px;color:#a48d72}
.certificate-signoff .seal{width:49px;height:49px;font-size:8px;opacity:.64;border-width:2px;outline-offset:2px;letter-spacing:0}
.certificate-foot{font-size:7px;margin-top:17px;color:#ac997f;letter-spacing:.02em}
.result-quote{color:#947b61;font-size:11px}
.desktop-note{transform:none;background:#fffaf1f5;border:1px solid #fff;border-radius:25px;padding:24px;width:238px;left:calc(50% - 505px);color:#6e5a43;box-shadow:0 8px 25px #69503410}
.desktop-note>span{font-size:12px;color:#8d9a7f;letter-spacing:.12em}.desktop-note>b{font-size:23px;font-weight:700}.desktop-note>small{color:#a08b70;font-size:12px}.desktop-note img{width:105px;height:118px;display:block;margin:19px auto 0;filter:none}
.desktop-caption{transform:none;right:calc(50% - 495px);background:#fffaf1dc;border:1px solid #fff;border-radius:22px;padding:22px;color:#8c7355}
.desktop-caption span{font-size:18px;font-weight:600}.desktop-caption small{color:#a18d70;line-height:1.8}
@media(max-width:600px){body:before{display:none}.game-shell{border:0;border-radius:0;box-shadow:none}.home-top{height:55px}.panel-screen{padding-top:max(78px,calc(env(safe-area-inset-top) + 67px))}.result-screen{padding-top:max(23px,env(safe-area-inset-top))}}
@media(max-width:355px){.home-bottom{padding:12px 14px}.home-bottom h1{font-size:19px}.home-bottom p{font-size:10px}.office-sign{font-size:25px}.setup-paper{padding:22px 13px}.setup-paper>h2{font-size:20px}.character img{height:65px}.character b{font-size:10px}.difficulty-choice{font-size:10px}.certificate{padding:21px 16px 15px}.certificate h2{font-size:17px}.pet-info>img{width:76px;height:94px}.pet-info{gap:12px}.result-score strong{font-size:58px}.result-summary{gap:14px}.car-choice small{font-size:9px}}
@media(max-height:730px){.home-bottom{padding-top:11px;padding-bottom:10px;bottom:21px}.home-bottom h1{font-size:19px}.home-bottom p{font-size:10px}.start-button{margin-top:9px;min-height:43px}.exam-tag{font-size:8px;margin-top:7px}.scene-cue{top:36%;padding:6px 11px;font-size:10px}.office-sign{top:21%}.character img{height:62px}.car-choice>img{height:54px}.paper{padding-top:22px}.setup-steps{margin-top:15px}.result-heading{height:79px}}

/* Keep the parked car visible above the entrance dialogue, including short phones. */
.home-bottom{padding:11px 16px 12px}.home-bottom h1{font-size:20px;line-height:1.3}.home-bottom p{margin-top:4px;font-size:11px}.home-bottom .exam-tag{display:none}.start-button{margin-top:9px;min-height:44px}.desktop-caption span{font-size:17px;letter-spacing:0}
@media(max-height:730px){.home{background-size:auto 100%;background-position:center -35px}.office-sign{top:calc(21% - 35px)}.scene-cue{top:calc(36% - 25px)}.home-bottom{padding:10px 14px 11px}.home-bottom h1{font-size:19px}.home-bottom p{font-size:10px}.start-button{min-height:42px;margin-top:8px}}
/* Distinct course identities, without changing the registration flow. */
.route-label{position:absolute;top:118px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:.07em;color:#fffbed;text-shadow:0 1px 3px #66513d}
.stage-label{top:97px;font-size:12px;letter-spacing:.025em}.traffic-hint{top:145px}
.course-intro{position:absolute;z-index:6;left:27px;right:27px;top:27%;padding:22px 17px;text-align:center;background:#fffaf1f7;border:1px solid #e6d4bd;border-radius:23px;box-shadow:0 9px 25px #56433824;pointer-events:none}
.course-intro>span{font-size:10px;letter-spacing:.08em;color:var(--course-accent)}.course-intro h2{font-size:25px;margin-top:10px;color:#614c3b}.course-intro p{font-size:12px;color:#998268;line-height:1.8;margin-top:10px}
.driving[data-course=novice]{--course-accent:#a38c56}.driving[data-course=normal]{--course-accent:#718773}.driving[data-course=expert]{--course-accent:#b5815f}
.driving .progress-track div{background:var(--course-accent)}.countdown{display:flex;align-items:center;justify-content:center;padding-top:175px;font-size:74px}
.result-heading{padding-right:48px}.result-actions #license-link{min-height:54px;font-size:16px;font-weight:750;border-radius:18px;box-shadow:inset 0 1px #ffd2bf,0 5px 14px #bb765a24}
@media(max-height:730px){.course-intro{top:26%;padding:19px 14px}.course-intro h2{font-size:23px}.countdown{padding-top:154px}}
/* Give the primary result action room on a typical phone, with natural scrolling on smaller screens. */
.result-screen{padding-top:15px}.result-heading{height:71px}.certificate-level{margin-top:17px;margin-bottom:17px}.result-summary{margin-top:15px}.abilities{row-gap:10px;margin-bottom:15px}.certificate-signoff{margin-top:14px}.certificate-foot{margin-top:14px}
@media(max-width:600px){.result-screen{padding-top:max(15px,env(safe-area-inset-top))}}

/* Brief route cues stay below the HUD and never intercept driving input. */
.phase-cue{position:absolute;top:149px;left:50%;transform:translate(-50%,-5px);max-width:86%;width:max-content;padding:8px 15px;border:1px solid #d4bfa0;border-radius:999px;background:#fffaf1ed;color:#796248;box-shadow:0 4px 14px #5f49311c;font-size:12px;font-weight:750;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}
.phase-cue.show{opacity:1;transform:translate(-50%,0)}

/* Brand links, exam timing and certificate details. */
a.brand-home{color:inherit;text-decoration:none;display:flex;z-index:2}a.brand-home:focus-visible{outline:3px solid #9cac83;outline-offset:3px}
.exam-clock{position:absolute;top:114px;right:20px;background:#fffaf1de;border:1px solid #e0cbb0;border-radius:13px;color:#826c52;padding:5px 9px;font-size:14px;font-variant-numeric:tabular-nums}.traffic-hint{right:75px}.exam-clock small{font-size:9px;margin-left:3px}.stage-label{left:15px;right:75px}.route-label{left:15px;right:75px}.course-intro{top:28%}
#certificate-decoration{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.certificate>*:not(canvas){position:relative;z-index:1}.certificate{isolation:isolate;overflow:hidden}.certificate:before{display:none}.certificate-stars{text-align:center;letter-spacing:6px;color:var(--cert-accent);font-size:17px;margin-top:9px}.certificate-top{margin:3px 3px 0}.certificate-level{margin-top:13px}
#result[data-certificate=novice] .certificate{background:#fffbef;border-color:#dcc794}#result[data-certificate=normal] .certificate{background:#fdfef5;border-color:#a8bba0}#result[data-certificate=expert] .certificate{background:#fff9ed;border-color:#b99860;border-radius:14px}#result[data-certificate=expert] .certificate-level{border:3px double #bda16a;border-radius:3px;letter-spacing:.06em;background:linear-gradient(100deg,#eedbc0,#f6eadd,#e8d4b9)}#result[data-certificate=normal] .certificate-level{border-radius:4px;border-top:2px solid #90a688;border-bottom:2px solid #90a688}#result[data-certificate=expert] .seal{border-color:#a57d44;color:#916b36}
.result-actions #next-course{border-color:#b5c2a5;background:#edf1e5;color:#6d825c}
@media(max-width:355px){.exam-clock{right:16px;padding:4px 7px;font-size:12px}.certificate-stars{font-size:15px}}

/* Simplified counter: vehicle types and four short exam choices. */
.car-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:390px;overflow-y:auto;scrollbar-color:#b8bca2 #f3eee4;padding:4px 3px 9px;overscroll-behavior:contain}
.car-choice{display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 7px;min-height:148px;gap:6px;position:relative;flex-shrink:0}.car-choice>img{width:76px;height:85px;object-fit:contain}.car-choice b{font-size:13px}.car-choice small{font-size:10px;line-height:1.6}.car-choice:disabled{cursor:default;opacity:.48}.car-choice:disabled:after{content:'通關解鎖';position:absolute;top:8px;right:7px;background:#e8e1ed;color:#675171;padding:3px 6px;border-radius:8px;font-size:8px}
.vehicle-hint{font-size:10px;color:#9a836b;margin:2px 0 9px;line-height:1.7}.vehicle-preview #preview-driver{top:var(--driver-top,37%);width:var(--driver-size,42%);height:auto;left:var(--driver-left,50%);transform:translate(-50%,-50%)}
.difficulty-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.difficulty-choice{min-height:68px;padding:11px 5px;font-size:12px}.difficulty-choice small{font-size:10px;margin-top:6px}.difficulty-choice[data-difficulty=hell]{background:#eee5ef;color:#624563;border-color:#b6a0b9}.difficulty-choice[data-difficulty=hell].selected{background:#5b3b5c;color:#fff4da;border-color:#a28572}.difficulty-choice[data-difficulty=hell].selected small{color:#ecd9bb}.difficulty-note{font-size:11px;line-height:1.7;margin:13px 0 21px}
.office-sign>small:first-child{font-size:12px;font-weight:700;letter-spacing:.13em;color:#81664b}.office-sign{top:21.2%;line-height:1.28}.office-sign small{margin-top:0}
#driving[data-course=hell] .hud{background:#eee5dced;border-color:#b6a0a7}#driving[data-course=hell] .progress-track div{background:#b987b6}#driving[data-course=hell] .exam-clock{background:#3f3247e8;border-color:#95768b;color:#f3ddbb}#driving[data-course=hell] .brake{background:linear-gradient(#f5eee6,#d7cbd8);border-color:#a58ba5}#driving[data-course=hell] .phase-cue{background:#403046ed;color:#f7dfb6;border-color:#a47d87}
@media(max-width:355px){.car-options{max-height:335px}.car-choice{min-height:144px}.difficulty-choice{font-size:11px}.office-sign>small:first-child{font-size:11px}}
.home{background:#dbe4d5}.home-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none}.scene-world{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:url('../assets/game/refined/home-plate.webp') center/100% 100% no-repeat}.scene-character{position:absolute;object-fit:contain;transform-origin:50% 95%;filter:drop-shadow(0 5px 3px #66533828);will-change:transform}.scene-shiba{left:17.5%;top:62.2%;width:24%;height:18.6%;animation:shiba-breath 4.3s ease-in-out infinite}.scene-car{left:37%;top:66.1%;width:31%;height:15.6%;animation:car-idle 5.1s ease-in-out infinite -.6s}.scene-goose{left:68.5%;top:57.5%;width:18%;height:23%;animation:goose-idle 4.8s ease-in-out infinite -1.6s}.lamp-glow{position:absolute;top:42%;width:12%;height:9%;background:radial-gradient(ellipse,#ffe8a456,transparent 68%);mix-blend-mode:screen;animation:lamp-breathe 5s ease-in-out infinite}.lamp-left{left:21%}.lamp-right{right:20%}
@keyframes shiba-breath{0%,100%{transform:scaleY(1) rotate(-.25deg)}50%{transform:scaleY(1.018) rotate(.25deg)}}@keyframes car-idle{0%,100%{transform:translateY(0) rotate(.15deg)}45%{transform:translateY(-1.4px) rotate(-.15deg)}}@keyframes goose-idle{0%,100%{transform:scaleY(1) rotate(.45deg)}50%{transform:scaleY(1.015) rotate(-.45deg)}}@keyframes lamp-breathe{0%,100%{opacity:.45}50%{opacity:.8}}
.home[hidden] .scene-character,.home[hidden] .lamp-glow{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.scene-character,.lamp-glow{animation:none;will-change:auto}}

/* Four certificate families: paw ribbon, sage molding, golden honor and dark gilding. */
.certificate{padding:27px 24px 24px;border:0;border-radius:20px!important}.certificate-top{margin:10px 3px 0}.certificate-top>span:first-child{font-size:6px}.cert-brand{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 20px;color:var(--cert-accent);font-size:17px}.cert-brand img{width:34px;height:35px}.certificate h2{font-size:19px;margin-top:5px;font-weight:800;letter-spacing:.03em}.certificate-stars{font-size:15px;letter-spacing:4px;margin-top:8px}.certificate .certificate-level{margin:19px 0 23px;padding:12px 5px;border:1px solid #dbb15a!important;border-radius:5px!important;color:#fff8e2;background:linear-gradient(#739778,#3f7055);box-shadow:inset 0 0 0 3px #ffffff33,0 4px 0 #7b644016;font-size:14px;overflow:visible}.certificate-level:before,.certificate-level:after{content:'';position:absolute;top:9px;width:19px;height:100%;z-index:-1;background:inherit;border:1px solid #bda06b}.certificate-level:before{left:-14px;clip-path:polygon(0 0,100% 7%,100% 100%,0 92%,25% 49%)}.certificate-level:after{right:-14px;clip-path:polygon(0 7%,100% 0,75% 49%,100% 92%,0 100%)}
#result[data-certificate=novice] .certificate{background:#fff8df}#result[data-certificate=novice] .certificate-level{background:linear-gradient(#ffe6a4,#e8ba5b);color:#885822}#result[data-certificate=normal] .certificate{background:#f6f8ed}#result[data-certificate=normal] .certificate-level{background:linear-gradient(#719b78,#3c7055);color:#fff8e2}#result[data-certificate=expert] .certificate{background:#fff0d4}#result[data-certificate=expert] .certificate-level{background:linear-gradient(#c8784d,#963e30);color:#fff8e2}#result[data-certificate=hell] .certificate{background:#f7eee4}#result[data-certificate=hell] .certificate-level{background:linear-gradient(#59415f,#2f243b);color:#efddba}#result[data-certificate=hell]{background:linear-gradient(#36273ff2,#443047)}#result[data-certificate=hell] .result-heading b,#result[data-certificate=hell] .result-heading span,#result[data-certificate=hell] .result-quote{color:#efdfc9}
.certificate .seal{width:67px;height:67px;border:0!important;outline:0!important;transform:none;opacity:1;background:none}.seal canvas{width:100%;height:100%}.certificate-signoff{gap:8px}.certificate-signoff>div>span{font-size:9px;letter-spacing:0}.certificate-signoff small{font-size:9px;line-height:1.7}.certificate-foot{font-size:7px}.certificate .result-score strong{font-size:69px}.certificate-signoff{margin-top:17px}.certificate .achievement{border-radius:13px;padding:7px 8px}
@media(max-width:355px){.certificate{padding:24px 22px}.certificate h2{font-size:16px}.cert-brand{font-size:15px;gap:7px}.certificate-level{font-size:12px!important}.certificate .pet-info{gap:10px}.certificate .pet-info>img{width:68px;height:87px}.certificate .result-score strong{font-size:57px}.certificate .seal{width:55px;height:55px}}

/* v3.4: prioritize readable mobile text over fitting all content above the fold. */
.setup-paper>h2{font-size:27px;line-height:1.4}.setup-paper>.eyebrow{font-size:12px;line-height:1.6}.setup-paper>.muted{font-size:15px}.setup-steps button{font-size:14px}.setup-steps button span{font-size:12px}.character b{font-size:13px}.selection-hint{font-size:12px}.selection-summary b{font-size:16px}.selection-summary span{font-size:14px;line-height:1.7}.vehicle-hint{font-size:13px}.car-choice{min-height:178px}.car-choice b{font-size:16px}.car-choice small{font-size:12px}.car-choice:disabled:after{font-size:11px}.garage-preview small{font-size:13px}.garage-preview b{font-size:16px;line-height:1.8}.difficulty-choice{font-size:16px;min-height:85px;line-height:1.5}.difficulty-choice small{font-size:13px}.difficulty-note{font-size:14px;line-height:1.7}.field-label{font-size:16px}.text-button{font-size:13px}.upload-button{font-size:15px;min-height:56px}.upload-button small,.privacy,.photo-preview{font-size:13px}.error{font-size:14px}.lesson div span{font-size:13px;line-height:1.65}
.stage-label{top:91px;font-size:16px;line-height:1.4;right:90px}.route-label{top:118px;font-size:14px;right:94px;line-height:1.5;letter-spacing:0}.exam-clock{top:110px;right:14px;font-size:23px;font-weight:750;padding:5px 10px}.exam-clock small{font-size:13px}.score small,.progress-value small{font-size:14px}.hud .score b{font-size:30px}.hud .progress-value b{font-size:22px}.phase-cue{top:160px;font-size:15px;line-height:1.55;max-width:93%;text-align:center;padding:8px 13px}.traffic-hint{top:157px;font-size:18px}.brake small{font-size:12px}.steer-buttons{font-size:14px}.game-message{font-size:20px;line-height:1.6}.course-intro h2{font-size:27px}.course-intro p{font-size:15px;line-height:1.7}.course-intro>span{font-size:13px}
.certificate h2{font-size:24px;line-height:1.5}.cert-brand{font-size:19px}.certificate-top{display:flex;flex-wrap:wrap;gap:8px}.certificate-top>span:first-child{font-size:10px}.certificate-top>span:last-child{font-size:14px;font-weight:750}.cert-subtitle{font-size:13px;line-height:1.7}.certificate .certificate-level{font-size:17px!important;line-height:1.55;padding:13px 7px}.certificate .pet-info b{font-size:28px;line-height:1.4;overflow-wrap:anywhere}.certificate .pet-info small{font-size:13px;line-height:1.8}.difficulty-badge{font-size:13px}.certificate .result-score strong{font-size:80px}.certificate .result-score span{font-size:20px}.rank-group>small{font-size:13px}.certificate .result-rank{font-size:17px;line-height:1.6}.ability-heading>span{font-size:16px}.ability-heading>small{font-size:12px}.ability>div:first-child{font-size:14px;line-height:1.6}.ability b{font-size:14px}.abilities{gap:17px 14px}.certificate .achievement{font-size:13px;padding:9px 10px}.certificate-signoff>div{flex:1;min-width:0}.certificate-signoff>div>span,.certificate-signoff small{font-size:12px;line-height:1.8}.certificate .seal{width:86px;height:86px;flex-shrink:0}.certificate-foot{font-size:11px;line-height:1.6}.result-quote{font-size:14px;line-height:1.8}.result-heading span{font-size:13px}.result-heading b{font-size:24px}
@media(max-width:355px){.setup-paper>h2{font-size:24px}.difficulty-choice{font-size:14px}.difficulty-choice small{font-size:12px}.car-choice b{font-size:15px}.car-choice small{font-size:12px}.certificate h2{font-size:22px}.certificate .certificate-level{font-size:15px!important}.certificate .pet-info{gap:10px}.certificate .pet-info>img{width:72px}.certificate .pet-info b{font-size:25px}.certificate .pet-info small,.difficulty-badge{font-size:12px}.certificate .result-score strong{font-size:69px}.certificate .result-rank{font-size:15px}.certificate .seal{width:76px;height:76px}.ability>div:first-child,.ability b{font-size:13px}.phase-cue{font-size:14px}.stage-label{font-size:15px}.route-label{font-size:13px}.exam-clock{font-size:21px}}

/* v3.4.1: compact counter, scene-anchored sign and input-aware brake hint. */
.scene-world{container-type:inline-size}
.scene-world .office-sign{top:20.3%;left:19%;width:60%;height:8%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(22px,7cqw,33px);line-height:1.08;letter-spacing:.04em;gap:.4cqw}
.scene-world .office-sign>small:first-child{font-size:clamp(9px,2.5cqw,12px);line-height:1.1;letter-spacing:.13em;margin:0}
.scene-world .office-sign>small:last-child{font-size:clamp(7px,1.75cqw,9px);line-height:1.1;letter-spacing:.08em;margin:0;white-space:nowrap}
.setup-paper,.course-intro{container-type:inline-size}
.course-intro p.single-line{white-space:nowrap;font-size:clamp(11px,4.25cqw,14px);letter-spacing:0}
.brake .keyboard-hint{display:none}
@media(hover:hover) and (pointer:fine){.brake .keyboard-hint{display:block}}

.setup-paper #difficulty-options+.field-label{margin-top:20px}

.certificate-top #result-status{margin-left:auto}
.result-actions #retry{font-size:16px;min-height:51px}

#share-status:empty{display:none}

.hud .health{position:relative;display:flex;align-items:center;flex-shrink:0;min-width:0}
.hud .health #hearts{display:flex;align-items:center;gap:2px;line-height:1}
.health-heart{display:block;width:20px;height:23px;flex:0 0 auto}
.health-heart svg{display:block;width:100%;height:100%}
.health-heart .heart-outline{fill:#fffaf1;stroke:#b9a392;stroke-width:1.25;stroke-linejoin:round}
.health-heart .heart-fill{fill:#cd867b;clip-path:inset(0 var(--heart-empty) 0 0)}
.health-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:355px){.health-heart{width:17px;height:21px}.hud .health #hearts{gap:1px}}
.game-over-overlay{background:#30273799;backdrop-filter:blur(2px)}
.game-over-overlay .small-paper{max-width:355px;border:1px solid #d6b9a1;padding:26px 20px}
.game-over-overlay .empty-heart{font-size:42px;color:#c17e72;line-height:1}
.game-over-overlay h2{font-size:34px;line-height:1.2;letter-spacing:.03em;margin-top:10px;white-space:nowrap}
.game-over-overlay .button+.button{margin-top:12px}

/* Preview the same full-resolution artwork that is exported to PNG. */
.certificate-preview{width:100%;line-height:0}
.certificate-preview canvas{display:block;width:100%;height:auto;aspect-ratio:1080/1536}

/* Vehicle cards keep only their image/name and scroll horizontally. */
.car-options{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(116px,43%);grid-template-rows:auto;max-height:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:3px;overscroll-behavior-x:contain}
.car-choice{min-height:142px;scroll-snap-align:start}
.car-choice b{white-space:nowrap}
.car-choice.selected:after{position:absolute;top:7px;right:9px;margin:0}
.car-choice:disabled:after{content:none}

@media(max-height:700px){
  #setup[data-step="2"] .setup-paper{padding-top:18px;padding-bottom:18px}
  #setup[data-step="2"] .setup-paper>.muted{margin:6px 0 10px}
  #setup[data-step="2"] .setup-steps{margin:10px 0}
  #setup[data-step="2"] .vehicle-preview{width:72px;height:80px}
  #setup[data-step="2"] .vehicle-hint{margin:0 0 6px}
  #setup[data-step="2"] .car-choice{min-height:128px}
  #setup[data-step="2"] .car-choice>img{width:68px;height:75px}
  #setup[data-step="2"] #next-info{margin-top:12px}
}
