:root{font-family:"Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;color:#283e3a;background:#f6f5ed;font-synthesis:none;font-weight:600;--teal:#238675;--deep:#225b50;--coral:#e78067;--muted:#788b80;--line:#dfe4d8;--cream:#fffdf6}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 0 32%,#e5eddf 0,transparent 50%),#f6f5ed}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #cf684d;outline-offset:4px}button{transition:transform .15s,background .15s,box-shadow .15s}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}img{display:block;object-fit:cover}.app{max-width:1160px;margin:auto;padding:26px 40px 20px}.game-header{display:flex;align-items:center;border-bottom:1px solid var(--line);padding-bottom:20px;gap:16px}.icon-button{width:40px;height:40px;border:1px solid #dce2d6;border-radius:50%;background:#fffdf8;color:var(--deep);display:grid;place-items:center;font-size:21px}.back{font-size:24px}.brand>span{font-size:9px;letter-spacing:.15em;color:var(--muted)}.brand h1{font-size:21px;font-weight:900;letter-spacing:.035em;margin-top:2px}.header-actions{display:flex;gap:9px;margin-left:auto}#sound-button[aria-pressed=false]{color:#9da59a;background:#eeeee4}#sound-button[aria-pressed=false]:after{content:"";position:absolute;width:24px;height:1px;background:currentColor;transform:rotate(-45deg)}.eyebrow{display:block;font-size:10px;letter-spacing:.19em;font-weight:800;color:var(--teal)}.team-screen{display:grid;grid-template-columns:.85fr 1.15fr;gap:58px;align-items:center;padding:40px 0 30px}.team-intro>.eyebrow{font-size:10px;letter-spacing:.15em}.tiny-paw{color:var(--coral);font-size:11px;margin-right:6px}.team-intro h2{font-size:60px;font-weight:900;letter-spacing:-.06em;line-height:1.3;margin:20px 0 19px}.team-intro h2 em{font-style:normal;color:var(--teal);position:relative}.team-intro h2 em:after{content:"";position:absolute;left:2px;right:-8px;bottom:3px;border-bottom:8px solid #e9c97670;border-radius:50%;transform:rotate(-4deg);z-index:-1}.intro-copy{font-size:14px;line-height:2;color:#677b6f}.hero-medals{height:164px;display:flex;align-items:center;padding-left:10px;margin:7px 0 13px}.hero-medals img{width:126px;height:126px;position:relative;border:8px solid #5ca591;border-radius:50%;box-shadow:0 6px 0 #327464,0 14px 20px #344d3820;transform:rotate(-14deg)}.hero-medals img:nth-child(2){margin-left:-26px;border-color:#edca73;box-shadow:0 6px 0 #b3964f,0 14px 20px #344d3820;transform:translateY(-9px) rotate(9deg);z-index:1}.hero-medals img:nth-child(3){margin-left:-26px;border-color:#e9a18a;box-shadow:0 6px 0 #b46b58,0 14px 20px #344d3820;transform:rotate(17deg)}.photo-note{display:flex;align-items:center;gap:12px}.camera-icon{width:39px;height:39px;display:grid;place-items:center;flex-shrink:0;background:#e5eadd;color:var(--teal);border-radius:12px;font-size:24px}.photo-note strong{font-size:12px}.photo-note p{font-size:10px;color:#7b897c;line-height:1.9;margin-top:4px}.stage-route{display:flex;align-items:center;gap:8px;font-size:9px;color:#748376;border-top:1px dashed #d3dbc9;margin-top:26px;padding-top:18px;white-space:nowrap}.stage-route span{display:flex;align-items:center;gap:5px}.stage-route b{background:#e4e8da;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;font-size:9px}.stage-route i{font-style:normal;color:#9aa58e}.lineup-panel{background:var(--cream);padding:27px 26px 14px;border:1px solid #e1e6da;border-radius:28px;box-shadow:0 8px 0 #e4e8db80,0 18px 40px #39493005}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:10px}.section-heading h3{font-size:18px;letter-spacing:-.02em;margin-top:7px}.selection-count{font-size:12px;color:#91a294;white-space:nowrap}.selection-count b{font-size:28px;color:var(--teal);font-variant-numeric:tabular-nums}.dog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}.dog-card{min-width:0;text-align:center}.dog-select{width:100%;position:relative;padding:6px 5px 5px;background:transparent;border-radius:18px;display:flex;align-items:center;flex-direction:column;gap:8px}.dog-select:hover{background:#edf2e7}.dog-photo{width:90px;max-width:100%;aspect-ratio:1;border-radius:50%;padding:4px;background:#eeeee4;border:2px solid transparent;transition:border-color .2s,transform .2s}.dog-photo img{width:100%;height:100%;border-radius:50%;background:#f2ecdf}.dog-select[aria-pressed=true] .dog-photo{border-color:var(--teal);background:#fff;box-shadow:0 3px 0 #d4e6d9}.dog-select[aria-pressed=true]{background:#edf3e8}.dog-order{position:absolute;top:3px;right:calc(50% - 46px);width:23px;height:23px;border-radius:50%;background:var(--teal);border:2px solid var(--cream);color:#fff;font-size:11px;display:grid;place-items:center}.dog-select[aria-pressed=false] .dog-order{display:none}.dog-name{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-photo{background:transparent;font-size:10px;color:#7b897b;border-bottom:1px solid #d6ddcf;padding:4px 0 2px;margin-top:3px}.edit-photo:hover{color:var(--teal)}.team-launch{display:flex;align-items:center;gap:15px;border-top:1px solid #e6e9dc;margin-top:23px;padding-top:18px}.selected-team{display:flex;min-width:110px}.selected-slot{width:38px;height:38px;border-radius:50%;border:1px dashed #bacdb9;background:#edf1e5;display:grid;place-items:center;color:#a0b39b;font-size:14px;margin-left:-3px}.selected-slot img{width:100%;height:100%;border:2px solid #fffdf5;border-radius:50%}.selected-slot.filled{border:1px solid var(--teal)}.primary-button{background:var(--teal);color:#fffdf2;display:flex;align-items:center;justify-content:center;gap:16px;min-height:49px;padding:13px 20px;border:1px solid #1e7969;border-radius:14px;box-shadow:0 4px 0 #1e6759;font-size:14px;font-weight:800}.primary-button span{font-size:19px}.primary-button:hover:not(:disabled){background:#197b69}.primary-button:disabled{background:#e4eadd;color:#98a690;border-color:#dde4d4;box-shadow:0 3px 0 #d8dfce}.team-launch .primary-button{flex:1;font-size:12px;padding:10px 13px;gap:9px}.selection-message{text-align:center;font-size:10px;color:#82907b;margin:13px 0 0;min-height:18px}.page-footer{display:flex;justify-content:space-between;padding-top:20px;border-top:1px solid var(--line);font-size:9px;color:#8b9684;letter-spacing:.08em}.page-footer span:last-child{font-size:8px;letter-spacing:.2em}.load-status{text-align:center;padding:55px 0;font-size:13px;color:#71846d;line-height:1.8}.battle-screen{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:20px 26px;padding:24px 0 28px}.battle-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.battle-heading h2{font-size:23px;margin-top:5px}.stage-dots{list-style:none;display:flex;gap:12px;padding:0;margin:0}.stage-dots li{width:29px;height:29px;display:grid;place-items:center;background:#e7eadd;color:#98a18e;border-radius:50%;font-size:11px}.stage-dots li.active{background:var(--teal);color:white;box-shadow:0 0 0 4px #dee8d7}.stage-dots li.done{background:#dbb662;color:#fff}.arena{background:#e7eddf;border:1px solid #d0ddc9;border-radius:25px;overflow:hidden;box-shadow:0 6px 0 #d3ddc9}.arena-top{display:flex;align-items:center;justify-content:space-between;padding:17px 22px 0}.arena-label{font-size:9px;letter-spacing:.2em;color:#78917d}.arena-tag{font-size:10px;color:#78917d;border:1px solid #c6d6bf;padding:3px 9px;border-radius:6px}.viewport{position:relative;width:100%;height:485px;touch-action:none;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.medal-targets{position:absolute;inset:0;pointer-events:none}.medal-target{position:absolute;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent;padding:0;pointer-events:none;color:transparent}.medal-target:active:not(:disabled){transform:translate(-50%,-50%)}.medal-target:focus-visible{outline:3px dashed #fff9d7;outline-offset:3px}.board-side{position:absolute;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.08em;pointer-events:none}.cpu-side{top:13px;color:#b77760}.player-side{bottom:15px;color:#477b64}.arena-bottom{padding:0 21px 17px;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:9px;color:#7e917b}.arena-bottom>span{white-space:nowrap}.team-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--teal);margin-right:4px}.team-dot.cpu{background:var(--coral)}.battle-console{display:flex;flex-direction:column;gap:16px;padding-top:4px}.scoreboard{display:flex;align-items:center;justify-content:space-between;gap:5px;border-bottom:1px solid var(--line);padding-bottom:20px}.team-score{text-align:center;flex:1;color:var(--teal)}.team-score>span{font-size:11px}.team-score strong{display:flex;gap:5px;justify-content:center;align-items:baseline;margin:4px 0 9px}.team-score strong b{font-size:39px;font-weight:800;line-height:1}.team-score small{font-size:11px}.cpu-score{color:#c9755f}.score-vs{font-size:12px;color:#b4b79c;font-style:italic}.mini-roster{display:flex;justify-content:center;gap:3px}.mini-roster img{width:29px;height:29px;border:2px solid #7aaf99;border-radius:50%;transition:opacity .2s,filter .2s}.cpu-score img{border-color:#e6a18b}.mini-roster img.out{filter:grayscale(1);opacity:.25}.turn-panel{display:flex;align-items:center;gap:11px;background:#e3ecd9;border-radius:15px;padding:17px 16px;min-height:78px}.turn-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:var(--teal);box-shadow:0 0 0 5px #d0e1c7}.turn-panel strong{font-size:16px;color:var(--deep)}.turn-panel p{font-size:10px;color:#71836a;margin-top:5px}.turn-panel.cpu{background:#f4e8dc}.turn-panel.cpu .turn-dot{background:var(--coral);box-shadow:0 0 0 5px #edd5c5}.turn-panel.cpu strong{color:#a35d49}.turn-panel.cpu p{color:#aa8774}.turn-panel.thinking .turn-dot{animation:blink 1s infinite}.aim-panel{padding:2px 4px 0}.power-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.power-heading>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.power-heading output{font-size:14px;font-variant-numeric:tabular-nums;color:var(--teal)}.power-meter{height:8px;background:#e0e6d5;border-radius:99px;margin:10px 0}.power-meter>span{display:block;width:0;height:100%;background:var(--teal);border-radius:99px;transition:width .05s}.power-meter.strong>span{background:#d99453}.aim-panel p{font-size:9px;color:#85917b}.how-card{display:flex;align-items:center;gap:12px;border:1px solid #dfe5d5;border-radius:14px;padding:16px 11px;margin-top:2px}.how-card strong{font-size:12px}.how-card p{font-size:10px;line-height:1.9;margin-top:5px;color:#8a937f}.pull-illustration{display:flex;align-items:center;flex-direction:column;font-size:19px;line-height:12px;width:36px;flex-shrink:0;color:var(--teal)}.direction-arrow{font-size:25px;margin-bottom:9px}.demo-medal{background:#a0c3a3;border:3px solid #278370;border-radius:50%;font-size:18px;line-height:20px;width:26px;height:26px;color:#e6edcb;text-align:center}.pull-trail{font-size:23px;line-height:13px;color:#99ab86}.pull-hand{color:#c79357;font-size:18px;margin-top:3px}.keyboard-help{font-size:10px;color:#7e8c75;padding:0 5px}.keyboard-help summary{cursor:pointer;padding:3px 0}.keyboard-help p{line-height:2.4;margin-top:8px}kbd{font:inherit;background:#e6eadc;border:1px solid #dce2d0;border-radius:4px;padding:1px 4px}.text-button{font-size:11px;background:transparent;color:#80917b;padding:10px;margin:auto}.text-button:hover{color:var(--deep)}.battle-console>.text-button{margin-top:auto}.out-notices{position:absolute;top:35px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;align-items:center;pointer-events:none;width:90%;z-index:3}.out-notice{padding:9px 16px;background:#fffdf3ee;border:1px solid #e6d2bc;border-radius:99px;box-shadow:0 3px 12px #4d553b18;color:#ae654f;font-size:12px;max-width:100%;overflow-wrap:anywhere;animation:notice 2.7s both}.out-notice.player{color:var(--teal)}.battle-loading{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:25px;background:#e7eddf;z-index:6;font-size:14px;line-height:2}.vs-overlay{position:absolute;inset:10px 0 18px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fffdf4f5;border:1px solid #e1e6d8;border-radius:25px;z-index:8;animation:arrive .35s ease-out}.vs-overlay h2{font-size:26px;margin:14px 0 32px}.vs-teams{display:flex;align-items:center;gap:28px}.vs-teams>div{text-align:center}.vs-teams strong{font-size:13px;display:block;margin-top:17px}.vs-mark{font-size:44px;font-style:italic;color:#d89365;font-weight:900}.vs-portraits{display:flex;padding-left:5px}.vs-portraits img{width:72px;height:72px;border:4px solid var(--teal);border-radius:50%;margin-left:-7px;box-shadow:0 4px 0 #d8decb}.vs-portraits img:nth-child(2){transform:translateY(-12px);z-index:1}.vs-portraits.cpu img{border-color:var(--coral)}.vs-overlay>p{font-size:12px;color:#89957b;margin-top:36px}dialog{border:1px solid #e0e4d6;background:var(--cream);color:#314a3c;border-radius:25px;padding:32px 28px 24px;text-align:center;width:min(420px,calc(100vw - 28px));max-height:90svh;box-shadow:0 20px 80px #25382730}dialog::backdrop{background:#2a423968;backdrop-filter:blur(5px)}dialog h2{font-size:23px;margin:12px 0 24px;letter-spacing:-.04em}.close-button{position:absolute;top:11px;right:12px;background:#edf0e2;color:#829079;border-radius:50%;width:30px;height:30px;font-size:24px;line-height:1}.photo-preview{width:130px;height:130px;border-radius:50%;border:6px solid var(--teal);margin:0 auto 13px;box-shadow:0 4px 0 #cddbc4}.file-label{position:relative;display:inline-block;padding:9px 16px;font-size:12px;color:var(--teal);background:#e9efdf;border-radius:10px;cursor:pointer;overflow:hidden}.file-label:focus-within{outline:3px solid #cf684d;outline-offset:3px}.file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.name-label{display:block;text-align:left;font-size:11px;margin:23px 0 12px;color:#728368}.name-label input{display:block;width:100%;border:1px solid #d7dfcc;background:#fffef9;border-radius:10px;margin-top:8px;padding:12px 14px;color:#2d4a3d;font-size:16px}.field-note{font-size:10px;color:#8c9680;line-height:1.9}.form-error{font-size:12px;color:#b95845;line-height:1.8;margin:9px 0}.primary-button,.secondary-button{width:100%}.photo-dialog .primary-button{margin-top:15px}.instructions{text-align:left;padding-left:22px;margin:0 0 20px}.instructions li{padding-left:5px;margin:18px 0;color:var(--teal)}.instructions b{display:block;font-size:12px}.instructions span{display:block;color:#86917c;font-size:11px;line-height:1.9;margin-top:4px}#help-ok{margin-top:20px}.secondary-button{border:1px solid #d5dfc8;background:#f3f5e9;color:#59734e;border-radius:13px;min-height:44px;padding:12px 18px;font-size:12px;margin-top:13px}.secondary-button:hover{background:#e9efdc}.result-emblem{font-size:58px;color:#d9af56;background:#f6edc9;border:1px solid #e9d999;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;margin:24px auto 18px;box-shadow:0 5px 0 #e0ce96;animation:arrive .4s ease-out}.result-dialog h2{font-size:27px;margin:15px 0 10px}.result-dialog>p{font-size:12px;color:#859178;line-height:1.9}.result-team{display:flex;justify-content:center;margin:21px 0 18px}.result-team img{width:65px;height:65px;border:4px solid #fffdf5;border-radius:50%;margin-left:-7px;box-shadow:0 3px 0 #dce3c9}.result-team img:nth-child(2){transform:translateY(-7px)}.result-progress{display:flex;justify-content:center;gap:10px;margin:0 0 25px}.result-progress span{font-size:10px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e9eddc;color:#94a085}.result-progress .done{background:#e7c66f;color:#70582c}.result-dialog.lost .result-emblem{background:#e8edde;border-color:#d7dfcb;color:#8da081;box-shadow:0 5px 0 #d5dfc9}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#314e40;color:#fffdf3;border:1px solid #fff8;border-radius:15px;padding:12px 22px;font-size:12px;z-index:20;pointer-events:none;opacity:0;max-width:calc(100vw - 28px);text-align:center;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
@keyframes blink{50%{opacity:.35}}@keyframes arrive{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}@keyframes notice{0%{opacity:0;transform:translateY(-8px)}10%,85%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-8px)}}
@media(min-width:1200px){.app{padding-top:32px}.team-screen{padding-top:45px;padding-bottom:40px}.lineup-panel{padding:28px 30px 17px}.dog-photo{width:96px}.dog-grid{gap:18px 12px}.dog-order{right:calc(50% - 49px)}.viewport{height:510px}}
@media(max-width:950px){.app{padding:20px 24px}.team-screen{gap:28px;grid-template-columns:.8fr 1.2fr}.team-intro h2{font-size:48px}.hero-medals img{width:96px;height:96px;border-width:6px}.hero-medals{height:135px}.stage-route{flex-wrap:wrap;gap:6px}.lineup-panel{padding:23px 18px 14px}.section-heading h3{font-size:16px}.dog-photo{width:82px}.dog-order{right:calc(50% - 42px)}.battle-screen{grid-template-columns:minmax(0,1fr) 235px;gap:18px}.viewport{height:450px}.vs-portraits img{width:61px;height:61px}.vs-teams{gap:22px}.how-card{padding:14px 9px;gap:5px}.how-card p{font-size:9px}}
@media(max-width:700px){.app{padding:15px 16px 17px}.game-header{padding-bottom:13px;gap:11px}.brand h1{font-size:19px}.brand>span{font-size:8px}.icon-button{width:35px;height:35px;font-size:19px}.header-actions{gap:6px}.team-screen{display:block;padding:24px 0 22px}.team-intro{position:relative;padding:0 4px}.team-intro>.eyebrow{font-size:8px;letter-spacing:.11em}.team-intro h2{font-size:35px;margin:9px 0 10px;line-height:1.3;letter-spacing:-.06em}.team-intro h2 br{display:none}.intro-copy{font-size:11px;line-height:1.9;max-width:70%}.hero-medals{position:absolute;right:-2px;top:70px;width:114px;height:66px;padding:0;margin:0;justify-content:flex-end}.hero-medals img{width:54px;height:54px;border-width:4px;box-shadow:0 3px 0 #327464}.hero-medals img:nth-child(2){margin-left:-18px;box-shadow:0 3px 0 #b3964f;transform:translateY(-7px) rotate(9deg)}.hero-medals img:nth-child(3){margin-left:-18px;box-shadow:0 3px 0 #b46b58}.photo-note{gap:8px;margin:17px 0 18px;padding:11px;background:#e9eedf;border-radius:13px}.photo-note .camera-icon{width:30px;height:30px;font-size:23px;background:transparent}.photo-note strong{font-size:11px}.photo-note p{font-size:9px;line-height:1.6;margin-top:3px}.photo-note p br{display:none}.stage-route{display:none}.lineup-panel{padding:20px 14px 12px;border-radius:21px}.section-heading{margin-bottom:15px}.section-heading h3{font-size:16px;margin-top:4px}.section-heading .eyebrow{font-size:8px}.selection-count b{font-size:25px}.dog-grid{gap:12px 6px}.dog-select{padding:5px 2px;gap:6px;border-radius:14px}.dog-photo{width:81px;padding:3px}.dog-order{width:21px;height:21px;right:calc(50% - 40px)}.dog-name{font-size:10px}.edit-photo{font-size:9px;padding-top:2px}.team-launch{gap:9px;margin-top:17px;padding-top:15px}.selected-team{min-width:93px}.selected-slot{width:33px;height:33px}.team-launch .primary-button{min-height:44px;font-size:11px;padding:9px}.selection-message{font-size:9px;margin-top:12px}.page-footer{padding-top:15px;font-size:8px;letter-spacing:0}.page-footer span:last-child{font-size:7px;letter-spacing:.11em}.battle-screen{display:flex;flex-direction:column;gap:13px;padding:19px 0 20px}.battle-heading h2{font-size:19px;margin-top:4px}.battle-heading .eyebrow{font-size:8px}.stage-dots{gap:8px}.stage-dots li{width:25px;height:25px}.arena{border-radius:20px;order:2}.arena-top{padding:12px 16px 0}.arena-label{font-size:7px;letter-spacing:.15em}.arena-tag{font-size:8px;padding:2px 7px}.viewport{height:clamp(320px,95vw,410px)}.arena-bottom{font-size:8px;padding:0 13px 12px}.board-side{font-size:9px}.cpu-side{top:8px}.player-side{bottom:10px}.battle-console{display:contents}.scoreboard{order:1;padding:0;border:0;gap:8px}.team-score{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;text-align:left;background:#e6eddc;border-radius:12px;padding:9px 12px;gap:2px 10px;position:relative;min-width:0}.team-score>span{font-size:10px;grid-column:1;grid-row:1}.team-score strong{grid-column:2;grid-row:1/3;margin:0;justify-content:flex-end;align-items:center;gap:3px}.team-score strong b{font-size:30px}.team-score small{font-size:10px;align-self:end;padding-bottom:5px}.mini-roster{grid-column:1;grid-row:2;justify-content:flex-start}.mini-roster img{width:21px;height:21px;border-width:1.5px}.cpu-score{background:#f2e7dc}.score-vs{font-size:10px}.turn-panel{order:3;min-height:58px;padding:12px 16px;gap:12px}.turn-panel strong{font-size:14px}.turn-panel p{font-size:10px;margin-top:3px}.turn-panel>div{display:flex;align-items:center;justify-content:space-between;flex:1;gap:8px}.turn-panel p{max-width:58%;line-height:1.5}.aim-panel{order:4;padding:0 6px}.power-heading{font-size:10px}.power-heading output{font-size:12px}.power-meter{height:7px;margin:8px 0}.aim-panel p{font-size:9px}.how-card{order:5;padding:11px 15px;justify-content:center;gap:18px;margin:1px 0 0}.how-card strong{font-size:11px}.how-card p{font-size:10px;line-height:1.6;margin-top:3px}.how-card p br{display:none}.pull-illustration{height:51px;transform:scale(.7)}.keyboard-help{order:6;font-size:9px}.battle-console>.text-button{order:7;padding:4px 8px;font-size:10px;margin:auto}.vs-overlay{inset:0 0 auto;height:570px;border-radius:20px}.vs-overlay h2{font-size:24px;margin-bottom:33px}.vs-teams{gap:12px;flex-direction:column}.vs-mark{font-size:35px;line-height:1;margin:5px 0}.vs-portraits img{width:62px;height:62px}.vs-teams strong{font-size:12px;margin-top:11px}.vs-overlay>p{margin-top:25px;font-size:11px}.result-dialog h2{font-size:25px}}
@media(max-width:370px){.app{padding-left:12px;padding-right:12px}.team-intro h2{font-size:32px}.hero-medals{right:-3px;top:66px;width:100px}.hero-medals img{width:49px;height:49px}.dog-photo{width:75px}.dog-order{right:calc(50% - 38px)}.lineup-panel{padding:17px 12px 12px}.intro-copy{font-size:10px}.section-heading h3{font-size:15px}.team-score{padding:8px 11px}.viewport{height:326px}.turn-panel>div{gap:5px}.turn-panel p{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}



/* The same four traits are shown for every dog, including custom portraits. */
.team-screen{grid-template-columns:.65fr 1.35fr;align-items:start;gap:36px}
.team-intro{position:relative;top:auto}
.lineup-panel{padding-inline:22px}
.lineup-panel .section-heading{margin-bottom:12px}
.lineup-note{font-size:11px;line-height:1.8;color:#637864;margin-bottom:18px}
.dog-grid{gap:15px 10px}
.dog-select{padding:10px 8px;background:#f5f5ed;border:1px solid #e6eadf;gap:6px;height:100%}
.dog-select[aria-pressed=true]{border-color:#62a28b;box-shadow:0 2px 0 #cbdcc8}
.dog-name{font-size:12px}
.dog-role{font-size:10px;color:#2f7868}
.dog-description{font-size:10px;line-height:1.65;color:#687860;min-height:3.3em}
.dog-stats{display:grid;gap:5px;width:100%;padding-top:8px;border-top:1px solid #dce4d4;margin-top:auto}
.stat-row{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:10px;white-space:nowrap;color:#586d5b}
.stat-bars{display:flex;gap:3px}
.stat-bars i{width:7px;height:9px;border-radius:2px;background:#dce3d4}
.stat-bars i.filled{background:#569681}
.stat-bars.weight i.filled{background:#ad8c50}
.stat-bars.bounce i.filled{background:#bd8568}
.dog-card{display:flex;flex-direction:column;align-items:center}
.edit-photo{flex-shrink:0;min-height:30px}
.team-balance{font-size:10px;color:#4c735e;line-height:1.9;background:#edf2e5;border-radius:10px;padding:10px 12px;margin-top:18px}
.team-launch{margin-top:14px}
.dog-order{top:6px}
.dog-select:focus-visible{outline-offset:1px}

.board-legend{display:flex;justify-content:center;gap:16px;font-size:10px;color:#506b61;padding:0 8px 12px}
.board-legend span{display:flex;align-items:center;gap:5px}
.bounce-key{width:15px;height:8px;border-radius:3px;background:#489cba;border-top:2px solid #a8e5ed}
.drop-key{width:15px;height:6px;background:#df9254;border-top:2px dashed #fff3cc}
.roster-dog{display:flex;flex-direction:column;align-items:center;gap:3px}
.roster-dog>span{font-size:8px;line-height:1.2}
.roster-dog.waiting img{opacity:.4;filter:saturate(.5)}
.roster-dog.waiting>span{color:#7a7b68}
.roster-dog.out img{filter:grayscale(1);opacity:.2}
.roster-dog.out>span{color:#888}
.match-notes{display:grid;gap:8px;font-size:10px;line-height:1.8;color:#63745c}
.underdog-note{background:#fff0c5;color:#896427;border:1px solid #e5ce91;border-radius:9px;padding:8px 10px}
.stage-tip{font-size:11px;line-height:1.85;color:#567360;padding:11px 13px;border:1px dashed #cddac2;border-radius:11px}
.power-meter{position:relative}
.power-meter .power-cap-marker{display:none}
.power-meter.capped{background:linear-gradient(to right,#e0e6d5 var(--power-cap),#c9cdbf var(--power-cap))}
.power-meter.capped .power-cap-marker{display:block;position:absolute;left:var(--power-cap);top:-4px;height:16px;border-left:2px solid #a85e3f}
.aim-panel .power-limit{color:#a05d3c;font-size:10px;margin:0 0 7px}
.aim-panel #aim-hint{line-height:1.7;color:#63745c}
.vs-overlay{padding:26px 20px;min-height:620px;justify-content:center}
.vs-overlay h2{margin:12px 0 28px}
.vs-overlay>p{margin-top:10px;text-align:center;line-height:1.8;color:#62765e;max-width:480px}
.coin-toss{display:grid;place-items:center;width:77px;height:77px;border:5px double #b79a52;border-radius:50%;background:#f6dc8f;box-shadow:0 5px 0 #b3995b;color:#735c28;margin:28px 0 15px;font-size:15px}
.coin-toss.cpu{background:#f3c6b0;border-color:#bd8169;color:#914c37;box-shadow:0 5px 0 #bd8169}
.coin-toss.player{background:#dcebc5;border-color:#80a081;color:#316f55;box-shadow:0 5px 0 #80a081}
.coin-toss.tossing{animation:coin-flip .55s ease-in-out infinite}
.coin-result{font-size:22px;color:var(--deep)}
.vs-overlay>.coin-rule{font-size:11px}
.vs-overlay>.vs-tip{padding:9px 13px;border-radius:9px;background:#eaf0df;font-size:12px}
.vs-overlay>.vs-rule{font-size:10px}
.vs-overlay .primary-button{width:min(280px,100%);margin-top:18px}
.instructions span,.field-note{color:#64765d}
#help-dialog{width:min(470px,calc(100vw - 28px))}

@keyframes coin-flip{0%{transform:translateY(0) rotateY(0)}
50%{transform:translateY(-12px) rotateY(180deg)}
100%{transform:translateY(0) rotateY(360deg)}
}

@media(max-width:950px) and (min-width:701px){.team-screen{grid-template-columns:1fr}
.team-intro{position:relative;top:auto}
.team-intro h2 br{display:none}
.hero-medals{position:absolute;right:0;top:30px}
.stage-route{display:none}
.lineup-panel{max-width:680px;width:100%;margin:auto}
.dog-description{min-height:1.7em}
}

@media(max-width:700px){.team-intro{position:relative;top:auto}
.lineup-panel{padding:18px 12px 12px}
.dog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}
.dog-select{padding:10px 9px}
.dog-photo{width:83px}
.dog-name{font-size:12px}
.dog-role{font-size:10px}
.dog-description{font-size:10px;min-height:3.3em}
.stat-row{font-size:10px}
.stat-bars i{width:10px;height:8px}
.lineup-note{font-size:10px}
.team-balance{font-size:10px;margin-top:14px}
.team-launch{position:sticky;bottom:0;background:#fffdf6f5;padding:12px 0 9px;z-index:2}
.match-notes{order:4;margin-top:-5px;font-size:10px;padding:0 5px}
.aim-panel{order:5}
.stage-tip{order:6;font-size:10px;padding:9px 11px}
.how-card{order:7}
.keyboard-help{order:8}
.battle-console>.text-button{order:9}
.mini-roster img{width:23px;height:23px}
.roster-dog>span{font-size:7px}
.board-legend{font-size:9px;gap:14px;padding-bottom:9px}
.vs-overlay{height:auto;min-height:620px;inset:0 0 auto;padding:25px 14px}
.vs-overlay h2{font-size:23px;margin:10px 0 26px}
.vs-teams{flex-direction:row;gap:10px;width:100%;justify-content:center}
.vs-portraits img{width:43px;height:43px;border-width:3px}
.vs-teams strong{font-size:10px;max-width:125px}
.vs-mark{font-size:25px}
.coin-toss{margin-top:25px}
.vs-overlay>.coin-rule{font-size:10px}
.vs-overlay>.vs-tip{font-size:11px}
.vs-overlay .primary-button{margin-top:18px}
.vs-overlay>.vs-rule{font-size:10px}
.turn-panel>div{flex-wrap:wrap}
.turn-panel p{max-width:100%}
.team-screen{padding-top:22px}
}

@media(prefers-reduced-motion:reduce){.coin-toss.tossing{animation:none}
}


/* Give the toss its own screen so its controls also follow a simple Tab order. */
.battle-screen:has(>.vs-overlay:not([hidden])){display:block;padding:20px 0}
.battle-screen:has(>.vs-overlay:not([hidden]))>.battle-heading,.battle-screen:has(>.vs-overlay:not([hidden]))>.arena,.battle-screen:has(>.vs-overlay:not([hidden]))>.battle-console{display:none}
.vs-overlay{position:relative;inset:auto;height:auto}

/* Give the board its own full-width row on phones and portrait tablets.
   Explicit widths prevent the canvas's intrinsic size from shrinking a flex item. */
.app:has(.battle-screen:not([hidden])){max-width:1600px;padding:18px 24px}
.battle-screen{grid-template-columns:minmax(0,1fr) 248px;align-items:start;gap:16px 22px;padding:18px 0}
.battle-heading,.arena,.battle-console{min-width:0}
.arena{width:100%;align-self:stretch;display:flex;flex-direction:column}
.viewport{flex:1 0 auto;min-height:420px;height:calc(100svh - 260px);height:calc(100dvh - 260px)}
#game{width:100%;height:100%}
.battle-console{gap:12px;padding-top:0}
.scoreboard{padding-bottom:12px}
.how-card{padding-block:12px}
.board-side{padding:3px 7px;border-radius:8px;background:#e7eddfdd;white-space:nowrap}
.viewport[data-view=side] .cpu-side{left:8px;top:8px;transform:none}
.viewport[data-view=side] .player-side{left:auto;right:8px;top:8px;bottom:auto;transform:none}
/* The coin toss replaces the board in normal flow, so its button never overlaps
   the footer or disappears beneath a fixed-height overlay. */
.battle-screen:has(.vs-overlay:not([hidden])){display:block}
.battle-screen:has(.vs-overlay:not([hidden]))>.battle-heading,
.battle-screen:has(.vs-overlay:not([hidden]))>.arena,
.battle-screen:has(.vs-overlay:not([hidden]))>.battle-console{display:none}
.vs-overlay{position:relative;inset:auto;width:100%;height:auto;min-height:min(620px,calc(100svh - 160px));padding:26px 20px}

@media(max-width:950px){
  .app:has(.battle-screen:not([hidden])){padding:16px}
  .battle-screen{display:flex;flex-direction:column;gap:14px}
  .battle-heading{order:0;width:100%}
  .arena{order:1}
  .viewport{min-height:0;height:clamp(500px,calc(100svh - 390px),900px);height:clamp(500px,calc(100dvh - 390px),900px)}
  .battle-console{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:12px 20px}
  .battle-console>*{min-width:0;order:0}
  .scoreboard{grid-row:1/3;border:0;padding:0;align-self:center}
  .turn-panel{min-height:60px;padding:12px 16px}
  .aim-panel{grid-column:2;grid-row:2;padding:0 6px}
  .match-notes{grid-column:1/-1;margin:0;padding:0}
  .how-card{margin:0}
  .battle-console>.text-button{margin:auto}
}

@media(max-width:700px){
  .app:has(.battle-screen:not([hidden])){padding:12px}
  .battle-screen{gap:12px;padding:14px 0 18px}
  .arena{width:calc(100% + 16px);margin-inline:-8px;border-radius:16px}
  .arena-top{padding:10px 12px 0}
  .viewport{height:clamp(410px,calc(100svh - 310px),600px);height:clamp(410px,calc(100dvh - 310px),600px)}
  .viewport[data-layout=park]{height:calc(100vw + 30px)}
  .viewport[data-layout=dekoboko]{height:calc(110vw + 40px)}
  .battle-console{display:flex;flex-direction:column;gap:12px}
  .battle-console>.turn-panel{order:0}
  .battle-console>.aim-panel{order:1}
  .battle-console>.scoreboard{order:2;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .score-vs{display:none}
  .battle-console>.match-notes{order:3}
  .battle-console>.stage-tip{order:4}
  .battle-console>.how-card{order:5}
  .battle-console>.keyboard-help{order:6}
  .battle-console>.text-button{order:7}
  .team-score{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;padding:10px 3px}
  .team-score strong{gap:2px}
  .team-score strong b{font-size:24px}
  .team-score small{padding-bottom:2px}
  .mini-roster{width:100%;gap:2px;justify-content:space-between}
  .mini-roster img{width:50px;height:50px;border-width:2px}
  .roster-dog>span{font-size:8px}
  .vs-overlay{padding:24px 12px;min-height:calc(100svh - 150px)}
  .vs-overlay h2{margin-bottom:24px}
  .vs-portraits img{width:42px;height:42px}
}
