/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid}}}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.static{position:static}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.h-full{height:100%}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}*{box-sizing:border-box}body{color:#e2e8f0;background:#1e293b;margin:0;font-family:system-ui,-apple-system,sans-serif}#root{max-width:1500px;margin:0 auto;padding:12px}.setup{background:#0f172a;border:1px solid #334155;border-radius:10px;max-width:520px;margin:48px auto;padding:24px}.setup-title{text-align:center;color:#f1f5f9;margin-bottom:8px;font-size:26px}.setup-sub{text-align:center;opacity:.6;margin-bottom:24px;font-size:13px}.setup-row{align-items:center;gap:10px;margin:14px 0;display:flex}.setup-row label{opacity:.85;width:110px;font-size:13px}.setup-row select,.setup-row input{color:#e2e8f0;background:#1e293b;border:1px solid #475569;border-radius:6px;flex:1;padding:6px 8px;font-size:13px}.setup-check{flex-wrap:wrap;gap:6px;display:flex}.setup-check label{cursor:pointer;background:#1e293b;border:1px solid #475569;border-radius:6px;align-items:center;gap:4px;width:auto;padding:4px 8px;font-size:12px;display:flex}.setup-start{color:#fff;cursor:pointer;background:linear-gradient(135deg,#3b82f6,#2563eb);border:none;border-radius:8px;width:100%;margin-top:20px;padding:12px;font-size:16px;font-weight:700;transition:filter .2s,transform .2s}.setup-start:hover{filter:brightness(1.1);transform:translateY(-1px)}.setup-error{color:#f87171;text-align:center;margin-top:10px;font-size:13px}.battle-header{justify-content:space-between;align-items:center;margin-bottom:12px;padding:8px 0;display:flex}.battle-title{margin:0;font-size:24px;font-weight:700}.battle-meta{opacity:.8;align-items:center;gap:12px;font-size:14px;display:flex}.battle-main{flex-wrap:wrap;align-items:flex-start;gap:16px;display:flex}.battle-board{flex:0 0 min(62vw,620px);position:relative}.battle-sidebar{flex-direction:column;flex:1;gap:12px;min-width:260px;display:flex}.turn-callout{background:linear-gradient(90deg,#05966940,#0596690d);border:1px solid #059669;border-radius:8px;flex-basis:100%;align-items:center;gap:10px;padding:8px 14px;animation:.3s ease-out callout-in;display:flex}.turn-callout-title{color:#34d399;letter-spacing:.5px;white-space:nowrap;font-size:14px;font-weight:800}.turn-callout-hint{opacity:.9;font-size:13px}.turn-callout-hint b{color:#22d3ee}@keyframes callout-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.battle-btn{color:#e2e8f0;cursor:pointer;background:#334155;border:1px solid #475569;border-radius:6px;padding:6px 12px;font-size:13px;transition:filter .15s}.battle-btn:hover{filter:brightness(1.15)}.battle-btn:disabled{opacity:.5;cursor:not-allowed}.board{aspect-ratio:1;background:#0f172a;border:2px solid #334155;border-radius:6px;grid-template-rows:repeat(10,1fr);grid-template-columns:repeat(10,1fr);gap:0;display:grid;position:relative;overflow:hidden;box-shadow:0 8px 24px #0006}.board-cell{cursor:default;position:relative}.board-cell--clickable{cursor:pointer}.board-cell--clickable:hover:after{content:"";background:#ffffff1f;position:absolute;top:0;right:0;bottom:0;left:0}.board-cell--wall-n:before,.board-cell--wall-s:after,.board-cell--wall-e:before,.board-cell--wall-w:after{content:"";z-index:3;background:#0b1220;position:absolute;box-shadow:0 0 2px #0009}.board-cell--wall-n:before{height:4px;top:0;left:0;right:0}.board-cell--wall-s:after{height:4px;bottom:0;left:0;right:0}.board-cell--wall-e:before{width:4px;top:0;bottom:0;right:0}.board-cell--wall-w:after{width:4px;top:0;bottom:0;left:0}.board-cell--door-n:before,.board-cell--door-s:after,.board-cell--door-e:before,.board-cell--door-w:after{content:"";z-index:3;background:#b45309;position:absolute}.board-cell--door-n:before{height:5px;top:0;left:20%;right:20%}.board-cell--door-s:after{height:5px;bottom:0;left:20%;right:20%}.board-cell--door-e:before{width:5px;top:20%;bottom:20%;right:0}.board-cell--door-w:after{width:5px;top:20%;bottom:20%;left:0}.board-cell--home{background-color:#facc1514}.board-cell--hl-move{cursor:pointer;background-color:#22d3ee2e;animation:1s ease-in-out infinite hl-pulse;box-shadow:inset 0 0 0 3px #22d3ee}.board-cell--hl-cast{cursor:pointer;background-color:#a855f72e;box-shadow:inset 0 0 0 3px #a855f7}.board-cell--hl-target{cursor:pointer;background-color:#facc152e;box-shadow:inset 0 0 0 3px #facc15}.board-cell--hl-current{box-shadow:inset 0 0 0 3px #f8fafc}@keyframes hl-pulse{0%,to{box-shadow:inset 0 0 0 3px #22d3ee}50%{background-color:#22d3ee52;box-shadow:inset 0 0 0 7px #22d3ee}}.board-deco{z-index:4;pointer-events:none;font-size:11px;line-height:1;position:absolute}.board-deco--treasure{color:#f59e0b;text-shadow:0 0 3px #000;bottom:2px;left:3px}.board-deco--object{color:#94a3b8;top:2px;left:3px}.token-layer{pointer-events:none;z-index:5;position:absolute;top:0;right:0;bottom:0;left:0}.token{color:#fff;z-index:5;border:2px solid #ffffffd9;border-radius:50%;justify-content:center;align-items:center;width:9%;height:9%;margin-top:-4.5%;margin-left:-4.5%;font-size:12px;font-weight:700;transition:left .35s cubic-bezier(.25,.8,.4,1),top .35s cubic-bezier(.25,.8,.4,1);display:flex;position:absolute;box-shadow:0 2px 6px #00000080}.token--blue{background:#3b82f6}.token--red{background:#ef4444}.token--yellow{background:#eab308}.token--green{background:#22c55e}.token--current{box-shadow:0 0 0 3px #facc15,0 2px 6px #00000080}.token--dead{opacity:.35;filter:grayscale()}.token-badge{color:#000;z-index:6;background:#fbbf24;border:1px solid #000;border-radius:50%;justify-content:center;align-items:center;width:15px;height:15px;font-size:10px;display:flex;position:absolute;top:-6px;right:-6px}.player-panels{flex-direction:column;gap:8px;display:flex}.player-panel{background:#0f172a;border:1px solid #334155;border-left-width:4px;border-radius:8px;padding:12px;transition:box-shadow .3s}.player-panel.blue-border{border-left-color:#3b82f6}.player-panel.red-border{border-left-color:#ef4444}.player-panel.yellow-border{border-left-color:#eab308}.player-panel.green-border{border-left-color:#22c55e}.player-panel--active{box-shadow:0 0 14px #facc1559}.player-panel--dead{opacity:.45}.player-panel--turn{outline-offset:-2px;outline:2px solid #facc15b3}.player-row{align-items:center;gap:8px;margin-bottom:8px;display:flex}.player-dot{border-radius:50%;width:12px;height:12px}.player-name{font-size:13px;font-weight:700}.player-badge{background:#334155;border-radius:4px;margin-left:2px;padding:1px 6px;font-size:10px}.player-badge--stun{background:#d97706}.player-badge--transform{background:#7c3aed}.player-badge--treasure{background:#b45309}.player-badge--boost{background:#0284c7}.player-life-bar{background:#334155;border-radius:4px;height:8px;margin:6px 0;overflow:hidden}.player-life-fill{background:linear-gradient(90deg,#ef4444,#f59e0b,#22c55e);border-radius:4px;height:100%;transition:width .4s}.player-meta{opacity:.85;justify-content:space-between;font-size:11px;display:flex}.player-mp-dots{gap:3px;display:flex}.mp-dot{background:#475569;border-radius:50%;width:8px;height:8px}.mp-dot--on{background:#60a5fa}.player-vp{color:#fbbf24;font-weight:700}.player-effects{opacity:.7;margin-top:4px;font-size:10px}.hand{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:12px}.hand-label{opacity:.7;margin-bottom:8px;font-size:12px;font-weight:700}.hand-cards{flex-wrap:wrap;gap:8px;display:flex}.card{cursor:pointer;background:linear-gradient(150deg,#1e293b,#0f172a);border:2px solid #475569;border-radius:10px;width:148px;height:198px;padding:10px;font-size:11px;transition:transform .2s,box-shadow .2s,border-color .2s;position:relative}.card:hover{z-index:10;transform:translateY(-8px);box-shadow:0 10px 20px #0006}.card-selected{z-index:11;transform:translateY(-12px);box-shadow:0 12px 24px #facc1559;border-color:#facc15!important}.card-school-bar{border-radius:2px;height:4px;margin-bottom:6px}.card-energy{color:#fff;z-index:10;background:#2563eb;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;font-size:13px;font-weight:700;display:flex;position:absolute;top:8px;right:8px;box-shadow:0 0 0 2px #ffffff40}.card-name{color:#fff;margin-top:6px;font-size:13px;font-weight:700}.card-school{opacity:.65;text-transform:uppercase;margin-top:2px;font-size:10px}.card-text{opacity:.9;-webkit-line-clamp:5;-webkit-box-orient:vertical;margin-top:6px;font-size:10px;line-height:1.3;display:-webkit-box;overflow:hidden}.card-type{opacity:.6;text-transform:uppercase;font-size:9px;position:absolute;bottom:6px;left:8px}.card-img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;border-radius:8px;width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0}.card-name-overlay{color:#fff;background:linear-gradient(#0000,#000000d9);border-radius:0 0 8px 8px;padding:10px 8px 6px;font-size:11px;font-weight:700;position:absolute;bottom:0;left:0;right:0}.card:after{content:attr(data-tooltip);color:#e2e8f0;white-space:pre-wrap;opacity:0;pointer-events:none;z-index:60;background:#0f172a;border:1px solid #475569;border-radius:8px;width:260px;max-height:300px;padding:10px 12px;font-size:11px;line-height:1.45;transition:opacity .15s;position:absolute;bottom:calc(100% + 10px);left:50%;overflow-y:auto;transform:translate(-50%);box-shadow:0 8px 24px #0000008c}.card:hover:after{opacity:1}.log-panel{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:12px}.log-title{opacity:.7;margin-bottom:8px;font-size:12px;font-weight:700}.log-content{height:150px;font-size:11px;overflow-y:auto}.log-line{opacity:.82;border-bottom:1px solid #3341554d;padding:2px 0}.log-line--system{color:#94a3b8}.vfx-float{z-index:20;pointer-events:none;font-size:14px;font-weight:700;animation:.9s ease-out forwards float-up;position:absolute}.vfx-float--dmg{color:#f87171}.vfx-float--heal{color:#4ade80}.vfx-float--vp{color:#fbbf24}@keyframes float-up{0%{opacity:0;transform:translateY(0)}15%{opacity:1}to{opacity:0;transform:translateY(-28px)}}.vfx-flash{animation:.5s ease-out cell-flash}@keyframes cell-flash{0%{box-shadow:inset 0 0 0 4px #ef4444}to{box-shadow:inset 0 0 #0000}}.vfx-banner{z-index:100;background:#0f172aeb;border:1px solid #475569;border-radius:8px;padding:10px 20px;font-weight:700;animation:.3s ease-out banner-in;position:fixed;top:20px;left:50%;transform:translate(-50%);box-shadow:0 6px 20px #00000080}.vfx-banner--counter{background:#1e1236f2;border-color:#7c3aed;animation:1.2s ease-in-out infinite counter-pulse;box-shadow:0 0 0 3px #7c3aed40,0 6px 20px #00000080}@keyframes counter-pulse{0%,to{box-shadow:0 0 0 3px #7c3aed40,0 6px 20px #00000080}50%{box-shadow:0 0 0 6px #7c3aed73,0 6px 20px #00000080}}.status-bar{opacity:.85;align-items:center;gap:8px;font-size:13px;display:flex}.phase-chip{background:#334155;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:700}.phase-chip--move-cast{background:#1d4ed8}.phase-chip--discard-draw{background:#7c3aed}.phase-chip--time-passes{background:#059669}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
