@font-face{font-family:DotGothic;src:url(/media/DotGothic16.ff706ab702fd4446.ttf) format("truetype");font-display:swap}:root{font-family:BIZ UDGothic,Yu Gothic,Meiryo,sans-serif;color:#233d34;background:#eadac0;font-synthesis:none;font-weight:500;--ink:#233d34;--paper:#fffdf3;--chalk:#f5f2dc;--yellow:#ffe184;--muted:#5d6b60}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(110deg,#f7edda99,#dbc29866),url(/media/desk-wood.fc45184266bb8f50.png) center/420px;min-height:100vh}button,select{font:inherit}button,a,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;min-height:44px}button:disabled{cursor:default}button,a,select,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #da7034;outline-offset:4px}button{transition:background .15s,transform .15s,box-shadow .15s}button:not(:disabled):active{transform:translateY(2px)}h1,h2,h3,p{margin:0}.game-shell{max-width:1320px;padding:0 40px;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:102px;border-bottom:1px solid #3545372c;margin-bottom:30px}.brand{display:flex;gap:13px;align-items:center;color:var(--ink);text-decoration:none;font-weight:800;font-size:23px;letter-spacing:.08em;flex-shrink:0}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border:2px solid var(--ink);font-family:DotGothic,sans-serif;font-size:29px;transform:rotate(-5deg);box-shadow:3px 3px #233d3418}.brand small{font-size:12px;letter-spacing:.06em;display:block;font-weight:500;margin-top:3px}.topbar-right{display:flex;gap:26px;align-items:center}.record{font-size:13px;color:#4d594d;white-space:nowrap}.record b{font-size:19px;margin:0 5px;color:var(--ink);font-family:DotGothic,sans-serif}.school-label{font-size:13px;letter-spacing:.08em;border-left:1px solid #233d3438;padding-left:24px}.menu-button{border:1px solid #233d3455;background:transparent;padding:0 17px;font-size:14px}.menu-button:hover{background:#fff8e8}.start-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:30px;align-items:stretch}.board{color:var(--chalk);background:linear-gradient(120deg,#234c40dd,#12392fee),url(/media/chalkboard.c588a2505afe3bd7.png) center/256px;box-shadow:0 0 0 5px #ae8053,0 0 0 7px #855d3b,0 15px 25px #3c2b2824;position:relative;border:2px solid #183d31}.intro-board{padding:49px 38px 27px;display:flex;flex-direction:column;min-height:570px;overflow:hidden}.eyebrow{font-size:13px;letter-spacing:.16em}.intro-board .eyebrow{color:#d0d9bc}.intro-board h1{font-family:DotGothic,sans-serif;font-size:clamp(62px,7.3vw,102px);font-weight:400;letter-spacing:.02em;margin:15px 0 12px;line-height:1.25;text-shadow:2px 1px 0 #eeeac230}.title-dot{color:var(--yellow)}.intro-copy{font-size:20px;letter-spacing:.09em;line-height:1.8}.intro-hands{display:flex;align-items:center;justify-content:center;gap:18px;min-height:205px;margin:22px 0 8px}.hand-sprite{--size:112px;display:block;flex-shrink:0;width:var(--size);height:var(--size);image-rendering:pixelated;filter:invert(1) drop-shadow(3px 5px 0 #0004)}.intro-hands .hand-sprite{--size:145px;transform:rotate(-12deg)}.intro-hands .right{transform:rotate(12deg)}.versus{font-family:DotGothic,sans-serif;font-size:26px;color:var(--yellow);transform:rotate(-9deg)}.chalk-note{font-family:DotGothic,sans-serif;text-align:center;line-height:1.8;font-size:17px;color:#ede7c7;transform:rotate(-2deg);margin-bottom:35px}.board-bottom{display:flex;gap:12px;justify-content:space-between;margin-top:auto;padding-top:17px;border-top:1px solid #f5f2dc38;font-size:12px;color:#bdc9ae}.notebook{background:var(--paper);box-shadow:3px 5px #6959421a,0 8px 20px #4736240e;border:1px solid #d9d4bf}.setup{padding:29px 28px 22px;border-top:5px solid #234d40}.ink-muted{color:var(--muted)}h2{font-size:23px;font-weight:800;line-height:1.6;letter-spacing:.025em;margin:7px 0 21px}.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.role-card{text-align:left;position:relative;border:1px solid #cfd2c1;background:transparent;padding:13px 13px 11px;display:flex;flex-direction:column;gap:7px;min-width:0}.role-card:hover{background:#f4f4e7}.role-card.chosen{border:2px solid #28533e;padding:12px 12px 10px;background:#f2f3df;box-shadow:2px 3px #28533e20}.role-number{font-family:DotGothic,sans-serif;color:#71816a;font-size:13px}.role-card strong{font-family:DotGothic,sans-serif;font-size:23px;font-weight:400}.role-card>span:not(.role-number):not(.choice-mark){font-size:13px;line-height:1.7}.role-card small{font-size:12px;color:#67725b;line-height:1.8;min-height:42px}.choice-mark{font-size:12px;margin-top:3px;align-self:flex-end;color:#28533e}.setup-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid #dedfce;font-size:14px;min-height:63px}.segmented{display:flex;background:#efefe2;padding:3px;border:1px solid #d6d9c8}.segmented button{font-size:13px;min-height:35px;padding:5px 12px;background:transparent}.segmented button[aria-pressed=true]{color:#fff;background:#2b5543;box-shadow:0 1px 2px #0002}select{padding:9px 30px 9px 12px;background-color:#fffef6;border:1px solid #c6ceba;color:var(--ink);font-size:14px;min-height:42px;max-width:58%}.local-note{font-size:13px;color:var(--muted);padding:10px 0}.primary{background:#244d3c;color:#fff8dc;border:1px solid #143e30;box-shadow:0 4px #133728;padding:13px 20px;font-weight:700;min-height:50px}.primary:hover{background:#32634c}.primary:active{box-shadow:0 2px #133728}.start-button{margin:15px 0 22px;width:100%;display:flex;align-items:center;justify-content:space-between;font-size:17px}.start-button span{font-size:24px}.rules{border-top:1px solid #d7dccc;font-size:14px;line-height:1.9}.rules summary{padding:13px 0 4px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;list-style:none;font-weight:700;min-height:44px}.rules summary::-webkit-details-marker{display:none}.rules[open] summary span{transform:rotate(45deg)}.rules ol{padding-left:24px;margin:12px 0 8px;color:#51634d}.rules li{margin:7px 0}footer{display:flex;justify-content:space-between;gap:20px;padding:27px 0 22px;font-size:12px;color:#5c6554;line-height:1.8}.battle-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:29px;align-items:start}.battle-board{padding:18px 24px 16px;min-height:626px}.battle-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;color:#ccd5bd}.turn-count{font-family:DotGothic,sans-serif;font-size:14px;letter-spacing:.1em}.player-field{padding:12px 18px 5px;border:1px solid transparent;position:relative}.player-field.active{border:1px dashed #e9d984;background:#e1dc8610}.nameplate{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:14px;min-height:30px}.nameplate>div{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.player-label{font-weight:700}.role-label{font-size:13px}.split-badge{font-size:12px;white-space:nowrap;color:#cbd9b7}.split-badge b{color:#f6df8a;font-size:17px;margin-left:5px;font-family:DotGothic,sans-serif}.hands{display:flex;justify-content:center;gap:42px;padding-top:6px}.hand{position:relative;display:flex;flex-direction:column;align-items:center;background:transparent;border:1px solid transparent;padding:5px 13px 8px;min-width:135px;color:var(--chalk);touch-action:none;-webkit-user-select:none;user-select:none}.hand-top{display:flex;gap:10px;align-items:center;justify-content:center;font-size:12px;color:#c8d2b8;line-height:1.6;min-height:24px}.selected-label{font-size:12px;color:var(--yellow)}.hand.selected{border:1px solid #e6d889;background:#f4da8b12}.hand.target{border:1px dashed #e6d889;cursor:crosshair;background:#f4da8b0a}.hand:not(:disabled):hover{background:#e0dd8c1c;box-shadow:0 0 0 1px #d8dc9655}.hand-sprite.down{opacity:.4;transform:rotate(90deg);filter:invert(.75)}.finger-count{display:flex;gap:6px;align-items:baseline;justify-content:center;min-height:35px;line-height:1.15}.finger-count b{font-family:DotGothic,sans-serif;font-size:31px;font-weight:400}.finger-count small{font-size:12px;color:#d3d6bc}.down-label{font-family:DotGothic,sans-serif;font-size:17px;letter-spacing:.1em;color:#a9b3a0;margin-top:6px}.attack-value{font-size:12px;margin-top:4px;color:#ffe19a}.effects{min-height:21px;text-align:center;line-height:1.8}.effect-tag{display:inline-block;font-size:12px;padding:0 7px;color:#ffe4a5;border:1px solid #e1d29b4a;margin:4px 3px 0}.turn-divider{display:flex;align-items:center;gap:14px;margin:10px 0;color:var(--yellow);font-family:DotGothic,sans-serif}.turn-divider>span{flex:1;height:1px;background:#edeaca36}.turn-divider strong{font-weight:400;font-size:18px;white-space:nowrap;padding:5px 0}.turn-divider strong:focus{outline:none}.instruction{font-size:14px;text-align:center;padding-top:15px;min-height:42px;color:#e7dfb6;line-height:1.7}.battle-notebook{padding:24px 24px 12px;border-top:5px solid #284f3f}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.notebook-page{font-family:DotGothic,sans-serif;font-size:20px;color:#8d9983}.battle-notebook h2{font-size:21px;margin-bottom:19px}.action-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-bottom:1px solid #d5dac8;padding-bottom:19px;margin-bottom:22px}.secondary{border:1px solid #657b5b;background:#eef0df;padding:9px 16px;font-weight:700}.secondary:hover{background:#e5eacb}.secondary small{display:block;font-size:12px;color:#687b60;font-weight:400;margin-top:3px}.text-button{background:transparent;font-size:14px;text-decoration:underline;text-underline-offset:5px;padding:9px 11px;color:#55654e}.text-button:hover{background:#e8eddc}.action-row button:disabled{opacity:.4}h3{font-size:15px;font-weight:700;line-height:1.7}.skill-heading{margin-bottom:13px;align-items:baseline;flex-wrap:wrap}.skill-heading small{font-size:12px;color:#67715c}.skill-list{display:flex;flex-direction:column;gap:11px}.skill{display:flex;gap:12px;align-items:start;text-align:left;padding:13px 12px;border:1px solid #cbd2bc;background:#fafbf0;width:100%}.skill:hover:not(:disabled){background:#eef1d7;border-color:#59704b}.skill:disabled{background:#f4f4ea;color:#737d69}.skill:disabled .skill-mark{opacity:.5}.skill-mark{font-family:DotGothic,sans-serif;font-size:22px;min-width:41px;height:43px;display:grid;place-items:center;background:#e8ebd7;color:#335039;border:1px solid #b4c0a1}.skill-body{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}.skill-name{display:flex;align-items:baseline;justify-content:space-between;gap:5px;font-size:15px;font-weight:700}.skill-name small{font-size:12px;font-weight:400;white-space:nowrap}.skill-description{font-size:13px;line-height:1.75;color:#627054}.battle-log{margin-top:22px;padding-top:18px;border-top:1px solid #d5dac8}.battle-log ol{list-style:none;margin:10px 0 19px;padding:0;display:flex;flex-direction:column;gap:9px;font-size:12px;line-height:1.8;color:#738066}.battle-log .latest{color:#2d5037;font-size:13px;padding-left:10px;border-left:2px solid #7c915f}.split-panel{padding:12px;background:#eef1d9;border:1px solid #bac7a3;margin:-7px 0 20px}.split-panel p{font-size:13px;color:#61714f;margin-bottom:10px}.split-options{display:flex;flex-wrap:wrap;gap:6px}.split-options button{padding:7px 9px;border:1px solid #b4c39c;background:#fffef0;flex:1;min-width:50px}.split-options button:hover{background:#dce6bd}.split-options small{font-size:11px;display:block;white-space:nowrap}.split-options strong{font-family:DotGothic,sans-serif;font-size:20px;font-weight:400;white-space:nowrap}.split-options strong span{color:#879577;font-size:13px}.result{text-align:center;padding:18px 0}.result-caption{font-family:DotGothic,sans-serif;font-size:16px;color:#758552}.result h3{font-family:DotGothic,sans-serif;font-size:28px;margin:12px 0;font-weight:400}.result p{font-size:14px;margin-bottom:23px}.result .primary{width:100%;margin-bottom:10px}.modal-backdrop{position:fixed;inset:0;z-index:10;background:#09271dbb;display:grid;place-items:center;padding:24px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.leave-dialog{padding:30px;max-width:430px;width:100%;display:flex;flex-direction:column;gap:14px}.leave-dialog h2{margin:0}.leave-dialog p{font-size:14px;line-height:1.8;margin-bottom:10px}.hit-number{position:absolute;left:calc(50% + 25px);top:50px;font-family:DotGothic,sans-serif;font-size:29px;color:var(--yellow);text-shadow:2px 2px #264537;pointer-events:none;animation:hit-number 1s both}.hand.hit .hand-sprite{animation:hand-hit .3s ease-out}@keyframes hit-number{0%{opacity:0;transform:translateY(10px)}20%{opacity:1}75%{opacity:1}to{opacity:0;transform:translateY(-24px)}}@keyframes hand-hit{30%{translate:5px 0}60%{translate:-4px 0}to{translate:0 0}}@media(min-width:1400px){.game-shell{padding-top:10px}.topbar{margin-bottom:40px}.intro-board{min-height:600px}.intro-hands{margin-top:38px}}@media(max-width:1000px){.game-shell{padding:0 25px}.start-layout{gap:25px;grid-template-columns:1fr 1.05fr}.intro-board{padding:35px 25px 25px}.intro-hands .hand-sprite{--size:112px}.intro-hands{gap:5px}.intro-copy{font-size:17px}.setup{padding:22px 19px}.setup h2,.role-card strong{font-size:20px}.battle-layout{grid-template-columns:minmax(0,1.4fr) minmax(290px,1fr);gap:24px}.battle-board{padding:16px 12px}.player-field{padding:10px 8px 4px}.hands{gap:12px}.hand{min-width:113px;padding:5px 7px}.hand-sprite{--size:100px}.battle-notebook{padding:20px 16px 12px}.school-label{display:none}}@media(max-width:760px){.game-shell{padding:0 19px}.topbar{min-height:85px;margin-bottom:25px}.brand{font-size:20px;gap:10px}.brand-mark{width:35px;height:35px;font-size:24px}.brand small{font-size:11px}.topbar-right{gap:10px}.record{font-size:11px}.record b{font-size:16px;margin:0 2px}.menu-button{font-size:12px;padding:0 10px;min-height:38px}.start-layout{grid-template-columns:1fr;gap:26px}.intro-board{min-height:0;padding:24px}.intro-board h1{font-size:62px;margin:9px 0}.intro-copy{font-size:16px}.intro-hands{position:absolute;right:15px;top:32px;min-height:120px;margin:0;gap:4px}.intro-hands .hand-sprite{--size:78px}.versus{font-size:18px}.chalk-note{text-align:left;margin:19px 0 22px;font-size:14px;transform:none}.board-bottom{font-size:11px;padding-top:13px}.intro-board .eyebrow{font-size:11px}.setup{padding:24px}.setup h2{font-size:23px}.role-card{padding:15px}.role-card.chosen{padding:14px}.role-card strong{font-size:24px}.role-card small{min-height:23px}.battle-layout{grid-template-columns:1fr;gap:24px}.battle-board{min-height:0;padding:12px 16px}.hands{gap:45px}.hand-sprite{--size:84px}.hand{min-width:130px}.finger-count b{font-size:28px}.player-field{padding:6px 10px 4px}.effects{min-height:14px}.turn-divider{margin:6px 0}.turn-divider strong{font-size:16px}.instruction{padding-top:10px;font-size:13px;min-height:36px}.battle-notebook{padding:22px}.battle-notebook h2{font-size:22px}.skill-list{display:grid;grid-template-columns:1fr 1fr}.skill{gap:8px;flex-direction:column;padding:12px}.skill-body{width:100%}.skill-mark{height:31px;font-size:18px}.battle-log{margin-top:19px}footer{font-size:11px;gap:7px;flex-direction:column;padding:22px 0}.skill-name{flex-wrap:wrap}}@media(max-width:410px){.game-shell{padding:0 14px}.intro-board{padding:20px}.intro-board h1{font-size:53px}.intro-hands{right:8px;top:47px}.intro-hands .hand-sprite{--size:60px}.intro-copy{font-size:14px}.setup{padding:19px}.setup h2{font-size:21px}.role-grid{gap:8px}.role-card strong{font-size:21px}.role-card>span:not(.role-number):not(.choice-mark){font-size:12px}.role-card small{font-size:11px;min-height:40px}.segmented button{padding:6px 9px;font-size:12px}.hands{gap:20px}.hand{min-width:113px}.nameplate>div{gap:7px}.role-label{font-size:12px}.player-label{font-size:13px}.battle-notebook{padding:18px}.skill-list{grid-template-columns:1fr}.skill{flex-direction:row}.skill-mark{height:40px}.record{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.hit-number{display:none}}:root{--ink: #253f39;--paper: #fffdf5;--chalk: #f5f0db;--yellow: #f1cc78;--role-accent: #dfae59;--role-ink: #785221;--role-wash: #f8efdc}[data-character=madonna],[data-role=madonna]{--role-accent: #e5a6bb;--role-ink: #8b435d;--role-wash: #fbebf0}body{background:radial-gradient(ellipse at 12% 0%,#fffaf0bc,transparent 65%),linear-gradient(120deg,#eee3d2ed,#d4c8b5e8),url(/media/desk-wood.fc45184266bb8f50.png) center / 600px}.game-shell{max-width:1320px}.topbar{border-color:#2a42331b;min-height:100px}.brand{letter-spacing:.12em}.brand-mark{background:#264b40;color:#f8eac6;border-color:#264b40;border-radius:5px;box-shadow:0 3px #173c32,0 6px 12px #28463815;transform:rotate(-4deg)}.brand small{margin-top:6px;color:#697469;letter-spacing:.07em}.record{color:#687165}.menu-button{border-color:#41574535;border-radius:5px;background:#fffdf43d}.eyebrow{font-size:12px;letter-spacing:.18em}.board{border:1px solid #152f29;border-radius:10px;background:radial-gradient(ellipse at 12% 0%,#52776569,transparent 68%),linear-gradient(135deg,#254e43f2,#15392ff7),url(/media/chalkboard.c588a2505afe3bd7.png) center / 380px;box-shadow:0 0 0 5px #bb956e,0 0 0 6px #826347,inset 0 2px 5px #09271f80,0 18px 35px -15px #243a354d}.intro-board{padding:44px 38px 26px}.intro-board h1{letter-spacing:.015em;text-shadow:0 3px 0 #122e232a}.intro-board .eyebrow{color:#b9c9ac}.intro-copy{color:#e2e5d0;font-size:18px;letter-spacing:.065em}.intro-hands{min-height:205px;gap:22px}.intro-hands .hand-sprite{--size: 156px}.versus{font-size:22px;color:#e0c481;opacity:.85}.chalk-note{color:#cbd7bd;font-size:16px;transform:rotate(-1deg)}.board-bottom{border-color:#e5ead221;color:#a8bca3;line-height:1.8}.notebook{border:1px solid #e0dbce;border-radius:9px;background:linear-gradient(130deg,#fffef8,#fbf9ef);box-shadow:0 3px #fffaf0aa,0 4px #c5beaa55,0 14px 30px -16px #3b44332b}.setup,.battle-notebook{border-top:3px solid #54705a}.setup{padding:30px 28px 22px}h2{letter-spacing:.02em;font-weight:700}.role-grid{gap:14px;margin-bottom:23px}.character-portrait{display:block;width:min(100%,210px);align-self:center;image-rendering:pixelated;border-radius:12px;margin:2px auto 8px}.role-card:hover .character-portrait,.role-card:focus-visible .character-portrait{animation:character-greeting 1.1s step-end infinite}@media(prefers-reduced-motion:reduce){.role-card:hover .character-portrait,.role-card:focus-visible .character-portrait{animation:none}}.role-card{--role-accent: #dfae59;--role-ink: #785221;--role-wash: #f8efdc;padding:17px 15px 14px;border:1px solid #dedfd2;border-radius:7px;background:#fffef7;gap:9px;box-shadow:0 2px 3px #283b2610}.role-card[data-role=madonna]{--role-accent: #e5a6bb;--role-ink: #8b435d;--role-wash: #fbebf0}.role-card.chosen{padding:17px 15px 14px;border:1px solid var(--role-accent);background:linear-gradient(150deg,var(--role-wash),#fffdf5);box-shadow:inset 0 3px 0 var(--role-accent),0 5px 12px #443b1e0c}.role-card:hover{background:var(--role-wash);transform:translateY(-2px)}.role-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--role-wash);border:1px solid var(--role-accent);color:var(--role-ink)}.role-card strong{color:var(--role-ink);font-size:24px}.role-card>span:not(.role-number):not(.choice-mark){font-size:14px}.role-card small{color:#777967;line-height:1.7}.choice-mark{color:var(--role-ink)}.setup-row{border-color:#e7e5d9}.segmented{background:#f0f1e8;border-color:#e1e4d6;border-radius:6px}.segmented button{border-radius:4px}.segmented button[aria-pressed=true]{background:#345648}select{border-radius:5px;border-color:#d6dbca;background-color:#fffef9}.primary{border-radius:6px;background:linear-gradient(#3c6350,#294c3d);border:1px solid #224533;box-shadow:inset 0 1px #ffffff26,0 3px #1a392b,0 8px 14px #223b2512}.primary:hover{background:linear-gradient(#48715b,#365b47)}.start-button{margin-top:20px;letter-spacing:.05em}.rules{border-color:#e2e4d8}.rules summary{font-size:14px;color:#51634c}footer{color:#72796b}.battle-board{padding:20px 23px 15px}.battle-heading{margin:0 5px 17px;color:#adbea8}.turn-count{font-size:12px;color:#bdd0b3}.player-field{padding:12px 17px 7px;border-radius:7px;background:#0b291815;transition:background .2s,border-color .2s}.player-field.active{border:1px solid color-mix(in srgb,var(--role-accent) 55%,transparent);background:linear-gradient(135deg,#ffffff08,#ffffff01);box-shadow:inset 3px 0 0 var(--role-accent),0 4px 14px #041e1712}.nameplate{min-height:33px;padding:0 2px 5px}.player-label{letter-spacing:.035em}.role-label{font-size:12px}.split-badge{color:#b8c9ab;background:#092a221f;padding:3px 9px;border-radius:4px}.split-badge b{color:var(--role-accent)}.hands{gap:48px;padding-top:5px}.hand{min-width:140px;border-radius:7px;padding:7px 14px 10px}.hand-top{color:#acbfa5;font-size:12px;margin-bottom:2px}.hand-sprite{height:calc(var(--size) * 1.18);mix-blend-mode:screen;filter:none;transform:scaleX(var(--facing));transition:translate .18s ease-out,transform .18s ease-out,filter .18s ease-out}.intro-hands .hand-sprite.left{transform:rotate(-10deg)}.intro-hands .hand-sprite.right{transform:rotate(10deg) scaleX(-1)}.hand:not(:disabled):hover .hand-sprite{translate:0 -4px}.hand.selected .hand-sprite{translate:0 -5px}.hand-sprite.down{opacity:.34;filter:grayscale(.8);transform:scaleX(var(--facing)) rotate(80deg)}.hand:not(:disabled):hover{box-shadow:none;background:#f1eac908}.hand.selected{border-color:var(--role-accent);background:#f3eac711;box-shadow:0 5px 14px #041f1924,inset 0 0 0 1px #e5d6a511}.hand.target{border:1px dashed #e5d2998c;background:#eddd9a08}.hand.target:hover{border-color:#f3dfa4;background:#efdc9819}.selected-label{color:var(--role-accent)}.finger-count{min-height:32px;padding:4px 12px 5px;border-radius:20px;background:#0a292137;gap:5px;margin-top:1px}.finger-count b{font-size:26px;color:#f4eed6}.finger-count small{color:#b4c1a5}.down-label{font-size:14px;color:#8ca191}.effect-tag{border-radius:4px;border-color:#d8c28e40;background:#071e151f}.turn-divider{gap:13px;margin:11px 0}.turn-divider>span{background:linear-gradient(90deg,transparent,#cedbb72e)}.turn-divider>span:last-child{transform:rotate(180deg)}.turn-divider strong{border-radius:20px;border:1px solid #dfd19933;background:#102f262e;padding:6px 19px;color:#e7dba4;font-size:16px}.instruction{color:#d4dec0;letter-spacing:.025em}.battle-notebook{padding:25px 25px 14px;border-top-color:var(--role-accent)}.notebook-page{font-size:19px;color:#bec6b0}.battle-notebook h2{font-size:21px;margin:8px 0 22px}.secondary{border-radius:5px;background:#f0f2e5;border-color:#c0ccb0}.text-button{text-decoration-color:#9da68d;font-size:13px}.skill-heading{gap:7px}.skill{border-radius:6px;background:#fffef8;border-color:#e0e2d5;padding:14px 12px;gap:12px}.skill:hover:not(:disabled){background:var(--role-wash);border-color:var(--role-accent);transform:translateY(-2px);box-shadow:0 5px 10px #493f2910}.skill-mark{border-radius:5px;background:var(--role-wash);color:var(--role-ink);border-color:color-mix(in srgb,var(--role-accent) 60%,#ffffff)}.skill-name{font-size:15px}.skill-name small{color:#75836a}.skill-description{font-size:14px;line-height:1.8;color:#67745e}.skill:disabled{background:#f1f2e8;border-color:#e3e5d9;box-shadow:none}.skill:disabled .skill-description{color:#7c8574}.action-row,.battle-log{border-color:#e0e3d5}.battle-log ol{gap:10px}.battle-log .latest{border-color:var(--role-accent);padding-left:11px;font-size:14px}.split-panel{border-radius:6px;background:#f1f3e4;border-color:#c6d0b4}.split-options button{border-radius:4px}.leave-dialog{border-top:3px solid #617954}.hit-number{color:#ffe5a3;text-shadow:0 2px #153c2b;font-size:30px}.hand.hit .hand-sprite{animation:hand-impact .32s cubic-bezier(.2,.7,.3,1)}@keyframes hand-impact{0%{translate:0 0}25%{translate:0 7px;scale:.94}65%{translate:0 -3px;scale:1.025}to{translate:0 0;scale:1}}@media(max-width:1000px){.intro-board{padding:34px 25px 24px}.intro-hands{gap:6px}.intro-hands .hand-sprite{--size: 123px}.setup{padding:24px 20px}.role-card,.role-card.chosen{padding:15px 12px 12px}.role-card strong{font-size:22px}.role-card>span:not(.role-number):not(.choice-mark){font-size:13px}.battle-board{padding:17px 13px 14px}.player-field{padding:10px 8px 6px}.hands{gap:15px}.hand{min-width:113px;padding:5px 8px 9px}.battle-notebook{padding:22px 17px 14px}}@media(max-width:760px){.topbar{min-height:85px}.intro-board{padding:24px}.intro-copy{font-size:15px}.intro-hands{gap:0;min-height:120px;right:14px;top:28px}.intro-hands .hand-sprite{--size: 86px}.chalk-note{font-size:14px}.setup{padding:24px}.role-card,.role-card.chosen{padding:16px 14px 13px}.role-card strong{font-size:23px}.battle-board{padding:14px 15px}.battle-heading{margin-bottom:11px}.player-field{padding:8px 9px 5px}.hands{gap:40px}.hand{min-width:127px}.turn-divider{margin:8px 0}.turn-divider strong{padding:5px 15px;font-size:15px}.battle-notebook{padding:23px}.skill{gap:9px}}@media(max-width:410px){.intro-board{padding:21px}.intro-hands{right:6px;top:38px}.intro-hands .hand-sprite{--size: 66px}.intro-copy{font-size:14px}.setup{padding:20px}.role-card,.role-card.chosen{padding:14px 11px 12px}.role-card strong{font-size:21px}.role-card>span:not(.role-number):not(.choice-mark){font-size:12px}.hands{gap:16px}.hand{min-width:110px}.split-badge{padding:3px 6px}.battle-notebook{padding:20px}}@media(prefers-reduced-motion:reduce){.hand.hit .hand-sprite{animation:none}.role-card:hover,.skill:hover:not(:disabled){transform:none}.hand:not(:disabled):hover .hand-sprite,.hand.selected .hand-sprite{translate:none}}@media(min-width:761px){.start-layout{grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr);gap:28px}.start-layout .intro-board{padding:30px 22px}.start-layout .intro-hands{gap:6px}.start-layout .intro-hands .hand-sprite{--size: 100px}.start-layout .role-grid{gap:20px}.start-layout .setup{padding:30px}}.start-layout{grid-template-columns:minmax(0,1fr);max-width:960px;margin-inline:auto}.leave-dialog{max-height:calc(100dvh - 48px);overflow-y:auto}.leave-dialog .rules{margin:0}.leave-dialog .rules ol{padding-left:20px;font-size:13px;line-height:1.7}.hand:not(:disabled){cursor:grab}.hand.target:not(:disabled){cursor:crosshair}.is-dragging,.is-dragging *{cursor:grabbing!important}.is-dragging .selected-label{visibility:hidden}.hand.drag-origin .hand-sprite{opacity:.22;translate:none}.hand.drop-ready{border:1px dashed #e4d09899;background:#eddda509}.hand.drop-hover,.hand.drop-hover:not(:disabled):hover{border:1px solid #ffe6a4;background:#f5dc8426;box-shadow:0 0 0 3px #f5dc8418,inset 0 0 22px #f5dc8410}.hand.drop-hover:after{content:"離して攻撃";position:absolute;top:-12px;left:50%;transform:translate(-50%);border-radius:12px;padding:3px 10px;background:#f1d98c;color:#2a4536;font-size:12px;white-space:nowrap;pointer-events:none}.drag-ghost{position:fixed;z-index:100;width:112px;height:134px;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translate(-50%,-65%);mix-blend-mode:screen;pointer-events:none;-webkit-user-select:none;user-select:none}.drag-ghost,.drag-ghost *{pointer-events:none}.drag-ghost .hand-sprite{--size: 82px;flex-shrink:0;translate:0 -12px;rotate:-24deg;scale:1.12;transform-origin:50% 90%;transition:rotate .18s ease-out,translate .18s ease-out,scale .18s ease-out;animation:hand-windup .18s ease-out both}.drag-ghost:has(.hand-sprite.right) .hand-sprite{rotate:24deg}.drag-ghost.over-target .hand-sprite{translate:0 -24px;rotate:-42deg;scale:1.23}.drag-ghost.over-target:has(.hand-sprite.right) .hand-sprite{rotate:42deg}@keyframes hand-windup{0%{opacity:.65;margin-top:18px}to{opacity:1;margin-top:0}}.drag-value{color:#f4e5ad;font-size:13px;line-height:1.4;margin-top:-2px}@media(max-width:760px){.drag-ghost{width:96px;height:118px}.drag-ghost .hand-sprite{--size: 70px}}@media(prefers-reduced-motion:reduce){.drag-ghost .hand-sprite{animation:none;transition:none}}.cpu-strike{animation:cpu-strike-flight var(--cpu-flight-duration, .55s) ease-in both}.cpu-strike .hand-sprite{animation:cpu-strike-windup var(--cpu-flight-duration, .55s) ease-in both}.cpu-strike:has(.right){--windup-angle: 40deg}.cpu-strike:has(.left){--windup-angle: -40deg}.hand.cpu-aim{border-color:#f1d98c;background:#f5dc841c}@keyframes cpu-strike-flight{0%,60%{translate:0 0}to{translate:var(--strike-x) var(--strike-y)}}@keyframes cpu-strike-windup{0%{translate:0 0;rotate:0deg;scale:1}55%{translate:0 -30px;rotate:var(--windup-angle);scale:1.25}to{translate:0 0;rotate:0deg;scale:1}}@media(prefers-reduced-motion:reduce){.cpu-strike,.cpu-strike .hand-sprite{animation:none}}.battle-layout{grid-template-columns:minmax(0,1fr) 310px;gap:24px}.battle-board{border:1px solid #71604b;border-radius:18px;padding:20px 28px 16px;background:radial-gradient(ellipse at 50% 45%,#66534244,transparent 65%),repeating-linear-gradient(2deg,#ffffff02 0 1px,transparent 1px 8px),linear-gradient(110deg,#342e29,#46392d 50%,#302c28);box-shadow:inset 0 1px #d6bd8b35,inset 0 0 70px #130e0a35,0 20px 40px #22180f26}.battle-board:before,.battle-board:after{display:none}.battle-heading{color:#c0ae94;margin-bottom:10px}.battle-heading .eyebrow{letter-spacing:.2em}.battle-board .turn-count{color:#b6a58b}.battle-board .player-field,.battle-board .player-field.active{border:1px solid transparent;background:none;box-shadow:none;padding:5px 8px}.battle-avatar{display:inline-block;width:56px;height:56px;flex:0 0 56px;background:url(/media/characters.b34efcb0d5fef7dc.png) 15% 8% / 400% 200% no-repeat;image-rendering:pixelated;border-radius:50%;border:2px solid #ac977758}.battle-avatar.madonna{background-position:83% 8%}.active .battle-avatar{border-color:var(--role-accent);box-shadow:0 0 0 4px #ead7a10c}.battle-board .nameplate{padding-bottom:2px}.battle-board .player-label{color:#eee3d0;font-size:15px}.battle-board .split-badge{background:none;color:#bead96}.battle-board .hands{gap:clamp(24px,6vw,80px);padding-top:0}.battle-board .opponent .hands{flex-direction:row-reverse}.battle-board .hand{min-width:146px;padding:2px 12px 6px;border-radius:14px}.battle-board .hand-sprite{--size: 126px}.battle-board .opponent .hand-sprite{transform:rotate(180deg) scaleX(var(--facing))}.battle-board .opponent .hand-sprite.down{transform:rotate(260deg) scaleX(var(--facing))}.cpu-strike .hand-sprite,.opponent-drag .hand-sprite{transform:rotate(180deg) scaleX(var(--facing))}.battle-board .hand-top{color:#bbaa92;font-size:11px;letter-spacing:.1em}.battle-board .finger-count{background:none;padding:0}.battle-board .finger-count b{font-size:27px}.battle-board .finger-count small{color:#bbaa92}.battle-board .turn-divider{margin:3px 0}.battle-board .turn-divider strong{background:none;border:0;color:#e4c994;font-size:14px;letter-spacing:.12em}.battle-board .turn-divider>span{background:linear-gradient(90deg,transparent,#d3b68a40)}.battle-board .instruction{color:#c6b79e;font-size:12px;border-top-color:#c7b18b20}.battle-notebook{border:1px solid #ded6c7;border-radius:12px;padding:22px 20px 14px;box-shadow:0 8px 22px #3828160b;background:#f5f1e7}.battle-notebook h2{font-size:19px;margin:8px 0 18px}.battle-notebook .skill{background:transparent;border:0;border-bottom:1px solid #dbd4c7;border-radius:0;padding:15px 0}.battle-notebook .skill:hover:not(:disabled){transform:none;box-shadow:none;background:#e5ddcb44}.battle-notebook .skill-mark{background:#e8e1d2;border:none}.battle-notebook .skill-description{font-size:12px}.battle-notebook .battle-log{opacity:.8}.battle-notebook .battle-log ol{font-size:12px}.battle-board .hand.hit .finger-count{animation:count-impact .32s ease-out}@keyframes count-impact{35%{scale:1.2}}@media(max-width:1000px){.battle-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.battle-board{padding:16px 12px}.battle-board .hands{gap:20px}.battle-board .hand{min-width:110px}.battle-board .hand-sprite{--size: 104px}}@media(max-width:760px){.battle-layout{grid-template-columns:1fr}.battle-board{border-radius:12px;padding:14px 10px}.battle-avatar{width:40px;height:40px;flex-basis:40px}.battle-board .hands{gap:38px}.battle-board .hand-sprite{--size: 96px}.battle-board .nameplate>div{gap:7px}.battle-board .player-label{font-size:13px}.battle-board .split-badge{font-size:10px;padding:0}}@media(prefers-reduced-motion:reduce){.battle-board .hand.hit .finger-count{animation:none}}.stage-progress{padding:12px 16px;border-left:3px solid #a68a53;background:#b8a37512;color:#52604b;line-height:1.8}.stage-progress small{font-size:12px;color:#747866}.result button{margin-top:10px}.stage-cutin{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;background:#101c25ed}.cutin-card{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(100%,520px);padding:32px;border:1px solid #ccb17670;border-inline:0;background:linear-gradient(110deg,#344d43,#1a302b);color:#f5e5bc;animation:cutin-arrive .26s ease-out both}.cutin-stage{font-size:13px;letter-spacing:.3em;color:#c3b28f}.cutin-card .character-portrait{width:180px;margin:0}.cutin-card strong{font-size:36px;letter-spacing:.2em}.cutin-role{font-size:13px;color:#d3be8d}.cutin-line{margin:10px 0;font-size:15px}.cutin-card small{font-size:11px;color:#b3bfb1}@keyframes cutin-arrive{0%{opacity:0;transform:translate(-35px)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.cutin-card{animation:none}}.growth{display:flex;flex-direction:column;gap:6px;width:100%;margin:10px 0}.growth strong{font-size:15px;color:#596b4b}.xp-track{display:block;height:6px;background:#64795422;border-radius:5px;overflow:hidden}.xp-track>span{display:block;height:100%;background:#849c5f}.growth small{font-size:11px;color:#747b67;min-height:0}.xp-reward{padding:15px;margin:12px 0;background:#cbbb821c;border:1px solid #c2b58350;border-radius:8px}.xp-reward>strong{color:#6e733e}.level-up{color:#897025;font-weight:700;animation:level-rise .5s ease-out}@keyframes level-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.level-up{animation:none}}.growth-roadmap{margin:20px 0;padding:16px;border:1px solid #cecbb9;border-radius:8px}.growth-roadmap summary{cursor:pointer;font-weight:700;color:#435940}.growth-roadmap summary span{float:right;font-size:12px}.growth-roadmap>p{font-size:12px;color:#727669;line-height:1.8}.growth-roadmap ol{list-style:none;padding:0;max-height:420px;overflow-y:auto}.growth-roadmap li{display:flex;gap:16px;padding:14px 0;border-top:1px solid #d9d6c8}.roadmap-level{min-width:48px;color:#7b754f;font-weight:700}.growth-roadmap li small{display:inline-block;margin-left:12px;color:#70775c;font-size:11px}.growth-roadmap li p{margin:5px 0 0;font-size:12px;color:#68715e;line-height:1.7}.classroom{position:relative;isolation:isolate;overflow:hidden;min-height:700px;border-radius:14px;background:linear-gradient(180deg,#e1d9bc 0 65%,#bba88b 65% 67%,#947554 67%);box-shadow:0 20px 60px #45362322;padding:65px 15% 190px 23%}.classroom:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,#fff9d990,transparent 65%);pointer-events:none}.classroom-windows{position:absolute;left:-32px;top:35px;width:17%;height:340px;display:flex;gap:8px;transform:skewY(-8deg)}.classroom-windows i{flex:1;border:8px solid #faf2d6;background:linear-gradient(180deg,#abc4c2,#e8eed5);box-shadow:8px 12px #786b4920}.classroom-windows i:after{content:"";display:block;height:46%;border-bottom:7px solid #faf2d6}.classroom-board{position:relative;text-align:center;background:radial-gradient(ellipse at 30% 20%,#426b55,#284c3d 80%);border:12px solid #877154;box-shadow:inset 0 0 40px #08271b40,0 10px #5b4d3b,12px 22px 30px #46392125;padding:35px 24px 30px;color:#f2edcf}.classroom-board .eyebrow{color:#c8d5b9;letter-spacing:.3em}.opening-date{position:absolute;right:10px;top:20px;writing-mode:vertical-rl;font-family:DotGothic,sans-serif;font-size:12px;color:#d6ddc480}.opening-kicker{margin:30px 0 0;font-size:13px;letter-spacing:.12em}.classroom-board h1{font-family:DotGothic,sans-serif;font-size:clamp(60px,7vw,100px);font-weight:400;letter-spacing:.08em;line-height:1.4;margin:8px 0;text-shadow:2px 2px #ffffff18}.classroom-board h1 span{color:#e9cf88}.opening-copy{font-size:14px;line-height:2;color:#d2dfc8}.opening-start{display:flex;gap:55px;align-items:center;justify-content:center;margin:25px auto 18px;padding:12px 28px;border:1px solid #e2d8ab;border-radius:3px;color:#f6ebc6;background:#f7e9ad0a;font-size:18px}.opening-start:hover{background:#f7e9ad20}.classroom-board>small{font-size:10px;letter-spacing:.2em;color:#b9c9ac}.chalk-tray{position:absolute;bottom:-7px;left:0;right:0;height:8px;background:#ad9270}.chalk-tray:after{content:"";position:absolute;bottom:8px;right:45px;width:24px;height:5px;border-radius:2px;background:#f3e8c8;box-shadow:-35px 0 #d5aa9e}.classroom-clock{position:absolute;right:5%;top:35px;width:55px;height:55px;background:#f7f0dc;border:4px solid #847762;border-radius:50%}.classroom-clock:before{content:"";position:absolute;left:23px;top:8px;height:17px;width:2px;background:#5a5747}.classroom-clock:after{content:"";position:absolute;left:23px;top:23px;height:2px;width:15px;background:#5a5747;transform:rotate(25deg);transform-origin:left}.classroom-desks{position:absolute;bottom:-55px;left:5%;right:5%;display:grid;grid-template-columns:repeat(3,1fr);gap:55px 45px;transform:perspective(650px) rotateX(26deg)}.classroom-desks i{height:70px;border-radius:7px;background:linear-gradient(175deg,#d2b182,#b99160);border:2px solid #a27d50;box-shadow:0 8px #806443,0 25px 25px #36281935}.opening-caption{position:absolute;bottom:110px;right:30px;color:#f4e5c9;font-size:12px;letter-spacing:.12em}@media(max-width:760px){.classroom{min-height:640px;padding:85px 22px 160px}.classroom-windows{width:28%;height:230px;opacity:.8}.classroom-clock{top:15px;right:25px;width:45px;height:45px}.classroom-board{padding:28px 15px;border-width:8px}.opening-kicker{font-size:11px}.opening-copy{font-size:12px}.opening-date{display:none}.classroom-desks{gap:35px 15px;left:-10%;right:-10%}.opening-caption{bottom:100px;right:20px;font-size:10px}}.school-opening{min-height:720px;padding:100px 20% 150px;background:linear-gradient(#879cac,#e6b399 44%,#e8c99c 64%,#5f7055 64%,#3c5542)}.school-opening:before{background:radial-gradient(circle at 80% 23%,#fff0bc 0 35px,#ffe9b132 36px,transparent 180px)}.school-cloud{position:absolute;width:270px;height:3px;top:80px;left:9%;background:#fce5ce80;box-shadow:80px 18px #fce5ce40,560px 70px #fce5ce50}.school-building{position:absolute;left:10%;right:10%;top:210px;height:285px;background:#b5a98c;border-top:12px solid #686e65;box-shadow:0 12px #6b705b,inset 0 -30px #8e8f76}.school-building:before{content:"";position:absolute;left:41%;right:41%;top:-48px;height:55px;background:#bab297;border-top:7px solid #656f66}.school-clock{position:absolute;top:-35px;left:calc(50% - 16px);width:32px;height:32px;background:#f2dfae;border:3px solid #707367;border-radius:50%}.school-clock:after{content:"";position:absolute;left:12px;top:5px;width:8px;height:10px;border-left:2px solid #646859;border-bottom:2px solid #646859}.school-windows{display:grid;grid-template-columns:repeat(8,1fr);gap:20px 16px;padding:24px}.school-windows i{height:44px;border:4px solid #858b7d;background:linear-gradient(90deg,transparent 46%,#8b8f7950 47% 53%,transparent 54%),linear-gradient(#d9c68f,#f5d698);box-shadow:0 0 12px #f8d99520}.school-windows i:nth-child(3n){background-color:#7f9991;background-image:none}.school-door{position:absolute;left:44%;right:44%;bottom:0;height:65px;background:#4a6257;border:6px solid #969880}.school-path{position:absolute;inset:495px 15% 0;background:linear-gradient(#9c9980,#c6b394);clip-path:polygon(42% 0,58% 0,100% 100%,0 100%)}.school-gate{position:absolute;bottom:0;width:66px;height:195px;background:linear-gradient(90deg,#74786c,#989985 70%,#626f64 71%);border-top:9px solid #56655b;box-shadow:10px 10px 30px #283e3430}.gate-left{left:7%}.gate-right{right:7%}.school-gate span{display:block;writing-mode:vertical-rl;margin:15px auto;padding:10px 5px;color:#dcd5b9;background:#3d5045;font-size:13px;letter-spacing:.15em}.school-opening .classroom-board{z-index:1;border:0;background:#243c37dc;border-radius:8px;box-shadow:0 15px 50px #26392d40;padding:28px 24px}.school-opening .opening-date,.school-opening .chalk-tray{display:none}.school-opening .opening-kicker{margin-top:18px}.school-opening .opening-caption{bottom:26px;right:0;left:0;text-align:center;color:#fff0cf;text-shadow:0 1px 4px #334b3d}@media(max-width:760px){.school-opening{min-height:660px;padding:95px 35px 135px}.school-building{left:-12%;right:-12%;top:210px}.school-windows{gap:20px 8px;padding:24px 12px}.school-gate{width:40px;height:130px}.gate-left{left:2%}.gate-right{right:2%}.school-gate span{font-size:10px;padding:5px 3px}.school-opening .classroom-board{padding:25px 12px}}.school-opening{background:#354039 url(/media/school-sunset.9e55fcb2ecbe12ab.png) center center / cover no-repeat;min-height:740px;padding:280px 12% 65px}.school-opening:before{background:linear-gradient(180deg,#18212500 25%,#131e2630 45%,#101b28b8)}.school-opening .classroom-board{background:none;box-shadow:none;padding:0;text-shadow:0 2px 12px #071321}.school-opening .classroom-board h1{font-size:clamp(72px,8vw,112px);margin:0;color:#fff3d6}.school-opening .classroom-board .eyebrow{color:#f6ddaf}.school-opening .opening-kicker{margin-top:10px;color:#fff0d4}.school-opening .opening-copy{margin:8px 0;color:#f1e7d8}.school-opening .opening-start{background:#f4e2bb;color:#2e3939;border:1px solid #ffecc4;box-shadow:0 4px 20px #07152240;text-shadow:none;min-width:230px}.school-opening .opening-start:hover{background:#fff0cf}.school-opening .classroom-board>small{color:#e1d4be}@media(max-width:760px){.school-opening{min-height:680px;padding:235px 20px 65px;background-position:52% center}.school-opening .classroom-board{padding:0}}.entry-shell{padding-top:32px;padding-bottom:32px}.entry-shell>.topbar,.entry-shell>footer{display:none}.opening-shell .school-opening{min-height:min(820px,calc(100svh - 64px));padding:clamp(210px,37vh,360px) 24px 45px}.school-opening .classroom-board h1{font-size:clamp(64px,10vw,112px);line-height:1.25}.school-opening .classroom-board h1 .title-subtitle{display:block;font-family:inherit;color:#fff0d5;font-size:clamp(12px,1.8vw,19px);letter-spacing:.06em;line-height:1.8;margin-top:12px}.school-opening .opening-start{margin-top:38px}.entry-shell .setup{border:0;background:transparent;box-shadow:none;padding:16px 0}.entry-shell .setup h2{text-align:center;margin:0 0 28px;font-size:22px}.entry-shell .role-grid{gap:28px}.entry-shell .role-card{align-items:center;text-align:center;padding:22px 18px;border-radius:16px;border:2px solid transparent;background:#fffdf580;box-shadow:none;gap:7px}.entry-shell .role-card.chosen{border-color:var(--role-accent);background:var(--role-wash);box-shadow:0 8px 30px #443b1e0c}.entry-shell .character-portrait{width:min(100%,300px);margin:0 auto 12px}.entry-shell .character-level{order:2;color:var(--role-ink);font-family:DotGothic,sans-serif}.entry-shell .role-card.chosen .character-portrait{animation:character-greeting 1.1s step-end infinite}.entry-shell .setup-row{justify-content:center;gap:20px;border:0;padding:12px 0}.entry-shell .start-button{display:flex;justify-content:center;gap:32px;max-width:380px;margin:18px auto 22px}.selection-details{max-width:700px;margin:auto}.selection-details details{border:0;background:transparent}.selection-details summary{text-align:center;color:#61705f;font-size:13px;padding:10px}.selection-details details[open]{background:#fffdf5;padding:12px 20px;border-radius:10px}.selection-details .growth{margin:12px 0}@media(max-width:600px){.entry-shell{padding-top:16px}.entry-shell .role-grid{gap:10px}.entry-shell .role-card,.entry-shell .role-card.chosen{padding:14px 6px}.entry-shell .role-card strong{font-size:22px}.entry-shell .role-card>span:not(.character-portrait){font-size:11px}.entry-shell .setup-row{gap:10px}.opening-shell .school-opening{min-height:calc(100svh - 32px);padding-inline:14px}}@media(prefers-reduced-motion:reduce){.entry-shell .role-card.chosen .character-portrait{animation:none}}.school-opening .opening-version{margin:10px 0 0;font-size:11px;line-height:1.5;letter-spacing:.04em;color:#f2e5cb}.entry-shell .role-card:disabled{cursor:not-allowed;opacity:1}.entry-shell .role-card:disabled .character-portrait{filter:grayscale(.8);opacity:.55;animation:none}.entry-shell .role-card:disabled .character-level{font-family:inherit;font-size:10px;color:#666b60}.entry-shell .role-card:disabled:hover{transform:none;background:#fffdf580}.opening-shell .school-opening.classroom-opening{height:100dvh;min-height:540px;padding:max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom));background:#182c29}.classroom-opening .opening-artwork{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}.school-opening.classroom-opening:before{background:linear-gradient(180deg,#102723d9,transparent 34%,transparent 66%,#102723e8)}.school-opening.classroom-opening .classroom-board{height:100%;display:flex;flex-direction:column;align-items:center}.school-opening.classroom-opening .opening-kicker{margin:0 0 6px}.school-opening.classroom-opening .classroom-board h1{font-size:clamp(56px,7vw,88px)}.school-opening.classroom-opening .title-subtitle{margin-top:3px}.classroom-opening .opening-actions{margin-top:auto}.school-opening.classroom-opening .opening-start{margin:12px auto;min-height:48px}@media(max-aspect-ratio:4/5){.classroom-opening .opening-artwork{object-fit:cover}.school-opening.classroom-opening:before{background:linear-gradient(180deg,#10272399,transparent 30%,transparent 70%,#102723cc)}.school-opening.classroom-opening .classroom-board h1{font-size:clamp(52px,15vw,76px)}}@media(max-height:540px)and (min-aspect-ratio:4/5){.opening-shell .school-opening.classroom-opening{min-height:360px;padding:12px 20px}.school-opening.classroom-opening .classroom-board h1{font-size:42px}.school-opening.classroom-opening .opening-kicker{font-size:10px}.school-opening.classroom-opening .opening-start{margin:6px auto}}.school-opening.classroom-opening .opening-start{position:relative;min-width:210px;min-height:60px;gap:24px;padding:7px 26px;color:#34463d;border:0;border-radius:2px 5px 3px 1px;background:repeating-linear-gradient(0deg,transparent 0 19px,#7897a523 19px 20px),#fff4db;box-shadow:2px 5px #172a2540,0 8px 18px #10211c33;transform:rotate(-2deg);transition:transform .14s ease,box-shadow .14s ease}.opening-start-label{position:relative;font-size:25px;font-weight:800;letter-spacing:.16em}.opening-start-label:after{content:"";position:absolute;left:-3px;right:0;bottom:-3px;height:3px;background:#486451;border-radius:50%;transform:rotate(-3deg)}.school-opening.classroom-opening .opening-start:hover{background-color:#fff8e8;transform:rotate(-1deg) translateY(-2px)}.school-opening.classroom-opening .opening-start:active{transform:rotate(-2deg) translateY(3px);box-shadow:1px 1px #172a2540}.school-opening.classroom-opening .opening-start:focus-visible{outline:3px solid #f1c86e;outline-offset:5px}@media(prefers-reduced-motion:reduce){.school-opening.classroom-opening .opening-start{transition:none}}.battle-board{position:relative;isolation:isolate}.hand-aura{display:block;position:relative;border-radius:45%}.hand-aura.remainder-ready{background:radial-gradient(ellipse,#54bfff12 25%,#54bfff28 58%,transparent 72%)}.hand-aura.remainder-ready:after{content:"";position:absolute;inset:9% 18%;border:1px solid #7ed9ff66;border-radius:48%;box-shadow:0 0 12px #48bfff55,inset 0 0 10px #48bfff33;pointer-events:none}.remainder-fx{position:absolute;inset:12% 8%;z-index:8;pointer-events:none;border:2px solid #93e7ff;border-radius:50%;box-shadow:0 0 20px #36adff88;animation:remainder-ring .75s ease-out both}.remainder-fx strong{position:absolute;top:60%;left:50%;translate:-50% 0;white-space:nowrap;padding:5px 12px;border-radius:20px;background:#103a59;color:#dcf7ff;font-size:20px;text-shadow:0 0 8px #69ceff}.remainder-fx i{position:absolute;top:50%;left:50%;width:5px;height:18px;background:#98e7ff;transform:rotate(calc(var(--piece) * 72deg)) translateY(45px);animation:remainder-shard .75s ease-out both}.remainder-fx--broken{border-style:dashed;animation-name:remainder-break}.remainder-fx--broken strong{background:#54312d;color:#ffe2c4;font-size:15px}@keyframes remainder-ring{0%{opacity:0;scale:.8}25%,65%{opacity:1;scale:1}to{opacity:0;scale:1.1}}@keyframes remainder-shard{to{opacity:0;transform:rotate(calc(var(--piece) * 72deg)) translateY(85px)}}@keyframes remainder-break{0%{opacity:1;scale:.9}to{opacity:0;scale:1.35}}@media(prefers-reduced-motion:reduce){.remainder-fx,.remainder-fx i{animation:none}.remainder-fx i{display:none}}.skill-fx,.skill-spark{--fx: #ffd56a;pointer-events:none;position:absolute;inset:0;z-index:6}.skill-fx{overflow:hidden;border-radius:inherit;background:radial-gradient(ellipse,transparent 25%,color-mix(in srgb,var(--fx) 18%,transparent));animation:skill-veil var(--skill-fx-duration, 1.2s) ease-out both}.skill-fx-banner{position:absolute;top:50%;left:50%;width:min(88%,350px);padding:10px 24px;transform:translate(-50%,-50%) skew(-7deg);text-align:center;color:var(--fx);background:linear-gradient(90deg,transparent,#171311ed 18% 82%,transparent);border-block:1px solid color-mix(in srgb,var(--fx) 65%,transparent);animation:skill-title var(--skill-fx-duration, 1.2s) both}.skill-fx-banner small{display:block;font:9px monospace;letter-spacing:.22em;margin-bottom:3px}.skill-fx-banner strong{font-size:clamp(22px,4vw,36px);font-weight:900;letter-spacing:.12em;text-shadow:0 0 18px var(--fx)}.skill-spark{display:block;border-radius:50%;animation:skill-charge var(--skill-fx-duration, 1.2s) ease-out both;box-shadow:inset 0 0 24px var(--fx),0 0 20px color-mix(in srgb,var(--fx) 55%,transparent)}.skill-spark i{position:absolute;top:50%;left:50%;width:3px;height:24%;background:linear-gradient(var(--fx),transparent);transform-origin:50% 0;transform:rotate(calc(var(--ray) * 45deg)) translateY(46px)}.skill-spark--intimidation,.skill-fx--intimidation{--fx: #bca0ef}.skill-spark--intimidation{animation-name:skill-pressure;border:2px solid var(--fx)}.skill-spark--doublepunch,.skill-fx--doublepunch{--fx: #fff2b7}.skill-spark--doublepunch{border:3px solid var(--fx);border-radius:12%;animation:skill-double .34s ease-out 2 both}.skill-spark--revivehand,.skill-fx--revivehand{--fx: #a6f3d4}.skill-spark--revivehand{animation-name:skill-rise;background:linear-gradient(transparent,#a6f3d433)}.skill-spark--rampage,.skill-fx--rampage{--fx: #ff823e}.skill-spark--rampage{animation:skill-double .18s ease-out 4 both;border-radius:15%}.skill-spark--destruction,.skill-fx--destruction{--fx: #ffc17e}.skill-spark--destruction{animation-name:skill-pressure;border:4px double var(--fx)}.skill-spark--authority{border:5px double var(--fx);animation-name:skill-rise}.skill-spark--showdown,.skill-fx--showdown{--fx: #ff5656}.skill-fx--showdown{background:repeating-conic-gradient(from 15deg,#ff34341a 0 8deg,transparent 8deg 25deg)}.skill-spark--showdown{animation-name:skill-pressure}@keyframes skill-charge{0%{opacity:0;transform:scale(.55)}25%{opacity:1}to{opacity:0;transform:scale(1.25)}}@keyframes skill-pressure{0%{opacity:0;transform:scale(1.4)}30%{opacity:1;transform:scale(.85)}to{opacity:0;transform:scale(1.1)}}@keyframes skill-double{0%{opacity:1;transform:translate(-14px) scale(.85)}to{opacity:0;transform:translate(14px) scale(1.2)}}@keyframes skill-rise{0%{opacity:1;transform:translateY(22px) scale(.8)}to{opacity:0;transform:translateY(-32px) scale(1.15)}}@keyframes skill-veil{0%,to{opacity:0}15%,65%{opacity:1}}@keyframes skill-title{0%{opacity:0;translate:-30px 0}18%,70%{opacity:1;translate:0}to{opacity:0;translate:24px 0}}.skill-fx--madonna,.skill-spark--madonna{--fx: #ffb6d8}.skill-fx--madonna .skill-fx-banner{transform:translate(-50%,-50%);background:linear-gradient(90deg,transparent,#392334ed 18% 82%,transparent);border-color:#ffc5e280}.skill-fx--madonna .skill-fx-banner strong{font-size:clamp(18px,3.4vw,30px);letter-spacing:.06em}.skill-spark--madonna{animation-name:skill-bloom;box-shadow:inset 0 0 22px #ffb6d833,0 0 22px #ffb6d844}.skill-spark--madonna i{width:10px;height:14px;border-radius:80% 0;background:var(--fx);transform:rotate(calc(var(--ray) * 45deg)) translateY(48px);box-shadow:0 0 8px var(--fx)}.skill-spark--charmsmile i,.skill-spark--together i,.skill-spark--devotion i{width:13px;height:13px;border-radius:0;clip-path:polygon(50% 22%,65% 5%,87% 5%,100% 23%,100% 43%,50% 95%,0 43%,0 23%,13% 5%,35% 5%)}.skill-spark--upwardglance{--fx: #fff0bb;border:1px solid var(--fx);animation-name:skill-rise}.skill-spark--upwardglance i{clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);border-radius:0}.skill-spark--redirect{border:3px double #ffd1e8;animation-name:skill-pressure}.skill-spark--redirect i{clip-path:polygon(0 0,100% 50%,0 100%,30% 50%);border-radius:0}.skill-spark--together{border:2px solid #ffcde7;animation-name:skill-bloom}.skill-spark--promise{--fx: #c7b8ff;border:4px double var(--fx);border-radius:25%;animation-name:skill-pressure}.skill-spark--promise i{width:18px;height:8px;border:1px solid var(--fx);background:transparent;border-radius:50%}.skill-spark--chatter{--fx: #ffe3be;animation-name:skill-rise}.skill-spark--chatter i{width:17px;height:12px;border-radius:50% 50% 50% 0;background:#ffe3be99}.skill-spark--labyrinth{--fx: #cba6ff;border:3px dashed var(--fx);animation-name:skill-orbit}.skill-spark--labyrinth i{border-radius:50%;width:6px;height:6px}.skill-fx--labyrinth{background:repeating-radial-gradient(ellipse at center,transparent 0 34px,#cba6ff18 35px 37px,transparent 38px 65px)}.skill-spark--devotion{--fx: #ffd8f0;border:3px double var(--fx);animation-name:skill-embrace}.skill-fx--devotion{background:radial-gradient(ellipse,#e979bd38,#cba6ff12 65%,transparent)}@keyframes skill-bloom{0%{opacity:0;transform:scale(.6) rotate(-12deg)}25%{opacity:1}to{opacity:0;transform:scale(1.25) rotate(12deg)}}@keyframes skill-orbit{0%{opacity:0;transform:scale(1.2) rotate(-40deg)}30%{opacity:1}to{opacity:0;transform:scale(.8) rotate(45deg)}}@keyframes skill-embrace{0%{opacity:0;transform:scale(1.4)}35%{opacity:1;transform:scale(.95)}to{opacity:0;transform:scale(1.12)}}@media(prefers-reduced-motion:reduce){.skill-fx,.skill-fx-banner,.skill-spark{animation:none}.skill-spark{box-shadow:inset 0 0 8px var(--fx);opacity:.5}.skill-spark i{display:none}}.skill-fx .skill-fx-banner,.skill-fx{animation-duration:var(--skill-fx-duration)}.skill-quote{display:block;margin-top:6px;font-size:clamp(13px,3.4vw,18px);line-height:1.5;color:#fff8e8;letter-spacing:0}.skill-fx-explanation{display:block;margin-top:6px;font-size:clamp(12px,3.2vw,14px);line-height:1.5;color:#fff8e8;letter-spacing:0}.skill-fx--dark{--skill-color:#b776ff}.skill-fx--dark .skill-fx-banner{background:linear-gradient(100deg,#170d28ed,#4a2265ef,#170d28ed);border-color:#c991ff;color:#f4e4ff;box-shadow:0 0 24px #ac55ed66}.skill-fx--dark:after{content:"";position:absolute;inset:20% 12%;border-radius:50%;border:3px solid #a457db88;box-shadow:0 0 40px #954ad477,inset 0 0 45px #853ace55;pointer-events:none;animation:dark-flame var(--skill-fx-duration) ease-out both}@keyframes dark-flame{0%{transform:scale(.3);opacity:0}25%{opacity:.8}to{transform:scale(1.15);opacity:0}}@media(prefers-reduced-motion:reduce){.skill-fx--dark:after{animation:none;opacity:.2}}.skill-spark--dark{filter:hue-rotate(235deg) saturate(1.5)}.skill-spark--darkbind{border-radius:50%;background:radial-gradient(ellipse,#e5bcff55,transparent 68%);filter:drop-shadow(0 0 10px #bd80ed);animation:aching-hand-return var(--skill-fx-duration) ease-out both}@keyframes aching-hand-return{0%{opacity:0;transform:translateY(12px) scale(.8)}35%{opacity:.85}to{opacity:0;transform:translateY(-6px) scale(1.08)}}@media(prefers-reduced-motion:reduce){.skill-spark--darkbind{animation:none;opacity:.3}}.skill-spark--darkstrip:before,.skill-spark--darkstrip:after{content:"";position:absolute;inset:38% 4%;border:3px dashed #d6a1ff;border-radius:40%;box-shadow:0 0 12px #a95eee;transform:rotate(32deg)}.skill-spark--darkstrip:after{transform:rotate(-32deg)}.skill-spark--darkwing{background:conic-gradient(from 210deg at 50% 70%,transparent 0 30deg,#9a48d780 32deg 48deg,transparent 50deg 65deg,#d7a3ef99 67deg 78deg,transparent 80deg)}.skill-spark--darkclock{background:radial-gradient(ellipse at 50% 55%,#d99dff77,transparent 58%)}.skill-spark--darkgate:before{content:"";position:absolute;inset:5% 15%;border:4px solid #9e62cb;border-radius:50% 50% 6% 6%;box-shadow:inset 0 0 24px #100517,0 0 18px #b062e6}.skill-fx--darkpact:after{border-width:5px;box-shadow:0 0 70px #b968e8bb,inset 0 0 70px #a557d477}.skill-spark--darkpact i:nth-child(n+6){display:none}dialog.skill-fx{box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;color:#fff8e8}.skill-fx .skill-fx-banner{box-sizing:border-box;width:min(92%,460px);max-height:96%;overflow:auto;padding:18px 22px;transform:translate(-50%,-50%);border:4px double var(--fx);border-radius:16px;background:linear-gradient(145deg,#232031fa,#100f19fa);box-shadow:0 0 36px color-mix(in srgb,var(--fx) 35%,transparent),inset 0 0 28px color-mix(in srgb,var(--fx) 12%,transparent);z-index:1}.skill-fx--elite{--fx:#8cdfff}.skill-fx--dark{--fx:#ce9bff}.skill-fx--god{--fx:#ffe7a0}.skill-fx-artwork{display:flex;align-items:center;justify-content:center;padding:8px 0 14px;margin:0 auto 8px;width:180px;border-bottom:1px solid var(--fx);background:radial-gradient(ellipse at bottom,color-mix(in srgb,var(--fx) 28%,transparent),transparent 70%)}.skill-fx-artwork .game-icon{width:88px;height:88px;border:2px solid var(--fx);border-radius:14px;box-shadow:0 0 20px color-mix(in srgb,var(--fx) 45%,transparent);background-color:#fff2d6;mix-blend-mode:normal}.skill-fx-owner{font-size:13px;font-weight:800;margin:8px 0;color:#fff8e8}.skill-fx .skill-quote{font-size:13px;opacity:.8}.skill-fx .skill-fx-explanation{background:#080a14b8;border:1px solid color-mix(in srgb,var(--fx) 45%,transparent);border-radius:8px;padding:12px;margin-top:12px;font-size:clamp(15px,3.7vw,18px);line-height:1.65;font-weight:700;text-align:left;color:#fff}.skill-fx:before{content:"";position:absolute;width:min(85vw,600px);aspect-ratio:1;left:50%;top:50%;translate:-50% -50%;border:4px double var(--fx);clip-path:polygon(50% 0,62% 35%,100% 50%,65% 60%,50% 100%,38% 65%,0 50%,35% 40%);background:repeating-conic-gradient(from 15deg,transparent 0 25deg,color-mix(in srgb,var(--fx) 35%,transparent) 26deg 30deg);opacity:.4;animation:skill-halo 12s linear infinite}.skill-fx--elite:before{clip-path:none;border-radius:18%}.skill-fx--madonna:before{clip-path:none;border-radius:42%;border-style:dotted}.skill-fx--dark:before,.skill-fx--god:before{clip-path:none;border-radius:50%;box-shadow:0 0 35px var(--fx),inset 0 0 35px var(--fx)}dialog.skill-fx--manual{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:auto;background:#090815b3;animation:skill-arrive .3s ease-out both}.skill-fx--manual::backdrop{background:#09081555}.skill-fx--manual .skill-fx-banner{animation:skill-arrive .3s ease-out both}.skill-fx-continue{display:block;margin:14px auto 0;padding:10px 20px;border:1px solid var(--fx);border-radius:24px;background:#ffffff12;color:#fff8e8;font:inherit;font-size:13px;cursor:pointer}.skill-fx-continue:focus-visible{outline:3px solid white;outline-offset:3px}@keyframes skill-arrive{0%{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes skill-halo{to{rotate:360deg}}@media(max-height:560px){.skill-fx-artwork .game-icon{width:60px;height:60px}.skill-fx .skill-fx-banner{padding:10px 16px}}@media(prefers-reduced-motion:reduce){dialog.skill-fx,.skill-fx .skill-fx-banner,.skill-fx:before{animation:none}}.battle-layout{grid-template-columns:minmax(0,1fr);gap:14px;max-width:1040px;margin-inline:auto}.game-shell:has(.battle-layout) .topbar{min-height:64px;margin-bottom:18px}.battle-layout .battle-board{padding:16px 30px 12px}.battle-layout .battle-board .player-field{position:relative;padding:0 8px}.battle-layout .nameplate{position:absolute;left:0;top:14px;max-width:190px}.battle-layout .nameplate>div{flex-wrap:wrap;gap:5px 8px}.battle-layout .nameplate .role-label,.battle-layout .nameplate .split-badge{display:none}.battle-layout .battle-avatar{width:38px;height:38px;flex-basis:38px}.battle-layout .hands{gap:clamp(24px,5vw,62px)}.battle-layout .hand{min-width:168px;padding:0 8px}.battle-layout .hand-sprite{--size: 152px}.battle-layout .finger-count b{font-size:32px}.battle-layout .effects{min-height:22px;margin-top:2px;justify-content:center}.battle-layout .effect-tag{font-size:10px}.battle-layout .turn-divider{margin:0}.battle-layout .instruction{padding-top:8px;min-height:28px;margin-top:4px}.battle-layout .battle-notebook{position:relative;padding:16px 22px;border-radius:14px;background:#f5f1e7}.battle-layout .action-row{float:right;margin:0 0 10px 16px}.battle-layout .action-row button{padding:8px 14px;min-height:40px}.battle-layout .skill-heading{min-height:40px;margin:0 0 12px}.battle-layout .skill-heading h3{font-size:14px;color:#626650}.battle-layout .skill-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;clear:both}.battle-layout .skill-list .skill{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:12px 6px;border:1px solid #d5cab5;border-radius:10px;background:#fffdf6;min-width:0}.battle-layout .skill-list .skill:hover:not(:disabled),.battle-layout .skill-list .skill:focus-visible{border-color:#a68a53;background:#f9efd7}.battle-layout .skill-mark{width:34px;height:34px;flex:0 0 34px;font-size:18px;border-radius:8px}.battle-layout .skill-name{display:flex;flex-direction:column;justify-content:center;gap:4px;font-size:12px}.battle-layout .skill-name small{font-size:10px}.battle-layout .skill-description{display:none}.battle-layout .skill-list .skill:hover .skill-description,.battle-layout .skill-list .skill:focus-visible .skill-description{display:block;position:absolute;bottom:calc(100% + 9px);left:50%;transform:translate(-50%);z-index:20;width:210px;max-width:65vw;padding:12px;border-radius:8px;background:#28372e;color:#fff3dc;font-size:12px;line-height:1.7;box-shadow:0 5px 20px #0003;pointer-events:none}.battle-layout .skill-list .skill:first-child .skill-description{left:0;transform:none}.battle-layout .skill-list .skill:last-child .skill-description{left:auto;right:0;transform:none}.battle-layout .battle-skill-guide,.battle-layout .battle-log,.battle-layout .rules{margin:12px 0 0;padding:0;border:0;font-size:12px}.battle-layout summary{color:#68705e;cursor:pointer;padding:6px 0}.skill-guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding:12px 0}.skill-guide-list p{font-size:12px;line-height:1.7;color:#66705e;margin:4px 0}.battle-layout .skill-guide-list .skill{padding:6px}.battle-layout .result{max-width:520px;margin:auto}.battle-layout .split-panel{clear:both}@media(max-width:760px){.battle-layout .battle-board{padding:12px 10px}.battle-layout .nameplate{position:static;max-width:none;padding:0}.battle-layout .battle-avatar{width:28px;height:28px;flex-basis:28px}.battle-layout .hand-sprite{--size: 122px}.battle-layout .hand{min-width:130px}.battle-layout .hands{gap:28px}.battle-layout .battle-notebook{padding:14px 12px}.battle-layout .skill-list{grid-template-columns:repeat(4,minmax(0,1fr))}.battle-layout .skill-list .skill{padding:9px 3px}.battle-layout .skill-name{font-size:10px}.skill-guide-list{grid-template-columns:1fr}}.split-backdrop{position:fixed;inset:0;z-index:90;background:#101c2588}.battle-layout .split-backdrop .split-panel{box-shadow:0 12px 60px #0004}.split-preview{display:flex;justify-content:center;gap:8px}.split-preview>span{display:flex;flex-direction:column;align-items:center}.battle-layout .split-preview .hand-sprite{--size: 64px}.battle-layout .split-options button{background:#3b332c;color:#fff0d1;padding:10px;border-radius:10px}.battle-layout .split-options button:hover,.battle-layout .split-options button:focus-visible{outline:3px solid #c99c4a}.battle-layout .hand.split-target,.is-dragging .player-field.active .hand.drop-ready{opacity:1;box-shadow:inset 0 0 0 2px #99d7c3;background:#99d7c31a}.split-remaining{font-size:12px;color:#68705e}.battle-layout .hand.skill-hand-target{box-shadow:inset 0 0 0 2px #f5c681;background:#f5c68118}.game-shell{max-width:none;width:100%;padding:0}.entry-shell{min-height:100dvh;padding:0}.opening-shell .school-opening{height:100dvh;min-height:0;border-radius:0;padding-top:38dvh;box-shadow:none}.entry-shell .start-layout{max-width:none;min-height:100dvh;padding:clamp(16px,3vw,48px) 6vw}.entry-shell .setup{width:100%}.entry-shell .role-grid{max-width:1200px;margin-inline:auto}.entry-shell .character-portrait{width:min(100%,35dvh,360px)}.game-shell:has(.battle-layout){height:100dvh;display:grid;grid-template-rows:48px minmax(0,1fr);background:#342e29}.game-shell:has(.battle-layout)>footer{display:none}.game-shell:has(.battle-layout) .topbar{min-height:0;height:48px;margin:0;padding:0 20px;background:#f5f1e7}.game-shell:has(.battle-layout) .brand-mark{width:28px;height:28px;font-size:22px}.game-shell:has(.battle-layout) .brand{font-size:19px}.game-shell:has(.battle-layout) .menu-button{min-height:34px}.battle-layout{width:100%;height:100%;max-width:none;min-height:0;grid-template-rows:minmax(0,1fr) auto;gap:0}.battle-layout .battle-board{height:100%;align-self:stretch;min-height:0;padding:8px 3vw;border:0;border-radius:0;box-shadow:none;display:grid;grid-template-rows:22px minmax(0,1fr) 24px minmax(0,1fr) 22px}.battle-layout .battle-heading{margin:0}.battle-layout .battle-board .player-field{min-height:0;container-type:size;display:grid;grid-template-rows:minmax(0,1fr) 22px}.battle-layout .hands{min-height:0;height:100%;margin:0;padding:0;align-items:center;gap:clamp(28px,8vw,130px)}.battle-layout .hand{min-height:0;min-width:90px;padding:0 8px}.battle-layout .hand-sprite{--size: clamp(32px, calc(100cqh - 72px) , 200px)}.battle-layout .hand-top{min-height:16px;line-height:16px;font-size:10px}.battle-layout .finger-count{min-height:22px}.battle-layout .finger-count b{font-size:23px}.battle-layout .attack-value{position:absolute;right:0;bottom:0}.battle-layout .nameplate{position:absolute;top:8px;left:0;max-width:180px}.battle-layout .effects{min-height:0;margin:0;white-space:nowrap;overflow-x:auto;line-height:18px;scrollbar-width:none}.battle-layout .effect-tag{margin:0 2px;font-size:10px}.battle-layout .instruction{min-height:0;padding:0;margin:0;font-size:11px}.battle-layout .battle-notebook{display:grid;grid-template-columns:1fr auto auto auto;gap:4px 18px;padding:8px 3vw;border-radius:0;border:0}.battle-layout .skill-heading{grid-row:1;grid-column:1;min-height:0;margin:0;align-self:center}.battle-layout .action-row{grid-row:1;grid-column:2 / -1;justify-self:end;float:none;margin:0}.battle-layout .action-row button{min-height:32px;padding:4px 12px}.battle-layout .skill-list{grid-column:1 / -1;grid-row:2;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.battle-layout .skill-list .skill{flex-direction:row;justify-content:center;padding:6px 4px;min-height:54px}.battle-layout .skill-mark{width:28px;height:28px;flex-basis:28px;font-size:15px}.battle-layout .skill-name{font-size:11px;gap:2px}.battle-layout .battle-skill-guide,.battle-layout .battle-log,.battle-layout .rules{grid-row:3;margin:0}.battle-layout .battle-skill-guide{grid-column:2}.battle-layout .battle-log{grid-column:3}.battle-layout .rules{grid-column:4}.battle-layout summary{min-height:26px;padding:3px 0;font-size:11px}.skill-list-end{display:none}.battle-layout details[open],.battle-layout .split-panel,.battle-layout .result{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:80;width:min(640px,92vw);max-height:82dvh;overflow:auto;overscroll-behavior:contain;padding:20px;margin:0;border:1px solid #c7b994;border-radius:14px;background:#fffaf0;box-shadow:0 0 0 100vmax #101c25aa}.battle-layout details[open]>summary{position:sticky;top:-20px;background:#fffaf0;padding:12px 0;font-size:14px}.battle-layout details[open]>summary:after{content:"閉じる −";float:right;margin-left:20px}@media(max-width:760px){.game-shell:has(.battle-layout) .topbar{padding-inline:12px}.battle-layout .nameplate{max-width:90px;top:0}.battle-layout .nameplate>div{gap:2px;flex-direction:column;align-items:start}.battle-layout .player-label{font-size:10px}.battle-layout .battle-avatar{width:24px;height:24px;flex-basis:24px}.battle-layout .hands{gap:12px;padding-left:45px}.battle-layout .hand{min-width:70px}.battle-layout .skill-list{grid-template-columns:repeat(4,minmax(0,1fr))}.battle-layout .skill-list .skill{min-height:44px;padding:4px 2px;gap:3px}.battle-layout .skill-name{font-size:10px}.battle-layout .skill-mark{flex-basis:20px;width:20px;height:24px;font-size:12px}.battle-layout .battle-notebook{gap:3px 8px}}@media(max-height:500px)and (min-width:600px){.battle-layout{grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:minmax(0,1fr)}.battle-layout .battle-notebook{grid-template-columns:1fr;grid-auto-rows:min-content;align-content:center}.battle-layout .skill-list{grid-template-columns:repeat(4,minmax(0,1fr))}.battle-layout .skill-list .skill{flex-direction:column}.battle-layout .skill-heading{display:none}.battle-layout .action-row,.battle-layout .battle-skill-guide,.battle-layout .battle-log,.battle-layout .rules{grid-column:1;grid-row:auto}.battle-layout .nameplate{max-width:90px}}.hand.impact-contact{--recoil: 15px}.opponent .hand.impact-contact{--recoil: -15px}.hand.impact-contact .hand-aura{animation:impact-recoil .42s both}.hand.impact-contact .hand-sprite{animation:none}.hand.impact-contact .finger-count{animation-delay:75ms}.impact-burst{position:absolute;inset:25% 15%;pointer-events:none;z-index:7;background:#fff2c6;clip-path:polygon(50% 0,60% 34%,91% 12%,71% 43%,100% 50%,68% 60%,88% 91%,58% 72%,50% 100%,40% 70%,10% 88%,31% 57%,0 50%,33% 40%,12% 10%,42% 30%);animation:impact-burst .22s ease-out both}.battle-board.impact-knockout{animation:impact-table .3s 75ms ease-out both}@keyframes impact-recoil{0%,18%{translate:0 0;scale:1.04}35%{translate:0 var(--recoil);scale:.96}to{translate:0 0;scale:1}}@keyframes impact-burst{0%,30%{opacity:.85;scale:.5}to{opacity:0;scale:1.25}}@keyframes impact-table{20%{translate:-2px 1px}45%{translate:2px -1px}70%{translate:-1px 0}to{translate:0}}.sound-toggle{font-size:12px;min-height:32px;padding:4px 8px;background:transparent;border:1px solid #a5aa9755;border-radius:6px}.entry-audio{position:fixed;top:12px;right:16px;z-index:5;background:#f5f1e7dd;border-radius:6px}.victory-cutin{position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at center,#40543fe8,#0d1a22f5)}.victory-card{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(680px,100%);max-height:92dvh;overflow:auto;padding:24px;background:transparent;color:#fff0cf;animation:victory-arrival .5s ease-out both}.victory-label{font-family:DotGothic,sans-serif;font-size:clamp(32px,6vw,68px);letter-spacing:.12em;color:#ffda80;text-shadow:0 3px #755124,0 0 25px #edbe5344}.victory-card .character-portrait{width:min(180px,25dvh);margin:0;filter:saturate(.7)}.defeated-name{font-size:13px;color:#c4ccb5}.defeat-line{font-size:clamp(16px,2.3vw,23px);line-height:1.8;max-width:560px;padding:12px 20px;border-block:1px solid #e5d29744}.victory-card small{font-size:12px;color:#cfccb7}@keyframes victory-arrival{0%{opacity:0;translate:0 15px}to{opacity:1;translate:0}}@media(prefers-reduced-motion:reduce){.victory-card{animation:none}}@media(max-width:600px){.game-shell:has(.battle-layout) .topbar-right{gap:5px}.game-shell:has(.battle-layout) .record{display:none}}.is-dragging .player-field.active .hand.drop-hover:after{content:"離して分身"}@media(prefers-reduced-motion:reduce){.hand.impact-contact .hand-aura,.battle-board.impact-knockout{animation:none}.impact-burst{animation:none;opacity:.15}}.victory-card{mix-blend-mode:normal}.role-card[data-role=elite]{--role-accent: #73b9e7;--role-ink: #315b83;--role-wash: #e5f3fb}.entry-shell .role-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.entry-shell .character-portrait.elite{width:min(75%,26dvh,270px)}.role-card:hover .character-portrait.elite,.role-card:focus-visible .character-portrait.elite,.entry-shell .role-card.chosen .character-portrait.elite{animation:elite-greeting 1.4s step-end infinite}.battle-avatar.elite{background:url(/media/otaku-animation.39e737aa30b4a674.png) 4% 0 / 660% 230%}.hand-sprite.elite{position:relative;filter:none}.hand-sprite.elite.down{filter:none}.skill-fx--elite,.skill-spark--elite{--fx: #89dfff}.skill-fx--elite .skill-fx-banner{background:linear-gradient(90deg,transparent,#102c40ef 18% 82%,transparent)}.skill-spark--elite{border:1px solid var(--fx);border-radius:14%;animation-name:skill-pressure}.skill-spark--elite i{width:8px;height:8px;border:1px solid var(--fx);background:transparent}.skill-spark--padding{animation-name:skill-rise}.skill-spark--calculationerror{animation-name:skill-pressure}.skill-spark--origin{border-radius:50%;animation-name:skill-orbit}.skill-spark--falsification{border-style:dashed;animation-name:skill-double}.skill-spark--prediction{border:3px double var(--fx);animation-name:skill-bloom}.skill-spark--systemerror{--fx: #ee99ff;border-style:dashed;animation-name:remainder-break}.skill-spark--highestgrade{border:4px double var(--fx);animation-name:skill-embrace}.skill-fx--newworld{background:repeating-conic-gradient(from 45deg,#89dfff25 0 10deg,transparent 10deg 45deg)}.skill-spark--newworld{border-radius:50%;animation-name:skill-bloom}@media(max-width:600px){.entry-shell .role-grid{gap:6px}.entry-shell .role-card strong{font-size:17px}.entry-shell .role-card>span:not(.character-portrait){font-size:10px}}@media(prefers-reduced-motion:reduce){.role-card:hover .character-portrait.elite,.role-card:focus-visible .character-portrait.elite,.entry-shell .role-card.chosen .character-portrait.elite{animation:none}.skill-spark--elite{animation:none}}.run-rewards{width:min(1060px,94vw);min-height:100dvh;margin:auto;padding:48px 16px 24px;display:flex;flex-direction:column;justify-content:center;text-align:center;color:#25463e}.run-eyebrow{font-size:12px;letter-spacing:.22em;color:#8a6630}.run-rewards h2{margin:12px 0;font-size:clamp(22px,3vw,36px)}.run-rewards>p{font-size:13px;margin:6px 0;line-height:1.6}.run-rewards>.text-button{align-self:center;min-height:44px}.run-choices{display:grid;grid-template-columns:repeat(var(--reward-columns, 3),minmax(0,1fr));gap:18px;margin:28px 0 20px}.reroll-button{align-self:center;min-height:44px;padding:10px 20px;border:1px solid #48745e;border-radius:8px;background:#f9f6eb;color:#285140;cursor:pointer}.reroll-button:disabled{opacity:.45;cursor:default}.reroll-note{font-size:11px;margin:8px 0;color:#4a685c}.run-choice.run-choice--rare{border-color:#c99424;background:linear-gradient(135deg,#fffdf1,#ffedb5);box-shadow:0 0 18px #edbd4b55,0 8px #b18b3a44}.run-choice--rare>small{color:#88570e;font-weight:700}.run-choice--rare .run-choice-mark{background:#f5d785;animation:rare-sparkle 2s ease-in-out infinite}@keyframes rare-sparkle{50%{box-shadow:0 0 16px #e7b62c99}}.run-choice{display:flex;flex-direction:column;align-items:center;gap:14px;padding:28px 18px 20px;color:#24473d;background:#fffaf0;border:2px solid #cab98e;border-radius:14px;box-shadow:0 8px #c9bb9e66;cursor:pointer;transition:transform .15s,border-color .15s;min-height:300px}.run-choice:hover,.run-choice:focus-visible{transform:translateY(-5px);border-color:#397b67;outline:3px solid #397b6733}.run-choice[data-kind=upgrade]{background:#eff8fc;border-color:#aac9d8}.run-choice[data-kind=split]{background:#f7f6e3}.run-choice[data-kind=revive]{background:#fff0e7;border-color:#d6aa8f}.run-choice[data-kind=remainder]{background:#e6f5ff;border-color:#65b5d7}.run-choice-mark{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#e7dec8;font-size:28px}.run-choice>small{letter-spacing:.16em;font-size:10px}.run-choice>strong{font-size:22px}.run-choice-value{font-size:15px;font-weight:700;color:#a26222}.run-choice-detail{font-size:12px;line-height:1.7}.run-choice-cta{margin-top:auto;padding-top:12px;font-size:13px}.run-note{opacity:.75}.empty-skills{grid-column:1 / -1;margin:auto;padding:12px;font-size:12px;color:#b9cec5}.run-summary{width:min(760px,94vw);margin:auto;padding:60px 18px 30px;min-height:100dvh;text-align:center;color:#25463e;display:flex;flex-direction:column;justify-content:center;gap:14px}.run-summary h2{font-size:32px}.run-summary .growth{width:min(100%,400px);align-self:center}.run-total-xp{font-size:clamp(28px,5vw,48px);color:#9a6229}.unlock-list{display:grid;gap:12px}.unlock-card{display:flex;gap:18px;text-align:left;padding:18px;background:#fffaf0;border:1px solid #c9b88d;border-radius:12px}.unlock-card>span{font-size:28px;min-width:40px}.unlock-card h4{margin:6px 0;font-size:20px}.unlock-card p{font-size:13px;line-height:1.7}.summary-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:14px}@media(max-width:600px){.run-rewards{padding:50px 10px 15px}.run-choices{grid-template-columns:1fr;gap:10px;margin:16px 0}.run-choice{display:grid;grid-template-columns:44px 1fr;gap:4px 12px;min-height:0;padding:12px;text-align:left;border-radius:10px}.run-choice-mark{grid-row:1 / 5;width:42px;height:42px;font-size:22px}.run-choice>strong{font-size:19px}.run-choice-detail{grid-column:2;font-size:11px}.run-choice-cta{display:none}.run-choice-value{font-size:13px}}@media(prefers-reduced-motion:reduce){.run-choice{transition:none}.run-choice--rare .run-choice-mark{animation:none}}.battle-layout .result[aria-hidden=true],.run-summary[aria-hidden=true]{display:none}.teacher-yankee{--teacher-column: 0;--teacher-face: 10%;--teacher-face-y: 21%;--teacher-row: 0%}.teacher-madonna{--teacher-column: 1;--teacher-face: 50%;--teacher-face-y: 26%;--teacher-row: 50%}.teacher-elite{--teacher-column: 2;--teacher-face: 90%;--teacher-face-y: 23%;--teacher-row: 100%}.character-portrait.teacher{animation:none}.character-portrait.teacher-elite{clip-path:inset(0 0 0 4%)}.battle-avatar.teacher{background:url(/media/teachers.e95a6c7ee33039d6.png) var(--teacher-face) var(--teacher-face-y) / 600% 400% no-repeat}.hand-sprite.teacher{filter:none}.drag-ghost:has(.teacher){mix-blend-mode:normal}.battle-layout .nameplate{max-width:none;width:100%;top:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.battle-layout .nameplate>div{pointer-events:auto}.battle-resources{display:flex;gap:8px}.resource-token{color:#a6dded}.resource-token.revive{color:#f4ae94}.battle-layout .resource-token>summary{display:flex;align-items:center;gap:6px;min-height:32px;padding:3px 8px;border:1px solid #ffffff25;border-radius:8px;background:#171f24b0;color:inherit;font-size:11px;cursor:pointer}.resource-marks{display:flex;align-items:center;gap:2px}.resource-pip{display:inline-flex;width:19px;height:23px}.resource-pip svg{width:100%;height:100%;fill:currentColor;stroke:currentColor;stroke-width:1.5}.resource-pip.empty{opacity:.2}.battle-layout .battle-board .player-field{grid-template-rows:minmax(0,1fr) 36px;padding-top:35px}.battle-layout .hand-sprite{--size:clamp(32px, calc(100cqh - 108px) ,200px)}.battle-layout .effects{display:flex;align-items:center;justify-content:center;gap:5px;overflow:visible;flex-wrap:wrap;white-space:normal}.battle-layout .status-chip>summary{min-height:28px;padding:4px 8px;border:1px solid #6cc8ed66;border-radius:6px;background:#163e50;color:#c3f0ff;font-size:11px;line-height:18px;cursor:pointer;list-style:none}.battle-layout .status-chip.debuff>summary{background:#4b2448;border-color:#e892b488;color:#ffcee2}.battle-layout .status-chip.passive>summary{background:#223e3b;border-color:#80cfc277;color:#b5ecde}.status-chip small{font-size:9px;opacity:.85;margin-left:3px}.battle-layout .status-chip[open],.battle-layout .resource-token[open]{color:#263b39;white-space:normal}.battle-layout .status-chip[open]>summary,.battle-layout .resource-token[open]>summary{background:#fffaf0;color:#263b39;border:0;display:block}.battle-layout .resource-token[open] .resource-marks{display:none}.resource-spent{animation:resource-spent .65s ease-out}@keyframes resource-spent{30%{transform:scale(1.15);filter:brightness(2)}to{transform:scale(1)}}@media(max-width:760px){.battle-layout .nameplate{max-width:none;position:absolute}.battle-layout .nameplate .battle-avatar{display:none}.battle-layout .nameplate .player-label{font-size:10px}.battle-resources{gap:4px}.battle-layout .resource-token>summary{gap:3px;padding:3px 5px;font-size:10px}.resource-pip{width:15px;height:19px}.battle-layout .status-chip>summary{font-size:10px;padding:2px 5px}}@media(prefers-reduced-motion:reduce){.resource-spent{animation:none}}.status-arrived{animation:resource-spent .45s ease-out}@media(prefers-reduced-motion:reduce){.status-arrived{animation:none}}.battle-layout .resource-token.remainder>summary{min-width:32px;justify-content:center}.resource-token.remainder.is-sealed .game-icon{opacity:.35;filter:grayscale(1)}.battle-layout .nameplate{z-index:6}.battle-layout .player-field:has(.resource-token[open]){z-index:30}.battle-layout .nameplate:has(.resource-token[open]){z-index:80}.battle-layout .resource-token>summary{touch-action:manipulation}.battle-layout .self .nameplate{top:auto;bottom:0;justify-content:flex-end}.battle-layout .self .nameplate>div:first-child{display:none}.battle-layout .self .nameplate>.battle-resources{flex-direction:column;align-items:flex-end;gap:3px}.battle-layout .self .effects{position:absolute;bottom:38px;left:0;right:0}.battle-layout .battle-notebook.player-dock{grid-template-columns:minmax(0,1fr);align-content:start;align-items:start}.battle-layout .battle-board>.player-resources{justify-self:end;align-self:end}.battle-layout .player-resources>.battle-resources{flex-direction:column;align-items:flex-end;gap:3px}.battle-layout .player-dock>.skill-heading{grid-column:1;grid-row:1}.battle-layout .player-dock>.skill-list{grid-column:1;grid-row:2;width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.battle-layout .player-dock>.action-row{grid-column:1;grid-row:3}.battle-layout .player-dock .hold-hint{display:none}.battle-layout .self .effects{bottom:0}.battle-layout .player-resources:has(.resource-token[open]){position:relative;z-index:80}@media(min-width:761px){.battle-layout .player-dock>.skill-list{grid-template-columns:repeat(8,minmax(0,1fr));max-width:800px}}.battle-layout .battle-board:has(>.player-resources){grid-template-rows:0 minmax(0,1fr) 18px minmax(0,1fr) auto}@media(max-width:760px)and (orientation:portrait){.battle-layout .self .hand-sprite{--size:min(180px, calc((100cqw - 10px)/2) ,max(112px, calc(100cqh - 17px) ))}}.battle-layout .skill-list{grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:760px;margin-inline:auto}.battle-layout .skill-list .skill{min-height:68px;position:relative;padding:8px 5px;gap:5px;touch-action:manipulation}.skill-effect{display:block;font-size:12px;font-weight:800;line-height:1.3}.battle-layout .skill-list .skill-name{font-size:9px;line-height:1.2;color:#657267}.battle-layout .skill-list .skill-name small{position:absolute;top:3px;right:5px;font-size:10px;color:#475844}.battle-layout .skill-list .skill-mark{flex-shrink:0}.battle-layout .skill-list .skill-selected{border:2px solid #287d94;background:#dcf3f6;box-shadow:0 0 0 2px #72c4d54d}.battle-layout .skill-list .skill-selected:after{content:"選択中";position:absolute;left:5px;top:2px;font-size:9px;color:#17657b}.battle-layout .skill-list .skill:focus-visible{outline:3px solid #24788b;outline-offset:1px}.battle-layout .skill-list .skill:disabled{opacity:.48}.battle-layout .battle-notebook{padding-bottom:max(8px,env(safe-area-inset-bottom))}@media(max-width:760px){.battle-layout .battle-notebook{gap:4px 8px;padding:6px 8px max(6px,env(safe-area-inset-bottom))}.battle-layout .skill-list{gap:6px}.battle-layout .skill-list .skill{min-height:72px;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:15px 3px 5px;border-radius:10px}.battle-layout .skill-list .skill-mark{display:none}.battle-layout .skill-list .skill-effect{font-size:12px;line-height:1.3;overflow-wrap:anywhere}.battle-layout .skill-list .skill-name{margin-top:3px;font-size:9px}.battle-layout .skill-list .skill-name small{font-size:10px}.battle-layout .skill-list .skill-description{display:none!important}.battle-layout .skill-heading h3{font-size:10px}.battle-layout .battle-board{padding:4px 8px;grid-template-rows:18px minmax(0,1fr) 20px minmax(0,1fr) 30px}.battle-layout .hands{padding-left:0}.battle-layout .instruction{font-size:10px;line-height:14px;align-self:center}.battle-layout .nameplate>.battle-resources{flex-direction:row}.battle-layout .hand-sprite{--size:clamp(32px, calc(100cqh - 108px) ,160px)}.game-shell:has(.battle-layout) .record{display:none}}@media(max-height:500px)and (min-width:600px){.battle-layout .skill-list .skill{min-height:64px}}.battle-layout .battle-board .player-field{padding-top:28px;grid-template-rows:minmax(0,1fr) 28px}.battle-layout .hand-sprite{--size:clamp(112px, calc(100cqh - 30px) ,200px)}.battle-layout .hand{position:relative}.battle-layout .hand-top{position:absolute;top:0;left:0;z-index:2}.battle-layout .finger-count{position:absolute;bottom:0;right:0;z-index:2;pointer-events:none}@media(max-width:760px){.battle-layout .hand-sprite{--size:clamp(112px, calc(100cqh - 30px) ,180px)}.battle-layout .hands{gap:24px}.battle-layout .battle-board .player-field{padding-top:28px;grid-template-rows:minmax(0,1fr) 28px}.battle-layout .skill-list .skill{height:68px;min-height:68px}.battle-layout .skill-list .skill-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.battle-layout .skill-list .skill-body{min-width:0;max-width:100%}.battle-layout .battle-notebook{gap:2px 8px}.battle-layout .battle-board{grid-template-rows:16px minmax(0,1fr) 18px minmax(0,1fr) 26px}}.skill-slot{display:block;min-width:0;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.battle-layout .skill-list .skill{width:100%;height:92px;min-height:92px;padding:1px;display:flex;flex-direction:column;gap:0;align-items:center;justify-content:center;border:0;border-radius:0;background:transparent;box-shadow:none}.skill-symbol{flex-shrink:0;color:#314651}.battle-layout .skill-list .skill-effect{display:none}.battle-layout .skill-list .skill-body{width:100%;min-width:0;flex:0 0 auto;gap:1px}.battle-layout .skill-list .skill-name{display:block;font-size:9px;line-height:11px;height:auto;min-height:11px;margin:0;color:#40544d;white-space:normal;overflow-wrap:anywhere;overflow:hidden;text-align:center}.battle-layout .skill-list .skill-name small{font-size:10px;top:1px;right:3px;background:#fffaf0ed;padding:0 2px;border-radius:3px}.battle-layout .skill-list .skill-description{display:none!important}.battle-layout .skill-list .skill:disabled{pointer-events:none}.hold-hint{font-size:9px;font-weight:400;margin-left:8px;color:#657267}.skill-info-dialog{width:min(340px,88vw);border:1px solid #cabc9c;border-radius:16px;padding:24px;background:#fffaf0;color:#263d42;box-shadow:0 12px 50px #0005}.skill-info-dialog::backdrop{background:#101c2599}.skill-info-dialog h2{font-size:20px;margin:8px 0}.skill-info-dialog p{font-size:14px;line-height:1.7}.skill-info-dialog button{width:100%;min-height:48px}.pixel-skill-icon{display:inline-block;image-rendering:pixelated}.battle-layout .skill-list .skill:hover:not(:disabled),.battle-layout .skill-list .skill:focus-visible{background:transparent}.skill-uses{display:block;font-size:11px;font-weight:800;line-height:14px;color:#187244}.battle-layout .skill-list .skill:disabled{opacity:1}.battle-layout .skill-list .skill:disabled .game-icon{opacity:.4}.battle-layout .skill-list .skill:disabled .skill-uses{color:#777}.battle-layout .skill-list .skill .skill-uses.exhausted{color:#b53039}.battle-layout .skill-list .skill-selected .game-icon{filter:drop-shadow(0 0 3px #218595)}.battle-layout .skill-list .skill-selected:after{display:none}.battle-layout .skill-list{max-width:400px;gap:6px 8px}.run-choice-mark:has(.pixel-skill-icon){background:transparent;border-radius:0}.newworld-ready{position:fixed;left:50%;top:48%;transform:translate(-50%,-50%);z-index:85;min-height:52px;background:#e2f5ff;color:#16425a;border:2px solid #64c9ff;border-radius:12px}.unlock-card .unlock-icon{display:flex;justify-content:center;align-items:flex-start;flex:0 0 54px}.unlock-card>div{min-width:0}.reward-perk-icon{display:inline-block;flex-shrink:0;image-rendering:pixelated}.reward-confirm{width:min(360px,calc(100vw - 32px));max-height:85dvh;overflow:auto;box-sizing:border-box;padding:24px;border:1px solid #cabc9c;border-radius:16px;background:#fffaf0;color:#33483c;text-align:center}.reward-confirm::backdrop{background:#15231ecc}.reward-confirm-icon{display:flex;justify-content:center;margin:14px 0 8px}.reward-confirm h2{font-size:21px;margin:8px 0}.reward-confirm p{font-size:14px;line-height:1.6}.reward-confirm-detail{color:#627054}.reward-confirm-actions{display:flex;gap:12px;margin-top:20px}.reward-confirm-actions button{flex:1;min-height:48px}.passive-pixel-icon{display:inline-block;flex-shrink:0;vertical-align:middle;image-rendering:pixelated}.run-choice-mark:has(.passive-pixel-icon){background:transparent;border-radius:0}.battle-layout .resource-token>summary{background:#f5edda;color:#334b4b}.resource-pip{width:24px;height:24px}.battle-layout .status-chip[data-status=remainder]>summary{background:#d7ece8;color:#244c52}.battle-layout .status-chip.debuff[data-status=remainder]>summary{background:#f3d7e5;color:#703448}@media(max-width:760px){.resource-pip{width:20px;height:20px}}.resource-slots{display:grid;grid-template-columns:repeat(5,5px);gap:2px}.resource-dot{width:5px;height:7px;border-radius:1px;background:#314d5422}.resource-dot.lit{background:#258d9b}.revive .resource-dot.lit{background:#bf654d}.resource-marks>b{width:14px;text-align:right;font-size:11px}.run-rewards{position:relative;width:min(680px,100%);padding:24px 14px;justify-content:flex-start}.run-rewards h2{font-size:24px;margin:8px 0}.run-rewards>.reward-exit{position:absolute;right:14px;top:10px}.run-rewards>p small{margin-left:12px;color:#758279}.run-choices{grid-template-columns:1fr;gap:8px;margin:16px 0}.run-choice{display:grid;grid-template-columns:56px 1fr auto;grid-template-rows:auto auto;gap:3px 12px;min-height:76px;padding:10px 12px;text-align:left;border-width:1px;box-shadow:none;border-radius:10px}.run-choice-mark{grid-column:1;grid-row:1/3;width:54px;height:54px}.run-choice>strong{grid-column:2;grid-row:1;font-size:16px}.run-choice>small{grid-column:3;grid-row:1;letter-spacing:0;font-size:10px}.run-choice-value{grid-column:2/4;grid-row:2;font-size:12px}.run-choice:hover,.run-choice:focus-visible{transform:none}.run-choice.run-choice--rare{box-shadow:none}.run-inventory{border-top:1px solid #c9c7b7;padding-top:12px;margin-bottom:16px}.run-inventory h3{text-align:left;font-size:13px;margin:0 0 10px}.run-inventory h3 small{font-size:10px;font-weight:400;color:#738078;margin-left:8px}.owned-skills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.owned-skill{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;padding:2px;min-height:68px;gap:2px;cursor:help;color:#354c44}.owned-skill>span:not(.pixel-skill-icon){font-size:9px;line-height:12px}.owned-passives{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:11px}.owned-passives>span{display:flex;align-items:center;gap:3px}.self-strike-layer{position:fixed;inset:0;z-index:95;background:#42224718;pointer-events:auto}.self-strike-hand{position:fixed;transform:translate(-50%,-50%);animation:self-strike .95s ease-in-out both;filter:drop-shadow(0 0 9px #f49ed0)}.self-strike-hand .hand-sprite{--size:130px}.self-strike-hand.enemy .hand-sprite{transform:rotate(180deg) scaleX(var(--facing))}.self-strike-caption{position:absolute;top:47%;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:92vw;padding:10px 16px;background:#44253e;color:#ffe0f0;border:1px solid #f2acd2;border-radius:10px;text-align:center;font-size:14px}@keyframes self-strike{0%,15%{transform:translate(-50%,-50%) rotate(-12deg)}48%,64%{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(12deg);filter:drop-shadow(0 0 20px #ff82cb) brightness(1.3)}to{transform:translate(-50%,-50%);opacity:0}}@media(prefers-reduced-motion:reduce){.self-strike-hand{animation:none;opacity:.8}}.newworld-finale{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:radial-gradient(ellipse at center,#124d6a,#071723 75%);color:#e6faff;overflow:hidden}.newworld-finale:before{content:"";position:absolute;width:130vmax;height:130vmax;background:repeating-conic-gradient(from 0deg,transparent 0deg 22deg,#83ddff18 23deg 25deg);animation:world-rays 8s linear infinite}.newworld-content{position:relative;text-align:center;padding:24px;max-width:100%}.newworld-caster{font-size:14px;letter-spacing:.15em}.newworld-digits{display:flex;gap:clamp(8px,3vw,22px);justify-content:center;margin:30px 0}.newworld-digits span{display:grid;place-items:center;width:clamp(52px,16vw,100px);height:clamp(64px,20vw,120px);border:2px solid #9ee5ff;border-radius:12px;background:#1d536d;box-shadow:0 0 25px #73daff55;font-size:clamp(40px,11vw,76px);font-weight:900;animation:world-digit .5s calc(var(--n) * .16s) both}.newworld-content h2{margin:12px 0;font-size:clamp(44px,12vw,90px);letter-spacing:.24em;text-indent:.24em;text-shadow:0 0 25px #8de5ff;animation:world-title .6s .8s both}.newworld-condition{font-size:clamp(12px,3.2vw,18px);animation:world-title .4s 1s both}.newworld-verdict{display:block;margin-top:24px;color:#ffe5a3;font-size:clamp(22px,6vw,36px);animation:world-title .4s 1.4s both}@keyframes world-digit{0%{opacity:0;transform:translateY(-50px) scale(.7)}to{opacity:1;transform:none}}@keyframes world-title{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}@keyframes world-rays{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.newworld-finale:before,.newworld-digits span,.newworld-content h2,.newworld-condition,.newworld-verdict{animation:none}}.upcoming-roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;max-width:900px;margin:18px auto 22px}.upcoming-character:disabled{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:10px 4px 12px;border:1px dashed #b9bcac;border-radius:12px;background:#fffdf550;color:#68705f;opacity:1;cursor:not-allowed;box-shadow:none}.upcoming-sprite{display:block;width:clamp(56px,10vw,96px);background-repeat:no-repeat;background-position:0 0;image-rendering:pixelated;mix-blend-mode:multiply;filter:saturate(.8)}.upcoming-character strong{font-size:clamp(11px,2.5vw,15px);font-weight:500}.upcoming-label{font-size:clamp(9px,2vw,11px);letter-spacing:.02em;color:#68705f}.upcoming-character:hover .upcoming-sprite{animation:upcoming-greeting .96s step-end infinite}@keyframes upcoming-greeting{0%{background-position:0 0}25%{background-position:33.333333% 0}50%{background-position:66.666667% 0}75%{background-position:100% 0}}@media(max-width:600px){.upcoming-roster{gap:6px;margin-block:12px}}@media(prefers-reduced-motion:reduce){.upcoming-character:hover .upcoming-sprite{animation:none}}.upcoming-art{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(112px,20vw,192px)}.upcoming-couple{width:min(100%,192px)}.upcoming-character:hover .upcoming-couple{animation-name:upcoming-couple-greeting}@keyframes upcoming-couple-greeting{0%{background-position:0 0}25%{background-position:100% 0}50%{background-position:0 100%}75%{background-position:100% 100%}}@media(max-width:600px){.upcoming-roster{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px)and (orientation:portrait){body{min-width:0}.entry-shell .start-layout{min-width:0;padding:48px 12px 20px}.entry-shell .setup{min-width:0}.entry-shell .setup h2{font-size:clamp(17px,5vw,22px)}.entry-shell .setup-row{flex-wrap:wrap}.entry-shell .role-card>span:not(.character-portrait):not(.character-level){min-height:34px}.upcoming-art{overflow:hidden}.upcoming-couple{max-height:100%;max-width:100%;width:min(100%,112px)}.game-shell:has(.battle-layout){min-width:0}.game-shell:has(.battle-layout) .topbar{gap:6px;padding-inline:8px}.game-shell:has(.battle-layout) .brand{font-size:16px;gap:5px}.game-shell:has(.battle-layout) .topbar-right{gap:4px}.battle-layout,.battle-layout .battle-board,.battle-layout .battle-notebook{min-width:0}.battle-layout .battle-board .player-field{min-width:0;padding-inline:0}.battle-layout .hands{min-width:0;width:100%;gap:10px}.battle-layout .hand{min-width:0;width:0;flex:1 1 0;padding:18px 0}.battle-layout .hand-sprite{--size: min(180px, calc((100cqw - 10px)/2) , max(112px, calc(100cqh - 42px) ))}.battle-layout .hand-top{margin:0}.battle-layout .finger-count{right:8px;bottom:0}.battle-layout .battle-notebook{grid-template-columns:minmax(0,1fr) auto auto auto}.battle-layout .skill-heading{grid-column:1 / -1}.battle-layout .skill-heading h3{margin:0}}@media(max-width:760px)and (orientation:portrait){.battle-layout .hand{padding-block:8px}.battle-layout .hand-sprite{--size: min(180px, calc((100cqw - 10px)/2) , max(112px, calc(100cqh - 78px) ))}.battle-layout .nameplate>.battle-resources{flex-wrap:nowrap;flex-shrink:0;gap:3px}.battle-layout .nameplate .player-label{white-space:nowrap;font-size:9px}.battle-layout .resource-token>summary{padding-inline:3px;gap:2px;font-size:9px}.battle-layout .resource-marks{gap:1px}}@media(max-width:760px)and (orientation:portrait){.battle-layout .hand-top{top:auto;bottom:0;left:8px}}.battle-layout .split-panel .split-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.battle-layout .split-panel .split-options button{min-width:0;min-height:108px;padding:12px 8px;isolation:isolate;overflow:hidden;touch-action:manipulation}.battle-layout .split-panel .split-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.battle-layout .split-panel .split-preview>span{min-width:0;gap:6px}.battle-layout .split-panel .split-preview .hand-sprite{--size: clamp(48px, 16vw, 64px)}.battle-layout .split-panel .split-preview small{font-size:12px;line-height:1.4}.battle-layout .split-panel .section-heading{gap:12px;align-items:center}.battle-layout .split-panel .section-heading h3{margin:0}.battle-layout .split-panel .section-heading button{min-height:44px;flex-shrink:0}@media(max-width:600px){.battle-layout .split-backdrop .split-panel{width:calc(100% - 24px);max-height:calc(100dvh - 48px);padding:18px 14px}.battle-layout .split-panel>p{margin:12px 0 16px}}.principal-yankee{--principal-column: 0%;--principal-width: 266.6667%;--principal-aspect: .5625;--principal-face: 10%;--principal-row: 0%}.principal-madonna{--principal-column: 54.5455%;--principal-width: 320%;--principal-aspect: .46875;--principal-face: 50%;--principal-row: 50%}.principal-elite{--principal-column: 100%;--principal-width: 320%;--principal-aspect: .46875;--principal-face: 90%;--principal-row: 100%}.character-portrait.teacher.principal{clip-path:none;animation:none}.battle-avatar.teacher.principal{background:url(/media/principals.dd5a7008ca142902.png) var(--principal-face) 17% / 600% 400% no-repeat;border-color:#cfaf68}.drag-ghost:has(.principal){mix-blend-mode:screen}.cutin-card .character-portrait.principal,.victory-card .character-portrait.principal{width:auto;height:min(320px,40dvh);flex-shrink:0}.labyrinth-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.labyrinth-choice{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0;padding:16px 8px;border:2px solid #b894a7;border-radius:14px;background:#263631;color:#fff5e4;touch-action:manipulation}.labyrinth-choice:hover,.labyrinth-choice:focus-visible{border-color:#f8acd5;outline:3px solid #d68eb855;outline-offset:2px}.labyrinth-pair{display:grid;grid-template-columns:1fr 1fr;position:relative;gap:14px;isolation:isolate}.labyrinth-hand{display:flex;flex-direction:column;align-items:center;min-width:0;border-radius:10px;padding:8px 0}.labyrinth-hand.is-attacker{background:#c6619b35;box-shadow:inset 0 0 0 1px #f4a5d080}.labyrinth-hand .hand-sprite{--size: clamp(48px, 15vw, 90px);display:block;transform:rotate(180deg) scaleX(var(--facing))}.labyrinth-hand small{margin-top:8px;font-size:12px;white-space:nowrap}.labyrinth-arrow{position:absolute;top:34%;left:50%;transform:translate(-50%,-50%);color:#ffd1ed;font-size:30px;line-height:1;text-shadow:0 2px 3px #000}.labyrinth-choice strong{font-size:14px}@media(max-width:380px){.labyrinth-options{gap:8px}.labyrinth-choice{padding:12px 4px}.labyrinth-panel h3{font-size:15px}.labyrinth-choice strong{font-size:12px}}.revive-cracked .resource-marks{animation:revive-crack .45s ease-out}.revive-break{position:fixed;z-index:150;transform:translate(-50%);pointer-events:none;color:#fff3bd;text-align:center;text-shadow:0 2px 4px #000;animation:revive-break-label 1.1s ease-out forwards}.revive-break strong{display:block;font-size:21px;letter-spacing:.08em;white-space:nowrap}.revive-break small{display:block;font-size:13px;margin-top:4px}.revive-break i{position:absolute;top:-14px;left:50%;width:8px;height:14px;background:#ffe6a1;clip-path:polygon(0 0,100% 25%,35% 100%);animation:revive-shard .65s ease-out forwards}@keyframes revive-shard{0%{opacity:1;transform:rotate(var(--angle)) translateY(0)}to{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--distance))) rotate(100deg)}}@keyframes revive-crack{0%,35%{filter:brightness(2.5);transform:translate(-3px)}20%,50%{transform:translate(3px)}to{filter:none;transform:none}}@keyframes revive-break-label{0%{opacity:0;scale:1.3}12%,75%{opacity:1;scale:1}to{opacity:0;translate:0 -12px}}@media(prefers-reduced-motion:reduce){.revive-cracked .resource-marks{animation:none}.revive-break i{display:none}.revive-break{animation-name:revive-break-fade}}@keyframes revive-break-fade{0%,80%{opacity:1}to{opacity:0}}.topbar-right .enemy-speed-toggle{min-width:38px;min-height:36px;padding:4px 6px;border:1px solid #64867955;border-radius:7px;color:#486258;background:#f5f0e6;font-size:13px;white-space:nowrap;touch-action:manipulation}.topbar-right .enemy-speed-toggle[aria-pressed=true]{color:#fff5c4;background:#386452;border-color:#b9994b}.enemy-speed-toggle:focus-visible{outline:2px solid #ae8531;outline-offset:2px}.enemy-speed-toggle{position:relative;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.enemy-speed-toggle.show-speed-hint:after{content:attr(aria-label);position:absolute;top:calc(100% + 8px);right:0;z-index:250;padding:10px;border-radius:6px;background:#20392e;color:#fff9dd;font-size:13px;white-space:nowrap;pointer-events:none}@media(max-width:420px){.topbar .topbar-right{gap:4px}.topbar-right .enemy-speed-toggle{min-width:32px;padding-inline:3px;font-size:11px}}.hit-stopped .battle-board *,.hit-stopped .cpu-strike,.hit-stopped .cpu-strike *{animation-play-state:paused!important;transition:none!important}.hand-break-held .hand-sprite{visibility:hidden}.hand-break-ghost{position:fixed;z-index:155;pointer-events:none;mix-blend-mode:screen}.hand-break-ghost:has(.teacher:not(.principal)){mix-blend-mode:normal}.hand-break-ghost.falling{animation:hand-break-fall var(--hand-break-duration, .32s) ease-in forwards}.hand-break-ray{position:absolute;left:50%;top:50%;width:4px;height:24px;background:#ffd778;border-radius:2px;transform:rotate(calc(var(--ray) * 60deg + 25deg)) translateY(-42px)}.hand-break-ghost.falling .hand-break-ray{display:none}@keyframes hand-break-fall{0%{opacity:1;translate:0 0;rotate:0deg}30%{opacity:1;translate:16px -30px;rotate:20deg}to{opacity:0;translate:40px 110px;rotate:55deg}}@media(prefers-reduced-motion:reduce){.hand-break-ghost.falling{animation-name:hand-break-fade}}@keyframes hand-break-fade{0%{opacity:1}to{opacity:0}}.double-break-shade{position:fixed;inset:0;z-index:140;background:#090e1680;pointer-events:none}.double-break-fallen .hands{visibility:hidden}.double-break-shake{animation:double-break-shake .3s ease-out}.double-break-caption{position:fixed;inset:0;display:grid;place-items:center;z-index:160;color:#ffe4a0;font-size:clamp(40px,12vw,76px);font-weight:900;letter-spacing:.18em;text-shadow:0 4px #3e261b,0 0 20px #da922866;pointer-events:none;animation:double-break-caption .22s ease-out both}@keyframes double-break-shake{15%{translate:-4px 2px}40%{translate:4px -2px}65%{translate:-2px 1px}to{translate:0 0}}@keyframes double-break-caption{0%{opacity:0;scale:1.2}to{opacity:1;scale:1}}@media(prefers-reduced-motion:reduce){.double-break-shake,.double-break-caption{animation:none}}.player-field.revival-arriving .hand .hand-aura{animation:revival-rise .75s .1s ease-out both;background:radial-gradient(ellipse,#a3f7d63d,transparent 68%)}.player-field.revival-arriving .hand-sprite{filter:drop-shadow(0 0 10px #9affdc)}@keyframes revival-rise{0%{opacity:.15;translate:0 18px;scale:.9}55%{opacity:1;translate:0 -5px;scale:1.035}to{opacity:1;translate:0 0;scale:1}}@media(prefers-reduced-motion:reduce){.player-field.revival-arriving .hand .hand-aura{animation:none}}.victory-cutin--finale{isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#55401d 0,#172321 46%,#070e11)}.victory-cutin--finale:before{content:"";position:absolute;z-index:-1;inset:-80%;background:repeating-conic-gradient(from 0deg,transparent 0deg 18deg,#eabb5314 19deg 25deg,transparent 26deg 40deg);animation:finale-rays 60s linear infinite}.victory-cutin--finale:after{content:"";position:absolute;inset:12px;border:1px solid #cba85866;box-shadow:inset 0 0 0 5px #cba8580a;pointer-events:none}.victory-cutin--finale .victory-card{position:relative;color:#fff0c4;animation:finale-enter .65s ease-out backwards;gap:12px}.finale-eyebrow{font-size:13px;letter-spacing:.3em;color:#e2c986}.victory-cutin--finale .victory-label{color:#ffdf81;font-size:clamp(36px,8vw,80px);line-height:1.1;letter-spacing:.035em;text-shadow:0 3px 0 #87541d,0 0 32px #eabb5355}.victory-cutin--finale .character-portrait.principal{height:min(280px,30dvh);filter:drop-shadow(0 0 22px #eabd5333)}.victory-cutin--finale .defeat-line{border-color:#d4ad5e88;background:#090e1077;padding:16px 22px}.victory-cutin--finale .defeated-name{color:#d3b87b}.finale-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.finale-confetti i{position:absolute;top:-20px;left:calc(mod(var(--i) * 37,100)*1%);width:5px;height:11px;background:#e8bf62;animation:finale-confetti calc(4s + mod(var(--i),4)*1s) linear infinite;animation-delay:calc(var(--i) * -.31s);opacity:.65}.finale-confetti i:nth-child(3n){background:#fff1c2;width:3px;height:6px}.run-summary--finale{width:100%;padding:48px max(18px,calc((100% - 720px)/2)) 36px;box-sizing:border-box;color:#f4e7bd;background:radial-gradient(ellipse at top,#584625 0,#182723 45%,#0b1518);border-top:3px solid #d3af62;gap:18px}.run-summary--finale[aria-hidden=true]{display:none}.run-summary--finale .run-eyebrow{color:#d9b96e;letter-spacing:.16em;font-size:12px}.run-summary--finale h2{color:#ffe3a0;text-shadow:0 0 30px #e0b94d55}.run-summary--finale .run-total-xp{color:#ffe3a0;font-size:clamp(36px,8vw,60px);padding:22px 12px;width:100%;box-sizing:border-box;border-block:1px solid #d9b96e55;background:linear-gradient(90deg,transparent,#f4c76115,transparent);animation:finale-enter .7s ease-out both}.run-summary--finale .growth{color:#f4e7bd;max-width:100%;animation:finale-enter .6s .2s ease-out both}.run-summary--finale .xp-track>span{background:linear-gradient(90deg,#af7c32,#ffe6a2);transform-origin:left;animation:finale-xp 1.2s .2s ease-out both}.run-summary--finale .level-up{color:#ffe3a0;animation:finale-enter .6s .4s ease-out both}.run-summary--finale .unlock-card{border-color:#d7b663;box-shadow:0 0 24px #d7b66318;color:#25463e;animation:finale-enter .6s .6s ease-out both}.run-summary--finale .unlock-card:nth-child(2n){animation-delay:.8s}.run-summary--finale .text-button{color:#e6ce9b}.run-summary--finale .primary{background:#efd18a;color:#182723;border-color:#ffe8af}@keyframes finale-shock{0%{transform:scale(.15);opacity:1}to{transform:scale(2.8);opacity:0}}@keyframes finale-rays{to{transform:rotate(360deg)}}@keyframes finale-confetti{to{transform:translate(30px,110dvh) rotate(320deg)}}@keyframes finale-enter{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes finale-xp{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@media(max-width:480px){.victory-cutin--finale{padding:14px}.victory-cutin--finale .victory-card{padding:18px 8px;gap:10px}.victory-cutin--finale .defeat-line{font-size:16px;padding:12px}.run-summary--finale{padding-top:32px}}@media(prefers-reduced-motion:reduce){.victory-cutin--finale *,.victory-cutin--finale:before,.run-summary--finale *{animation:none!important}.finale-confetti{display:none}}.run-summary--finale .growth strong,.run-summary--finale .growth small{color:#e7d6a9}.entry-shell .role-card{position:relative}.role-card .role-clear-key{position:absolute;top:8px;right:8px;width:clamp(34px,5vw,60px);height:clamp(34px,5vw,60px);object-fit:contain;image-rendering:pixelated;z-index:2;filter:drop-shadow(0 2px 2px #76501666);pointer-events:none}.clear-key-reward{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 28px;border:1px solid #e2ba6355;background:radial-gradient(ellipse,#f9cc6033,transparent 70%);border-radius:16px;color:#ffe3a0;animation:key-arrive .8s ease-out both}.clear-key-reward img{width:112px;height:112px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 0 14px #edbd5a66)}@keyframes key-arrive{0%{opacity:0;transform:translateY(12px) scale(.8)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.clear-key-reward{animation:none}}.school-mystery{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;margin:12px 0 0;padding:22px 16px 18px;border:1px solid #817857;border-radius:12px;background:radial-gradient(ellipse at bottom,#384034,#172323 75%);box-shadow:inset 0 0 0 4px #c2ac7110,0 3px 10px #17232315;color:#e5ddbf}.school-mystery:disabled{opacity:1;cursor:default}.school-mystery-title{font-size:clamp(14px,3.7vw,19px);letter-spacing:.08em;line-height:1.6}.school-mystery-keys{display:flex;align-items:center;justify-content:center;gap:24px}.mystery-key{display:block;width:52px;height:52px;object-fit:contain;image-rendering:pixelated;filter:brightness(0) drop-shadow(0 1px 0 #a89e7055);opacity:.8}.mystery-key.is-owned{filter:drop-shadow(0 0 7px #e6be6455);opacity:1}.school-mystery.is-awakened{border-color:#e9cd7b;background:radial-gradient(ellipse at bottom,#756136,#253735 75%);box-shadow:inset 0 0 24px #efd68720,0 0 15px #e6be642b}.is-awakened .school-mystery-title{color:#fff0bb;text-shadow:0 0 12px #f9d77580}.is-awakened .mystery-key{animation:ring-awakening 3s ease-in-out infinite}@keyframes ring-awakening{0%,to{filter:brightness(1.1) drop-shadow(0 0 5px #ffd97788)}50%{filter:brightness(1.35) drop-shadow(0 0 12px #ffe5a4dd)}}.ring-omen{position:fixed;inset:0;z-index:190;display:grid;place-items:center;background:radial-gradient(ellipse at center,#26332e,#080e12 70%)}.ring-omen-card{position:relative;isolation:isolate;display:grid;place-items:center;width:100%;height:100%;border:0;border-radius:0;background:transparent;cursor:pointer}.ring-omen .school-mystery-keys{gap:clamp(22px,7vw,56px);animation:ring-omen-arrive 2.4s ease-out both}.ring-omen .mystery-key{width:clamp(64px,19vw,110px);height:clamp(64px,19vw,110px)}.ring-omen-halo{position:absolute;z-index:-1;width:min(85vw,540px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#ffe9ab22,transparent 65%);box-shadow:inset 0 0 45px #ead39718;animation:ring-omen-arrive 2.4s ease-out both}@keyframes ring-omen-arrive{0%{opacity:0;transform:scale(.9)}40%,to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.ring-omen .school-mystery-keys,.ring-omen-halo{animation:none}.is-awakened .mystery-key{animation:none;filter:brightness(1.15) drop-shadow(0 0 9px #ffe5a4bb)}}.debug-win{position:fixed;left:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:110;padding:8px 12px;border:1px dashed #ffd28d;border-radius:8px;background:#36271fef;color:#ffe4ad;font-size:12px;cursor:pointer}.debug-win:focus-visible{outline:3px solid #e8b854;outline-offset:3px}.character-portrait.finger-god{clip-path:none;animation:none!important}.cutin-card .character-portrait.finger-god,.victory-card .character-portrait.finger-god{width:min(300px,76vw);height:min(270px,32dvh)}.battle-avatar.finger-god{background:url(/media/finger-god.68b77be643afeb9a.png) 48% 20% / 260% auto no-repeat;border-color:#f1cf79}.hand-sprite.finger-god{position:relative;filter:none}.god-reveal{position:fixed;inset:0;z-index:190;display:grid;place-items:center;overflow:auto;padding:24px 16px;background:radial-gradient(ellipse at 50% 35%,#69502c,#182024 60%,#080e15);color:#f9eac3}.god-reveal-card{width:min(540px,100%);display:flex;align-items:center;flex-direction:column;text-align:center;gap:14px}.god-summoning{position:fixed;inset:0;z-index:190;display:grid;place-items:center;overflow:hidden;background:#080e15}.god-converging-rings{position:relative;width:80px;height:80px}.god-converging-rings img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;--x:0px;--y:-105px;animation:god-ring-converge 2.4s ease-in-out both}.god-converging-rings img:nth-child(2){--x:-100px;--y:65px}.god-converging-rings img:nth-child(3){--x:100px;--y:65px}.god-summoning-light{position:absolute;inset:-50%;background:radial-gradient(circle,#fffef1 0%,#fff3c4 5%,#f7d87999 15%,transparent 40%);opacity:0;animation:god-convergence-flash 2.4s ease-out both}@keyframes god-ring-converge{0%{opacity:0;transform:translate(var(--x),var(--y)) scale(.85);filter:drop-shadow(0 0 4px #ffda88)}20%,35%{opacity:1;transform:translate(var(--x),var(--y));filter:drop-shadow(0 0 12px #ffda88)}65%{opacity:1;transform:translate(0) scale(.8);filter:brightness(2) drop-shadow(0 0 24px #fff6cb)}78%,to{opacity:0;transform:scale(.5)}}@keyframes god-convergence-flash{0%,55%{opacity:0;transform:scale(.1)}75%{opacity:1;transform:scale(1.4)}to{opacity:0;transform:scale(1.8)}}@media(prefers-reduced-motion:reduce){.god-converging-rings img{animation:none;transform:translate(var(--x),var(--y));filter:drop-shadow(0 0 15px #ffda88)}.god-summoning-light{animation:none}}.god-rings{display:flex;gap:22px}.god-rings img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated;animation:god-ring-glow 2s ease-in-out infinite alternate}.god-rings img:nth-child(2){animation-delay:.4s}.god-rings img:nth-child(3){animation-delay:.8s}.god-reveal .character-portrait{width:min(280px,70vw);height:min(260px,30dvh)}.god-reveal h2{margin:0;color:#ffe5a0;font-size:32px;letter-spacing:.25em}.god-reveal p{line-height:1.9;margin:0}.god-reveal .primary{background:#efd699;color:#182024;margin-top:8px}.god-unlock .god-reveal-card{animation:finale-enter 1.2s ease-out both}.role-card[data-role=god] .character-portrait{border-radius:8px}.god-skill-icon{display:block;flex-shrink:0;image-rendering:pixelated}.skill-fx--god .skill-fx-banner{background:linear-gradient(110deg,#142321f5,#594b2cf5,#142321f5);border-color:#ffe4a0;box-shadow:0 0 24px #f2cf7860}.battle-layout .skill-list .skill:disabled .god-skill-icon{opacity:.4}.skill-fx--god .skill-fx-banner strong,.skill-fx--god .skill-fx-banner small,.skill-fx--god .skill-quote{color:#fff0c3;text-shadow:0 0 12px #eac56c77}.victory-cutin--god{background:radial-gradient(ellipse at 50% 35%,#745d32,#26263d 45%,#0c1421)}.victory-cutin--god .victory-label{font-size:clamp(36px,7vw,76px);color:#fff2cc;text-shadow:0 3px 0 #94662e,0 0 28px #ffdb88,0 0 70px #fff1be55}.victory-cutin--god:before{background:repeating-conic-gradient(from 0deg,transparent 0deg 10deg,#fff2b522 11deg 16deg,transparent 17deg 30deg)}.victory-cutin--god:after{inset:10px;border:2px solid #f5d784;box-shadow:inset 0 0 40px #fff0af22,0 0 28px #ffda8644}.victory-cutin--god .finale-confetti i{background:#fff2bb;width:4px;height:4px;box-shadow:0 0 6px #ffe59c}@keyframes god-ring-glow{0%{filter:drop-shadow(0 0 4px #ffc65c66);transform:translateY(0)}to{filter:drop-shadow(0 0 16px #ffe6a0);transform:translateY(-5px)}}@media(prefers-reduced-motion:reduce){.god-rings img{animation:none}}.run-summary--god{background:radial-gradient(ellipse at top,#766039,#222338 45%,#0b1621)}.god-ending{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:20px 0;color:#ffebba;animation:finale-enter 1.2s ease-out backwards}.god-ending>span{font-size:68px;line-height:1;text-shadow:0 0 35px #ffda88}.god-ending strong{font-size:clamp(16px,4vw,23px)}.god-ending p{margin:0}.god-ending small{letter-spacing:.18em;color:#d9cdaa}.game-shell:has(.start-layout){background:radial-gradient(ellipse at 50% 0,#24354e,#101a2a 65%);color:#e3e9f1;min-height:100dvh}.game-shell:has(.start-layout) .topbar{background:#101a2ad9;border-color:#52668144}.game-shell:has(.start-layout) .brand,.game-shell:has(.start-layout) .school-label{color:#d5dfef}.game-shell:has(.start-layout) .sound-toggle{color:#d5dfef;border-color:#607491;background:#1c2b40}.game-shell:has(.start-layout) footer{color:#7e91ae;border-color:#52668144}.entry-shell .start-layout{min-height:0;padding:32px clamp(12px,4vw,64px) 48px}.entry-shell .start-layout .setup{max-width:1120px;margin:auto;padding:0;background:none;border:0;box-shadow:none}.entry-shell .start-layout .setup:before,.entry-shell .start-layout .setup:after{display:none}.entry-shell .setup h2{color:#edf2fa;text-align:center;font-size:clamp(20px,3vw,30px);margin:0 0 24px;letter-spacing:.12em}.entry-shell .start-layout .role-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));grid-auto-rows:1fr;gap:16px;margin-bottom:24px}.entry-shell .start-layout .role-grid:has([data-role=god]){grid-template-columns:repeat(4,minmax(0,1fr))}.entry-shell .start-layout .role-card,.entry-shell .start-layout .role-card.chosen{isolation:isolate;padding:18px 12px 14px;gap:5px;background:radial-gradient(ellipse at 50% 85%,#28364b,#141f30 70%);border:2px solid #40526c;border-radius:12px;box-shadow:0 8px 20px #0003;overflow:hidden;transition:border-color .2s,box-shadow .2s}.entry-shell .start-layout .role-card[data-role=god]{--role-accent:#e7bf61}.entry-shell .start-layout .role-card.chosen{border-color:var(--role-accent);box-shadow:0 0 22px color-mix(in srgb,var(--role-accent) 24%,transparent),inset 0 -3px var(--role-accent)}.entry-shell .start-layout .role-card:hover:not(:disabled),.entry-shell .start-layout .role-card:focus-visible{border-color:var(--role-accent);outline:2px solid transparent}.entry-shell .start-layout .role-card strong{color:#f1f4fa;font-size:20px}.entry-shell .start-layout .role-card>span:not(.character-portrait):not(.character-level){display:none}.entry-shell .start-layout .role-card .character-level{color:#a8bbd4;font-size:12px}.entry-shell .start-layout .role-card .character-portrait{height:auto;width:168px;max-width:100%;aspect-ratio:4/5;margin:0 auto 8px;border-radius:0}.entry-shell .start-layout .role-card:disabled{border-color:#344258;box-shadow:none}.entry-shell .start-layout .role-card:disabled .character-level{color:#a8b1c0;font-size:11px}.entry-shell .start-layout .role-card:disabled .character-portrait{opacity:.45}.entry-shell .start-layout .upcoming-roster{max-width:none;gap:12px}.entry-shell .upcoming-character:disabled{background:#152133;border:1px dashed #40516b;color:#91a0b8;border-radius:12px}.entry-shell .upcoming-sprite{mix-blend-mode:screen;filter:saturate(.25);opacity:.45}.entry-shell .upcoming-label{color:#7f91ac}.entry-shell .start-layout .start-button{max-width:520px;margin:24px auto 16px;min-height:56px;border:1px solid #e4d3a1;background:#edcf87;color:#182339;border-radius:10px;box-shadow:0 4px 20px #0004}.entry-shell .start-layout .school-mystery{max-width:520px;margin:0 auto 24px;background:#111b2b;border-color:#52627a}.entry-shell .start-layout .school-mystery.is-awakened{border-color:#d1b367;background:radial-gradient(ellipse at bottom,#594b2d,#111b2b 80%)}.entry-shell .selection-details{color:#a8bad3;max-width:760px;margin:auto}.entry-shell .selection-details summary,.entry-shell .selection-details strong{color:#d7e3f4}.entry-shell .selection-details p,.entry-shell .selection-details li{color:#a8bad3}.entry-shell .growth-roadmap{border-color:#40516b}@media(max-width:600px){.entry-shell .start-layout{padding:56px 12px calc(98px + env(safe-area-inset-bottom))}.entry-shell .start-layout .role-grid,.entry-shell .start-layout .role-grid:has([data-role=god]){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.entry-shell .start-layout .role-card,.entry-shell .start-layout .role-card.chosen{padding:12px 6px 10px}.entry-shell .start-layout .role-card .character-portrait{height:auto;width:128px}.entry-shell .start-layout .role-card strong{font-size:18px}.entry-shell .start-layout .start-button{position:fixed;z-index:80;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:none;margin:0;box-shadow:0 0 0 12px #101a2af0,0 -14px 24px #101a2a}.game-shell:has(.start-layout) footer{display:none}}@media(prefers-reduced-motion:reduce){.entry-shell .start-layout .role-card{transition:none}}.school-opening .opening-patch{display:block;margin:0 auto;padding:10px 18px;min-height:44px;font-size:13px;color:#fff0cf;background:#102331b3;border:1px solid #ddc99766;border-radius:6px}.opening-patch:hover{text-decoration:underline}.game-shell:has(.patch-notes){background:#101a2a;padding:0}.game-shell:has(.patch-notes) [data-music]{display:none}.game-shell:has(.patch-notes)>.topbar,.game-shell:has(.patch-notes)>footer,.game-shell:has(.patch-notes)>.entry-music{display:none}.patch-notes{height:100dvh;overflow-y:auto;overscroll-behavior:contain;color:#e5e9ef;background:radial-gradient(ellipse at top,#26364b,#101a2a 65%)}.patch-header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:12px max(16px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));background:#101a2af5;border-bottom:1px solid #53657b}.patch-header span{color:#d7bb77;font-size:11px;letter-spacing:.2em}.patch-header button,.patch-back{min-height:44px;padding:10px 18px;background:#24344a;color:#f1e4c6;border:1px solid #65748a;border-radius:6px}.patch-notes article{padding:20px 22px 28px}.patch-release{max-width:720px;margin:12px auto;border:1px solid #65748a70;border-radius:10px;background:#142033a6;overflow:hidden}.patch-release>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-height:52px;padding:14px 20px;cursor:pointer;list-style:none}.patch-release>summary::-webkit-details-marker{display:none}.patch-release>summary:after{content:"＋";margin-left:auto;color:#e8ca83}.patch-release[open]>summary:after{content:"−"}.patch-release[open]>summary{border-bottom:1px solid #65748a55}.patch-release>summary:hover{background:#26364b}.patch-release>summary:focus-visible{outline:2px solid #e8ca83;outline-offset:-3px}.patch-release>summary .patch-version{margin:0}.patch-date{color:#b7c4d6;font-size:12px}.patch-notes>#patch-title{max-width:720px;margin:24px auto 18px;padding:0 20px}.patch-notes ul{padding-left:1.4em}.patch-notes li{font-size:15px;line-height:1.95;margin-bottom:12px}@media(max-width:760px){.patch-release{margin:10px 12px}.patch-release>summary{padding:12px 14px}.patch-date{font-size:11px}.patch-notes article{padding:18px 16px 24px}}.patch-notes .patch-version{color:#e8ca83;font-size:14px;letter-spacing:.15em;margin:0 0 8px}.patch-notes h1{color:#fff1d3;font-size:clamp(26px,6vw,38px);margin:0 0 28px}.patch-notes p{font-size:15px;line-height:1.95;margin:0 0 18px}.patch-notes article section{border-top:1px solid #65748a55;margin-top:30px;padding-top:26px}.patch-notes h2{color:#e8ca83;font-size:20px;margin:0 0 16px;line-height:1.5}.patch-back{display:block;margin:32px auto 0}.game-icon{display:inline-block;flex-shrink:0;width:var(--icon-size,var(--icon-fallback,54px));height:var(--icon-size,var(--icon-fallback,54px));margin:0;vertical-align:middle;background-repeat:no-repeat;image-rendering:pixelated;mix-blend-mode:var(--icon-blend,multiply)}.game-icon.passive-pixel-icon{--icon-fallback:24px}.game-icon.god-skill-icon{border-radius:10px}.skill-list,.run-choice-mark,.unlock-icon{--icon-size:54px}.owned-skill{--icon-size:36px}.skill-info-dialog{--icon-size:80px}.skill-fx-banner{--icon-size:72px}.resource-marks{--icon-size:20px}.resource-pip,.status-chip{--icon-size:24px}@media(max-width:760px){.resource-pip{--icon-size:20px}.status-chip{--icon-size:18px}}@media(max-height:600px){.skill-fx-banner{--icon-size:48px}}.hand-sprite[data-hand-standard]:before{display:none}.standard-hand-frame{display:block;width:100%;height:100%;overflow:hidden;image-rendering:pixelated}.hand-sprite[data-hand-art]{position:relative;background:none;mix-blend-mode:var(--hand-blend)}.hand-sprite[data-hand-art]:before{content:"";position:absolute;inset:0 var(--hand-inset);background-image:var(--hand-image);background-position:var(--hand-x) var(--hand-y);background-size:var(--hand-size);background-repeat:no-repeat;transform:rotate(var(--hand-rotate));image-rendering:pixelated}.character-portrait[data-portrait-context]{background-image:var(--portrait-image);background-size:var(--portrait-size);background-position:var(--portrait-x0) var(--portrait-row);background-repeat:no-repeat;aspect-ratio:var(--portrait-aspect);mix-blend-mode:var(--portrait-blend)}@keyframes character-greeting{0%,to{background-position-x:var(--portrait-x0,9.2%)}25%{background-position-x:var(--portrait-x1,35.9%)}50%{background-position-x:var(--portrait-x2,63.6%)}75%{background-position-x:var(--portrait-x3,90.5%)}}@keyframes elite-greeting{0%,to{background-position-x:var(--portrait-x0,0%)}25%{background-position-x:var(--portrait-x1,33.333%)}50%{background-position-x:var(--portrait-x2,66.666%)}75%{background-position-x:var(--portrait-x3,100%)}}.character-portrait[data-portrait-standard],.upcoming-sprite[data-portrait-standard]{--portrait-blend:screen;position:relative;background:none!important;animation:none!important;aspect-ratio:4/5;mix-blend-mode:screen;overflow:hidden}.portrait-frame{position:absolute;inset:0;width:100%;height:100%;opacity:0;image-rendering:pixelated}.portrait-frame:first-child{opacity:1}.role-card:hover:not(:disabled) .portrait-frame,.role-card:focus-visible .portrait-frame,.role-card.chosen .portrait-frame,.upcoming-character:hover .portrait-frame{animation:portrait-frames 1.2s step-end infinite}.portrait-frame[data-frame="1"]{animation-delay:-.9s!important}.portrait-frame[data-frame="2"]{animation-delay:-.6s!important}.portrait-frame[data-frame="3"]{animation-delay:-.3s!important}@keyframes portrait-frames{0%,24.999%{opacity:1}25%,to{opacity:0}}.upcoming-art{height:210px}.upcoming-art .upcoming-sprite[data-portrait-standard]{width:168px;max-width:100%;height:auto}@media(max-width:600px){.entry-shell .start-layout .upcoming-roster{grid-template-columns:repeat(2,minmax(0,1fr))}.upcoming-art{height:160px}.upcoming-art .upcoming-sprite[data-portrait-standard]{width:128px}}@media(prefers-reduced-motion:reduce){.portrait-frame{animation:none!important}}.character-portrait[data-portrait-standard],.upcoming-sprite[data-portrait-standard]{--portrait-blend:normal;mix-blend-mode:normal}.character-portrait.master-portrait{background:none;isolation:isolate;mix-blend-mode:normal}.master-portrait>svg{display:block;width:100%;height:100%;overflow:visible;image-rendering:auto}.cinematic-dialog{z-index:200;outline:none}.letter-arrival{position:fixed;inset:0;z-index:190;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#61452b,#211c19 65%,#100f11)}.letter-arrival-scene{position:relative;display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:0;background:repeating-linear-gradient(2deg,transparent 0 56px,#ffffff03 57px,#00000012 58px,transparent 60px);cursor:pointer;perspective:900px}.letter-arrival-scene:focus-visible{outline:3px solid #e6c591;outline-offset:-8px}.challenge-note{position:relative;display:block;width:min(80vw,390px,52vh);height:auto;max-width:none;filter:drop-shadow(2px 8px 5px #0007);transform:rotate(-7deg);animation:letter-drop 2.4s both}.letter-shadow{position:absolute;width:min(70vw,400px);aspect-ratio:1.55;border-radius:30%;background:#0009;filter:blur(18px);transform:rotate(-7deg);animation:letter-shadow 2.4s both}.letter-impact{position:absolute;width:min(85vw,520px);aspect-ratio:1;border:2px solid #ebd1a0;border-radius:50%;opacity:0;animation:letter-impact 2.4s both;pointer-events:none}@keyframes letter-drop{0%,8%{transform:translate(7vw,-110vh) rotate(-24deg) rotateX(25deg)}40%{transform:translateY(12px) rotate(-5deg) rotateX(0)}46%{transform:translateY(-22px) rotate(-8deg)}56%,to{transform:translate(0) rotate(-7deg)}}@keyframes letter-shadow{0%,8%{opacity:0;scale:1.8}40%{opacity:1;scale:1}46%{opacity:.65;scale:1.08}56%,to{opacity:1;scale:1}}@keyframes letter-impact{0%,39%{opacity:0;transform:scale(.5) rotateX(55deg)}41%{opacity:.35}66%,to{opacity:0;transform:scale(1.5) rotateX(55deg)}}@media(prefers-reduced-motion:reduce){.challenge-note,.letter-shadow,.letter-impact{animation:none}.letter-impact{display:none}}.stage-cutin.master-entrance{display:block;padding:0;z-index:200;background:#09080f;overflow:hidden}.master-entrance-card{position:relative;isolation:isolate;width:100%;height:100%;overflow:hidden;border:0;border-radius:0;padding:0;background:radial-gradient(ellipse at 50% 42%,#392148,#171020 45%,#09080f 75%);color:#fff7e2;cursor:default;animation:master-impact 4.8s both}.master-entrance-card:focus-visible{outline:2px solid #dbb878;outline-offset:-8px}.master-entrance-card:after{content:"";position:absolute;inset:0;z-index:6;background:#09080f;pointer-events:none;animation:master-darkness 4.8s both}.master-entrance-aura{position:absolute;inset:8% -30%;background:repeating-conic-gradient(from 15deg at 50% 50%,transparent 0deg 14deg,#bf77df16 15deg 16deg,transparent 17deg 28deg);-webkit-mask-image:radial-gradient(ellipse,#000,transparent 65%);mask-image:radial-gradient(ellipse,#000,transparent 65%);animation:master-aura 4.8s both}.master-entrance-streak{position:absolute;left:-10%;top:40%;width:120%;height:2px;background:#f9dfae;box-shadow:0 0 30px 8px #d09ae177;transform:rotate(-12deg);animation:master-streak 4.8s both}.master-entrance-prelude{text-align:center;position:absolute;top:9%;left:0;width:100%;font-size:clamp(14px,2vw,20px);letter-spacing:.25em;animation:master-prelude 4.8s both}.master-entrance-figure{position:absolute;inset:14% 0 18%;display:flex;justify-content:center;animation:master-figure 4.8s both}.master-entrance-figure .character-portrait.master-portrait{display:block;width:min(88vw,560px);height:100%;max-width:none;margin:0;filter:drop-shadow(0 0 25px #ab65d366)}.master-entrance-caption{position:absolute;z-index:3;left:0;right:0;bottom:12%;display:grid;justify-items:center;gap:10px;padding:30px 12px 12px;background:linear-gradient(transparent,#09080fee 45%,#09080f);animation:master-caption 4.8s both}.master-entrance-label{color:#e4b76b;font-size:clamp(16px,3vw,22px);letter-spacing:.4em}.master-entrance-caption strong{font-size:clamp(29px,6vw,54px);line-height:1.25;letter-spacing:.08em;text-shadow:0 3px 0 #4f233c,0 0 25px #c5718055}.master-entrance-name{font-size:clamp(14px,3vw,19px);color:#d7c5df}.master-entrance-line{margin-top:8px;font-size:clamp(14px,3vw,18px);letter-spacing:.15em}@keyframes master-darkness{0%,12%{opacity:1}32%,to{opacity:0}}@keyframes master-prelude{0%,10%{opacity:0}26%,65%{opacity:1}to{opacity:.6}}@keyframes master-figure{0%,15%{opacity:0;transform:scale(1.2) translateY(18px);filter:brightness(0)}35%{opacity:1;filter:brightness(0)}48%,to{opacity:1;transform:scale(1) translateY(0);filter:brightness(1)}}@keyframes master-caption{0%,42%{opacity:0;transform:translateY(16px)}59%,to{opacity:1;transform:translateY(0)}}@keyframes master-streak{0%,34%{opacity:0;scale:0 1}40%{opacity:.8;scale:1 1}52%,to{opacity:0;scale:1 1}}@keyframes master-impact{0%,40%,50%,to{transform:translate(0)}42%{transform:translate(-3px,2px)}44%{transform:translate(3px,-2px)}46%{transform:translate(-2px,1px)}48%{transform:translate(1px,-1px)}}@keyframes master-aura{0%,25%{opacity:0;transform:scale(.7) rotate(-8deg)}55%,to{opacity:1;transform:scale(1.1) rotate(0)}}@media(max-height:520px){.master-entrance-prelude{top:5%}.master-entrance-figure{inset:5% 32% 5% 0}.master-entrance-caption{left:45%;bottom:16%;gap:6px;background:none}.master-entrance-caption strong{font-size:26px}.master-entrance-label{font-size:16px}.master-entrance-line{font-size:12px}}@media(prefers-reduced-motion:reduce){.master-entrance-card,.master-entrance-card:after,.master-entrance-aura,.master-entrance-streak,.master-entrance-prelude,.master-entrance-figure,.master-entrance-caption{animation:none}.master-entrance-card:after,.master-entrance-streak{display:none}}.notebook.stage2-bosses{position:relative;isolation:isolate;width:min(900px,100%);margin:24px auto;padding:clamp(18px,4vw,36px);color:#eee9d5;text-align:center;border:1px solid #767966;border-top:3px solid #c8ad74;background:radial-gradient(ellipse at 50% 0,#4d405239,transparent 60%),repeating-linear-gradient(0deg,#a4baa804 0 1px,transparent 1px 5px),#131e1d;box-shadow:0 18px 45px #07100e55,inset 0 0 75px #0006}.stage2-bosses-heading .run-eyebrow{color:#ceb889;font-size:10px;letter-spacing:.24em}.stage2-bosses-heading h2{margin:10px 0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(25px,5vw,40px);font-weight:900;letter-spacing:.12em;text-shadow:0 3px 14px #000}.stage2-bosses-heading p{margin:0;color:#b8bfb2;font-size:12px;letter-spacing:.08em;line-height:1.8}.stage2-master{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 150px 1fr;align-items:center;width:100%;min-height:150px;margin:24px auto;color:#f0d9a7;text-align:left;border:1px solid #ad915d;border-radius:2px;background:linear-gradient(105deg,#262030,#15141de8 55%,#33273a);box-shadow:inset 0 0 30px #0008,0 6px 20px #0004;overflow:hidden;padding:16px 24px;gap:12px}.stage2-master:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,transparent 40%,#bc86d219 40.2%,transparent 65%)}.stage2-master-copy{display:grid;gap:8px;z-index:1}.stage2-master-copy small{font-size:9px;letter-spacing:.2em;color:#bfac92}.stage2-master-copy strong{font-size:clamp(16px,2.8vw,23px);font-family:Yu Mincho,serif;white-space:nowrap}.stage2-master-copy>span{font-size:12px;color:#c5b6ce}.stage2-master .character-portrait{width:120px;height:140px;margin:0 auto;max-width:100%}.stage2-master-status{display:grid;justify-items:end;gap:14px;font-size:12px;white-space:nowrap}.stage2-seals{display:flex;gap:10px;padding:3px}.stage2-seals i{width:12px;height:12px;transform:rotate(45deg);border:1px solid #9e8ba7;background:#211a2b;box-shadow:0 0 10px #bd8dd51a}.stage2-seals .is-broken{background:#ebd6a2;border-color:#fff0c2;box-shadow:0 0 10px #e7c88766}.stage2-master:disabled{opacity:1;cursor:default}.stage2-master.is-locked{border-color:#6a5c74}.stage2-master.is-awakened{box-shadow:0 0 25px #dcaf5940,inset 0 0 35px #bd8a3020}.stage2-four-heading{display:flex;align-items:center;gap:14px;margin:22px 0 12px;text-align:left}.stage2-four-heading>span{font-family:Yu Mincho,serif;letter-spacing:.2em;font-size:18px}.stage2-four-heading:after{content:"";height:1px;background:#a4af9740;flex:1}.stage2-four-heading small{font-size:11px;color:#bdc0ae;letter-spacing:.1em}.stage2-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stage2-boss{--boss-color:#b49be3;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:0;overflow:hidden;border:1px solid #838878;border-top:3px solid var(--boss-color);border-radius:2px;color:#f5eed9;background:#17221f;box-shadow:0 5px 16px #0005;text-align:left;transition:transform .18s,border-color .18s,box-shadow .18s}.stage2-boss--gyaru{--boss-color:#f098ba}.stage2-boss--librarian{--boss-color:#85ccc3}.stage2-boss--ikemen{--boss-color:#e5c579}.stage2-boss--couple{--boss-color:#f3a08e}.stage2-boss:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(125deg,transparent 15%,var(--boss-color) 15.3%,transparent 68%);opacity:.24}.stage2-boss-number{position:absolute;top:10px;left:10px;color:var(--boss-color);opacity:.48;font:italic 36px/1 Georgia,serif}.stage2-boss-art{display:grid;place-items:center;height:200px;overflow:hidden;background:radial-gradient(ellipse at 50% 90%,#ffffff12,transparent 65%)}.stage2-boss .character-portrait{width:160px;height:200px;max-width:none;margin:0;transform:scale(1.12) translateY(5px);filter:drop-shadow(0 7px 7px #0008)}.stage2-boss-caption{position:relative;display:grid;gap:9px;padding:14px 12px;border-top:1px solid #c6cdba30;background:linear-gradient(110deg,#111916f0,#1d2421f0)}.stage2-boss-caption strong{font-family:Yu Mincho,serif;font-size:20px;font-weight:900;letter-spacing:.1em}.stage2-boss-caption>span{color:var(--boss-color);font-size:11px;letter-spacing:.08em}.stage2-boss.is-cleared{border-color:#58635a;cursor:default}.stage2-boss.is-cleared .stage2-boss-art{filter:grayscale(1);opacity:.32}.stage2-boss.is-cleared .stage2-boss-caption{opacity:.5}.stage2-cleared-mark{position:absolute;top:35%;left:50%;transform:translate(-50%) rotate(-13deg);white-space:nowrap;font:900 32px/1.2 Yu Mincho,serif;letter-spacing:.14em;padding:6px 8px;color:#efd1a0;border:3px double #d6b989;background:#16201de8;text-shadow:0 2px 4px #000}@media(hover:hover){.stage2-boss:not(:disabled):hover{transform:translateY(-5px);border-color:var(--boss-color);box-shadow:0 8px 24px #0009,0 0 14px color-mix(in srgb,var(--boss-color) 20%,transparent)}.stage2-master:not(:disabled):hover{border-color:#ffe2a3;box-shadow:0 0 30px #ddaf5955}}.stage2-bosses button:focus-visible{outline:3px solid #ffdc8c;outline-offset:4px}.stage2-selector-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #b7bda42b;margin-top:24px;padding-top:16px;font-size:12px;color:#bcc4b5}.stage2-selector-footer .text-button{color:#c3c5b8}.stage2-defeat{max-width:580px;margin:28px auto;padding:28px;text-align:center}.stage2-defeat .character-portrait{width:140px;height:165px;margin:16px auto}.stage2-defeat button{display:block;margin:14px auto}.stage2-ticket{display:block;font-size:12px;color:#765333;margin:6px 0}.stage2-progress-label{font-size:12px;font-weight:700;max-width:45%;line-height:1.5}.master-visual{display:block}.master-visual.is-concealed{filter:brightness(0) drop-shadow(0 0 2px #cab4e077)}@media(max-width:620px){.stage2-four{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.notebook.stage2-bosses{margin:12px auto}.stage2-master{grid-template-columns:1fr 100px;min-height:145px;padding:16px;margin:20px auto}.stage2-master .master-visual{grid-column:2;grid-row:1 / 3}.stage2-master .character-portrait{width:100px;height:125px}.stage2-master-status{grid-column:1;justify-items:start;gap:10px;font-size:11px}.stage2-seals{gap:9px}.stage2-seals i{width:9px;height:9px}.stage2-boss-art{height:155px}.stage2-boss .character-portrait{width:132px;height:165px}.stage2-boss-caption{padding:11px}.stage2-boss-caption strong{font-size:18px}.stage2-selector-footer{flex-wrap:wrap}.stage2-progress-label{font-size:10px}}@keyframes stage2-arrive{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:no-preference){.stage2-master,.stage2-boss{animation:stage2-arrive .4s ease-out both}.stage2-boss:nth-child(2){animation-delay:.06s}.stage2-boss:nth-child(3){animation-delay:.12s}.stage2-boss:nth-child(4){animation-delay:.18s}}@media(prefers-reduced-motion:reduce){.stage2-boss{transition:none}}.notebook.stage2-defeat{position:relative;isolation:isolate;overflow:hidden;max-width:640px;padding:clamp(20px,5vw,40px);border:1px solid #827653;border-top:3px solid #d6b979;color:#f3e9d0;background:radial-gradient(ellipse at 50% 65%,#65543338,transparent 65%),#111c1c;box-shadow:0 20px 50px #0005,inset 0 0 80px #0007}.retry-light{position:absolute;inset:-15% -30%;z-index:-1;pointer-events:none;transform:rotate(18deg);background:linear-gradient(90deg,transparent 30%,#f7d78e0a 30.3%,#f7d78e1a 50%,transparent 68%)}.retry-heading .run-eyebrow{color:#c8b17f;font-size:10px;letter-spacing:.24em}.retry-heading h2{font:900 clamp(23px,4.8vw,36px)/1.6 "Yu Mincho","Hiragino Mincho ProN",serif;letter-spacing:.05em;margin:12px 0 8px;text-shadow:0 0 24px #e4bb6633}.retry-master{display:flex;justify-content:center;align-items:center;gap:18px;margin:8px auto 16px;text-align:left}.retry-master .character-portrait{width:120px;height:145px;margin:0}.retry-master blockquote{margin:0;min-width:0}.retry-master blockquote p{font:700 clamp(14px,2.7vw,19px)/2 "Yu Mincho",serif;letter-spacing:.04em;margin:0 0 10px;color:#ede4d5}.retry-master cite{display:block;color:#b8a68b;font-size:11px;font-style:normal;letter-spacing:.08em}.retry-letter{position:relative;width:min(300px,88%);margin:0 auto 26px;padding:22px 20px 26px;transform:rotate(-3deg);color:#302c25;background:repeating-linear-gradient(transparent 0 27px,#829caf55 28px,transparent 29px),#f1e8cf;box-shadow:0 12px 30px #0006;clip-path:polygon(0 1%,7% 0,14% 2%,24% 0,37% 1%,49% 0,61% 2%,73% 0,88% 1%,100% 0,100% 97%,92% 99%,81% 98%,70% 100%,56% 98%,43% 100%,31% 99%,18% 100%,7% 98%,0 100%)}.retry-letter:before{content:"";position:absolute;top:0;bottom:0;left:18px;border-left:1px solid #c1757466}.retry-letter-count{position:absolute;right:12px;top:14px;font-size:10px;color:#925240;border:1px solid #a36350;padding:3px;transform:rotate(8deg)}.retry-letter h3{font:900 32px/1.4 Yu Mincho,Hiragino Mincho ProN,serif;letter-spacing:.15em;margin:0 0 14px}.retry-letter p{font:700 16px/1.8 Yu Mincho,serif;margin:0 0 12px}.game-shell.immersive-shell{position:fixed;inset:0;z-index:100;width:100%;max-width:none;margin:0;padding:clamp(12px,3vw,32px);overflow:auto;display:grid;justify-items:center;align-items:safe center;background:radial-gradient(ellipse at 50% 60%,#2b352b,#0b1414 75%)}.immersive-shell .stage2-defeat{width:100%;margin:0;flex-shrink:0}.retry-actions>p{font-size:12px;line-height:1.8;color:#bdc2b5;margin:0 auto 16px;max-width:330px}.stage2-defeat .retry-actions .primary{display:grid;gap:6px;width:min(340px,100%);margin:0 auto;padding:15px 18px;border:1px solid #e4c780;border-radius:3px;background:linear-gradient(120deg,#f1d99d,#d8b777);color:#2b281e;box-shadow:0 4px #6c5730,0 0 25px #e5bb6230;font-size:18px;font-weight:900}.retry-actions .primary small{font-size:11px;font-weight:400;letter-spacing:.12em}.stage2-defeat .retry-actions .text-button{margin:20px auto 0;color:#b9baad;font-size:12px}.stage2-defeat button:focus-visible{outline:3px solid #fff0b7;outline-offset:5px}@keyframes retry-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes retry-note{0%{opacity:0;transform:translateY(30px) rotate(-9deg)}to{opacity:1;transform:translateY(0) rotate(-3deg)}}@keyframes retry-dawn{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:no-preference){.retry-heading{animation:retry-rise .5s ease-out both}.retry-master{animation:retry-rise .6s .15s ease-out both}.retry-letter{animation:retry-note .65s .35s ease-out both}.retry-light{animation:retry-dawn 1.2s ease-out both}}@media(max-width:380px){.retry-master{gap:8px}.retry-master .character-portrait{width:90px;height:115px}.retry-heading h2{font-size:22px}.retry-letter h3{font-size:28px}.retry-letter-count{font-size:9px;right:8px;top:8px}}.stage-select{width:min(900px,100%);margin:24px auto;padding:clamp(20px,4vw,40px)}.stage2-secret-preview{display:grid;gap:12px;margin:20px auto;padding:24px 14px;max-width:460px;border:1px solid #bfa1d1;border-radius:10px;background:radial-gradient(ellipse at top,#4b365e,#211b2d);color:#f2dfbd;box-shadow:0 0 22px #9970b326}.stage2-secret-preview p{margin:0;font-size:12px;line-height:1.8;color:#dfcfe7}.stage2-secret-preview strong{font-size:clamp(18px,4vw,25px);letter-spacing:.08em}.stage2-secret-preview span{font-size:12px;letter-spacing:.25em;color:#c5accf}.stage-select h2{font-size:clamp(24px,4vw,34px);margin:8px 0 26px}.stage-select-eyebrow{font-size:12px;letter-spacing:.12em;color:#74634c;margin:22px 0 8px}.stage-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.stage-choice{padding:0;text-align:left;border:2px solid #594a35;border-radius:12px;overflow:hidden;background:#fffaf0;color:#342d23;display:flex;flex-direction:column;box-shadow:0 4px #594a3520;min-width:0}.stage-choice--school:hover,.stage-choice--stage2:not(:disabled):hover{transform:translateY(-3px);box-shadow:0 7px #594a3520}.stage-choice-art{height:150px;background:linear-gradient(0deg,#46352055,transparent),url(/media/opening-classroom-noon-v1.6f536c0ef3a689a7.png) center 45%/cover}.stage-choice-body{padding:20px;display:grid;gap:10px}.stage-choice-body small{font-weight:700;letter-spacing:.15em}.stage-choice-body strong{font-size:21px}.stage-choice-body span{font-size:13px;line-height:1.7}.stage-choice-body b{margin-top:8px;color:#874524}.stage-choice--locked:disabled{opacity:1;background:#f4ecdf;color:#54412f;border-style:dashed;border-color:#b9a084;cursor:default}.stage-choice-preview{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#30251f}.stage-choice-locked{justify-self:start;border:1px solid #b9a084;border-radius:999px;padding:4px 12px;color:#765336;font-weight:700}.stage2-ring-collection{margin-top:28px;padding:20px 12px 4px;text-align:center;border:1px solid #d7c6aa;border-radius:12px;background:#fffaf066}.stage2-ring-collection .stage-select-eyebrow{margin-top:0}.stage2-ring-collection h3{margin:6px 0 0;font-size:18px}.stage2-rings{gap:clamp(10px,3vw,28px);flex-wrap:wrap}.stage2-rings img{width:clamp(50px,10vw,72px);height:clamp(50px,10vw,72px)}.stage2-rings .is-owned{filter:drop-shadow(0 0 10px #ae7bce88)}.stage-mystery{margin-top:28px;text-align:center;border-top:1px solid #cfc2aa;padding-top:4px}.stage-rings{display:flex;justify-content:center;gap:clamp(16px,5vw,44px);margin:20px 0}.stage-rings figure{margin:0}.stage-rings img{width:clamp(62px,13vw,90px);height:clamp(62px,13vw,90px);object-fit:contain}.stage-rings .is-missing{filter:brightness(0);opacity:.2}.stage-rings figcaption{font-size:11px;margin-top:8px;color:#776d5e}.stage-mystery p:not(.stage-select-eyebrow){font-size:13px;line-height:1.9}.stage-mystery.is-awakened .is-owned{filter:drop-shadow(0 0 12px #e7b84e)}.stage-secret{width:min(460px,100%);margin:18px auto 0;padding:22px;display:grid;gap:10px;background:radial-gradient(ellipse at top,#4b426a,#211e33);color:#f7e6b8;border:1px solid #c9a55f;border-radius:10px;box-shadow:0 0 20px #ceab4c33}.stage-secret strong{font-size:24px;letter-spacing:.13em}.stage-secret small,.stage-secret span{font-size:12px}.stage-choice:focus-visible,.stage-secret:focus-visible{outline:3px solid #ba702e;outline-offset:4px}@media(max-width:560px){.stage-select{margin:12px auto}.stage-choice-grid{grid-template-columns:1fr}.stage-choice--stage2 .stage-choice-body{padding:15px}.stage-choice--stage2 strong{font-size:17px}.stage-choice-art{height:130px}}.stage-progress-dots{display:flex;align-items:center;gap:9px;height:22px;padding-inline:3px}.stage-dot{display:block;width:6px;height:6px;border-radius:50%;background:#eee6cd30;border:1px solid #eee6cd30}.stage-dot.cleared{background:#c9a45c;border-color:#e4c88b}.stage-dot.current{width:10px;height:10px;background:#fff2bd;border:2px solid #fff8e5;box-shadow:0 0 8px #ffd77499}.stage-dot.boss{border-radius:0}.stage-divine-emblem{display:grid;place-items:center;width:22px;height:22px;color:#ffe6a2;flex:none}.topbar>.stage-progress-dots{gap:0;flex-shrink:0}.stage-link{width:7px;height:2px;background:#435c4938}.stage-link.cleared{background:#ab8038}.topbar .stage-dot.boss{width:20px;height:20px;border:0;background:none;color:#776356;box-shadow:none}.stage-dot.boss svg{display:block;width:100%;height:100%;shape-rendering:crispEdges}.topbar .stage-dot.boss.current{color:#a33832;filter:drop-shadow(0 0 3px #e9b36d)}.topbar .stage-dot{background:#435c492b;border-color:#435c4940}.topbar .stage-dot.cleared{background:#ab8038;border-color:#96702c}.topbar .stage-dot.current{background:#446e55;border-color:#284b37;box-shadow:0 0 0 2px #a4bf9770}.topbar .stage-divine-emblem{color:#9a6d1e;filter:drop-shadow(0 0 3px #e8c36e)}.battle-heading{justify-content:flex-end}@media(max-width:380px){.topbar>.stage-progress-dots{padding-inline:0}.stage-link{width:5px}}.topbar .stage-progress-dots.has-secret{width:auto}.topbar .stage-divine-emblem.upcoming{color:#b39a66;filter:drop-shadow(0 0 2px #e8c36e70)}.topbar .stage-divine-emblem.current{color:#9a6d1e;background:#fff0b9;border-radius:50%;box-shadow:0 0 0 2px #e8c36e70,0 0 12px #e8b74c90;filter:drop-shadow(0 0 2px #fff)}.topbar .stage-dot.boss.cleared{color:#ab8038;background:none}.stage-divine-emblem svg{display:block;width:20px;height:20px}.stalemate-fx{position:absolute;inset:0;z-index:45;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#221e1955;pointer-events:auto}.stalemate-fx strong{padding:10px 32px;border-block:1px solid #eed7a5;background:#2d2824ef;color:#fff1cf;font-size:clamp(23px,5vw,34px);letter-spacing:.12em;box-shadow:0 4px 24px #0004}.stalemate-fx span{color:#fff1cf;font-size:12px}.stalemate-active .hand-aura{animation:stalemate-hands .9s ease-in-out both}.stalemate-active .hand{pointer-events:none}@keyframes stalemate-hands{0%,to{filter:brightness(1)}35%,50%{filter:brightness(1.7) drop-shadow(0 0 12px #fce7aa);opacity:.65}}@media(prefers-reduced-motion:reduce){.stalemate-active .hand-aura{animation:none}}.double-break-shade.decisive-shade{background:radial-gradient(ellipse,#be8b2930,#0e1114ee 72%);box-shadow:inset 0 0 130px #e0ad4540}.double-break-shade.decisive-shade--master{background:radial-gradient(ellipse,#a660c94a,#120b20f0 75%);box-shadow:inset 0 0 140px #aa65d455}.double-break-caption.decisive-caption{overflow:hidden;isolation:isolate;animation:none;letter-spacing:normal}.decisive-words{display:grid;justify-items:center;gap:24px;z-index:2;text-align:center;animation:decisive-stamp .2s ease-out both}.decisive-words strong{display:block;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-weight:900;font-size:clamp(52px,14vw,124px);line-height:1.3;letter-spacing:.1em;padding-left:.1em;transform:rotate(-5deg);color:#ffe7a2;text-shadow:3px 5px 0 #6a361a,0 0 25px #efa72788}.decisive-words>span{font-size:clamp(15px,3vw,23px);letter-spacing:.2em;color:#fff2ce;text-shadow:0 2px 5px #000}.decisive-caption--master .decisive-words strong{text-shadow:3px 5px 0 #582159,0 0 35px #d387e5aa}.double-break-shade.decisive-shade--god{background:radial-gradient(ellipse,#fff3c955,#191620ed 75%);box-shadow:inset 0 0 140px #ffe8a866}.decisive-caption--god .decisive-words strong{font-size:clamp(32px,8vw,86px);color:#fff9df;text-shadow:2px 4px 0 #886432,0 0 32px #ffe3a0aa}.decisive-caption--god .decisive-ring{border:4px double #fff7dc;box-shadow:0 0 50px #fff2c280,inset 0 0 40px #f1cc7655}.decisive-ring{position:absolute;width:min(70vw,650px);aspect-ratio:1;border-radius:50%;border:3px solid #efd699;box-shadow:0 0 30px #d5ab5444,inset 0 0 30px #d5ab5444;animation:decisive-ring 1s ease-out both}.decisive-caption--master .decisive-ring{border:4px double #e6b7ff;box-shadow:0 0 50px #b16cd980,inset 0 0 40px #f1cc7655}.decisive-papers{position:absolute;inset:0;overflow:hidden;pointer-events:none}.decisive-papers i{position:absolute;left:var(--x);top:20%;width:10px;height:19px;background:repeating-linear-gradient(#fff0c9 0 5px,#baa789 6px,#fff0c9 7px);clip-path:polygon(0 0,88% 6%,100% 30%,85% 60%,100% 93%,0 100%);animation:decisive-paper 2.2s ease-out var(--delay) both}.decisive-papers i:nth-child(3n){width:5px;height:5px;background:#ffeab0;box-shadow:0 0 8px #fff1b8;clip-path:none}.decisive-caption--master .decisive-papers i:nth-child(2n){background:#dca7ef}@keyframes decisive-stamp{0%{opacity:0;transform:scale(1.65) rotate(4deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes decisive-ring{0%{opacity:.8;transform:scale(.3)}to{opacity:0;transform:scale(1.5)}}@keyframes decisive-paper{0%{opacity:0;transform:translateY(-12vh) rotate(0)}12%{opacity:.9}to{opacity:0;transform:translate(var(--drift),65vh) rotate(290deg)}}@media(prefers-reduced-motion:reduce){.decisive-words,.decisive-ring,.decisive-papers i{animation:none}.decisive-ring,.decisive-papers{display:none}}.skill-fx--ikemen .skill-fx-banner{color:#392707;border-color:#ffe16d;background:linear-gradient(125deg,#fffef1,#fff0a1 48%,#ffce43);box-shadow:0 0 32px #ffd54180,inset 0 0 0 2px #fff9d9;text-shadow:0 1px #fffef1}.skill-fx--ikemen .skill-fx-banner small,.skill-fx--ikemen .skill-quote,.skill-fx--ikemen .skill-fx-owner{color:#704808}.skill-fx--ikemen .skill-fx-continue{background:#fffdf0;color:#533506;border-color:#9c7015}.skill-fx--ikemen .skill-fx-continue:focus-visible{outline-color:#533506}.skill-fx--ikemen .skill-fx-banner strong{color:#493209}.skill-spark--ikemen{filter:drop-shadow(0 0 7px #ffe26a)}.skill-spark--ikemen i{background:#fff79d;box-shadow:0 0 8px #ffbf20}.friend-support-fx.ikemen-cheer-fx,.friend-support-fx.ikemen-strike-fx{max-width:min(88%,380px);color:#533506;background:#fff7cb;border:2px solid #e8ba36;border-radius:16px;box-shadow:0 3px 16px #ffc92950;padding:9px 14px;font-size:clamp(12px,3.4vw,17px);line-height:1.5;white-space:normal;pointer-events:none;animation:ikemen-cheer-enter .22s ease-out both}.ikemen-cheer-fx[data-level="2"]{border-color:#dc9a0a;font-weight:800}.ikemen-cheer-fx:before{content:"✦ ";color:#a36e00}.ikemen-cheer-fx:after{content:" ✦";color:#a36e00}.ikemen-cheer-fx[data-level="0"]:before,.ikemen-cheer-fx[data-level="0"]:after{content:none}.ikemen-strike-target{filter:drop-shadow(0 0 12px #ffd747)}@keyframes ikemen-cheer-enter{0%{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}.friend-support-fx.ikemen-cheer-fx[data-settling=false]{width:min(78%,360px);padding:14px 12px;border-radius:24px 6px;background:linear-gradient(125deg,#fffef5,#fff0a4 65%,#ffce57);box-shadow:0 0 0 4px #fff6c454,0 8px 32px #9b621555;animation:cheer-title .35s cubic-bezier(.16,1,.3,1) both}.ikemen-cheer-fx[data-settling=false]:before,.ikemen-cheer-fx[data-settling=false]:after{content:none}.ikemen-cheer-fx strong{display:block;font-size:clamp(18px,4.9vw,26px);letter-spacing:.04em;line-height:1.5}.ikemen-cheer-fx small{display:block;font-size:10px;letter-spacing:.14em}.ikemen-cheer-fx span{display:block;font-size:12px;margin-top:3px}.friend-support-fx.ikemen-cheer-fx[data-level="2"][data-settling=false]{color:#fff8d5;border-color:#ffe58d;background:linear-gradient(120deg,#6c3f13,#342115 45%,#785218);box-shadow:0 0 0 4px #ffe18155,0 0 45px #ffd44c88;text-shadow:0 2px 8px #0008}.ikemen-cheer-fx[data-settling=true]{animation:cheer-settle .42s ease-out both;font-size:12px;box-shadow:none}.ikemen-cheer-stage{position:absolute;inset:0;z-index:54;overflow:hidden;border-radius:inherit;pointer-events:none;isolation:isolate}.ikemen-cheer-stage:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 76%,#ffdc6659,transparent 65%);animation:cheer-light var(--cheer-duration) ease-out both}.ikemen-cheer-stage[data-seat="1"]:before{transform:rotate(180deg)}.cheer-spotlights{position:absolute;inset:0;opacity:0}[data-level="2"]>.cheer-spotlights{opacity:1}.cheer-spotlights i{position:absolute;inset:-15% 0;transform-origin:50% 0;background:linear-gradient(#fff7c66b,#ffd85608);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);animation:cheer-beam var(--cheer-duration) ease-out both}.cheer-spotlights i:nth-child(2){animation-direction:reverse}.cheer-crowd{position:absolute;padding:7px 12px;background:#fffcf0;border:2px solid #ecc157;color:#794317;border-radius:18px 18px 18px 3px;box-shadow:0 3px 12px #99661530;font-size:clamp(11px,3vw,15px);font-weight:900;animation:cheer-crowd var(--cheer-duration) ease-out both}.cheer-crowd-0{left:3%;top:5%;rotate:-10deg}.cheer-crowd-1{right:3%;bottom:4%;rotate:8deg}.cheer-crowd-2{right:4%;top:5%;rotate:9deg}.cheer-crowd-3{left:5%;bottom:4%;rotate:-6deg}.cheer-particle{position:absolute;left:var(--x);top:var(--y);color:#ffd454;font-size:clamp(14px,4vw,24px);font-style:normal;text-shadow:0 0 6px #fff7b8;animation:cheer-particle var(--cheer-duration) ease-out both}.cheer-particle:nth-child(2n){color:#f393aa}.cheer-confetti{width:7px;height:13px;background:#ffdb67;font-size:0;box-shadow:0 0 5px #fff9}.player-field[data-character=ikemen][data-cheer="1"] .hand-aura{filter:drop-shadow(0 0 7px #e5b74588);transition:filter .42s}.player-field[data-character=ikemen][data-cheer="2"] .hand-aura{animation:cheer-aura 2.8s ease-in-out infinite}.player-field[data-character=ikemen][data-cheer="0"] .hand-aura{transition:filter .42s}@keyframes cheer-title{0%{opacity:0;scale:.75;rotate:-4deg}to{opacity:1;scale:1;rotate:0deg}}@keyframes cheer-settle{0%{opacity:.85}to{opacity:.25}}@keyframes cheer-light{0%{opacity:0}25%,65%{opacity:1}to{opacity:0}}@keyframes cheer-beam{0%{rotate:-22deg;opacity:0}30%{opacity:.8}to{rotate:22deg;opacity:0}}@keyframes cheer-crowd{0%{opacity:0;transform:translateY(20px) scale(.6)}25%,75%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-12px) scale(1.04)}}@keyframes cheer-particle{0%{opacity:0;transform:translateY(28px) scale(.3) rotate(var(--tilt))}25%,60%{opacity:1}to{opacity:0;transform:translateY(-42px) scale(1.1) rotate(calc(var(--tilt) + 90deg))}}@keyframes cheer-aura{0%,to{filter:drop-shadow(0 0 7px #ffce5188)}50%{filter:drop-shadow(0 0 16px #ffc52dcc) drop-shadow(0 0 3px #fff2b4)}}@media(prefers-reduced-motion:reduce){.ikemen-cheer-stage *,.ikemen-cheer-stage:before,.player-field[data-character=ikemen] .hand-aura,.ikemen-cheer-fx,.ikemen-strike-fx,.skill-fx--ikemen,.skill-fx--ikemen *,.skill-spark--ikemen,.skill-spark--ikemen *{animation:none!important;transition:none!important}.cheer-particle,.cheer-spotlights{display:none}.player-field[data-character=ikemen][data-cheer="2"] .hand-aura{filter:drop-shadow(0 0 10px #ffd45b99)}}.friend-meter{border-color:#c84c91;background:#fff0f7;color:#412438}.friend-meter summary{display:flex;align-items:center;gap:8px}.friend-pips{display:inline-flex;gap:3px}.friend-pips i{font-style:normal;color:#c8b9c3;font-size:18px}.friend-pips .lit{color:#d12b82;text-shadow:0 1px #fff}.friend-pips .supporting{color:#ffbc36;transform:scale(1.25)}.friend-support-fx{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);z-index:55;max-width:min(90%,440px);width:max-content;padding:12px 20px;border:2px solid #f38fbe;border-radius:14px;background:#2d1d30f2;color:#fff2f9;box-shadow:0 4px 20px #30102450;text-align:center;pointer-events:none;font-weight:700}.friend-support-fx:empty{display:none}.friend-guest{display:block;width:90px;height:100px;margin:0 auto 8px;overflow:hidden}.friend-guest .character-portrait{width:100%;height:100%}.skill-fx--gyaru{--skill-color:#ff6fb7}.skill-fx--gyaru .skill-fx-banner{border-color:#f27cb4;background:linear-gradient(130deg,#301c30,#6e2450);color:#fff2f9}.skill-spark--gyaru{color:#f456aa}[data-character=gyaru]{--role-color:#ed5da5}@media(max-width:600px){.friend-meter summary{gap:5px}.friend-pips i{font-size:16px}.friend-support-fx{font-size:12px;padding:10px 12px}.friend-guest{width:70px;height:78px}}@media(prefers-reduced-motion:reduce){.friend-pips .supporting{transform:none}}.friend-strike{position:absolute;inset:0;z-index:54;pointer-events:none;overflow:hidden;border-radius:inherit}.friend-strike-callout{position:absolute;left:12px;bottom:10px;display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:5px 14px 5px 5px;border:2px solid var(--friend-color);border-radius:18px 18px 18px 4px;color:#fff7fc;background:linear-gradient(120deg,#301c35f5,#51283ef5);box-shadow:0 4px 16px #21112155;animation:friend-arrive .18s ease-out both}.friend-strike[data-attacker-seat="1"] .friend-strike-callout{inset:10px 12px auto auto}.friend-strike-portrait{display:block;width:64px;height:76px;flex:none}.friend-strike-portrait .character-portrait{display:block;width:100%;height:100%}.friend-strike-callout small,.friend-strike-callout strong,.friend-strike-callout span>span{display:block}.friend-strike-callout small{font-size:10px;color:var(--friend-color)}.friend-strike-callout strong{font-size:19px;margin:3px 0}.friend-strike-callout span>span{font-size:11px}.friend-strike-flying{position:absolute;left:0;top:0;width:var(--friend-hand-size);height:calc(var(--friend-hand-size)*1.18);transform:translate(var(--friend-from-x),var(--friend-from-y)) translate(-50%,-50%) rotate(var(--friend-angle));filter:drop-shadow(0 0 5px #fff) drop-shadow(0 3px 6px #74264d80);animation:friend-hand-flight var(--friend-flight) cubic-bezier(.3,.05,.8,.4) both}.friend-strike-flying .hand-sprite{display:block;width:100%;height:100%;margin:0;transform:none}.friend-strike-finger-label{position:absolute;left:50%;bottom:0;transform:translate(-50%) rotate(calc(-1*var(--friend-angle)));z-index:2;padding:3px 8px;border-radius:20px;background:#ffeb87;border:2px solid #62374a;color:#392536;font-size:17px;font-weight:700;white-space:nowrap}.friend-strike-trail{position:absolute;left:var(--friend-to-x);top:var(--friend-to-y);width:30px;height:120px;transform:translate(-50%,-10%) rotate(var(--friend-angle));transform-origin:50% 0;background:linear-gradient(#ffbaddaa,transparent);clip-path:polygon(44% 0,100% 100%,0 100%);opacity:0}.friend-strike-impact{position:absolute;left:var(--friend-to-x);top:var(--friend-to-y);transform:translate(-50%,-50%);opacity:0;color:#fff8e5;text-shadow:2px 2px #632846,-2px -2px #632846;white-space:nowrap;text-align:center}.friend-strike-impact span{display:block;font-size:24px;font-weight:700;transform:rotate(-12deg)}.friend-strike-impact strong{display:block;font-size:32px;color:#ffe270}.friend-strike-impact i{position:absolute;left:50%;top:45%;width:5px;height:21px;background:#ffd66f;border:1px solid #fff;transform:rotate(calc(var(--spark)*60deg)) translateY(-54px)}.friend-strike[data-phase=contact] .friend-strike-impact{animation:friend-contact .4s ease-out both}.friend-strike[data-phase=contact] .friend-strike-trail{animation:friend-trail .32s ease-out both}.friend-strike[data-phase=contact] .friend-strike-flying{animation:friend-hand-recoil .42s ease-out both}.friend-hit-contact{animation:friend-target-hit .26s ease-out!important}.friend-support-fx:has(+.friend-strike),.battle-board:has(.friend-strike)>.friend-support-fx{top:50%;padding:5px 12px;font-size:11px;opacity:.85}@keyframes friend-arrive{0%{opacity:0;translate:-14px 0}to{opacity:1;translate:0 0}}@keyframes friend-hand-flight{0%{opacity:0;transform:translate(var(--friend-from-x),var(--friend-from-y)) translate(-50%,-30%) rotate(var(--friend-angle)) scale(.7)}25%,58%{opacity:1;transform:translate(var(--friend-from-x),var(--friend-from-y)) translate(-50%,-50%) rotate(var(--friend-angle)) scale(1)}70%{opacity:1;transform:translate(var(--friend-from-x),var(--friend-from-y)) translate(-50%,-32%) rotate(calc(var(--friend-angle) - 12deg)) scale(1.06)}to{opacity:1;transform:translate(var(--friend-to-x),var(--friend-to-y)) translate(-50%,-50%) rotate(var(--friend-angle)) scale(.94)}}@keyframes friend-hand-recoil{0%{opacity:1;transform:translate(var(--friend-to-x),var(--friend-to-y)) translate(-50%,-50%) rotate(var(--friend-angle)) scale(.94)}to{opacity:0;transform:translate(var(--friend-to-x),var(--friend-to-y)) translate(-50%,-15%) rotate(var(--friend-angle)) scale(.8)}}@keyframes friend-contact{0%{opacity:0;scale:.65}25%{opacity:1;scale:1.15}80%{opacity:1;scale:1}to{opacity:0;scale:1.1}}@keyframes friend-target-hit{0%,to{translate:0 0}25%{translate:0 7px}55%{translate:0 -3px}}@keyframes friend-trail{0%{opacity:.8}to{opacity:0}}@media(max-width:600px){.friend-strike-portrait{width:45px;height:54px}.friend-strike-callout{gap:5px;padding-right:10px}.friend-strike-callout strong{font-size:15px}.friend-strike-impact span{font-size:19px}.friend-strike-impact strong{font-size:27px}}@media(prefers-reduced-motion:reduce){.friend-strike-callout,.friend-strike-flying,.friend-strike[data-phase=contact] .friend-strike-flying,.friend-hit-contact{animation:none!important}.friend-strike-flying{transform:translate(var(--friend-to-x),var(--friend-to-y)) translate(-50%,-50%) rotate(var(--friend-angle));opacity:.65}.friend-strike[data-phase=contact] .friend-strike-impact{animation:none;opacity:1}.friend-strike[data-phase=contact] .friend-strike-trail{animation:none}}.affection-meter{min-width:190px}.affection-meter summary{display:flex;gap:12px;justify-content:space-between}.affection-track{position:relative;height:5px;background:#e9dce9;margin:8px 12px 22px 4px;border-radius:8px}.affection-track>i{display:block;height:100%;background:linear-gradient(90deg,#508de1,#eb85b9);border-radius:8px}.affection-track>span{position:absolute;top:5px;transform:translate(-50%);font-size:10px;color:#777}.affection-track>span.lit{color:#a43879;font-weight:700}.skill-fx--couple .skill-fx-banner{background:linear-gradient(120deg,#e4f0ff,#ffe5f4)}.couple-strike-fx{color:#a23d90;background:linear-gradient(110deg,#e8f2ff,#ffe8f4)}.couple-strike-fx[data-partner=boy]{color:#305d9c}.couple-strike-target{animation:couple-impact .3s ease-out}@keyframes couple-impact{50%{filter:drop-shadow(0 0 12px #c27adb);transform:scale(.96)}}@media(prefers-reduced-motion:reduce){.couple-strike-target{animation:none}}.affection-meter summary{flex-wrap:wrap}.affection-track{display:block;flex-basis:100%;margin-bottom:18px}.affection-meter summary>b{margin-left:auto}.skill-fx--couple{--fx:#82558c}.skill-fx--couple .skill-fx-banner{color:#382440}.skill-fx--couple .skill-fx-banner strong{color:#382440;text-shadow:none}.skill-fx--couple .skill-fx-banner small,.skill-fx--couple .skill-fx-owner,.skill-fx--couple .skill-quote{color:#51385c;opacity:1}.skill-fx--couple .skill-fx-explanation,.skill-fx--couple .skill-fx-continue{color:#382440;background:#fff8fd;border-color:#82558c}.skill-fx--couple .skill-fx-continue:focus-visible{outline-color:#51385c}.status-chip[data-status=learning]{border-color:#81bccb;background:#e3f5fa;color:#234e61}.status-chip[data-status=learning] summary{font-weight:800}.status-chip[data-status=learning-reset]{border-color:#b1d9e8}.skill-fx--librarian{--fx:#bcecf5;color:#e4fbff}.skill-fx--librarian .skill-fx-banner{border-color:#bcecf5;background:linear-gradient(135deg,#243449,#36586c)}.skill-spark--librarian{color:#bcecf5;background:#cceef7;box-shadow:0 0 12px #9adaef}.learning-strike-fx{color:#d9f7ff;text-shadow:0 2px 4px #142938;border-color:#afdcea}.friend-support-fx.learning-talk-fx{display:flex;align-items:center;gap:8px;padding:8px 14px 8px 4px;background:#edf8fff5;border-color:#9cc4d4;color:#30495d;text-shadow:none;border-radius:24px}.learning-talk-portrait{display:block;flex:0 0 64px;width:64px;height:80px;overflow:hidden}.learning-talk-portrait .character-portrait{width:100%;height:100%}.learning-talk-bubble{display:flex;flex-direction:column;gap:6px;text-align:left;min-width:0;overflow-wrap:anywhere}.learning-talk-line{font-size:clamp(16px,3.5vw,22px);letter-spacing:.04em;animation:learning-talk-pop .22s ease-out}.learning-talk-bubble small{font-size:11px;color:#617e8e;font-weight:400}@keyframes learning-talk-pop{0%{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.learning-talk-line{animation:none}}[data-character=librarian] .skill-selected{outline-color:#a1d9e8}@media(prefers-reduced-motion:reduce){.skill-fx--librarian,.skill-spark--librarian{animation:none}}.skill-fx--librarian .skill-fx-banner{transform:translate(-50%,-50%)}.skill-fx--librarian .skill-fx-banner strong{font-size:clamp(18px,3.4vw,30px);letter-spacing:.04em}.skill-spark--librarian{--fx:#bcecf5;background:transparent}.skill-spark--librarian i{width:10px;height:14px;border-radius:1px;background:#d8f5ff}.skill-spark--bookcontinue{animation-name:skill-rise}.skill-spark--bookending{border:3px double #bcecf5}.battle-layout.battle-zones .dark-flame-meter>summary{display:flex;align-items:center;gap:7px;color:#edcaff;background:#32203f;border-color:#b17adb66}.flame-pips{display:inline-flex;gap:4px;align-items:center}.flame-pips i{display:block;width:8px;height:12px;border-radius:65% 15% 55% 45%;transform:rotate(-14deg);background:#65596d;opacity:.45}.flame-pips i.lit{opacity:1;background:linear-gradient(20deg,#8141d0,#d595ff 65%,#ffe0ff);box-shadow:0 0 5px #b151df80}.dark-flame-meter[data-flames="5"] .flame-pips i.lit{box-shadow:0 0 8px #df85ff}.dark-hand-flames{position:absolute;inset:8% 3% 7%;pointer-events:none;z-index:0;filter:drop-shadow(0 0 5px #9639ca90)}.hand[data-dark-flames] .hand-sprite{position:relative;z-index:1}.dark-hand-flames i{position:absolute;left:calc(9% + var(--flame-index)*17%);bottom:12%;width:15%;height:30%;opacity:.65;clip-path:polygon(0 100%,0 72%,15% 72%,15% 42%,30% 42%,30% 18%,45% 18%,45% 0,60% 22%,60% 50%,75% 50%,75% 34%,90% 64%,100% 64%,100% 100%);background:linear-gradient(0deg,#5e278c00,#8e3acebb 45%,#efbeffdd);transform-origin:50% 100%;animation:dark-hand-flicker 1.1s ease-in-out infinite alternate;animation-delay:calc(var(--flame-index)*-.21s)}.dark-hand-flames[data-level="1"] i:nth-child(n+3),.dark-hand-flames[data-level="2"] i:nth-child(n+4){display:none}.dark-hand-flames[data-level="1"] i{left:calc(8% + var(--flame-index)*68%);height:25%}.dark-hand-flames[data-level="2"] i{left:calc(5% + var(--flame-index)*37%);height:35%}.dark-hand-flames[data-level="3"] i,.dark-hand-flames[data-level="4"] i{height:52%;bottom:8%}.dark-hand-flames[data-level="5"] i{height:76%;opacity:.85;bottom:5%}.hand.dead[data-dark-flames]:not([data-dark-flames="0"]){opacity:1}.hand.dead .dark-hand-flames{inset:35% 15% 0;opacity:.6}@keyframes dark-hand-flicker{0%{transform:scaleY(.76) rotate(-9deg)}to{transform:scaleY(1.08) rotate(7deg)}}@media(prefers-reduced-motion:reduce){.dark-hand-flames i{animation:none}}.dark-hand-flames i:after{content:"";position:absolute;inset:45% 28% 0;background:linear-gradient(0deg,#8841ca00,#eab7ff);clip-path:polygon(0 100%,20% 50%,45% 0,70% 35%,100% 100%)}.enemy-skills{position:absolute;top:0;left:0;display:grid;grid-template-columns:repeat(4,44px);gap:3px;z-index:4;pointer-events:none}.enemy-skill{pointer-events:auto}.enemy-skill>summary{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:4px;cursor:pointer;list-style:none;border-radius:7px;background:#f5ecd8;border:1px solid #ffffff30}.enemy-skill>summary::-webkit-details-marker{display:none}.enemy-skill>summary:focus-visible{outline:2px solid #ffe3a2;outline-offset:2px}.enemy-skill.exhausted .game-icon{opacity:.3;filter:grayscale(1)}.enemy-skill-count{position:absolute;right:2px;bottom:1px;font-size:11px;font-weight:700;color:#c5f0ca;background:#12201c;border-radius:4px;padding:0 3px}.enemy-skill.exhausted .enemy-skill-count{color:#efaaa0}.enemy-skill-description{position:absolute;top:calc(100% + 4px);left:0;width:min(340px,calc(100vw - 32px));padding:12px 16px;background:#fff9eb;color:#283831;border:1px solid #b9a77c;border-radius:10px;box-shadow:0 6px 24px #0006;font-size:13px;text-align:left}.enemy-skill-description>span{float:right;font-size:12px}.enemy-skill-description p{margin:7px 0;line-height:1.6}.enemy-skill-description small{font-size:10px;color:#677064}.battle-layout .opponent:has(.enemy-skill) .effects{position:absolute;bottom:0;left:0;right:0}@media(max-width:380px){.enemy-skills{gap:0}}.battle-layout .battle-board .opponent:has(.enemy-skill){padding-top:96px;grid-template-rows:minmax(0,1fr) 14px}.battle-layout .opponent .nameplate>.battle-resources{flex-direction:column;align-items:flex-end;gap:3px}.battle-layout .enemy-skills details[open]{position:static;inset:auto;transform:none;width:auto;max-height:none;overflow:visible;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}.battle-layout .enemy-skills details[open]>summary{position:relative;top:auto;padding:4px;background:#f5ecd8}.battle-layout .enemy-skills details[open]>summary:after{content:none}.battle-layout .opponent:has(.enemy-skill[open]){z-index:10}@media(max-width:760px)and (orientation:portrait){.battle-layout .opponent:has(.enemy-skill) .hand-sprite{--size:min(180px, calc((100cqw - 10px)/2) ,max(112px, calc(100cqh - 17px) ))}}.battle-layout.battle-zones{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}.battle-zones .battle-info{position:relative;display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:4px 12px;padding:8px 12px;background:#2d2824;color:#ede2cb;border:0;border-radius:0}.battle-zones .enemy-info{border-bottom:1px solid #c5ac7540}.battle-zones .battle-notebook.player-dock{grid-template-columns:minmax(0,1fr) max-content;background:#2d2824;border-top:1px solid #c5ac7540}.battle-zones .enemy-skills{position:relative;inset:auto;grid-column:1;grid-row:1;justify-content:start;align-content:start}.battle-zones .info-resources,.battle-zones .player-dock>.player-resources{grid-column:2;grid-row:1 / 4;align-self:start}.battle-zones .info-resources .battle-resources{flex-direction:column;align-items:flex-end;gap:3px}.battle-zones .battle-info>.effects{position:static;grid-column:1 / -1;grid-row:4;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px}.battle-zones .battle-info>.effects:empty{display:none}.battle-layout.battle-zones .battle-board{grid-template-rows:minmax(0,1fr) 48px minmax(0,1fr);padding:4px 12px}.battle-layout.battle-zones .battle-board .player-field{padding:0;grid-template-rows:minmax(0,1fr)}.battle-layout.battle-zones .player-field .hand-sprite{--size:min(180px, calc((100cqw - 10px)/2) ,max(0px,calc((100cqh - 20px) / 1.18)))}.battle-zones .player-dock>.skill-list{grid-template-columns:repeat(4,minmax(0,1fr));max-width:400px;margin:0}.battle-zones .player-dock .skill-name,.battle-zones .player-dock .skill-heading h3{color:#eadfc7}.battle-zones .player-dock .skill-uses{color:#9cdeb2}.battle-zones .skill-slot .game-icon{background-color:#f4ecd8;mix-blend-mode:normal;border-radius:6px}.battle-zones .battle-info:has(details[open]){z-index:80}.battle-zones .enemy-skill-description{z-index:1}@media(max-width:760px){.battle-zones .battle-info{padding:6px 8px;gap:3px 8px}.battle-zones .player-dock>.skill-list{gap:3px}}@media(max-height:600px)and (orientation:landscape){.battle-layout.battle-zones{grid-template-columns:210px minmax(0,1fr) 260px;grid-template-rows:minmax(0,1fr)}.battle-zones .battle-info,.battle-zones .battle-notebook.player-dock{grid-template-columns:minmax(0,1fr);align-content:start;overflow-y:auto}.battle-zones .info-resources,.battle-zones .player-dock>.player-resources{grid-column:1;grid-row:5}.battle-layout.battle-zones .player-field .hand-sprite{--size:min(150px, calc((100cqw - 10px)/2) ,max(0px,calc((100cqh - 20px) / 1.18)))}}.battle-zones .player-dock>.skill-list{grid-column:1;grid-row:1}.battle-zones .player-dock>.action-row{grid-column:1;grid-row:3;justify-self:start}.battle-zones .player-dock>.action-row:empty{display:none}.battle-layout.battle-zones .skill-list .skill-name{color:#eadfc7}.battle-layout.battle-zones .skill-list .skill .skill-uses{color:#9cdeb2}.battle-layout.battle-zones .skill-list .skill .skill-uses.exhausted{color:#f18e91}.battle-zones .hold-hint{color:#c2b8a2}.game-shell:has(.battle-zones) .debug-win{left:auto;right:8px;bottom:6px;padding:4px 8px;font-size:10px}.battle-layout.battle-zones .turn-divider{margin:0;min-height:0}
