/* Arena Core 0.5.3 — Recovery UI Pack 006: hero and skills */
:root{
  --ui006-blue:#67bdff;
  --ui006-violet:#a875ff;
  --ui006-gold:#f1c76f;
  --ui006-green:#69dda4;
  --ui006-red:#ff6b80;
  --ui006-panel:linear-gradient(180deg,rgba(18,39,61,.98),rgba(7,18,31,.99));
  --ui006-line:#31516d;
}

html.ui006-hero-skills #screen-profile,
html.ui006-hero-skills #screen-skills{
  padding-bottom:calc(var(--ui002-dock-height,76px) + max(24px,env(safe-area-inset-bottom)));
}

/* Shared page navigation */
html.ui006-hero-skills #profile-tabs,
html.ui006-hero-skills #skills-tabs{
  position:sticky;
  top:8px;
  z-index:25;
  gap:7px;
  padding:7px;
  border:1px solid #294762;
  border-radius:15px;
  background:rgba(6,17,29,.93);
  box-shadow:0 12px 30px rgba(0,0,0,.28);
  backdrop-filter:blur(14px);
}
html.ui006-hero-skills #profile-tabs .chip,
html.ui006-hero-skills #skills-tabs button{
  min-height:44px;
  border-radius:11px;
  border:1px solid transparent;
  color:#9fb2c5;
  background:transparent;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
html.ui006-hero-skills #profile-tabs .chip.active,
html.ui006-hero-skills #skills-tabs button.active{
  color:#fff;
  border-color:#5e9fd0;
  background:linear-gradient(180deg,#245a84,#102d49);
  box-shadow:inset 0 0 0 1px rgba(125,202,255,.22),0 8px 20px rgba(20,94,146,.22);
}

/* Hero screen */
html.ui006-hero-skills #screen-profile .profile-layout{
  display:block;
  margin-top:10px;
}
html.ui006-hero-skills #screen-profile .profile-panel{
  width:100%;
  max-width:none;
  border-radius:18px;
  border-color:#2b4965;
  background:var(--ui006-panel);
}
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="hero"].active{
  display:grid!important;
  grid-template-columns:minmax(310px,.92fr) minmax(430px,1.45fr);
  gap:14px;
  align-items:start;
}
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="hero"] > *{
  min-width:0;
}
html.ui006-hero-skills #screen-profile .profile-head{
  grid-column:1;
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  align-items:center;
  gap:14px;
  min-height:106px;
  padding:12px;
  border:1px solid #35526c;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(71,44,119,.48),rgba(13,34,53,.72));
}
html.ui006-hero-skills #screen-profile .profile-head .avatar{
  width:84px;
  height:84px;
  border-radius:18px;
  overflow:hidden;
  color:transparent;
  background:
    linear-gradient(180deg,rgba(7,13,21,.02),rgba(7,13,21,.44)),
    url('/assets/enemies/champion.png') center 13%/cover no-repeat;
  border:1px solid #6e78a0;
  box-shadow:0 12px 28px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,255,255,.05);
}
html.ui006-hero-skills #screen-profile .profile-head h2{
  margin:0 0 5px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:26px;
}
html.ui006-hero-skills #screen-profile .profile-head .muted{font-size:13px}
html.ui006-hero-skills #screen-profile .input-row{
  grid-column:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin:0;
}
html.ui006-hero-skills #screen-profile .input-row .field{min-width:0}
html.ui006-hero-skills #screen-profile .section-title,
html.ui006-hero-skills #screen-profile #mode-select{
  grid-column:1;
}
html.ui006-hero-skills #screen-profile #mode-select.ui006-native-mode{display:none!important}

