.characters-page{background:var(--realm-page-bg,#10251d);min-height:100dvh;color:var(--realm-cream,#eee1bf);padding:22px clamp(14px,4vw,60px) 48px}.characters-nav{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;max-width:1100px;margin:auto;display:flex}.characters-nav>img,.characters-nav>svg{width:160px;height:65px}.characters-nav a{color:var(--realm-gold,#d8b46c);align-items:center;gap:8px;min-height:44px;display:inline-flex}.characters-heading{max-width:1100px;margin:28px auto}.characters-heading h1{font:32px var(--font-display,"Metamorphous", serif);margin:6px 0 12px}.characters-heading>p:first-child{text-transform:uppercase;letter-spacing:.16em;color:#d8b46c;font-size:12px}.character-workshop{grid-template-columns:220px minmax(0,1fr);gap:20px;max-width:1100px;margin:auto;display:grid}.character-library,.character-editor{background:linear-gradient(140deg,#294235,#162c24);border:1px solid #d8b46c44;border-radius:16px;box-shadow:0 16px 45px #0003}.character-library{align-self:start;padding:16px}.characters-page .character-new{width:fit-content;max-width:100%;padding-inline:.75rem}@media (width<=760px){.characters-nav{gap:.5rem}.characters-nav>img{object-fit:contain;flex-basis:100%;order:-1}.character-library button{overflow-wrap:anywhere}}.character-library h2{margin-bottom:12px;font-size:18px}.character-library>p{color:#b9c0a8;margin-top:18px;font-size:13px;line-height:1.5}.characters-page button{cursor:pointer}.characters-page button:focus-visible,.characters-page input:focus-visible{outline-offset:3px;outline:2px solid #f1d28c}.characters-page button:disabled{opacity:.5;cursor:default}.character-library-item{text-align:left;border:1px solid #0000;border-radius:9px;align-items:center;gap:10px;width:100%;margin-bottom:6px;padding:4px 8px;display:flex}.character-library-item[aria-pressed=true]{background:#c0a56324;border-color:#c0a56388}.character-library-item svg{flex-shrink:0;width:42px;height:52px}.character-library-item span{overflow-wrap:anywhere}.character-new{border:1px dashed #aa9568;border-radius:8px;justify-content:center;align-items:center;gap:6px;width:100%;min-height:44px;display:flex}.character-editor{grid-template-columns:minmax(180px,1fr) minmax(240px,1.1fr);gap:24px;padding:24px;display:grid}.character-preview{flex-direction:column;justify-content:center;align-items:center;min-width:0;display:flex;position:relative}.character-preview-halo{aspect-ratio:1;background:radial-gradient(#c2a65d25,#c2a65d07 60%,#0000 70%);border-radius:50%;width:100%;position:absolute}.character-preview>svg{filter:drop-shadow(0 12px 15px #0005);width:100%;max-height:380px;position:relative;overflow:visible}.character-random{color:#dec189;justify-content:center;align-items:center;gap:8px;min-height:44px;font-size:14px;display:inline-flex;position:relative}.character-name{gap:7px;margin-bottom:18px;font-size:14px;display:grid}.character-name input{color:#f3e6c8;background:#11261e;border:1px solid #958354;border-radius:7px;width:100%;min-height:44px;padding:10px 12px;font-size:18px}.character-part{border-top:1px solid #c3b88e1c;justify-content:space-between;align-items:center;gap:8px;font-size:14px;display:flex}.character-part>div{align-items:center;display:flex}.character-part button{color:#e2c98f;border-radius:6px;place-items:center;width:36px;min-height:44px;display:grid}.character-part button:hover{background:#c2a65d22}.character-part output{text-align:center;color:#f4e8cc;min-width:78px}.character-editor-actions{gap:10px;margin-top:20px;display:flex}.character-save{color:#16291e;background:#c2a569;border:1px solid #e4c77f;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:8px;min-height:46px;font-weight:700;display:flex}.character-delete{border:1px solid #c79c7680;border-radius:8px;padding:10px}.character-message,.character-error{margin-top:12px;font-size:14px}.character-error{color:#ffb7a0}.character-picker{min-width:0;font-size:13px}.character-picker select{border:1px solid var(--realm-border);background:var(--realm-inset);width:100%;min-height:40px;color:var(--realm-cream);border-radius:6px;padding:4px 6px}.character-picker a{color:var(--realm-gold)}@media (width<=800px){.character-workshop{grid-template-columns:1fr}.character-library{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.character-library h2{width:100%;margin:0}.character-library-item,.character-new{width:auto}.character-library>p{width:100%;margin-top:4px}}@media (width<=540px){.character-editor{grid-template-columns:1fr;gap:12px;padding:16px}.character-preview>svg{width:240px;height:220px}.characters-heading{margin:18px auto}.character-part button{width:44px}.characters-nav>img,.characters-nav>svg{width:130px;height:50px}}
