*{box-sizing:border-box}html{background:var(--ink);scroll-behavior:smooth}body{margin:0;color:var(--text);font-family:var(--font-body);background:radial-gradient(ellipse at 50% 5%,#23323855,transparent 62%),repeating-linear-gradient(125deg,#ffffff01 0 1px,transparent 1px 5px),#0b1318;min-height:100dvh}button,a,input{ -webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a{touch-action:manipulation}button{border:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--teal-bright);outline-offset:4px}a{color:inherit;text-decoration:none}button svg{pointer-events:none}rpg-icon{display:inline-flex;width:24px;height:24px;flex:none}rpg-icon svg{width:100%;height:100%}rpg-panel,resource-bar,equipment-slot,stat-tile{display:block}button:disabled:hover{filter:none}::selection{background:#417a70}#app{outline:none;padding:28px 24px 130px;max-width:1240px;margin:auto}.lab-bar{height:77px;padding:0 max(24px,calc((100vw - 1192px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #a580501f;background:#0a1119bb;font-family:Arial,sans-serif}.lab-brand{display:flex;align-items:center;gap:12px;color:#ddc39a;font-size:16px;letter-spacing:3px;font-weight:600}.lab-brand>rpg-icon{height:37px;width:32px}.lab-brand small{display:block;color:#7b898b;font-size:8px;letter-spacing:3.1px;margin-top:6px}.screen-switch{display:flex;align-items:center;gap:7px;font-size:12px}.screen-switch a{padding:12px 19px;border:1px solid transparent;border-radius:6px;color:#899798}.screen-switch a.active{border-color:#a3834e55;background:#b1945c0c;color:#e3ccaa}.lab-version{font-size:10px;letter-spacing:1px;color:#7b898b;display:flex;align-items:center;gap:8px}.lab-version i{width:5px;height:5px;background:#5a9b83;border-radius:50%;box-shadow:0 0 8px #5a9b8366}.window-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.window-title{display:flex;align-items:center;justify-content:center;gap:22px}.window-title h1{font-size:25px;font-weight:500;letter-spacing:4px;margin:0}.title-ornament{width:55px;height:1px;background:linear-gradient(90deg,transparent,var(--bronze));position:relative}.title-ornament:after{content:'';width:5px;height:5px;position:absolute;right:0;top:-2px;background:var(--bronze-light);transform:rotate(45deg)}.title-ornament:last-child{transform:rotate(180deg)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #a7865866;border-radius:8px;background:linear-gradient(#2b3539,#121e24);box-shadow:inset 0 1px #e8c89135,0 2px 4px #0004;color:#d9ba83}.icon-button:hover{border-color:var(--bronze-light);background:linear-gradient(#39403b,#15272b)}.icon-button rpg-icon{width:23px;height:23px}.rpg-panel{position:relative;border:1px solid #ba9766;border-radius:var(--radius-panel);background:radial-gradient(ellipse at top,#30393b44,transparent 70%),linear-gradient(120deg,#1d272d,#121c21);box-shadow:var(--frame-shadow);isolation:isolate;overflow:hidden}.rpg-panel:before{content:'';pointer-events:none;position:absolute;inset:5px;border:1px solid #aa87532b;border-radius:calc(var(--radius-panel) - 5px);z-index:-1}.hero-summary{display:grid;grid-template-columns:1fr 1.5fr;align-items:center;padding:21px 26px;margin-bottom:19px;gap:25px}.hero-identity{display:flex;align-items:center;gap:16px}.hero-crest{height:49px;width:44px;color:#d4b37b}.hero-name{font-size:30px;font-weight:500;letter-spacing:2px;line-height:1;margin:0 0 7px}.hero-subtitle{display:flex;align-items:center;gap:8px;color:#b8aa93;font-size:13px;letter-spacing:.2px}.hero-subtitle .dot{font-size:8px;color:#7e7059}.hero-level{color:#ead6aa}.resources{display:grid;gap:10px;border-left:1px solid #806a4444;padding-left:25px}.resource-caption{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#cbbca1;margin-bottom:5px;font-variant-numeric:tabular-nums;letter-spacing:.4px}.resource-caption em{color:#8a9695;font-style:normal;font-size:11px}.resource-track{height:9px;background:#090f13;border:1px solid #b18c5466;border-radius:5px;overflow:hidden;box-shadow:0 1px #ffffff08,inset 0 2px 4px #0009;position:relative}.resource-fill{height:100%;border-radius:3px;position:relative;background:linear-gradient(#e95c4e,#aa2b28 50%,#d34335);box-shadow:0 0 12px #d6474566;transition:width .35s ease}.resource-fill:before{content:'';height:1px;position:absolute;left:2px;right:2px;top:1px;background:#ffe2ad90}.mana .resource-fill{background:linear-gradient(#51b8ec,#1c699e 50%,#2499cf);box-shadow:0 0 12px #378bcb88}.character-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:23px;align-items:start}.equipment-panel{padding:16px 20px 20px}.panel-overline{font-family:Arial,sans-serif;text-align:center;color:#978e79;font-size:9px;letter-spacing:3px;text-transform:uppercase;margin:6px 0 17px}.equipment-stage{display:grid;grid-template-columns:var(--slot-size) minmax(0,1fr) var(--slot-size);position:relative;gap:8px}.equipment-column{display:grid;grid-template-rows:repeat(6,var(--slot-size));gap:9px;z-index:2}.equipment-slot{position:relative;display:grid;place-items:center;padding:1px;width:100%;aspect-ratio:1/1;height:auto;min-width:0;border-radius:var(--radius-slot);background:linear-gradient(135deg,#e5c795,#94714a 35%,#53412e 65%,#c1a171);border:1px solid #7e694a;box-shadow:0 2px 4px #0005,inset 0 1px #ffe2ac25;overflow:hidden;transition:filter .15s,transform .15s,border-color .15s}.equipment-slot:before{content:'';position:absolute;inset:1px;border-radius:calc(var(--radius-slot) - 2px);background:radial-gradient(ellipse at top,#20343b,#0d1b21);box-shadow:inset 0 2px 5px #000b}.equipment-slot:after{content:'';position:absolute;inset:2px;border-radius:calc(var(--radius-slot) - 3px);border:0;pointer-events:none}.equipment-slot img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;border-radius:calc(var(--radius-slot) - 2px);mix-blend-mode:normal}.equipment-slot>rpg-icon{width:38%;height:38%;color:#746c57;position:relative;z-index:1;opacity:.6}.equipment-slot:hover{filter:brightness(1.18);border-color:#f2d9a2}.equipment-slot:active{transform:scale(.96)}.equipment-slot[data-quality=rare]{background:linear-gradient(135deg,#f3d69b,#b48b48 40%,#785c39 65%,#d5b174)}.equipment-slot[data-quality=rare]:after{border-color:#bba67455}.equipment-slot[data-quality=uncommon]:after{border-color:#4da49133}.equipment-slot.is-selected{outline:2px solid var(--teal-bright);outline-offset:2px}.equipped-dot{position:absolute;z-index:2;right:7px;bottom:7px;width:5px;height:5px;background:#79d5b1;border-radius:50%;box-shadow:0 0 4px #10bb76}.hero-figure{position:relative;align-self:stretch;min-width:0;z-index:1;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}.hero-figure:before{content:'';position:absolute;inset:2% -25% -2%;background:radial-gradient(ellipse at 50% 60%,#b78a4533,transparent 66%);z-index:-1}.hero-figure:after{content:'';position:absolute;width:150%;height:17%;bottom:0;border-radius:50%;border:1px solid #a88a3a22;background:radial-gradient(ellipse,#71502933,transparent 68%);transform:perspective(150px) rotateX(40deg);z-index:-1}.hero-image{position:absolute;bottom:-1%;height:104%;max-width:190%;object-fit:contain;filter:drop-shadow(0 4px 10px #0009);mask-image:linear-gradient(to bottom,#000 97%,transparent);}.hero-nameplate{position:absolute;bottom:0;left:50%;transform:translateX(-50%);z-index:2;border:1px solid #8b704b66;border-radius:5px;background:linear-gradient(#17232cee,#0f1a20ee);padding:5px 13px;white-space:nowrap;font-size:11px;color:#d4c4a4;letter-spacing:.8px}.weapon-row{display:flex;justify-content:center;gap:9px;position:relative;z-index:2;margin-top:17px}.weapon-row equipment-slot{width:var(--slot-size);flex:none}.equipment-footnote{display:flex;justify-content:center;align-items:center;gap:6px;color:#7f8c88;margin-top:16px;font-family:Arial,sans-serif;font-size:10px}.equipment-footnote rpg-icon{width:12px;height:12px}.stat-column{display:grid;gap:23px}.stats-panel{padding:20px}.section-heading{display:flex;align-items:center;justify-content:center;gap:11px;margin-bottom:19px}.section-heading h2{font-size:17px;font-weight:500;letter-spacing:1.2px;white-space:nowrap;margin:0;color:#e7d4ad}.heading-line{height:1px;flex:1;max-width:70px;background:linear-gradient(90deg,transparent,#ac8956);position:relative}.heading-line:after{content:'';position:absolute;right:0;top:-1px;width:3px;height:3px;transform:rotate(45deg);background:#ad8b56}.heading-line:last-of-type{transform:rotate(180deg)}.attribute-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.attribute-grid stat-tile{display:flex;gap:10px;align-items:center;padding:13px 11px;border:1px solid #8a745052;border-radius:8px;background:linear-gradient(115deg,#27313777,#111d2277);box-shadow:inset 0 1px #ffffff07;min-width:0}.stat-icon{display:grid;place-items:center;width:34px;height:37px;border:1px solid #b9a06855;border-radius:9px;color:#ddbd7f;background:#725c3422}.stat-icon.red{color:#e5ac8a;background:#8f4c3c22;border-color:#9e665b77}.stat-icon.green{color:#a6c69c;background:#496b4622;border-color:#5b805877}.stat-icon.blue{color:#99c1da;background:#35608022;border-color:#53758f77}.stat-icon.purple{color:#cfb0da;background:#754c7c22;border-color:#8d699477}.stat-copy{min-width:0;flex:1}.stat-copy>span{font-size:13px;white-space:nowrap}.stat-copy small{display:block;font-family:Arial,sans-serif;font-size:9px;color:#8a9691;margin-top:6px;white-space:nowrap}.stat-copy small:empty{display:none}stat-tile strong{font-size:25px;font-weight:500;font-variant-numeric:tabular-nums}.stats-note{font-family:Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:6px;margin:15px 0 0;color:#8c9b93;font-size:10px}.stats-note i{width:5px;height:5px;background:#65bda1;border-radius:50%}.combat-grid{--combat-column-gap:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px var(--combat-column-gap)}.combat-stat{display:flex;align-items:center;gap:9px;padding:8px 0 10px;border-bottom:1px solid #9e855528;min-width:0}.combat-stat rpg-icon{width:20px;height:20px;color:#c2a675}.combat-stat span{font-size:13px;flex:1;color:#c7b99e}.combat-stat strong{font-size:19px;font-weight:500;font-variant-numeric:tabular-nums}.resistances{display:flex;justify-content:space-around;gap:10px;padding:17px 0 0;margin-top:5px}.resistance{display:flex;align-items:center;gap:7px;font-size:14px}.resistance rpg-icon{width:18px;height:20px}.resistance small{display:none}.fire{color:#e0a063}.cold{color:#7fc6d8}.lightning{color:#e4c56f}.resistance strong{font-weight:500}.inventory-trigger{width:100%;margin-top:22px;padding:17px 22px;display:flex;align-items:center;gap:16px;text-align:left;border:1px solid #c0a06b;border-radius:10px;background:linear-gradient(115deg,#145c5b,#123d40 60%,#153e40);box-shadow:var(--frame-shadow);position:relative}.inventory-trigger>rpg-icon{width:34px;height:34px;color:#e5c28b}.inventory-trigger .inventory-label{flex:1;font-size:21px;letter-spacing:1px}.inventory-trigger .inventory-label small{font-family:Arial,sans-serif;display:block;font-size:10px;color:#9db9ad;margin-top:5px;letter-spacing:.2px}.inventory-count{font-size:21px;border-left:1px solid #b1be9a44;padding-left:24px}.inventory-count em{font-size:16px;font-style:normal;color:#87aaa0}.inventory-trigger:hover{filter:brightness(1.12)}.inventory-panel{margin-top:23px;padding:22px}.inventory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.inventory-toolbar h2{margin:0;font-size:19px;font-weight:500}.inventory-toolbar span{font-family:Arial,sans-serif;font-size:11px;color:var(--muted)}.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:11px}.inventory-grid equipment-slot{width:100%;max-width:90px}.inventory-hint{color:#8e9e96;font:11px/1.6 Arial,sans-serif;margin-bottom:0}.game-nav{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:10;display:grid;grid-template-columns:1fr 1fr 1.12fr 1fr 1fr;align-items:center;width:min(540px,calc(100% - 28px));padding:5px 9px;border:1px solid #ac8a54;border-radius:16px;background:linear-gradient(#263034f5,#111e23fa);box-shadow:0 0 0 2px #0b1115,0 0 0 3px #5b4734,0 -5px 30px #0008,inset 0 1px #ead1a63b;backdrop-filter:blur(12px)}.nav-item{display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;min-height:64px;border-radius:9px;background:none;color:#a99c84;padding:6px 1px;font-size:12px;position:relative}.nav-item>rpg-icon{height:23px;width:23px}.nav-item.active{color:#ede4cc;background:linear-gradient(#1f62636e,#17424744);box-shadow:inset 0 1px #60bbae22}.nav-item.active:after{content:'';position:absolute;bottom:0;width:20px;height:2px;border-radius:2px;background:#67c6b0}.nav-item:hover{color:#f8dcaa}.dice-action{margin:-26px auto -4px;width:79px;height:79px;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#27736e,#123e42 70%);border:2px solid #ddc08b;border-radius:50%;box-shadow:0 0 0 3px #3a2a20,0 0 0 4px #b29360,inset 0 0 0 4px #122e32,0 3px 15px #0008;color:#f2d19b}.dice-action rpg-icon{width:43px;height:43px;filter:drop-shadow(1px 2px 1px #0006)}.dice-action:hover{filter:brightness(1.25)}.dice-action:active{transform:scale(.95)}.game-button{min-height:45px;padding:11px 20px;border:1px solid #b99a68;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(#32403f,#19262b);box-shadow:inset 0 1px #ffdda835,0 2px 4px #0004;font-size:14px;color:#e8d6b3}.game-button.primary{background:linear-gradient(#236e67,#16423f);border-color:#b49c67}.game-button.danger{color:#e6a196;border-color:#9d625a66;background:linear-gradient(#462f2c,#2b2221)}.game-button.ghost{border-color:#7e6b4755;background:#18232a}.game-button rpg-icon{width:18px;height:18px}.game-button:hover{filter:brightness(1.15)}.game-button:active{transform:translateY(1px)}.dialog{padding:0;border:1px solid #c1a477;border-radius:15px;background:linear-gradient(130deg,#263238,#131f25);box-shadow:0 0 0 3px #30291d,0 20px 100px #000a;color:var(--text);width:min(430px,calc(100% - 34px));max-height:calc(100dvh - 50px);overflow-y:auto}.dialog::backdrop{background:#050b11c9;backdrop-filter:blur(7px)}.dialog-content{padding:25px}.dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.dialog-top h2{margin:2px 0 7px;font-size:22px;font-weight:500;line-height:1.3}.dialog-top small{font-family:Arial,sans-serif;font-size:10px;color:#98aea2;letter-spacing:.4px}.dialog-close{flex:none;width:34px;height:34px;min-height:34px}.dialog-close rpg-icon{width:18px;height:18px}.item-art{width:94px;height:94px;border-radius:12px;padding:5px;background:#111f29;border:1px solid #ae906056;margin:0 auto 18px;display:block;object-fit:contain}.item-description{font-size:14px;line-height:1.65;color:#c2b69f;margin:0 0 20px}.item-stat{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #b69b7022;padding:10px 0;font-size:14px}.item-stat strong{font-weight:500;color:#a7d3aa}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.dialog-actions .game-button{flex:1}.slot-status{display:inline-flex;gap:5px;align-items:center;margin:15px 0 0;color:#95a99c;font:11px Arial,sans-serif}.slot-status rpg-icon{height:13px;width:13px}.empty-copy{line-height:1.6;color:#b6ab97}.toast{position:fixed;left:50%;bottom:120px;transform:translate(-50%,12px);max-width:calc(100% - 36px);width:max-content;background:#23332ff5;border:1px solid #9b8b61;border-radius:8px;color:#e5dbc2;padding:12px 20px;z-index:100;box-shadow:0 10px 30px #0008;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;font:13px/1.4 Arial,sans-serif;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.journal-list{padding:0;list-style:none;margin:0}.journal-list li{padding:12px 0;border-bottom:1px solid #bda56d22;font-size:14px;line-height:1.5}.journal-list time{display:block;color:#82958b;font:10px Arial,sans-serif;margin-bottom:5px}.dice-dialog{text-align:center}.roll-result{display:grid;place-items:center;width:130px;height:130px;margin:25px auto;background:radial-gradient(#287168,#132f35 70%);border:1px solid #c4a26d;clip-path:polygon(50% 0,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%);font-size:58px;color:#f4dcad;filter:drop-shadow(0 0 12px #1a696740)}.roll-caption{color:#a1b6a8;font-size:13px}.dice-dialog .game-button{width:100%}.component-intro{margin:3px 0 30px;display:flex;justify-content:space-between;align-items:center;gap:15px}.component-intro h1{font-size:29px;font-weight:500;margin:0 0 10px;letter-spacing:1px}.component-intro p{font:13px/1.7 Arial,sans-serif;color:#8b9c97;margin:0;max-width:470px}.components-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.component-card{padding:25px}.component-caption{font:10px Arial,sans-serif;color:#82968e;letter-spacing:1px;margin:20px 0 0}.button-examples{display:flex;gap:10px;flex-wrap:wrap}.slot-examples{display:flex;gap:13px;align-items:center;flex-wrap:wrap}.slot-example{display:flex;flex-direction:column;gap:12px;align-items:center}.slot-example equipment-slot{width:66px}.slot-example small{font:10px Arial,sans-serif;color:#a9987e}.component-card .resources{padding:0;border:0}.token-swatches{display:flex;flex-wrap:wrap;gap:20px}.swatch{display:flex;flex-direction:column;gap:9px;font:10px Arial,sans-serif;color:#9baba3}.swatch i{display:block;width:45px;height:45px;border:1px solid #cba86b55;border-radius:8px}.component-nav-example{height:120px;position:relative}.component-nav-example .game-nav{position:absolute;bottom:5px;max-width:100%;box-shadow:0 0 0 2px #0b1115,0 0 0 3px #5b4734}.component-card.wide{grid-column:1/-1}.screen-footer{display:flex;justify-content:center;gap:22px;margin:28px 0 0;font:10px Arial,sans-serif;color:#677a75;letter-spacing:.4px}.screen-footer button{font:inherit;background:none;color:#a19276;text-decoration:underline;text-underline-offset:3px;min-height:32px}.local-label{font-family:Arial,sans-serif;text-align:center;color:#687f76;font-size:9px;letter-spacing:1px;margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1100px){:root{--slot-size:65px}.equipment-panel{padding:20px 30px 22px}.equipment-column{gap:12px}.hero-image{height:106%}.stats-panel{padding:26px}.hero-summary{padding:23px 30px}.hero-name{font-size:34px}.stat-column{gap:23px}.combat-stat{padding:12px 0}.attribute-grid stat-tile{padding:17px 12px}.stat-copy>span{font-size:14px}.stat-copy small{font-size:10px}.resistances{padding-top:25px}.resistance small{display:inline;font-size:11px;color:#a6a18c}.equipment-footnote{margin-top:19px}.inventory-trigger{padding:19px 25px}}
@media(max-width:900px){.lab-version{display:none}#app{max-width:650px;padding:22px 18px 130px}.character-layout{grid-template-columns:1fr;gap:22px}.hero-summary{grid-template-columns:1fr 1.6fr;padding:19px 20px;gap:18px}.hero-crest{display:none}.resources{padding-left:18px}.equipment-panel{padding:17px 26px 20px}.equipment-column{gap:11px}.hero-figure .hero-image{height:103%;max-width:165%}.stat-column{gap:22px}.stat-copy>span{font-size:16px}.attribute-grid stat-tile{padding:14px}.stat-copy small{font-size:10px}.combat-stat span{font-size:15px}.combat-stat strong{font-size:22px}.combat-grid{--combat-column-gap:25px;gap:9px var(--combat-column-gap)}.resistance small{display:inline;font-size:11px;color:#a6a18c}.section-heading h2{font-size:18px}.hero-name{font-size:28px}.hero-subtitle{font-size:12px}.window-heading{margin-bottom:21px}.window-title h1{font-size:23px}.title-ornament{width:35px}.screen-footer{gap:15px}.components-grid{grid-template-columns:1fr}.component-card.wide{grid-column:auto}}
@media(max-width:480px){:root{--slot-size:clamp(46px,13.3vw,63px)}.lab-bar{height:61px;padding:0 16px;gap:5px}.lab-brand{gap:7px;font-size:11px;letter-spacing:2px}.lab-brand>rpg-icon{width:24px;height:29px}.lab-brand small{font-size:6px;letter-spacing:1.5px;margin-top:4px}.screen-switch{gap:1px;font-size:10px}.screen-switch a{padding:10px 10px}.lab-brand{flex:none}#app{padding:19px 13px 125px}.window-heading{margin-bottom:19px}.window-title{gap:10px}.window-title h1{font-size:20px;letter-spacing:2.5px}.title-ornament{width:22px}.icon-button{width:38px;height:38px}.window-heading>.icon-button{width:44px;height:44px}.hero-summary{padding:16px 16px;gap:12px;margin-bottom:20px;grid-template-columns:1fr 1.55fr}.hero-name{font-size:25px;letter-spacing:1px}.hero-subtitle{flex-wrap:wrap;gap:6px;font-size:10px}.resources{padding-left:13px;gap:9px}.resource-caption{font-size:10px;letter-spacing:0}.resource-caption em{font-size:9px}.resource-track{height:8px}.equipment-panel{padding:12px 17px 17px}.panel-overline{font-size:8px;letter-spacing:2.5px;margin:7px 0 16px}.equipment-column{gap:9px}.equipment-stage{gap:5px}.hero-figure .hero-image{height:104%;max-width:195%;bottom:0}.hero-nameplate{font-size:9px;padding:4px 9px}.weapon-row{gap:10px;margin-top:14px}.equipment-footnote{font-size:9px;margin-top:13px}.stats-panel{padding:18px 14px}.attribute-grid{gap:9px}.attribute-grid stat-tile{padding:10px 9px;gap:8px}.stat-icon{width:29px;height:34px;border-radius:7px}.stat-icon rpg-icon{width:22px;height:22px}.stat-copy>span{font-size:13px}.stat-copy small{font-size:8px;margin-top:5px}stat-tile strong{font-size:24px}.section-heading{margin-bottom:16px;gap:9px}.section-heading h2{font-size:16px;letter-spacing:.8px}.heading-line{max-width:40px}.combat-grid{--combat-column-gap:18px;gap:7px var(--combat-column-gap)}.combat-stat{gap:8px;padding:7px 0 9px}.combat-stat rpg-icon{width:18px;height:18px}.combat-stat span{font-size:12px}.combat-stat strong{font-size:19px}.resistances{gap:4px;padding-top:17px}.resistance{gap:6px;font-size:13px}.resistance small{display:inline;font-size:10px}.resistance rpg-icon{width:15px;height:18px}.inventory-trigger{padding:16px;margin-top:22px;gap:13px}.inventory-trigger>rpg-icon{width:29px;height:29px}.inventory-trigger .inventory-label{font-size:19px;letter-spacing:.5px}.inventory-trigger .inventory-label small{font-size:9px}.inventory-count{font-size:20px;padding-left:15px}.inventory-count em{font-size:14px}.game-nav{width:calc(100% - 24px);bottom:max(12px,env(safe-area-inset-bottom));padding:4px 6px;border-radius:13px}.nav-item{font-size:11px;min-height:58px;gap:4px}.nav-item>rpg-icon{height:22px;width:22px}.dice-action{width:69px;height:69px;margin-top:-23px}.dice-action rpg-icon{width:37px;height:37px}.component-intro{align-items:flex-start}.component-intro h1{font-size:25px}.component-intro p{font-size:12px}.component-intro>.icon-button{flex:none}.component-card{padding:20px 16px}.component-card .section-heading h2{font-size:16px}.component-caption{font-size:9px;line-height:1.6}.inventory-panel{padding:20px 16px}.inventory-grid{grid-template-columns:repeat(4,1fr);gap:12px}.screen-footer{font-size:9px}.toast{bottom:105px;font-size:12px}.dialog-content{padding:22px}.dialog-top h2{font-size:21px}.slot-example equipment-slot{width:61px}.slot-examples{gap:10px}.slot-example small{font-size:9px}.component-card .stat-copy>span{font-size:12px}}
@media(max-width:355px){.lab-brand small{display:none}.lab-brand{font-size:10px}.screen-switch a{padding:9px 8px}.resistance small{display:none}.hero-subtitle .hero-origin,.hero-subtitle .dot{display:none}.stat-copy>span{font-size:12px}.attribute-grid stat-tile{gap:6px;padding:9px 7px}.stat-icon{width:25px}.window-title h1{font-size:18px}.hero-image{max-width:180%}.title-ornament{width:13px}.equipment-panel{padding-inline:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* A label never competes with its value on narrow character cards. */
@media(max-width:480px){.attribute-grid stat-tile{position:relative;display:block;min-height:79px;padding:11px 10px}.attribute-grid .stat-icon{position:absolute;left:10px;top:9px;width:23px;height:25px;border:0;background:none}.attribute-grid .stat-icon rpg-icon{width:21px;height:21px}.attribute-grid .stat-copy>span{display:block;padding-left:29px;font-size:12px;line-height:22px;white-space:nowrap}.attribute-grid .stat-copy small{margin-top:13px;padding-right:30px;font-size:8px;line-height:14px;white-space:normal}.attribute-grid stat-tile strong{position:absolute;right:10px;bottom:10px;font-size:25px}.dialog-close{width:44px;height:44px;min-height:44px}}
@media(max-width:355px){.attribute-grid .stat-copy>span{font-size:11px;padding-left:23px}.attribute-grid .stat-icon{left:8px;width:19px}.attribute-grid .stat-icon rpg-icon{width:18px}.attribute-grid stat-tile{padding-inline:7px}.attribute-grid .stat-copy small{font-size:7px;padding-right:24px}.attribute-grid stat-tile strong{right:7px;font-size:22px}}
/* Bag equipment shares the same square slot component as character gear. */
.bag-rack{padding:17px 0 20px;border-top:1px solid #a5805033;border-bottom:1px solid #a5805033;margin-bottom:21px}.bag-rack-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:12px}.bag-rack-heading h3{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500;color:#d8c6a2;margin:0}.bag-rack-heading h3 rpg-icon{width:18px;height:20px;color:#b89b66}.bag-rack-heading>span{font:10px Arial,sans-serif;color:#8da298}.bag-slots{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:12px;max-width:900px}.bag-cell{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}.bag-cell equipment-slot{width:100%;max-width:72px}.bag-cell small{font:10px Arial,sans-serif;color:#9eac9c}.bag-cell:has([locked]) small{color:#66756f}.equipment-slot.is-locked{background:linear-gradient(135deg,#6e705e,#44473f);border-color:#595d4d;box-shadow:0 1px 3px #0005}.equipment-slot.is-locked:before{background:repeating-linear-gradient(135deg,#ffffff02 0 1px,transparent 1px 5px),#152024}.equipment-slot.is-locked>rpg-icon{width:33%;height:33%;color:#919a83;opacity:.55}.equipment-slot.is-locked:hover{filter:brightness(1.12);border-color:#97947a}.bag-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:19px;font:12px Arial,sans-serif;color:#99a99c;flex-wrap:wrap}.bag-summary strong{font-weight:500;color:#dbc79f}.bag-summary em{font-style:normal;color:#6f837a;margin:0 5px}.world-travel-bonus{display:flex;align-items:center;gap:7px}.world-travel-bonus rpg-icon{width:15px;height:15px;color:#87b7a2}.world-travel-bonus strong{color:#8ed3b6}.bag-hint{font:11px/1.7 Arial,sans-serif;color:#7d9187;margin:13px 0 0;max-width:610px}.inventory-items-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.inventory-items-heading h3{margin:0;font-size:15px;font-weight:500;color:#cbbd9e}.inventory-items-heading span{font:10px Arial,sans-serif;color:#82998a}
@media(max-width:700px){.bag-slots{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 12px}.bag-cell equipment-slot{max-width:70px}.bag-rack-heading{margin-bottom:16px}.bag-summary{font-size:11px;gap:10px}.bag-hint{font-size:10px}.bag-rack{padding-top:16px}.bag-cell small{font-size:9px}}
@media(max-width:355px){.bag-slots{gap:14px 7px}.bag-summary{font-size:10px}.bag-cell small{font-size:8px}}
.bag-toggle{width:100%;min-height:44px;text-align:left;background:none;padding:0;color:inherit;margin-bottom:12px}.bag-heading-title{display:flex;align-items:center;gap:8px;font:500 15px var(--font-body);color:#d8c6a2}.bag-heading-title>rpg-icon{width:18px;height:20px;color:#b89b66}.bag-toggle-status{display:flex;align-items:center;gap:10px;font:10px Arial,sans-serif;color:#8da298}.bag-chevron{width:15px;height:15px;transform:rotate(90deg);transition:transform .15s}.bag-toggle[aria-expanded=false]{margin-bottom:0}.bag-toggle[aria-expanded=false] .bag-chevron{transform:rotate(-90deg)}.bag-toggle:hover .bag-heading-title{color:#f0dcaf}.bag-rack:has(.bag-toggle[aria-expanded=false]){padding-bottom:12px}
/* The bag rack folds completely into the inventory's shared header. */
.inventory-header{gap:12px;margin-bottom:16px;min-height:44px}.inventory-header-actions{display:flex;align-items:center;gap:15px;flex:none}.inventory-header-actions>[data-capacity-count]{font:11px Arial,sans-serif;color:#9aab9f;white-space:nowrap}.bag-header-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 10px;background:linear-gradient(#28363077,#17252055);border:1px solid #a68a5144;border-radius:7px;color:#cdb98f}.bag-header-toggle>rpg-icon:first-child{width:18px;height:20px}.bag-header-toggle>span{font:11px Arial,sans-serif;color:#b7c3a9}.bag-header-toggle .bag-chevron{width:12px;height:12px;transform:rotate(90deg)}.bag-header-toggle[aria-expanded=false] .bag-chevron{transform:rotate(-90deg)}.bag-header-toggle:hover{border-color:#c1a67599;background:#31413977}.bag-header-toggle[aria-expanded=true]{border-color:#73a08a77}.bag-rack{padding-top:17px}.inventory-panel:not(:has(.bag-rack:not([hidden]))) .inventory-items-heading{padding-top:16px;border-top:1px solid #a5805033}
@media(max-width:480px){.inventory-header-actions{gap:10px}.bag-header-toggle{gap:6px;padding:0 8px}.inventory-header-actions>[data-capacity-count]{font-size:10px}.inventory-header h2{font-size:19px}}

.resistances{flex-wrap:wrap}.resistance{min-width:0}

.attribute-points{display:flex;align-items:center;gap:9px;padding:12px;margin:0 0 12px;border:1px solid #bda36b66;border-radius:7px;background:#a5805012;color:#dfc695;font:12px/1.5 Arial,sans-serif}.attribute-points rpg-icon{width:18px;height:18px}.attribute-points span{flex:1;min-width:0}.attribute-points strong{font-size:21px}.development-points{display:flex;justify-content:space-between;gap:10px;margin:0 0 16px;color:#b3a1d0;font:12px Arial,sans-serif}.development-points strong{font-size:15px}.combat-subheading{margin:19px 0 11px;font-size:15px;font-weight:500;color:#d9c6a2}.typed-damage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.typed-damage{display:flex;align-items:center;gap:7px;padding:9px 0;min-width:0;border-bottom:1px solid #a580501c}.typed-damage rpg-icon{width:19px;height:19px}.typed-damage span{flex:1;font:11px/1.5 Arial,sans-serif;color:#b1b8b2;min-width:0}.typed-damage strong{font-size:16px;font-weight:500}.element-light{--element-color:#f3d983}.element-dark{--element-color:#b799e7}.element-fire{--element-color:#ed9b62}.element-cold{--element-color:#8acde7}.element-lightning{--element-color:#ecd46e}.element-poison{--element-color:#94ce79}.typed-damage rpg-icon,.typed-damage strong,.resistance[class*=element-] rpg-icon,.resistance[class*=element-] strong{color:var(--element-color)}.resistances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.resistance{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px;padding:10px 5px}.resistance small{display:block!important;color:#acb8b3;font-size:10px}.resistance strong{font-size:14px}

/* Shared elemental rows: identical geometry for damage and resistance. */
.resistances.typed-damage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:0;padding-top:0;border-top:0}.resistances .resistance.typed-damage{justify-content:flex-start;flex-wrap:nowrap;gap:7px;padding:9px 0;border-radius:0;background:none;border-bottom:1px solid #a580501c}.resistances .resistance.typed-damage rpg-icon{width:19px;height:19px}.resistances .resistance.typed-damage strong{font-size:16px;font-weight:500}
/* Shared point ledger and two-row attributes. */
.points-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 14px;padding:14px 0;background:linear-gradient(90deg,#a5805014,#159c9409);border-block:1px solid #a580503d}
.points-balance{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px;color:#e3c18a;min-width:0}.points-balance+.points-balance{border-left:1px solid #a580503d}.points-caption{display:flex;align-items:center;gap:9px;min-width:0}.points-caption rpg-icon{width:18px;height:18px}.points-caption>span{font:12px/1.4 Arial,sans-serif;color:#ddcba9}.points-caption small{display:block;font:10px/1.5 Arial,sans-serif;color:#8f9d96;margin-top:4px}.points-balance>strong{font:500 27px/1 var(--font-body);font-variant-numeric:tabular-nums}.development-balance{color:#96c5b8}
.attributes-panel .attribute-grid{gap:0 18px}.attributes-panel .attribute-grid stat-tile{position:relative;display:grid;grid-template-columns:19px minmax(0,1fr) auto;grid-template-rows:28px;align-items:center;gap:0 5px;padding:10px 0 27px;background:none;border:0;border-bottom:1px solid #a5805033;border-radius:0;box-shadow:none}.attributes-panel .attribute-grid .stat-icon{position:static;inset:auto;grid-column:1;grid-row:1;width:19px;height:23px;background:none;border:0;padding:0;border-radius:0}.attributes-panel .stat-icon rpg-icon{width:19px;height:21px}.attributes-panel .attribute-grid .stat-copy{display:contents}.attributes-panel .attribute-grid .stat-copy>span{grid-column:2;grid-row:1;font:13px/1.3 var(--font-body);padding:0;white-space:nowrap}.attributes-panel .attribute-grid .stat-copy small{position:absolute;left:0;right:0;bottom:8px;padding:0;margin:0;font:9px/1.5 Arial,sans-serif;color:#8e9a92;white-space:nowrap}.attributes-panel .attribute-grid stat-tile>strong{position:static;inset:auto;grid-column:3;grid-row:1;align-self:center;font:500 24px/1 var(--font-body);color:#e8d6b0;font-variant-numeric:tabular-nums}.attributes-panel .stats-note{margin:14px 0 0}
@media(max-width:480px){.points-balance{padding:0 10px;gap:6px}.points-caption{gap:6px}.points-caption rpg-icon{width:15px;height:15px}.points-caption>span{font-size:11px}.points-caption small{font-size:9px}.points-balance>strong{font-size:25px}.attributes-panel .attribute-grid{gap:0 14px}.attributes-panel .stat-icon rpg-icon{width:19px;height:21px}.attributes-panel .attribute-grid .stat-copy>span{font-size:12px}}
@media(max-width:355px){.points-balance{padding:0 7px}.points-caption rpg-icon{display:none}.points-caption>span{font-size:10px}.points-caption small{font-size:8px}.attributes-panel .attribute-grid{gap:0 10px}.attributes-panel .attribute-grid .stat-copy>span{font-size:10px}.attributes-panel .attribute-grid .stat-copy small{font-size:8px}.attributes-panel .attribute-grid stat-tile>strong{font-size:22px}.attributes-panel .attribute-grid stat-tile{grid-template-columns:16px minmax(0,1fr) auto;column-gap:4px}.attributes-panel .attribute-grid .stat-icon,.attributes-panel .attribute-grid .stat-icon rpg-icon{width:16px;height:20px}}

.stats-panel{--element-column-gap:20px}.typed-damage-grid,.resistances.typed-damage-grid{column-gap:var(--element-column-gap)}
@media(max-width:900px){.stats-panel{--element-column-gap:25px}}
@media(max-width:480px){.stats-panel{--element-column-gap:18px}}

.stat-adjust-button{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;background:none;color:#d9c18b;border:0;border-radius:6px}.stat-adjust-button rpg-icon{width:26px;height:26px;padding:5px;border:1px solid #a5805088;border-radius:5px;background:linear-gradient(#354239,#19282a)}.stat-adjust-button:hover:not(:disabled) rpg-icon{border-color:#dfc181;color:#ffe2a7;background:#344a40}.stat-adjust-button:disabled{opacity:.3}.stat-adjust-button.is-minus{color:#d5a89c}.stat-adjust-button.is-minus rpg-icon{border-color:#a5766688;background:linear-gradient(#3d3030,#251f25)}.attributes-panel .attribute-grid stat-tile[adjustable]{padding-bottom:44px}.attributes-panel .attribute-grid stat-tile>.stat-adjust-button{position:absolute;bottom:1px;right:-7px}.attributes-panel .attribute-grid stat-tile[adjustable] .stat-copy small{right:36px;bottom:16px;white-space:normal;font-size:8px;line-height:1.4}.stat-adjust-examples{display:flex;flex-wrap:wrap;gap:18px}.stat-adjust-examples>div{display:flex;align-items:center;gap:5px}.stat-adjust-examples span{font:11px/1.5 Arial,sans-serif;color:#b5b9aa}

.element-physical{--element-color:#dbbd91}.damage-bonus-conditions{margin-top:12px;padding:10px 0;border-bottom:1px solid #a580501c}.damage-bonus-conditions p{display:flex;gap:7px;margin:0;font:11px/1.6 Arial,sans-serif;color:#a8b5ad}.damage-bonus-conditions rpg-icon{width:14px;height:14px;margin-top:2px}

.element-elemental{--element-color:#88cfc2}

.stamina .resource-fill{background:linear-gradient(#f0cd70,#ac7929 50%,#dba447);box-shadow:0 0 12px #dba44766}.stamina .resource-spark{background:#ffe6a1}.hero-summary .resources{gap:10px}

.secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--element-column-gap)}.secondary-stat{display:flex;align-items:center;gap:7px;min-width:0;padding:12px 0;border-bottom:1px solid #a5805033}.secondary-stat rpg-icon{width:19px;height:19px;color:#a4bbaa}.secondary-stat span{flex:1;min-width:0;font:12px/1.5 Arial,sans-serif;color:#c1b49b}.secondary-stat strong{font:500 23px/1 var(--font-body);color:#e3c18a}.secondary-panel .section-heading h2{font-size:15px;letter-spacing:.5px}

.element-weapon{--element-color:#dbbd91}

.secondary-modifier{display:block;margin-top:4px;font:10px/1.4 Arial,sans-serif;color:#97bca3;text-align:right}

@media(max-width:480px){.secondary-grid{grid-template-columns:1fr}.secondary-stat span{font-size:13px}}

button.secondary-stat{width:100%;text-align:left;background:none;min-height:44px;border-radius:0}.secondary-stat:hover,.secondary-stat:focus-visible{background:#a580500d}.secondary-tooltip{position:fixed;z-index:3000;max-width:min(280px,calc(100vw - 24px));padding:12px 14px;border:1px solid #a5805088;border-radius:8px;background:#142126;color:#e1d4b9;box-shadow:0 6px 24px #0008;font:12px/1.65 Arial,sans-serif;pointer-events:none}
.quick-loadout{margin:16px 0 20px;padding-bottom:12px;border-bottom:1px solid #a18c5533}.quick-item-options{display:grid;gap:8px;margin-bottom:14px}.quick-item-options>button{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #a18c5555;border-radius:8px;background:#172820;text-align:left}.quick-item-options img{width:44px;height:44px;border-radius:6px}.quick-item-options strong{display:block;font-size:14px}.quick-item-options small{display:block;font:11px/1.5 Arial,sans-serif;color:#9aad94;margin-top:5px}.inventory-item-stack{position:relative;min-width:0}.inventory-item-count{position:absolute;bottom:4px;right:5px;z-index:1;pointer-events:none;padding:2px 4px;border-radius:3px;background:#102019e6;color:#f2dcaa;font:10px Arial,sans-serif}

.quick-slot-index{position:absolute;top:5px;left:6px;z-index:1;pointer-events:none;color:#d9c393;font:9px Arial,sans-serif;text-shadow:0 1px 3px #000}
.quick-loadout{padding:20px;margin:22px 0}.quick-loadout .inventory-items-heading h3{font-size:20px}.quick-loadout .inventory-hint{margin-bottom:0}@media(max-width:700px){.quick-loadout{padding:20px 16px}}

.nav-toggle{display:none}
@media(max-width:1200px){
 .lab-bar{position:relative;height:61px;padding:0 16px;gap:12px;z-index:30}
 .lab-bar .lab-version{display:none}
 .nav-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:none;margin-left:auto;width:42px;height:42px;border:1px solid #a7865866;border-radius:9px;background:linear-gradient(#2b3833,#14231f);color:#ddc39a;box-shadow:inset 0 1px #e8c89120}
 .nav-toggle span{display:block;width:19px;height:2px;border-radius:2px;background:currentColor}
 .nav-toggle[aria-expanded=true] span:first-child{transform:translateY(7px) rotate(45deg)}
 .nav-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
 .nav-toggle[aria-expanded=true] span:last-child{transform:translateY(-7px) rotate(-45deg)}
 .lab-bar .screen-switch{display:none;position:absolute;top:calc(100% + 6px);right:12px;left:12px;padding:8px;gap:4px;flex-direction:column;align-items:stretch;border:1px solid #a7865877;border-radius:12px;background:linear-gradient(135deg,#24362d,#111e1b);box-shadow:0 12px 30px #0009;font-size:14px}
 .lab-bar .screen-switch.is-open{display:flex}
 .lab-bar .screen-switch a{padding:13px 16px;border-radius:7px}
 .lab-bar .screen-switch a.active{background:#b1945c17;border-color:#a3834e66;color:#efdaad}
 .lab-bar .screen-switch a:hover{background:#ffffff08}
}

.more-menu-list{display:grid;gap:8px}.more-menu-list>button{display:flex;align-items:center;gap:14px;width:100%;padding:15px 12px;text-align:left;border:1px solid #a7865844;border-radius:9px;background:linear-gradient(120deg,#293b31,#192720);color:#e2cba5}.more-menu-list>button>span:first-of-type{flex:1}.more-menu-list small{display:block;margin-top:5px;color:#9caf9e;font:11px/1.5 Arial,sans-serif}.more-menu-list>button:hover{border-color:#d1b079}.crafting-empty{text-align:center;padding:22px 10px;color:#c5b899}.crafting-empty>rpg-icon{width:42px;height:42px;color:#d5b780}.crafting-empty p{font:14px/1.7 var(--font-body)}.crafting-empty small{color:#91a595}

.equipment-count{position:absolute;z-index:3;right:3px;bottom:3px;padding:2px 4px;border-radius:3px;background:#101b18e8;color:#f0d7a7;font:bold 11px/1.2 Arial,sans-serif;pointer-events:none}

@media(max-width:480px){.combat-stat[data-stat="attackDamage"],.combat-stat[data-stat="spellDamage"]{grid-column:1/-1}.combat-stat[data-stat="attackDamage"] span,.combat-stat[data-stat="spellDamage"] span{font-size:13px}}

/* Active tabs use their surface and icon color, without a bottom stripe. */
.game-nav .nav-item.active:after{content:none}
