@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-sans-normal-400-b0ae3e89a7d3ef2b.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dm-sans-normal-500-376427b5322148d8.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/dm-sans-normal-600-b79a2ea7a38f33fd.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/dm-sans-normal-700-2a8e7f713ee79fbc.ttf) format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/playfair-display-italic-600-5b667e91b59a4e1d.ttf) format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/playfair-display-normal-600-8ab6a1db2d7caeb4.ttf) format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/playfair-display-normal-700-adefc53e7b3d483f.ttf) format('truetype');
}
:root{font-family:'DM Sans',sans-serif;color:#e9eee8;background:#071b22}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:transparent}button,select{font:inherit}button{cursor:pointer}.app{max-width:1120px;margin:auto;padding:0 28px 110px}header{height:94px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff26}.brand{display:flex;gap:13px;align-items:center}.brandmark{color:#e7b86c;border:1px solid #b88953;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;font-size:24px}.brand strong{display:block;font-size:15px;letter-spacing:.2em}.brand small{display:block;color:#9cb4b3;letter-spacing:.18em;font-size:10px;margin-top:5px}.textbtn{background:none;border:0;color:#e8c58d;font-weight:700}.textbtn span{font-size:12px;margin-left:7px;color:#9eb6b7}.intro{text-align:center;margin:53px 0 38px}.eyebrow{font-size:11px;letter-spacing:.21em;font-weight:700;color:#e5b873}.intro h1{font:700 clamp(34px,5vw,64px)/1.12 'Playfair Display',Georgia,serif;margin:15px 0}.intro em{color:#d8b482}.intro p,.sectionhead p,.footnote{color:#a9bfc0;line-height:1.5}.intro p{margin:0}.panel{background:#12343c;border:1px solid #41626a;border-radius:24px;box-shadow:0 24px 65px #00101877;padding:30px}.sectionhead{display:flex;gap:18px;align-items:flex-start;margin-bottom:20px}.sectionhead>span{color:#e5b873;font:600 23px 'Playfair Display',serif}.sectionhead h2,.sheet h2{font:600 25px 'Playfair Display',serif;margin:0}.sectionhead p{margin:4px 0 0;font-size:14px}.habitats{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.habitat{background:#173d45;color:#ecf3ef;border:1px solid #3b6066;border-radius:13px;padding:16px;text-align:left;min-height:95px;display:flex;gap:13px;align-items:center;transition:.2s}.habitat:hover,.habitat:focus-visible{border-color:#e0b876}.habitat.selected{background:#315258;border:2px solid #e5bb79;padding:15px}.habitat .icon{font-size:27px}.habitat strong,.habitat small{display:block}.habitat strong{font-size:16px}.habitat small{color:#b1c5c4;margin-top:3px;font-size:12px}.options{margin:23px 0}.options>button{padding:0;border:0;background:none;color:#d8bd8f;font-weight:700}.options>button span{margin-left:8px}#optionsBody{display:flex;gap:14px;margin-top:15px}#optionsBody[hidden]{display:none}label{color:#a9c1c0;font-size:13px;flex:1}select{display:block;background:#0e2d35;color:#eef5ef;border:1px solid #41666b;border-radius:9px;padding:10px;margin-top:7px;width:100%}.castarea{background:#0a242d;border:1px solid #315660;border-radius:18px;overflow:hidden}.water{height:190px;position:relative;background:radial-gradient(ellipse at 52% 80%,#306275 0,#164456 33%,#092b39 65%,#061f2a 100%);overflow:hidden}.water:before,.water:after{content:'';position:absolute;left:-10%;right:-10%;height:100px;border:1px solid #ffffff1a;border-radius:50%;top:34px;transform:rotate(-5deg)}.water:after{top:112px;transform:rotate(7deg)}.ripple{position:absolute;left:50%;top:56%;border:1px solid #a5d2d4aa;border-radius:50%;width:150px;height:48px;transform:translate(-50%,-50%)}.r2{width:260px;height:90px;opacity:.4}.float{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);color:#f4ca8c;font-size:24px;text-shadow:0 0 20px #e0b573}.casting .float{animation:bob .6s infinite alternate}.casting .ripple{animation:pulse 1s infinite}@keyframes bob{to{top:60%}}@keyframes pulse{to{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}.castbottom{padding:19px 22px;display:flex;justify-content:space-between;gap:20px;align-items:center}.castbottom p{margin:5px 0 0;color:#c4d5d2}.primary{border:0;border-radius:10px;background:#e7b976;color:#162b2b;font-weight:700;padding:15px 23px;white-space:nowrap}.primary:hover{background:#f3cb8f}.primary:disabled{opacity:.6;cursor:wait}.primary span{margin-left:18px}.result{background:#193a41;border:1px solid #c69b65;border-radius:20px;padding:26px;margin-top:20px}.result h2{font:600 31px 'Playfair Display',serif;margin:9px 0}.result p{color:#c7d7d4;line-height:1.6}.result .meta{color:#e8c68d;font-size:13px;letter-spacing:.07em}.result .stats{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.result .stats span{background:#0d2b33;border-radius:9px;padding:11px 15px}.result .actions{display:flex;gap:10px;flex-wrap:wrap}.secondary{border:1px solid #92aca9;background:transparent;color:#e9f0ea;padding:12px 17px;border-radius:9px}.footnote{text-align:center;font-size:13px;margin:25px}.bottomnav{position:fixed;bottom:0;left:0;right:0;background:#0a242bf5;border-top:1px solid #416068;display:flex;justify-content:center;z-index:10}.bottomnav button{border:0;background:none;color:#aac0be;padding:17px 30px;font-weight:700}.bottomnav .active{color:#e8be81;border-top:2px solid #e8be81}.bottomnav span{margin-left:7px}.overlay{position:fixed;inset:0;background:#0009;z-index:20;display:flex;justify-content:flex-end}.overlay[hidden]{display:none}.sheet{width:min(500px,100%);height:100%;background:#12323a;padding:28px;overflow:auto;box-shadow:-20px 0 55px #0007}.sheethead{display:flex;justify-content:space-between;align-items:start;margin-bottom:28px}.sheethead h2{margin-top:8px;font-size:33px}.sheethead button{background:none;border:0;color:#fff;font-size:32px}.entry{padding:15px 0;border-bottom:1px solid #52707766}.entry strong{display:block;font:600 19px 'Playfair Display',serif}.entry small{color:#bad0cb;display:block;margin-top:4px}.entry.locked{opacity:.43}.empty{color:#b9cac8;line-height:1.6}.collectionHead{color:#e3b879;font-weight:700;margin:23px 0 5px}.chip{display:inline-block;background:#254b52;color:#e7c38a;padding:5px 9px;border-radius:20px;font-size:12px;margin:4px 0}@media(max-width:650px){.app{padding:0 16px 105px}header{height:74px}.brand strong{font-size:12px}.brand small{font-size:8px}.intro{margin:33px 0 27px}.intro h1{font-size:36px}.intro p{font-size:14px}.panel{padding:17px;border-radius:17px}.habitats{grid-template-columns:repeat(2,1fr);gap:8px}.habitat{padding:11px;min-height:77px;gap:8px}.habitat.selected{padding:10px}.habitat .icon{font-size:22px}.habitat strong{font-size:14px}.habitat small{font-size:11px}.water{height:145px}.castbottom{padding:16px;align-items:stretch;flex-direction:column}.primary{width:100%}.bottomnav button{padding:14px 20px;font-size:13px}.bottomnav span{display:block;margin:4px 0 0}.footnote{font-size:12px}}
.settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.settings label{min-width:0;font-size:14px}.settings input{display:block;width:100%;background:#0e2d35;color:#eef5ef;border:1px solid #41666b;border-radius:9px;padding:10px;margin-top:7px;font:inherit}.duration{color:#bdd0cb;line-height:1.5;margin:14px 0 0;font-size:14px}.duration strong{color:#f1cb90}.property{background:#0d2c34;border-left:3px solid #dfb574;border-radius:7px;padding:12px 15px;margin:18px 0;color:#e6eee9;line-height:1.5}.property strong{color:#f0c887}.entry .property{font-size:14px;margin:10px 0 0}.result .duration-line{font-size:14px;color:#e9c28a}.miss h2{font-size:26px}@media(max-width:650px){.settings{grid-template-columns:1fr 1fr}.settings label:last-child{grid-column:1/-1}.settings label{font-size:14px}}
.timecounter{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#0d2b34;border:1px solid #406169;border-radius:13px;padding:16px 19px;margin-bottom:16px}.timecounter strong{display:block;font:600 25px 'Playfair Display',serif;color:#f2d19e;margin:4px 0}.timecounter small{display:block;color:#aec5c3;font-size:13px;line-height:1.4}.timecounter button{flex:none}@media(max-width:650px){.timecounter{padding:14px;align-items:flex-start}.timecounter strong{font-size:22px}.timecounter .secondary{padding:9px 11px}}
[hidden]{display:none!important}.homeview{max-width:880px;margin:0 auto;padding:65px 0 55px}.homeintro{text-align:center;margin-bottom:34px}.homeintro h1{font:700 clamp(36px,5vw,58px)/1.15 'Playfair Display',Georgia,serif;margin:11px 0}.homeintro p{color:#acc4c2;font-size:16px}.activities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.activity{min-height:245px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:25px;border-radius:19px;border:1px solid #42636a;background:#12343c;color:#e9f1e9}.activity.available{border-color:#d6ad71;box-shadow:0 15px 45px #00101770;transition:transform .2s,border-color .2s}.activity.available:hover,.activity.available:focus-visible{transform:translateY(-3px);border-color:#f2d098}.activity.upcoming{opacity:.65}.activityIcon{font-size:37px;margin-bottom:25px}.activityText{display:flex;flex-direction:column;flex:1}.activityText strong{font:600 26px 'Playfair Display',Georgia,serif}.activityText small{color:#bdd0ca;font-size:14px;line-height:1.5;margin:8px 0 21px}.activityStatus{color:#f0c688;font-size:13px;font-weight:700;letter-spacing:.04em;margin-top:auto}.upcoming .activityStatus{color:#aebdb6}.backbtn{background:transparent;color:#e8c58d;border:0;font-size:14px;font-weight:700;padding:8px;margin-bottom:15px}@media(max-width:700px){.homeview{padding:48px 0}.activities{grid-template-columns:1fr}.activity{min-height:0;flex-direction:row;gap:17px;padding:20px}.activityIcon{font-size:31px;margin:0}.activityText strong{font-size:22px}.activityText small{margin:5px 0 10px}.homeintro{margin-bottom:27px}.homeintro h1{font-size:39px}}
.powered{display:flex;align-items:center;justify-content:center;gap:13px;margin:42px auto 4px;color:#b9cfca;font-size:14px;letter-spacing:.03em}.powered strong{color:#e9c58e;font-weight:700}.logoDisk{width:68px;height:68px;flex:none;border-radius:50%;background:#f4e5cb;display:grid;place-items:center;box-shadow:0 2px 18px #0005}.logoDisk img{display:block;width:58px;height:58px;object-fit:contain}@media(max-width:650px){.powered{margin-top:31px}.logoDisk{width:58px;height:58px}.logoDisk img{width:50px;height:50px}}
.mainchoices{grid-template-columns:repeat(2,minmax(0,1fr))}.rulesview{max-width:820px;margin:0 auto;padding:35px 0 50px}.rulesintro{text-align:center;margin:15px 0 27px}.rulesintro h1{font:700 clamp(34px,5vw,49px)/1.15 'Playfair Display',Georgia,serif;margin:11px 0}.rulesintro p{color:#aec6c1}.ruleTopics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ruleCard{background:#12343c;color:#eef3ed;border:1px solid #42646b;border-radius:15px;padding:18px;display:flex;align-items:center;gap:14px;text-align:left;min-height:94px}.ruleCard:hover,.ruleCard:focus-visible{border-color:#e7b976}.ruleCard>span:first-child{font-size:29px}.ruleCard>span:nth-child(2){flex:1}.ruleCard strong,.ruleCard small{display:block}.ruleCard strong{font-size:16px}.ruleCard small{font-size:13px;color:#b6cbc6;margin-top:5px}.ruleCard b{font-size:23px;color:#e7b976}.ruleDetail{background:#12343c;border:1px solid #d8ae72;border-radius:19px;padding:25px}.ruleDetail h2{font:600 30px 'Playfair Display',Georgia,serif;margin:7px 0 19px}.ruleIcon{font-size:36px}.ruleDetail ol{margin:0 0 20px;padding-left:23px}.ruleDetail li{font-size:16px;line-height:1.6;margin:0 0 14px;color:#e3ede7}.ruleDetail a{color:#f0c98d;font-size:14px;font-weight:700}.sourceNote{color:#9fbab5;font-size:13px;line-height:1.5;margin:23px 0}.rulesview .backbtn,.homeview .backbtn{margin-bottom:12px}@media(max-width:700px){.mainchoices,.ruleTopics{grid-template-columns:1fr}.rulesview{padding-top:18px}.rulesintro h1{font-size:35px}.ruleCard{min-height:80px}.ruleDetail{padding:18px}}
.conditionList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0 24px}.conditionRow{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:65px;padding:12px 15px;border:1px solid #42646b;border-radius:11px;background:#193d45;color:#eef3ed;text-align:left;cursor:pointer}.conditionRow:hover,.conditionRow:focus-visible{border-color:#e7b976;background:#204850}.conditionRow strong{font-size:16px}.conditionRow small{font-size:13px;color:#b6cbc6}.ruleDetail>p{color:#b6cbc6;line-height:1.5}.ruleDetail ul{margin:0 0 20px;padding-left:23px}@media(max-width:600px){.conditionList{grid-template-columns:1fr}.conditionRow{min-height:61px}}
.actionList{display:grid;gap:9px;margin:18px 0 24px}.actionItem{border:1px solid #42646b;border-radius:11px;background:#193d45}.actionItem[open]{border-color:#d8ae72}.actionItem summary{cursor:pointer;padding:15px 17px;font-size:16px;font-weight:700;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}.actionItem summary::-webkit-details-marker{display:none}.actionItem summary::after{content:'+';font-size:22px;line-height:1;color:#f0c98d}.actionItem[open] summary::after{content:'−'}.actionItem p{margin:0;padding:0 17px 17px;color:#e3ede7;font-size:16px;line-height:1.6}
.ruleDetail h3{font:600 22px 'Playfair Display',Georgia,serif;margin:24px 0 7px;color:#eef3ed}
.spellCatalog{background:#12343c;border:1px solid #d8ae72;border-radius:19px;padding:25px}.spellCatalog h2{font:600 31px 'Playfair Display',Georgia,serif;margin:8px 0 12px}.spellCatalog>p{color:#c4d4ce;line-height:1.6}.spellFilters{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin:23px 0 14px}.spellFilters label{font-size:14px;font-weight:700;color:#ead2ae}.spellFilters input,.spellFilters select{width:100%;background:#0d2931;color:#eef3ed;border:1px solid #6a8585;border-radius:10px;min-height:47px;padding:10px 12px;font:inherit;font-size:16px}.spellFilters input:focus-visible,.spellFilters select:focus-visible,.spellRow:focus-visible{outline:2px solid #f0c98d;outline-offset:2px}.spellCount{font-size:14px;color:#b6cbc6}.spellResults{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 25px}.spellRow{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:66px;padding:12px 15px;border:1px solid #42646b;border-radius:11px;background:#193d45;color:#eef3ed;text-align:left}.spellRow:hover{border-color:#e7b976}.spellRow strong{font-size:16px}.spellRow small{font-size:13px;color:#b6cbc6}.spellEmpty{grid-column:1/-1;color:#b6cbc6}.spellAttribution{font-size:13px;line-height:1.5;color:#a8c0bb;border-top:1px solid #42646b;padding-top:16px;overflow-wrap:anywhere}.spellCatalog a{color:#f0c98d}.spellBadge{font-size:14px;color:#f0c98d;font-weight:700}.spellCatalog h3{font:600 30px 'Playfair Display',Georgia,serif;margin:10px 0 20px}.spellStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 24px}.spellStats div{padding:12px 14px;background:#193d45;border:1px solid #42646b;border-radius:10px}.spellStats dt{font-size:13px;color:#b6cbc6;margin-bottom:5px}.spellStats dd{font-size:16px;margin:0;overflow-wrap:anywhere}.spellDescription{font-size:16px;line-height:1.7;color:#e3ede7;white-space:normal;margin:0 0 20px}@media(max-width:700px){.spellCatalog{padding:18px}.spellResults{grid-template-columns:1fr}.spellFilters{grid-template-columns:1fr}.spellStats{grid-template-columns:1fr}}

.settings{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.settings label:last-child{grid-column:auto}}

.dangerOptions{margin-top:18px;padding:14px;border:1px solid #41666b;border-radius:10px}.checkOption{display:flex;align-items:flex-start;gap:12px;font-size:16px;line-height:1.5;cursor:pointer}.checkOption+.checkOption{margin-top:14px}.checkOption input{width:22px;height:22px;flex-shrink:0;margin:2px 0;accent-color:#f3bd68}.checkOption small{display:block;color:#bdd0cb;font-size:14px;margin-top:4px}.result.threat{border-color:#dcaa72}.result.threat h2{color:#f1cb90}

.forageAnimation{margin:18px 0;padding:18px;background:#0d2c34;border-radius:12px;text-align:center;color:#bdd0cb;font-size:14px}.forageScene{position:relative;height:70px;max-width:260px;margin:auto;font-size:32px}.forageLeaf{position:absolute;top:18px;animation:forageRustle .7s ease-in-out infinite alternate;animation-play-state:paused}.leafOne{left:22%}.leafTwo{left:60%;animation-delay:.2s}.forageLens{position:absolute;top:3px;left:25%;animation:forageSweep 1.5s ease-in-out infinite;animation-play-state:paused}.forageBasket{position:absolute;right:4%;bottom:0;font-size:28px}@keyframes forageRustle{to{transform:rotate(12deg) translateY(-4px)}}@keyframes forageSweep{0%,100%{transform:translateX(0) rotate(-12deg)}50%{transform:translateX(95px) rotate(10deg)}}@media(prefers-reduced-motion:reduce){.forageLeaf,.forageLens{animation:none}}

.forageAnimation.searching .forageLeaf,.forageAnimation.searching .forageLens{animation-play-state:running}

.herbAnimation{margin:18px 0;padding:18px;background:#0d2c34;border-radius:12px;text-align:center;color:#bdd0cb;font-size:14px}.herbScene{position:relative;height:70px;max-width:260px;margin:auto;font-size:32px}.herbLeaf{position:absolute;top:18px;animation:herbRustle .7s ease-in-out infinite alternate;animation-play-state:paused}.leafOne{left:22%}.leafTwo{left:60%;animation-delay:.2s}.herbLens{position:absolute;top:3px;left:25%;animation:herbSweep 1.5s ease-in-out infinite;animation-play-state:paused}.herbBasket{position:absolute;right:4%;bottom:0;font-size:28px}@keyframes herbRustle{to{transform:rotate(12deg) translateY(-4px)}}@keyframes herbSweep{0%,100%{transform:translateX(0) rotate(-12deg)}50%{transform:translateX(95px) rotate(10deg)}}@media(prefers-reduced-motion:reduce){.herbLeaf,.herbLens{animation:none}}

.herbAnimation.searching .herbLeaf,.herbAnimation.searching .herbLens{animation-play-state:running}

/* Supplied study artwork, retaining the existing card geometry and gold border. */
#openCompanion{position:relative;isolation:isolate;overflow:hidden;background-color:#1e1710}
#openCompanion::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:radial-gradient(ellipse at 55% 50%,rgba(8,12,14,.50) 0%,rgba(8,12,14,.36) 48%,rgba(8,12,14,.08) 100%),url('support-background-arcane.webp');background-size:cover;background-position:center;background-repeat:no-repeat}
#openCompanion .activityText{text-shadow:0 2px 5px rgba(0,0,0,.9)}
#openCompanion .activityText small{color:#e9eee6}

/* Gathering artwork, with the same card shape and gold border. */
#openGathering{position:relative;isolation:isolate;overflow:hidden;background-color:#1e1710}
#openGathering::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:linear-gradient(90deg,rgba(8,12,14,.57),rgba(8,12,14,.12)),url('gathering-background-sepia.webp');background-size:cover;background-position:center;background-repeat:no-repeat}
#openGathering .activityText{text-shadow:0 2px 5px rgba(0,0,0,.95)}
#openGathering .activityText small{color:#eef1e9}

/* Keep headings and navigation legible where they sit directly on the scene. */
.homeintro,.intro,.rulesintro,.powered,header{filter:drop-shadow(0 2px 6px rgba(0,12,18,.65))}


/* The art uses the stable large viewport height: mobile browser bars do not recrop it on scroll. */
html::before{content:'';position:fixed;left:0;top:0;width:100%;height:100vh;height:100lvh;z-index:0;pointer-events:none;background-color:#071b22;background-image:linear-gradient(180deg,rgba(3,18,25,.20),rgba(3,18,25,.29)),url('app-background-parchment-test.webp');background-position:center center;background-size:cover;background-repeat:no-repeat;transform:translateZ(0)}
/* A few bright yellow-gold motes drift above the landscape, beneath the interface. */
body::before,body::after{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background-repeat:no-repeat;filter:drop-shadow(0 0 5px rgba(255,232,100,.8));will-change:transform,opacity}
body::before{background-image:radial-gradient(circle,#fff8c6 0 1px,rgba(255,232,93,.90) 2px,rgba(255,223,74,.22) 4px,transparent 8px),radial-gradient(circle,#fff6b1 0 1px,rgba(255,224,74,.85) 2px,transparent 7px),radial-gradient(circle,#fff4b1 0 1px,rgba(255,220,67,.82) 2px,transparent 6px),radial-gradient(circle,rgba(255,239,127,.92) 0 1px,transparent 5px),radial-gradient(circle,rgba(255,230,90,.85) 0 1px,transparent 5px);background-size:16px 16px,14px 14px,12px 12px,10px 10px,10px 10px;background-position:17% 21%,82% 32%,56% 68%,29% 79%,76% 87%;animation:motesRise 6s ease-in-out infinite alternate}
body::after{background-image:radial-gradient(circle,#fff8bc 0 1px,rgba(255,227,82,.78) 2px,transparent 7px),radial-gradient(circle,rgba(255,230,90,.9) 0 1px,transparent 5px),radial-gradient(circle,rgba(255,236,108,.85) 0 1px,transparent 5px),radial-gradient(circle,rgba(255,220,74,.85) 0 1px,transparent 5px);background-size:14px 14px,10px 10px,10px 10px,10px 10px;background-position:70% 13%,41% 37%,13% 60%,87% 72%;animation:motesDrift 8s ease-in-out infinite alternate}
.app{position:relative;z-index:1}
@keyframes motesRise{from{transform:translate3d(-5px,20px,0);opacity:.65}to{transform:translate3d(11px,-30px,0);opacity:1}}
@keyframes motesDrift{from{transform:translate3d(10px,-24px,0);opacity:.56}to{transform:translate3d(-14px,26px,0);opacity:.95}}
@media(prefers-reduced-motion:reduce){body::before,body::after{animation:none;opacity:.7}}

#masterTools{grid-column:2;cursor:default;background:linear-gradient(135deg,#173c46,#102b34)}
#masterTools:hover{transform:none;border-color:#d6ad71}
@media(max-width:700px){#masterTools{grid-column:auto}}

/* Master tools: tavern generator */
#masterTools{cursor:pointer}
#masterTools:hover,#masterTools:focus-visible{transform:translateY(-3px);border-color:#f2d098}
.masterView{max-width:880px}

.initiativeForm{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr) auto;gap:14px;align-items:end}.initiativeForm label{font-size:16px}.initiativeForm input{width:100%;min-height:48px;margin-top:8px}.initiativeStatus{font-size:20px;font-weight:700;color:#f7d99e;margin:22px 0}.initiativeList{padding:0;list-style:none;display:grid;gap:12px}.initiativeRow{padding:16px;border:1px solid #527373;border-radius:14px;background:#0b2933;display:flex;justify-content:space-between;align-items:center;gap:14px}.initiativeRow.current{border:2px solid #f3bd68;background:#24474a;box-shadow:0 0 16px #f3bd6822}.initiativeRow strong{display:block;overflow-wrap:anywhere;font-size:18px}.initiativeRow small{display:block;margin-top:5px;color:#e9d1a7;font-size:14px}.initiativeRow .actions{flex-wrap:wrap;margin:0}.initiativeRow button{min-height:44px;padding:8px 12px;font-size:14px}.initiativeList+.empty{font-size:16px}@media(max-width:650px){.initiativeForm{grid-template-columns:minmax(0,2fr) minmax(90px,1fr)}.initiativeForm>.primary{grid-column:1/-1}.initiativeRow{align-items:stretch;flex-direction:column}.initiativeRow .actions{display:flex;gap:8px}}

.initiativeForm{grid-template-columns:repeat(3,minmax(0,1fr))}.initiativeRow{display:block}.initiativeRowHeading{display:flex;align-items:center;justify-content:space-between;gap:14px}.initiativeHealth{margin-top:18px;border-top:1px solid #527373;padding-top:16px}.hpValue{color:#f7d99e}.hpFields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.hpFields label,.hpFields input{width:100%;min-height:44px;margin-top:6px}.initiativeRow.zeroHP .hpValue{color:#ffbcad}@media(max-width:650px){.initiativeForm{grid-template-columns:repeat(2,minmax(0,1fr))}.initiativeRowHeading{flex-direction:column;align-items:stretch}.hpFields{grid-template-columns:repeat(2,minmax(0,1fr))}.hpFields label:last-child{grid-column:1/-1}}

.turnChecks{display:grid;gap:12px;margin-bottom:22px}.turnChecks label{display:flex;align-items:center;gap:16px;padding:16px;background:#0b2933;border:1px solid #527373;border-radius:14px;cursor:pointer}.turnChecks input{width:24px;height:24px;flex:none;accent-color:#f3bd68}.turnChecks strong,.turnChecks small{display:block}.turnChecks strong{font-size:18px}.turnChecks small{font-size:14px;color:#b6cbc6;margin-top:5px}.turnChecks label:has(input:checked){border-color:#f3bd68;background:#24474a}.turnMovement{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.turnMovement label{font-size:16px}.turnMovement input{width:100%;min-height:48px;margin-top:8px}#playerTools{background:linear-gradient(135deg,#173c46,#102b34)}@media(max-width:650px){.turnMovement{grid-template-columns:1fr}}

.turnConfig{border:1px solid #527373;border-radius:14px;padding:16px;margin-bottom:20px;background:#0b2933}.turnConfig summary{cursor:pointer;color:#f7d99e;font-size:18px;font-weight:700;min-height:28px}.turnConfigGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.turnConfigGrid label{font-size:16px}.turnConfigGrid input{width:100%;min-height:48px;margin-top:8px}.turnResources{display:grid;gap:12px}.turnResource,.turnAttackSeries{padding:16px;background:#0b2933;border:1px solid #527373;border-radius:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.turnResource h2{font-size:18px;margin:0 0 8px}.turnResource p,.turnAttackSeries p{margin:0;color:#f7d99e;font-size:16px}.turnResource .actions,.turnAttackSeries .actions{margin:0;display:flex;flex-wrap:wrap;gap:8px}.turnResource button,.turnAttackSeries button{min-height:44px;font-size:14px}.turnAttackPanel{margin:24px 0;padding:18px 0;border-top:1px solid #527373;border-bottom:1px solid #527373}.turnAttackPanel h2{font-size:20px;margin:0 0 14px}#turnAttacks{display:grid;gap:12px;margin-top:14px}@media(max-width:650px){.turnResource,.turnAttackSeries{flex-direction:column;align-items:stretch}.turnConfigGrid{grid-template-columns:1fr}}

.arsenalControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0}.arsenalControls label,.arsenalFields label{font-size:16px;min-width:0}.arsenalControls input,.arsenalControls select,.arsenalFields input{width:100%;min-height:48px;margin-top:8px}.arsenalControls button{margin-top:12px}.arsenalCollection{margin-top:20px}.arsenalEntry{background:#0b2933;border:1px solid #527373;border-radius:14px;padding:18px;margin:14px 0}.arsenalEntry h3{font-size:20px;color:#f7d99e;margin:0 0 8px}.arsenalEntry p{line-height:1.6;overflow-wrap:anywhere}.arsenalFields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.arsenalAttack{font-weight:700;color:#f7d99e}.arsenalEntry summary{cursor:pointer;min-height:44px;font-size:18px;font-weight:700}.arsenalEntry .secondary{min-height:44px}.arsenalEntry details p{white-space:pre-line}@media(max-width:650px){.arsenalControls,.arsenalFields{grid-template-columns:1fr}}

.weaponRename{display:block;font-size:16px;margin:16px 0}.weaponRename input{width:100%;min-height:48px;margin-top:8px}.spellLevelHeading{color:#f7d99e;font-size:19px;margin:22px 0 10px}.arsenalEntry.spellCompact{padding:4px 10px;margin:6px 0}.spellLine{display:flex;gap:8px;align-items:flex-start}.spellLine details{flex:1;min-width:0}.spellLine summary{padding:10px 0;font-size:16px;overflow-wrap:anywhere}.spellRemove{flex:none;border:0;background:transparent;color:#e9d1a7;width:32px;min-height:44px;font-size:23px;cursor:pointer;padding:0}.spellRemove:hover,.spellRemove:focus-visible{color:#fff;background:#24474a;border-radius:8px}

.initiativeVitals{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.initiativeAC{display:flex;align-items:center;gap:10px;font-weight:700;color:#f7d99e;font-size:16px}.initiativeAC input{width:80px;min-height:44px;margin:0}

.nameControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}.nameControls label{font-size:16px}.nameControls select{width:100%;min-height:48px;margin-top:8px}.nameResults{display:grid;gap:12px;margin-top:24px}.generatedName{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;background:#0b2933;border:1px solid #527373;border-radius:14px}.generatedName strong{font:600 25px Georgia,serif;color:#f7d99e;overflow-wrap:anywhere}.generatedName button{min-height:44px;font-size:14px}.nameCopyStatus{font-size:14px;color:#b6cbc6}@media(max-width:650px){.nameControls{grid-template-columns:1fr}}

.nameControls input{width:100%;min-height:48px;margin-top:8px}.monsterList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.monsterLink{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #527373;border-radius:12px;background:#0b2933;text-decoration:none;color:#f7d99e;font-size:16px}.monsterLink small{font-size:14px;color:#b6cbc6}.monsterLink:hover,.monsterLink:focus-visible{border-color:#f3bd68;background:#24474a}#bestiaryView .sourceNote a{color:#f7d99e;overflow-wrap:anywhere}@media(max-width:650px){.monsterList{grid-template-columns:1fr}}

.monsterList{grid-template-columns:1fr}.monsterCard{border:1px solid #527373;border-radius:12px;background:#0b2933;padding:4px 14px}.monsterCard summary{font-size:17px;font-weight:700;color:#f7d99e;padding:12px 0;cursor:pointer;min-height:44px}.monsterDetails{padding:0 0 16px;color:#e3ede7}.monsterDetails p{line-height:1.65;font-size:16px;overflow-wrap:anywhere}.monsterDetails h3{font-size:20px;color:#f7d99e;margin:22px 0 8px}.monsterOverview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #527373;border-radius:12px;padding:14px}.monsterOverview p{margin:0}.monsterTableWrap{overflow-x:auto;margin:18px 0}.monsterAbilities{border-collapse:collapse;width:100%;font-size:16px}.monsterAbilities caption{text-align:left;font-weight:700;color:#f7d99e;margin-bottom:10px}.monsterAbilities td,.monsterAbilities th{padding:10px 8px;text-align:left;border-bottom:1px solid #527373}.monsterSource{font-size:14px;color:#f7d99e}@media(max-width:650px){.monsterOverview{grid-template-columns:1fr}}

.combatPanel{margin-top:20px}.combatFields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.combatFields label,#combatView label{font-size:16px}#combatView input,#combatView select,#combatView textarea{width:100%;min-height:48px;margin-top:8px}#combatView textarea{background:#0b2933;color:#eef3ed;border:1px solid #527373;border-radius:10px;padding:12px;font:inherit}.combatChips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.combatChips button{font-size:14px;min-height:44px}.combatCounter{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid #527373;margin-bottom:12px}.combatCounter .actions{margin:0;display:flex;gap:8px;flex-wrap:wrap}.combatCounter strong{color:#f7d99e}.combatCounter button{min-height:44px;font-size:14px}.slotTotal{width:90px;flex:none}.slotTotal input{max-width:90px}.slotInfo{flex:1}.slotInfo small{display:block;font-size:14px;margin-top:6px}.deathMarks{letter-spacing:5px;font-size:24px;color:#f7d99e}@media(max-width:650px){.combatFields{grid-template-columns:1fr}.combatCounter{flex-wrap:wrap}.combatCounter .actions{width:100%}}

.appVersion{display:inline-block;vertical-align:middle;font:600 12px/1.4 system-ui,sans-serif;letter-spacing:0;color:#f7d99e;border:1px solid #a9844d;border-radius:6px;padding:2px 6px;margin-left:5px}

.innKeeper{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;background:#0b2933;border:1px solid #527373;border-radius:12px;margin:18px 0}.innKeeper strong{color:#f7d99e;font-size:18px}.innTitle{font:600 clamp(26px,5vw,38px) Georgia,serif;color:#f7d99e;margin:0 0 16px}.innMenu{margin:24px 0}.innMenu h3{color:#f7d99e;font-size:22px}.innMenu ul{padding:0;list-style:none}.innMenu li{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #527373;padding:12px 0;font-size:16px}.innMenu li strong{white-space:nowrap;color:#f7d99e}@media(max-width:650px){.innKeeper{align-items:stretch;flex-direction:column}}

/* Emblema del drago dorato nell’intestazione */
.brandmark{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:0;background:transparent;font-size:0}.brandmark img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 2px #0009) drop-shadow(0 0 4px #e8bf4933)}

/* Sfumatura dorata del titolo principale, ispirata al riferimento. */
.homeintro h1{color:#f4d28b;text-shadow:none;filter:drop-shadow(0 2px 2px rgba(0,10,16,.8))}



/* Sottotitolo della home: serif avorio come nel riferimento. */
.homeintro p{font-family:Georgia,'Times New Roman',serif;font-size:clamp(16px,2.05vw,22px);font-weight:400;line-height:1.4;letter-spacing:0;color:#f5efdc;text-shadow:0 2px 3px rgba(0,10,16,.85);margin:0 auto;max-width:100%;text-wrap:pretty}

/* Logo completo dorato su alpha nel footer. */
.powered .logoDisk{width:76px;height:76px;background:transparent;border:0;border-radius:0;box-shadow:none}.powered .logoDisk img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 2px #0009)}

/* Cornici oro metallizzato: riflessi champagne e ombre oro antico. */
.activity.available{position:relative;isolation:isolate;border-color:#b99550;box-shadow:inset 0 1px 0 #fff0b83d,inset 0 -1px 0 #62451880,0 15px 45px #00101770}
.activity.available::after{content:'';position:absolute;inset:-1px;border-radius:inherit;padding:2px;pointer-events:none;background:linear-gradient(135deg,#785522 0%,#c49a4d 12%,#fff1bd 24%,#bf9142 36%,#edcf82 50%,#886128 63%,#f7df9c 77%,#b88a39 89%,#6d4b1d 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude}
.activity.available:hover,.activity.available:focus-visible{border-color:#f4d99b;box-shadow:inset 0 1px 0 #fff2c366,inset 0 -1px 0 #62451880,0 15px 45px #00101770,0 0 12px #d6ae4926}

.homeintro h1 .companionName{font-size:.8em;font-weight:600}

/* Immagine fornita da Max per Strumenti del giocatore. */
#playerTools{position:relative;isolation:isolate;overflow:hidden;background-color:#102b34}
#playerTools::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:linear-gradient(90deg,rgba(3,13,19,.66),rgba(3,13,19,.38) 65%,rgba(3,13,19,.18)),url('player-tools-background-sepia.webp');background-size:cover;background-position:center 40%;background-repeat:no-repeat}
#playerTools .activityText{text-shadow:0 2px 4px rgba(0,0,0,.95)}
#playerTools .activityText small{color:#eef1e9}

/* Mantiene il paesaggio stabile e impedisce il sollevamento dei tasti su touch. */
html{overscroll-behavior-y:none}
body{overscroll-behavior-y:none}
html::before{width:100lvw;backface-visibility:hidden;will-change:transform}
@media (hover:none),(pointer:coarse){
.activity.available:hover,.activity.available:focus-visible,.activity.available:active{transform:none}
.activity.available{transition:border-color .2s}
}

.versionLabel{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;white-space:nowrap}.brand .appBeta{font:400 10px/1.4 'DM Sans',sans-serif;letter-spacing:.18em;color:#9cb4b3;border:0;padding:0}

/* Sfondo fornito da Max per gli strumenti del Master. */
#masterTools{position:relative;isolation:isolate;overflow:hidden;background:#102b34}
#masterTools::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:linear-gradient(90deg,rgba(3,13,19,.66),rgba(3,13,19,.42) 65%,rgba(3,13,19,.22)),url('master-tools-background-sepia.webp');background-size:cover;background-position:center 45%;background-repeat:no-repeat}
#masterTools .activityText{text-shadow:0 2px 4px rgba(0,0,0,.95)}
#masterTools .activityText small{color:#eef1e9}

#openCompanion .supportBookIcon{display:block;flex:0 0 62px;width:62px;height:62px;font-size:0}#openCompanion .supportBookIcon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.65))}
@media(max-width:600px){#openCompanion .supportBookIcon{flex-basis:50px;width:50px;height:50px}}

#openGathering .gatheringBasketIcon{display:block;flex:0 0 62px;width:62px;height:62px;font-size:0}#openGathering .gatheringBasketIcon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.65))}
@media(max-width:600px){#openGathering .gatheringBasketIcon{flex-basis:50px;width:50px;height:50px}}

#playerTools .playerKitIcon{display:block;flex:0 0 62px;width:62px;height:62px;font-size:0}#playerTools .playerKitIcon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.65))}
@media(max-width:600px){#playerTools .playerKitIcon{flex-basis:50px;width:50px;height:50px}}

#masterTools .masterScepterIcon{display:block;flex:0 0 62px;width:62px;height:62px;font-size:0}#masterTools .masterScepterIcon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.65))}
@media(max-width:600px){#masterTools .masterScepterIcon{flex-basis:50px;width:50px;height:50px}}

.appFooterInfo{max-width:560px;margin:18px auto 30px;padding:15px 18px;text-align:center;color:#e4ddcc;font-size:12px;line-height:1.65;text-shadow:0 1px 3px #001017;border-radius:12px;background:rgba(3,18,26,.68)}.appFooterInfo p{margin:0}.appFooterInfo .footerInfoTitle{font-size:13px;font-weight:600;color:#efddb6;margin-bottom:5px}.appFooterInfo .footerContact{margin-top:12px}.appFooterInfo a{color:#f1d293;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.appFooterInfo a:hover{color:#fff0c9}.appFooterInfo a:focus-visible{outline:2px solid #f1d293;outline-offset:4px}

#openFishing{position:relative;isolation:isolate;overflow:hidden;background:#102b34}
#openFishing::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:linear-gradient(90deg,rgba(3,13,19,.68),rgba(3,13,19,.45) 65%,rgba(3,13,19,.25)),url('fishing-card-background.png');background-size:cover;background-position:center 45%;background-repeat:no-repeat}
#openFishing .activityText{text-shadow:0 2px 4px rgba(0,0,0,.95)}
#openFishing .activityText small{color:#eef1e9}

#openForaging{position:relative;isolation:isolate;overflow:hidden;background:#102b34}
#openForaging::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:linear-gradient(90deg,rgba(3,13,19,.68),rgba(3,13,19,.45) 65%,rgba(3,13,19,.25)),url('foraging-card-background.png');background-size:cover;background-position:center 65%;background-repeat:no-repeat}
#openForaging .activityText{text-shadow:0 2px 4px rgba(0,0,0,.95)}
#openForaging .activityText small{color:#eef1e9}

#openHerbs{position:relative;isolation:isolate;overflow:hidden;background:#102b34}
#openHerbs::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background-image:linear-gradient(90deg,rgba(3,13,19,.68),rgba(3,13,19,.45) 65%,rgba(3,13,19,.25)),url('herbs-card-background.webp');background-size:cover;background-position:center 50%;background-repeat:no-repeat}
#openHerbs .activityText{text-shadow:0 2px 4px rgba(0,0,0,.95)}
#openHerbs .activityText small{color:#eef1e9}
.partyFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.partyFields label{min-width:0}.partyFields input,.partyFields textarea{width:100%;box-sizing:border-box}.partyFields .partyWide{grid-column:1/-1}.partyCard{margin-top:16px}.partyCard h2{overflow-wrap:anywhere}.partyStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.partyStats div{padding:10px;border:1px solid #ad90594d;border-radius:10px}.partyStats dt{font-size:14px;opacity:.8}.partyStats dd{margin:5px 0 0;font-size:18px;font-weight:bold;overflow-wrap:anywhere}.partyDetail{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}.partyCard summary{cursor:pointer;padding:12px 0;font-size:16px}.partyDeletePrompt{padding:12px 0}.partyCard .actions{flex-wrap:wrap}@media(max-width:380px){.partyFields{grid-template-columns:1fr}.partyStats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.changelogHome{text-align:center;margin:24px 0 0}.changelogHome button{font-size:14px;padding:8px 16px;min-height:40px;width:auto}

.communicationBar{display:block;width:100%;max-width:100%;overflow:hidden;padding:7px 0;margin:0;background:rgba(7,27,34,.65);color:#d9c5a1;border:0;border-bottom:1px solid #ad905930;border-radius:0;text-align:left;font:400 14px/1.5 'DM Sans',sans-serif}.communicationTrack{display:flex;width:max-content;min-width:200%;animation:communicationScroll 28s linear infinite}.communicationTrack>span{display:block;flex:0 0 auto;width:50%;padding:0 48px;white-space:nowrap}@keyframes communicationScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}@media(prefers-reduced-motion:reduce){.communicationTrack{animation:none;width:auto;min-width:0}.communicationTrack>span{white-space:normal;width:100%;padding:0 12px}.communicationTrack>span+span{display:none}}

/* Schede party compatte */
#partyMembers .partyCard{padding:18px;margin-top:12px;border-radius:18px}
#partyMembers .partyCard h2{font-size:22px;line-height:1.2;margin:0 0 6px}
#partyMembers .partyCard>p{margin:0 0 10px;line-height:1.35;font-size:14px}
#partyMembers .partyStats{gap:6px;margin:10px 0}
#partyMembers .partyStats div{padding:7px 8px;border-radius:8px}
#partyMembers .partyStats dt{font-size:14px;line-height:1.25}
#partyMembers .partyStats dd{font-size:16px;line-height:1.3;margin:3px 0 0}
#partyMembers .partyCard summary{padding:8px 0;font-size:14px}
#partyMembers .partyDetail{font-size:14px;line-height:1.4;margin:6px 0}
#partyMembers .partyCard .actions{gap:6px;margin-top:6px}
#partyMembers .partyCard button{font-size:14px;padding:8px 12px;min-height:44px}
#partyEditor{padding:18px;margin-top:12px;border-radius:18px}
#partyEditor h2{font-size:22px;margin:0 0 12px}
#partyEditor .partyFields{gap:9px 10px}
#partyEditor .partyFields label{font-size:14px;line-height:1.3}
#partyEditor .partyFields input,#partyEditor .partyFields textarea{font-size:16px;min-height:44px;padding:8px 10px;margin-top:4px;border-radius:8px}
#partyEditor .partyFields textarea{min-height:70px}
#partyEditor .actions{margin-top:12px;gap:8px}
@media(max-width:600px){#partyMembers .partyCard,#partyEditor{padding:14px}}
.dicePicker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dicePicker button{min-height:44px;padding:10px;font-size:16px}.diceSelection{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.diceCount{display:flex;align-items:center;gap:10px;border:1px solid #b9905555;border-radius:10px;padding:0 10px;font-size:14px}.diceCount button{min-width:36px;min-height:44px;font-size:22px}.diceSettings{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.diceSettings label{font-size:14px}.diceSettings input[type=number]{display:block;width:120px;min-height:44px;font-size:16px;margin-top:6px}.diceFormula{font-size:20px;font-weight:700;color:#e8c58d}.diceTray{margin-top:18px;padding:24px 18px;background:radial-gradient(ellipse at center,#234847,#0a222b);border:5px solid #775538;border-radius:24px;box-shadow:inset 0 0 0 2px #c4a16b77,inset 0 0 30px #0008;min-height:180px;overflow:hidden}.diceCanvas{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px;padding:12px 0}.diceTray>p{text-align:center;color:#a9bfc0;font-size:14px}.trayDie{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:62px;height:68px;background:linear-gradient(140deg,#f3d697,#b17b36);border:2px solid #ffe4a0;border-radius:14px;color:#291c12;box-shadow:3px 5px 0 #0004,inset 0 0 0 3px #7a4f3022;font-weight:700;transform:rotate(-5deg)}.trayDie:nth-child(even){transform:rotate(7deg)}.trayDie:not(.die6){border-radius:24px 12px}.trayDie small{font-size:12px;line-height:1.2;opacity:.8}.dieFace{font-size:25px;line-height:1.2}.diceResult{margin-top:16px;text-align:center}.diceTotal{display:block;font-size:48px;color:#e8c58d;line-height:1.2;margin:8px 0}.diceResult p{overflow-wrap:anywhere;margin:8px 0;line-height:1.5}@media(prefers-reduced-motion:reduce){.trayDie.rolling{animation:none}}@media(max-width:400px){.diceTray{padding:16px 10px}.diceCanvas{gap:12px}.trayDie{width:54px;height:60px}}

/* Risultati numerici, senza rotazione o sagome dei dadi. */
.diceTray{background:#102e36;border:1px solid #ad905955;border-radius:18px;box-shadow:none;min-height:140px}
.trayDie,.trayDie:not(.die6),.trayDie:nth-child(even){width:72px;height:78px;background:#193e46;border:1px solid #b9905566;border-radius:12px;box-shadow:none;filter:none;transform:none;animation:none;color:#f0d5a1}
.trayDie .dieFace{position:static;font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums}
.trayDie small{position:static;font-size:14px;line-height:1.4;color:#a9bfc0;opacity:1;margin-top:4px}

.monsterSection{margin-top:22px;padding-top:16px;border-top:1px solid #ad905944}.monsterDetails .monsterSection h3{margin:0 0 12px;font-size:20px;color:#e8c58d}.monsterDetailRows{margin:0;display:grid;gap:0}.monsterDetailRows>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #ffffff12}.monsterDetailRows dt{font-size:14px;font-weight:700;color:#e8c58d}.monsterDetailRows dd{font-size:16px;line-height:1.5;margin:0;overflow-wrap:anywhere}.monsterFeature+.monsterFeature{margin-top:18px;padding-top:14px;border-top:1px solid #ffffff18}.monsterDetails .monsterFeature h4{font-size:16px;color:#e8c58d;margin:0 0 6px;line-height:1.4}.monsterDetails .monsterFeature p{font-size:16px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}.monsterFeature strong{color:#f3dfb8}.monsterOverview{gap:8px}.monsterDetails .monsterOverview p{margin:0;padding:10px 12px;border:1px solid #ad905933;border-radius:8px}@media(max-width:480px){.monsterDetailRows>div{grid-template-columns:1fr;gap:3px;padding:9px 0}}

.changelogEntry ol{padding-left:24px;margin:18px 0 0}.changelogEntry li{font-size:16px;line-height:1.6;padding-left:4px;margin:0 0 16px}.changelogEntry strong{color:#e8c58d}.changelogEntry h2{line-height:1.3}

.changelogHome{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.changelogHome[hidden]{display:none}.infoCredits h2{font-size:21px;line-height:1.3;color:#e8c58d;margin:26px 0 10px}.infoCredits h2:first-child{margin-top:0}.infoCredits p{font-size:16px;line-height:1.65;margin:10px 0;overflow-wrap:anywhere}.infoCredits a{color:#e8c58d}

.headerActions{display:flex;align-items:center;gap:8px}.accountGold{position:relative;overflow:hidden;isolation:isolate;min-height:36px;padding:6px 14px;border:1px solid #efd39a;border-radius:10px;background:linear-gradient(135deg,#eed294,#b78b46);color:#302110;font-size:13px;font-weight:700;box-shadow:0 2px 10px #0003}.accountGold::after{content:"";position:absolute;inset:-30% auto -30% -80%;width:45%;background:linear-gradient(90deg,transparent,#fff9,transparent);transform:skewX(-22deg);pointer-events:none}.accountGold.glint::after{animation:accountShine 850ms ease-in-out}.accountGold:focus-visible{outline:2px solid #fff;outline-offset:4px}@keyframes accountShine{to{left:150%}}.accountPanel{max-width:440px;margin:auto}.accountTabs,.accountProfileActions{display:flex;gap:10px;flex-wrap:wrap}.accountTabs button{flex:1}.accountTabs [aria-pressed=true]{border-color:#e8c58d;color:#e8c58d}#accountForm{display:flex;flex-direction:column;gap:18px}#accountForm label{display:flex;flex-direction:column;gap:7px;font-size:14px}#accountForm [hidden],.accountPanel [hidden]{display:none!important}#accountForm input{width:100%;min-height:46px;border:1px solid #648087;border-radius:9px;background:#071f28;color:#edf1eb;padding:11px 12px;font:inherit;font-size:16px}#accountForm input:focus{outline:2px solid #e8c58d;outline-offset:2px}#accountForm button{min-height:44px}#accountForm button:disabled{opacity:.6;cursor:wait}#accountMessage{line-height:1.6;overflow-wrap:anywhere;margin-bottom:0}.accountError{color:#ffb5ab}.accountEmailDisplay{overflow-wrap:anywhere;color:#e8c58d;font-weight:700;margin-bottom:24px}@media(max-width:480px){.accountGold{padding:6px 10px}.headerActions{gap:4px}.brand strong{letter-spacing:.1em}}@media(prefers-reduced-motion:reduce){.accountGold.glint::after{animation:none}}



.registrationRequiredPanel{text-align:center}.registrationRequiredPanel>button{min-height:44px;min-width:140px}.registrationRequiredPanel .footnote{margin:20px 0 12px}

.cloudSaveStatus{font-size:12px;color:#b8ceca;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;text-align:center}.cloudSaveStatus[hidden]{display:none}.cloudSaveStatus button{min-height:44px}section[inert]{opacity:.55}

.reportToolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.reportToolbar h2{margin:0}.reportToolbar label{flex:1;min-width:180px}.reportCard{padding:18px 0;border-top:1px solid #c8a65a45}.reportCard h3{margin:8px 0}.reportText{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.reportReply{padding:12px;border-left:3px solid #c8a65a;background:#c8a65a0c;border-radius:6px}.reportMeta{font-size:12px;opacity:.75;overflow-wrap:anywhere}.reportBadge{display:inline-block;border:1px solid #c8a65a77;border-radius:20px;padding:4px 10px;font-size:12px}.reportActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}#reportForm label{display:block;margin-bottom:14px}#reportForm textarea,.reportCard textarea{width:100%;box-sizing:border-box}#reportAdminView .reportCard select{margin:12px 0}#reportMessage,#reportAdminMessage{white-space:pre-wrap}

.installBanner{margin:8px 0 4px;padding:8px 12px;border:1px solid #d6b46c45;border-radius:12px;background:rgba(13,39,47,.35)}.installRow{display:flex;align-items:center;gap:10px}.installRow>span{flex:1;font-size:12px;color:#e4d6b8}.installGold{padding:7px 12px;border:1px solid #e3c486;border-radius:8px;background:linear-gradient(110deg,#bc914b,#e6c789,#c99d58);color:#242117;font-size:12px;font-weight:700;white-space:nowrap}.installClose{padding:2px 6px;border:0;background:transparent;color:#dacbac;font-size:24px;line-height:1}.installHelp p{font-size:13px;line-height:1.6;margin:10px 0 2px}.installBanner[hidden],.installHelp[hidden]{display:none}@media(max-width:360px){.installRow>span{font-size:11px}.installRow{gap:6px}.installGold{padding:7px 9px}}

.homeintro .personalGreeting{margin:0 0 7px;color:#f0cd88;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}#personalProfileForm{display:flex;flex-direction:column;gap:14px;margin:0 0 28px;padding:20px 0;border-top:1px solid #c8a65a45;border-bottom:1px solid #c8a65a45}#personalProfileForm h2{margin:0}#personalProfileForm label,#accountIdentityRows label{display:flex;flex-direction:column;gap:7px;font-size:14px}#accountIdentityRows{display:flex;flex-direction:column;gap:18px}#personalProfileForm input,#personalProfileForm select,#accountGender{width:100%;min-height:46px;border:1px solid #648087;border-radius:9px;background:#071f28;color:#edf1eb;padding:11px 12px;font:inherit;font-size:16px;box-sizing:border-box}#personalProfileForm .footnote{margin:0}#personalProfileForm input:focus,#personalProfileForm select:focus,#accountGender:focus{outline:2px solid #e8c58d;outline-offset:2px}#profileMessage{margin:0;line-height:1.5}

.accountCaptcha{width:100%;min-width:0;padding:3px 0}.accountCaptchaWidget{width:100%;min-width:0;display:flex;justify-content:center}.accountCaptchaWidget iframe{max-width:100%}.accountCaptcha .footnote{margin:8px 0 0;font-size:12px;line-height:1.5}.accountCaptcha .accountError{color:#ffb5ab}#accountCaptchaRetry{min-height:36px!important;padding:6px 0;font-size:13px;text-align:left}#accountCaptchaRetry:disabled{opacity:.6}#accountTabs button:disabled{opacity:.6;cursor:wait}

.accessFields{border:0;padding:0;margin:0;min-width:0}.accessFields .panel{margin-bottom:16px}.accessState{color:var(--gold,#e6bd78);font-weight:700}.accessCheck{display:flex!important;align-items:center;gap:10px}.accessCheck input{width:auto!important;margin:0!important}.accessFields input[type=datetime-local]{max-width:100%;min-width:0}.accessFields .reportCard{overflow-wrap:anywhere}.accessFields .accountPanel{width:100%;box-sizing:border-box}

.premiumPlanGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.premiumPlanGrid>div{border:1px solid #dcb77855;border-radius:12px;padding:14px 10px;display:flex;flex-direction:column;gap:8px}.premiumPlanGrid strong{color:#e8bd76}.premiumPlanGrid span{font-size:14px}@media(max-width:480px){.premiumPlanGrid{grid-template-columns:1fr}.premiumPlanGrid>div{flex-direction:row;justify-content:space-between;flex-wrap:wrap}}


/* Retain the approved header label colors. */
header .brand small,header .brand .appBeta{color:#F3DCAB}


/* Inherited text-only fallback. Existing explicit text shadows still take precedence. */
:where(body){text-shadow:0 1px 2px rgba(0,12,18,.55)}
/* These groups already have a drop shadow; do not layer another shadow onto their text. */
:where(header,.homeintro,.intro,.rulesintro,.powered){text-shadow:none}
/* Dark lettering on gold surfaces receives only a faint warm separation. */
:where(.primary,.installGold,.trayDie,.accountGold):not(:where(header *,.homeintro *,.intro *,.rulesintro *,.powered *)){text-shadow:0 1px 1px rgba(255,244,216,.18)}
/* Keep pictograms, decorative emoji, ratings and images free of additional text shadows. */
:where(.activityIcon,.icon,.brandmark,.logoDisk,.forageLeaf,.forageLens,.forageBasket,.herbLeaf,.herbLens,.herbBasket,.feedbackStars button,.bottomnav button,img,svg,button[aria-label="Chiudi"]){text-shadow:none}
:where(.bottomnav button > span){text-shadow:0 1px 2px rgba(0,12,18,.55)}
/* Account's gold finish only: retain the existing footer button geometry and type. */
#changelogHome > :is(#openChangelog,#openReports,#openInfo){border-color:#efd39a;border-radius:10px;background:linear-gradient(135deg,#eed294,#b78b46);color:#302110;box-shadow:0 2px 10px #0003;text-shadow:0 1px 1px rgba(255,244,216,.18)}


/* Slightly stronger shadows only for the three requested home labels. */
header .brand small,header .brand .appBeta{text-shadow:0 1px 3px rgba(0,12,18,.85)}
#mainHome > .homeintro > .eyebrow{text-shadow:0 1px 2px rgba(0,12,18,.65)}


/* A separate small control below the existing header row, without changing its geometry. */
.headerActions{position:relative}
.uiAudioToggle{position:absolute;top:calc(100% + 8px);right:0;width:32px;height:32px;min-width:32px;padding:0;display:grid;place-items:center;border:1px solid #cda55f;border-radius:8px;background:rgba(12,32,38,.8);color:#f3dcab;box-shadow:0 1px 4px #0003;text-shadow:none;z-index:2}
.uiAudioToggle[hidden]{display:none}
.uiAudioToggle svg{display:block;pointer-events:none}
.uiAudioToggle[aria-pressed="true"] .uiAudioMuted,.uiAudioToggle[aria-pressed="false"] .uiAudioWaves{display:none}
.uiAudioToggle:focus-visible{outline:2px solid #f3dcab;outline-offset:3px}

/* Zanzel speaks from the lower-left corner of the home information box. */
.appFooterInfo > p + p{margin-top:8px}
.appFooterInfo{display:flow-root;text-align:left}
.appFooterInfo .footerZanzel{display:block;float:left;width:clamp(150px,46vw,220px);max-width:none;height:auto;margin:0 12px 6px -16px;shape-outside:url('zanzel-welcome.webp');shape-image-threshold:.01;shape-margin:10px;pointer-events:none}

/* Gathering guidance is isolated from game and home styles. */
.zanzelTutorial{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:18px;border:1px solid #bd9858;border-radius:16px;background:linear-gradient(135deg,#17343b,#091c24);color:#eee5d0;box-shadow:0 16px 60px #0009;text-shadow:0 1px 3px #001017;overflow:visible}
.zanzelTutorial[open]{display:flex;flex-direction:column;gap:16px}
.zanzelTutorial::backdrop{background:rgba(0,10,15,.72)}
.zanzelTutorialHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-shrink:0}
.zanzelTutorialHeader h2{margin:5px 0 0;font:600 21px 'Playfair Display',Georgia,serif;color:#f1d293;overflow-wrap:anywhere}
.zanzelTutorialHeader .eyebrow{font-size:10px}
.zanzelTutorialHeader h2:focus{outline:none}
.zanzelTutorialBody{display:grid;grid-template-columns:clamp(112px,32vw,190px) minmax(0,1fr);align-items:start;gap:14px;overflow:auto;min-height:min(clamp(150px,40vw,220px),max(80px,calc(100dvh - 280px)));overscroll-behavior:contain}
.zanzelTutorialBody img{display:block;width:clamp(180px,48vw,260px);max-width:none;height:auto;max-height:max(80px,calc(100vh - 280px));max-height:max(80px,calc(100dvh - 280px));object-fit:contain;object-position:right bottom;position:absolute;left:calc(clamp(112px,32vw,190px) + 18px - clamp(180px,48vw,260px));bottom:138px;pointer-events:none}
.zanzelTutorialBody p{grid-column:2;white-space:pre-line;overflow-wrap:anywhere;font-size:14px;line-height:1.6;margin:0}
.zanzelTutorialChoice{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.4;min-height:44px;flex-shrink:0;cursor:pointer}
.zanzelTutorialChoice input{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#d7b36a}
.zanzelTutorialActions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}
.zanzelTutorialActions span{font-size:12px;white-space:nowrap}
.zanzelTutorial button{min-height:44px;padding:9px 12px;font-size:13px;white-space:normal}
.zanzelTutorial button:focus-visible,.zanzelTutorialChoice input:focus-visible{outline:2px solid #f1d293;outline-offset:3px}
.zanzelTutorial button:disabled{opacity:.45;cursor:default}
@media(max-width:360px){.zanzelTutorial{padding:12px}.zanzelTutorialBody img{bottom:167px;left:calc(clamp(112px,32vw,190px) + 12px - clamp(180px,48vw,260px))}.zanzelTutorialBody{gap:10px}.zanzelTutorialActions{flex-wrap:wrap}.zanzelTutorialActions button{flex:1}.zanzelTutorialActions span{order:3;width:100%;text-align:center}}

/* Player tutorial: float along the real alpha silhouette, then use the full line below it. */
.zanzelTutorialPlayer .zanzelTutorialBody{display:flow-root;min-height:120px}
.zanzelTutorialPlayer .zanzelTutorialBody img{position:static;float:left;width:clamp(160px,46vw,250px);height:auto;max-height:none;margin:0 12px 6px -24px;transform:none;shape-outside:polygon(35% 0,55% 8%,78% 18%,100% 42%,88% 75%,80% 100%,0 100%,0 0);shape-outside:url('zanzel-player-tutorial.webp');shape-image-threshold:.1;shape-margin:10px}
.zanzelTutorialPlayer .zanzelTutorialBody p{display:block;grid-column:auto}

/* Gathering follows its own mascot alpha, using the same flowing layout as Player tools. */
.zanzelTutorial:not(.zanzelTutorialPlayer) .zanzelTutorialBody{display:flow-root;min-height:120px}
.zanzelTutorial:not(.zanzelTutorialPlayer) .zanzelTutorialBody img{position:static;float:left;width:clamp(180px,48vw,260px);height:auto;max-height:none;margin:0 12px 6px -24px;transform:none;shape-outside:polygon(35% 0,55% 8%,78% 18%,100% 42%,88% 75%,80% 100%,0 100%,0 0);shape-outside:url('zanzel-gathering.webp');shape-image-threshold:.1;shape-margin:10px}
.zanzelTutorial:not(.zanzelTutorialPlayer) .zanzelTutorialBody p{display:block;grid-column:auto}

/* Master tutorial: its own alpha silhouette, without changing other tutorial layouts. */
.zanzelTutorial.zanzelTutorialMaster .zanzelTutorialBody{display:flow-root;min-height:120px}
.zanzelTutorial.zanzelTutorialMaster .zanzelTutorialBody img{position:static;float:left;width:clamp(180px,48vw,260px);height:auto;max-height:none;margin:0 12px 6px -24px;transform:none;shape-outside:polygon(35% 0,65% 12%,100% 25%,95% 65%,80% 100%,0 100%,0 0);shape-outside:url('zanzel-master-tutorial.webp');shape-image-threshold:.1;shape-margin:10px}
.zanzelTutorial.zanzelTutorialMaster .zanzelTutorialBody p{display:block;grid-column:auto}

/* Reserve only horizontal room for a stationary mascot; preserve the existing marquee. */
.communicationViewport{overflow:hidden;width:100%;min-width:0}
#communicationAdmin textarea{box-sizing:border-box;width:100%;resize:vertical;font:inherit;min-height:90px}

/* The report helper reuses the welcome mascot without adding a panel. */
#reportForm .reportZanzelHint{display:flow-root;margin:12px 0;color:#a9bfc0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
#reportForm .reportZanzelHint img{display:block;float:left;width:clamp(110px,32vw,150px);max-width:none;height:auto;margin:0 10px 6px -8px;shape-outside:url('zanzel-welcome.webp');shape-image-threshold:.01;shape-margin:8px;pointer-events:none}
#reportForm .reportZanzelHint p{margin:0}

/* Beta access guidance: inline screen, independent of tutorial dialogs. */
.premiumZanzelBody{display:flow-root;font-size:14px;line-height:1.6;color:#eee5d0;text-shadow:0 1px 3px #001017;overflow-wrap:anywhere}
.premiumZanzelBody[hidden]{display:none}
.premiumZanzelBody img{display:block;float:left;width:clamp(150px,42vw,240px);max-width:none;height:auto;margin:0 12px 6px -16px;shape-outside:url('zanzel-gathering.webp');shape-image-threshold:.01;shape-margin:10px;pointer-events:none}
.premiumZanzelBody.premiumZanzel-giocatore img{shape-outside:url('zanzel-player-tutorial.webp')}
.premiumZanzelBody.premiumZanzel-master img{shape-outside:url('zanzel-master-tutorial.webp')}
.premiumZanzelBody p{margin:0;white-space:pre-line}

/* Experimental shop tool, scoped to its own view. */
#shopView .shopControls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
#shopView .shopControls label{min-width:0}
#shopView select{width:100%;min-height:44px}
#shopView .shopControls button{grid-column:1/-1;min-height:44px}
#shopView .shopInventory{list-style:none;padding:0;margin:18px 0;display:grid;gap:12px}
#shopView .shopInventory li{padding:14px;border:1px solid #ad905955;border-radius:12px;background:#0a252d}
#shopView .shopItemHeading{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}
#shopView .shopPrice{color:#f1d293;font-weight:600}
#shopView .shopOrigin{font-size:12px;color:#d2cbb7;line-height:1.5;margin:8px 0}
#shopView .shopEffect{white-space:pre-line;line-height:1.6;font-size:14px}
#shopView .shopSources{margin-top:22px;font-size:12px;line-height:1.6}
#shopView summary{cursor:pointer;min-height:32px;color:#f1d293}
#shopView{overflow-wrap:anywhere}
#shopView .shopSources a{color:#f1d293}
@media(max-width:600px){#shopView .shopControls{grid-template-columns:1fr}#shopView>.panel{padding:18px}#shopView .shopPrice{display:block;width:100%}}

/* Bestiary-only UI; shared styles and original statblock data remain unchanged. */
#bestiaryView .bestiaryTabs{display:flex;gap:8px;margin-bottom:16px}#bestiaryView .bestiaryTabs button{flex:1;min-width:0;min-height:44px;font:inherit;font-size:15px;border:1px solid #ad9059;border-radius:8px;background:#102d35;color:#f3dcab;padding:8px}#bestiaryView .bestiaryTabs button[aria-pressed=true]{background:#594326;border-color:#f3dcab}
#bestiaryView label{min-width:0;font-size:14px}#bestiaryView .bestiaryEditionLabel,#bestiaryView .bestiarySortLabel{display:flex;flex-direction:column;gap:6px;margin:12px 0}#bestiaryView select,#bestiaryView input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;font:inherit;font-size:16px;border:1px solid #527373;border-radius:8px;padding:10px 12px;background:#102d35;color:#e3ede7}#bestiaryView input::placeholder{color:#b6cbc6;opacity:1}#bestiaryView .bestiarySearchBar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:16px 0}#bestiaryView .bestiarySearchBar label{display:flex;flex-direction:column;gap:6px}#bestiaryView #monsterFiltersOpen{min-height:46px;max-width:110px;padding:10px 12px;border:1px solid #d0ab68;border-radius:8px;background:#594326;color:#f3dcab;font:inherit;font-size:15px}#bestiaryView button:focus-visible,#bestiaryView summary:focus-visible,#bestiaryView select:focus-visible,#bestiaryView input:focus-visible{outline:2px solid #f3dcab;outline-offset:3px}
#bestiaryView .monsterList{grid-template-columns:minmax(0,1fr)}#bestiaryView .bestiaryRow{position:relative;display:block;min-width:0}#bestiaryView .monsterCard{min-width:0;padding:0 12px}#bestiaryView .monsterCard summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;list-style:none;min-height:72px;box-sizing:border-box;padding:12px 54px 12px 0;cursor:pointer}#bestiaryView .monsterCard summary::-webkit-details-marker{display:none}#bestiaryView .monsterSummaryText{min-width:0;display:block}#bestiaryView .monsterName{display:block;font-size:17px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}#bestiaryView .monsterMeta{display:block;font-size:13px;font-weight:400;line-height:1.4;color:#b6cbc6;margin-top:5px;overflow-wrap:anywhere}#bestiaryView .monsterCRBadge{display:block;font-size:14px;font-weight:700;color:#f3dcab;white-space:nowrap;border:1px solid #ad905966;border-radius:6px;padding:6px}#bestiaryView .monsterStar{position:absolute;right:10px;top:14px;min-width:44px;min-height:44px;width:44px;padding:0;margin:0;border:1px solid #ad905955;border-radius:8px;background:#102d35;color:#bac8c3;font-size:27px;line-height:1}#bestiaryView .monsterStar[aria-pressed=true]{color:#f1c369}#bestiaryView .monsterStar:disabled{opacity:.55}#bestiaryView p{overflow-wrap:anywhere}
#bestiaryView #monsterFilterDialog{box-sizing:border-box;width:calc(100% - 24px);max-width:560px;max-height:90vh;max-height:90dvh;margin:auto;padding:0;border:1px solid #cda55f;border-radius:14px;color:#e3ede7;background:#102d35;box-shadow:0 12px 44px #0009;overflow:hidden}#bestiaryView #monsterFilterDialog[open]{display:flex;flex-direction:column}#bestiaryView #monsterFilterDialog::backdrop{background:#031317b8;backdrop-filter:blur(3px)}#bestiaryView .bestiaryFilterHead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #ad905966;flex-shrink:0}#bestiaryView #monsterFilterTitle{margin:0;font-size:22px;line-height:1.25;color:#f3dcab;overflow-wrap:anywhere}#bestiaryView #monsterFiltersClose{min-height:44px;min-width:64px;font:inherit;font-size:14px;color:#f3dcab;border:1px solid #ad9059;border-radius:8px;background:#193b43;padding:8px}#bestiaryView .bestiaryFilterBody{min-width:0;overflow-y:auto;overflow-x:hidden;min-height:0;padding:0 16px 12px;overscroll-behavior:contain}#bestiaryView #monsterFilterHelp{font-size:14px;line-height:1.5;color:#b6cbc6}#bestiaryView .bestiaryFilterBody fieldset{min-width:0;border:0;border-top:1px solid #ad905944;padding:14px 0;margin:14px 0 0}#bestiaryView .bestiaryFilterBody legend{padding:0 8px 0 0;font-size:16px;font-weight:700;color:#f3dcab}#bestiaryView .bestiaryChoices{display:flex;flex-wrap:wrap;gap:8px}#bestiaryView .bestiaryChoices button{min-height:44px;max-width:100%;padding:9px 12px;border:1px solid #527373;border-radius:8px;background:#193b43;color:#e3ede7;font:inherit;font-size:15px;line-height:1.3;overflow-wrap:anywhere}#bestiaryView .bestiaryChoices button[aria-pressed=true]{background:#594326;border-color:#f3dcab;color:#f3dcab}#bestiaryView .bestiaryChoices button[aria-pressed=true]::before{content:'✓ ';font-size:13px}#bestiaryView .bestiaryCRFields:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:12px}#bestiaryView .bestiaryCRFields label{display:flex;flex-direction:column;gap:6px}#bestiaryView .bestiaryFilterActions{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #ad905966;background:#102d35;flex-shrink:0}#bestiaryView .bestiaryFilterActions button{min-height:44px;width:100%;font:inherit;font-size:15px;border:1px solid #ad9059;border-radius:8px;padding:10px;background:#193b43;color:#f3dcab}#bestiaryView #monsterFiltersApply{background:#594326;border-color:#f3dcab}#bestiaryView #monsterFiltersApply:disabled{opacity:.55}#bestiaryView #monsterFilterError{font-size:14px;color:#ffd6ba;margin:8px 0 0}#bestiaryView #monsterFilterError:empty{display:none}

/* BEGIN BESTIARY_PARCHMENT_PALETTE: optional paint-only experiment, remove this block to restore c046dc6. */
#bestiaryView{--bestiary-paper:#F1E2C4;--bestiary-inner:#FAF0DA;--bestiary-ink:#241B15;--bestiary-bordeaux:#4A0002;--bestiary-frame:#B89A62;--bestiary-secondary:#D8C39C;color:var(--bestiary-ink);text-shadow:none}
#bestiaryView .intro,#bestiaryView>.sourceNote{background-color:transparent}
#bestiaryView>.panel{background-color:var(--bestiary-paper);border-color:var(--bestiary-frame);box-shadow:0 24px 65px rgba(36,27,21,.18)}
#bestiaryView .intro h1,#bestiaryView .intro .eyebrow,#bestiaryView .backbtn{color:var(--bestiary-bordeaux)}
#bestiaryView .backbtn,#bestiaryView .backbtn:hover,#bestiaryView .backbtn:focus,#bestiaryView .backbtn:active{background-color:transparent;color:var(--bestiary-bordeaux)}
#bestiaryView label,#bestiaryView p,#bestiaryView .footnote,#bestiaryView #monsterStatus,#bestiaryView #monsterFavoritesStatus{color:var(--bestiary-ink)}
#bestiaryView .bestiaryTabs button,#bestiaryView .bestiaryChoices button,#bestiaryView .bestiaryFilterActions button,#bestiaryView #monsterFiltersClose,#bestiaryView #monsterFavoritesRetry,#bestiaryView #monsterLoadRetry{background-color:var(--bestiary-inner);color:var(--bestiary-ink);border-color:var(--bestiary-bordeaux)}
#bestiaryView .bestiaryTabs button[aria-pressed=true],#bestiaryView .bestiaryChoices button[aria-pressed=true],#bestiaryView #monsterFiltersOpen,#bestiaryView #monsterFiltersApply{background-color:var(--bestiary-bordeaux);color:var(--bestiary-inner);border-color:var(--bestiary-bordeaux)}
#bestiaryView input,#bestiaryView select{background-color:var(--bestiary-inner);color:var(--bestiary-ink);border-color:var(--bestiary-bordeaux)}
#bestiaryView input::placeholder{color:var(--bestiary-ink)}
#bestiaryView button:focus-visible,#bestiaryView summary:focus-visible,#bestiaryView select:focus-visible,#bestiaryView input:focus-visible{outline-color:var(--bestiary-bordeaux)}
#bestiaryView .monsterCard{background-color:var(--bestiary-inner);border-color:var(--bestiary-frame)}
#bestiaryView .monsterCard summary,#bestiaryView .monsterName{color:var(--bestiary-bordeaux)}
#bestiaryView .monsterMeta,#bestiaryView .monsterDetails{color:var(--bestiary-ink)}
#bestiaryView .monsterCRBadge{background-color:var(--bestiary-secondary);color:var(--bestiary-bordeaux);border-color:var(--bestiary-frame)}
#bestiaryView .monsterStar{background-color:var(--bestiary-inner);color:var(--bestiary-ink);border-color:var(--bestiary-bordeaux)}
#bestiaryView .monsterStar[aria-pressed=true]{background-color:var(--bestiary-secondary);color:var(--bestiary-bordeaux);border-color:var(--bestiary-bordeaux)}
#bestiaryView .monsterDetails h3,#bestiaryView .monsterDetails .monsterFeature h4,#bestiaryView .monsterDetails strong,#bestiaryView .monsterDetailRows dt,#bestiaryView .monsterAbilities caption,#bestiaryView .monsterAbilities th,#bestiaryView .monsterSource,#bestiaryView .sourceNote a{color:var(--bestiary-bordeaux)}
#bestiaryView .monsterDetailRows dd,#bestiaryView .monsterAbilities td{color:var(--bestiary-ink)}
#bestiaryView .monsterOverview{background-color:var(--bestiary-paper);border-color:var(--bestiary-frame)}
#bestiaryView .monsterDetails .monsterOverview p{background-color:var(--bestiary-inner);border-color:var(--bestiary-frame)}
#bestiaryView .monsterSection,#bestiaryView .monsterDetailRows>div,#bestiaryView .monsterFeature+.monsterFeature,#bestiaryView .monsterAbilities td,#bestiaryView .monsterAbilities th{border-color:var(--bestiary-frame)}
#bestiaryView #monsterFilterDialog{background-color:var(--bestiary-paper);color:var(--bestiary-ink);border-color:var(--bestiary-frame);box-shadow:0 12px 44px rgba(36,27,21,.32)}
#bestiaryView .bestiaryFilterHead,#bestiaryView .bestiaryFilterActions{background-color:var(--bestiary-paper);border-color:var(--bestiary-frame)}
#bestiaryView .bestiaryFilterBody{background-color:var(--bestiary-inner)}
#bestiaryView #monsterFilterTitle,#bestiaryView .bestiaryFilterBody legend,#bestiaryView #monsterFilterError{color:var(--bestiary-bordeaux)}
#bestiaryView .bestiaryFilterBody fieldset{border-color:var(--bestiary-frame)}
#bestiaryView #monsterFilterHelp{color:var(--bestiary-ink)}
/* END BESTIARY_PARCHMENT_PALETTE */


/* Weapon catalog navigation placement, independent of the optional palette. */
#openWeaponCatalog{grid-column:1}
/* Weapon catalog layout: independent from the optional color block. */
:is(#weaponCatalog,#gearCatalogPanel) .weaponEditionLabel{display:block;font-size:14px;font-weight:700;margin:0 0 6px}
:is(#weaponCatalog,#gearCatalogPanel) :is(#weaponEdition,#gearEdition){width:100%;box-sizing:border-box;min-height:47px;padding:10px 12px;font:inherit;font-size:16px;border:1px solid #6a8585;border-radius:10px;background:#0d2931;color:#eef3ed}
:is(#weaponCatalog,#gearCatalogPanel) .weaponEditionBar{position:sticky;top:0;z-index:2;padding:8px 0;margin:12px 0;background:#12343c}
:is(#weaponCatalogContent,#gearCatalogContent)>p{line-height:1.6}
:is(#weaponCatalog,#gearCatalogPanel) h2{font-size:26px;line-height:1.2}
:is(#weaponCatalogContent,#gearCatalogContent)>p:first-child{font-size:14px;line-height:1.45;margin:12px 0}
:is(#weaponCatalog,#gearCatalogPanel) :is(input,button,select){scroll-margin-top:100px}
:is(#weaponCatalog,#gearCatalogPanel) .weaponControls{margin:16px 0 8px;min-width:0}
:is(#weaponCatalog,#gearCatalogPanel) .weaponControls>label{display:block;font-size:14px;font-weight:700;margin-bottom:6px}
:is(#weaponCatalog,#gearCatalogPanel) :is(#weaponSearch,#gearSearch){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:47px;padding:10px 12px;font:inherit;font-size:16px;border:1px solid #6a8585;border-radius:10px}
:is(#weaponCatalog,#gearCatalogPanel) .weaponControls fieldset{min-inline-size:0;margin:14px 0 0;padding:0;border:0}
:is(#weaponCatalog,#gearCatalogPanel) .weaponControls legend{font-size:14px;font-weight:700;padding:0;margin-bottom:6px}
:is(#weaponCatalog,#gearCatalogPanel) .weaponFilterChoices{display:flex;flex-wrap:wrap;gap:6px}
:is(#weaponCatalog,#gearCatalogPanel) .weaponFilterChoices button,:is(#weaponCatalog,#gearCatalogPanel) :is(#weaponReset,#gearReset){box-sizing:border-box;min-height:44px;max-width:100%;padding:8px 10px;border:1px solid;border-radius:8px;font:inherit;font-size:14px;line-height:1.3;overflow-wrap:anywhere;touch-action:manipulation}
:is(#weaponCatalog,#gearCatalogPanel) .weaponResultsBar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:14px 0}
:is(#weaponCatalog,#gearCatalogPanel) .weaponResultsBar .spellCount{margin:0}
:is(#weaponCatalog,#gearCatalogPanel) .weaponResults{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin:0 0 20px}
:is(#weaponCatalog,#gearCatalogPanel) .weaponRow{box-sizing:border-box;display:grid;gap:3px;width:100%;min-width:0;min-height:44px;text-align:left;white-space:normal;padding:8px 12px;border:1px solid;border-radius:9px;font:inherit;cursor:pointer;overflow-wrap:anywhere}
:is(#weaponCatalog,#gearCatalogPanel) .weaponRow strong{font-size:16px;line-height:1.25}
:is(#weaponCatalog,#gearCatalogPanel) .weaponDamage{font-size:14px;line-height:1.3}
:is(#weaponCatalog,#gearCatalogPanel) .weaponRow small{font-size:12px;line-height:1.35}
:is(#weaponCatalog,#gearCatalogPanel) .weaponExplanations{display:grid;gap:9px;margin:12px 0 20px}
:is(#weaponCatalog,#gearCatalogPanel) .weaponExplanations>div{padding:12px 14px;border:1px solid;border-radius:10px;min-width:0;overflow-wrap:anywhere}
:is(#weaponCatalog,#gearCatalogPanel) .weaponExplanations dt{font-weight:700;font-size:16px;line-height:1.4;margin-bottom:6px}
:is(#weaponCatalog,#gearCatalogPanel) .weaponExplanations dd{font-size:16px;line-height:1.6;margin:0}
:is(#weaponCatalog,#gearCatalogPanel) #weaponDetail h3,:is(#weaponCatalog,#gearCatalogPanel) .spellAttribution,:is(#weaponCatalogContent,#gearCatalogContent)>p{overflow-wrap:anywhere}
/* BEGIN WEAPON_CATALOG_PALETTE: optional Bestiary-matched paint, scoped only to the weapon catalog. */
:is(#weaponsView,#gearCatalogView){--weapon-paper:#F1E2C4;--weapon-inner:#FAF0DA;--weapon-text:#241B15;--weapon-bordeaux:#4A0002;--weapon-frame:#B89A62;--weapon-secondary:#D8C39C;color:var(--weapon-text);text-shadow:none}
:is(#weaponsView,#gearCatalogView) :is(#weaponCatalog,#gearCatalogPanel),:is(#weaponsView,#gearCatalogView) .weaponEditionBar{background-color:var(--weapon-paper);border-color:var(--weapon-frame)}
:is(#weaponsView,#gearCatalogView) h2,:is(#weaponsView,#gearCatalogView) h3,:is(#weaponsView,#gearCatalogView) h4,:is(#weaponsView,#gearCatalogView) a,:is(#weaponsView,#gearCatalogView) .spellBadge,:is(#weaponsView,#gearCatalogView) .spellStats dd,:is(#weaponsView,#gearCatalogView) .weaponDamage,:is(#weaponsView,#gearCatalogView) .weaponExplanations dt{color:var(--weapon-bordeaux)}
:is(#weaponsView,#gearCatalogView) p,:is(#weaponsView,#gearCatalogView) label,:is(#weaponsView,#gearCatalogView) legend,:is(#weaponsView,#gearCatalogView) .spellCount,:is(#weaponsView,#gearCatalogView) .spellStats dt,:is(#weaponsView,#gearCatalogView) .spellAttribution,:is(#weaponsView,#gearCatalogView) .spellEmpty{color:var(--weapon-text)}
:is(#weaponsView,#gearCatalogView) .weaponRow,:is(#weaponsView,#gearCatalogView) .spellStats div,:is(#weaponsView,#gearCatalogView) .weaponExplanations>div{background-color:var(--weapon-inner);border-color:var(--weapon-frame);color:var(--weapon-text)}
:is(#weaponsView,#gearCatalogView) .weaponRow small{color:var(--weapon-text)}
:is(#weaponsView,#gearCatalogView) input,:is(#weaponsView,#gearCatalogView) select,:is(#weaponsView,#gearCatalogView) :is(#weaponEdition,#gearEdition),:is(#weaponsView,#gearCatalogView) :is(#weaponSearch,#gearSearch){background-color:var(--weapon-inner);color:var(--weapon-text);border-color:var(--weapon-bordeaux)}
:is(#weaponsView,#gearCatalogView) input::placeholder{color:var(--weapon-text);opacity:1}
:is(#weaponsView,#gearCatalogView) .secondary,:is(#weaponsView,#gearCatalogView) :is(#weaponReset,#gearReset),:is(#weaponsView,#gearCatalogView) .weaponFilterChoices button{background-color:var(--weapon-secondary);color:var(--weapon-text);border-color:var(--weapon-bordeaux)}
:is(#weaponsView,#gearCatalogView) .weaponFilterChoices button[aria-pressed=true]{background-color:var(--weapon-bordeaux);color:var(--weapon-inner);border-color:var(--weapon-bordeaux)}
:is(#weaponsView,#gearCatalogView) .backbtn,:is(#weaponsView,#gearCatalogView) .backbtn:hover,:is(#weaponsView,#gearCatalogView) .backbtn:focus,:is(#weaponsView,#gearCatalogView) .backbtn:active{background:transparent;color:var(--weapon-bordeaux)}
:is(#weaponsView,#gearCatalogView) .spellAttribution,:is(#weaponsView,#gearCatalogView) .weaponControls fieldset{border-color:var(--weapon-frame)}
:is(#weaponsView,#gearCatalogView) .weaponRow:hover{border-color:var(--weapon-bordeaux)}
:is(#weaponsView,#gearCatalogView) button:focus-visible,:is(#weaponsView,#gearCatalogView) input:focus-visible,:is(#weaponsView,#gearCatalogView) select:focus-visible{outline:2px solid var(--weapon-bordeaux);outline-offset:2px}
/* END WEAPON_CATALOG_PALETTE */

/* Four public equipment catalogs: shared weapon palette/layout, no global rules. */
#openArmorCatalog,#openToolsCatalog,#openPacksCatalog,#openItemsCatalog{grid-column:1}
#gearCatalogPanel .catalogRow>summary{position:relative;list-style:none}
#gearCatalogPanel .catalogRow>summary::-webkit-details-marker{display:none}
#gearCatalogPanel .catalogRow>summary strong{padding-right:20px}
#gearCatalogPanel .catalogRow>summary::after{content:"⌄";position:absolute;top:8px;right:10px;color:var(--weapon-bordeaux)}
#gearCatalogPanel .catalogRow[open]>summary::after{content:"⌃"}
#gearCatalogPanel .catalogItemDetail{padding:14px;border:1px solid var(--weapon-frame);border-top:0;background:var(--weapon-inner);border-radius:0 0 9px 9px;overflow-wrap:anywhere}
#gearCatalogPanel .catalogItemDetail p{line-height:1.6}
#gearCatalogPanel .catalogItemDetail h3,#gearCatalogPanel .catalogCommon h3,#gearCatalogPanel .catalogUnavailable h3{font-size:18px;line-height:1.4;margin:12px 0}
#gearCatalogPanel .catalogCost{font-size:13px;line-height:1.4;color:var(--weapon-text)}
#gearCatalogPanel .catalogCommon{margin:12px 0;border:1px solid var(--weapon-frame);border-radius:9px;padding:10px;background:var(--weapon-inner);overflow-wrap:anywhere}
#gearCatalogPanel .catalogCommon>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:700;color:var(--weapon-bordeaux)}
#gearCatalogPanel .catalogCommon p,#gearCatalogPanel .catalogContents{font-size:15px;line-height:1.6}
#gearCatalogPanel .catalogContents{padding-left:20px;overflow-wrap:anywhere}
#gearCatalogPanel .catalogContents li{margin:8px 0}
#gearCatalogPanel .catalogContents small{display:block}
#gearCatalogPanel .catalogSource{font-size:13px}
#gearCatalogPanel #gearNotice:empty,#gearCatalogPanel #gearMissing:empty{display:none}
#gearCatalogPanel summary:focus-visible{outline:2px solid var(--weapon-bordeaux);outline-offset:2px}

#gearCatalogPanel .catalogCommon,#gearCatalogPanel summary{scroll-margin-top:100px}
#gearCatalogPanel .catalogCommon>summary::after{content:'⌄';margin-left:auto;padding-left:10px}#gearCatalogPanel .catalogCommon[open]>summary::after{content:'⌃'}

/* CATALOG_HUB: paint scoped to the menu only; existing catalogs keep their styles. */
#openCatalogs{grid-column:1}
#catalogsView{--catalog-paper:#F1E2C4;--catalog-inner:#FAF0DA;--catalog-text:#241B15;--catalog-bordeaux:#4A0002;--catalog-frame:#B89A62;--catalog-secondary:#D8C39C;color:var(--catalog-text);text-shadow:none}
#catalogsView>.panel{background:var(--catalog-paper);border-color:var(--catalog-frame)}
#catalogsView .rulesintro{background:transparent}
#catalogsView h1,#catalogsView .eyebrow,#catalogsView .backbtn{color:var(--catalog-bordeaux)}
#catalogsView .backbtn,#catalogsView .backbtn:hover,#catalogsView .backbtn:focus,#catalogsView .backbtn:active{background:transparent}
#catalogsView .ruleCard{grid-column:auto;background:var(--catalog-inner);color:var(--catalog-text);border-color:var(--catalog-frame)}
#catalogsView .ruleCard strong,#catalogsView .ruleCard b{color:var(--catalog-bordeaux)}
#catalogsView .ruleCard small{color:var(--catalog-text)}
#catalogsView .ruleCard:hover{border-color:var(--catalog-bordeaux)}
#catalogsView .ruleCard:active{background:var(--catalog-secondary)}
#catalogsView button:focus-visible{outline:2px solid var(--catalog-bordeaux);outline-offset:3px}
/* BEGIN RULES_PARCHMENT_PALETTE — isolated and reversible */
#companionRules{color:#241B15}
#companionRules .rulesintro,#companionRules>.sourceNote,#companionRules .backbtn,#companionRules .backbtn:is(:hover,:focus,:active){background:transparent}
#companionRules :is(h1,h2,h3,.eyebrow,.backbtn,.ruleCard strong,.ruleCard b,.actionItem summary,.conditionRow strong){color:#4A0002}
#companionRules :is(.rulesintro p,.sourceNote,.ruleCard small,.ruleDetail p,.ruleDetail li,.conditionRow small){color:#241B15}
#companionRules .ruleDetail,#rulesEditionBar{background:#F1E2C4;border:1px solid #B89A62}
#companionRules :is(.ruleCard,.actionItem,.conditionRow){background:#FAF0DA;color:#241B15;border-color:#B89A62}
#companionRules :is(.ruleCard,.conditionRow):hover{background:#D8C39C;border-color:#4A0002}
#companionRules :is(.ruleDetail a,.actionItem summary::after){color:#4A0002}
#companionRules :is(button,a,summary):focus-visible{outline:2px solid #4A0002;outline-offset:3px}
#rulesEditionBar{position:sticky;top:0;z-index:5;display:flex;gap:6px;padding:7px;border-radius:11px;margin-bottom:16px}
#rulesEditionBar button{flex:1;min-width:0;min-height:44px;padding:8px 4px;background:#FAF0DA;border:1px solid #B89A62;border-radius:7px;color:#4A0002;font:inherit;font-size:14px}
#rulesEditionBar button[aria-pressed=true]{background:#4A0002;color:#FAF0DA}
#companionRules .ruleDetail{overflow-wrap:anywhere;scroll-margin-top:75px}
#companionRules .ruleCard{min-width:0}
/* END RULES_PARCHMENT_PALETTE */


/* BEGIN SUPPORT_ENTRY_PALETTE — only the three free Support entries */
#companionSelect :is(#openRules,#openBestiary,#openCatalogs){background:#FAF0DA;border-color:#B89A62;color:#4A0002}
#companionSelect :is(#openRules,#openBestiary,#openCatalogs) :is(.activityIcon,.activityText strong,.activityText small,.activityStatus){color:#4A0002}
#companionSelect :is(#openRules,#openBestiary,#openCatalogs):hover{background:#F1E2C4;border-color:#4A0002}
#companionSelect :is(#openRules,#openBestiary,#openCatalogs):active{background:#D8C39C;border-color:#4A0002}
#companionSelect :is(#openRules,#openBestiary,#openCatalogs):focus-visible{border-color:#4A0002;outline:2px solid #4A0002;outline-offset:3px}
/* END SUPPORT_ENTRY_PALETTE */



/* SHARE_APP: isolated, removable home control and copy fallback. */
#shareAppHome{position:absolute;left:0;top:0;margin:0;z-index:2}
#shareAppOpen{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:1px;border:0;border-radius:8px;background:transparent;box-shadow:none;touch-action:manipulation}
#shareAppOpen:is(:hover,:active,:focus){background:transparent}
#shareAppOpen:focus-visible{outline:2px solid #694524;outline-offset:2px}
#shareAppOpen .shareAppArt{position:relative;flex:none;width:32px;height:32px}
#shareAppOpen img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
@supports ((mask-image:url('')) or (-webkit-mask-image:url(''))){
 #shareAppOpen .shareAppArt::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 36%,#ffecabcc 49%,transparent 62%);background-size:300% 100%;-webkit-mask:url('/share-app/icon.webp') center/contain no-repeat;mask:url('/share-app/icon.webp') center/contain no-repeat;opacity:0;animation:shareAppGlint 10s linear infinite}
}
@keyframes shareAppGlint{0%,90%{background-position:120% 0;opacity:0}92%{opacity:.65}98%,100%{background-position:-120% 0;opacity:0}}
@media(prefers-reduced-motion:reduce){#shareAppOpen .shareAppArt::after{animation:none;opacity:0}}
#shareAppHome[hidden]{display:none!important}
#shareAppDialog{width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid #B89A62;border-radius:16px;background:#F1E2C4;color:#241B15}
#shareAppDialog::backdrop{background:#00101799}
#shareAppDialog h2{margin-top:0;font-family:'Playfair Display',Georgia,serif;color:#4A0002}
#shareAppDialog label{display:block;font-size:14px;margin-bottom:6px}
#shareAppDialog input{width:100%;min-height:44px;padding:8px;background:#FAF0DA;color:#241B15;border:1px solid #B89A62;border-radius:6px;font:inherit;font-size:16px}
#shareAppDialog .shareAppActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#shareAppDialog button{min-height:44px;padding:10px 14px;background:#4A0002;color:#FAF0DA;border:1px solid #4A0002;border-radius:8px}
#shareAppDialog :is(button,input):focus-visible{outline:2px solid #4A0002;outline-offset:3px}
#shareAppStatus{font-size:14px;line-height:1.5;overflow-wrap:anywhere}

/* BESTIARY_EDITION_BAR: only the edition control; original cards retain their paint. */
#monsterEditionBar{position:sticky;top:0;z-index:5;display:flex;gap:6px;padding:7px;margin:0 0 12px;border:1px solid #B89A62;border-radius:11px;background:#F1E2C4}
#monsterEditionBar button{flex:1;min-width:0;min-height:44px;padding:8px 4px;border:1px solid #B89A62;border-radius:7px;background:#FAF0DA;color:#4A0002;font:inherit;font-size:14px}
#monsterEditionBar button[aria-pressed=true]{background:#4A0002;color:#FAF0DA}
#monsterEditionBar button:focus-visible{outline:2px solid #4A0002;outline-offset:3px}
#monsterEditionNotice{color:#241B15;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
#monsterEditionNotice:empty{display:none}
#bestiaryView .monsterCard{scroll-margin-top:78px}

/* FREE_SECTION_HEADINGS: reuse the original Support title gradient; exterior only. */
:is(#companionRules>.rulesintro,#bestiaryView>.intro,#catalogsView>.rulesintro,#spellCatalogView>.rulesintro)>h1{color:#f4d28b}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
.homeintro h1,:is(#companionRules>.rulesintro,#bestiaryView>.intro,#catalogsView>.rulesintro,#spellCatalogView>.rulesintro)>h1{background-image:linear-gradient(180deg,#fff9df 0%,#f9edc1 28%,#f0d28c 60%,#dcad57 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
:is(#companionRules>.rulesintro,#bestiaryView>.intro,#catalogsView>.rulesintro,#spellCatalogView>.rulesintro)>p{color:#f5efdc}
:is(#companionRules>.rulesintro,#bestiaryView>.intro,#catalogsView>.rulesintro,#spellCatalogView>.rulesintro)>.eyebrow{color:#e5b873}
:is(#companionRules,#bestiaryView,#catalogsView,#spellCatalogView)>:is(#rulesBackBtn,#bestiaryBack,#catalogsBack,#spellCatalogBack){color:#e8c58d;background:transparent}
@media (forced-colors:active){.homeintro h1,:is(#companionRules>.rulesintro,#bestiaryView>.intro,#catalogsView>.rulesintro,#spellCatalogView>.rulesintro)>h1{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText;filter:none}}



/* END FREE_SECTION_HEADINGS */

/* SPELL_CATALOG_PARCHMENT: scoped to the free spell catalog. */
#spellCatalogView{color:#241B15;min-width:0;overflow-wrap:anywhere}
#spellCatalogView>.rulesintro,#spellCatalogView .backbtn,#spellCatalogView .backbtn:is(:hover,:focus,:active){background:transparent}
#spellCatalogView .spellCatalog,#spellCatalogEditionBar{background:#F1E2C4;border:1px solid #B89A62}
#spellCatalogView .spellCatalog{min-width:0;box-sizing:border-box}
#spellCatalogView .spellCatalog :is(h2,h3,a,.spellBadge,.backbtn){color:#4A0002}
#spellCatalogView .spellCatalog :is(p,label,small,dt,dd){color:#241B15}
#spellCatalogView :is(.spellRow,.spellStats>div,.spellFilters input,.spellFilters select){background:#FAF0DA;color:#241B15;border-color:#B89A62;min-width:0;box-sizing:border-box}
#spellCatalogView .spellAttribution{border-color:#B89A62}
#spellCatalogView .spellRow:hover{background:#D8C39C;border-color:#4A0002}
#spellCatalogView :is(button,input,select,a):focus-visible{outline:2px solid #4A0002;outline-offset:3px}
#spellCatalogView .backbtn{min-height:44px;white-space:normal;text-align:left}
#spellCatalogView #spellCatalogBack{color:#e8c58d}
#spellCatalogEditionBar{position:sticky;top:var(--sync-banner-height,0px);z-index:5;display:flex;gap:6px;padding:7px;border-radius:11px;margin-bottom:16px}
#spellCatalogEditionBar button{flex:1;min-width:0;min-height:44px;padding:8px 4px;background:#FAF0DA;border:1px solid #B89A62;border-radius:7px;color:#4A0002;font:inherit;font-size:14px}
#spellCatalogEditionBar button[aria-pressed=true]{background:#4A0002;color:#FAF0DA}
#spellCatalogView :is(input,select,button,a,h3){scroll-margin-top:calc(var(--sync-banner-height,0px) + 85px)}
#spellCatalogView [hidden]{display:none!important}
/* SPELL_INLINE_FAVORITES: native in-catalog cards; independent stars. */
#spellCatalogView .spellCatalog{overflow-anchor:none}
#spellCatalogView .spellResults{grid-template-columns:minmax(0,1fr)}
#spellCatalogView .spellTabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
#spellCatalogView .spellTabs button,#spellCatalogView #spellFavoritesRetry{min-height:44px;min-width:0;padding:10px 12px;border:1px solid #B89A62;border-radius:8px;background:#FAF0DA;color:#4A0002;font:inherit}
#spellCatalogView .spellTabs button{flex:1}
#spellCatalogView .spellTabs button[aria-pressed=true]{background:#4A0002;color:#FAF0DA}
#spellCatalogView .spellInlineRow{position:relative;min-width:0;margin-bottom:9px}
#spellCatalogView .spellInlineCard{background:#FAF0DA;border:1px solid #B89A62;border-radius:11px;min-width:0}
#spellCatalogView .spellInlineCard summary{display:flex;flex-direction:column;gap:5px;list-style:none;cursor:pointer;padding:14px 62px 14px 14px;min-height:74px;color:#4A0002;overflow-wrap:anywhere}
#spellCatalogView .spellInlineCard summary::-webkit-details-marker{display:none}
#spellCatalogView .spellInlineCard summary::after{content:'＋';position:absolute;right:52px;top:23px;font-size:14px}
#spellCatalogView .spellInlineCard[open] summary::after{content:'−'}
#spellCatalogView .spellInlineCard summary small{font-size:13px;color:#241B15}
#spellCatalogView .spellInlineContent{padding:0 14px 14px;border-top:1px solid #B89A62;min-width:0}
#spellCatalogView .spellInlineContent .spellStats>div{background:#F1E2C4}
#spellCatalogView .spellInlineContent h3{font-size:26px}
#spellCatalogView .spellStar{position:absolute;right:8px;top:10px;min-width:44px;min-height:44px;padding:4px;border:1px solid #4A0002;border-radius:8px;background:#FAF0DA;color:#241B15;font-size:25px;line-height:1}
#spellCatalogView .spellStar[aria-pressed=true]{background:#D8C39C;color:#4A0002}
#spellCatalogView .spellStar:disabled{opacity:.55;cursor:wait}
#spellCatalogView summary:focus-visible{outline:2px solid #4A0002;outline-offset:3px}
#spellCatalogView .spellInlineCard{scroll-margin-top:calc(var(--sync-banner-height,0px) + 85px)}

#spellCatalogView .spellInlineCard summary{scroll-margin-top:calc(var(--sync-banner-height,0px) + 85px)}
/* BEGIN ZANZEL_TUTORIAL_PARCHMENT: only the shared introductory tutorial dialog. */
#zanzelTutorial{background:#F1E2C4;color:#241B15;border-color:#B89A62;text-shadow:none}
#zanzelTutorial :is(h2,.eyebrow){color:#4A0002}
#zanzelTutorial :is(p,label,.zanzelTutorialActions span){color:#241B15;text-shadow:none}
#zanzelTutorial .zanzelTutorialBody{background:#F1E2C4;border:none;box-shadow:none}
#zanzelTutorial .zanzelTutorialBody img{shape-outside:none}
#zanzelTutorial .zanzelTutorialIntro{display:block;overflow:hidden}
#zanzelTutorial .zanzelTutorialRest{display:block;clear:both}
#zanzelTutorial button{background:#D8C39C;color:#241B15;border-color:#B89A62;text-shadow:none}
#zanzelTutorial #zanzelTutorialNext{background:#4A0002;color:#FAF0DA;border-color:#4A0002}
#zanzelTutorial #zanzelTutorialClose{background:transparent;color:#4A0002;border-color:transparent;box-shadow:none}
#zanzelTutorial button:hover{background:#FAF0DA;color:#4A0002}
#zanzelTutorial #zanzelTutorialNext:is(:hover,:active){background:#650D10;color:#FAF0DA}
#zanzelTutorial #zanzelTutorialClose:is(:hover,:active){background:#D8C39C;color:#4A0002}
#zanzelTutorial button:disabled{background:#D8C39C;color:#241B15;border-color:#B89A62;border-style:dashed;opacity:1}
#zanzelTutorial input{accent-color:#4A0002}
#zanzelTutorial :is(button,input):focus-visible{outline-color:#4A0002}
/* END ZANZEL_TUTORIAL_PARCHMENT */
/* BEGIN PLAYER_TOOLS_PARCHMENT: paint only, scoped to player tools and their equipment dialog. */
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog){--player-paper:#F1E2C4;--player-card:#FAF0DA;--player-ink:#241B15;--player-accent:#4A0002;--player-frame:#B89A62;--player-secondary:#D8C39C;color:var(--player-ink);text-shadow:none}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView) :is(.panel,.activity){background:var(--player-card);color:var(--player-ink);border-color:var(--player-frame)}
#playerView .activities,#equipmentView .equipmentControls{background-color:var(--player-paper)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(h2,h3,h4,.arsenalAttack,.spellLevelHeading,.combatCounter strong,.deathMarks){color:var(--player-accent)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(p,small,label,legend,dt,dd,.empty,.footnote,.slotInfo small){color:var(--player-ink)}
#playerView .activityText strong{color:var(--player-accent)}
#playerView :is(.activityText small,.activityStatus){color:var(--player-ink)}
#playerView .activityIcon{color:var(--player-accent)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(.arsenalEntry,.combatCounter){background-color:var(--player-paper);border-color:var(--player-frame)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input,select,textarea){background:var(--player-card);color:var(--player-ink);border-color:var(--player-frame);accent-color:var(--player-accent);caret-color:var(--player-accent)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input,textarea)::placeholder{color:#64523F;opacity:1}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn)),.secondary){background:var(--player-card);color:var(--player-accent);border-color:var(--player-frame)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn)),summary):hover{background-color:var(--player-secondary);color:var(--player-accent)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(.primary,button[aria-pressed="true"],button[aria-selected="true"],#personalDamage){background:var(--player-accent);color:var(--player-card);border-color:var(--player-accent)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button[aria-pressed="true"],button[aria-selected="true"]){text-decoration:underline;text-underline-offset:3px;outline:1px solid var(--player-accent);outline-offset:2px}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button[aria-pressed="true"],button[aria-selected="true"],.primary,#personalDamage):hover{background:#650D10;color:var(--player-card)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn)),input,select,textarea):disabled{background:var(--player-secondary);color:#59452F;border-color:var(--player-frame);border-style:dashed;opacity:1;cursor:not-allowed}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input,textarea):read-only{background:var(--player-paper)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input,textarea):user-invalid,:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) [aria-invalid="true"]{outline:2px solid var(--player-accent);outline-offset:2px;border-style:double}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid var(--player-accent);outline-offset:3px}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is([role="status"],[role="alert"],#personalHPStatus){color:var(--player-accent);background-color:var(--player-paper)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) [role="alert"]{text-decoration:underline;text-decoration-style:double}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) a{color:var(--player-accent);text-decoration:underline}
#arsenalView .spellRemove{background:transparent;color:var(--player-accent)}
#arsenalView .spellRemove:is(:hover,:focus-visible){background:var(--player-secondary);color:var(--player-accent)}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>.backbtn,:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>.backbtn:is(:hover,:active,:focus){background:transparent;color:#e8c58d}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>:is(.intro,.homeintro){background:transparent}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>:is(.intro,.homeintro)>h1,#equipmentView>h1,#playerJournalView>h1{color:#f4d28b}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>:is(.intro,.homeintro)>h1,#equipmentView>h1,#playerJournalView>h1{background-image:linear-gradient(180deg,#fff9df 0%,#f9edc1 28%,#f0d28c 60%,#dcad57 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>:is(.intro,.homeintro)>.eyebrow{color:#e5b873}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>:is(.intro,.homeintro)>p,#equipmentView>p:not([role]),#playerJournalView>p:not([role]){color:#f5efdc}
#equipmentView :is(.equipmentSlot,.equipmentStat){color:#FAF0DA;text-shadow:0 1px 2px #241B15}
#equipmentView .equipmentItemName{background:#F1E2C4;color:#241B15;text-shadow:none}
#equipmentView .equipmentBoard button:focus-visible{outline-color:#FAF0DA;outline-offset:-2px}
#equipmentDialog{background:#F1E2C4;color:#241B15;border-color:#B89A62}
#equipmentDialog::backdrop{background:#241B1599}
#equipmentDialog :is(input,select,textarea):focus-visible{outline-offset:-2px;box-shadow:none}
#equipmentDialog :is(.equipmentDialogHead h2,h3,h4){color:#4A0002}
@media (forced-colors:active){:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView)>:is(.intro,.homeintro)>h1,#equipmentView>h1,#playerJournalView>h1{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}
/* END PLAYER_TOOLS_PARCHMENT */
/* BEGIN PLAYER_TOOLS_COORDINATED_UI: visual hierarchy, scoped controls and journal archive. */
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView) :is(.panel,.activity){background:#F1E2C4;border:1px solid #B89A62;border-radius:16px;box-shadow:none}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView) .panel>h2{color:#4A0002;border-bottom:1px solid #B89A62;padding-bottom:12px}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(.arsenalEntry,.combatCounter){background:transparent;border:0;border-bottom:1px solid #B89A62;box-shadow:none}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog):is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is([role="status"],[role="alert"],.footnote,.empty){background:transparent;color:#241B15}
#combatView #personalHPStatus{background:transparent;color:#241B15;border-left:3px solid #B89A62;padding-left:10px;font-size:.95rem;font-weight:500;margin:12px 0}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:44px;padding:10px 12px;border:1px solid #B89A62;border-radius:10px;background:#FAF0DA;color:#241B15;box-shadow:none;text-shadow:none;font-family:inherit;font-size:16px}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input,textarea)::placeholder{color:#241B15;opacity:.7}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input,select,textarea):focus-visible{outline:2px solid #4A0002;outline-offset:-2px;box-shadow:none}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):disabled{background:#D8C39C;color:#241B15;border-style:dashed;opacity:1}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(input,textarea):read-only{background:#FAF0DA}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn,.activity)),.secondary:not(:where(.backbtn,.equipmentSlot,.equipmentStat))){min-height:44px;min-width:0;max-width:100%;padding:10px 14px;border:1px solid #B89A62;border-radius:10px;background:#D8C39C;color:#241B15;box-shadow:none;text-shadow:none;white-space:normal;overflow-wrap:anywhere}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn,.activity)),.secondary:not(:where(.backbtn,.equipmentSlot,.equipmentStat))):hover{background:#FAF0DA;color:#4A0002;box-shadow:none}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn,.activity)),.secondary:not(:where(.backbtn,.equipmentSlot,.equipmentStat))):active{background:#4A0002;color:#FAF0DA;box-shadow:none}
#combatView :is(#personalHeal,#personalSlotsConfirm),#arsenalView :is(#arsenalAddWeapon,#arsenalAddSpell),#playerJournalView#playerJournalView :is(.primary,button[type="submit"]),#equipmentDialog#equipmentDialog .primary{background:#4A0002;color:#FAF0DA;border-color:#4A0002}
#combatView :is(#personalHeal,#personalSlotsConfirm):hover,#arsenalView :is(#arsenalAddWeapon,#arsenalAddSpell):hover,#playerJournalView#playerJournalView :is(.primary,button[type="submit"]):hover,#equipmentDialog#equipmentDialog .primary:hover{background:#4A0002;color:#FAF0DA;text-decoration:underline;text-underline-offset:3px}
#combatView #personalDamage,#arsenalView :is(.arsenalEntry>button,.spellRemove),#playerJournalView .journalDelete,#equipmentView .equipmentControls>button:last-child,#equipmentDialog .equipmentDialogBody:has(>h3)>button:last-child{background:transparent;color:#4A0002;border-color:#4A0002;text-decoration:underline;text-underline-offset:3px}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog):is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn,.activity)),.secondary:not(:where(.backbtn,.equipmentSlot,.equipmentStat))):disabled,:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog):is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn,.activity)),.secondary:not(:where(.backbtn,.equipmentSlot,.equipmentStat))):disabled:hover,#combatView :is(#personalHeal,#personalDamage,#personalSlotsConfirm):disabled,#arsenalView :is(#arsenalAddWeapon,#arsenalAddSpell):disabled{background:#D8C39C;color:#241B15;border-color:#B89A62;border-style:dashed;opacity:1;text-decoration:none}
:is(#playerView,#combatView,#arsenalView,#equipmentView,#playerJournalView,#equipmentDialog) :is(button:not(:where(.equipmentSlot,.equipmentStat,.backbtn,.activity)),.secondary:not(:where(.backbtn,.equipmentSlot,.equipmentStat))):focus-visible{outline:2px solid #4A0002;outline-offset:2px;box-shadow:none}
#combatView .combatChips button{background:#FAF0DA;color:#4A0002;border:1px solid #B89A62;border-radius:10px}
#combatView .slotTotal input{max-width:90px}
#arsenalView .arsenalEntry{padding:16px 0;border-radius:0}
#arsenalView .spellRemove{flex:none}
#equipmentView .equipmentControls{background:transparent}
#equipmentDialog{background:#F1E2C4;border:1px solid #B89A62;border-radius:16px}
#equipmentDialog .equipmentDialogHead{border-bottom:1px solid #B89A62;padding-bottom:12px}
#equipmentDialog .equipmentDialogBody{background:transparent}
#equipmentDialog .equipmentDialogBody :is(form>.primary,section button){margin-right:0}
#playerJournalView .journalWorkspace{margin-top:18px}
#playerJournalView .journalArchive{background:#FAF0DA;border:1px solid #B89A62;border-radius:12px;padding:14px}
#playerJournalView .journalArchive>[role="status"]{background:transparent;margin:0 0 10px;color:#241B15}
#playerJournalView .journalArchive>input{margin:0}
#playerJournalView .journalToolbar{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
#playerJournalView .journalCard{background:#FAF0DA;border:1px solid #B89A62;border-radius:12px;margin:14px 0}
#playerJournalView .journalCard>h2{font-size:1.2rem;overflow-wrap:anywhere}
#playerJournalView .journalCardActions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#playerJournalView .journalCardActions button{margin:0}
#playerJournalView .journalWorkspace>form.panel{background:transparent;border:0;border-top:1px solid #B89A62;border-radius:0;padding:18px 0 0;box-shadow:none}
#playerJournalView .journalWorkspace>form fieldset>button{margin:8px 8px 0 0}
#combatView #personalDamage:is(:hover,:active),#arsenalView :is(.arsenalEntry>button,.spellRemove):is(:hover,:active),#playerJournalView .journalDelete:is(:hover,:active),#equipmentView .equipmentControls>button:last-child:is(:hover,:active),#equipmentDialog .equipmentDialogBody:has(>h3)>button:last-child:is(:hover,:active){background:#4A0002;color:#FAF0DA}
/* END PLAYER_TOOLS_COORDINATED_UI */


/* BEGIN MASTER_TOOLS_COORDINATED_UI: same approved Player visual language; Master views only. */
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView){color:#241B15;text-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(.panel,.activity,.initiativeRow,.generatedName){background:#F1E2C4;color:#241B15;border:1px solid #B89A62;border-radius:16px;box-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(p,label,small,span,dt,dd,.shopOrigin,.shopEffect,.shopSources,.nameCopyStatus){color:#241B15;text-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(h2,h3,h4,strong,.generatedName strong,.innTitle,.shopPrice,.diceFormula,.dieFace){color:#4A0002;text-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) .panel>h2{border-bottom:1px solid #B89A62;padding-bottom:12px}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is([role="status"],[role="alert"],.initiativeStatus,.footnote,.empty){background:transparent;color:#241B15}
#initiativeView #initiativeStatus{font-size:.95rem;font-weight:500;border-left:3px solid #B89A62;padding-left:10px}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:44px;padding:10px 12px;background:#FAF0DA;color:#241B15;border:1px solid #B89A62;border-radius:10px;box-shadow:none;text-shadow:none;font-family:inherit;font-size:16px}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(input,textarea)::placeholder{color:#241B15;opacity:.7}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(input,select,textarea):focus-visible{outline:2px solid #4A0002;outline-offset:-2px;box-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) input:is([type="checkbox"],[type="radio"]){accent-color:#4A0002}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(button:not(:where(.backbtn,.activity)),.secondary){min-height:44px;min-width:0;max-width:100%;padding:10px 14px;border:1px solid #B89A62;border-radius:10px;background:#D8C39C;color:#241B15;box-shadow:none;text-shadow:none;white-space:normal;overflow-wrap:anywhere}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(button:not(:where(.backbtn,.activity)),.secondary):hover{background:#FAF0DA;color:#4A0002;box-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(.primary,button[aria-pressed="true"],button[aria-selected="true"]){background:#4A0002;color:#FAF0DA;border-color:#4A0002}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(.primary,button[aria-pressed="true"],button[aria-selected="true"]):hover{background:#4A0002;color:#FAF0DA;text-decoration:underline;text-underline-offset:3px}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(button[aria-pressed="true"],button[aria-selected="true"]){outline:1px solid #4A0002;outline-offset:2px;text-decoration:underline}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) button:not(:where(.backbtn,.activity)):active{background:#4A0002;color:#FAF0DA;text-decoration:underline}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(button:not(:where(.backbtn,.activity)),input,select,textarea):disabled,:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) button:disabled:hover{background:#D8C39C;color:#241B15;border-color:#B89A62;border-style:dashed;opacity:1;text-decoration:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid #4A0002;outline-offset:2px;box-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(input,select,textarea):focus-visible{outline-offset:-2px}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(input,textarea):user-invalid,:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) [aria-invalid="true"]{outline:2px solid #4A0002;outline-offset:-2px;border-style:double}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView) :is(a,[role="alert"]){color:#4A0002;text-decoration:underline}
#initiativeView :is(#initiativeReset,#initiativeConfirmReset,.initiativeRowHeading .actions button:last-child,.initiativeHealth .actions button:first-child),#partyView :is([data-delete],[data-confirm]),#diceView :is(#diceClear,[data-remove]){background:transparent;color:#4A0002;border-color:#4A0002;text-decoration:underline;text-underline-offset:3px}
#initiativeView :is(#initiativeReset,#initiativeConfirmReset,.initiativeRowHeading .actions button:last-child,.initiativeHealth .actions button:first-child):is(:hover,:active),#partyView :is([data-delete],[data-confirm]):is(:hover,:active),#diceView :is(#diceClear,[data-remove]):is(:hover,:active){background:#4A0002;color:#FAF0DA}
#initiativeView :is(#initiativeReset,#initiativeConfirmReset):disabled,#diceView #diceClear:disabled{background:#D8C39C;color:#241B15;border-color:#B89A62;border-style:dashed;text-decoration:none}
#initiativeView .initiativeRow.current{background:#FAF0DA;border:2px solid #4A0002;box-shadow:none}
#initiativeView .initiativeRow.zeroHP .hpValue{color:#4A0002;text-decoration:underline;text-decoration-style:double}
#initiativeView .initiativeHealth{background:transparent;border-color:#B89A62}
#initiativeView .initiativeAC input{max-width:100%}
#partyView .partyStats>div{background:transparent;border:0;border-bottom:1px solid #B89A62;border-radius:0}
#partyView .partyDeletePrompt{background:transparent;border-top:1px solid #B89A62}
#innView :is(.innKeeper,.innMenu),#shopView :is(.shopOwner,.shopSources){background:transparent;border-color:#B89A62;box-shadow:none}
#innView .innMenu li,#shopView .shopInventory>li{border-color:#B89A62}
#innView .innMenu li span{min-width:0;overflow-wrap:anywhere}
#shopView .shopInventory>li{background:#FAF0DA;border:1px solid #B89A62;border-radius:12px}
#shopView .shopInventory details{background:transparent;border-color:#B89A62}
#diceView :is(.diceTray,.trayDie){background:#FAF0DA;color:#241B15;border:1px solid #B89A62;box-shadow:none}
#diceView :is(.diceCount,.diceResult){border-color:#B89A62}
#diceView .trayDie small{color:#241B15}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>.backbtn,:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>.backbtn:is(:hover,:active,:focus){background:transparent;color:#e8c58d;box-shadow:none}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>:is(.intro,.homeintro){background:transparent}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>:is(.intro,.homeintro)>h1{color:#f4d28b}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>:is(.intro,.homeintro)>h1{background-image:linear-gradient(180deg,#fff9df 0%,#f9edc1 28%,#f0d28c 60%,#dcad57 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>:is(.intro,.homeintro)>.eyebrow{color:#e5b873}
:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>:is(.intro,.homeintro)>p{color:#f5efdc}
@media (forced-colors:active){:is(#masterView,#initiativeView,#partyView,#diceView,#namesView,#innView,#shopView)>:is(.intro,.homeintro)>h1{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}
#shopView summary,#shopView .shopSources a{color:#4A0002}
/* END MASTER_TOOLS_COORDINATED_UI */
/* BEGIN COORDINATED_PRESENTATION: player menu, introductory wrapping, personal and information views only. */
#playerView>.activities{background:transparent;border:0;box-shadow:none}
#zanzelTutorial .zanzelTutorialIntro,#zanzelTutorial .zanzelTutorialRest{display:inline;overflow:visible;clear:none}
#zanzelTutorial:not(.zanzelTutorialPlayer):not(.zanzelTutorialMaster) .zanzelTutorialBody img{shape-outside:url('zanzel-gathering.webp')}
#zanzelTutorial.zanzelTutorialPlayer .zanzelTutorialBody img{shape-outside:url('zanzel-player-tutorial.webp')}
#zanzelTutorial.zanzelTutorialMaster .zanzelTutorialBody img{shape-outside:url('zanzel-master-tutorial.webp')}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView){color:#241B15;text-shadow:none}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(.panel,dialog){background:#F1E2C4;color:#241B15;border:1px solid #B89A62;border-radius:16px;box-shadow:none}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(p,label,legend,li,small,span,dt,dd,code){color:#241B15;text-shadow:none}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(h2,h3,h4,strong){color:#4A0002;text-shadow:none}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(.panel>h2,.changelogEntry,.reportCard){border-color:#B89A62}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:44px;padding:10px 12px;background:#FAF0DA;color:#241B15;border:1px solid #B89A62;border-radius:10px;box-shadow:none;text-shadow:none;font:inherit;font-size:16px}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(input,textarea)::placeholder{color:#241B15;opacity:.7}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(button:not(.backbtn)){min-height:44px;min-width:0;max-width:100%;padding:10px 14px;background:#D8C39C;color:#241B15;border:1px solid #B89A62;border-radius:10px;box-shadow:none;text-shadow:none;white-space:normal;overflow-wrap:anywhere}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(button:not(.backbtn)):hover{background:#FAF0DA;color:#4A0002}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(.primary,button[aria-pressed="true"],.feedbackStars button.chosen){background:#4A0002;color:#FAF0DA;border-color:#4A0002}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(button[aria-pressed="true"],.feedbackStars button.chosen){text-decoration:underline;text-underline-offset:3px}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(button:not(.backbtn)):active{background:#4A0002;color:#FAF0DA;text-decoration:underline}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(button,input,select,textarea):disabled{background:#D8C39C;color:#241B15;border-style:dashed;opacity:1}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(button,input,select,textarea,a,summary):focus-visible{outline:2px solid #4A0002;outline-offset:2px;box-shadow:none}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(input,select,textarea):focus-visible{outline-offset:-2px}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(input,textarea):user-invalid{border-style:double;outline:2px solid #4A0002}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(input[type="checkbox"],input[type="radio"]){accent-color:#4A0002}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(a){color:#4A0002;text-decoration:underline;overflow-wrap:anywhere}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is([role="status"],.footnote,.reportZanzelHint){background:transparent;color:#241B15;box-shadow:none}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is([role="alert"],.accountError,[aria-invalid="true"]){color:#4A0002;text-decoration:underline double;text-underline-offset:3px}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(.reportReply){background:#FAF0DA;border-color:#B89A62}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView) :not(:where(#communicationAdmin,#communicationAdmin *,#adminMfaSection,#adminMfaSection *)):is(.reportBadge){background:#FAF0DA;color:#4A0002;border-color:#B89A62}
#accountView #passwordRequirements .passwordRuleValid{color:#4A0002;font-weight:700;text-decoration:underline}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView)>.backbtn,:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView)>.backbtn:is(:hover,:active,:focus){background:transparent;color:#e8c58d}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView)>.intro{background:transparent}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView)>.intro>h1{background-image:linear-gradient(180deg,#fff9df 0%,#f9edc1 28%,#f0d28c 60%,#dcad57 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView)>.intro>.eyebrow{color:#e5b873}
:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView)>.intro>p{color:#f5efdc}
@media(forced-colors:active){:is(#accountView,#infoView,#changelogView,#reportsView,#feedbackView)>.intro>h1{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}
/* END COORDINATED_PRESENTATION */
/* EQUIPMENT_COMING_SOON: only the unavailable Player menu card. */
#playerView #openEquipment:disabled{background:#D8C39C;color:#241B15;border:1px dashed #B89A62;opacity:1;box-shadow:none;cursor:not-allowed;transform:none}
#playerView #openEquipment:disabled :is(strong,small,.activityStatus,.activityIcon){color:#241B15;text-shadow:none}
/* BEGIN V288_GATHERING_LEGAL_PRESENTATION: presentation only, explicitly owned roots. */
:is(#fishingView,#foragingView,#herbView) :is(.panel,.result),
:is(#overlay,#forageOverlay,#herbOverlay) .sheet{background:#F1E2C4;color:#241B15;border-color:#B89A62;box-shadow:none;overflow-wrap:anywhere}
:is(#fishingView,#foragingView,#herbView) :is(h2,h3,.sectionhead>span,.eyebrow,.meta,.collectionHead),
:is(#overlay,#forageOverlay,#herbOverlay) :is(h2,h3,strong,.eyebrow,.collectionHead){color:#4A0002}
:is(#fishingView,#foragingView,#herbView) :is(.panel,.result) :is(p,label,small,strong,.duration,.duration-line,.meta),
:is(#overlay,#forageOverlay,#herbOverlay) :is(p,small,.empty,.entry){color:#241B15}
:is(#fishingView,#foragingView,#herbView) :is(.habitat,.timecounter,.dangerOptions,.castarea,.property,.stats span,.forageAnimation,.herbAnimation,.resetPrompt),
:is(#overlay,#forageOverlay,#herbOverlay) :is(.property,.chip){background:#FAF0DA;color:#241B15;border-color:#B89A62;box-shadow:none}
:is(#fishingView,#foragingView,#herbView) :is(.habitat small,.habitat strong,.property strong){color:#241B15}
:is(#fishingView,#foragingView,#herbView) :is(input:not([type=checkbox]),select,textarea){background:#FAF0DA;color:#241B15;border:1px solid #B89A62;border-radius:10px;box-shadow:none;min-height:44px;max-width:100%;font-size:16px}
:is(#fishingView,#foragingView,#herbView) input[type=checkbox]{accent-color:#4A0002}
:is(#fishingView,#foragingView,#herbView) button,
:is(#overlay,#forageOverlay,#herbOverlay) button{background:#D8C39C;color:#241B15;border:1px solid #B89A62;border-radius:10px;box-shadow:none;text-shadow:none;min-height:44px;max-width:100%;white-space:normal}
:is(#fishingView,#foragingView,#herbView) button.primary{background:#4A0002;color:#FAF0DA}
:is(#fishingView,#foragingView,#herbView) button.habitat{background:#FAF0DA;color:#241B15}
:is(#fishingView,#foragingView,#herbView) button.habitat.selected{background:#D8C39C;border:2px solid #4A0002;text-decoration:underline;text-underline-offset:3px}
:is(#fishingView,#foragingView,#herbView) button:active,
:is(#overlay,#forageOverlay,#herbOverlay) button:active{outline:2px solid #4A0002;outline-offset:1px}
:is(#fishingView,#foragingView,#herbView) :is(button,input,select,textarea):disabled{background:#D8C39C;color:#241B15;border-style:dashed;opacity:1;cursor:not-allowed}
:is(#fishingView,#foragingView,#herbView) :is(button,input,select,textarea):focus-visible,
:is(#overlay,#forageOverlay,#herbOverlay) button:focus-visible,
#homeView .activity:focus-visible,#infoView :is(summary,a,button):focus-visible{outline:3px solid #4A0002;outline-offset:3px}
:is(#fishingView,#foragingView,#herbView) .result.threat{border:2px dashed #4A0002}
:is(#fishingView,#foragingView,#herbView) .result.miss{border-style:dashed}
:is(#overlay,#forageOverlay,#herbOverlay) .entry{border-color:#B89A62}
:is(#overlay,#forageOverlay,#herbOverlay) .entry.locked{opacity:1;border-style:dashed}
:is(#overlay,#forageOverlay,#herbOverlay) button.remove{background:transparent;color:#4A0002;border-color:#4A0002;text-decoration:underline}
:is(#overlay,#forageOverlay,#herbOverlay) .sheethead button{background:transparent;color:#4A0002;min-width:44px}
#bottomNav{background:#F1E2C4;border-color:#B89A62;box-shadow:none}
#bottomNav button{color:#241B15;min-height:44px}
#bottomNav button.active{color:#4A0002;border-color:#4A0002;text-decoration:underline;text-underline-offset:3px}
#bottomNav button:focus-visible{outline:3px solid #4A0002;outline-offset:-4px}
:is(#fishingView,#foragingView,#herbView) :is(.panel,.result) *,
:is(#overlay,#forageOverlay,#herbOverlay) .sheet *{text-shadow:none}
:is(#fishingView,#foragingView,#herbView) .sectionhead>span{flex:none}
/* Preserve the existing activity illustrations and their light text contrast. */
#homeView .activity{border-color:#B89A62;border-radius:19px;box-shadow:none}
#homeView .activity :is(strong,small,.activityStatus){color:#FAF0DA}
#homeView .activity:focus-visible{outline-color:#FAF0DA}
:is(#fishingView,#foragingView,#herbView)>.intro{background:transparent}
:is(#fishingView,#foragingView,#herbView)>.intro>h1,
#homeView>.homeintro>h1{background:linear-gradient(180deg,#fff9df 0%,#f9edc1 28%,#f0d28c 60%,#dcad57 100%);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:none}
:is(#fishingView,#foragingView,#herbView)>.intro>h1 em{color:inherit}
:is(#fishingView,#foragingView,#herbView)>.intro>.backbtn{background:transparent;color:#e8c58d;border:0;box-shadow:none}
:is(#fishingView,#foragingView,#herbView)>.intro>p,#homeView>.homeintro>p{color:#f5efdc}
:is(#fishingView,#foragingView,#herbView)>.footnote{color:#f5efdc}
#infoView .legalDraft{border-left:3px solid #4A0002;padding-left:12px}
#infoView .legalSection{border-top:1px solid #B89A62;margin-top:20px;padding-top:12px}
#infoView .legalSection summary{cursor:pointer;min-height:44px;color:#4A0002}
#infoView .legalSection summary h2{display:inline;font-size:1.25rem;line-height:1.5}
#infoView .legalSection :is(p,li){line-height:1.65;overflow-wrap:anywhere}
#infoView .legalSection h3{color:#4A0002}
#infoView .legalSection a{color:#4A0002;text-decoration:underline}
#premiumStatus[data-access-loading="true"]{background:#F1E2C4;color:#241B15;border:1px solid #B89A62;border-radius:12px;box-shadow:none;padding:16px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:430px){
 :is(#fishingView,#foragingView,#herbView) .habitats{grid-template-columns:repeat(2,minmax(0,1fr))}
 :is(#fishingView,#foragingView,#herbView) .habitat{min-width:0;overflow-wrap:anywhere}
 :is(#fishingView,#foragingView,#herbView) .timecounter{flex-wrap:wrap}
 :is(#overlay,#forageOverlay,#herbOverlay) .sheet{padding:18px;max-width:100%}
 #infoView .infoCredits{padding:18px}
}
@media(max-width:350px){:is(#fishingView,#foragingView,#herbView) .habitats{grid-template-columns:1fr}}
@media(forced-colors:active){:is(#fishingView,#foragingView,#herbView)>.intro>h1,#homeView>.homeintro>h1{background:none;color:CanvasText}}
/* END V288_GATHERING_LEGAL_PRESENTATION */

/* BEGIN ARTIST_REGISTRATION_PRESENTATION */
#mainHome #artistCredit{text-align:center;overflow-wrap:anywhere}
#mainHome #artistCredit .artistCreditEyebrow{font-size:10px;font-weight:700;letter-spacing:.13em;color:#efddb6}
#mainHome #artistCredit h2{margin:9px 0;font:600 clamp(23px,5vw,29px)/1.3 'Playfair Display',Georgia,serif;color:#f1d293}
#mainHome #artistCredit h2 a{display:inline-block;min-height:44px;padding:4px 0;text-decoration-thickness:1px}
#mainHome #artistCredit h2 a span{font:400 13px 'DM Sans',sans-serif;vertical-align:super}
#mainHome #artistCredit .artistCreditHint{font-size:11px;color:#efddb6;margin-top:8px}
#accountView #registrationLegalPreview{display:none;background:#F1E2C4;color:#241B15;border-top:1px solid #B89A62;padding:16px 0;margin:16px 0;overflow-wrap:anywhere;text-shadow:none}
#accountView:has(#accountIdentityRows:not([hidden])) #registrationLegalPreview{display:block}
#accountView #registrationLegalPreview h2{color:#4A0002;font-size:18px;margin:0 0 10px}
#accountView #registrationLegalPreview p{color:#241B15;font-size:14px;line-height:1.6}
#accountView #registrationLegalPreview .registrationTermsChoice{display:flex;align-items:flex-start;gap:12px;min-height:44px;line-height:1.6;color:#241B15;font-size:16px;cursor:pointer}
#accountView #registrationLegalPreview .registrationTermsChoice label{display:inline;color:inherit;font:inherit;margin:0}
#accountView #registrationLegalPreview input[type=checkbox]{display:block;flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:3px 0;accent-color:#4A0002}
#accountView #registrationLegalPreview a{color:#4A0002;text-decoration:underline;text-underline-offset:3px}
#accountView #registrationLegalPreview :is(a,input):focus-visible{outline:3px solid #4A0002;outline-offset:3px}
#accountView #registrationLegalPreview .registrationLegalHint{font-size:12px}
/* END ARTIST_REGISTRATION_PRESENTATION */

/* ARMOR_CATALOG_VIEW: scoped to the armor route; shared catalog paint remains intact. */
#gearCatalogView[data-catalog-kind="armor"]>#armorCatalogIntro{background:transparent}
#gearCatalogView[data-catalog-kind="armor"]>#armorCatalogIntro>h1{color:#f4d28b}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
#gearCatalogView[data-catalog-kind="armor"]>#armorCatalogIntro>h1{background-image:linear-gradient(180deg,#fff9df 0%,#f9edc1 28%,#f0d28c 60%,#dcad57 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
#gearCatalogView[data-catalog-kind="armor"]>#armorCatalogIntro>p{color:#f5efdc}
#gearCatalogView[data-catalog-kind="armor"]>#gearCatalogBack,#gearCatalogView[data-catalog-kind="armor"]>#gearCatalogBack:is(:hover,:active,:focus){background:transparent;color:#e8c58d}
#gearCatalogView[data-catalog-kind="armor"] #armorEditionBar{position:sticky;top:var(--sync-banner-height,0px);z-index:5;display:flex;gap:6px;padding:7px;border:1px solid #B89A62;border-radius:11px;margin-bottom:16px;background:#F1E2C4}
#gearCatalogView[data-catalog-kind="armor"] #armorEditionBar [hidden]{display:none!important}
#gearCatalogView[data-catalog-kind="armor"] #armorEditionBar button{flex:1;min-width:0;min-height:44px;padding:8px 4px;background:#FAF0DA;border:1px solid #B89A62;border-radius:7px;color:#4A0002;font:inherit;font-size:14px}
#gearCatalogView[data-catalog-kind="armor"] #armorEditionBar button[aria-pressed=true]{background:#4A0002;color:#FAF0DA}
#gearCatalogView[data-catalog-kind="armor"] #gearCatalogPanel{overflow-anchor:none}
#gearCatalogView[data-catalog-kind="armor"] :is(summary,button,input,a){scroll-margin-top:calc(var(--sync-banner-height,0px) + 85px)}
#gearCatalogView[data-catalog-kind="armor"] :is(summary,button,input,a):focus-visible{outline:2px solid #4A0002;outline-offset:3px}
@media (forced-colors:active){#gearCatalogView[data-catalog-kind="armor"]>#armorCatalogIntro>h1{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}

/* WEAPON_INLINE_EDITION: only the public weapon catalog. */
#weaponsView>.weaponIntro{background:transparent}
#weaponsView>.weaponIntro>h1{color:#f4d28b}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
#weaponsView>.weaponIntro>h1{background-image:linear-gradient(180deg,#fff9df 0%,#f9edc1 28%,#f0d28c 60%,#dcad57 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
#weaponsView>.weaponIntro>p{color:#f5efdc}
#weaponsView>#weaponCatalogBack,#weaponsView>#weaponCatalogBack:is(:hover,:active,:focus){background:transparent;color:#e8c58d}
#weaponsView #weaponEditionBar{position:sticky;top:var(--sync-banner-height,0px);z-index:5;display:flex;gap:6px;padding:7px;border:1px solid #B89A62;border-radius:11px;margin-bottom:16px;background:#F1E2C4}
#weaponsView #weaponEditionBar [hidden]{display:none!important}
#weaponsView #weaponEditionBar button{flex:1;min-width:0;min-height:44px;padding:8px 4px;background:#FAF0DA;border:1px solid #B89A62;border-radius:7px;color:#4A0002;font:inherit;font-size:14px}
#weaponsView #weaponEditionBar button[aria-pressed=true]{background:#4A0002;color:#FAF0DA}
#weaponsView .weaponInlineCard{min-width:0;overflow-wrap:anywhere;scroll-margin-top:calc(var(--sync-banner-height,0px) + 85px)}
#weaponsView .weaponInlineCard>summary{list-style:none;position:relative;padding-right:32px;scroll-margin-top:calc(var(--sync-banner-height,0px) + 85px)}
#weaponsView .weaponInlineCard>summary::-webkit-details-marker{display:none}
#weaponsView .weaponInlineCard>summary::after{content:'＋';position:absolute;right:12px;top:12px;color:#4A0002}
#weaponsView .weaponInlineCard[open]>summary::after{content:'−'}
#weaponsView .weaponInlineContent{background:#FAF0DA;border:1px solid #B89A62;border-top:0;border-radius:0 0 9px 9px;padding:12px;min-width:0}
#weaponsView .weaponInlineCard:not([open])>.weaponInlineContent{display:none}
#weaponsView #weaponCatalog{overflow-anchor:none}
#weaponsView :is(summary,button,input,a):focus-visible{outline:2px solid #4A0002;outline-offset:3px}
#weaponsView :is(summary,button,input,a){scroll-margin-top:calc(var(--sync-banner-height,0px) + 85px)}
@media (forced-colors:active){#weaponsView>.weaponIntro>h1{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}



/* LEGAL_INFO_PAGE: presentation scoped to the public information screen. */
#infoView .infoCredits{min-width:0;overflow-wrap:anywhere}
#infoView .infoCredits h2{color:#4A0002;font-size:1.25rem;line-height:1.4;margin:0 0 12px}
#infoView .legalDocLink{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;box-sizing:border-box;border:1px solid #B89A62;border-radius:8px;background:#FAF0DA;font-weight:600;max-width:100%;overflow-wrap:anywhere}
#infoView .legalReferenceList{padding-inline-start:1.25rem;overflow-wrap:anywhere}
#infoView .legalReferenceList li{margin-block:10px}
#infoView .legalSection a:focus-visible{outline:2px solid #4A0002;outline-offset:3px}
