.rules-page{width:min(980px,100%);margin:0 auto}.rules-page .page-head{margin-bottom:18px}.rules-page .page-head .h1{font-size:clamp(25px,3vw,34px)}.rules-tome{overflow:hidden}.rules-tabs{border-bottom:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7%);background:#060a1880;gap:6px;padding:14px 20px 0;display:flex}.rules-tabs button{font-family:var(--font-display);color:hsl(calc(var(--hue) - 5.3) 21.2% 74.1%);border:1px solid hsl(calc(var(--hue) - 2) 24.3% 36.3%);background:linear-gradient(hsl(calc(var(--hue) - 4.9) 29.9% 22.9%), hsl(calc(var(--hue) - 4.6) 43.3% 13.1%));border-bottom:0;border-radius:8px 8px 0 0;align-items:center;gap:8px;padding:13px 20px;font-size:12px;display:flex}.rules-tabs button[aria-pressed=true]{color:hsl(calc(var(--hue2) - 1.5) 80.0% 80.4%);border-color:hsl(calc(var(--hue2) - 7.3) 37.6% 51.0%);background:linear-gradient(hsl(calc(var(--hue2) - 7.7) 28.7% 25.3%), hsl(calc(var(--hue) - 3.5) 25.0% 18.8%));box-shadow:inset 0 3px hsl(calc(var(--hue2) - 5.8) 46.7% 58.8%)}.rules-workbench{grid-template-columns:195px minmax(0,1fr);display:grid}.rules-roster{border-right:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314);background:hsl(calc(var(--hue) - 2.8) 61.0% 8.0% / .333);flex-direction:column;align-items:stretch;gap:8px;padding:20px 12px;display:flex}.rules-roster>button{color:hsl(calc(var(--hue) - 8.2) 22.3% 76.3%);font-family:var(--font-display);text-align:left;border:1px solid #0000;border-radius:8px;align-items:center;gap:12px;padding:7px;font-size:11px;display:flex}.rules-roster>button:hover{background:#ffffff06}.rules-roster>button.chosen{color:hsl(calc(var(--hue2) - 3.7) 100.0% 81.8%);background:linear-gradient(90deg, hsl(calc(var(--hue2) - 7.2) 39.5% 36.3% / .2), hsl(calc(var(--hue) - 3.8) 37.0% 14.3% / .502));border-color:hsl(calc(var(--hue2) - 7.3) 28.5% 48.2%)}.rules-roster-art{border:1px solid hsl(calc(var(--hue2) - 5) 10.1% 40.6%);background:hsl(calc(var(--hue) - 4.6) 43.3% 13.1%);border-radius:5px;flex:none;width:40px;height:46px;overflow:hidden}.rules-roster-art img,.rules-selected-art img{object-fit:cover;object-position:center 20%;width:100%;height:100%}.rules-roster .rules-new{font-family:var(--font-ui);color:hsl(calc(var(--hue) - 11) 25.0% 71.8%);margin-top:8px;font-size:11px}.rules-add{flex-wrap:wrap;gap:6px;display:flex}.rules-add .input{width:100%;min-width:0}.rules-character{min-width:0;padding:22px 30px 18px}.rules-character-heading{align-items:center;gap:16px;margin-bottom:20px;display:flex}.rules-selected-art{border:2px solid hsl(calc(var(--hue2) - 7.3) 40.6% 58.4%);background:hsl(calc(var(--hue) - 4.6) 43.3% 13.1%);width:160px;height:200px;box-shadow:0 0 0 3px hsl(calc(var(--hue) - 1) 57.1% 8.2%), 0 5px 12px #0004;border-radius:7px;overflow:hidden}.rules-character-heading small{color:hsl(calc(var(--hue) - 9.2) 22.6% 73.1%);font-size:11px}.rules-character-heading h2{overflow-wrap:anywhere;font-family:var(--font-display);color:hsl(calc(var(--hue2) - 4.1) 71.7% 82.0%);margin:4px 0 0;font-size:25px}.rules-section+.rules-section{border-top:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314);margin-top:22px;padding-top:18px}.rules-section-title h2,.rules-section-title h3{color:hsl(calc(var(--hue2) - 5.7) 59.1% 81.8%);font-family:var(--font-display);margin:0;font-size:15px}.rules-section-title p{color:hsl(calc(var(--hue) - 8.3) 24.1% 71.6%);margin:6px 0 16px;font-size:13px}.rules-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 20px;max-width:540px;display:grid}.rule-counter{flex-direction:column;gap:8px;min-width:0;display:flex}.rule-counter-name{color:hsl(calc(var(--hue2) - 5.4) 38.5% 74.5%);align-items:center;gap:7px;font-size:13px;display:flex}.rule-counter-name svg{color:hsl(calc(var(--hue2) - 3.3) 30.9% 62.5%);flex:none}.rule-counter-controls{align-items:center;gap:5px;width:max-content;display:flex}.rule-counter-controls>button{border:1px solid hsl(calc(var(--hue) - 6) 16.5% 46.5%);background:linear-gradient(hsl(calc(var(--hue) - 8.7) 24.5% 29.6%), hsl(calc(var(--hue) - 7.8) 37.9% 17.1%));width:27px;height:30px;color:hsl(calc(var(--hue2) - 3.1) 60% 79.4%);box-shadow:0 2px hsl(calc(var(--hue) - 6) 60% 6.9%);border-radius:5px;place-items:center;font-size:17px;display:grid}.rule-counter-controls>button:hover:not(:disabled){border-color:hsl(calc(var(--hue2) - 8.2) 38.1% 61.4%)}.rule-counter-controls>button:disabled{opacity:.35;cursor:default}.rule-counter-controls .field{width:58px;margin:0}.rule-counter-controls .field>span{display:none}.rule-counter-controls .input{border:1px solid hsl(calc(var(--hue2) - 6.1) 23.5% 47.6%);background:radial-gradient(ellipse at top, hsl(calc(var(--hue) - 7.8) 25.2% 25.7%), hsl(calc(var(--hue) - 8.8) 47.5% 12.0%));text-align:center;width:58px;min-height:40px;color:hsl(calc(var(--hue2) - 3.6) 80.4% 82.0%);font-family:var(--font-display);box-shadow:inset 0 0 0 2px hsl(calc(var(--hue) - 3.5) 60% 7.8% / .4);appearance:textfield;border-radius:7px;padding:5px 2px;font-size:22px;font-weight:700}.rule-counter-controls input::-webkit-inner-spin-button{appearance:none}.rule-counter>small{color:hsl(calc(var(--hue) - 9.7) 22.9% 67.5%);max-width:200px;font-size:12px;line-height:1.5}.rules-reward-counters{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:430px;display:grid}.rules-disclosure{color:hsl(calc(var(--hue) - 8.9) 23.9% 72.2%);margin-top:16px;font-size:12px}.rules-disclosure>summary{cursor:pointer;color:hsl(calc(var(--hue) - 9.1) 22.8% 77.6%);padding:7px 0}.rules-disclosure>p{max-width:420px;font-size:11px;line-height:1.5}.rules-other{gap:12px;padding:10px 0;display:grid}.rules-other-row{align-items:center;gap:12px;display:flex}.rules-other-row .rule-counter{flex-direction:row;align-items:center;gap:14px}.rules-other-row .rule-counter-name{width:150px}.rules-effect-add{align-items:center;gap:8px;display:flex}.rules-effect-add .select{width:210px;max-width:100%}.rules-levels{gap:2px;display:grid}.rules-level{border-bottom:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .188);grid-template-columns:100px 1fr 1fr;align-items:center;gap:14px;min-height:60px;padding:6px 0;display:grid}.rules-level>small{color:hsl(calc(var(--hue) - 10.6) 22.8% 66.5%);grid-column:span 2}.rules-level input[type=checkbox]{accent-color:hsl(calc(var(--hue2) - 5.4) 45.3% 60.6%)}.rules-level .rule-counter{gap:4px}.rules-level .rule-counter-name{font-size:10px}.rules-level .rule-counter-controls .field,.rules-level .rule-counter-controls .input{width:42px}.rules-level .rule-counter-controls .input{min-height:30px;font-size:17px}.rules-level .rule-counter-controls>button{width:23px;height:25px}.rules-foot{border-top:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314);background:hsl(calc(var(--hue) - 3.1) 60.9% 9.0% / .6);color:hsl(calc(var(--hue) - 9.7) 21.3% 65.1%);justify-content:space-between;gap:10px;padding:12px 22px;font-size:10px;display:flex}.rules-growth{padding:32px 38px 38px}.rules-growth-counters{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 48px;max-width:610px;margin:30px auto 12px;display:grid}.rules-growth-counters .rule-counter{text-align:center;align-items:center}.rules-growth-counters .rule-counter-name{font-family:var(--font-display);flex-direction:column;gap:10px}.rules-growth-counters .rule-counter-controls .input{width:76px;min-height:64px;font-size:32px}.rules-growth-counters .rule-counter-controls .field{width:76px}.rules-growth-counters .rule-counter-controls{gap:10px}.rules-try-pickers{grid-template-columns:1fr 1fr;gap:16px;max-width:480px;display:grid}.rules-combined{gap:12px;padding:20px 0;display:grid}.rules-combined>div{gap:5px;display:grid}.rules-combined b{font-family:var(--font-display);color:hsl(calc(var(--hue2) - 2.8) 53.6% 72.9%);font-size:13px}.rules-combined span{color:hsl(calc(var(--hue) - 19.7) 28.3% 71.6%);font-size:11px}.rules-preview-heading{font-family:var(--font-display);color:hsl(calc(var(--hue2) - 2.8) 60.4% 79.2%);font-size:15px}.rules-level-picker{flex-wrap:wrap;gap:6px;margin-bottom:18px;display:flex}.rules-level-picker button{border:1px solid hsl(calc(var(--hue) - 9.2) 20.0% 43.1%);width:32px;height:32px;color:hsl(calc(var(--hue) - 11.7) 25.5% 73.1%);background:hsl(calc(var(--hue) - 7.7) 46.2% 15.3%);border-radius:5px}.rules-level-picker button[aria-pressed=true]{color:hsl(calc(var(--hue2) - 2.3) 80.6% 79.8%);background:hsl(calc(var(--hue2) - 10.9) 27.8% 31.0%);border-color:hsl(calc(var(--hue2) - 5.2) 50.3% 62.9%)}.rules-breakdown,.rules-table{border-collapse:collapse;text-align:left;width:100%;font-size:12px}.rules-breakdown th,.rules-breakdown td,.rules-table th,.rules-table td{border-bottom:1px solid hsl(calc(var(--hue2) - 7.3) 28.7% 42.4% / .251);padding:10px 8px}.rules-breakdown tbody th{color:hsl(calc(var(--hue) - 8.3) 26.3% 73.9%);font-weight:400}.rules-breakdown td,.rules-table td:nth-last-child(-n+2){color:hsl(calc(var(--hue2) - 1.4) 63.5% 77.5%)}.rules-breakdown tfoot{font-family:var(--font-display);color:hsl(calc(var(--hue2) - .4) 76.5% 80.0%);background:hsl(calc(var(--hue2) - 3.7) 41.7% 50.2% / .082)}.sheet-stat-growth{padding:8px}.sheet-stat-growth .row{border-bottom:1px solid var(--line);padding:10px 0}@media (max-width:720px){.rules-workbench{grid-template-columns:125px minmax(0,1fr)}.rules-roster{padding:16px 8px}.rules-roster>button{gap:6px;padding:5px;font-size:9px}.rules-roster-art{width:30px;height:36px}.rules-character{padding:20px 18px}.rules-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rules-character-heading h2{font-size:20px}.rules-level{grid-template-columns:80px 1fr 1fr;gap:5px}.rules-level .rule-counter-controls{gap:2px}}@media (max-width:520px){.rules-tabs{gap:4px;padding:10px 8px 0}.rules-tabs button{flex:1;justify-content:center;gap:5px;padding:11px 5px;font-size:10px}.rules-tabs svg{width:14px}.rules-workbench{grid-template-columns:1fr}.rules-roster{border-right:0;border-bottom:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314);flex-direction:row;gap:7px;padding:12px;overflow-x:auto}.rules-roster>button{text-align:center;flex-direction:column;flex:none;width:78px;min-height:75px;padding:6px 3px;font-size:9px}.rules-roster-art{width:35px;height:40px}.rules-roster .rules-new{justify-content:center;width:60px;margin:0}.rules-add{flex:none;width:140px}.rules-character{padding:18px}.rules-character-heading{margin-bottom:18px}.rules-character-heading h2{font-size:22px}.rules-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 15px}.rules-reward-counters{gap:14px}.rules-foot{padding:10px 14px;font-size:9px}.rules-growth{padding:24px 16px}.rules-growth-counters{gap:28px 16px}.rules-growth-counters .rule-counter-name{font-size:11px}.rules-level{grid-template-columns:75px 1fr 1fr}.rules-other-row .rule-counter{gap:8px}.rules-other-row .rule-counter-name{width:110px}.rules-other-row .rule-counter-controls{gap:3px}.rules-page .page-head{align-items:flex-start;gap:12px}.rules-page .page-head .h1{font-size:23px}.rules-page .page-head>.row{gap:6px!important}}.rules-character-heading>div{flex:1;min-width:0}.rules-character-heading .rules-selected-art{cursor:pointer;flex:none;position:relative}.rules-selected-art>span{width:24px;height:23px;color:hsl(calc(var(--hue2) - 5) 71.4% 79.4%);background:hsl(calc(var(--hue) - 4.6) 56.9% 10.0% / .91);border-top:1px solid hsl(calc(var(--hue2) - 6.6) 26.0% 48.2%);border-left:1px solid hsl(calc(var(--hue2) - 6.6) 26.0% 48.2%);border-radius:5px 0 0;place-items:center;display:grid;position:absolute;bottom:0;right:0}.rules-change-art{color:hsl(calc(var(--hue) - 11.5) 31.7% 75.3%);align-items:center;gap:5px;margin-top:7px;font-size:11px;display:inline-flex}.rules-change-art:hover{color:hsl(calc(var(--hue2) - 5) 71.4% 79.4%)}.rules-reset{color:hsl(calc(var(--hue) - 11.7) 25.9% 73.5%);border:1px solid hsl(calc(var(--hue) - 7.7) 16.4% 43.1%);background:hsl(calc(var(--hue) - 8) 53.6% 11.0% / .533);border-radius:6px;flex:none;justify-content:center;align-items:center;gap:6px;padding:7px 9px;font-size:12px;display:inline-flex}.rules-reset:hover{color:hsl(calc(var(--hue2) - 5.3) 57.3% 79.8%);border-color:hsl(calc(var(--hue2) - 4.7) 31.1% 52.2%)}.rules-growth-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.modal.rules-try{width:min(780px,100%)}.rules-try-pickers{max-width:none;margin-bottom:22px}.rules-try-origin{align-items:center;gap:12px;min-width:0;display:flex}.rules-try-origin .field{flex:1;min-width:0;margin:0}.rules-preview-art{border:1px solid hsl(calc(var(--hue2) - 4.2) 31.6% 55.3%);background:hsl(calc(var(--hue) - 4.6) 43.3% 13.1%);border-radius:6px;flex:none;width:48px;height:60px;overflow:hidden}.rules-preview-art img{object-fit:cover;object-position:center 20%;width:100%;height:100%}.rules-preview-bonuses{border-bottom:1px solid hsl(calc(var(--hue2) - 6.1) 30% 46.5% / .267);padding:0 0 18px}.rules-preview-bonuses>h3{margin:0 0 18px}.rules-preview-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 20px;display:grid}.rules-preview-stat{flex-direction:column;align-items:center;gap:10px;min-width:0;display:flex}.rules-preview-stat h4{color:hsl(calc(var(--hue) - 8.5) 29.6% 89.4%);margin:0;font-size:14px;font-weight:500}.rules-preview-stat>strong{width:70px;height:64px;font-family:var(--font-display);color:hsl(calc(var(--hue) - 8.9) 20.7% 67.8%);background:radial-gradient(ellipse at top, hsl(calc(var(--hue) - 10.9) 32.3% 24.9%), hsl(calc(var(--hue) - 6.8) 50.0% 10.2%));border:2px solid hsl(calc(var(--hue) - 10.6) 18.0% 42.5%);box-shadow:inset 0 0 0 3px hsl(calc(var(--hue) - 6.8) 54.2% 9.4%);border-radius:10px 10px 22px 22px;place-items:center;font-size:31px;display:grid}.rules-preview-stat.boosted>strong{color:hsl(calc(var(--hue2) - 1.4) 80.0% 78.4%);border-color:hsl(calc(var(--hue2) - 4) 35.0% 54.1%)}.rules-preview-stat.penalty>strong{color:#e9b4a8;border-color:#b1857b}.rules-bonus-sources{gap:5px;width:100%;max-width:190px;min-height:38px;font-size:12px;display:grid}.rules-bonus-sources>div{justify-content:space-between;align-items:start;gap:8px;display:flex}.rules-bonus-sources>div>span{overflow-wrap:anywhere}.rules-bonus-sources .race{color:hsl(calc(var(--hue) - 23.5) 42.9% 78.0%)}.rules-bonus-sources .class{color:hsl(calc(var(--hue2) - 6.3) 47.0% 74.1%)}.rules-bonus-sources small{text-align:center;color:hsl(calc(var(--hue) - 10.9) 20.6% 61.0%);font-size:12px}.rules-preview-other{margin:16px 0}.rules-preview-other h4{color:hsl(calc(var(--hue) - 14) 28.3% 79.2%);margin:0 0 9px;font-size:13px}.rules-preview-other>div{flex-wrap:wrap;gap:8px;display:flex}.rules-preview-other span{border:1px solid hsl(calc(var(--hue2) - 2.4) 17.7% 34.3%);background:hsl(calc(var(--hue) - 6.7) 56.9% 10.0% / .467);color:hsl(calc(var(--hue) - 9.6) 28.6% 80.8%);border-radius:6px;align-items:center;gap:7px;padding:6px 10px;font-size:12px;display:inline-flex}.rules-preview-other b{color:hsl(calc(var(--hue2) - 4.5) 69.7% 76.7%);font-size:16px}.rules-try .rules-preview-heading{margin-top:22px}@media (max-width:520px){.rules-try-pickers{grid-template-columns:1fr;gap:12px}.rules-preview-art{width:40px;height:48px}.rules-preview-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}.rules-preview-stat h4{font-size:13px}.rules-bonus-sources{font-size:12px}.rules-character-heading{gap:12px}.rules-character-heading .rules-reset{padding:6px;font-size:11px}}@media (min-width:521px) and (max-width:720px){.rules-selected-art{width:120px;height:150px}}@media (max-width:520px){.rules-character-heading{grid-template-columns:128px minmax(0,1fr);gap:12px 16px;display:grid}.rules-character-heading .rules-selected-art{grid-row:span 2;width:128px;height:160px}.rules-character-heading>div{align-self:end}.rules-character-heading .rules-reset{grid-column:2;place-self:start}}.rules-page{width:min(1480px,100%)}.rules-level-editor{border-left:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314);background:hsl(calc(var(--hue) - 2.8) 61.0% 8.0% / .2);min-width:0;padding:22px 26px 16px}.rules-level-editor .rules-section-title p{margin:6px 0 12px}.rules-level-columns{border-bottom:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .376);color:hsl(calc(var(--hue) - 8.3) 24.1% 71.6%);font-family:var(--font-display);text-transform:uppercase;letter-spacing:.06em;grid-template-columns:100px 1fr 1fr;gap:14px;padding-bottom:6px;font-size:10px;display:grid}.rules-level-editor .rules-level{height:46px;min-height:0;padding:2px 0}.rules-level-editor .rules-level label{color:hsl(calc(var(--hue2) - 5.4) 38.5% 74.5%);white-space:nowrap;font-size:12px}.rules-level-editor .rules-level .rule-counter{flex-direction:row}.rules-level-editor .rules-level .rule-counter-name{display:none}.rules-level-editor .rules-level .rule-counter-controls .input{min-height:28px;font-size:15px}.rules-level-value{color:hsl(calc(var(--hue) - 8.7) 16.9% 57.1%);font-family:var(--font-display);font-size:13px}.rules-save-status{color:#9fd1a8;align-items:center;gap:6px;font-size:12px;display:inline-flex}.rules-save-status.saving{color:hsl(calc(var(--hue2) - 1.3) 35.3% 67.3%)}.rules-save-status.saving svg{animation:1s linear infinite rules-spin}.rules-save-status.error{color:#e9a79b}@keyframes rules-spin{to{transform:rotate(360deg)}}.rules-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(300px,380px);min-height:520px;display:grid}.rules-ledger{border-right:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314);min-width:0;padding:18px 20px}.rules-ledger>header{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px;display:flex}.rules-ledger h2,.rules-combination h2{color:hsl(calc(var(--hue2) - 5.7) 59.1% 81.8%);font-family:var(--font-display);margin:0;font-size:15px}.rules-ledger header small{color:hsl(calc(var(--hue) - 8.7) 19.8% 63.3%);font-size:11px}.rules-ledger-list{gap:7px;display:grid}.rules-ledger-entry{border:1px solid hsl(calc(var(--hue) - 2) 24.3% 36.3%);background:linear-gradient(hsl(calc(var(--hue) - 4.8) 37.2% 16.9%), hsl(calc(var(--hue) - 6) 42.9% 11.0%));border-radius:8px;align-items:stretch;display:flex;overflow:hidden}.rules-ledger-entry.chosen{border-color:hsl(calc(var(--hue2) - 5.9) 43.8% 58.8%);background:linear-gradient(90deg, hsl(calc(var(--hue2) - 11.3) 29.3% 32.2% / .4), hsl(calc(var(--hue) - 3.8) 37.0% 14.3%));box-shadow:inset 3px 0 hsl(calc(var(--hue2) - 5.8) 46.7% 58.8%)}.rules-ledger-select{text-align:left;min-width:0;color:inherit;flex:1;align-items:center;gap:12px;padding:7px 10px;display:flex}.rules-ledger-info{gap:3px;min-width:0;display:grid}.rules-ledger-info>b{font-family:var(--font-display);color:hsl(calc(var(--hue2) - 4.1) 71.7% 82.0%);font-size:12px}.rules-ledger-bonuses{color:hsl(calc(var(--hue) - 11.2) 28.4% 78.6%);flex-wrap:wrap;gap:4px 8px;font-size:11px;display:flex}.rules-ledger-bonuses em{color:hsl(calc(var(--hue2) - 2.1) 76.5% 76.7%);margin-right:3px;font-style:normal;font-weight:700}.rules-ledger-bonuses .penalty em{color:#e9a79b}.rules-ledger-rewards{color:hsl(calc(var(--hue) - 8.7) 19.8% 63.3%);font-size:10px}.rules-ledger-edit{width:32px;color:hsl(calc(var(--hue) - 10.3) 21.9% 66.9%);border-left:1px solid hsl(calc(var(--hue) - 2) 24.3% 36.3%);flex:none;place-items:center;display:grid}.rules-ledger-edit:hover{color:hsl(calc(var(--hue2) - 5) 71.4% 79.4%);background:#ffffff0a}.rules-combination{background:hsl(calc(var(--hue) - 2.8) 61.0% 8.0% / .267);min-width:0;padding:18px 22px}.rules-combination-portraits{gap:14px;margin:12px 0 16px;display:flex}.rules-combination-portraits>div{font-family:var(--font-display);color:hsl(calc(var(--hue2) - 3.3) 56.1% 75.9%);align-items:center;gap:8px;font-size:12px;display:flex}.rules-combination .rules-preview-stats{gap:14px 10px}.rules-combination .rules-preview-stat>strong{width:58px;height:50px;font-size:24px}.rules-combination .rules-preview-bonuses{padding-bottom:12px}.rules-combination .rules-preview-bonuses>h3{margin-bottom:12px;font-size:13px}.rules-combination-rewards{color:hsl(calc(var(--hue) - 11.2) 28.4% 78.6%);justify-content:space-between;align-items:center;gap:10px;margin:14px 0;font-size:12px;display:flex}.rules-combination-rewards>div{gap:14px;display:flex}.rules-combination-rewards b{text-align:center;font-family:var(--font-display);color:hsl(calc(var(--hue2) - .4) 76.5% 80.0%);font-size:22px;display:grid}.rules-combination-rewards small{font-family:var(--font-ui);color:hsl(calc(var(--hue) - 8.7) 19.8% 63.3%);font-size:10px;font-weight:400}.rules-combination-explore{color:hsl(calc(var(--hue) - 11.5) 31.7% 75.3%);align-items:center;gap:6px;font-size:12px;display:inline-flex}.rules-combination-explore:hover{color:hsl(calc(var(--hue2) - 5) 71.4% 79.4%)}@media (max-width:1100px){.rules-page[data-rule-tab=races] .rules-workbench,.rules-page[data-rule-tab=classes] .rules-workbench{grid-template-columns:195px minmax(0,1fr)}.rules-level-editor{border-left:0;border-top:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314);grid-column:1/-1}.rules-summary{grid-template-columns:1fr 1fr}.rules-combination{grid-column:1/-1}}@media (max-width:720px){.rules-summary{grid-template-columns:1fr}.rules-ledger{border-right:0;border-bottom:1px solid hsl(calc(var(--hue2) - 9.7) 32.7% 43.7% / .314)}}@media (max-width:520px){.rules-page[data-rule-tab=races] .rules-workbench,.rules-page[data-rule-tab=classes] .rules-workbench{grid-template-columns:1fr}.rules-level-editor{padding:18px}}.rules-page{width:100%;max-width:none;margin:0}.rules-tome{box-shadow:var(--window-shadow);border:4px solid #0000;border-radius:14px}.rules-tabs{background:var(--plank);border-bottom:2px solid var(--accent);gap:24px;padding:0 24px;overflow-x:auto}.rules-tabs button{box-shadow:none;color:var(--bone-dim);white-space:nowrap;background:0 0;border:0;border-radius:0;flex:none;padding:16px 0}.rules-tabs button[aria-pressed=true]{color:var(--accent-bright);box-shadow:inset 0 -2px var(--accent);background:0 0;border:0}.rules-roster,.rules-level-editor,.rules-combination{background:#0000002e}.rules-growth{padding-left:28px;padding-right:28px}.rules-growth-counters{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;margin:32px 0}.rules-foot{border-color:var(--line-2);background:#00000040;padding:16px 28px}.status-reference{padding:28px}.status-reference-heading{justify-content:space-between;align-items:center;gap:28px;display:flex}.status-reference-heading h2{font-family:var(--font-display);color:var(--bone);margin:6px 0 10px;font-size:28px}.status-reference-heading p{max-width:680px;color:var(--bone-dim);margin:0;line-height:1.7}.status-reference-controls{align-items:center;gap:10px;display:flex}.status-reference-controls .input{width:210px}.status-reference-note{border-left:2px solid var(--accent);background:rgb(var(--accent-rgb) / .06);color:var(--bone);margin:26px 0;padding:18px 20px}.status-reference-note p{color:var(--bone-dim);margin:6px 0 0;font-size:13px;line-height:1.7}.status-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.status-reference-entry{border:1px solid var(--line-2);background:hsl(var(--hue) 40% 10%);border-radius:10px;min-width:0;padding:22px;box-shadow:inset 0 1px #ffffff0a,0 3px 8px #00000026}.status-reference-entry header{align-items:center;gap:16px;display:flex}.status-reference-entry .hud-status-icon{width:58px;height:58px;box-shadow:none;background:0 0;border:0;flex:none}.status-reference-entry .hud-status-icon img{width:58px;height:58px}.status-reference-entry .hud-status-tooltip{display:none}.status-reference-entry h3{font-family:var(--font-display);color:var(--bone);margin:0 0 6px;font-size:19px}.status-resolution{color:var(--bone-dim);font-size:12px}.status-resolution.automatic{color:var(--accent-bright)}.status-reference-entry p{color:var(--bone-dim);margin:18px 0 12px;font-size:14px;line-height:1.7}.status-reference-behavior{color:var(--bone-dim);border-top:1px solid var(--line);padding:12px 0;font-size:13px;line-height:1.7}.status-reference-entry footer{gap:8px;margin-top:20px;display:grid}.status-reference-entry footer>span{color:var(--bone-dim);letter-spacing:.08em;text-transform:uppercase;font-size:11px}.status-reference-entry footer>small{color:var(--bone-dim)}.status-assigned{color:var(--accent-bright);flex-wrap:wrap;gap:10px 18px;font-size:13px;display:flex}.status-assigned small{color:var(--bone-dim);margin-top:3px;font-size:12px;display:block}.status-reference-empty{color:var(--bone-dim);padding:36px 0}.hud-status-tooltip{white-space:normal;width:260px;max-width:80vw;line-height:1.5}@media (max-width:1100px){.status-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-reference-heading{flex-direction:column;align-items:flex-start}}@media (max-width:720px){.rules-growth-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.rules-tabs{gap:20px}}@media (max-width:520px){.status-reference,.rules-growth{padding:20px 14px}.rules-tabs{padding:0 14px}.rules-foot{padding:14px}.status-reference-entry{padding:18px}.status-reference-grid{grid-template-columns:1fr}.status-reference-controls{flex-wrap:wrap;width:100%}.status-reference-controls .input{flex:1;min-width:140px}.rules-tabs button{flex:none;padding:14px 0}}.dm-content:has(.rules-page){padding-bottom:20px}.rules-page{flex-direction:column;flex:1 0 auto;min-height:100%;display:flex}.rules-page .page-head{flex:none}.dm-content .rules-tome.frame{background:linear-gradient(135deg, hsl(calc(var(--hue) - 11) 15.8% 14.9%), hsl(calc(var(--hue) - 14) 30.6% 9.6%)) padding-box;border:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .4);border-radius:12px;flex-direction:column;flex:1;display:flex;overflow:hidden}.rules-tome>.rules-workbench,.rules-tome>.rules-summary,.rules-tome>.rules-growth,.rules-tome>.status-reference{flex:1}.rules-tabs{border-color:hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .333);flex:none;gap:12px;padding:12px 20px}.rules-tabs button,.rules-tabs button[aria-pressed=true]{border:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .2);background:hsl(calc(var(--hue2) + 0) 14.3% 5.5% / .6);box-shadow:none;color:hsl(calc(var(--hue2) - 6.1) 28.2% 74.3%);border-radius:6px;gap:12px;padding:8px 16px;font-size:13px}.rules-tabs button[aria-pressed=true]{border-color:hsl(calc(var(--hue2) - 2.2) 51.6% 64.3%);background:hsl(calc(var(--hue2) - 7.7) 33.9% 21.4%);box-shadow:inset 0 0 16px hsl(calc(var(--hue2) - 3.6) 64.9% 69.8% / .086);color:hsl(calc(var(--hue2) - 3.9) 100.0% 81.4%)}.rules-tabs button img{object-fit:contain;filter:drop-shadow(0 3px 4px #0009);width:44px;height:44px}.rules-page[data-rule-tab=races] .rules-workbench,.rules-page[data-rule-tab=classes] .rules-workbench{grid-template-columns:minmax(200px,.8fr) minmax(460px,2.4fr) minmax(300px,1.25fr)}.rules-roster{background:hsl(calc(var(--hue) - 14) 36.6% 8.0% / .91);border-color:hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);gap:12px;padding:20px 14px}.rules-roster>button{background:hsl(calc(var(--hue) - 13) 26.3% 14.9%);border:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .149);gap:14px;min-height:84px;padding:10px;font-size:13px}.rules-roster>button.chosen{background:hsl(calc(var(--hue2) - 3.8) 32.0% 19.6%);border-color:hsl(calc(var(--hue2) - 2.2) 51.6% 64.3%);box-shadow:inset 3px 0 hsl(calc(var(--hue2) - 2.2) 51.6% 64.3%)}.rules-roster-art{border-color:hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .502);width:56px;height:70px}.rules-character{background:linear-gradient(90deg, hsl(calc(var(--hue) - 16) 29.6% 10.6% / .91), hsl(calc(var(--hue) - 16) 29.6% 10.6% / .902)), url(/ui/rules/rules-sanctum.webp) center / cover;padding:clamp(22px,2.3vw,42px)}.rules-character-heading{border-bottom:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);gap:24px;min-height:260px;margin-bottom:28px;padding-bottom:24px;position:relative}.rules-character-heading .rules-selected-art{border-color:hsl(calc(var(--hue2) - 5.7) 37.7% 57.8%);border-radius:10px;width:clamp(170px,12vw,250px);height:clamp(220px,16vw,320px)}.rules-selected-art>span{width:100%;height:auto;min-height:34px;font:500 11px var(--font-ui);background:hsl(calc(var(--hue2) - 10.7) 28.0% 4.9% / .91);border-left:0;border-radius:0;justify-content:center;gap:7px;padding:8px;display:flex;left:0}.rules-character-heading h2{color:hsl(calc(var(--hue2) - 2.9) 100.0% 81.6%);font-size:clamp(26px,2.2vw,42px)}.rules-character-heading small{color:hsl(calc(var(--hue2) - 5.7) 35.9% 70.0%);text-transform:uppercase;letter-spacing:.12em;font-size:13px}.rules-character-heading .rules-reset{background:hsl(calc(var(--hue) - 12.7) 34.6% 10.2%);position:absolute;top:0;right:0}.rules-section-title h2,.rules-section-title h3{color:hsl(calc(var(--hue2) - 5) 65.7% 79.4%);font-size:18px}.rules-section-title p{color:hsl(calc(var(--hue) - 17.8) 15% 77.8%);font-size:14px;line-height:1.6}.rules-stat-grid{gap:20px;max-width:none}.rules-stat-grid .rule-counter{border:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);background:hsl(calc(var(--hue) - 12.2) 33.3% 9.4% / .91);border-radius:8px;align-items:center;padding:18px 8px}.rules-stat-grid .rule-counter-name{color:hsl(calc(var(--hue2) - 4.5) 43.4% 80.6%);flex-direction:column;gap:10px;font-size:13px}.rules-stat-grid .rule-counter-controls .input{width:64px;min-height:48px;font-size:26px}.rules-stat-grid .rule-counter-controls .field{width:64px}.rules-reward-counters{gap:20px;max-width:none}.rules-reward-counters .rule-counter{border:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);background:hsl(calc(var(--hue) - 12.2) 33.3% 9.4% / .91);border-radius:8px;padding:18px}.rules-painted-icon{object-fit:contain;filter:drop-shadow(0 3px 4px #0009);width:56px;height:56px}.rules-level-editor{background:hsl(calc(var(--hue) - 14) 31.9% 9.2% / .91);border-color:hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);flex-direction:column;padding:28px 22px;display:flex}.rules-levels{flex:1;grid-auto-rows:minmax(42px,1fr)}.rules-level-editor .rules-level{height:auto;min-height:42px}.rules-level-editor .rules-level-columns,.rules-level-editor .rules-level{grid-template-columns:86px 1fr 1fr;gap:10px}.rules-level-editor .rules-level label{font-size:13px}.rules-level-value{color:hsl(calc(var(--hue) - 17.4) 17.9% 77.1%);font-size:16px}.rules-foot{color:hsl(calc(var(--hue2) - 4.5) 24.1% 67.5%);border-color:hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);background:hsl(calc(var(--hue) - 14) 36.6% 8.0%);flex:none;margin-top:auto;font-size:12px}.rules-growth{background:linear-gradient(90deg, hsl(calc(var(--hue) - 16) 29.6% 10.6% / .929), hsl(calc(var(--hue) - 16) 29.6% 10.6% / .863)), url(/ui/rules/rules-sanctum.webp) center / cover;flex-direction:column;display:flex}.rules-growth-counters{flex:1;align-items:center;gap:24px}.rules-growth-counters .rule-counter{border:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);background:hsl(calc(var(--hue) - 14) 36.6% 8.0% / .91);border-radius:10px;justify-content:center;min-height:300px;padding:32px 20px}.rules-growth-counters .rules-painted-icon{width:72px;height:72px}.status-reference-entry .hud-status-icon,.status-reference-entry .hud-status-icon img{width:88px;height:88px}.status-reference-entry{background:hsl(calc(var(--hue) - 14) 31.9% 9.2%);border-color:hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);flex-direction:column;display:flex}.status-reference-entry footer{margin-top:auto;padding-top:20px}.status-reference-entry h3{font-size:23px}.status-reference-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}.rules-summary{background:hsl(calc(var(--hue) - 16) 29.6% 10.6%)}.rules-ledger-entry{background:hsl(calc(var(--hue) - 14) 31.9% 9.2%)}.rules-ledger-info>b{font-size:15px}@media (max-width:1250px){.rules-page[data-rule-tab=races] .rules-workbench,.rules-page[data-rule-tab=classes] .rules-workbench{grid-template-columns:190px minmax(0,1fr)}.rules-level-editor{border-left:0;border-top:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);grid-column:1/-1}.rules-levels{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}.rules-level-columns{display:none}.rules-character-heading .rules-selected-art{width:190px;height:250px}.rules-growth-counters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.rules-page[data-rule-tab=races] .rules-workbench,.rules-page[data-rule-tab=classes] .rules-workbench{grid-template-columns:minmax(0,1fr)}.rules-roster{border-right:0;border-bottom:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);flex-direction:row;padding:14px;overflow-x:auto}.rules-roster>button{text-align:center;flex-direction:column;flex:none;gap:8px;width:106px;min-height:130px;font-size:11px}.rules-roster-art{width:56px;height:70px}.rules-roster .rules-new{justify-content:center;margin:0}.rules-add{flex:none;width:140px}.rules-character{padding:22px 18px}.rules-character-heading{gap:18px;min-height:0}.rules-character-heading .rules-selected-art{width:150px;height:200px}.rules-character-heading h2{font-size:28px}.rules-tabs{gap:8px;padding:10px 12px}.rules-tabs button{gap:8px;padding:6px 12px;font-size:11px}.rules-tabs button img{width:36px;height:36px}.rules-stat-grid{gap:12px}}@media (max-width:520px){.rules-character-heading{align-items:center;padding-top:38px;display:flex}.rules-character-heading>div{align-self:auto}.rules-character-heading .rules-selected-art{width:128px;height:170px}.rules-character-heading h2{font-size:24px}.rules-character-heading .rules-reset{top:0}.rules-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rules-levels,.rules-reward-counters{grid-template-columns:minmax(0,1fr)}.rules-growth-counters{gap:12px}.rules-growth-counters .rule-counter{min-height:250px;padding:20px 8px}.rules-foot{flex-direction:column;gap:6px}.status-reference-entry .hud-status-icon,.status-reference-entry .hud-status-icon img{width:72px;height:72px}.rules-other-row .rule-counter{flex-wrap:wrap}}@media (min-width:1251px){.dm-content:has(.rules-page){overflow:hidden}.rules-page{flex:1;min-height:0}.rules-tome{min-height:0}.rules-tome>.rules-workbench,.rules-tome>.rules-summary,.rules-tome>.rules-growth,.rules-tome>.status-reference,.rules-workbench>.rules-roster,.rules-workbench>.rules-character,.rules-workbench>.rules-level-editor{min-height:0;overflow:auto}.rules-character-heading{min-height:0}.rules-character-heading .rules-selected-art{width:clamp(170px,11vw,220px);height:clamp(210px,24vh,280px)}.rules-character-heading{margin-bottom:22px;padding-bottom:20px}.rules-character{padding:24px}.rules-stat-grid .rule-counter{padding:12px 8px}.rules-stat-grid{gap:12px}.rules-levels{grid-auto-rows:minmax(42px,1fr)}}.status-library-title{align-items:center;gap:16px;display:flex}.status-library-title h2{margin:6px 0 10px}.status-card-actions{border-top:1px solid hsl(calc(var(--hue2) - 4.5) 36.2% 55.1% / .251);justify-content:space-between;align-items:center;gap:10px;margin-top:12px;padding-top:14px;display:flex}.status-forge .sl-forge-section>.field+.field{margin-top:14px}.status-forge-toggle{color:var(--bone);align-items:center;gap:10px;padding:10px 0;font-size:14px;display:flex}.status-forge-toggle input{accent-color:hsl(calc(var(--hue2) - 5.4) 54.2% 64.9%);width:17px;height:17px}.status-forge-error{color:#ffaca1;font-size:14px}.status-forge .bonus-editor-add{flex-wrap:wrap;gap:10px}.status-forge .bonus-editor-add>.field{min-width:0;max-width:100%}.status-forge .bonus-editor-add select{max-width:100%}.status-forge .select{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.status-forge .select optgroup{background:hsl(calc(var(--hue) + 5.1) 60% 17.6%);color:hsl(calc(var(--hue2) - 5.7) 81.8% 78.4%)}.status-forge .select option{background:hsl(calc(var(--hue) + 5.1) 60% 17.6%);color:hsl(calc(var(--hue2) - 3.5) 56.5% 91.0%)}.status-card-actions .status-delete,.status-card-actions .status-delete:hover,.status-card-actions .status-delete:active,.status-forge .bonus-editor-row .iconbtn,.status-forge .bonus-editor-row .iconbtn:hover,.status-forge .bonus-editor-row .iconbtn:active{box-shadow:none;text-shadow:none;filter:none;color:#fff;background:linear-gradient(#ff8a78 0%,#ef3b42 45%,#b01d34 100%);border:0;transform:none}.status-card-actions .status-delete:hover:not(:disabled),.status-forge .bonus-editor-row .iconbtn:hover{background:linear-gradient(#ff9d8d 0%,#f54d52 45%,#c12a3e 100%)}.status-forge .bonus-editor-row .iconbtn:before,.status-forge .bonus-editor-row .iconbtn:after,.status-delete:before,.status-delete:after{content:none}
.workshop{flex-direction:column;flex:1;min-height:0;display:flex}.workshop .ws-doors{flex:1;grid-template-rows:repeat(3,minmax(150px,1fr));grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding-bottom:6px}.workshop .ws-door{isolation:isolate;background:#0c1524;border:1px solid #aa86555c;border-radius:10px;transition:border-color .16s,box-shadow .16s;display:block;overflow:hidden;box-shadow:0 4px 14px #0005;container-type:size}.workshop .ws-door:hover{border-color:#dfb778;transform:none;box-shadow:0 4px 18px #0008,inset 0 0 0 1px #dfb77855}.workshop .ws-door:focus-visible{outline-offset:3px;outline:2px solid #f7d795}.workshop .ws-door-img{border-radius:inherit;z-index:-2;background:0 0;border:0;width:100%;height:100%;margin:0;position:absolute;inset:0}.workshop .ws-door-img img{object-fit:cover;object-position:center 30%}.workshop .ws-door:after{content:"";z-index:-1;pointer-events:none;background:linear-gradient(90deg,#09111ef5 0%,#09111ee0 28%,#09111e99 52%,#09111e30 78%,#09111e14 100%),linear-gradient(#0000 55%,#09111e66);position:absolute;inset:0}.workshop .ws-door-text{box-sizing:border-box;gap:10px;width:72%;height:100%;padding:clamp(16px,7cqh,24px)}.workshop .ws-door-text b{color:#ffe1a8;text-shadow:0 2px 5px #000a;font-size:clamp(20px,9cqh,28px);line-height:1.15}.workshop .ws-door-text>span{color:#e0dfdc;text-shadow:0 1px 4px #000;font-size:clamp(13px,5.5cqh,16px);line-height:1.45}.workshop .ws-door-text small{color:#eac991;text-shadow:0 1px 4px #000;padding-top:6px;font-size:12px;font-weight:600}.workshop .ws-start{color:#ffe1a8;background:#0b1524dc;border:1px solid #ddba7d66;border-radius:4px;padding:5px 8px;top:12px;right:12px}@media (max-width:1100px){.workshop .ws-doors{flex:none;grid-template-rows:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:200px}}@media (max-width:560px){.workshop .ws-doors{grid-template-columns:1fr;grid-auto-rows:190px;gap:12px}}
.encounter-workshop,.tactical-fight{color:#e8ddc8;background:#111510;border:1px solid #625139;border-radius:3px;min-width:0;padding:16px}.encounter-workshop{flex-direction:column;flex:1;gap:16px;display:flex;overflow:auto}.encounter-workshop>*,.tactical-fight>*{flex-shrink:0}.war-heading{justify-content:space-between;align-items:start;display:flex}.war-heading small{letter-spacing:.18em;color:#b7a17a;font-size:9px}.war-heading h2{font-family:var(--font-display);color:#edcf90;margin:5px 0;font-size:clamp(20px,2.3vw,30px)}.war-heading p,.war-help{color:#b1b6a7;margin:0;font-size:12px;line-height:1.5}.war-library-tools,.war-deploy-top,.war-launch,.war-unit-orders,.war-background{align-items:center;gap:12px;display:flex}.war-library-tools{justify-content:space-between;font-size:12px}.war-library-tools>span{color:#d8c499;align-items:center;gap:8px;display:flex}.war-map-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.war-map-card{background:#1d2219;border:1px solid #786041;min-width:0;box-shadow:0 7px 14px #0007}.war-map-pick{text-align:left;color:#eee2ca;width:100%;padding:0;display:block}.war-map-pick>img{aspect-ratio:3/2;object-fit:cover;width:100%;display:block}.war-map-pick>span{background:linear-gradient(#272e20,#161b13);gap:5px;padding:14px;display:grid}.war-map-pick b{font-family:var(--font-display);font-size:17px}.war-map-pick small{color:#b4b59f;font-size:11px}.war-map-pick em{color:#e9c476;align-items:center;gap:8px;margin-top:8px;font-size:11px;font-style:normal;display:flex}.war-map-pick:hover{filter:brightness(1.15)}.war-map-controls{border-top:1px solid #5b5035;justify-content:space-between;padding:9px 14px;display:flex}.war-map-controls button{color:#b8b49e;font-size:11px}.war-steps{border-top:1px solid #484631;justify-content:space-around;gap:12px;padding:18px 0;display:flex}.war-steps span{color:#c7b99b;justify-items:center;gap:8px;font-size:11px;display:grid}.war-steps svg{color:#d6b776;width:30px;height:30px}.war-deploy{grid-template-columns:minmax(0,1fr) 185px;gap:12px;display:grid}.war-deploy-top>span{color:#b8b79f;flex:1;align-items:center;gap:7px;font-size:10px;display:flex}.war-deploy-top>b{color:#e8c16e;font-size:11px}.war-dot{border-radius:50%;flex:none;width:7px;height:7px;display:inline-block}.war-dot.blue{background:#5ca5d2}.war-dot.red{background:#d75b4a}.war-dot.gold{background:#edc36a}.war-roster{background:#1b2018;border:1px solid #55503c;flex-direction:column;gap:9px;min-height:0;padding:9px;display:flex}.war-tabs{border-bottom:1px solid #554a33;gap:2px;display:flex}.war-tabs button{color:#a9af9c;border-bottom:2px solid #0000;flex:1;padding:9px 2px;font-size:11px}.war-tabs button.active{color:#f1d090;border-color:#cea658}.war-roster .input{min-height:32px;padding:6px;font-size:11px}.war-roster-list{max-height:470px;overflow:auto}.war-roster-unit{text-align:left;color:#e8e0c9;border-bottom:1px solid #343a2e;align-items:center;gap:8px;width:100%;padding:9px 0;display:flex}.war-roster-unit .portrait{border-color:#567998}.war-roster-unit.monster .portrait{border-color:#ab5d47}.war-roster-unit>span{flex:1;min-width:0}.war-roster-unit b{white-space:nowrap;text-overflow:ellipsis;font-size:12px;display:block;overflow:hidden}.war-roster-unit small{color:#a6ab98;margin-top:4px;font-size:9px;display:block}.war-roster-unit:disabled{opacity:.35}.war-reserves{gap:9px;padding:5px 0;display:flex;overflow:auto}.war-reserves button{color:#eee1c1;text-align:left;background:#252b20;border:1px solid #807452;flex:none;align-items:center;gap:8px;padding:6px 10px;display:flex}.war-reserves button.selected{border-color:#efc66d;box-shadow:0 0 10px #e6b44d33}.war-reserves b{font-size:11px;display:block}.war-reserves small{color:#c7996c;font-size:9px;display:block}.war-reserves .placed small{color:#9cc897}.war-unit-orders{background:#252b20;border:1px solid #55503c;flex-wrap:wrap;padding:10px}.war-unit-orders>b{margin-right:auto;font-size:12px}.war-unit-orders label{align-items:center;gap:6px;display:flex}.war-unit-orders .input{width:60px;min-height:30px}.war-launch{border-top:1px solid #554b34;flex-wrap:wrap;justify-content:space-between;margin-top:auto;padding-top:14px}.war-launch>span{color:#b4b49e;flex:1;font-size:11px}.war-primary{min-height:46px;font-family:var(--font-display);color:#241809;background:linear-gradient(#f0d498,#b38a42);border:1px solid #f9daa0;border-radius:3px;justify-content:center;align-items:center;gap:10px;padding:12px 22px;font-size:13px;font-weight:700;display:inline-flex;box-shadow:inset 0 0 0 2px #6b4c2780,0 3px #463213}.war-primary:disabled{filter:grayscale(.8);opacity:.4;cursor:not-allowed}.war-primary:hover:not(:disabled){filter:brightness(1.12)}.war-forge{width:min(1100px,96vw)!important}.war-forge .frame-body{gap:14px;display:grid}.war-forge-fields{grid-template-columns:minmax(0,1fr) repeat(3,95px);gap:12px;display:grid}.war-background>.field{flex:1}.war-brushes{align-items:center;gap:12px;display:flex}.war-brushes button{color:#b5b89f;background:#1d241a;border:1px solid #4a523b;justify-items:center;gap:5px;padding:9px;display:grid}.war-brushes button.active{color:#f0cc85;border-color:#c89e56}.war-brushes small{font-size:10px}.war-brushes>span{color:#a6ac96;font-size:11px}.battle-surface{background:#0d140e;border:1px solid #81704a;flex-direction:column;min-width:0;display:flex;box-shadow:0 6px 16px #0006}.battle-surface-head{background:linear-gradient(#303726,#1a2017);border-bottom:1px solid #8b7148;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;display:flex}.battle-surface-head b{font-family:var(--font-display);color:#e6cb96;font-size:12px;display:block}.battle-surface-head small{color:#aeb49b;padding-top:3px;font-size:9px;display:block}.battle-surface-head>div:last-child{gap:5px;display:flex}.battle-surface-head .iconbtn{color:#cec09e}.battle-viewport{--battle-fit-height:clamp(220px, calc(100dvh - 620px), 600px);min-height:0;max-height:var(--battle-fit-height);scrollbar-width:thin;position:relative;overflow:auto}.battle-grid{grid-template-columns:repeat(var(--columns), minmax(0, 1fr));grid-template-rows:repeat(var(--rows), minmax(0, 1fr));isolation:isolate;background-color:#263a26;background-position:50%;background-size:100% 100%;margin-inline:auto;display:grid}.war-forge .battle-viewport{--battle-fit-height:420px}.player-battle-panel .battle-viewport{--battle-fit-height:max(160px, calc(100dvh - 430px))}.table-battle-panel .battle-viewport{--battle-fit-height:max(180px, calc(100dvh - 210px))}.battle-cell{width:100%;min-width:0;height:100%;min-height:0;box-shadow:none;outline-offset:-2px;background:0 0;border:1px solid #f1e9b128;border-top:0;border-left:0;border-radius:0;place-items:center;margin:0;padding:0;display:grid;position:relative}.no-lines .battle-cell{border-color:#0000}.battle-cell:hover{z-index:2;background:#edd39935;box-shadow:inset 0 0 0 1px #eacb8c}.battle-cell:focus-visible{z-index:3;outline:2px solid #f5d17b}.battle-cell.blocked{background:repeating-linear-gradient(45deg,#101a11a0 0 4px,#42453675 4px 8px)}.battle-cell.difficult{background:#438b9855}.terrain-mark{color:#ede4bda6;pointer-events:none;max-width:50%}.battle-token{--token-rim:#6db6e2;cursor:grab;filter:drop-shadow(0 3px 3px #000d);border-radius:50%;place-items:center;display:grid;position:absolute;inset:4%}.battle-token.monster{--token-rim:#e0694c}.battle-token.npc{--token-rim:#c7bfe0}.battle-token .portrait{border:2px solid var(--token-rim);object-fit:cover;background:#182018;min-width:0;padding:0;box-shadow:0 0 0 1px #101810;width:100%!important;height:100%!important}.battle-token.acting{--token-rim:#ffe09a;box-shadow:0 0 0 2px #e9bd68,0 0 17px #fbd279a0}.battle-token.selected{outline-offset:3px;outline:2px solid #ffedb8}.battle-token.fallen{filter:grayscale()brightness(.5)}.battle-token.secret{opacity:.6}.token-health{background:#14170d;border:1px solid #0c120a;height:4px;position:absolute;bottom:0;left:9%;right:9%}.token-health i{background:#91cf70;height:100%;display:block}.monster .token-health i{background:#e16850}.battle-token small{color:#f8e5b5;white-space:nowrap;pointer-events:none;background:#151b12;border:1px solid #8d754b;padding:3px 6px;font-size:10px;display:none;position:absolute;bottom:105%}.battle-token:hover small{display:block}.token-secret{color:#ffe6b1;position:absolute;top:0;right:0}.battle-caption{color:#b5b99f;background:#1b2217;border-top:1px solid #62543a;justify-content:space-between;align-items:center;gap:9px;padding:9px 12px;font-size:10px;display:flex}.battle-caption b{color:#dccc9e;flex:none}.tactical-fight.fight-board{background:#11180f;gap:10px;padding:12px;overflow:auto}.tactical-fight .fb-card{width:100%;box-shadow:none;background:#1c2b38;border-width:1px;border-color:#6b93af;border-radius:3px;gap:12px;margin:0;padding:12px}.tactical-fight .fb-card.monster{background:#38201b;border-color:#b56b4d}.tactical-fight .fb-card.npc{background:#29263b}.tactical-fight .fb-card.turn{border-color:#d9b771}.tactical-fight .fb-card .fb-art{align-items:center;gap:10px;display:flex}.tactical-fight .fb-main{gap:8px}.tactical-fight .fb-name b{text-shadow:none;font-size:18px}.tactical-fight .fb-side{font-size:9px}.tactical-fight .fb-hp{max-width:480px;height:18px;box-shadow:none}.tactical-fight .fb-hp span{font-size:11px}.tactical-fight .fb-hit{min-width:32px;min-height:28px;box-shadow:none;border-width:1px;border-radius:3px;padding:0 7px;font-size:11px}.tactical-fight .fb-hits .input{width:60px;min-height:28px}.tactical-fight .fb-actions{gap:7px}.tactical-fight .fb-attacks{font-size:10px}.tactical-fight .fb-attack{box-shadow:none;background:#26130d;border-radius:2px;font-size:10px}.war-armour{color:#e2ddd1;justify-items:center;gap:2px;display:grid}.war-armour small{font-size:11px;font-weight:700}.war-live-status{justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.war-live-status span{color:#efcf8c;align-items:center;gap:7px;display:flex}.war-live-status small{color:#9eac8e;font-size:10px}.tactical-fight .fb-round,.war-round{color:#efcf8c;background:#2f3522;border:1px solid #c49a58;border-radius:3px;box-shadow:inset 0 0 0 3px #141a11}.tactical-fight .fb-unit .portrait{border-radius:50%}.tactical-fight .fb-order{gap:8px;padding-top:14px}.tactical-fight .fb-unit{width:50px}.tactical-fight .fb-unit.cur{width:64px}.tactical-fight .fb-unit.hero .portrait{border-color:#64aad6}.tactical-fight .fb-unit .portrait{width:44px!important;height:44px!important}.tactical-fight .fb-unit.cur .portrait{width:54px!important;height:54px!important}.tactical-fight .fb-tools{flex-wrap:wrap;justify-content:end;gap:7px;max-width:235px;display:flex}.tactical-fight .fb-init{width:17px;min-width:17px;height:17px;font-size:9px}.tactical-fight .fb-end-turn{background:linear-gradient(#ead399,#b58a43);border-width:1px;border-radius:3px;min-height:42px;padding:0 20px;font-size:12px;box-shadow:0 3px #4d391b}.tactical-fight .fb-foot{margin:0}.tactical-fight .fb-hint{font-size:10px}.war-legacy{background:#283321;justify-items:center;gap:10px;padding:30px;display:grid}.war-legacy small{font-size:11px}.war-inspect-token{color:#ead9b8;text-align:left;background:#263020;border:1px solid #6d6247;align-items:center;gap:8px;padding:5px 9px;display:flex}.war-inspect-token b{font-size:11px;display:block}.war-inspect-token small{color:#b8c6a6;font-size:10px;display:block}.war-inspector .fb-card{box-shadow:none;background:#20354c;border-width:1px;border-radius:3px;margin:0}.war-inspector .fb-card.monster{background:#472a23}.war-inspector .fb-art{justify-items:center;gap:12px;display:grid}.war-inspector .fb-name b{font-size:22px}.tactical-fight .fb-hint{display:none}.tactical-fight .fb-foot{justify-content:space-between}.player-battle-panel{flex-direction:column;height:100%;display:flex;overflow:hidden}.player-battle-panel .player-battle-head,.player-battle-panel .player-battle-foot{flex:none}.player-battle-panel>.battle-surface{flex:1;min-height:0;overflow:hidden}.player-battle-panel .battle-viewport{--battle-fit-height:max(150px, calc(100dvh - 550px));flex:1}.player-battle-panel .battle-surface-head,.player-battle-panel .battle-caption{flex:none}.tactical-fight .battle-viewport{--battle-fit-height:clamp(180px, calc(100dvh - 640px), 650px)}@media (max-width:1000px){.gm-fighting .gm-stage{align-self:stretch;height:auto}.gm-fighting .fight-board,.gm-fighting .encounter-workshop{flex:none;height:auto;overflow:visible}}@media (max-width:650px){.gm-fighting .gm-stage{overflow:visible}.tactical-fight .fb-foot{flex-wrap:wrap}.tactical-overlay.fo{inset:108px 8px 240px}.player-battle-panel .battle-viewport{--battle-fit-height:max(150px, calc(100dvh - 540px))}.war-inspector .fb-card{grid-template-columns:1fr}.war-inspector .fb-art{display:flex}}.tactical-overlay.fo{pointer-events:none;z-index:4;justify-content:center;display:flex;inset:80px 25px 200px}.player-battle-panel{pointer-events:auto;background:#151b12;border:1px solid #8a7145;align-self:start;width:100%;max-width:980px;max-height:100%;overflow:auto;box-shadow:0 15px 55px #000a}.player-battle-panel .battle-viewport{max-height:calc(100dvh - 405px)}.player-battle-head{background:#22291b;border-bottom:1px solid #706044;align-items:center;gap:14px;padding:10px 14px;display:flex}.war-round{text-align:center;padding:8px 12px;font-size:24px;font-weight:700;display:grid}.war-round small{letter-spacing:.15em;font-size:8px}.player-battle-order{flex:1;gap:12px;padding:4px;display:flex;overflow:auto}.player-battle-order>*{color:#ded6c2;flex:none;justify-items:center;gap:5px;display:grid}.player-battle-order small{font-size:10px}.player-battle-order .monster .portrait{border-color:#b45f44}.player-battle-order .hero .portrait{border-color:#6aa9d6}.player-battle-order .acting .portrait{border-color:#f9d481;box-shadow:0 0 12px #e5b75790}.player-battle-foot{background:#232b1c;justify-content:space-between;align-items:center;gap:10px;padding:12px;display:flex}.player-battle-foot small{color:#ccb98f;font-size:11px}.table-battle-panel{flex-direction:column;justify-content:center;gap:10px;display:flex;position:absolute;inset:30px max(20px,50vw - 650px)}.table-battle-panel .battle-viewport{max-height:calc(100dvh - 180px)}.table-battle-panel .player-battle-head>b{color:#edcf95;font-size:15px}.player-battle-panel{overflow:hidden}@media (min-width:1001px){.gm.gm-fighting{grid-template-columns:235px minmax(240px, 1fr) min(var(--director-width), 45vw);grid-template-rows:minmax(0,1fr) 114px;grid-template-areas:"party stage story""actions actions actions";min-height:0}.gm-fighting .gm-stage{min-height:0}.gm-fighting .gm-party,.gm-fighting .fight-dice-desk,.gm-fighting .fight-dice-scroll{overflow:auto}.gm-fighting .gm-hotbar{align-self:end}}@media (max-width:1000px){.gm.gm-fighting{grid-template:"party stage""story story""actions actions"114px/210px minmax(0,1fr)}.gm-fighting .gm-stage{min-height:0}.war-deploy{grid-template-columns:minmax(0,1fr) 160px}.war-map-pick b{font-size:14px}}@media (max-width:650px){.gm.gm-fighting{display:flex}.encounter-workshop,.tactical-fight.fight-board{padding:10px}.war-map-library,.war-deploy{grid-template-columns:1fr}.war-roster-list{max-height:180px}.war-steps{gap:6px}.war-steps span{font-size:9px}.war-deploy-top>span{display:none}.war-forge-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.war-forge-fields>:first-child{grid-column:1/-1}.war-background{align-items:end}.war-brushes{flex-wrap:wrap}.war-brushes>span{flex-basis:100%}.war-live-status{flex-wrap:wrap}.tactical-fight .fb-top{flex-wrap:wrap;gap:6px}.tactical-fight .fb-tools{width:100%;max-width:none}.tactical-fight .fb-card{grid-template-columns:1fr}.tactical-fight .fb-art .portrait{width:50px!important;height:50px!important}.tactical-fight .fb-foot{flex-wrap:wrap;gap:7px}.player-battle-panel .battle-viewport{max-height:calc(100dvh - 460px)}.player-battle-head{gap:8px;padding:7px}.war-round{padding:6px;font-size:18px}.player-battle-order{gap:7px}.player-battle-order .portrait{width:34px!important;height:34px!important}.player-battle-foot{flex-wrap:wrap;padding:8px}.player-battle-foot .war-primary{min-height:35px;padding:8px 14px}.table-battle-panel{inset:65px 8px 20px}.table-battle-panel .player-battle-head>b{font-size:10px}.battle-caption{flex-wrap:wrap}.gm-fighting .gm-stage{align-self:stretch;height:auto;overflow:visible}.gm-fighting .fight-board,.gm-fighting .encounter-workshop{flex:none;height:auto;overflow:visible}.tactical-overlay.fo{inset:108px 8px 240px}.player-battle-panel .battle-viewport{--battle-fit-height:max(150px, calc(100dvh - 540px))}}.battle-grid{box-shadow:0 0 0 1px #8d794c,0 0 30px #0009}.player-battle-panel .battle-viewport{--battle-fit-height:100cqh;min-height:120px;max-height:none;container-type:size}@media (min-width:1001px){.tactical-fight .battle-surface{flex:1 1 0;min-height:220px}.tactical-fight .battle-viewport{--battle-fit-height:100cqh;flex:1;max-height:none;container-type:size}}@media (max-width:650px){.tactical-fight .battle-viewport{--battle-fit-height:min(85vw, 380px)}.player-battle-panel .battle-viewport{--battle-fit-height:100cqh}}.battle-surface:fullscreen{background:#0e160d;border:0;width:100vw;height:100dvh;padding:18px}.battle-surface:fullscreen .battle-viewport{--battle-fit-height:100cqh;flex:1;max-height:none;container-type:size}.battle-surface:fullscreen .battle-surface-head,.battle-surface:fullscreen .battle-caption{flex:none}.combat-arena{height:calc(100dvh - 72px);min-height:420px;padding:8px 14px;overflow:hidden}.combat-arena .tactical-fight{background:#080d09;border:0;flex-direction:column;gap:0;height:100%;display:flex;position:relative}.combat-arena .fb-top{background:linear-gradient(#080d09,#080d09e0);border:0;flex:0 0 96px;gap:14px;padding:8px 18px}.combat-arena .fb-order{justify-content:center}.combat-arena .fb-unit{background:0 0;border:0;min-width:64px}.combat-arena .fb-round{background:0 0;border:0}.combat-arena .arena-master{color:#b6aa88;background:0 0;border:0}.combat-arena .battle-surface{border:0;border-radius:0;flex:1 1 0;min-height:0}.combat-arena .battle-viewport{--battle-fit-height:100cqh;flex:1;max-height:none;container-type:size}.battle-surface.immersive{position:relative}.immersive .battle-surface-head.concealed{display:none}.battle-tools-toggle{z-index:5;position:absolute;top:12px;right:12px;background:#0b130de8!important}.immersive .battle-surface-head{z-index:4;background:#111c12f5;max-width:95%;padding:8px;position:absolute;top:52px;right:8px}.immersive .battle-caption{display:none}.immersive .battle-caption:has(.move-preview){pointer-events:none;background:#10160be8;border:1px solid #a58b42;padding:6px 14px;display:block;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.immersive .battle-caption:has(.move-preview)>span{display:none}.immersive .battle-caption:has(.move-preview)>b:not(.move-preview){display:none}.combat-arena .arena-dock{background:linear-gradient(#0c130bec,#050905);border-top:1px solid #8b72385c;flex:0 0 112px;justify-content:center;align-items:center;gap:24px;padding:10px 24px;display:flex}.arena-actions{flex-direction:column;align-items:center;gap:9px;min-width:0;display:flex}.arena-skillbar{gap:6px;max-width:60vw;display:flex;overflow-x:auto}.arena-skill{background:#14150e;border:1px solid #947138;border-radius:6px;flex:none;width:58px;height:58px;padding:0;position:relative;box-shadow:inset 0 0 0 2px #292417}.arena-skill img{object-fit:cover;border-radius:5px;width:100%;height:100%}.arena-skill small{color:#ffe6a5;text-shadow:0 1px 4px #000;font-size:13px;font-weight:700;position:absolute;bottom:2px;right:4px}.arena-skill:disabled{filter:grayscale();opacity:.35}.arena-skill:hover:not(:disabled){border-color:#ffdc7c;box-shadow:0 0 14px #d5a64c66}.ap-gems{color:#e4c578;align-items:center;gap:10px;display:flex}.ap-gems-stones{gap:7px;display:flex}.ap-gems-stones i{clip-path:polygon(50% 0,100% 30%,85% 78%,50% 100%,15% 78%,0 30%);background:#35392b;width:12px;height:17px;display:block}.ap-gems-stones i.lit{filter:drop-shadow(0 0 4px #ffd46c);background:linear-gradient(130deg,#fff1b1,#d99b30 55%,#8a4d16)}.ap-gems small{font-size:12px}.arena-end{color:#f1d59a;background:radial-gradient(#3b321b,#12170d);border:1px solid #a07b3e;border-radius:50%;flex-direction:column;flex:none;justify-content:center;align-items:center;width:70px;height:70px;display:flex}.arena-end small{font-size:10px}.arena-end:disabled{opacity:.4}.arena-target{color:#c8b88b;background:#0a100be8;border:0;padding:6px 10px;font-size:12px;position:absolute;bottom:122px;left:18px}.arena-paused{z-index:4;color:#f1d59a;background:#111b10df;padding:8px 24px;position:absolute;top:112px;left:50%;transform:translate(-50%)}.arena-controls .fight-dice-desk{border:0;width:100%;max-height:65vh;overflow:auto}.arena-controls .fight-dice-scroll{overflow:visible}.arena-controls .row{flex-wrap:wrap}.combat-arena .war-inspect-token{background:0 0;border:0;flex:none;gap:12px;padding:0}.combat-arena .war-inspect-token>span>b{font-size:15px}.combat-arena .war-armour{background:0 0;border:0}@media (max-width:700px){.combat-arena{height:calc(100dvh - 64px);padding:0}.combat-arena .fb-top{flex-basis:78px;gap:4px;padding:4px}.combat-arena .fb-unit{min-width:48px}.combat-arena .fb-unit .portrait{width:44px!important;height:44px!important}.combat-arena .fb-nm{font-size:9px}.combat-arena .arena-dock{flex-wrap:wrap;flex-basis:140px;gap:10px;padding:8px}.combat-arena .war-inspect-token>span:not(.war-armour){display:none}.combat-arena .war-inspect-token .portrait{width:42px!important;height:42px!important}.combat-arena .war-armour{display:none}.arena-skillbar{max-width:65vw}.arena-skill{width:44px;height:44px}.arena-end{width:50px;height:50px}.arena-target{bottom:146px}.combat-arena .battle-viewport{--battle-fit-height:100cqh}.arena-actions{flex:1}.ap-gems-stones i{width:10px;height:14px}}.combat-embedded{flex:1;min-width:0;height:100%;min-height:0;padding:0}.combat-arena .tactical-fight{border-radius:0;padding:0}:is(.hud:has(.tactical-overlay) .hud-top,.hud:has(.tactical-overlay) .party-frames){display:none}.hud:has(.tactical-overlay) .hud-menu>:not(:nth-child(2)){display:none}.hud:has(.tactical-overlay) .hud-menu{box-shadow:none;background:0 0;border:0;grid-template-columns:none;display:flex}.hud:has(.tactical-overlay) .hud-side{display:none}.hud:has(.tactical-overlay) .hb-economy{display:none}.hud:has(.tactical-overlay) .ab-slot.empty{display:none}.hud:has(.tactical-overlay) .hud-bottom{z-index:5;justify-content:center;bottom:12px;left:18px;right:18px}.hud:has(.tactical-overlay) .hud-main{max-width:calc(100vw - 100px);box-shadow:none;background:#0c130bef;border:0;flex:none;min-width:0}.hud:has(.tactical-overlay) .hud-bars .coin{display:none}.hud:has(.tactical-overlay) .bar-xp{display:none}.hud:has(.tactical-overlay) .hotbar-slots{flex-wrap:nowrap;max-width:50vw;overflow-x:auto}.hud:has(.tactical-overlay) .tactical-overlay.fo{background:#070e09;justify-content:stretch;inset:0 0 140px}.hud:has(.tactical-overlay) .player-battle-panel{width:100%;max-width:none;box-shadow:none;background:#0c130b;border:0}:is(.hud:has(.tactical-overlay) .player-battle-head,.hud:has(.tactical-overlay) .player-battle-foot){background:#0b130c;border:0}.hud:has(.tactical-overlay) .player-battle-order{justify-content:center}.hud:has(.tactical-overlay) .player-battle-foot{justify-content:center;gap:24px;padding:6px}.hud:has(.tactical-overlay) .player-battle-foot .arena-end{width:54px;height:54px;font-size:10px}@media (max-width:650px){.hud:has(.tactical-overlay) .tactical-overlay.fo{inset:0 0 190px}.hud:has(.tactical-overlay) .hud-bottom{bottom:6px;left:6px;right:6px}.hud:has(.tactical-overlay) .hud-main{max-width:calc(100vw - 60px)}.hud:has(.tactical-overlay) .hotbar-slots{max-width:60vw}.hud:has(.tactical-overlay) .hud-bars{display:none}}.hud:has(.tactical-overlay) .hud-main{flex-wrap:nowrap;gap:12px;margin:0;padding:8px 12px}.hud:has(.tactical-overlay) .hud-main:before{display:none}.hud:has(.tactical-overlay) .hud-main:after{display:none}.hud:has(.tactical-overlay) .hotbar{flex:0 auto;order:initial;align-self:center;display:flex}.hud:has(.tactical-overlay) .hotbar-slots{box-shadow:none;background:0 0;border:0;flex:0 auto;justify-content:flex-start;gap:6px;padding:3px;display:flex}.hud:has(.tactical-overlay) .hotbar-slots .ab-slot{aspect-ratio:1;flex:0 0 54px;width:54px;height:54px}.hud:has(.tactical-overlay) .ab-cost{color:#f7d58b;box-shadow:none;background:#171b0fe8;border-radius:2px;width:auto;min-width:0;height:auto;font-size:10px}.hud:has(.tactical-overlay) .hud-bottom{background:#080f09;align-items:center;min-height:120px;padding:8px;bottom:0;left:0;right:0}.hud:has(.tactical-overlay) .hud-portrait .portrait{width:60px!important;height:60px!important}.hud:has(.tactical-overlay) .hud-bars{flex:none;width:170px}@media (max-width:650px){.hud:has(.tactical-overlay) .tactical-overlay.fo{inset:0 0 100px}.hud:has(.tactical-overlay) .hud-bottom{gap:4px;min-height:100px;padding:6px}.hud:has(.tactical-overlay) .hud-portrait .portrait{width:40px!important;height:40px!important}.hud:has(.tactical-overlay) .hud-level{display:none}.hud:has(.tactical-overlay) .hud-main{gap:6px;padding:4px}.hud:has(.tactical-overlay) .hotbar-slots .ab-slot{flex-basis:44px;width:44px;height:44px}}.combat-arena.combat-preparing{background:#0c130b;padding:20px;display:flex;overflow:auto}.combat-preparing .encounter-workshop{border:0;flex:none;width:100%;max-width:1200px;min-height:calc(100dvh - 40px);margin:auto}@media (max-width:700px){.combat-arena.combat-preparing{padding:8px}.combat-preparing .encounter-workshop{min-height:calc(100dvh - 16px)}}.hud:has(.tactical-overlay) .hotbar-slots kbd{display:none}.gm-stage>.combat-embedded{height:100%;min-height:0;padding:0;overflow:hidden}.combat-embedded .encounter-workshop{max-width:none;min-height:0;margin:0}.combat-embedded .arena-dock{flex-basis:100px;gap:12px;padding:8px}.combat-embedded .war-inspect-token>span:not(.war-armour){display:none}.combat-embedded .arena-skillbar{min-width:0;max-width:100%}.combat-embedded .arena-actions{flex:1}.combat-embedded .arena-skill{width:48px;height:48px}.combat-embedded .fb-top{flex-basis:88px;padding:4px 10px}.combat-embedded .arena-end{width:56px;height:56px}@media (max-width:1000px){.gm-stage>.combat-embedded{flex:none;height:560px}.combat-embedded .tactical-fight{height:100%;overflow:hidden}.gm-stage>.combat-preparing{height:auto;max-height:none}.combat-embedded .battle-viewport{--battle-fit-height:100cqh}}.battle-chart{isolation:isolate;grid-template-rows:24px auto;grid-template-columns:24px minmax(0,1fr);margin-inline:auto;display:grid}.battle-chart.without-coordinates{grid-template-rows:0 auto;grid-template-columns:0 minmax(0,1fr)}.battle-chart .battle-grid{grid-area:2/2;width:100%}.battle-columns{grid-area:1/2;grid-template-columns:repeat(var(--columns),minmax(0,1fr));display:grid}.battle-rows{grid-area:2/1;grid-template-rows:repeat(var(--rows),minmax(0,1fr));display:grid}.battle-columns span,.battle-rows span{color:#ecd89e;pointer-events:none;background:#0e180fe8;justify-content:center;align-items:center;font-size:11px;font-weight:700;display:flex}.battle-coordinate-corner{background:#0e180fe8;grid-area:1/1}.external-map-tools .battle-surface-head{top:8px;right:8px}.battle-side-controls{z-index:3;position:absolute;top:24px;right:18px}.combat-arena .battle-side-controls .arena-master{color:#e1c789;background:#0d180fdf;border:1px solid #8a73444d;border-radius:6px;flex-direction:column;align-items:center;gap:4px;padding:10px;display:flex}.arena-master small{letter-spacing:.12em;font-size:10px}.combat-arena .arena-map-controls{color:#c6b389;background:0 0;border:0;flex:none}.battle-side-controls .arena-master:hover{color:#ffde91;background:#25301cf0}@media (max-width:700px){.battle-side-controls{top:30px;right:6px}.combat-arena .battle-side-controls .arena-master{padding:6px}}.battle-layout{flex:1;min-width:0;min-height:0;display:flex}.battle-layout>.battle-viewport{flex:1;min-width:0}.battle-side-panel{background:#111a11;border-left:1px solid #78623c66;flex:0 0 260px;width:260px;min-width:0;padding:10px;overflow:auto}.with-side-panel .battle-chart{margin-left:0;margin-right:auto}.arena-inline-controls>.row{gap:6px;margin-bottom:8px}.arena-inline-controls .btn.sm{min-height:28px;padding:5px 8px;font-size:10px}.arena-inline-controls .fight-dice-desk{max-height:none;box-shadow:none;background:0 0;border:0;padding:0;overflow:visible}.arena-inline-controls .gm-panel-heading{background:0 0;padding:8px 0}.arena-inline-controls .fight-dice-scroll{padding:0;overflow:visible}.battle-surface:fullscreen.external-map-tools .battle-surface-head{top:52px}@media (max-width:1100px) and (min-width:701px){.battle-side-panel{flex-basis:220px;width:220px}}@media (max-width:700px){.with-side-panel{flex-direction:column}.battle-side-panel{border-top:1px solid #78623c66;border-left:0;flex:none;width:100%;max-height:350px}.combat-embedded:has(.battle-side-panel){height:auto!important}.combat-embedded:has(.battle-side-panel) .tactical-fight{height:auto;overflow:visible}.combat-embedded .with-side-panel>.battle-viewport{flex:none;height:360px}.combat-embedded:has(.battle-side-panel) .battle-surface{flex:none;height:auto}.with-side-panel .battle-chart{margin-inline:auto}}.with-side-panel{container-type:size}.with-side-panel>.battle-viewport{flex:0 1 calc((100cqh - 24px) * var(--battle-ratio) + 24px)}.with-side-panel>.battle-side-panel{flex:1 0 260px;width:auto}@media (max-width:1100px) and (min-width:701px){.with-side-panel>.battle-side-panel{flex-basis:220px}}@media (max-width:700px){.with-side-panel{container-type:normal}.with-side-panel>.battle-side-panel{flex:none;width:100%}.combat-embedded .with-side-panel>.battle-viewport{flex:none;width:100%;height:360px}}.external-map-tools .battle-viewport>.battle-surface-head{flex-wrap:wrap;max-width:calc(100% - 16px);top:8px;left:8px;right:auto}.combat-embedded .fb-top{flex-basis:82px;gap:12px;min-width:0}.combat-embedded .fb-order{flex:1;justify-content:flex-start;min-width:0;overflow-x:auto}.combat-embedded .fb-round{flex:none;margin:0}.arena-map-toolbar{flex:none;min-width:0;margin-left:auto}.arena-map-toolbar .battle-surface-head.docked{background:0 0;border:0;max-width:none;padding:0;display:flex;position:static}.arena-map-toolbar .battle-surface-head.docked>div:first-child{display:none}.arena-map-toolbar .battle-surface-head.docked>div:last-child{gap:4px}.combat-art-button{background:#0b120b;border:1px solid #7e653b;border-radius:5px;flex:0 0 42px;place-items:center;width:42px;height:42px;padding:0;transition:filter .12s,border-color .12s,transform .12s;display:grid;position:relative;box-shadow:inset 0 0 0 1px #332a1a}.combat-art-button img{object-fit:contain;border-radius:4px;width:calc(100% - 2px);height:calc(100% - 2px);margin:auto;display:block;position:absolute;inset:0}.combat-art-button:hover:not(:disabled){filter:brightness(1.3);border-color:#edc56c;transform:translateY(-1px);box-shadow:0 0 12px #f5ba4b44}.combat-art-button:focus-visible{outline-offset:2px;outline:2px solid #f3d58a}.combat-art-button:disabled{opacity:.35;filter:grayscale()}.combat-orders{flex-wrap:wrap;gap:5px;margin-bottom:8px;display:flex}.with-side-panel>.battle-viewport{flex:0 1 calc((100cqh - 24px) * var(--battle-ratio) + 24px);min-width:0}.with-side-panel>.battle-side-panel{flex:1 0 190px;width:auto;padding:8px}.arena-inline-controls .gm-panel-heading{box-shadow:none;border:0;padding:5px 0}.arena-inline-controls .gm-panel-heading h2{font-size:16px}.arena-inline-controls .dm-control-head{margin:4px 0;font-size:11px}.arena-inline-controls .dm-control-head .combat-art-button{flex-basis:30px;width:30px;height:30px}.arena-inline-controls .dm-control-roster{gap:5px;padding:3px 0}.arena-inline-controls .dm-control-roster button{background:0 0;border:0;flex:0 0 40px;width:auto;min-width:0;padding:3px}.arena-inline-controls .dm-control-roster .portrait{width:32px!important;height:32px!important}.arena-inline-controls .dm-control-roster small{display:none}.arena-inline-controls .dm-skill-control{background:0 0;border:0;margin:6px 0;padding:6px}.arena-inline-controls .dm-skill-control>.eyebrow{font-size:10px}.arena-inline-controls .dm-skill-control>small{font-size:9px}.arena-inline-controls .dm-skill-slots{flex-wrap:wrap;gap:5px;margin-top:5px;display:flex}.arena-inline-controls .dm-skill-slots button{border:1px solid #776038;border-radius:4px;width:38px;height:38px;min-height:0;padding:0;position:relative;overflow:hidden}.arena-inline-controls .dm-skill-slots img{object-fit:cover;width:100%;height:100%}.arena-inline-controls .fight-visibility,.arena-inline-controls .fight-advantage{flex-wrap:wrap;gap:4px;margin:5px 0}.arena-inline-controls .chip{min-height:24px;padding:4px 6px;font-size:10px}.arena-inline-controls .field{gap:3px;margin:5px 0;font-size:10px}.arena-inline-controls .select,.arena-inline-controls .input{min-height:28px;padding:4px 6px;font-size:11px}.arena-inline-controls .fight-attacks>div{margin:4px 0;padding:5px}.arena-inline-controls .fd-formula{padding:5px;font-size:13px}.arena-inline-controls .btn.lg{min-height:32px;padding:6px;font-size:11px}.arena-inline-controls .fight-roll-history{margin-top:6px;font-size:10px}@media (max-width:700px){.combat-embedded .fb-top{flex-wrap:wrap;flex-basis:auto;gap:6px;padding:5px}.arena-map-toolbar{margin-left:auto}.arena-map-toolbar .combat-art-button{flex-basis:30px;width:30px;height:30px}.combat-embedded .fb-unit{min-width:40px}.with-side-panel>.battle-side-panel{flex:none;width:100%;max-height:360px}.combat-embedded .with-side-panel>.battle-viewport{flex:none;height:360px}}.arena-inline-controls .dice-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.arena-inline-controls .dice-pad .die-art{width:30px;height:30px}.arena-inline-controls .dice-pad .die-btn{gap:1px;min-height:0;padding:3px}.arena-inline-controls .dice-pad .die-btn>span{font-size:9px}.arena-inline-controls .die-step{justify-content:center;gap:4px;display:flex}.arena-inline-controls .die-step button{width:24px;height:18px;min-height:0;padding:0}.arena-inline-controls .dice-hint{display:none}.arena-inline-controls .fight-attacks strong{font-size:11px}.arena-inline-controls .fight-target{padding:4px;font-size:10px}.arena-inline-controls .fd-head,.arena-inline-controls .fd-mod{margin:5px 0}.arena-inline-controls .fd-mod .label,.arena-inline-controls .fd-head .label{font-size:10px}.arena-inline-controls .fight-result{padding:6px;font-size:11px}.arena-inline-controls .fight-dice-desk:before,.arena-inline-controls .fight-dice-desk:after{content:none}.with-side-panel>.battle-side-panel{overflow-x:hidden}.arena-inline-controls,.arena-inline-controls .fight-dice-scroll,.arena-inline-controls .fight-dice-scroll>*{min-width:0;max-width:100%}.arena-inline-controls .row{flex-wrap:wrap}.arena-inline-controls .input{min-width:0;max-width:100%}.arena-inline-controls .fight-roll-history span{overflow-wrap:anywhere;min-width:0}.hud-status-icon .hud-status-tooltip{white-space:nowrap;width:max-content;max-width:80vw}.combat-action-tooltip{z-index:10000;white-space:nowrap;width:max-content;max-width:calc(100vw - 16px);display:block;position:fixed;bottom:auto;transform:translate(-50%,-100%)}.combat-embedded{container:combat-panel/inline-size}.combat-embedded.combat-preparing{padding:8px;overflow:hidden}.combat-embedded .encounter-workshop{flex:1;gap:8px;height:100%;min-height:0;padding:8px;overflow:hidden}.encounter-workshop .war-heading{align-items:center;gap:10px}.war-heading-actions{flex:none;gap:6px;margin-left:auto;display:flex}.encounter-workshop .war-heading .war-deploy-top{flex-wrap:wrap;flex:1;justify-content:flex-end;gap:8px;min-width:0}.encounter-workshop .war-heading .war-deploy-top>span{flex:none}.encounter-workshop .war-heading .war-deploy-top>b{white-space:nowrap}.encounter-workshop .war-heading h2{margin:0;font-size:clamp(18px,2vw,25px)}.encounter-workshop .war-library-tools{gap:10px}.encounter-workshop .war-steps{border:0;flex:1;justify-content:flex-start;gap:24px;padding:0}.encounter-workshop .war-steps span{align-items:center;gap:7px;font-size:10px;display:flex}.encounter-workshop .war-steps img{object-fit:contain;width:42px;height:42px;display:block}.encounter-workshop .war-map-library{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(180px,1fr);gap:10px;min-height:0;overflow:auto}.encounter-workshop .war-map-card{background:#0b120b;border:2px solid #8c7145;border-radius:4px;position:relative;overflow:hidden}.encounter-workshop .war-map-pick{height:100%;display:block;position:relative}.encounter-workshop .war-map-pick>img{aspect-ratio:auto;object-fit:cover;width:100%;height:100%;transition:transform .2s}.encounter-workshop .war-map-pick:hover>img{transform:scale(1.04)}.encounter-workshop .war-map-pick>span{pointer-events:none;background:linear-gradient(#0000,#071008f2);padding:30px 12px 12px;position:absolute;inset:auto 0 0}.encounter-workshop .war-map-controls{border:0;gap:5px;padding:0;display:flex;position:absolute;top:8px;right:8px}.encounter-workshop .war-map-controls .combat-art-button{flex-basis:32px;width:32px;height:32px}.encounter-workshop .war-deploy{flex:1;grid-template-columns:minmax(0,1fr) clamp(220px,32cqw,290px);gap:4px;min-height:200px}.encounter-workshop .war-deploy>.battle-surface{flex-direction:column;min-height:0;display:flex;overflow:hidden}.encounter-workshop .war-deploy .battle-layout{flex:1;min-height:0}.encounter-workshop .war-deploy .battle-viewport{--battle-fit-height:100cqh;justify-content:center;align-items:center;max-height:none;display:flex;container-type:size}.encounter-workshop .war-deploy .battle-chart{flex:none;margin:auto}.encounter-workshop .war-deploy .battle-caption{display:none}.encounter-workshop .war-roster{overflow:hidden}.encounter-workshop .war-roster-list{flex:1;min-height:0;max-height:none}.encounter-workshop .war-reserves{gap:5px;padding:0}.encounter-workshop .war-reserves button{padding:4px 6px}.encounter-workshop .war-roster .war-reserves{flex-direction:column;flex:1;min-height:55px;max-height:200px;overflow:auto}.encounter-workshop .war-roster-list{flex:1;min-height:70px}.war-added-heading{font-family:var(--font-display);color:#efd18f;border-top:1px solid #78623c;justify-content:space-between;align-items:center;padding-top:7px;font-size:12px;display:flex}.war-add-feedback{color:#bce19b;overflow-wrap:anywhere;flex:none;min-height:14px;font-size:10px}.war-added-unit{flex:none;align-items:center;gap:4px;min-width:0;display:flex}.war-added-unit>button:first-child{flex:1;min-width:0}.encounter-workshop .war-roster .war-reserves .war-remove-unit{color:#f6b4a4;border-color:#955142;flex:0 0 28px;place-items:center;width:28px;height:28px;padding:0;display:grid}.war-added-unit.selected{border-left:3px solid #efc66d}.war-added-unit{height:56px;transition:border-color .18s,background .18s;animation:.22s ease-out both war-fighter-enter;overflow:hidden}.war-added-unit.removing{pointer-events:none;animation:.2s ease-in both war-fighter-leave}@keyframes war-fighter-enter{0%{opacity:0;height:0;transform:translate(8px)}to{opacity:1;height:56px;transform:translate(0)}}@keyframes war-fighter-leave{0%{opacity:1;height:56px;transform:translate(0)}to{opacity:0;height:0;transform:translate(8px)}}@media (prefers-reduced-motion:reduce){.war-added-unit{animation:none}.war-added-unit.removing{opacity:0;height:0;animation:none}}.encounter-workshop .war-roster .war-reserves button{width:100%;min-width:0}.encounter-workshop .war-roster .war-reserves button>span{min-width:0}.encounter-workshop .war-roster .war-reserves b{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.encounter-workshop .war-roster .war-unit-orders{flex:none;gap:5px}.encounter-workshop .war-roster .war-unit-orders>b{flex-basis:100%}.encounter-workshop .war-roster .war-unit-orders .btn{padding:4px;font-size:9px}.encounter-workshop .war-unit-orders{padding:5px 8px}.encounter-workshop .war-launch{border:0;justify-content:flex-end;margin:0;padding:0}.encounter-workshop .war-launch .war-primary{min-height:40px;padding:5px 14px}.encounter-workshop .war-launch .war-primary>img{object-fit:contain;width:30px;height:30px}.battle-token>.portrait{grid-area:1/1;place-self:center}.battle-token>.token-health{grid-area:1/1}@container combat-panel (max-width:500px){.encounter-workshop .war-heading{flex-wrap:wrap}.encounter-workshop .war-heading .war-deploy-top{flex-basis:100%;order:3;justify-content:flex-start}.combat-embedded.combat-preparing{overflow:auto}.combat-embedded .encounter-workshop{height:auto;overflow:visible}.encounter-workshop .war-steps{flex-wrap:wrap;gap:8px}.encounter-workshop .war-steps span{gap:3px;font-size:9px}.encounter-workshop .war-steps img{width:30px;height:30px}.encounter-workshop .war-map-library{flex:none;grid-auto-rows:200px;overflow:visible}.encounter-workshop .war-deploy{flex:none;grid-template-columns:minmax(0,1fr)}.encounter-workshop .war-deploy>.battle-surface{height:340px}.encounter-workshop .war-roster-list{max-height:200px}.combat-embedded .fb-top{flex-wrap:wrap;flex-basis:auto;gap:6px}.combat-embedded .fb-order{flex:120px}.arena-map-toolbar{margin-left:auto}.arena-map-toolbar .combat-art-button{flex-basis:32px;width:32px;height:32px}.with-side-panel{flex-direction:column;overflow:auto;container-type:normal}.combat-embedded .with-side-panel>.battle-viewport{flex:none;width:100%;height:300px;min-height:300px}.with-side-panel>.battle-side-panel{flex:none;width:100%;max-height:300px}}
.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.dm-content:has(.forge){padding-bottom:16px;overflow:hidden}.forge{--forge-rim:#8a6a36;--forge-gold:#f5d78c;--forge-wood:linear-gradient(#2a1c10e6,#130c07f2),var(--tex-wood) center/cover,#20150b;flex:1;grid-template:"bar bar bar""tools stage roster"minmax(0,1fr)"shelf shelf shelf"112px/100px minmax(0,1fr) 290px;gap:12px;min-height:0;display:grid}.forge-bar,.forge-tools,.forge-roster,.forge-shelf{background:var(--forge-wood);border:2px solid var(--forge-rim);border-radius:12px;box-shadow:inset 0 0 0 1px #f5d78c26,inset 0 1px #ffe9b040,0 4px #050720,0 8px 18px #0008}.forge-bar{grid-area:bar;align-items:center;gap:12px;min-width:0;padding:8px 12px;display:flex}.forge-bar-icon{filter:drop-shadow(0 2px 2px #0008);flex:none;width:44px;height:44px}.forge-name{min-width:120px;max-width:420px;color:var(--forge-gold);font:600 24px var(--font-display);letter-spacing:.03em;text-shadow:0 2px #000a;background:0 0;border:1px solid #0000;border-radius:8px;flex:220px;padding:6px 10px;transition:border-color .15s,background .15s}.forge-name:hover{border-color:#8a6a3680}.forge-name:focus{border-color:var(--forge-gold);background:#0006;outline:none}.forge-size{position:relative}.forge-chip{border:2px solid var(--forge-rim);color:#f3e2b8;white-space:nowrap;background:linear-gradient(#3c2a16,#1d130a);border-radius:999px;align-items:center;gap:7px;height:40px;padding:0 12px 0 6px;font-size:13px;font-weight:700;transition:border-color .15s,transform .15s;display:inline-flex;box-shadow:0 2px #050720}.forge-chip:hover,.forge-chip.on{border-color:var(--forge-gold);transform:translateY(-1px)}.forge-chip>img{object-fit:contain;width:30px;height:30px}.forge-chip>img.forge-chip-thumb{object-fit:cover;border:1px solid #f5d78c80;border-radius:999px 6px 6px 999px;width:40px;height:28px}.forge-pop{z-index:30;background:var(--forge-wood);border:2px solid var(--forge-gold);border-radius:12px;grid-template-columns:repeat(3,96px);align-items:end;gap:10px;padding:14px;display:grid;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 12px 30px #000c}.forge-pop .btn{grid-column:1/-1}.forge-state{letter-spacing:.04em;color:#bce19b;background:#1d3a1580;border:1px solid #6c9a4a;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:800}.forge-state.dirty{color:#ffd98a;background:#4a32107a;border-color:#c99a3c}.forge-board-tools{margin-left:auto;display:flex}.forge-board-tools .battle-surface-head.docked{background:0 0;border:0;padding:0;display:flex;position:static}.forge-board-tools .battle-surface-head.docked>div:first-child{display:none}.forge-board-tools .battle-surface-head.docked>div:last-child{gap:5px}.forge-save{flex:none}.forge-tools{flex-direction:column;grid-area:tools;gap:10px;padding:10px;display:flex;overflow-y:auto}.forge-tool{color:#e8d6ac;background:linear-gradient(#ffffff10,#0000004d),#2b1d0f;border:2px solid #5d4626;border-radius:10px;justify-items:center;gap:3px;padding:8px 2px 7px;transition:transform .15s,border-color .15s,box-shadow .15s;display:grid;position:relative;box-shadow:inset 0 1px #ffe9b030,0 3px #050720}.forge-tool img{object-fit:contain;filter:drop-shadow(0 3px 2px #0009);width:50px;height:50px;transition:transform .2s}.forge-tool span{text-align:center;font-size:10.5px;font-weight:800;line-height:1.1}.forge-tool kbd{min-width:0;height:auto;box-shadow:none;font:800 10px/1 var(--font-body,inherit);color:#c8b48b;opacity:.7;background:0 0;border:0;padding:0;position:absolute;top:4px;right:6px}.forge-tool:hover{border-color:#c99a3c;transform:translateY(-2px)}.forge-tool:hover img{transform:scale(1.07)}.forge-tool.on{color:#fff6d6;background:radial-gradient(circle at 50% 30%,#ffe9a066,#0000 70%),linear-gradient(#7a5418,#3d2709);border-color:#ffe27a;box-shadow:inset 0 0 0 1px #fff3,0 0 0 2px #f2be45,0 0 16px #ffc83d80,0 3px #050720}.forge-tool:active{transform:translateY(1px)}.forge-stage{grid-area:stage;min-width:0;min-height:0;display:flex}.forge-stage>.battle-surface{border:2px solid var(--forge-rim);border-radius:12px;flex:1;min-width:0;min-height:0;overflow:hidden;box-shadow:0 4px #050720,0 10px 22px #0009}.forge-stage .battle-layout{flex:1;min-height:0;display:flex}.forge-stage .battle-viewport{--battle-fit-height:100cqh;flex:1;justify-content:center;align-items:center;max-height:none;display:flex;container-type:size}.forge-stage .battle-chart{flex:none;margin:auto}.forge-stage .battle-caption{color:#e8d6ac;background:#150e08;flex:none}.forge-stage:not(.tool-move) .battle-cell{cursor:crosshair}.forge-stage.tool-erase .battle-cell{cursor:cell}.forge-roster{flex-direction:column;grid-area:roster;min-height:0;display:flex;overflow:hidden}.forge-panel-head{background:#0003;border-bottom:1px solid #8a6a3680;align-items:center;gap:10px;padding:10px 12px;display:flex}.forge-panel-head img{object-fit:contain;width:40px;height:40px}.forge-panel-head div{flex:1;min-width:0}.forge-panel-head b{font:600 17px var(--font-display);color:var(--forge-gold);display:block}.forge-panel-head small{color:#c8b48b;font-size:11px}.forge-panel-head em{color:#3b2207;background:linear-gradient(#ffe27a,#c9871d);border:2px solid #3b2207;border-radius:50%;place-items:center;min-width:28px;height:28px;font-style:normal;font-weight:900;display:grid}.forge-placed{flex-direction:column;flex:0 auto;gap:6px;max-height:40%;padding:10px;display:flex;overflow-y:auto}.forge-placed-row{background:#0003;border:1px solid #8a6a3680;border-radius:8px;align-items:center;min-width:0;display:flex}.forge-placed-row.selected{border-color:var(--forge-gold);box-shadow:0 0 10px #f5d78c55}.forge-placed-row>button:first-child{text-align:left;color:#f3e2b8;flex:1;align-items:center;gap:8px;min-width:0;padding:5px;display:flex}.forge-placed-row span{min-width:0}.forge-placed-row b{white-space:nowrap;text-overflow:ellipsis;font-size:12px;display:block;overflow:hidden}.forge-placed-row small{color:#c8b48b;font-size:10px}.forge-empty{color:#c8b48b;text-align:center;margin:0;padding:8px;font-size:12px}.forge-pool{border-top:1px solid #8a6a3680;flex-direction:column;flex:1;gap:8px;min-height:0;padding:10px;display:flex}.forge-tabs{grid-template-columns:1fr 1fr;gap:6px;display:grid}.forge-tabs button{color:#e8d6ac;background:#2b1d0f;border:2px solid #5d4626;border-radius:8px;height:32px;font-size:12px;font-weight:800}.forge-tabs button.on{color:#3b2207;background:linear-gradient(#ffe27a,#d99a2b);border-color:#ffe27a}.forge-search{color:#c8b48b;background:#0005;border:1px solid #8a6a36;border-radius:8px;align-items:center;gap:6px;height:34px;padding:0 10px;display:flex}.forge-search input{color:#f3e2b8;background:0 0;border:0;outline:none;flex:1;min-width:0}.forge-pool-list{flex-direction:column;flex:1;gap:4px;min-height:0;display:flex;overflow-y:auto}.forge-add{color:#f3e2b8;text-align:left;cursor:grab;border-radius:8px;align-items:center;gap:9px;width:100%;padding:5px 8px 5px 5px;transition:background .15s;display:flex}.forge-add:hover{background:#f5d78c1f}.forge-add>b{flex:1;font-size:12.5px}.forge-add>svg{color:#ffe27a}.forge-add:disabled{opacity:.35;cursor:default}.forge-shelf{grid-area:shelf;gap:10px;padding:9px;display:flex;overflow:auto hidden}.forge-shelf>button{border:2px solid #5d4626;border-radius:9px;flex:0 0 150px;transition:transform .15s,border-color .15s;position:relative;overflow:hidden}.forge-shelf>button:hover{border-color:#c99a3c;transform:translateY(-2px)}.forge-shelf-new{color:#3b2207;place-content:center;justify-items:center;gap:4px;font-size:13px;display:grid;background:linear-gradient(#ffe27a,#d99a2b)!important;border-color:#fff1b8!important}.forge-shelf-card img,.forge-shelf-blank{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.forge-shelf-blank{background:repeating-linear-gradient(0deg,#ffffff14 0 1px,#0000 1px 14px),repeating-linear-gradient(90deg,#ffffff14 0 1px,#0000 1px 14px),#24321f}.forge-shelf-card>span{text-align:left;color:#fff3c4;background:linear-gradient(#0000,#08091ef0);gap:1px;padding:16px 8px 6px;display:grid;position:absolute;inset:auto 0 0}.forge-shelf-card b{white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.forge-shelf-card small{opacity:.85;font-size:10px}.forge-shelf-card.on{border-color:#ffe27a;box-shadow:0 0 0 2px #f2be45,0 0 14px #ffc83d80}.forge-starter.modal{width:min(980px,100vw - 32px)}.starter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.starter-card{color:#f3e2b8;text-align:center;background:var(--tex-wood) center/cover,#2b1d0f;background-blend-mode:multiply;border:2px solid #8a6a36;border-radius:14px;align-content:start;justify-items:center;gap:6px;padding:18px 12px 16px;transition:transform .18s,border-color .18s,box-shadow .18s;display:grid;box-shadow:inset 0 1px #ffe9b040,0 4px #050720}.starter-card img{object-fit:contain;filter:drop-shadow(0 6px 4px #000a);width:120px;height:120px;transition:transform .25s}.starter-card b{font:600 18px var(--font-display);color:#ffe9a8}.starter-card small{color:#d8c49a;font-size:12px}.starter-card:hover{border-color:#ffe27a;transform:translateY(-4px);box-shadow:0 0 0 2px #f2be45,0 0 22px #ffc83d66,0 6px #050720}.starter-card:hover img{transform:scale(1.08)rotate(-3deg)}.starter-card.generate{background:radial-gradient(circle at 50% 35%,#a879ff55,transparent 65%),var(--tex-wood) center/cover,#2b1d0f;background-blend-mode:normal,multiply,normal}.starter-library{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;max-height:60vh;padding:2px;display:grid;overflow-y:auto}.starter-map{aspect-ratio:4/3;border:2px solid #8a6a36;border-radius:10px;transition:transform .15s,border-color .15s;position:relative;overflow:hidden}.starter-map img{object-fit:cover;width:100%;height:100%;display:block}.starter-map b{text-align:left;color:#fff3c4;background:linear-gradient(#0000,#08091ef0);padding:20px 10px 8px;position:absolute;inset:auto 0 0}.starter-map:hover{border-color:#ffe27a;transform:translateY(-3px)}.starter-generate{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px;display:grid}.starter-generate-form{flex-direction:column;gap:12px;display:flex}.starter-generate-form textarea{resize:vertical;min-height:100px}.starter-ideas{flex-wrap:wrap;gap:6px;display:flex}.starter-generate-form>.btn{align-self:flex-start}.starter-preview{aspect-ratio:4/3;color:#e8d6ac;text-align:center;background:#0005;border:2px dashed #8a6a36;border-radius:12px;place-content:center;justify-items:center;gap:8px;padding:12px;display:grid;position:relative;overflow:hidden}.starter-preview>img:not(.starter-orb){object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.starter-preview>.btn{position:absolute;bottom:12px;right:12px}.starter-preview small{color:#c8b48b}.starter-orb{object-fit:contain;filter:drop-shadow(0 0 18px #a879ffaa);width:130px;height:130px}.starter-orb.idle{opacity:.55;filter:grayscale(.4)}.starter-preview.working .starter-orb{animation:1.8s ease-in-out infinite starter-pulse}@keyframes starter-pulse{50%{filter:drop-shadow(0 0 32px #c6a2ff);transform:scale(1.08)}}.starter-back{margin-top:14px}@media (prefers-reduced-motion:reduce){.starter-preview.working .starter-orb{animation:none}}@media (max-width:1250px){.forge{grid-template-columns:86px minmax(0,1fr) 250px}.forge-tool img{width:42px;height:42px}}@media (max-width:1100px){.dm-content:has(.forge){overflow:auto}.forge{grid-template:"bar""tools""stage"minmax(420px,70dvh)"roster""shelf"112px/minmax(0,1fr)}.forge-bar{flex-wrap:wrap}.forge-board-tools{margin-left:0}.forge{flex:none}.forge-tools{flex-direction:row;min-height:104px;overflow-x:auto}.forge-tool{flex:1 0 84px}.forge-roster{max-height:460px}.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.starter-generate{grid-template-columns:minmax(0,1fr)}}@media (max-width:560px){.forge{grid-template-rows:auto auto 360px auto 112px}.forge-bar-icon{width:36px;height:36px}.forge-name{flex:1 1 0;max-width:none;font-size:19px}.forge-pop{grid-template-columns:repeat(2,minmax(0,1fr));left:auto;right:-60px}.starter-card img{width:84px;height:84px}}
.title-menu{gap:2px}.title-menu .menu-item{box-shadow:none;background:0 0;border:0;border-radius:0;gap:16px;min-height:62px;padding:12px 14px;transition:background .2s,color .2s}.title-menu .menu-item:after{content:"";opacity:0;background:linear-gradient(90deg,#c7a66a55,#0000);height:1px;transition:opacity .2s;position:absolute;bottom:0;left:38px;right:24px}.title-menu .menu-item:hover,.title-menu .menu-item:focus-visible{filter:none;box-shadow:none;background:linear-gradient(90deg,#bd955c18,#0000);border:0;padding-left:14px;transform:none}.title-menu .menu-item:focus-visible{outline-offset:2px;outline:1px solid #d9bb7b}.title-menu .menu-item:active{box-shadow:none;background:#bd955c22;transform:none}.title-menu .menu-item:hover:after,.title-menu .menu-item:focus-visible:after{opacity:1}.mi-rune{color:#d9bb7b;opacity:.25;flex:none;width:10px;font-size:9px;transition:opacity .2s,text-shadow .2s}.menu-item:hover .mi-rune,.menu-item:focus-visible .mi-rune{opacity:1;text-shadow:0 0 12px #e7bc72}.title-shade{background:linear-gradient(90deg,#090a1ee6 0%,#090a1ec7 26%,#090a1e73 40%,#0000 56%)}.title-menu .mi-label{letter-spacing:.12em;color:#f4ead3;text-shadow:0 2px 4px #000,0 0 14px #000c;font-size:20px;font-weight:600}.title-menu .menu-item:hover .mi-label,.title-menu .menu-item:focus-visible .mi-label{color:#ffe2a4}.title-menu .mi-sub{font-family:var(--font-lore);letter-spacing:.03em;color:#e2d8c2;text-shadow:0 1px 3px #000,0 0 10px #000000d9;margin-top:2px;font-size:14.5px;font-weight:500}.title-menu .mi-rune{opacity:.55}.title-foot{color:#e6dcc6;text-shadow:0 1px 3px #000}.theme-picker .theme-swatch{text-align:center;background:linear-gradient(160deg,#211e27,#100f16);border:1px solid #9c82594d;border-radius:3px;justify-items:center;gap:8px;padding:14px 8px 12px;position:relative;box-shadow:inset 0 0 18px #0006}.theme-picker .theme-swatch:hover{border-color:#d6b574}.theme-picker .theme-swatch:focus-visible{outline-offset:3px;outline:2px solid #f3d89c}.theme-picker .theme-swatch.active{border-color:#e0c18a;box-shadow:inset 0 0 20px #d5af6220,0 0 0 1px #e0c18a55}.theme-relic{border-radius:50%;place-items:center;width:90px;height:90px;display:grid}.theme-relic svg{filter:drop-shadow(0 0 7px);width:80px;height:80px;transition:transform .25s}.theme-swatch:hover .theme-relic svg{transform:scale(1.06)}.theme-picker .theme-swatch b{color:#e8ddc5;font-weight:500}.theme-status{font-family:var(--font-lore);color:#a59b89;font-size:12px}.theme-swatch.active .theme-status{color:#f0d49c}@media (prefers-reduced-motion:reduce){.theme-relic svg,.title-menu .menu-item,.mi-rune{transition:none}}
.game-ui-icon{object-fit:contain;filter:drop-shadow(0 2px 2px #0006);flex:none;width:32px;height:32px;display:block}.game-art-control .game-ui-icon{width:28px;height:28px}.gm-panel-heading>.game-ui-icon{width:36px;height:36px}.gm-tabs button .game-ui-icon{width:28px;height:28px}.dm-bar .dm-modes{justify-content:safe center;scroll-padding-inline:8px}.dm-modes .dm-mode{flex-shrink:0}@media (min-width:1701px) and (max-width:2100px){.dm-bar{flex-wrap:wrap}.dm-bar .dm-modes{flex:1 0 100%;order:3;width:100%;min-height:48px}.dm-bar .dm-bar-actions{margin-left:auto}}.hud-side{flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}html[data-ui-theme]{--ui-accent:hsl(var(--hue2) 52% 66%);--ui-heading:hsl(var(--hue2) 60% 80%);--ui-text:hsl(var(--hue) 16% 86%);--ui-muted:hsl(var(--hue) 13% 68%);--ui-line:hsl(var(--hue2) 30% 55% / .3);--ui-panel:hsl(calc(var(--hue) - 16) 24% 11%);--ui-card:hsl(calc(var(--hue) - 12) 23% 14%);--ui-selected:hsl(var(--hue2) 30% 22%);--ui-field:linear-gradient(180deg, hsl(calc(var(--hue) - 12) 25% 23%), hsl(calc(var(--hue) - 12) 30% 13%))}html[data-ui-theme=codex]{--bone:var(--ui-text);--bone-dim:hsl(var(--hue) 16% 76%);--muted:var(--ui-muted);--line:var(--ui-line);--line-2:var(--ui-line);--surface:var(--ui-card);--window-shadow:0 10px 26px #0005;--corners:none}html[data-ui-theme=codex] .atmos{background:radial-gradient(ellipse at 50% 10%, hsl(var(--hue) 24% 20% / .5), transparent 70%), linear-gradient(hsl(var(--hue) 22% 8% / .92), hsl(var(--hue) 25% 6% / .96)), var(--tex-stone) center / cover fixed}html[data-ui-theme=codex] :is(.frame,.frame.glass,.dm-content .frame:not(.glass),.quest-shelf,.item-shelf,.outline-frame,.gm-party,.gm-story,.gm-stage,.gm-narration,.gm-hotbar,.director,.hub-card){background:linear-gradient(135deg, hsl(calc(var(--hue) - 16) 17% 15%), var(--ui-panel));border:1px solid var(--ui-line);box-shadow:var(--window-shadow);border-radius:10px}html[data-ui-theme=codex] :is(.frame.ornate,.gm-party,.gm-story,.gm-stage,.gm-narration,.gm-hotbar):before{content:none}html[data-ui-theme=codex] :is(.frame-head,.gm-panel-heading,.director-head,.rules-tabs){background:hsl(calc(var(--hue) - 16) 20% 10% / .85);border-bottom:1px solid var(--ui-line);box-shadow:none}html[data-ui-theme=codex] :is(.frame-head .h2,.frame-head .h3,.gm-panel-heading h2,.director-head .h3,.h1,.h2,.h3){color:var(--ui-heading);text-shadow:none;font-weight:500}html[data-ui-theme=codex] :is(.frame-head .eyebrow,.field>span,.label,.eyebrow){color:var(--ui-muted);text-shadow:none;font-weight:500}html[data-ui-theme=codex] :is(.modal-foot,.dm-foot,.hm-foot){background:hsl(calc(var(--hue) - 16) 24% 8%);border-color:var(--ui-line);box-shadow:none}html[data-ui-theme=codex] :is(.dm-bar,.hm-top){background:var(--ui-panel);border-bottom:1px solid var(--ui-line);box-shadow:0 4px 20px #0004}html[data-ui-theme=codex] :is(.btn,.iconbtn,.ws-back,.dm-mode,.tab,.hm-tab,.chip,.gm-tabs button,.gm-aud>button,.rules-tabs button){color:var(--ui-text);background:var(--ui-card);border:1px solid var(--ui-line);box-shadow:none;text-shadow:none;filter:none;border-radius:6px;font-weight:500;transform:none}html[data-ui-theme=codex] :is(.btn,.iconbtn,.ws-back,.dm-mode,.tab,.hm-tab,.chip,.gm-tabs button,.gm-aud>button,.rules-tabs button):hover:not(:disabled){background:hsl(calc(var(--hue) - 12) 22% 20%);border-color:var(--ui-accent);color:var(--ui-heading);filter:none;transform:none}html[data-ui-theme=codex] :is(.btn.primary,.dm-mode.active,.tab.active,.hm-tab.active,.chip.on,.gm-tabs button.on,.gm-aud>button.on,.rules-tabs button[aria-pressed=true]){background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-heading);box-shadow:inset 0 1px 0 hsl(var(--hue2) 60% 80% / .1)}html[data-ui-theme=codex] .btn.ghost{background:0 0}html[data-ui-theme=codex] :is(.btn.danger,.status-delete){color:#f0afa8;background:#402124;border-color:#bc525d99}html[data-ui-theme=codex] :is(.btn.danger,.status-delete):hover:not(:disabled){color:#f4c7c2;background:#56292e;border-color:#ca777f}html[data-ui-theme=codex] :is(.btn,.iconbtn,.dm-mode):before,html[data-ui-theme=codex] :is(.btn,.iconbtn,.dm-mode):after{content:none}html[data-ui-theme=codex] .ws-back{padding:7px 12px}html[data-ui-theme=codex] .ws-back:before{width:auto;height:auto;box-shadow:none;color:inherit;background:0 0;position:static;transform:none}html[data-ui-theme=codex] :is(.input,.select,.textarea,.rule-counter-controls .input,.rule-counter-controls>button){background:var(--ui-field);border:1px solid hsl(var(--hue) 15% 43%);color:var(--ui-text);text-shadow:none;border-radius:6px;box-shadow:inset 0 1px 3px #0003}html[data-ui-theme=codex] .select:not([multiple]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23b6bbc4' stroke-width='1.5'/%3E%3C/svg%3E"), var(--ui-field);background-position:right 10px center,50%;background-repeat:no-repeat;background-size:12px,cover;padding-right:32px}html[data-ui-theme=codex] :is(.input,.select,.textarea):focus{outline:2px solid hsl(var(--hue2) 52% 66% / .45);outline-offset:1px;border-color:var(--ui-accent);box-shadow:none}html[data-ui-theme=codex] :is(.input,.select,.textarea)::placeholder{color:var(--ui-muted)}html[data-ui-theme=codex] :is(.select option,.select optgroup){color:var(--ui-text);background:var(--ui-panel)}html[data-ui-theme=codex] :is(.quest-card,.hero-card,.cast-filter,.link-chip,.ability-card,.stat-tile,.hc-tile,.vital,.foe,.gm-quest,.quest-tile,.ol-scene,.ol-chapter,.roster-card,.status-reference-entry){background:var(--ui-card);border:1px solid var(--ui-line);box-shadow:none;border-radius:8px}html[data-ui-theme=codex] :is(.quest-card,.link-chip,.quest-tile,.ol-scene):hover{background:hsl(calc(var(--hue) - 12) 22% 18%);box-shadow:none;transform:none}html[data-ui-theme=codex] :is(.quest-card.active,.link-chip.on,.quest-tile.on,.ol-scene.active){background:var(--ui-selected);border-color:var(--ui-accent);box-shadow:inset 3px 0 var(--ui-accent)}html[data-ui-theme=codex] :is(.qc-text b,.qt-text b,.gm-quest header b,.card-title){color:var(--ui-heading);text-shadow:none;font-weight:500}html[data-ui-theme=codex] :is(.qc-text small,.qt-text small,.cf-count,.gq-giver){color:var(--ui-muted);font-weight:500}html[data-ui-theme=codex] :is(.tag,.tag.gold){border:1px solid var(--ui-line);background:var(--ui-selected);color:var(--ui-heading);box-shadow:none;text-shadow:none}html[data-ui-theme=codex] .tag.green{color:#9fdbb8;background:#1e3829}html[data-ui-theme=codex] .tag.red{color:#f0afa8;background:#402124}html[data-ui-theme=codex] .gq-check{background:var(--ui-panel);border:1px solid var(--ui-line);box-shadow:none;border-radius:5px}html[data-ui-theme=codex] .gq-check.done{background:var(--ui-accent);color:var(--ui-panel)}html[data-ui-theme=codex] .hero-menu{background:var(--ui-panel)}html[data-ui-theme=codex] .hm-bg{opacity:.12}html[data-ui-theme=codex] :is(.slot,.equip-slot){border-color:var(--ui-line);box-shadow:inset 0 1px 4px #0004}html[data-ui-theme=codex] :is(.sl-card,.sl-card.passive-library-card,.sl-search){background:var(--ui-card);border:1px solid var(--ui-line);box-shadow:none;color:var(--ui-text)}html[data-ui-theme=codex] :is(.sl-kind-tabs,.sl-groups) button{background:var(--ui-card);border:1px solid var(--ui-line);color:var(--ui-text);box-shadow:none;border-radius:6px;font-weight:500}html[data-ui-theme=codex] :is(.sl-kind-tabs,.sl-groups) button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-heading)}html[data-ui-theme=codex] .armoury-layout :is(.armoury-detail>.frame,.item-shelf){background:var(--ui-panel);border:1px solid var(--ui-line)}html[data-ui-theme=chronicle] .armoury-layout :is(.armoury-detail>.frame,.item-shelf){background:var(--leather) padding-box, var(--rim) border-box;box-shadow:var(--window-shadow);border:4px solid #0000}html[data-ui-theme] .quest-book{--quest-ink:var(--ui-text);color:var(--ui-text)}html[data-ui-theme] :is(.quest-book-heading,.quest-book-heading h2,.quest-book-paper h3,.quest-book-index-title,.quest-book-objectives h4,.quest-book-reward p){color:var(--ui-heading)}html[data-ui-theme] :is(.quest-book-kicker,.quest-book-giver,.quest-book-signature,.quest-book-blank,.quest-book-status button,.quest-book-reward>span){color:var(--ui-muted)}html[data-ui-theme=codex] .quest-book-pages{background:var(--ui-panel);border:1px solid var(--ui-line);box-shadow:var(--window-shadow);border-radius:10px;overflow:hidden}html[data-ui-theme=codex] .quest-book-index{background:var(--ui-panel);border-right:1px solid var(--ui-line)}html[data-ui-theme=codex] .quest-book-paper{background:var(--ui-card)}html[data-ui-theme=codex] .quest-book-ribbons{gap:8px;padding:0 0 12px}html[data-ui-theme=codex] .quest-book-ribbons button{clip-path:none;background:var(--ui-card);border:1px solid var(--ui-line);color:var(--ui-text);border-radius:6px;padding:12px 16px}html[data-ui-theme=codex] .quest-book-ribbons button.selected{background:var(--ui-selected);border-color:var(--ui-accent)}html[data-ui-theme=codex] .quest-book-ribbons button.selected :is(span,small,svg){color:var(--ui-heading)}html[data-ui-theme=codex] .quest-book-entry{color:var(--ui-text);border:1px solid var(--ui-line);border-radius:6px;padding:12px}html[data-ui-theme=codex] .quest-book-entry.selected{color:var(--ui-heading);background:var(--ui-selected);border-color:var(--ui-accent)}html[data-ui-theme=chronicle] .quest-book-pages{background:var(--leather);box-shadow:var(--window-shadow);border:4px solid #0000;border-image:;border-radius:12px}html[data-ui-theme=chronicle] .quest-book-index{background:hsl(var(--hue) 48% 12% / .65)}html[data-ui-theme=chronicle] .quest-book-paper{background:var(--leather)}html[data-ui-theme=chronicle] .quest-book-ribbons button{background:var(--plank);color:hsl(var(--hue2) 80% 80%)}html[data-ui-theme=chronicle] .quest-book-ribbons button.selected{background:var(--gold)}html[data-ui-theme=chronicle] .quest-book-ribbons button.selected :is(span,small,svg){color:hsl(var(--hue2) 70% 12%)}html[data-ui-theme=chronicle] .quest-book-entry{color:var(--ui-text)}html[data-ui-theme=chronicle] .quest-book-entry.selected{color:var(--ui-heading);background:hsl(var(--hue2) 70% 40% / .2)}html[data-ui-theme=chronicle] .dm-content .rules-tome.frame{background:linear-gradient(180deg, hsl(var(--hue) 46% 21%), hsl(var(--hue) 52% 14%)) padding-box, var(--rim) border-box;box-shadow:var(--window-shadow);border:4px solid #0000;border-radius:12px}html[data-ui-theme=chronicle] :is(.rules-tabs,.rules-foot){background:var(--plank);border-color:hsl(var(--hue2) 70% 51%)}html[data-ui-theme=chronicle] .rules-tabs button{background:linear-gradient(180deg, hsl(var(--hue) 46% 32%), hsl(var(--hue) 50% 20%));border:2px solid var(--outline);box-shadow:inset 0 1px #ffffff30, 0 3px 0 var(--outline);color:hsl(var(--hue2) 75% 85%);text-shadow:0 1px #000}html[data-ui-theme=chronicle] .rules-tabs button[aria-pressed=true]{background:var(--gold);color:hsl(var(--hue2) 75% 12%);box-shadow:inset 0 1px #ffffff70, 0 3px 0 var(--outline)}html[data-ui-theme=chronicle] :is(.rules-character,.rules-growth){background:var(--leather)}html[data-ui-theme=chronicle] :is(.rules-roster,.rules-level-editor,.rules-summary){background:hsl(var(--hue) 48% 12% / .65);border-color:hsl(var(--hue2) 45% 42% / .5)}html[data-ui-theme=chronicle] :is(.rules-roster>button,.rules-stat-grid .rule-counter,.rules-reward-counters .rule-counter,.rules-growth-counters .rule-counter,.rules-ledger-entry,.status-reference-entry){background:var(--surface);border:2px solid var(--outline);box-shadow:inset 0 1px #ffffff20, 0 3px 0 var(--outline);border-radius:12px}html[data-ui-theme=chronicle] .rules-roster>button.chosen{background:hsl(var(--hue2) 70% 40% / .22);border-color:hsl(var(--hue2) 80% 65%);box-shadow:0 0 0 1px var(--outline)}html[data-ui-theme=chronicle] :is(.rule-counter-controls>button,.rule-counter-controls .input,.rules-level-picker button){background:linear-gradient(180deg, hsl(var(--hue) 46% 31%), hsl(var(--hue) 50% 17%));border:2px solid var(--outline);box-shadow:inset 0 1px #ffffff30, 0 2px 0 var(--outline);color:hsl(var(--hue2) 75% 85%)}html[data-ui-theme=chronicle] :is(.rules-character-heading h2,.rules-section-title h2,.rules-section-title h3,.rules-preview-heading){color:hsl(var(--hue2) 90% 83%);text-shadow:0 2px #000;font-weight:700}.modal.appearance-modal{width:min(760px,100%)}.appearance-picker{gap:26px;display:grid}.appearance-section-head{color:var(--ui-accent);align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.appearance-section-head svg{flex:none;margin-top:3px}.appearance-section-head h3{color:var(--ui-heading);font-family:var(--font-display);font-size:16px}.appearance-section-head p{color:var(--ui-muted);margin:5px 0 0;font-size:13px;line-height:1.5}.ui-theme-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.ui-theme-card{text-align:left;background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:8px;flex-direction:column;gap:12px;min-width:0;padding:10px;transition:border-color .15s;display:flex}.ui-theme-card:hover{border-color:var(--ui-accent)}.ui-theme-card.active{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}.ui-theme-card:focus-visible,.appearance-picker .theme-swatch:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}.ui-theme-preview{background:var(--ui-card);border:1px solid var(--ui-line);width:100%;height:134px;color:var(--ui-heading);border-radius:6px;flex-direction:column;display:flex;overflow:hidden}.preview-heading{border-bottom:1px solid var(--ui-line);font-family:var(--font-display);align-items:center;gap:10px;padding:10px 12px;font-size:13px;display:flex}.preview-layout{flex:1;grid-template-columns:55px 1fr;min-height:0;display:grid}.preview-roster{border-right:1px solid var(--ui-line);align-content:start;gap:8px;padding:10px;display:grid}.preview-roster i{background:hsl(var(--hue) 15% 40% / .4);border-radius:3px;height:15px}.preview-roster i:first-child{background:var(--ui-selected);border:1px solid var(--ui-accent)}.preview-content{align-content:start;gap:7px;padding:12px;display:grid}.preview-content>i{background:var(--ui-muted);opacity:.35;border-radius:2px;width:65%;height:5px}.preview-content>i:first-child{background:var(--ui-heading);opacity:.8;width:42%}.preview-content>span{gap:8px;margin-top:5px;display:flex}.preview-content>span i{background:var(--ui-field);border:1px solid var(--ui-line);border-radius:4px;width:29px;height:25px}.preview-chronicle{background:var(--leather) padding-box, var(--rim) border-box;box-shadow:0 3px 0 var(--outline);border:3px solid #0000}.preview-chronicle .preview-heading{background:var(--plank);color:hsl(var(--hue2) 80% 80%);border-bottom:2px solid var(--ui-accent);text-shadow:0 1px #000}.preview-chronicle .preview-roster i{background:hsl(var(--hue) 48% 28%);border:1px solid var(--outline);box-shadow:0 2px 0 var(--outline)}.preview-chronicle .preview-roster i:first-child{background:var(--gold)}.preview-chronicle .preview-content>span i{background:linear-gradient(hsl(var(--hue) 45% 45%), hsl(var(--hue) 50% 25%));border:2px solid var(--outline);box-shadow:0 2px 0 var(--outline)}.ui-theme-card-title{justify-content:space-between;align-items:center;gap:8px;padding:0 3px;display:flex}.ui-theme-card-title b{color:var(--ui-heading);font-family:var(--font-display);font-size:16px;font-weight:500}.ui-theme-card-title>span{color:var(--ui-muted);align-items:center;gap:4px;font-size:11px;display:inline-flex}.ui-theme-card.active .ui-theme-card-title>span{color:var(--ui-accent)}.ui-theme-description{color:var(--ui-muted);padding:0 3px 5px;font-size:12px;line-height:1.5}.appearance-picker .theme-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.appearance-picker .theme-swatch{background:var(--ui-panel);border-color:var(--ui-line);min-width:0;box-shadow:none;padding:10px 6px}.appearance-picker .theme-swatch.active{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}.appearance-picker .theme-swatch:hover{border-color:var(--ui-accent)}.appearance-picker .theme-relic{width:64px;height:64px}.appearance-picker .theme-relic svg{width:58px;height:58px}.appearance-picker .theme-swatch b{color:var(--ui-text);letter-spacing:0;font-size:12px}.appearance-picker .theme-status{color:var(--ui-muted)}.appearance-picker .theme-swatch.active .theme-status{color:var(--ui-accent)}.appearance-note{border-top:1px solid var(--ui-line);color:var(--ui-muted);margin:0;padding-top:16px;font-size:12px;line-height:1.5}@media (max-width:520px){.ui-theme-picker{grid-template-columns:1fr}.appearance-picker .theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-theme-preview{height:112px}.appearance-picker{gap:22px}html[data-ui-theme=codex] .quest-book-ribbons button{padding:10px 6px}}@media (prefers-reduced-motion:reduce){.ui-theme-card{transition:none}}.dm-modes .dm-mode-group{flex-shrink:0;align-items:center;gap:4px;display:flex}.dm-modes .dm-mode-group+.dm-mode-group:before{content:"";background:linear-gradient(135deg,#ffe9a0,#b9832c);flex:none;width:7px;height:7px;margin:0 clamp(6px,.9vw,14px);transform:rotate(45deg);box-shadow:0 0 6px #f2be4580}
.gate-screen{background:#07091c;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:hidden}.gate-art{filter:saturate(1.1)brightness(.55);background:url(/game/scenes/title.webp) 50%/cover no-repeat;position:absolute;inset:-20px}.gate-art:after{content:"";background:radial-gradient(#080a1c59 0%,#080a1cd9 75%);position:absolute;inset:0}.gate-card{text-align:center;background:linear-gradient(#181c42f0,#0e1028f5);border:1px solid #e8c47873;border-radius:6px;justify-items:center;gap:14px;width:min(440px,100%);padding:34px 30px 28px;display:grid;position:relative;box-shadow:0 24px 60px #0000008c,inset 0 0 0 1px #ffffff0a}.gate-mark{width:72px;height:72px}.gate-title{font-family:var(--font-display);letter-spacing:.14em;color:#f4e2b8;text-shadow:0 2px 10px #0009;margin:0;font-size:30px;font-weight:600}.gate-text{color:#e9e3d2;margin:0;font-size:16px;line-height:1.5}.gate-form{gap:12px;width:100%;display:grid}.gate-form .input{text-align:center;min-height:50px;font-size:17px}.gate-error{color:#ff9b8a;margin:0;font-size:14px}.gate-hint{color:#b9b3a3;margin:2px 0 0;font-size:12.5px}.gate-actions{gap:10px;width:100%;margin-top:6px;display:grid}.gate-card .loader-sigil{margin:6px 0}.title-party{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0a0c20d1;border:1px solid #e8c4784d;border-radius:6px;width:min(260px,100vw - 40px);padding:12px 14px;position:absolute;top:72px;right:clamp(20px,5vw,80px);box-shadow:0 12px 30px #0006}.title-party-head{font-family:var(--font-display);letter-spacing:.18em;text-transform:uppercase;color:#e8c478;margin-bottom:8px;font-size:12px}.title-party ul{gap:8px;max-height:40vh;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.title-party li{align-items:center;gap:10px;display:flex}.title-party li span{min-width:0;display:grid}.title-party li b{color:#f3eee2;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;overflow:hidden}.title-party li small{color:#c4bdab;font-size:12px}.title-party li.is-dm small{color:#e8c478}@media (max-width:900px){.title-party{display:none}}
