:root{--ink:#fff2cc}*{box-sizing:border-box}html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{margin:0;background:#2d2331;color:var(--ink);font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
#stage{max-width:600px;margin:auto;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}header{display:flex;align-items:center;gap:6px;min-height:42px;padding:5px 9px;flex-shrink:0;font-size:10px}header a{color:var(--ink);text-decoration:none;font-size:14px}header b{color:#ffcb64}header span{flex:1}header button{font-size:10px;min-height:32px;padding:5px}
button{font:inherit;min-height:48px;padding:10px 20px;background:#66434d;color:var(--ink);border:2px solid #c99a62;border-radius:15px;touch-action:manipulation;font-weight:800}button:focus-visible{outline:3px solid #fff;outline-offset:3px}.primary{background:linear-gradient(#ffdd85,#f5ae46);color:#563525;box-shadow:0 5px #9a5837}
.board{flex:1;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:none;background:#342535}#field{position:relative;overflow:hidden;flex-shrink:0}canvas{display:block;width:100%;height:100%;touch-action:none}
.overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center;background:#332237e8;z-index:2}.overlay[hidden]{display:none}.panel{width:100%;max-width:330px;padding:24px 20px;border:2px solid #dbb678;border-radius:24px;background:#4f3443}.panel button{display:block;width:100%;margin-top:16px}.panel progress{display:block;width:100%;margin-top:20px;accent-color:#ffc64b}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

#stage{height:100dvh}#field{width:100%;height:100%}[hidden]{display:none!important}
.game-screen{position:absolute;inset:0;z-index:2;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;text-align:center;background:linear-gradient(#352339ba,#201a2be8),url('sprites/bg-title.webp') center/cover;padding:14px;color:#fff2cc}
.title-screen{overflow:hidden;background:linear-gradient(#221a2920,#221a2920 55%,#221a29dd),url('sprites/bg-title.webp') center/cover;display:flex;flex-direction:column;align-items:center;padding:12px 16px 18px}
.title-top{display:flex;justify-content:space-between;width:100%;font-size:12px;align-items:center}.title-top a{color:#ffe6b8;text-shadow:0 2px 4px #211628}
.title-logo{width:96%;height:27%;object-fit:contain;flex-shrink:0;margin-top:3%}.title-cast{position:relative;width:100%;flex:1;min-height:90px}.title-cast img{position:absolute;object-fit:contain}.title-dosa{width:48%;height:100%;left:26%;bottom:0;animation:bob 2.2s ease-in-out infinite;filter:drop-shadow(0 8px 8px #1d152d88)}.cameo{width:23%;height:38%;filter:drop-shadow(0 3px 3px #21152c)}.cameo-a{left:0;bottom:15%;transform:rotate(15deg)}.cameo-b{right:0;bottom:25%;transform:rotate(-14deg)}.cameo-c{left:4%;top:1%;width:19%}
.best-plate{padding:9px 28px;border:2px solid #ffdb82;border-radius:14px;background:#4a2d49ee;box-shadow:0 0 15px #ffd77999;font-size:20px;margin:7px 0 13px}
.title-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:9px;width:100%;align-items:end}.icon-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;box-shadow:none;padding:3px 0;font-size:13px;min-width:0;color:#fff0cc;text-shadow:0 2px 3px #1d1321}.icon-button img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 0 #241a2a66)}.icon-button span{line-height:1.25}.icon-button small{display:block;font-size:10px;margin-top:4px;color:#ffda7f}.start-button img{width:89px;height:89px}.start-button{font-size:22px}.title-note{font-size:12px;margin:12px 0 0;color:#f5d6b2}
.hud-pause{position:absolute;top:6px;right:7px;z-index:1;padding:3px;min-height:38px;width:40px;background:#39263ed9}.hud-pause img{width:30px;height:30px;object-fit:contain}.run-label{position:absolute;bottom:8px;left:10px;max-width:70%;padding:4px 7px;font-size:11px;border-radius:8px;background:#35223ddd}
.result-screen{padding:8px 16px 20px}.result-hero{position:relative}.result-hero>img{display:block;width:100%;height:clamp(135px,23dvh,210px);object-fit:contain;margin:auto}.result-hero h1{font-size:clamp(32px,10vw,46px);margin:0;color:#ffe291;text-shadow:0 3px #673d49}.result-hero>strong{font-size:18px;color:#ffd294}#best-badge{position:absolute;top:12px;right:0;padding:7px 10px;transform:rotate(8deg);background:#ffda75;color:#654035;border-radius:12px;font-weight:900}.new-best .result-hero{background:url('sprites/fx-confetti1.webp') center/contain no-repeat}.run-stats{padding:9px;background:#211b32bb;border:1px solid #b38c73;border-radius:16px;font-size:12px}.run-stats p{margin:5px 0}.run-stats strong{display:block;color:#ffdb75;font-size:19px;margin-top:8px}#result-mode,#daily-rate{font-size:12px;margin:7px 0}#daily-rate{color:#ffdb79;font-weight:800}.result-actions{display:flex;justify-content:space-around;margin:10px 0}.result-actions .icon-button img{width:57px;height:57px}.source-card{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #d5b078;border-radius:15px;background:#694544;color:#fff3d5;text-decoration:none;text-align:left}.source-card img{width:48px;height:48px;object-fit:contain}.source-card span{display:flex;flex-direction:column;gap:4px}.source-card small{font-size:10px}.source-card b{font-size:14px}#next-games{margin-top:10px;text-align:left}#next-games h3{font-size:13px}
.screen-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.screen-bar h2{font-size:18px;margin:0}.screen-bar .icon-button{font-size:10px}.screen-bar .icon-button img{width:35px;height:35px}.screen-bar>span{font-size:12px}.collection-note{font-size:12px;color:#ebc797;margin:8px 0 16px}#dex-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px}.cartridge{padding:5px 5px 10px;background:linear-gradient(#846060,#493445);border:2px solid #c09a71;border-radius:8px 8px 16px 16px;box-shadow:0 4px #181525;min-width:0}.cartridge canvas{width:100%;height:auto;aspect-ratio:240/155;border-radius:4px;border:2px solid #302331}.cartridge b{display:block;font-size:12px;margin:7px 0 4px}.cartridge small{display:block;font-size:9px;font-weight:500;line-height:1.4;word-break:keep-all}.cartridge.locked{filter:saturate(.35);color:#b8aaa6;border-color:#77625b}
.sheet-shade{position:absolute;inset:0;display:grid;place-items:center;z-index:4;padding:20px;background:#171020ce;touch-action:pan-y}.cartridge-sheet,.pause-panel{width:100%;max-height:100%;overflow:auto;text-align:center;border:2px solid #dfb377;background:linear-gradient(#78505a,#35273c);border-radius:24px;padding:18px;position:relative}.cartridge-sheet>canvas{width:100%;height:auto;border-radius:12px}.cartridge-sheet h2{margin:12px 0 6px}.cartridge-sheet p{font-size:13px}.cartridge-sheet>small{font-size:10px;color:#e2c29d}#sheet-close{position:absolute;right:9px;top:9px;border-radius:50%;padding:0;width:36px;min-height:36px}.sheet-actions{display:flex;justify-content:space-around;margin:14px 0}.original-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#fff2cc;text-decoration:none;font-size:13px;font-weight:800}.original-link img{width:58px;height:58px;object-fit:contain}.pause-dosa{width:60%;height:200px;object-fit:contain}.pause-panel h2{font-size:20px}.pause-actions{display:flex;justify-content:space-around}.pause-actions img{width:57px;height:57px}
.share-screen{display:flex;flex-direction:column;align-items:center;gap:10px}.share-screen .screen-bar{width:100%;flex-shrink:0}.share-screen #share-preview{width:100%;max-height:calc(100% - 190px);min-height:0;object-fit:contain;border-radius:18px;filter:drop-shadow(0 5px 6px #160e22)}.share-actions{display:flex;gap:6px;width:100%;justify-content:center;flex-shrink:0}.share-actions button{padding:8px;font-size:12px;min-width:0;flex:1}#share-note{font-size:12px;margin:0}#share-link{width:100%;font-size:11px}
@keyframes bob{50%{transform:translateY(-8px)}}@media(prefers-reduced-motion:reduce){.title-dosa{animation:none}}@media(max-height:740px){.title-logo{height:25%;margin-top:1%}.title-actions .icon-button img{width:55px;height:55px}.title-actions .start-button img{width:76px;height:76px}.best-plate{margin:4px 0 9px;padding:6px 24px}.title-note{margin-top:9px}.result-hero>img{height:145px}}

/* Four title actions and a complete result stay within the cabinet. */
button,header button,.hud-pause,#sheet-close{min-height:44px;min-width:44px}
.title-actions{grid-template-columns:1.15fr 1fr .85fr .85fr;gap:5px}
.title-actions .icon-button{font-size:12px;word-break:normal;overflow-wrap:normal;hyphens:auto}
.title-actions .start-button{font-size:20px}
.title-actions .icon-button img{width:52px;height:52px}
.title-actions .start-button img{width:72px;height:72px}
.best-plate{font-size:18px;padding:7px 15px}
.hud-pause{width:44px}
.streak-chip{position:absolute;top:5%;left:17%;font-size:11px;font-weight:800;padding:4px 8px;border-radius:12px;background:#322339e8;color:#ffdc85;pointer-events:none}
.result-screen{overflow:hidden;padding:4px 12px 8px;display:flex;flex-direction:column;gap:3px}
.result-hero>img{height:clamp(72px,11dvh,100px)}
.result-hero h1{font-size:32px;line-height:1.15}
.result-hero>strong{font-size:16px}
#score-breakdown{width:100%;max-width:430px;align-self:center}
#score-breakdown .osc-breakdown{margin:0;padding:6px 10px}
#score-breakdown .osc-row{font-size:12px;min-height:18px;padding:1px 0}
#score-breakdown .osc-total{margin-top:3px;padding-top:3px;gap:6px;min-height:29px}
#score-breakdown .osc-number{font-size:26px}
#score-breakdown .osc-label{word-break:normal;overflow-wrap:normal;hyphens:auto}
#score-breakdown .osc-seal{font-size:11px;padding:3px 5px}
#score-breakdown .osc-delta{font-size:11px}
#result-mode,#daily-rate,#weekly-rank{margin:0;font-size:11px;line-height:1.3}
#weekly-rank{color:#ffdc85;font-weight:800}
.run-stats{padding:3px 8px;font-size:10px}
.run-stats p{margin:2px 0}
.run-stats strong{font-size:15px;margin-top:2px}
.result-actions{margin:2px 0;gap:8px}
.result-actions .icon-button{flex:1;font-size:12px;word-break:normal;overflow-wrap:normal;hyphens:auto}
.result-actions .icon-button img{width:40px;height:40px}
.source-card{padding:4px 8px;gap:8px;min-height:44px}
.source-card img{width:32px;height:32px}.source-card b{font-size:12px}
#result-ad{flex-shrink:0;margin:2px 0;min-height:44px}
#result-ad button{padding:6px 10px;font-size:12px;min-height:44px}
#next-games{margin-top:0;flex:1;min-height:0;overflow:hidden}
#next-games{gap:3px;align-content:start}
#next-games .orak-next-title{font-size:11px;line-height:1.2;margin:0}
#next-games .orak-next-card{min-height:44px;padding:4px 8px;gap:8px;border-radius:12px}
#next-games .orak-next-icon,#next-games .orak-next-icon img{width:32px;height:32px;flex-basis:32px}
#next-games .orak-next-text strong{font-size:12px}
#next-games .orak-next-sub{font-size:10px;margin-top:0}
.book-screen{text-align:left;padding:0;overflow:hidden}
.book-screen .osc-book{height:100%;max-height:100%;display:flex;flex-direction:column}
.book-screen .osc-book-scroll{overflow:auto;min-height:0}
.book-screen .osc-label{word-break:normal;overflow-wrap:normal;hyphens:auto}
@media(max-height:760px){.result-hero>img{height:64px}.result-hero h1{font-size:29px}.result-screen{gap:2px}.source-card{padding:2px 6px}}
/* 판수 최고 기록 도장이 이미 떴으면 점수판의 신기록 도장은 겹치니 숨긴다. 색종이는 그림 뒤에만. */
.new-best #score-breakdown .osc-seal{display:none}
.new-best .result-hero{background-size:auto 62%;background-position:center top}

/* 44px touch area, independent of the drawing. */
.title-top a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}#share-back{min-width:44px;min-height:44px;flex-shrink:0}

/* 3.0 판 화면: 오락기 귀 옆 둥근 쉬기 단추, 빈 이름표 숨김 */
.hud-pause{border-radius:50%;padding:0;min-width:0;min-height:0;background:#2b2030;border:3px solid #f3e6cf;box-shadow:0 3px 0 #0006;display:grid;place-items:center}.hud-pause img{width:62%;height:62%}.run-label:empty{display:none}
.hud-pause::before{content:'';position:absolute;inset:-9px}

/* ===== 3.0 화면: 그림 판 위 글자 ===== */
.plate{position:relative;display:block;background:center/100% 100% no-repeat;flex-shrink:0;text-decoration:none}
.plate-face{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;overflow:hidden;line-height:1.12;min-width:0}
.plate-face b,.plate-face small{display:block;max-width:100%;white-space:nowrap;overflow:hidden}
.ink-cream{color:#fff3d0}
.game-screen{font-family:var(--orak-font,inherit)}
.title-screen,.result-screen,.dex-screen{padding:6px 12px 8px}
/* 첫 화면 */
.title-top{align-items:flex-start;gap:8px}.title-top .plate{width:36%;max-width:170px}
.coins-tag .plate-face{flex-direction:row;gap:4px;color:#ffe7a6;font-size:15px;font-weight:900;-webkit-text-stroke:3px #3a2118;paint-order:stroke fill}.coin-ico{width:22px;height:22px;object-fit:contain;flex-shrink:0}
.guide-tag{width:34%!important;margin-top:6px}.guide-tag .plate-face{color:#5a3220;font-size:14px;font-weight:900}
.title-logo{height:21%;margin-top:0}
.best-marquee{width:66%;max-width:300px;margin:2px 0 4px}.best-marquee .plate-face{color:#fff3d0;font-weight:900;-webkit-text-stroke:4px #4a1410;paint-order:stroke fill}#best-score{font-size:21px}#best-rounds{font-size:18px;color:#ffd75e}
.title-console{position:relative;width:100%;display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;align-items:end;gap:2px;padding:4% 4% 3%;background:url('sprites/ui-panel.webp') center/100% 100% no-repeat;aspect-ratio:900/330}
.arcade-button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0;margin:0;border:0;background:none;box-shadow:none;min-width:0;min-height:44px;color:#5a3220;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.arcade-cap{width:78%;max-width:70px;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 3px 0 #0004);transition:transform .08s}.arcade-button:active .arcade-cap{transform:translateY(3px) scale(.96)}
.start-button .arcade-cap{max-width:86px;width:86%}
.arcade-label{width:100%;max-width:96px}.arcade-label .plate-face{font-size:14px;font-weight:900;color:#5a3220}
.arcade-button>small{font-size:10px;font-weight:900;color:#fff;background:#2f9b58;border:2px solid #1f5a33;border-radius:9px;padding:1px 6px;max-width:100%;white-space:nowrap;overflow:hidden;margin-top:1px}
.title-note{width:100%;max-width:420px;margin:4px 0 0}.title-note .plate-face{font-size:14px;font-weight:900;color:#5a3220}
.title-cast{min-height:70px}
/* 결과 */
.result-screen{display:flex;flex-direction:column;align-items:center;gap:3px;overflow-y:auto;overflow-x:hidden}
.result-head{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;flex-shrink:0}
.result-banner{width:92%;max-width:400px}.result-banner .plate-face{color:#fff3d0;font-size:32px;font-weight:900;-webkit-text-stroke:5px #4a1410;paint-order:stroke fill}
.rank-plate{width:52%;max-width:240px;margin-top:-4%}.rank-plate .plate-face{font-size:14px;font-weight:900;color:#5a3220}
.best-stamp{position:absolute!important;left:0;top:-2px;width:29%;max-width:130px;transform:rotate(-12deg);z-index:2}.best-stamp[hidden]{display:none}.best-stamp .plate-face{font-size:13px;font-weight:900;color:#8a1c12}
.result-hero{position:relative;width:100%;height:clamp(84px,15dvh,140px);flex-shrink:0;display:flex;justify-content:center;align-items:flex-end;gap:0}.result-hero>img{height:100%;width:auto;object-fit:contain}.result-hero>#result-dosa{height:108%;margin-right:-6%;z-index:1;animation:bob 2.2s ease-in-out infinite}
.new-best .result-hero{background:url('sprites/fx-confetti1.webp') center top/auto 70% no-repeat}
.ticket{width:100%;max-width:420px;flex-shrink:0;background:url('sprites/ui-ticket.webp') center/100% 100% no-repeat;padding:3% 8% 3.5%}
#score-breakdown .osc-breakdown{background:none!important;border:0!important;box-shadow:none!important;color:#4a2a18;padding:2px 0!important}
#score-breakdown .osc-row,#score-breakdown .osc-label,#score-breakdown .osc-total{color:#4a2a18!important}#score-breakdown .osc-number{color:#d2341f!important}
.run-stats{width:100%;max-width:420px;display:grid;grid-template-columns:1fr 1fr auto;gap:4px;align-items:center;padding:0!important;background:none!important;border:0!important;flex-shrink:0}
.run-tag .plate-face{font-size:11px;font-weight:900;color:#5a3220}
.pouch{display:flex;align-items:center;gap:2px}.pouch img{width:40px;height:40px;object-fit:contain}.pouch strong{font-size:15px!important;color:#ffdb75;margin:0!important;white-space:nowrap}
.result-console{width:100%;max-width:420px;display:grid;grid-template-columns:repeat(3,1fr);align-items:end;padding:3% 7% 2%;background:url('sprites/ui-panel.webp') center/100% 100% no-repeat;aspect-ratio:900/300;flex-shrink:0;margin-top:auto}
.result-console .arcade-cap{max-width:60px}
/* 도감 */
.dex-screen{background:linear-gradient(#2a1c2acc,#1f1726ee),url('sprites/bg-title.webp') center/cover;padding-bottom:90px}
.dex-head{display:flex;align-items:center;gap:6px}.round-home{padding:0;border:0;background:none;width:48px;height:48px;flex-shrink:0}.round-home img{width:100%;height:100%;object-fit:contain}
.dex-sign{flex:1;max-width:260px;margin-top:-8px}.dex-sign .plate-face{font-size:21px;font-weight:900;color:#fff1cf;-webkit-text-stroke:4px #3a2118;paint-order:stroke fill}
.dex-count{flex-shrink:0;padding:4px 9px;border-radius:12px;background:#3a2118;border:2px solid #e0b25a;color:#ffe08a;font-weight:900;font-size:14px}
.collection-note{width:92%;max-width:360px;margin:4px auto 8px}.collection-note .plate-face{font-size:12px;font-weight:900;color:#5a3220}
#dex-grid{display:flex;flex-direction:column;gap:6px}
.shelf-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 6px 16px;background:url('sprites/ui-shelf.webp') bottom/100% auto no-repeat}
.cartridge{position:relative;padding:0;border:0;background:none;box-shadow:none;min-width:0;aspect-ratio:300/262;display:block}
.cartridge canvas{position:absolute;left:15%;right:15%;top:16%;width:70%;height:44%;border:0;border-radius:3px}
.cart-shell{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.cart-label{position:absolute;left:22%;right:22%;top:68%;height:15%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#5a3220;white-space:nowrap;overflow:hidden}
.cartridge.locked{filter:none}.cartridge.locked .cart-label{color:#6b6060}
.dex-dosa{position:absolute;right:2%;bottom:0;width:26%;max-width:130px;pointer-events:none;position:sticky;margin-left:auto;display:block;bottom:0;float:right}
/* 카트리지 살펴보기 */
.cartridge-sheet{background:linear-gradient(#fff7e4,#f4e1bd)!important;border:3px solid #4a2a18!important;color:#4a2a18;padding:12px!important}
#sheet-close{position:absolute;right:-6px;top:-10px;width:48px;height:48px;padding:0;border:0;background:none;z-index:2}#sheet-close img{width:100%;height:100%}
.sheet-machine{position:relative;width:62%;margin:0 auto;aspect-ratio:300/430}
.sheet-machine .sheet-cab{position:absolute;left:0;right:0;bottom:0;width:100%;z-index:1;pointer-events:none}
#sheet-cart{position:absolute;left:30%;width:40%;top:0;z-index:0;animation:cart-in 1.2s ease-out both}
.sheet-machine canvas{position:absolute;left:19%;width:62%;top:41%;height:30%;border-radius:4px;z-index:0}
@keyframes cart-in{from{transform:translateY(-30%)}to{transform:translateY(12%)}}
.sheet-card h2{font-size:28px;margin:4px 0 2px;color:#d2341f;white-space:nowrap;overflow:hidden}.sheet-card p{margin:2px 0;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden}
.sheet-stars{display:flex;justify-content:center;gap:4px}.sheet-stars img{width:30px;height:30px;object-fit:contain}
.sheet-actions{align-items:center;gap:8px}.practice-button{padding:0;border:0;background:none;box-shadow:none;width:58%}.practice-button .plate-face{font-size:18px;font-weight:900;color:#fff;-webkit-text-stroke:3px #1f5a33;paint-order:stroke fill}
.original-link{width:38%}.original-link .plate{width:100%}.original-link .plate-face{flex-direction:row;gap:3px;color:#5a3220;font-size:12px}.original-link .plate-face img{width:20px;height:20px}
.cartridge-sheet>small,.sheet-card>small{color:#7a5a3a}
/* 쉬어 가기 */
.pause-panel{background:none!important;border:0!important;display:flex;flex-direction:column;align-items:center}
.pause-dosa{width:46%;height:auto;max-height:28dvh;object-fit:contain;animation:bob 2.6s ease-in-out infinite}
.pause-sign{width:80%;max-width:330px;margin-top:-10px}.pause-sign .plate-face{font-size:26px;font-weight:900;color:#fff1cf;-webkit-text-stroke:4px #3a2118;paint-order:stroke fill}
.pause-actions{width:100%;display:grid!important;grid-template-columns:repeat(3,1fr);padding:4% 7% 3%;background:url('sprites/ui-panel.webp') center/100% 100% no-repeat;aspect-ratio:900/320;align-items:end;margin-top:8px}
.pause-actions .arcade-cap{max-width:62px}
@media(max-height:700px){.title-logo{height:19%}.arcade-cap{max-width:58px}.start-button .arcade-cap{max-width:72px}}

/* 3.0 다듬기 1 */
.title-top a.guide-tag{display:block;min-height:0;color:#5a3220;text-shadow:none}
.coins-tag .plate-face{font-size:16px}
.run-stats{grid-template-columns:1fr 1fr}.run-tag .plate-face{line-height:1.05}.run-tag small{font-size:10px;font-weight:800;color:#7a5a3a}.run-tag b{font-size:15px;font-weight:900;color:#d2341f}
.ticket{padding:2.5% 12% 3%}#score-breakdown .osc-row{font-size:14px!important;font-weight:800}#score-breakdown .osc-number{font-size:28px!important}
.result-console{position:sticky;bottom:0;z-index:3}
#result-mode{display:none}
.source-card{width:100%;max-width:420px;background:#5a3a2c!important;border:2px solid #e0b25a!important}
#next-games{width:100%;max-width:420px;flex:none!important}#next-games .orak-next-title{display:none}#next-games .orak-next-sub{display:none}
.dex-dosa{width:22%}

/* 라벨 판: 양 끝 발바닥은 그대로, 가운데만 늘어남(글자 길이에 맞춤) */
.title-top .plate-face{padding:0;border:0;background:none;border-radius:0}
.label-plate{display:flex;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;min-width:0;max-width:100%;height:26px;padding:0 3px;border-style:solid;border-width:0 20px;border-image:url('sprites/ui-label.webp') 0 86 fill / 0 20px stretch;color:#5a3220;font-weight:900;font-size:14px;line-height:1}
.label-plate b{display:block;white-space:nowrap;overflow:hidden;max-width:100%;padding-top:.08em}
.arcade-button .label-plate{width:calc(100% + 10px);margin:0 -5px}
.original-link .label-plate{height:34px;font-size:12px}.original-link .label-plate img{width:20px;height:20px;flex-shrink:0}

.label-plate{border-width:0 13px;border-image:url('sprites/ui-label.webp') 0 86 fill / 0 13px stretch;padding:0 2px}
.arcade-button .label-plate{width:calc(100% + 16px);margin:0 -8px}
.title-console{padding:4% 3% 3%;gap:0;grid-template-columns:1.12fr 1fr 1fr 1fr}
.arcade-button>small:empty{display:none}
/* 알림 띠는 머리줄·조작판을 가리지 않게 머리줄 아래로 (B10) */
.orak-hub-toast{top:calc(env(safe-area-inset-top,0px) + 50px)!important}
.osc-toast{bottom:auto!important;top:calc(env(safe-area-inset-top,0px) + 100px)!important}

/* 그림 비율 지킴: 이름표 끝(발바닥)은 원본 86/118 비율, 선반 판자는 원본 비율로 아래에 깔고 카트리지를 판자 윗면에 세움 */
.label-plate{border-width:0 19px;border-image:url('sprites/ui-label.webp') 0 86 fill / 0 19px stretch;padding:0 1px}
.arcade-button .label-plate{width:calc(100% + 22px);margin:0 -11px}
.original-link .label-plate{border-width:0 25px;border-image-width:0 25px}
.shelf-row{padding-bottom:7.5%}

/* 결과 냥도사 한마디 말풍선 + 화면마다 가만히 있을 때 움직임 */
.say-bubble{position:absolute;right:1%;top:-4px;z-index:2;max-width:44%;margin:0;padding:6px 10px;border:2px solid #6b3f2a;border-radius:14px;background:#fff6df;color:#4a2a1c;font-size:13px;font-weight:900;line-height:1.25;box-shadow:0 3px 0 #0003;animation:say-pop .35s ease-out both,bob 2.4s ease-in-out .35s infinite}
.say-bubble:empty{display:none}
.say-bubble::after{content:'';position:absolute;left:-16px;bottom:8px;border:7px solid transparent;border-right:9px solid #6b3f2a}
@keyframes say-pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes cap-pulse{50%{transform:translateY(-2px) scale(1.06);filter:drop-shadow(0 3px 0 #0004) brightness(1.12)}}
.start-button .arcade-cap,#retry .arcade-cap,#resume .arcade-cap{animation:cap-pulse 1.4s ease-in-out infinite}
.dex-dosa,.dosa-point{animation:bob 2.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.say-bubble,.start-button .arcade-cap,#retry .arcade-cap,#resume .arcade-cap,.dex-dosa,.dosa-point{animation:none}}

.pause-panel{position:relative}/* 쉬기 화면의 사이트 홈은 맨 위 띠 홈과 같은 일이라 판 그림 위에 따로 띄우지 않는다(확인 창 연결은 남김) */a.orak-home-button.pause-site-home:not(.btn){display:none!important}
/* 결과: 시안처럼 엽전 주머니가 조작판 위 끝에 걸치고, 짧은 폰에서는 영수증을 줄여 꼬리표가 조작판에 가리지 않게 */
.result-console>.pouch{position:absolute;left:50%;top:0;transform:translate(-50%,-64%);z-index:4;pointer-events:none}.result-console>.pouch strong{background:#fff1cf;color:#5a3220!important;border:2px solid #b07a3c;border-radius:999px;padding:1px 10px;font-size:14px!important;box-shadow:0 2px 0 #7a4a22;margin-left:-8px!important}.run-stats{margin-bottom:24px}
@media(max-height:760px){.result-hero{height:clamp(66px,11dvh,110px)}#score-breakdown .osc-row{min-height:16px;font-size:13px!important}#score-breakdown .osc-total{min-height:24px;margin-top:1px;padding-top:1px}#score-breakdown .osc-number{font-size:22px!important}.result-screen{gap:2px}}
/* 옛 #best-badge 규칙(노란 네모 배경)이 도장 그림 크기를 auto로 되돌리던 것 막기 */
#best-badge.best-stamp{background-color:transparent;background-size:100% 100%;background-repeat:no-repeat;background-position:center;padding:0;border-radius:0}
/* 조작판은 꼬리표 바로 아래에: 광고 자리·원작 카드·다른 놀이는 조작판 밑(스크롤)으로, 조작판 뒤로 흰 카드가 비치지 않게 */
.result-console{position:relative!important;bottom:auto}
@media(min-height:761px){.result-hero{height:clamp(84px,21dvh,190px)}}
/* 최고 기록 도장이 보일 때 제목 글자는 도장 오른쪽 자리에서만 (긴 언어에서 도장이 제목을 덮지 않게) */
.new-best .result-banner .plate-face{padding-left:17%}
/* 기록장: 도감과 같은 오락실 배경, 영수증 위 갈색 글씨 */
#book-screen{background:linear-gradient(#2a1c2acc,#1f1726ee),url('sprites/bg-title.webp') center/cover}
#book-screen .osc-book{position:absolute;inset:0;z-index:auto;background:none;--gold:#c0321d;--sub:#8a6a4a;color:#4a2a18}
#book-screen .osc-header{border:0;padding:8px 12px 2px;gap:6px}
#book-screen .osc-back{width:48px;height:48px;min-width:0;padding:0;border:0;border-radius:50%;background:none;font-size:0}
#book-screen .osc-title{flex:1;display:flex;justify-content:center;font-size:inherit;margin-right:48px}
#book-screen .osc-title .dex-sign{width:100%;max-width:240px;margin-top:-8px}
#book-screen .osc-book-scroll{padding:0 12px 28px;display:flex;flex-direction:column;align-items:center;gap:4px}
#book-screen h2.osc-heading{margin:8px 0 0;width:100%;display:flex;justify-content:center}
#book-screen .book-heading{width:min(78%,300px)}.book-heading .plate-face{display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;color:#5a3220}
#book-screen .book-ticket{width:100%;max-width:420px}
#book-screen .osc-records{gap:2px 16px}
#book-screen .osc-record{background:none;border:0;border-bottom:2px dashed #d9bd8e;border-radius:0;padding:5px 2px;gap:1px}
#book-screen .osc-record .osc-label{font-size:12px;font-weight:800;color:#7a5a3a;line-height:1.2}
#book-screen .osc-record-value{font-size:23px;color:#c0321d}
#book-screen .osc-tier{color:#9c4527;font-weight:900;margin:6px 0 0;font-size:14px}
#book-screen .osc-challenges{gap:0}
#book-screen .osc-challenge{background:none;border:0;border-bottom:1.5px dashed #d9bd8e;border-radius:0;padding:7px 2px}
#book-screen .osc-challenge .osc-label{font-weight:800;color:#4a2a18}
#book-screen .osc-done .osc-label{color:#8a6a4a}
#book-screen .osc-done-stamp{color:#c0321d;font-weight:900;border:2px solid #c0321d;border-radius:8px;padding:1px 6px;transform:rotate(-6deg)}
#book-screen .osc-title{font-family:inherit}#book-screen .osc-title b{color:#fff1cf;font-weight:900}
/* 자랑 카드 화면: 도감과 같은 머리, 단추는 발바닥 이름판(끝 장식 원래 비율, 가운데만 늘림) */
.share-head{width:100%;flex-shrink:0}.share-head .dex-sign{margin-inline:auto}.share-head-gap{width:48px;flex-shrink:0}
.share-screen #share-preview{max-height:calc(100% - 170px)}
.share-actions button{flex:1;height:46px;min-width:0;padding:0 6px;background:linear-gradient(#fff6dc,#f3d9a4)!important;border:3px solid #b07a3c;border-radius:999px;color:#5a3220;font-weight:900;font-size:14px;box-shadow:0 3px 0 #7a4a22;white-space:normal;line-height:1.05;font-size:clamp(11.5px,3.6vw,14px);overflow:hidden}
.share-actions button:active{transform:translateY(2px)}
#share-note{color:#fff1cf;font-weight:800;text-shadow:0 2px 0 #3a2118}
/* 결과: 시안 검수 5번 — 광고 이어하기·원작 카드·다른 놀이는 꼬리표와 조작판 사이 작은 꼬리표 줄로. 아주 짧은 폰은 조작판 밑으로 */
#result-ad,.result-extras{order:1}.result-console{order:2}
#result-ad:not(:has(.orak-ad-btn:not([hidden]))){display:none}
.result-extras{width:100%;max-width:420px;display:grid;grid-template-columns:1fr 1fr;gap:6px;flex-shrink:0;margin-bottom:22px}
.result-extras>*{min-width:0}
.result-extras .source-card,.result-extras .orak-next-card{height:44px;min-height:0;padding:3px 8px 3px 4px;gap:6px;border:2px solid #b07a3c!important;border-radius:12px;background:linear-gradient(#fff6dc,#f3d9a4)!important;box-shadow:0 2px 0 #7a4a22;color:#5a3220;overflow:hidden}
.result-extras .source-card img,.result-extras .orak-next-icon,.result-extras .orak-next-icon img{width:34px;height:34px;flex:0 0 34px;border-radius:8px}
.result-extras .source-card small{font-size:9.5px;color:#8a6a4a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-extras .source-card b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-extras .source-card span{min-width:0;gap:1px}
.result-extras .orak-next{margin:0;gap:0}.result-extras .orak-next-title{display:none}.result-extras .orak-next-card~.orak-next-card{display:none}
.result-extras .orak-next-text strong{font-size:12.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-extras .orak-next-sub{font-size:9.5px;margin-top:0;color:#8a6a4a}.result-extras .orak-next-arrow{font-size:18px}
.result-extras:has(.source-card:empty){grid-template-columns:1fr}.result-extras .source-card:empty{display:none}
.run-stats{margin-bottom:4px}
#result-ad .orak-ad-btn{width:100%;max-width:420px}
/* 총점은 시안처럼 '총점 3,300' 한 줄 */
#score-breakdown .osc-total{flex-direction:row;align-items:baseline;justify-content:center;gap:10px}
@media(min-height:761px){.result-hero{height:clamp(84px,19dvh,190px)}}
@media(max-height:700px){.result-console{margin-top:22px}.result-extras{order:3;margin:8px 0 0}}
#weekly-rank,#result-mode,#daily-rate{margin:0!important;font-size:11px;line-height:1.25;flex-shrink:0}
/* 결과 냥도사 자리는 남는 높이만큼 늘고 줄어든다(광고 이어하기·주간 순위 줄이 생겨도 단추가 화면 안에) */
.result-screen .result-hero{height:auto!important;flex:1 1 0;min-height:56px;max-height:200px}
@media(max-height:760px){.result-banner{width:84%}}
@media(max-height:760px){#score-breakdown .osc-row{min-height:15px;padding:0!important;line-height:1.15}}
/* 그림판(.plate)은 언제나 그림 한 장을 판 크기 그대로: 옛 규칙의 배경색·테두리·크기 auto가 끼어들지 않게 */
.plate{background-color:transparent!important;background-size:100% 100%!important;background-repeat:no-repeat!important;background-position:center!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.plate>.plate-face{padding:0;border:0;background:none}
/* 첫 화면: 시안처럼 로고를 엽전 간판·안내서 꼬리표 사이로 올리고, 전광판이 냥도사 발밑에 살짝 겹치게 해 냥도사 자리를 넓힘 */
.title-top{position:relative;z-index:2}.title-logo{position:relative;z-index:1;margin-top:-38px!important;height:23%!important}
.title-cast{margin-bottom:-16px}.best-marquee{position:relative;z-index:2}
@media(max-height:700px){.title-logo{height:21%!important;margin-top:-40px!important}}
/* 이름판: 시안처럼 끝에 못(리벳)만 박힌 크림 판. 발바닥 끝장식이 글자 자리를 먹어 긴 언어에서 잘리던 것 해결(그림을 늘리지 않음) */
.label-plate{border:2px solid #a8743a!important;border-image:none!important;border-radius:9px;background:radial-gradient(circle at 6px 50%,#c99047 2px,#0000 2.7px),radial-gradient(circle at calc(100% - 6px) 50%,#c99047 2px,#0000 2.7px),linear-gradient(#fff8e2,#f2d6a0);box-shadow:0 2px 0 #6b3f1d,inset 0 1px 0 #fffaf0;padding:0 11px!important;height:26px}
.arcade-button .label-plate{width:calc(100% + 8px);margin:0 -4px}
.original-link .label-plate{height:34px}
.cart-label{left:7%!important;right:7%!important;top:73%!important;height:19.5%!important;border:2px solid #b9893f;border-radius:5px;background:radial-gradient(circle at 5px 50%,#c99047 1.8px,#0000 2.5px),radial-gradient(circle at calc(100% - 5px) 50%,#c99047 1.8px,#0000 2.5px),linear-gradient(#fdedc2,#efd08e);box-shadow:inset 0 1px 0 #fff8e0;padding:0 9px;font-size:12.5px}
.cart-label{line-height:1}
.cart-label{padding:0 7px}.label-plate{padding:0 9px!important}.collection-note .plate-face{font-size:13px}
/* 결과 태그: 시안처럼 미니게임 그림 + 두 줄 글씨의 크림 카드 */
.run-stats .run-card{display:flex;align-items:center;gap:6px;height:46px;min-width:0;padding:3px 8px 3px 5px;box-sizing:border-box;border:2px solid #b07a3c;border-radius:12px;background:radial-gradient(circle at 7px 7px,#c99047 2px,#0000 2.7px),radial-gradient(circle at calc(100% - 7px) 7px,#c99047 2px,#0000 2.7px),linear-gradient(#fff8e2,#f2d6a0);box-shadow:0 2px 0 #6b3f1d,inset 0 1px 0 #fffaf0;color:#5a3220}
.run-card img{width:36px;height:36px;flex:0 0 36px;object-fit:contain;filter:drop-shadow(0 1px 0 #7a4a22)}
.run-card span{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1;line-height:1.1}
.run-card small{font-size:10px;font-weight:800;color:#8a6a4a;max-width:100%}.run-card b{font-size:16px;font-weight:900;color:#d2341f;max-width:100%}
.run-card img[hidden]+span{align-items:center}
/* 알림 띠: 결과 화면에서는 'N판 버팀!' 제목·점수표를 가리지 않게 주인공 그림 가운데로 (--toast-y는 screens.js가 잼) */
html:has(#result:not([hidden])) .orak-hub-toast{top:var(--toast-y,42%)!important}
html:has(#result:not([hidden])) .osc-toast{top:calc(var(--toast-y,42%) + 50px)!important}
.run-stats{gap:8px!important}@media(max-height:760px){.run-stats .run-card{height:40px}.run-card img{width:30px;height:30px;flex-basis:30px}.run-card b{font-size:14.5px}}
.run-stats .run-card{padding-top:2px;padding-bottom:2px}.run-card small{line-height:1.35;white-space:nowrap}.run-card b{line-height:1.2;white-space:nowrap}
/* ===== 2026-11-29 시안 대조 수정 v1: 첫 화면 (T1~T11). 배경 그림 상자(.t-stage)에 냥도사·친구·최고 기록판을 비율로 놓는다 ===== */
#home.title-screen[hidden]{display:none!important}#home.title-screen{container-type:size;display:block!important;padding:0!important;overflow:hidden;background:#3a2418!important}
#home .t-bg{position:absolute;inset:0;background:url('sprites/bg-title2.webp') center bottom/cover no-repeat}
#home .t-stage{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:max(100cqw,100cqh*.5628);height:max(100cqh,100cqw/.5628);container-type:size;pointer-events:none}
#home .title-cast{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;flex:none!important}
#home .title-cast img{position:absolute!important;height:auto!important;object-fit:contain;filter:drop-shadow(0 4px 0 #0003)}
#home .title-dosa{left:50%!important;right:auto!important;bottom:39.6%!important;top:auto!important;width:42%!important;transform:translateX(-50%);animation:none}
#home .cameo-a{left:3%!important;right:auto!important;bottom:44%!important;top:auto!important;width:26%!important}
#home .cameo-b{right:3%!important;left:auto!important;bottom:50.5%!important;top:auto!important;width:25%!important}
#home .cameo-c{left:6%!important;right:auto!important;bottom:60.5%!important;top:auto!important;width:16%!important}
#home .best-marquee{position:absolute!important;left:50%!important;top:59%!important;transform:translateX(-50%);width:58%!important;max-width:none!important;margin:0!important;z-index:3}
#home .best-marquee .plate-face{flex-direction:column;gap:0;line-height:1.05}
#home #best-score{font-size:6.4cqw;color:#fff4dc;font-weight:900;-webkit-text-stroke:1.2cqw #5a1410;paint-order:stroke fill}
#home #best-rounds{font-size:6cqw;color:#fff4dc;font-weight:900;-webkit-text-stroke:1.2cqw #5a1410;paint-order:stroke fill}
#home .title-top{position:absolute!important;inset:0 0 auto 0;height:0;z-index:4}
#home .coins-tag{position:absolute!important;left:3cqw;top:-1.2cqh;width:30cqw!important;margin:0!important}
#home .coins-tag .plate-face{color:#ffe7a6;font-size:5cqw;font-weight:900;-webkit-text-stroke:.9cqw #2a160c;paint-order:stroke fill;justify-content:center}
#home .guide-tag{position:absolute!important;right:2.5cqw;top:-1.6cqh;width:29cqw!important;margin:0!important;text-decoration:none}
#home .guide-tag .plate-face{color:#4a2a14;font-size:4.6cqw;font-weight:900;justify-content:center}
#home .title-logo{position:absolute!important;left:50%;top:5cqh;transform:translateX(-50%);width:48cqw!important;height:auto!important;margin:0!important;z-index:3}
#home .title-console{position:absolute!important;left:0;right:0;bottom:19cqw;height:38cqw;width:auto!important;aspect-ratio:auto!important;margin:0!important;max-width:none!important;display:grid!important;grid-template-columns:1.15fr 1fr 1fr 1fr!important;align-items:end!important;gap:0!important;padding:4cqw 3cqw 7.5cqw!important;z-index:3}
#home .title-console .arcade-button{justify-content:flex-end;gap:1cqw;position:relative}
#home .title-console .arcade-cap{width:18.5cqw!important;max-width:none!important}
#home .title-console .start-button .arcade-cap{width:21cqw!important}
#home .title-console .label-plate{width:calc(100% + 1cqw)!important;margin:0 -.5cqw!important;height:8.6cqw!important;font-size:4.7cqw!important}
#home .title-console .label-plate b{font-weight:900;color:#4a2612}
#home #daily-stamp{position:absolute;left:50%;bottom:-6.6cqw;transform:translateX(-50%);font-size:3.3cqw!important;line-height:1;padding:1.2cqw 2.4cqw!important;margin:0!important;border:0!important;border-radius:0!important;background:url('sprites/ui-pilltag.webp') center/100% 100% no-repeat!important;color:#ffe6b0!important;max-width:none!important;white-space:nowrap}
#home .t-strip{position:absolute;left:0;right:0;bottom:0;height:19cqw;z-index:3}
#home .title-note{position:absolute!important;left:0;right:0;bottom:0;z-index:1;width:100%!important;max-width:none!important;margin:0!important}
#home .title-note .plate-face{font-size:4.4cqw;font-weight:900;color:#4a2612}
#home .t-catpeek{position:absolute;left:50%;transform:translateX(-50%);bottom:11.5cqw;width:21cqw;z-index:0}
/* 이름표: 나무 테두리 크림 판(양 끝 못 모양은 원래 비율, 가운데 크림만 늘림) */
.label-plate{border:0!important;border-style:solid!important;border-width:0 1em!important;border-image:url('sprites/ui-nametag.webp') 0 96 fill / 0 1em stretch!important;background:none!important;box-shadow:none!important;border-radius:0!important;padding:0 .1em!important}
/* title tune v2 */
#home .title-dosa{bottom:37.5%!important;width:40%!important}
#home .best-marquee{top:62%!important;width:62%!important}
#home .coins-tag .plate-face{font-size:4.3cqw}
#home .guide-tag .plate-face{font-size:4.1cqw}
#home .title-console{bottom:18cqw;height:34cqw;padding:3cqw 3cqw 4cqw!important}
#home .title-console .arcade-cap{width:16.5cqw!important}
#home .title-console .start-button .arcade-cap{width:19.5cqw!important}
#home .title-console .label-plate{height:8.6cqw!important;font-size:5.2cqw!important}
#home .title-console .label-plate b{-webkit-text-stroke:.18cqw #4a2612}
#home .title-console #daily-launch .label-plate{font-size:4.2cqw!important}
#home #daily-stamp{bottom:-3.6cqw;font-size:3.4cqw!important;z-index:2}
#home .t-strip{height:18cqw}
#home .t-catpeek{bottom:10cqw;width:19cqw;z-index:2}
#home .t-stage{z-index:4}
#home .best-marquee{top:61%!important}
#home .title-console{padding-bottom:5.5cqw!important;height:35cqw}
#home #daily-stamp{bottom:-3cqw}
#home .t-catpeek{bottom:12cqw;width:14cqw}
#home .title-console{padding-bottom:4.2cqw!important;padding-top:4cqw!important}
#home .title-console .label-plate{height:9cqw!important}
#home #daily-stamp{bottom:-4.2cqw}
#home .t-strip{z-index:2}
#home .t-catpeek{bottom:11.5cqw;width:19cqw}
#home .best-marquee{top:60%!important;width:59%!important}
#home .title-console #daily-launch .label-plate{font-size:4.6cqw!important}
#home .title-console .label-plate b{-webkit-text-stroke:.08cqw #4a2612}
#home .coins-tag{width:32cqw!important}
#home .coins-tag .plate-face{font-size:3.9cqw}
/* ===== result v3 (mockup result-v1) ===== */
#result.r3[hidden]{display:none!important}
#result.r3{display:block!important;container-type:size;padding:0!important;overflow:hidden!important;gap:0!important;--u:min(1cqw,.6cqh)}
#result.r3 .r-box{position:absolute;top:0;bottom:0;left:50%;width:calc(100*var(--u));transform:translateX(-50%)}
#result.r3 .r-head{position:absolute;left:0;right:0;top:calc(1*var(--u));height:calc(35*var(--u));margin:0;display:block}
#result.r3 .result-banner{position:absolute;left:calc(8*var(--u));top:calc(1.5*var(--u));width:calc(84*var(--u));margin:0;max-width:none;z-index:1}
#result.r3 .result-banner .plate-face{color:#ffe9a0;font-size:calc(10*var(--u));font-weight:900;-webkit-text-stroke:calc(1.3*var(--u)) #6a1208;paint-order:stroke fill;letter-spacing:-.02em;text-shadow:0 calc(.7*var(--u)) 0 #6a1208}
#result.r3 .best-stamp{position:absolute;left:calc(7*var(--u));top:calc(-1*var(--u));width:calc(26*var(--u));transform:rotate(-13deg);z-index:2;margin:0}
#result.r3 .best-stamp .plate-face{color:#6a2a0c;font-size:calc(4.6*var(--u));font-weight:900}
#result.r3 .rank-plate{position:absolute;left:50%;transform:translateX(-50%);top:calc(24.5*var(--u));width:calc(46*var(--u));margin:0;z-index:2}
#result.r3 .rank-plate::before,#result.r3 .rank-plate::after{content:"";position:absolute;top:calc(-4*var(--u));width:calc(.9*var(--u));height:calc(5*var(--u));background:repeating-linear-gradient(#e7b54a 0 calc(1.2*var(--u)),#8a5a1c 0 calc(1.6*var(--u)));border-radius:4px;z-index:-1}
#result.r3 .rank-plate::before{left:28%}#result.r3 .rank-plate::after{right:28%}
#result.r3 .rank-plate .plate-face{color:#4a2612;font-size:calc(5.3*var(--u));font-weight:900}
#result.r3 .r-mid{position:absolute;left:0;right:0;top:calc(30*var(--u) + max(0px,100cqh - 166*var(--u))*.45);height:calc(98*var(--u))}
#result.r3 .result-hero{position:absolute!important;inset:0 0 auto 0!important;height:calc(48*var(--u))!important;max-height:none!important;min-height:0!important;margin:0!important;display:block!important}
#result.r3 .result-hero>img{position:absolute;height:auto!important;max-height:none!important;object-fit:contain;margin:0!important;animation:none}
#result.r3 #result-arcade,#result.r3 .result-arcade{left:calc(46*var(--u));top:calc(1*var(--u));width:calc(39*var(--u))!important}
#result.r3 #result-dosa{left:calc(9*var(--u));top:0;width:calc(37*var(--u))!important;z-index:1;filter:drop-shadow(0 4px 0 #0003)}
#result.r3 #result-say{display:none!important}
#result.r3 .ticket3{position:absolute;left:calc(10*var(--u));width:calc(80*var(--u));top:calc(38*var(--u));height:calc(37*var(--u));box-sizing:border-box;z-index:2;border-style:solid;border-width:calc(7*var(--u)) calc(6*var(--u)) calc(12*var(--u));border-image:url('sprites/ui-ticket2.webp') 80 60 110 60 fill / calc(7*var(--u)) calc(6*var(--u)) calc(12*var(--u)) stretch;padding:0;filter:drop-shadow(0 3px 2px #0005)}
#result.r3 #result-mode{display:none}
#result.r3.practice #result-mode,#result.r3.daily #result-mode{display:block;position:absolute;top:calc(-5.5*var(--u));left:0;right:0;text-align:center;font-size:calc(3.2*var(--u))!important;color:#8a4a20;font-weight:800}
#result.r3 #score-breakdown{position:absolute;inset:calc(-2*var(--u)) 0 calc(-11*var(--u)) 0;margin:0!important;max-width:none!important}
#result.r3 #score-breakdown .osc-breakdown{all:unset;display:block;position:absolute;inset:0;font-family:inherit}
#result.r3 #score-breakdown .osc-row{display:flex!important;justify-content:space-between;align-items:center;min-height:0!important;height:calc(6.2*var(--u));padding:0 calc(3*var(--u))!important;border:0!important;font-size:calc(5.2*var(--u))!important;font-weight:900;color:#4a2612!important;background:none!important}
#result.r3 #score-breakdown .osc-row .osc-label{font-weight:900;color:#4a2612}
#result.r3 #score-breakdown .osc-row .osc-value{font-weight:900;color:#4a2612;font-size:inherit!important}
#result.r3 #score-breakdown .osc-row .osc-value::before{content:"+"}
#result.r3 #score-breakdown .osc-total{position:absolute;left:0;right:0;bottom:0;height:calc(10.5*var(--u));margin:0!important;padding:0!important;border:0!important;display:flex!important;justify-content:center;align-items:center;gap:calc(4*var(--u));background:none!important}
#result.r3 #score-breakdown .osc-total .osc-label{font-size:calc(6.6*var(--u))!important;font-weight:900;color:#4a2612}
#result.r3 #score-breakdown .osc-number{font-size:calc(11*var(--u))!important;font-weight:900;color:#d8231c!important;-webkit-text-stroke:calc(1.1*var(--u)) #ffd75e;paint-order:stroke fill;line-height:1}
#result.r3 #score-breakdown .osc-seal,#result.r3 #score-breakdown .osc-delta,#result.r3 #score-breakdown .osc-best{display:none}
#result.r3 .run-stats{position:absolute;left:calc(4*var(--u));right:calc(4*var(--u));top:calc(76*var(--u));height:calc(13.5*var(--u));display:grid!important;grid-template-columns:1fr 1fr;gap:calc(4*var(--u));margin:0!important;z-index:3}
#result.r3 .run-stats .run-card{height:100%!important;box-sizing:border-box;display:flex;align-items:center;gap:calc(1.5*var(--u));padding:0 calc(2*var(--u)) 0 calc(1*var(--u))!important;margin:0;border-style:solid!important;border-width:calc(3*var(--u)) calc(3*var(--u))!important;border-image:url('sprites/ui-woodboard.webp') 50 50 fill / calc(3*var(--u)) stretch!important;background:none!important;box-shadow:none!important;border-radius:0!important}
#result.r3 .run-card img{width:calc(11*var(--u))!important;height:calc(11*var(--u))!important;flex:0 0 auto;object-fit:contain;margin:calc(-2*var(--u)) 0}
#result.r3 .run-card span{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;text-align:center}
#result.r3 .run-card small{font-size:calc(3.4*var(--u));color:#6a3a1c;font-weight:800;line-height:1.2}
#result.r3 .run-card b{font-size:calc(5*var(--u));color:#3a1c0c;font-weight:900;line-height:1.2;max-width:100%}
#result.r3 .pouch{position:absolute!important;left:50%;transform:translateX(-50%);top:calc(84*var(--u));width:calc(40*var(--u));height:calc(18*var(--u));display:block!important;margin:0!important;z-index:4;pointer-events:none}
#result.r3 .pouch>img{position:absolute!important;left:50%;transform:translateX(-50%);top:0;width:calc(20*var(--u))!important;height:auto!important}
#result.r3 .reward-pill{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(-2*var(--u));width:calc(30*var(--u));margin:0}
#result.r3 .reward-pill .plate-face{color:#5a2a0c;font-size:calc(5.6*var(--u));font-weight:900}
#result.r3 #reward{color:inherit;font-weight:900;white-space:nowrap}
#result.r3 .r-foot{position:absolute;left:0;right:0;bottom:0;height:calc(37*var(--u))}
#result.r3 #result-ad{position:absolute;left:0;right:0;bottom:calc(38*var(--u));margin:0}
#result.r3 .result-console{position:absolute!important;left:0;right:0;top:0;height:calc(26*var(--u));width:auto!important;max-width:none!important;margin:0!important;display:grid!important;grid-template-columns:1fr 1fr 1fr!important;align-items:end!important;gap:0!important;padding:calc(3*var(--u)) calc(5*var(--u)) calc(4.5*var(--u))!important;z-index:3;aspect-ratio:auto!important}
#result.r3 .result-console .arcade-cap{width:calc(17*var(--u))!important;max-width:none!important}
#result.r3 .result-console .label-plate{width:calc(100% + 1*var(--u))!important;height:calc(8.4*var(--u))!important;font-size:calc(5*var(--u))!important}
#result.r3 .result-console .label-plate b{font-weight:900;color:#4a2612}
#result.r3 .r-strip{position:absolute;left:0;right:0;bottom:0;height:calc(12*var(--u));background:linear-gradient(#e8b54a 0 calc(.6*var(--u)),#b81e18 calc(.6*var(--u)) 82%,#7a1210);z-index:2}
#result.r3 .r-catpeek{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(8.5*var(--u));width:calc(16*var(--u));z-index:-1}
#result.r3 .result-extras{position:absolute;inset:calc(1.6*var(--u)) calc(2*var(--u)) calc(1.2*var(--u));display:grid!important;grid-template-columns:1fr 1fr;gap:calc(14*var(--u));margin:0!important}
#result.r3 .result-extras>*{min-width:0;margin:0!important}
#result.r3 #source-card,#result.r3 .orak-next-card{display:flex!important;align-items:center;gap:calc(1.5*var(--u));height:calc(9.2*var(--u))!important;min-height:0!important;box-sizing:border-box;padding:0 calc(1*var(--u))!important;margin:0!important;border-style:solid!important;border-width:0 calc(3*var(--u))!important;border-image:url('sprites/ui-nametag.webp') 0 96 fill / 0 calc(3*var(--u)) stretch!important;background:none!important;border-radius:0!important;box-shadow:none!important;color:#4a2612!important;text-decoration:none;overflow:hidden}
#result.r3 #source-card[hidden]{display:none!important}
#result.r3 #source-card img,#result.r3 .orak-next-icon,#result.r3 .orak-next-icon img{width:calc(6.6*var(--u))!important;height:calc(6.6*var(--u))!important;flex:0 0 auto;border-radius:calc(1.5*var(--u));margin:0!important}
#result.r3 #source-card span,#result.r3 .orak-next-text{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.15}
#result.r3 #source-card small,#result.r3 .orak-next-sub{font-size:calc(2.6*var(--u))!important;color:#6a3a1c!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
#result.r3 #source-card b,#result.r3 .orak-next-text strong{font-size:calc(3.5*var(--u))!important;color:#3a1c0c!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:900}
#result.r3 .orak-next-title,#result.r3 .orak-next-arrow{display:none!important}
#result.r3 #next-games{display:block;padding:0!important;background:none!important;border:0!important}
html:has(#result.r3:not([hidden])) .orak-hub-toast,html:has(#result.r3:not([hidden])) .osc-toast{top:auto!important;bottom:calc(13*min(1vw,.6vh) + env(safe-area-inset-bottom))!important}
#result.r3 #score-breakdown{top:calc(-2*var(--u))!important;bottom:auto!important;height:calc(31*var(--u))!important;width:auto!important;left:0!important;right:0!important;align-self:auto}
#result.r3 #score-breakdown .osc-breakdown{width:auto!important;height:auto!important;inset:0!important;max-width:none!important;padding:0!important}
#result.r3 #score-breakdown .osc-row .osc-value::before{content:none}
#result.r3 .run-stats,#result.r3 .result-extras{width:auto!important;max-width:none!important}
#result.r3 .run-stats .run-card{height:calc(13.5*var(--u))!important;min-height:0!important}
#result.r3 .pouch{top:calc(80*var(--u));height:calc(21*var(--u))}
#result.r3 .pouch>img{width:calc(26*var(--u))!important}
#result.r3 .reward-pill{bottom:0}
#result.r3 .r-foot{height:calc(35*var(--u))}
#result.r3 .result-console{height:calc(24*var(--u))}
#result.r3 .r-strip{height:calc(11*var(--u))}
#result.r3 #result-ad{bottom:calc(36*var(--u))}
html:has(#result.r3:not([hidden])) .orak-hub-toast,html:has(#result.r3:not([hidden])) .osc-toast{bottom:calc(2px + env(safe-area-inset-bottom))!important;padding-top:6px!important;padding-bottom:6px!important;min-height:0!important}
#result.r3 .ticket3{top:calc(36*var(--u));height:calc(35*var(--u))}
#result.r3 #score-breakdown{top:calc(.3*var(--u))!important;height:calc(28.5*var(--u))!important}
#result.r3 #score-breakdown .osc-row{height:calc(6*var(--u));font-size:calc(5.3*var(--u))!important;-webkit-text-stroke:calc(.12*var(--u)) #4a2612}
#result.r3 .run-stats{top:calc(71.5*var(--u))}
#result.r3 .pouch{top:calc(77*var(--u));height:calc(21*var(--u))}
#result.r3 .pouch>img{width:calc(22*var(--u))!important}
#result.r3 .reward-pill{width:calc(28*var(--u))}
#result.r3 .r-foot{height:calc(38*var(--u))}
#result.r3 .result-console{height:calc(27*var(--u));padding:calc(2*var(--u)) calc(5*var(--u)) calc(4*var(--u))!important}
#result.r3 .result-console .arcade-cap{width:calc(15.5*var(--u))!important}
#result.r3 #result-ad{bottom:calc(39*var(--u))}
#result.r3 .best-stamp .plate-face{font-size:calc(4.1*var(--u))}
#result.r3 .result-extras{gap:calc(12*var(--u))}
#result.r3 #source-card small,#result.r3 .orak-next-sub{font-size:calc(2.4*var(--u))!important}
#result.r3 #source-card b,#result.r3 .orak-next-text strong{font-size:calc(3.3*var(--u))!important}
#result.r3 .best-stamp{left:calc(2*var(--u));top:calc(-2.5*var(--u));width:calc(24*var(--u))}
#result.r3 .pouch>img{width:calc(25*var(--u))!important;top:calc(-2*var(--u))}
#result.r3 .best-stamp .plate-face{font-size:calc(3.5*var(--u))}
#result.r3 .run-stats{gap:calc(15*var(--u));left:calc(3*var(--u));right:calc(3*var(--u))}
#result.r3 .run-card img{width:calc(9.5*var(--u))!important;height:calc(9.5*var(--u))!important}
#result.r3 .run-card small{font-size:calc(3.1*var(--u))}
#result.r3 .run-card b{font-size:calc(4.6*var(--u))}
#result.r3 .pouch{top:calc(73*var(--u))}
#result.r3 .pouch>img{width:calc(23*var(--u))!important;top:0}
#result.r3 .run-stats{gap:calc(15*var(--u))!important}
#result.r3 .ticket3{border-width:calc(8.7*var(--u)) calc(13*var(--u)) calc(12*var(--u))!important;border-image:url('sprites/ui-ticket2.webp') 80 120 110 120 fill / calc(8.7*var(--u)) calc(13*var(--u)) calc(12*var(--u)) stretch!important}
#result.r3 #score-breakdown{top:calc(-5.5*var(--u))!important;height:calc(31.8*var(--u))!important;left:calc(-10*var(--u))!important;right:calc(-10*var(--u))!important}
#result.r3 #score-breakdown .osc-total{height:calc(9.6*var(--u))}
#result.r3 #score-breakdown .osc-number{font-size:calc(9.5*var(--u))!important}
#result.r3 #score-breakdown .osc-total .osc-label{font-size:calc(6*var(--u))!important}
#result.r3 .ticket3{border-width:calc(9.75*var(--u)) calc(12*var(--u)) calc(13*var(--u))!important;border-image:url('sprites/ui-ticket2.webp') 105 130 140 130 fill / calc(9.75*var(--u)) calc(12*var(--u)) calc(13*var(--u)) stretch round!important}
#result.r3 #score-breakdown{top:calc(-4.5*var(--u))!important;height:calc(29.7*var(--u))!important;left:calc(-6*var(--u))!important;right:calc(-6*var(--u))!important}
#result.r3 #score-breakdown .osc-row{padding:0 calc(2*var(--u))!important}
#result.r3 #score-breakdown .osc-total{height:calc(11*var(--u))}
#result.r3 #score-breakdown{top:calc(-3*var(--u))!important;height:calc(28.2*var(--u))!important}
#result.r3 #score-breakdown .osc-row{padding:0 calc(5*var(--u))!important}
#result.r3 #reward{line-height:1;display:block}
#result.r3 .reward-pill .plate-face{line-height:1}
#result.r3 .run-card span{padding-right:calc(1.2*var(--u))}
/* ===== dex v3 (mockup dex-v1) ===== */
#dex-screen.d3[hidden]{display:none!important}
#dex-screen.d3{display:block!important;container-type:size;padding:0!important;overflow:hidden!important;background:#3a2418 url('sprites/bg-dex.webp') center bottom/cover no-repeat!important;--W:max(100cqw,100cqh*.5628);--H:max(100cqh,100cqw/.5628)}
#dex-screen.d3 .dex-head{position:absolute;left:0;right:0;top:0;height:22cqw;display:block;z-index:3}
#dex-screen.d3 .round-home{position:absolute;left:2.5cqw;top:5.5cqw;width:14cqw;height:14cqw}
#dex-screen.d3 .dex-sign{position:absolute;left:50%;transform:translateX(-50%);top:-6.5cqw;width:62cqw;max-width:none;margin:0}
#dex-screen.d3 .dex-sign .plate-face{font-size:8cqw;color:#ffd75e;-webkit-text-stroke:1.5cqw #4a2410;paint-order:stroke fill;font-weight:900;text-shadow:0 .6cqw 0 #4a2410}
#dex-screen.d3 .dex-count{position:absolute;right:2cqw;top:8.5cqw;padding:1.6cqw 3.2cqw;font-size:4.6cqw;border:0;border-radius:0;background:url('sprites/ui-pilltag.webp') center/100% 100% no-repeat;color:#ffe6b0;line-height:1;white-space:nowrap}
#dex-screen.d3 .collection-note{position:absolute;left:7cqw;right:7cqw;top:21.5cqw;width:auto;max-width:none;height:9.5cqw;aspect-ratio:auto!important;margin:0;z-index:3;background:none!important;box-sizing:border-box;border-style:solid;border-width:0 11cqw;border-image:url('sprites/ui-plate.webp') 0 140 fill / 0 11cqw stretch}
#dex-screen.d3 .collection-note .plate-face{left:-6cqw!important;right:-6cqw!important;top:8%!important;bottom:8%!important;font-size:3.9cqw;color:#5a3220}
#dex-screen.d3 .d-scroll{position:absolute;z-index:2;left:calc(50cqw - var(--W)*.403);right:calc(50cqw - var(--W)*.403);top:max(31.5cqw,calc(100cqh - var(--H)*.765));bottom:calc(var(--H)*.144);overflow-y:auto;overscroll-behavior:contain;background:url('sprites/dex-back.webp') top center/100% auto repeat-y local;scrollbar-width:none;padding-bottom:22cqw;box-sizing:border-box}
#dex-screen.d3 .d-scroll::-webkit-scrollbar{display:none}
#dex-screen.d3 #dex-grid{display:block;gap:0}
#dex-screen.d3 .shelf-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5cqw;padding:2.2cqw 2.5cqw 5.4cqw;margin:0 -2cqw;background:url('sprites/dex-plank.webp') center bottom/100% 5.8cqw no-repeat}
#dex-screen.d3 .cartridge{aspect-ratio:300/262}
#dex-screen.d3 .cart-icon{position:absolute;left:18%;right:18%;top:20%;width:64%;height:auto;aspect-ratio:1;max-height:56%;object-fit:cover;border-radius:6%;z-index:0}
#dex-screen.d3 .cartridge .cart-shell{z-index:1}
#dex-screen.d3 .cartridge.locked .cart-icon{filter:brightness(0) opacity(.55)}
#dex-screen.d3 .cart-lock{position:absolute;left:50%;top:22%;transform:translateX(-50%);width:28%;z-index:2}
#dex-screen.d3 .cart-label{z-index:2;left:12%!important;right:12%!important;top:71%!important;height:21%!important;border:0!important;background:none!important;box-shadow:none!important;color:#3a1c0c;font-size:4.2cqw;font-weight:900}
#dex-screen.d3 .cartridge.locked .cart-label{color:#5a5050}
#dex-screen.d3 .dex-dosa{position:absolute!important;right:-3cqw;bottom:0;width:36cqw;max-width:none;float:none;margin:0;z-index:4;pointer-events:none}
#dex-screen.d3 .collection-note{border-style:solid!important;border-width:0 11cqw!important;border-image:url('sprites/ui-plate.webp') 0 140 fill / 0 11cqw stretch!important}
#dex-screen.d3 .dex-sign .plate-face{-webkit-text-stroke:.45cqw #ffd75e;paint-order:normal;text-shadow:.6cqw 0 0 #4a2410,-.6cqw 0 0 #4a2410,0 .6cqw 0 #4a2410,0 -.6cqw 0 #4a2410,.45cqw .45cqw 0 #4a2410,-.45cqw .45cqw 0 #4a2410,.45cqw -.45cqw 0 #4a2410,-.45cqw -.45cqw 0 #4a2410,0 1.2cqw 0 #4a2410}
#dex-screen.d3 .cart-label{left:20%!important;right:20%!important;font-size:3.6cqw}
#dex-screen.d3 .shelf-row{padding:1.2cqw 3cqw 3.6cqw;background-size:100% 3.8cqw}
#dex-screen.d3 .cart-label{left:7%!important;right:7%!important;top:69%!important;height:24%!important;box-sizing:border-box;border-style:solid!important;border-width:0 3.2cqw!important;border-image:url('sprites/ui-nametag.webp') 0 96 fill / 0 3.2cqw stretch!important;padding:0!important;font-size:3.9cqw}
#dex-screen.d3 .cart-label{-webkit-text-stroke:.12cqw #3a1c0c}
/* ===== cartridge sheet v3 ===== */
#dex-sheet.s3{container-type:size;display:block!important;padding:0!important;--u:min(1cqw,calc(100cqh/188))}
#dex-sheet.s3[hidden]{display:none!important}
#dex-sheet.s3 .cartridge-sheet{position:absolute!important;left:50%;top:calc((100cqh - 177*var(--u))/2 + 3*var(--u));transform:translateX(-50%);width:calc(91*var(--u))!important;height:calc(177*var(--u))!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;display:block!important}
#dex-sheet.s3 .s-panel{position:absolute;left:0;right:0;top:calc(9*var(--u));bottom:0;box-sizing:border-box;border-style:solid;border-width:calc(9*var(--u));border-image:url('sprites/ui-cardpanel.webp') 80 fill / calc(9*var(--u)) stretch;filter:drop-shadow(0 4px 6px #0007)}
#dex-sheet.s3 #sheet-close{position:absolute;right:calc(-2*var(--u));top:calc(1*var(--u));width:calc(15*var(--u));height:calc(15*var(--u));padding:0;border:0;background:none;z-index:6;min-height:0}
#dex-sheet.s3 #sheet-close img{width:100%;height:100%;object-fit:contain}
#dex-sheet.s3 .sheet-machine{position:absolute!important;left:0;right:0;top:0;height:calc(98*var(--u));margin:0!important;width:auto!important;aspect-ratio:auto!important}
#dex-sheet.s3 .s-cart{position:absolute;left:50%;top:0;width:calc(25*var(--u));aspect-ratio:300/262;transform:translateX(-50%);z-index:4;animation:s3-cart 1s ease-out both}
#dex-sheet.s3 #sheet-cart{position:absolute!important;inset:0!important;width:100%!important;left:0!important;top:0!important;animation:none!important;z-index:1}
#dex-sheet.s3 #sheet-cart-ic{position:absolute;left:18%;width:64%;top:20%;height:auto;aspect-ratio:1;max-height:56%;object-fit:cover;border-radius:6%;z-index:0}
#dex-sheet.s3 .s-arrow{position:absolute;left:50%;top:calc(17*var(--u));width:calc(9*var(--u));transform:translateX(-50%);z-index:5;animation:s3-arrow 1s ease-in-out infinite alternate}
#dex-sheet.s3 .s-cab{position:absolute;left:50%;top:calc(18.5*var(--u));width:calc(66*var(--u));aspect-ratio:300/360;transform:translateX(-50%);z-index:2}
#dex-sheet.s3 .s-cab .sheet-cab{position:absolute!important;inset:0;width:100%!important;height:100%!important;z-index:1}
#dex-sheet.s3 #sheet-art{position:absolute!important;left:18.5%!important;width:63%!important;top:37%!important;height:26%!important;right:auto!important;bottom:auto!important;z-index:0;border-radius:4px;margin:0!important;object-fit:cover}
@keyframes s3-cart{from{transform:translate(-50%,-25%);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@keyframes s3-arrow{to{transform:translate(-50%,18%)}}
@media(prefers-reduced-motion:reduce){#dex-sheet.s3 .s-cart,#dex-sheet.s3 .s-arrow{animation:none}}
#dex-sheet.s3 .sheet-card{position:absolute!important;left:0;right:0;top:calc(97*var(--u));bottom:0;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;display:block!important;z-index:3}
#dex-sheet.s3 .s-title{position:absolute;left:50%;transform:translateX(-50%);top:0;width:calc(60*var(--u));margin:0}
#dex-sheet.s3 .s-title .plate-face{font-size:calc(9*var(--u));color:#2a1408;font-weight:900;-webkit-text-stroke:calc(.25*var(--u)) #2a1408}
#dex-sheet.s3 #sheet-title{margin:0;font-size:inherit;color:inherit;line-height:1}
#dex-sheet.s3 .s-source,#dex-sheet.s3 .s-stats{position:absolute!important;left:50%;transform:translateX(-50%);aspect-ratio:auto!important;background:none!important;box-sizing:border-box;margin:0}
#dex-sheet.s3 .s-source{top:calc(23.5*var(--u));width:calc(72*var(--u));height:calc(9.5*var(--u));border-style:solid;border-width:0 calc(9*var(--u));border-image:url('sprites/ui-brownband.webp') 0 92 fill / 0 calc(9*var(--u)) stretch}
#dex-sheet.s3 .s-stats{top:calc(34.5*var(--u));width:calc(64*var(--u));height:calc(9*var(--u));border-style:solid;border-width:0 calc(5*var(--u));border-image:url('sprites/ui-creampill.webp') 0 60 fill / 0 calc(5*var(--u)) stretch}
#dex-sheet.s3 .s-source .plate-face,#dex-sheet.s3 .s-stats .plate-face{left:0!important;right:0!important;top:0!important;bottom:0!important}
#dex-sheet.s3 .s-source .plate-face{font-size:calc(5*var(--u));color:#ffe9c0;font-weight:900}
#dex-sheet.s3 .s-stats .plate-face{font-size:calc(5*var(--u));color:#4a2612;font-weight:900}
#dex-sheet.s3 #sheet-source,#dex-sheet.s3 #sheet-stats{margin:0;font-size:inherit;color:inherit;line-height:1;white-space:nowrap}
#dex-sheet.s3 .sheet-stars{position:absolute;left:0;right:0;top:calc(44*var(--u));height:calc(10*var(--u));display:flex;justify-content:center;gap:calc(1*var(--u));margin:0}
#dex-sheet.s3 .sheet-stars img{width:calc(10*var(--u));height:calc(10*var(--u));object-fit:contain}
#dex-sheet.s3 .sheet-actions{position:absolute;left:calc(6*var(--u));right:calc(6*var(--u));top:calc(55*var(--u));height:calc(21*var(--u));display:flex!important;align-items:center;gap:calc(2*var(--u));margin:0!important}
#dex-sheet.s3 .practice-button{flex:1;padding:0;border:0;background:none;min-height:0;height:calc(19*var(--u))}
#dex-sheet.s3 .s-practice{display:block;width:100%;height:100%;aspect-ratio:auto!important;background:none!important;box-sizing:border-box;border-style:solid;border-width:calc(3*var(--u)) calc(6*var(--u));border-image:url('sprites/btn-green.webp') 40 60 fill / calc(3*var(--u)) calc(6*var(--u)) stretch}
#dex-sheet.s3 .s-practice .plate-face{left:-3*var(--u)!important;left:calc(-3*var(--u))!important;right:calc(-3*var(--u))!important;top:calc(-2*var(--u))!important;bottom:calc(-1*var(--u))!important;font-size:calc(7.4*var(--u));color:#fff;font-weight:900;-webkit-text-stroke:calc(1.2*var(--u)) #1d6a1a;paint-order:stroke fill}
#dex-sheet.s3 .original-link{flex:0 0 calc(23*var(--u));display:block;padding:0!important;margin:0!important;background:none!important;border:0!important;min-height:0;text-decoration:none}
#dex-sheet.s3 .s-orig{display:block;width:100%;margin:0}
#dex-sheet.s3 .s-orig .plate-face{font-size:calc(4.2*var(--u));color:#4a2410;font-weight:900;line-height:1}
#dex-sheet.s3 .s-note{position:absolute;left:calc(8*var(--u));right:calc(8*var(--u));top:calc(70.5*var(--u));text-align:center;font-size:calc(2.8*var(--u))!important;color:#8a6a4a;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dex-sheet.s3 .s-source{border-style:solid!important;border-width:0 calc(9*var(--u))!important;border-image:url('sprites/ui-brownband.webp') 0 92 fill / 0 calc(9*var(--u)) stretch!important}
#dex-sheet.s3 .s-stats{border-style:solid!important;border-width:0 calc(5*var(--u))!important;border-image:url('sprites/ui-creampill.webp') 0 60 fill / 0 calc(5*var(--u)) stretch!important}
#dex-sheet.s3 .s-practice{border-style:solid!important;border-width:calc(3*var(--u)) calc(6*var(--u))!important;border-image:url('sprites/btn-green.webp') 40 60 fill / calc(3*var(--u)) calc(6*var(--u)) stretch!important}
#dex-sheet.s3 .s-panel{border-image:url('sprites/ui-cardpanel.webp') 80 fill / calc(9*var(--u)) round}
#dex-sheet.s3 .s-note{display:none}
#dex-sheet.s3 .s-panel{border-image:url('sprites/ui-cardpanel.webp') 80 / calc(9*var(--u)) stretch;background:url('sprites/ui-cardpanel-mid.webp') center/calc(40*var(--u)) auto repeat;background-clip:padding-box;margin:0}
#dex-sheet.s3 .s-panel{border-image-outset:0;box-shadow:none}
#dex-sheet.s3 .s-panel{border:0!important;border-image:none!important;background:url('sprites/ui-cardpanel-t.webp') top center/100% auto no-repeat,url('sprites/ui-cardpanel-b.webp') bottom center/100% auto no-repeat!important}
#dex-sheet.s3 .s-panel::before{content:"";position:absolute;left:0;right:0;top:calc(31*var(--u));bottom:calc(31*var(--u));background:url('sprites/ui-cardpanel-m.webp') top center/100% auto repeat-y;z-index:-1}
#dex-sheet.s3 .s-panel{isolation:isolate}
/* ===== tri plates: ends at native aspect, middle band only widened (no border-image seams) ===== */
.tri{isolation:isolate;background:none!important;border:0!important;border-image:none!important;box-shadow:none!important}
.tri::before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--h)*var(--cr)*.6);right:calc(var(--h)*var(--cr)*.6);background:var(--m) center/100% 100% no-repeat;z-index:-2;pointer-events:none}
.tri::after{content:"";position:absolute;inset:0;background:var(--l) left center/auto 100% no-repeat,var(--r) right center/auto 100% no-repeat;z-index:-1;pointer-events:none}
.tri-name{--l:url('sprites/ui-nametag-l.webp');--m:url('sprites/ui-nametag-m.webp');--r:url('sprites/ui-nametag-r.webp');--cr:.539}
.tri-brown{--l:url('sprites/ui-brownband-l.webp');--m:url('sprites/ui-brownband-m.webp');--r:url('sprites/ui-brownband-r.webp');--cr:.829}
.tri-cream{--l:url('sprites/ui-creampill-l.webp');--m:url('sprites/ui-creampill-m.webp');--r:url('sprites/ui-creampill-r.webp');--cr:.465}
.tri-green{--l:url('sprites/btn-green-l.webp');--m:url('sprites/btn-green-m.webp');--r:url('sprites/btn-green-r.webp');--cr:.332}
.tri-plate{--l:url('sprites/ui-plate-l.webp');--m:url('sprites/ui-plate-m.webp');--r:url('sprites/ui-plate-r.webp');--cr:1.22}
.tri-wood{--l:url('sprites/ui-woodboard-l.webp');--m:url('sprites/ui-woodboard-m.webp');--r:url('sprites/ui-woodboard-r.webp');--cr:.177}
.label-plate,#result.r3 #source-card,#result.r3 .orak-next-card,#dex-screen.d3 .cart-label,#dex-sheet.s3 .s-source,#dex-sheet.s3 .s-stats,#dex-sheet.s3 .s-practice,#dex-screen.d3 .collection-note,#result.r3 .run-stats .run-card{isolation:isolate;background:none!important;border:0!important;border-image:none!important;box-shadow:none!important}
.label-plate::before,#result.r3 #source-card::before,#result.r3 .orak-next-card::before,#dex-screen.d3 .cart-label::before,#dex-sheet.s3 .s-source::before,#dex-sheet.s3 .s-stats::before,#dex-sheet.s3 .s-practice::before,#dex-screen.d3 .collection-note::before,#result.r3 .run-stats .run-card::before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--h)*var(--cr)*.6);right:calc(var(--h)*var(--cr)*.6);background:var(--m) center/100% 100% no-repeat;z-index:-2;pointer-events:none}
.label-plate::after,#result.r3 #source-card::after,#result.r3 .orak-next-card::after,#dex-screen.d3 .cart-label::after,#dex-sheet.s3 .s-source::after,#dex-sheet.s3 .s-stats::after,#dex-sheet.s3 .s-practice::after,#dex-screen.d3 .collection-note::after,#result.r3 .run-stats .run-card::after{content:"";position:absolute;inset:0;background:var(--l) left center/auto 100% no-repeat,var(--r) right center/auto 100% no-repeat;z-index:-1;pointer-events:none}
.label-plate,#result.r3 #source-card,#result.r3 .orak-next-card,#dex-screen.d3 .cart-label{--l:url('sprites/ui-nametag-l.webp');--m:url('sprites/ui-nametag-m.webp');--r:url('sprites/ui-nametag-r.webp');--cr:.539}
.label-plate{position:relative;--h:26px;padding:0 .55em!important}
#home .title-console .label-plate{--h:9cqw}
#result.r3 .result-console .label-plate{--h:calc(8.4*var(--u))}
#result.r3 #source-card,#result.r3 .orak-next-card{position:relative;--h:calc(9.2*var(--u));padding:0 calc(3.5*var(--u))!important}
#dex-screen.d3 .cart-label{--h:4.6cqw;padding:0 1.6cqw!important}
#dex-sheet.s3 .s-source{--l:url('sprites/ui-brownband-l.webp');--m:url('sprites/ui-brownband-m.webp');--r:url('sprites/ui-brownband-r.webp');--cr:.829;--h:calc(9.5*var(--u))}
#dex-sheet.s3 .s-stats{--l:url('sprites/ui-creampill-l.webp');--m:url('sprites/ui-creampill-m.webp');--r:url('sprites/ui-creampill-r.webp');--cr:.465;--h:calc(9*var(--u))}
#dex-sheet.s3 .s-practice{position:relative;--l:url('sprites/btn-green-l.webp');--m:url('sprites/btn-green-m.webp');--r:url('sprites/btn-green-r.webp');--cr:.332;--h:calc(19*var(--u))}
#dex-sheet.s3 .s-practice .plate-face{left:calc(3*var(--u))!important;right:calc(3*var(--u))!important;top:0!important;bottom:calc(2*var(--u))!important}
#dex-screen.d3 .collection-note{--l:url('sprites/ui-plate-l.webp');--m:url('sprites/ui-plate-m.webp');--r:url('sprites/ui-plate-r.webp');--cr:1.22;--h:9.5cqw}
#dex-screen.d3 .collection-note .plate-face{left:9cqw!important;right:9cqw!important}
#result.r3 .run-stats .run-card{position:relative;--l:url('sprites/ui-woodboard-l.webp');--m:url('sprites/ui-woodboard-m.webp');--r:url('sprites/ui-woodboard-r.webp');--cr:.177;--h:calc(13.5*var(--u));padding:0 calc(3*var(--u)) 0 calc(2.5*var(--u))!important}
#result.r3 .ticket3{border:0!important;border-image:none!important;background:url('sprites/ui-ticket3.webp') center/100% 100% no-repeat;height:calc(33.2*var(--u))}
#dex-screen.d3 .cart-label{--h:5.2cqw}
#result.r3 #score-breakdown{top:calc(3.6*var(--u))!important;height:calc(27.6*var(--u))!important;left:calc(8*var(--u))!important;right:calc(8*var(--u))!important}
#result.r3 #score-breakdown .osc-row{padding:0 calc(3*var(--u))!important}
#result.r3 #score-breakdown .osc-total{height:calc(10*var(--u))}
#result.r3 #score-breakdown{left:calc(10.5*var(--u))!important;right:calc(10.5*var(--u))!important;top:calc(3.2*var(--u))!important;height:calc(28*var(--u))!important}
#result.r3 #score-breakdown .osc-row{padding:0 calc(2*var(--u))!important;height:calc(5.6*var(--u))}
/* ===== pause v3 (mockup pause-v1): only the cabinet screen rests, cabinet stays bright ===== */
#paused.p3{position:absolute!important;display:block!important;padding:0!important;background:none!important;container-type:size;overflow:hidden;border-radius:2.5cqw;z-index:6}
#paused.p3[hidden]{display:none!important}
#paused.p3 .pause-panel{position:absolute!important;inset:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;display:block!important}
#paused.p3 .p-bg{position:absolute;inset:0;background:url('sprites/bg-rest.webp') center/cover no-repeat}
#paused.p3 .pause-dosa{position:absolute!important;left:50%;top:4cqh;width:58cqw!important;max-width:none!important;height:auto!important;transform:translateX(-50%);margin:0!important;z-index:1;animation:none}
#paused.p3 .pause-sign{position:absolute!important;left:50%;transform:translateX(-50%);top:38cqh;width:84cqw!important;max-width:none;margin:0!important;z-index:2}
#paused.p3 .pause-sign .plate-face{font-size:10cqw;color:#3a1c0c;font-weight:900;line-height:1.15;white-space:normal;text-align:center}
#paused.p3 .pause-sign b{white-space:normal!important;word-break:keep-all;max-width:7em;display:block}
#paused.p3 .pause-actions{position:absolute!important;left:3cqw;right:3cqw;bottom:4cqh;top:auto!important;height:auto!important;display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:2cqw;background:none!important;border:0!important;border-image:none!important;padding:0!important;margin:0!important;width:auto!important;aspect-ratio:auto!important;z-index:2}
#paused.p3 .arcade-button{display:flex;flex-direction:column;align-items:center;gap:1cqw;background:none;border:0;padding:0}
#paused.p3 .arcade-cap{width:25cqw!important;max-width:none!important;height:auto}
#paused.p3 .label-plate{--h:9.5cqw;height:9.5cqw!important;width:100%!important;margin:0!important;font-size:5.4cqw!important}
#paused.p3 .label-plate b{color:#3a1c0c;font-weight:900}
#paused.p3 .pause-panel{--v:min(1cqw,1cqh)}
#paused.p3 .pause-dosa{top:1.5cqh;width:calc(29*var(--v))!important}
#paused.p3 .pause-sign{top:calc(1.5cqh + 24*var(--v));width:calc(62*var(--v))!important}
#paused.p3 .pause-sign .plate-face{font-size:calc(7.6*var(--v))}
#paused.p3 .pause-actions{bottom:2.5cqh;left:4cqw;right:4cqw}
#paused.p3 .arcade-cap{width:calc(19*var(--v))!important}
#paused.p3 .label-plate{--h:calc(8.5*var(--v));height:calc(8.5*var(--v))!important;font-size:calc(5*var(--v))!important}
#paused.p3 .pause-sign .plate-face{-webkit-text-stroke:0!important;text-shadow:none!important}
#paused.p3 .pause-sign b{-webkit-text-stroke:0!important;text-shadow:none!important;text-wrap:balance;max-width:none;line-height:1.12}
#paused.p3 .pause-sign b{-webkit-text-stroke:calc(.3*var(--v)) #3a1c0c!important;font-weight:900}
#paused.p3 .pause-sign .plate-face{padding:0 9%!important;box-sizing:border-box}
#paused.p3 .pause-sign .plate-face{padding:0 2%!important;font-size:calc(7.2*var(--v))}
#paused.p3 .pause-sign b{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#paused.p3 .pause-sign b:lang(ko){word-break:keep-all}
#result.r3 #score-breakdown .osc-row .osc-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 auto}
#result.r3 #score-breakdown .osc-row .osc-value{flex:0 0 auto;margin-left:calc(2*var(--u))}
#result.r3 .reward-pill{width:calc(34*var(--u))}
#result.r3 .run-card img{border-radius:calc(2*var(--u))}
#dex-screen.d3 .cart-label{left:3%!important;right:3%!important;padding:0 1.2cqw!important}
#result.r3 .run-card small{line-height:1.15!important;padding:.1em 0}
#result.r3 .run-card small:lang(th),#result.r3 .run-card b:lang(th){line-height:1.32!important}
#result.r3 #score-breakdown .osc-row .osc-label:not(:lang(ko)){font-size:calc(4.1*var(--u))!important}
#result.r3 .run-stats{gap:calc(12*var(--u))!important}
#result.r3 .run-card small{white-space:nowrap!important}
#dex-screen.d3 .cart-label{font-size:3.4cqw}
#dex-screen.d3 .dex-dosa{width:34cqw;right:-2cqw;bottom:-6cqw}
#result.r3 #score-breakdown .osc-row{gap:calc(1.5*var(--u))!important;padding-left:calc(1*var(--u))!important;padding-right:calc(1*var(--u))!important}
#result.r3 #score-breakdown .osc-row .osc-value{margin-left:0}
#result.r3 #best-badge b{white-space:normal!important;line-height:1!important;text-wrap:balance;overflow-wrap:normal;word-break:keep-all}
#result.r3 .run-card img{width:calc(8.5*var(--u))!important;height:calc(8.5*var(--u))!important}
#result.r3 .run-stats{gap:calc(10.5*var(--u))!important}
@media (max-height:670px){#dex-screen.d3 .dex-dosa{width:29cqw;right:-3cqw;bottom:-6cqw}}
/* ===== v3 글자 체계 (수정 계획 v2, 2026-11-29) =====
   시안 글씨 = 아주 굵은 고딕. 한국어는 Noto Sans KR 800/900. 같은 색 덧테두리(번짐 원인)는 모두 뺀다.
   밝은 판 = 진갈색 #4a2a14, 어두운 판 = 크림 #fff3c8 + 옅은 아래 그림자, 큰 제목 = 노란 그라데이션 + 진한 테두리 층 */
html[lang=ko] body,html[lang=ko] .game-screen,html[lang=ko] .sheet-shade,html[lang=ko] button{font-family:"Noto Sans KR","Apple SD Gothic Neo",sans-serif;font-synthesis:none}
html[lang=ko] :is(.game-screen,.sheet-shade) *{font-family:"Noto Sans KR","Apple SD Gothic Neo",sans-serif}
:is(.game-screen,.sheet-shade) :is(.label-plate b,.label-plate small,.cart-label,.run-card small,.run-card b,#score-breakdown .osc-row,#score-breakdown .osc-label,#score-breakdown .osc-value,.reward-pill strong,.guide-tag b,.title-note b,.rank-plate b,.collection-note b,.s-title b,.s-stats b,.pause-sign b,#daily-stamp,.best-stamp b){-webkit-text-stroke:0!important;paint-order:normal!important;text-shadow:none!important;font-weight:800!important}
:is(.game-screen,.sheet-shade) :is(.label-plate b,.cart-label,.run-card b,.reward-pill strong,.guide-tag b,.title-note b,.rank-plate b,.collection-note b,.s-title b,.pause-sign b){color:#4a2a14!important}
#dex-screen.d3 .cart-label.locked,#dex-screen.d3 .locked .cart-label{color:#5a5050!important}
:is(.s-title b,.pause-sign b){font-weight:900!important}
/* 어두운 판 위 크림 글자 */
#home .coins-tag .plate-face,.s-source b,#daily-stamp{-webkit-text-stroke:0!important;color:#fff3c8!important;font-weight:800;text-shadow:0 .06em 0 rgba(30,12,4,.55)!important}
#home .coins-tag .plate-face{font-weight:900;font-size:5.6cqw}
#home #best-score,#home #best-rounds{-webkit-text-stroke:0!important;font-weight:900;text-shadow:0 .07em 0 #5a1410,0 0 .14em #5a1410!important}
/* 큰 제목: 글자 뒤 층(::before)에 테두리와 그림자, 글자 자체는 그라데이션 */
#result.r3 .result-banner{isolation:isolate}
#result.r3 .result-banner .plate-face{-webkit-text-stroke:0!important;text-shadow:none!important;font-size:calc(12.6*var(--u))!important;overflow:visible!important;letter-spacing:-.01em}
/* 큰 제목 3층: 글자 자리(투명) → ::before 진한 테두리·그림자 → ::after 노란 글자. 음수 z-index·부모 background-clip 없이 그려 iOS Safari에서도 같은 순서 */
#result.r3 #result-title{position:relative;font-weight:900;overflow:visible;color:transparent!important;-webkit-text-fill-color:transparent;-webkit-text-stroke:0;padding:0 .12em}
#result.r3 #result-title::after{content:attr(data-text);position:absolute;inset:0;padding:inherit;text-align:inherit;white-space:inherit;color:#ffd83f;-webkit-text-fill-color:#ffd83f;-webkit-text-stroke:0;text-shadow:none}
@supports ((-webkit-background-clip:text) or (background-clip:text)){#result.r3 #result-title::after{background:linear-gradient(#fffbd0 10%,#ffe25a 48%,#f8b324 92%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}}
#result.r3 #result-title::before{content:attr(data-text);position:absolute;inset:0;padding:inherit;text-align:inherit;white-space:inherit;background:none;color:#3a1508;-webkit-text-fill-color:#3a1508;-webkit-text-stroke:.19em #3a1508;text-shadow:0 .08em 0 #3a1508,0 .11em .07em rgba(0,0,0,.45)}
#result.r3 #best-badge b{font-size:calc(4.6*var(--u))!important;color:#4a2a14!important}
/* 크기: 시안과 같은 배율에서 글자 높이 95~100% */
#home .title-console .label-plate b{font-size:4.9cqw}
#dex-screen.d3 .cart-label{font-size:3.85cqw}
#dex-screen.d3 .collection-note b{font-size:4.6cqw}
#paused.p3{background-color:#3b2218!important}
/* 도감 이름표: 시안처럼 카트리지 폭의 3/4, 키를 키워 글자 위아래 여백 */
#dex-screen.d3 .cart-label{left:12%!important;right:12%!important;top:66%!important;height:28%!important;font-size:3.7cqw;padding:0 2cqw!important}
/* 쉬기 버튼 이름: 시안 크기 */
#paused.p3 .label-plate{--h:calc(10*var(--v));height:calc(10*var(--v))!important;font-size:calc(5.9*var(--v))!important}
#dex-screen.d3 .cart-label{--l:url('sprites/ui-creampill-l.webp');--m:url('sprites/ui-creampill-m.webp');--r:url('sprites/ui-creampill-r.webp');--cr:.465;--h:6.2cqw;left:10%!important;right:10%!important;top:67%!important;height:6.2cqw!important;font-size:3.75cqw;padding:0 1.8cqw!important;letter-spacing:-.02em}
/* 결과 점수표 글자: 시안 크기 쪽으로 */
#result.r3 #score-breakdown .osc-row{font-size:calc(5.8*var(--u))!important}
#result.r3 #score-breakdown .osc-row .osc-label:not(:lang(ko)){font-size:calc(4.4*var(--u))!important}
/* 긴 라틴 이름(Wake him up! 등)은 이름표를 카트리지 폭 가깝게 넓혀 10px 이상 유지 */
html:not([lang=ko]) #dex-screen.d3 .cart-label{left:2%!important;right:2%!important;padding:0 1.3cqw!important;letter-spacing:-.03em}
/* 도감 냥도사가 마지막 줄 이름표(지켜라!)를 가리지 않게 */
#dex-screen.d3 .dex-dosa{width:30cqw;right:-5cqw;bottom:-7cqw}
@media (max-height:670px){#dex-screen.d3 .dex-dosa{width:27cqw;right:-5cqw;bottom:-7cqw}}
/* 크기 다시 맞춤 (시안 대비 글자 높이 측정 후) */
#home .coins-tag .plate-face{font-size:5cqw}
#home .title-console .label-plate b{font-size:5.4cqw}
#dex-screen.d3 .cart-label{--h:7cqw;height:7cqw!important;top:66%!important;font-size:4.25cqw}
#result.r3 .result-banner .plate-face{font-size:calc(13.4*var(--u))!important}
#dex-screen.d3 .cart-label{padding:0 2.7cqw!important}
html:not([lang=ko]) #dex-screen.d3 .cart-label{padding:0 2cqw!important}
#home #title-coins{font-size:4.3cqw}
#home .title-console .label-plate b{font-size:6cqw}
#result.r3 #result-title{line-height:.98}
html[lang=ko] #result.r3 #best-badge b{white-space:nowrap!important;font-size:calc(4.1*var(--u))!important}
html:not([lang=ko]) #result.r3 #best-badge b{font-size:calc(3.6*var(--u))!important}
html:not([lang=ko]) #result.r3 .result-banner .plate-face{left:9%!important;right:9%!important}
html:not([lang=ko]) #result.r3 #best-badge b{font-size:calc(3.3*var(--u))!important}

/* 점수표 숫자가 오른쪽 발바닥 무늬에 닿지 않게 (393x816 사용자 화면) */
#result.r3 #score-breakdown .osc-row{padding-left:calc(5*var(--u))!important;padding-right:calc(7.5*var(--u))!important}

/* v4 진열장: 시안 배율에 맞춘 줄 간격(약 95px/693), 얇은 판자, 다섯째 줄까지 첫 화면, 냥도사는 바닥에 서서 이름표를 가리지 않게 */
#dex-screen.d3 .collection-note{top:19.5cqw}
#dex-screen.d3 .d-scroll{top:29.5cqw;bottom:20cqw}
#dex-screen.d3 .shelf-row{padding:.9cqw 3cqw 2.6cqw;background-size:100% 2.7cqw}
#dex-screen.d3 .dex-dosa{width:27cqw;right:-1cqw;bottom:-5cqw}
@media (max-height:670px){#dex-screen.d3 .dex-dosa{width:24cqw;right:-2cqw;bottom:-5cqw}}
/* v4 카트리지 이름표: 시안처럼 카트리지 아래쪽 안에 들어앉은 크림색 네모 이름표(얇은 진갈색 테두리), 카트리지는 판자 위에 앉음 */
#dex-screen.d3 .cartridge .cart-label{left:13%!important;right:13%!important;top:64.5%!important;bottom:auto!important;height:24%!important;box-sizing:border-box;padding:0 1.2cqw!important;border:.45cqw solid #6b3d1c!important;border-radius:1.5cqw!important;background:linear-gradient(#fff6dc,#f3dcaa)!important;box-shadow:inset 0 -.5cqw 0 #e2c38a,0 .5cqw 0 rgba(40,18,6,.35)!important;font-size:3.75cqw;letter-spacing:-.02em;color:#3e2110}
#dex-screen.d3 .cartridge .cart-label::before,#dex-screen.d3 .cartridge .cart-label::after{content:none!important;display:none!important}
html:not([lang=ko]) #dex-screen.d3 .cartridge .cart-label{left:5%!important;right:5%!important;padding:0 .8cqw!important}
#dex-screen.d3 .shelf-row{padding-bottom:2.4cqw}

/* v4 캐릭터 움직임: transform(가운데 맞춤)과 겹치지 않게 개별 속성(scale/rotate/translate)만 움직인다. 동작 줄이기 설정이면 끔 */
@keyframes c-breathe{0%,100%{scale:1 1}50%{scale:1.015 1.035}}
@keyframes c-sway{0%,100%{rotate:-1.6deg}50%{rotate:1.6deg}}
@keyframes c-hop{0%,62%,100%{translate:0 0}72%{translate:0 -5%}82%{translate:0 0}88%{translate:0 -2%}}
@keyframes c-bob{0%,100%{translate:0 0}50%{translate:0 -4%}}
@keyframes c-nod{0%,100%{rotate:0deg}30%{rotate:-4deg}60%{rotate:3deg}}
#home .title-dosa{transform-origin:50% 100%;animation:c-breathe 2.4s ease-in-out infinite,c-sway 3.6s ease-in-out infinite}
#home .cameo-a{transform-origin:50% 100%;animation:c-hop 2.1s ease-in-out .3s infinite}
#home .cameo-b{transform-origin:50% 100%;animation:c-nod 2.8s ease-in-out .9s infinite}
#home .cameo-c{transform-origin:50% 100%;animation:c-bob 1.9s ease-in-out .5s infinite}
#result.r3 #result-dosa{transform-origin:50% 100%;animation:c-breathe 2.2s ease-in-out infinite,c-sway 3.2s ease-in-out infinite}
#dex-screen.d3 .dex-dosa{transform-origin:50% 100%;animation:c-breathe 2.4s ease-in-out infinite,c-nod 3s ease-in-out .4s infinite}
#paused.p3 .pause-dosa{transform-origin:50% 100%;animation:c-breathe 3s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#home .title-dosa,#home .cameo,#result.r3 #result-dosa,#dex-screen.d3 .dex-dosa,#paused.p3 .pause-dosa{animation:none!important}}
/* 3.0 재검수: 이름표 양 끝 못(리벳)과 글자 사이를 띄운다 */

html[lang=th] .best-marquee .fit{overflow:visible!important;line-height:1.25}html:is([lang=ko],[lang=ja],[lang=zh-TW]) #best-rounds{margin-top:.08em}
html:not([lang=ko]) #dex-screen.d3 .cartridge .cart-label{padding:0 2cqw!important}
