@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&family=Oswald:wght@400;500;600&display=swap');
:root{--paper:#f5f2e9;--ink:#26342e;--muted:#6e746b;--line:#d9dacb;--gold:#927137;--air:#787aaa;--earth:#70784b;--fire:#b66848;--water:#4e7e8e}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:18px 'DM Sans',sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:5px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}header{height:108px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:48px;padding:0 5%}.brand{display:flex;align-items:center;gap:13px;font-family:Georgia,serif;font-size:18px;letter-spacing:3px;line-height:1.25}.brand b{font-size:23px;font-weight:400}.seal{font-size:44px;color:var(--gold)}nav{display:flex;gap:30px;margin:auto}nav a{font-size:18px;padding:12px 0}nav a.active{border-bottom:1px solid var(--gold)}.edition,.eyebrow{font-size:18px;letter-spacing:2px;font-weight:600;color:var(--gold)}main{min-height:70vh}.wrap{max-width:1280px;margin:auto;padding:55px 5% 80px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:'Cinzel',Georgia,serif;font-weight:500}h1{font-size:62px;line-height:1.02;margin-bottom:25px}h2{font-size:38px;line-height:1.1;margin-bottom:16px}h3{font-size:26px;margin-bottom:12px}p{line-height:1.7;color:var(--muted)}.hero{display:grid;grid-template-columns:1.08fr 1fr;min-height:485px;align-items:center;gap:30px}.hero h1{font-size:76px;max-width:640px}.hero .eyebrow{margin-bottom:27px}.hero p{max-width:465px;font-size:18px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:28px}.btn{background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:3px;padding:13px 22px;display:inline-flex;gap:15px;align-items:center;justify-content:center;font-size:18px}.btn.secondary{background:transparent;color:var(--ink);border-color:var(--line)}.btn.small{padding:8px 13px;font-size:18px}.btn:hover{filter:brightness(1.16)}.quiet{font-size:18px;color:var(--muted)}.rule{border-top:1px solid var(--line);margin:45px 0 30px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}.section-head h2{margin:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{border:1px solid var(--line);padding:28px;background:#faf8f1}.card .number{display:block;color:var(--gold);font-size:18px;letter-spacing:2px;margin-bottom:25px}.card p{font-size:18px;margin-bottom:20px}.card .arrow{font-size:18px}.element-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:25px;padding:30px 0}.element-strip h3{font-size:24px}.element-strip p{font-size:18px}.page-title{max-width:800px;margin-bottom:35px}.page-title h1{margin:14px 0 16px;font-size:54px}.banner{padding:16px 20px;border-left:3px solid var(--gold);background:#ece9dc;margin:22px 0;font-size:18px;line-height:1.7}.split{display:grid;grid-template-columns:1fr 310px;gap:30px}.panel{background:#fbf9f3;border:1px solid var(--line);padding:30px}.sticky{position:sticky;top:20px;align-self:start}.steps{display:flex;gap:8px;margin-bottom:30px}.steps button{border:0;border-bottom:2px solid var(--line);padding:12px 8px;background:none;flex:1;color:var(--muted);font-size:18px}.steps button.current{border-color:var(--gold);color:var(--ink)}label.field{display:block;font-size:18px;font-weight:600;margin-bottom:20px}input,select,textarea{background:#fffef9;color:var(--ink);border:1px solid #cdd0c2;border-radius:2px;padding:12px;width:100%;margin-top:8px}textarea{min-height:120px;resize:vertical}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{background:transparent;border:1px solid var(--line);text-align:left;padding:22px;color:var(--ink);border-radius:2px}.choice.selected{border-color:var(--gold);background:#f0ebdc;box-shadow:inset 0 0 0 1px var(--gold)}.choice strong{font:26px 'Cinzel',Georgia}.choice p{font-size:18px;margin:8px 0}.choice .quiet{display:block;line-height:1.6}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stat{text-align:center;background:#efecdf;border-top:3px solid var(--gold);padding:17px 5px}.stat strong{font:32px Georgia;display:block;margin-bottom:6px}.stat span{font-size:18px;letter-spacing:1px}.summary .stat-grid{grid-template-columns:1fr 1fr}.summary p{font-size:18px}.summary ul{padding-left:18px;font-size:18px;line-height:1.9}.skill-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:12px;font-size:18px}.check input{width:17px;height:17px;margin:0}.toolbar{display:flex;gap:14px;margin:20px 0;align-items:center}.toolbar input{margin:0}.toolbar select{width:auto;min-width:160px;margin:0}.talent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.talent{padding:20px;border:1px solid var(--line);background:#fbf9f3;display:flex;flex-direction:column;gap:10px}.talent h3{font-size:23px;margin:0}.talent p{font-size:18px;margin:0}.talent .tag{font-size:18px;text-transform:uppercase;letter-spacing:1.5px;color:var(--gold)}.talent .btn{margin-top:auto}.talent.chosen{border-color:var(--gold);background:#efebdc}.list-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0;gap:12px}.sheet-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:25px;margin-top:25px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.resource{padding:20px;text-align:center;border:1px solid var(--line);background:#fbf9f3}.resource h3{font-size:22px}.resource strong{font:36px Georgia}.counter{display:flex;justify-content:center;align-items:center;gap:15px}.counter button{border:1px solid var(--line);background:none;width:30px;height:30px}.empty{text-align:center;padding:60px 20px;border:1px dashed #b4b8a7}.empty .seal{display:block;margin-bottom:15px}.pill{display:inline-block;padding:5px 8px;font-size:18px;background:#e6e9dd;border-radius:15px}.danger{color:#9c432b}.tree-row{margin:8px 0;border-left:2px solid #c7b995;padding:8px 15px;font-size:18px}.tree-row small{display:block;color:var(--muted);margin-top:5px}.tree-row.learned{background:#e9eddf}.talent-scroll{max-height:560px;overflow:auto;padding:2px}.error{color:#9c432b;font-size:18px;margin:18px 0}footer{border-top:1px solid var(--line);padding:28px 5%;display:flex;justify-content:space-between;font-size:18px;color:var(--muted);gap:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 22px;border-radius:4px;z-index:100;display:none;max-width:90vw}.hide{display:none!important}@media(max-width:1000px){.edition{display:none}.hero h1{font-size:60px}.split{grid-template-columns:1fr 250px}.talent-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){header{height:auto;padding:20px 5%;flex-wrap:wrap;gap:15px}nav{width:100%;gap:22px;overflow:auto;white-space:nowrap}nav a{font-size:18px}.hero{grid-template-columns:1fr;gap:0}.hero h1{font-size:58px}.orbit{width:280px;margin:25px auto}.wrap{padding-top:35px}.cards,.split,.sheet-layout{grid-template-columns:1fr}.sticky{position:static}.element-strip{grid-template-columns:1fr 1fr}.talent-grid{grid-template-columns:1fr}.resource-grid{gap:6px}.resource{padding:15px 5px}.resource h3{font-size:19px}.counter{gap:7px}.panel{padding:20px}.toolbar{flex-wrap:wrap}.toolbar select{width:100%}.section-head{align-items:start;flex-wrap:wrap}.page-title h1{font-size:44px}footer{flex-wrap:wrap}.steps button{font-size:18px}.choice{padding:16px}.skill-grid{grid-template-columns:1fr}}@media print{header,footer,.no-print,#toast{display:none!important}body{background:white;color:black;font-size:18px}.wrap{padding:0}.panel,.resource,.stat{background:white;break-inside:avoid}.page-title h1{font-size:35px}.sheet-layout{grid-template-columns:1fr 1fr}.resource-grid{margin:10px 0}.btn{display:none}.banner{background:white}.counter button{display:none}textarea{border:0;min-height:100px}.sheet-layout .panel{padding:15px}a{color:black}}

/* Visual identity drawn from the original Elemental Fantasy artwork. */
:root{--paper:#fffcf5;--ink:#302e38;--muted:#656271;--line:#d8cfbd;--gold:#825a2c;--air:#7861a4;--earth:#747039;--fire:#be482a;--water:#285a99}
body{background:#fffcf5 url('assets/art/background.webp') center top / 100% 100% no-repeat}header{background:rgba(255,253,248,.9);height:112px;border-bottom:2px solid #cbbda7;position:relative}header:after{content:'';position:absolute;bottom:-3px;left:0;right:0;height:4px;background:linear-gradient(90deg,#e67732 0 25%,#b59ad6 25% 50%,#aaa065 50% 75%,#4c99d4 75%)}.brand{color:#303954;letter-spacing:2px}.brand-mark{width:64px;height:64px;border-radius:9px;object-fit:contain;box-shadow:0 2px 0 #ada294}.brand b{font-weight:600}.edition{color:#685b7b}nav a.active{border-color:var(--water);color:var(--water)}
h1,h2,h3{font-weight:600}h1,h2{color:#343552}.hero{grid-template-columns:1fr 1.12fr;min-height:535px;gap:20px}.hero h1{font-size:62px;line-height:1.13;letter-spacing:-1.5px}.hero p{font-size:18px;max-width:420px}.hero .eyebrow{color:#795688}.hero-art{position:relative;align-self:stretch;min-height:525px;display:flex;flex-direction:column;justify-content:end}.art-halo{position:absolute;inset:20px -10px 75px;background:radial-gradient(ellipse at 60% 40%,#dfd8f1 0, #ede8f5 35%,#e5f0f6 58%,transparent 73%);border-radius:50%;opacity:.8}.hero-party{position:relative;width:100%;height:440px;isolation:isolate}.hero-party img{position:absolute;bottom:0;object-fit:contain;object-position:bottom;filter:drop-shadow(0 10px 5px #5d4a3826)}.party-dwarf{left:0;width:35%;height:78%;z-index:3}.party-elf{left:21%;width:42%;height:94%;z-index:2}.party-gnome{left:49%;width:25%;height:62%;z-index:4}.party-human{right:-1%;width:36%;height:100%;z-index:1}.hero-elements{display:flex;gap:28px;justify-content:center;padding-top:24px;position:relative}.hero-elements>div{display:flex;align-items:center;gap:6px}.hero-elements span{font:18px 'Cinzel',Georgia,serif;font-weight:600}.element-icon{width:44px;height:44px;object-fit:contain;vertical-align:middle}.hero-elements .element-icon{width:32px;height:36px}.btn{background:linear-gradient(#376697,#284777);border-color:#253756;color:#fff;border-radius:6px;box-shadow:0 3px 0 #203453;font-weight:600;transition:transform .15s,filter .15s}.btn:hover{transform:translateY(-1px);filter:brightness(1.06)}.btn.secondary{background:#fffaf0;color:#3d4055;border-color:#b9ac96;box-shadow:0 2px 0 #d4c7b2}.btn:disabled{transform:none}.cards>.card:nth-child(1){border-top:4px solid #bb6241}.cards>.card:nth-child(2){border-top:4px solid #8f7ab4}.cards>.card:nth-child(3){border-top:4px solid #5186b4}.card,.panel,.talent{background:rgba(255,253,247,.94);border-radius:8px;border-color:#d3c6b1;box-shadow:0 4px 0 #c9bda322}.card h3{font-size:24px}.card .number{color:#725f56}.card .arrow{color:#285a99;font-weight:600}.card:hover{border-color:#9985b4}.rule{border-color:#d6c8ae}.element-strip{gap:20px;padding:12px 0 25px}.element-story{border-top:2px solid var(--element-color);padding:22px 18px;background:rgba(255,255,255,.55)}.element-story .element-icon{width:56px;height:56px;margin-bottom:15px}.element-story h3{font-size:22px;color:var(--element-color)}.eyebrow{letter-spacing:1.6px}.page-title h1{font-size:45px;line-height:1.2}.panel h2{font-size:30px}.summary h2{font-size:26px}.panel h3{font-size:23px}.stat{background:#faf6ef;border:1px solid #d8ccba;border-top:3px solid;border-radius:6px;padding:12px 5px}.stat .element-icon{display:block;margin:0 auto 8px;width:38px;height:38px}.stat strong{font-size:29px}.summary .stat-grid .stat{padding:10px 4px}.summary-portrait{display:block;width:100%;height:160px;object-fit:contain;margin:18px auto 8px}.summary h2{overflow-wrap:anywhere}.choice{border-radius:7px;background:#fffdf8;position:relative;overflow:hidden;min-height:95px}.choice.selected{background:#f0eaf8;border-color:#9274b9;box-shadow:inset 0 0 0 1px #9274b9}.choice strong{font-size:23px;position:relative}.choice .element-icon{display:block;margin-bottom:12px}.choice:has(.ancestry-art){min-height:230px;padding-right:40%}.ancestry-art{position:absolute;right:0;bottom:0;width:43%;height:94%;object-fit:contain;object-position:bottom}.choice .quiet{font-size:18px}.check{border-radius:5px;background:#fffcf7}.check:has(:checked){border-color:#a092b7;background:#f4eff9}.steps button.current{border-color:var(--air);color:#694894;font-weight:700}.banner{background:#f2edf8;border-color:#9983b6;color:#504661;border-radius:0 6px 6px 0}.talent.chosen{background:#eeedf9;border-color:#8c77ae}.talent h3{font-size:20px}.resource{background:#fffdf7;border-radius:8px;border:1px solid #cbbcaa;box-shadow:0 3px 0 #e1d5c4}.resource:nth-child(1){border-top:4px solid var(--earth)}.resource:nth-child(2){border-top:4px solid var(--water)}.resource:nth-child(3){border-top:4px solid var(--fire)}.resource h3{font-size:20px}.resource .counter button{border-radius:4px;background:#f2ecf7;color:#5d4486}.tree-row.learned{background:#eeedf6;border-color:#9680b1;border-radius:0 6px 6px 0}.pill{background:#e5eaf4;color:#2d4f7e}.empty{background:rgba(255,253,247,.8);border-color:#b7a6c7;border-radius:10px}.empty-emblem{border-radius:12px;margin-bottom:20px}.sheet-identity{display:flex;align-items:center;gap:22px;min-width:0}.sheet-portrait{width:105px;height:140px;object-fit:contain;flex-shrink:0}.sheet-identity .page-title{margin-bottom:0}.sheet-identity h1{overflow-wrap:anywhere}footer{background:#f2edf6;color:#60586c;border-top:2px solid #cec1dc}input,select,textarea{border-radius:5px;border-color:#c8bccf}input:focus,select:focus,textarea:focus{outline:2px solid #9179bb;outline-offset:2px}#toast{background:#293e67}.danger{color:#a83e28}
@media(max-width:1100px){.hero h1{font-size:51px}.hero-art{min-height:465px}.hero-party{height:380px}.hero-elements{gap:14px}.hero-elements span{font-size:18px}.brand{gap:9px}header{gap:25px}nav{gap:22px}}
@media(max-width:700px){header{height:auto;gap:14px}.brand-mark{width:50px;height:50px}.hero{grid-template-columns:1fr}.hero h1{font-size:49px;letter-spacing:-1px;max-width:520px}.hero-art{min-height:390px;margin-top:20px}.hero-party{height:340px;max-width:500px;margin:auto}.hero-elements{gap:18px;padding-top:20px}.hero-elements>div{flex-direction:column;gap:5px}.art-halo{inset:0 0 40px}.element-strip{gap:12px}.element-story{padding:18px 12px}.element-story .element-icon{width:44px;height:44px}.element-story h3{font-size:19px}.page-title h1{font-size:35px}.panel h2{font-size:26px}.choice:has(.ancestry-art){min-height:275px;padding:16px 16px 145px}.ancestry-art{height:145px;width:100%;object-position:bottom right}.choice strong{font-size:20px}.stat .element-icon{width:30px;height:30px}.sheet-identity{gap:15px}.sheet-portrait{width:75px;height:110px}.resource h3{font-size:18px}.summary-portrait{height:190px}.hero-elements .element-icon{width:29px;height:32px}.section-head h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}
@media print{body{background:white}.hero-art,.summary-portrait{display:none}.panel,.stat,.resource{box-shadow:none;background:white}.sheet-portrait{height:90px;width:65px}.stat .element-icon{width:26px;height:26px}.banner{background:white}.sheet-identity h1{font-size:30px}}
/* Task-based navigation and browsable game reference. */
nav{align-items:center}.nav-menu{position:relative}.nav-menu summary{cursor:pointer;font-size:18px;padding:14px 0;list-style:none}.nav-menu summary:after{content:' ▾';font-size:18px}.nav-dropdown{position:absolute;top:100%;left:-20px;z-index:20;background:#fffdf7;border:1px solid #c7b8cf;border-radius:7px;box-shadow:0 8px 22px #27253c22;padding:18px;min-width:255px;display:grid;gap:4px}.nav-dropdown a{display:block;padding:10px;border:0;white-space:normal}.nav-dropdown a:hover{background:#eeebf6;border-radius:4px}.nav-dropdown small{display:block;margin-top:4px;color:var(--muted);font-size:18px}.nav-menu[open]>summary{color:var(--water)}.header-create{white-space:nowrap}.breadcrumbs{font-size:18px;color:var(--muted);margin-bottom:30px}.breadcrumbs a:hover{text-decoration:underline}.reference-wrap{max-width:1440px}.reference-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:40px}.reference-nav{align-self:start;position:sticky;top:24px;display:grid;gap:5px;padding:20px 0;border-top:3px solid var(--air)}.reference-nav>.eyebrow{margin:0 12px 16px}.reference-nav>a{padding:12px;font-size:18px;border-radius:4px}.reference-nav>a[aria-current]{background:#e9e3f1;color:#5d437f;font-weight:700}.reference-nav>a:hover{background:#f1edf6}.ref-aside-note{font-size:18px;line-height:1.9;margin:25px 12px;color:var(--muted)}.ref-aside-note a{color:var(--water)}.reference-main{min-width:0}.reference-main .page-title h1{font-size:40px}.reference-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.reference-categories .number{margin-top:18px;margin-bottom:15px}.reference-book{margin-top:25px}.ancestry-reference>img{float:right;width:110px;height:180px;object-fit:contain;margin:0 0 18px 15px}.ancestry-reference .stat-grid{clear:both}.ancestry-reference h2{font-size:29px}.reference-filters{padding:20px;background:#eee8f3;border:1px solid #cbbfd7;border-radius:6px;display:grid;grid-template-columns:2fr 1fr 1.4fr 1fr;gap:12px;align-items:end}.reference-filters .field{margin:0}.reference-filters select{width:100%;padding:11px 7px;font-size:18px}.reference-filters>.btn{justify-self:start}.talent-list{border:1px solid #d2c7b7;border-radius:6px;overflow:hidden;background:#fffdf8}.talent-list-head,.talent-entry>summary{display:grid;grid-template-columns:1.3fr .6fr 1.2fr;gap:18px;align-items:center;padding:17px 20px}.talent-list-head{background:#e9e3ef;font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px}.talent-entry{border-top:1px solid #e2d9cb}.talent-entry>summary{cursor:pointer;list-style:none;font-size:18px}.talent-entry>summary::-webkit-details-marker{display:none}.talent-entry>summary strong:before{content:'＋';color:var(--air);margin-right:10px}.talent-entry[open]>summary strong:before{content:'−'}.talent-entry>summary .pill{justify-self:start}.talent-entry>summary:hover,.talent-entry[open]>summary{background:#f3eff7}.talent-detail{padding:20px 25px 24px;border-top:1px solid #e4ddeb}.talent-detail p{font-size:18px}.reference-table{border:1px solid var(--line);background:#fffdf8;border-radius:6px;overflow:auto}.reference-table table{width:100%;border-collapse:collapse;text-align:left}.reference-table th,.reference-table td{padding:15px 20px;border-bottom:1px solid #e4ddcf;font-size:18px}.reference-table thead{background:#e9e3ef}.reference-table tbody th{font-weight:500}.reference-table .pill{margin:3px}.reference-main .cards{grid-template-columns:1fr}.reference-main .cards .card{padding:22px}.reference-main .cards .card .number{margin-bottom:12px}
@media(max-width:1000px){.reference-layout{grid-template-columns:170px minmax(0,1fr);gap:25px}.reference-filters{grid-template-columns:1fr 1fr}.reference-categories{gap:14px}.reference-categories .card{padding:20px}.header-create{display:none}}
@media(max-width:700px){header nav{overflow:visible;gap:25px}.nav-menu summary{font-size:18px}.nav-dropdown{left:auto;right:0;min-width:230px}.reference-layout{grid-template-columns:1fr;gap:24px}.reference-nav{position:static;display:flex;flex-wrap:wrap;gap:5px;padding:12px 0;border-top:0;border-bottom:1px solid var(--line)}.reference-nav>.eyebrow,.ref-aside-note{display:none}.reference-nav>a{font-size:18px;padding:9px}.breadcrumbs{margin-bottom:12px}.reference-main .page-title h1{font-size:32px}.reference-categories{grid-template-columns:1fr}.reference-filters{padding:15px;gap:12px}.reference-filters .field:first-child{grid-column:1/-1}.talent-list-head{display:none}.talent-entry>summary{grid-template-columns:1fr auto;gap:9px;padding:16px}.talent-entry>summary>span:last-child{grid-column:1/-1;padding-left:24px;font-size:18px;color:var(--muted)}.reference-table th,.reference-table td{padding:12px}.ancestry-reference>img{height:170px}}
@media print{.breadcrumbs,.reference-nav,.reference-filters{display:none}.reference-layout{display:block}}
@media(max-width:700px){header nav{position:relative}.nav-menu{position:static}.nav-dropdown{left:0;right:auto;top:100%;width:min(300px,90vw);min-width:0}}

/* Talent rules stay within reach on sheets, in the builder, and in reference. */
.talent-name{display:inline;padding:0;border:0;border-bottom:1px dotted currentColor;border-radius:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:help;line-height:inherit;box-shadow:none}
.talent-name:hover,.talent-name:focus-visible{color:var(--blue,#284678);background:#edf1f8;outline:2px solid transparent}.talent-name:focus-visible{outline:2px solid #284678;outline-offset:3px}
.talent-popover{position:fixed;z-index:1000;width:min(410px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:22px;background:#fffdf7;color:#252c35;border:1px solid #c7bc9e;border-top:4px solid #7c7499;border-radius:12px;box-shadow:0 12px 40px #25345130;font-size:18px;line-height:1.6}
.talent-popover[hidden]{display:none}.talent-popover h3{font-size:23px;margin:6px 0 10px}.talent-popover p{margin:10px 0}.talent-popover small,.talent-prerequisite{color:#596171}.talent-popover .eyebrow{font-size:18px}.rule-element{white-space:nowrap;font-weight:600}.rule-element .element-icon{display:inline-block;width:18px;height:18px;vertical-align:-4px;object-fit:contain}
#advance-rules:empty{display:none}#advance-rules{margin:12px 0;padding:12px;background:#f4f1e8;border-radius:8px}
@media print{.talent-popover{display:none!important}.talent-name{border:0}}

.tree-view-switch{display:flex;gap:8px;margin:0 0 22px}.tree-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:16px;padding:20px;background:#ede9f2;border:1px solid #d7cede;border-radius:12px}.tree-toolbar .field{margin:0;flex:1;min-width:180px}.tree-zoom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tree-zoom output{min-width:44px;text-align:center;font-size:18px}.tree-legend{display:flex;flex-wrap:wrap;gap:18px;align-items:center;margin:18px 0;font-size:18px}.tree-legend span{display:flex;gap:6px;align-items:center}.tree-legend i{width:12px;height:12px;border:2px solid #b0aabd;border-radius:3px}.tree-legend .learned{background:#dde6d1;border-color:#62764c}.tree-legend .available{background:#e4eafa;border-color:#466aaf}.tree-legend .locked{background:#eee9e3;border-color:#b2a79b}.tree-instructions{font-size:18px}.tree-viewport{height:640px;max-height:75vh;min-height:360px;overflow:auto;background-color:#f9f7f1;background-image:radial-gradient(#d7d0c4 1px,transparent 1px);background-size:20px 20px;border:1px solid #d6ccbd;border-radius:14px;cursor:grab;overscroll-behavior:contain}.tree-viewport:focus-visible{outline:3px solid #7c7499;outline-offset:3px}.tree-viewport.dragging{cursor:grabbing;user-select:none}#tree-size{position:relative;min-width:100%;min-height:100%}.talent-tree-stage{position:relative;transform-origin:top left}.tree-lines{position:absolute;inset:0;overflow:visible;pointer-events:none}.tree-lines path[data-tree-from]{fill:none;stroke:#b0a3bd;stroke-width:2}.tree-lines path.path-active{stroke:#5e4b83;stroke-width:4}.tree-node{position:absolute;width:208px;height:110px;padding:12px 14px;border:1px solid #c7bdd2;border-top:4px solid #88779c;border-radius:10px;background:#fffdf8;box-shadow:0 3px 8px #3328410c;display:flex;flex-direction:column;gap:7px;justify-content:center;cursor:default}.tree-node .talent-name{font-size:18px;font-weight:650;line-height:1.15}.tree-node small{font-size:18px;line-height:1.2;color:#686271}.tree-node-meta{font-size:18px;letter-spacing:1.1px;font-weight:700;color:#7a688e}.tree-node.learned{background:#eef3e6;border-color:#74865f}.tree-node.available{background:#f0f4ff;border-color:#597dbb}.tree-node.locked{background:#f2efeb;border-color:#bdb4aa}.tree-node.requirement{border:2px dashed #a99c8d;background:#f6f1e9;font-size:18px}.tree-node.path-dimmed{opacity:.35}.tree-node.path-selected{outline:3px solid #665184;outline-offset:3px;box-shadow:0 4px 16px #66518430}.tree-node.path-related{border-color:#665184}.tree-path-summary{padding:18px 0;font-size:18px;min-height:62px}@media(max-width:700px){.tree-toolbar{padding:12px}.tree-zoom{gap:6px}.tree-viewport{height:560px}.tree-legend{gap:10px}}@media print{.tree-toolbar,.tree-view-switch{display:none}.tree-viewport{overflow:visible;max-height:none;height:auto}}

/* The printed book: ink, elemental pigments, serif text, and fine branching rules. */
:root{--paper:#fdfbf7;--ink:#25211f;--muted:#605954;--line:#d8cec1;--gold:#906c36;--air:#a58abc;--earth:#8b9952;--fire:#da6726;--water:#347caf;--book-serif:'Crimson Pro',Georgia,serif;--book-heading:'Libre Baskerville','Bookman Old Style',Georgia,serif;--book-tree:'Oswald','Arial Narrow',sans-serif}
body{background:#fffdfa url('assets/art/background.webp') center top/cover fixed;color:var(--ink);font-family:var(--book-serif);font-size:18px}p{color:var(--muted);line-height:1.55}h1,h2,h3,.choice strong{font-family:var(--book-heading);font-weight:400;letter-spacing:-.035em;font-variant:small-caps}h1,.page-title h1{font-size:46px;line-height:1.16}.hero h1{font-size:58px}.hero p{font-size:20px}.hero{grid-template-columns:1fr 1.1fr;gap:45px}.book-circle{margin:0;align-self:center}.book-circle img{display:block;width:100%;height:auto;mix-blend-mode:multiply}.book-circle figcaption{text-align:center;font:18px var(--book-tree);letter-spacing:3px;color:var(--muted);margin-top:14px}
header{background:#fffcf5e8;border-bottom:1px solid #cbbb9d;box-shadow:none}header:after{background:linear-gradient(90deg,var(--fire) 0 25%,var(--air) 25% 50%,var(--earth) 50% 75%,var(--water) 75%);height:3px}.brand{font-family:var(--book-heading);letter-spacing:1px}.brand b{font-weight:700}.brand-mark{width:78px;height:78px;border-radius:0;filter:none}.eyebrow,.edition,.card .number,.tag,.tree-node-meta{font-family:var(--book-tree);font-weight:400;letter-spacing:1.5px}.btn,nav,label.field,.steps,.tree-legend,.tree-zoom,select,input,.reference-sidebar{font-family:var(--book-tree);font-weight:400;letter-spacing:.2px}.btn{background:#2d5276;border:1px solid #274662;border-radius:2px;box-shadow:none}.btn.secondary{background:#fffaf0;color:#453b30;border:1px solid #bcb09b;box-shadow:none}.btn:hover{filter:brightness(1.07)}.panel,.card,.resource,.talent{background:#fffdf8de;border-radius:2px;box-shadow:none;border-color:#d4c7b6}.card{border-top:3px solid var(--earth)}.card:nth-child(2){border-top-color:var(--air)}.card:nth-child(3){border-top-color:var(--water)}.card p,.talent p,.talent-detail p{font-size:18px}.card .arrow{font-family:var(--book-tree)}.reference-sidebar{border-top-color:var(--earth)}.reference-sidebar a.active{background:#e9e1f0;color:#544367;border-radius:0}.reference-filters,.tree-toolbar{background:#faf7efde;border:1px solid #d7cbb7;border-radius:2px}.talent-list,.reference-table{border-radius:2px;background:#fffefa}.talent-list-head,.reference-table thead{background:#e9e0ef;font-family:var(--book-tree);letter-spacing:.4px}.talent-entry>summary,.reference-table td,.reference-table th{font-size:18px}.talent-entry>summary strong{font-weight:600}.talent-entry>summary:hover,.talent-entry[open]>summary{background:#f4edf8}.pill{border-radius:2px;background:#e9eef1;font-family:var(--book-tree);font-size:18px}.stat{background:#fffdf6;border-radius:0;box-shadow:none}.stat strong{font-family:var(--book-serif);font-size:38px}.stat span{font-family:var(--book-tree);font-size:18px}.resource h3{font-size:21px}.quiet{font-size:18px}.banner{background:#f1e6cc;border-left-color:var(--fire)}footer{background:#faf6ed;font-family:var(--book-tree)}.talent-popover{background:#fffdf6;border:1px solid #bda889;border-top:3px solid var(--earth);border-radius:2px;font-family:var(--book-serif);font-size:18px;box-shadow:0 8px 24px #42322024}.talent-popover h3{font-size:22px}.talent-popover .eyebrow{font-family:var(--book-tree)}.talent-name:hover,.talent-name:focus-visible{background:#ece3f4;color:#4c3d60}
.tree-viewport{--branch:#80aa81;border-radius:0;background:#fffdfa url('assets/art/background.webp') center/cover;border:1px solid #d5c8b4}.tree-viewport[data-tree-category="Dwarf"]{--branch:#a8b45d}.tree-viewport[data-tree-category="Elf"]{--branch:#b497c6}.tree-viewport[data-tree-category="Gnome"]{--branch:#df6c24}.tree-viewport[data-tree-category="Human"]{--branch:#71b9db}.tree-lines path[data-tree-from]{stroke:var(--branch);stroke-width:1.5}.tree-lines path.path-active{stroke:var(--branch);stroke-width:3}.tree-node{height:64px;background:transparent;border:0;border-bottom:1.5px solid var(--branch);border-radius:0;padding:2px 5px 5px;box-shadow:none;gap:2px;justify-content:end}.tree-node:after{content:'';position:absolute;right:-3px;bottom:-3px;width:5px;height:5px;border:1px solid var(--branch);background:#fffdfa}.tree-node .talent-name{font:400 18px/1.15 var(--book-tree);border-bottom:0;color:#28201a;letter-spacing:0}.tree-node-meta{font-size:18px;color:#665c50;letter-spacing:1px}.tree-node small{font:18px/1.15 var(--book-serif);color:#675d53}.tree-node.reference .tree-node-meta{display:none}.tree-node.reference:has(.tree-node-meta:first-child) .tree-node-meta{display:block}.tree-node.learned{background:#e1edd3a8;border:0;border-bottom:3px solid #607e43}.tree-node.available{background:#e1eff7b0;border:0;border-bottom:3px solid #347caf}.tree-node.locked{background:#f0ebe3a8;border:0;border-bottom:1.5px solid #9c9183}.tree-node.requirement{background:#f6f1e8;border:1px dashed #9d9283;font-family:var(--book-tree)}.tree-node.path-selected{outline:1px solid var(--branch);outline-offset:5px;box-shadow:none;background:#fffaf0}.tree-node.path-related{border-color:var(--branch)}.tree-node.path-dimmed{opacity:.42}.tree-legend i{border-radius:0}.tree-path-summary{font-size:18px}.tree-instructions{font-size:18px}.tree-view-switch{border-bottom:1px solid #c8bca8;padding-bottom:16px}
@media(max-width:700px){.hero{grid-template-columns:1fr;gap:25px}.hero h1{font-size:43px}.book-circle{max-width:500px;margin:0 auto}.page-title h1{font-size:35px}.brand-mark{width:56px;height:56px}.brand{font-size:18px}.brand b{font-size:19px}.tree-toolbar label.field{min-width:150px}h2{font-size:29px}body{background-size:auto 1100px}.talent-popover{font-size:18px}}
body{background-image:url('assets/art/book-paper.png');background-size:100% auto;background-repeat:repeat-y;background-attachment:scroll}h1,h2,h3,.brand{color:var(--ink)}.brand-mark{border-radius:50%;box-shadow:none}.tree-viewport{background-image:url('assets/art/book-paper.png');background-size:cover}.tree-node.reference .tree-node-meta{display:none}.tree-node.reference:has(.tree-node-meta:first-child) .tree-node-meta{display:none}.tree-node.reference:has(.tree-node-meta) small{font-size:18px}.tree-node:has(.tree-node-meta) .tree-node-meta{letter-spacing:.5px}.book-circle{background:#fffdf7a8;border-radius:50%}.hero .quiet{font-size:18px}
body{background-image:linear-gradient(#ffffffc9,#ffffffc9),url('assets/art/book-paper.png')}.tree-viewport{background-image:linear-gradient(#ffffffcb,#ffffffcb),url('assets/art/book-paper.png')}.tree-node.reference.has-gate .tree-node-meta{display:block}.tree-node.reference.has-gate:has(.tree-node-meta:first-child) .tree-node-meta{display:block}
.gm-console{max-width:1600px}.gm-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px}.gm-top-actions{display:flex;gap:10px;flex-wrap:wrap;margin:-10px 0 25px}.gm-play,.gm-reference{display:flex;flex-direction:column;gap:24px;min-width:0}.gm-console .panel{padding:22px}.gm-console h2{font-size:27px}.gm-budget{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border-block:1px solid var(--line);padding:18px 0;margin:12px 0 24px}.gm-budget small{font:18px var(--book-tree);display:block;letter-spacing:1px}.gm-budget strong{display:block;font-size:30px;color:var(--water)}.gm-budget p{grid-column:1/-1;font-size:18px;margin:0}.gm-party-row{display:grid;grid-template-columns:1fr 90px auto;gap:10px;align-items:center}.gm-party-row .field{margin:0 0 12px}.gm-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0 20px}.gm-controls .field{flex:1;min-width:160px;margin:0}.gm-controls p{flex-basis:100%;margin:0}.gm-enemies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gm-enemy{padding:18px;background:#fffdf8;border:1px solid #c7b89c;border-top:3px solid var(--fire);min-width:0;box-shadow:0 3px 9px #583b1810}.gm-window-head{display:flex;gap:8px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.gm-window-head h3{font-size:20px;margin:0 auto 0 0}.gm-enemy label.field{margin-bottom:12px}.gm-stats{display:flex;gap:10px}.gm-stats .field{flex:1;min-width:0}.gm-stats input{padding:8px}.gm-damage{display:flex;gap:8px;align-items:center}.gm-damage .field{max-width:80px}.gm-enemy-status{font-size:18px;color:var(--water)}.gm-condition-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:18px;padding:10px 0}.gm-condition-options label{display:flex;gap:6px;align-items:center}.gm-condition-options input{width:auto;margin:0}.gm-enemy textarea{min-height:120px;font:18px var(--book-serif)}.gm-enemy details{margin:12px 0}.gm-search-window{border-top:3px solid var(--water)}#gm-search-results{max-height:440px;overflow:auto}.gm-rule-result{border-bottom:1px solid var(--line);padding:10px 0}.gm-rule-result summary{cursor:pointer;font-weight:600}.gm-rule-result small{display:block;font-size:18px;font-weight:400;color:var(--muted)}.gm-rule-result p{font-size:18px;margin:12px 0}.gm-rule-result a{font-size:18px;text-decoration:underline}.gm-skill-list>div{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:18px}.gm-dls{width:100%;font-size:18px;text-align:left;margin-top:20px;border-collapse:collapse}.gm-dls td,.gm-dls th{padding:6px;border-bottom:1px solid var(--line)}@media(max-width:1150px){.gm-layout{grid-template-columns:minmax(0,1fr) 300px}.gm-enemies{grid-template-columns:1fr}}@media(max-width:800px){.gm-layout{grid-template-columns:1fr}.gm-reference{display:grid;grid-template-columns:1fr}.gm-party-row{grid-template-columns:1fr 70px auto}.gm-budget strong{font-size:24px}}
.gm-book-match{display:inline-block;padding:6px 10px;border:1px solid var(--line);margin:3px;font-size:18px}.gm-active-conditions{font-size:18px;color:#855225;margin:6px 0}
/* Final reference library */
.book-controls,.creature-stats{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0}.book-controls .field{margin:0;min-width:110px}.book-reader{max-width:1100px}.book-text{font-size:19px;line-height:1.65}.search-result{border-bottom:1px solid var(--line,#d0c7b5);padding:14px 0}.search-result h3{margin-bottom:8px}.creature-card{margin-bottom:16px}.creature-card summary{cursor:pointer;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.creature-card summary strong{font-family:var(--heading-font,Georgia);font-size:24px}.creature-card summary small{margin-left:auto}.creature-content{padding-top:20px}.creature-content p{line-height:1.6}.equipment-table{margin:24px 0}.equipment-table td{min-width:80px;vertical-align:top}.book-text p{overflow-wrap:anywhere}.gm-enemy textarea{min-height:220px}.gm-enemy details p{font-size:18px}.wrap input,.wrap select,.wrap textarea{max-width:100%}.gm-play,.gm-reference,.gm-enemy,.split>*,.sheet-layout>*{min-width:0}
@media(max-width:650px){.book-text{font-size:18px;padding:18px}.book-controls{gap:10px}.creature-card summary strong{font-size:22px}.creature-card summary small{width:100%;margin-left:0}.reference-table{overflow-x:auto;max-width:100%}.equipment-table{padding:16px}.gm-controls{display:flex;flex-direction:column;align-items:stretch}.gm-controls .field{width:100%}.gm-enemies{grid-template-columns:minmax(0,1fr)}.gm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.gm-budget{grid-template-columns:repeat(3,minmax(0,1fr))}.gm-budget strong{font-size:24px}.gm-budget small{font-size:18px}.gm-party-row{grid-template-columns:minmax(0,1fr) 70px}.gm-party-row button{grid-column:1/-1}.book-reader .actions{flex-wrap:wrap}}
@media(max-width:650px){.choices{grid-template-columns:minmax(0,1fr)}.talent,.choice{min-width:0}.talent-scroll{max-height:65vh}.talent-name{overflow-wrap:anywhere}.steps{flex-wrap:wrap}.split>.panel,.split>section>.panel{padding:16px}}
@media(max-width:420px){.resource-grid{grid-template-columns:minmax(0,1fr)}.resource{min-width:0}.resource .counter{justify-content:center;gap:20px}.sheet-identity{flex-wrap:wrap}.sheet-identity .page-title{min-width:0}}

/* Comfortable reading sizes, including labels and secondary information. */
small{font-size:18px;line-height:1.45}
.element-strip p,.quiet,.card p,.talent p{font-size:18px}
footer{font-size:18px;line-height:1.5;flex-wrap:wrap}
.eyebrow,.edition,.card .number,.tree-node-meta{letter-spacing:.8px;line-height:1.4}
.book-circle figcaption{letter-spacing:1.5px;line-height:1.5}
.tree-node{width:240px;height:112px;justify-content:center;gap:4px}
.tree-node small,.tree-node.reference:has(.tree-node-meta) small{font-size:18px;line-height:1.3}
.tree-node-meta{font-size:18px}
.steps{flex-wrap:wrap}.steps button{min-width:100px}
@media(max-width:700px){.element-strip{grid-template-columns:1fr}.brand{letter-spacing:.5px}.tree-toolbar{align-items:stretch}.tree-zoom{flex-wrap:wrap}.gm-budget{grid-template-columns:1fr}.gm-budget small{font-size:18px}.gm-budget>div{min-width:0}}

[hidden]{display:none!important}.account-save-bar{padding:18px 5%;background:#f1e6cc;display:flex;flex-wrap:wrap;align-items:center;gap:16px;font-size:18px}.account-save-bar a,.account-transfer a{text-decoration:underline}.account-save-bar>div{flex-basis:100%}.account-transfer{margin-top:28px}.account-transfer p{max-width:75ch}.account-transfer button{white-space:normal}.account-save-bar [role=status]{font-weight:600}

/* Larger, open letterforms for navigation and readable supporting text. */
body{font-size:20px}
nav,.reference-nav{font-family:'DM Sans',sans-serif;letter-spacing:0}
header nav{gap:24px;flex-wrap:wrap}
header nav>a,.nav-menu>summary{font-size:22px;font-weight:500;line-height:1.5}
.nav-dropdown{min-width:300px}
.nav-dropdown a{font-size:20px;line-height:1.45}
.nav-dropdown small{font-family:var(--book-serif);font-size:18px;line-height:1.5}
.btn,label.field,.steps button,.eyebrow,.card .number,.card .arrow,footer{font-size:20px}
.card p,.element-strip p,.quiet,.talent p{font-size:20px}
.reference-nav>a{font-size:18px;line-height:1.5}
@media(max-width:700px){header nav{gap:12px 18px}header nav>a,.nav-menu>summary{font-size:20px}.nav-dropdown{width:min(340px,90vw);min-width:0}.nav-dropdown a{font-size:20px}footer{font-size:18px}.tree-toolbar{gap:16px}.tree-toolbar label.field{width:100%}}

.element-boost-option{display:flex;flex-direction:column;gap:8px;min-width:0}.element-boost-option .choice{width:100%;flex:1}.element-help{font:inherit;font-size:18px;background:none;border:0;text-decoration:underline;text-underline-offset:4px;color:var(--blue,#284678);padding:10px;cursor:pointer}.element-help:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Book illustration, kept within the reading column on every screen. */
.background-illustration{margin:24px auto 32px;max-width:520px;width:100%}.background-illustration img{display:block;width:100%;height:auto}
