@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Inter:wght@400;500;700&display=swap');
:root{--ink:#241b16;--paper:#f5eddb;--wine:#6b2635;--gold:#d9ad58;--muted:#776d62;--edge:#dac9ae}*{box-sizing:border-box}body{margin:0;background:#211a17;color:var(--ink);font:15px Inter,system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:7px;background:var(--wine);color:white;padding:10px 14px;font-weight:700}button.secondary{background:#e7dbc4;color:var(--ink)}input,select,textarea{width:100%;padding:10px;border:1px solid var(--edge);border-radius:7px;background:#fffdf8}textarea{min-height:90px}.shell{min-height:100vh;background:radial-gradient(circle at top,#4b2a25,#211a17 55%)}.top{padding:24px max(24px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;color:#f7e8c9}.brand{font:36px 'IM Fell English',serif;color:#efc874}.brand small{font:13px Inter;color:#e4d6be}.page{max-width:1180px;margin:auto;padding:0 24px 48px}.paper{background:var(--paper);border:1px solid #b99359;border-radius:12px;box-shadow:0 16px 45px #0007;padding:25px}.login{max-width:450px;margin:9vh auto}.login h1,h1,h2,h3{font-family:'IM Fell English',serif;margin-top:0}.login h1{font-size:47px;color:var(--wine)}.field{display:grid;gap:6px;margin:12px 0}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.space{justify-content:space-between}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.card{background:#fffaf0;border:1px solid var(--edge);padding:17px;border-radius:9px}.card h3{font-size:24px;margin-bottom:7px}.muted{color:var(--muted)}.source{min-height:180px;background-size:cover;background-position:center;position:relative;color:#fff}.source:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#1c1614e8)}.source>*{position:relative}.tag{display:inline-block;background:#ede0c4;color:#5c3523;border-radius:999px;padding:3px 8px;font-size:12px;margin:2px}.tabs{display:flex;gap:5px;margin-bottom:14px;border-bottom:1px solid var(--edge)}.tabs button{border-radius:7px 7px 0 0;background:transparent;color:var(--ink)}.tabs button.active{background:var(--wine);color:white}.columns{display:grid;grid-template-columns:1fr 1.35fr;gap:18px}.character{border-left:4px solid var(--gold)}.statline{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.stat{background:#ead9ba;border-radius:7px;padding:8px;text-align:center;min-width:65px}.stat b{display:block;font-size:20px}.entry{border-bottom:1px solid var(--edge);padding:13px 0}.entry:last-child{border:0}.combatant{display:grid;grid-template-columns:1fr 95px 100px auto;gap:8px;align-items:center;border-bottom:1px solid var(--edge);padding:10px 0}.combatant.active{background:#f7df9d;margin:0 -8px;padding:10px 8px}.notice{background:#e7f1df;border-left:4px solid #50833a;padding:10px;margin:12px 0}.error{background:#f7dddd;border-left-color:#a33}.modal{position:fixed;inset:0;background:#0008;display:grid;place-items:center;padding:18px;z-index:5}.modal .paper{max-width:520px;width:100%;max-height:90vh;overflow:auto}.cover{height:90px;width:70px;object-fit:cover;border-radius:4px;float:right;margin-left:8px}.hidden{display:none}@media(max-width:700px){.columns{grid-template-columns:1fr}.combatant{grid-template-columns:1fr 75px}.top{padding:18px}.page{padding:0 12px 30px}.paper{padding:16px}}
.library-dock{position:fixed;right:18px;bottom:18px;width:min(340px,calc(100vw - 36px));max-height:55vh;overflow:auto;background:#fffaf0;border:1px solid #b98b4a;border-radius:10px;box-shadow:0 10px 30px #0006;padding:12px;z-index:3}.library-dock input{margin:8px 0}.library-dock article{padding:8px 0;border-top:1px solid var(--edge);font-size:12px}
.monster-text{white-space:pre-wrap;max-height:60vh;overflow:auto;background:#fffdf8;border:1px solid var(--edge);padding:12px;font:13px/1.45 Georgia,serif}
.monster-modal h2{font-size:38px;color:#7b1e22;margin:8px 0;font-family:'IM Fell English',serif}.stat-block{font:15px/1.35 Georgia,serif;border:1px solid #8c8172;border-radius:6px;background:linear-gradient(#fffdf7dd,#f5ecdc);padding:12px;margin:12px 0;box-shadow:inset 0 0 20px #bda77b33}.stat-source{font:11px Inter;color:#776d62;text-transform:uppercase;letter-spacing:.08em}.stat-top{border-bottom:1px solid #b98b4a;color:#532225}.stat-top p,.stat-section p{margin:6px 0}.stat-columns{columns:2 260px;column-gap:22px}.stat-section{break-inside:avoid;display:inline-block;width:100%}.stat-section h3{color:#7b1e22;border-top:1px solid #b98b4a;border-bottom:1px solid #b98b4a;margin:14px 0 7px;font-size:18px;letter-spacing:.05em}.monster-art{max-width:100%;max-height:260px;object-fit:cover;border-radius:6px}@media(max-width:600px){.stat-columns{columns:1}}
.catalog-filters{display:grid;grid-template-columns:2fr repeat(3,1fr) auto;gap:10px;padding:14px;background:#eadfca;border:1px solid var(--edge);border-radius:9px;margin:14px 0}.catalog-filters label{display:grid;gap:4px;font-size:12px;font-weight:700}.catalog-filters:has(#catalogSize){grid-template-columns:2fr repeat(4,minmax(0,1fr)) auto}.catalog-row{display:grid;grid-template-columns:48px minmax(180px,1fr) minmax(170px,1fr) auto;align-items:center;gap:14px;padding:13px;border-bottom:1px solid var(--edge);background:#fffaf0}.catalog-row h3{margin:0;font-size:20px}.catalog-row p,.catalog-meta{margin:3px 0 0;color:var(--muted);font-size:13px}.catalog-meta{display:grid;gap:4px}.catalog-cr{font-weight:800;text-align:center;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;background:#6b2635;color:#fff}@media(max-width:700px){.catalog-filters:has(#catalogSize),.catalog-filters{grid-template-columns:1fr}.catalog-row{grid-template-columns:42px 1fr auto}.catalog-meta{grid-column:2/4}}
.modal-paper{position:relative}.modal-close{position:absolute;right:10px;top:10px;width:34px;height:34px;padding:0;border-radius:50%;font-size:25px;line-height:1;background:#fffaf0;color:var(--wine);border:1px solid var(--edge);z-index:1}.modal-close:hover{background:var(--wine);color:#fff}
.modal .paper.monster-sheet-modal{max-width:min(1180px,96vw);width:96vw;max-height:96vh;padding:28px}.monster-art-wrap{float:right;width:min(470px,45%);margin:0 0 18px 24px}.monster-sheet-modal .monster-art{display:block;width:100%;max-height:520px;object-fit:contain;background:#251e1a}.monster-art-edit{display:block;margin:7px auto 0;padding:0;border:0;border-radius:0;background:none;color:#8b4b17;text-decoration:underline;font-size:13px}.structured-block{clear:both}.stat-type{font-style:italic;margin-top:0}.monster-highlights{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}.monster-highlights span,.ability{background:#ead9ba;padding:8px;border-radius:5px;display:grid;gap:2px}.monster-highlights b{font-size:11px;text-transform:uppercase}.ability-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:12px 0}.ability{text-align:center}.ability span{font-size:20px;font-weight:700}.monster-details{border-top:1px solid #b98b4a;border-bottom:1px solid #b98b4a;padding:5px 0}@media(max-width:700px){.modal .paper.monster-sheet-modal{width:100%;max-height:100vh;border-radius:0}.monster-art-wrap{float:none;width:100%;max-width:440px;margin:0 auto 16px}.monster-highlights{grid-template-columns:repeat(2,1fr)}.ability-grid{grid-template-columns:repeat(3,1fr)}}
.monster-art-fallback{float:right;display:grid;gap:7px;width:min(320px,36%);margin:0 0 16px 22px;padding:0;border:0;background:none;color:#8b4b17;text-align:center;font-weight:700;cursor:pointer}.monster-art-fallback .monster-art{float:none;width:100%;max-width:none;margin:0;border:2px dashed #b98b4a}.modal .paper.monster-crop-modal{max-width:100vw;width:100vw;height:100vh;max-height:100vh;padding:8px;border-radius:0;overflow:hidden}.monster-crop-modal .monster-cropper>header{display:flex;align-items:baseline;gap:10px}.monster-crop-modal .monster-cropper>header h2{margin:0}.crop-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:5px 0}.crop-controls label{display:flex;align-items:center;gap:5px}.crop-controls input[type=number]{width:75px}.crop-zoom input{width:150px}.monster-crop-stage{height:calc(100vh - 112px);overflow:auto;display:grid;place-items:start center;background:#251e1a;border:2px solid #b98b4a}.monster-cropper canvas{display:block;max-width:none;max-height:none;cursor:crosshair;touch-action:none}@media(max-width:700px){.monster-art-fallback{float:none;width:100%;max-width:320px}.crop-controls{gap:5px}.crop-controls button{font-size:12px;padding:7px 8px}.crop-zoom input{width:90px}.monster-crop-stage{height:calc(100vh - 160px)}}
.page:has(.sorcerer-builder){max-width:none;padding:0}.sorcerer-builder{min-height:calc(100vh - 91px);background:var(--paper)}.builder-top{height:58px;padding:9px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--edge);background:#fffaf0}.builder-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(370px,43vw);min-height:calc(100vh - 149px)}.builder-flow{padding:clamp(28px,5vw,76px);display:flex;flex-direction:column}.builder-steps{display:flex;border-bottom:1px solid var(--edge);margin-bottom:clamp(24px,4vw,52px);overflow:auto}.builder-steps button{color:var(--ink);background:none;border-radius:0;border-bottom:3px solid transparent;padding:9px 12px;white-space:nowrap}.builder-steps button.active{border-color:var(--wine);color:var(--wine)}.builder-steps small{display:block;font-size:11px;font-weight:500}.builder-panel,.builder-footer{width:min(760px,100%);margin:0 auto}.builder-panel h1{font-size:clamp(36px,4.3vw,58px);color:var(--wine);margin:8px 0}.builder-footer{display:flex;justify-content:space-between;margin-top:34px}.builder-book{margin-top:24px;padding:15px;border-left:3px solid var(--gold);background:#eadfca}.builder-abilities{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.builder-abilities label{display:grid;gap:5px;background:#fffaf0;border:1px solid var(--edge);border-radius:8px;padding:15px}.builder-abilities small{font-size:20px;color:var(--wine);font-weight:800}.spell-search{margin:12px 0}.sorcerer-spells{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;max-height:46vh;overflow:auto}.sorcerer-spells label{display:flex;gap:9px;padding:10px;background:#fffaf0;border:1px solid var(--edge);border-radius:7px}.sorcerer-spells input{width:auto}.sorcerer-spells small{display:block;color:var(--muted);margin-top:3px}.builder-preview{padding:clamp(18px,3vw,48px);background:#291e1a;overflow:auto}.sorcerer-sheet{min-height:100%;background:#fffaf0;border-top:8px solid var(--wine);padding:clamp(20px,3vw,46px);box-shadow:0 12px 30px #0006}.sorcerer-sheet header h1{font-size:clamp(42px,4vw,70px);color:var(--wine);margin:6px 0}.sheet-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0}.sheet-numbers div,.sheet-abilities div{background:#ead9ba;border-radius:5px;padding:12px;text-align:center}.sheet-numbers small,.sheet-abilities small{display:block;font-size:10px;font-weight:800}.sheet-numbers b{display:block;font-size:28px}.sorcerer-sheet section{border-top:1px solid #b98b4a;padding:15px 0}.sorcerer-sheet section h3{color:var(--wine);font-size:22px}.sheet-abilities{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.sheet-abilities b{display:block;font-size:23px}.sheet-abilities span{font-weight:800;color:var(--wine)}@media(max-width:850px){.builder-grid{grid-template-columns:1fr}.builder-preview{order:-1}.sorcerer-sheet{min-height:auto}.builder-flow{padding:24px}.builder-top{padding:8px 12px}.builder-top button{padding:7px 8px}.builder-abilities{grid-template-columns:repeat(2,1fr)}}
.page:has(.sheet-ref-2024){max-width:none;padding:0 24px 48px}
.spell-hover{position:sticky;bottom:12px;margin-top:12px;max-height:220px;overflow:auto;padding:14px;background:#291e1a;color:#fffaf0;border:1px solid var(--gold);border-radius:8px;box-shadow:0 10px 25px #0006}.spell-hover p{font:13px/1.45 Georgia,serif;margin:7px 0 0}
.catalog-subtabs{display:flex;gap:8px;margin:12px 0}.catalog-subtabs button{background:#e7dbc4;color:var(--ink)}.catalog-subtabs button.active{background:var(--wine);color:#fff}.catalog-hover{position:fixed;right:22px;bottom:20px;width:min(480px,calc(100vw - 44px));max-height:42vh;overflow:auto;padding:15px;background:#291e1a;color:#fffaf0;border:1px solid var(--gold);border-radius:8px;box-shadow:0 12px 30px #0008;z-index:4}.catalog-hover small{display:block;color:#e4c889;margin-top:4px}.catalog-hover p{font:13px/1.45 Georgia,serif;margin:9px 0 0}
.builder-abilities label.primary-ability{border:2px solid var(--wine);box-shadow:inset 0 0 0 1px #fff}
.ability-table{display:grid;gap:6px}.ability-table article{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:9px;background:#fffaf0;border:1px solid var(--edge);border-radius:6px}.ability-table small{color:var(--muted)}
.species-options{display:flex;gap:8px;flex-wrap:wrap}.species-options label,.species-options button{width:auto;background:#fffaf0;color:var(--ink);border:1px solid var(--edge);padding:9px 12px}.species-options label{cursor:pointer;border-radius:7px;font-weight:700}.species-options label input,.sorcerer-spells label input{position:absolute;opacity:0;pointer-events:none}.species-options label:has(input:checked),.species-options button.active,.sorcerer-spells label:has(input:checked){background:var(--wine);border-color:var(--wine);color:#fff}.species-options label:focus-within,.sorcerer-spells label:focus-within{outline:3px solid var(--gold);outline-offset:2px}.sorcerer-spells label{cursor:pointer;transition:background .15s,color .15s,border-color .15s}.sorcerer-spells label:has(input:checked) small{color:#f4dcc0}
.class-picker{min-height:calc(100vh - 91px);background:var(--paper)}.class-picker main{width:min(900px,100%);margin:auto;padding:clamp(42px,8vw,110px) 24px}.class-picker h1{font-size:clamp(42px,6vw,72px);color:var(--wine);margin:10px 0}.class-options{display:grid;grid-template-columns:minmax(250px,380px);margin-top:34px}.class-option{text-align:left;background:#fffaf0;color:var(--ink);border:2px solid var(--edge);padding:24px;min-height:220px;transition:border-color .15s,transform .15s}.class-option:hover,.class-option:focus-visible{border-color:var(--wine);transform:translateY(-3px)}.class-option h2{font-size:34px;color:var(--wine);margin:26px 0 8px}
.choice-hover{position:fixed;width:min(360px,calc(100vw - 44px));padding:12px 14px;background:#291e1a;color:#fffaf0;border:1px solid var(--gold);border-radius:8px;box-shadow:0 12px 30px #0008;z-index:8;font:14px/1.45 Georgia,serif}.catalog-hover{width:min(390px,calc(100vw - 24px))}
.choice-hover,.catalog-hover,#itemHover{pointer-events:none}#itemHover.spell-hover{position:fixed;z-index:9;width:min(320px,calc(100vw - 32px));max-height:190px;margin:0;padding:10px 12px;overflow:auto;font:13px/1.4 Georgia,serif}#itemHover.spell-hover p{margin:6px 0 0}
.mastery-property{display:block;margin:3px 0 0;color:#7c3025;font-size:11px;font-weight:700}.species-options label .mastery-property{margin-left:24px}.theme-noite .mastery-property,.theme-vinho .mastery-property{color:#efc5c5}
#choiceHover,#catalogHover,#itemHover,#spellHover{position:fixed;z-index:20;width:min(360px,calc(100vw - 28px));margin:0;padding:10px 12px;overflow:visible;background:#291e1a;color:#fffaf0;border:1px solid var(--gold);border-radius:8px;box-shadow:0 12px 30px #0008;font:13px/1.45 Georgia,serif;pointer-events:none}#choiceHover p,#catalogHover p,#itemHover p,#spellHover p{margin:6px 0 0}
#itemHover.spell-hover,#spellHover.spell-hover,#sheetHover.spell-hover{position:fixed;z-index:20;width:min(360px,calc(100vw - 28px));max-height:none;margin:0;padding:10px 12px;overflow:visible;background:#291e1a;color:#fffaf0;border:1px solid var(--gold);border-radius:8px;box-shadow:0 12px 30px #0008;font:13px/1.45 Georgia,serif;pointer-events:none}
.species-choice-group{margin-top:16px;padding-top:12px;border-top:1px solid #c9b28c}.species-choice-group h4{margin:0 0 8px;color:var(--wine)}
.species-book>p{line-height:1.55;margin:10px 0}.species-book>p:first-of-type{font-weight:600}
.species-book{display:none}.species-profile{margin-top:24px;padding:20px;background:#fffaf0;border:1px solid var(--edge);border-radius:10px}.species-profile>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid var(--edge);margin-bottom:10px}.species-profile h3{color:var(--wine);font-size:25px;margin:8px 0}.species-summary{line-height:1.55}.species-base{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}.species-base span{display:grid;gap:3px;padding:8px;background:#ead9ba;border-radius:6px;font-size:12px}.species-traits{display:grid;gap:8px}.species-traits article{padding:11px;border-left:3px solid var(--gold);background:#f6efe1}.species-traits h4{margin:0;color:var(--wine)}.species-traits p{margin:5px 0 0;line-height:1.48}@media(max-width:600px){.species-base{grid-template-columns:1fr}}
.attribute-rule{margin-top:16px;padding:10px 12px;background:#eadfca;border-left:3px solid var(--wine)}
.attribute-error{margin-top:10px;padding:10px 12px;background:#f7dddd;border-left:4px solid #a33;color:#7d1820;font-weight:700}
.builder-abilities input[type=number]{min-height:52px;padding:8px 13px;font-size:24px;font-weight:700}.builder-abilities input[type=number]::-webkit-inner-spin-button{opacity:1;width:28px;height:44px;transform:scale(1.25);transform-origin:right center}
.character-sheets{display:grid;gap:22px}.character-sheet{background:#fffdf8;border:2px solid #b9a98e;box-shadow:0 10px 28px #0003}.character-sheet-header{display:flex;justify-content:space-between;gap:18px;align-items:start;padding:24px;border-bottom:3px solid var(--wine)}.character-sheet-header h1{font-size:38px;color:var(--wine);margin-bottom:4px}.character-sheet-header p{margin:4px 0}.sheet-vitals{display:flex;gap:8px;flex-wrap:wrap}.sheet-vitals b{display:grid;gap:3px;text-align:center;background:#ead9ba;padding:8px;border-radius:7px}.sheet-vitals strong{font-size:22px}.character-sheet-layout{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(300px,1.5fr) minmax(230px,.9fr);gap:14px;padding:16px}.sheet-sidebar,.sheet-main{display:grid;align-content:start;gap:14px}.character-sheet-section{border:1px solid var(--edge);padding:13px;background:#fffaf0}.character-sheet-section h3{font-size:20px;color:var(--wine);border-bottom:1px solid var(--edge);padding-bottom:7px;margin-bottom:9px}.character-sheet-section p{margin:6px 0}.character-sheet-section ul{margin:0;padding-left:19px}.sheet-attributes{display:grid;gap:7px}.sheet-attributes article{display:grid;grid-template-columns:1fr auto;align-items:center;background:#ead9ba;border-radius:7px;padding:8px}.sheet-attributes strong{font-size:25px}.sheet-attributes small{font-weight:800;color:var(--wine)}.sheet-attributes em{grid-column:1/-1;font-size:12px;font-style:normal}.sheet-check{font-size:13px}.character-sheet-actions{display:flex;gap:10px;flex-wrap:wrap;padding:16px;border-top:1px solid var(--edge)}@media(max-width:1000px){.character-sheet-layout{grid-template-columns:1fr 1fr}.sheet-main{grid-column:1/-1;order:-1}}@media(max-width:650px){.character-sheet-header{display:block}.sheet-vitals{margin-top:12px}.character-sheet-layout{grid-template-columns:1fr;padding:10px}.sheet-main{grid-column:auto;order:0}}
.sheet-reference{cursor:help;text-decoration:underline dotted var(--wine);text-underline-offset:3px}.sheet-species ul{margin-top:8px}
.sheet-ref-2024{max-width:1500px;margin:0 auto;background:linear-gradient(110deg,#f8f2e5,#fffdf7 48%,#f1e7d4);color:#2c211c;border:1px solid #977a62;border-radius:5px;padding:clamp(16px,2.4vw,32px);box-shadow:0 12px 32px #2b180a2b;font-family:Georgia,serif}.sheet-ref-2024 *{box-sizing:border-box}.ref-top{display:grid;grid-template-columns:2.8fr .62fr .8fr 1.2fr .7fr;gap:10px;margin-bottom:13px;padding-bottom:10px;border-bottom:2px solid #8d3027}.ref-box{min-height:52px;padding:5px 7px;background:transparent;border:0;border-bottom:1px solid #b9a28c}.ref-box small,.ref-label{display:block;font:700 10px/1.1 Arial,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#7c3025}.ref-box b{display:block;margin-top:6px;font-size:17px;line-height:1.1}.ref-top .ref-box:first-child{border-bottom:0;padding-left:0}.ref-top .ref-box:first-child>b{font-size:clamp(26px,3vw,39px);letter-spacing:.5px;color:#7c3025}.ref-top .ref-box:first-child small:last-child{margin-top:6px;color:#51433a;letter-spacing:.3px;text-transform:none}.ref-vitals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 16px}.ref-vitals .ref-box{text-align:left;min-height:51px}.ref-vitals b{font-size:23px;margin-top:5px;color:#7c3025}.ref-body{display:grid;grid-template-columns:minmax(340px,.76fr) minmax(0,1.24fr);gap:clamp(18px,2.4vw,36px)}.ref-left{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:start}.ref-proficiency{grid-column:span 2}.ref-proficiency>b{font-size:25px;color:#7c3025}.ref-ability{min-height:132px;padding-top:7px}.ref-score{display:flex;justify-content:space-between;align-items:center;margin:7px 0 5px;border-top:1px solid #b99d80;border-bottom:1px solid #b99d80;padding:4px 0}.ref-score b{font-size:30px;color:#7c3025}.ref-score span{font-size:20px;font-weight:700}.ref-save,.ref-skill{font-size:12px;line-height:1.75}.ref-save{font-weight:700}.ref-right{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-content:start}.ref-wide{grid-column:span 2}.ref-panel{min-height:108px;padding:7px 0;background:transparent;border:0;border-top:2px solid #8d3027}.ref-panel h3{font:700 14px Georgia,serif;letter-spacing:.7px;color:#7c3025;text-transform:uppercase;border-bottom:1px solid #b9a28c;margin:0 0 8px;padding:0 0 5px}.ref-panel p{font-size:13px;line-height:1.38;margin:5px 0}.ref-panel ul{margin:0;padding-left:17px}.ref-panel li{font-size:13px;line-height:1.55}.ref-arms{min-height:155px}.ref-features{min-height:215px}.ref-traits,.ref-talents{min-height:155px}.ref-foot{grid-column:span 2;display:grid;grid-template-columns:1.1fr 1fr;gap:17px}.ref-actions{grid-column:span 2;display:flex;gap:9px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #b9a28c}.ref-empty{color:#716b62;font-style:italic}@media(max-width:900px){.ref-top{grid-template-columns:repeat(2,1fr)}.ref-body{grid-template-columns:1fr}.ref-left{grid-template-columns:repeat(2,1fr)}.ref-right{grid-template-columns:1fr}.ref-wide,.ref-foot,.ref-actions{grid-column:auto}.ref-foot{grid-template-columns:1fr}}@media(max-width:520px){.sheet-ref-2024{padding:12px}.ref-vitals{grid-template-columns:repeat(2,1fr)}.ref-left{grid-template-columns:1fr}.ref-proficiency{grid-column:auto}}
.sheet-theme-picker{display:flex;justify-content:flex-end;gap:5px;align-items:center;margin-bottom:8px}.sheet-theme-picker small{margin-right:auto;text-transform:uppercase;letter-spacing:1px}.sheet-theme-picker button{padding:4px 7px;font-size:11px}.sheet-theme-picker button.active{background:#34251e;color:#fff}.theme-noite{background:#171c29;color:#e5e7ec;border-color:#6d86ad}.theme-noite .ref-box,.theme-noite .ref-panel{background:#222c3c;border-color:#6d86ad}.theme-noite .ref-panel h3,.theme-noite .ref-score{border-color:#9ab0d0}.theme-esmeralda{background:#e9f1e7;color:#173b31;border-color:#367461}.theme-esmeralda .ref-box,.theme-esmeralda .ref-panel{background:#fbfff9;border-color:#57927f}.theme-esmeralda .sheet-theme-picker button.active{background:#215c4b}
.spell-slots{display:grid;gap:6px;margin:7px 0}.spell-slots>div{display:grid;grid-template-columns:24px 1fr 34px;gap:7px;align-items:center}.spell-slots b{font-size:13px}.spell-slots span{display:flex;gap:4px}.spell-slots i{display:block;width:14px;height:14px;border:2px solid #766655;border-radius:50%;background:transparent}.spell-slots i.filled{background:#8d3027;border-color:#8d3027;box-shadow:inset 0 0 0 3px #f6e8cf}.spell-slots small{text-align:right;font-weight:700}.theme-noite .spell-slots i{border-color:#b7c7e4}.theme-noite .spell-slots i.filled{background:#99b9ef;border-color:#99b9ef}.theme-esmeralda .spell-slots i.filled{background:#28795e;border-color:#28795e}
.sorcery-points{display:grid;grid-template-columns:1fr auto;gap:3px;align-items:center;margin:0 0 10px;padding:9px 10px;border:1px solid #8d3027;background:#f7e6db;color:#692018}.sorcery-points b{font:700 12px Arial,sans-serif;text-transform:uppercase;letter-spacing:.7px}.sorcery-points span{font-size:24px;font-weight:800}.sorcery-points small{grid-column:1/-1;font-size:11px}.theme-noite .sorcery-points{background:#30304b;border-color:#9baee8;color:#edf0ff}.theme-esmeralda .sorcery-points{background:#e2f3e9;border-color:#28795e;color:#17513f}.theme-vinho{background:#2b1720;color:#f7ece5;border-color:#a56976}.theme-vinho .ref-box,.theme-vinho .ref-panel{background:#3a202b;border-color:#a56976}.theme-vinho .ref-panel h3,.theme-vinho .ref-score{border-color:#d8a4aa}.theme-vinho .sheet-theme-picker button.active{background:#7b3545}.theme-vinho .spell-slots i{border-color:#e3b5bb}.theme-vinho .spell-slots i.filled{background:#d66a78;border-color:#d66a78}.theme-vinho .sorcery-points{background:#5b2937;border-color:#d66a78;color:#ffe9e7}
.ref-complete-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ref-complete-fields>.ref-panel:first-child{grid-column:span 2}.ref-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.ref-mini-grid p{margin:0;border:1px solid #b4a894;padding:7px;display:grid;gap:4px}.ref-mini-grid b{font-size:10px;text-transform:uppercase;letter-spacing:.6px}.ref-mini-grid span{font-size:17px;font-weight:700}@media(max-width:700px){.ref-complete-fields{grid-template-columns:1fr}.ref-complete-fields>.ref-panel:first-child{grid-column:auto}.ref-mini-grid{grid-template-columns:repeat(2,1fr)}}
/* Fichas estruturadas: preserva quebras vindas do PDF sem criar barras internas. */
.structured-block .stat-section p,.structured-block .monster-details p{white-space:pre-line}
/* Criador de personagem em tela ampla: doze classes em uma grade 4x3. */
.class-picker main{width:min(1500px,100%);padding:clamp(28px,4vw,64px) clamp(20px,4vw,72px)}
.class-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}
.class-option{width:100%;min-height:210px;cursor:pointer;pointer-events:auto;position:relative;z-index:1}
@media(max-width:1100px){.class-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.class-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.class-option{min-height:170px;padding:16px}.class-option h2{font-size:25px}}
@media(max-width:460px){.class-options{grid-template-columns:1fr}}
/* Tracker de combate */
.death-track{color:#8d3030;font-size:12px;font-weight:700;white-space:nowrap}
.combatant[draggable="true"]{cursor:grab}.combatant.dragging{opacity:.45}.combatant.drag-over{outline:2px dashed var(--gold);outline-offset:3px}
.danger-action{background:#f3d7d1!important;color:#7d1820!important;border:1px solid #b45b50!important}.danger-action:hover{background:#a33!important;color:#fff!important}
.character-trash{margin-top:24px;padding:18px;background:#eadfca;border:1px solid var(--edge);border-radius:10px}.character-trash h2{margin:0 0 4px;color:var(--wine)}.character-trash article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--edge)}.character-trash article div{display:grid;gap:3px}.character-trash article span,.character-trash article small{color:var(--muted);font-size:12px}
.creature-source-banner{margin:0 0 18px;padding:14px 16px;border:1px solid #b88b3b;border-left:5px solid #8d3027;background:linear-gradient(100deg,#f8ead0,#fffaf0);display:grid;gap:4px}.creature-source-banner b{font:700 11px Arial,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#7c3025}.creature-source-banner strong{font:700 22px Georgia,serif;color:#2c211c}.creature-source-banner small{color:#716b62}.creature-source-banner p{margin:4px 0 0;white-space:pre-line;line-height:1.45}
.sheet-utility-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:10px 12px;border:1px solid #b9a28c;border-radius:8px;background:rgba(255,250,240,.78);position:sticky;top:10px;z-index:3;box-shadow:0 5px 14px #2b180a18}.sheet-utility-title{font:700 11px Arial,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#7c3025;margin-right:auto}.sheet-utility-separator{width:1px;height:24px;background:#b9a28c}.sheet-utility-bar button{padding:7px 10px;font-size:12px}.sheet-actions-footer{justify-content:flex-end;opacity:.72}.attack-help{font-size:12px!important;color:#716b62;margin:-2px 0 10px!important}.attack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attack-card{padding:11px 12px;border:1px solid #b9a28c;border-left:4px solid #8d3027;border-radius:7px;background:rgba(255,250,240,.72);transition:transform .15s,box-shadow .15s}.attack-card:hover,.attack-card:focus-within{transform:translateY(-1px);box-shadow:0 5px 13px #2b180a1a;outline:2px solid #b88b3b;outline-offset:2px}.attack-card header{display:flex;align-items:start;justify-content:space-between;gap:10px}.attack-card header b{display:block;color:#7c3025;font-size:15px}.attack-card header small{display:block;margin-top:3px;color:#716b62;font-size:11px}.attack-card .attack-dice{font-weight:800;font-size:18px;color:#7c3025;white-space:nowrap}.attack-card p{font-size:12px!important;line-height:1.4!important;margin:8px 0!important}.attack-actions{display:flex;gap:6px;flex-wrap:wrap}.attack-actions button{padding:5px 8px;font-size:11px}.theme-noite .sheet-utility-bar,.theme-noite .attack-card{background:#222c3c;border-color:#6d86ad}.theme-noite .attack-card header b,.theme-noite .attack-card .attack-dice{color:#b7c7e4}.theme-esmeralda .sheet-utility-bar,.theme-esmeralda .attack-card{background:#fbfff9;border-color:#57927f}.theme-esmeralda .attack-card header b,.theme-esmeralda .attack-card .attack-dice{color:#215c4b}.theme-vinho .sheet-utility-bar,.theme-vinho .attack-card{background:#3a202b;border-color:#a56976}.theme-vinho .attack-card header b,.theme-vinho .attack-card .attack-dice{color:#f3c5ca}@media(max-width:700px){.attack-grid{grid-template-columns:1fr}.sheet-utility-bar{position:static}.sheet-utility-separator{display:none}}
@media(min-width:1100px) and (min-height:700px){.sheet-ref-2024{padding:14px 20px}.ref-top{gap:7px;margin-bottom:7px;padding-bottom:6px}.ref-top .ref-box:first-child>b{font-size:clamp(24px,2.5vw,34px)}.ref-vitals{gap:7px;margin-bottom:9px}.ref-body{gap:18px}.ref-left,.ref-right{gap:8px}.ref-panel{min-height:0;padding:4px 0}.ref-panel h3{margin-bottom:5px;padding-bottom:3px;font-size:12px}.ref-panel p,.ref-panel li{font-size:11px;line-height:1.28}.ref-ability{min-height:0}.ref-score{margin:4px 0 3px;padding:2px 0}.ref-score b{font-size:24px}.ref-save,.ref-skill{font-size:10px;line-height:1.42}.ref-arms,.ref-features,.ref-traits,.ref-talents{min-height:0}.attack-grid{gap:6px}.attack-card{padding:7px 9px}.attack-card header b{font-size:13px}.attack-card p{font-size:10px!important;line-height:1.25!important;margin:4px 0!important}.attack-actions button{padding:3px 6px;font-size:10px}.sheet-utility-bar{gap:5px;margin-bottom:8px;padding:6px 8px}.sheet-utility-bar button{padding:5px 7px;font-size:10px}.ref-complete-fields{gap:8px}.ref-mini-grid{gap:4px}.ref-mini-grid p{padding:4px}.ref-mini-grid span{font-size:14px}}
.sheet-directory-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;min-height:88px;padding:18px 22px;text-align:left;background:#fffaf0;color:var(--ink);border:1px solid var(--edge);border-left:5px solid var(--wine);border-radius:9px;box-shadow:0 5px 14px #2b180a18}.sheet-directory-card:hover,.sheet-directory-card:focus-visible{background:#f7dfbd;outline:2px solid var(--gold);outline-offset:2px}.sheet-directory-card span{font:700 24px Georgia,serif;color:var(--wine)}.sheet-directory-card small{margin-top:5px;color:var(--muted);font-size:13px}.sheet-focus-bar{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:4px 0}.sheet-focus-bar span{font:700 13px Arial,sans-serif;color:var(--muted)}.sheet-focused-view{width:100%;max-width:none;margin:0}.sheet-focused-view .sheet-ref-2024{width:100%;max-width:none;min-height:calc(100vh - 36px);margin:0;border-radius:0}.sheet-focused-view .sheet-utility-bar{display:none}.sheet-focused-view .sheet-focus-bar{position:fixed;right:18px;top:12px;z-index:8;margin:0;padding:0}.sheet-focused-view .sheet-focus-bar span{display:none}
.page:has(.sheet-focused-view){max-width:none;padding:0}.sheet-focused-view .sheet-ref-2024{min-height:0}
.sheet-only-app{min-height:100vh;background:var(--paper);padding:0}.sheet-only-app #content{min-height:100vh}.sheet-only-app .character-sheets{width:100%}.sheet-only-app .sheet-focus-bar{padding:10px 18px;background:#fffaf0;border-bottom:1px solid var(--edge);margin:0}.sheet-only-app .sheet-focus-bar button{box-shadow:0 2px 8px #0002}
.sheet-focused-view .sheet-ref-2024{font-size:15px;padding:24px 30px;color:#241b16}.sheet-focused-view .ref-top{grid-template-columns:3fr .7fr .95fr 1.35fr .8fr;gap:14px;margin-bottom:16px;padding-bottom:13px}.sheet-focused-view .ref-box small,.sheet-focused-view .ref-label{font-size:12px;line-height:1.2;letter-spacing:.7px}.sheet-focused-view .ref-box b{font-size:22px;line-height:1.2}.sheet-focused-view .ref-top .ref-box:first-child>b{font-size:clamp(30px,3.2vw,46px)}.sheet-focused-view .ref-vitals{gap:14px;margin-bottom:20px}.sheet-focused-view .ref-vitals b{font-size:28px}.sheet-focused-view .ref-body{grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);gap:28px}.sheet-focused-view .ref-left{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sheet-focused-view .ref-left>.ref-proficiency:first-child{display:none}.sheet-focused-view .ref-right{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sheet-focused-view .ref-panel{padding:10px 0;min-height:125px}.sheet-focused-view .ref-panel h3{font-size:17px;margin-bottom:10px;padding-bottom:6px;letter-spacing:.45px}.sheet-focused-view .ref-panel p,.sheet-focused-view .ref-panel li{font-size:15px;line-height:1.48}.sheet-focused-view .ref-score{margin:9px 0 7px;padding:6px 0}.sheet-focused-view .ref-score b{font-size:35px}.sheet-focused-view .ref-score span{font-size:23px}.sheet-focused-view .ref-save,.sheet-focused-view .ref-skill{font-size:13px;line-height:1.65}.sheet-focused-view .ref-ability{min-height:150px}.sheet-focused-view .ref-arms,.sheet-focused-view .ref-features,.sheet-focused-view .ref-traits,.sheet-focused-view .ref-talents{min-height:170px}.sheet-focused-view .ref-foot{gap:20px}.sheet-focused-view .sheet-reference{cursor:help;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:#b88b3b;text-underline-offset:3px}@media(max-width:1100px){.sheet-focused-view .ref-body{grid-template-columns:1fr}.sheet-focused-view .ref-right{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.sheet-focused-view .sheet-ref-2024{padding:16px}.sheet-focused-view .ref-top,.sheet-focused-view .ref-vitals,.sheet-focused-view .ref-left,.sheet-focused-view .ref-right{grid-template-columns:1fr 1fr;gap:10px}.sheet-focused-view .ref-top .ref-box:first-child{grid-column:span 2}.sheet-focused-view .ref-panel p,.sheet-focused-view .ref-panel li{font-size:14px}}
.sheet-focused-view .sheet-ref-2024{font-size:clamp(12px,min(.85vw,1.7vh),16px)}.sheet-focused-view .ref-panel p,.sheet-focused-view .ref-panel li{font-size:clamp(12px,min(.78vw,1.55vh),15px);line-height:1.42}.sheet-focused-view .ref-box small,.sheet-focused-view .ref-label{font-size:clamp(10px,min(.62vw,1.2vh),12px)}.sheet-focused-view .ref-panel h3{font-size:clamp(14px,min(.95vw,1.8vh),18px)}.sheet-focused-view .ref-right{grid-template-areas:'arms arms' 'features features' 'foot foot' 'traits talents';align-items:start}.sheet-focused-view .ref-arms{grid-area:arms}.sheet-focused-view .ref-features{grid-area:features}.sheet-focused-view .ref-foot{grid-area:foot}.sheet-focused-view .ref-traits{grid-area:traits}.sheet-focused-view .ref-talents{grid-area:talents}.sheet-focused-view .ref-traits,.sheet-focused-view .ref-talents{min-height:0;padding:7px 0}.sheet-focused-view .ref-traits ul,.sheet-focused-view .ref-talents ul{max-height:9em;overflow:hidden}.sheet-focused-view .ref-traits li,.sheet-focused-view .ref-talents li{line-height:1.32;padding:2px 0}.sheet-focused-view .ref-foot{min-height:0}
/* Entrada, convite e jogadores. */
.auth-tabs{display:flex;gap:6px;margin:14px 0 4px}.auth-tabs button{flex:1}
.invite-banner{border-left-color:var(--wine);background:#f3e6cf}
.invite-link{background:#fffaf0;border:1px solid var(--edge);border-radius:9px;padding:12px;margin:10px 0}.invite-link .row{margin-top:8px}.invite-link input{font-size:13px}
.members-modal details{margin:12px 0}.members-modal summary{cursor:pointer;color:var(--wine);font-weight:600}
.empty-campaigns{grid-column:1/-1;max-width:560px}
