/* The Gilded Griffin: a preparation room, with the hero visible beside the loadout. */
body.in-tavern .vignette{background:linear-gradient(90deg,#1d100f35 20%,#180d0966);opacity:1}
body.in-tavern header{padding-top:19px;padding-bottom:15px;background:linear-gradient(#180e0acc,transparent)}
body.in-tavern .header-right{color:#d8b890}body.in-tavern #pause{display:none}
#overlay:has(#build:not([hidden])){padding:78px 3% 22px;overflow:hidden}
#build.tavern-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:4%;width:100%;max-width:1380px;height:calc(100dvh - 100px);max-height:none;padding:0;margin:auto;border:0;background:none;box-shadow:none;overflow:visible;text-align:left;pointer-events:none}
.tavern-hero{display:flex;flex-direction:column;justify-content:space-between;min-height:0;pointer-events:none}
.tavern-sign{padding:5px 10px;text-shadow:0 3px 18px #120805}.tavern-sign .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:12px;color:#edc993}
.tavern-sign h2{font:normal clamp(32px,3.7vw,57px)/.97 Georgia,serif;letter-spacing:-1.5px}.tavern-sign h2 em{color:#f1c97b}.tavern-sign p{font-size:12px;color:#dfc6a1;margin:12px 0}
.parchment{width:90%;max-width:370px;align-self:center;position:relative;padding:20px 23px;background:linear-gradient(120deg,#e9d2a0,#cda96f);color:#432d1e;border:1px solid #f0d69e;border-radius:3px 12px 4px 8px;box-shadow:0 9px 28px #12080577, inset 0 0 25px #87522726;transform:rotate(-1deg);pointer-events:auto}
.parchment:before{content:'✦';position:absolute;right:22px;top:14px;color:#8b4a31;font-size:27px}.paper-label,.equipped-label{font-size:8px;letter-spacing:1.5px;color:#77502e;font-weight:800}.parchment h3{font:normal 29px Georgia,serif!important;margin:6px 0 10px!important;color:#422a1b!important;letter-spacing:0!important}.hero-stats{display:flex;gap:7px;flex-wrap:wrap}.hero-stats span{border:1px solid #94704466;padding:4px 7px;font-size:10px;font-weight:700}.parchment p{font-size:11px;line-height:1.55;color:#583c27;margin:10px 0 13px}.equipped-label{border-top:1px solid #a17b4c66;padding-top:10px;margin-bottom:5px}.parchment strong{font:normal 17px Georgia,serif}
.tavern-board{pointer-events:auto;min-height:0;display:flex;flex-direction:column;border:1px solid #a97642;border-radius:10px;padding:23px;background:repeating-linear-gradient(0deg,#4428190a 0px,#4428190a 59px,#d5a26613 60px,#170f0b29 63px),linear-gradient(125deg,#4a3024f5,#251b17f5);box-shadow:0 15px 55px #10090699,inset 0 0 0 5px #1f140e77,inset 0 0 0 6px #ae78452b}
.board-heading{flex-shrink:0;border-bottom:1px solid #b98b5544;padding-bottom:15px;margin-bottom:15px}.board-heading .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:10px;color:#d8ad6f}#build .board-heading h2{font:normal clamp(26px,2.8vw,40px)/1.1 Georgia,serif;letter-spacing:-.8px;color:#f0ddbb}.board-heading h2 em{color:#edc77d}#build .build-note{font-size:11px;color:#c8ae90;margin:9px 0 0;line-height:1.5}
.tavern-options{flex:1;min-height:0;overflow-y:auto;padding:1px 6px 4px 1px;scrollbar-width:thin;scrollbar-color:#b38a54 #251b17}
#build #classCards,#build #weaponCards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#build .choice{background:linear-gradient(130deg,#6c4a3033,#1a130f55);border:1px solid #a37b4a55;border-radius:5px;color:#efdfc1;box-shadow:inset 0 1px #e2c18a0d;transition:background .15s,border-color .15s}
#build #classCards .choice{min-height:115px;padding:14px 12px;gap:7px}#build #weaponCards .choice{min-height:132px;padding:13px 12px;gap:8px}
#build .choice:hover{background:#79563955;border-color:#c99d62}#build .choice.selected{border-color:#ecc47c;background:linear-gradient(135deg,#97733b55,#68502b44);box-shadow:inset 0 0 0 1px #edc77d55}
#build .choice strong{font-family:Georgia,serif;font-size:17px;font-weight:normal;line-height:1.15}#build .choice small{font-size:10px;color:#c6b49b;line-height:1.5}#build .choice-icon{color:#dabb81}#build .weapon-stats{font-size:8px;color:#dabb81;letter-spacing:.4px}
.tavern-actions{flex-shrink:0;border-top:1px solid #b98b5544;margin-top:13px;padding-top:4px;text-align:center}#buildSummary{margin:10px 0 12px;font-size:10px;color:#e3c692}.build-actions{gap:8px}.tavern-actions .primary{min-width:0;flex:1;padding:16px 14px;font-size:10px;letter-spacing:1px}.tavern-actions .secondary{background:#241a12;border-color:#8d6943;color:#d1b795;font-size:8px;padding:11px}.tavern-actions>small{display:block;font-size:9px;color:#9b8267;margin-top:11px}
@media(max-width:1000px){.tavern-board{padding:18px}.parchment{padding:16px}.tavern-sign .eyebrow{max-width:180px;line-height:1.6}#build #classCards .choice{min-height:122px}#build .choice strong{font-size:15px}.tavern-sign h2{font-size:39px}}
@media(max-width:849px){#overlay:has(#build:not([hidden])){padding:73px 3% 16px;overflow:auto}#build.tavern-layout{grid-template-columns:1fr;height:auto;gap:16px;max-width:620px}.tavern-hero{min-height:270px;flex-direction:row;align-items:flex-start;gap:14px}.tavern-sign{max-width:45%}.tavern-sign h2{font-size:35px}.parchment{align-self:flex-end;width:52%;padding:15px;transform:rotate(1deg)}.parchment h3{font-size:24px!important}.tavern-board{min-height:510px;max-height:calc(100dvh - 90px)}#build .choice strong{font-size:17px}.tavern-sign p{font-size:10px}.tavern-sign .eyebrow{font-size:7px}.hero-stats span{font-size:9px;padding:3px 5px}.parchment:before{display:none}}
@media(max-width:440px){.tavern-hero{min-height:300px}.tavern-sign h2{font-size:29px}.parchment{width:56%;padding:12px}.parchment p{font-size:10px}.tavern-board{padding:16px}#build #classCards,#build #weaponCards{grid-template-columns:1fr}#build #classCards .choice{min-height:98px}#build #weaponCards .choice{min-height:114px}}

#chest{max-width:850px;max-height:calc(100dvh - 120px);overflow:auto;background:linear-gradient(135deg,#493222f5,#231710f5);border-color:#ad8248}#chest h2{font-size:30px}#rewardCards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}#rewardCards .card{background:#493425;border-color:#987241;min-height:190px}#rewardCards .price{color:#edc77d}#treasureBox{position:relative;width:135px;height:100px;margin:0 auto 25px;filter:drop-shadow(0 0 12px #ffbf3b33)}.chest-base{position:absolute;bottom:0;width:135px;height:65px;background:repeating-linear-gradient(90deg,#a5793c 0 10px,#50301c 10px 62px,#a5793c 62px 72px);border:3px solid #b6914c;border-radius:5px}.chest-base span{position:absolute;left:49px;top:13px;padding:3px 8px;background:#e4bd70;color:#50301c;border-radius:3px}.chest-lid{position:absolute;top:0;width:135px;height:42px;background:linear-gradient(#ab814b,#5c3822);border:3px solid #caa05d;border-radius:23px 23px 3px 3px;transform-origin:bottom;transition:transform .5s}.opened .chest-lid{transform:translateY(-15px) rotate(-12deg)}#treasureBox.opened{filter:drop-shadow(0 0 25px #ffcb6288)}#relicList{display:none;position:absolute;bottom:60px;left:4%;right:4%;font-size:9px;color:#d4c6a5;pointer-events:none}.playing #relicList{display:block}@media(max-width:600px){#rewardCards{grid-template-columns:1fr}#rewardCards .card{min-height:130px}#chest h2{font-size:24px}}

#rewardCards:has(>.card:only-child){grid-template-columns:1fr;max-width:420px;margin:20px auto}


/* Four-world campaign */
.wave small{display:block;color:#dabafa;font-size:11px;letter-spacing:1px;margin-bottom:8px}#keyCount{display:block;color:#edc77d;font-size:10px;margin:5px 0}#bossHud{position:fixed;z-index:8;top:210px;left:50%;transform:translateX(-50%);width:min(360px,65vw);text-align:center;color:#ffe3b0;font-size:13px;text-shadow:0 2px 5px #000}#bossHud .track{height:8px;background:#24122f;margin-top:7px}#bossBar{height:100%;background:linear-gradient(90deg,#a64de1,#f6b776);transition:width .1s}.portal-sigil{width:100px;height:125px;border:4px solid #c08cfc;border-radius:50%;display:grid;place-items:center;font-size:60px;color:#ffe6a8;box-shadow:0 0 45px #a565da88,inset 0 0 35px #a565da88;margin:15px auto 25px}#portalDestination{color:#edc77d!important;font-size:14px!important}@media(max-width:600px){.wave small{font-size:9px;max-width:130px}#bossHud{top:215px}#keyCount{font-size:8px}}

/* Woven cloth, parchment and wardrobe */
.wardrobe-label{font-size:9px;letter-spacing:1.4px;margin:14px 0 7px;color:#765638}#skinCards{display:flex;gap:5px;flex-wrap:wrap}.skin-choice{padding:7px 8px;border:1px solid #9e8056;background:#dfcca9;color:#493522;font-size:10px;cursor:pointer}.skin-choice.selected{background:#684727;color:#ffe4ad;border-color:#5e3e21}.parchment{background-image:repeating-linear-gradient(2deg,transparent 0 3px,#6d452508 3px 4px),radial-gradient(ellipse at 30% 20%,#fff3d477,transparent 65%)}.tavern-board{background-image:repeating-linear-gradient(0deg,transparent 0 5px,#ffd09003 5px 6px)}.chest-base,.chest-lid{background-image:repeating-linear-gradient(2deg,transparent 0 6px,#1e0d0838 7px 8px)}.choice:hover,.card:hover{transform:translateY(-3px);transition:transform .16s ease}.portal-sigil{animation:portalBreathe 3s ease-in-out infinite}@keyframes portalBreathe{50%{box-shadow:0 0 65px #a565daaa,inset 0 0 50px #a565daaa}}@media(prefers-reduced-motion:reduce){.portal-sigil{animation:none}.choice:hover,.card:hover{transform:none}}
.parchment{background-color:#dec08a}.tavern-board{background-color:#302119f5}.chest-base,.chest-lid{background-color:#704224}
