:root{--ink:#fff3d7;--sub:#dfcba6;--accent:#ffc85f}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{font-family:"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;background:#243b39;color:var(--ink)}
#stage{max-width:600px;margin:auto;display:flex;flex-direction:column;background:#263f3c;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
header{display:flex;align-items:center;gap:7px;padding:5px 10px;flex-shrink:0;font-size:10px;min-height:42px}header a{color:#fff0d5;text-decoration:none;font-size:14px}header b{color:#ffc45f}header span{flex:1}header button{font-size:10px;min-height:32px;padding:4px 6px;border-color:#779285}
button{border:1px solid #997b56;border-radius:12px;min-height:44px;padding:9px 11px;background:#395650;color:var(--ink);font:inherit;font-size:14px;touch-action:manipulation}button:focus-visible,canvas:focus-visible{outline:3px solid #ffdc83;outline-offset:2px}button:disabled{opacity:.43;cursor:default}.primary{background:linear-gradient(#ffdd91,#f0bb60);border-color:#ffdd91;color:#513b29;font-weight:800;box-shadow:0 4px 0 #95653e}
.board{flex:1;min-height:0;position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(#263f3c55,#263f3c77),var(--scene,url('sprites/bg-1.webp')) center/cover;touch-action:none}#field{position:relative;flex-shrink:0;overflow:hidden;isolation:isolate}canvas{display:block;width:100%;height:100%;touch-action:none}
#hud{position:absolute;left:3%;right:3%;top:8px;height:44px;min-height:40px;padding:5px 7px;display:flex;gap:6px;align-items:center;background:#29433eed;border:1px solid #e6c98c88;border-radius:13px;box-shadow:0 3px 9px #26362955;font-size:12px}#hud>div{display:flex;flex:1;gap:5px;align-items:baseline}#stage-id{font-size:17px;color:#ffdb8c}#village{font-size:11px;white-space:nowrap}.coins{display:flex;gap:3px;align-items:center}.coins img{width:23px;height:23px;object-fit:contain}#hud button{padding:3px 7px;font-size:20px;min-height:34px;min-width:34px;background:#526c5d}
.speech{position:absolute;left:11%;right:3%;top:23%;margin:0;padding:6px 9px;background:#fff4dced;color:#654731;border:1px solid #bb9566;border-radius:12px;font-size:11px;line-height:1.4;pointer-events:none;box-shadow:0 3px 8px #72583722}#notice{position:absolute;bottom:78px;left:3%;right:3%;text-align:center;margin:0;color:#fff8db;background:#344e43e8;border-radius:9px;min-height:0;font-size:11px;padding:0;pointer-events:none}#notice:not(:empty){padding:5px}
#items{position:absolute;left:3%;right:3%;bottom:8px;height:58px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#items button{display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 3px;font-size:12px;font-weight:700;background:#fff0cfeF;color:#634831;border:2px solid #b68c58;box-shadow:0 3px 0 #88633b}#items img{width:29px;height:32px;object-fit:contain}#items small{display:block;font-size:10px;font-weight:500;margin-top:3px}#pick-mode{position:absolute;bottom:8px;height:58px;left:4%;right:4%;display:flex;align-items:center;justify-content:space-between;background:#344d43;color:#fff1b1;border:1px solid #fff1b1;border-radius:12px;padding:5px 9px;font-size:12px}#pick-mode button{min-height:32px;padding:3px 12px}
.overlay{position:absolute;inset:0;display:grid;place-items:center;padding:20px;background:#1d322c9c;z-index:5;text-align:center}.panel{width:min(100%,340px);max-height:95%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;border:1px solid #d0ae75;border-radius:24px;padding:24px 20px;background:#29433e;box-shadow:0 15px 45px #0005}.panel h2{font-size:25px;line-height:1.5;margin:10px 0 15px}.panel p{font-size:13px;line-height:1.7}.panel .eyebrow{font-size:11px;letter-spacing:.1em;color:#ffda8c;margin:0}.panel button{display:block;width:100%;margin-top:12px}.panel progress{display:block;width:100%;height:9px;margin-top:18px;accent-color:#ffc85f}#loading{background:#263f3c;z-index:10}.stars{color:#ffd176;font-size:37px!important;letter-spacing:9px;margin:6px 0}.panel .orak-next{margin-top:20px}.panel{--orak-next-bg:#3b5650;--orak-next-ink:#ffedce;--orak-next-sub:#ddc8a7}
@media(max-width:370px){#village{font-size:9px}#hud{gap:4px;padding:4px}#hud button{min-width:30px;padding:3px 5px}#items button{font-size:10px}#items img{width:22px}.speech{font-size:10px}}
@media(max-height:650px){header span{display:none}header a{margin-right:auto}header{min-height:36px}#hud{font-size:10px}#stage-id{font-size:14px}#village{font-size:9px}#hud button{min-height:30px;font-size:17px}.speech{font-size:9px;padding:3px 7px}#items button{font-size:10px}#items small{font-size:9px}#items img{width:22px}}

.dom-icon{display:inline-grid;place-items:center;width:28px;height:30px;flex-shrink:0;font-size:25px;color:#edb348;text-shadow:0 1px #866138}.coins .dom-icon{width:23px;font-size:23px}

/* Illustrated travel screens */
.game-screen{position:absolute;inset:0;z-index:6;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;text-align:center;background:linear-gradient(#173f3322,#14392e88),url('sprites/bg-title.webp') center/cover}
.title-screen{display:flex;flex-direction:column;align-items:center;padding:18px 20px 12px;overflow:hidden}.title-top{display:flex;justify-content:space-between;width:100%;font-size:13px;font-weight:800}.title-top span{padding:7px 13px;background:#243e35dc;border:1px solid #dfca8b;border-radius:20px}
.title-logo{width:96%;max-height:29%;object-fit:contain;margin-top:2%;filter:drop-shadow(0 4px 3px #1c302055)}.title-scene{position:relative;width:100%;height:25%;min-height:110px;flex-shrink:1;margin:0 0 2%}.title-scene canvas{position:absolute;left:0;top:0;width:96%;height:100%}.title-stop{position:absolute;right:3%;bottom:20%;height:70%;width:15%;object-fit:contain}.title-driver{position:absolute;right:15%;bottom:5%;height:68%;width:22%;object-fit:contain;filter:drop-shadow(0 2px 2px #1236)}
.drive-in{animation:title-arrival .9s cubic-bezier(.15,.7,.3,1) both}@keyframes title-arrival{from{transform:translateX(110%)}to{transform:translateX(0)}}
.title-actions{width:min(100%,330px);display:grid;gap:10px}.title-actions button{min-height:48px;font-size:17px;font-weight:800;background:#fff0d9f5;color:#664732;border:2px solid #b98b50;box-shadow:0 3px #775238}.title-actions #depart{font-size:27px;min-height:60px;background:linear-gradient(#ffdc82,#f4b450)}.title-actions img{width:32px;height:30px;vertical-align:middle;object-fit:contain;margin-right:7px}.title-actions small{display:block;font-size:11px;font-weight:500;margin-top:3px}.icon-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.guide-link{display:inline-block;color:#fff2cf;font-size:12px;margin:16px 0 8px;text-decoration:underline;text-underline-offset:4px;text-shadow:0 1px 4px #132c23}
.screen-bar{position:sticky;top:0;display:flex;align-items:center;gap:8px;padding:9px 10px;background:#29473fea;z-index:3;border-bottom:1px solid #d4bd7e}.screen-bar h2{flex:1;font-size:17px;margin:0}.screen-bar button{font-size:12px;padding:6px 9px}.screen-bar span{font-size:12px}
.map-screen{overflow:hidden;background:#b6c8a1}#route-scroll{height:calc(100% - 64px);overflow-y:auto;touch-action:pan-y}#route-road{position:relative;height:1560px;--art-width:877.5px;background:url('sprites/bg-map.webp') no-repeat;background-size:auto 100%;background-position:calc(50% - 60.98625px) top}.village-banner{position:absolute;left:4%;margin:0;padding:6px 10px;border:2px solid #bc8d55;border-radius:8px;background:#fff0d8ed;color:#64472c;box-shadow:0 4px #765a3b66;font-size:16px;pointer-events:none}.route-stop{position:absolute;width:54px;min-height:48px;border-radius:50%;transform:translate(-50%,-50%);background:#fff0cbee;border:3px solid #b58348;box-shadow:0 4px #73583c;color:#624329;padding:6px;overflow:visible}.route-stop b{display:block;font-size:13px}.route-stop span{display:block;font-size:10px;letter-spacing:1px;color:#be812d}.route-stop:disabled{opacity:.75;background:#8b967eea}.current-stop{border-color:#fff3a0;box-shadow:0 0 0 4px #528a6e,0 5px #76522a}.map-bus{position:absolute;left:-76px;top:-5px;width:90px;height:55px;object-fit:contain;filter:drop-shadow(0 3px 1px #3424)}
.collection-screen{background:linear-gradient(#304b36bb,#304b36bb),url('sprites/bg-map.webp') center/cover}.collection-note{font-size:13px;padding:0 10px}.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 14px 28px}.collection-card{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:10px;border:2px solid #c4a575;border-radius:18px;background:#f9edcfed;color:#5a412f;min-height:150px;box-shadow:0 4px #192d2980}.collection-card.selected{border:4px solid #ffe58a;background:#ffe7b5}.collection-card:disabled{opacity:.65}.collection-card canvas{width:100%;height:auto;aspect-ratio:320/150}.collection-card span,.collection-card b{font-size:12px}.collection-card p{font-size:11px;line-height:1.65;margin:6px 0 0}.guest-art{height:140px;width:100%;object-fit:contain}.gadget-art{height:105px;width:100%;object-fit:contain}.silhouette{filter:brightness(0) opacity(.55)}.dex-tabs{display:flex;gap:8px;justify-content:center;margin:14px 8px 0}.dex-tabs button{font-size:12px}
#result{background:linear-gradient(#193c3355,#183b33cc),url('sprites/bg-title.webp') center/cover}#result .panel{position:relative;background:#29443ef2;padding:14px 16px;border:2px solid #d8ba7b;max-height:97%;width:min(100%,370px)}#result .panel h2{font-size:24px;margin:3px 0 6px}.result-driver{height:90px;max-width:120px;object-fit:contain}#result-stars{height:50px;display:flex;justify-content:center;gap:9px;margin:0}#result-stars .earned-star{width:45px;height:45px;object-fit:contain;animation:star-drop .3s ease-out both}@keyframes star-drop{from{transform:translateY(-80px) scale(1.5);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}#result-note{color:#ffe094;font-weight:800;margin:4px}#result-stats{font-size:11px;margin:5px 0}#driver-line{font-size:12px;background:#fff0d7;color:#60452d;padding:7px;border-radius:10px;margin:7px 0}#daily-rate{color:#ffe19b;font-weight:800}.result-links{display:flex;gap:5px}.result-links button{font-size:11px;padding:5px;min-height:38px}.result-links img{width:20px;height:20px;object-fit:contain;vertical-align:middle}#result .orak-next{margin-top:10px}.share-screen{background:#29443e}.share-screen #share-preview{display:block;width:calc(100% - 32px);max-height:calc(100% - 210px);object-fit:contain;margin:16px auto}.share-actions{display:flex;gap:8px;justify-content:center;padding:0 12px}.share-actions button{font-size:12px;flex:1}.share-screen p{font-size:12px;margin:12px}.game-screen[hidden],#field[hidden]{display:none}
@media(max-height:690px){.title-logo{max-height:24%;margin:0}.title-scene{height:21%;min-height:80px}.title-actions{gap:7px}.title-actions button{min-height:40px;font-size:14px}.title-actions #depart{min-height:48px;font-size:23px}.title-actions img{height:25px;width:25px}.title-screen .guide-link{margin:10px 0 0}.title-top{font-size:11px}}
@media(prefers-reduced-motion:reduce){.drive-in,.earned-star{animation:none!important}}

#village-arrival{position:absolute;top:32%;left:5%;right:5%;padding:14px;background:#fff0d9f5;border:3px solid #bf9354;border-radius:18px;color:#604531;display:none;pointer-events:none;text-align:center;box-shadow:0 8px 20px #243c3570}#village-arrival img{height:70px;float:left;width:65px;object-fit:contain}#village-arrival strong{display:block;font-size:22px;margin:9px 0}#village-arrival span{font-size:12px}#village-arrival.entering{display:block;animation:village-entry 2.8s both}@keyframes village-entry{0%{opacity:0;transform:translateY(20px)}12%,75%{opacity:1;transform:translateY(0)}100%{opacity:0;visibility:hidden}}

#share-link{display:block;width:90%;margin:8px auto;padding:10px;border:1px solid #e0c27e;border-radius:8px;background:#fff2d9;color:#51412c;font-size:12px;user-select:text}#share-link[hidden]{display:none}

/* Keep unavailable items legible at a glance. Safe-area padding belongs to #stage. */
#items button:disabled{opacity:1;background:#d6d4c9;color:#575851;border-color:#8b9085;box-shadow:0 3px #626e63}#items button:disabled img{filter:grayscale(1);opacity:.82}#items button:disabled small{color:#55594f}

.icon-actions{grid-template-columns:1fr 1fr 1fr;gap:6px}.title-actions .icon-actions button{font-size:13px;padding:6px 3px}.icon-actions img{width:24px;margin-right:2px}
#book-host{position:absolute;inset:0;z-index:7;background:#29443e}#book-host[hidden]{display:none}#book-host .osc-book{height:100%}#book-host .osc-header{min-height:58px}#book-host .osc-back{width:44px}#book-host .osc-book-scroll{touch-action:pan-y}
.lv-score{display:block;font-size:10px;line-height:12px;letter-spacing:0;color:#624329}.lv-score.perfect{color:#946000;font-weight:900}.route-stop{padding:3px;min-height:52px}
#result{padding:8px}#result .panel{padding:9px 12px;overflow:hidden;max-height:100%}#result .result-driver{height:48px}#result .panel h2{font-size:21px;line-height:1.3;margin:2px}#result-stars{height:35px}#result-stars .earned-star{width:32px;height:32px}#result .panel p{line-height:1.35}#result .panel button{margin-top:7px;min-height:40px;padding:6px}#result .guide-link{margin:5px;font-size:10px}#result #driver-line{padding:5px;margin:4px 0;font-size:11px}#result #next-games{display:none}#trip-score .osc-breakdown{margin:4px 0;padding:7px 10px}#trip-score .osc-row{font-size:12px;min-height:19px}#trip-score .osc-total{margin-top:3px;padding-top:4px}#trip-score .osc-number{font-size:25px}.perfect-chip{display:inline-block;background:#ffe09b;color:#624329;border-radius:12px;padding:3px 9px;margin:3px!important;font-size:11px!important}.perfect-chip[hidden]{display:none}#trip-rank{font-size:11px!important;margin:3px}

#result .osc-compact .osc-label{font-size:12px}#result .osc-compact .osc-row{padding:1px 0}#result .panel button{margin-top:5px;min-height:38px}#result #result-stats{margin:3px 0}#result .result-driver{height:38px}

/* Persona QA: full-size controls and a complete result on short phones. */
#hud{height:54px;padding:4px;gap:4px}#hud button{min-width:44px;min-height:44px;padding:3px}
.guide-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;margin:0}
#result .panel button{min-height:44px;margin-top:4px}#result .guide-link{min-height:44px;margin:0}
#result .result-driver{height:30px}#result .panel{padding:6px 12px}#result #trip-score .osc-breakdown{padding:5px 9px;margin:2px 0}
#result #trip-score .osc-row{padding:0;min-height:16px;line-height:1.2}#result #trip-score .osc-value{font-size:13px}
#result #trip-score .osc-total{padding:2px 0 0;margin-top:2px}#result #trip-score .osc-number{font-size:23px}
#result #trip-score .osc-best{margin-top:0;font-size:10px}#result #result-note,#result #result-stats{margin:2px 0}
#result #driver-line{padding:3px;margin:2px 0;font-size:10px}#result #result-ad:empty{display:none}
@media(max-height:690px){.title-actions button{min-height:44px}.title-screen .guide-link{margin:0}#result .result-driver{height:24px}#result-stars{height:30px}#result-stars .earned-star{width:28px;height:28px}}

#result .perfect-chip{padding:2px 9px;margin:1px!important}

/* 3.0 판 화면: 나무 현판 HUD, 둥근 나무 단추, 나무 아이템 판. 크림 상자 없음. */
#hud{top:4px;left:2%;right:2%;height:54px;padding:2px 6px 0 24px;gap:5px;background:url('sprites/ui-hud.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;color:#fff4dc;text-shadow:0 1px 0 #4a2a12,0 0 3px #4a2a12}
#hud>div{align-items:center;min-width:0;overflow:hidden}#stage-id{font-size:21px;color:#fff2cf;letter-spacing:.5px}#village{font-size:13px;color:#ffe9c2;border-left:2px solid #ffe2b088;padding-left:6px;overflow:hidden;text-overflow:ellipsis}
#hud .coins b{font-size:15px;color:#fff2cf}#hud .coins img{width:22px;height:22px}
#hud button{min-width:44px;min-height:44px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:url('sprites/ui-round.webp') center/100% 100% no-repeat;color:#fff2cf;font-size:19px;font-weight:900;box-shadow:none;text-shadow:0 1px 0 #3d2410}
#items{bottom:6px;height:62px;gap:6px}
#items button{background:url('sprites/ui-item.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;color:#5a3b22;padding:4px 8px 6px;gap:4px;font-size:13px}
#items small{color:#6e4b2c;font-weight:700}
#items button:disabled{background:url('sprites/ui-item.webp') center/100% 100% no-repeat;filter:grayscale(.85) brightness(.92);border:0;box-shadow:none;color:#4e4338}
@media(max-width:370px){#stage-id{font-size:18px}#village{font-size:11px}#hud button{width:42px;height:42px;min-width:42px;min-height:42px}}
/* 3.0: 기사님 말풍선은 아이템 위(골목 아래쪽)로, 알림은 HUD 바로 아래로. 마을 도착은 찻길 위 나무 현판. */
.speech{top:auto;bottom:74px;left:3%;right:3%;min-height:46px;padding:7px 10px 7px 52px;font-size:13px;line-height:1.35;background:#fff3d8f2;border:2px solid #b7834b;border-radius:14px;color:#5a3b22;box-shadow:0 3px 0 #8a5f34}
.speech::before{content:'';position:absolute;left:6px;bottom:4px;width:40px;height:44px;background:url('sprites/drv-head-smile.webp') center/contain no-repeat}
#notice{top:62px;bottom:auto;font-size:13px;z-index:3}
#village-arrival{top:58px;left:4%;right:4%;padding:8px 10px;background:#fff1d8f7;border:3px solid #a8743f;border-radius:16px;box-shadow:0 4px 0 #7a5230,0 8px 18px #243c3555;z-index:3}
#village-arrival img{height:58px;width:54px}#village-arrival strong{font-size:21px;margin:4px 0 2px}#village-arrival span{font-size:13px}
@media(max-height:650px){.speech{font-size:12px;bottom:70px}#village-arrival img{height:48px}#village-arrival strong{font-size:18px}}
#notice{color:#5a3b22;background:#fff1d4f5;border:2px solid #b7834b;border-radius:12px;box-shadow:0 3px 0 #8a5f34;font-weight:700}#notice:empty{border:0;box-shadow:none}
#pick-mode{background:#fff1d4f7;color:#5a3b22;border:2px solid #b7834b;border-radius:14px;box-shadow:0 3px 0 #8a5f34;font-size:14px;font-weight:700}#pick-mode button{background:#a8743f;color:#fff6e4;border:0;border-radius:10px;min-height:40px;font-weight:700}
#stage-id{font-size:24px}#village{font-size:15px;font-weight:700}#hud .coins b{font-size:17px}
#items button{font-size:15px}#items small{font-size:13px;margin-top:1px}#items img{width:34px;height:36px}
@media(max-height:650px),(max-width:370px){#stage-id{font-size:20px}#village{font-size:13px}#items button{font-size:13px}#items small{font-size:12px}#items img{width:28px;height:30px}}
#items button{font-size:14px;padding:4px 14px 6px}#items small{font-size:12px}#items img{width:30px;height:32px}
#items button{padding:4px 8px 6px;gap:3px;white-space:nowrap}#items button>span{min-width:0}
@media(max-width:400px){#items button{font-size:13px}#items img{width:26px;height:28px}}
@media(max-width:370px){#items button{font-size:12px;padding:4px 5px 6px}#items small{font-size:11px}#items img{width:22px;height:24px}}
#items button>span{display:block;line-height:1.15}#items button>span small{font-size:.86em}
#items{left:2%;right:2%;gap:5px}

/* 3.0 결과: 마을 그림 위에 크게 서 있는 기사님 + 승차권 종이 + 나무 간판 + 둥근 나무 단추. */
#result{background:linear-gradient(#20140a40,#20140a99),var(--scene,url('sprites/bg-1.webp')) center/cover;padding:6px 10px}
#result .panel.r3{width:min(100%,380px);max-height:100%;overflow-y:auto;padding:0 2px 6px;background:none;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;align-items:center;gap:6px;color:#4e321c}
#result .panel.r3 .result-driver{height:clamp(92px,19vh,150px);max-width:none;width:auto;margin:0 0 -34px;position:relative;z-index:2;filter:drop-shadow(0 4px 4px #2a180b66);animation:r3-bob 1.6s ease-in-out infinite}
@keyframes r3-bob{50%{transform:translateY(-4px) rotate(-1deg)}}
.r3-ticket{position:relative;width:100%;padding:30px 30px 26px;background:url('sprites/ui-ticket-big.webp') center/100% 100% no-repeat;text-align:center;filter:drop-shadow(0 6px 8px #2a180b55)}
#result .panel.r3 .r3-plaque{display:inline-block;min-width:62%;margin:0;padding:7px 26px;background:url('sprites/ui-scroll.webp') center/100% 100% no-repeat;color:#5a3b22;font-size:15px;font-weight:800;letter-spacing:0}
#result.lost .panel.r3 .r3-plaque{background-image:url('sprites/ui-plaque-red.webp');color:#fff2dc;padding:7px 44px}
#result .panel.r3 h2{font-size:clamp(25px,8vw,32px);line-height:1.15;margin:6px 0 2px;color:#3f2814;text-shadow:0 2px 0 #fff6e2}
#result .panel.r3 #result-stars{height:48px;margin:2px 0}#result .panel.r3 #result-stars .earned-star{width:46px;height:46px}
.r3-checks{list-style:none;margin:0 auto 4px;padding:0;display:grid;gap:2px;justify-content:center;text-align:left;font-size:14px;font-weight:700;color:#5d4128}
.r3-checks li{display:flex;align-items:center;gap:7px}.r3-checks li::before{content:'';width:18px;height:18px;border:2px solid #8f6a44;border-radius:5px;background:#fffaf0;flex-shrink:0}
.r3-checks li.ok::before{content:'✓';display:grid;place-items:center;background:#57a63d;border-color:#2f6b23;color:#fff;font-size:14px;font-weight:900;line-height:1}
.r3-checks li:not(.ok){color:#9a8670}
.r3-scene{width:100%;max-height:150px;object-fit:contain;margin:4px 0}
#result .r3 #trip-score .osc-breakdown{background:transparent;border:0;border-top:2px dashed #c9a77c;border-radius:0;padding:4px 4px 0;margin:4px 0 0;color:#5a3b22}
#result .r3 #trip-score .osc-value{color:#5a3b22;font-weight:800}#result .r3 #trip-score .osc-label{color:#6b4a2e;font-size:13px}
#result .r3 #trip-score .osc-total{border-top:0}#result .r3 #trip-score .osc-number{color:#c8371f;text-shadow:0 2px 0 #fff3d6}#result .r3 #trip-score .osc-best{color:#7d5d3d}
#result .r3 .osc-seal{background:url('sprites/ui-stamp.webp') center/contain no-repeat;border:0;color:#c8241c;width:62px;height:62px;min-width:0;padding:0;font-size:13px;top:-6px;right:-4px}
#result .panel.r3 .r3-coins{display:inline-flex;align-items:center;gap:6px;margin:4px auto 0;padding:4px 16px;border:2px solid #b7834b;border-radius:999px;background:#fff3d6;font-size:15px;font-weight:800;color:#5a3b22;line-height:1.3}
#result .panel.r3 .r3-coins::before{content:'';width:22px;height:22px;background:url('sprites/icon-coin.webp') center/contain no-repeat}
#result.lost .panel.r3 .r3-coins{border:0;background:none;padding:0;font-size:14px}#result.lost .panel.r3 .r3-coins::before{display:none}
#result .panel.r3 #result-stats,#result .panel.r3 #daily-rate{font-size:12px;color:#7a5a3a;margin:2px 0;line-height:1.3}
#result .panel.r3 #driver-line{font-size:13px;color:#5a3b22;background:none;margin:2px 0 0;padding:0;line-height:1.35}
#result .panel.r3 .r3-sign{width:88%;min-height:60px;margin:2px 0 0;border:0;border-radius:0;box-shadow:none;background:url('sprites/ui-sign.webp') center/100% 100% no-repeat;color:#fff6e2;font-size:25px;font-weight:900;text-shadow:0 2px 0 #4b2a10,0 0 4px #4b2a10;padding:0 40px}
#result .panel.r3 .r3-row{display:flex;gap:8px;width:100%;justify-content:center;flex-wrap:wrap}
#result .panel.r3 #fail-undo,#result .panel.r3 .r3-row .orak-ad-slot button{min-height:46px;margin:0;border:0;border-radius:0;box-shadow:none;background:url('sprites/ui-item.webp') center/100% 100% no-repeat;color:#5a3b22;font-size:14px;font-weight:800;padding:4px 16px;flex:1;min-width:0}
#result .panel.r3 .r3-row .orak-ad-slot{flex:1;min-width:0;margin:0}#result .panel.r3 .r3-row .orak-ad-slot:empty{display:none}
#result .panel.r3 .result-links{display:flex;justify-content:center;gap:14px;margin:2px 0 0}
#result .panel.r3 .result-links button{width:74px;height:74px;min-height:0;margin:0;padding:6px 4px 4px;border:0;border-radius:50%;box-shadow:none;background:url('sprites/ui-round.webp') center/100% 100% no-repeat;color:#fff4dc;font-size:11px;font-weight:800;line-height:1.1;text-shadow:0 1px 0 #3d2410;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
#result .panel.r3 .result-links img{width:26px;height:26px;object-fit:contain}
#result .panel.r3 .guide-link{color:#fff3d6;text-shadow:0 1px 2px #2a180b;font-size:12px;min-height:36px}
@media(max-height:700px){#result .panel.r3 .result-driver{height:clamp(70px,14vh,110px);margin-bottom:-26px}.r3-ticket{padding:24px 26px 20px}#result .panel.r3 h2{font-size:24px}#result .panel.r3 #result-stars{height:36px}#result .panel.r3 #result-stars .earned-star{width:36px;height:36px}.r3-checks{font-size:13px}.r3-scene{max-height:110px}#result .panel.r3 .r3-sign{min-height:52px;font-size:22px}#result .panel.r3 .result-links button{width:64px;height:64px;font-size:10px}#result .panel.r3 .result-links img{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){#result .panel.r3 .result-driver{animation:none}}
#result .panel.r3 button:focus{outline:none}#result .panel.r3 button:focus-visible{outline:3px solid #ffe27a;outline-offset:2px}
#result .panel.r3 .result-links button[hidden]{display:none}
#result:not(.lost) .panel.r3 #result-stats,#result:not(.lost) .panel.r3 #driver-line{display:none}
#result .r3 #trip-score .osc-row{padding:0;min-height:0;line-height:1.25}#result .r3 #trip-score .osc-label{font-size:12.5px}#result .r3 #trip-score .osc-value{font-size:13.5px}
#result .r3 #trip-score .osc-total{margin-top:2px;padding-top:2px}#result .r3 #trip-score .osc-number{font-size:30px;line-height:1.1}
#result .r3 #trip-score .osc-breakdown{display:block}
#result .r3 #trip-score .osc-rows,#result .r3 #trip-score .osc-list{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
#result .r3 #trip-score .osc-breakdown{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
#result .r3 #trip-score .osc-total,#result .r3 #trip-score .osc-best{grid-column:1/-1}
#result .r3 #trip-score .osc-total{flex-direction:row;justify-content:center;gap:10px;align-items:baseline}
#result .r3 #trip-score .osc-delta{font-size:12px;color:#b8664a}
#result .panel.r3 button:focus-visible{outline:none;filter:drop-shadow(0 0 5px #ffe27a)}
#result .r3 #trip-score .osc-breakdown{overflow:visible}
#result .panel.r3 .result-links button small{font-size:9px;font-weight:700;color:#ffe6b0}
#result .panel.r3 .result-links #fail-undo{width:74px;height:74px;min-height:0;margin:0;flex:none;padding:4px;background:url('sprites/ui-round.webp') center/100% 100% no-repeat;color:#fff4dc}
#result.lost .panel.r3 #result-stats{display:none}
#result.lost .panel.r3 h2{margin-bottom:0}
@media(max-height:700px){#result .panel.r3 .result-links #fail-undo{width:64px;height:64px}#result.lost .r3-scene{max-height:96px}#result.lost .panel.r3 .result-driver{height:84px}}
#result .panel.r3 .result-links #fail-undo span{font-size:10px}
#result .panel.r3 .result-driver{height:clamp(110px,22vh,170px);margin-bottom:-40px}
@media(max-height:700px){#result .panel.r3 .result-driver{height:clamp(84px,16vh,120px);margin-bottom:-30px}}

/* 3.0 첫 화면: 노을 정류장 그림(캔버스) + 로고 + 기와 현판 출발 + 승차권 + 두루마리 + 정류장 표지판 셋. */
.title-screen{background:#3b2a3a;padding:10px 16px 6px;gap:0}
.title-art{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.title-screen>*:not(.title-art){position:relative;z-index:1}
.title-top span{background:#2a1c14d0;border:1.5px solid #e9c98c;color:#fff2d4;font-size:14px;padding:6px 13px}
.title-logo{width:84%;max-height:26%;margin-top:0}
.title-gap{flex:1;min-height:150px;width:100%}
.title-actions{width:min(100%,350px);gap:4px;justify-items:center}
.title-actions>button{border:0;border-radius:0;box-shadow:none;background:none;color:#4f321c;width:100%;padding:0;min-height:0}
.title-actions #depart{order:0;height:96px;width:100%;background:url('sprites/ui-gate.webp') center/100% 100% no-repeat;font-size:36px;font-weight:900;color:#5a3313;text-shadow:0 2px 0 #ffe9b8;padding-top:30px;line-height:1}
.title-actions #daily-launch{order:1;height:62px;width:96%;background:url('sprites/ui-ticket-wide.webp') center/100% 100% no-repeat;display:flex;align-items:center;justify-content:center;gap:8px;font-size:19px}
.title-actions #daily-launch b{font-weight:900}.title-actions #daily-launch small{display:block;font-size:12px;color:#b4531b;font-weight:800;margin-top:1px}
.title-actions #daily-launch img{width:36px;height:36px;margin:0}
.title-actions #title-map{order:2;height:56px;width:96%;background:url('sprites/ui-scroll-map.webp') center/100% 100% no-repeat;font-size:21px;font-weight:900}
.title-actions .icon-actions{order:3;display:flex;justify-content:center;gap:16px;width:100%;margin-top:2px}
.title-actions .icon-actions button{width:84px;height:104px;min-height:0;padding:0 0 26px;border:0;box-shadow:none;border-radius:0;background:url('sprites/ui-post-blue.webp') center/contain no-repeat;color:#4f321c;font-size:13px;font-weight:900;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.1}
.title-actions .icon-actions .post-yellow{background-image:url('sprites/ui-post-yellow.webp')}.title-actions .icon-actions .post-red{background-image:url('sprites/ui-post-red.webp')}
.title-actions .icon-actions img{width:34px;height:30px;margin:0 0 1px}.title-actions .book-icon{font-size:24px;line-height:30px;color:#8a3a2a}
.title-actions .icon-actions span{max-width:66px;overflow-wrap:anywhere}
.title-screen .guide-link{margin:0;min-height:30px;font-size:12px;color:#fff2cf;text-shadow:0 1px 3px #1b120a}
@media(max-height:700px){.title-logo{max-height:22%}.title-gap{min-height:120px}.title-actions #depart{height:80px;font-size:30px;padding-top:24px}.title-actions #daily-launch{height:54px;font-size:17px}.title-actions #title-map{height:48px;font-size:19px}.title-actions .icon-actions button{width:72px;height:90px;font-size:12px;padding-bottom:22px}.title-actions .icon-actions img{width:28px;height:26px}}
.title-actions .icon-actions span{white-space:nowrap;max-width:none}
.title-gap{min-height:110px}
@media(max-height:650px){.title-logo{max-height:20%}.title-top span{font-size:12px;padding:4px 10px}.title-actions #depart{height:72px;font-size:27px;padding-top:22px}.title-actions #daily-launch{height:50px}.title-actions #title-map{height:44px;font-size:18px}.title-actions .icon-actions button{width:66px;height:82px;padding-bottom:20px;font-size:11px}.title-screen .guide-link{min-height:24px;font-size:11px}}
.title-actions .icon-actions span{white-space:normal;overflow-wrap:normal;word-break:keep-all;hyphens:manual;display:block;max-width:72%;line-height:1.05}
@media(max-height:780px){.title-logo{max-height:19%}}

/* 3.0 노선도: 마을 길 그림 7장, 나무·돌·금 정류장 표지판, 마을 팻말, 나무 띠 */
.screen-bar{background:#5b3a1f url('sprites/ui-bar.webp') center/100% 100% no-repeat;border:0;min-height:56px;padding:8px 12px;box-shadow:0 3px 6px #2a170a66}
.screen-bar h2{color:#fff3d6;text-align:center;text-shadow:0 2px 0 #4a2a10,0 0 3px #4a2a10;font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.screen-bar button{background:#fff1d6;border:2px solid #7a5230;border-radius:999px;color:#5a3a1e;font-weight:800;box-shadow:0 2px #4a2a10}
.screen-bar span#map-stars,.screen-bar #garage-stars{background:url('sprites/ui-plate.webp') center/100% 100% no-repeat;color:#fff3c8;font-weight:800;padding:7px 13px;white-space:nowrap;text-shadow:0 1px #2a170a}
.map-screen{background:#3e5c3a}#route-scroll{height:calc(100% - 56px)}
#route-road{background:none;overflow:hidden}
.map-tile{position:absolute;left:0;width:100%;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none}
.map-tile.fade{-webkit-mask-image:linear-gradient(to top,transparent 0,#000 8%);mask-image:linear-gradient(to top,transparent 0,#000 8%)}
.village-banner{position:absolute;left:auto;right:1%;width:48%;aspect-ratio:380/276;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:url('sprites/ui-signpost.webp') center/100% 100% no-repeat;filter:drop-shadow(0 4px 3px #2a170a55);z-index:1}
.village-banner span{position:absolute;left:24%;right:4%;top:17%;height:52%;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;color:#4b2f17;font-size:clamp(14px,4.3vw,19px);font-weight:900}
.route-stop{position:absolute;width:15.5%;aspect-ratio:1;min-height:0;padding:0;border:0;border-radius:50%;box-shadow:none;transform:translate(-50%,-50%);background:url('sprites/ui-stop.webp') center/100% 100% no-repeat;filter:drop-shadow(0 4px 2px #2a170a66);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#55361a;z-index:2;overflow:visible}
.route-stop b{font-size:clamp(14px,4.5vw,20px);line-height:1;font-weight:900}
.route-stop .stop-stars{font-size:clamp(9px,2.8vw,12px);letter-spacing:0;line-height:1;color:#c3a373}.stop-stars em{font-style:normal;color:#f0a818;text-shadow:0 0 1px #7a4a00}
.route-stop.locked,.route-stop:disabled{opacity:1;background-image:url('sprites/ui-stop-lock.webp');color:#4f4f4f}
.stop-lock{width:34%;height:auto}
.current-stop{width:19%;z-index:3;background-image:url('sprites/ui-stop-gold.webp');box-shadow:none;border:0;animation:stopPulse 1.6s ease-in-out infinite}
.current-stop b{font-size:clamp(17px,5.4vw,24px)}
@keyframes stopPulse{50%{transform:translate(-50%,-50%) scale(1.06)}}
.stop-spark{position:absolute;left:-2%;top:-14%;width:30%;height:30%;pointer-events:none}
.stop-spark::before,.stop-spark::after,.stop-spark{background:none}
.stop-spark::before,.stop-spark::after{content:"";position:absolute;width:18%;height:70%;border-radius:4px;background:#ffd23a;box-shadow:0 0 0 1.5px #a86a00;transform-origin:50% 100%}
.stop-spark::before{left:30%;top:0;transform:rotate(-20deg)}.stop-spark::after{left:-10%;top:40%;transform:rotate(-60deg)}
.map-bus{position:absolute;left:auto;right:96%;top:22%;width:150%;height:auto;filter:drop-shadow(0 3px 2px #2a170a55);animation:mapBus 1.2s ease-in-out infinite}
@keyframes mapBus{50%{transform:translateY(-2px)}}
.route-stop .lv-score{position:absolute;top:96%;left:50%;transform:translateX(-50%);background:#fff3dcee;border-radius:8px;padding:0 5px;font-size:10px;line-height:14px;white-space:nowrap;color:#624329}
@media (prefers-reduced-motion:reduce){.current-stop,.map-bus{animation:none}}
.route-stop.locked,.route-stop:disabled{background:url("sprites/ui-stop-lock.webp") center/100% 100% no-repeat transparent}.route-stop .stop-lock{flex:none;width:30%;height:30%}.current-stop,.current-stop:disabled{background:url("sprites/ui-stop-gold.webp") center/100% 100% no-repeat transparent}
.village-banner span{white-space:normal;text-align:center;line-height:1.08;word-break:keep-all;overflow-wrap:anywhere}.screen-bar h2{text-overflow:clip}
.village-banner span{overflow-wrap:normal;word-break:normal}
.village-banner span{left:27%;right:7%;top:19%;height:48%}
.current-stop{animation:none}.current-stop::before{content:"";position:absolute;inset:-8%;border-radius:50%;background:radial-gradient(circle,#ffe58a00 55%,#ffe58acc 66%,#ffe58a00 74%);animation:stopGlow 1.6s ease-in-out infinite;pointer-events:none;z-index:-1}
@keyframes stopGlow{50%{transform:scale(1.12);opacity:.55}}
@media (prefers-reduced-motion:reduce){.current-stop::before{animation:none}}

/* 3.0 쉬기: 기와지붕 나무 게시판, 기사님 숨쉬기, 나무 단추 */
#paused{background:#1d140b8c}
#paused .panel{position:relative;width:min(92%,330px);aspect-ratio:505/457;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none;background:url('sprites/ui-board.webp') center/100% 100% no-repeat;padding:24% 13% 9%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#4b2f17;filter:drop-shadow(0 8px 8px #0007)}
#paused .pause-driver{position:absolute;left:-6%;bottom:-4%;width:30%;transform-origin:50% 100%;animation:drvBreath 2.4s ease-in-out infinite;pointer-events:none}
@keyframes drvBreath{50%{transform:scaleY(1.035) translateY(-1px)}}
#paused .eyebrow{margin:0;color:#7b5530;font-size:13px;font-weight:800}
#paused h2{margin:0 0 4px;color:#4b2f17;font-size:20px;line-height:1.2;text-shadow:none}
#paused .panel>button:not(.orak-home){width:84%;min-height:40px;margin:0;border:0;border-radius:0;box-shadow:none;background:url('sprites/ui-tab.webp') center/100% 100% no-repeat;color:#fff3d6;font-weight:800;font-size:15px;text-shadow:0 1px #2a170a}
#paused #resume{background-image:url('sprites/ui-btn.webp');color:#4b2f17;text-shadow:0 1px #ffe8b0;min-height:46px;font-size:17px}
@media (prefers-reduced-motion:reduce){#paused .pause-driver{animation:none}}
/* 3.0 차고·손님 도감: 마을 그림 위 나무 카드 */
.collection-screen{background:linear-gradient(#24160acc,#24160aa6),url('sprites/map-3.webp') center/cover}
.collection-note,#garage-stars{display:block;width:max-content;max-width:92%;margin:12px auto 0;padding:7px 18px;background:url('sprites/ui-tab.webp') center/100% 100% no-repeat;color:#fff3d6;font-weight:800;text-shadow:0 1px #2a170a;text-align:center}
.dex-tabs button{border:0;border-radius:0;box-shadow:none;min-width:40%;background:url('sprites/ui-tab.webp') center/100% 100% no-repeat;color:#fff3d6;font-weight:800;text-shadow:0 1px #2a170a}
.dex-tabs button.primary{background-image:url('sprites/ui-btn.webp');color:#4b2f17;text-shadow:none}
.collection-card{border:0;border-radius:0;box-shadow:none;background:url('sprites/ui-card.webp') center/100% 100% no-repeat;padding:14% 11% 12%;color:#4b2f17;filter:drop-shadow(0 5px 4px #0006)}
.collection-card.selected{border:0;background:url('sprites/ui-card-gold.webp') center/100% 100% no-repeat}
.collection-card:disabled{opacity:1;background:url('sprites/ui-card-lock.webp') center/100% 100% no-repeat;color:#fff0cf}
.collection-card:disabled canvas{filter:grayscale(.7) brightness(.75)}
.collection-card b{font-size:14px;font-weight:900}.collection-card span{font-size:13px;font-weight:800}
.collection-card.selected canvas{animation:mapBus 1.4s ease-in-out infinite}
.guest-art:not(.silhouette),.gadget-art:not(.silhouette){transform-origin:50% 100%;animation:drvBreath 2.6s ease-in-out infinite}
.collection-grid article:nth-child(2n) img{animation-delay:-1.1s}
@media (prefers-reduced-motion:reduce){.collection-card.selected canvas,.guest-art,.gadget-art{animation:none}}
#paused .panel{aspect-ratio:auto;width:min(94%,340px);min-height:0;padding:30% 13% 12%;display:grid;grid-template-columns:1fr 1fr;align-content:center;justify-items:center;gap:6px}
#paused .panel>*{grid-column:1/-1}
#paused .eyebrow{margin-top:2px}
#paused .panel>#pause-restart,#paused .panel>#pause-map{grid-column:auto;width:100%;font-size:14px;min-height:38px;padding:4px 6px}
#paused #resume{width:92%}
#paused .pause-driver{grid-column:auto}
#paused .panel{align-content:start}#paused h2{font-size:clamp(16px,5vw,20px)}
#paused .panel{padding-top:35%}

/* 3.0 자랑 카드 화면 */
.share-screen{background:linear-gradient(#24160acc,#24160aa6),url('sprites/map-1.webp') center/cover}
.share-actions button{border:0;border-radius:0;box-shadow:none;background:url('sprites/ui-tab.webp') center/100% 100% no-repeat;color:#fff3d6;font-weight:800;text-shadow:0 1px #2a170a}
.share-actions button.primary{background-image:url('sprites/ui-btn.webp');color:#4b2f17;text-shadow:none}
#share-note{color:#fff3d6;text-shadow:0 1px 2px #000}
#share-preview{filter:drop-shadow(0 6px 8px #0008)}
.share-actions button{white-space:nowrap;overflow:hidden;padding-left:6px;padding-right:6px}
.share-actions button.primary,.dex-tabs button.primary{padding-left:9%;padding-right:9%}
/* 3.0 기록장: 마을 그림 위 나무 띠 + 종이 칸 */
#book-host{background:#3b2414 url('sprites/map-3.webp') center/cover;--osc-ink:#4b2f17}
#book-host .osc-book{background:linear-gradient(#24160ad0,#24160ae6);color:#fff3d6}
#book-host .osc-header{background:#5b3a1f url('sprites/ui-bar.webp') center/100% 100% no-repeat;border:0;box-shadow:0 3px 6px #2a170a66}
#book-host .osc-header .osc-title,#book-host .osc-header h2{color:#fff3d6;text-shadow:0 2px 0 #4a2a10}
#book-host .osc-back{background:#fff1d6;border:2px solid #7a5230;border-radius:999px;color:#5a3a1e;box-shadow:0 2px #4a2a10}
#book-host .osc-heading{color:#ffe7a8;text-shadow:0 1px 2px #000}
#book-host :is(.osc-record,.osc-challenge){background:#f6e6c4 linear-gradient(#fff6e0,#efd9ad);border:3px solid #8a5a2c;border-radius:12px;box-shadow:0 4px 0 #4a2a10,0 6px 8px #0005;color:#4b2f17}
#book-host :is(.osc-label,.osc-sub,.osc-date,.osc-challenge-text){color:#6d4a28}
#book-host .osc-record-value{color:#4b2f17}
#book-host .osc-challenge.osc-done{background:#fff1c8 linear-gradient(#fff4d2,#f5dc9c);border-color:#c48a1c}
#stage-id{white-space:nowrap}#stage-id.daily{font-size:17px;letter-spacing:0;max-width:none;overflow:hidden}#hud #village{min-width:0}
/* 3.0 첫 화면 단추를 시안 크기로(정류장 표지판 지름 ≈ 화면 폭 22%) */
.title-actions .icon-actions{gap:10px}
.title-actions .icon-actions button{width:min(25vw,100px);height:min(31vw,124px);background-size:100% 100%;font-size:15px;padding-bottom:30%}
.title-actions .icon-actions img{width:38px;height:34px}.title-actions .book-icon{font-size:30px;line-height:34px}
.title-actions #depart{font-size:38px;text-shadow:0 2px 0 #ffe9b8,0 0 1px #5a3313}
.title-actions #title-map{font-size:22px}.title-actions #daily-launch{font-size:20px}
@media(max-height:700px){.title-actions .icon-actions button{width:min(24vw,92px);height:min(29vw,112px);font-size:14px}.title-actions .icon-actions img{width:34px;height:30px}.title-actions #depart{font-size:34px}}
@media(max-height:650px){.title-actions .icon-actions button{width:min(22vw,82px);height:min(27vw,100px);font-size:12px}.title-actions .icon-actions img{width:30px;height:27px}.title-actions #depart{font-size:30px}}
.title-actions .icon-actions button{justify-content:center;padding:0 4px min(9vw,36px);font-size:17px;gap:2px}
@media(max-height:700px){.title-actions .icon-actions button{padding-bottom:min(8.4vw,33px);font-size:16px}}
@media(max-height:650px){.title-actions .icon-actions button{padding-bottom:min(7.6vw,29px);font-size:14px}}
/* 3.0 글씨: 시안의 굵고 둥근 글씨 = Jua(다른 3.0 게임과 같음). 한글·라틴 언어만, 나머지는 기본 굵은 글씨. */
:root{--game:"Jua",var(--orak-font,system-ui),sans-serif}
html:is([lang=ko],[lang=en],[lang=es],[lang=pt-BR],[lang=id],[lang=de],[lang=fr],[lang=vi]) :is(#stage-id,#village,#hud .coins b,#items button,.speech,#notice,#arrival-name,.title-actions button,.title-actions button b,.title-actions span,.screen-bar h2,.screen-bar button,#map-stars,.route-stop b,.village-banner span,#paused h2,#paused .eyebrow,#paused .panel>button,.collection-card b,.collection-card span,.dex-tabs button,.collection-note,#garage-stars,.share-actions button,#result .panel.r3 h2,#result .r3-plaque,#result .r3-sign,#result .result-links button,#result-checks li,#result .r3-coins,#trip-score .osc-total,#trip-score .osc-number,#book-host .osc-header .osc-title,#book-host .osc-heading,#book-host .osc-record-value){font-family:var(--game)!important;font-weight:400!important}
/* 결과: 시안 크기에 맞춰 기사님·별·간판·둥근 단추 키움 */
#result .panel.r3 #result-stars{height:50px}#result .panel.r3 #result-stars .earned-star{width:48px;height:48px}
#result .panel.r3 .r3-sign{font-size:30px;min-height:66px}
#result .panel.r3 .result-links{gap:8px}
#result .panel.r3 .result-links button,#result .panel.r3 .result-links #fail-undo{width:min(21vw,84px);height:min(21vw,84px);font-size:13px}
#result .panel.r3 .result-links img{width:30px;height:30px}
#result .panel.r3 h2{font-size:clamp(28px,9vw,36px)}
#result-checks li{font-size:16px}
@media(max-height:700px){#result .panel.r3 #result-stars{height:42px}#result .panel.r3 #result-stars .earned-star{width:40px;height:40px}#result .panel.r3 h2{font-size:28px}#result .panel.r3 .r3-sign{font-size:26px;min-height:56px}#result .panel.r3 .result-links button,#result .panel.r3 .result-links #fail-undo{width:min(19vw,72px);height:min(19vw,72px);font-size:12px}}
html:has(#result:not([hidden])) .osc-toast{bottom:auto!important;top:calc(env(safe-area-inset-top,0px) + 58px)!important}
#result .panel.r3 .result-driver{height:clamp(130px,23vh,180px);margin-bottom:-44px}
@media(max-height:700px){#result .panel.r3 .result-driver{height:clamp(110px,20vh,140px);margin-bottom:-38px}#result.lost .r3-scene{max-height:150px}#result.lost .panel.r3 .result-driver{height:120px}}
#result.lost .panel.r3 h2{font-size:clamp(28px,9.2vw,36px)}
html:has(#result:not([hidden])) .osc-toast{top:calc(env(safe-area-inset-top,0px) + 6px)!important}
#trip-score .osc-label{word-break:normal;overflow-wrap:normal;hyphens:auto}
@media(max-height:650px){#result .panel.r3 .result-driver{height:92px;margin-bottom:-30px}#result.lost .panel.r3 .result-driver{height:96px}#result .panel.r3 h2{font-size:24px}#result.lost .panel.r3 h2{font-size:26px}#result .panel.r3 #result-stars{height:34px}#result .panel.r3 #result-stars .earned-star{width:32px;height:32px}#result-checks li{font-size:14px}#result .panel.r3 .r3-sign{font-size:23px;min-height:50px}#result.lost .r3-scene{max-height:110px}#trip-score .osc-label{font-size:11px}}
html:has(#result:not([hidden])) .osc-toast{top:calc(env(safe-area-inset-top,0px) + 50px)!important}
@media(max-height:650px){#result .panel.r3 #trip-score .osc-breakdown .osc-row{display:none}}

/* ===== 3.0 다시 맞추기 v2 (fix-plan-v2): 글자 규칙 두 가지 ─ 나무 위 = 굵은 흰 글자 + 짙은 갈색 테두리, 종이 위 = 짙은 갈색 굵은 글자 ===== */
:root{--ink:#3a1e0c;--ink2:#5a3418;--cream:#fff6e0;--outline:0 2px 0 #3a1e0c,2px 0 0 #3a1e0c,-2px 0 0 #3a1e0c,0 -2px 0 #3a1e0c,1.5px 1.5px 0 #3a1e0c,-1.5px 1.5px 0 #3a1e0c,1.5px -1.5px 0 #3a1e0c,-1.5px -1.5px 0 #3a1e0c,0 4px 3px #0007}
/* 판 위 현판: 짙은 호두나무, 밧줄 없음, 번호 크게 */
#hud{background-image:url('sprites/ui-hud2.webp');top:2px;height:58px;padding:0 6px 0 18px;color:var(--cream);text-shadow:var(--outline)}
#stage-id,#stage-id.daily{color:var(--cream);font-size:30px;letter-spacing:0;text-shadow:var(--outline)}
#stage-id.daily{font-size:20px}
#hud #village{color:var(--cream);font-size:17px;font-weight:800;border-left:3px solid #e9c48b;padding-left:7px;margin-left:4px;text-shadow:var(--outline)}
#hud .coins b{color:var(--cream);font-size:21px;text-shadow:var(--outline)}#hud .coins img{width:26px;height:26px}
#hud button{color:var(--cream);font-size:22px;text-shadow:var(--outline)}
@media(max-width:370px),(max-height:650px){#stage-id{font-size:26px}#hud #village{font-size:15px}#hud .coins b{font-size:19px}}
/* 아이템: 큰 그림 아이콘, 굵은 짙은 이름, 엽전 그림 + 숫자 */
#items button{color:var(--ink);font-size:16px}
#items button>img{width:40px;height:40px;object-fit:contain;flex:none}
#items small{display:flex;align-items:center;justify-content:center;gap:3px;color:var(--ink);font-size:16px;font-weight:900;margin-top:1px}
#items small .coin-mini,#result .coin-mini{width:18px;height:18px;margin:0;flex:none}
@media(max-width:400px){#items button>img{width:34px;height:34px}#items button{font-size:14px}#items small{font-size:15px}}
@media(max-width:370px){#items button>img{width:28px;height:28px}#items button{font-size:13px}#items small{font-size:14px}#items small .coin-mini{width:15px;height:15px}}
.speech{color:var(--ink);font-weight:800}#notice,#pick-mode{color:var(--ink)}

/* 첫 화면: 짙은 기와 현판 "출발!", 승차권 버스 상자 + 붉은 연속 알약, 지도 두루마리, 큰 그림 표지판 */
.title-actions #depart,.title-actions #depart:hover{height:auto;aspect-ratio:620/209;width:100%;padding:13.5% 17% 0;background:url('sprites/ui-gate2.webp') center/100% 100% no-repeat;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--cream);font-size:40px;text-shadow:var(--outline)}
.title-actions #depart .gate-ic{width:15%;height:auto;margin:0;filter:drop-shadow(0 2px 0 #3a1e0c)}
.title-actions #depart .gate-paws{display:block;width:9%;aspect-ratio:1;background:url('sprites/ic-paw.webp') center/contain no-repeat;opacity:.95}
.title-actions #daily-launch{background-image:url('sprites/ui-ticket-box.webp');height:auto;aspect-ratio:620/144;width:100%;padding:0 6% 0 23%;position:relative;color:var(--ink)}
.title-actions #daily-launch .ticket-ic{position:absolute;left:8.3%;top:50%;width:11%;height:auto;transform:translateY(-50%);margin:0}
.title-actions #daily-launch b{color:var(--ink);font-size:21px}
.title-actions #daily-launch small,#streak{display:inline-block;margin-top:3px;padding:2px 14px 3px;background:url('sprites/ui-pill-red.webp') center/100% 100% no-repeat;color:var(--cream);font-size:13px;text-shadow:0 1px 0 #5a120c}
#streak:empty{display:none}
.title-actions #title-map{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--ink);font-size:23px}
.title-actions #title-map .map-ic{width:40px;height:auto;margin:0}
.title-actions .icon-actions img{width:48px;height:44px;object-fit:contain}
.title-actions .icon-actions span{color:var(--cream);text-shadow:var(--outline)}
@media(max-height:700px){.title-actions #depart{height:auto;font-size:34px;padding-top:13.5%}.title-actions .icon-actions img{width:42px;height:38px}.title-actions #daily-launch b{font-size:19px}}
@media(max-height:650px){.title-actions #depart{height:auto;width:88%;font-size:30px}.title-actions #daily-launch{width:90%}.title-actions .icon-actions img{width:36px;height:32px}}

/* 노선도·차고·도감·기록장 제목줄: 짙은 나무 + 굵은 흰 글자, "처음으로"는 나무 단추 */
.screen-bar,#book-host .osc-header{background-image:url('sprites/ui-bar2.webp')}
.screen-bar h2,#book-host .osc-header .osc-title,#book-host .osc-header h2{color:var(--cream);font-size:23px;text-shadow:var(--outline)}
.screen-bar button,#book-host .osc-back{background:url('sprites/ui-btn-wide.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;color:var(--cream);text-shadow:var(--outline);padding:4px 14px;min-height:40px}
.route-stop .stop-stars{font-size:clamp(12px,3.8vw,16px)}.stop-stars em{color:#f5a50c}
.route-stop .lv-score{color:var(--ink);font-weight:800}
.village-banner span{color:var(--ink)}
/* 쉬기: 판 글자 짙고 크게 */
#paused .eyebrow{color:var(--ink2);font-size:15px}#paused h2{color:var(--ink)}
#paused #resume{color:var(--cream);text-shadow:var(--outline);font-size:20px;background-image:url('sprites/ui-btn-main.webp');min-height:52px}
#paused .panel>#pause-restart,#paused .panel>#pause-map{color:var(--cream);text-shadow:var(--outline);font-size:16px}
/* 차고·도감·기록장 */
.collection-card b{font-size:16px;color:var(--ink)}.collection-card span{font-size:14px;color:var(--ink2)}
.collection-card:disabled b,.collection-card:disabled span{color:var(--cream);text-shadow:var(--outline)}
.dex-tabs button,.collection-note,#garage-stars{color:var(--cream);text-shadow:var(--outline);font-size:15px}
.dex-tabs button.primary{color:var(--ink);text-shadow:none}
#book-host :is(.osc-label,.osc-sub,.osc-date,.osc-challenge-text){color:var(--ink2)}#book-host .osc-record-value{color:var(--ink)}
#book-host .osc-heading{color:var(--cream);text-shadow:var(--outline)}
.share-actions button{color:var(--cream);text-shadow:var(--outline)}.share-actions button.primary{color:var(--ink);text-shadow:none}

/* 결과: 매끈한 금별 + 빛살, 큰 제목 + 붓 밑줄, 짙은 조건 줄, 엽전 그림 + 큰 숫자, 버스 아이콘 간판 */
#result .panel.r3 h2{color:var(--ink);font-size:clamp(32px,10.4vw,42px);text-shadow:0 2px 0 #fff6e2;background:linear-gradient(#e8796b88,#e8796b88) center 88%/78% 7px no-repeat;padding:0 6px}
#result .panel.r3 #result-stars{display:flex;align-items:center;justify-content:center;gap:4px;height:58px}
#result .panel.r3 #result-stars .earned-star{width:54px;height:54px;object-fit:contain}
#result .panel.r3 #result-stars:not(:empty)::before,#result .panel.r3 #result-stars:not(:empty)::after{content:'';width:18px;height:5px;border-radius:3px;background:#f5b820;box-shadow:2px -12px 0 #f5b820,2px 12px 0 #f5b820;margin:0 4px}
#result .panel.r3 #result-stars:not(:empty)::after{box-shadow:-2px -12px 0 #f5b820,-2px 12px 0 #f5b820}
.r3-checks{color:var(--ink);font-size:17px}.r3-checks li:not(.ok){color:#8a6a4a}
#result .r3 #trip-score .osc-label{color:var(--ink2)}#result .r3 #trip-score .osc-value{color:var(--ink)}
#result .panel.r3 .r3-coins{gap:8px;padding:4px 26px;font-size:30px;color:var(--ink);background:#fff1c8;border:2px solid #d9a441}
#result .panel.r3 .r3-coins::before{width:34px;height:34px;background-image:url('sprites/ic-coin.webp')}
#result .panel.r3 .r3-coins[hidden]{display:none}
#result .panel.r3 .r3-sign{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--cream);text-shadow:var(--outline)}
#result .panel.r3 .r3-sign .sign-ic{width:44px;height:auto;margin:0;filter:drop-shadow(0 2px 0 #3a1e0c)}
#result .panel.r3 .result-links button{color:var(--cream);text-shadow:var(--outline);font-size:14px}
#result .panel.r3 .result-links img{width:36px;height:36px}
@media(max-height:700px){#result .panel.r3 #result-stars{height:48px}#result .panel.r3 #result-stars .earned-star{width:44px;height:44px}#result .panel.r3 .r3-coins{font-size:24px}#result .panel.r3 .r3-coins::before{width:28px;height:28px}#result .panel.r3 .r3-sign .sign-ic{width:36px}}
/* 짐: 시안처럼 넓은 나무 단추 두 줄(되돌리기 + 엽전 20 · 노선도 · 자랑 카드 · 처음으로), 광고 단추는 노란 판 */
#result.lost .panel.r3 .result-links{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;width:96%}
#result.lost .panel.r3 .result-links button,#result.lost .panel.r3 .result-links #fail-undo{width:100%;height:auto;min-height:54px;aspect-ratio:auto;border-radius:0;padding:4px 12px;flex-direction:row;gap:6px;justify-content:center;background:url('sprites/ui-btn-wide.webp') center/100% 100% no-repeat;font-size:17px}
#result.lost .panel.r3 .result-links #fail-undo small{display:inline-flex;align-items:center;gap:2px;font-size:16px;color:var(--cream)}
#result.lost .panel.r3 .result-links #fail-undo span{font-size:17px}
#result.lost .panel.r3 .result-links img{width:30px;height:30px}
#result .panel.r3 .r3-row .orak-ad-slot button{background:url('sprites/ui-btn-ad.webp') center/100% 100% no-repeat;color:var(--ink);text-shadow:none}
#result.lost .panel.r3 .result-driver{height:clamp(130px,24vh,190px)}
#result.lost .panel.r3 .r3-coins{color:var(--ink);font-size:16px;font-weight:800;background:none;border:0}
#result.lost .panel.r3 #driver-line{color:var(--ink2);font-size:14px}
@media(max-height:700px){#result.lost .panel.r3 .result-driver{height:clamp(104px,19vh,140px)}#result.lost .panel.r3 .result-links button,#result.lost .panel.r3 .result-links #fail-undo{min-height:46px;font-size:15px}}
@media(max-height:650px){#result.lost .panel.r3 .result-driver{height:96px}}
html:is([lang=ko],[lang=en],[lang=es],[lang=pt-BR],[lang=id],[lang=de],[lang=fr],[lang=vi]) :is(#items small,#streak,.title-actions #daily-launch small,#result .r3-coins,#result.lost .result-links small,.stop-stars,#book-host .osc-back,.screen-bar button){font-family:var(--game)!important;font-weight:400!important}
#hud{padding-left:26px}
#items button>span{text-align:center}
#result .r3 #trip-score .osc-label{font-weight:700}
@media(max-height:700px){#result.lost .r3-scene{max-height:112px}#result.lost .panel.r3 .result-links button,#result.lost .panel.r3 .result-links #fail-undo{min-height:42px}}
@media(max-height:650px){#result.lost .r3-scene{max-height:84px}}
#result .panel.r3 h2{background:none;text-decoration-line:underline;text-decoration-thickness:7px;text-decoration-color:#e8796b88;text-underline-offset:-2px;text-decoration-skip-ink:none;line-height:1.2}
#result.lost .panel.r3 #driver-line{display:none}
#result.lost .panel.r3 .result-links button{overflow:hidden;white-space:nowrap}
#result.lost .panel.r3 .result-links #fail-undo small{font-size:15px}
/* 결과 화면 알림은 기사님 얼굴을 덮지 않게 맨 아래로(누르기는 통과). */
html:has(#result:not([hidden])) .osc-toast{top:auto!important;bottom:calc(env(safe-area-inset-bottom,0px) + 6px)!important;pointer-events:none}
#result.lost .panel.r3 .result-links #fail-undo{padding:4px 8px;gap:4px}
@media(max-width:400px){#result.lost .panel.r3 .result-links #fail-undo>img{display:none}}
.title-actions #depart span{white-space:nowrap}
#book-host .osc-book{position:absolute}
#paused .eyebrow{padding:0 10%}
.route-stop .stop-stars{font-size:clamp(14px,4.6vw,19px)!important;letter-spacing:-1px}
.current-stop .stop-stars{font-size:clamp(15px,5vw,21px)!important}
.share-actions button{font-size:15px}
/* v2 자동 검사(안쪽 면·가운데·대비)로 고친 곳 */
.title-actions #depart{padding-top:12.4%}
.title-actions #depart .gate-ic,.title-actions #depart .gate-paws{width:12%;height:auto;margin:0;flex:none}
.title-actions #depart .gate-paws{opacity:1}
.title-actions .icon-actions span{color:var(--ink);text-shadow:0 1px 0 #fff6e0}
.screen-bar button,#book-host .osc-back{font-size:14px}
.route-stop .stop-stars em{color:#f5a50c;text-shadow:0 0 1px #6b3a06,0 1px 0 #6b3a06}
.route-stop .stop-stars{color:#9b7a4c}
.route-stop.locked b,.route-stop:disabled b{color:#2e2e2e}
.collection-note,#garage-stars{padding:7px 1.6em}
.collection-card span{font-size:12.5px}
#items button>span small{font-size:1em;color:var(--ink)}
#result .perfect-chip{font-size:13px}
html:has(#result:not([hidden])) #items{visibility:hidden}
#stage>header>span{font-size:12px}
.collection-card p{font-size:12.5px}
#result .panel.r3 #trip-perfect{font-size:13px!important}
#items button:disabled small,#items button:disabled>span{color:#1e0e04}
/* 노선도 v3: 낮은 비율 길 그림 7장. 폭 130%로 깔아 한 화면에 마을 두 개, 정류장은 길 가운데 선 위, 팻말은 작게 */
.map-tile{left:-15%;width:130%;max-width:none}
.map-tile.fade{-webkit-mask-image:linear-gradient(to top,transparent 0,#000 10%);mask-image:linear-gradient(to top,transparent 0,#000 10%)}
.village-banner{width:38%;right:1%;transform:translateY(-50%)}.village-banner.left{right:auto;left:1%}
.route-stop{width:12.5%}
.route-stop .lv-score{top:86%;font-size:9.5px;line-height:13px}
.village-banner span{white-space:normal;word-break:keep-all;overflow-wrap:normal}
.route-stop b{font-size:clamp(13px,4vw,18px)}
.route-stop .stop-stars{font-size:clamp(8.5px,2.5vw,11px)}
/* 글자/그림 맞춤 검사(artcheck) 고침: 긴 언어에서 글자가 판 밖으로 나가거나 10.5px 아래로 줄던 곳 */
#items button>span{white-space:normal;line-height:1.05;word-break:keep-all;overflow-wrap:anywhere}
#items button>span small{font-size:14px}
@media(max-width:370px){#items button>span small{font-size:13px}}
#hud button{font-size:19px;line-height:1}
html:has(#result:not([hidden])) #speech{visibility:hidden}
#book-host .osc-date{font-size:11px}
#garage-stars{white-space:normal;line-height:1.15;padding:7px 12%;max-width:94%}
.dex-tabs button{white-space:normal;line-height:1.1;padding:6px 12%}
.share-actions button{white-space:normal;line-height:1.1;overflow:visible;padding:6px 12%}
#result:not(.lost) .panel.r3 .result-links button:not(#fail-undo){padding-bottom:14px}
#result:not(.lost) .panel.r3 .result-links button>img{max-width:46%;max-height:46%}
#result.lost .panel.r3 .result-links button>img{width:28px;height:28px;max-height:none}
#result.lost .result-links button span{white-space:normal;line-height:1.05}
#depart{padding-top:11.4%}
@media(max-height:650px){.title-screen .guide-link{min-height:24px;font-size:11.5px}}
#paused h2{padding:0 9%;line-height:1.15;word-break:keep-all;overflow-wrap:anywhere}
.route-stop .lv-score{font-size:10.5px;line-height:14px}
.village-banner span{top:21%}
@media(max-height:650px){.title-screen{padding-bottom:4px}.title-actions{gap:5px}}
@media(max-height:650px){.title-actions #depart{width:80%;justify-self:center;margin:0 auto}.title-actions #daily-launch{height:60px;min-height:0}}
.route-stop .stop-stars{font-family:Jua,sans-serif!important;letter-spacing:0;white-space:nowrap}
.screen-bar h2{min-width:0;padding-right:5%;box-sizing:border-box}
.route-stop .stop-stars{font-size:clamp(8px,2.3vw,10px);letter-spacing:-.5px}
#items button>span{padding-right:6px;box-sizing:border-box}
.route-stop.current-stop .stop-stars{font-size:clamp(7.5px,2.1vw,9px);letter-spacing:-1px}
#streak{max-width:100%;white-space:nowrap;overflow:hidden;box-sizing:border-box}
#streak{padding-left:18px;padding-right:18px}
/* 3.0 글자·판 재검수 */
/* 태국어 정류장 팻말: 두 줄이 동그라미 밖으로 → 한 줄, 팻말 안쪽 면 폭에 맞게 작게 */
html[lang=th] .title-actions .icon-actions span{max-width:52px;white-space:nowrap;font-size:11px;line-height:1.25;overflow-wrap:normal}
/* 차고 버스 카드 이름: 카드 안쪽 면에서 잘리던 것 → 낱말 단위 두 줄 */
html:not([lang=ko]) .collection-card :is(b,span){display:block;white-space:normal;overflow-wrap:normal;word-break:normal;text-wrap:balance;line-height:1.15}
html[lang=th] .collection-card :is(b,span){font-size:12px}

/* 3.0 글자·판 재검수: 동그라미 단추 이름이 금테 아래로 내려가지 않게 아이콘을 줄이고 이름을 둥근 면 안으로 */
#result .panel.r3 .result-links button{padding:2px 4px 6px}#result .panel.r3 .result-links img{width:22px;height:22px}#result .panel.r3 .result-links button>span{max-width:80%;overflow-wrap:normal}
@media(max-height:700px){#result .panel.r3 .result-links img{width:18px;height:18px}}
@media(max-height:700px){html:not([lang="ko"]) #result:not(.lost) .panel.r3 .result-links{gap:8px}html:not([lang="ko"]) #result:not(.lost) .panel.r3 .result-links button{width:74px;height:74px;font-size:11px}}
html:not([lang="ko"]) #result .panel.r3 .result-links button>span{letter-spacing:-.4px}
/* 2026-12-01 공유 단추: % 여백이 화면 폭 기준이라 단추 안이 좁아져 한 낱말씩 줄이 바뀌던 것 → 판 안쪽 면 기준 px 여백, 높이 고정(넘치면 글자를 줄임) */
.share-actions button{height:48px;padding:3px 15px 4px;white-space:normal;line-height:1.08;overflow:hidden;word-break:keep-all;overflow-wrap:normal}
.share-actions button.primary{padding:3px 15px 4px}
#guest-grid .collection-card p{padding-inline:10%;text-wrap:balance}html:is([lang=ko]) #guest-grid .collection-card p{word-break:keep-all}

#village{text-overflow:clip}
#paused .panel :is(h1,h2,h3,p,small,span,b){text-wrap:balance}
#result.lost .panel.r3 .result-links{grid-template-columns:repeat(2,minmax(0,1fr))}
#result .r3 .osc-seal{display:flex!important;align-items:center;justify-content:center;text-align:center;white-space:normal!important;line-height:1.02;font-size:10.5px;padding:9px!important;box-sizing:border-box;overflow-wrap:normal;word-break:normal;hyphens:manual}html:is([lang=ja],[lang=zh-TW],[lang=ko]) #result .r3 .osc-seal{font-size:13px}
/* 도전 알림: 결과 단추를 가리지 않게 맨 위 머리띠 위로 */.osc-toast{top:calc(env(safe-area-inset-top,0px) + 5px)!important;bottom:auto!important;padding:7px 14px!important;font-size:13px!important;line-height:1.25;max-width:calc(100% - 16px)!important}#fail-undo small,#fail-undo span{white-space:nowrap}html[lang=de] #result.lost .panel.r3 .result-links #fail-undo{padding-inline:8px;gap:4px}
html:has(#result:not([hidden])) .osc-toast{top:calc(env(safe-area-inset-top,0px) + 5px)!important;bottom:auto!important}
