body#module-gheehnestpetbattle-game #wrapper{padding:0!important}
body#module-gheehnestpetbattle-game #wrapper>.container,body#module-gheehnestpetbattle-game #content-wrapper{max-width:none!important;width:100%;padding:0!important}
body#module-gheehnestpetbattle-game #wrapper>.container>.row{margin:0!important}
body#module-gheehnestpetbattle-game .breadcrumb,body#module-gheehnestpetbattle-game .page-header,body#module-gheehnestpetbattle-game .page-footer,body#module-gheehnestpetbattle-game #content-wrapper>.elementor{display:none}
body#module-gheehnestpetbattle-game #header{border-bottom:0!important}
#gh-game-host{width:100%;margin:0;padding:0;border:0;background:transparent}
body.gh-game-active{overflow:hidden}
body.gh-game-active #header,body.gh-game-active #footer,body.gh-game-active #notifications,body.gh-game-active .gh-discount-bar,body.gh-game-active #back-top,body.gh-game-active .back-to-top{display:none!important}
body.gh-game-active #gh-game-host{position:fixed;inset:0;z-index:9990;height:100dvh}
body.gh-game-active #gh-game-frame{height:100dvh!important}

/* Shared, fully scoped dialog styles in the game and its native shop host. */
#gh-pet-skill-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:calc(100% - 28px);max-width:480px;max-height:calc(100dvh - 32px);padding:22px;border:1px solid #b79a63;border-radius:16px;background:linear-gradient(135deg,#2c2035,#191222);color:#f5eff9;box-shadow:0 24px 90px #000a;overflow:auto;overscroll-behavior:contain;font:14px/1.55 Inter,'Segoe UI',sans-serif;text-align:left}
#gh-pet-skill-dialog::backdrop{background:#0a0614c9;backdrop-filter:blur(4px)}
#gh-pet-skill-dialog .gh-skill-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #d8b96732}
#gh-pet-skill-dialog .gh-skill-heading span{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#ffd166}
#gh-pet-skill-dialog h2{font:700 23px/1.25 Inter,'Segoe UI',sans-serif;color:#f5eff9;margin:6px 0 0}
#gh-pet-skill-dialog button{font:600 14px/1.4 Inter,'Segoe UI',sans-serif;min-height:44px;padding:10px 14px;border:1px solid #d8b96760;border-radius:8px;background:#33253e;color:#ffdf87;cursor:pointer}
#gh-pet-skill-dialog button:focus-visible{outline:3px solid #85dcec;outline-offset:3px}
#gh-pet-skill-dialog .gh-skill-close{width:44px;flex:0 0 44px;padding:0;font-size:27px;line-height:42px}
#gh-pet-skill-dialog .pet-skill-panel{position:static;width:auto;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#gh-pet-skill-dialog .pet-skill-row{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:start;gap:13px;padding:16px 0;margin:0;border-bottom:1px solid #d8b96724}
#gh-pet-skill-dialog .pet-skill-row:last-child{border-bottom:0;padding-bottom:0}
#gh-pet-skill-dialog .ability-art{display:block;width:54px;height:54px;min-height:54px;overflow:hidden;border:1px solid #aa875666;border-radius:8px}
#gh-pet-skill-dialog .ability-art svg{display:block;width:100%;height:100%}
#gh-pet-skill-dialog .pet-skill-row b{display:block;color:#ffda75;font-size:15px;line-height:1.35;margin:0 0 5px}
#gh-pet-skill-dialog .pet-skill-row small{display:block;color:#cdbfd9;font-size:12px;line-height:1.5;margin:3px 0 0}
#gh-pet-skill-dialog [data-lead]{width:100%;margin-top:18px;background:linear-gradient(110deg,#ffdf7b,#edae25);color:#271926;border:0}
@media(max-width:359px){#gh-pet-skill-dialog{padding:16px}#gh-pet-skill-dialog h2{font-size:20px}#gh-pet-skill-dialog .pet-skill-row{grid-template-columns:46px minmax(0,1fr);gap:10px}#gh-pet-skill-dialog .ability-art{width:46px;height:46px;min-height:46px}}

#gh-pet-skill-dialog .skill-intro{font-size:12px;line-height:1.6;color:#cdbfd9;margin:16px 0}
#gh-pet-skill-dialog .skill-slot{margin:18px 0 0}
#gh-pet-skill-dialog .skill-slot h3{font:700 12px/1.5 Inter,'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:1px;color:#d8bc85;margin:0;padding-bottom:6px;border-bottom:1px solid #d8b96732}
#gh-pet-skill-dialog .is-locked .ability-art{filter:grayscale(.85);opacity:.65}
#gh-pet-skill-dialog .pet-skill-row button{margin-top:9px;font-size:12px;min-height:36px;padding:6px 12px}
#gh-pet-skill-dialog button[aria-pressed=true]{background:#e8bc5d;color:#211526}
#gh-pet-skill-dialog button:disabled{cursor:default;opacity:.65}
#gh-pet-skill-dialog .skill-feedback{font-size:12px;color:#9ce4be;margin:16px 0 0}

/* Match the iframe dialog: keep the heading visible when skills scroll. */
#gh-pet-skill-dialog .gh-skill-heading{position:sticky;top:-22px;z-index:3;margin:-22px -22px 0;padding:22px;background:#2c2035;box-shadow:0 5px 12px #19122280}
#gh-pet-skill-dialog .gh-skill-heading>div{min-width:0}
#gh-pet-skill-dialog h2,#gh-pet-skill-dialog .pet-skill-row b{overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto}
#gh-pet-skill-dialog .matchup-enemies .portrait{display:block;width:64px;height:64px;overflow:hidden}
#gh-pet-skill-dialog .matchup-enemies .portrait>svg{display:block;width:100%;height:100%;padding:0;margin:0}
@media(max-width:359px){#gh-pet-skill-dialog .gh-skill-heading{top:-16px;margin:-16px -16px 0;padding:16px}}

/* Passive type abilities in the shared pet dialog. */
#gh-pet-skill-dialog .pet-passive,.switch-preview .pet-passive{margin:14px 0;padding:11px 12px;border:1px solid #ad8e5355;border-radius:8px;background:#f0cb7008;text-align:left}
#gh-pet-skill-dialog .pet-passive>h3,.switch-preview .pet-passive>h3{margin:0 0 5px;color:#e5c782;font:700 11px/1.4 Inter,'Segoe UI',sans-serif;letter-spacing:.03em}
#gh-pet-skill-dialog .pet-passive>p,.switch-preview .pet-passive>p{margin:0;color:#d7cbe1;font:12px/1.5 Inter,'Segoe UI',sans-serif;overflow-wrap:anywhere}
@media(orientation:landscape) and (max-height:500px) and (pointer:coarse){.switch-preview .pet-passive{margin:7px 0;padding:7px 8px}.switch-preview .pet-passive>p{font-size:11px;line-height:1.35}}
