@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap";:root{--bg-dark:#0f1115;--bg-surface:#ffffff08;--bg-surface-hover:#ffffff0f;--border-light:#ffffff14;--border-focus:#00e5ff;--text-primary:#fff;--text-secondary:#a0a5b1;--text-muted:#6b7280;--accent-neon:#00e5ff;--accent-neon-glow:#00e5ff4d;--danger:#ff3d00;--uncertain-amber:#ffb300;--element-earth:#00c853;--element-fire:#ff3d00;--element-water:#2979ff;--element-air:#00e5ff;--element-neutral:#e0e0e0;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--font-display:"Space Grotesk", system-ui, sans-serif;--font-body:"Outfit", system-ui, sans-serif;--glass-blur:blur(12px);--shadow-glow:0 0 20px var(--accent-neon-glow);--transition-fast:.15s cubic-bezier(.4, 0, .2, 1);--transition-normal:.3s cubic-bezier(.4, 0, .2, 1)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{background-color:var(--bg-dark);color:var(--text-primary);font-family:var(--font-body);-webkit-font-smoothing:antialiased;line-height:1.5;overflow-x:hidden}h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:600;line-height:1.2}button{cursor:pointer;color:inherit;background:0 0;border:none;font-family:inherit}:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px;border-radius:4px}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-dark)}::-webkit-scrollbar-thumb{background:var(--border-light);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.app-container{background-color:var(--bg-dark);width:100vw;height:100vh;display:flex;overflow:hidden}.glass-panel{background:var(--bg-surface);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--border-light);border-radius:12px}@media (width<=767px){.app-container{flex-direction:column;width:100vw;height:100dvh;overflow:hidden auto}}.sidebar{background:#0f1115f7;border-right:1px solid #ffffff12;flex-direction:column;width:112px;min-width:112px;height:100vh;display:flex;overflow:hidden}.class-grid{flex:1;grid-template-columns:1fr 1fr;align-content:start;gap:6px;padding:8px;display:grid;overflow-y:auto}.class-grid::-webkit-scrollbar{width:3px}.class-grid::-webkit-scrollbar-track{background:0 0}.class-grid::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:2px}.class-btn{outline-offset:1px;cursor:pointer;aspect-ratio:1;background:#ffffff0a;border:none;border-radius:6px;outline:2px solid #0000;justify-content:center;align-items:center;padding:0;transition:opacity .12s,outline-color .12s,filter .12s;display:flex;position:relative;overflow:hidden}.class-btn:hover{opacity:1;outline-color:#ffffff73}.class-btn.active{outline-offset:1px;filter:brightness(1.15)saturate(1.1);z-index:2;outline:2px solid #fff}.class-btn.active:after{content:"";pointer-events:none;border-radius:6px;position:absolute;inset:0;box-shadow:0 0 0 3px #000000bf,0 0 16px #fff3}.class-grid:has(.class-btn.active) .class-btn:not(.active):not(:hover){opacity:.45}.class-img{object-fit:cover;width:100%;height:100%;display:block}.class-fallback{width:100%;height:100%;font-family:var(--font-display);color:#000;justify-content:center;align-items:center;font-size:1rem;font-weight:700;display:flex}@media (width<=767px){.sidebar{z-index:20;border-bottom:1px solid #ffffff12;border-right:none;width:100%;min-width:0;height:auto;position:sticky;top:0}.class-grid{scroll-snap-type:x proximity;flex-direction:row;flex:none;gap:8px;padding:10px 12px;display:flex;overflow:auto hidden}.class-grid::-webkit-scrollbar{height:3px}.class-btn{scroll-snap-align:start;flex-shrink:0;width:44px;min-width:44px;height:44px}}.spell-tile{aspect-ratio:1;cursor:pointer;outline-offset:0px;background:#ffffff08;border:none;border-radius:5px;outline:2px solid #0000;justify-content:center;align-items:center;width:100%;padding:0;transition:opacity .12s,box-shadow .12s,outline-color .12s;display:flex;position:relative;overflow:hidden}.spell-tile.ghost{cursor:default;pointer-events:none;background:0 0;outline-color:#0000}.spell-tile.variant-slot:not(.ghost){opacity:.85}.spell-tile:not(.ghost):hover{opacity:1;z-index:2;outline-color:#ffffff73}.spell-tile.selected{outline-offset:1px;z-index:3;filter:brightness(1.15)saturate(1.1);outline:2px solid #fff}.spell-tile.selected:after{content:"";pointer-events:none;border-radius:5px;position:absolute;inset:0;box-shadow:0 0 0 3px #000000bf,0 0 16px #fff3}.spell-grid:has(.spell-tile.selected) .spell-tile:not(.selected):not(:hover):not(.ghost){opacity:.45;transition:opacity .12s}.spell-icon-img{object-fit:cover;width:100%;height:100%;display:block}.spell-abbr{width:100%;height:100%;color:var(--text-muted);background:#ffffff08;justify-content:center;align-items:center;font-size:.6rem;font-weight:700;display:flex}.spell-grid-col{background:#0f1115f2;border-right:1px solid #ffffff12;flex-direction:column;width:240px;min-width:240px;height:100vh;padding:10px 8px 10px 10px;display:flex;overflow:hidden}.spell-grid-label{font-family:var(--font-display);text-transform:uppercase;letter-spacing:2px;color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #ffffff0f;flex-shrink:0;margin-bottom:7px;padding-bottom:7px;font-size:.68rem;font-weight:600;overflow:hidden}.spell-grid{flex-direction:column;gap:4px;display:flex}.spell-row{gap:8px;display:flex}.spell-pair{flex:1;gap:2px;display:flex;position:relative}.spell-pair>:last-child{border-left:1px solid #ffffff0d}.spell-grid-empty{color:var(--text-muted);justify-content:center;align-items:center;padding-top:40px;font-size:.85rem;font-style:italic;display:flex}@media (width<=767px){.spell-grid-col{border-right:none;width:100%;min-width:0;height:auto;padding:12px;overflow:visible}.spell-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;display:grid}.spell-row,.spell-pair{display:contents}}.zsi-svg{width:100%;height:100%;overflow:visible}.zsi-cell{rx:1.5px}.zsi-cell--empty{fill:#ffffff08;stroke:#ffffff0f;stroke-width:.5px}.zsi-cell--hit{fill:var(--accent-neon-glow);stroke:var(--accent-neon);stroke-width:.75px;opacity:.85}.zsi-cell--origin{fill:var(--accent-neon);stroke:var(--text-primary);stroke-width:.75px}.zsi-cell--global{fill:var(--accent-neon-glow);stroke:var(--accent-neon);stroke-width:.5px;opacity:.55}.details-col-outer{background:#0a0b0ffa;border-left:1px solid #ffffff12;flex:1;justify-content:center;align-items:flex-start;min-width:0;height:100vh;display:flex;overflow-y:auto}.details-col-outer::-webkit-scrollbar{width:4px}.details-col-outer::-webkit-scrollbar-track{background:0 0}.details-col-outer::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:2px}.details-col{flex-direction:column;gap:12px;width:100%;max-width:680px;min-height:100vh;padding:18px 20px;display:flex}.details-empty .details-col{color:var(--text-muted);justify-content:center;align-items:center;font-size:.9rem;font-style:italic}.dh-close{display:none}@media (width<=767px){.details-col-outer.details-empty{display:none}.details-col-outer{z-index:50;background:var(--bg-dark);border-left:none;height:100dvh;animation:.22s cubic-bezier(.4,0,.2,1) details-slide-in;position:fixed;inset:0}@media (prefers-reduced-motion:reduce){.details-col-outer{animation:none}}@keyframes details-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.details-col{max-width:none;padding:16px 16px 32px}.dh-close{font-family:var(--font-display);color:var(--text-secondary);cursor:pointer;background:#ffffff0d;border:1px solid #ffffff17;border-radius:6px;align-self:flex-start;align-items:center;gap:4px;min-height:40px;margin-bottom:4px;padding:8px 14px;font-size:.85rem;font-weight:600;display:flex}.dh-close:hover,.dh-close:focus-visible{color:var(--text-primary);background:#ffffff17}}.dh{border-bottom:1px solid #ffffff14;flex-shrink:0;align-items:center;gap:12px;padding-bottom:12px;display:flex}.dh-icon{background:#ffffff0a;border:1px solid #ffffff17;border-radius:8px;justify-content:center;align-items:center;width:52px;min-width:52px;height:52px;display:flex;overflow:hidden}.dh-icon-img{object-fit:contain;width:100%;height:100%;padding:2px}.dh-text{flex-direction:column;gap:5px;min-width:0;display:flex}.dh-title-row{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.dh-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:1.2rem;font-weight:700;overflow:hidden}.dh-variant-badge{color:var(--accent-neon);white-space:nowrap;background:#00e5ff14;border:1px solid #00e5ff38;border-radius:4px;flex-shrink:0;padding:1px 6px;font-size:.7rem}.dh-meta{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.dh-meta-tag{font-size:.8rem;font-weight:600;font-family:var(--font-display);color:var(--text-primary);background:#ffffff12;border:1px solid #ffffff1c;border-radius:4px;padding:1px 8px}.dh-meta-levels{color:var(--text-muted);font-size:.75rem}.dh-desc{color:var(--text-secondary);-webkit-line-clamp:3;-webkit-box-orient:vertical;flex-shrink:0;max-width:68ch;font-size:.875rem;line-height:1.55;display:-webkit-box;overflow:hidden}.grade-tabs{flex-shrink:0;gap:4px;display:flex}.grade-tab{font-size:.78rem;font-weight:600;font-family:var(--font-display);color:var(--text-muted);cursor:pointer;background:#ffffff0a;border:1px solid #ffffff14;border-radius:4px;padding:4px 14px;transition:all .12s}.grade-tab:hover{color:var(--text-primary);background:#ffffff14}.grade-tab.active{color:var(--accent-neon);background:#00e5ff14;border-color:#00e5ff4d}.effects-area{flex-direction:column;flex-shrink:0;gap:5px;display:flex}.effects-header{border-bottom:1px solid #ffffff14;grid-template-columns:1fr 1fr;gap:2px;padding-bottom:4px;display:grid}.eff-col-label{text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted);font-size:.68rem;font-weight:600}.crit-label{color:#ffc83cb3}.effects-rows{flex-direction:column;gap:0;list-style:none;display:flex}.effect-row{border-bottom:1px solid #ffffff0a;grid-template-columns:1fr 1fr;gap:2px;padding:3px 0;display:grid}.effect-row:last-child{border-bottom:none}.eff-cell{align-items:baseline;gap:5px;padding:0 4px;font-size:.875rem;line-height:1.45;display:flex}.cond-wrap{flex-shrink:0;align-items:center;display:inline-flex;position:relative}.cond-icon{color:var(--text-muted);cursor:default;-webkit-user-select:none;user-select:none;font-size:.72rem;line-height:1;transition:color .12s}.cond-wrap:hover .cond-icon{color:var(--text-secondary)}.cond-tooltip{z-index:200;pointer-events:none;background:#1a1d24;border:1px solid #ffffff24;border-radius:7px;flex-direction:column;gap:4px;min-width:180px;max-width:280px;padding:8px 11px;display:none;position:absolute;top:50%;left:auto;right:calc(100% + 6px);transform:translateY(-50%);box-shadow:0 8px 24px #0000008c}.cond-wrap:hover .cond-tooltip{display:flex}.cond-tooltip:before{content:"";border:5px solid #0000;border-left-color:#ffffff24;position:absolute;top:50%;left:100%;transform:translateY(-50%)}.cond-tooltip:after{content:"";border:5px solid #0000;border-left-color:#1a1d24;position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%)}.cond-tooltip-title{text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted);border-bottom:1px solid #ffffff14;margin-bottom:2px;padding-bottom:4px;font-size:.65rem;font-weight:700}.cond-divider{background:#ffffff14;height:1px;margin:3px 0;display:block}.cond-line.cond-disp{color:#ff8c3ce6;font-weight:600}.area-badge{font-size:.65rem;font-family:var(--font-display);color:var(--text-muted);white-space:nowrap;letter-spacing:.3px;cursor:default;-webkit-user-select:none;user-select:none;background:#ffffff0d;border:1px solid #ffffff14;border-radius:3px;flex-shrink:0;align-items:center;gap:4px;padding:1px 6px 1px 3px;font-weight:600;transition:color .12s,background .12s;display:inline-flex}.area-badge:hover{color:var(--text-secondary);background:#ffffff17}.area-badge-icon{flex-shrink:0;width:16px;height:16px}.area-badge-text{line-height:1}.cond-line{white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;line-height:1.4;overflow:hidden}.cond-line.cond-pos{color:#a0c882e6}.cond-line.cond-neg{color:var(--text-muted)}.cond-line.cond-trig{color:#ffc83cd9}.eff-cell.crit-cell.changed>span:first-child{color:#ffd246f2}.eff-empty{color:#ffffff24;font-size:.75rem}.eff-none{color:var(--text-muted);font-size:.875rem;font-style:italic}.chars-area{flex-direction:column;flex-shrink:0;gap:6px;display:flex}.chars-label{text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted);border-bottom:1px solid #ffffff14;padding-bottom:5px;font-size:.68rem;font-weight:600}.chars-grid{grid-template-columns:1fr 1fr;gap:3px 10px;display:grid}.char-row{background:#ffffff08;border:1px solid #ffffff0f;border-radius:5px;justify-content:space-between;align-items:baseline;gap:6px;padding:4px 8px;display:flex}.char-row.char-full{grid-column:1/-1}.char-row.char-accent{background:#ffc83c0d;border-color:#ffc83c26}.char-key{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:.78rem;overflow:hidden}.char-val{font-size:.82rem;font-weight:700;font-family:var(--font-display);color:var(--text-primary);white-space:nowrap;flex-shrink:0}.char-row.char-accent .char-val{color:#ffd246f2}.uncertain-mark{color:var(--uncertain-amber);cursor:help;opacity:.85;margin-left:1px;font-weight:700;display:inline-block}.char-val .uncertain-mark,.cond-line .uncertain-mark{font-size:.9em}.uncertain-legend{color:var(--text-muted);align-items:center;gap:4px;margin:8px 2px 0;font-size:.7rem;display:flex}
