/* v42 — centered home, small footer links, exclusive/stat split, stronger section headings, fixed calculator presentation */

/* default landing page */
body[data-view='home'] .app-layout{
  width:min(1660px,calc(100% - 24px))!important;
}
body[data-view='home'] .sidebar{
  display:flex!important;
  flex-direction:column!important;
  height:calc(100vh - 28px)!important;
  gap:12px!important;
}
body[data-view='home'] .side-footer{
  margin-top:auto!important;
  min-height:0!important;
  height:auto!important;
  align-self:stretch!important;
}
body[data-view='home'] .main{
  min-height:calc(100vh - 36px);
  align-content:center!important;
}
body[data-view='home'] #homeView{
  width:min(1120px,100%);
  margin:0 auto!important;
  display:grid!important;
  justify-items:center!important;
}
body[data-view='home'] .home-v40-hero,
body[data-view='home'] .home-v40-grid{
  width:100%;
}
body[data-view='home'] .home-v40-copy,
body[data-view='home'] .home-v40-hero,
body[data-view='home'] .home-v40-grid,
body[data-view='home'] .home-v40-card{
  text-align:center!important;
}
body[data-view='home'] .home-v40-card{grid-template-columns:64px minmax(0,1fr) 52px!important}
body[data-view='home'] .home-v40-card div{justify-self:center}
body[data-view='home'] .home-v40-btn,
body[data-view='home'] .home-v42-mini-btn{
  border-radius:999px!important;
}
.home-v42-credits{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:14px;
}
.home-v42-mini-btn,
.side-footer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  font-size:.8rem;
  font-weight:800;
  color:#fff5ec;
  background:linear-gradient(180deg,rgba(33,23,43,.96),rgba(16,12,23,.96));
  border:1px solid rgba(255,164,78,.18);
  box-shadow:0 8px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05);
}
.home-v42-mini-btn.is-static,
.side-footer-btn.is-static{cursor:default}
.side-footer{display:grid!important;gap:10px!important;align-content:start}
.side-footer strong{color:#fff7f1}
.side-footer-links{display:flex;gap:8px;flex-wrap:wrap}
.side-footer-links .side-footer-btn{font-size:.76rem;min-height:32px;padding-inline:12px}

/* section headings / labels */
.rarity-section-exclusive .rarity-section-head h2,
.rarity-section-exclusive .catalog-label{
  background:linear-gradient(180deg,#feddff 0%,#de22ff 24%,#9823ff 58%,#edc2ff 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 5px rgba(222,34,255,.28));
}
.rarity-section-stat .rarity-section-head h2,
.rarity-section-stat .catalog-label{
  background:linear-gradient(180deg,#fff582 0%,#ffce78 24%,#ff8e0c 45%,#ff0f3b 68%,#ffffff 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 5px rgba(255,142,12,.22));
}
.rarity-section-head h2{
  font-family:'Lilita One','Arial Rounded MT Bold',system-ui,sans-serif!important;
  -webkit-text-stroke:1px rgba(20,16,25,.65);
}
#catalogLabel{color:#f8ecff!important}
.rarity-section-stat[data-rarity='mythical']{--section-color:#ff8e0c!important}
.rarity-section-exclusive[data-rarity='exclusive']{--section-color:#930fff!important}

/* stronger rarity badge text only; border stays from previous version */
.value-card[data-rarity='exclusive'] .rarity-text,
.detail-modal[data-rarity='exclusive'] .rarity-text{
  background:linear-gradient(180deg,#ffffff 0%,#feddff 20%,#de22ff 48%,#9823ff 74%,#edc2ff 100%)!important;
  -webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;
  filter:brightness(1.82) saturate(1.4) drop-shadow(0 0 6px rgba(222,34,255,.42))!important;
}
.value-card[data-rarity='secret'] .rarity-text,
.detail-modal[data-rarity='secret'] .rarity-text{
  background:linear-gradient(180deg,#ffffff 0%,#f4f4f4 18%,#8f8f8f 38%,#ffffff 56%,#707070 76%,#ffffff 100%)!important;
  -webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;
  filter:brightness(1.72) drop-shadow(0 0 6px rgba(255,255,255,.35))!important;
}
.value-card[data-rarity='mythical'] .rarity-text,
.detail-modal[data-rarity='mythical'] .rarity-text{
  background:linear-gradient(180deg,#fff582 0%,#ffda78 15%,#ff8e0c 38%,#ff5632 56%,#ff0f3b 74%,#ffffff 100%)!important;
  -webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;
  filter:brightness(1.72) saturate(1.18) drop-shadow(0 0 6px rgba(255,142,12,.4))!important;
}

/* calculator */
body[data-view='calculator'] .app-layout{width:min(1760px,calc(100% - 18px))!important}
.calculator-v40-panel{padding:26px!important}
.trade-v40-grid{grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr)!important;gap:20px!important;align-items:stretch}
.trade-v40-side{min-height:760px!important;padding:26px!important;border-radius:28px!important}
.trade-v40-items{grid-template-columns:repeat(auto-fit,minmax(220px,220px))!important;gap:14px!important;align-content:start!important;min-height:580px!important}
.trade-item-v40,.trade-add-v40{width:220px!important;min-height:280px!important;border-radius:26px!important}
.trade-add-v40{background:linear-gradient(180deg,rgba(24,18,26,.94),rgba(14,11,18,.98))!important;border:2px dashed rgba(255,162,76,.34)!important}
.trade-add-v40 span{width:72px!important;height:72px!important;border-radius:999px!important;font-size:3rem!important}
.trade-v40-diff{padding:26px 18px!important;border-radius:28px!important}
.trade-v42-diff-value{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}
.trade-v42-diff-value img{width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(255,176,77,.16))}
.trade-v42-diff-value strong{margin-top:0!important}
.trade-v40-diff small{font-size:.98rem!important}
.trade-v40-total img,.trade-ticket-input img{width:18px!important;height:18px!important}
.trade-ticket-input{gap:10px!important}
.trade-ticket-input input{font-size:1rem!important}

/* better compact controls on values / calculator */
body[data-view='values'] .appearance-tools,
body[data-view='calculator'] .appearance-tools{width:min(175px,100%)!important}
body[data-view='values'] .side-footer,
body[data-view='calculator'] .side-footer{padding:12px 14px!important}
body[data-view='values'] .side-footer-links,
body[data-view='calculator'] .side-footer-links{display:none!important}

/* keep values view nice */
body[data-view='values'] .catalog-card{padding:18px!important}
.page-tools-v40{align-items:center}
.home-corner-btn{border-radius:16px!important;min-height:48px!important;padding-inline:18px!important}

@media (max-width: 1200px){
  body[data-view='home'] .sidebar{height:auto!important}
  .trade-v40-grid{grid-template-columns:1fr!important}
  .trade-v40-center{order:-1!important}
  .trade-v40-diff{max-width:360px!important;margin-inline:auto}
}
