:root{color-scheme:dark;--bg:#101423;--panel:#191f30;--line:#ffffff14;--muted:#929bb3;--text:#f1f1e9;--orange:#ff946b;--green:#83d5bb;--blue:#91b8ff;--radius:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans TC','Microsoft JhengHei',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-width:320px}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button{touch-action:manipulation}button:hover{filter:brightness(1.1)}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.app-shell{max-width:1480px;margin:auto;padding:0 48px}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:19px;font-weight:750;letter-spacing:2px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--orange);color:#211d25;border-radius:13px;transform:rotate(-7deg);font-size:25px;font-family:serif}.brand small{display:block;font-size:8px;color:var(--muted);letter-spacing:3px;margin-top:5px}.top-actions{display:flex;align-items:center;gap:10px}.edition{font-size:11px;letter-spacing:2px;color:var(--muted);margin-right:14px}.icon-btn{width:38px;height:38px;background:transparent;border:1px solid var(--line);border-radius:50%;font-size:19px;color:#c8ccdb}.hero{display:grid;grid-template-columns:1.1fr 1fr;min-height:510px;position:relative;overflow:hidden}.hero-copy{padding:57px 0 44px;z-index:2}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:var(--muted);display:block}.hero-copy .eyebrow{color:#b0b5c6;font-size:11px;letter-spacing:2px;display:flex;align-items:center;gap:12px}.eyebrow>span{width:22px;height:2px;background:var(--orange)}h1{font-size:clamp(40px,4.6vw,64px);line-height:1.23;letter-spacing:-1.5px;font-weight:850}.hero h1{margin:21px 0 18px}.hero h1 span{color:var(--orange)}.hero-copy>p{font-size:14px;line-height:1.9;color:#a8aec1}.primary{border:0;background:var(--orange);color:#231d27;font-weight:750;padding:17px 23px;border-radius:10px;min-height:52px;display:inline-flex;gap:35px;align-items:center;justify-content:center;font-size:14px;box-shadow:0 7px 25px #ff95641a}.primary span{font-size:20px}.hero-copy>.primary{margin-top:27px}.text-btn{background:transparent;border:0;padding:12px 0;font-size:12px;color:#c0c5d6}.hero-copy>.text-btn{display:block;margin-top:9px}.text-btn span{margin-left:10px}.hero-tags{display:flex;gap:20px;margin-top:21px;font-size:10px;color:#77839f;letter-spacing:1px}.hero-art{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center}.moon-ring{position:absolute;width:335px;height:335px;border-radius:50%;background:radial-gradient(circle at 40% 30%,#f4ba8d,#b96b58);top:60px;opacity:.92;box-shadow:0 0 0 22px #d2956b05,0 0 0 23px #e4b38b0d,0 0 80px #d58a4c0a;z-index:-1}.moon-ring:after{content:'';position:absolute;inset:20px;border:1px solid #44233326;border-radius:50%}.art-kanji{position:absolute;font-family:serif;font-size:260px;color:#482a3c21;top:40px;left:75px;z-index:0}.hero-ninja{width:390px;position:relative;top:12px;filter:drop-shadow(0 18px 12px #0004);z-index:2;animation:breathe 4s ease-in-out infinite}.ninja-svg{width:100%;height:100%;overflow:visible}.art-land{position:absolute;bottom:0;left:0;width:100%;height:180px;z-index:0}.floating-label{position:absolute;right:2%;bottom:110px;background:#22293fe8;border:1px solid #ffffff13;padding:14px 18px;border-radius:12px;z-index:4;font-size:12px;box-shadow:0 12px 28px #0002;display:flex;gap:10px;align-items:center}.floating-label small{margin-left:12px;color:var(--muted);font-size:9px}.live-dot{display:inline-block;width:6px;height:6px;background:var(--orange);border-radius:50%;flex:none}.art-caption{position:absolute;bottom:37px;right:12%;font-size:10px;letter-spacing:3px;color:#8290ab;z-index:4}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:10px 0 38px}.mode-card{display:flex;text-align:left;align-items:center;gap:20px;border:1px solid var(--line);border-radius:var(--radius);padding:26px;background:linear-gradient(120deg,#202439,#181d2e);position:relative;overflow:hidden;min-height:130px}.mode-card.versus:after{content:'対';position:absolute;right:80px;top:-29px;font-family:serif;font-size:150px;color:#ffffff02}.mode-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:17px;background:#b3a4fc10;border:1px solid #b3a4fc25;color:#c2b7ff;font-family:serif;font-size:31px;flex-shrink:0}.practice .mode-icon{background:#80ceac0d;border-color:#80ceac25;color:var(--green)}.mode-card .eyebrow{font-size:8px;letter-spacing:2px}.mode-card h2{font-size:20px;margin:7px 0}.mode-card p{font-size:11px;color:var(--muted)}.arrow{margin-left:auto;align-self:center;border-radius:50%;border:1px solid #ffffff18;width:32px;height:32px;display:grid;place-items:center;color:#b3bbd1;flex-shrink:0}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-heading h2{font-size:21px;margin-top:8px}.section-heading>span{font-size:10px;color:var(--muted)}.boss-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.boss-card{border:1px solid var(--line);background:#191e2e;border-radius:14px;overflow:hidden;text-align:left;padding:0;position:relative}.boss-art{height:126px;position:relative;display:flex;justify-content:center;background:radial-gradient(ellipse at 50% 65%,color-mix(in srgb,var(--boss-color) 12%,transparent),transparent 80%)}.boss-art .ninja-svg{width:160px;position:relative;top:-13px}.boss-number{position:absolute;top:12px;left:13px;color:var(--boss-color);font-size:10px}.boss-element{position:absolute;right:12px;top:4px;font-family:serif;font-size:75px;opacity:.08;color:var(--boss-color)}.boss-body{padding:15px;border-top:1px solid var(--line)}.boss-body h3{font-size:13px;margin-bottom:8px}.boss-body p{font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.boss-card.locked{opacity:.5}.boss-card.cleared{border-color:#83d5bb40}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:26px 0;margin-top:36px;font-size:9px;color:#77829a;line-height:1.7}.setup-heading{margin:20px 0 28px}.setup-heading h1{font-size:36px;margin:10px 0}.setup-heading p{font-size:13px;color:var(--muted)}.setup-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:36px;margin-bottom:50px;align-items:start}.preview-box{position:sticky;top:20px;background:#171e2f;border:1px solid var(--line);border-radius:20px;overflow:hidden;min-height:360px}.camera-placeholder{min-height:360px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;background:radial-gradient(ellipse,#273047,#141a29)}.camera-symbol{font-size:48px;color:var(--orange);margin-bottom:20px}.camera-placeholder h3{font-size:19px;margin-bottom:14px}.camera-placeholder p{font-size:12px;line-height:1.8;color:var(--muted)}.camera-status{padding:14px 18px;background:#141a29;font-size:12px;color:var(--muted);min-height:47px}.camera-host:empty{display:none}.camera-host{width:100%}#cameraUnit{position:relative;aspect-ratio:4/3;overflow:hidden;background:#080d19;border-radius:3px}#cameraUnit video,#cameraUnit canvas{position:absolute;width:100%;height:100%;object-fit:contain;inset:0}#cameraUnit video{transform:scaleX(-1)}#cameraUnit canvas{z-index:2}.camera-divider{position:absolute;inset:0;display:flex;justify-content:space-between;padding:10px;color:#fff;z-index:3;font-size:11px;pointer-events:none}.camera-divider:before{content:'';position:absolute;left:50%;top:0;height:100%;border-left:2px dashed #ffffff77}.camera-divider span{padding:5px 10px;height:26px;border-radius:5px;background:#181b2e90}.camera-divider span:first-child{color:var(--orange)}.camera-divider span:last-child{color:var(--blue)}.option-heading{color:#646f89;font-size:12px;display:flex;gap:12px;align-items:center;margin:4px 0 14px}.option-heading span{color:var(--text);font-size:13px;font-weight:650}.segmented{display:flex;border:1px solid var(--line);background:#171d2d;border-radius:10px;padding:4px;gap:4px}.segmented button{border:0;background:none;border-radius:7px;padding:12px;flex:1;font-size:12px;color:var(--muted)}.segmented button.selected{background:#ff946b17;color:var(--orange);box-shadow:inset 0 0 0 1px #ff946b40}.option-note{font-size:11px;line-height:1.8;color:var(--muted);margin:10px 0 17px}.secondary{border:1px solid #ffffff26;background:#242a3d;border-radius:9px;min-height:45px;padding:12px 18px;font-size:12px;font-weight:600}.wide{width:100%}.setup-options>.secondary{margin-bottom:24px}.setup-options .option-heading:not(:first-child){margin-top:23px}.notice{padding:15px 16px;border:1px solid #ff946b23;border-radius:10px;background:#ff946b08;font-size:11px;line-height:1.8;color:#c8b8af;margin:14px 0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.field-row label{font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:8px}select{appearance:auto;width:100%;border:1px solid #ffffff1c;background:#1c2335;color:#d7dbe7;border-radius:8px;padding:12px 8px;font-size:12px}.game-toolbar{display:flex;align-items:center;gap:18px;min-height:70px}.pill{font-size:9px;color:var(--orange);background:#ff946b0d;border:1px solid #ff946b24;padding:6px 10px;border-radius:6px}.toolbar-right{display:flex;gap:8px;margin-left:auto}.small-btn{padding:9px 12px;background:#1b2234;border:1px solid #ffffff20;border-radius:8px;font-size:11px;color:#c4ccdc;min-height:36px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;padding-bottom:30px}.arena{height:430px;border:1px solid var(--line);border-radius:20px;background:#1e263b;position:relative;overflow:hidden;isolation:isolate}.arena-sky{position:absolute;inset:0;z-index:-1;background:linear-gradient(#263147,#34394e 55%,#292b42)}.arena-moon{position:absolute;left:43%;top:13%;width:110px;height:110px;background:#e6bf9b;border-radius:50%;opacity:.85;box-shadow:0 0 55px #e5c89d11}.mountain{position:absolute;width:75%;height:55%;background:#232b3c;clip-path:polygon(0 100%,22% 25%,35% 62%,60% 0,100% 100%);bottom:18%;left:-5%}.mountain.m2{background:#1a2639;left:38%;bottom:17%;transform:scaleX(-1)}.floor{position:absolute;bottom:0;height:22%;width:100%;background:repeating-linear-gradient(0deg,transparent,transparent 34px,#ffffff07 35px),linear-gradient(#4f4550,#2a293d);border-top:4px solid #61525b;transform:perspective(200px) rotateX(12deg);transform-origin:top}.torii{position:absolute;width:100px;height:130px;right:11%;bottom:23%;opacity:.32;border-top:12px solid #0a1424}.torii:before{content:'';position:absolute;width:125px;height:10px;top:-25px;left:-12px;background:#0a1424;border-radius:0 0 30% 30%}.torii i{position:absolute;width:9px;height:130px;background:#0a1424;left:15px;top:-10px}.torii i:last-child{left:auto;right:15px}.battle-top{position:relative;display:flex;justify-content:space-between;align-items:start;padding:22px 24px;z-index:3;gap:15px}.fighter-info{width:35%;max-width:220px}.fighter-info.right{text-align:right}.fighter-tag{font-size:8px;letter-spacing:2px;color:#b8c2d7}.fighter-info h3{font-size:19px;margin:7px 0 10px}.hp-track{height:7px;border-radius:4px;background:#090f235c;overflow:hidden}.hp-track>div{height:100%;background:var(--orange);border-radius:4px;transition:width .5s;width:100%}.hp-track.enemy>div{background:var(--green)}.fighter-info small{font-size:9px;color:#b1bacd;display:block;margin-top:6px}.round-badge{text-align:center}.round-badge small{font-size:8px;letter-spacing:1px;color:#bac2d5;display:block}.round-badge strong{font-family:Georgia,serif;color:#d0bda9;font-size:35px;font-weight:400;line-height:1.4}.fighter-stage{position:absolute;inset:85px 0 22px;display:flex;align-items:center;justify-content:space-around;z-index:1}.fighter{width:270px;height:270px;max-width:43%;position:relative;filter:drop-shadow(0 10px 8px #0003);animation:breathe 3s ease-in-out infinite;transition:transform .2s}.enemy-fighter{animation-delay:-1s}.vs-sigil{font-family:serif;color:#e2c7b525;border:1px solid #e2c7b51a;border-radius:50%;font-size:30px;width:58px;height:58px;display:grid;place-items:center}.phase-banner{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:9px;align-items:center;justify-content:center;white-space:nowrap;background:#0e1526d9;border:1px solid #ffffff15;border-radius:30px;padding:10px 18px;font-size:11px;z-index:4;max-width:96%;overflow:hidden}.demo-overlay{position:absolute;inset:0;background:#12192bed;z-index:5;display:flex;flex-direction:column;align-items:center;padding-top:20px}.demo-overlay .eyebrow{color:var(--orange);font-size:10px}.demo-overlay>div#demoNinja{height:245px;width:245px;margin-top:-4px}.demo-overlay h2{font-size:24px;margin-top:-8px}.demo-overlay p{font-size:11px;color:#aeb8cd;margin:8px 12px;text-align:center}.demo-dots{display:flex;gap:7px;margin-top:9px}.demo-dots i{width:7px;height:7px;background:#ffffff20;border-radius:50%}.demo-dots i.active{background:var(--orange);width:22px;border-radius:4px}.demo-time{width:100%;height:3px;background:#ffffff09;position:absolute;bottom:0}.demo-time i{display:block;background:var(--orange);height:100%;width:0}.countdown-overlay{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#11182be8;z-index:6;color:var(--orange);font-size:90px;font-weight:850}.countdown-overlay small{display:block;font-size:14px;color:#cbd2e2;margin-top:8px}.pause-overlay{position:absolute;inset:0;background:#11182bf5;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center}.pause-overlay h2{font-size:34px;margin:15px}.pause-overlay p{font-size:13px;color:var(--muted);margin-bottom:25px}.sequence-panel{margin-top:16px;padding:18px;border:1px solid var(--line);background:#191f30;border-radius:15px}.sequence-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.sequence-heading h3{font-size:12px}.sequence-heading span{font-size:10px;color:var(--muted)}.sequence-strip{display:flex;gap:9px;margin-top:14px}.seal{flex:1;min-width:0;text-align:center;background:#111827;border:1px solid #ffffff0d;border-radius:9px;height:92px;position:relative;overflow:hidden}.seal .ninja-svg{height:80px;width:95px;margin-top:-6px;max-width:100%}.seal-name{position:absolute;bottom:7px;left:0;width:100%;font-size:9px;color:var(--muted)}.seal-number{position:absolute;top:5px;left:7px;font-size:8px;color:#75829c;z-index:1}.seal.hidden-seal{display:flex;justify-content:center;align-items:center}.seal.hidden-seal .seal-mystery{font-size:25px;font-family:serif;color:#4e5a75}.seal.active{border-color:#ff946b66;background:#ff946b0b}.seal.complete{border-color:#83d5bb66;background:#83d5bb0b}.seal.complete .seal-mystery{color:var(--green)}.players-hud{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}.players-hud.two{grid-template-columns:1fr 1fr}.player-hud{background:#191f30;border:1px solid var(--line);padding:16px;border-radius:14px;display:flex;gap:14px;align-items:center;min-width:0}.hold-ring{width:54px;height:54px;border-radius:50%;background:conic-gradient(var(--ring-color,var(--orange)) var(--hold,0%),#ffffff0c 0);padding:4px;flex:none;display:grid;place-items:center}.hold-ring>span{border-radius:50%;background:#191f30;display:grid;place-items:center;width:46px;height:46px;font-size:15px;font-weight:750}.hud-copy{flex:1;min-width:0}.hud-copy>div{display:flex;justify-content:space-between;font-size:11px;font-weight:650;gap:7px}.hud-copy small{font-size:10px;color:var(--muted);font-weight:400}.hud-copy p{font-size:10px;color:var(--muted);margin-top:8px;line-height:1.5;min-height:15px}.hud-copy .hud-time{color:var(--orange);font-variant-numeric:tabular-nums}.camera-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#191f30}.card-top{padding:14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.card-top h3{font-size:11px}.card-top>span{font-size:8px;color:var(--muted);display:flex;gap:5px;align-items:center}.card-top i{height:5px;width:5px;background:#79839c;border-radius:50%}.card-top .tracking{color:var(--green)}.card-top .tracking i{background:var(--green)}.camera-tip{font-size:10px;color:var(--muted);line-height:1.7;padding:12px 14px;min-height:52px}.coach-card{padding:21px 18px;border:1px solid var(--line);border-radius:14px;margin:15px 0;background:#171e2f}.coach-card .eyebrow{font-size:9px;color:#d6b79b}.coach-card p{font-size:12px;line-height:1.9;color:#c5ccdd;margin:13px 0}.coach-rule{height:1px;background:var(--line);margin:16px 0}.coach-card small{font-size:9px;color:#7e8aa5;line-height:1.9}.side-column>.small-btn{margin-bottom:10px}.manual-panel{text-align:center;padding:18px;background:#12192b}.manual-panel>span{font-size:30px;color:var(--orange)}.manual-panel h3{font-size:15px;margin:8px}.manual-panel p{font-size:9px;color:var(--muted);margin-bottom:15px}#manualButtons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.pose-key{border:1px solid #ffffff15;border-radius:7px;background:#242c41;padding:8px 3px;display:flex;flex-direction:column;gap:4px;font-size:9px;align-items:center}.pose-key b{font-size:12px;color:var(--orange)}.pose-key .ninja-svg{width:44px;height:44px}.pose-key.active{border-color:var(--orange);background:#ff946b22}.practice-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.practice-picker .pose-key{padding:10px}.practice-picker .pose-key .ninja-svg{width:60px;height:60px}.practice-picker .pose-key.active{border-color:var(--orange)}dialog{background:#1a2133;border:1px solid #ffffff20;border-radius:22px;color:var(--text);padding:35px;width:min(620px,calc(100% - 32px));max-height:90dvh;overflow:auto;box-shadow:0 30px 100px #0007}dialog::backdrop{background:#090d1ed9;backdrop-filter:blur(7px)}dialog h2{font-size:30px;margin:13px 0 18px}.dialog-close{position:absolute;right:14px;top:14px;border:0;background:transparent;color:var(--muted);font-size:25px;min-width:34px;min-height:34px}.guide-steps{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;margin:30px 0}.guide-steps b{font-size:25px;color:var(--orange);font-family:Georgia,serif}.guide-steps h3{font-size:13px;margin:12px 0}.guide-steps p{font-size:11px;color:var(--muted);line-height:1.9}.toggle-row{display:flex;justify-content:space-between;font-size:13px;padding:18px 0;border-bottom:1px solid var(--line)}input[type=checkbox]{accent-color:var(--orange);width:18px;height:18px}#settingsDialog .secondary{margin:10px 0}.result-emblem{font-size:48px;color:var(--orange);font-family:serif;border:1px solid #ff946b33;background:#ff946b0b;border-radius:50%;width:90px;height:90px;display:grid;place-items:center;margin:0 auto 20px}.result-center{text-align:center}.result-center>p{font-size:12px;color:var(--muted);line-height:1.9}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}.stat{background:#111828;border:1px solid var(--line);border-radius:10px;padding:16px 7px;text-align:center}.stat strong{display:block;font-size:24px;color:var(--orange);font-variant-numeric:tabular-nums}.stat span{display:block;font-size:9px;color:var(--muted);margin-top:8px}.result-actions{display:flex;gap:10px;margin-top:24px}.result-actions button{flex:1}.duel-result{width:100%;border-collapse:collapse;font-size:12px;margin:25px 0}.duel-result td,.duel-result th{padding:12px 7px;border-bottom:1px solid var(--line);text-align:center}.duel-result th{color:var(--muted);font-size:10px;font-weight:400}.duel-result td:first-child{text-align:left;color:var(--muted)}.result-note{font-size:10px!important;line-height:1.8;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;z-index:1000;background:#f1e7d9;color:#252738;padding:13px 21px;border-radius:10px;font-size:12px;box-shadow:0 5px 30px #0004;transition:opacity .2s,transform .2s;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.spell-projectile{position:absolute;z-index:4;left:22%;top:48%;font-size:60px;color:var(--spell-color,var(--orange));filter:drop-shadow(0 0 15px currentColor);animation:projectile 1s ease-in forwards}.spell-title{position:absolute;top:38%;left:50%;transform:translateX(-50%);z-index:5;font-family:serif;font-size:32px;letter-spacing:7px;color:#ffe6bd;text-shadow:0 2px 18px #000;white-space:nowrap;animation:spellTitle 1.3s ease-out both}.arena.hit .enemy-fighter{animation:hit .55s ease both}.arena.enemy-hit .player-fighter{animation:hit .55s ease both}.reduce-motion *{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}@keyframes breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes projectile{0%{left:22%;opacity:0;transform:scale(.3) rotate(0)}15%{opacity:1}80%{left:73%;opacity:1;transform:scale(1.6) rotate(180deg)}100%{left:75%;opacity:0;transform:scale(2.5) rotate(230deg)}}@keyframes hit{0%,100%{filter:drop-shadow(0 10px 8px #0003)}30%,70%{filter:brightness(2.5);transform:translateX(12px)}50%{transform:translateX(-7px)}}@keyframes spellTitle{0%{opacity:0;letter-spacing:15px}20%,70%{opacity:1;letter-spacing:5px}100%{opacity:0}}@media(min-width:1500px){.hero{min-height:550px}.hero-copy{padding-top:65px}.hero-ninja{width:420px}.moon-ring{width:370px;height:370px}}@media(max-width:1100px){.app-shell{padding:0 28px}.hero{min-height:470px}.hero h1{font-size:52px}.hero-ninja{width:340px}.moon-ring{width:290px;height:290px;top:70px}.hero-copy{padding-top:48px}.mode-card{padding:20px;gap:15px}.mode-card h2{font-size:18px}.mode-icon{width:48px;height:48px;font-size:25px}.game-layout{grid-template-columns:minmax(0,1fr) 240px;gap:14px}.arena{height:410px}.battle-top{padding:20px 18px}.fighter-info h3{font-size:17px}.demo-overlay>div#demoNinja{height:230px;width:230px}.player-hud{padding:12px;gap:10px}.hold-ring{width:45px;height:45px}.hold-ring>span{width:37px;height:37px;font-size:12px}}@media(max-width:850px){.app-shell{padding:0 22px}.topbar{height:80px}.edition{display:none}.hero{min-height:440px}.hero h1{font-size:43px}.hero-copy .eyebrow{font-size:9px;letter-spacing:1px}.hero-copy>p{font-size:12px}.hero-ninja{width:300px}.moon-ring{width:250px;height:250px;top:80px}.art-kanji{font-size:200px;left:10px;top:70px}.floating-label{right:0;bottom:100px;padding:11px 12px;font-size:10px}.floating-label small{display:none}.hero-tags{gap:12px;font-size:9px}.hero-copy>.primary{font-size:12px;padding:15px 18px}.mode-card p{font-size:10px;line-height:1.7}.mode-grid{gap:12px}.mode-card h2{font-size:16px}.mode-card .eyebrow{font-size:7px}.mode-icon{width:40px;height:44px}.arrow{width:26px;height:26px}.boss-grid{gap:8px}.boss-art{height:108px}.boss-art .ninja-svg{width:138px}.boss-body{padding:12px 9px}.boss-body h3{font-size:11px}.boss-body p{font-size:8px}.boss-element{font-size:60px}.setup-grid{gap:20px}.game-layout{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.coach-card{margin:0}.arena{height:435px}.demo-overlay>div#demoNinja{height:250px;width:250px}.camera-card .camera-host{max-height:230px;overflow:hidden}.camera-card #cameraUnit{max-height:230px}.camera-card .camera-host #cameraUnit{aspect-ratio:4/3}footer{font-size:8px}}@media(max-width:600px){.app-shell{padding:0 16px}.topbar{height:74px}.brand{font-size:16px;gap:9px}.brand-mark{width:36px;height:36px;font-size:22px}.brand small{font-size:7px;letter-spacing:2px}.top-actions{gap:7px}.icon-btn{width:32px;height:32px;font-size:16px}.hero{display:block;min-height:600px}.hero-copy{padding-top:32px;position:relative;z-index:4}.hero h1{font-size:46px;margin-top:18px;max-width:320px}.hero-copy>p{font-size:12px;max-width:230px}.hero-art{position:absolute;inset:150px -45px 0 30%;pointer-events:none}.hero-ninja{width:290px;top:22px}.moon-ring{width:220px;height:220px;top:75px;left:15%}.art-kanji{font-size:170px;top:70px;left:40px}.hero-copy>.primary{margin-top:26px;position:relative}.hero-copy>.text-btn{margin-top:7px;max-width:200px}.hero-tags{position:relative;margin-top:145px}.floating-label{bottom:75px;right:45px;font-size:9px;padding:10px}.art-caption{bottom:37px;right:70px;font-size:8px}.mode-grid{grid-template-columns:1fr;margin-top:0;gap:10px;margin-bottom:30px}.mode-card{padding:19px;min-height:110px}.mode-card h2{font-size:18px}.mode-card p{font-size:11px}.mode-icon{width:50px;height:54px}.section-heading h2{font-size:20px}.section-heading>span{font-size:8px;max-width:105px;line-height:1.7;text-align:right}.boss-grid{grid-template-columns:repeat(2,1fr);gap:10px}.boss-card:last-child{grid-column:1/-1}.boss-card:last-child .boss-art{height:135px}.boss-card:last-child .boss-art .ninja-svg{width:175px}.boss-body{padding:14px}.boss-body h3{font-size:13px}.boss-body p{font-size:10px}.boss-art{height:120px}.boss-art .ninja-svg{width:150px}.boss-element{font-size:80px}footer{flex-direction:column;gap:10px;line-height:1.8;margin-top:25px;padding:20px 0}.setup-heading h1{font-size:31px}.setup-heading p{font-size:12px;line-height:1.8}.setup-grid{grid-template-columns:1fr}.preview-box{position:relative;top:auto;min-height:0}.camera-placeholder{min-height:240px}.camera-placeholder h3{font-size:16px}.setup-options{padding-top:5px}.setup-options>.primary{margin-top:8px}.game-toolbar{gap:10px;flex-wrap:wrap;padding:12px 0;min-height:66px}.game-toolbar .text-btn{font-size:11px}.pill{font-size:8px}.toolbar-right{gap:5px}.small-btn{font-size:9px;padding:8px}.arena{height:375px;border-radius:15px}.battle-top{padding:17px 14px;gap:10px}.fighter-info h3{font-size:15px;margin:6px 0 8px}.fighter-tag{font-size:7px;letter-spacing:1px}.fighter-info small{font-size:8px}.round-badge strong{font-size:28px}.round-badge small{font-size:7px}.fighter-stage{inset:85px -18px 30px}.fighter{width:200px;height:230px;max-width:45%}.vs-sigil{width:35px;height:35px;font-size:23px;position:absolute;left:calc(50% - 17px)}.demo-overlay{padding-top:19px}.demo-overlay>div#demoNinja{height:205px;width:205px}.demo-overlay h2{font-size:23px}.demo-overlay p{font-size:10px;max-width:90%;line-height:1.6}.phase-banner{font-size:10px;bottom:14px;padding:9px 12px}.sequence-panel{padding:14px 12px;margin-top:12px}.sequence-heading h3{font-size:11px}.sequence-heading span{font-size:8px}.sequence-strip{gap:6px;margin-top:12px}.seal{height:77px}.seal .ninja-svg{width:80px;height:67px;max-width:150%;margin-left:calc((100% - 80px)/2)}.seal-name{font-size:8px;bottom:6px}.seal-number{font-size:7px;left:5px}.players-hud.two{gap:8px}.player-hud{padding:10px;gap:8px}.hold-ring{width:37px;height:37px;padding:3px}.hold-ring>span{width:31px;height:31px;font-size:11px}.hud-copy>div{font-size:10px;flex-wrap:wrap;gap:3px}.hud-copy small{font-size:8px}.hud-copy p{font-size:9px;line-height:1.6;min-height:28px;margin-top:5px}.side-column{gap:10px;grid-template-columns:1fr 1fr}.card-top{padding:11px;flex-wrap:wrap;gap:6px}.card-top h3{font-size:10px}.card-top>span{font-size:7px}.camera-tip{padding:9px 10px;font-size:9px}.coach-card{padding:15px 12px}.coach-card p{font-size:10px;margin:10px 0}.coach-card small{font-size:8px}.coach-card .eyebrow{font-size:8px}.coach-rule{margin:11px 0}.manual-panel{padding:12px 8px}.manual-panel h3{font-size:11px}.manual-panel p{font-size:8px}.pose-key{font-size:8px;gap:2px;padding:6px 2px}.pose-key .ninja-svg{width:30px;height:35px}.pose-key b{font-size:10px}#manualButtons{gap:4px;grid-template-columns:repeat(4,1fr)}dialog{padding:27px 20px;border-radius:18px}dialog h2{font-size:25px}.guide-steps{grid-template-columns:1fr;margin:20px 0;gap:18px}.guide-steps>div{padding-left:42px;position:relative}.guide-steps b{position:absolute;left:0;top:0;font-size:22px}.guide-steps h3{margin:0 0 6px}.guide-steps p{font-size:11px}.result-stats{gap:7px}.stat{padding:14px 5px}.stat strong{font-size:20px}.stat span{font-size:8px}.result-actions{flex-direction:column}.result-actions .primary{font-size:12px}.result-emblem{width:75px;height:75px;font-size:40px}.result-center h2{font-size:23px}.duel-result{font-size:10px}.duel-result td,.duel-result th{padding:11px 5px}.spell-title{font-size:24px}.practice-picker{grid-template-columns:repeat(4,1fr)}.practice-picker .pose-key .ninja-svg{width:50px;height:50px}}@media(prefers-reduced-motion:reduce){.hero-ninja,.fighter{animation:none}}@media(max-height:600px) and (min-width:800px){.topbar{height:60px}.game-toolbar{min-height:55px}.arena{height:350px}.demo-overlay>div#demoNinja{height:180px;width:180px}.demo-overlay{padding-top:15px}.sequence-panel{padding:12px}.seal{height:65px}.seal .ninja-svg{height:57px}.hero-copy{padding-top:35px}}
/* Camera preparation and per-player calibration */
.camera-settings-panel{margin:0 0 23px;border:1px solid var(--line);border-radius:12px;background:#151c2d;overflow:hidden}.camera-settings-panel summary{cursor:pointer;padding:15px;font-size:12px;font-weight:650;list-style-position:inside}.camera-settings-panel summary>span{font-size:9px;color:var(--muted);float:right;font-weight:400;line-height:1.6}.camera-settings-content{padding:0 15px 15px;border-top:1px solid var(--line)}.camera-settings-content .field-row{margin-top:15px}.device-label{font-size:11px;display:flex;flex-direction:column;gap:8px;color:var(--muted);margin-top:15px}.camera-toggle{display:flex;align-items:flex-start;gap:10px;padding:11px 0;border-top:1px solid var(--line);font-size:11px;line-height:1.6}.camera-toggle input{margin:2px 0;flex:none}.camera-toggle small{display:block;color:var(--muted);font-size:9px;margin-top:3px;line-height:1.7}.camera-settings-actions{display:flex;gap:9px;margin-top:13px}.camera-settings-actions button{flex:1;font-size:11px}.range-field{display:block;margin:17px 0;font-size:11px;color:#d7dbe7}.range-field>span{display:flex;justify-content:space-between}.range-field output{color:var(--orange)}.range-field input{display:block;width:100%;margin:14px 0;accent-color:var(--orange);height:6px}.range-field small{font-size:9px;line-height:1.7;color:var(--muted)}.camera-card-actions{display:flex;gap:7px;padding:0 12px 12px}.camera-card-actions button{flex:1;font-size:10px;padding:8px}.camera-guides{position:absolute;inset:7%;pointer-events:none;z-index:3}.camera-guides i{position:absolute;width:23px;height:23px;border:2px solid #ffba8c77;border-right:0;border-bottom:0;border-radius:3px;top:0;left:0}.camera-guides i:nth-child(2){left:auto;right:0;transform:rotate(90deg)}.camera-guides i:nth-child(3){top:auto;bottom:0;transform:rotate(-90deg)}.camera-guides i:nth-child(4){top:auto;left:auto;bottom:0;right:0;transform:rotate(180deg)}.calibration-panel{padding:19px 18px;background:#151c2d;border-top:1px solid var(--line)}.calibration-heading .eyebrow{font-size:8px;color:var(--orange)}.calibration-heading h3{font-size:17px;margin:10px 0}.calibration-heading p{font-size:11px;line-height:1.8;color:var(--muted)}.calibration-player{margin-top:15px;padding:13px;border:1px solid #ffffff15;background:#1e263b;border-radius:10px}.calibration-player>div:first-child{display:flex;justify-content:space-between;font-size:11px;color:#d7dce8}.calibration-player>div:first-child span:last-child{color:var(--orange);font-variant-numeric:tabular-nums}.calibration-player p{font-size:10px;color:var(--muted);line-height:1.8;margin-top:8px;min-height:18px}.calibration-bar{height:5px;border-radius:4px;overflow:hidden;background:#ffffff0a;margin-top:11px}.calibration-bar i{display:block;height:100%;width:0;background:var(--orange);transition:width .15s}.calibration-player.complete{border-color:#83d5bb44}.calibration-player.complete .calibration-bar i{background:var(--green)}.calibration-note{font-size:9px;line-height:1.8;color:#818da8;margin-top:15px}#calibrationDialog{max-width:570px}#calibrationDialog .camera-host{border:1px solid var(--line);border-radius:12px;overflow:hidden}#calibrationDialog #cameraUnit{max-height:270px}#calibrationDialog .calibration-panel{padding:17px 0;background:transparent;border:0}#calibrationDialog h2{font-size:26px}.calibration-success{font-size:11px;line-height:1.8;color:var(--green)}.calibration-session-badge{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);border-radius:20px;padding:7px 12px;background:#12192bd9;border:1px solid #ffffff24;color:#f2d1b3;font-size:10px;white-space:nowrap;z-index:4}.camera-unmirrored #cameraUnit video{transform:none}.preview-box{position:relative;top:auto}.game-toolbar{flex-wrap:wrap}.cameraSettingsManual{display:none!important}@media(max-width:600px){.camera-settings-panel summary{font-size:11px}.camera-settings-panel summary>span{font-size:8px}.camera-settings-content{padding:0 12px 12px}.calibration-panel{padding:15px 13px}.calibration-heading h3{font-size:15px}.calibration-heading p{font-size:10px}.camera-card-actions{flex-direction:column;padding:0 9px 10px}.camera-card-actions button{font-size:9px;min-height:34px}.toolbar-right{flex-wrap:wrap;justify-content:flex-end}.game-toolbar .pill{max-width:140px}.camera-settings-actions{flex-wrap:wrap}.camera-settings-actions button{min-height:42px}.camera-settings-panel .field-row{gap:8px}}
/* Half-body shinobi chapter */
.pose-pack{background:linear-gradient(130deg,#ff946b10,#91b8ff08);border:1px solid #ff946b25;border-radius:12px;padding:15px;margin:17px 0 22px}.pose-pack>label{font-size:12px;font-weight:700;display:block;margin-bottom:10px}.pose-pack>small{display:block;font-size:9px;line-height:1.8;color:var(--muted);margin-top:9px}.compact-settings{border:1px solid var(--line);border-radius:11px;margin:15px 0;padding:0 14px;background:#151c2b}.compact-settings>summary{font-size:11px;cursor:pointer;padding:15px 0;font-weight:650}.compact-settings>summary>span{float:right;color:var(--muted);font-size:9px;font-weight:400}.compact-settings>.field-row{padding-bottom:14px}.setup-options>.option-note{margin-bottom:12px}.setup-heading{margin:17px 0 22px}.setup-heading h1{font-size:32px}.setup-heading p{max-width:650px;line-height:1.8}.score-details{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.score-details summary{font-size:9px;color:#8f9bb5;cursor:pointer}.score-details small{display:block;margin-top:10px}.sound-settings{margin-top:20px}.sound-settings .toggle-row{font-size:12px}.practice-picker{grid-template-columns:repeat(5,minmax(0,1fr));max-height:340px;overflow:auto;padding:3px}.practice-picker .pose-key{background:linear-gradient(160deg,#293147,#172039);min-height:104px;border:1px solid #ffffff18}.practice-picker .pose-key b{font-size:10px;color:#d7dce9}.practice-picker .pose-key.active{background:linear-gradient(160deg,#7b4935,#29263a);box-shadow:0 0 0 1px #ff946b33}.practice-picker .pose-key .ninja-svg{height:74px;width:85px}#manualButtons{max-height:360px;overflow:auto;padding:2px}.manual-panel .pose-key b{font-family:monospace}.hero-ninja{filter:drop-shadow(0 0 25px #80b9ff24) drop-shadow(0 18px 12px #0004)}.hero-art:after{content:'';position:absolute;width:320px;height:350px;border:2px solid #9ecbff22;border-radius:46% 54% 43% 57%;transform:rotate(-12deg);filter:blur(2px);z-index:1;top:50px;box-shadow:0 0 40px #6da9ff18,inset 0 0 30px #6da9ff0d}.arena{background:#25304a;box-shadow:0 12px 35px #050b182f}.arena-sky{background:radial-gradient(ellipse at 48% 15%,#7478a53d,transparent 60%),linear-gradient(#263c60,#514563 58%,#302c46)}.arena-moon{background:linear-gradient(145deg,#fff0c6,#e2af96);box-shadow:0 0 65px #edc89933}.fighter{filter:drop-shadow(0 0 15px #97beff16) drop-shadow(0 10px 8px #0004)}.demo-overlay{background:radial-gradient(ellipse at center,#263756f5,#11182bf9)}.demo-overlay:before{content:'';position:absolute;top:12%;height:220px;width:220px;border:1px solid #ffb28018;border-radius:50%;box-shadow:0 0 0 22px #ffffff02;z-index:-1}.demo-overlay h2{text-shadow:0 2px 15px #0006;letter-spacing:3px}.ninja-svg{filter:drop-shadow(0 2px 1px #0003)}.gesture-continue{display:flex;gap:15px;align-items:center;background:linear-gradient(120deg,#ff946b12,#91b8ff0b);border:1px solid #ff946b33;border-radius:12px;padding:15px;margin-top:20px;text-align:left}.gesture-continue-copy{flex:1}.gesture-continue b{color:var(--orange);font-size:12px}.gesture-continue p{font-size:11px;color:#bac6dd;line-height:1.8;margin-top:7px}.gesture-continue .camera-host{width:120px;flex:none;max-height:95px;overflow:hidden;border-radius:8px}.gesture-continue #cameraUnit{aspect-ratio:4/3;max-height:95px}.gesture-continue .camera-guides{display:none}.gesture-continue .calibration-bar{margin-top:12px}.gesture-continue .calibration-bar i{transition:width .08s}.speed-lines{position:absolute;inset:18% 0 15%;background:repeating-linear-gradient(0deg,transparent 0,transparent 16px,#ecddff0a 17px,transparent 19px);transform:skewY(-5deg);z-index:2;animation:speedIn .9s both}.chakra-orbit{position:absolute;left:15%;top:43%;width:95px;height:95px;border-radius:50%;border:5px solid var(--spell-color);box-shadow:0 0 25px var(--spell-color),inset 0 0 20px var(--spell-color);animation:chargeBurst .5s both;z-index:3}.spell-projectile{font-size:36px;width:65px;height:65px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#fffbe8 10%,var(--spell-color) 50%,transparent 70%);box-shadow:0 0 35px var(--spell-color);top:49%;animation-duration:.7s}.spell-projectile:after{content:'';position:absolute;right:40px;top:12px;width:110px;height:40px;background:linear-gradient(90deg,transparent,var(--spell-color));clip-path:polygon(0 50%,100% 0,100% 100%)}.spell-projectile span{z-index:1;color:#4c2e35;text-shadow:none;font-family:serif;font-weight:bold}.impact-ring{position:absolute;left:73%;top:52%;width:80px;height:80px;border:7px solid #fff4ce;border-radius:50%;z-index:5;animation:impactRing .6s .35s both;box-shadow:0 0 25px var(--spell-color)}.impact-flash{position:absolute;inset:0;background:#fff2cc;z-index:4;pointer-events:none;animation:impactFlash .18s .35s both}.impact-word{position:absolute;right:11%;top:36%;font-size:40px;font-weight:950;font-style:italic;transform:rotate(-10deg);color:#fff0b1;-webkit-text-stroke:1px #723c39;letter-spacing:3px;z-index:7;text-shadow:3px 3px 0 #1b1838;animation:impactWord .7s .4s both}.spell-title{top:24%;font-size:30px;letter-spacing:5px;color:#fff0cf;font-weight:900;text-shadow:2px 3px 0 #28233d,0 0 20px #ffb88660}.chakra-particle{position:absolute;left:78%;top:57%;width:7px;height:7px;border-radius:50%;background:#fff3bc;box-shadow:0 0 9px var(--spell-color);z-index:6;animation:particleBurst .6s calc(.35s + var(--delay)) both}.arena.hit .enemy-fighter{animation:impactShake .5s .36s both}.player-fighter.casting{animation:castLunge .6s both}.arena.hit{animation:arenaNudge .3s .36s}.arena.practice-success:after{content:'結印成功';position:absolute;top:15%;left:50%;transform:translateX(-50%);padding:9px 22px;color:#fff5cf;border:1px solid #ffe6a977;border-radius:25px;background:#9c6b2580;z-index:8;font-weight:750;font-size:17px;letter-spacing:3px;animation:successPop 1.3s both}@keyframes speedIn{0%,100%{opacity:0}30%,70%{opacity:1}}@keyframes chargeBurst{0%{transform:scale(.1);opacity:0}70%{transform:scale(1.1);opacity:1}100%{transform:scale(.2);opacity:0}}@keyframes impactRing{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(3.1)}}@keyframes impactFlash{0%,100%{opacity:0}25%{opacity:.3}}@keyframes impactWord{0%{opacity:0;transform:scale(2) rotate(-10deg)}25%,65%{opacity:1;transform:scale(1) rotate(-10deg)}100%{opacity:0;transform:scale(1.08) rotate(-10deg)}}@keyframes particleBurst{0%{opacity:0;transform:rotate(var(--a)) translateX(0)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateX(var(--d))}}@keyframes impactShake{0%,100%{transform:translateX(0);filter:brightness(1)}15%{transform:translateX(17px) rotate(5deg);filter:brightness(1.9)}45%{transform:translateX(-6px) rotate(-2deg)}70%{transform:translateX(5px)}}@keyframes castLunge{0%,100%{transform:translateX(0)}35%{transform:translateX(20px) rotate(-4deg)}}@keyframes arenaNudge{0%,100%{transform:translateX(0)}30%{transform:translateX(3px)}65%{transform:translateX(-3px)}}@keyframes successPop{0%{opacity:0;transform:translateX(-50%) scale(.5)}20%,75%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) translateY(-12px)}}@media(max-width:850px){.hero-art:after{width:240px;height:290px;top:80px}.practice-picker{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.hero-art:after{width:210px;height:250px;left:17%;top:80px}.setup-heading h1{font-size:28px}.pose-pack{padding:13px}.compact-settings{padding:0 12px}.compact-settings>summary>span{font-size:8px}.practice-picker{grid-template-columns:repeat(3,minmax(0,1fr));max-height:320px}.practice-picker .pose-key .ninja-svg{height:65px;width:80px}.practice-picker .pose-key{min-height:96px}.gesture-continue{gap:9px;padding:12px}.gesture-continue .camera-host{width:90px;max-height:75px}.gesture-continue-copy p{font-size:10px}.impact-word{font-size:28px;right:6%}.spell-title{font-size:23px}.hero-copy h1{font-size:44px}.game-toolbar .toolbar-right{gap:5px}.game-toolbar .small-btn{font-size:9px;padding:8px}.practice-success:after{font-size:14px}}
.ninja-svg.half-body{overflow:hidden}
@media(prefers-reduced-motion:reduce){.arena,.arena *,#spellFX *{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* A quiet monochrome teaching surface; combat artwork keeps its established style. */
.figure-svg{width:100%;height:100%;color:#f1f1e9;overflow:visible;filter:none}
.demo-overlay{--demo-bg:#151e30;background:var(--demo-bg);padding:16px 12px 40px;gap:5px}
.demo-overlay:before{display:none}.demo-overlay>div#demoNinja{height:auto;width:min(340px,90%);flex:1;min-height:0;margin:0;display:flex;align-items:center}
.demo-overlay h2{margin:0;text-shadow:none;font-size:23px;letter-spacing:1px}
.demo-motion-text{font-size:13px;font-weight:650;text-align:center;line-height:1.5;color:#f1f1e9;min-height:20px}
.demo-overlay p{margin:0 6px;line-height:1.6;font-size:11px}.demo-dots{margin:5px 0 0}
.seal .figure-svg{width:100%;height:72px;margin-top:0;--demo-bg:#111827}
.pose-key .figure-svg{height:65px;width:94px;max-width:100%;--demo-bg:#1b2336}
@media(max-width:600px){.demo-overlay{padding-top:14px;padding-bottom:37px;gap:4px}.demo-overlay>div#demoNinja{width:min(300px,88%)}.demo-motion-text{font-size:12px}.demo-overlay h2{font-size:21px}.demo-overlay p{font-size:10px}}

.difficulty-tabs{margin:-5px 0 20px;max-width:580px}.difficulty-tabs button{min-height:54px;font-size:14px;font-weight:700}.difficulty-tabs small{display:block;font-size:10px;margin-top:5px;font-weight:500}
.level-choice{margin:15px 0}.level-choice>label{font-size:12px;display:block;margin-bottom:8px;color:var(--text)}
.turn-bar{padding:13px 18px;background:#1c2538;border:1px solid #ff946b40;border-radius:12px;margin:0 0 14px;--turn-color:var(--orange)}.turn-bar>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px}.turn-bar b{font-size:14px;color:var(--turn-color)}.turn-bar output{font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}.turn-bar.defending{--turn-color:var(--blue);border-color:#91b8ff55}.turn-meter{height:4px;background:#ffffff0b;border-radius:4px;margin-top:10px;overflow:hidden}.turn-meter i{display:block;height:100%;width:100%;background:var(--turn-color)}.turn-bar:not(.timed) .turn-meter{opacity:.25}.turn-bar.urgent.timed output{color:#ffc281}
.arena.sealing-player .enemy-fighter,.arena.sealing-enemy .player-fighter{opacity:.35}.arena.sealing-player .player-fighter,.arena.sealing-enemy .enemy-fighter{animation:none;filter:drop-shadow(0 0 14px #d5ddff40)}
.enemy-orb{position:absolute;right:22%;top:49%;width:65px;height:65px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#fffbe8,var(--spell-color) 55%,transparent 72%);box-shadow:0 0 30px var(--spell-color);font-size:28px;font-weight:850;color:#293145;z-index:5;animation:enemyOrb .75s ease-in both}
.counter-shield{position:absolute;left:19%;top:41%;width:105px;height:125px;border:6px solid #b8e8ff;background:#9dddff30;box-shadow:0 0 24px #92cfff;border-radius:48%;display:grid;place-items:center;font-size:36px;font-weight:850;color:#def7ff;z-index:6;animation:shieldPop 1.5s both}
.counter-title{position:absolute;top:22%;left:50%;transform:translateX(-50%);font-size:28px;font-weight:850;color:#def7ff;letter-spacing:3px;z-index:6;text-align:center;white-space:nowrap;text-shadow:0 2px 9px #101423}.enemy-impact{position:absolute;left:23%;top:53%;width:80px;height:80px;border:6px solid #ffdbad;border-radius:50%;z-index:6;animation:impactRing .6s .5s both}
@keyframes enemyOrb{0%{right:22%;opacity:0;transform:scale(.3)}20%{opacity:1}85%{right:73%;opacity:1;transform:scale(1.1)}100%{right:76%;opacity:0;transform:scale(1.4)}}
@keyframes shieldPop{0%{opacity:0;transform:scale(.6)}20%,80%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.1)}}
@media(max-width:600px){.turn-bar{padding:11px 13px}.turn-bar b{font-size:12px}.turn-bar output{font-size:15px}.counter-title{font-size:21px}.difficulty-tabs button{font-size:12px}}
.chapter-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:38px 0 20px}.chapter-heading h2{font-size:23px;margin:8px 0}.chapter-heading p{font-size:12px;line-height:1.7;color:var(--muted)}.special-grid{grid-template-columns:minmax(220px,300px)}.adventure-boss .boss-art{height:180px;background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--boss-color) 25%,transparent),transparent 80%)}.adventure-boss .boss-art .character-svg{height:200px;width:220px;top:0}.adventure-boss .boss-body p{flex-direction:column;gap:7px}.adventure-boss.locked{opacity:.74}.boss-preview{max-width:590px;text-align:center}.boss-preview-art{height:250px;background:radial-gradient(ellipse,color-mix(in srgb,var(--boss-color) 25%,transparent),transparent 70%)}.boss-preview-art svg{height:100%;width:300px;max-width:100%}.boss-preview p{font-size:13px;line-height:1.9;color:#b1bdd1;margin:12px 0}.boss-preview h2{margin:8px 0}.boss-preview .primary{margin:12px 0 0 8px}.learn-preview{display:flex;gap:15px;align-items:center;text-align:left;border:1px solid #ffffff20;border-radius:12px;background:#151e30;padding:12px}.learn-preview .figure-svg{width:100px;height:90px;flex:none}.learn-preview span{font-size:11px;line-height:1.8}.learn-preview b{display:block;color:#f3c995;font-size:17px}.learn-preview small{display:block;color:#a8b6cb}.track-name{color:#e3d1b2!important}.element-badge{display:inline-grid;place-items:center;width:23px;height:23px;background:#151e30;border:1px solid var(--e);border-radius:50%;color:var(--e);font-size:12px;font-weight:800;line-height:1;vertical-align:middle;flex:none}.seal .element-badge,.pose-key .element-badge{position:absolute;right:5px;top:5px;width:19px;height:19px;font-size:10px}.pose-key{position:relative}.element-atlas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:60vh;overflow:auto;margin:16px 0}.atlas-pose{position:relative;border:1px solid #ffffff17;border-radius:10px;background:#151e30;text-align:center;padding:8px}.atlas-pose .figure-svg{height:75px}.atlas-pose b{display:block;font-size:11px;margin:5px 0}.atlas-pose .element-badge{position:absolute;top:7px;right:7px}.element-settings{margin-bottom:18px}.active-spell{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:12px}.active-spell span{font-size:10px;color:#afbbce}.counter-tokens{display:flex;gap:8px;margin-top:10px}.counter-tokens i{width:25px;height:25px;border:1px solid #ffffff26;border-radius:7px;text-align:center;line-height:23px;font-size:12px;font-style:normal;color:#8b97b0}.counter-tokens i.lit{border-color:var(--e);color:var(--e);box-shadow:0 0 10px color-mix(in srgb,var(--e) 30%,transparent);background:#ffffff09}.combat-status{font-size:10px;color:#dbcfb7;line-height:1.8;margin:0 0 10px}.combat-status:empty{display:none}.coach-card .small-btn{margin-top:14px}.lesson-banner{border:1px solid #82d9bc55;background:#82d9bc0d;color:#b3ead9;border-radius:10px;padding:12px 16px;font-size:13px;margin-bottom:14px}.lesson-recall #demoNinja,.lesson-recall #demoHint{visibility:hidden}.character-svg{overflow:visible}.element-fx{position:absolute;inset:0;z-index:4;pointer-events:none;color:var(--element-color)}.element-charge{position:absolute;left:var(--launch);top:55%;width:90px;height:90px;border:4px solid currentColor;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 30px currentColor;animation:elementCharge .4s both}.element-projectile{position:absolute;left:var(--launch);top:50%;width:90px;height:90px;filter:drop-shadow(0 0 16px var(--element-color));animation:elementTravel .85s .12s ease-in both}.element-projectile svg{width:100%;height:100%;fill:currentColor;stroke:#fff1b9;stroke-width:1.5}.element-projectile .cut{fill:none;stroke:#152337;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.element-projectile.follow-up{animation-delay:.32s;width:65px;height:65px;top:56%}.element-impact{position:absolute;left:var(--impact);top:57%;width:100px;height:100px;border:6px solid currentColor;border-radius:50%;box-shadow:0 0 20px currentColor;animation:elementRing .75s .65s both}.element-title{position:absolute;top:21%;left:50%;transform:translateX(-50%);font-size:30px;color:#fff0d1;text-shadow:0 3px 0 #152039,0 0 18px var(--element-color);font-weight:900;letter-spacing:3px;white-space:nowrap;animation:elementCaption 1.8s both}.element-hit-word{position:absolute;left:var(--impact);top:43%;transform:translateX(-50%);font-size:24px;font-weight:900;color:#fff4dc;white-space:nowrap;animation:elementCaption 1s .6s both}.element-particle{position:absolute;left:var(--impact);top:57%;height:8px;width:8px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor;animation:elementDust .6s calc(.7s + var(--delay)) both}.element-water .element-particle{border-radius:70% 20% 70% 70%}.element-earth .element-particle,.form-paper .element-particle{border-radius:0;transform:rotate(45deg)}.element-thunder .element-projectile{filter:drop-shadow(0 0 22px #ffffbd)}.form-hawk .element-projectile{width:115px;height:115px}.form-sand .element-projectile{width:110px;height:110px}.shield-dome{position:absolute;left:var(--impact);top:55%;width:142px;height:165px;border:5px solid #c7f8ff;border-radius:48%;background:radial-gradient(ellipse,#d2f9ff12,#a6ebff33);box-shadow:0 0 28px #9fddff,inset 0 0 24px #b8eeff4d;display:grid;place-items:center;color:#e5fbff;font-family:serif;font-size:48px;animation:counterShield 1.8s both}.seal-orbit{position:absolute;left:var(--impact);top:55%;width:1px;height:1px;animation:elementCaption 1.6s both}.seal-orbit i{position:absolute;top:0;left:0;width:33px;height:33px;border:1px solid #e7fcff;border-radius:7px;background:#173d58e0;font-style:normal;text-align:center;line-height:31px;color:#e7fcff;transform:rotate(var(--seal-angle)) translateY(-103px) rotate(calc(0deg - var(--seal-angle)))}.counter-sweep{position:absolute;left:var(--impact);top:55%;width:150px;height:150px;border:9px double #dcfcff;border-radius:50%;animation:counterSweep .8s .65s both}.is-blocked .element-impact{color:#cffbff}.is-blocked .element-projectile{animation-name:elementShatter}.is-blocked .element-hit-word{top:76%;font-size:18px;letter-spacing:3px}.paper-storm{position:absolute;inset:40% 0 auto;text-align:center;font-size:40px;letter-spacing:22px;color:#eee5ff;animation:elementCaption 1.3s .2s both}
@keyframes elementCharge{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.2)}}@keyframes elementTravel{0%{left:var(--launch);opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(-15deg)}20%{opacity:1}85%{left:var(--impact);opacity:1;transform:translate(-50%,-50%) scale(1.05) rotate(12deg)}100%{left:var(--impact);opacity:0;transform:translate(-50%,-50%) scale(1.4)}}@keyframes elementShatter{0%{left:var(--launch);opacity:0;transform:translate(-50%,-50%) scale(.4)}20%{opacity:1}70%{left:var(--impact);opacity:1;transform:translate(-50%,-50%) scale(1)}100%{left:var(--impact);opacity:0;transform:translate(-50%,-50%) scale(.1) rotate(75deg)}}@keyframes elementRing{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(2.5)}}@keyframes elementCaption{0%{opacity:0}15%,80%{opacity:1}100%{opacity:0}}@keyframes elementDust{0%{opacity:0;transform:rotate(var(--a)) translateX(0)}15%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateX(var(--d))}}@keyframes counterShield{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}20%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.08)}}@keyframes counterSweep{0%{opacity:0;transform:translate(-50%,-50%) scale(.7) rotate(0)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(2) rotate(90deg)}}
@media(max-width:850px){#elementBossGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.chapter-heading{align-items:start;flex-direction:column;margin-top:30px}.chapter-heading h2{font-size:21px}#elementBossGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.adventure-boss .boss-art{height:150px}.adventure-boss .boss-art .character-svg{height:170px}.element-atlas{grid-template-columns:repeat(3,minmax(0,1fr))}.element-title{font-size:22px;letter-spacing:1px}.shield-dome{width:100px;height:130px}.seal-orbit i{transform:rotate(var(--seal-angle)) translateY(-80px) rotate(calc(0deg - var(--seal-angle)))}.element-projectile{width:68px;height:68px}.element-settings summary{font-size:12px}.active-spell{gap:6px}.lesson-banner{font-size:11px}}
@media(prefers-reduced-motion:reduce){.element-fx *{animation-duration:.001ms!important}.element-title{animation:none!important;opacity:1}}
.reduce-motion .element-title{animation:none!important;opacity:1}

.lesson-hidden{visibility:hidden}

.element-subtitle{position:absolute;left:50%;top:32%;transform:translateX(-50%);text-align:center;color:#e8f4ff;background:#112235b0;border:1px solid #ffffff22;border-radius:20px;padding:7px 15px;font-size:13px;font-weight:650;white-space:nowrap;animation:elementCaption 1.8s both}.fighter.warded:after{content:'守';position:absolute;right:8%;top:45%;height:35px;width:35px;display:grid;place-items:center;color:#e8fcff;background:#477a965c;border:2px solid #afe5ff;border-radius:50%;font-size:18px;box-shadow:0 0 14px #a1ddff55}.fighter.burned:before{content:'火';position:absolute;left:12%;top:30%;height:30px;width:30px;display:grid;place-items:center;color:#ffd4ac;background:#a6463566;border:1px solid #ffad76;border-radius:50%;font-size:16px}.arena.hit .enemy-fighter{animation-delay:.7s}.arena.enemy-hit .player-fighter{animation-delay:.7s}@media(max-width:600px){.element-subtitle{font-size:10px;max-width:95%;white-space:normal}}

.tempo-power{display:inline-block;margin-top:9px;padding:4px 10px;border:1px solid #c1d9ff44;background:#c1d9ff0a;border-radius:20px;font-size:12px;color:#dbe8ff;font-weight:700}.is-partial .shield-dome{opacity:.65;border-style:dashed}.is-partial .shield-dome span{font-size:26px}.is-partial .element-projectile{animation-name:elementPartial}@keyframes elementPartial{0%{left:var(--launch);opacity:0;transform:translate(-50%,-50%) scale(.4)}20%{opacity:1}70%{left:var(--impact);opacity:1;transform:translate(-50%,-50%) scale(.7)}100%{left:var(--impact);opacity:0;transform:translate(-50%,-50%) scale(.4)}}

.duel-handover{position:absolute;inset:0;z-index:12;background:linear-gradient(145deg,#182137f5,#111729fa);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:30px;text-align:center}.duel-handover h2{font-size:clamp(30px,4vw,48px)}.duel-handover p{max-width:440px;line-height:1.8;color:#c0c8d9}.duel-handover small{color:var(--muted);font-size:11px}.duel-handover .primary{max-width:360px;min-height:54px}.player-hud.duel-waiting{opacity:.55}.player-hud.duel-active{border-color:var(--orange);box-shadow:0 0 0 1px #ff946b33}.player-hud.duel-active:nth-child(2){border-color:var(--blue);box-shadow:0 0 0 1px #91b8ff33}

.duel-calibration{width:min(460px,100%);max-height:180px;overflow:auto;text-align:left}.duel-calibration .calibration-panel{margin:0;padding:16px}.duel-calibration .calibration-note{display:none}.duel-handover:has(.duel-calibration:not([hidden])){gap:12px}.duel-handover:has(.duel-calibration:not([hidden])) h2{font-size:32px}

/* Layered jutsu: charge, flight, contact and readable recoil. */
.element-fx{--hit-time:640ms;contain:layout style;isolation:isolate}
.spell-vignette{position:absolute;inset:0;background:radial-gradient(ellipse at var(--impact) 58%,color-mix(in srgb,var(--element-color) 18%,transparent),transparent 63%);animation:jutsuAtmosphere 1.55s both}
.spell-sigil,.charge-ring{position:absolute;left:var(--launch);top:56%;width:126px;height:126px;border:2px dashed currentColor;border-radius:50%;display:grid;place-items:center;animation:jutsuSigil .6s both;opacity:.7}
.spell-sigil:before,.spell-sigil:after{content:'';position:absolute;inset:10px;border:1px solid currentColor;transform:rotate(45deg);border-radius:14px}.spell-sigil:after{inset:22px;transform:rotate(-20deg)}.spell-sigil span{font-family:serif;font-size:45px;text-shadow:0 0 16px currentColor}.charge-ring{width:164px;height:164px;border-style:solid;border-width:1px;animation-delay:.07s}
.element-charge{width:105px;height:105px;border-width:3px;animation-duration:.44s;box-shadow:0 0 22px currentColor,inset 0 0 16px currentColor}
.element-projectile{width:116px;height:116px;animation:elementTravel .52s .12s ease-in both;filter:drop-shadow(0 0 12px var(--element-color)) drop-shadow(0 0 3px #fff7cc)}.element-projectile.follow-up{width:85px;height:85px;animation-delay:.32s;top:59%}
.element-trail{position:absolute;left:23%;top:54%;width:54%;height:32px;border-radius:60%;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--element-color) 45%,transparent),var(--element-color));filter:blur(3px);transform-origin:left center;animation:jutsuTrail .58s .12s both}.from-enemy .element-trail{background:linear-gradient(270deg,transparent,color-mix(in srgb,var(--element-color) 45%,transparent),var(--element-color));transform-origin:right center}
.element-flourish{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px var(--element-color));stroke-dasharray:1400;animation:jutsuDraw .9s .1s both}.from-enemy .element-flourish{transform:scaleX(-1)}
.element-fire .element-flourish{stroke-width:15}.element-water .element-flourish{stroke-width:10;stroke:#bdefff}.element-wind .element-flourish{stroke-width:5;stroke:#dbffed}.element-thunder .element-flourish{stroke-width:6;stroke:#fff6be;filter:drop-shadow(0 0 9px #e7bc39)}.element-earth .element-flourish{stroke-width:18;stroke:#e3c895}
.impact-core,.impact-star,.impact-ring{position:absolute;left:var(--impact);top:57%;width:85px;height:85px;pointer-events:none;animation:jutsuCore .38s var(--hit-time) both}.impact-core{background:radial-gradient(circle,#fff9e6 8%,var(--element-color) 33%,transparent 72%);border-radius:50%}.impact-star{width:185px;height:185px;background:linear-gradient(35deg,var(--element-color),#fff7d9,var(--element-color));clip-path:polygon(50% 0,57% 34%,78% 14%,66% 42%,100% 50%,66% 57%,85% 83%,57% 67%,50% 100%,43% 67%,15% 86%,34% 58%,0 50%,35% 42%,20% 18%,43% 33%);animation:jutsuStar .37s var(--hit-time) both}
.element-impact{width:95px;height:95px;border:4px solid currentColor;animation:elementRing .55s var(--hit-time) both;box-shadow:0 0 12px currentColor,inset 0 0 12px currentColor}.impact-ring{width:145px;height:145px;border:2px solid currentColor;border-radius:50%;animation:elementRing .65s calc(var(--hit-time) + 90ms) both}
.speed-lines{position:absolute;left:var(--impact);top:57%;width:1px;height:1px}.speed-lines i{position:absolute;left:0;top:0;width:125px;height:2px;transform-origin:left center;background:linear-gradient(90deg,transparent,#fff3cecc,transparent);animation:jutsuSpeed .4s var(--hit-time) both}
.ground-ripple{position:absolute;left:var(--impact);top:83%;width:140px;height:32px;border:3px solid currentColor;border-radius:50%;animation:jutsuGround .65s var(--hit-time) both;box-shadow:0 0 12px currentColor}
.element-particle{width:7px;height:13px;border-radius:2px;animation:elementDust .65s calc(var(--hit-time) + var(--delay)) both;box-shadow:0 0 5px currentColor}.element-fire .element-particle{height:18px;border-radius:80% 10% 80% 40%;background:linear-gradient(#ffe3a0,#ff8056)}.element-water .element-particle{width:8px;height:16px;background:#a1ecff}.element-thunder .element-particle{height:23px;width:3px;background:#fff2b7}.element-earth .element-particle{width:13px;height:13px;background:#cda779;border:1px solid #ffe6bc;box-shadow:none}
.earth-spires{position:absolute;left:var(--impact);top:78%;width:1px;height:1px}.earth-spires i{position:absolute;bottom:0;left:calc((var(--rock) - 2)*24px);height:calc(70px + (var(--rock) + 1)*9px);width:29px;background:linear-gradient(90deg,#8d6844,#efcea0,#987b50);clip-path:polygon(18% 18%,60% 0,100% 27%,92% 100%,0 100%);transform-origin:bottom center;animation:jutsuRock .75s calc(var(--hit-time) + var(--rock)*18ms) both}
.element-title{top:24%;font-size:clamp(24px,2.8vw,34px);padding:6px 28px;background:linear-gradient(90deg,transparent,#101a30e6 22%,#101a30e6 78%,transparent);font-style:italic;animation:jutsuTitle 1.45s both}.element-subtitle{top:36%;font-size:11px;max-width:88%;white-space:normal;animation:elementCaption 1.65s both}.element-hit-word{top:75%;font-size:22px;letter-spacing:4px;animation:elementCaption .7s var(--hit-time) both}
.damage-popup,.heal-popup{position:absolute;left:var(--impact);top:47%;font-size:clamp(36px,4.2vw,54px);font-weight:950;color:#fff4d1;text-shadow:0 3px 0 #643b2c,2px 0 0 #643b2c,-2px 0 0 #643b2c,0 0 20px var(--element-color);animation:jutsuDamage .88s var(--hit-time) both;white-space:nowrap;z-index:3;font-variant-numeric:tabular-nums}.blocked-popup{font-size:24px;color:#c8ffff;text-shadow:0 2px 0 #174c66}.heal-popup{left:var(--launch);top:43%;font-size:24px;color:#aaf1cc;text-shadow:0 2px 0 #28504a;animation-delay:calc(var(--hit-time) + 90ms)}
.is-blocked .element-projectile{animation-name:elementShatter}.is-partial .element-projectile{animation-name:elementPartial}.is-blocked .impact-star{background:#c8fcff;width:115px;height:115px}.is-blocked .element-hit-word{top:81%;font-size:14px}.is-blocked .damage-popup{top:43%}.is-partial .damage-popup{color:#ffd4b0}.is-blocked .element-impact,.is-blocked .impact-ring{color:#b9faff}.is-blocked .speed-lines{color:#b9faff}
.guard-shards{position:absolute;left:var(--impact);top:55%;width:1px;height:1px;color:#c8fcff}.guard-shards i{position:absolute;width:18px;height:29px;border:2px solid currentColor;background:#cbf6ff55;clip-path:polygon(0 0,100% 15%,62% 100%,15% 70%);animation:jutsuShard .65s var(--hit-time) both}.counter-sweep{animation-delay:var(--hit-time)}
.arena.hit,.arena.enemy-hit{animation:jutsuStage .28s ease-out both}.arena.impact-guard{animation:none}.arena.hit .enemy-fighter,.arena.enemy-hit .player-fighter{animation:jutsuRecoil .4s ease-out both;animation-delay:0s}.fighter.casting{animation:jutsuCast .46s ease-out both}.arena.impact-guard .player-fighter{animation:jutsuBrace .32s ease-out both}.arena.impact-echo .element-impact{border-style:double;border-width:7px}
#sealFX{position:absolute;inset:0;z-index:6;pointer-events:none}.seal-confirm{position:absolute;left:var(--seal-x);top:68%;width:88px;height:88px;color:var(--seal-color);display:grid;place-content:center;text-align:center;opacity:0;animation:sealConfirm .7s both}.seal-confirm b{font:700 30px/1.1 serif;text-shadow:0 0 12px currentColor}.seal-confirm span{font-size:10px;font-weight:800;white-space:nowrap;color:#fff0d6;margin-top:7px;background:#121d31dd;border:1px solid color-mix(in srgb,var(--seal-color) 50%,transparent);border-radius:20px;padding:3px 9px}.seal-ring{position:absolute;inset:0;border:2px solid currentColor;border-radius:50%;box-shadow:0 0 12px currentColor;animation:sealRing .6s both}.seal-spark{position:absolute;inset:5px;border:1px solid currentColor;border-radius:17%;transform:rotate(45deg)}.seal-complete{width:100px;height:100px}.seal-complete .seal-ring{border-style:double;border-width:5px}
.combat-paused,.combat-paused *{animation-play-state:paused!important}
@keyframes jutsuAtmosphere{0%{opacity:0}25%,65%{opacity:1}100%{opacity:0}}
@keyframes jutsuSigil{0%{opacity:0;transform:translate(-50%,-50%) scale(.35) rotate(-65deg)}45%{opacity:.8}100%{opacity:0;transform:translate(-50%,-50%) scale(1.25) rotate(25deg)}}
@keyframes jutsuTrail{0%{opacity:0;scale:.05 1}35%{opacity:.7}75%{opacity:.85}100%{opacity:0;scale:1 1}}
@keyframes jutsuDraw{0%{opacity:0;stroke-dashoffset:1400}25%{opacity:.65;stroke-dashoffset:700}58%{opacity:.9;stroke-dashoffset:0}85%{opacity:.7}100%{opacity:0;stroke-dashoffset:0}}
@keyframes jutsuCore{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}18%{opacity:.9}100%{opacity:0;transform:translate(-50%,-50%) scale(2)}}
@keyframes jutsuStar{0%{opacity:0;transform:translate(-50%,-50%) scale(.15) rotate(-10deg)}15%{opacity:.85}100%{opacity:0;transform:translate(-50%,-50%) scale(1.35) rotate(18deg)}}
@keyframes jutsuSpeed{0%{opacity:0;transform:rotate(var(--angle)) translateX(20px) scaleX(.1)}15%{opacity:.8}100%{opacity:0;transform:rotate(var(--angle)) translateX(95px) scaleX(1.3)}}
@keyframes jutsuGround{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}20%{opacity:.7}100%{opacity:0;transform:translate(-50%,-50%) scale(2.2)}}
@keyframes jutsuRock{0%{opacity:0;transform:scaleY(.05) translateY(20px)}20%,55%{opacity:1;transform:scaleY(1) translateY(0)}100%{opacity:0;transform:scaleY(.9) translateY(15px)}}
@keyframes jutsuTitle{0%{opacity:0;transform:translateX(-60%) skewX(-10deg)}12%,58%{opacity:1;transform:translateX(-50%) skewX(0)}100%{opacity:0;transform:translateX(-44%)}}
@keyframes jutsuDamage{0%{opacity:0;transform:translate(-50%,12px) scale(1.7)}14%{opacity:1;transform:translate(-50%,-8px) scale(1)}65%{opacity:1}100%{opacity:0;transform:translate(-50%,-55px) scale(.88)}}
@keyframes jutsuShard{0%{opacity:0;transform:rotate(var(--angle)) translateY(-52px) scale(.2)}18%{opacity:.9}100%{opacity:0;transform:rotate(calc(var(--angle) + 30deg)) translateY(-125px) scale(.6)}}
@keyframes jutsuStage{0%,100%{translate:0 0}18%{translate:4px 1px}42%{translate:-4px -2px}67%{translate:2px 1px}}
@keyframes jutsuRecoil{0%{transform:translateX(0);filter:brightness(1)}12%,28%{transform:translateX(calc(var(--recoil-direction)*16px)) rotate(calc(var(--recoil-direction)*4deg));filter:brightness(1.6)}36%{transform:translateX(calc(var(--recoil-direction)*-4px)) rotate(-2deg)}70%{transform:translateX(calc(var(--recoil-direction)*4px))}100%{transform:translateX(0);filter:brightness(1)}}
@keyframes jutsuCast{0%,100%{transform:scale(1)}40%{transform:scale(1.08) translateY(-6px)}75%{transform:scale(.97)}}
@keyframes jutsuBrace{0%,100%{transform:scale(1)}35%{transform:scale(.96) translateX(-4px)}}
@keyframes sealConfirm{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}15%,55%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-65%) scale(1.15)}}
@keyframes sealRing{0%{opacity:1;scale:.5}100%{opacity:0;scale:1.65}}
@media(max-width:600px){.element-projectile{width:88px;height:88px}.element-projectile.follow-up{width:65px;height:65px}.spell-sigil{width:95px;height:95px}.charge-ring{width:125px;height:125px}.element-title{font-size:22px;padding:6px 15px}.element-subtitle{font-size:10px;top:35%}.element-particle:nth-of-type(n+13){display:none}.impact-star{width:110px;height:110px}.seal-confirm{width:65px;height:65px}.seal-confirm b{font-size:25px}.seal-confirm span{font-size:9px}.damage-popup{font-size:38px}.blocked-popup{font-size:20px}.heal-popup{font-size:20px}.earth-spires i{width:22px}}
.reduce-motion .element-fx .element-title,.reduce-motion .element-fx .damage-popup,.reduce-motion .element-fx .heal-popup{animation:none!important;opacity:1;transform:translateX(-50%)}
.reduce-motion .element-fx .element-projectile,.reduce-motion .element-fx .element-impact,.reduce-motion .element-fx .element-flourish,.reduce-motion .element-fx .spell-sigil,.reduce-motion .element-fx .element-trail,.reduce-motion .element-fx .speed-lines,.reduce-motion .element-fx .impact-core,.reduce-motion .element-fx .impact-star,.reduce-motion .element-fx .impact-ring,.reduce-motion .element-fx .ground-ripple,.reduce-motion .element-fx .earth-spires,.reduce-motion .element-fx .guard-shards{display:none}
.reduce-motion .seal-confirm{animation:none!important;opacity:1;transform:translate(-50%,-50%)}.reduce-motion .seal-confirm i{display:none}
@media(prefers-reduced-motion:reduce){.element-fx .element-title,.element-fx .damage-popup,.element-fx .heal-popup{animation:none!important;opacity:1;transform:translateX(-50%)}.element-fx .element-projectile,.element-fx .element-impact,.element-fx .element-flourish,.element-fx .spell-sigil,.element-fx .element-trail,.element-fx .speed-lines,.element-fx .impact-core,.element-fx .impact-star,.element-fx .impact-ring,.element-fx .ground-ripple,.element-fx .earth-spires,.element-fx .guard-shards{display:none}.seal-confirm{animation:none!important;opacity:1;transform:translate(-50%,-50%)}.seal-confirm i{display:none}}

.demo-overlay.follow-response #demoMotionText{color:#9bf3c4}
.demo-overlay.follow-response .demo-time{visibility:hidden}

/* Cartoon arena */
:root{--orange:#ffd362;--turn-color:#ffbc61}
body{background:radial-gradient(ellipse at 50% 0,#382a66,#17172e 62%)}
.hero-art,.arena-sky{background:radial-gradient(circle at 60% 36%,#ffc679 0,#b84d9d 35%,#473d85 67%,#1f244f 100%)}
.arena-sky .torii,.arena-sky .mountain,.art-land{display:none}
.arena-sky .floor{background:linear-gradient(0deg,#25223e,#4e3374);border-top:3px solid #f1a9d969}
.hero-ninja{display:flex;align-items:center;width:min(97%,570px);isolation:isolate}
.hero-ninja .cartoon-art{width:42%;flex:none;margin-left:-13%;filter:drop-shadow(0 12px 10px #3a255b70)}
.hero-ninja .cartoon-art:first-child{margin-left:0;transform:translateY(16%)}
.hero-ninja .cartoon-art:last-child{transform:translateY(20%)}
.boss-art .cartoon-art,.boss-preview-art .cartoon-art{height:100%;max-width:100%}
.fighter .cartoon-art{width:100%;height:100%;overflow:visible}
.hero-picker{padding:8px 0 14px;margin:0 0 12px;border:0;min-width:0}
.hero-picker legend{font-weight:800;font-size:16px;color:#fff5db;padding-bottom:8px}
.hero-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(66px,1fr));gap:7px}
.hero-roster button,.atlas-hero{border:1px solid #ffffff24;border-radius:12px;background:#26243e;color:#fff;min-width:0}
.hero-roster button{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:3px 2px 7px;gap:2px;font-size:11px;min-height:78px}
.hero-roster button[aria-pressed=true]{border-color:var(--hero-color);box-shadow:inset 0 0 16px color-mix(in srgb,var(--hero-color) 28%,transparent);background:#3b314b}
.hero-roster .cartoon-art{width:56px;max-width:100%;height:56px}
.atlas-hero{display:grid;justify-items:center;text-align:center;padding:8px;gap:4px}
.atlas-hero .cartoon-art{width:70px;height:70px}
.atlas-hero small{color:#d6d3e9;font-size:11px}
.move-chooser{position:absolute;inset:0;z-index:5;display:grid;align-content:center;justify-items:center;gap:9px;text-align:center;padding:10px;background:radial-gradient(ellipse at top,#3d315cec,#171729fa);color:#fdf4e7}
.move-chooser h2{margin:0;font-size:clamp(19px,3.5vw,29px)}
.move-chooser p{margin:0;font-size:12px;color:#e4dbfa}
#moveChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(100%,425px)}
#moveChoices button{display:grid;justify-items:center;align-content:center;gap:5px;min-height:116px;border:2px solid var(--move-color);border-radius:16px;background:#302949;color:#fffaf2;padding:8px;cursor:pointer}
#moveChoices button:is(:hover,:focus-visible){background:#514567}
#moveChoices button span{font-size:36px;line-height:1;color:var(--move-color)}
#moveChoices button small{font-size:11px;color:#efe4fa}
.cartoon-projectile{display:grid;place-items:center;width:100%;height:100%;font-size:clamp(27px,6vw,72px);font-weight:900;color:var(--element-color);text-shadow:0 0 12px #fff,0 0 25px var(--element-color);line-height:1}
.cartoon-burst{position:absolute;top:56%;left:var(--impact);color:var(--element-color);font-size:24px;text-shadow:0 0 8px #fff;pointer-events:none}
.cartoon-burst i{position:absolute;font-style:normal;opacity:0;animation:cartoon-burst .55s calc(var(--hit-time) + var(--burst-delay)) ease-out both}
.move-spin .cartoon-projectile,.move-swarm .cartoon-projectile{animation:cartoon-spin .38s linear infinite}
.move-bubbles .cartoon-projectile,.move-swing .cartoon-projectile{animation:cartoon-hop .4s ease-in-out infinite alternate}
.move-beam .cartoon-projectile,.move-dash .cartoon-projectile,.move-rocket .cartoon-projectile{transform:scaleX(1.45);border-radius:50%;background:radial-gradient(ellipse,#ffffff38,transparent 65%)}
.move-web .cartoon-projectile{outline:2px dashed #f0f6ffb5;border-radius:50%}
@keyframes cartoon-burst{0%{transform:rotate(var(--burst-angle)) scale(.3);opacity:1}65%{opacity:1}100%{transform:rotate(var(--burst-angle)) translateX(72px) scale(.8);opacity:0}}
@keyframes cartoon-spin{to{transform:rotate(360deg)}}
@keyframes cartoon-hop{to{transform:translateY(-17px) scale(1.14)}}
@media (prefers-reduced-motion:reduce){.cartoon-projectile,.cartoon-burst i,.cartoon-body{animation:none!important}}
.reduce-motion :is(.cartoon-projectile,.cartoon-burst i,.cartoon-body){animation:none!important}

/* Full-bleed cover and arena */
:root{--shell-gutter:clamp(16px,4vw,72px);--arena-ink:#13132e;--arena-gold:#ffd979}
html{background:var(--arena-ink)}
body{background:#11112a;color:#fff5ee}
.app-shell{max-width:none;width:100%;padding:0}
.topbar{height:clamp(58px,8svh,86px);padding-inline:var(--shell-gutter);background:linear-gradient(100deg,#16152e,#2b1c48 80%);border-bottom:1px solid #b591eb44}
.topbar .edition{color:#e2caff}
#home>:not(.hero),#setup{margin-inline:var(--shell-gutter)}
#setup{max-width:1500px;margin-inline:auto;padding-inline:var(--shell-gutter)}
.hero{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);align-items:center;min-height:max(570px,calc(100svh - 86px));background:linear-gradient(90deg,#171430 3%,#181430ef 24%,#24193c62 56%,transparent 82%),url('stadium.svg') center 55%/cover;isolation:isolate}
.hero::after{content:"";position:absolute;inset:auto 0 0;height:15%;background:linear-gradient(transparent,#11112a);pointer-events:none}
.hero-copy{padding:36px 0 55px var(--shell-gutter);position:relative;z-index:3}
.hero h1{font-size:clamp(54px,8.3vw,145px);line-height:.97;letter-spacing:-.075em;margin:22px 0 23px;max-width:none;text-shadow:0 5px #3b2665,0 13px 35px #090822a3}
.hero h1 span{color:var(--arena-gold);text-shadow:0 5px #a84d4e,0 13px 35px #100d2bab}
.hero-copy>.eyebrow{font-weight:750;color:#f4d9ff;letter-spacing:.16em;font-size:clamp(9px,1.3vw,14px)}
.hero-copy>.eyebrow i{height:12px;width:1px;background:#ffffff55}
.hero-copy>p{font-size:clamp(13px,1.5vw,20px);color:#ede5f7}
.hero-copy>.primary{font-size:16px;border-radius:13px;padding:16px 24px;background:linear-gradient(120deg,#fff0a8,#ffc962);box-shadow:0 5px 0 #aa613b,0 14px 36px #ff9d5640;font-weight:850}
.hero-copy>.text-btn{color:#edddf8;margin-top:16px}
.hero-tags{margin-top:22px;color:#ccb8e0}
.hero-art{position:relative;inset:auto;height:100%;min-width:0;background:none}
.hero-art:after,.hero-art .moon-ring,.hero-art .art-kanji{display:none}
.cover-streaks{position:absolute;inset:0;opacity:.58;pointer-events:none;background:linear-gradient(138deg,transparent 51%,#ffcc9b55 51.2%,transparent 51.7%) 0 10%/100% 90%,linear-gradient(155deg,transparent 72%,#ffd0fe4a 72.1%,transparent 72.35%)}
.hero-ninja{width:100%;min-width:0;top:0;justify-content:center;animation:none;filter:drop-shadow(0 18px 14px #17102f6e)}
.hero-ninja .cartoon-art{width:47%;margin-left:-22%;filter:drop-shadow(0 0 1px #fff6ea) drop-shadow(0 16px 12px #1d0c3466)}
.hero-ninja .cartoon-art:first-child{margin-left:0;transform:translate(1%,16%) rotate(-7deg);z-index:2}
.hero-ninja .cartoon-art:nth-child(2){transform:translate(0,-10%) scale(1.18);z-index:1}
.hero-ninja .cartoon-art:last-child{transform:translate(-2%,20%) rotate(7deg);z-index:3}
.hero-art .floating-label{z-index:4;right:clamp(16px,5vw,90px);bottom:13%;background:#1f173bd9;border:1px solid #d5a9e97a;border-radius:14px}
.art-caption{display:none}
#home .mode-grid{position:relative;margin-top:clamp(12px,3vw,32px)}
.mode-card,.boss-card,.camera-card,.coach-card{background:linear-gradient(145deg,#29244b,#1b1936);border-color:#ac82d943;box-shadow:0 12px 22px #09071d38}
.boss-art{height:clamp(116px,15vw,200px);background:radial-gradient(ellipse at 50% 82%,color-mix(in srgb,var(--boss-color) 32%,transparent),#3a286119 69%),repeating-linear-gradient(135deg,transparent 0 12px,#ffffff05 13px 14px)}
.boss-art .cartoon-art{filter:drop-shadow(0 8px 7px #100e33a0)}
.hero-roster button{background:radial-gradient(ellipse at 50% 85%,color-mix(in srgb,var(--hero-color) 22%,transparent),#25213e 76%);border-radius:10px}
.hero-roster button[aria-pressed=true]{box-shadow:inset 0 0 20px color-mix(in srgb,var(--hero-color) 39%,transparent),0 0 10px color-mix(in srgb,var(--hero-color) 40%,transparent)}
#game .game-toolbar,#game .turn-bar,#game .lesson-banner{margin-inline:clamp(10px,2vw,28px)}
#game .game-layout{grid-template-columns:minmax(0,1fr) clamp(245px,21vw,370px);gap:clamp(8px,1.1vw,16px);padding-right:clamp(8px,1.1vw,16px)}
#game .arena{height:clamp(420px,calc(100svh - 236px),950px);border-radius:0 16px 16px 0;border-left:0;border-color:#b583e76b}
#game .sequence-panel,#game .players-hud{margin-left:clamp(8px,1.1vw,16px)}
.arena-sky{background:#221d46}
.arena-stadium{position:absolute;inset:0;background:url('stadium.svg') center 62%/cover no-repeat}
.arena-sky .arena-moon,.arena-sky .floor{display:none}
.battle-top{background:linear-gradient(180deg,#17132cdb,transparent);padding-bottom:18px}
.fighter-stage{inset:90px 4% 15px}
.fighter{height:min(76%,560px);width:min(39%,530px);max-width:none}
.fighter .cartoon-art{filter:drop-shadow(0 12px 9px #140d26a1)}
.energy-rig{filter:drop-shadow(0 0 7px #ffd16d) drop-shadow(0 0 4px #fff2ab)}
.demo-overlay{--demo-bg:#181931;background:radial-gradient(ellipse at center,#37325b,#181931 75%)}
.move-chooser{background:linear-gradient(145deg,#2e2453f2,#141329fa)}
#moveChoices button{background:radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--move-color) 21%,#2b244b),#211e3b 75%);box-shadow:0 5px 0 #100e26,0 12px 18px #100e2670}
#moveChoices button:is(:hover,:focus-visible){background:#514567}
@media(max-width:880px){
 #game .game-layout{grid-template-columns:minmax(0,1fr);padding-right:0}
 #game .arena{height:clamp(390px,65svh,650px);border-radius:0;border-inline:0}
 #game .sequence-panel,#game .players-hud,#game .side-column{margin-inline:12px}
 .fighter-stage{inset:86px 0 18px}
}
@media(max-width:600px){
 .hero{grid-template-columns:minmax(0,1fr);align-content:start;align-items:start;min-height:calc(100svh - 58px);background:linear-gradient(180deg,#1c1837 2%,#1c1837e8 35%,#21152b30 78%),url('stadium.svg') 60% center/cover}
 .hero-copy{padding:27px var(--shell-gutter) 0}
 .hero h1{font-size:clamp(51px,13vw,79px);margin:13px 0 15px}
 .hero-copy>p{max-width:none;margin:0}
 .hero-copy>.primary{margin-top:14px;padding:11px 18px;font-size:14px}
 .hero-copy>.text-btn{margin-top:11px}
 .hero-tags{display:none}
 .hero-art{min-height:clamp(200px,56vw,315px);height:auto;align-items:center}
 .hero-ninja{width:min(94%,455px)}
 .hero-art .floating-label{right:13px;bottom:4px;font-size:9px}
 .fighter{height:min(70%,320px);width:45%}
 #game .arena{height:clamp(350px,56svh,520px)}
}
.setup-move-atlas{margin-bottom:14px}

#moveChoices button{position:relative;overflow:hidden}
#moveChoices .move-side{font-size:12px;color:var(--move-color);letter-spacing:.08em}
#moveChoices button.gesture-active{outline:2px solid var(--move-color);outline-offset:2px;background:#494164}
.move-hold{position:absolute;inset:auto auto 0 0;height:5px;width:var(--choice-fill,0%);background:var(--move-color);pointer-events:none}

.move-symbol{display:block;width:100%;height:100%;overflow:visible}
#moveChoices button>span:has(.move-symbol){width:64px;height:64px}
.cartoon-projectile>.move-symbol{width:100%;height:100%;filter:drop-shadow(0 0 8px var(--element-color))}
.cartoon-burst i .move-symbol{width:28px;height:28px}
.hero-cloud.storm-form .cartoon-body{filter:drop-shadow(0 0 8px #ba9be9)}
.hero-cloud.storm-form .cartoon-body>path{fill:#b9afd2}
.hero-cloud.storm-form{filter:drop-shadow(0 0 14px #9c7be280)}

.park-return{display:inline-flex;align-items:center;min-height:44px;border:1px solid #dbc2ff66;border-radius:12px;padding:8px 13px;background:#302346;color:#fff0cd;font-size:14px;text-decoration:none;font-weight:750;white-space:nowrap}
.park-return:hover,.park-return:focus-visible{background:#4b356c;outline:2px solid #ffd979;outline-offset:2px}
@media(max-width:600px){.topbar{padding-inline:12px;gap:8px;flex-wrap:wrap;height:auto;min-height:72px;padding-block:8px}.brand{font-size:16px}.brand-mark{width:31px;height:31px}.top-actions{gap:5px}.top-actions .edition{display:none}.park-return{font-size:12px;padding-inline:8px;min-height:40px}}
