:root{color:#2e4947;font-synthesis:none;--ink:#2e4947;--muted:#7a8980;--green:#5f8b79;--mint:#dfeadd;--gold:#f1cb7e;--border:#ccd7c7;background:#f6f2e9;font-family:Hiragino Maru Gothic ProN,Yu Gothic,system-ui,sans-serif;font-weight:500}*{box-sizing:border-box}body{background-image:radial-gradient(#b9c8b540 .8px,#0000 .8px);background-size:12px 12px;margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline-offset:4px;outline:3px solid #c58b3a}button{border:0}main{max-width:980px;margin:0 auto;padding:0 32px}h1,h2,p{margin-top:0}.site-header{justify-content:space-between;align-items:center;gap:15px;max-width:1110px;margin:0 auto;padding:23px 30px;display:flex}.brand{letter-spacing:-.03em;font-size:12px;font-weight:900}.brand:before{content:"✧";color:#b58d4d;margin-right:7px}.header-buttons{gap:7px;display:flex}.text-btn{color:var(--muted);background:0 0;border-radius:6px;padding:8px 11px;font-size:11px}.text-btn:hover{background:#e3eadd}.text-btn span{border:1px solid #9bab9a;border-radius:50%;place-items:center;width:15px;height:15px;margin-left:3px;font-size:9px;display:inline-grid}.title-screen{text-align:center;padding:28px 0 20px}.eyebrow{letter-spacing:.18em;color:#7b9281;justify-content:center;align-items:center;gap:9px;font-size:10px;font-weight:800;display:flex}.eyebrow span{background:#8aa486;border-radius:50%;width:5px;height:5px}.title-pre{letter-spacing:.08em;color:#6e8b75;margin:30px 0 5px;font-size:23px;font-weight:900;transform:rotate(-5deg)}.title-screen h1{letter-spacing:-.08em;text-shadow:3px 4px #e6ddc8;margin:0;font-size:clamp(40px,6vw,68px);font-weight:1000;line-height:1.45}.title-screen h1 span{color:#5d8578}.title-screen h1 i{color:#c8a15f;font-style:normal;display:inline-block;transform:rotate(9deg)}.title-description{color:var(--muted);margin:18px 0;font-size:13px;line-height:1.9}.title-art{background:radial-gradient(#dbe8d5aa,#0000 68%);justify-content:center;align-items:center;gap:30px;max-width:720px;height:245px;margin:22px auto 24px;display:flex;position:relative}.portrait{flex-shrink:0;width:150px;position:relative;transform:rotate(-5deg)}.portrait img{filter:drop-shadow(2px 7px #304b4912);width:100%}.portrait b{background:#fffcf1;border:1px solid #ced5c5;border-radius:20px;padding:5px 16px;font-size:11px;display:inline-block;transform:rotate(5deg)}.portrait.demon{transform:rotate(5deg)}.portrait.demon b{transform:rotate(-5deg)}.word-chain{align-items:center;gap:9px;display:flex}.word-chain span{background:#fffaf0;border:2px solid #9eb8a1;border-radius:11px;padding:22px 12px;font-size:18px;font-weight:900;transform:rotate(-7deg);box-shadow:0 4px #c6d3bd}.word-chain span:nth-of-type(2){background:#f4e3b9;transform:rotate(6deg)}.word-chain span:nth-of-type(3){transform:rotate(-3deg)}.word-chain i{color:#9aa992;font-size:15px;font-style:normal}.title-bubble{background:#fff;border:1px solid #c9d4c2;border-radius:15px 15px 15px 2px;padding:11px 16px;font-size:11px;position:absolute;top:0;right:0;transform:rotate(4deg);box-shadow:2px 3px #d9ddcd}.primary{background:var(--ink);color:#fff7e5;border:2px solid var(--ink);border-radius:9px;justify-content:center;align-items:center;gap:35px;min-height:49px;padding:15px 26px;font-size:13px;font-weight:800;transition:transform .15s,box-shadow .15s;display:inline-flex;box-shadow:0 4px #a5b59b}.primary:hover{transform:translateY(-2px);box-shadow:0 6px #a5b59b}.primary:active{transform:translateY(2px);box-shadow:0 2px #a5b59b}.primary.big{min-width:330px;font-size:15px}.feature-row{color:#7c8d7b;justify-content:center;gap:20px;margin-top:27px;font-size:10px;display:flex}.feature-row span:before{content:"✓ ";color:#8a9b76}.record{color:#9a9e8c;margin-top:20px;font-size:10px}footer{color:#8f998a;border-top:1px solid #d6dccb;justify-content:space-between;gap:10px;max-width:916px;margin:28px auto 0;padding:21px 0;font-size:10px;display:flex}.select-screen,.how-screen{text-align:center;max-width:660px;margin:auto;padding:40px 0 20px}.sub-title{letter-spacing:-.05em;margin:24px 0 15px;font-size:27px}.muted{color:var(--muted);font-size:12px;line-height:1.9}.level-options{gap:14px;margin:35px 0 28px;display:grid}.level{text-align:left;background:#fffcf2;border:1px solid #bccbb7;border-radius:12px;align-items:center;gap:22px;padding:24px;transition:all .15s;display:flex;box-shadow:0 4px #e0e3d5}.level:hover{background:#edf2e5;border-color:#50796b;transform:translateY(-2px)}.level.recommended{border:2px solid #71907a}.level>span:last-child{color:#93a487;margin-left:auto}.level-icon{color:#709079;background:#dee8d6;border-radius:14px;place-items:center;width:48px;height:48px;font-family:serif;font-size:22px;display:grid}.level:nth-child(2) .level-icon{color:#ad935c;background:#f2e4bd}.level:nth-child(3) .level-icon{color:#9a839e;background:#e5dce7}.level strong{margin-bottom:6px;font-size:19px;font-weight:900;display:block}.level small{color:var(--muted);font-size:11px}.battle-screen{padding-top:8px}.battle-heading{justify-content:space-between;align-items:center;display:flex}.battle-heading h1{color:#91a28c;margin:0;font-size:13px;font-weight:800}.battle-heading h1 span{color:var(--ink);letter-spacing:-.06em;margin-left:8px;font-size:19px}.duel-hud{grid-template-columns:1fr 160px 1fr;align-items:center;gap:15px;height:145px;display:grid}.hero-badge{align-items:center;gap:8px;display:flex}.hero-badge img{width:100px;height:110px}.hero-badge span{color:#8b9b85;font-size:9px;line-height:1.9}.hero-badge b{color:var(--ink);font-size:12px}.current-box{text-align:center;position:relative}.current-box>span{letter-spacing:.08em;color:#809278;font-size:10px}.current-box strong{color:#3a5c50;text-shadow:2px 3px #e0d6b7;font-size:66px;font-weight:900;line-height:1.2;display:block}.current-box small{color:#87977d;font-size:9px}.demon-badge{justify-content:end;align-items:center;gap:8px;height:130px;padding-top:10px;display:flex;position:relative}.demon-badge img{width:117px;height:117px}.demon-badge>span{color:#917991;font-size:9px;position:absolute;bottom:-4px;right:14px}.speech-bubble{white-space:nowrap;background:#fffaf0;border:1px solid #cbd5c2;border-radius:13px 13px 2px;padding:12px;font-size:11px;line-height:1.7}.thinking{animation:1s ease-in-out infinite bob}.turn-bar{background:#e6eddf;border:1px solid #c2d0bb;border-bottom:0;border-radius:13px 13px 0 0;justify-content:space-between;align-items:center;gap:20px;padding:13px 18px;display:flex}.turn-label{align-items:center;gap:8px;min-width:200px;font-size:12px;font-weight:800;display:flex}.turn-label.cpu{color:#8f7496}.status-dot{background:#85a477;border-radius:50%;width:6px;height:6px;box-shadow:0 0 0 4px #9eb68f2a}.cpu .status-dot{background:#b394b3}.dots{letter-spacing:3px;animation:1s infinite blink}.timer{--time:100%;align-items:center;gap:12px;display:flex}.timer-track{background:#cfd9c8;border-radius:5px;width:120px;height:7px;overflow:hidden}.timer-track i{height:100%;width:var(--time);background:#7d9d77;transition:width 50ms linear;display:block}.timer>span{color:#74886d;white-space:nowrap;font-size:10px}.timer b{font-variant-numeric:tabular-nums;color:#47664d;margin:0 3px;font-size:19px}.timer.urgent .timer-track i{background:#c87b65}.timer.urgent b{color:#b96350;animation:.65s infinite blink}.picture-grid{background:#eff1e5;border:1px solid #c2d0bb;border-radius:0 0 13px 13px;grid-template-columns:repeat(6,1fr);gap:11px;padding:17px;display:grid;box-shadow:0 5px #dde2d1}.tile{aspect-ratio:1.1;background:#fffcf3;border:1px solid #ced8c5;border-bottom:3px solid #cbd4be;border-radius:10px;place-items:center;padding:8px;transition:transform .16s,background .16s,border .16s;display:grid;position:relative;overflow:hidden}.tile img{object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;filter:drop-shadow(0 2px #00000006);width:85%;height:90%}.tile-number{color:#b7beaa;font-variant-numeric:tabular-nums;font-size:8px;position:absolute;top:6px;left:8px}.tile:not(:disabled):hover{z-index:1;background:#fff8df;border-color:#86a27c;transform:translateY(-3px)scale(1.04);box-shadow:0 5px 12px #304b4912}.tile:not(:disabled):active{transform:scale(.93)}.tile.used{background:#dfe4d6;border-color:#d2d9c7}.tile.used img{opacity:.19;filter:grayscale()}.used-label{white-space:nowrap;color:#96a08b;border:1px solid #acb69f;border-radius:3px;padding:3px 7px;font-size:10px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-8deg)}.tile.just-used:after{content:"✦";color:#d6af60;pointer-events:none;place-items:center;font-size:50px;animation:.7s forwards success;display:grid;position:absolute;inset:0}.picture-grid:has(.tile:disabled:not(.used)){background:#eae8e5}.message{text-align:center;color:#788d75;min-height:56px;padding:20px 10px 13px;font-size:12px;line-height:1.7}.battle-bottom{color:#8a9780;border-top:1px dashed #d5dccc;justify-content:space-between;align-items:center;gap:12px;padding:12px 4px;font-size:10px;display:flex}.last-word b{color:#54735b;margin:0 5px}.last-word strong{color:#3e624e;font-size:17px}.history{color:#8a9680;text-align:left;margin-top:14px;font-size:11px}.history summary{cursor:pointer;padding:9px 0}.history ol{max-height:170px;padding-left:28px;line-height:2.2;overflow-y:auto}.history li b{color:#536d57}.secondary{color:#6e8265;background:#faf9ec;border:1px solid #b7c7af;border-radius:8px;padding:13px 20px;font-size:12px}.secondary:hover{background:#e8edde}.result-screen{text-align:center;max-width:680px;margin:auto;padding:28px 0 20px}.result-character{filter:drop-shadow(3px 6px #c6d4bb55);width:160px;height:160px;margin:13px auto 8px}.result-pre{letter-spacing:.12em;color:#9d956f;margin-bottom:10px;font-size:10px}.result-screen h1{letter-spacing:-.05em;margin:0 0 15px;font-size:42px;font-weight:1000}.result-screen.won h1{color:#568168}.result-screen.lost{animation:.6s darken}.result-screen.lost h1{color:#9c7e9b}.reason{color:#7c8a74;font-size:13px;line-height:1.9}blockquote{color:#8d7b87;margin:20px 0;font-size:13px;line-height:1.9}.result-stats{background:#fffbed;border:1px solid #cbd6bf;border-radius:12px;grid-template-columns:1fr 1fr 1fr;margin:25px 0;padding:20px 8px;display:grid}.result-stats>div+div{border-left:1px solid #e0e3d4}.result-stats b{font-variant-numeric:tabular-nums;font-size:27px;display:block}.result-stats small{margin:0 4px;font-size:10px}.result-stats span{color:#95a084;margin-top:7px;font-size:10px;display:block}.result-actions{justify-content:center;gap:10px;margin-top:18px;display:flex}#toast{color:#7f946f;min-height:20px;margin-top:15px;font-size:11px}dialog{color:var(--ink);text-align:center;background:#fffaf0;border:2px solid #819e80;border-radius:18px;width:calc(100% - 32px);max-width:470px;max-height:85svh;padding:30px;box-shadow:0 16px 50px #142c2833}dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1d353480}dialog h2{margin:14px 0 10px;font-size:23px}dialog p{color:#7a8a72;font-size:12px;line-height:1.9}.dialog-close{color:#92a183;background:0 0;font-size:25px;position:absolute;top:10px;right:14px}.mini-label{letter-spacing:.12em;color:#7e9275;font-size:11px}.reading-picture{width:100px;height:100px;margin:10px 0 0}.small{color:#8c977d;font-size:11px}.reading-options{gap:10px;display:grid}.reading-option{color:#46674b;background:#e8eedd;border:1px solid #c4d1b9;border-radius:9px;padding:14px}.reading-option:hover{background:#dce8cd;border-color:#5a865d}.reading-option strong{font-size:20px;display:block}.reading-option small{color:#839274;margin-top:6px;font-size:11px;display:block}.reading-option.danger{color:#a06f62;background:#f4e5dc;border-color:#d5a692}.reading-option.danger small{color:#b1826f}.how-example{background:#fff9e9;border:1px solid #ccd6c1;border-radius:12px;justify-content:center;align-items:center;gap:25px;margin:30px 0;padding:25px 10px;display:flex}.how-example img{width:105px;height:105px}.how-example b{font-size:20px;line-height:2}.how-example span{color:#94a281;font-size:12px}.rules-list{text-align:left;padding-left:25px;font-size:13px;line-height:1.95}.rules-list li{padding:8px 0 8px 6px}.rules-list b{color:#a47d58}.confetti{pointer-events:none;z-index:30;position:fixed;inset:0;overflow:hidden}.confetti i{border-radius:2px;width:8px;height:13px;animation:2.8s ease-in forwards fall;position:absolute;top:-20px}.shake{animation:.25s shake}.reduce-motion *,.reduce-motion :before,.reduce-motion :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}@keyframes success{0%{opacity:1;transform:scale(.4)}60%{opacity:1;transform:scale(1.1)}to{opacity:0;transform:scale(1.4)}}@keyframes blink{50%{opacity:.55}}@keyframes bob{50%{transform:translateY(-3px)}}@keyframes darken{0%{opacity:.1;filter:brightness(.3)}to{opacity:1;filter:brightness()}}@keyframes shake{25%{transform:translate(4px)}75%{transform:translate(-4px)}}@keyframes fall{to{transform:translate(var(--drift),105vh) rotate(650deg)}}@media (max-width:700px){main{padding:0 18px}.site-header{padding:15px 18px}.brand{font-size:10px}.text-btn{padding:7px;font-size:10px}.header-buttons{gap:1px}.title-screen{padding-top:25px}.title-screen h1{font-size:49px}.title-pre{margin-top:24px;font-size:20px}.title-art{gap:4px;height:200px;margin:15px auto}.portrait{width:110px}.word-chain{gap:4px}.word-chain span{padding:16px 9px;font-size:14px}.word-chain i{font-size:10px}.title-bubble{padding:9px;font-size:9px;top:-8px;right:0}.feature-row{gap:12px;font-size:9px}footer{margin:25px 18px 0;padding:18px 0;font-size:9px}footer span{display:none}.duel-hud{grid-template-columns:1fr 100px 1fr;gap:4px;height:127px}.hero-badge{flex-direction:column;align-items:start;gap:0}.hero-badge img{width:83px;height:83px}.hero-badge span{margin-left:15px;font-size:8px;line-height:1.5}.hero-badge b{font-size:10px}.demon-badge img{width:94px;height:94px}.demon-badge{height:110px;padding-top:15px}.demon-badge>span{font-size:8px;bottom:0;right:15px}.speech-bubble{padding:7px;font-size:9px;position:absolute;top:-10px;right:0}.current-box strong{font-size:58px}.current-box>span,.battle-heading h1{font-size:9px}.battle-heading h1 span{font-size:15px}.turn-bar{gap:10px;padding:12px}.turn-label{gap:6px;min-width:0;font-size:10px}.timer{gap:7px}.timer-track{width:66px;height:5px}.timer b{font-size:16px}.timer>span{font-size:9px}.picture-grid{gap:7px;padding:10px}.tile{aspect-ratio:1;border-radius:7px;padding:5px}.tile-number{font-size:6px;top:4px;left:5px}.tile img{width:92%;height:92%}.used-label{padding:2px 4px;font-size:7px}.message{min-height:58px;padding:17px 4px 10px;font-size:11px}.battle-bottom{font-size:9px}.last-word b{margin:0 2px}.sub-title{font-size:24px}.level{gap:15px;padding:20px}.result-screen h1{font-size:35px}.result-stats{padding:18px 4px}.result-stats b{font-size:23px}.result-stats span{font-size:9px}.result-character{width:140px;height:140px}.result-actions{gap:7px}.secondary{padding:12px;font-size:11px}.how-example{gap:15px}.how-example img{width:80px}.how-example b{font-size:17px}.primary.big{min-width:300px}}@media (max-width:450px){.picture-grid{grid-template-columns:repeat(4,1fr);gap:7px}.tile{aspect-ratio:1.13}.title-screen h1{font-size:41px}.portrait{width:85px}.word-chain span{padding:15px 7px;font-size:12px}.word-chain{gap:3px}.title-art{height:170px;margin-top:24px}.title-bubble{top:-18px}.title-description{font-size:12px}.header-buttons .text-btn{padding:7px 5px}.hero-badge span{display:none}.demon-badge img{width:80px;height:80px}.duel-hud{height:115px}.hero-badge img{width:80px;height:88px}.speech-bubble{top:-3px}.demon-badge>span{font-size:7px;bottom:0}.current-box strong{font-size:55px}.turn-bar{gap:5px}.timer-track{width:45px}.tile-number{font-size:7px}.used-label{font-size:8px}.picture-grid .tile{min-height:55px}.result-stats small{margin:0 2px;font-size:8px}.feature-row{gap:10px}.primary.big{min-width:280px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.portrait b{white-space:nowrap}@media (max-width:450px){.portrait b{padding:5px 10px;font-size:9px}}.modal-countdown{color:#668061;margin:0 0 16px;font-size:18px;font-weight:900}.modal-countdown.urgent{color:#b76750}.portrait img,.hero-badge img,.demon-badge img,.result-character{object-fit:contain;object-position:center}.portrait img{aspect-ratio:1;filter:drop-shadow(0 7px 5px #304b491a);display:block}.hero-badge img,.demon-badge img{filter:drop-shadow(0 4px 3px #304b4915)}.result-character{filter:drop-shadow(0 7px 5px #304b491a);width:210px;height:210px}@media (max-width:700px){.result-character{width:180px;height:180px}}.demon-explanation{color:#67536c;text-align:left;background:#fffaf4;border:1px solid #cbbccc;border-radius:16px;margin:12px 0 18px;padding:14px 20px;line-height:1.8;position:relative}.demon-explanation:before{content:"";background:#fffaf4;border-top:1px solid #cbbccc;border-left:1px solid #cbbccc;width:16px;height:16px;position:absolute;top:-9px;right:52px;transform:rotate(45deg)}.demon-explanation>b,.history-explanation>b{color:#957497;letter-spacing:.06em;font-size:10px}.demon-explanation p{overflow-wrap:anywhere;margin:4px 0 0;font-size:14px}.history ol{max-height:340px}.history-explanation{background:#fffaf4;border:1px solid #d5c8d4;border-radius:12px 12px 12px 2px;margin:5px 0 14px;padding:8px 12px;line-height:1.8}.history-explanation p{color:#67536c;margin:2px 0;font-size:12px}.result-explanation{margin-top:25px}.result-explanation:before{display:none}@media (max-width:700px){.demon-explanation{margin-top:8px;padding:10px 13px}.demon-explanation p{font-size:12px}.demon-explanation:before{right:35px}}.skill-panel{align-items:center;gap:10px;padding:12px 0;display:flex}.skill-panel>div{margin-right:auto}.skill-panel b{font-size:12px}.skill-panel small{color:#81917b;margin-top:4px;font-size:10px;display:block}.skill-panel button{background:linear-gradient(135deg,#fff5cb,#eff1d5);border:1px solid #aeaa7d;border-radius:9px;min-height:52px;padding:9px 17px;font-size:12px;font-weight:800;box-shadow:0 3px #d0d5b9}.skill-panel button:hover:not(:disabled){background:#ffebaa;transform:translateY(-2px)}.skill-panel button:disabled{opacity:.42;box-shadow:none}.tile.hint-glow{background:#fff3c4;border:3px solid #d3ab4c;animation:1.2s ease-in-out infinite hint-pulse;box-shadow:0 0 15px #e9c96388}.tile.hint-glow:before{content:"✦";color:#be8f2b;font-size:17px;position:absolute;top:2px;right:5px}.special-cutin{z-index:100;color:#fff5d6;isolation:isolate;background:radial-gradient(at 35%,#347a83f5,#142c40fa 75%);justify-content:center;align-items:center;gap:30px;animation:.24s ease-out cutin-enter;display:flex;position:fixed;inset:0;overflow:hidden}.special-cutin.demon-cutin{color:#ffe3f7;background:radial-gradient(at 35%,#805591f5,#261a3efa 75%)}.special-cutin img{object-fit:contain;filter:drop-shadow(0 0 30px #e8d5a888);z-index:2;width:clamp(200px,32vw,380px);height:clamp(220px,40vw,420px);animation:.5s cubic-bezier(.2,.7,.2,1) both cutin-character}.special-title{z-index:2;max-width:570px;padding:20px}.special-title small{letter-spacing:.25em;color:#e6c986;font-size:13px}.special-title h2{text-shadow:3px 4px #101e39;margin:18px 0;font-size:clamp(28px,5vw,60px);font-weight:1000;line-height:1.3;animation:.4s .15s both cutin-name}.special-title p{color:#fff8e6;font-size:19px;line-height:1.8}.special-title>span{background:#ffffff0d;border:1px solid #fff5;border-radius:30px;padding:7px 15px;font-size:11px;display:inline-block}.magic-ring{border:3px solid #f6e4a744;border-radius:50%;width:560px;height:560px;animation:3s linear infinite magic-turn;position:absolute;left:calc(34% - 280px);box-shadow:0 0 0 24px #f6e4a711,0 0 0 27px #f6e4a744,inset 0 0 0 60px #f6e4a711}.magic-ring:before,.magic-ring:after{content:"";border:2px solid #ffe9b344;position:absolute;inset:70px;transform:rotate(45deg)}.magic-ring:after{transform:rotate(15deg)}.special-speedlines{z-index:-1;background:repeating-linear-gradient(0deg,#0000 0 38px,#ffffff13 40px 42px,#0000 44px 76px);border-block:2px solid #fff3;position:absolute;inset:20% -10%;transform:rotate(-8deg)}@keyframes hint-pulse{50%{box-shadow:0 0 22px #e9c963cc}}@keyframes cutin-enter{0%{opacity:0}to{opacity:1}}@keyframes cutin-character{0%{opacity:0;transform:translate(-100px)}to{opacity:1;transform:none}}@keyframes cutin-name{0%{opacity:0;transform:translate(80px)scale(1.15)}to{opacity:1;transform:none}}@keyframes magic-turn{to{transform:rotate(90deg)}}@media (max-width:700px){.skill-panel{flex-wrap:wrap;gap:7px}.skill-panel>div{justify-content:space-between;align-items:center;width:100%;display:flex}.skill-panel small{font-size:9px}.skill-panel button{flex:1;min-height:54px;padding:8px;font-size:11px}.special-cutin{flex-direction:column;gap:0}.special-cutin img{width:240px;height:260px}.special-title{text-align:center;padding:10px 18px 25px}.special-title h2{margin:10px 0;font-size:32px}.special-title p{font-size:15px}.magic-ring{top:calc(42% - 280px);left:calc(50% - 280px)}}.mistake-counter{color:#8b7766;align-items:center;gap:10px;padding:12px 4px 0;font-size:12px;display:flex}.mistake-counter b{color:#b17b68;font-size:16px}.mistake-counter span{margin-left:auto;font-size:10px}.mistake-counter.last-chance,.mistake-counter.last-chance b{color:#ae5b65}.combo-hud{color:#63795c;background:#fff8df;border:1px solid #d1d5ba;border-radius:10px;justify-content:space-between;align-items:center;margin:10px 0 0;padding:12px 16px;display:flex}.combo-hud>div{align-items:center;gap:15px;display:flex}.combo-hud b{color:#af8a36;font-variant-numeric:tabular-nums;font-size:27px}.combo-hud small{font-size:10px}.combo-hud span{font-size:11px}.combo-hud strong{font-variant-numeric:tabular-nums;font-size:23px}.combo-hud.charged{background:linear-gradient(120deg,#fff0b8,#f6dfad,#fff7da);border-color:#cfaa5c;box-shadow:0 0 18px #eac46d44}.charged-hero img{filter:drop-shadow(0 0 14px #edc450)!important}.reward-burst{z-index:80;text-align:center;pointer-events:none;color:#ffe99a;text-shadow:2px 3px #534019,-2px -2px #534019,2px -2px #534019,-2px 2px #534019;min-width:260px;animation:1.3s both reward-pop;position:fixed;top:34%;left:50%;transform:translate(-50%,-50%)}.reward-word{font-size:24px;font-weight:1000}.reward-burst strong{font-size:70px;font-weight:1000;line-height:1.2;display:block}.reward-burst small{font-size:25px}.reward-burst b{color:#fff9dc;font-size:31px;display:block}.reward-burst>span{margin-top:6px;font-size:12px;font-weight:900;display:block}.reward-burst.milestone{color:#fff1bd;text-shadow:3px 3px #704789,-2px -2px #704789,2px -2px #704789,-2px 2px #704789}.reward-burst i{color:#f6d46f;font-size:25px;font-style:normal;animation:1.15s ease-out both reward-spark;position:absolute;top:45%;left:50%}.score-result{background:linear-gradient(120deg,#fff6d7,#f3e8c7);border:1px solid #d9b971;border-radius:15px;margin:20px 0;padding:23px 12px}.score-result>span{color:#8c805c;font-size:11px}.score-result h2{color:#9b7735;margin:10px 0;font-size:24px}.score-result>b{color:#917237;font-size:42px}.score-result small{font-size:15px}.score-result p{color:#8a7e61;margin:10px 0 0;font-size:13px}.quiet-reward{color:#9b7735;text-shadow:none;background:#fff6dcf5;border:2px solid #c1a262;border-radius:15px;padding:12px}.quiet-reward b{color:#9b7735}@keyframes reward-pop{0%{opacity:0;transform:translate(-50%,-40%)scale(.5)}18%{opacity:1;transform:translate(-50%,-50%)scale(1.12)}30%,75%{opacity:1;transform:translate(-50%,-50%)scale(1)}to{opacity:0;transform:translate(-50%,-65%)scale(1)}}@keyframes reward-spark{0%{opacity:0;transform:translate(-50%,-50%)scale(.1)}20%{opacity:1}to{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(.6)}}@media (max-width:700px){.combo-hud{padding:8px 11px}.combo-hud>div{gap:9px}.combo-hud b{font-size:22px}.combo-hud span{font-size:9px}.combo-hud strong{font-size:20px}.reward-burst strong{font-size:56px}.reward-burst small{font-size:21px}.reward-word{font-size:22px}.score-result h2{font-size:21px}}body{color:var(--ink);isolation:isolate;background:#14142d}body:before{content:"";z-index:-2;pointer-events:none;background:linear-gradient(#10112655,#121326a6),url(./castle-hall-uLbNCMUz.png) 50%/cover no-repeat;position:fixed;inset:0}body:after{content:"";z-index:-1;pointer-events:none;background:radial-gradient(at 50% 30%,#0000 15%,#0b0d2444 90%);position:fixed;inset:0}.site-header{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#14162abf;border:1px solid #e7cb8544;border-radius:12px;max-width:1160px;margin:10px auto 15px;padding:17px 25px;box-shadow:0 8px 25px #090b2622}.site-header .brand{color:#fff1ce}.site-header .text-btn{color:#e2d6ba}.site-header .text-btn:hover{background:#ffffff15}.site-header .text-btn span{border-color:#d8c58a}main{max-width:1120px;padding:0 25px}footer{color:#d6ccbc;background:#10132c88;border-color:#dac18a44;border-radius:0 0 12px 12px;max-width:1070px;padding:18px 20px}.fantasy-eyebrow{color:#efcf87;letter-spacing:.24em;text-align:center;text-shadow:0 2px 6px #111329;font-size:11px;font-weight:800}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;overflow:hidden;position:absolute!important}.rich-title{padding:8px 0 0}.title-keyart{background:linear-gradient(135deg,#f3da9b,#816239,#f3da9b);border:2px solid #dab779;border-radius:20px;max-width:1000px;margin:18px auto 0;padding:5px;position:relative;box-shadow:0 22px 65px #05091b99,0 0 35px #c7aa6b22}.title-keyart:before,.title-keyart:after{content:"✦";color:#ffe5a0;text-shadow:0 0 14px #dca84d;z-index:2;font-size:30px;position:absolute;top:-17px}.title-keyart:before{left:18px}.title-keyart:after{right:18px}.title-cover{aspect-ratio:1672/941;object-fit:contain;border-radius:13px;width:100%;height:auto;display:block}.keyart-badge{color:#fff2ca;background:#1e2249dd;border:1px solid #e1c383;border-radius:20px;padding:6px 12px;font-size:11px;position:absolute;bottom:18px;right:19px;box-shadow:0 3px 10px #10152b66}.title-glints{pointer-events:none;position:absolute;inset:0}.title-glints i{color:#fff4bd;text-shadow:0 0 15px #ffe6a2;font-size:29px;font-style:normal;animation:3s ease-in-out infinite rich-twinkle;position:absolute}.title-glints i:first-child{top:15%;left:5%}.title-glints i:nth-child(2){animation-delay:.8s;top:35%;right:8%}.title-glints i:nth-child(3){animation-delay:1.6s;bottom:14%;left:35%}.title-action{background:linear-gradient(#151b37eb,#201e3be8);border:1px solid #d2b67777;border-top:0;border-radius:0 0 22px 22px;max-width:760px;margin:-3px auto 0;padding:25px 20px 18px;position:relative;box-shadow:0 18px 40px #080b2633}.rich-title .title-description{color:#f0e5d0;margin:0 0 20px;font-size:14px;line-height:1.9}.adventure-start{color:#46321b;background:linear-gradient(120deg,#e9bf65,#fff0b4,#d5a44b);border:1px solid #f9e3a0;border-radius:12px;gap:20px;min-height:61px;box-shadow:0 5px #735a35,0 0 28px #e7c16b33;min-width:350px!important;font-size:17px!important}.adventure-start:hover{background:linear-gradient(120deg,#f5d68b,#fff5c9,#e9c06b);box-shadow:0 7px #735a35,0 0 35px #e7c16b55}.rich-title .feature-row{color:#e6d9bc;gap:21px;margin-top:22px;font-size:11px}.rich-title .feature-row span:before{color:#e4bd70}.adventure-record{justify-content:center;gap:0;max-width:430px;margin:24px auto 0;display:flex}.adventure-record>div{width:50%;padding:0 20px}.adventure-record>div+div{border-left:1px solid #dbc17d44}.adventure-record b{color:#ffe1a3;font-variant-numeric:tabular-nums;font-size:24px;display:block}.adventure-record small{color:#c8bb9e;font-size:11px}.adventure-record span{color:#c4bca8;margin-top:7px;font-size:10px;display:block}.title-footnote{color:#c0bba9;margin:19px 0 0;font-size:10px}.rich-level{text-align:center;max-width:none;padding:24px 0}.rich-level .sub-title{color:#fff0cd;text-shadow:0 3px 10px #12162d;margin:18px 0 12px;font-size:32px}.level-intro{color:#e0d5c3;font-size:13px;line-height:1.9}.rich-level .level-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:33px 0 20px;display:grid}.rich-level .level{text-align:center;color:#fff0d3;background:linear-gradient(160deg,#203c49f5,#111d34f5);border:1px solid #d5c18a88;border-radius:18px;flex-direction:column;gap:0;min-width:0;padding:0 0 19px;transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;position:relative;overflow:hidden;box-shadow:0 15px 35px #080c2a88}.rich-level .level-normal{background:linear-gradient(160deg,#4c3468f5,#1b193df5)}.rich-level .level-hard{background:linear-gradient(160deg,#633245f5,#25152ff5)}.rich-level .level:hover{border-color:#ffe3a0;transform:translateY(-7px);box-shadow:0 22px 45px #070b2999,0 0 20px #e8c27c33}.rich-level .level.recommended{border:2px solid #edce86;box-shadow:0 14px 40px #080c2a88,0 0 20px #e4c67d22}.difficulty-ribbon{letter-spacing:.12em;color:#e6cfa0;background:#e5c88718;border-bottom:1px solid #d5c18a44;width:100%;padding:12px 8px;font-size:10px;display:block}.level-portrait{isolation:isolate;justify-content:center;align-items:center;width:100%;height:220px;display:flex;position:relative}.level-portrait img{object-fit:contain;filter:drop-shadow(0 8px 12px #040b2477);width:190px;height:190px;transition:transform .3s}.level:hover .level-portrait img{transform:scale(1.06)translateY(-3px)}.portrait-orbit{z-index:-1;border:1px solid #d2bf8144;border-radius:50%;width:170px;height:170px;position:absolute;top:23px;left:calc(50% - 85px);box-shadow:0 0 0 13px #e7d29a0b,0 0 40px #ba9ce63d}.portrait-orbit:before{content:"";border:1px solid #e7d29a22;position:absolute;inset:18px;transform:rotate(45deg)}.difficulty-stars{color:#f6cf76;letter-spacing:7px;text-shadow:0 0 14px #efb34c88;width:100%;font-size:18px;position:absolute;bottom:7px;left:0}.level-copy{width:100%;padding:0 16px}.rich-level .level-number{color:#cabb9a;letter-spacing:.2em;margin:4px 0 10px;font-size:9px;display:block}.rich-level .level strong{color:#fff1cc;font-size:25px;font-weight:900;display:block}.level-quote{color:#e5c998;margin:12px 0;font-size:11px;line-height:1.8}.level-description{color:#d2ced9;min-height:44px;margin:10px 0 18px;font-size:11px;line-height:1.95}.level-enter{color:#3c2b1e;background:linear-gradient(100deg,#ead093,#c59e5b);border:1px solid #f3dba8;border-radius:7px;justify-content:space-between;align-items:center;padding:12px 14px;font-size:12px;font-weight:900;display:flex}.level-enter b{font-size:16px}.last-selected{color:#e9cd8e;margin-top:11px;font-size:9px;display:block}.level-common{color:#d4c9b4;font-size:11px;line-height:1.8}.rich-level>.text-btn{color:#f0debd;background:#12173199;border:1px solid #d2ba7a55;border-radius:8px;margin-top:10px;padding:12px 20px}.rich-level>.text-btn:hover{background:#ffffff15}.battle-screen,.result-screen,.how-screen{background:#faf6eaf5;border:1px solid #e1c68a;border-radius:20px;margin-top:20px;padding:22px 28px;box-shadow:0 15px 50px #080d2988}.battle-screen .duel-hud{background:linear-gradient(#151c3c60,#1b1a3a9c),url(./castle-hall-uLbNCMUz.png) 50% 40%/cover;border:1px solid #c9ad76;border-radius:13px;height:175px;margin:12px -11px 18px;padding:10px 20px;box-shadow:inset 0 0 30px #181b3b77}.battle-screen .hero-badge span,.battle-screen .hero-badge b,.battle-screen .current-box>span,.battle-screen .current-box small{color:#f5e6c4}.battle-screen .current-box strong{color:#ffe3a2;text-shadow:0 2px 12px #eebc5044}.battle-screen .demon-badge>span{color:#ffe4ab;background:#242039dd;border-radius:5px;padding:3px 6px;bottom:-8px}.battle-screen .speech-bubble{color:#62496b}.battle-screen .picture-grid{border-radius:0 0 12px 12px}.result-screen{max-width:750px}.how-screen{max-width:760px;margin-inline:auto}@keyframes rich-twinkle{0%,to{opacity:.25;transform:scale(.6)}50%{opacity:1;transform:scale(1.1)}}@media (max-width:700px){.site-header{border-radius:9px;margin:8px 10px 12px;padding:12px 10px}.site-header .brand{font-size:10px}.site-header .text-btn{padding:7px 4px;font-size:9px}main{padding:0 12px}footer{margin:22px 12px 0;padding:15px 12px;font-size:9px}.fantasy-eyebrow{letter-spacing:.17em;font-size:8px}.rich-title{padding-top:4px}.title-keyart{border-radius:13px;margin-top:14px;padding:3px}.title-cover{border-radius:8px}.keyart-badge{padding:4px 8px;font-size:8px;bottom:9px;right:8px}.title-keyart:before,.title-keyart:after{font-size:23px;top:-13px}.title-action{padding:23px 14px 18px}.rich-title .title-description{font-size:12px}.adventure-start{gap:13px;width:100%;max-width:370px;min-height:55px;min-width:0!important;font-size:15px!important}.rich-title .feature-row{gap:13px;font-size:9px}.adventure-record{margin-top:20px}.adventure-record b{font-size:22px}.title-footnote{font-size:8px}.rich-level{padding:13px 0}.rich-level .sub-title{margin:16px 0 10px;font-size:23px;line-height:1.5}.level-intro{padding:0 10px;font-size:11px}.rich-level .level-options{grid-template-columns:1fr;gap:14px;max-width:480px;margin:22px auto 18px}.rich-level .level{text-align:left;border-radius:13px;grid-template-columns:115px minmax(0,1fr);padding:0 0 12px;display:grid}.difficulty-ribbon{grid-column:1/-1;padding:7px 12px;font-size:9px}.level-portrait{align-self:center;height:159px}.level-portrait img{width:119px;height:140px}.portrait-orbit{width:95px;height:95px;top:25px;left:calc(50% - 47.5px)}.difficulty-stars{text-align:center;letter-spacing:4px;font-size:14px;bottom:4px}.level-copy{padding:13px 12px 0 0}.rich-level .level-number{margin:0 0 7px;font-size:8px}.rich-level .level strong{font-size:21px}.level-quote{margin:8px 0;font-size:9px;line-height:1.6}.level-description{min-height:0;margin:8px 0 11px;font-size:10px;line-height:1.7}.level-enter{padding:9px 10px;font-size:10px}.last-selected{margin-top:7px;font-size:8px}.level-common{padding:0 9px;font-size:10px}.battle-screen,.result-screen,.how-screen{border-radius:13px;margin-top:12px;padding:15px 12px}.battle-screen .duel-hud{grid-template-columns:1fr 85px 1fr;height:137px;margin:9px -3px 14px;padding:8px}.battle-screen .demon-badge>span{bottom:0}.battle-screen .hero-badge img,.battle-screen .demon-badge img{width:85px;height:85px}.battle-screen .current-box strong{font-size:54px}.battle-screen .demon-badge{padding-top:8px}.battle-screen .speech-bubble{font-size:8px;top:-4px}.battle-screen .turn-bar{padding:10px 8px}.battle-screen .picture-grid{gap:6px;padding:8px}.battle-screen .tile{min-height:50px}.battle-screen .skill-panel button{font-size:10px}.battle-screen .combo-hud span{font-size:8px}.battle-screen .mistake-counter{font-size:10px}}.skill-panel{flex-wrap:wrap}.skill-panel .swap-button{background:linear-gradient(120deg,#f4e6ff,#e2d9f2);border-color:#9e8ab7}.rescue-backdrop{z-index:90;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#10122cd9;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.rescue-dialog{text-align:center;background:linear-gradient(145deg,#fff8e8,#f0e4f6);border:2px solid #e8c681;border-radius:22px;width:min(470px,100%);max-height:90svh;padding:28px;overflow:auto;box-shadow:0 0 55px #d0a2f544}.rescue-symbol{color:#9c78b7;font-size:50px}.rescue-dialog h2{color:#62467a;margin:8px 0 18px;font-size:27px}.rescue-dialog p{font-size:14px;line-height:1.9}.rescue-dialog small{color:#8c7e8c;margin:16px 0 22px;font-size:11px;line-height:1.8;display:block}.rescue-dialog button{justify-content:center;width:100%;margin-top:12px;display:flex}.rescue-dialog .primary{color:#fff2ce;background:#6d4f87;border-color:#6d4f87}.rescue-dialog .secondary{font-size:11px}@media (max-width:700px){.skill-panel .swap-button{flex-basis:100%}.rescue-dialog{padding:22px 17px}.rescue-dialog h2{font-size:24px}body:has(.battle-screen){height:100svh;overflow:hidden}body:has(.battle-screen) .site-header{display:none}body:has(.battle-screen) footer{display:none}body:has(.battle-screen) main{height:100svh;padding:0 5px}.battle-screen{border-radius:11px;flex-direction:column;gap:5px;height:calc(100svh - 8px);margin:4px 0;padding:8px;display:flex;overflow:hidden}.battle-screen .battle-heading{flex-shrink:0;min-height:20px;margin:0}.battle-screen .battle-heading h1{margin:0;font-size:8px}.battle-screen .battle-heading h1 span{font-size:12px}.battle-screen .battle-heading .text-btn{padding:3px 5px;font-size:9px}.battle-screen .duel-hud{flex-shrink:0;grid-template-columns:1fr 85px 1fr;height:76px;min-height:76px;margin:0;padding:3px 9px;position:relative}.battle-screen .hero-badge{justify-content:center;height:68px;display:flex}.battle-screen .hero-badge img{width:62px;height:64px}.battle-screen .hero-badge span{display:none}.battle-screen .demon-badge{align-items:center;height:68px;padding:0}.battle-screen .demon-badge img{width:64px;height:64px}.battle-screen .demon-badge>span{padding:1px 4px;font-size:7px;bottom:0;right:1px}.battle-screen .speech-bubble{display:none}.battle-screen .current-box>span{font-size:8px}.battle-screen .current-box strong{font-size:38px;line-height:1.05}.battle-screen .current-box small{font-size:7px}.battle-screen .demon-explanation{border-radius:9px;flex-shrink:0;min-height:47px;max-height:68px;margin:0;padding:5px 9px;overflow:auto}.battle-screen .demon-explanation:before{display:none}.battle-screen .demon-explanation>b{font-size:8px}.battle-screen .demon-explanation p{margin:1px 0 0;font-size:10px;line-height:1.5}.battle-screen .turn-bar{border-radius:7px;flex-shrink:0;min-height:29px;padding:6px 8px}.battle-screen .turn-label{font-size:9px}.battle-screen .timer b{font-size:15px}.battle-screen .timer-track{width:48px}.battle-screen .mistake-counter{flex-shrink:0;min-height:17px;padding:0 3px;font-size:9px;line-height:17px}.battle-screen .mistake-counter b{font-size:12px}.battle-screen .mistake-counter span{font-size:8px}.battle-screen .combo-hud{border-radius:6px;flex-shrink:0;min-height:25px;margin:0;padding:4px 8px}.battle-screen .combo-hud b{font-size:17px;line-height:1}.battle-screen .combo-hud small{font-size:8px}.battle-screen .combo-hud strong{font-size:16px}.battle-screen .combo-hud span{font-size:8px}.battle-screen .skill-panel{flex-shrink:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;padding:0;display:grid}.battle-screen .skill-panel>div{display:none}.battle-screen .skill-panel button,.battle-screen .skill-panel .swap-button{min-height:38px;box-shadow:none;border-radius:6px;width:100%;padding:5px 2px;font-size:9px;line-height:1.4}.battle-screen .skill-panel button small{margin-top:2px;font-size:7px}.battle-screen .picture-grid{border-radius:8px;flex:1;grid-template-rows:repeat(6,minmax(0,1fr));grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-height:0;padding:6px;display:grid}.battle-screen .tile,.battle-screen .picture-grid .tile{aspect-ratio:auto;border-radius:6px;justify-content:center;align-items:center;min-width:0;min-height:0;padding:3px;display:flex;overflow:hidden}.battle-screen .tile img{object-fit:contain;width:100%;height:100%;min-height:0}.battle-screen .tile-number{font-size:6px;top:2px;left:3px}.battle-screen .used-label{padding:1px 3px;font-size:7px}.battle-screen .message{display:none}.battle-screen .battle-bottom{border-top:0;flex-shrink:0;min-height:17px;padding:2px 3px;font-size:8px;line-height:1.2}.battle-screen .last-word strong{font-size:11px}.battle-screen .history{display:none}.battle-screen .demon-explanation{scrollbar-width:thin}}@media (max-width:700px) and (max-height:700px){.battle-screen{gap:3px;padding:6px}.battle-screen .duel-hud{height:60px;min-height:60px}.battle-screen .hero-badge,.battle-screen .demon-badge{height:54px}.battle-screen .hero-badge img,.battle-screen .demon-badge img{width:51px;height:51px}.battle-screen .current-box strong{font-size:31px}.battle-screen .current-box small{display:none}.battle-screen .demon-explanation{min-height:40px;max-height:51px;padding:3px 7px}.battle-screen .demon-explanation>b{display:none}.battle-screen .skill-panel button{min-height:34px;font-size:8px}.battle-screen .picture-grid{gap:4px;padding:4px}}@media (max-width:700px) and (max-height:480px){.battle-screen .picture-grid{grid-template-rows:repeat(4,minmax(0,1fr));grid-template-columns:repeat(6,minmax(0,1fr))}.battle-screen .duel-hud,.battle-screen .combo-hud{display:none}.battle-screen .demon-explanation{min-height:30px;max-height:32px}}.battle-metrics{display:contents}@media (max-width:700px){.battle-screen .battle-metrics{flex-shrink:0;align-items:center;gap:8px;min-height:27px;display:flex}.battle-screen .mistake-counter{gap:5px;width:42%}.battle-screen .mistake-counter span{display:none}.battle-screen .combo-hud{flex:1;min-width:0}.battle-screen .combo-hud span{display:none}.battle-screen .combo-hud>div{gap:3px}}@media (max-width:700px) and (max-height:700px){.battle-screen .demon-explanation{max-height:40px}.battle-screen .battle-bottom{display:none}}
