.npc-main,.npc-detail{max-width:1360px;min-height:76vh;margin:auto;padding:70px clamp(20px,5vw,80px) 110px}.npc-intro{border-bottom:1px solid #554e42;padding:28px 0 45px}.npc-intro h1,.npc-detail h1{margin:10px 0 18px;font-size:clamp(3rem,6vw,6rem);line-height:1.02}.npc-intro h1 i{color:#d0ae73}.npc-intro>p:last-child{color:#cac6bd;font-size:1.1rem}.npc-list-head{justify-content:space-between;align-items:end;gap:18px;margin:37px 0 22px;display:flex}.npc-list-head h2{margin:5px 0;font-size:2rem}.npc-create-button,.npc-submit button{color:#18140e;cursor:pointer;background:#d5b37c;border:0;padding:15px 21px;font-size:1rem;font-weight:700}.npc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;display:grid}.npc-card{color:#f7f2e8;background:#1d1e20;border:1px solid #5b554b;text-decoration:none;transition:transform .2s,border-color .2s;display:block;overflow:hidden}.npc-card:hover{border-color:#d4ad70;transform:translateY(-4px)}.npc-card img{aspect-ratio:4/3;object-fit:cover;width:100%;display:block}.npc-card>div{padding:23px}.npc-card small,.npc-card span{color:#d7b67f}.npc-card h3{margin:8px 0;font-size:1.65rem}.npc-card p{color:#cbc6bd;min-height:70px;line-height:1.5}.npc-empty,.npc-locked{background:#1b1c1d;border:1px solid #5b5447;margin:18px 0;padding:45px}.npc-empty p,.npc-locked p{color:#c8c3ba}.npc-locked .hero-link{margin-top:20px}.npc-form{max-width:1100px}.npc-form-notice{background:#25221d;border-left:3px solid #d3ae70;padding:21px 24px}.npc-form-notice p{color:#d1cbc0;margin:5px 0 0}.npc-form-section{background:#1b1c1e;border:1px solid #4f4b45;margin:22px 0;padding:24px}.npc-form-section h3{color:#e1c792;margin:0 0 19px;font-size:1.55rem}.npc-form-section h4{color:#dec28b;font-size:1.17rem}.npc-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.npc-field{color:#e6e1d8;flex-direction:column;gap:7px;min-width:0;margin-bottom:15px;display:flex}.npc-field span,.npc-file span{font-size:.93rem}.npc-field input,.npc-field textarea,.npc-field select,.npc-file input{color:#fff;width:100%;font:inherit;box-sizing:border-box;background:#28292a;border:1px solid #625d55;border-radius:2px;padding:11px 12px}.npc-field textarea{resize:vertical;line-height:1.5}.npc-field input:focus,.npc-field textarea:focus,.npc-field select:focus{outline:2px solid #cfad72}.npc-file{margin:18px 0;display:block}.npc-file span{margin-bottom:9px;display:block}.npc-preview{object-fit:cover;border:1px solid #696153;max-width:260px;max-height:340px;display:block}.npc-abilities{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;display:grid}.npc-section-head{justify-content:space-between;align-items:center;gap:15px;display:flex}.npc-section-head h3,.npc-section-head h4{margin:0 0 16px}.npc-section-head button{color:#efd4a1;cursor:pointer;background:#3d3529;border:1px solid #ac8954;padding:9px 13px}.npc-list-editor{background:#242526;border:1px solid #55504a;margin:12px 0;padding:17px}.npc-list-editor .npc-field{margin-bottom:7px}.npc-remove{color:#e8ada2;cursor:pointer;background:0 0;border:0;text-decoration:underline}.npc-coins{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;display:grid}.npc-submit{border:1px solid #685b47;flex-wrap:wrap;align-items:end;gap:20px;padding:22px;display:flex}.npc-submit .npc-field{min-width:230px;margin:0}.npc-submit button:disabled{opacity:.5;cursor:default}.npc-message{color:#e5c58e;line-height:1.6}.npc-detail .back{color:#dbc08e}.npc-detail-heading{border-bottom:1px solid #6a5b44;justify-content:space-between;align-items:end;gap:20px;padding:35px 0;display:flex}.npc-detail-heading h1{margin:8px 0}.npc-detail-heading p:last-child{color:#cec8be;font-size:1.2rem;line-height:1.5}.npc-detail-heading>span{color:#e9c488;white-space:nowrap;border:1px solid #ca9e5c;padding:12px 20px}.npc-detail-grid{grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:34px;padding-top:34px;display:grid}.npc-detail-image{aspect-ratio:1;object-fit:cover;border:1px solid #776344;width:100%;height:auto}.npc-lore{border-bottom:1px solid #5c5447;padding:25px 0}.npc-lore h2{color:#e5c68f;font-size:1.6rem}.npc-lore h3{color:#e5c68f}.npc-lore p,.npc-lore li{color:#e3ddd3;white-space:pre-wrap;line-height:1.7}.stat-block{color:#31251d;background:#e6dcc2;border:1px solid #826343;align-self:start;padding:32px;font-family:Georgia,serif;box-shadow:0 20px 55px #0005}.stat-head{border-bottom:5px solid #9c4e37;padding-bottom:12px}.stat-head p{margin:0 0 8px;font-size:1.3rem;font-style:italic}.stat-head span{color:#684839}.stat-core{border-bottom:3px solid #ad6d4b;padding:12px 0}.stat-core p{white-space:pre-wrap;margin:7px 0;line-height:1.55}.stat-abilities{text-align:center;border-bottom:3px solid #ad6d4b;grid-template-columns:repeat(6,1fr);gap:5px;padding:16px 0;display:grid}.stat-abilities div{gap:5px;display:grid}.stat-abilities strong,.stat-section h2{color:#863d31}.stat-section{border-bottom:1px solid #b59573;padding:12px 0}.stat-section h2{margin:8px 0;font-size:1.55rem}.stat-section p{white-space:pre-wrap;line-height:1.65}@media (max-width:950px){.npc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.npc-detail-grid{grid-template-columns:1fr}.npc-detail-grid aside{grid-template-columns:280px 1fr;align-items:start;gap:20px;display:grid}.npc-detail-grid aside .npc-lore:last-child{grid-column:1/-1}.npc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:650px){.npc-main,.npc-detail{padding-top:35px}.npc-list-head{flex-direction:column;align-items:start}.npc-grid,.npc-fields,.npc-detail-grid aside{grid-template-columns:1fr}.npc-abilities{grid-template-columns:repeat(3,minmax(0,1fr))}.npc-coins{grid-template-columns:repeat(2,minmax(0,1fr))}.npc-detail-grid aside .npc-lore:last-child{grid-column:auto}.stat-block{padding:18px}.stat-abilities{grid-template-columns:repeat(3,1fr);row-gap:16px}.npc-detail-heading{flex-direction:column;align-items:start}}.npc-upload-form{background:#1c1d1e;border:1px solid #6d5d43;max-width:680px;margin:20px 0;padding:clamp(20px,3vw,35px)}.npc-upload-form h3{color:#dfc189;margin:0 0 8px;font-size:1.8rem}.npc-upload-form>p{color:#d1cbc0;margin-bottom:22px;line-height:1.6}.npc-upload-form .npc-field{margin:17px 0}.npc-upload-form .npc-file{margin:20px 0}.npc-sheet-preview{object-fit:contain;border:1px solid #716448;width:auto;max-width:100%;height:auto;max-height:660px;margin:14px 0 24px;display:block}.npc-image-sheet h1{margin:23px 0}.npc-image-sheet>img{background:#e6e0d3;border:1px solid #847356;width:auto;max-width:100%;height:auto;max-height:none;margin:25px auto;display:block;box-shadow:0 14px 45px #0007}.npc-card img{object-position:top}.npc-card p{min-height:0}.npc-pdf-cover{aspect-ratio:4/3;color:#e9d1a5;background:linear-gradient(145deg,#292a2b,#1b1b1d);border-bottom:1px solid #69583c;flex-direction:column;justify-content:center;align-items:center;gap:13px;width:100%;display:flex}.npc-pdf-cover span{color:#f2c39c;letter-spacing:.1em;border:1px solid #bd845e;padding:8px 13px;font:700 1.1rem sans-serif}.npc-pdf-cover strong{letter-spacing:.13em;font-size:clamp(1.8rem,3vw,2.9rem)}.npc-pdf-cover small{letter-spacing:.1em;color:#bba67e;font:700 .75rem sans-serif}.npc-pdf-selected{color:#e8d6b7;overflow-wrap:anywhere;background:#292826;border:1px solid #746b58;padding:12px 16px}.npc-pdf-viewer{width:100%;max-width:1000px;margin:25px auto}.npc-pdf-viewer iframe{background:#e6e0d3;border:1px solid #847356;width:100%;height:min(85vh,1100px);min-height:580px;display:block}.npc-pdf-viewer p{text-align:center}.npc-pdf-viewer a{color:#e2c18b;text-decoration:underline}@media (max-width:650px){.npc-pdf-viewer iframe{height:75vh;min-height:520px}}.npc-groups{border-bottom:1px solid #5b5345;padding:6px 0 44px}.npc-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.npc-group-card{background:#22211f;border:1px solid #695b45;flex-direction:column;min-width:0;display:flex}.npc-group-card>a{color:#f8f2e8;flex:1;padding:23px;text-decoration:none;display:block}.npc-group-card>a:hover h3{color:#f3cd8d}.npc-group-card small{color:#d6b47e;letter-spacing:.08em;font-size:.82rem}.npc-group-card h3{margin:13px 0;font-size:1.65rem}.npc-group-card p{color:#d1ccc3;line-height:1.5}.npc-member-names{color:#c9b695;border-top:1px solid #625743;margin:20px 0;padding-top:14px;line-height:1.5}.npc-group-card strong{color:#e5c28b}.npc-group-card>button{color:#e4c898;text-align:left;cursor:pointer;background:#31291e;border:0;border-top:1px solid #66563b;padding:12px}.npc-group-form{background:#1d1e1f;border:1px solid #6b5a41;max-width:800px;padding:clamp(20px,3vw,35px)}.npc-group-form h3{color:#e5ca99;margin:0 0 22px;font-size:1.8rem}.npc-choose-head{justify-content:space-between;align-items:center;gap:15px;display:flex}.npc-choose-head h4{color:#e5ca99;font-size:1.1rem}.npc-choose-head span{color:#c9bea9}.npc-member-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:360px;margin-bottom:22px;display:grid;overflow:auto}.npc-member-choices label{cursor:pointer;background:#282827;border:1px solid #5d5548;align-items:center;gap:12px;padding:12px;display:flex}.npc-member-choices input{accent-color:#d4ae72;width:18px;height:18px}.npc-member-choices span{overflow-wrap:anywhere}.npc-note{color:#cabd9e}@media (max-width:950px){.npc-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:650px){.npc-group-grid,.npc-member-choices{grid-template-columns:1fr}}.npc-group-members{margin-top:36px}.npc-detail-heading>span{font-size:1rem}.npc-card-link{color:inherit;text-decoration:none;display:block}.npc-card-link>div:last-child{padding:23px}.npc-card-link img{aspect-ratio:4/3;object-fit:cover;width:100%}.npc-thumb-edit{border-top:1px solid #5b554b;padding:14px 20px}.npc-thumb-edit button{color:#f1d6a7;cursor:pointer;background:#392f22;border:1px solid #ad8856;padding:9px 13px}.npc-thumb-edit>div{padding-top:12px}.npc-thumb-edit p{color:#e3be7e;min-height:0;font-size:.85rem}.npc-thumbnail-preview{object-fit:cover;border:1px solid #7a694c;width:190px;height:145px;margin:10px 0;display:block}.npc-detail-thumbnail{object-fit:cover;border:1px solid #af8f5d;width:180px;height:180px;margin:16px 0;display:block}.creature-form{max-width:1050px}.creature-fields{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;display:grid}.creature-modes{flex-wrap:wrap;gap:10px;margin:18px 0;display:flex}.creature-modes button,.creature-form>button,.live-edit button{color:#f3d8a7;cursor:pointer;background:#342a20;border:1px solid #9e7c4a;padding:11px 16px}.creature-modes button[aria-pressed=true]{color:#151515;background:#9e7c4a}.creature-form h4{color:#e7c995;margin:30px 0 12px;font-size:1.2rem}.creature-form input,.creature-form textarea,.creature-form select,.live-edit input,.live-edit textarea{color:#faf2e5;box-sizing:border-box;width:100%;min-width:0;font:inherit;background:#1c1d1e;border:1px solid #766345;padding:11px}.creature-row{align-items:start;gap:8px;margin:8px 0;display:flex}.creature-row>input,.creature-row>textarea,.creature-row>select{flex:1;min-width:0}.creature-row>button{color:#edd1a3;cursor:pointer;background:#362b22;border:1px solid #806444;padding:11px}.creature-feature{border:1px solid #5c4b35;margin:10px 0;padding:12px}.creature-feature>textarea{min-height:75px}.live-sheet{color:#f5ece1;background:#252424;border:1px solid #9a774b;padding:clamp(18px,4vw,48px);line-height:1.55}.live-sheet header h1{margin:4px 0;font-size:clamp(2rem,5vw,3.8rem)}.live-vitals{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;margin:22px 0;display:grid}.live-vitals>div{border:1px solid #866c49;flex-direction:column;padding:14px;display:flex}.live-vitals strong{color:#d9b782}.live-vitals span{font-size:1.35rem}.live-counter{gap:5px;margin-top:8px;display:flex}.live-counter button{color:#fff;cursor:pointer;background:#4a3927;border:1px solid #b39463;min-width:40px;min-height:40px}.live-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;display:grid}.live-columns h2,.live-edit h2{color:#e2bd83;border-bottom:1px solid #80694b;margin-top:28px;padding-bottom:8px}.live-line{border-bottom:1px solid #564c40;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.live-locked{opacity:.65}.live-notes{white-space:pre-wrap}.live-edit{border-top:1px solid #80694b;margin-top:32px}.live-edit label{max-width:400px;margin:12px 0;display:block}.live-edit textarea{margin:12px 0}.npc-detail{box-sizing:border-box;width:calc(100% - 32px);max-width:1200px}.npc-pdf-viewer iframe{max-width:100%}@media (max-width:700px){.creature-row{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.creature-row>*{width:100%;min-width:0}.live-columns{grid-template-columns:1fr}.npc-list-head{flex-wrap:wrap}.npc-grid{grid-template-columns:1fr}.npc-upload-form{padding:18px}.npc-detail{width:calc(100% - 24px);padding:18px 0}.site-header{flex-wrap:wrap}.site-header nav{flex-wrap:wrap;gap:8px;display:flex}.live-sheet{padding:18px}.live-vitals{grid-template-columns:repeat(2,minmax(0,1fr))}}.npc-name-search{gap:10px;max-width:620px;margin:24px 0;font-size:1rem;display:grid}.npc-name-search input{color:#fff;width:100%;font:inherit;box-sizing:border-box;background:#151b20;border:1px solid #756047;padding:14px 16px}.npc-name-search small{color:#c8c2b9;font-size:.875rem}.npc-name-list{border-top:1px solid #756047;margin:0;padding:0;list-style:none}.npc-name-list li{border-bottom:1px solid #514535}.npc-name-list a{color:#ecc786;overflow-wrap:anywhere;padding:17px 14px;font-size:1.125rem;text-decoration:none;display:block}:is(.npc-name-list a:hover,.npc-name-list a:focus-visible){background:#2a2925;text-decoration:underline}.npc-bulk-import{background:#1b2429;border:1px solid #756047;margin:20px 0 36px;padding:24px}.npc-bulk-import h2{margin:0 0 14px;font-size:1.5rem}.npc-bulk-import p{font-size:1rem;line-height:1.6}.npc-import-results{overflow-wrap:anywhere;padding-left:24px;line-height:1.7}.npc-import-results a{color:#ecc786}.npc-illustration-upload{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.npc-illustration-upload small{color:var(--muted,#aaa);font-size:11px}.npc-illustration-upload p{width:100%;margin:0;font-size:13px}
