/* v0.7: shared face portraits, grounded formation and unclipped gear growth. */
.v7-resource{display:flex;align-items:center;justify-content:space-between;gap:6px;line-height:1!important;font-size:24px!important;white-space:nowrap;z-index:8!important}
.v7-resource>b{font-weight:400;margin-left:auto;line-height:1}.v7-resource>span{line-height:1}.v7-gift-currency{display:flex;align-items:center;justify-content:center;line-height:1!important;white-space:nowrap}.v7-gift-currency>b{font-weight:400}
.v6-menu .v3-card .face,.modal .charcard .face{object-fit:cover!important;object-position:50% 42%!important;background:#25394f!important}
.v6-menu .v5-target-face{object-fit:cover!important;object-position:center!important}
.v6-menu .v5-stage-slot .slot-face,.v6-menu .v5-party-mini>img,.v6-lobby-avatar{object-fit:cover!important;object-position:center!important}
.v6-menu .v5-party-unit .party-sprite{width:calc(216px * var(--unit-scale,1))!important;height:calc(239px * var(--unit-scale,1))!important;left:calc((225px - 216px * var(--unit-scale,1))/2)!important;bottom:96px!important;transform:none}
.v6-menu .v5-party-unit[data-character="4"] .party-sprite{transform:scaleX(-1)}
.party-cursor{width:calc(130px * var(--unit-scale,1))!important;height:calc(150px * var(--unit-scale,1))!important;object-fit:contain!important}.party-cursor[data-character="4"]{transform:scaleX(-1)}
.v6-menu .v6-map-node{display:grid;place-items:center;padding:0!important}
.v6-menu .v6-map-node>img{position:static!important;inset:auto!important;display:block;width:54px!important;height:54px!important;margin:0!important;object-fit:contain!important}
.v7-equipment-detail{display:flex;flex-direction:column;gap:10px;color:#513a34;z-index:5!important;overflow:visible!important}
.v7-equipment-body{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:0 14px 10px 5px;scrollbar-width:auto;scrollbar-color:#bba260 #d8c5a5;font-size:21px;line-height:1.35}
.v7-item-stage{height:171px;position:relative;display:flex;justify-content:center;align-items:center;isolation:isolate}
.v7-item-stage>img{width:190px;height:171px;object-fit:contain;filter:drop-shadow(0 5px 5px #674c3b33)}
.v7-equipment-body h1{font-family:ArcanaJua,sans-serif;font-size:30px;text-align:center;margin:4px 0 7px;line-height:1.2;font-weight:400;color:#4a342e}
.v7-equipment-body h2{font-family:ArcanaJua,sans-serif;font-size:25px;font-weight:400;margin:17px 0 7px;border-bottom:1px solid #9e805b66;padding-bottom:7px}
.v7-rarity{text-align:center;color:#96702c;font-size:25px;margin-bottom:12px}.v7-equipment-body .data-line{font-size:22px;padding:6px 0;min-height:0;gap:8px}.v7-equipment-body .data-line b{font-weight:400}.v7-equipment-body p{font-size:19px;margin:9px 0 0;line-height:1.6}
.v7-owned-materials{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;margin-top:12px}.v7-owned-materials .material{font-size:19px!important;gap:3px}.v7-owned-materials .material img{width:32px;height:32px;object-fit:contain}
.v7-equipment-actions{flex-shrink:0;display:flex;flex-direction:column;gap:7px;padding:0 1px}.v7-equipment-actions>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}.v7-equipment-actions .button{width:100%!important;height:55px!important;min-height:0!important;margin:0!important;min-width:0!important;padding:0!important;font-size:24px!important}.v7-equipment-actions>.button{height:48px!important}.v7-equipment-actions .button>img{width:100%;height:100%;object-fit:fill}
.v7-equipment-empty{text-align:center;line-height:1.6;margin:auto;font-size:25px}
.v7-gear-category{position:absolute;z-index:7;background:none;border:0;border-radius:25px;cursor:pointer}.v7-gear-category.active{box-shadow:inset 0 0 22px 5px #ffe9a388,0 0 14px #ffe098bb;outline:3px solid #ffe8a4;outline-offset:-9px;background:radial-gradient(ellipse,#ffeec233,transparent 70%)}
.v7-upgrade-glow{position:absolute;z-index:3;pointer-events:none;width:240px;height:240px;left:50%;top:50%;transform:translate(-50%,-50%);background-image:url('https://arcana-pony-media.pages.dev/shared/objects/b029b5e4477d21109952dd8fb1f9814813cc570a1b1581461478d0de502cca46.webp');background-size:400% 300%;background-repeat:no-repeat}
.v7-upgraded>img{animation:v7-item-pulse 1s ease-out}@keyframes v7-item-pulse{0%,100%{filter:drop-shadow(0 5px 5px #674c3b33);transform:scale(1)}35%{filter:brightness(1.4) drop-shadow(0 0 17px #ffecab);transform:scale(1.07)}}
.v7-summon-wallet{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:19px!important;line-height:1;white-space:nowrap;color:#594537;z-index:6!important}
.v7-summon-wallet .material{font-size:20px!important;gap:5px!important}.v7-summon-wallet img{width:35px;height:35px;object-fit:contain}.v7-exchange-wallet{display:flex;align-items:center;gap:6px}.v7-exchange-wallet b{font-size:23px;font-weight:400}.v7-ticket-wallet{display:flex;align-items:center}
.v7-lobby-foreground{z-index:3!important;pointer-events:none;overflow:hidden!important;border-radius:38px}.v7-lobby-foreground>img{position:absolute;width:1672px!important;height:941px!important;max-width:none!important;object-fit:fill!important}
.v7-lobby-avatar{z-index:7!important;pointer-events:none}.v5-page-lobby .hot{z-index:5!important}.v5-page-lobby .character-illustration{z-index:1!important}.v5-page-lobby .ui-text,.v5-page-lobby .currency{z-index:6!important}
#encounter-announcement{position:absolute;inset:0;pointer-events:none;z-index:35;overflow:hidden;display:grid;place-items:center}
.v7-encounter{position:absolute;top:330px;left:450px;width:772px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:4px;opacity:1;color:#ffc5bd;text-shadow:0 3px 1px #5b1f30,0 0 18px #cf354a,0 0 40px #290d25}
.v7-encounter strong{font-family:Georgia,serif;font-style:italic;font-size:108px;font-weight:bold;line-height:1.08;letter-spacing:6px;-webkit-text-stroke:1px #e49786}
.v7-encounter span{font:26px Georgia,serif;letter-spacing:5px;color:#f7d3ca}.v7-encounter.animated{animation:v7-encounter 1.45s cubic-bezier(.2,.7,.4,1) both}@keyframes v7-encounter{0%{opacity:0;transform:translateX(-50px) scale(.93)}10%{opacity:1;transform:translateX(0) scale(1)}79%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(1350px)}}

/* The old button atlas includes an unrelated strip above each label: clip to the button cell. */
.v7-equipment-actions>div .button{overflow:hidden!important;height:62px!important}
.v7-equipment-actions>div .button>img{position:absolute!important;left:0;top:-44%;height:144%!important;width:100%!important;object-fit:fill!important}
.v7-equipment-actions>.button{height:55px!important}
.v7-equipment-actions>.button>span{padding:0!important;font-size:24px}
/* Reversed columns stay on one row, including teams with empty middle positions. */
.combat-hud>.combat-card{grid-row:1}
