/* Whole words, including long creature and boss names. */
#enemy-name,.scene-label h2,.bestiary-card h3{hyphens:none!important;-webkit-hyphens:none!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;text-wrap:balance}
/* A deliberate header for the attribute row replaces the empty left half. */
.battle-layout{align-items:start}
.attribute-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;width:100%;margin-bottom:10px}
.attribute-toolbar>strong{display:none;font:22px/1.2 'CK Titles',Georgia;color:#d4dfc8}
.battle-upgrades .attribute-toolbar #buy-amount{margin:0;align-self:auto;width:100%;display:flex;flex:none}
.battle-upgrades .attribute-toolbar #buy-amount button{flex:1}
@media(max-width:1179px){.attribute-toolbar>strong{display:block}.battle-upgrades .attribute-toolbar #buy-amount{width:180px}.battle-upgrades{gap:4px}.attribute-toolbar{margin:4px 0 8px}}
@media(max-width:599px){.battle-upgrades .attribute-toolbar #buy-amount{width:164px}.attribute-toolbar>strong{font-size:20px}.attribute-toolbar{gap:8px}}
/* World visitor is independent of the arena and page scroll. */
body>#bonus-critter{position:fixed!important;z-index:2000;left:-80px;right:auto;width:68px;height:68px;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:radial-gradient(ellipse,#8fcf912e,transparent 70%);overflow:visible;animation:visitor-world-flight 16s linear forwards}
body>#bonus-critter.reverse{left:auto;right:-80px;animation-name:visitor-world-return}
body>#bonus-critter>.ck-sheet-portrait{position:static;right:auto;top:auto;zoom:.85;flex:none;pointer-events:none}
body>#bonus-critter>span:last-child:not(.ck-sheet-portrait){position:absolute;top:0;right:0;width:20px;height:20px;display:grid;place-items:center;pointer-events:none}
body>#bonus-critter:focus-visible{outline:2px solid #c6a761;border-radius:50%}
@keyframes visitor-world-flight{from{transform:translateX(0) translateY(0)}50%{transform:translateX(calc(50vw + 80px)) translateY(-16px)}to{transform:translateX(calc(100vw + 160px)) translateY(0)}}
@keyframes visitor-world-return{from{transform:translateX(0) translateY(0)}50%{transform:translateX(calc(-50vw - 80px)) translateY(16px)}to{transform:translateX(calc(-100vw - 160px)) translateY(0)}}
/* Collection entry and hatchery share the approved stone/gold palette. */
.pets-section>.section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;align-items:center}
.pets-section>.section-heading>div{grid-column:1;grid-row:1}.pets-section>.section-heading .hint{grid-column:1;grid-row:2;text-align:left;font-size:11px;color:#a9b5aa}
#hatch-pet.egg-open{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:12px;margin:0;padding:12px 18px;min-height:68px;border:1px solid #c6a76199;border-radius:3px;background:linear-gradient(125deg,#294332,#14241b);color:#e8e9dc;box-shadow:inset 0 0 18px #8fcf9109;text-align:left}
#hatch-pet>img{flex:none;width:40px;height:40px;filter:drop-shadow(0 0 8px #6ebe7838)}
#hatch-pet>span{display:flex;flex-direction:column;gap:3px;min-width:0}#hatch-pet strong{font:22px/1.1 'CK Titles',Georgia;color:#e8e9dc}#hatch-pet small{font-size:10px;color:#a9b5aa}
#hatch-pet .egg-stock{padding-left:15px;margin-left:6px;border-left:1px solid #c6a76155;align-items:center}#hatch-pet #egg-badge{background:none;border-radius:0;padding:0;font:25px/1 'CK Titles',Georgia;color:#d6c78e}
#hatch-pet:hover{border-color:#a9d693;background:linear-gradient(125deg,#36553b,#1b3022)}#hatch-pet:focus-visible{outline:2px solid #8fcf91;outline-offset:3px}
#egg-dialog.hatchery-dialog{width:min(640px,calc(100% - 24px))!important}
#egg-dialog .hatchery-heading{text-align:center;padding:5px 24px 0}#egg-dialog .hatchery-heading .eyebrow{font-size:9px;color:#c6a761;letter-spacing:1.5px}
#egg-dialog #egg-title{margin:8px 0 16px!important;padding:0;font:38px/1.15 'CK Titles',Georgia!important;text-align:center}
#egg-dialog .pet-hatch-panel{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 14px;margin:0;border:1px solid #c6a76144;border-radius:3px;background:radial-gradient(ellipse at 50% 25%,#4faf7527,transparent 65%),#132119}
#egg-dialog .egg-art{position:relative;display:grid;place-items:center;grid-column:auto;grid-row:auto;width:126px;height:128px;margin:0;animation:none;background:radial-gradient(ellipse,#8fcf9117,transparent 70%);border:0;font-size:0}
#egg-dialog .egg-art:after{content:'';position:absolute;bottom:5px;left:18px;right:18px;height:5px;border:1px solid #c6a76166;border-radius:50%;box-shadow:0 0 15px #8fcf9140}
#egg-dialog .egg-art img{width:100px;height:100px;filter:drop-shadow(0 0 14px #8fcf9130)}
#egg-dialog .egg-balance{display:flex;align-items:baseline;justify-content:center;gap:8px}#egg-dialog .egg-balance strong{font:34px/1 'CK Titles',Georgia;color:#e8e9dc}#egg-dialog .egg-balance span{font-size:12px;color:#a9b5aa}
#egg-dialog .hatch-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin-top:6px}
#egg-dialog .hatch-buttons button{min-width:0;min-height:46px;padding:10px 6px;margin:0;border:1px solid #c6a76188;border-radius:3px;background:#264532;color:#e8e9dc;font:600 13px/1.4 'CK Text',sans-serif;box-shadow:none}
#egg-dialog .hatch-buttons button:disabled{background:#1d2721;color:#819283;border-color:#c6a76130;opacity:1}#egg-dialog .hatch-buttons button:not(:disabled):hover{background:#365a3d;border-color:#8fcf91}
#egg-dialog .gacha-guarantees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 0;padding:0;background:none;border:0}
#egg-dialog .gacha-guarantees>div{padding:12px;background:#17251d;border:1px solid #c6a76144;min-width:0}
#egg-dialog .gacha-guarantees span{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#cdd7c8;line-height:1.4}
#egg-dialog .gacha-guarantees b{white-space:nowrap;font:16px 'CK Titles',Georgia;color:#c3a2dc}#egg-dialog .legend-guarantee b{color:#d4be80}
#egg-dialog .pity-track{height:5px;margin-top:10px;background:#0b140e;border:0;border-radius:0}#egg-dialog .pity-track i{background:#9e7db5}#egg-dialog .pity-track.legendary i{background:#c6a761}
#egg-dialog .hatchery-pity{display:block;text-align:center;margin:10px 0;color:#a9b5aa;font-size:10px;line-height:1.5}
.hatchery-rates{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;font-size:10px;color:#91a593;margin:14px 0}.hatchery-rates b{font-weight:500;color:#c5d0c0;margin-left:3px}
#egg-dialog .pet-welcome{display:flex;align-items:center;gap:8px;padding:10px 12px;margin:12px 0 0;border:1px solid #c6a76133;background:#1c2b20;font-size:10px;line-height:1.5}#egg-dialog .pet-welcome>span{flex:1}#egg-dialog .pet-welcome button{width:28px;height:28px;flex:none;padding:4px;background:none;border:0;color:#c6a761}
#egg-dialog .pet-reveal{display:grid;grid-template-columns:84px minmax(0,1fr) 28px;align-items:center;gap:14px;padding:16px 12px;margin:16px 0 0;border:1px solid #c6a76199;background:#1e3325}
#egg-dialog .pet-reveal strong{font:26px/1.2 'CK Titles',Georgia;display:block;margin-top:6px}#egg-dialog .pet-reveal small{font-size:10px}#egg-dialog .pet-reveal .ck-sheet-portrait{zoom:1.1}
#egg-dialog .pet-batch-result{margin-top:14px;max-height:260px;overflow:auto;grid-template-columns:repeat(3,minmax(0,1fr))}#egg-dialog .pet-batch-result:empty{display:none}
@media(max-width:599px){
 #hatch-pet.egg-open{gap:8px;padding:10px 12px;min-height:60px}#hatch-pet>img{width:30px;height:34px}#hatch-pet strong{font-size:19px}#hatch-pet small{font-size:9px}#hatch-pet .egg-stock{padding-left:9px;margin-left:0}#hatch-pet #egg-badge{font-size:22px}
 #egg-dialog #egg-title{font-size:30px!important}#egg-dialog .hatchery-heading{padding-inline:15px}#egg-dialog .hatchery-heading .eyebrow{font-size:8px;letter-spacing:.8px}
 #egg-dialog .pet-hatch-panel{padding:14px 10px;gap:10px}#egg-dialog .egg-art{height:108px;width:110px}#egg-dialog .egg-art img{width:86px;height:86px}
 #egg-dialog .egg-balance strong{font-size:30px}#egg-dialog .egg-balance span{font-size:11px}#egg-dialog .hatch-buttons{gap:6px}#egg-dialog .hatch-buttons button{font-size:11px;padding:8px 4px;min-height:44px}
 #egg-dialog .gacha-guarantees{gap:8px}#egg-dialog .gacha-guarantees>div{padding:10px 8px}#egg-dialog .gacha-guarantees span{font-size:10px;flex-wrap:wrap;gap:4px}#egg-dialog .gacha-guarantees b{font-size:15px}
 #egg-dialog .pet-reveal{grid-template-columns:64px minmax(0,1fr) 24px;gap:8px;padding:12px 8px}#egg-dialog .pet-reveal strong{font-size:22px}#egg-dialog .pet-batch-result{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:359px){#hatch-pet.egg-open{gap:6px;padding:9px}#hatch-pet strong{font-size:17px}#hatch-pet>img{width:25px;height:30px}.pets-section>.section-heading{gap:4px 8px}.attribute-toolbar>strong{font-size:18px}.battle-upgrades .attribute-toolbar #buy-amount{width:152px}}
@media(prefers-reduced-motion:reduce){body>#bonus-critter,body>#bonus-critter.reverse{animation:none;left:auto;right:18px}}
