#heroCollection {display:none;}
#v60Home.heroes-view > :not(#heroCollection) {display:none !important;}
#v60Home.heroes-view > #heroCollection {display:block;}
#heroCollection {max-width:540px;margin:0 auto;padding:18px 8px 24px;color:#fff1c2;}
.heroes-heading {display:flex;align-items:center;gap:14px;padding:16px;background:linear-gradient(130deg,#184f86,#182e59);border:2px solid #dbb257;border-radius:14px;box-shadow:0 4px #091b36;}
.heroes-heading > span {font-size:46px;}
.heroes-heading h1 {margin:0;font-size:28px;text-shadow:0 3px #0d1b38;}
.heroes-heading p {margin:5px 0 0;font-size:12px;color:#bce5ff;}
.heroes-intro {font-size:13px;text-align:center;line-height:1.5;margin:20px 8px;color:#cde9fb;}
.heroes-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 11px;}
.hero-empty-slot {position:relative;aspect-ratio:.78;min-width:0;padding:12px 5px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:linear-gradient(145deg,#245c80,#102e50);border:2px solid #6392ae;border-radius:12px;box-shadow:inset 0 0 0 2px #142640,0 4px #071c35;}
.hero-slot-number {position:absolute;top:7px;left:9px;color:#81a8c3;font-size:10px;font-weight:800;}
.hero-slot-crest {display:grid;place-items:center;width:51%;aspect-ratio:.85;background:linear-gradient(#407ba0,#1d4567);clip-path:polygon(50% 0,95% 20%,90% 76%,50% 100%,10% 76%,5% 20%);color:#90bfd8;font-size:33px;font-weight:500;}
.hero-empty-slot strong {font-size:clamp(9px,2.5vw,12px);color:#afccde;text-align:center;}
@media(max-width:340px) {.heroes-grid {gap:12px 7px;}.hero-empty-slot {gap:8px;}}

.heroes-grid[hidden],.hero-profile[hidden] {display:none;}
.hero-owned-card {position:relative;box-sizing:border-box;width:100%;aspect-ratio:.78;padding:10px 3px 8px;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;border:3px solid #f4a0e8;border-radius:12px;background:radial-gradient(ellipse at 45% 30%,#ef9ee4,#8d459f 60%,#462756);box-shadow:inset 0 0 0 2px #772577,0 4px #3c1949;color:white;cursor:pointer;}
.hero-owned-card img {width:100%;height:77%;object-fit:contain;min-height:0;filter:drop-shadow(0 2px 2px #4d235288);}
.hero-owned-card strong {font-size:12px;text-shadow:0 2px #4d2352;}
.hero-owned-card small {font-size:10px;color:#ffe3fb;margin-top:3px;}
.hero-rarity {position:absolute;top:5px;left:5px;font-size:8px;font-weight:900;color:#fff0c7;}
.hero-owned-card:focus-visible,.hero-profile-back:focus-visible {outline:3px solid #ffe889;outline-offset:3px;}
.hero-profile {margin-top:16px;padding:12px;border:2px solid #cf7eda;border-radius:16px;background:linear-gradient(#ad68bf,#5e4180 54%,#3a5274);box-shadow:0 4px #261e46;}
.hero-profile-back {padding:7px 10px;border:1px solid #d0e5ff;border-radius:7px;background:#285380;color:white;font-weight:800;cursor:pointer;}
.hero-profile-title {text-align:center;}
.hero-profile-title h2 {padding:9px;margin:14px 0 4px;border-radius:8px;background:linear-gradient(#d444c8,#8b209c);font-size:25px;color:white;text-shadow:0 2px #541c63;}
.hero-profile-title p {font-weight:900;font-size:13px;color:#ffe5fc;}
.hero-profile-art {position:relative;aspect-ratio:1.1;display:flex;align-items:center;justify-content:center;border-radius:12px;background:radial-gradient(ellipse at 35% 40%,#ffd6ec99,transparent 65%);}
.hero-profile-art img {width:95%;height:100%;object-fit:contain;}
.hero-profile-art > span {position:absolute;bottom:4px;left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid #e8c3fa;border-radius:7px;padding:5px 12px;background:#62438b;color:#fff;font-size:13px;font-weight:900;}
.hero-stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 0;}
.hero-stats > div {padding:12px 7px;border:2px solid #94b6d4;border-radius:9px;background:#cedae7;color:#23405b;text-align:center;}
.hero-stats dt {min-height:32px;font-size:12px;font-weight:900;}
.hero-stats dd {margin:7px 0 0;color:white;font-size:20px;font-weight:900;text-shadow:0 1px 2px #24415e;}

.hero-profile-tabs {display:flex;gap:5px;margin-top:14px;}
.hero-profile-tabs button {flex:1;border:1px solid #97c4e6;border-radius:8px 8px 0 0;padding:10px 6px;background:#30577c;color:#e3effb;font-weight:900;cursor:pointer;}
.hero-profile-tabs button[aria-selected="true"] {background:#d5e8f0;color:#28415c;border-bottom-color:#d5e8f0;}
.hero-ability {padding:14px;border-radius:0 0 10px 10px;background:#d5e8f0;color:#28415c;}
.hero-ability[hidden],.hero-stats[hidden] {display:none;}
.hero-ability h3 {display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;font-size:20px;}
.hero-ability h3 small {padding:5px 9px;border-radius:7px;background:#237cc7;color:white;font-size:12px;}
.hero-ability p {font-size:13px;line-height:1.55;font-weight:750;margin:0 0 15px;}
.hero-ability .hero-ability-immunity {padding-top:12px;border-top:1px solid #a7c1ce;margin-bottom:0;}

.hero-equip {display:block;width:100%;margin:15px 0 0;padding:12px;border:2px solid #b8ff8f;border-radius:9px;background:linear-gradient(#44965c,#286540);color:white;font-size:15px;font-weight:900;cursor:pointer;}
#croquePower {display:flex;align-items:center;justify-content:center;gap:8px;width:180px;margin:6px auto;padding:4px 10px;border:2px solid #df99ef;border-radius:12px;background:linear-gradient(#82539b,#423364);color:white;font-size:11px;font-weight:900;}
#croquePower[hidden] {display:none;}#croquePower img {width:36px;height:36px;object-fit:contain;}#croquePower small {white-space:nowrap;font-size:10px;}#croquePower:disabled {opacity:.65;}

.combat-roster {width:100%;min-width:0;}
.combat-roster.has-hero {display:grid;grid-template-columns:minmax(0,1fr) clamp(57px,16vw,76px);align-items:center;gap:5px;}
.combat-roster > #deck {min-width:0;box-sizing:border-box;}
body.v60-battle .combat-roster.has-hero > #deck {padding-left:5px !important;padding-right:5px !important;gap:5px !important;}
.combat-roster > #croquePower {
  position:relative;display:grid;place-items:center;box-sizing:border-box;
  width:100%;height:auto;aspect-ratio:1;min-height:0;margin:0;padding:0;
  border:0;border-radius:50%;box-shadow:0 2px 4px #211c3280;
  background:#36222b;
  cursor:pointer;overflow:visible;opacity:1;
}
.combat-roster > #croquePower[hidden] {display:none;}
.combat-roster > #croquePower .croque-charge-ring {position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;}
.croque-charge-ring circle {fill:none;stroke-width:8;}
.croque-charge-track {stroke:#261b27;}
.croque-charge-progress {stroke:#ffcb12;stroke-linecap:round;transform:rotate(90deg);transform-origin:50% 50%;}
.combat-roster > #croquePower .croque-portrait-frame {position:absolute;inset:12%;border:3px solid #9294ff;border-radius:50%;overflow:hidden;box-sizing:border-box;background:#31203f;box-shadow:0 0 0 1px #292133;pointer-events:none;}
.croque-portrait {position:absolute;inset:0;width:100%;height:100%;}
.croque-portrait-recharging {filter:grayscale(1);}
.croque-portrait-reveal {-webkit-mask-image:conic-gradient(from 180deg,#000 calc(var(--hero-recharge,0)*1turn),transparent 0);mask-image:conic-gradient(from 180deg,#000 calc(var(--hero-recharge,0)*1turn),transparent 0);}
.croque-portrait-ready {opacity:0;}
.hero-ready .croque-portrait-ready {opacity:1;}
.hero-ready .croque-portrait-recharging {opacity:0;}
.hero-ready .croque-portrait-reveal {opacity:0;}
.combat-roster > #croquePower .croque-charge-pointer {position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:13px;height:11px;background:#9294ff;clip-path:polygon(0 0,100% 0,50% 100%);pointer-events:none;}
.combat-roster > #croquePower > small {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:900 16px system-ui;color:white;text-shadow:0 2px 3px #271b39;pointer-events:none;}
.combat-roster > #croquePower .croque-food-total {position:absolute;top:17%;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:1px;pointer-events:none;white-space:nowrap;}
.combat-roster > #croquePower .croque-food-icon {display:block;width:14px;height:13px;object-fit:contain;filter:drop-shadow(0 1px 1px #4b2a22);}
.combat-roster > #croquePower .croque-absorbed {color:white;font:900 clamp(11px,3.2vw,15px)/1 system-ui;font-variant-numeric:tabular-nums;-webkit-text-stroke:1.3px #2a2230;paint-order:stroke fill;text-shadow:0 1px 1px #24182b;}
.combat-roster > #croquePower > .croque-damage-bonus {position:absolute;bottom:15%;left:50%;transform:translateX(-50%);padding:1px 3px;border-radius:5px;background:#382446b8;color:#fff1a0;font:900 9px/1.15 system-ui;white-space:nowrap;pointer-events:none;}
.combat-roster > #croquePower:disabled {cursor:default;opacity:1;}
.combat-roster > #croquePower.hero-ready {box-shadow:0 0 12px #ff9a2966,0 2px 4px #211c3280;}
.combat-roster > #croquePower.hero-ready::before {content:'';position:absolute;inset:-1px;border-radius:50%;box-shadow:0 0 8px 2px #ff8a2466;pointer-events:none;animation:croque-ready-glow 1.2s ease-in-out infinite alternate;}
.combat-roster > #croquePower.hero-ready::after {content:'';position:absolute;left:12%;bottom:8%;width:3px;height:3px;border-radius:50%;background:#ffbf39;box-shadow:42px -33px #ffb12e,3px -43px #ffd76a,33px 0 #ffb12e;pointer-events:none;animation:croque-ready-embers 1.4s ease-out infinite;}
@keyframes croque-ready-glow {to {opacity:.45;}}
@keyframes croque-ready-embers {0% {opacity:0;transform:translateY(2px);}30% {opacity:.85;}100% {opacity:0;transform:translateY(-6px);}}
@media (prefers-reduced-motion:reduce) {.combat-roster > #croquePower.hero-ready::before,.combat-roster > #croquePower.hero-ready::after {animation:none;}.combat-roster > #croquePower.hero-ready::after {display:none;}}
.combat-roster > #croquePower:focus-visible {outline:2px solid #fff3a2;outline-offset:3px;}

/* The action medallion belongs exclusively to the live combat deck. */
body:not(.v60-battle) #croquePower {display:none !important;}
body:not(.v60-battle) .combat-roster {display:block;}

.hero-candy-info {display:flex;align-items:center;gap:9px;margin:14px 0;color:#fff0cc;font-size:12px;line-height:1.4;}
.hero-candy-info img {flex:0 0 34px;width:34px;height:34px;object-fit:contain;}

/* Stat list inspired by the hero reference screen. */
.hero-profile .hero-stats {display:block;background:#d9e9ef;padding:12px 10px;border-radius:0 0 11px 11px;margin-top:0;}
.hero-profile .hero-stats[hidden] {display:none;}
.hero-profile .hero-stats > div {position:relative;display:grid;grid-template-columns:45px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:68px;box-sizing:border-box;padding:12px 10px;margin:9px 0;border:2px solid #9daec3;border-radius:10px;background:#c3cddd;text-align:left;}
.hero-profile .hero-stats dt {grid-column:2;grid-row:1;min-height:0;font-size:13px;line-height:1.2;color:#293d54;font-weight:950;}
.hero-profile .hero-stats dd {grid-column:2;grid-row:2;margin-top:5px;color:white;font-size:17px;line-height:1.1;font-weight:900;text-shadow:0 1px 1px #364359,1px 0 1px #364359;}
.croque-stat-icon {grid-column:1;grid-row:1 / 3;display:block;width:45px;height:45px;background-image:url('../assets/croque_stats_icones.png');background-size:200% 300%;background-repeat:no-repeat;}
.croque-stat-icon[data-icon="0"] {background-position:0 0;}
.croque-stat-icon[data-icon="1"] {background-position:100% 0;}
.croque-stat-icon[data-icon="2"] {background-position:0 50%;}
.croque-stat-icon[data-icon="3"] {background-position:100% 50%;}
.croque-stat-icon[data-icon="4"] {background-position:0 100%;}
.croque-stat-icon[data-icon="5"] {background-position:100% 100%;}
.croque-stat-tier {position:absolute;left:-2px;top:-4px;border:1px solid #58b9f3;border-radius:3px;background:linear-gradient(#3187ce,#175894);padding:1px 5px;color:white;font-size:9px;font-weight:900;text-shadow:0 1px #163754;}
.croque-stat-max {position:absolute;bottom:12px;right:12px;font-size:14px;font-weight:1000;color:#ffd01b;text-shadow:0 1px 1px #9b431a;}
.hero-profile .hero-stats > .croque-stat-heading {display:flex;justify-content:space-between;min-height:44px;padding:3px 2px 12px;margin:0 0 15px;background:transparent;border:0;border-radius:0;border-bottom:1px solid #bdcfd9;}
.croque-stat-heading h3 {margin:0;font-size:20px;color:#263a4d;font-weight:1000;}
.croque-stat-heading > span {padding:8px 10px;border:2px solid #2678bb;border-radius:8px;background:linear-gradient(#32aaf5,#1d72cc);box-shadow:0 2px #205182;color:white;font-weight:900;font-size:12px;}
