:root{--ink:#503326;--gold:#ffd66b;--osc-card:#fff0cc}*{box-sizing:border-box}body{margin:0;background:#251d2b;color:var(--ink);font-family:system-ui,sans-serif}.orak-stage{max-width:720px;margin:auto;display:flex;align-items:center;flex-direction:column}header{height:58px;flex-shrink:0;width:100%;padding:0 14px;display:flex;gap:10px;align-items:center;color:#fff1cb;font-size:12px}header a{color:#fff;text-decoration:none;font-weight:900}header>span{margin-left:auto}header b{color:var(--gold)}header button{padding:0;width:32px;min-height:30px;background:none;color:#ffe09c}.board{position:relative;flex:none;overflow:hidden;touch-action:none;background:#75b6e4;container-type:inline-size;border-radius:10px}canvas{display:block;width:100%;height:100%;touch-action:none}[hidden]{display:none!important}button{font:900 17px system-ui;border:2px solid #795038;border-radius:18px;min-height:44px;padding:10px 20px;background:#ffe29a;color:#583425;cursor:pointer;box-shadow:0 4px 0 #8a523c}button:active{transform:translateY(3px);box-shadow:0 1px 0 #8a523c}button:focus-visible{outline:3px solid #fff;outline-offset:3px}.overlay{position:absolute;inset:0;display:grid;place-items:center;padding:5%;background:#2a1c3066}.panel{width:100%;max-height:98%;overflow:auto;padding:20px;background:linear-gradient(#fff5d8,#f5d9a7);border:4px solid #785037;border-radius:24px;text-align:center;box-shadow:0 7px 0 #3b292a55}h2{font-size:21px;margin:7px 0 12px}.primary{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;background:linear-gradient(#ffe987,#ffbc48);border:3px solid #8e4e29;border-radius:30px;box-shadow:0 5px 0 #9c4c2f,inset 0 2px 0 #fff6c4}.primary img{width:47px;height:47px;object-fit:contain}.secondary{margin-top:12px;background:#f2e5c7;box-shadow:none;min-height:40px}.title{display:flex;flex-direction:column;justify-content:flex-start;background:none;padding-top:9%}.logo{width:94%;filter:drop-shadow(0 6px 1px #51302c55)}.title-tag{font-size:15px;font-weight:900;color:#fff0c8;text-shadow:1px 2px 2px #63372f;margin:0}.title .best{margin-top:auto;color:#fff6d9;text-shadow:0 2px 3px #503326;font-weight:900;font-size:16px}.title .primary{width:72%;min-height:68px;font-size:28px}.controls{font-size:10px;color:#fff6d0;text-shadow:0 1px 3px #331b18;font-weight:800;margin:17px 0 12px}.cinematic{background:none;pointer-events:auto}.speech{background:#fff7d9;border:3px solid #70472f;border-radius:24px;padding:14px 18px;box-shadow:0 5px 0 #643e2640;font-weight:900;font-size:20px;color:#583425;text-align:center}.cinematic .speech{position:absolute;top:38%;left:8%;right:8%}.skip{position:absolute;bottom:10%;color:#fff;font-size:13px;text-shadow:0 2px 3px #000}#taunt .speech{top:30%;left:25%}#village{font-size:13px;margin:4px}#tutorial{position:absolute;top:39%;left:16%;right:16%;font-size:23px;pointer-events:none}.pause-cat{width:140px;height:155px;object-fit:contain}#pause-home{margin-top:18px}#pause-home button{display:inline-flex}#result-cat{float:right;width:98px;height:110px;object-fit:contain}#result-distance{display:block;font-size:41px;line-height:1.3;margin:8px 0;color:#aa502e;letter-spacing:-2px}.result-panel{padding:17px 18px}.result-panel h2{font-size:17px}.village-card{position:relative;height:59px;border-radius:10px;overflow:hidden;display:grid;place-items:center;border:2px solid #9a7654}.village-card img{position:absolute;width:100%;height:100%;object-fit:cover;filter:brightness(.65)}.village-card span{z-index:1;font-weight:900;color:#fff3cc;text-shadow:0 2px #533326;font-size:15px}#record{font-size:13px;margin:10px 0}#score{font-size:19px}#breakdown{margin:7px 0 13px;font-size:12px}#new-best{font-weight:1000;color:#bc522a;margin:0;animation:glow .7s infinite alternate}#loading{background:#efd2a1}#load-progress{width:90%;accent-color:#d17a37}.loading-cat{width:120px;animation:bounce .5s infinite alternate}@keyframes bounce{to{transform:translateY(-9px)}}@keyframes glow{to{color:#e29c20;transform:scale(1.05)}}@media(prefers-reduced-motion:reduce){.loading-cat,#new-best{animation:none}}

.yard{background:none;display:flex;flex-direction:column;justify-content:flex-start;padding:4%}.yard h2{color:#fff2cc;text-shadow:0 2px 3px #503326}.yard-bar{display:flex;width:100%;justify-content:space-between;align-items:center;background:#fff1dce8;border:2px solid #795038;border-radius:30px;padding:8px;font-size:14px;gap:8px}.yard-bar span{display:flex;align-items:center;gap:3px}.yard-bar img{width:24px;height:24px;object-fit:contain}.yard-actions{margin-top:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;width:100%;padding-bottom:14px}.yard-actions button{border-radius:50%;width:29%;aspect-ratio:1;padding:7px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(10px,3.2cqw,16px);line-height:1.15;overflow-wrap:anywhere}.yard-actions button:first-child{background:#ffce62}.yard-actions img{width:60%;height:52%;object-fit:contain}.yard>a{color:#fff5d8;font-size:13px;text-shadow:0 1px 3px #503326}.room-screen{background:#35232355}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.shop-grid article{background:#fff5d8;border:2px solid #b58a59;border-radius:16px;padding:8px;min-width:0}.shop-grid img{width:58px;height:58px;object-fit:contain}.shop-grid h3{font-size:14px;margin:3px 0}.shop-grid p{font-size:12px;margin:6px 0}.shop-grid button{font-size:12px;padding:7px;min-height:44px;width:100%;overflow-wrap:anywhere}button:disabled{opacity:.55;cursor:default}.buy-sparkle{position:absolute;left:35%;top:35%;width:30%;pointer-events:none;animation:glow .25s infinite alternate}#scarf-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:14px}#scarf-cards button{display:flex;flex-direction:column;align-items:center;padding:8px;font-size:12px;box-shadow:none;min-width:0}#scarf-cards img{width:85px;height:50px;object-fit:contain}.silhouette{filter:brightness(0);opacity:.5}.selected{outline:3px solid #da7240}#book-screen{padding:0;z-index:5}.osc-book{width:100%;height:100%;overflow:auto}.osc-book header{height:auto;color:var(--ink)}#share-preview{padding-top:10px}#card-canvas{width:100%;height:auto}#share-preview button{font-size:13px;padding:8px;margin:5px 2px;box-shadow:none}#ranking,#daily-rank{font-size:12px}#result .osc-breakdown{margin:0}#result .osc-row{font-size:11px}#result .osc-number{font-size:26px}#result .osc-total{padding:5px}#result .osc-seal{font-size:11px}

/* Shared score panels use dark accents on the illustrated cream cards. */
.osc-book{--bg:#f5d9a7;--gold:#9c4527;--sub:#72523f}.osc-book .osc-back{background:#ffe29a}.osc-book .osc-done-stamp{color:#9c4527}.osc-breakdown{--gold:#9c4527}.title .primary{font-size:24px;padding-inline:14px}
.osc-book .roof-text-value{font-size:clamp(18px,5vw,22px);word-break:keep-all}
#village{display:none}#taunt{pointer-events:none}

.guide-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}header>span{min-width:0;font-size:11px}

/* 44px touch area, independent of the drawing. */
#yard a[href="/guide/roof/"],#result a[href="/guide/roof/"]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}

/* 결과 단추는 판 아래쪽에 붙여 두어, 점수표가 길어도 반쯤 잘린 단추가 보이지 않게 한다. */
.result-actions{position:sticky;bottom:-17px;z-index:2;margin:6px -18px -17px;padding:12px 18px 14px;background:linear-gradient(#f5d9a700,#f5d9a7 14px)}.result-row{display:flex;gap:10px;margin-top:10px}.result-row .secondary{flex:1;margin-top:0;min-height:44px}#ranking:empty,#daily-rank:empty{display:none}
#canvas{height:auto;aspect-ratio:720/1280}
/* 가게·옷장: 목록이 길어도 '마당으로'는 판 아래에 붙어 반쯤 잘려 보이지 않게 */
.room-screen .panel>[data-yard]{position:sticky;bottom:0;z-index:2;display:block;width:100%;min-height:46px;margin-top:12px;box-shadow:0 6px 0 14px #f5d9a7,0 -14px 12px 8px #f5d9a7}

/* 위쪽 상태바·토스 X 버튼 줄, 아래쪽 홈 막대를 피한다. fit()은 이 여백을 빼고 판 크기를 잰다. */
#stage{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}

/* 3.0 판 HUD: 나무 현판 거리 · 짚 바구니 생선 · 물고기 틀 열기 게이지 · 기와 처마 추격 띠 (시안 play-v1). 크기는 판 폭(cqw) 기준. */
#hud{position:absolute;left:0;right:0;top:0;padding:1.2cqw 2.4cqw 0;pointer-events:none;font-family:Jua,var(--orak-font,system-ui),sans-serif;--outline:0 .35cqw 0 #4a2a1c,.3cqw 0 0 #4a2a1c,-.3cqw 0 0 #4a2a1c,0 -.3cqw 0 #4a2a1c,.25cqw .25cqw 0 #4a2a1c,-.25cqw .25cqw 0 #4a2a1c,.25cqw -.25cqw 0 #4a2a1c,-.25cqw -.25cqw 0 #4a2a1c}
.hud-row{display:flex;align-items:flex-end;gap:2.6cqw}
.hud-plank{position:relative;width:40cqw;aspect-ratio:519/235;background:url(sprites/hud-plank.webp) 0 0/100% 100% no-repeat;filter:drop-shadow(0 .6cqw .4cqw #2b17104d)}
/* 글자는 현판 판자(가로 7.5~92.9%, 세로 35.3~87.2%) 한가운데. */
#distance{position:absolute;left:7.5%;right:7.1%;top:35.3%;bottom:12.8%;display:flex;align-items:center;justify-content:center;font-size:8.4cqw;font-weight:400;line-height:1;color:#fffaf0;letter-spacing:-.1cqw;text-shadow:var(--outline);white-space:nowrap}
.hud-basket{position:relative;width:32cqw;aspect-ratio:462/201;background:url(sprites/hud-basket.webp) 0 0/100% 100% no-repeat;display:flex;align-items:center;justify-content:center;gap:1.2cqw;padding:1% 10% 3% 12%;filter:drop-shadow(0 .6cqw .4cqw #2b17104d)}
.hud-basket img{width:10.5cqw;height:auto;flex:none;filter:drop-shadow(0 .2cqw 0 #3d2416)}
#fish{font-size:7.6cqw;font-weight:400;line-height:1;color:#fffaf0;text-shadow:var(--outline);white-space:nowrap;flex:none}
#pause.round{pointer-events:auto;margin-left:auto;margin-bottom:.4cqw;width:15cqw;height:15cqw;padding:0;border:0;background:none;box-shadow:none;min-height:44px;min-width:44px}
#pause.round img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 .5cqw .3cqw #2b17104d)}
/* 물고기 틀: 홈(구멍)은 가로 18.1~86.3%, 세로 36.7~66.2%. 홈 → 금빛 띠 → 틀 순서로 겹친다. */
.fever-fish{position:relative;width:92cqw;aspect-ratio:1124/207;margin:.4cqw 0 0 3cqw;width:88cqw;filter:drop-shadow(0 .6cqw .4cqw #2b17104d)}
.fever-fish img,#fever-fill{position:absolute}
.gauge-frame{inset:0;width:100%;height:100%}
.gauge-groove{left:17.6%;top:35.6%;width:69.2%;height:31.7%}
#fever-fill{left:17.9%;top:37%;width:68.6%;height:29%;background:url(sprites/gauge-fill.webp) 0 0/100% 100%;border-radius:99px;clip-path:inset(0 calc(100% - var(--p,0%)) 0 0 round 99px);transition:clip-path .15s linear}
#fever-fill:after{content:'';position:absolute;inset:0;border-radius:99px;background:linear-gradient(100deg,transparent 30%,#fffbe0cc 45%,transparent 60%) -100% 0/60% 100% no-repeat;animation:gleam 2.4s linear infinite}
.fever-fish.full #fever-fill{filter:brightness(1.15) drop-shadow(0 0 1.4cqw #ffe36b)}
@keyframes gleam{to{background-position:220% 0}}
/* 추격 띠: 냥도사 얼굴이 이번 마을에서 모은 생선만큼 너구리 쪽으로 다가간다. */
.chase{position:relative;width:97cqw;aspect-ratio:1200/141;margin:-.6cqw 0 0 -.9cqw}
.chase-strip{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 .6cqw .4cqw #2b17104d)}
.chase-line{position:absolute;left:8%;right:12%;top:46%;height:0;border-top:.8cqw dashed #fff4d8cc}
.chase-face{position:absolute;top:50%;width:10.5cqw;height:auto;transform:translate(-50%,-50%);filter:drop-shadow(0 .4cqw .3cqw #2b17106b)}
#chase-dosa{z-index:1;left:calc(9% + var(--c,0) * 76%);transition:left .25s ease-out}
.chase-neo{left:89%;animation:neo-bob .9s ease-in-out infinite alternate}
.chase.near .chase-neo{animation-duration:.35s}
@keyframes neo-bob{from{transform:translate(-50%,-50%) rotate(-6deg)}to{transform:translate(-50%,-56%) rotate(6deg)}}
@media(prefers-reduced-motion:reduce){#fever-fill:after,.chase-neo{animation:none}}

/* ===== 3.0 화면들: 두루마리·현판·나무 단추·기와 창 (시안 start-pause/result/shop/wardrobe/book v1) ===== */
.board{--game:var(--orak-font,system-ui),sans-serif;--wood-ink:#4a2a1c}
html:is([lang=ko],[lang=en],[lang=es],[lang=pt-BR],[lang=id],[lang=de],[lang=fr]) .board{--game:Jua,var(--orak-font,system-ui),sans-serif}
#hud,#distance,#fish{font-family:var(--game)}
#board :is(.scroll-say,.plaque,.window h2,.btn-wood,.btn-cream,#pause-home button,.room-title h2,.room-count,.room-note,.result-head h2,#new-best,#result-distance,#result-village,#record,.shop-grid h3,.shop-grid .effect,.shop-grid .stamp,#scarf-cards .tag,#daily-left){font-family:var(--game);font-weight:400}
/* 나무 단추: 양끝 금빛 꽃 장식(가로 0~13%, 87~100%)을 피해 글자는 가운데 70%에. */
#board .btn-wood,#board .btn-cream{display:flex;align-items:center;justify-content:center;gap:2cqw;border:0;border-radius:0;box-shadow:none;background:url(sprites/btn-orange.webp) 0 0/100% 100% no-repeat;aspect-ratio:489/159;width:100%;min-height:44px;padding:0 13%;color:#fffaf0;font-size:6.4cqw;line-height:1.05;text-shadow:0 .3cqw 0 #6a2c10,.25cqw 0 0 #6a2c10,-.25cqw 0 0 #6a2c10,0 -.25cqw 0 #6a2c10;overflow-wrap:anywhere;filter:drop-shadow(0 .8cqw .6cqw #2b17104d)}
#board .btn-cream{background-image:url(sprites/btn-cream.webp);color:var(--wood-ink);text-shadow:none;font-size:5cqw}
#board .btn-wood:active,#board .btn-cream:active{transform:translateY(.6cqw)}
#board .btn-wood:disabled{filter:grayscale(.7) brightness(.9);opacity:1}
#board .btn-wood img{width:9cqw;height:9cqw;object-fit:contain;flex:none}

/* 출발: 두루마리 말풍선(종이 가로 10~90%, 세로 8~76%) + 나무 현판 */
#intro .scroll-say{position:absolute;top:30%;left:5%;right:auto;width:84cqw;aspect-ratio:751/295;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:url(sprites/scroll-speech.webp) 0 0/100% 100% no-repeat;animation:scroll-sway 1.6s ease-in-out infinite alternate;transform-origin:20% 100%}
#intro .scroll-say span{position:absolute;left:12%;right:12%;top:10%;bottom:26%;display:flex;align-items:center;justify-content:center;text-align:center;font-size:7.6cqw;line-height:1.1;color:var(--wood-ink);overflow-wrap:anywhere}
#intro .plaque{position:absolute;bottom:8%;left:50%;transform:translateX(-50%);width:70cqw;aspect-ratio:467/150;margin:0;background:url(sprites/plaque-small.webp) 0 0/100% 100% no-repeat;text-shadow:none;filter:drop-shadow(0 .8cqw .6cqw #2b17106b)}
#intro .plaque span{position:absolute;left:13%;right:13%;top:12%;bottom:14%;display:flex;align-items:center;justify-content:center;text-align:center;font-size:5.4cqw;line-height:1.05;color:var(--wood-ink);overflow-wrap:anywhere}
@keyframes scroll-sway{from{transform:rotate(-1.2deg)}to{transform:rotate(1.2deg)}}

/* 쉬기·오늘의 지붕길: 기와 지붕 나무 창 (지붕 0~17%, 제목 현판 가로 22~80% 세로 19~31%, 한지 세로 34~92%) */
.window-screen{background:#1c1420a6;padding:0}
.window{position:relative;width:84cqw;aspect-ratio:462/610;background:url(sprites/pause-window.webp) 0 0/100% 100% no-repeat;filter:drop-shadow(0 1.2cqw 1cqw #0006)}
.window .window-top{position:absolute;left:50%;top:-13%;transform:translateX(-50%);width:40cqw;height:30cqw;object-fit:contain}
.window h2{position:absolute;left:27%;right:25%;top:18.6%;height:12.4%;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:5.4cqw;line-height:1.05;color:var(--wood-ink);overflow-wrap:anywhere}
.window-body{position:absolute;left:16%;right:16%;top:45%;bottom:9%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3.2cqw;text-align:center;color:var(--wood-ink)}
.window-body p{margin:0;font-size:3.6cqw;line-height:1.35;font-weight:700}
#daily-left{font-size:4.6cqw!important;color:#9c4527}
#pause-home{width:72%}
#board #pause-home .orak-home-button{text-decoration:none;font-family:var(--game);font-weight:400;width:100%;margin:0;border:0;border-radius:0;box-shadow:none;background:url(sprites/btn-cream.webp) 0 0/100% 100% no-repeat;aspect-ratio:489/159;min-height:44px;display:flex;align-items:center;justify-content:center;gap:1.6cqw;color:var(--wood-ink);font-size:5cqw}
#daily .window-top{top:-6%;width:26cqw;height:22cqw}

/* 가게·옷장: 처마 현판 제목 (종이 가로 15~85%, 세로 44~80%) */
.room-screen{background:none;padding:2cqw 3cqw 3cqw}
#board .room{position:relative;width:100%;height:100%;max-height:none;padding:0;background:none;border:0;box-shadow:none;border-radius:0;display:flex;flex-direction:column;align-items:center;overflow:auto;overscroll-behavior:contain}
.room-title{flex:none;width:60cqw;aspect-ratio:547/290;background:url(sprites/title-roof.webp) 0 0/100% 100% no-repeat;position:relative;filter:drop-shadow(0 .8cqw .6cqw #2b17106b)}
.room-title h2{position:absolute;left:17%;right:17%;top:46%;bottom:21%;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:7cqw;line-height:1;color:var(--wood-ink);overflow-wrap:anywhere}
.room-count{flex:none;margin:-1cqw 0 0;width:36cqw;aspect-ratio:467/150;background:url(sprites/plaque-small.webp) 0 0/100% 100% no-repeat;display:flex;align-items:center;justify-content:center;gap:1.4cqw;font-size:5.6cqw;color:var(--wood-ink)}
.room-count img{width:8cqw}
.room-note{flex:none;margin:-1cqw 0 0;width:80cqw;min-height:11cqw;padding:1cqw 7%;background:url(sprites/record-cell.webp) 0 0/100% 100% no-repeat;display:flex;align-items:center;justify-content:center;text-align:center;font-size:4cqw;line-height:1.15;color:var(--wood-ink)}
.room-stage{flex:none;position:relative;width:100%;height:26cqw;margin-top:-6cqw}
.room-stage .pose{position:absolute;left:4%;bottom:0;width:34cqw;height:36cqw}
.shop-stage .dried{position:absolute;right:10%;top:0;display:flex;gap:3cqw}
.shop-stage .dried img{width:9cqw;transform:rotate(-80deg);transform-origin:80% 50%;animation:dried-sway 1.4s ease-in-out infinite alternate;filter:drop-shadow(0 .5cqw .3cqw #0005) saturate(.8)}
.shop-stage .dried img:nth-child(2){animation-delay:-.5s}.shop-stage .dried img:nth-child(3){animation-delay:-1s}
@keyframes dried-sway{from{transform:rotate(-86deg)}to{transform:rotate(-74deg)}}
.wardrobe-stage{margin-top:0;height:30cqw}.wardrobe-stage .pose{left:8%;width:34cqw;height:32cqw}

/* 생선 가게 진열대: 한지 가격표 4장 */
#board .shop-grid{flex:none;width:94cqw;display:grid;grid-template-columns:1fr 1fr;gap:2.4cqw 5cqw;padding:2cqw 6cqw 4.4cqw;margin:0 0 2cqw;background:url(sprites/shop-shelf.webp) 0 0/100% 100% no-repeat}
#board .shop-grid article{position:relative;min-width:0;background:url(sprites/price-card.webp) 0 0/100% 100% no-repeat;border:0;border-radius:0;padding:4.4cqw 3.4cqw 3.4cqw;display:flex;flex-direction:column;align-items:center;gap:1cqw;filter:drop-shadow(0 .6cqw .5cqw #2b171059)}
#board .shop-grid img{width:12cqw;height:12cqw;object-fit:contain}
#board .shop-grid h3{margin:0;font-size:4.6cqw;line-height:1.1;color:var(--wood-ink);text-align:center;overflow-wrap:anywhere}
.shop-grid .dots{display:flex;gap:.9cqw;margin:0}
.shop-grid .dots i{width:3.2cqw;height:3.2cqw;border-radius:50%;background:#e9dcc0;border:.4cqw solid #a88b62}
.shop-grid .dots i.on{background:radial-gradient(circle at 35% 30%,#fff3a6,#f1b21f 60%,#b97412);border-color:#8a5a14}
#board .shop-grid .effect{margin:0;padding:.4cqw 2.4cqw;border-radius:99px;background:#fff6e0;border:.3cqw solid #c9ab7c;font-size:3.4cqw;line-height:1.15;color:#6b4430;text-align:center;overflow-wrap:anywhere}
#board .shop-grid .buy{width:100%;font-size:5cqw;padding:0 14%;gap:1cqw;margin-top:.6cqw}
#board .shop-grid .buy img{width:7cqw;height:7cqw}
.shop-grid .stamp{margin-top:1cqw;padding:.6cqw 3cqw;border:.6cqw solid #c23b22;border-radius:2cqw;color:#c23b22;font-size:5cqw;transform:rotate(-8deg);background:#fff5e8aa}

/* 옷장 횃대: 위·아래 막대에 옷걸이 4개씩 */
#board #scarf-cards{flex:none;width:94cqw;display:grid;grid-template-columns:repeat(4,1fr);gap:0 1cqw;padding:5cqw 6cqw 6cqw;margin:0 0 3cqw;background:url(sprites/wardrobe-rack.webp) 0 0/100% 100% no-repeat}
#board #scarf-cards button{position:relative;display:flex;flex-direction:column;align-items:center;gap:.6cqw;padding:0 0 1cqw;min-width:0;min-height:44px;background:none;border:0;box-shadow:none;border-radius:0;outline:none}
#scarf-cards .hang{width:12cqw;margin-bottom:-3.4cqw;position:relative;z-index:1}
#scarf-cards .scarf{width:17cqw;height:11.5cqw;object-fit:contain;transform-origin:50% 0;animation:scarf-sway 2.2s ease-in-out infinite alternate}
#scarf-cards button:nth-child(odd) .scarf{animation-delay:-1.1s}
@keyframes scarf-sway{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}
#scarf-cards .silhouette{filter:brightness(0);opacity:.55;animation:none}
#scarf-cards .lock{z-index:2;display:block;position:absolute;top:8cqw;left:50%;transform:translateX(-50%);width:5.4cqw;height:5cqw;border-radius:1cqw;background:linear-gradient(#ffd85e,#d79a1b);box-shadow:0 0 0 .4cqw #5a3a14}
#scarf-cards .lock:before{content:'';position:absolute;left:50%;top:-3cqw;transform:translateX(-50%);width:3.2cqw;height:3.4cqw;border:.7cqw solid #5a3a14;border-bottom:0;border-radius:2cqw 2cqw 0 0}
#scarf-cards .tag{display:flex;align-items:center;justify-content:center;width:100%;min-height:7.4cqw;padding:.4cqw 1cqw;background:#fff4dc;border:.4cqw solid #b8946a;border-radius:1.4cqw;font-size:3.2cqw;line-height:1.05;color:var(--wood-ink);text-align:center;overflow-wrap:anywhere}
#scarf-cards .selected .tag{background:#ffd76a;border-color:#a9681d;color:#5a2d10}
#scarf-cards .selected .scarf{filter:drop-shadow(0 0 1.6cqw #fff3a0)}
.room-screen .room>[data-yard]{flex:none;width:62cqw!important;margin:auto 0 1cqw}

/* 결과: 처마 현판 제목 + 냥도사·너구리 + 보라 비단 두루마리 */
#result{padding:0;background:#1c142099;isolation:isolate}
#result:before{content:'';position:absolute;inset:-12px;background:var(--village) center/cover;filter:blur(4px) brightness(.55);z-index:-1}
#board .result-panel{width:100%;height:100%;max-height:none;padding:2cqw 4cqw 0;background:none;border:0;border-radius:0;box-shadow:none;overflow:auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.result-head{flex:none;position:relative;width:64cqw;aspect-ratio:547/290;background:url(sprites/title-roof.webp) 0 0/100% 100% no-repeat;filter:drop-shadow(0 .8cqw .6cqw #0006)}
#board .result-head h2,#board #new-best{position:absolute;left:17%;right:17%;top:45%;bottom:20%;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:5.2cqw;line-height:1.05;color:var(--wood-ink);overflow-wrap:anywhere;animation:none}
#board #new-best{font-size:9cqw;color:#c0461f;text-shadow:0 .25cqw 0 #fff3c9}
.result-head.best h2{visibility:hidden}
.result-cast{flex:none;position:relative;width:100%;height:27cqw;margin-top:-4cqw}
.result-cast .pose{position:absolute;bottom:0}
#result-cat{left:14%;width:32cqw;height:31cqw}
#result-neo{right:12%;width:26cqw;height:24cqw}
.result-scroll{flex:none;position:relative;width:94cqw;margin-top:-1cqw;padding:11cqw 15cqw 7cqw;background:url(sprites/result-scroll.webp) 0 0/100% 100% no-repeat;color:var(--wood-ink);filter:drop-shadow(0 1cqw .8cqw #0006)}
#board #result-distance{display:block;margin:0;font-size:11cqw;line-height:1;color:#5a2d18;letter-spacing:-.2cqw}
#board .village-card{height:auto;border:0;border-radius:0;overflow:visible;display:flex;justify-content:center;margin:1.6cqw 0}
#board .village-card span{display:flex;align-items:center;justify-content:center;width:46cqw;aspect-ratio:467/150;padding:0 6cqw;background:url(sprites/plaque-small.webp) 0 0/100% 100% no-repeat;font-size:4.6cqw;line-height:1.05;color:var(--wood-ink);text-shadow:none;overflow-wrap:anywhere}
#board #record{display:flex;justify-content:center;gap:4cqw;margin:1cqw 0 2cqw;font-size:6cqw;color:#5a2d18}
#record span{display:flex;align-items:center;gap:1cqw}
#record span+span{border-left:.4cqw solid #c4a57a;padding-left:4cqw}
#record img{width:8cqw;height:8cqw;object-fit:contain}
#board #score{display:none}
#result #breakdown{margin:0;text-align:left}
#result .osc-breakdown{background:none;border:0;padding:0;margin:0;width:100%;max-width:none;color:var(--wood-ink)}#result .osc-row{font-size:3.2cqw;padding:0}#result .osc-total{padding:1cqw 0 0}#result .osc-number{font-size:6.4cqw;color:#9c4527}
#board .result-actions{position:sticky;bottom:0;flex:none;width:100%;margin:2cqw 0 0;padding:3cqw 4cqw 3cqw;background:linear-gradient(#0000,#1c1420cc 30%)}
#board .result-actions #restart{width:78cqw;margin:0 auto;font-size:7cqw}
#board .result-row{gap:3cqw;margin-top:2cqw}
#board .result-row .btn-cream{flex:1;margin:0}
#result #share-preview,#result>.panel>p,#result-ad,#next-games,#challenges{width:100%;color:#fff3d9}
#result>.panel>p a{color:#ffe7a8}

/* 기록장: 한지 기록첩 + 붓 든 냥도사 */
#book-screen{background:#2a1c30cc}
#book-screen .osc-book{background:none}
#book-screen .osc-header{position:relative;padding:2cqw 4cqw 0}
#book-screen .osc-header{display:flex;align-items:center;gap:3cqw;min-height:22cqw;padding-top:3cqw}#book-screen .osc-title{font-family:var(--game);font-weight:400;color:var(--wood-ink);margin:0;width:46cqw;aspect-ratio:467/150;display:flex;align-items:center;justify-content:center;background:url(sprites/plaque-small.webp) 0 0/100% 100% no-repeat;font-size:6.6cqw}
#book-screen .book-brush{margin-left:auto;width:20cqw;height:20cqw}
#book-screen .osc-book-scroll{margin:2cqw 3cqw 4cqw;padding:7cqw 6cqw 8cqw 16cqw;background:url(sprites/record-book.webp) 0 0/100% 100% no-repeat}
#book-screen .osc-heading{font-family:var(--game);font-weight:400;margin:2cqw auto;width:80%;min-height:10cqw;display:flex;align-items:center;justify-content:center;background:url(sprites/header-ribbon.webp) 0 0/100% 100% no-repeat;color:var(--wood-ink);font-size:5cqw}
#book-screen .osc-record{position:relative;background:url(sprites/record-cell.webp) 0 0/100% 100% no-repeat;border:0;padding:2cqw 2cqw 2cqw 11cqw;min-height:15cqw;text-align:left;display:flex;flex-direction:column;justify-content:center}#book-screen .osc-record .osc-label{font-size:3cqw;line-height:1.15;color:#6b4430}#book-screen .osc-record-value{font-size:5cqw;line-height:1.1;white-space:nowrap}#book-screen .osc-record-value.roof-text-value{white-space:normal;font-size:4cqw}
#book-screen .record-icon{position:absolute;left:2cqw;top:50%;transform:translateY(-50%);width:8cqw;height:8cqw;object-fit:contain}
#book-screen .osc-challenges{margin:0;padding:0}#book-screen .osc-challenge{background:none;border:0;border-bottom:.3cqw dashed #c9ab7c;border-radius:0;padding:2cqw 1cqw;box-shadow:none}#book-screen .osc-tier{font-family:var(--game);font-weight:400;color:#9c4527;margin:3cqw 0 1cqw}
#book-screen .osc-done-stamp{font-family:var(--game);font-weight:400;color:#c23b22;border:.5cqw solid #c23b22;border-radius:1.6cqw;transform:rotate(-8deg)}
#board .room>[data-yard]{position:sticky;bottom:1cqw;z-index:2;display:flex;box-shadow:none;min-height:44px}
#board #scarf-cards button:disabled{opacity:1}
#scarf-cards .silhouette{filter:contrast(0) brightness(.62) sepia(1) saturate(3.2) brightness(.75);opacity:1}
#scarf-cards .lock{top:11.5cqw}
#scarf-cards button:disabled .tag{background:#efe2c6;color:#6b4c38}
/* 글자 맞춤(fitText): 칸 크기를 고정하고 넘치면 글자를 줄인다. 단어 중간에서 끊지 않는다. */
#board :is(.scroll-say,.plaque,.btn-wood,.btn-cream,.room-count,.village-card,#record,#pause-home) :is(span,b,strong){font-family:var(--game);font-weight:400}
#board :is(#intro .scroll-say span,#intro .plaque span,.window h2,.room-title h2,.result-head h2,#new-best,.village-card span,.btn-wood,.btn-cream,#scarf-cards .tag,.shop-grid h3,.shop-grid .effect,.room-note,#book-screen .osc-title,#book-screen .osc-record-value){overflow:hidden;overflow-wrap:normal;word-break:keep-all;hyphens:none}
#book-screen .osc-book-scroll{padding-left:20cqw}
#book-screen :is(.osc-tier,.osc-challenges){padding-left:7cqw}
.window h2{left:32.5%;right:31.5%;top:19%;height:14%;padding:0}
/* 짧은 화면(390x700, 360x640): 결과 화면 한 장에 들어가게 */
@media (min-aspect-ratio:100/205){
.result-head{width:46cqw}
.result-cast{height:20cqw;margin-top:-4cqw}
#result-cat{width:25cqw;height:24cqw}#result-neo{width:20cqw;height:19cqw}
.result-scroll{padding:7.5cqw 14cqw 4cqw}
#board #result-distance{font-size:9.5cqw}
#board .village-card{margin:1cqw 0}#board .village-card span{width:40cqw;font-size:4.2cqw}
#board #record{margin:.5cqw 0 1cqw;font-size:5.2cqw}#record img{width:6.6cqw;height:6.6cqw}
#result .osc-row{font-size:3cqw}#result .osc-number{font-size:5.6cqw}
#board .result-actions{margin-top:1cqw;padding:1.5cqw 4cqw 2cqw}
#board .result-actions #restart{width:62cqw;font-size:6cqw}
#board .result-row{width:70cqw;margin:1.5cqw auto 0}
#board .result-row .btn-cream{font-size:4.2cqw;padding:0 9%}
}
@media (min-aspect-ratio:100/205){
.room-title{width:46cqw}
.room-count{width:32cqw;font-size:5cqw}
.shop-stage{height:14cqw;margin-top:-4cqw}.shop-stage .pose{bottom:-4cqw}.shop-stage .pose{width:26cqw;height:28cqw}
#board .shop-grid{gap:1.6cqw 5cqw;padding:1.6cqw 6cqw 3.6cqw}
#board .shop-grid article{padding:3.4cqw 3.4cqw 2.6cqw;gap:.6cqw}
#board .shop-grid img{width:9cqw;height:9cqw}
#board .shop-grid .buy{aspect-ratio:auto;height:10.5cqw}
.wardrobe-stage{height:24cqw}.wardrobe-stage .pose{width:27cqw;height:26cqw}
.room-screen .room>[data-yard]{width:50cqw!important}
}

#board .shop-grid{margin-bottom:0}.shop-stage{height:22cqw}
@media (min-aspect-ratio:100/205){.shop-stage{height:14cqw}#board .shop-grid h3{font-size:4.2cqw}}
#board #book-screen .osc-heading{overflow:hidden;white-space:nowrap;padding:0 8%}
#board .village-card span{padding:0 17%}
@media (min-aspect-ratio:100/205){.result-scroll{padding:9cqw 14cqw 6cqw}.result-cast{height:18cqw}}
#board :is(#result-distance,#record,#result .osc-number){font-family:'Jua',var(--game)}
.window h2{left:35%;right:34%}
#intro .plaque span{left:18.5%;right:18.5%}
#board .village-card span{padding:0 19%}
.window h2{top:20.5%;height:11.5%}
#daily .window-body p{padding:0 3cqw}
#board .village-card span{padding:2.2cqw 8.4cqw}
#board .result-head h2,#board #new-best{top:47.5%;bottom:22.5%;line-height:1.12}
.room-title h2{top:48%;bottom:23%;line-height:1.12}
.window h2,#intro .plaque span{line-height:1.12}
#board #book-screen .osc-heading{padding:0 13%}
#board .btn-wood{padding:0 16%}
#board #book-screen .osc-heading{padding:0 22%}
#book-screen .osc-heading{width:94%}
/* 시안 크기 맞춤(시안 start-pause v1): 글자·단추·냥도사 크게 */
#intro .plaque span{font-size:6.6cqw}
.window{width:90cqw}
.window h2{font-size:7.4cqw}
#board .window .btn-wood{font-size:8cqw}
#board #pause-home .orak-home-button{font-size:6.6cqw}
#board #pause-home .orak-home-button svg{width:5.6cqw;height:5.6cqw}
#paused canvas.window-top{width:60cqw;height:46cqw;top:-24%}
/* 결과: 시안처럼 기와지붕 위에 선 냥도사·너구리, 큰 거리 숫자 */
.result-cast{height:38cqw;margin-top:-7cqw;z-index:1}
.result-cast:before{content:'';position:absolute;left:-4cqw;right:-4cqw;bottom:-7cqw;height:17cqw;background:url(sprites/roof-m.webp) 0 0/auto 100% repeat-x;filter:brightness(.9)}
.result-cast .pose{z-index:1}
#result-cat{left:8%;width:46cqw;height:42cqw}
#result-neo{right:6%;width:34cqw;height:30cqw}
.result-scroll{z-index:2}
#board #result-distance{font-size:13cqw}
#board #record{font-size:7cqw}#record img{width:9cqw;height:9cqw}
@media (min-aspect-ratio:100/205){
.result-cast{height:27cqw;margin-top:-6cqw}
.result-cast:before{height:12cqw;bottom:-5cqw}
#result-cat{width:33cqw;height:30cqw}#result-neo{width:25cqw;height:22cqw}
#board #result-distance{font-size:10.5cqw}
#board #record{font-size:5.6cqw}#record img{width:7cqw;height:7cqw}
}
.result-cast{margin-top:-12cqw}
#result .osc-row{line-height:1.25;min-height:0}
#result .osc-total{margin-top:.5cqw}
#board .village-card{margin:.6cqw 0}
#board #record{margin:.4cqw 0 1cqw}
@media (min-aspect-ratio:100/205){.result-cast{margin-top:-9cqw}}
/* 가게·옷장 시안 크기 맞춤 */
.room-title h2{font-size:9.6cqw}
#board .shop-grid h3{font-size:5.6cqw}
.room-stage .pose{width:44cqw;height:44cqw;left:2%}
#board .shop-grid img{width:15cqw;height:15cqw}
#board .shop-grid .buy img{width:7cqw;height:7cqw}
.wardrobe-stage{height:38cqw}.wardrobe-stage .pose{width:44cqw;height:42cqw;left:6%}
#scarf-cards .scarf{width:20cqw;height:15cqw}
#scarf-cards .hang{width:13cqw}
#scarf-cards .lock{top:14cqw}
#scarf-cards .tag{font-size:3.6cqw;font-weight:700;min-height:8.4cqw}
#board #scarf-cards{padding:6cqw 5cqw 7cqw;gap:1cqw 1cqw}
#scarf-cards .silhouette{filter:brightness(0) sepia(1) saturate(2.4) hue-rotate(-10deg) brightness(.42)}
.room-screen .room>[data-yard]{font-size:6.4cqw}
@media (min-aspect-ratio:100/205){
.room-stage .pose{width:30cqw;height:30cqw}
#board .shop-grid img{width:9cqw;height:9cqw}
#board .shop-grid h3{font-size:4.6cqw}
.wardrobe-stage{height:26cqw}.wardrobe-stage .pose{width:30cqw;height:28cqw}
#scarf-cards .scarf{width:17cqw;height:12cqw}#scarf-cards .lock{top:11.5cqw}
}
.shop-stage{height:20cqw}
@media (min-aspect-ratio:100/205){.shop-stage{height:14cqw}.wardrobe-stage{height:20cqw}#scarf-cards .tag{min-height:7cqw;font-size:3.2cqw}#board #scarf-cards{padding:5cqw 5cqw 5.5cqw}}
#scarf-cards .silhouette{filter:brightness(0) invert(.27) sepia(1) saturate(2.6) hue-rotate(-12deg) brightness(.85)}
#board :is(.room-title h2,.window h2,.result-head h2,#new-best,#intro .scroll-say span,#intro .plaque span,.btn-wood,.btn-cream,#pause-home .orak-home-button,.shop-grid h3,#result-distance){-webkit-text-stroke:.16cqw currentColor;paint-order:stroke fill}
#book-screen .osc-book{position:absolute;inset:0;z-index:auto}
/* 기록장 시안 크기 맞춤 */
#book-screen{background:#2a1c3040}
#book-screen .osc-title{width:52cqw;font-size:8.4cqw;padding:0 10cqw;-webkit-text-stroke:.16cqw currentColor}
#book-screen .book-brush{width:28cqw;height:26cqw}
#book-screen .osc-record .osc-label{font-size:3.4cqw;font-weight:700}
#book-screen .osc-record-value{font-size:6cqw;font-family:'Jua',var(--game)}
#book-screen .osc-record-value.roof-text-value{font-size:4.4cqw}
#book-screen .record-icon{width:9.5cqw;height:9.5cqw}
#book-screen .osc-challenge-text{font-family:var(--game);font-size:4.6cqw}
#book-screen .osc-record{padding-left:13.5cqw}#book-screen .record-icon{left:2.4cqw}
#book-screen .osc-record-value{display:block;max-width:100%;overflow:hidden}
#book-screen .osc-record .osc-label{overflow-wrap:normal;word-break:keep-all;overflow:hidden}
@media (min-aspect-ratio:100/205){.result-scroll{padding:8.5cqw 14cqw 8.5cqw}.result-cast{height:23cqw}#result-cat{width:30cqw;height:27cqw}#result-neo{width:23cqw;height:20cqw}#board #result-distance{font-size:9.5cqw}}
#book-screen .osc-record{padding-right:3.4cqw}
/* fix-plan v1 #5: '새 기록!' stays inside the plaque's inner board, and the cast stands below the plaque */
#board .result-head h2,#board #new-best{left:21%;right:21%;top:47%;bottom:24%}
#board #new-best{font-size:7.6cqw}
#board .result-cast{margin-top:-2cqw}
@media (min-aspect-ratio:100/205){#board .result-cast{margin-top:-2.5cqw}#board #new-best{font-size:6.4cqw}}
#board .result-cast{height:28cqw}
#board #result-cat{width:38cqw;height:34cqw}#board #result-neo{width:28cqw;height:25cqw}
@media (min-aspect-ratio:100/205){#board .result-cast{height:19cqw}#board #result-cat{width:27cqw;height:24cqw}#board #result-neo{width:20cqw;height:18cqw}#board .result-scroll{padding-top:7cqw}}
/* The cast takes whatever height is left, so the score scroll always clears the buttons. */
#board .result-cast{height:28cqw}
#board #result-cat{height:114%;width:auto;aspect-ratio:38/34}#board #result-neo{height:89%;width:auto;aspect-ratio:28/25}
@media (min-aspect-ratio:100/226) and (max-aspect-ratio:4877/10000){#board .result-head{width:54cqw}#board .result-cast{height:25cqw}#board .result-scroll{padding-top:7cqw;padding-bottom:9cqw}#board .result-actions{padding-top:2cqw;padding-bottom:2cqw}}
@media (min-aspect-ratio:100/205){#board .result-cast{height:19cqw}}
#board .result-scroll{padding-bottom:9.5cqw}
@media (min-aspect-ratio:100/226) and (max-aspect-ratio:4877/10000){#board .result-scroll{padding-bottom:9cqw}}
@media (min-aspect-ratio:100/205){#board .result-scroll{padding-bottom:8cqw}}
@media (min-aspect-ratio:100/205){#board .result-scroll{padding-top:8.5cqw;padding-bottom:7.5cqw}#board #result-distance{font-size:8.4cqw;line-height:1.05}}
@media (min-aspect-ratio:100/205){#board .result-scroll{padding-left:15.5cqw;padding-right:15.5cqw}}
#result .osc-breakdown{padding:0 1.2cqw}#result .osc-total{position:relative}#board #result .osc-seal{top:-1.4cqw;right:-1cqw;font-size:2.9cqw;padding:.4cqw 1.6cqw;max-width:24cqw;white-space:normal;text-align:center;line-height:1.05}#board #result .osc-finished .osc-seal{transform:rotate(-10deg)}
#board #result .osc-seal{top:auto;bottom:.6cqw;right:-1.5cqw;font-size:2.6cqw;max-width:18cqw}
#result .osc-row{gap:2cqw}#result .osc-row .osc-label{white-space:nowrap;letter-spacing:-.02em}#result .osc-row .osc-value{white-space:nowrap}
#board #new-best{white-space:nowrap}
/* 2026-11-28: '새 기록!' is sized from the plaque itself (container units), so it sits
   centred on the plaque board at every screen ratio; the distance keeps clear of the
   scroll's top frame. */
#board .result-head{container-type:inline-size}
#board .result-head h2,#board #new-best{left:20%;right:20%;top:46.5%;bottom:22%;line-height:1;padding-top:.6cqw}
#board #new-best{font-size:13cqw}
#board .result-head h2{font-size:9cqw}
#board #result-distance{margin-top:2.2cqw}
@media (min-aspect-ratio:100/205){#board #result-distance{margin-top:.8cqw;font-size:8cqw}}
/* short screens with all five score lines (incl. recovered bundle) */
@media (min-aspect-ratio:100/205){#board .result-head{width:43cqw}#board .result-scroll{padding-top:7cqw;padding-bottom:6cqw}#board #result-distance{margin-top:.4cqw;font-size:7.2cqw}#board .village-card{margin:.3cqw 0}#result .osc-row{line-height:1.12}#result .osc-number{font-size:5cqw}#result .osc-total{padding-top:.6cqw;margin-top:.3cqw}}
/* The scroll frame is a border-image, so its thickness no longer depends on how tall
   the content is; the content always starts a fixed gap inside the frame. */
#board .result-scroll{background:none;border-style:solid;border-width:9.5cqw 11.5cqw 9cqw;border-image:url(sprites/result-scroll.webp) 60 70 58 70 fill / 9.5cqw 11.5cqw 9cqw 11.5cqw stretch;padding:1.6cqw 3.5cqw 1.4cqw}
#board #result-distance{margin-top:0}
@media (min-aspect-ratio:100/226) and (max-aspect-ratio:4877/10000){#board .result-scroll{border-width:8.5cqw 11cqw 8cqw;border-image-width:8.5cqw 11cqw 8cqw 11cqw;padding:1.2cqw 3.5cqw 1cqw}}
@media (min-aspect-ratio:100/205){#board .result-scroll{border-width:7.5cqw 10.5cqw 7cqw;border-image-width:7.5cqw 10.5cqw 7cqw 10.5cqw;padding:.9cqw 4cqw .6cqw}}
/* 390x800-class screens (viewport 0.47-0.49) with five score lines */
@media (min-aspect-ratio:100/212) and (max-aspect-ratio:4877/10000){#board .result-head{width:48cqw}#board .result-cast{height:21cqw}#board #result-distance{font-size:10.5cqw}#result .osc-row{line-height:1.15}}
#board .result-scroll{padding-bottom:1cqw}
@media (min-aspect-ratio:100/226) and (max-aspect-ratio:100/212){#result .osc-row{line-height:1.2}}
/* 3-9 교훈: 그림 판 안쪽 면을 재서 글자 상자를 그 면에 맞춤 (title-roof 안쪽 판 x17-83%, y52-80%) */
.room-title{container-type:inline-size}
#board .room-title h2{left:18%;right:18%;top:51.5%;bottom:19.5%;font-size:11cqw;line-height:1;padding:0}
#board .result-head h2,#board #new-best{left:18%;right:18%;top:51.5%;bottom:19.5%;padding:0;line-height:1}
#board .result-head h2{font-size:9cqw}
#board #new-best{font-size:12cqw}
/* 생선 바구니: 짚 테두리 안(y28-82%) 가운데 */
.hud-basket>*{transform:translateY(1.9cqw)}
/* 작은 글자 11.5px 이상, 연한 분홍 → 진한 색 */
#board #result .osc-delta{font-size:max(3.1cqw,12px);color:#a3402a;opacity:1}
#board #result .osc-seal{font-size:max(2.9cqw,12px)}
#book-screen .osc-record .osc-label{font-size:max(3.4cqw,12px)}
#book-screen .osc-date{font-size:12px}
/* 첫 화면·마당 글자: 하늘·지붕 위에서도 읽히게 진한 테두리 */
.title .title-tag{text-shadow:0 0 3px #3d2416,0 0 3px #3d2416,0 2px 3px #3d2416;font-size:max(4.2cqw,15px)}
.title .controls{font-size:max(3.2cqw,12px);text-shadow:0 0 3px #2b1710,0 0 3px #2b1710,0 1px 2px #2b1710}
#board .yard h2{width:40cqw;aspect-ratio:467/150;margin:1cqw auto 0;display:flex;white-space:nowrap;align-items:center;justify-content:center;padding:0 17%;background:url(sprites/plaque-small.webp) 0 0/100% 100% no-repeat;color:var(--wood-ink);text-shadow:none;font-family:var(--game);font-weight:400;font-size:6cqw;line-height:1;filter:drop-shadow(0 .6cqw .4cqw #2b17106b)}
#yard a[href="/guide/roof/"]{color:#fff6df;font-size:max(3.4cqw,13px);text-shadow:0 0 3px #2b1710,0 0 3px #2b1710,0 1px 2px #2b1710}
/* 띄어쓰기 없는 언어는 낱말 단위 줄바꿈(keep-all)을 쓰면 줄이 안 바뀌어 글자가 아주 작아짐 */
html:is([lang=ja],[lang=zh-TW],[lang=th]) #board :is(#intro .scroll-say span,#intro .plaque span,.window h2,.room-title h2,.result-head h2,.village-card span,.btn-wood,.btn-cream,#scarf-cards .tag,.shop-grid h3,.shop-grid .effect,.room-note,#book-screen .osc-title,#book-screen .osc-record-value,#book-screen .osc-record .osc-label){word-break:normal;overflow-wrap:anywhere;line-break:strict}
/* 가게 카드 이름·효과: 카드 안쪽 면 너비를 상자로 써서 넘치면 줄어들게 */
#board .shop-grid h3{align-self:stretch;max-width:100%;min-width:0;text-align:center;overflow:hidden}
#board .shop-grid .effect{max-width:100%;min-width:0}
/* 창 위 작은 판: 안쪽 밝은 면은 x31-69%, y20.5-30.5% (꽃 장식 사이) — 한 줄만 */
#board .window h2{left:35%;right:35.5%;top:21%;height:10%;padding:0;line-height:1.05}
#board #result .osc-breakdown{overflow:visible}
#board .shop-grid h3{padding:0 1.6cqw}
html[lang=th] #board :is(#new-best,.result-head h2,.room-title h2,.window h2,.btn-wood,.btn-cream,.village-card span,#book-screen .osc-title){line-height:1.3}
html:is([lang=ja],[lang=zh-TW],[lang=th]) #board .shop-grid h3{line-height:1.35}
html[lang=ja] #board :is(.window h2,.room-title h2,.btn-wood,.btn-cream,#intro .scroll-say span,#intro .plaque span){word-break:auto-phrase}
/* 3.0 글자·판 재검수: Jua·태국어 잉크가 줄 상자보다 위에 앉는 만큼 판 안에서 내림 (padding만 바꿔 판 그림은 그대로) */
#board #book-screen .osc-title{padding-top:.24em}
#board #book-screen .osc-heading{padding-top:.2em}
html[lang=th] #board #book-screen .osc-heading{padding-top:.36em}
#board .btn-wood{padding-top:.14em}
html[lang=th] #board :is(.btn-wood,.btn-cream){padding-top:.3em}
#board #daily-start{font-size:min(6.4cqw,2.7vh)}
html[lang=th] #book-screen .osc-record .osc-label{line-height:1.45;padding-top:1px}
html:has(#result:not([hidden])) /* 도전 알림: 판·단추·제목 위가 아니라 맨 위 어두운 머리띠 위에 띄운다 */.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}
html:has(#yard:not([hidden])) .osc-toast,html:has(.room-screen:not([hidden])) /* 도전 알림: 판·단추·제목 위가 아니라 맨 위 어두운 머리띠 위에 띄운다 */.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}
/* 도전 알림: 판·단추·제목 위가 아니라 맨 위 어두운 머리띠 위에 띄운다 */.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}

#board .title .best{align-self:center;padding:3px 14px;border-radius:999px;background:#2d211cd9;box-shadow:0 0 0 1.5px #e0b24a99;color:#fff1cf;text-shadow:none;line-height:1.25}#board .title .best:empty{visibility:hidden}
#board .title .controls{align-self:center;max-width:94%;padding:3px 10px;border-radius:10px;background:#2d211cb3;text-shadow:none;line-height:1.3;text-align:center;text-wrap:balance}
#board #yard a[href="/guide/roof/"]{min-height:30px;margin-block:7px;padding:2px 14px;border-radius:999px;background:#2d211cc7;text-shadow:none;color:#fff1cf}
#board .result-row{width:84cqw;gap:2.4cqw}
#board .title .primary{width:80%}#board .title .primary span{white-space:nowrap}
