
:root{font-family:Arial,Helvetica,sans-serif;color:#263a38;background:#f7f7ef;font-synthesis:none;--green:#b9ef8b;--pet:#91d9b5;--pet-dark:#56a787}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}header{height:86px;border-bottom:1px solid #dfe4d8;display:flex;align-items:center;gap:42px;padding:0 max(5vw,24px)}.brand{font-size:21px;letter-spacing:-1px;font-weight:900;color:inherit;text-decoration:none}.tag{font-size:10px;letter-spacing:1.6px;color:#75837a}.tag b{display:block;margin-top:6px;font-size:9px;color:#39735e}header>button{margin-left:auto}.quiet{background:none;border:0;color:#627269;font-size:12px;padding:8px}.quiet:hover{color:#214d3a;text-decoration:underline}main{max-width:1320px;margin:auto;padding:45px 40px 20px}.intro{display:flex;justify-content:space-between;align-items:end;margin-bottom:34px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#698376}h1{font-size:49px;line-height:1.08;letter-spacing:-2px;margin:16px 0 0;font-weight:750}h1 em{font-family:Georgia,serif;color:#43836a;font-weight:400}.intro>p{font-size:14px;line-height:1.8;color:#758078;margin:0 0 4px}.layout{display:grid;grid-template-columns:1.05fr 1fr;gap:28px}.pet-card,.activities{border:1px solid #dce2d7;border-radius:20px;background:#fffef8;overflow:hidden}.card-top{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;font-size:9px;letter-spacing:1px}.card-top small{display:block;font-size:9px;letter-spacing:0;color:#8a938b;margin:4px 0 0 12px}.dot{display:inline-block;width:6px;height:6px;background:#71aa69;border-radius:50%;margin-right:6px}.habitat{height:290px;position:relative;background:#e7efe0;overflow:hidden;margin:0 14px;border-radius:12px;background-image:radial-gradient(#becfb566 .8px,transparent .8px);background-size:12px 12px}.ground{position:absolute;bottom:-75px;left:-10%;width:120%;height:165px;background:#d4e4be;border-radius:50%}.cloud{position:absolute;background:#f7faed;width:65px;height:18px;border-radius:30px;top:60px;left:32px;opacity:.8}.c2{left:auto;right:30px;top:100px;width:90px}.speech{position:absolute;top:27px;left:50%;transform:translateX(-50%);padding:12px 16px;border-radius:12px;background:#fffdf5;font-size:12px;white-space:nowrap;z-index:2;box-shadow:0 3px 0 #d5dfcb}.creature{position:absolute;left:50%;bottom:61px;width:128px;height:125px;transform:translateX(-50%);z-index:2;animation:bob 3s ease-in-out infinite;filter:drop-shadow(0 8px 0 #abc59466)}.body{position:absolute;inset:14px 0 5px;background:var(--pet);border:3px solid #31594c;border-radius:46% 46% 37% 37%;box-shadow:inset -10px -9px 0 #0000000c}.ears:before,.ears:after{content:'';position:absolute;width:29px;height:44px;background:var(--pet);border:3px solid #31594c;border-radius:65% 65% 0 0;top:0;left:12px;transform:rotate(-20deg)}.ears:after{left:auto;right:12px;transform:rotate(20deg)}.face{position:absolute;top:44px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:center}.face i{height:12px;width:7px;border-radius:5px;background:#29483f}.mouth{width:15px;height:8px;border:2px solid #29483f;border-top:0;border-radius:0 0 15px 15px;margin-top:10px}.cheek{position:absolute;background:#ec9b8d88;width:17px;height:8px;border-radius:50%;top:62px}.left{left:11px}.right{right:11px}.feet:before,.feet:after{content:'';position:absolute;bottom:0;left:12px;width:32px;height:15px;border:3px solid #31594c;border-radius:50%;background:var(--pet)}.feet:after{left:auto;right:12px}.accessory{position:absolute;top:-29px;left:43px;font-size:31px}.flower{position:absolute;bottom:35px;color:#fcfaf0;font-size:33px;z-index:1}.f1{left:45px}.f2{right:65px;bottom:53px;color:#f7d78b;font-size:25px}.habitat-label{position:absolute;bottom:13px;left:18px;font-size:8px;letter-spacing:2px;color:#7b926b;z-index:2}.pet-info{padding:24px 24px 18px;display:flex;justify-content:space-between;align-items:center}h2{margin:0 0 7px;font-size:25px;letter-spacing:-.7px}.pet-info span{font-size:11px;color:#7c877d}.pet-info .mood-pill{background:#edf5df;color:#588347;padding:8px 10px;border-radius:20px;font-size:10px}.needs{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;padding:0 24px 22px}.need label{font-size:10px;display:flex;justify-content:space-between;color:#788277}.bar{height:6px;background:#edf0e6;border-radius:5px;margin-top:8px;overflow:hidden}.bar i{display:block;height:100%;background:#b4cf8d;border-radius:5px}.stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #edf0e6;border-bottom:1px solid #edf0e6;margin:0 24px;padding:16px 0;text-align:center}.stats b{display:block;font-size:18px;margin-bottom:6px}.stats span{font-size:9px;color:#7c877d;text-transform:uppercase;letter-spacing:1px}.pet-note{text-align:center;font-size:10px;color:#91998d;margin:18px}.activities{padding:9px 22px 22px}nav{display:flex;border-bottom:1px solid #e4e8dc;margin-bottom:24px}nav button{flex:1;border:0;background:none;padding:18px 4px;color:#849080;font-size:16px;border-bottom:2px solid transparent}nav span{font-size:12px;margin-left:5px}nav .active{color:#315a46;border-color:#4e7758}#panel h2{font-size:25px}#panel .description{font-size:12px;line-height:1.7;color:#7b857a;margin-bottom:24px}.scan-box{border:1px dashed #b9c8ab;border-radius:13px;background:#f1f5e8;text-align:center;padding:24px 20px}.scan-symbol{font-size:43px;letter-spacing:-4px;color:#638757;line-height:1;margin-bottom:15px}.scan-box h3{font-size:15px;margin:10px}.scan-box p{font-size:11px;color:#7c8876;line-height:1.7}.primary,.secondary{border:0;border-radius:9px;padding:12px 18px;font-size:12px;font-weight:700;background:#c0ed95;color:#304c32}.primary:hover{background:#aada7b}.secondary{background:#edf0e5;color:#60705a}.barcode-row{display:flex;gap:8px;margin-top:17px}.barcode-row input{width:100%;min-width:0}.field,input,select{border:1px solid #dce2d4;background:#fffef8;border-radius:8px;padding:12px;color:#3c5145;font-size:12px}.section-label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#7f8b77;margin:25px 0 12px}.foods{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.food{border:1px solid #e2e7d9;border-radius:12px;padding:13px 5px;text-align:center;background:#fffef9;position:relative}.food:hover{border-color:#93b777;transform:translateY(-2px)}.food .emoji{display:block;font-size:27px;margin-bottom:10px}.food strong{font-size:10px;display:block}.food small{display:block;color:#8b947f;font-size:9px;margin-top:5px}.count{position:absolute;right:7px;top:7px;background:#edf2e5;padding:2px 5px;border-radius:5px;font-size:9px}.hint{font-size:10px;color:#8c9585;line-height:1.6;margin-top:15px}footer{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8b9487;padding:25px 0 5px}footer>div{display:flex;gap:10px;align-items:center}.disclaimer{font-size:9px;color:#a0a796}.training-list{display:grid;gap:10px}.training-card{display:flex;align-items:center;gap:13px;border:1px solid #e1e6d8;border-radius:12px;padding:16px}.training-card .icon{font-size:26px}.training-card h3{font-size:13px;margin:0 0 5px}.training-card p{font-size:10px;color:#818b79;margin:0;line-height:1.5}.training-card button{margin-left:auto;white-space:nowrap}.drill{text-align:center;padding:15px 0}.drill p{font-size:12px;line-height:1.8;color:#71816c}.timing-track{height:38px;background:#e9edde;position:relative;border-radius:8px;overflow:hidden;margin:30px 0}.target{position:absolute;left:38%;width:24%;height:100%;background:#b4df88}.cursor{position:absolute;left:0;width:4px;height:100%;background:#30573c}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.choices button{height:70px;background:#e9efdf;border:1px solid #d5dfc8;border-radius:9px;font-size:24px}.arena{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;padding:10px;background:#e7ecdf;border-radius:12px;margin:15px 0}.tile{aspect-ratio:1;display:flex;justify-content:center;align-items:center;background:#d6e8de;border:1px solid #bed3c6;border-radius:5px;font-size:24px;position:relative}.tile.enemy-side{background:#eeded5;border-color:#ddc6b9}.tile.wall{background:#bfc8b6}.tile small{font-size:8px;position:absolute;bottom:3px}.hp-row{display:flex;justify-content:space-between;gap:20px;font-size:11px}.hp-row>div{flex:1}.hp-row b{display:block;margin-bottom:5px}.battle-log{height:130px;overflow:auto;background:#f2f4eb;border-radius:8px;padding:12px;font-size:11px;line-height:1.8;margin:15px 0}.battle-log p{margin:0 0 5px}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.chip{border:1px solid #dfe5d4;border-radius:9px;padding:13px;margin:8px 0;display:flex;gap:12px;align-items:center}.chip b{font-size:12px}.chip p{font-size:10px;color:#819078;margin:5px 0}.chip input{margin-left:auto}video{width:100%;max-height:190px;border-radius:8px;background:#263a38}dialog{border:1px solid #dce2d4;border-radius:18px;background:#fffef7;color:#263a38;width:min(420px,90vw);padding:28px}dialog::backdrop{background:#253d3580}dialog label{display:block;font-size:11px;margin-top:16px}dialog input,dialog select{display:block;width:100%;margin-top:7px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);opacity:0;background:#294f3e;color:#fff;padding:14px 22px;border-radius:12px;font-size:12px;transition:.25s;z-index:10;max-width:90vw}#toast.show{transform:translateX(-50%);opacity:1}.bounce{animation:celebrate .4s 3}.result{padding:16px;background:#eef4e3;border-radius:10px;margin:15px 0}.result h3{margin:0 0 8px;font-size:18px}.result p{font-size:12px;line-height:1.6;margin:0}@keyframes bob{50%{transform:translateX(-50%) translateY(-6px)}}@keyframes celebrate{50%{transform:translateX(-50%) translateY(-22px) rotate(7deg)}}@media(max-width:850px){main{padding:25px 18px}.layout{grid-template-columns:1fr}.intro>p{display:none}h1{font-size:40px}.tag{display:none}header{height:65px;padding:0 20px}.habitat{height:260px}footer{align-items:start;gap:10px}footer>div{flex-wrap:wrap;justify-content:end;gap:2px}#save-status{width:100%;text-align:right}.activities{min-height:510px}.intro{margin-bottom:25px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Five-screen pocket layout. This file is also concatenated into style.css. */
[hidden]{display:none!important}html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{background:#dae2d3;display:flex;justify-content:center;align-items:center;padding:12px;color:#263a38}button{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #588368;outline-offset:2px}.device{width:min(100%,460px);height:min(var(--app-height,100dvh) - 24px,880px);padding:0;display:flex;flex-direction:column;position:relative;background:#fffef7;border:1px solid #becdb8;border-radius:28px;overflow:hidden;box-shadow:0 20px 70px #263a3818;margin:0}.device-header{height:91px;min-height:91px;padding:16px 22px 12px;border:0;display:flex;align-items:center;gap:8px}.device-header>div{min-width:0;flex:1}.device-header .eyebrow{display:block;font-size:8px;letter-spacing:1.6px;margin:0 0 5px}.name-button{display:block;border:0;background:none;color:inherit;padding:0;max-width:100%;font-size:25px;letter-spacing:-1px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.edit-icon{font-size:15px;color:#84917a}#pet-subtitle{display:block;font-size:10px;color:#7a8873;margin-top:4px}.icon-button{border:1px solid #dce4d3;border-radius:12px;background:#f4f6ed;width:42px;height:42px;min-width:42px;padding:0;color:#61765a;font-size:23px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:#e5edd9}.device-header>button{margin:0}.pet-card{flex:none;border:0;border-radius:0;background:none;display:none}.habitat{height:190px;margin:0 16px;border-radius:17px}.creature{bottom:36px;transform:translateX(-50%) scale(.85);transform-origin:bottom center;animation:pocket-bob 3s ease-in-out infinite}.speech{top:14px;max-width:92%;font-size:11px;white-space:normal;text-align:center;padding:9px 12px;width:max-content}.ground{bottom:-90px}.flower{bottom:20px}.f2{bottom:25px}.habitat-label{font-size:7px;bottom:10px}.cloud{top:45px}.c2{top:74px}body[data-screen=feed] .pet-card{display:block}.activities{flex:1;min-height:0;border:0;border-radius:0;padding:20px 22px 12px;background:none;overflow:hidden;display:flex;flex-direction:column}#panel{flex:1;min-height:0;display:flex;flex-direction:column}#panel>.eyebrow{margin:0 0 8px}.screen-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;margin-bottom:12px}.screen-heading .eyebrow{font-size:8px;letter-spacing:1.5px;margin:0 0 6px}#panel h2,#stats-screen h2{font-size:24px;letter-spacing:-.8px;margin:0}#panel .description{margin:8px 0 12px;font-size:11px;line-height:1.5}.screen-heading>.secondary{font-size:10px;padding:11px;white-space:nowrap}.snack-card{display:flex;align-items:center;justify-content:center;gap:22px;flex:1;min-height:65px;background:#f1f4e8;border:1px solid #e2e8d7;border-radius:16px;padding:12px}.food-art{font-size:57px;line-height:1}.snack-card .eyebrow{font-size:8px;letter-spacing:1.1px}.snack-card h3{font-size:18px;margin:8px 0}.snack-card p{font-size:11px;color:#7a8970;margin:0}.pager{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;flex:none}.pager>span{font-size:9px;letter-spacing:2px;color:#829075}.pager .icon-button{height:36px;width:44px;font-size:26px}.wide{width:100%;min-height:44px;flex:none}.primary,.secondary{min-height:42px;border-radius:11px}.primary{background:#bfea92}.energy-tag{font-size:10px;color:#617b4d;background:#edf3e2;border-radius:30px;padding:10px;white-space:nowrap}.drill-card,.collection-card{flex:1;min-height:0;background:#f0f4e6;border:1px solid #dfe7d2;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px}.drill-art,.chip-art{font-size:72px;color:#71925c;line-height:1.2;margin-bottom:20px}.drill-card h3,.collection-card h3{font-size:24px;letter-spacing:-.6px;margin:6px 0 10px}.drill-card p,.collection-card p{font-size:12px;line-height:1.6;max-width:230px;margin:0 0 18px;color:#78896c}.reward-label{border-radius:15px;font-size:10px;padding:8px 12px;background:#e0eccc;color:#54733c}.split-actions{display:flex;gap:10px}.split-actions button{flex:1;font-size:11px;padding:12px 8px}.collection-card .eyebrow{font-size:8px}.collection-card.locked{background:#efefe9}.collection-card.locked .chip-art{opacity:.35}.collection-hint{text-align:center;margin:10px 0 0}.drilling .activities{padding-top:18px}.drill{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}.drill>p{font-size:13px}.drill>.primary{align-self:center;min-width:160px}.training-list .secondary{font-size:12px;white-space:normal}.choices{margin:20px 0}.choices button{font-size:15px;min-height:62px;height:auto}.actions{flex:none;margin-top:12px;gap:7px}.actions button{padding:10px 11px;font-size:11px;flex:1}.battle-description{flex:none}.arena{gap:4px;padding:8px;margin:14px 0}.tile{font-size:27px}.hp-row{margin-top:14px;gap:16px;font-size:10px}.hp-row b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px}.battle-log{height:auto;min-height:54px;overflow:hidden;display:flex;align-items:center;margin:4px 0 8px;font-size:11px;line-height:1.5;padding:11px}.battle-log p{margin:0}#fight-view{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}.battle-hint{font-size:9px;text-align:center;line-height:1.4;margin:10px 0 0}.result{padding:12px;margin:8px 0}.result h3{font-size:18px}.result p{font-size:11px}.battle-description+label{display:flex;justify-content:space-between;align-items:center;gap:6px}.battle-description+label select{min-width:0;width:75%;font-size:11px;padding:10px}nav{margin:0;border:0;border-top:1px solid #e0e6d7;flex:none;background:#f7f9ef;padding:7px 10px max(8px,env(safe-area-inset-bottom));gap:4px;display:flex}nav button{border:0;border-radius:13px;padding:8px 2px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#8b987f;font-size:20px;min-width:0}nav button span{margin:0;font-size:9px;font-weight:700}nav button .nav-icon{font-size:21px;font-weight:400;line-height:1}nav button.active{background:#e5efda;color:#3f6343}#stats-screen{display:flex;flex-direction:column;flex:1;min-height:0}#stats-screen>.eyebrow{margin:0 0 9px}#stats-screen .mood-pill{align-self:start;background:#edf4df;color:#66844f;font-size:10px;padding:8px 12px;border-radius:20px;margin:15px 0}#level-progress{background:#f2f5e9;border-radius:12px;padding:16px;margin:0 0 10px}.level-line{display:flex;justify-content:space-between;font-size:12px}.level-line span{font-size:10px;color:#839176}.needs{padding:14px 0;display:flex;flex-direction:column;gap:18px}.need label{font-size:12px}.need .bar{height:8px}.stats{margin:16px 0;grid-template-columns:repeat(2,1fr);gap:0;padding:0;border:0}.stats>div{padding:16px;background:#f3f5ec;border:2px solid #fffef7;border-radius:12px}.stats b{font-size:25px}.stats span{font-size:9px}.scrapbook{display:flex;justify-content:space-around;gap:7px;background:#ecf2e2;border-radius:12px;padding:14px 8px;font-size:9px;color:#7e8e71;text-align:center}.scrapbook b{display:block;color:#496941;font-size:16px;margin-bottom:5px}#scrapbook{margin-top:auto}#stats-screen>.hint{text-align:center;font-size:9px;margin-bottom:0}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialog-top .eyebrow{font-size:9px;margin:0}.dialog-top .icon-button{border:0;background:none;font-size:26px}dialog{max-height:calc(var(--app-height,100dvh) - 24px);padding:20px;border-radius:22px;overflow:hidden;margin:auto;width:min(420px,calc(100vw - 24px))}dialog h2{font-size:25px;margin:10px 0 16px}dialog .hint{font-size:11px}dialog label{margin-top:10px}dialog input,dialog select{padding:10px;margin-top:5px}dialog .actions{margin-top:16px}dialog .actions button{font-size:12px}.settings-list{display:grid;gap:10px}#barcode-form label{font-size:11px;display:block;margin:18px 0 0}.barcode-row{margin-top:5px}.barcode-row input{margin:0}.scan-box{padding:18px}.scan-symbol{font-size:35px;margin-bottom:12px}#scan-dialog .description{font-size:12px;color:#819174;line-height:1.6}video{max-height:150px;margin-top:10px}#toast{bottom:95px;font-size:12px;line-height:1.5;width:max-content;max-width:min(90vw,400px);text-align:center;box-shadow:0 5px 30px #203c3820}.bounce{animation:celebrate .4s 3}
@keyframes pocket-bob{50%{transform:translateX(-50%) scale(.85) translateY(-5px)}}
@media(max-width:520px){body{padding:0;background:#fffef7}.device{width:100%;height:var(--app-height,100dvh);max-height:none;border:0;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top)}.device-header{padding-left:20px;padding-right:20px}.activities{padding-left:20px;padding-right:20px}}
@media(max-height:740px){.device-header{height:80px;min-height:80px;padding-top:10px;padding-bottom:8px}.habitat{height:150px}.creature{transform:translateX(-50%) scale(.68);animation:none;bottom:22px}.speech{top:10px;padding:7px 11px;font-size:10px}.activities{padding-top:14px;padding-bottom:10px}.screen-heading{margin-bottom:10px}#panel h2,#stats-screen h2{font-size:21px}.food-art{font-size:43px}.snack-card h3{font-size:16px;margin:5px 0}.snack-card{gap:16px;padding:10px}.pager{margin:8px 0}.drill-art,.chip-art{font-size:58px;margin-bottom:12px}.drill-card h3,.collection-card h3{font-size:22px}.stats{margin:10px 0}.stats>div{padding:11px}.needs{gap:13px;padding:10px 0}.battle-description{display:none}.arena{margin:10px 0}.hp-row{margin-top:10px}nav{padding-top:5px;padding-bottom:max(5px,env(safe-area-inset-bottom))}nav button{min-height:51px;padding:6px 2px}.battle-hint{margin-top:6px}}
@media(max-height:610px){.device-header{height:68px;min-height:68px}.device-header .eyebrow{font-size:7px;margin-bottom:2px}.name-button{font-size:21px}#pet-subtitle{font-size:9px}.habitat{height:115px}.creature{transform:translateX(-50%) scale(.51);bottom:13px}.speech{left:auto;right:10px;transform:none;top:13px;font-size:9px;max-width:44%}.habitat-label,.flower,.cloud{display:none}.screen-heading .eyebrow{display:none}.activities{padding-top:10px;padding-bottom:8px}.snack-card{min-height:55px}.food-art{font-size:34px}.primary,.secondary{min-height:39px}.wide{min-height:40px}.pager .icon-button{height:32px}.drill-card,.collection-card{padding:10px}.drill-art,.chip-art{font-size:38px;margin-bottom:5px}.drill-card h3,.collection-card h3{font-size:19px;margin:4px 0 8px}.drill-card p,.collection-card p{font-size:11px;margin-bottom:8px}.reward-label{padding:6px 10px}.arena{width:min(100%,330px);margin:6px auto}.tile{font-size:21px}.hp-row{margin-top:6px}.battle-log{min-height:42px;padding:8px;font-size:10px}.battle-hint{display:none}.result{padding:8px;margin:4px 0}.result h3{font-size:15px;margin-bottom:4px}.result p{font-size:10px}.actions{margin-top:6px}#stats-screen .mood-pill{margin:8px 0;padding:6px 10px}#level-progress{padding:10px;margin-bottom:5px}.needs{gap:9px;padding:7px 0}.need label{font-size:10px}.need .bar{height:5px;margin-top:5px}.stats{margin:7px 0}.stats>div{padding:8px}.stats b{font-size:19px;margin-bottom:3px}.scrapbook{padding:9px 6px}.scrapbook b{font-size:13px}.hint{font-size:9px}dialog{padding:14px}dialog h2{font-size:21px;margin:4px 0 10px}dialog label{margin-top:7px}dialog input,dialog select{padding:8px}dialog .hint{font-size:10px;margin-top:10px}.settings-list{gap:7px}.scan-box{padding:10px}.scan-symbol{font-size:25px}.dialog-top .icon-button{height:30px}video{max-height:100px}.drill>p{font-size:11px;margin:8px 0}.timing-track{margin:18px 0}.choices{margin:12px 0}}
@media(max-height:460px){.device-header{height:58px;min-height:58px}.pet-card{display:none!important}.activities{padding-top:8px}.drill-card,.collection-card{padding:6px}.drill-art,.chip-art{font-size:26px;margin:0}.drill-card h3,.collection-card h3{font-size:16px;margin:3px 0}.collection-hint{display:none}.stats{grid-template-columns:repeat(4,1fr)}.stats>div{padding:7px 2px}.stats b{font-size:17px}.stats span{font-size:7px}.scrapbook{padding:6px}#stats-screen>.hint{display:none}.needs{flex-direction:row;gap:10px}.need{flex:1}.arena{width:230px}.tile{font-size:17px}.battle-description+label select{padding:6px}.hp-row{margin-top:3px}.battle-log{min-height:32px;font-size:9px;padding:5px}.result p{font-size:9px}.result h3{font-size:13px}.actions button{min-height:32px;padding:7px}.screen-heading{margin-bottom:6px}#panel h2,#stats-screen h2{font-size:18px}.energy-tag{padding:7px}.drill-card p,.collection-card p{font-size:10px;margin-bottom:5px}.reward-label{padding:4px 8px}.pager{margin:5px 0}.pager .icon-button{height:28px}.wide,.split-actions button{min-height:35px;padding:8px}.drill .choices button{min-height:45px}.drill #hop{padding:12px!important}.drilling #panel>h2{font-size:19px}.drilling #panel>.eyebrow{display:none}nav button{min-height:45px}nav button .nav-icon{font-size:18px}nav button span{font-size:8px}#toast{bottom:65px}}

#toast{pointer-events:none}
#toast{pointer-events:none}
@media(max-height:460px){body[data-screen=battle] #panel>.eyebrow{display:none}body[data-screen=battle] .arena{width:190px}.tile small{font-size:6px}}
@media(max-height:520px){#custom-dialog:has(#name-input:focus) label:not(:has(#name-input)){display:none}#scan-dialog:has(#barcode:focus) .scan-box{display:none}#settings-dialog .hint{font-size:9px;line-height:1.4;margin:8px 0}}
@media(max-height:460px){body[data-screen=battle] .arena{margin:3px auto}body[data-screen=battle] .battle-log{margin:2px 0;min-height:28px}body[data-screen=battle] .result{margin:2px 0;padding:5px}}
/* PIXEL / 04 — one LCD surface, with controls inside the pet screen. */
:root{font-family:'Courier New',monospace;color:#263d31;background:#242e2c}body{background:#242e2c;background-image:linear-gradient(45deg,#2a353222 25%,transparent 25%,transparent 75%,#2a353222 75%);background-size:8px 8px}.device{background:#424e48;border:3px solid #1d2724;box-shadow:inset 3px 3px #657067,inset -4px -4px #303b35,0 20px 65px #0005;border-radius:28px;padding:0 14px;width:min(100%,460px)}.device-header{padding:15px 9px 12px;color:#e0e5cf;min-height:89px;height:89px}.device-header .eyebrow{color:#a3b293;font-size:8px;letter-spacing:1.1px}.name-button{font:700 23px 'Courier New',monospace;letter-spacing:-1px;color:#e5e9d3}.edit-icon{color:#a7b89d}#pet-subtitle{color:#b2c09f;font-size:10px}.device-header .icon-button{background:#344039;border-color:#64705e;color:#c4d29f;border-radius:5px}.lcd{background:#bfcd94;border:5px solid #24332b;border-radius:8px;box-shadow:inset 3px 3px #7c9161;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;position:relative;background-image:radial-gradient(#82945b33 .6px,transparent .6px);background-size:4px 4px}.lcd::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(transparent 0 3px,#455b3308 3px 4px);z-index:3}.device-bottom{height:34px;min-height:34px;display:flex;align-items:center;gap:5px;color:#a4b19b;font-size:7px;letter-spacing:.6px;padding:0 7px}.device-bottom span:first-child{margin-right:auto}.device-bottom span:last-child{margin-left:auto}.device-bottom i{display:block;background:#25362b;height:3px;width:9px;transform:rotate(-25deg)}.pet-card{background:none}.habitat{height:165px;border-radius:0;background:none;background-image:none;margin:0 12px;border-bottom:2px dotted #8c9e69}.ground{bottom:14px;left:8%;height:3px;width:84%;background:#849965;border-radius:0}.cloud,.flower{display:none}.speech{font-size:9px;font-weight:700;top:11px;border:0;box-shadow:none;background:none;color:#546c43;letter-spacing:.3px;padding:3px;max-width:96%;white-space:nowrap}.creature{width:132px;height:132px;left:50%;bottom:14px;padding:0;background:none;border:0;filter:drop-shadow(0 3px #5b784733);transform:translateX(-50%);animation:pixel-idle 2s steps(2,end) infinite;border-radius:0;cursor:pointer}.pixel-monster{width:100%;height:100%;display:block;image-rendering:pixelated}#pixel-sprite{display:block;width:100%;height:100%}.creature::after{content:'';position:absolute;bottom:0;left:32%;width:36%;height:3px;background:#829760;z-index:-1}#evolution-label{position:absolute;bottom:3px;right:3px;font-size:7px;color:#617b4d;letter-spacing:.5px}.habitat-label{left:2px;bottom:3px;font-size:7px;color:#617b4d}.activities{padding:14px 15px 10px;background:none}.eyebrow{color:#627a4a;letter-spacing:1px}.screen-heading .eyebrow{font-size:8px}.screen-heading h2,#panel h2,#stats-screen h2{font-family:'Courier New',monospace;font-size:20px;letter-spacing:-.9px;color:#2d482f}.screen-heading{margin-bottom:10px}.primary,.secondary,.icon-button,select,input{font-family:inherit;border-radius:3px;font-weight:700}.primary,.secondary{background:#354f34;color:#e1eac1;border:2px solid #354f34;box-shadow:2px 2px #8c9f6c;min-height:40px}.primary:hover{background:#49663d}.secondary{background:#aabb7f;color:#354f34;border-color:#718956}.secondary:hover{background:#9daf73}button:disabled{opacity:.45}.snack-card,.drill-card,.collection-card,.stats>div,#level-progress,.scrapbook,.result{background:#b3c587;border:1px solid #8da46c;border-radius:3px;box-shadow:inset 2px 2px #cbd8a2}.snack-card{gap:15px}.snack-card h3{font-family:inherit;font-size:16px}.snack-card .eyebrow{color:#637a48}.snack-card p,.drill-card p,.collection-card p,.hint{color:#657d4b;font-size:10px}.food-art{font-size:43px;filter:grayscale(.6) sepia(.3)}.pager{margin:9px 0}.pager .icon-button{background:#aabb7f;border:1px solid #79905b;box-shadow:2px 2px #93a670;border-radius:2px;color:#3a5738;font-family:inherit;font-size:22px;height:32px}.pager>span{color:#627b48;font-size:8px}.drill-art,.chip-art{color:#536e3f}.drill-card h3,.collection-card h3{font-family:inherit;font-size:23px}.reward-label,.energy-tag{background:#9db574;color:#3d5b34;border-radius:2px;border:1px solid #819b5d;font-size:9px}.drill-card p{max-width:240px}.collection-card.locked{background:#a6b88a}.collection-card .eyebrow{color:#536d3e}.battle-description+label{font-size:10px!important;color:#516b3c}select,input{background:#d0dda8;border-color:#81965f;color:#354d31}.arena{background:#7e9662;border-radius:2px;border:2px solid #4d6c42;gap:3px}.tile{background:#b6cb8f;border-color:#8ba76a;border-radius:0;font-size:20px}.tile.enemy-side{background:#a7bd82;border-color:#7f9c60}.tile.wall{background:#678652;color:#d0dfa8}.tile .pixel-monster{width:90%;height:90%}.battle-log{background:#a9bd80;color:#425e36;border:1px solid #8aa36a;border-radius:2px;font-size:10px}.hp-row{color:#3c5933}.bar{background:#97ac70;border-radius:0}.bar i{background:#4c6f40;border-radius:0}.result h3{font-family:inherit;color:#354f30}.result p{color:#5c7544}.actions button{font-size:10px;padding:9px}.battle-hint{font-size:8px}.drill .choices button{background:#a5bb7d;border:2px solid #75915a;border-radius:2px;font-family:inherit;color:#38532f}.timing-track{border-radius:0;background:#94a968;border:1px solid #6b854e}.target{background:#d4e4a9}.cursor{background:#334f31}nav{background:#a8bc7c;border-top:2px solid #718c53;padding:5px 5px max(5px,env(safe-area-inset-bottom));gap:2px}nav button{background:none;color:#647e48;border:1px solid transparent;border-radius:2px;min-height:52px;gap:4px}nav button.active{background:#354f34;color:#d6e7ae;border:1px solid #30482e;box-shadow:inset 2px 2px #253c25}nav button span{font-size:8px;letter-spacing:.5px;text-transform:uppercase}nav .nav-icon{width:20px;height:20px}nav .nav-icon svg{width:20px;height:20px;display:block;fill:currentColor;shape-rendering:crispEdges}#stats-screen .mood-pill{background:#a1b878;color:#47653a;border:1px solid #849d61;border-radius:2px}.need label{color:#506b3d}.stats b{font-family:inherit;color:#354e31}.stats span{color:#5c7545}.scrapbook{font-size:8px}.scrapbook b{color:#3c5a33}.evolution-progress{font-size:9px;line-height:1.5;color:#5c7843;margin:0 0 4px}.level-line{color:#3f5e35}.level-line span{color:#617b49}dialog{background:#c3d29a;color:#314c30;border:5px solid #354b35;border-radius:5px;box-shadow:4px 4px #0003;font-family:inherit}dialog h2{font-family:inherit;font-size:23px;letter-spacing:-1px}dialog .eyebrow{font-size:8px}dialog .description{font-size:10px;line-height:1.6;color:#5f7946}dialog label{color:#526e40}dialog .icon-button{color:#405c34}.scan-box{background:#b0c485;border-color:#789357;border-radius:2px}.scan-symbol{color:#5d7a44}#toast{background:#304a31;color:#dce9b9;border:2px solid #718d52;border-radius:3px;font-family:inherit;font-size:11px;bottom:105px}.starter-choice{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:2px solid #839d61;background:#b2c788;color:#385333;border-radius:2px;padding:7px 10px;margin:9px 0;font-family:inherit}.starter-choice:hover{background:#9fb675}.starter-choice>.pixel-monster{height:67px;width:67px;flex:none}.starter-choice b{display:block;font-size:15px}.starter-choice small{display:block;font-size:9px;line-height:1.5;margin-top:5px}.starter-choice>span:last-child{margin-left:auto;font-size:24px}.bounce{animation:pixel-hop .35s steps(2,end) 3}@keyframes pixel-idle{50%{transform:translateX(-50%) translateY(-4px)}}@keyframes pixel-hop{50%{transform:translateX(-50%) translateY(-15px)}}
@media(max-width:520px){body{padding:0;background:#424e48}.device{border:0;border-radius:0;padding:env(safe-area-inset-top) 10px 0;height:var(--app-height,100dvh)}.device-header{padding-left:8px;padding-right:8px}.activities{padding-left:13px;padding-right:13px}.lcd{border-width:4px}}
@media(max-height:740px){.device-header{height:77px;min-height:77px;padding-top:9px;padding-bottom:8px}.device-bottom{height:25px;min-height:25px}.habitat{height:135px}.creature{width:106px;height:106px;bottom:12px;transform:translateX(-50%)}.speech{top:5px;font-size:8px}#panel h2,#stats-screen h2{font-size:18px}.screen-heading{margin-bottom:8px}.activities{padding-top:11px;padding-bottom:8px}.food-art{font-size:35px}.snack-card h3{font-size:14px}.screen-heading .secondary{padding:8px;font-size:9px}.stats>div{padding:9px}.stats{margin:8px 0}.needs{gap:11px}.drill-art,.chip-art{font-size:48px;margin-bottom:8px}}
@media(max-height:610px){.device-header{height:64px;min-height:64px}.name-button{font-size:20px}.device-header .eyebrow{font-size:7px}.device-bottom{height:21px;min-height:21px;font-size:6px}.habitat{height:103px}.creature{width:80px;height:80px;bottom:9px}.speech{left:50%;right:auto;transform:translateX(-50%);max-width:96%;top:3px;font-size:7px;white-space:nowrap}.habitat-label{display:none}.activities{padding-top:9px}.snack-card{padding:7px;gap:12px;min-height:50px}.food-art{font-size:30px}.pager{margin:6px 0}.pager .icon-button{height:28px}.primary,.secondary{min-height:35px}.wide{min-height:35px}.screen-heading h2,#panel h2,#stats-screen h2{font-size:17px}.drill-art,.chip-art{font-size:33px;margin:0 0 5px}.drill-card h3,.collection-card h3{font-size:18px}.drill-card p,.collection-card p{font-size:10px;margin-bottom:8px}.collection-hint{font-size:8px}.stats>div{padding:7px}.stats b{font-size:19px}.stats span{font-size:8px}.needs{gap:8px}.scrapbook{padding:8px 5px}.evolution-progress{font-size:8px}.battle-log{font-size:9px}.arena{width:min(100%,300px)}nav button{min-height:46px;padding:5px 1px}nav .nav-icon,nav .nav-icon svg{width:18px;height:18px}nav button span{font-size:7px}.starter-choice>.pixel-monster{width:52px;height:52px}.starter-choice{margin:6px 0;padding:5px 8px}#starter-dialog .hint{font-size:9px}}
@media(max-height:460px){.device-header{min-height:49px;height:49px;padding-top:5px;padding-bottom:5px}.device-header .eyebrow{font-size:6px;margin-bottom:0}.name-button{font-size:18px}#pet-subtitle{font-size:8px}.device-header .icon-button{height:31px;min-width:31px;width:31px;font-size:18px}.device-bottom{min-height:17px;height:17px}.activities{padding-top:7px;padding-bottom:6px}.lcd{border-width:3px}nav button{min-height:39px}nav{padding-top:3px;padding-bottom:3px}.battle-description+label select{font-size:9px;padding:4px}.hp-row{font-size:8px}.battle-log{font-size:8px;min-height:23px!important}body[data-screen=battle] .arena{width:155px!important;margin:2px auto!important}.actions button{font-size:9px;padding:5px;min-height:28px}.result h3{font-size:12px}.result p{font-size:8px}#stats-screen .mood-pill{font-size:8px;padding:4px 8px;margin:5px 0}#level-progress{padding:7px;margin-bottom:3px}.evolution-progress{font-size:7px;line-height:1.2}.stats>div{padding:5px 2px}.stats b{font-size:15px}.stats span{font-size:6px}.scrapbook{padding:5px}.needs{padding:5px 0}.level-line{font-size:10px}.level-line span{font-size:8px}.starter-choice>.pixel-monster{width:39px;height:39px}#starter-dialog h2{font-size:19px;margin:3px 0 7px}#starter-dialog .description{font-size:8px;margin:5px 0}.starter-choice b{font-size:12px}.starter-choice small{font-size:8px;margin-top:2px}#starter-dialog .hint{font-size:8px;line-height:1.3;margin:5px 0}}
@media(max-height:610px){.habitat{height:73px}.creature{width:57px;height:57px;bottom:8px}.speech{font-size:6px;top:1px}#evolution-label{font-size:6px}.screen-heading h2{font-size:15px!important}}
/* PIXEL / 05 — expressive care and readable practice fights. */
.creature[data-action=eat]{animation:pet-munch .24s steps(2,end) 7}.creature[data-action=rest]{animation:pet-snooze 1s steps(2,end) 3}.creature[data-action=rest]::before{content:'Z z';position:absolute;right:-15px;top:9px;font-size:16px;color:#4c6b3c;animation:sleep-z 1s steps(3,end) infinite}.creature[data-action=happy],.creature[data-action=win],.creature[data-action=training]{animation:pet-cheer .35s steps(2,end) 5}.creature[data-action=lose]{animation:pet-recover .7s steps(3,end) 2}.creature[data-action=eat]::before{content:'▪ ▪';position:absolute;left:-19px;top:65%;font-size:20px;color:#6d7d40;animation:snack-bytes .5s steps(3,end) 3}.practice-avatar{display:block;width:85px;height:85px;font-size:0;animation:training-hop .9s steps(2,end) infinite}.training-companion{position:absolute;right:0;top:8px;width:52px;height:52px;pointer-events:none;animation:training-hop .6s steps(2,end) infinite}.drill{position:relative}.training-result{position:relative}.training-result h3{padding-right:35px}.reward-pet{position:absolute;right:0;top:-35px;width:55px;height:55px;animation:training-hop .4s steps(2,end) 5}.battle-heading{flex:none}.battle-heading .eyebrow{font-size:8px;margin:0 0 5px}.opponent-picker{display:flex;align-items:center;gap:6px;flex:none;margin:9px 0;padding:5px;background:#adbf84;border:1px solid #879e65;border-radius:2px}.opponent-picker>.icon-button{min-width:29px;width:29px;height:35px;border:0;border-radius:0;background:#9eb574;font-size:23px}.opponent-picker>.icon-button:disabled{opacity:.3}.opponent-mini{width:53px;height:53px;display:block;flex:none}#opponent-info{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0}#opponent-info b{display:block;font-size:13px;line-height:1.6}#opponent-info small{display:block;font-size:8px;color:#607c45;line-height:1.6}.strategy-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;flex:none;color:#526b3c}.strategy-label select{width:75%;padding:8px;font-size:10px;min-width:0}#fight-view{justify-content:center}.arena-wrap{width:min(100%,354px);aspect-ratio:2/1;position:relative;container-type:size;flex:none;margin:7px auto}.arena-wrap .arena{width:100%!important;height:100%;margin:0!important;grid-template-rows:repeat(3,1fr);padding:5px;gap:3px}.arena .tile{aspect-ratio:auto;min-height:0;min-width:0;overflow:visible}.arena-monster{display:block;width:90%;height:90%;position:relative;z-index:1;transform-origin:center bottom}.arena-monster .pixel-monster{width:100%;height:100%}.arena-monster.attack-right{animation:attack-right .45s steps(3,end)}.arena-monster.attack-left{animation:attack-left .45s steps(3,end)}.arena-monster.hurt{animation:pet-hit .5s steps(2,end)}.arena-monster.moving{animation:training-hop .4s steps(2,end)}.arena-monster.guarding{animation:guard-brace .6s steps(2,end)}.arena-monster.confused{animation:pet-confused .5s steps(3,end)}.arena-monster.victorious{animation:training-hop .4s steps(2,end) infinite}.arena-monster.defeated{opacity:.55;transform:rotate(-18deg) translateY(3px)}.shield-ring{position:absolute;inset:9%;border:2px solid #ebf8bd;outline:1px solid #4c784b;z-index:2;pointer-events:none}.guarding+.shield-ring{animation:shield-pop .6s steps(3,end)}.damage-number{position:absolute;top:-9px;left:50%;z-index:5;white-space:nowrap;padding:2px 3px;background:#e2eab8;border:1px solid #405d32;color:#263e28;font-size:12px;font-weight:bold;animation:damage-float .85s steps(4,end) both;pointer-events:none}.block-label{position:absolute;bottom:0;left:50%;transform:translateX(-50%);z-index:6;background:#3f6340;color:#e2eab8;font-size:6px;white-space:nowrap;padding:2px}.guard-mark,.lapse-mark{position:absolute;top:-5px;left:50%;transform:translateX(-50%);z-index:5;color:#e3eebc;background:#425f35;font-size:7px;padding:2px;pointer-events:none}.lapse-mark{font-size:12px;background:#a4b77c;color:#334a2f;animation:pet-confused .5s steps(2,end)}.attack-trail{position:absolute;left:var(--from-x);top:var(--from-y);width:7px;height:7px;background:#f0f7c2;outline:1px solid #567440;z-index:4;pointer-events:none;animation:shot-flight .45s steps(5,end) both}.chip-trail{width:10px;height:10px;box-shadow:0 0 0 3px #c7dc8c}.battle-status{display:flex;justify-content:space-between;gap:8px;color:#5b7741;font-size:7px;flex:none;margin:3px 0 5px;min-width:0}.battle-status span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}.battle-log{flex:none;height:47px;min-height:47px;line-height:1.5;font-size:10px;margin:3px 0}.hp-row{flex:none;margin-top:6px;gap:12px}.hp-row b{font-size:9px;display:flex;justify-content:space-between;gap:4px;max-width:none}.hp-row b span{font-weight:400;white-space:nowrap}.hp-row .bar i{transition:width .35s steps(5,end)}.hp-damaged .bar{animation:health-flash .5s steps(2,end)}.battle-result{flex:none;margin:5px 0;padding:8px 10px}.battle-result h3{font-size:15px;margin:0 0 4px}.battle-result p{font-size:9px}.battle-result+.actions{margin-top:5px}
@keyframes pet-munch{50%{transform:translateX(-50%) scale(1.08,.92) rotate(-3deg)}}@keyframes pet-snooze{50%{transform:translateX(-50%) translateY(5px) scale(1.06,.85)}}@keyframes sleep-z{to{transform:translate(6px,-14px);opacity:.2}}@keyframes snack-bytes{to{transform:translate(35px,-8px);opacity:0}}@keyframes pet-cheer{50%{transform:translateX(-50%) translateY(-12px) rotate(5deg)}}@keyframes pet-recover{30%{transform:translateX(-50%) translateY(4px) rotate(-5deg)}70%{transform:translateX(-50%) translateY(-3px) rotate(4deg)}}@keyframes training-hop{50%{transform:translateY(-5px)}}@keyframes attack-right{50%{transform:translateX(11px) rotate(8deg)}}@keyframes attack-left{50%{transform:translateX(-11px) rotate(-8deg)}}@keyframes pet-hit{25%,75%{filter:brightness(2);transform:translateX(3px)}50%{transform:translateX(-3px)}}@keyframes guard-brace{50%{transform:scale(.9,1.05)}}@keyframes shield-pop{50%{transform:scale(1.12);opacity:.5}}@keyframes pet-confused{25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}@keyframes damage-float{0%{transform:translate(-50%,6px);opacity:0}20%{opacity:1}100%{transform:translate(-50%,-13px);opacity:0}}@keyframes shot-flight{0%{transform:translate(-50%,-50%);opacity:1}90%{transform:translate(calc(var(--travel-x) - 50%),calc(var(--travel-y) - 50%));opacity:1}100%{transform:translate(calc(var(--travel-x) - 50%),calc(var(--travel-y) - 50%));opacity:0}}@keyframes health-flash{50%{background:#e3eab4}}
@media(max-height:740px){.battle-heading h2{font-size:18px!important}.opponent-picker{margin:6px 0;padding:3px}.opponent-mini{height:43px;width:43px}.arena-wrap{width:min(100%,300px);margin:5px auto}.battle-log{height:42px;min-height:42px;font-size:9px}.practice-avatar{width:65px;height:65px}.battle-status{font-size:6px;margin:2px 0 3px}}
@media(max-height:610px){.battle-heading .eyebrow{display:none}.opponent-picker{margin:5px 0}.opponent-mini{width:35px;height:35px}#opponent-info b{font-size:11px}#opponent-info small{font-size:7px}.strategy-label{font-size:8px}.strategy-label select{padding:6px;font-size:9px}.arena-wrap{width:min(100%,250px);margin:4px auto}.battle-log{height:37px;min-height:37px;font-size:8px;padding:6px}.hp-row b{font-size:8px}.battle-status{margin:1px 0 2px}.battle-result{padding:6px;margin:3px 0}.battle-result h3{font-size:13px}.battle-result p{font-size:8px}.practice-avatar{width:46px;height:46px}.training-companion{width:37px;height:37px;top:2px}.reward-pet{width:40px;height:40px;top:-23px}}
@media(max-height:460px){.battle-heading{display:none}.opponent-picker{margin:0 0 3px;padding:1px}.opponent-mini{width:26px;height:26px}#opponent-info b{font-size:10px;line-height:1.3}#opponent-info small{font-size:6px;line-height:1.3}.opponent-picker>.icon-button{width:23px;min-width:23px;height:27px;font-size:18px}.strategy-label select{font-size:8px;padding:3px}.strategy-label{font-size:7px}.arena-wrap{width:144px;aspect-ratio:2/1;margin:2px auto}.hp-row{margin-top:3px}.hp-row b{font-size:7px;margin-bottom:3px}.battle-status{font-size:6px}.battle-log{height:24px;min-height:24px!important;font-size:7px;padding:3px}.battle-result{padding:3px 6px;margin:2px 0}.battle-result h3{font-size:11px;margin:0 0 2px}.battle-result p{font-size:7px}.arena-wrap .arena{padding:3px;gap:2px}.damage-number{font-size:8px;top:-4px}.block-label{font-size:5px;padding:1px}.guard-mark{font-size:5px}.lapse-mark{font-size:8px}.practice-avatar{width:30px;height:30px}.training-companion{display:none}.reward-pet{width:29px;height:29px;top:-15px}.battle-status span:last-child{max-width:70%}}
@media(prefers-reduced-motion:reduce){.damage-number{animation:none;transform:translateX(-50%);opacity:1}.attack-trail{display:none}.arena-monster.victorious{animation:none}.hp-row .bar i{transition:none}}
body[data-screen=battle] .arena-wrap .arena{width:100%!important}.practice-avatar[data-action=rest]{animation:training-snooze 1s steps(2,end) 3;position:relative}.practice-avatar[data-action=rest]::after{content:'Z z';position:absolute;right:-13px;top:0;font-size:12px;color:#526f3b;animation:sleep-z 1s steps(3,end) infinite}@keyframes training-snooze{50%{transform:translateY(4px) scale(1.05,.87)}}
/* Balance / 06: keep the evolution checklist visible without scrolling. */
#stats-screen .needs{flex-direction:row;gap:10px;padding:12px 0}#stats-screen .need{flex:1;min-width:0}#stats-screen .need label{font-size:10px}#stats-screen .need .bar{height:7px}#stats-screen>.hint{display:none}#stats-screen .stats span{letter-spacing:.4px}
@media(max-height:740px){#stats-screen h2{font-size:18px}#stats-screen .mood-pill{margin:9px 0;padding:6px 10px}#stats-screen .stats{margin:9px 0}#stats-screen .stats>div{padding:10px}#stats-screen .scrapbook{padding:10px 5px}}
@media(max-height:610px){#stats-screen h2{font-size:16px}#stats-screen>.eyebrow{font-size:8px;margin-bottom:6px}#stats-screen .mood-pill{margin:7px 0;padding:5px 8px;font-size:9px}#stats-screen #level-progress{padding:9px}#stats-screen .needs{padding:8px 0}#stats-screen .need label{font-size:8px}#stats-screen .need .bar{height:5px;margin-top:6px}#stats-screen .stats{margin:7px 0}#stats-screen .stats>div{padding:8px}#stats-screen .stats b{font-size:20px}#stats-screen .stats span{font-size:8px}#stats-screen .scrapbook{padding:8px 5px}#stats-screen .scrapbook b{font-size:13px}.evolution-progress{font-size:8px;line-height:1.5}}
@media(max-height:460px){#stats-screen h2{font-size:15px}#stats-screen>.eyebrow{display:none}#stats-screen .mood-pill{margin:4px 0;padding:3px 7px;font-size:7px}#stats-screen #level-progress{padding:6px;margin-bottom:3px}#stats-screen .needs{padding:5px 0}#stats-screen .need label{font-size:7px}#stats-screen .need .bar{height:4px;margin-top:4px}#stats-screen .stats{margin:4px 0}#stats-screen .stats>div{padding:5px 2px}#stats-screen .stats b{font-size:14px;margin-bottom:2px}#stats-screen .stats span{font-size:6px}#stats-screen .scrapbook{padding:5px}#stats-screen .scrapbook b{font-size:11px}.evolution-progress{font-size:7px;line-height:1.2;margin-bottom:2px}}
/* DISCOVERY / 07 */
.pixel-food,.pixel-chip{display:block;width:100%;height:100%;image-rendering:pixelated}.food-art{display:block;width:64px;height:64px;filter:none;flex:none}.chip-art{display:block;width:64px;height:64px}.inventory-tabs{display:flex;gap:5px;margin-bottom:9px;flex:none}.inventory-tabs button{flex:1;min-height:32px;border:1px solid #718a53;background:#acbf81;color:#4b673b;font:700 10px 'Courier New',monospace;border-radius:2px}.inventory-tabs button.selected{background:#3c5734;color:#dce7b8}.monster-portrait{display:block;width:115px;height:115px;margin:4px auto 12px}.monster-portrait.silhouette{filter:brightness(.3);opacity:.3}.monster-card h3{font-size:21px}.monster-card p{font-size:10px;margin:7px 0 10px}.monster-card .eyebrow{font-size:8px}.monster-card{padding:12px}.monster-card+.pager{margin:7px 0}#panel:has(.inventory-tabs) .screen-heading{margin-bottom:7px}#panel:has(.inventory-tabs) .screen-heading h2{font-size:18px}.collection-hint{font-size:9px;line-height:1.4}.drilling .pet-card{display:none!important}.training-stars{display:flex;justify-content:center;gap:13px;color:#64823e;font-size:24px;line-height:1.2;flex:none;margin:8px 0 14px;letter-spacing:2px}.training-stars .done{color:#334f2e}.timing-game{display:flex;align-items:center;justify-content:center;gap:18px;min-height:110px;position:relative}.timing-game.horizontal{flex-direction:column;gap:5px}.timing-pet{display:block;width:72px;height:72px;flex:none}.timing-game.horizontal .timing-track{width:100%;height:38px;flex:none;margin:13px 0}.timing-game.vertical{height:235px}.timing-game.vertical .timing-track{height:210px;width:44px;flex:none;margin:0;position:relative}.timing-game.vertical .target{left:0;top:auto;width:100%}.timing-game.vertical .cursor{left:0;top:auto;width:100%;height:4px}.timing-game .target{position:absolute;background:#dbe9b0;border:1px dashed #64844a}.timing-game .cursor{background:#344f2c}.timing-stop{min-height:52px;min-width:145px;align-self:center;font-size:18px;letter-spacing:2px;margin:12px 0}.drill[data-result=success] .timing-pet{animation:training-hop .3s steps(2,end) 2}.drill[data-result=miss] .timing-pet{animation:pet-confused .4s steps(2,end)}.drill[data-result=success] .target{background:#6d954e}.drill[data-result=miss] .target{background:#bdaf73}.shield-demo{display:flex;align-items:center;justify-content:center;gap:15px;font-size:33px;margin:18px 0}.shield-demo>span:first-child{width:44px;height:44px}.shield-lanes{display:flex;justify-content:center;gap:12px;margin:15px 0}.shield-lane{width:30%;height:130px;border:2px solid #75915a;background:#a9bf7d;position:relative;display:flex;align-items:center;justify-content:center;border-radius:2px}.shield-lane:disabled{opacity:1;cursor:default}.lane-star{position:absolute;top:16px;left:50%;transform:translateX(-50%);font-size:29px;color:#354f2e;opacity:0}.shield-lane.lit .lane-star{opacity:1}.lane-shield{display:block;width:37px;height:37px;margin-top:40px}.shield-lane.lit{background:#d4e3a2}.shield-lane.correct,.visual-choice.correct{background:#d6e7a8;border-color:#375a2e}.shield-lane.wrong,.visual-choice.wrong{background:#a39b69}.strategy-demo{position:relative;width:100%;margin:10px auto 15px}.strategy-board{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;border:2px solid #6b8650;background:#8ba364;padding:5px}.strategy-tile{aspect-ratio:1;background:#b5c98c;display:flex;align-items:center;justify-content:center;color:#4c6f3d;font-size:29px}.strategy-tile .pixel-monster{width:88%;height:88%}.strategy-tile.danger-row{background:#a6b879;animation:danger-pulse .9s steps(2,end) infinite}.demo-shot{position:absolute;right:14%;top:50%;font-size:24px;color:#334e2c;animation:demo-beam 1.2s steps(6,end) infinite}.demo-shot.stopped{animation:demo-block 1.2s steps(4,end) infinite}.visual-choices{display:flex;gap:20px;justify-content:center}.visual-choice{width:42%;height:91px;background:#abc27f;border:2px solid #66814b;display:flex;align-items:center;justify-content:center;gap:10px;position:relative;color:#35512d;border-radius:2px}.visual-choice>span{display:block;font:700 44px 'Courier New',monospace;width:48px;height:48px}.visual-choice small{font-size:18px}.visual-choice .pixel-chip{width:48px;height:48px}.training-result p{line-height:1.8}.training-result h3{font-size:19px}.training-result .reward-pet{right:3px}.reward-label{max-width:100%;line-height:1.5;text-align:center}#scan-dialog{width:min(460px,calc(100vw - 16px));height:calc(var(--app-height,100dvh) - 20px);max-height:none;padding:12px;overflow:hidden}#scan-dialog[open]{display:flex;flex-direction:column;gap:9px}#scan-dialog .dialog-top{flex:none}#scan-dialog .dialog-top .icon-button{width:36px;height:36px;min-width:36px}.camera-stage{flex:1;min-height:0;position:relative;background:#24332b;border:2px solid #7d9660;overflow:hidden;display:flex;align-items:center;justify-content:center}.camera-stage video{width:100%;height:100%;max-height:none!important;object-fit:contain;border-radius:0;margin:0!important}.scan-reticle{position:absolute;left:10%;right:10%;top:25%;bottom:25%;border:2px solid #d7e9a0;box-shadow:0 0 0 999px #182a1826;pointer-events:none}.scan-reticle:after{content:'';position:absolute;top:50%;left:0;right:0;border-top:1px dashed #e0ecc0}#scan-status{font-size:11px;line-height:1.5;min-height:33px;margin:0;color:#4e6b3a;flex:none}.scanner-buttons{display:flex;gap:5px;flex:none}.scanner-buttons button{flex:1;font-size:10px;padding:10px 4px;min-height:41px}#reveal-dialog{width:min(410px,calc(100vw - 24px));text-align:center;padding:18px}.discovery-art{width:134px;height:134px;margin:15px auto 20px;position:relative;display:flex;align-items:center;justify-content:center}.discovery-art>.pixel-chip{width:86px;height:86px}.discovery-art>.pixel-food{width:100px;height:100px}.discovery-art.chip-reveal{background:#a5be76;border:3px double #4b703b;box-shadow:0 0 0 5px #bdcf92;animation:chip-appear .65s steps(5,end)}.chip-reveal:before,.chip-reveal:after{content:'✦';position:absolute;color:#4c7038;animation:chip-sparkle .7s steps(3,end) 3}.chip-reveal:before{top:-18px;left:-12px;font-size:26px}.chip-reveal:after{bottom:-15px;right:-9px;font-size:23px;animation-delay:.15s}.discovery-summary p{font-size:11px;line-height:1.6;color:#526e3c;margin:9px 0}.discovery-art .crumb-art{font-size:41px;color:#6a7f43}.reveal-actions{display:flex;gap:10px;margin-top:18px}.reveal-actions button{flex:1}#reveal-dialog h2{font-size:22px}#toast[popover]{inset:auto auto 89px 50%;margin:0;max-width:min(90vw,400px);width:max-content;overflow:visible}#toast[popover]:popover-open{display:block}#rest:disabled{font-size:10px;opacity:.65}
@keyframes danger-pulse{50%{background:#b7b27a}}@keyframes demo-beam{0%{transform:translateX(0)}100%{transform:translateX(-200px)}}@keyframes demo-block{0%{transform:translateX(0);opacity:1}70%{transform:translateX(-60px);opacity:1}100%{transform:translateX(-60px);opacity:0}}@keyframes chip-appear{0%{transform:scale(.25) rotate(-10deg);opacity:0}70%{transform:scale(1.12) rotate(3deg)}100%{transform:scale(1);opacity:1}}@keyframes chip-sparkle{50%{opacity:0;transform:scale(.5)}}
@media(max-height:740px){.inventory-tabs{margin-bottom:7px}.inventory-tabs button{min-height:29px;font-size:9px}.monster-portrait{width:90px;height:90px;margin-bottom:8px}.monster-card h3{font-size:19px}.timing-game.vertical{height:200px}.timing-game.vertical .timing-track{height:180px}.shield-lane{height:110px}.training-stars{font-size:22px;margin:7px 0 10px}.visual-choice{height:77px}.strategy-demo{max-width:300px}.timing-pet{width:61px;height:61px}}
@media(max-height:610px){.food-art{width:42px;height:42px}.chip-art{width:45px;height:45px}.inventory-tabs{margin-bottom:5px}.inventory-tabs button{min-height:26px;font-size:8px}.monster-portrait{width:64px;height:64px;margin:0 auto 6px}.monster-card h3{font-size:17px;margin:4px 0}.monster-card p{font-size:9px;line-height:1.4;margin:5px 0}.monster-card .eyebrow{font-size:7px}.collection-hint{font-size:8px}#panel:has(.inventory-tabs) .screen-heading h2{font-size:15px}.training-stars{font-size:20px;margin:5px 0 9px}.timing-game.vertical{height:169px}.timing-game.vertical .timing-track{height:155px;width:36px}.timing-game.horizontal .timing-track{margin:10px 0;height:32px}.timing-pet{width:50px;height:50px}.timing-stop{min-height:44px;margin:8px 0;font-size:16px}.shield-demo{margin:9px 0;font-size:27px}.shield-demo>span:first-child{width:32px;height:32px}.shield-lanes{margin:10px 0;gap:8px}.shield-lane{height:92px}.lane-star{font-size:25px;top:10px}.lane-shield{width:30px;height:30px;margin-top:35px}.strategy-demo{max-width:245px;margin:6px auto 10px}.strategy-board{padding:4px;gap:2px}.visual-choice{height:65px}.visual-choice>span,.visual-choice .pixel-chip{font-size:36px;width:39px;height:39px}.training-result h3{font-size:16px}.training-result p{font-size:10px}.discovery-art{width:107px;height:107px;margin:10px auto 14px}.discovery-art>.pixel-chip{width:66px;height:66px}#reveal-dialog h2{font-size:20px}.discovery-summary p{font-size:10px;margin:7px 0}#scan-status{font-size:10px;min-height:30px}.reveal-actions{margin-top:12px}}
@media(max-height:460px){.inventory-tabs{margin-bottom:4px}.inventory-tabs button{min-height:23px;font-size:7px}.monster-portrait{width:42px;height:42px;margin:0 auto 3px}.monster-card h3{font-size:15px}.monster-card p{font-size:8px;margin:3px 0}.monster-card .eyebrow{font-size:6px}.monster-card{padding:5px}.collection-hint{display:none}.food-art{width:32px;height:32px}.chip-art{width:29px;height:29px}.training-stars{font-size:16px;margin:3px 0 5px}.timing-game.horizontal{gap:0;min-height:0}.timing-pet{width:29px;height:29px}.timing-game.horizontal .timing-track{height:25px;margin:7px 0}.timing-game.vertical{height:98px;gap:12px}.timing-game.vertical .timing-track{height:91px;width:30px}.timing-stop{min-height:32px;min-width:110px;font-size:12px;padding:6px;margin:5px 0}.shield-demo{margin:4px 0;font-size:19px}.shield-demo>span:first-child{width:25px;height:25px}.shield-lanes{margin:4px 0;gap:8px}.shield-lane{height:65px}.lane-star{font-size:18px;top:5px}.lane-shield{width:22px;height:22px;margin-top:25px}.strategy-demo{max-width:155px;margin:2px auto 5px}.strategy-board{padding:2px;gap:2px}.strategy-tile{font-size:16px}.demo-shot{font-size:16px}.visual-choice{height:39px}.visual-choice>span,.visual-choice .pixel-chip{font-size:25px;width:27px;height:27px}.visual-choices{gap:12px}.training-result h3{font-size:13px}.training-result p{font-size:9px;line-height:1.6}.drilling #cancel-drill{font-size:10px;padding:5px}.discovery-art{width:75px;height:75px;margin:6px auto 9px}.discovery-art>.pixel-food{width:65px;height:65px}.discovery-art>.pixel-chip{width:49px;height:49px}#reveal-dialog{padding:12px}#reveal-dialog h2{font-size:17px;margin:7px 0}.discovery-summary p{font-size:9px;margin:5px 0}.reveal-actions{margin-top:9px}#scan-dialog{height:calc(var(--app-height,100dvh) - 12px);padding:8px;gap:5px}#scan-dialog .dialog-top .icon-button{height:27px;width:27px;min-width:27px}#scan-status{min-height:25px;font-size:9px}.scanner-buttons button{min-height:32px;padding:5px 3px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.chip-reveal:before,.chip-reveal:after{animation:none}.strategy-tile.danger-row{animation:none}.demo-shot{animation:none;right:50%}}
.bonus-chip{position:absolute;right:-12px;bottom:0;width:48px;height:48px;background:#a9c17e;border:2px solid #567b42;box-shadow:0 0 0 3px #c0d294;padding:5px;animation:chip-appear .65s steps(5,end)}.bonus-chip .pixel-chip{width:100%;height:100%}@media(max-height:460px){.bonus-chip{width:34px;height:34px;right:-9px;padding:3px}}

#cloud-badge{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:3px 0;text-align:left}#cloud-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}.cloud-description{font-size:12px;line-height:1.7}.cloud-actions{display:grid;gap:10px;margin:18px 0}.cloud-actions a{text-align:center;font-size:12px;margin:5px}.cloud-actions button{min-height:42px}#cloud-dialog .hint{font-size:10px;line-height:1.6}
