:root {
  --cream:#f4eee9; --paper:#fffaf7; --ink:#403640; --muted:#7f727b;
  --pink:#f45f91; --pink-deep:#dd4779; --mint:#b9e8d7; --peach:#ffd2bd;
  --lavender:#d8c8f4; --blue:#bddff2; --butter:#f9e9ac; --coral:#ffb7ae;
  --shadow:0 16px 34px rgba(66,47,59,.16),0 5px 0 rgba(78,57,70,.13);
  --inner:inset 0 2px 0 rgba(255,255,255,.92);
  --hud-h:62px; --footer-h:32px;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
body{background:var(--cream);color:var(--ink);font-family:"Trebuchet MS","Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;line-height:1.6}
button,a,select{font:inherit}
button,a{touch-action:manipulation}
button{color:inherit}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.skip-link{position:fixed;z-index:999;left:12px;top:-80px;padding:10px 16px;background:#fff;border-radius:12px}.skip-link:focus{top:12px}
.game-app{position:relative;width:100%;height:calc(100% - var(--footer-h));overflow:hidden}
.game-app main{position:relative;width:100%;height:100%;overflow:hidden}
.game-screen{position:absolute;inset:0;display:none;overflow:hidden;background:var(--cream)}
.game-screen.is-active{display:block;animation:screen-in .38s cubic-bezier(.22,1,.36,1) both}
.clay-panel,.clay-card{background:rgba(255,250,247,.94);border:2px solid rgba(255,255,255,.9);box-shadow:var(--shadow),var(--inner);border-radius:30px}
.eyebrow{margin:0 0 6px;color:var(--pink-deep);font-size:10px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.centered{text-align:center}
.primary-button,.secondary-button,.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:0;border-radius:17px;font-size:13px;font-weight:900;cursor:pointer;transition:transform .2s,box-shadow .2s}
.primary-button{color:#fff;background:linear-gradient(145deg,#ff78a5,#ec4f84);box-shadow:0 6px 0 #c93c6e,0 10px 20px rgba(235,74,129,.25)}
.primary-button:hover,.secondary-button:hover{transform:translateY(-2px)}
.primary-button:active,.secondary-button:active{transform:translateY(3px)}
.primary-button.small{min-height:42px;padding:9px 18px}
.secondary-button{background:#fff;border:1px solid #eadde3;box-shadow:0 4px 0 #d8ccd2}
.text-button{padding-inline:8px;background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.compact-heading h2{margin:0;font-size:clamp(26px,3vw,46px);line-height:1.1;letter-spacing:-.05em}
.compact-heading>p:last-child{max-width:620px;margin:9px auto 0;color:var(--muted);font-size:12px;font-weight:700}
.screen-content{position:absolute;inset:calc(var(--hud-h) + 10px) 18px 16px}
.character-stage{position:relative;display:block}
.character-stage img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 11px 10px rgba(65,45,58,.2))}
.character-stage i{position:absolute;z-index:0;left:20%;right:20%;bottom:3%;height:8%;border-radius:50%;background:rgba(66,47,59,.16);filter:blur(6px)}

/* HUD */
.game-hud{position:fixed;z-index:120;top:0;left:0;right:0;height:var(--hud-h);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:7px 14px;background:rgba(255,250,247,.92);border-bottom:1px solid rgba(93,70,82,.1);backdrop-filter:blur(16px)}
.hud-book{justify-self:start;display:grid;grid-template-columns:38px auto;align-items:center;gap:7px;min-height:46px;padding:4px 10px 4px 5px;border:0;border-radius:16px;background:#fff3c8;box-shadow:0 4px 0 #d8c68c;cursor:pointer}
.hud-book span{display:grid;place-items:center;width:38px;height:34px;border-radius:10px 13px 13px 10px;color:#fff;background:#e05a89;font-size:8px;font-weight:900;border-left:4px solid #aa3d67;transform:rotate(-3deg)}
.hud-book b{font-size:9px}
.hud-brand{display:flex;align-items:center;gap:8px}
.hud-brand>span:last-child{display:grid;line-height:1.05}
.hud-brand b{font-size:11px;letter-spacing:.1em}.hud-brand small{font-size:6px;letter-spacing:.13em;color:var(--muted)}
.brand-face{position:relative;display:block;width:38px;height:38px;border-radius:13px;background:linear-gradient(#ff8db3,#ed5389);box-shadow:inset 0 3px 0 rgba(255,255,255,.65),0 3px 0 #ca3e70}
.brand-face i{position:absolute;background:#fff}.brand-face i:nth-child(1),.brand-face i:nth-child(2){top:12px;width:5px;height:6px;border-radius:50%}.brand-face i:nth-child(1){left:9px}.brand-face i:nth-child(2){right:9px}.brand-face i:nth-child(3){left:10px;right:10px;bottom:8px;height:5px;border-radius:3px 3px 10px 10px}
.hud-actions{justify-self:end;display:flex;align-items:center;gap:7px}
.hud-town{padding:8px 12px;border-radius:12px;background:#fff;border:1px solid #eadde3;font-size:9px;font-weight:900}
.hud-status{display:grid;min-width:114px;padding:6px 10px;border:0;border-radius:15px;text-align:left;background:#f7eaf1;box-shadow:0 3px 0 #d8c8d0;cursor:pointer}.hud-status span{font-size:7px;color:var(--pink-deep);font-weight:800}.hud-status b{font-size:9px}

/* Cover */
.cover-screen{background:#f2d7c5}
.cover-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.cover-veil{position:absolute;inset:0;background:linear-gradient(90deg,rgba(50,39,46,.12),transparent 55%),linear-gradient(0deg,rgba(241,220,207,.22),transparent 55%)}
.cover-card{position:absolute;z-index:2;left:clamp(24px,9vw,130px);top:50%;width:min(520px,calc(100% - 48px));padding:clamp(25px,4vw,46px);transform:translateY(-50%);background:rgba(255,250,247,.87);backdrop-filter:blur(16px)}
.cover-card h1{margin:8px 0 16px;font-size:clamp(39px,4.4vw,64px);line-height:1.06;letter-spacing:-.07em}.cover-card h1 span{color:var(--pink-deep)}
.cover-card>p:not(.eyebrow){max-width:440px;margin:0 0 22px;font-size:13px;font-weight:700}.cover-card small{display:block;margin-top:18px;color:var(--muted);font-size:8px}

/* Partner */
.soft-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.screen-veil{position:absolute;inset:0;background:rgba(249,240,236,.72);backdrop-filter:blur(5px)}
.partner-content{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;max-width:970px;margin:auto}
.partner-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-height:0}
.partner-card{position:relative;display:grid;grid-template-columns:1fr .65fr;align-items:center;min-height:0;padding:10px 28px;border:0;overflow:hidden;cursor:pointer;transition:transform .25s,outline .2s}
.partner-card:hover{transform:translateY(-4px)}.partner-card.is-selected{outline:5px solid rgba(244,95,145,.28)}
.partner-card:first-child{background:linear-gradient(145deg,#fff9fb,#ffe5ee)}.partner-card:nth-child(2){background:linear-gradient(145deg,#fffaf5,#ffecd9)}
.partner-card .character-stage{height:100%;min-height:240px}.partner-copy{display:grid;text-align:center}.partner-copy small{font-size:8px;letter-spacing:.15em;color:var(--pink-deep);font-weight:900}.partner-copy b{font-size:clamp(35px,4vw,58px);line-height:1}.partner-copy em{margin-top:12px;font-size:10px;font-style:normal;font-weight:800;color:var(--muted)}
.partner-next{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:11px;padding:12px 16px;border-radius:22px}.partner-next div{display:grid}.partner-next div b{font-size:13px}.partner-next div span{font-size:9px;color:var(--muted);font-weight:700}

/* Quiz + Result */
.quiz-screen,.result-screen{background:radial-gradient(circle at 18% 20%,#ffe4ed,transparent 32%),radial-gradient(circle at 86% 77%,#dff1ea,transparent 34%),var(--cream)}
.quiz-layout{display:grid;grid-template-columns:.72fr 1.28fr;gap:18px;max-width:1080px;margin:auto}
.quiz-guide,.quiz-console{min-height:0;padding:25px;overflow:hidden}.quiz-guide{display:grid;grid-template-rows:auto 1fr auto}.quiz-guide .character-stage{min-height:0}.speech-bubble{position:relative;padding:13px 16px;border-radius:18px;background:#fff;box-shadow:0 5px 0 #ded3d8;font-size:10px;font-weight:800}.speech-bubble:before{content:"";position:absolute;top:-9px;left:46%;border:10px solid transparent;border-bottom-color:#fff;border-top:0}
.quiz-console{position:relative;display:grid;align-content:center;background:rgba(255,255,255,.94)}
.console-top{position:absolute;top:23px;left:27px;right:27px;display:flex;justify-content:space-between;color:var(--pink-deep);font-size:8px;font-weight:900;letter-spacing:.12em}.axis-track{position:absolute;top:50px;left:27px;right:27px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.axis-track i{height:6px;border-radius:6px;background:#eadde5}.axis-track i.is-active{background:linear-gradient(90deg,var(--pink),#f7bf71)}
.quiz-console>div:not(.console-top):not(.axis-track){margin-top:40px}.quiz-console h3{margin:0 0 14px;font-size:clamp(22px,2.5vw,36px);line-height:1.25;letter-spacing:-.04em}.quiz-console p{font-size:12px;color:var(--muted);font-weight:700}.quiz-console .text-button{margin-left:8px}
.question-axis{margin:0 0 8px;color:var(--pink-deep)!important;font-size:8px!important;letter-spacing:.12em}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer-grid button{min-height:110px;padding:18px;border:2px solid #f1e4ea;border-radius:23px;background:#fff9f7;box-shadow:0 5px 0 #ded2d7;font-weight:900;font-size:12px;cursor:pointer}.answer-grid button:hover{border-color:var(--pink);transform:translateY(-2px)}
.result-card{position:absolute;inset:calc(var(--hud-h) + 24px) max(22px,calc((100% - 900px)/2)) 24px;display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;padding:30px;overflow:hidden;background:linear-gradient(145deg,#fff9fb,#fff5e7)}
.result-character{height:100%;min-height:0}.result-copy{padding:20px}.result-code{margin:0;color:var(--pink);font-size:clamp(58px,9vw,112px);line-height:.9;font-weight:900;letter-spacing:.05em}.result-copy h2{margin:12px 0 8px;font-size:clamp(25px,3vw,42px)}.result-copy>p:not(.eyebrow):not(.result-code){font-size:12px;color:var(--muted);font-weight:700}.result-recommend{margin:16px 0;padding:14px 17px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px #eee0e5;font-size:12px;font-weight:900}.result-actions{display:flex;gap:9px}.result-copy small{display:block;margin-top:13px;color:var(--muted);font-size:8px}

/* Town map */
.town-screen{padding-top:var(--hud-h);background:#f4e6df}
.town-map{position:absolute;inset:calc(var(--hud-h) + 8px) 10px 10px;overflow:hidden;border-radius:28px;background:#dcebd4}
.town-map>img{width:100%;height:100%;object-fit:cover;object-position:center}
.town-title{position:absolute;z-index:5;top:15px;left:17px;padding:11px 15px;border-radius:18px;background:rgba(255,250,247,.88);box-shadow:0 5px 16px rgba(58,43,51,.12);backdrop-filter:blur(10px)}.town-title h2{margin:0;font-size:clamp(19px,2.2vw,31px);line-height:1}.town-title span{font-size:8px;color:var(--muted);font-weight:700}
.map-node{position:absolute;z-index:10;width:58px;height:58px;padding:0;border:4px solid #fff;border-radius:50%;background:linear-gradient(145deg,#ff8db3,#ec5388);box-shadow:0 7px 0 #b94069,0 9px 20px rgba(60,40,50,.24);color:#fff;cursor:pointer;transition:transform .2s,filter .2s}.map-node:hover{transform:translateY(-4px) scale(1.04)}.map-node span{display:block;font-size:18px;font-weight:900;line-height:1}.map-node b{position:absolute;top:61px;left:50%;min-width:72px;padding:3px 7px;border-radius:9px;background:rgba(255,250,247,.94);box-shadow:0 2px 0 rgba(70,50,60,.14);color:var(--ink);font-size:7px;line-height:1.2;transform:translateX(-50%)}.map-node i{display:none}.map-node.is-clear:after{content:"✓";position:absolute;right:-8px;top:-10px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#60bc96;border:3px solid #fff;font-size:12px}.map-node.is-recommended{animation:recommended 1.3s ease-in-out infinite;outline:6px solid rgba(255,255,255,.55)}
.node-1{left:20%;top:26%}.node-2{left:45%;top:44%}.node-3{left:70%;top:23%}.node-4{left:30%;top:66%}.node-5{left:64%;top:69%}.node-6{left:12%;top:79%}.node-extra{left:83%;top:56%;background:linear-gradient(145deg,#9d8ddb,#715fb1);box-shadow:0 7px 0 #55438f,0 9px 20px rgba(60,40,50,.24)}.node-extra b{min-width:78px}
.map-player{position:absolute;z-index:20;left:20%;top:26%;width:94px;height:126px;pointer-events:none;transform:translate(-20px,-84px);transition:left .62s cubic-bezier(.22,1,.36,1),top .62s cubic-bezier(.22,1,.36,1)}.map-companion{position:absolute;z-index:2;left:9px;top:0;width:76px;height:88px;object-fit:contain;filter:drop-shadow(0 7px 7px rgba(55,42,48,.28))}.podium{position:absolute;z-index:1;left:4px;right:4px;bottom:0;height:47px;border-radius:50% 50% 35% 35%;background-color:#ffd991;background-image:linear-gradient(#ffeab2,#e9b867);background-size:100% 100%;background-position:center;background-repeat:no-repeat;box-shadow:inset 0 5px 0 rgba(255,255,255,.72),0 7px 0 rgba(139,100,57,.25)}.map-player.is-hopping .map-companion{animation:hop .62s cubic-bezier(.22,1,.36,1)}
.town-tools{position:absolute;z-index:30;right:14px;bottom:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;border-radius:18px;background:rgba(255,250,247,.9);backdrop-filter:blur(12px)}.town-tools button,.town-tools a{display:grid;min-width:90px;padding:8px 10px;border:0;border-radius:12px;background:#fff;box-shadow:0 3px 0 #ddd1d6;text-align:left;cursor:pointer}.town-tools span{font-size:6px;color:var(--pink-deep);font-weight:900}.town-tools b{font-size:9px}
.boss-event{position:absolute;z-index:28;left:50%;top:13%;display:flex;align-items:center;gap:9px;padding:8px 14px;border:3px solid #fff;border-radius:16px;color:#fff;background:#554459;box-shadow:0 5px 0 #2e2431;transform:translateX(-50%);cursor:pointer;animation:recommended 1.3s ease-in-out infinite}.boss-event span{padding:3px 6px;border-radius:6px;background:var(--pink);font-size:7px}.boss-event b{font-size:9px}

/* Battle */
.battle-screen,.consult-screen,.boss-screen{padding-top:var(--hud-h);background:#f7eee7}
.battle-background,.consult-background,.boss-background{position:absolute;inset:var(--hud-h) 0 0;background-color:#f3e8de;background-image:var(--battle-image),radial-gradient(circle at 50% 25%,#fff9ed,#eadfd8 74%);background-size:cover;background-position:center}
.consult-background{background-image:url("assets/backgrounds/battle-consult.png"),radial-gradient(circle at 50% 20%,#e9dcff,#f7e9df 76%)}
.boss-background{background-image:url("assets/backgrounds/battle-boss.png"),linear-gradient(160deg,#f6bd9f,#6d516a)}
.battle-veil{position:absolute;inset:var(--hud-h) 0 0;background:rgba(255,255,255,.25)}
.battle-layout{position:absolute;z-index:2;inset:calc(var(--hud-h) + 9px) 12px 10px;display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1.18fr) minmax(0,.82fr);gap:8px;max-width:1180px;margin:auto}
.battle-heading{grid-column:1/-1;display:flex;align-items:center;gap:14px;min-height:58px;padding:5px 12px;border-radius:20px;background:rgba(255,250,247,.85);backdrop-filter:blur(12px)}.battle-heading .back-chip{flex:none}.battle-heading>div:last-child{min-width:0}.battle-heading h2{margin:0;font-size:clamp(22px,3vw,38px);line-height:1;letter-spacing:-.05em}.battle-heading p:last-child{margin:3px 0 0;color:var(--muted);font-size:9px;font-weight:700}.back-chip{padding:8px 12px;border-radius:13px;background:#fff;box-shadow:0 3px 0 #dcd0d5;font-size:9px;font-weight:900}
.monster-zone{display:grid;grid-template-rows:1fr auto;min-height:0;padding:5px 18px 9px;border-radius:26px;background:rgba(255,250,247,.7);backdrop-filter:blur(6px);box-shadow:inset 0 0 0 2px rgba(255,255,255,.65)}.monster-stage{position:relative;display:grid;place-items:center;min-height:0}.monster-stage>img{width:100%;height:100%;max-height:33vh;object-fit:contain;filter:drop-shadow(0 14px 13px rgba(62,43,54,.24));transform-origin:50% 90%}.monster-stage.is-hit>img{animation:monster-hit .45s ease}.monster-stage.is-calming>img{animation:calm-down .85s cubic-bezier(.2,.8,.2,1)}.monster-stage.is-calm:after{content:"✦  ✦  ✦";position:absolute;top:14%;left:50%;color:#fff;font-size:24px;text-shadow:0 2px 8px #f3a8c1;transform:translateX(-50%);animation:sparkle .8s ease both}.damage-pop{position:absolute;left:56%;top:30%;z-index:4;color:#f04478;font-size:32px;font-weight:900;text-shadow:0 2px #fff;animation:damage .7s ease-out forwards}
.hp-wrap{width:68%;min-width:260px;margin:0 auto}.hp-meta{display:flex;justify-content:space-between;margin-bottom:5px;font-size:8px;font-weight:900}.hp-bar{height:16px;padding:3px;border-radius:99px;background:rgba(89,66,77,.17);box-shadow:inset 0 2px 4px rgba(50,35,43,.2)}.hp-bar i{display:block;width:100%;height:100%;border-radius:99px;background:linear-gradient(90deg,#62bf91,#f3cf69,#f25b86);transition:width .4s ease}
.battle-console{min-height:0;padding:10px 14px;overflow:hidden;background:rgba(255,250,247,.92)}.battle-console-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.battle-console-head small{color:var(--pink-deep);font-size:7px;font-weight:900;letter-spacing:.12em}.battle-console-head h3{margin:0;font-size:18px}.battle-console-head button{padding:7px 10px;border:0;border-radius:11px;background:#fff2c8;font-size:8px;font-weight:900;cursor:pointer}.skill-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.skill-button{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:6px;min-height:68px;padding:6px;border:1px solid #eee1e6;border-radius:17px;background:#fffaf0;box-shadow:0 4px 0 #ddd1d5;text-align:left;cursor:pointer}.skill-button:hover{border-color:var(--pink);transform:translateY(-2px)}.skill-button img,.uv-icon{width:48px;height:48px;object-fit:contain}.uv-icon{display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(#ffd95f,#f89a48);font-size:15px;font-weight:900;box-shadow:inset 0 3px 0 rgba(255,255,255,.6),0 3px 0 #d87f37}.skill-button span:last-child{display:grid}.skill-button b{font-size:8px}.skill-button small{font-size:5px;line-height:1.3;color:var(--muted)}
.battle-feedback{display:grid;min-height:55px;margin-top:9px;padding:9px 11px;border-radius:14px;background:#f6edf1}.battle-feedback b{font-size:8px;color:var(--pink-deep)}.battle-feedback span{font-size:7px;font-weight:700}.skip-battle{width:100%;margin-top:7px;padding:6px;border:0;background:transparent;color:var(--muted);font-size:7px;text-decoration:underline;cursor:pointer}

/* Consult + Boss */
.consult-content,.boss-layout{position:absolute;z-index:2;inset:calc(var(--hud-h) + 9px) 12px 10px;display:grid;grid-template-rows:auto 1fr auto;gap:10px;max-width:1120px;margin:auto}.experts{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-height:0}.expert-card{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;min-height:0;padding:15px;border:2px solid rgba(255,255,255,.8);border-radius:30px;background:rgba(255,250,247,.85);box-shadow:var(--shadow);cursor:pointer;overflow:hidden;transition:transform .22s}.expert-card:hover{transform:translateY(-5px)}.expert-image{height:100%;min-height:260px}.expert-card>span:last-child{display:grid;text-align:center}.expert-card small{font-size:7px;color:var(--pink-deep);font-weight:900;letter-spacing:.12em}.expert-card b{font-size:clamp(20px,2.5vw,34px);line-height:1.1}.expert-card em{margin-top:10px;color:var(--muted);font-size:9px;font-style:normal;font-weight:700}.consult-note{padding:8px 14px;border-radius:13px;background:rgba(255,250,247,.9);font-size:8px;font-weight:700;text-align:center}
.boss-layout{grid-template-rows:auto 1fr}.boss-main{display:grid;grid-template-columns:1fr .8fr;gap:15px;min-height:0}.boss-monster{min-height:0;border-radius:28px;background:rgba(255,250,247,.42)}.boss-panel{align-self:center;display:grid;gap:10px;padding:22px}.boss-panel p{font-size:11px;font-weight:800}.boss-panel button{min-height:52px;border:0;border-radius:17px;color:#fff;background:#6b596e;box-shadow:0 5px 0 #3f3342;font-size:10px;font-weight:900;cursor:pointer}.boss-panel button.is-used{background:#65b894;box-shadow:0 5px 0 #387c62}

/* Modals */
.modal-backdrop{position:fixed;z-index:300;inset:0;display:grid;place-items:center;padding:16px;background:rgba(52,41,48,.48);backdrop-filter:blur(10px);animation:fade .2s ease both}.modal-head{display:flex;justify-content:space-between;gap:15px}.modal-head h2{margin:0;font-size:clamp(22px,3vw,36px);line-height:1}.modal-head p:last-child{margin:5px 0 0;color:var(--muted);font-size:9px}.modal-close{flex:none;width:40px;height:40px;border:0;border-radius:14px;background:#f5e9ee;box-shadow:0 3px 0 #d9cbd1;font-size:24px;cursor:pointer}.dialog-actions{display:flex;gap:8px;margin-top:13px}
.entry-dialog{display:grid;grid-template-columns:150px 1fr;align-items:center;width:min(540px,100%);padding:22px}.entry-dialog>img{width:140px;height:150px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(60,40,50,.2))}.entry-dialog h2{margin:0;font-size:28px}.entry-dialog p:not(.eyebrow){font-size:11px;color:var(--muted);font-weight:700}
.book-dialog,.routine-dialog,.reward-dialog{display:grid;width:min(1120px,100%);height:min(760px,calc(100dvh - 32px));padding:22px;overflow:hidden;background:#fffaf7}.book-dialog{grid-template-rows:auto 1fr}.book-body{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;min-height:0;margin-top:15px}.skill-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;min-height:0}.skill-card{display:grid;place-items:center;align-content:center;min-height:0;padding:8px;border:1px solid #eee1e6;border-radius:20px;background:#fffaf2;box-shadow:0 4px 0 #ded2d7;cursor:pointer}.skill-card img{width:min(88px,68%);aspect-ratio:1;object-fit:contain}.skill-card b{font-size:9px}.skill-card small{font-size:6px;line-height:1.35;text-align:center;color:var(--muted)}.skill-card.is-selected{outline:3px solid rgba(244,95,145,.35)}.skill-detail{display:grid;grid-template-rows:1fr auto;align-items:center;padding:18px;border-radius:22px;background:#f3e9ee}.skill-detail>img{width:100%;height:100%;min-height:0;object-fit:contain}.skill-detail>span,.skill-detail>div{padding:14px;border-radius:15px;background:#fff;font-size:10px;font-weight:700}.skill-detail b{display:block;color:var(--pink-deep);font-size:16px}.skill-detail em{display:block;margin-top:7px;color:#8c5e6e;font-size:8px;font-style:normal}
.routine-dialog{grid-template-rows:auto auto 1fr}.routine-tabs{display:flex;gap:6px;margin:12px 0}.routine-tabs button{flex:1;padding:9px;border:0;border-radius:12px;background:#eee3e8;font-size:9px;font-weight:900;cursor:pointer}.routine-tabs button.is-active{color:#fff;background:var(--pink)}.routine-panel{display:none;min-height:0;overflow:hidden}.routine-panel.is-active{display:block}.routine-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;height:100%}.routine-step{position:relative;padding:18px 10px 10px;border-radius:20px;background:#fff7f0;box-shadow:0 4px 0 #ddd1d5;overflow:hidden}.routine-step>span{position:absolute;right:4px;top:-12px;color:#f2d6df;font-size:48px;font-weight:900}.routine-step h3{position:relative;margin:20px 0 8px;font-size:16px}.routine-step p{position:relative;font-size:8px;font-weight:700;color:var(--muted)}.type-filter{display:flex;align-items:center;gap:9px;margin-bottom:10px}.type-filter label{font-size:9px;font-weight:900}.type-filter select{padding:8px;border:1px solid #ddcfd5;border-radius:10px;background:#fff}.type-filter small{font-size:7px;color:var(--muted)}.scroll-list{height:calc(100% - 48px);overflow:auto;overscroll-behavior:contain;padding:3px 7px 10px 3px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.product-card{display:grid;align-content:start;padding:12px;border:1px solid #eee0e5;border-radius:18px;background:#fff;box-shadow:0 4px 0 #ddd1d5}.product-card .role{justify-self:start;padding:3px 7px;border-radius:8px;background:#fbe0e9;color:#b63a68;font-size:6px;font-weight:900}.brand-name{margin-top:6px;color:var(--muted);font-size:6px;font-weight:900}.product-card h4{margin:2px 0;font-size:10px;line-height:1.35}.product-card .note{margin:2px 0 8px;font-size:7px;color:var(--muted)}.product-meta,.product-facts,.product-price{display:flex;justify-content:space-between;gap:7px;font-size:6px}.product-facts{display:grid;margin:7px 0;padding:7px;border-radius:10px;background:#f8f1f3}.product-price strong{font-size:11px}.product-card>a{margin-top:7px;padding:7px;border-radius:9px;color:#fff;background:#ec5a8d;text-align:center;font-size:7px;font-weight:900}.recovery-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.recovery-guide div{display:grid;padding:9px 12px;border-radius:13px;background:#f6eaf0}.recovery-guide b{font-size:9px;color:var(--pink-deep)}.recovery-guide span{font-size:7px;font-weight:700}
.reward-dialog{grid-template-columns:180px 1fr;grid-template-rows:auto 1fr auto}.reward-hero{grid-row:1/4;position:relative;min-height:0}.reward-hero img{width:100%;height:100%;object-fit:contain}.reward-hero .sparkles{position:absolute;top:15%;left:10%;right:10%;color:#f4a23d;font-size:20px;text-align:center;animation:sparkle 1s ease-in-out infinite alternate}.reward-dialog>.scroll-list{height:auto;margin-top:12px}.reward-actions{display:flex;gap:8px;margin-top:10px}
.talk-dialog{position:relative;display:grid;grid-template-columns:.75fr 1.25fr;width:min(900px,100%);height:min(620px,calc(100dvh - 32px));padding:22px}.talk-dialog>.modal-close{position:absolute;z-index:4;right:18px;top:18px}.talk-character{min-height:0}.talk-bubble{align-self:center;padding:24px;border-radius:25px;background:#fff;box-shadow:0 6px 0 #d9ccd2}.talk-bubble h2{margin:0;font-size:clamp(22px,3vw,34px)}.talk-bubble>p:not(.eyebrow){min-height:100px;font-size:11px;font-weight:700}.talk-progress{height:5px;margin-top:12px;border-radius:5px;background:linear-gradient(90deg,var(--pink) var(--talk-progress,20%),#eadde3 0)}.ranking-mini{display:grid;gap:5px;margin-top:8px}.ranking-mini div{display:grid;grid-template-columns:22px 1fr auto;gap:7px;padding:6px 8px;border-radius:10px;background:#f8edf1;font-size:7px}.ranking-mini b{color:var(--pink-deep)}.source-note{display:block;margin-top:8px;color:var(--muted);font-size:7px}
.toast{position:fixed;z-index:500;left:50%;bottom:18px;max-width:calc(100% - 28px);padding:11px 18px;border:3px solid #fff;border-radius:15px;color:#fff;background:#4b3f49;box-shadow:0 5px 0 #241f23;opacity:0;pointer-events:none;transform:translate(-50%,20px);transition:.25s;font-size:9px;font-weight:900}.toast.is-visible{opacity:1;transform:translate(-50%,0)}

@keyframes screen-in{from{opacity:0;transform:scale(1.015)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes recommended{50%{filter:drop-shadow(0 0 12px #fff);transform:translateY(-3px) scale(1.04)}}
@keyframes hop{0%,100%{transform:none}45%{transform:translateY(-26px) rotate(-4deg)}70%{transform:translateY(-3px) rotate(2deg)}}
@keyframes monster-hit{20%{transform:translateX(-12px) rotate(-3deg)}45%{transform:translateX(10px) rotate(2deg)}70%{transform:translateX(-5px)}100%{transform:none}}
@keyframes calm-down{0%{transform:none}30%{transform:scale(1.09,.72)}55%{transform:scale(.92,1.08)}100%{transform:none}}
@keyframes damage{to{opacity:0;transform:translateY(-60px) scale(1.2)}}
@keyframes sparkle{0%{opacity:0;transform:translateX(-50%) scale(.6)}100%{opacity:1;transform:translateX(-50%) scale(1.1)}}

@media (max-width:760px){
  :root{--hud-h:57px}
  .game-hud{grid-template-columns:1fr auto;padding:6px 8px}.hud-brand{display:none}.hud-book{grid-template-columns:34px auto;min-height:43px}.hud-book span{width:34px;height:31px}.hud-actions{gap:5px}.hud-town{display:none}.hud-status{min-width:105px}
  .cover-art{object-position:57% center}.cover-veil{background:linear-gradient(0deg,rgba(248,231,222,.96) 0 45%,transparent 74%)}.cover-card{left:12px;right:12px;top:auto;bottom:14px;width:auto;padding:20px;transform:none}.cover-card h1{font-size:30px;line-height:1.1;word-break:normal;overflow-wrap:anywhere}.cover-card>p:not(.eyebrow){font-size:10px;margin-bottom:16px}.cover-card small{margin-top:13px;font-size:6px}
  .screen-content{inset:calc(var(--hud-h) + 7px) 8px 8px}.compact-heading h2{font-size:24px}.compact-heading>p:last-child{font-size:8px}.partner-content{gap:8px}.partner-grid{gap:7px}.partner-card{grid-template-columns:1fr;padding:5px;align-content:center}.partner-card .character-stage{min-height:0;height:calc(100% - 64px)}.partner-copy small{font-size:6px}.partner-copy b{font-size:30px}.partner-copy em{margin-top:4px;font-size:6px}.partner-next{grid-template-columns:1fr 1fr;padding:8px;gap:6px}.partner-next div{grid-column:1/-1}.partner-next div b{font-size:9px}.partner-next div span{font-size:6px}.partner-next .primary-button,.partner-next .secondary-button{min-height:38px;padding:7px 4px;font-size:7px}
  .quiz-layout{grid-template-columns:1fr;grid-template-rows:130px 1fr;gap:7px}.quiz-guide{display:grid;grid-template-columns:1fr 105px;grid-template-rows:1fr auto;padding:10px}.quiz-guide .compact-heading h2{font-size:19px}.quiz-guide .compact-heading>p:last-child{font-size:6px}.quiz-guide .character-stage{grid-column:2;grid-row:1/3}.quiz-guide .speech-bubble{grid-column:1;grid-row:2;padding:7px;font-size:6px}.quiz-console{padding:17px}.console-top{top:15px;left:18px;right:18px}.axis-track{top:38px;left:18px;right:18px}.quiz-console>div:not(.console-top):not(.axis-track){margin-top:30px}.quiz-console h3{font-size:21px}.quiz-console p{font-size:8px}.quiz-console .primary-button{font-size:9px}.quiz-console .text-button{display:flex;margin:8px 0 0;font-size:7px}.answer-grid{grid-template-columns:1fr;gap:7px}.answer-grid button{min-height:82px;padding:10px;font-size:9px}
  .result-card{inset:calc(var(--hud-h) + 8px) 8px 8px;grid-template-columns:1fr;grid-template-rows:.44fr .56fr;padding:13px}.result-character{grid-row:1;height:100%}.result-copy{padding:8px;text-align:center}.result-code{font-size:48px}.result-copy h2{font-size:22px;margin:6px 0}.result-copy>p:not(.eyebrow):not(.result-code){font-size:7px}.result-recommend{margin:8px 0;padding:8px;font-size:8px}.result-actions{justify-content:center}.result-actions a{min-height:37px;padding:7px 12px;font-size:8px}.result-copy small{font-size:6px}
  .town-map{inset:calc(var(--hud-h) + 5px) 5px 5px;border-radius:20px}.town-map>img{object-fit:cover;object-position:center}.town-title{top:8px;left:8px;padding:7px 9px}.town-title h2{font-size:16px}.town-title span{font-size:6px}.town-title .eyebrow{font-size:6px}.map-node{width:45px;height:45px;border-width:3px;box-shadow:0 5px 0 #b94069,0 7px 12px rgba(60,40,50,.2)}.map-node span{font-size:13px}.map-node b{top:47px;min-width:56px;padding:2px 4px;font-size:5px}.node-1{left:17%;top:28%}.node-2{left:45%;top:43%}.node-3{left:72%;top:25%}.node-4{left:27%;top:62%}.node-5{left:66%;top:66%}.node-6{left:9%;top:77%}.node-extra{left:78%;top:51%}.map-player{width:68px;height:94px;transform:translate(-12px,-62px)}.map-companion{left:6px;width:56px;height:66px}.podium{height:35px}.town-tools{left:8px;right:8px;bottom:8px;grid-template-columns:repeat(3,1fr);padding:6px}.town-tools button,.town-tools a{min-width:0;padding:6px}.town-tools b{font-size:7px}.boss-event{top:13%;padding:6px 8px}.boss-event b{font-size:6px}
  .battle-layout{inset:calc(var(--hud-h) + 5px) 6px 5px;grid-template-columns:1fr;grid-template-rows:auto 40% 1fr;gap:5px}.battle-heading{min-height:48px;padding:4px 7px;gap:7px}.battle-heading h2{font-size:19px}.battle-heading .eyebrow{font-size:6px}.battle-heading p:last-child{font-size:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.back-chip{padding:6px 8px;font-size:6px}.monster-zone{padding:4px 8px 7px;border-radius:20px}.monster-stage>img{max-height:31vh}.hp-wrap{width:82%;min-width:0}.hp-bar{height:12px}.hp-meta{font-size:6px}.battle-console{padding:8px;border-radius:20px}.battle-console-head{margin-bottom:4px}.battle-console-head h3{font-size:16px}.battle-console-head small{font-size:5px}.battle-console-head button{padding:5px;font-size:6px}.skill-buttons{grid-template-columns:1fr 1fr;gap:4px}.skill-button{grid-template-columns:40px 1fr;min-height:61px;padding:4px;border-radius:13px}.skill-button img,.uv-icon{width:38px;height:38px}.skill-button b{font-size:7px}.skill-button small{font-size:4.5px;line-height:1.2}.battle-feedback{min-height:39px;margin-top:4px;padding:5px}.battle-feedback b{font-size:6px}.battle-feedback span{font-size:5px}.skip-battle{margin-top:2px;font-size:5px;padding:2px}
  .consult-content,.boss-layout{inset:calc(var(--hud-h) + 5px) 6px 5px;gap:6px}.experts{grid-template-columns:1fr 1fr;gap:7px}.expert-card{grid-template-columns:1fr;grid-template-rows:1fr auto;padding:5px;border-radius:20px}.expert-image{min-height:0}.expert-card b{font-size:14px}.expert-card small{font-size:5px}.expert-card em{margin-top:4px;font-size:5px}.consult-note{padding:5px;font-size:5px}.boss-main{grid-template-columns:1fr;grid-template-rows:1fr auto;gap:5px}.boss-panel{grid-template-columns:1fr 1fr;padding:8px;gap:5px}.boss-panel p{grid-column:1/-1;margin:0;font-size:7px}.boss-panel button{min-height:38px;font-size:6px}.boss-panel .primary-button{grid-column:1/-1;font-size:7px}
  .modal-backdrop{padding:7px}.entry-dialog{grid-template-columns:100px 1fr;padding:12px;border-radius:20px}.entry-dialog>img{width:95px;height:110px}.entry-dialog h2{font-size:20px}.entry-dialog p:not(.eyebrow){font-size:7px}.entry-dialog .primary-button,.entry-dialog .secondary-button{min-height:35px;padding:6px 10px;font-size:7px}
  .book-dialog,.routine-dialog,.reward-dialog{height:calc(100dvh - 14px);padding:12px;border-radius:22px}.modal-head h2{font-size:20px}.modal-head p:last-child{font-size:6px}.modal-close{width:34px;height:34px}.book-body{grid-template-columns:1fr;grid-template-rows:1fr 150px;gap:7px;margin-top:8px}.skill-grid{grid-template-columns:repeat(4,1fr);gap:5px}.skill-card{padding:4px;border-radius:13px}.skill-card img{width:min(54px,70%)}.skill-card b{font-size:6px}.skill-card small{font-size:4px}.skill-detail{grid-template-columns:100px 1fr;grid-template-rows:1fr;padding:7px}.skill-detail>span,.skill-detail>div{padding:8px;font-size:6px}.skill-detail b{font-size:11px}.skill-detail em{font-size:5px}
  .routine-dialog{grid-template-rows:auto auto 1fr}.routine-tabs{margin:7px 0}.routine-tabs button{padding:7px 3px;font-size:6px}.routine-steps{grid-template-columns:1fr 1fr;gap:5px}.routine-step{padding:7px}.routine-step>span{font-size:30px}.routine-step h3{margin:13px 0 3px;font-size:10px}.routine-step p{font-size:5px}.type-filter{display:grid;grid-template-columns:auto 1fr;margin-bottom:5px}.type-filter label,.type-filter small{font-size:5px}.type-filter small{grid-column:1/-1}.type-filter select{padding:5px}.product-grid{grid-template-columns:1fr 1fr;gap:5px}.product-card{padding:7px;border-radius:12px}.product-card h4{font-size:7px}.product-card .note,.product-meta,.product-facts,.product-price{font-size:4.5px}.product-price strong{font-size:8px}.recovery-guide{gap:5px;margin-bottom:5px}.recovery-guide div{padding:6px}.recovery-guide b{font-size:7px}.recovery-guide span{font-size:5px}
  .reward-dialog{grid-template-columns:90px 1fr;grid-template-rows:auto 1fr auto}.reward-dialog>.scroll-list{grid-column:1/-1;margin-top:5px}.reward-actions{grid-column:1/-1;margin-top:5px}.reward-actions a,.reward-actions button{min-height:35px;padding:6px 10px;font-size:7px}.talk-dialog{grid-template-columns:120px 1fr;height:calc(100dvh - 14px);padding:10px}.talk-bubble{padding:12px}.talk-bubble h2{font-size:18px}.talk-bubble>p:not(.eyebrow){min-height:120px;font-size:7px}.talk-bubble .primary-button,.talk-bubble .secondary-button{min-height:34px;padding:5px 9px;font-size:7px}.talk-dialog>.modal-close{right:9px;top:9px}.ranking-mini div{font-size:5px}
}

/* Change order 02: make the current location and map labels unmistakable. */
.hud-left-tools{justify-self:start;display:flex;align-items:center;gap:7px}
.hud-tool{display:grid;align-content:center;min-width:76px;min-height:46px;padding:5px 10px;border:0;border-radius:16px;background:#fff;box-shadow:0 4px 0 #d9cdd2;text-align:left;cursor:pointer}
.hud-tool span{color:var(--pink-deep);font-size:6px;font-weight:900;letter-spacing:.08em}
.hud-tool b{font-size:9px;line-height:1.2}
.map-player{z-index:9;width:180px;height:230px;transform:translate(-50%,-76%)}
.map-companion{left:14px;width:152px;height:176px}
.podium{left:20px;right:20px;height:62px}
.map-node{width:66px;height:66px}
.map-node span{font-size:27px}
.map-node b{top:70px;min-width:122px;padding:6px 10px;border-radius:13px;font-size:18px;line-height:1.1;white-space:nowrap}
.node-extra{left:49%;top:14%}
.node-extra b{min-width:144px;white-space:normal}
.node-2{left:37%;top:54%}
.node-3{left:53%;top:54%}
.node-5{left:46%;top:72%}
.boss-event{left:auto;right:2%;top:5%;transform:none}

@media (max-width:760px){
  .hud-left-tools{gap:4px}
  .hud-book{grid-template-columns:30px auto;min-height:43px;padding:4px 7px 4px 4px}
  .hud-book span{width:30px;height:31px;font-size:6px}
  .hud-book b{font-size:7px}
  .hud-tool{min-width:62px;min-height:43px;padding:4px 7px;border-radius:13px}
  .hud-tool span{font-size:5px}
  .hud-tool b{font-size:7px}
  .map-player{width:136px;height:178px;transform:translate(-50%,-72%)}
  .map-companion{left:12px;width:112px;height:132px}
  .podium{left:17px;right:17px;height:47px}
  .map-node{width:66px;height:66px}
  .map-node span{font-size:26px}
  .map-node b{top:70px;min-width:82px;padding:4px 7px;font-size:13px}
  .node-extra{left:49%;top:13%}
  .node-extra b{min-width:102px}
  .node-2{left:4%;top:54%}
  .node-3{left:58%;top:55%}
  .node-5{left:35%;top:72%}
  .boss-event{right:2%;top:6%}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}

/* Change order 04: lock every stage number to its white platform in stage-map.png. */
.town-map{isolation:isolate;background:linear-gradient(180deg,#f8f1ec 0%,#f2eee7 100%)}
.town-map::before{content:none}
.map-canvas{position:absolute;z-index:1;left:50%;top:50%;width:min(calc(100% - 20px),calc((100dvh - var(--hud-h) - 43px) * 1.8223));aspect-ratio:523/287;overflow:visible;transform:translate(-50%,-50%);border-radius:18px;box-shadow:0 12px 34px rgba(54,44,47,.18)}
.map-canvas>img{width:100%;height:100%;object-fit:fill;border-radius:18px}
.town-title{z-index:30}
.map-player{z-index:20}
.map-node{transform:translate(-50%,-50%)}
.map-node:hover{transform:translate(-50%,-56%) scale(1.04)}
.map-node.is-recommended{animation:map-recommended 1.3s ease-in-out infinite}
.node-1{left:49.33%;top:85.02%}
.node-2{left:39.96%;top:65.51%}
.node-3{left:56.21%;top:55.05%}
.node-4{left:36.90%;top:35.19%}
.node-5{left:73.80%;top:29.97%}
.node-6{left:26.20%;top:93.38%}
.node-extra{left:51.53%;top:20.91%}
.boss-event{z-index:31}
@keyframes map-recommended{0%,100%{filter:none;transform:translate(-50%,-50%) scale(1)}50%{filter:drop-shadow(0 0 12px #fff);transform:translate(-50%,-57%) scale(1.04)}}

@media (max-width:900px){
  .map-node{width:53px;height:53px}
  .map-node span{font-size:21px}
  .map-node b{top:57px;min-width:82px;padding:4px 7px;font-size:13px}
  .node-extra b{min-width:102px}
}

@media (max-width:480px){
  .map-canvas{width:calc(100% - 12px)}
}

/* Change order 10: readable HUD and town guidance at every supported width. */
.hud-book b{font-size:clamp(10px,1.7vw,13px);line-height:1.2}
.hud-tool span{font-size:clamp(7px,1.25vw,9px);line-height:1.15}
.hud-tool b{font-size:clamp(10px,1.7vw,13px);line-height:1.2}
.hud-status span{font-size:clamp(8px,1.2vw,10px);line-height:1.15}
.hud-status b{font-size:clamp(10px,1.6vw,12px);line-height:1.2}
.town-title{padding:12px 16px}
.town-title .eyebrow{font-size:clamp(9px,1.35vw,11px);line-height:1.2}
.town-title h2{font-size:clamp(20px,3vw,30px);line-height:1.05}
.town-title span{display:block;margin-top:7px;font-size:clamp(9px,1.55vw,12px);line-height:1.4}

@media (max-width:480px){
  .hud-left-tools{gap:3px}
  .hud-book{min-width:78px;padding-inline:4px}
  .hud-tool{min-width:58px;padding-inline:5px}
  .hud-book b,.hud-tool b{font-size:9px}
  .hud-tool span{font-size:7px}
  .hud-status{min-width:92px;padding-inline:7px}
  .hud-status span{font-size:7px}
  .hud-status b{font-size:9px}
  .town-title{padding:10px 12px}
  .town-title .eyebrow{font-size:9px}
  .town-title h2{font-size:20px}
  .town-title span{font-size:9px}
}

/* Change order 02: complete product coverage and non-destructive 16-type highlighting. */
.routine-filter-status{margin:2px 0 9px;padding:9px 12px;border-radius:12px;background:#fff0f5;color:#a93461;font-size:9px;font-weight:900}
.routine-section-title{margin:12px 0 6px;font-size:14px;line-height:1.25}
.routine-section-note{margin:-2px 0 8px;color:var(--muted);font-size:8px;font-weight:700}
.routine-product-scroll{height:calc(100% - 48px)}
.product-card.is-type-match{outline:4px solid rgba(244,95,145,.42);background:#fff8fb;box-shadow:0 5px 0 #e6a7bd,0 9px 18px rgba(221,71,121,.13)}

@media (max-width:760px){
  .routine-filter-status{padding:6px 8px;font-size:7px}
  .routine-section-title{margin:8px 0 4px;font-size:10px}
  .routine-section-note{font-size:6px}
  .routine-dialog .type-filter label{font-size:9px}
  .routine-dialog .type-filter small{font-size:7px}
  .routine-dialog .type-filter select{font-size:10px}
  .routine-dialog .product-card .role,.routine-dialog .brand-name{font-size:7px}
  .routine-dialog .product-card h4{font-size:10px}
  .routine-dialog .product-card .note{font-size:7px}
  .routine-dialog .product-meta,.routine-dialog .product-facts,.routine-dialog .product-price{font-size:6px}
  .routine-dialog .product-price strong{font-size:10px}
  .routine-dialog .product-card>a{font-size:8px}
}

@media (min-width:481px) and (max-width:760px){
  .routine-dialog .modal-head h2{font-size:28px}
  .routine-dialog .modal-head p:last-child{font-size:9px}
  .routine-dialog .routine-tabs button{font-size:10px}
  .routine-filter-status{font-size:9px}
  .routine-section-title{font-size:13px}
  .routine-section-note{font-size:8px}
  .routine-dialog .product-card .role,.routine-dialog .brand-name{font-size:8px}
  .routine-dialog .product-card h4{font-size:12px}
  .routine-dialog .product-card .note{font-size:9px}
  .routine-dialog .product-meta,.routine-dialog .product-facts,.routine-dialog .product-price{font-size:8px}
  .routine-dialog .product-price strong{font-size:12px}
  .routine-dialog .product-card>a{font-size:10px}
}

/* Change order 12: readable type scale across every screen. */
.eyebrow{font-size:13px;line-height:1.25}
.primary-button,.secondary-button,.text-button{font-size:15px}
.compact-heading>p:last-child{font-size:15px;line-height:1.55}
.hud-book span{font-size:11px}
.hud-brand b{font-size:14px}.hud-brand small{font-size:10px}
.hud-town{font-size:13px}
.cover-card>p:not(.eyebrow){font-size:17px;line-height:1.7}
.cover-card small{font-size:12px;line-height:1.55}
.partner-copy small{font-size:13px}
.partner-copy em{font-size:14px;line-height:1.45}
.partner-next div b{font-size:16px}
.partner-next div span{font-size:13px;line-height:1.45}
.speech-bubble{font-size:14px;line-height:1.5}
.console-top{font-size:12px}
.question-axis{font-size:12px!important}
.quiz-console p{font-size:15px;line-height:1.55}
.answer-grid button{font-size:15px;line-height:1.45}
.result-copy>p:not(.eyebrow):not(.result-code){font-size:15px;line-height:1.55}
.result-recommend{font-size:15px;line-height:1.45}
.result-copy small{font-size:12px;line-height:1.5}
.town-tools span{font-size:10px}
.town-tools b{font-size:13px}
.boss-event span{font-size:10px}
.boss-event b{font-size:13px}
.battle-heading p:last-child{font-size:14px;line-height:1.45}
.back-chip{font-size:13px}
.hp-meta{font-size:13px}
.battle-console-head small{font-size:11px}
.battle-console-head h3{font-size:22px}
.battle-console-head button{font-size:12px}
.skill-button{grid-template-columns:58px 1fr;min-height:86px;padding:8px}
.skill-button img,.uv-icon{width:52px;height:52px}
.skill-button b{font-size:14px;line-height:1.25}
.skill-button small{font-size:10px;line-height:1.4}
.battle-feedback{min-height:62px}
.battle-feedback b{font-size:13px}
.battle-feedback span{font-size:12px;line-height:1.45}
.skip-battle{font-size:11px}
.expert-card small{font-size:12px}
.expert-card em{font-size:14px;line-height:1.5}
.consult-note{font-size:13px;line-height:1.45}
.boss-panel p{font-size:15px;line-height:1.5}
.boss-panel button{font-size:14px}
.modal-head p:last-child{font-size:13px;line-height:1.5}
.entry-dialog p:not(.eyebrow){font-size:15px;line-height:1.55}
.skill-card b{font-size:13px}
.skill-card small{font-size:10px;line-height:1.35}
.skill-detail>span,.skill-detail>div{font-size:14px;line-height:1.5}
.skill-detail b{font-size:17px}
.skill-detail em{font-size:12px}
.routine-tabs button{font-size:13px}
.routine-step p{font-size:12px;line-height:1.45}
.type-filter label{font-size:13px}
.type-filter small{font-size:11px}
.product-card .role,.brand-name{font-size:10px}
.product-card h4{font-size:14px}
.product-card .note{font-size:11px;line-height:1.45}
.product-meta,.product-facts,.product-price{font-size:10px;line-height:1.4}
.product-price strong{font-size:15px}
.product-card>a{font-size:11px}
.recovery-guide b{font-size:13px}
.recovery-guide span{font-size:11px;line-height:1.4}
.talk-bubble>p:not(.eyebrow){font-size:15px;line-height:1.6}
.ranking-mini div{font-size:11px}
.source-note{font-size:11px;line-height:1.45}
.toast{font-size:13px}
.routine-filter-status{font-size:12px}
.routine-section-note{font-size:11px;line-height:1.45}

@media (max-width:760px){
  .eyebrow{font-size:11px}
  .primary-button,.secondary-button,.text-button{font-size:12px}
  .cover-card>p:not(.eyebrow){font-size:14px;line-height:1.55}
  .cover-card small{font-size:10px}
  .compact-heading>p:last-child{font-size:12px;line-height:1.4}
  .partner-copy small{font-size:11px}
  .partner-copy em{font-size:12px;line-height:1.35}
  .partner-next div b{font-size:14px}
  .partner-next div span{font-size:11px}
  .partner-next .primary-button,.partner-next .secondary-button{font-size:12px}
  .quiz-layout{grid-template-rows:145px 1fr}
  .quiz-guide .compact-heading>p:last-child{font-size:10px}
  .quiz-guide .speech-bubble{font-size:10px;line-height:1.35}
  .console-top{font-size:10px}
  .question-axis{font-size:10px!important}
  .quiz-console p{font-size:12px}
  .quiz-console .primary-button{font-size:12px}
  .quiz-console .text-button{font-size:10px}
  .answer-grid button{min-height:76px;font-size:13px}
  .result-copy>p:not(.eyebrow):not(.result-code){font-size:11px}
  .result-recommend{font-size:12px}
  .result-actions a{font-size:11px}
  .result-copy small{font-size:10px}
  .town-tools span{font-size:9px}
  .town-tools b{font-size:11px}
  .boss-event b{font-size:10px}
  .battle-layout{grid-template-rows:auto 29% 1fr}
  .battle-heading .eyebrow{font-size:10px}
  .battle-heading p:last-child{font-size:11px}
  .back-chip{font-size:11px}
  .monster-stage>img{max-height:27vh}
  .hp-meta{font-size:11px}
  .battle-console-head h3{font-size:20px}
  .battle-console-head small{font-size:10px}
  .battle-console-head button{font-size:11px}
  .skill-button{grid-template-columns:48px 1fr;min-height:86px;padding:7px}
  .skill-button img,.uv-icon{width:44px;height:44px}
  .skill-button b{font-size:13px}
  .skill-button small{font-size:10px;line-height:1.35}
  .battle-feedback{min-height:56px}
  .battle-feedback b{font-size:11px}
  .battle-feedback span{font-size:10px;line-height:1.4}
  .skip-battle{font-size:10px}
  .expert-card small{font-size:10px}
  .expert-card em{font-size:11px;line-height:1.4}
  .consult-note{font-size:10px}
  .boss-panel p{font-size:11px}
  .boss-panel button,.boss-panel .primary-button{font-size:10px}
  .entry-dialog p:not(.eyebrow){font-size:11px}
  .entry-dialog .primary-button,.entry-dialog .secondary-button{font-size:11px}
  .modal-head p:last-child{font-size:11px}
  .skill-card b{font-size:11px}
  .skill-card small{font-size:8px}
  .skill-detail>span,.skill-detail>div{font-size:10px}
  .skill-detail b{font-size:14px}
  .skill-detail em{font-size:9px}
  .routine-tabs button{font-size:12px}
  .routine-step h3{font-size:15px}
  .routine-step p{font-size:10px;line-height:1.5}
  .type-filter label{font-size:11px}
  .type-filter small{font-size:10px}
  .routine-dialog .product-card .role,.routine-dialog .brand-name{font-size:9px}
  .routine-dialog .product-card h4{font-size:13px}
  .routine-dialog .product-card .note{font-size:10px}
  .routine-dialog .product-meta,.routine-dialog .product-facts,.routine-dialog .product-price{font-size:9px}
  .routine-dialog .product-price strong{font-size:13px}
  .routine-dialog .product-card>a{font-size:10px}
  .recovery-guide b{font-size:11px}
  .recovery-guide span{font-size:10px}
  .reward-actions a,.reward-actions button{font-size:11px}
  .talk-bubble>p:not(.eyebrow){font-size:11px;line-height:1.5}
  .talk-bubble .primary-button,.talk-bubble .secondary-button{font-size:10px}
  .ranking-mini div{font-size:9px}
  .source-note{font-size:9px}
  .toast{font-size:12px}
  .routine-filter-status{font-size:11px}
  .routine-section-note{font-size:10px}
}

/* Change order 13: large, visually uniform ingredient skill choices. */
.skill-button{
  grid-template-columns:82px 1fr;
  gap:12px;
  min-height:118px;
  padding:12px;
}
.skill-icon-shell{
  display:grid;
  place-items:center;
  width:76px;
  height:76px;
  padding:3px;
  border:2px solid rgba(244,174,69,.42);
  border-radius:50%;
  background:radial-gradient(circle at 35% 28%,#fffdf6 0 24%,#ffe9a9 68%,#ffc96c 100%);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.85),0 4px 8px rgba(112,75,45,.15);
  overflow:hidden;
}
.skill-icon-shell img{
  width:100%;
  height:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  object-fit:contain;
  transform-origin:center;
}
.skill-icon-shell .uv-icon{
  width:100%;
  height:100%;
  border:0;
  box-shadow:none;
}
.skill-button[data-use-skill="vitaminC"] .skill-icon-shell img{transform:scale(.96)}
.skill-button[data-use-skill="pdrn"] .skill-icon-shell img,
.skill-button[data-use-skill="retinol"] .skill-icon-shell img,
.skill-button[data-use-skill="txa"] .skill-icon-shell img{
  object-fit:cover;
}
.skill-button[data-use-skill="pdrn"] .skill-icon-shell img{transform:translateY(-4%) scale(1.15)}
.skill-button[data-use-skill="retinol"] .skill-icon-shell img{transform:scale(1.1)}
.skill-button[data-use-skill="txa"] .skill-icon-shell img{transform:scale(1.2)}
.skill-button b{font-size:18px;line-height:1.25}
.skill-button small{font-size:14px;line-height:1.45}
.battle-console-head small{font-size:14px}
.battle-console-head button{font-size:14px}
.battle-feedback b{font-size:16px}
.battle-feedback span{font-size:14px}
.skip-battle{font-size:13px}

@media (max-width:760px){
  .skill-button{grid-template-columns:72px 1fr;gap:10px;min-height:110px;padding:9px}
  .skill-icon-shell{width:66px;height:66px}
  .skill-button b{font-size:17px}
  .skill-button small{font-size:14px;line-height:1.4}
  .battle-console-head small{font-size:12px}
  .battle-console-head button{font-size:13px}
  .battle-feedback{min-height:64px}
  .battle-feedback b{font-size:14px}
  .battle-feedback span{font-size:13px}
  .skip-battle{font-size:12px}
}

@media (max-width:480px){
  .battle-layout{grid-template-rows:auto 24% 1fr}
  .skill-button{grid-template-columns:58px 1fr;gap:6px;min-height:112px;padding:7px}
  .skill-icon-shell{width:54px;height:54px}
  .skill-button b{font-size:14px}
  .skill-button small{font-size:11px;line-height:1.35}
  .battle-feedback{min-height:58px}
  .battle-feedback b{font-size:12px}
  .battle-feedback span{font-size:11px}
  .skip-battle{font-size:10px}
}

/* Change order 14: enlarge every battle heading label except the monster name. */
.battle-heading{min-height:78px;padding-block:9px}
.battle-heading .eyebrow{margin-bottom:4px;font-size:clamp(15px,1.45vw,18px);line-height:1.25}
.battle-heading p:last-child{margin-top:5px;font-size:clamp(16px,1.55vw,19px);line-height:1.4}
.battle-heading .back-chip{font-size:15px}

@media (max-width:760px){
  .battle-heading{min-height:72px;padding-block:7px}
  .battle-heading .eyebrow{font-size:14px}
  .battle-heading p:last-child{font-size:15px;white-space:normal;overflow:visible;text-overflow:clip}
  .battle-heading .back-chip{font-size:13px}
}

@media (max-width:480px){
  .battle-heading{min-height:68px}
  .battle-heading .eyebrow{font-size:12px}
  .battle-heading p:last-child{font-size:12px;line-height:1.35}
  .battle-heading .back-chip{font-size:11px}
}

/* Change order 22: let the mascot own the mission-clear celebration. */
#reward-guide{transform:translateX(35px) scale(1.65);transform-origin:center}

@media (max-width:480px){
  #reward-guide{transform:translateX(18px) scale(1.45)}
}

.reward-hero .sparkles{animation-name:reward-sparkle}
@keyframes reward-sparkle{
  0%{opacity:.35;transform:translateX(15px) scale(.85)}
  100%{opacity:1;transform:translateX(15px) scale(1.08)}
}

/* Change order 26: use the consultation-room whitespace for readable copy. */
.consult-content .battle-heading h2{font-size:clamp(28px,3.3vw,42px)}
.consult-content .battle-heading .eyebrow{font-size:15px}
.consult-content .battle-heading p:last-child{font-size:18px}
.expert-card>span:last-child{gap:5px;padding:12px 8px 16px}
.expert-card small{font-size:14px;line-height:1.25}
.expert-card b{font-size:clamp(24px,2.8vw,36px);line-height:1.2}
.expert-card em{margin-top:5px;font-size:16px;line-height:1.45}
.consult-note{padding:10px 16px;font-size:14px;line-height:1.5}

@media (max-width:480px){
  .consult-content .battle-heading h2{font-size:24px}
  .consult-content .battle-heading .eyebrow{font-size:11px}
  .consult-content .battle-heading p:last-child{font-size:12px}
  .expert-card>span:last-child{padding:8px 4px 10px}
  .expert-card small{font-size:10px}
  .expert-card b{font-size:20px}
  .expert-card em{font-size:12px}
  .consult-note{font-size:11px}
}

/* Change order 27: readable expert conversation copy. */
.talk-bubble{padding:30px}
.talk-bubble .eyebrow{font-size:14px;line-height:1.3}
.talk-bubble h2{font-size:30px;line-height:1.25}
.talk-bubble>p:not(.eyebrow){min-height:145px;font-size:17px;line-height:1.75}
.talk-progress{height:8px;margin-top:18px}
.talk-bubble .dialog-actions{margin-top:14px}
.talk-bubble .primary-button,.talk-bubble .secondary-button{min-height:46px;padding:10px 18px;font-size:14px}
.talk-bubble .ranking-mini div{font-size:13px;line-height:1.4}
.talk-bubble .source-note{font-size:12px;line-height:1.5}

@media (max-width:480px){
  .talk-bubble{padding:16px}
  .talk-bubble .eyebrow{font-size:11px}
  .talk-bubble h2{font-size:23px}
  .talk-bubble>p:not(.eyebrow){min-height:150px;font-size:13px;line-height:1.6}
  .talk-bubble .primary-button,.talk-bubble .secondary-button{min-height:40px;padding:8px 12px;font-size:12px}
  .talk-bubble .ranking-mini div{font-size:10px}
  .talk-bubble .source-note{font-size:10px}
}

/* Change order 28: balance the expert character with the conversation card. */
.talk-dialog{grid-template-columns:220px 1fr}
.talk-character{align-self:center;height:min(380px,62vh);overflow:visible}
.talk-character img{transform:scale(1.45);transform-origin:center}
.talk-character i{display:none}

@media (max-width:760px){
  .talk-dialog{grid-template-columns:180px 1fr}
  .talk-character{height:min(330px,52vh)}
  .talk-character img{transform:scale(1.4)}
}

@media (max-width:480px){
  .talk-dialog{grid-template-columns:95px 1fr}
  .talk-character{height:min(250px,42vh)}
  .talk-character img{transform:scale(1.2)}
}

/* Change order 29: keep the clear mascot out of the mission title. */
.reward-dialog .modal-head{position:relative;z-index:2}

@media (min-width:481px) and (max-width:760px){
  .reward-dialog{grid-template-columns:190px 1fr}
  .reward-hero{overflow:hidden}
  #reward-guide{transform:scale(1.2)}
}

@media (max-width:480px){
  .reward-dialog{grid-template-columns:130px 1fr}
  .reward-hero{overflow:hidden}
  #reward-guide{transform:scale(1.05)}
}

/* Change order 30: no tiny copy in the routine book. */
.routine-dialog .modal-head .eyebrow{font-size:14px}
.routine-dialog .modal-head h2{font-size:34px;line-height:1.2}
.routine-dialog .modal-head p:last-child{font-size:14px;line-height:1.5}
.routine-dialog .routine-tabs button{padding:11px 8px;font-size:15px}
.routine-step>span{font-size:42px}
.routine-step h3{font-size:22px;line-height:1.3}
.routine-step p{font-size:15px;line-height:1.7}
.routine-dialog .type-filter label{font-size:14px}
.routine-dialog .type-filter select{font-size:14px}
.routine-dialog .type-filter small{font-size:12px}
.routine-filter-status{font-size:13px;line-height:1.5}
.routine-section-title{font-size:18px}
.routine-section-note{font-size:12px;line-height:1.5}
.routine-dialog .product-card .role,.routine-dialog .brand-name{font-size:11px}
.routine-dialog .product-card h4{font-size:16px}
.routine-dialog .product-card .note{font-size:13px;line-height:1.5}
.routine-dialog .product-meta,.routine-dialog .product-facts,.routine-dialog .product-price{font-size:11px;line-height:1.45}
.routine-dialog .product-price strong{font-size:16px}
.routine-dialog .product-card>a{font-size:12px}
.routine-dialog .recovery-guide b{font-size:14px}
.routine-dialog .recovery-guide span{font-size:12px;line-height:1.5}

@media (max-width:480px){
  .routine-dialog .modal-head .eyebrow{font-size:11px}
  .routine-dialog .modal-head h2{font-size:26px}
  .routine-dialog .modal-head p:last-child{font-size:11px}
  .routine-dialog .routine-tabs button{padding:9px 4px;font-size:12px}
  .routine-step>span{font-size:34px}
  .routine-step h3{font-size:17px}
  .routine-step p{font-size:12px;line-height:1.55}
  .routine-dialog .type-filter label,.routine-dialog .type-filter select{font-size:12px}
  .routine-dialog .type-filter small{font-size:10px}
  .routine-filter-status{font-size:11px}
  .routine-section-title{font-size:15px}
  .routine-section-note{font-size:10px}
  .routine-dialog .product-card .role,.routine-dialog .brand-name{font-size:9px}
  .routine-dialog .product-card h4{font-size:13px}
  .routine-dialog .product-card .note{font-size:10px}
  .routine-dialog .product-meta,.routine-dialog .product-facts,.routine-dialog .product-price{font-size:9px}
  .routine-dialog .product-price strong{font-size:13px}
  .routine-dialog .product-card>a{font-size:10px}
}

/* Change order 32: make the final mission a readable two-question battle. */
.boss-panel{
  align-self:center;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:18px 20px;
}
.boss-health{
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
  align-items:center;
}
.boss-health span,.boss-health b{font-size:15px;font-weight:900}
.boss-health i{
  grid-column:1/-1;
  height:16px;
  padding:3px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(96,72,98,.2);
}
.boss-health em{
  display:block;
  width:100%;
  height:100%;
  border-radius:99px;
  background:linear-gradient(90deg,#ffbf4b,#ff765e,#ec4e87);
  transition:width .45s ease;
}
.boss-round{
  margin:4px 0 0!important;
  color:var(--pink-deep);
  font-size:14px!important;
  font-weight:900;
  letter-spacing:.13em;
}
.boss-panel h3{margin:0;font-size:25px;line-height:1.3}
.boss-panel #boss-message{margin:0;font-size:16px;line-height:1.55}
.boss-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.boss-choices button{
  min-height:68px;
  padding:12px 15px;
  border:0;
  border-radius:17px;
  color:#fff;
  background:#6b596e;
  box-shadow:0 5px 0 #4d3e50;
  font-size:16px;
  font-weight:900;
  line-height:1.4;
  cursor:pointer;
}
.boss-choices button:hover{transform:translateY(-1px);background:#7b667f}
.boss-choices button.is-wrong{background:#d96b72;box-shadow:0 5px 0 #a64e56}
.boss-choices button:disabled{opacity:.65;cursor:default;transform:none}
.boss-clear-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.boss-clear-actions[hidden]{display:none}
.boss-clear-actions .secondary-button,.boss-clear-actions .primary-button{min-height:48px;text-align:center}

@media (max-width:760px){
  .boss-panel{padding:14px}
  .boss-health span,.boss-health b{font-size:13px}
  .boss-round{font-size:12px!important}
  .boss-panel h3{font-size:21px}
  .boss-panel #boss-message{font-size:14px}
  .boss-choices button{min-height:62px;font-size:14px}
}

@media (max-width:480px){
  .boss-panel{gap:7px;padding:10px}
  .boss-choices{grid-template-columns:1fr}
  .boss-panel h3{font-size:18px}
  .boss-panel #boss-message{font-size:12px;line-height:1.45}
  .boss-choices button{min-height:48px;padding:8px 10px;font-size:12px}
  .boss-clear-actions{grid-template-columns:1fr}
}

/* Change order 35: keep town markers separate on iPhone-width maps. */
@media (max-width:480px){
  .map-player{width:88px;height:116px;transform:translate(-50%,-70%)}
  .map-companion{left:8px;width:72px;height:84px}
  .podium{left:11px;right:11px;height:36px}
  .map-node{
    width:34px;
    height:34px;
    border-width:2px;
    box-shadow:0 4px 0 #b94069,0 6px 9px rgba(60,40,50,.18);
  }
  .map-node span{font-size:14px;line-height:1}
  .map-node b{
    top:38px;
    min-width:52px;
    padding:2px 4px;
    border-radius:8px;
    font-size:9px;
    line-height:1.15;
  }
  .map-node.is-clear:after{
    right:-6px;
    top:-7px;
    width:17px;
    height:17px;
    border-width:2px;
    font-size:8px;
  }
  .node-extra b{min-width:60px;font-size:8px}
}

/* Change order 03: public-operation disclosure and result sharing. */
.site-footer{position:fixed;z-index:90;left:0;right:0;bottom:0;height:var(--footer-h);display:flex;align-items:center;justify-content:center;gap:16px;padding:5px 14px;background:#fffaf7;border-top:1px solid #eadde3;color:var(--muted);font-size:10px;font-weight:700;line-height:1.2;text-align:center}
.site-footer a{color:var(--pink-deep);text-decoration:underline;text-underline-offset:3px}
.result-share{margin:10px 0;padding:10px 12px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px #eee0e5}
.result-share>p{margin:0 0 7px;font-size:11px;font-weight:900}
.result-share-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.result-share-actions button{min-height:36px;padding:7px;border:1px solid #eadde3;border-radius:11px;background:#fff8f5;color:var(--ink);font-size:10px;font-weight:900;cursor:pointer}
#share-status{display:block;min-height:16px;margin-top:4px;color:var(--pink-deep);font-size:9px;font-weight:900}
.affiliate-disclosure{margin:5px 0 9px;color:var(--muted);font-size:10px;line-height:1.4;font-weight:700}
.reward-product-list{min-height:0;display:grid;grid-template-rows:auto 1fr;overflow:hidden}
.reward-product-list>.scroll-list{min-height:0}

@media (max-width:480px){
  :root{--footer-h:42px}
  .site-footer{flex-direction:column;gap:2px;padding:4px 8px;font-size:8px}
  .result-share{margin:6px 0;padding:7px}
  .result-share>p{margin-bottom:5px;font-size:8px}
  .result-share-actions{gap:4px}
  .result-share-actions button{min-height:30px;padding:4px 2px;font-size:7px}
  #share-status{min-height:11px;font-size:7px}
  .affiliate-disclosure{font-size:8px}
}