.ui006-difficulty-grid{
  grid-column:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.ui006-difficulty-option{
  min-height:106px!important;
  padding:12px 10px!important;
  border:1px solid #304c64;
  border-radius:14px;
  background:linear-gradient(180deg,#112a42,#091826);
  color:#eaf5ff;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:6px;
}
.ui006-difficulty-option .ui006-mode-icon{font-size:23px}
.ui006-difficulty-option strong{font-size:12px}
.ui006-difficulty-option small{font-size:9px;color:#91a8bd;line-height:1.35}
.ui006-difficulty-option.active{
  border-color:#69bfff;
  background:linear-gradient(180deg,#1e547e,#0d2944);
  box-shadow:inset 0 0 0 1px rgba(116,203,255,.28),0 0 24px rgba(62,151,215,.18);
}
.ui006-difficulty-option[data-mode="hard"].active{
  border-color:#ff7b70;
  background:linear-gradient(180deg,#71322e,#361718);
}
.ui006-difficulty-option[data-mode="easy"].active{
  border-color:#67d89b;
  background:linear-gradient(180deg,#215e47,#102e27);
}

html.ui006-hero-skills #screen-profile .progress-card{
  grid-column:2;
  margin:0;
  padding:13px 14px;
  min-height:86px;
  border:1px solid #31506b;
  border-radius:15px;
  background:linear-gradient(180deg,rgba(19,45,69,.88),rgba(9,24,39,.95));
}
html.ui006-hero-skills #screen-profile .progress-card.ui006-exp-card{grid-row:1}
html.ui006-hero-skills #screen-profile .progress-card.ui006-heat-card{grid-row:2}
html.ui006-hero-skills #screen-profile .progress-head{font-size:12px}
html.ui006-hero-skills #screen-profile .progress-head b{font-size:15px;color:#fff}
.ui006-heat-explainer{
  grid-column:2;
  padding:11px 13px;
  border:1px solid #6e4930;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(79,38,21,.72),rgba(37,20,17,.9));
  color:#d7b99a;
  font-size:11px;
  line-height:1.45;
}
.ui006-heat-explainer b{color:#ffd59a}

html.ui006-hero-skills #screen-profile .grid2{
  grid-column:2;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0!important;
}
html.ui006-hero-skills #screen-profile .grid2 .metric{
  min-height:74px;
  padding:11px;
  border:1px solid #2e4b64;
  border-radius:13px;
  background:rgba(7,20,33,.7);
}
html.ui006-hero-skills #screen-profile .grid2 .metric strong{font-size:18px}
html.ui006-hero-skills #screen-profile .grid2 .metric span{font-size:9px;line-height:1.3}
html.ui006-hero-skills #screen-profile #profile-buff,
html.ui006-hero-skills #screen-profile #profile-sets,
html.ui006-hero-skills #screen-profile #history-button{
  grid-column:2;
}
html.ui006-hero-skills #screen-profile #history-button{width:100%;min-height:48px}

/* Hero stats */
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"].active{
  display:grid!important;
  grid-template-columns:minmax(330px,.78fr) minmax(430px,1.22fr);
  gap:14px;
  align-items:start;
}
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"] > .section-title:first-child,
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"] > .stat-list,
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"] > .stat-source-panel{
  grid-column:1;
}
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"] > .section-title:not(:first-child),
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"] > .grid2,
html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"] > .combat-modifier-panel{
  grid-column:2;
}
html.ui006-hero-skills #free-points,
html.ui006-hero-skills #skill-free-points{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #7a5fb1;
  border-radius:999px;
  color:#f2e8ff;
  background:linear-gradient(180deg,#4d3479,#281c43);
  font-size:12px;
  box-shadow:0 0 20px rgba(165,105,255,.17);
}
html.ui006-hero-skills #screen-profile .stat-list{display:grid;gap:8px}
html.ui006-hero-skills #screen-profile .stat-row{
  grid-template-columns:minmax(0,1fr) 50px 46px;
  min-height:72px;
  padding:10px 11px;
  border:1px solid #2e4c66;
  border-radius:13px;
  background:rgba(8,22,36,.78);
}
html.ui006-hero-skills #screen-profile .stat-row .desc{font-size:10px;line-height:1.35}
html.ui006-hero-skills #screen-profile .stat-value{font-size:22px;color:#fff}
html.ui006-hero-skills #screen-profile .plus{
  min-width:44px;
  min-height:44px;
  border-radius:12px;
  background:linear-gradient(180deg,#2b79ae,#174769);
  color:#fff;
  font-size:22px;
}
html.ui006-hero-skills #screen-profile .combat-modifier-panel{
  max-height:590px;
  overflow:auto;
  border-color:#2b4963;
}
html.ui006-hero-skills #screen-profile .combat-modifier-panel summary{
  position:sticky;
  top:0;
  z-index:2;
  background:#0d2236;
}
html.ui006-hero-skills #screen-profile .combat-modifier-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

