@charset "UTF-8";
:root{color-scheme:dark;--bg:#121111;--panel:#1b1919;--ink:#f3e8d8;--muted:#b3a497;--line:#39312c;--fire:#ff985b;--gold:#dab88a}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 25%,#35231e 0%,#171414 46%,#0d1013 100%);color:var(--ink);font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;min-height:100svh;font-size:16px}button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit;border:1px solid var(--line);background:#211d1b;min-height:44px;border-radius:8px}button:focus-visible{outline:2px solid #ffd29f;outline-offset:4px}button:disabled{opacity:.36;cursor:default}button:not(:disabled):active{transform:translateY(2px)}[hidden]{display:none!important}.game{max-width:520px;margin:auto;padding:18px 24px 14px;padding-bottom:max(14px,env(safe-area-inset-bottom));border-inline:1px solid #ffffff08;min-height:100svh}header{display:flex;align-items:center;justify-content:space-between}.brand{background:none;border:0;display:flex;align-items:center;gap:10px;padding:0;color:var(--gold);font-size:25px}.brand span{font-size:14px;letter-spacing:2px}.brand b{font-weight:400;color:#8f8176}.header-actions{display:flex;gap:8px}.header-actions button{background:transparent;font-size:13px;min-width:44px;color:var(--muted)}.title-row{display:flex;justify-content:space-between;align-items:center;margin:15px 0 18px}.eyebrow{font-size:11px;letter-spacing:2.4px;color:var(--gold);margin:0 0 7px}h1{font-family:Georgia,"Yu Mincho",serif;font-size:48px;letter-spacing:5px;line-height:1;margin:0;font-weight:500}h1 span{color:var(--fire);letter-spacing:-2px;margin-left:5px}.tagline{color:var(--muted);font-family:"Yu Mincho",serif;font-size:13px;line-height:1.8;letter-spacing:2px}.journey{display:flex;align-items:center;gap:8px;font-size:11px;color:#8e827b;margin-bottom:18px;white-space:nowrap}.journey span{padding-bottom:8px;border-bottom:1px solid transparent}.journey .active{color:var(--gold);border-color:var(--fire)}.journey .done{color:#8bad99}.journey i{flex:1;height:1px;background:var(--line);margin-bottom:8px}.arena{position:relative;overflow:hidden;border:1px solid #61433180;border-radius:14px 14px 0 0;padding:18px 18px 12px;background:radial-gradient(ellipse at 50% 65%,#753b232e,transparent 65%),linear-gradient(145deg,#262020,#18181b)}.enemy-info{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}h2{font-family:"Yu Mincho",serif;font-size:20px;margin:0;font-weight:500;letter-spacing:2px}.enemy-info .eyebrow{font-size:10px;letter-spacing:1.8px}.enemy-health{width:112px;text-align:right;font-size:12px;color:var(--muted)}.bar{height:5px;background:#ffffff12;border-radius:5px;overflow:hidden}.bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#9b4c3b,#f5a978);transition:width .35s}.enemy-health .bar{margin-top:8px}.portrait{position:relative;width:210px;height:181px;margin:0 auto;display:grid;place-items:center}.portrait svg{height:195px;position:relative;z-index:1;filter:drop-shadow(0 0 15px #e9893626)}.orbit{position:absolute;width:157px;height:157px;border:1px solid #b98d5840;border-radius:50%;top:17px}.orbit:after{content:'';position:absolute;inset:12px;border:1px dashed #c29b6c40;border-radius:50%}.two{width:125px;height:125px;top:33px;transform:rotate(45deg);border-radius:12px}.rune{position:absolute;font-size:22px;color:#bb9060;top:80px}.r1{left:0}.r2{right:0}.intent{display:flex;justify-content:center;gap:12px;font-size:12px;padding-top:10px}.intent span{color:var(--muted)}.intent strong{font-weight:500;color:#f0aa8b}.table{background:linear-gradient(160deg,#25201d,#1a1919);border:1px solid #61433180;border-top:0;border-radius:0 0 14px 14px;padding:16px 18px}.mana-row{display:flex;justify-content:space-between;align-items:center}.spell-name{font-size:14px;margin-top:5px}.mana{display:flex;align-items:baseline;gap:8px}.mana strong{font-family:Georgia,serif;font-size:43px;font-weight:400;line-height:1;color:var(--fire)}.mana span{font-size:15px;color:#ac9683}.cards{display:flex;justify-content:center;gap:8px;min-height:110px;padding:15px 0 10px;overflow-x:auto}.card{flex:0 0 64px;height:88px;background:linear-gradient(135deg,#f7edda,#d6c7ac);color:#28252a;border-radius:6px;border:1px solid #fff1d5;box-shadow:0 4px 10px #0005;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;animation:deal .22s ease-out}.card.red{color:#a53c33}.card b{font:30px Georgia,serif}.card span{font-size:22px}.card small{position:absolute;top:4px;left:6px;font-size:10px}.spell-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--gold)}.spell-meta span:last-child{color:var(--muted)}.message{font-size:12px;line-height:1.6;color:var(--muted);min-height:38px;padding:9px 0 5px}.tools{display:flex;gap:10px;margin:5px 0 12px}.tools button{flex:1;display:flex;justify-content:space-between;align-items:center;padding:10px;font-size:13px;background:#171719;gap:5px}.tools small{font-size:10px;color:var(--muted)}.tools b{color:var(--ink);font-weight:400}.primary-actions{display:flex;gap:10px}.primary-actions button{flex:1;min-height:61px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:15px}.primary-actions small{font-size:10px;letter-spacing:2px;color:#bca38e}#hit{background:#332720;border-color:#71503a}#cast,.wide{background:linear-gradient(135deg,#ffb276,#ec8650);border-color:#ffc48e;color:#29180e;font-weight:700;box-shadow:0 3px 18px #ed864522}#cast small{color:#6f3c24}.wide{width:100%;min-height:61px}footer{padding-top:15px}.player{display:flex;align-items:center;gap:12px;font-size:12px}.player>span{color:var(--gold)}.player .bar{flex:1}.player .bar i{background:linear-gradient(90deg,#55877b,#b7d5b3)}.player strong{font-size:12px;font-weight:400}.footer-note{display:flex;justify-content:space-between;font-size:10px;color:#9c8a7c;letter-spacing:1px;margin-top:12px}dialog{color:var(--ink);background:#211c1a;border:1px solid #8d6244;border-radius:18px;width:min(90vw,430px);padding:32px 24px;box-shadow:0 24px 90px #000b}dialog::backdrop{background:#09090bd9;backdrop-filter:blur(5px)}dialog h2{font-size:28px;margin:12px 0 20px}dialog p{font-size:14px;line-height:1.9;color:#c7b9aa}dialog .close{position:absolute;right:10px;top:8px;background:none;border:0;font-size:26px;color:var(--muted)}dialog .wide{margin-top:16px}.rule{border-top:1px solid var(--line);padding:12px 0;font-size:14px;line-height:1.7}.rule b{color:var(--fire)}.result-number{font:64px Georgia,serif;color:var(--fire)}#impact{position:absolute;z-index:2;top:80px;text-shadow:0 2px 10px #000;font:700 32px Georgia,serif;white-space:nowrap;color:#ffe0ae;pointer-events:none}.flash{animation:flash .5s ease-out}.shake{animation:shake .3s}.perfect .arena{box-shadow:inset 0 0 65px #ef9d4333}.danger .mana strong{color:#ff6d63}.stage-1 .portrait svg{filter:hue-rotate(-20deg) drop-shadow(0 0 18px #e63b3555)}.stage-2 .portrait svg{filter:hue-rotate(230deg) drop-shadow(0 0 18px #975aea55)}@keyframes deal{from{transform:translateY(-12px) rotate(-4deg);opacity:0}to{transform:none;opacity:1}}@keyframes flash{from{filter:brightness(2)}to{filter:brightness(1)}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@media(max-width:390px){.game{padding:10px 14px}.title-row{margin:8px 0 12px}h1{font-size:40px}.arena{padding:14px 14px 10px}.portrait{height:148px}.portrait svg{height:165px}.orbit{height:133px;width:133px;top:10px}.two{width:105px;height:105px;top:24px}.table{padding:12px 14px}.journey{font-size:10px;margin-bottom:12px}.card{flex-basis:56px;height:79px}.cards{min-height:100px}.tools button{padding:8px}.intent{font-size:11px}}@media(min-width:760px){.game{margin:28px auto;min-height:0;border:1px solid #52403066;border-radius:22px;background:#181616b3;padding:22px 30px}.portrait{height:195px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
