
:root{--ink:#594c49;--muted:#91827d;--paper:#fffaf3;--cream:#fff6e8;--line:#eadfd7;--pink:#d47b98;--pink-dark:#a95472;--accent:#d47b98;--accent-dark:#a95472;--accent-wash:#f9e7ed;--shadow:0 12px 40px #76614a0b;--font:"Arial Rounded MT Bold","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}*{box-sizing:border-box}html{color-scheme:light}body{margin:0;color:var(--ink);background:#f7f2e9;font-family:var(--font);font-size:14px;-webkit-tap-highlight-color:transparent}body[data-team=dog]{--accent:#6b9ea5;--accent-dark:#49777d;--accent-wash:#e6f2f1}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.5}button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{touch-action:manipulation}svg{display:block}svg.ico{width:21px;height:21px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}button svg{pointer-events:none}[hidden]{display:none!important}#app{max-width:1200px;margin:0 auto;padding:0 32px}.topbar{height:94px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:30px}.brand{display:flex;align-items:center;gap:12px;padding:0;text-align:left}.brand b{font-size:27px;letter-spacing:-1.3px;font-weight:950}.brand small{display:block;font-size:11px;letter-spacing:.5px;margin-top:3px;color:var(--muted)}#brand-icon{width:56px;height:52px}.top-right{display:flex;gap:9px;align-items:center}.version-tag{font:600 10px/1.5 var(--font);letter-spacing:1.5px;color:var(--muted);margin-right:20px}.version-tag i{font-style:normal;border:1px solid #cfbfb3;border-radius:4px;padding:3px 4px;margin-left:8px}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff9;font-weight:800;font-size:19px}.icon-button:hover{background:white;border-color:var(--accent)}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:42px;align-items:start}.sidebar{padding-top:17px}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--accent-dark);display:flex;align-items:center;gap:8px}.tiny-star{font-size:19px;color:var(--accent)}h1{font-size:34px;letter-spacing:-1.6px;line-height:1.35;margin:18px 0 13px;font-weight:900}h1 em{font-style:normal;color:var(--accent-dark)}h2{letter-spacing:-1px}.intro{font-size:13px;line-height:1.85;margin:0 0 18px;color:#8c7c74;word-break:keep-all}.teams{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0 17px}.team-card{border:1.5px solid var(--line);border-radius:18px;background:var(--paper);padding:10px 8px 11px;position:relative;text-align:center;transition:border-color .15s,transform .15s}.team-card:hover{transform:translateY(-2px)}.team-card.active{border-color:var(--accent);background:var(--accent-wash);box-shadow:inset 0 0 0 1px var(--accent)}.team-card .face{width:74px;height:74px;margin:0 auto 4px}.team-card b{font-size:14px}.team-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.team-check{position:absolute;right:9px;top:8px;width:17px;height:17px;border-radius:50%;color:#fff;background:var(--accent);font-size:12px}.button{min-height:47px;padding:12px 18px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:800;transition:transform .15s,filter .15s;border:1px solid transparent}.button:not(:disabled):hover{filter:brightness(1.025);transform:translateY(-1px)}.button:active{transform:translateY(1px)!important}.primary{background:var(--accent);color:#fff;box-shadow:0 5px 0 color-mix(in srgb,var(--accent) 70%,#774340)}.primary:disabled{box-shadow:none;background:#d6ccc7;color:#fff;opacity:.8}.wide{width:100%}.button.wide{justify-content:space-between}.ghost{background:var(--paper);border-color:var(--line)}.secondary{background:var(--accent-wash);color:var(--accent-dark);border-color:transparent}.mode-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:17px 0 20px}.mode-btn{border:1px solid var(--line);border-radius:16px;padding:15px 8px 13px;background:#fffaf2}.mode-btn .ico{margin:0 auto 7px;color:var(--accent-dark);width:23px;height:23px}.mode-btn b{display:block;font-size:13px}.mode-btn small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.mode-btn:hover{border-color:var(--accent);background:#fff}.progress-card{border-top:1px solid var(--line);padding-top:18px}.progress-card>div:first-child{display:flex;justify-content:space-between;align-items:center}.progress-card b{font-size:12px}.text-button{font-size:11px;color:var(--accent-dark);padding:5px 0}.progress-track{height:6px;border-radius:10px;background:#e9e0d6;overflow:hidden;margin:10px 0}.progress-track i{display:block;height:100%;background:var(--accent);border-radius:inherit;transition:width .3s}.progress-card p{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:0;gap:5px}.progress-card strong{white-space:nowrap;color:#b98a42}.mini-links{display:flex;margin:20px 0 0;gap:8px;justify-content:space-between}.mini-links button{display:flex;align-items:center;gap:6px;font-size:11px;padding:5px 0}.mini-links .ico{width:17px;height:17px}.home-note{font-size:10px;color:#a4978e;line-height:1.8;margin:23px 0 0}.gamebox{border-radius:28px;background:var(--paper);border:1px solid #e8dacc;box-shadow:var(--shadow);overflow:hidden;position:relative}.stage{height:532px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 45% 30%,#fffdf7 0%,#f9ead7 75%)}body[data-bg=bg_pink] .stage{background:radial-gradient(ellipse at 45% 30%,#fffaf4,#f7dfe5)}body[data-bg=bg_mint] .stage{background:radial-gradient(ellipse at 45% 30%,#fffdf7,#dfede0)}.bakery-bg{position:absolute;inset:0;z-index:-1;overflow:hidden}.awning{height:66px;background:repeating-linear-gradient(90deg,#f8dedb 0px,#f8dedb 48px,#fff6e7 48px,#fff6e7 96px);position:absolute;top:-37px;left:0;right:0;opacity:.6;border-radius:0 0 24px 24px;box-shadow:0 3px 0 #e7cfc75c}.shop-window{position:absolute;left:7%;top:24%;width:110px;height:145px;border:6px solid #e9dac3;border-radius:60px 60px 5px 5px;background:linear-gradient(150deg,#fffce8,#eee9cf);opacity:.52;box-shadow:inset 0 0 0 4px #fff9}.shop-window:before{content:"";position:absolute;left:50%;height:100%;width:4px;background:#e6d5bc}.shop-window:after{content:"";position:absolute;top:55%;height:4px;width:100%;background:#e6d5bc}.shop-window i{position:absolute;bottom:6px;right:12px;width:20px;height:35px;border-radius:50%;background:#bbcbb2;transform:rotate(-25deg)}.shop-window i+i{right:30px;bottom:12px;transform:rotate(25deg);height:22px}.shop-note{position:absolute;right:7%;top:23%;width:90px;padding:15px 10px;background:#fffbef;box-shadow:0 4px 0 #ddd0ba45;border:1px solid #e9d7c3;transform:rotate(7deg);font-size:12px;font-weight:800;text-align:center;color:#b38f7b;letter-spacing:1px;border-radius:4px;opacity:.65}.shop-note span{font-size:10px;line-height:2;font-family:Georgia,serif;font-style:italic;letter-spacing:0}.shop-note b{display:block;font-size:17px;color:#c8a876}.shelf{position:absolute;right:7%;top:57%;width:80px;height:6px;background:#d8c3a4;opacity:.5}.shelf i{position:absolute;bottom:6px;left:6px;width:15px;height:24px;background:#e6b2b4;border-radius:4px 4px 1px 1px}.shelf i:nth-child(2){left:30px;background:#bcd0b0;height:32px}.shelf i:nth-child(3){left:54px;background:#dec393;height:20px}.counter{position:absolute;bottom:0;left:-10%;width:120%;height:20%;background:linear-gradient(#f2dfc9,#efddc7);border-top:5px solid #fff6e4;border-radius:50% 50% 0 0/22% 22% 0 0;opacity:.63}.stage-brand{position:absolute;top:23px;left:25px;right:25px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;z-index:2;color:#8e7365}.status-dot{width:5px;height:5px;background:var(--accent);border-radius:100%}.stage-brand small{margin-left:auto;font-size:10px;font-weight:400;color:#a28e7e}#scene{width:100%;height:100%;display:block;position:relative;z-index:0;touch-action:pan-y}.preview-badge{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);background:#fffdf1bd;color:#9a7965;border:1px solid #dcc7b4;padding:8px 14px;border-radius:30px;font-size:11px;white-space:nowrap}.preview-badge span{color:var(--accent);margin-right:5px}.home-stage-foot{display:flex;align-items:center;justify-content:center;gap:20px;font-size:12px;padding:23px 10px;background:#fffaf1;border-top:1px solid #eadac9}.home-stage-foot i{font-style:normal;color:#b5a093;font-size:10px;margin-right:5px}.home-stage-foot b{color:#cab9ad}.footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:26px;padding:18px 0 22px;font-size:9px;letter-spacing:.7px;color:#aa9b90}.footer b{font-weight:400;border:1px solid #d7cabd;border-radius:4px;padding:1px 4px;margin:0 5px}.footer .warn{color:#a4554c}.back-link{font-size:11px;padding:0;margin:0 0 24px;color:#9d8a7a}.sidebar h2{font-size:25px;line-height:1.4;margin:14px 0 10px;word-break:keep-all}.goal-list{display:grid;gap:8px;margin:17px 0 22px}.goal{display:flex;gap:9px;border:1px solid var(--line);border-radius:13px;background:#fffcf5;padding:12px;font-size:11px;align-items:center;line-height:1.5}.goal .goal-stars{color:#bfaf9d;white-space:nowrap;letter-spacing:0}.goal.met{border-color:#b2c7a5;background:#f1f5e8}.goal.met .goal-stars{color:#b88d38}.goal b{font-size:10px;font-weight:500}.tip-card{display:flex;align-items:center;gap:12px;background:var(--accent-wash);border-radius:18px;padding:16px 13px;margin:16px 0}.tip-card>span{width:49px;flex-shrink:0}.tip-card b{font-size:11px;color:var(--accent-dark)}.tip-card p{font-size:11px;line-height:1.7;margin:6px 0 0;word-break:keep-all}.play-meta{display:flex;justify-content:space-between;gap:8px;margin:18px 0;font-size:10px;color:var(--muted)}.hud{position:absolute;top:17px;left:22px;right:22px;display:flex;gap:27px;z-index:3;pointer-events:none}.hud-cell small{font-size:10px;color:#968171;display:block}.hud-cell b{display:block;font-size:26px;font-variant-numeric:tabular-nums;font-weight:900;letter-spacing:-.8px;margin-top:2px}.hud-cell b em{font-size:11px;font-style:normal;margin-left:3px;font-weight:500;letter-spacing:0}.pause-btn{margin-left:auto;pointer-events:auto;background:#fff8}.playing .stage-brand{display:none}.playing .stage{height:420px}.playing .shop-window{opacity:.3}.playing .shop-note,.playing .shelf{opacity:.35}.playing .stage .awning{opacity:.3}.risk-pill{position:absolute;bottom:16px;left:20px;right:20px;display:flex;align-items:center;gap:7px;font-size:10px;background:#fff9;padding:9px 12px;border:1px solid #fff9;border-radius:24px;z-index:2;color:#758367}.risk-pill>i{flex:1;height:5px;margin-left:6px;max-width:120px;border-radius:10px;background:#ebe6de;overflow:hidden}.risk-pill>i>b{height:100%;display:block;background:#9daf8d;border-radius:10px;width:0;transition:width .15s}.risk-pill.danger{color:#ba665c;background:#fff2e9e0}.risk-pill.danger>i>b{background:#d1786d}.risk-pill.warning{color:#b28c45}.risk-pill.warning>i>b{background:#d5b268}.material-pill{position:absolute;right:20px;bottom:64px;display:flex;align-items:center;gap:5px;font-size:10px;background:#fff8;border-radius:20px;padding:7px 10px;color:#99785a}.material-pill .ico{width:14px;height:14px}.controller{display:grid;grid-template-columns:190px 1fr;gap:22px;padding:20px 32px 19px;background:#fffcf5;border-top:1px solid #e8ddce;align-items:center}.pad-col{text-align:center}.pad{position:relative;touch-action:none;user-select:none;border-radius:50%;width:168px;height:168px;margin:auto;background:radial-gradient(circle,#fffcf9 0%,#f9ece9 100%);box-shadow:inset 0 0 0 1px #e4cecb,inset 0 5px 15px #9a716308,0 3px 0 #d9c1b936}.pad canvas{width:100%;height:100%;display:block;pointer-events:none}.pad-idle{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;font-size:11px;line-height:1.7;color:#a28280;pointer-events:none}.pad-caption{font-size:9px;color:#9e8c7b;margin-top:8px;display:block}.flow-status{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700}.flow-status i{width:6px;height:6px;border-radius:50%;background:#c9bbae}.flow-status i.on{background:#a8bc91;box-shadow:0 0 0 4px #b8ca9d20}.controls-right p{font-size:11px;color:#a08c7c;line-height:1.7;margin:8px 0 10px}.finish-btn{width:100%;justify-content:space-between;min-height:44px;font-size:13px}.finish-note{font-size:9px;color:#a49080;margin-top:11px;text-align:center;display:block;white-space:nowrap}.mini-metric{font-size:10px;color:var(--accent-dark);min-height:15px;margin-bottom:7px}.start-hint{position:absolute;top:41%;left:50%;transform:translate(-50%,-50%);text-align:center;background:#fffcf0df;box-shadow:0 8px 30px #9a72521c;border-radius:20px;padding:16px 22px;border:1px solid #e3cdbb;z-index:5;pointer-events:none;white-space:nowrap}.start-hint b{display:block;font-size:18px;color:var(--accent-dark);margin-bottom:6px}.start-hint span{font-size:11px;color:#967b6a}.settle-cover{position:absolute;right:24px;top:91px;display:flex;align-items:center;flex-direction:column;text-align:center;padding:12px;background:#fff7e9ec;border:1px solid #dfcdbb;border-radius:20px;z-index:5}.settle-cover span{font-size:10px;color:#967860}.settle-cover b{font-size:32px;line-height:1.25;color:var(--accent-dark)}.settle-cover small{font-size:9px;color:#af9a82}.pause-cover{position:absolute;inset:0;z-index:10;background:#fffaefeb;backdrop-filter:blur(5px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.pause-cover>span{width:100px}.pause-cover h2{font-size:24px;margin:10px 0}.pause-cover p{font-size:12px;color:var(--muted);margin:0 0 24px}.toast-stage{position:absolute;top:26%;left:50%;transform:translate(-50%,-8px);white-space:nowrap;padding:10px 17px;border-radius:24px;background:#fffdf5ed;border:1px solid #e5c9bb;box-shadow:0 5px 15px #87624c12;z-index:6;color:#ac6a73;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast-stage.show{opacity:1;transform:translate(-50%,0)}.height-label{position:absolute;left:16px;top:41%;font-size:10px;color:#8b987c;background:#fff7;padding:5px 8px;border-radius:9px}.particles{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:hidden}.spark{position:absolute;left:50%;top:40%;color:var(--accent);animation:spark 1s ease-out forwards;font-size:18px}@keyframes spark{from{transform:translate(0,0) scale(.5);opacity:1}to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}.mobile-objective{display:none}.modal-layer{position:fixed;inset:0;z-index:50;background:#44352f66;backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:center;padding:24px}.modal{width:740px;max-width:100%;max-height:92dvh;display:flex;flex-direction:column;background:#fffaf2;border:1px solid #fff9;border-radius:26px;box-shadow:0 22px 70px #39281e33;overflow:hidden}.modal>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 26px 18px;border-bottom:1px solid var(--line)}.modal header h2{margin:6px 0 0;font-size:23px}.modal header small{font-size:9px;color:var(--accent-dark);letter-spacing:1.5px}.modal-body{padding:23px 26px 27px;overflow:auto;overscroll-behavior:contain;line-height:1.6}.modal-body p{font-size:12px;color:var(--muted);margin:0 0 15px}.modal-body h3{font-size:15px;margin:22px 0 10px;letter-spacing:-.3px}.modal-body h3:first-child{margin-top:0}.chapter-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:12px}.chapter-label small{color:#aa9268}.level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:25px}.level-card{border:1px solid var(--line);border-radius:15px;padding:13px 10px;text-align:left;min-height:137px;background:#fffdf7;position:relative}.level-card:hover:not(:disabled){border-color:var(--accent);background:var(--accent-wash)}.level-card:disabled{opacity:.6}.level-card .num{font-size:11px;color:var(--accent-dark);letter-spacing:1px;display:flex;justify-content:space-between}.level-card h4{font-size:12px;line-height:1.5;margin:13px 0 7px;word-break:keep-all}.level-card .stars{font-size:14px}.stars{letter-spacing:3px;color:#dfbc6f;white-space:nowrap}.stars .empty{color:#e2d7c6}.level-card small{font-size:9px;color:var(--muted)}.level-detail{text-align:center;padding:5px 14px}.level-detail .big-num{color:var(--accent);font-size:14px;letter-spacing:2px}.level-detail h3{font-size:23px;margin:8px 0 10px}.level-detail .goal-list{text-align:left;max-width:420px;margin:20px auto}.level-detail .button{min-width:220px;margin-top:5px}.tabs{display:flex;gap:7px;overflow:auto;padding:0 0 16px;margin-bottom:8px}.tab{padding:8px 12px;font-size:11px;white-space:nowrap;background:#f1e8df;border-radius:20px;color:#97816d}.tab.active{background:var(--accent);color:#fff}.items-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.item-card{border:1px solid var(--line);border-radius:17px;background:#fffcf7;overflow:hidden;position:relative;text-align:center;padding:12px 9px;min-height:160px}.item-card.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-wash)}.item-card.locked{background:#f3ede5}.item-card .item-visual{height:76px;margin:0 auto 6px;display:flex;justify-content:center;align-items:center}.item-visual svg{width:80px;height:76px}.item-card b{display:block;font-size:12px}.item-card small{font-size:10px;color:var(--muted);display:block;margin-top:4px;word-break:keep-all}.item-card .item-status{position:absolute;top:8px;right:9px;font-size:10px;background:#fff9;border-radius:20px;padding:2px 7px;color:var(--accent-dark)}.locked .item-visual{opacity:.45;filter:grayscale(.4)}.collection-summary{display:flex;justify-content:space-between;color:#a18b74;font-size:11px;margin-bottom:17px}.badge-icon{background:#eacb85;border:4px solid #fff2bd;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:24px;color:#9b7544;box-shadow:0 4px 0 #c7a56c}.result-top{text-align:center;position:relative}.result-top .face{width:76px;margin:auto}.result-top .result-tag{font-size:10px;letter-spacing:1px;color:var(--accent-dark);margin:5px 0}.result-top h3{font-size:26px;margin:4px 0 7px}.result-main{display:grid;grid-template-columns:180px 1fr;gap:23px;align-items:center;margin:15px 0 20px}.result-photo{width:180px;height:220px;object-fit:cover;border-radius:20px;background:#f6e8d6;border:1px solid #ead9c3}.result-number{font-size:48px;font-weight:900;letter-spacing:-2px;line-height:1.2}.result-number small{font-size:14px;letter-spacing:0;color:#a48c74}.result-stars{font-size:25px;margin:8px 0 10px}.result-summary{font-size:11px;line-height:1.8;color:#9f8771}.result-goals{display:grid;gap:6px;margin:12px 0}.result-goals>div{font-size:11px;display:flex;gap:7px;align-items:center}.result-goals span{color:#b69b76}.result-goals .ok{color:#7b9664}.unlock-banner{border-radius:16px;border:1px solid #e2d8ba;background:#faf2d7;padding:13px 16px;font-size:12px;margin:16px 0}.unlock-banner b{display:block;margin-bottom:4px}.unlock-banner .equip-inline{font-size:11px;color:#9e774e;text-decoration:underline;padding:5px 0}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-actions .button{justify-content:center}.result-bottom{display:flex;justify-content:center;gap:18px;margin-top:18px}.result-bottom button{font-size:11px;display:flex;gap:5px;align-items:center;color:#a08b78}.result-bottom .ico{width:15px;height:15px}.record-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:16px 0}.record-team{text-align:center;padding:23px 12px;border:1px solid var(--line);border-radius:20px;background:#fffdf7}.record-team .face{width:75px;margin:auto}.record-team h3{margin:7px 0}.record-team strong{font-size:30px;letter-spacing:-1px}.record-team small{font-size:11px;color:var(--muted)}.record-message{background:var(--accent-wash);color:var(--accent-dark)!important;border-radius:13px;padding:12px;text-align:center}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.setting-row b{font-size:13px}.setting-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.toggle{min-width:56px;padding:8px 10px;background:#e5dbd0;border-radius:20px;font-size:11px;font-weight:800}.toggle.on{background:var(--accent-wash);color:var(--accent-dark)}.settings-actions{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0}.settings-actions .button{font-size:11px;min-height:40px}.danger-text{color:#b67770}.help-step{display:flex;gap:14px;margin:17px 0}.help-step>span{width:31px;height:31px;background:var(--accent-wash);border-radius:50%;display:grid;place-items:center;color:var(--accent-dark);flex-shrink:0;font-size:12px}.help-step h4{font-size:13px;margin:0 0 4px}.help-step p{font-size:12px;margin:0;line-height:1.8}.help-box{padding:14px;background:#f2ece1;border-radius:14px;font-size:11px;line-height:1.9;color:#8c7b68}.album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.album-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fffdf8;text-align:left;padding:0}.album-card img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;background:#f6e5d5}.album-card>div{padding:9px 12px}.album-card b{font-size:15px}.album-card small{display:block;font-size:9px;color:var(--muted)}.empty-box{text-align:center;padding:25px 10px}.empty-box .face{width:90px;margin:0 auto 14px}.empty-box h3{font-size:18px}.global-toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,10px);padding:12px 20px;max-width:90%;border:1px solid #d6c3b3;background:#fff9ebf5;border-radius:18px;box-shadow:0 8px 30px #60453122;font-size:12px;color:#8c6d58;z-index:80;opacity:0;pointer-events:none;transition:.2s;text-align:center;word-break:keep-all}.global-toast.show{opacity:1;transform:translate(-50%,0)}body.reduced *{animation:none!important;transition:none!important}.danger-note{padding:10px 14px;border-radius:12px;background:#fae9e3;color:#ae645d;font-size:11px;line-height:1.8}.loading-error{padding:30px;background:#fff1e6;color:#8f5446}.target-strip{height:8px;background:#efe6dc;border-radius:8px;overflow:hidden;position:relative;margin:5px 0}.target-strip i{position:absolute;top:0;height:100%;background:#b8c99a}.target-strip b{position:absolute;top:0;width:3px;height:100%;background:var(--accent-dark)}
@media(min-width:1450px){#app{max-width:1270px}.workspace{grid-template-columns:340px 1fr;gap:55px}.stage{height:567px}.playing .stage{height:455px}.topbar{height:105px;margin-bottom:38px}.sidebar{padding-top:22px}h1{font-size:39px}}
@media(max-width:1000px) and (min-width:721px){#app{padding:0 22px}.workspace{grid-template-columns:270px 1fr;gap:23px}h1{font-size:29px}.controller{padding:17px 20px;gap:15px;grid-template-columns:155px 1fr}.pad{width:148px;height:148px}.finish-note{font-size:8px}.stage{height:510px}.playing .stage{height:420px}.shop-window{width:80px;height:110px}.shop-note{width:70px}.version-tag{display:none}}
@media(max-width:720px){#app{padding:0 17px}.topbar{height:75px;margin-bottom:17px}.brand b{font-size:24px}.brand small{font-size:9px}.brand{gap:8px}#brand-icon{width:44px;height:43px}.top-right{gap:7px}.version-tag{display:none}.icon-button{width:35px;height:35px}.workspace{display:flex;flex-direction:column;gap:0}.sidebar{padding:0 3px;width:100%;order:2}.gamebox{order:1;width:100%;border-radius:24px;margin-bottom:23px}.stage{height:330px}.stage-brand{top:15px;left:17px;right:17px;font-size:10px}.stage-brand small{font-size:9px}.preview-badge{bottom:13px;font-size:9px;padding:6px 11px}.home-stage-foot{padding:13px;gap:16px;font-size:10px}.shop-window{width:73px;height:106px;left:7%;top:24%;border-width:4px}.shop-note{width:65px;top:25%;right:6%;font-size:9px;padding:9px 7px}.shop-note span{font-size:8px}.shelf{top:65%;width:65px;right:5%}h1{font-size:29px;margin:10px 0}.intro{font-size:12px;line-height:1.7;margin-bottom:13px}.home-note{margin:17px 0 0;font-size:10px}.teams{margin:16px 0}.team-card{padding:8px 8px 10px;display:grid;grid-template-columns:55px 1fr;text-align:left;align-items:center}.team-card .face{grid-row:1/3;width:52px;height:43px;margin:0}.team-card small{margin-top:0;font-size:9px}.team-card b{font-size:13px}.team-check{right:6px;top:6px;width:14px;height:14px;font-size:10px}.mode-row{margin:17px 0}.mode-btn{display:grid;grid-template-columns:24px 1fr;padding:13px 14px;text-align:left;column-gap:8px}.mode-btn .ico{grid-row:1/3;align-self:center;margin:0}.mode-btn b{font-size:12px}.mode-btn small{font-size:9px}.mini-links{justify-content:center;gap:25px}.footer{margin-top:20px;font-size:8px;line-height:1.7;gap:8px;padding:15px 0}.footer>span:last-child{text-align:right;max-width:50%}.playing .topbar{height:62px;margin-bottom:10px}.playing .brand b{font-size:21px}.playing .brand small{font-size:8px}.playing #brand-icon{width:37px;height:36px}.playing .sidebar{display:none}.playing .gamebox{margin-bottom:0;border-radius:22px}.playing .stage{height:clamp(265px,calc(100dvh - 332px),490px)}.playing .footer{margin-top:11px;padding:9px 0;font-size:8px}.hud{top:15px;left:17px;right:17px;gap:20px}.hud-cell small{font-size:9px}.hud-cell b{font-size:23px}.hud-cell b em{font-size:10px}.mobile-objective{display:block;position:absolute;left:17px;right:56px;top:76px;z-index:3;font-size:10px;color:#a48a77;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.risk-pill{bottom:12px;left:12px;right:12px;font-size:9px;padding:8px 10px}.material-pill{right:13px;bottom:53px;font-size:9px}.controller{grid-template-columns:145px minmax(0,1fr);padding:15px 16px 14px;gap:15px}.pad{width:137px;height:137px}.pad-caption{font-size:8px;margin-top:7px}.pad-idle{font-size:10px}.flow-status{font-size:10px;gap:5px}.controls-right p{font-size:10px;line-height:1.6;margin:7px 0}.finish-btn{min-height:42px;font-size:12px;padding:10px 12px;border-radius:12px}.finish-note{font-size:8px;margin-top:9px;white-space:normal;line-height:1.5}.mini-metric{font-size:9px;min-height:13px;margin-bottom:7px}.start-hint{top:44%;padding:13px 18px}.start-hint b{font-size:16px}.start-hint span{font-size:10px}.settle-cover{top:110px;right:15px;padding:9px;border-radius:15px}.settle-cover small{display:none}.settle-cover b{font-size:26px}.settle-cover span{font-size:8px}.height-label{top:51%;font-size:8px;padding:4px 5px;left:10px}.toast-stage{font-size:10px;padding:9px 12px;top:31%}.modal-layer{padding:12px}.modal{max-height:94dvh;border-radius:22px}.modal>header{padding:18px 18px 14px}.modal header h2{font-size:20px}.modal header small{font-size:8px}.modal-body{padding:18px}.level-grid{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:22px}.level-card{min-height:114px;padding:11px 12px}.level-card h4{font-size:12px;margin:9px 0 5px}.chapter-label{font-size:11px}.chapter-label small{font-size:10px}.items-grid{grid-template-columns:repeat(2,1fr);gap:9px}.item-card{min-height:155px;padding:10px 8px}.tabs{gap:5px;padding-bottom:12px}.tab{font-size:10px;padding:7px 10px}.result-main{grid-template-columns:115px 1fr;gap:15px;margin:12px 0 18px}.result-photo{width:115px;height:172px}.result-number{font-size:39px}.result-stars{font-size:21px;margin:6px 0}.result-top h3{font-size:22px}.result-top .face{width:65px}.result-goals>div{font-size:10px;gap:5px}.result-summary{font-size:10px}.result-actions .button{font-size:12px;padding:11px 10px}.album-grid{grid-template-columns:repeat(2,1fr)}.level-detail{padding:0}.level-detail h3{font-size:21px}.record-team{padding:15px 9px}.record-team strong{font-size:27px}.record-message{font-size:11px!important}.settings-actions .button{font-size:10px}.footer .warn{font-size:8px}}
@media(max-width:360px){#app{padding:0 11px}.controller{grid-template-columns:122px 1fr;padding:13px 12px;gap:12px}.pad{width:119px;height:119px}.playing .stage{height:clamp(240px,calc(100dvh - 309px),410px)}.controls-right p{font-size:9px}.finish-note{font-size:7px}.flow-status{font-size:9px}.mini-metric{font-size:8px}.playing .footer{font-size:7px}.topbar{height:67px}.brand b{font-size:22px}.stage{height:280px}.result-main{grid-template-columns:98px 1fr;gap:12px}.result-photo{width:98px;height:160px}.modal-body{padding:15px}.items-grid{gap:7px}.item-card b{font-size:11px}.tabs .tab{padding:6px 8px}.result-number{font-size:34px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}button,.toast-stage,.global-toast{transition:none}.spark{animation-duration:.05s}}

.result-badge{display:inline-block;font-size:10px;color:#a78650;background:#faf0d9;border:1px solid #e6d5b0;border-radius:20px;padding:4px 10px;margin-top:4px}

/* v1.1 first-person direct manipulation */
#shop-backdrop,#paw-view{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
#shop-backdrop{z-index:0}#scene{z-index:1;outline-offset:-5px}#paw-view{z-index:2}
.playing #scene{touch-action:none;user-select:none;-webkit-user-select:none;cursor:default}.playing #scene.near-paws{cursor:grab}.holding #scene{cursor:grabbing!important}
.stage{height:560px;background:#f8e7de}.playing .stage{height:clamp(420px,calc(100dvh - 220px),750px)}
.stage-brand{z-index:3;left:17px;right:17px;top:16px;background:#fff8eddb;border:1px solid #ffffffba;box-shadow:0 2px 10px #9667550a;border-radius:30px;padding:8px 12px;backdrop-filter:blur(6px)}
.hud{z-index:4;top:16px;left:18px;right:18px;gap:20px;padding:11px 14px;background:#fffaf0e6;border:1px solid #fffdf4;box-shadow:0 4px 15px #72543d0b;border-radius:19px;backdrop-filter:blur(9px)}
.hud-cell small{color:#967867}.hud-cell b{font-size:24px;color:#614b45}.hud .pause-btn{align-self:center;background:#fffaf4}
.mobile-objective{pointer-events:none;z-index:4;color:#755d52!important;background:#fff9efa8;border-radius:20px;padding:7px 10px;left:20px;top:100px;font-size:10px}
.risk-pill{z-index:4;left:17px;right:17px;bottom:14px;background:#fffaf0ed;border-color:#fff9;box-shadow:0 3px 15px #593b2410;pointer-events:none;backdrop-filter:blur(6px)}
.material-pill{z-index:4;bottom:62px;background:#fff9edeb;pointer-events:none}.height-label{z-index:4;pointer-events:none}
.preview-badge{z-index:4;bottom:14px;background:#fff9edeb;pointer-events:none}
.controller.direct-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;background:#fffaf0;border-top:1px solid #eddfd0;min-height:90px}
.controls-copy{flex:1;min-width:0}.direct-controls .finish-btn{width:166px;flex-shrink:0;min-height:46px}.controls-copy p{margin:5px 0 0;font-size:10px;line-height:1.5;color:#a08b7c}.controls-copy p br{display:none}.controls-copy .mini-metric{margin:5px 0 0;font-size:10px;min-height:0}.controls-copy .mini-metric:empty{display:none}
.start-hint{z-index:5;top:auto;left:auto;transform:translateX(-50%);background:none;border:0;box-shadow:none;padding:0;white-space:normal;color:#aa5578;animation:touchFloat 1.8s ease-in-out infinite;text-shadow:0 2px 0 #fff7ed,0 -1px 0 #fff7ed,2px 0 0 #fff7ed,-2px 0 0 #fff7ed}
.start-hint b{font:900 29px/1.1 'Arial Rounded MT Bold',system-ui,sans-serif;letter-spacing:-1px;color:inherit;margin:0;transform:rotate(-9deg)}.start-hint svg{width:55px;height:50px;filter:drop-shadow(0 2px 0 #fff7ed);margin:1px 0 0 13px}
body[data-team=dog] .start-hint{color:#4c857d}.holding .start-hint{display:none}
@keyframes touchFloat{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-6px)}}
.reduced .start-hint{animation:none}.settle-cover{z-index:5;top:106px;background:#fffaebed}.toast-stage{z-index:6;background:#fffaf0ed;max-width:calc(100% - 30px);white-space:normal;text-align:center;line-height:1.5}.pause-cover{z-index:10}.particles{z-index:6}
@media(min-width:1200px){.workspace{grid-template-columns:280px minmax(0,1fr);gap:35px}#app{max-width:1240px}.sidebar{padding-top:12px}}
@media(max-width:1000px) and (min-width:721px){.playing .stage{height:clamp(420px,calc(100dvh - 220px),680px)}.stage{height:530px}.controller.direct-controls{padding:14px}.direct-controls .finish-btn{width:132px}.controls-copy p{font-size:9px}.start-hint b{font-size:27px}}
@media(max-width:720px){
 #app{padding:0 12px}.gamebox{border-radius:24px}.stage{height:440px}.topbar{height:67px;margin-bottom:13px}
 .playing #app{padding:0 8px}.playing .topbar{height:57px;margin-bottom:7px;padding:0 7px}.playing .gamebox{border-radius:22px;margin-bottom:0}
 .playing .stage{height:calc(100svh - 156px - env(safe-area-inset-bottom));min-height:330px;max-height:850px}
 .playing .footer{display:none}.playing .workspace{gap:0}.controller.direct-controls{padding:12px 14px;min-height:81px;gap:10px;align-items:center}
 .direct-controls .finish-btn{width:125px;min-height:43px;font-size:12px}.flow-status{font-size:10px}.controls-copy p{font-size:9px;margin:3px 0 0}.controls-copy p br{display:none}.controls-copy .mini-metric{font-size:9px;margin-top:3px}
 .hud{left:12px;right:12px;top:12px;padding:8px 12px;gap:22px;border-radius:17px}.hud-cell b{font-size:22px}.hud-cell small{font-size:9px}.hud-cell b em{font-size:10px}.hud .pause-btn{width:34px;height:34px}
 .mobile-objective{top:87px;left:16px;right:16px;padding:6px 10px;font-size:9px}
 .risk-pill{left:12px;right:12px;bottom:11px;padding:8px 10px;font-size:9px}.material-pill{bottom:54px;right:13px}
 .start-hint b{font-size:26px}.start-hint svg{width:47px;height:45px}.settle-cover{top:126px;right:13px}.toast-stage{top:24%;font-size:10px}
 .stage-brand{top:12px;left:12px;right:12px;padding:7px 10px;font-size:9px}.home-stage-foot{padding:12px}.home-note{margin-top:15px}
}
@media(max-width:360px){.stage{height:390px}.playing .stage{height:calc(100svh - 149px - env(safe-area-inset-bottom));min-height:300px}.controller.direct-controls{padding:11px;min-height:76px}.direct-controls .finish-btn{width:112px;font-size:11px}.flow-status{font-size:9px}.controls-copy p{font-size:8px}.controls-copy .mini-metric{font-size:8px}}
@media(prefers-reduced-motion:reduce){.start-hint{animation:none}}

/* v1.2: compact balance readout lives OUTSIDE the moving first-person hands. */
.direct-controls .controls-copy{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.direct-controls .risk-pill{position:static;inset:auto;transform:none;display:inline-flex;align-items:center;flex:0 0 auto;width:148px;max-width:100%;height:25px;margin:0 0 5px;padding:5px 9px;gap:5px;border:1px solid #e0e7d5;border-radius:20px;background:#f2f5e9;box-shadow:none;backdrop-filter:none;font-size:10px;line-height:1;white-space:nowrap;color:#65775d;pointer-events:none}
.direct-controls #risk-symbol{flex:0 0 7px;text-align:center;font-size:8px}
.direct-controls #risk-label{flex:0 0 auto;font-weight:600}
.direct-controls .risk-pill>i{flex:0 0 40px;width:40px;max-width:40px;margin-left:auto;height:4px;background:#e0e5d7}
.direct-controls .risk-pill.warning{background:#fcf3dd;border-color:#efe1bc;color:#9a762f}
.direct-controls .risk-pill.danger{background:#fff0e9;border-color:#efd4c5;color:#b15f54}
.direct-controls .flow-status{font-size:10px;line-height:1.45}
.direct-controls .controls-copy p{margin:3px 0 0;line-height:1.4}
.direct-controls .controls-copy .mini-metric{margin:3px 0 0;line-height:1.35}
.controller.direct-controls{min-height:104px;padding:12px 20px}
@media(max-width:720px){
 .controller.direct-controls{min-height:101px;padding:10px 14px;gap:10px}
 .direct-controls .risk-pill{width:140px;height:24px;font-size:10px;padding:5px 8px;margin-bottom:5px}
 .direct-controls .risk-pill>i{flex-basis:37px;width:37px;max-width:37px}
 .direct-controls .flow-status{font-size:9px;line-height:1.4}
 .direct-controls .controls-copy p{font-size:9px;line-height:1.35}
 .playing .stage{height:calc(100svh - 176px - env(safe-area-inset-bottom));min-height:310px}
}
@media(max-width:360px){
 .controller.direct-controls{padding:10px 11px;min-height:102px}
 .direct-controls .finish-btn{width:104px}
 .direct-controls .risk-pill{width:132px;max-width:100%;font-size:9px;gap:4px}
 .direct-controls .risk-pill>i{flex-basis:32px;width:32px;max-width:32px}
 .direct-controls .flow-status,.direct-controls .controls-copy p{font-size:8px}
 .playing .stage{height:calc(100svh - 174px - env(safe-area-inset-bottom));min-height:280px}
}

/* 1.3 sound controls: compact button; sliders are kept inside settings. */
#audio-toggle.muted{color:var(--muted);background:#eae2d9}
.sound-section{background:#fffdf8;border:1px solid var(--line);border-radius:18px;padding:16px;margin:0 0 22px}
.sound-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.sound-heading span{font-size:8px;letter-spacing:1.5px;color:var(--muted)}
.sound-now{display:flex;align-items:center;gap:12px;padding:14px;background:var(--accent-wash);border-radius:13px;margin:14px 0 3px}.sound-now i{font-size:29px;font-style:normal;color:var(--accent-dark)}.sound-now b{font-size:13px}.sound-now small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.audio-volume{padding:11px 0 7px}.audio-volume label{display:flex;justify-content:space-between;font-size:12px;align-items:center}.audio-volume output{font-variant-numeric:tabular-nums;color:var(--accent-dark);font-weight:800;min-width:40px;text-align:right}.audio-volume input{width:100%;height:32px;margin:4px 0 0;accent-color:var(--accent);cursor:pointer;touch-action:pan-y}
.audio-tests{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.audio-tests .button{min-height:37px;font-size:11px;padding:8px 10px;border-radius:11px}.modal-body .sound-help{font-size:10px;line-height:1.7;margin:12px 0 0}
@media(max-width:360px){.topbar .brand{gap:5px}.topbar .brand b{font-size:22px}.topbar .top-right{gap:5px}.topbar .icon-button{width:32px;height:32px}.sound-section{padding:12px}.sound-heading{font-size:12px}.sound-heading span{font-size:7px}}


/* v1.4: one readable next-star objective, persistent teach-by-motion. */
.mobile-objective{display:block;left:22px;right:22px;top:99px;max-width:none;font-size:11px;font-weight:700;line-height:1.4;white-space:normal;text-overflow:clip;background:#fffaf0ed;box-shadow:0 2px 10px #5435230a;min-height:29px}
.mobile-objective.goal-ready{background:#eef8e8ed;color:#4e7d57!important}
.holding .start-hint{display:block}.start-hint small{display:block;font-size:10px;white-space:nowrap;letter-spacing:-.2px;margin-top:3px;font-weight:700}.start-hint b{font-size:23px}
.direct-controls .controls-copy p{white-space:normal;max-width:230px;line-height:1.5}
.duel-home{margin-top:15px;display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid #d7c8e1;background:linear-gradient(105deg,#fbebf0,#eaf3ee);padding:12px 15px;border-radius:15px;text-align:left;font-size:13px;font-weight:800}
.duel-home small{display:block;font-weight:400;font-size:10px;margin-top:4px;color:#928174}.duel-home span:last-child{font-size:22px;color:#a38299}
.duel-intro{text-align:center}.duel-intro h3{font-size:25px;margin:16px 0 8px}.duel-intro .eyebrow{justify-content:center}.duel-intro p{line-height:1.9}.duel-faces{display:flex;justify-content:center;align-items:center;gap:20px}.duel-faces span{width:94px}.duel-faces b{font-size:23px;color:#b69b86}.handoff-face{width:115px;margin:15px auto}.duel-note{font-size:11px;color:#94877e}
.duel-results{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:24px 0}.duel-result{padding:14px;border:2px solid #ecdfd5;border-radius:19px;text-align:center;background:#fffdf8}.duel-result.winner{border-color:#d8b369;background:#fff7e6}.duel-result img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:12px;margin:12px 0}.duel-result strong{font-size:27px;display:block;line-height:1.5}.duel-result strong small{font-size:13px}.duel-result>small{display:block;font-size:10px;color:#958477}
.result-sticker{font-size:11px;background:#f3e9da;color:#967d54;border-radius:30px;display:inline-block;padding:5px 9px;margin:7px 0}.result-photo{width:100%;max-height:360px;object-fit:contain;aspect-ratio:4/5;background:#f9efdf}.result-main{grid-template-columns:minmax(150px,240px) 1fr;gap:24px}
@media(max-width:720px){.mobile-objective{top:85px;left:13px;right:13px;font-size:10px;padding:7px 9px}.start-hint small{font-size:9px}.start-hint b{font-size:22px}.result-main{grid-template-columns:120px 1fr;gap:14px}.duel-result{padding:9px}.duel-result strong{font-size:21px}.duel-results{gap:9px}.duel-intro h3{font-size:22px}}
@media(max-width:360px){.mobile-objective{font-size:9px}.result-main{grid-template-columns:105px 1fr;gap:10px}}

.mobile-objective{position:absolute;z-index:5}.direct-controls .risk-pill{flex-shrink:0}

/* v1.5 — direct, always-available flavor selection. */
.home-stage-foot{display:block;padding:15px 20px}
.home-stage-foot .flavor-picker{margin:0;padding:0;border:0;background:none;width:100%}
.home-stage-foot .flavor-option{flex-direction:row;gap:9px;min-height:60px}
.home-stage-foot .flavor-heading b{color:var(--ink)}
.flavor-picker{margin:0 0 22px;padding:13px 12px 12px;background:#fffcf6;border:1px solid var(--line);border-radius:17px}
.flavor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:11px}
.flavor-heading b{font-size:12px}.flavor-heading span{font-size:10px;color:var(--accent-dark)}
.flavor-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.flavor-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:82px;padding:6px 3px 8px;background:#fffdf9;border:1px solid #ecdfd3;border-radius:13px;transition:border-color .15s,background .15s,transform .15s}
.flavor-option:hover{transform:translateY(-2px);background:#fff8ef}.flavor-option.selected{border:2px solid var(--flavor-shadow);padding:5px 2px 7px;background:color-mix(in srgb,var(--flavor) 24%,#fffdf8)}
.flavor-art{display:block;width:42px;height:47px}.flavor-art svg{width:100%;height:100%}.flavor-label{font-size:12px;font-weight:800;margin-top:2px}
.flavor-check{position:absolute;right:5px;top:4px;line-height:15px;width:15px;height:15px;border-radius:50%;font-size:10px;color:var(--flavor-shadow);font-weight:900}
.flavor-option.selected .flavor-check{background:var(--flavor-shadow);color:white}
.flavor-modal{margin:18px 0 6px}.flavor-modal .flavor-option{min-height:138px}.flavor-modal .flavor-art{width:70px;height:80px}
.flavor-change{position:absolute;right:16px;top:141px;z-index:4;display:flex;align-items:center;gap:5px;min-height:34px;padding:6px 10px;background:#fffaf1e8;border:1px solid #e4d2c4;border-radius:20px;font-size:11px;font-weight:750;touch-action:manipulation}
.flavor-change i{width:12px;height:12px;border-radius:50%;background:var(--flavor,#fff2d8);border:1px solid #9b756546;box-shadow:inset 1px 2px 2px #ffffff70}
.flavor-change small{font-size:9px;font-weight:500;color:#9b8173}.flavor-change:disabled{opacity:1;pointer-events:none;background:#fffaf1b8;border-color:#e4d2c470}.flavor-change:disabled small{display:none}
@media(max-width:760px){.flavor-picker{margin:0 0 16px;padding:10px}.flavor-heading{margin-bottom:7px}.flavor-option{min-height:65px;flex-direction:row;gap:5px;padding:7px 5px}.flavor-option.selected{padding:6px 4px}.flavor-art{width:33px;height:42px}.flavor-check{right:3px;top:3px;width:13px;height:13px;line-height:13px;font-size:9px}.flavor-label{font-size:12px;margin:0}.flavor-change{top:125px;right:12px;font-size:10px;min-height:32px;padding:5px 8px}.flavor-modal .flavor-option{flex-direction:column}.flavor-modal .flavor-art{width:55px;height:65px}}
@media(prefers-reduced-motion:reduce){.flavor-option{transition:none}}

/* v2.0 close-grip illustration assets. Physical gameplay and hit regions are unchanged. */
#art-load-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#fff8edf5;color:#75534e;font-family:var(--font)}
.art-load-card{text-align:center;padding:28px 34px;border:1px solid #ead6ce;background:#fffaf4;border-radius:25px;box-shadow:0 18px 55px #714e2710;max-width:90vw}.art-load-mark{display:block;font-size:32px;color:#d88fa8;margin-bottom:12px}.art-load-card strong{font-size:17px;display:block}.art-load-card p{font-size:12px;line-height:1.6;color:#a08377}.art-load-card button{background:#d47b98;border-radius:12px;color:white;padding:12px 24px;margin-top:10px}
.preview-badge{bottom:auto;top:61px;font-size:10px;padding:6px 12px;background:#fff9edcf}
.stage-brand,.hud{background:#fff9eee8;border:1px solid #fff7eedb;box-shadow:0 4px 18px #66402612}
.art-ready .stage{background:#f5decd}.playing .stage-brand{display:none}
@media(max-width:720px){.preview-badge{top:52px;font-size:9px}.stage-brand{font-size:9px}.stage{height:465px}}
/* v2.1 — viewport-safe PC / phone / tablet layout. No change to game rules or art. */
:root{--app-height:100vh;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
@supports(height:100dvh){:root{--app-height:100dvh}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overscroll-behavior-y:none}
body{min-height:100vh;min-height:100svh}
#app{padding-top:var(--safe-top);padding-left:max(12px,var(--safe-left));padding-right:max(12px,var(--safe-right));padding-bottom:var(--safe-bottom)}
button,input{touch-action:manipulation}
button{ -webkit-user-select:none;user-select:none}
/* Lobby previews are not a controller: let the browser scroll and pinch normally.
 * The playing class is set BEFORE the next game gesture begins. */
#scene,#paw-view,#shop-backdrop{touch-action:pan-y pinch-zoom;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
body:not(.playing) #stage{touch-action:pan-y pinch-zoom}
body:not(.playing) #scene{cursor:auto}
body.playing #scene,body.playing #paw-view,body.playing #shop-backdrop{touch-action:none}
#scene{height:100%;width:100%;display:block}
.stage{isolation:isolate;min-width:0}
.start-hint,.hud-cell,.mobile-objective{pointer-events:none}
.hud .pause-btn{pointer-events:auto}
.icon-button,.hud .pause-btn,#modal-close{min-width:44px;min-height:44px;width:44px;height:44px}
.top-right{gap:6px;flex-shrink:0}
body.playing{overflow:hidden;overscroll-behavior:none}
body.playing #app{display:flex;flex-direction:column;height:var(--app-height);min-height:0;max-height:var(--app-height);padding-bottom:max(8px,var(--safe-bottom));padding-top:var(--safe-top);overflow:hidden}
body.playing #app .topbar{height:auto;min-height:56px;flex:0 0 56px;margin:0 0 8px;padding:0 6px}
body.playing #app .workspace{flex:1;min-height:0;align-items:stretch}
body.playing #app .sidebar{overflow:auto;min-height:0;padding-top:8px;padding-bottom:12px;overscroll-behavior:contain}
body.playing #app .gamebox{min-width:0;min-height:0;display:flex;flex-direction:column;margin:0}
body.playing #app .stage{height:auto;max-height:none;min-height:0;flex:1}
body.playing #app .controller{flex:0 0 auto;min-height:99px;padding:9px 14px;gap:10px}
body.playing #app .footer{display:none}
.direct-controls .finish-btn{min-height:48px}
.direct-controls .risk-pill{max-width:148px}
.modal-layer{padding:max(10px,var(--safe-top)) max(10px,var(--safe-right)) max(10px,var(--safe-bottom)) max(10px,var(--safe-left));height:var(--app-height);max-height:var(--app-height);overscroll-behavior:contain}
.modal{max-height:100%;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.modal>header{position:sticky;top:0;z-index:2;background:#fffaf5f5;backdrop-filter:blur(8px)}
.tabs{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;-webkit-overflow-scrolling:touch}.tab{flex-shrink:0;min-height:40px}
.audio-volume input{min-height:44px;touch-action:pan-y}
#audio-toggle.needs-tap{box-shadow:0 0 0 3px #e7b66e6b}
#art-load-gate{padding:max(12px,var(--safe-top)) 12px max(12px,var(--safe-bottom));overflow:auto}
.art-load-card{max-width:min(440px,92vw)}
.export-preview{display:block;max-width:min(100%,290px);max-height:45vh;margin:10px auto 16px;border-radius:16px;object-fit:contain;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}
.export-actions{display:flex;gap:9px;flex-wrap:wrap}.export-actions .button{min-height:46px;flex:1 1 180px}.export-help{font-size:12px;line-height:1.8;color:#836f64;word-break:keep-all}
.export-json{width:100%;height:135px;font:11px/1.5 monospace;border:1px solid #dfcec0;border-radius:12px;padding:10px;user-select:text;-webkit-user-select:text}
.mobile-open-note{padding:10px 12px;border:1px solid #e3d5c6;background:#fff8eb;border-radius:12px;line-height:1.7;font-size:11px}
@media(max-width:980px){
 body.playing #app .workspace{display:flex;flex-direction:column;gap:0}
 body.playing #app .sidebar{display:none}
 body.playing #app .gamebox{flex:1;width:100%}
 body.playing #app{padding-left:max(8px,var(--safe-left));padding-right:max(8px,var(--safe-right))}
 body.playing #app .brand b{font-size:21px}.playing #brand-icon{width:36px;height:36px}.playing .brand{gap:6px}.playing .brand small{font-size:8px}
 .playing .version-tag{display:none}
 body.playing .hud{top:10px;left:10px;right:10px;padding:6px 10px;gap:16px;min-height:62px}
 body.playing .hud-cell b{font-size:22px}
 body.playing .mobile-objective{left:12px;right:12px;top:79px;min-height:29px;font-size:10px;line-height:1.4;padding:6px 9px}
 body.playing .flavor-change{top:116px;right:12px;min-height:44px}
 body.playing .settle-cover{top:119px}
}
@media(max-width:720px){
 #app .topbar .brand b{font-size:22px}.topbar #brand-icon{width:40px;height:40px}.topbar .brand{gap:5px}.topbar .brand small{font-size:8px}
 #app .topbar{height:65px;margin-bottom:10px}
 #app .stage:not(.unused){max-height:600px}
 body.playing #app .stage{max-height:none}
 .flavor-options .flavor-option{min-height:56px}
 .settings-actions .button{min-height:44px}.mini-links button{min-height:44px}
 body.playing #app .controller{min-height:100px;padding:8px 12px}
 .direct-controls .controls-copy p{font-size:9px;line-height:1.4;margin:3px 0 0}
 .direct-controls .finish-btn{width:118px;min-height:48px}
 .modal-layer{padding:max(8px,var(--safe-top)) max(8px,var(--safe-right)) max(8px,var(--safe-bottom)) max(8px,var(--safe-left))}
 .modal>header{padding:12px 14px 10px}.modal-body{padding:15px}
}
@media(max-width:360px){
 #app .topbar .brand b{font-size:19px}.topbar #brand-icon{width:31px;height:32px}.topbar .brand small{letter-spacing:0;font-size:7px}.topbar .brand{gap:4px}
 .top-right{gap:4px}.topbar .icon-button{width:44px;height:44px}
 body.playing #app .topbar{padding:0}
 .direct-controls .finish-btn{width:106px}
 .direct-controls .risk-pill{width:132px;font-size:9px}
}
/* Short landscape: keep the finish button BESIDE the stage, never below the screen. */
@media(orientation:landscape) and (max-height:600px){
 body.playing #app{max-width:1200px}
 body.playing #app .topbar{flex-basis:46px;min-height:46px;margin-bottom:4px}
 body.playing #app .workspace{display:flex;gap:0}
 body.playing #app .sidebar{display:none}
 body.playing #app .gamebox{flex:1;flex-direction:row;border-radius:18px}
 body.playing #app .stage{min-width:0;height:auto;min-height:0;flex:1}
 body.playing #app .controller{width:190px;max-width:29%;flex:0 0 190px;min-height:0;padding:12px;flex-direction:column;align-items:stretch;justify-content:flex-end;border-top:0;border-left:1px solid #e7dacb;gap:16px}
 body.playing .controls-copy{flex:0 0 auto;max-width:100%}
 body.playing .controls-copy p{font-size:10px;line-height:1.6}
 body.playing .direct-controls .finish-btn{width:100%;min-height:48px;flex-shrink:0}
 body.playing .hud{top:6px;left:8px;right:8px;padding:3px 9px;min-height:50px;gap:14px;border-radius:13px}
 body.playing .hud-cell small{font-size:8px;display:inline;margin-right:6px}.playing .hud-cell b{font-size:19px;display:inline}
 body.playing .mobile-objective{top:62px;left:8px;right:8px;font-size:9px;padding:4px 8px;min-height:23px}
 body.playing .flavor-change{top:92px;right:8px;padding:4px 8px;font-size:9px;min-height:44px}
 body.playing .settle-cover{top:94px;padding:7px}.playing .settle-cover b{font-size:22px}
 body.playing .pause-cover h2{font-size:18px;margin:5px 0}.playing .pause-cover p{font-size:10px;margin:5px 0 10px}.playing .pause-cover>span{width:45px;height:40px}
 .stage-toast{top:37%}
}
@media(orientation:landscape) and (max-height:350px){body.playing #app .topbar{flex-basis:44px;min-height:44px}body.playing #app .controller{gap:10px;padding:8px}.playing .controls-copy .mini-metric{font-size:8px}}
@media(prefers-reduced-motion:reduce){.modal>header{backdrop-filter:none}}
/* First-time phone visitors should not have to discover a start button below a large preview. */
.phone-home-action{display:none}
@media(max-width:980px){
 body:not(.playing) #app{padding-bottom:calc(90px + var(--safe-bottom))}
 .phone-home-action{position:fixed;left:max(9px,var(--safe-left));right:max(9px,var(--safe-right));bottom:max(9px,var(--safe-bottom));z-index:35;display:flex;align-items:center;gap:10px;padding:10px;background:#fff9f1ed;border:1px solid #e8d5c5;box-shadow:0 3px 24px #5e432625;backdrop-filter:blur(9px);border-radius:19px}
 .phone-home-action .button{min-height:48px;padding:10px 12px}
 .phone-home-action .primary{flex:1;justify-content:space-between}
 .phone-home-action .ghost{font-size:12px}
 body.playing .phone-home-action{display:none}
}
.modal{overflow:hidden}.modal>header{flex:0 0 auto}.modal-body{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.toggle{min-height:44px;min-width:54px}


/* v2.8: platform-neutral file and link sharing only. */
.share-format-panel{background:#fffdf8;border:1px solid #e1d2c4;border-radius:18px;padding:16px;margin:15px 0}
.share-format-panel h4{margin:0 0 7px;font-size:16px;color:var(--ink)}
.share-format-panel p{font-size:12px!important;line-height:1.75!important;margin:7px 0 12px;color:#705c53}
.share-format-panel .button{min-height:48px;justify-content:center!important;font-size:14px}
.share-format-number{display:inline-grid;place-items:center;width:25px;height:25px;margin-right:7px;background:var(--accent-wash);color:var(--accent-dark);border-radius:50%;font-size:13px}
.share-format-panel .link-main-actions{margin-bottom:0}
.share-format-panel .link-scope{padding:10px 12px;margin:10px 0}
.share-format-panel .link-scope p{margin-bottom:4px!important}
.share-format-panel .link-url{font-size:13px;min-height:76px}
.export-actions .button{min-height:48px}
@media(max-width:420px){.share-format-panel{padding:13px}.share-format-panel .link-main-actions{grid-template-columns:1fr}.link-intro h3{font-size:20px}}

/* v2.2: readable pastel UI. Layout and approved artwork are retained. */
:root{--muted:#75635d;--action-bg:#a54668;--action-shadow:#773649}
body[data-team=dog]{--action-bg:#326e70;--action-shadow:#245354}
.button.primary,.tab.active,.team-check{background:var(--action-bg);color:#fff}
.button.primary{box-shadow:0 4px 0 var(--action-shadow)}
.button.primary:disabled{background:#d6ccc7;color:#6c5b54;box-shadow:none}
.result-bottom{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}
.result-bottom button,.equip-inline,.pin-button,.text-button{min-height:44px;min-width:44px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;color:#704a55;border-radius:12px}
.result-bottom button,.pin-button{background:#fff8ee;border:1px solid #d5b9b8}
body[data-team=dog] .result-bottom button,body[data-team=dog] .pin-button{color:#295e5e;border-color:#a5c4bb}
.result-bottom button:hover,.pin-button:hover{background:var(--accent-wash)}
.pin-button[aria-pressed=true]{background:var(--accent-wash);border-color:var(--action-bg);font-weight:800}
.result-summary,.result-goals,.goal b,.level-card small,.help-box,.image-quality-note,.export-help{font-size:12px;line-height:1.7;color:#705c53}
.modal-body p{font-size:13px;color:#705c53}
.modal .setting-row small{font-size:12px;line-height:1.6;color:#705c53}
.modal .tab{min-height:44px;min-width:44px;font-size:12px}
.modal button:focus-visible{outline-color:var(--action-bg)}
.direct-controls .controls-copy p,body.playing .direct-controls .controls-copy p{font-size:12px;line-height:1.45;color:#70594e;margin:4px 0 0;word-break:keep-all}
.direct-controls .flow-status{font-size:12px;color:#5c4a43}
.direct-controls .mini-metric{font-size:12px;color:var(--accent-dark);line-height:1.4;margin:3px 0 0}
.direct-controls .risk-pill{font-size:11px;width:max-content;max-width:166px;min-height:26px;padding:4px 8px;color:#3f6750}
.direct-controls .risk-pill>i{max-width:24px;flex:0 1 24px;min-width:14px;margin-left:0}
.direct-controls .risk-pill.warning{color:#82601b}.direct-controls .risk-pill.danger{color:#9d3c35}
body.playing #app .mobile-objective{font-size:12px;line-height:1.45;color:#69404d;min-height:32px;white-space:normal;overflow-wrap:anywhere}
body[data-team=dog].playing #app .mobile-objective{color:#295f5e}
body.playing #app .hud-cell small{font-size:11px;color:#715a4c}
body.playing #app .flavor-change{font-size:12px;color:#6d4954}
.pause-cover.resume-wait{inset:112px 12px auto;background:#fffbf1ed;border:1px solid #d8c6af;border-radius:15px;padding:10px 12px;display:block;pointer-events:none;backdrop-filter:blur(3px)}
.pause-cover.resume-wait>span{display:none}.pause-cover.resume-wait h2{font-size:15px;margin:0 0 3px}
.pause-cover.resume-wait p{font-size:12px;margin:0 0 8px;color:#6e584d}
.pause-cover.resume-wait .button{pointer-events:auto;min-height:44px;font-size:12px;padding:8px 12px}
.album-grid{align-items:start;gap:12px}
.album-tile{min-width:0;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:#fffdf7}
.album-tile.favorite{border:2px solid var(--action-bg)}
.album-tile .album-card{border:0;width:100%;border-radius:0;text-align:left}
.album-tile .pin-button{width:calc(100% - 12px);margin:0 6px 8px;font-size:12px}
.album-tile .album-card small{font-size:11px;color:#6e5b52}
.first-scoop-label{display:block;font-size:12px;font-weight:800;color:var(--accent-dark);margin:6px 0}
.detail-pin{width:100%;margin:4px 0 12px}.image-quality-note{text-align:center;font-size:12px}
.backup-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.backup-summary{padding:18px 12px;border:1px solid #dcc6b5;background:#fffdf6;border-radius:16px;display:flex;flex-direction:column;gap:8px;text-align:center}
.backup-summary strong{font-size:27px;color:var(--accent-dark)}.backup-summary strong small{font-size:14px;color:#79675c}
.backup-summary span{font-size:12px;color:#6c584e}
.modal-body .backup-warning{background:#fff1dd;color:#8b3e28;border:1px solid #dfb993;border-radius:12px;padding:12px;font-weight:700}
.restore-banner{padding:13px;background:var(--accent-wash);border-radius:14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}
.restore-banner small{flex-basis:100%;font-size:12px;color:#655346}
.practice-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.practice-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;padding:22px 17px;border:1px solid #dfcbb8;border-radius:20px;background:#fffdf5}
.practice-card:hover{border-color:var(--action-bg);background:var(--accent-wash)}
.practice-card b{font-size:17px}.practice-card span:not(.practice-glyph){font-size:13px;color:#705b4f;line-height:1.8}
.practice-card em{font-style:normal;color:var(--accent-dark);font-weight:700;font-size:12px}
.practice-glyph{width:44px;height:44px;background:var(--accent-wash);border-radius:50%;text-align:center;line-height:44px;color:var(--action-bg);font-size:26px}
@media(max-width:720px){
 body.playing #app .controller{min-height:114px}
 .result-bottom button{flex:1 1 calc(50% - 8px)}
 .result-actions{gap:10px}.result-actions .button{font-size:13px}
 .collection-summary{font-size:12px;gap:8px;flex-wrap:wrap}
 .practice-choices{grid-template-columns:1fr}.practice-card{padding:16px;gap:8px}
 .modal>header h2{font-size:20px}.modal-body .result-summary{font-size:13px}
}
@media(max-width:360px){.direct-controls .risk-pill{font-size:11px;max-width:154px}.direct-controls .finish-btn{width:106px}.backup-pair{gap:8px}.backup-summary{padding:12px 8px}}
@media(orientation:landscape) and (max-height:600px){
 body.playing #app .controller{min-height:0;gap:10px}
 body.playing #app .controls-copy p,body.playing #app .controls-copy .mini-metric{font-size:12px;line-height:1.4}
 body.playing #app .mobile-objective{top:62px;font-size:12px;line-height:1.35;min-height:29px}
 body.playing #app .flavor-change{top:100px;font-size:12px}
 .pause-cover.resume-wait{inset:102px 10px auto;padding:8px}.pause-cover.resume-wait h2{font-size:13px}.pause-cover.resume-wait p{font-size:12px}
 .pause-cover:not(.resume-wait)>span{max-height:40px}.pause-cover:not(.resume-wait)>span svg{height:40px}
}

/* v2.5 Result link UI: readable controls on small screens, no third-party SDK. */
.link-intro{text-align:center;margin:4px 0 16px}.link-intro h3{font-size:22px;line-height:1.4;margin:8px 0}.link-intro p{font-size:13px;line-height:1.7;margin:6px 0}.link-kicker{font-size:10px;letter-spacing:2px;font-weight:800;color:var(--accent-dark)}
.link-summary-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0 18px}.link-summary-grid.duo{grid-template-columns:repeat(2,minmax(0,1fr))}.link-score{border-radius:22px;border:1px solid #efd0da;background:linear-gradient(145deg,#fff8ee,#fce9ef);padding:18px 12px;text-align:center;overflow:hidden}.link-score.dog{border-color:#b9d3c9;background:linear-gradient(145deg,#fff8e8,#e7f3e9)}.link-avatar{width:76px;height:66px;margin:0 auto 5px}.link-team{font-size:13px;font-weight:800;display:block}.link-height{font-size:46px;letter-spacing:-1px;line-height:1.3;display:block;margin-top:5px}.link-height small{font-size:17px;letter-spacing:0}.link-outcome{margin:3px 0 10px!important;font-size:12px!important;line-height:1.5!important}.link-mode{font-size:13px;font-weight:700;line-height:1.5;word-break:keep-all}.link-stars{font-size:23px;color:#986321;letter-spacing:3px;margin:9px 0}.link-date{display:block;font-size:11px;margin-top:10px;color:#755e52}.link-match-title{text-align:center;font-size:23px;font-weight:850;margin:10px 0;color:var(--accent-dark)}
.link-scope{border:1px solid #dab78d;background:#fff6df;padding:14px;border-radius:14px;margin:12px 0}.link-scope.ok{border-color:#b6cdb6;background:#f1f7ed}.link-scope p{font-size:12px!important;line-height:1.7!important;margin:7px 0!important}.link-scope .text-button{font-size:12px;min-height:44px;text-decoration:underline;padding:8px 0}.link-label{display:block;font-weight:800;font-size:13px;margin:14px 0 8px}.link-url,.link-base-input{box-sizing:border-box;width:100%;border:1px solid #d1c3b8;border-radius:12px;background:#fffdf8;color:#59473f;padding:12px;font:14px/1.6 var(--font);min-width:0}.link-url{resize:vertical;min-height:84px;word-break:break-all;overflow-wrap:anywhere}.link-base-input{font-size:16px;min-height:48px}.link-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:13px 0}.link-main-actions .button{min-height:48px;padding:11px;font-size:13px;white-space:normal}.link-main-actions .button:last-child:nth-child(3){grid-column:1/-1}.link-help{font-size:12px!important;line-height:1.8!important;color:#756359!important;overflow-wrap:anywhere}.link-feedback{font-size:13px;line-height:1.7;font-weight:700;color:var(--accent-dark);margin:12px 0;overflow-wrap:anywhere}.link-details{font-size:12px;line-height:1.8;margin:12px 0;border:1px solid #e7dccf;border-radius:12px;padding:0 12px}.link-details summary{cursor:pointer;font-weight:750;padding:12px 0;min-height:44px}.link-details p{font-size:12px!important;line-height:1.8!important}.link-photo-button,.link-return{justify-content:center!important;margin-top:10px;font-size:13px}.link-trust{border-radius:14px;background:#f4eee5;padding:15px;margin:15px 0;font-size:13px}.link-trust p{font-size:12px!important;line-height:1.8!important;margin:8px 0 0!important}.link-album-button{margin-top:12px}.link-setup-button{margin:10px 0 14px}
@media(max-width:420px){.link-intro h3{font-size:20px}.link-summary-grid.duo .link-height{font-size:30px}.link-summary-grid.duo .link-avatar{width:62px;height:55px}.link-summary-grid.duo .link-score{padding:13px 8px}.link-summary-grid.duo .link-team{font-size:12px}.link-summary-grid.duo .link-mode{font-size:12px}.link-summary-grid.duo{gap:8px}.link-base-input{font-size:16px}}


/* v2.9.5: readable mode captions and the same team choices nearer the preview. */
@media(max-width:980px){
 .mode-btn>span[data-icon]{grid-column:1;grid-row:1 / span 2;align-self:center;display:grid;place-items:center}
 .mode-btn>b{grid-column:2;grid-row:1;min-width:0}
 .mode-btn>small{grid-column:2;grid-row:2;font-size:11px;line-height:1.45;word-break:keep-all;min-width:0;margin-top:3px}
 .mobile-team-slot{order:-1;width:100%;min-width:0;flex:none}
 .mobile-team-slot .teams{margin:0 0 12px;gap:9px}
 .mobile-team-slot .team-card{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;column-gap:7px;align-items:center;padding:8px;min-height:78px}
 .mobile-team-slot .team-card>.face{grid-column:1;grid-row:1 / span 2;width:58px;height:58px;margin:0;display:block}
 .mobile-team-slot .team-card>b{grid-column:2;align-self:end;font-size:14px}
 .mobile-team-slot .team-card>small{grid-column:2;align-self:start;font-size:10px;line-height:1.4;word-break:keep-all}
 .mobile-team-slot .team-check{right:6px;top:5px;width:15px;height:15px;font-size:10px}
 body.playing .mobile-team-slot{display:none!important}
}
.share-simple-intro{line-height:1.6}.share-scope-note{font-size:12px!important;line-height:1.5!important;color:#716256}
.link-details>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;padding:11px 0}
.result-top h3{overflow-wrap:break-word;word-break:keep-all}



/* Production ad area: normal document flow, never a sticky overlay. */
#site-ad{flex:0 0 auto;padding-top:24px;position:relative;box-sizing:content-box}
.site-ad-inner{width:var(--nm-ad-column,100%);margin-left:var(--nm-ad-left,0px);position:relative}
.site-ad-label{font-size:11px;line-height:14px;color:#7d726c;width:var(--nm-unit-width,320px);max-width:100%;margin:0 auto 8px;text-align:left}
#ad-host{min-height:var(--nm-unit-height,50px);width:100%;margin:0 auto}
/* The responsive unit uses Google's documented exact-size CSS pattern.
   data-ad-format=auto and data-full-width-responsive are intentionally absent. */
.nm_top_banner{display:block;width:320px;height:50px;margin:0 auto}
@media(min-width:768px){.nm_top_banner{width:468px;height:60px}}
@media(min-width:1200px){.nm_top_banner{width:728px;height:90px}}
/* Documented responsive-screen exception. No application lifecycle toggles on ads. */
@media(max-width:351px){.nm_top_banner{display:none}}
.site-ad-clearance{height:160px;pointer-events:none}
body.has-ad-slot:not(.playing) #app>.topbar{margin-bottom:0}
body.has-ad-slot .modal-layer{top:var(--nm-ad-ui-top,0px);bottom:0;height:calc(var(--app-height) - var(--nm-ad-ui-top,0px));max-height:calc(var(--app-height) - var(--nm-ad-ui-top,0px))}
/* If a desktop ad was requested before a resize, retain it, scroll the document,
   and pause the game. Never squash the game or remove a live slot mid-document. */
body.playing.has-ad-slot{overflow-y:auto;overscroll-behavior:auto}
body.playing.has-ad-slot #app{height:max(var(--app-height),960px);max-height:none;overflow:visible}
body.playing.has-ad-slot #app .workspace{min-height:600px}
body.playing.has-ad-slot #app .stage{min-height:480px}
.site-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 22px;padding:0 0 20px;color:#705c53;font-size:12px}
.site-links a,.site-links button{color:inherit;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:10px 2px;display:inline-flex;align-items:center;font-size:12px}
body.playing .site-links{display:none}
.runtime-note{font-size:12px;line-height:1.7}.runtime-note a{color:#725348}
.phone-home-action.near-ad{visibility:hidden;pointer-events:none}



.standalone-info{line-height:1.8;font-size:14px;word-break:keep-all}
.standalone-info h1{font-size:25px;margin:12px 0 18px}
.standalone-info h2{font-size:18px;margin:24px 0 8px}
.standalone-info p,.standalone-info li{font-size:14px!important;line-height:1.85!important}
.standalone-info .note{background:#f6eee5;padding:14px;border-radius:12px}
.standalone-info a{color:#984461;text-underline-offset:3px}
.standalone-info dt{font-weight:700}.standalone-info dd{margin:4px 0 14px}
.standalone-info code{word-break:break-all}


/* Bigger result expressions; home/brand/paws/photos retain their existing sizes. */
@media(max-width:720px){
 .result-top>.face{width:clamp(128px,36vw,152px);height:clamp(128px,36vw,152px);max-width:100%;margin:0 auto 6px}
 .result-top>.face>svg{display:block;width:100%;height:100%}
}
@media(max-width:1000px) and (max-height:520px) and (orientation:landscape){
 .result-top>.face{width:112px;height:112px;margin:0 auto 6px}
 .result-top>.face>svg{display:block;width:100%;height:100%}
}

/* v2.9.6 — enlarge ONLY sharing result portraits; gameplay artwork unchanged. */
.link-summary-grid .link-avatar{width:150px;height:150px;margin:0 auto 10px;flex-shrink:0}
.link-summary-grid .link-avatar>svg{display:block;width:100%;height:100%}
.link-summary-grid.duo .link-avatar{width:124px;height:124px;max-width:100%}
.sns-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
.sns-actions .button,.export-actions a.button{min-height:48px;text-decoration:none;text-align:center;line-height:1.4;word-break:keep-all}
.sns-kakao{background:#fee500;color:#2f241e;border:1px solid #e0c900}
.sns-instagram{background:#a23c72;color:white;border:1px solid #8c2d60}
.sns-x{background:#242424;color:white;border:1px solid #242424}
.photo-save-preview{touch-action:pan-y;pointer-events:auto;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto;max-width:min(100%,330px);max-height:none;width:100%;height:auto}
#social-link-url{font-size:14px}#export-status:empty{display:none}
@media(max-width:720px){.link-summary-grid:not(.duo) .link-avatar{width:clamp(140px,42vw,164px);height:clamp(140px,42vw,164px)}.link-summary-grid.duo .link-avatar{width:clamp(86px,25vw,120px);height:clamp(86px,25vw,120px)}.link-score{padding:17px 12px}.sns-actions{gap:10px}.photo-save-preview{max-width:100%;max-height:none}}
@media(min-width:721px){.sns-actions{grid-template-columns:1fr 1fr}.sns-actions .sns-x{grid-column:1/-1}}

/* v2.9.7 · compact accessible locale selector and invitation */
.locale-picker{position:relative;display:flex;align-items:center;height:44px;max-width:235px;background:var(--paper);border:1px solid var(--line);border-radius:12px;gap:6px;color:var(--ink);flex:none}
.locale-globe{padding-left:11px;font-size:19px;pointer-events:none}.locale-arrow{position:absolute;right:10px;pointer-events:none}
.locale-picker select{appearance:none;-webkit-appearance:none;width:100%;max-width:205px;height:44px;border:0;background:transparent;padding:8px 25px 8px 1px;font:600 12px var(--font);color:inherit;cursor:pointer;touch-action:manipulation}
.locale-picker select:focus-visible{outline:3px solid var(--accent);border-radius:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.game-invite{display:flex;flex-direction:column;align-items:center;gap:8px;margin:16px 0}.game-invite .join-game{width:100%;min-height:48px;text-decoration:none}.game-invite small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.photo-invite-preview{display:block}.photo-invite-preview:focus-visible{outline:3px solid var(--accent)}
html:not([lang=ko]) h1{font-size:30px;letter-spacing:-.4px}html:not([lang=ko]) .button{white-space:normal;text-align:center;overflow-wrap:anywhere}
html:not([lang=ko]) .team-card small,html:not([lang=ko]) .mode-btn small{line-height:1.5}
html:not([lang=ko]) .start-hint small{max-width:175px;white-space:normal}html:not([lang=ko]) .risk-pill{max-width:190px}
html:not([lang=ko]) .modal h2{overflow-wrap:anywhere}html:not([lang=ko]) .modal .result-top h3{font-size:24px}
@media(max-width:720px){
 .topbar{height:auto!important;min-height:94px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:8px;position:relative}
 .topbar .brand{flex:1;min-width:0}.top-right{flex-wrap:wrap;gap:6px;justify-content:flex-end}
 .locale-picker{order:-1;max-width:190px}.locale-picker select{font-size:12px;max-width:165px}
 .topbar .top-right{display:contents}.topbar .locale-picker{order:9;width:100%;max-width:none;height:40px;margin-top:2px}
 .topbar .locale-picker select{max-width:none;height:40px;font-size:13px}.locale-picker .locale-globe{font-size:19px}
 html:not([lang=ko]) .brand b{font-size:21px}html:not([lang=ko]) .brand small{font-size:10px;letter-spacing:0}
 html:not([lang=ko]) .mobile-objective{line-height:1.5;font-size:12px}
 html:not([lang=ko]) .finish-btn{min-width:92px;padding:10px 12px}
 html:not([lang=ko]) .phone-home-action .button{font-size:12px;padding:10px}
 .game-invite .join-game{font-size:16px}
}
@media(max-width:380px){.topbar .brand b{font-size:20px}.topbar .icon-button{width:36px;height:40px}.topbar{column-gap:5px}.brand{gap:6px}.brand #brand-icon{width:42px}}

.locale-picker.locale-dialog{width:100%;max-width:100%;margin:0 0 18px}.locale-picker.locale-dialog select{max-width:none;font-size:13px}