/* Skills */
html.ui006-hero-skills #screen-skills > article.card:first-child{
  padding:12px;
  border-radius:18px;
  background:var(--ui006-panel);
}
html.ui006-hero-skills #screen-skills .ui-page-head{
  align-items:center;
  gap:12px;
}
html.ui006-hero-skills #screen-skills .ui-page-head h2{
  margin:3px 0 4px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
}
html.ui006-hero-skills #screen-skills .rating-key{
  border:1px solid #6e5c33;
  border-radius:999px;
  padding:7px 10px;
  color:#ecd493;
  background:#2a2212;
  font-size:10px;
}
html.ui006-hero-skills #skills-tabs{
  margin-top:10px;
  overflow-x:auto;
  display:flex;
  scrollbar-width:none;
}
html.ui006-hero-skills #skills-tabs::-webkit-scrollbar{display:none}
html.ui006-hero-skills #skills-tabs button{flex:0 0 auto;padding:0 14px}
html.ui006-hero-skills #screen-skills .skills-layout{
  display:grid;
  grid-template-columns:minmax(300px,.78fr) minmax(0,1.62fr);
  gap:12px;
  margin-top:12px;
  align-items:start;
}
html.ui006-hero-skills #screen-skills .skill-attribute-card{
  position:sticky;
  top:78px;
  padding:12px;
  border-radius:17px;
  border-color:#31516d;
  background:var(--ui006-panel);
}
html.ui006-hero-skills #screen-skills .skill-attribute-card .section-title{
  margin:0 0 8px;
}
html.ui006-hero-skills #screen-skills .skill-attribute-list{display:grid;gap:7px}
html.ui006-hero-skills #screen-skills .skill-attribute-row{
  grid-template-columns:minmax(0,1fr) 38px 42px 44px;
  gap:6px;
  min-height:70px;
  padding:9px;
  border:1px solid #2e4c65;
  border-radius:13px;
  background:rgba(7,20,33,.76);
}
html.ui006-hero-skills #screen-skills .skill-attribute-row b{font-size:12px}
html.ui006-hero-skills #screen-skills .skill-attribute-row small{font-size:9px;line-height:1.3}
html.ui006-hero-skills #screen-skills .skill-attribute-value{
  min-width:42px;
  font-size:20px;
  color:#fff;
}
html.ui006-hero-skills #screen-skills .skill-attribute-row button{
  min-width:38px!important;
  min-height:42px!important;
  padding:0!important;
  border-radius:11px;
  font-size:20px;
}
html.ui006-hero-skills #screen-skills .stat-minus[disabled]{opacity:.28}
html.ui006-hero-skills #screen-skills .skill-point-pool{
  margin:11px 0;
  min-height:64px;
  padding:10px 12px;
  border:1px solid #7457a4;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(74,47,113,.72),rgba(24,31,55,.8));
}
html.ui006-hero-skills #screen-skills .skill-point-pool span{font-size:11px}
html.ui006-hero-skills #screen-skills .skill-point-pool strong{font-size:24px}
html.ui006-hero-skills #screen-skills main{min-width:0}
html.ui006-hero-skills #screen-skills .skill-panel{
  min-height:320px;
  border-radius:17px;
  border-color:#31516d;
  background:var(--ui006-panel);
}
html.ui006-hero-skills #mastery-content,
html.ui006-hero-skills #features-content,
html.ui006-hero-skills #techniques-content,
html.ui006-hero-skills #condition-content,
html.ui006-hero-skills #reputation-content{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
html.ui006-hero-skills #mastery-content > *,
html.ui006-hero-skills #features-content > *,
html.ui006-hero-skills #techniques-content > *,
html.ui006-hero-skills #condition-content > *,
html.ui006-hero-skills #reputation-content > *{
  min-width:0;
  border-radius:13px!important;
}
html.ui006-hero-skills #screen-skills .skills-info-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
html.ui006-hero-skills #screen-skills .skills-info-grid > div{
  min-height:92px;
  padding:12px;
  border:1px solid #2d4a63;
  border-radius:13px;
  background:rgba(7,20,33,.72);
  font-size:11px;
  line-height:1.45;
}
.ui006-state-legend{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 10px;
}
.ui006-state-legend span{
  padding:6px 9px;
  border-radius:999px;
  border:1px solid #314d65;
  background:#0b1e31;
  color:#9fb4c8;
  font-size:9px;
}
.ui006-state-legend .available{border-color:#41755e;color:#83ddb0}
.ui006-state-legend .learned{border-color:#6556a1;color:#c4aaff}
.ui006-state-legend .locked{opacity:.68}

@media(max-width:980px){
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="hero"].active,
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"].active{
    grid-template-columns:minmax(270px,.82fr) minmax(360px,1.18fr);
  }
  html.ui006-hero-skills #screen-profile .combat-modifier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.ui006-hero-skills #screen-skills .skills-layout{grid-template-columns:280px minmax(0,1fr)}
}

@media(max-width:760px){
  html.ui006-hero-skills #profile-tabs,
  html.ui006-hero-skills #skills-tabs{top:4px}
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="hero"].active,
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"].active,
  html.ui006-hero-skills #screen-skills .skills-layout{
    display:block!important;
  }
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="hero"] > *,
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"] > *{
    grid-column:auto!important;
    grid-row:auto!important;
    margin-bottom:9px!important;
  }
  html.ui006-hero-skills #screen-profile .profile-head{grid-template-columns:68px minmax(0,1fr);min-height:88px}
  html.ui006-hero-skills #screen-profile .profile-head .avatar{width:68px;height:68px}
  .ui006-difficulty-grid{grid-template-columns:1fr}
  .ui006-difficulty-option{min-height:72px!important;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center}
  .ui006-difficulty-option small{grid-column:2}
  html.ui006-hero-skills #screen-profile .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.ui006-hero-skills #screen-profile .combat-modifier-panel{max-height:none;overflow:visible}
  html.ui006-hero-skills #screen-profile .combat-modifier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.ui006-hero-skills #screen-skills .skill-attribute-card{position:relative;top:auto;margin-bottom:10px}
  html.ui006-hero-skills #mastery-content,
  html.ui006-hero-skills #features-content,
  html.ui006-hero-skills #techniques-content,
  html.ui006-hero-skills #condition-content,
  html.ui006-hero-skills #reputation-content{grid-template-columns:1fr}
  html.ui006-hero-skills #screen-skills .skills-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(orientation:landscape) and (max-height:520px) and (max-width:1100px){
  html.ui006-hero-skills #screen-profile,
  html.ui006-hero-skills #screen-skills{
    padding-top:4px!important;
    padding-bottom:20px!important;
  }
  html.ui006-hero-skills #profile-tabs,
  html.ui006-hero-skills #skills-tabs{position:relative;top:auto}
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="hero"].active,
  html.ui006-hero-skills #screen-profile .profile-panel[data-profile-panel="stats"].active{
    grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr)!important;
  }
  html.ui006-hero-skills #screen-skills .skills-layout{grid-template-columns:270px minmax(420px,1fr)!important;display:grid!important}
  html.ui006-hero-skills #screen-skills .skill-attribute-card{position:relative;top:auto;max-height:330px;overflow:auto}
  html.ui006-hero-skills #screen-skills .skill-panel{min-height:280px}
}
