
:root{
  --bg:#040b12;
  --bg2:#07101a;
  --bg3:#0b1825;
  --panel:#0a1621;
  --panel2:#0f2030;
  --panel3:#13273a;
  --panel4:#183149;
  --text:#e9f6ff;
  --muted:#88a4ba;
  --accent:#59f0ff;
  --accent-strong:#04d9ff;
  --accent2:#8affcb;
  --accent3:#ffd35f;
  --danger:#ff6f8c;
  --border:rgba(93,182,228,.22);
  --border-strong:rgba(93,182,228,.42);
  --shadow:0 18px 48px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.03);
  --shadow-soft:0 10px 26px rgba(0,0,0,.28);
  --radius:24px;
  --radius-md:18px;
  --radius-sm:14px;
  --corner-size:18px;
  --grid-line:rgba(88,152,196,.08);
  --scan:rgba(255,255,255,.02);
  --chip-bg:rgba(16,31,46,.82);
  --chip-bg-strong:rgba(18,37,56,.96);
  --chip-border:rgba(106,198,246,.28);
  --surface-highlight:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  --mouse-glow:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(89,240,255,.14), transparent 38%);
  --home-list-width:440px;
}

:root[data-theme="light"]{
  --bg:#dae9f5;
  --bg2:#edf7ff;
  --bg3:#cfe2f1;
  --panel:#f6fbff;
  --panel2:#ffffff;
  --panel3:#eaf5ff;
  --panel4:#e0f0ff;
  --text:#0d2333;
  --muted:#547086;
  --accent:#0096d6;
  --accent-strong:#006fbe;
  --accent2:#03a979;
  --accent3:#b98600;
  --danger:#d84160;
  --border:rgba(60,118,162,.18);
  --border-strong:rgba(60,118,162,.34);
  --shadow:0 18px 42px rgba(13,42,67,.11), inset 0 1px 0 rgba(255,255,255,.72);
  --shadow-soft:0 10px 22px rgba(13,42,67,.08);
  --grid-line:rgba(48,91,126,.07);
  --scan:rgba(13,42,67,.014);
  --chip-bg:rgba(241,247,252,.92);
  --chip-bg-strong:#ffffff;
  --chip-border:rgba(60,118,162,.22);
  --surface-highlight:linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.4));
  --mouse-glow:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,150,214,.10), transparent 36%);
}

*{box-sizing:border-box}
html,body{min-height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(1000px 600px at 0% 0%, rgba(89,240,255,.18), transparent 60%),
    radial-gradient(900px 540px at 100% 0%, rgba(138,255,203,.10), transparent 60%),
    radial-gradient(800px 520px at 50% 100%, rgba(89,120,255,.08), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  position:relative;
  overflow-x:hidden;
}
body::before,
body::after,
.screenFx{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
}
body::before{
  background:
    repeating-linear-gradient(0deg, transparent 0 44px, var(--grid-line) 44px 45px),
    repeating-linear-gradient(90deg, transparent 0 44px, var(--grid-line) 44px 45px);
  opacity:.55;
}
body::after{
  background:
    linear-gradient(180deg, transparent 0%, var(--scan) 48%, transparent 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.016) 0 2px, transparent 2px 4px);
  mix-blend-mode:screen;
  opacity:.42;
}
.screenFx{
  background:
    radial-gradient(circle at 18% 18%, rgba(89,240,255,.07), transparent 20%),
    radial-gradient(circle at 80% 28%, rgba(138,255,203,.05), transparent 18%),
    radial-gradient(circle at 48% 72%, rgba(255,211,95,.04), transparent 24%);
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,textarea{font:inherit}

.container{
  position:relative;
  z-index:1;
  width:min(1460px, calc(100% - 38px));
  margin:0 auto;
  padding:26px 0 42px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.hudHeader,
.panel,
.quickDock{
  position:relative;
  border:1px solid var(--border);
  background:
    var(--mouse-glow),
    linear-gradient(135deg, rgba(89,240,255,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  overflow:hidden;
}
.hudHeader{
  border-radius:28px;
  padding:18px 20px;
}
.panel{
  border-radius:26px;
  padding:18px;
}
.panel::before,.panel::after,.hudHeader::before,.hudHeader::after{
  content:"";
  position:absolute;
  width:var(--corner-size);
  height:var(--corner-size);
  border-color:rgba(89,240,255,.72);
  opacity:.9;
  pointer-events:none;
}
.panel::before,.hudHeader::before{top:12px;left:12px;border-top:2px solid;border-left:2px solid}
.panel::after,.hudHeader::after{right:12px;bottom:12px;border-right:2px solid;border-bottom:2px solid}
.panelFx,
.hudHeader::selection{pointer-events:none}
.panelFx{
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(89,240,255,.10) 15%, transparent 32%),
    linear-gradient(0deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  opacity:.42;
  mask:linear-gradient(180deg, #000, transparent 90%);
}

.brandWrap{min-width:250px}
.brandWrap.compact{min-width:200px}
.brandKicker{
  font-size:11px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--accent2);
  margin-bottom:8px;
}
.brand{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 16px;
  border-radius:15px;
  border:1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.015)),
    linear-gradient(90deg, rgba(89,240,255,.12), rgba(89,240,255,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.18);
  font-size:30px;
  line-height:1;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--text);
}
.brand a{display:block}
.brandSub{
  margin-top:8px;
  max-width:460px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.headerTools{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.searchWrap{
  position:relative;
  flex:1;
  min-width:280px;
  max-width:620px;
}
.search{
  width:100%;
  height:58px;
  padding:0 18px 0 56px;
  border-radius:18px;
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
  color:var(--text);
  outline:none;
  box-shadow:var(--shadow-soft);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.search::placeholder{color:color-mix(in srgb, var(--muted) 90%, transparent)}
.search:focus{
  border-color:rgba(89,240,255,.56);
  box-shadow:0 0 0 4px rgba(89,240,255,.12), var(--shadow-soft);
  transform:translateY(-1px);
}
.searchIcon{
  position:absolute;
  left:20px;
  top:17px;
  font-size:18px;
  color:var(--accent);
  z-index:2;
}
.searchHint{
  margin-top:8px;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.suggest{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% - 4px);
  z-index:20;
  display:none;
  padding:8px;
  border:1px solid var(--border-strong);
  border-radius:18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)),
    linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow:0 18px 34px rgba(0,0,0,.32);
}
.srow{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  transition:.2s ease;
}
.srow:hover{
  border-color:var(--border);
  background:rgba(89,240,255,.08);
  transform:translateX(4px);
}
.simg{
  width:36px;
  height:36px;
  object-fit:contain;
  image-rendering:auto;
}

.themeToggle,.btn,.badge,.dataChip,.miniBadge,.linkedPetPill,.petFlag,.commandIndex,.tileIcon,.metricBox,.statCard,.bonusCard,.emptyState,.drop,.recipeItem,.entityLink,.petRow,.infoTile,.infoCard,.storyCard,.evoCard,.candyCard,.dockLink,.commandItem{
  position:relative;
  overflow:hidden;
}
.themeToggle::after,.btn::after,.badge::after,.dataChip::after,.miniBadge::after,.linkedPetPill::after,.petFlag::after,.commandIndex::after,.tileIcon::after,.metricBox::after,.statCard::after,.bonusCard::after,.emptyState::after,.drop::after,.recipeItem::after,.entityLink::after,.petRow::after,.infoTile::after,.infoCard::after,.storyCard::after,.evoCard::after,.candyCard::after,.dockLink::after,.commandItem::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 52%, transparent 100%);
  opacity:0;
  transform:translateX(-140%);
  transition:opacity .26s ease, transform .6s ease;
  pointer-events:none;
}
.themeToggle:hover::after,.btn:hover::after,.badge:hover::after,.dataChip:hover::after,.miniBadge:hover::after,.linkedPetPill:hover::after,.petFlag:hover::after,.commandIndex:hover::after,.tileIcon:hover::after,.metricBox:hover::after,.statCard:hover::after,.bonusCard:hover::after,.emptyState:hover::after,.drop:hover::after,.recipeItem:hover::after,.entityLink:hover::after,.petRow:hover::after,.infoTile:hover::after,.infoCard:hover::after,.storyCard:hover::after,.evoCard:hover::after,.candyCard:hover::after,.dockLink:hover::after,.commandItem:hover::after{
  opacity:1;
  transform:translateX(140%);
}

.themeToggle,.btn,.badge,.dockLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
  color:var(--text);
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.themeToggle:hover,.btn:hover,.dockLink:hover{
  transform:translateY(-2px);
  border-color:var(--border-strong);
  box-shadow:0 0 0 1px rgba(89,240,255,.08), 0 18px 24px rgba(0,0,0,.24);
}
.themeToggleIcon{font-size:18px;color:var(--accent)}
.badge{
  padding:0 18px;
  font-weight:800;
  letter-spacing:.04em;
}
.badgePrimary{
  border-color:rgba(89,240,255,.38);
  background:
    linear-gradient(180deg, rgba(89,240,255,.18), rgba(89,240,255,.06)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
}

.grid{display:grid;gap:18px}
.homeGrid{grid-template-columns:minmax(380px, var(--home-list-width)) minmax(0, 1fr)}

.sectionTitle,.infoCardHead,.subSectionTitle{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.sectionTitle{margin-bottom:16px}
.sectionTitle h2,.subSectionTitle h3,.tileHead h3,.infoCard h3,.heroTitleLarge,.petTitleMain{
  margin:0;
  font-weight:900;
  letter-spacing:.015em;
}
.sectionTitle h2{font-size:24px}
.subSectionTitle{margin:10px 0 14px}
.subSectionTitle h3{font-size:18px}
.eyebrow,.small,.statLabel,.metricLabel,.subHeaderLine,.brandKicker{
  text-transform:uppercase;
  letter-spacing:.16em;
}
.eyebrow{
  display:block;
  margin-bottom:6px;
  color:var(--accent2);
  font-size:11px;
  font-weight:800;
}
.small{font-size:11px;color:var(--muted)}

.panelList{min-height:840px;display:flex;flex-direction:column}
.list{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:14px;
  min-height:600px;
  max-height:calc(100vh - 210px);
  padding-right:6px;
  overflow:auto;
}
.list::-webkit-scrollbar{width:10px}
.list::-webkit-scrollbar-thumb{background:rgba(89,240,255,.22);border-radius:999px}
.list::-webkit-scrollbar-track{background:transparent}
.petRow{
  display:grid;
  grid-template-columns:84px minmax(0,1fr) 28px;
  align-items:center;
  gap:16px;
  min-height:108px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(89,240,255,.06), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    linear-gradient(180deg, rgba(10,22,33,.92), rgba(13,27,40,.92));
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  flex:0 0 auto;
}
:root[data-theme="light"] .petRow{
  background:
    linear-gradient(135deg, rgba(0,150,214,.06), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62)),
    linear-gradient(180deg, rgba(234,245,255,.9), rgba(246,251,255,.92));
}
.petRow:hover{
  transform:translateX(6px);
  border-color:var(--border-strong);
  box-shadow:0 0 0 1px rgba(89,240,255,.08), 0 18px 28px rgba(0,0,0,.26);
}
.petThumbWrap{
  display:grid;
  place-items:center;
  width:84px;
  height:84px;
  border-radius:20px;
  border:1px solid var(--border);
  background:
    radial-gradient(circle at 50% 35%, rgba(89,240,255,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(180deg, var(--panel4), var(--panel2));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.pimg,.mimg,.iimg,.pillThumb{object-fit:contain}
.pimg{width:62px;height:62px;image-rendering:auto}
.petRowBody{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}
.petRowTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:0;
}
.petName{
  font-size:22px;
  font-weight:800;
  line-height:1.08;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.petMetaRow,.dataChipRow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.dataChip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--chip-border);
  background:var(--chip-bg);
  color:var(--text);
  font-size:12px;
  font-weight:700;
}
.dataChipGhost{opacity:.86}
.dataChipRate{color:var(--accent3)}
.dataChipRowWrap{row-gap:10px}
.petFlag,.miniBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  border:1px solid var(--border);
  background:rgba(89,240,255,.08);
}
.petFlagEvolution,.miniBadgeAccent{
  color:var(--accent2);
  border-color:rgba(138,255,203,.28);
  background:rgba(138,255,203,.09);
}
.petRowArrow{
  justify-self:end;
  align-self:center;
  color:var(--accent);
  font-size:22px;
  font-weight:900;
}
.emptyState{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:96px;
  padding:18px;
  border:1px dashed var(--border-strong);
  border-radius:18px;
  background:rgba(89,240,255,.05);
  color:var(--muted);
  text-align:center;
}
.emptyStateList{margin-top:12px}

.panelDashboard{display:flex;flex-direction:column;gap:16px}
.heroBlock{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);
  gap:18px;
}
.heroCopy{
  padding:22px;
  border-radius:22px;
  border:1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(89,240,255,.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
  min-height:240px;
}
.heroTitleLarge{font-size:clamp(32px, 3vw, 46px);line-height:1.02;max-width:10ch}
.heroLead,.storyCard p,.commandItem p,.infoTile p,.itemNote,.conditionVal{line-height:1.7;color:var(--muted)}
.heroLead{max-width:68ch;font-size:15px;margin:14px 0 0}
.statsRail{display:grid;gap:12px}
.statCard,.metricBox{
  padding:18px;
  border-radius:20px;
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
}
.statCardAccent{
  border-color:rgba(89,240,255,.42);
  background:
    linear-gradient(135deg, rgba(89,240,255,.18), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
}
.statLabel,.metricLabel,.statFoot,.subHeaderLine{
  font-size:11px;
  color:var(--muted);
}
.statValue,.metricValue{
  display:block;
  margin:8px 0 6px;
  font-size:40px;
  line-height:1;
  font-weight:900;
}
.statFoot{letter-spacing:.08em}

.infoGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.infoGridHome{margin-top:2px}
.infoTile,.commandPanel,.storyCard,.infoCard,.evoCard,.candyCard{
  border-radius:22px;
  border:1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(89,240,255,.06), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
  box-shadow:var(--shadow-soft);
}
.infoTile{padding:18px;min-height:124px}
.tileHead{display:flex;gap:14px}
.tileIcon,.commandIndex{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(89,240,255,.18), rgba(89,240,255,.05)),
    linear-gradient(180deg, var(--panel4), var(--panel2));
  color:var(--accent);
  font-weight:900;
}
.commandPanel{padding:18px}
.commandList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.commandItem{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(89,240,255,.05);
}
.commandItem p{margin:0}

.page-detail .container{width:min(1520px, calc(100% - 38px))}
.panelHero{padding:24px}
.petHeroGrid{display:grid;grid-template-columns:minmax(280px, 360px) minmax(0,1fr) 280px;gap:18px;align-items:stretch}
.portraitFrame{
  position:relative;
  min-height:410px;
  border-radius:24px;
  border:1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 30%, rgba(89,240,255,.12), transparent 55%),
    radial-gradient(circle at 50% 65%, rgba(89,240,255,.10), transparent 60%),
    linear-gradient(135deg, rgba(89,240,255,.09), transparent 34%),
    linear-gradient(180deg, #08111a, #102335 58%, #0b1927);
  box-shadow:var(--shadow-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  isolation:isolate;
}
:root[data-theme="light"] .portraitFrame{
  background:
    radial-gradient(circle at 50% 30%, rgba(0,150,214,.12), transparent 55%),
    radial-gradient(circle at 50% 65%, rgba(0,150,214,.08), transparent 60%),
    linear-gradient(135deg, rgba(0,150,214,.08), transparent 34%),
    linear-gradient(180deg, #eff8ff, #eaf5ff 58%, #dbeefe);
}
.portraitFrame::before{
  content:"";
  position:absolute;
  inset:14px;
  border-radius:20px;
  border:1px solid rgba(89,240,255,.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(89,240,255,.06), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(89,240,255,.06) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(89,240,255,.06) 22px 23px);
}
.portraitMeta{
  position:absolute;
  left:16px;
  top:16px;
  display:flex;
  gap:8px;
  z-index:2;
}
.portraitScan{
  position:absolute;
  inset:18px;
  border-radius:18px;
  overflow:hidden;
}
.portraitScan::before{
  content:"";
  position:absolute;
  inset:-40% 0 auto 0;
  height:45%;
  background:linear-gradient(180deg, transparent, rgba(89,240,255,.12), transparent);
  animation:scan 7s linear infinite;
}
@keyframes scan{0%{transform:translateY(-20%)}100%{transform:translateY(270%)}}
.mimgBig{
  position:relative;
  z-index:1;
  max-width:100%;
  max-height:360px;
  object-fit:contain;
  filter:drop-shadow(0 20px 26px rgba(0,0,0,.30));
}
.portraitGlow{
  position:absolute;
  inset:auto 18% 8%;
  height:26px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(89,240,255,.35), transparent 68%);
  filter:blur(14px);
  opacity:.88;
}
.heroData{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  padding:10px 4px;
}
.petTitleMain{font-size:clamp(38px, 4vw, 62px);line-height:.98}
.heroChipRow{max-width:760px}
.heroMetrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-content:start;
}
.metricValue{font-size:34px}
.metricBox{
  min-height:118px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.quickDock{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  margin:16px 0 18px;
  border-radius:22px;
}
.dockLink{min-height:42px;padding:0 14px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.dockLink.is-active{
  border-color:rgba(89,240,255,.42);
  background:
    linear-gradient(180deg, rgba(89,240,255,.18), rgba(89,240,255,.05)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
  color:var(--text);
}
.detailStack{display:flex;flex-direction:column;gap:18px}
.techSection{padding:18px}
.sectionBody{display:flex;flex-direction:column;gap:16px}
.storyCard{padding:22px}
.storyCard p{margin:0;font-size:15px}
.infoCard,.evoCard,.candyCard{padding:18px}
.infoTitleWrap h3,.tileHead h3{font-size:22px}
.infoCardHead{margin-bottom:16px}
.itemHeroLine,.entityLink,.drop,.recipeItem{
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.itemHeroLine{align-items:center}
.itemIconFrame,.entityThumb,.dropThumb,.recipeThumb{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:68px;
  height:68px;
  border-radius:18px;
  border:1px solid var(--border);
  background:
    radial-gradient(circle at 50% 35%, rgba(89,240,255,.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(180deg, var(--panel4), var(--panel2));
}
.itemIconFrameLarge,.entityThumbLarge{width:88px;height:88px;border-radius:22px}
.itemHeroCopy,.recipeBody,.entityBody,.dropBody{min-width:0;flex:1}
.itemMainName,.entityName,.dropName{font-size:22px;font-weight:900;line-height:1.1;margin-bottom:8px}
.itemNote{margin-top:10px;font-size:13px}
.dividerLine{
  height:1px;
  margin:16px 0 14px;
  background:linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.subHeaderLine{margin-bottom:12px}
.dropList,.recipeList,.linkedPetStrip{display:grid;gap:12px}
.drop,.recipeItem,.entityLink,.linkedPetPill{
  padding:14px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(89,240,255,.05);
}
.entityLink,.linkedPetPill{transition:transform .18s ease,border-color .18s ease,background .18s ease}
.entityLink:hover,.linkedPetPill:hover{transform:translateY(-2px);border-color:var(--border-strong);background:rgba(89,240,255,.08)}
.linkedPetStrip{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.linkedPetPill{display:flex;align-items:center;gap:10px;min-height:58px}
.pillThumb{width:34px;height:34px}
.bonusGrid,.conditionGrid{display:grid;gap:10px}
.bonusGrid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));padding:0;margin:0;list-style:none}
.bonusCard{
  display:flex;
  align-items:center;
  min-height:60px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(89,240,255,.06);
  font-weight:700;
}
.conditionLine{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(89,240,255,.05);
}
.conditionKey{font-weight:800;color:var(--accent2)}
.conditionVal{text-align:right;max-width:72%}
.recipeAmount{font-weight:900;color:var(--accent3)}
.recipeMain{font-size:16px;font-weight:800;line-height:1.35}
.recipeItemZeny .recipeMain{font-size:18px}
.cardsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pairGrid{display:grid;grid-template-columns:minmax(300px, 400px) minmax(0,1fr);gap:16px}
.singleColumnBlock{display:grid;gap:16px}

.reveal{
  opacity:0;
  transform:translateY(20px) scale(.985);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

@media (max-width: 1180px){
  .homeGrid,.heroBlock,.petHeroGrid,.pairGrid,.cardsGrid,.infoGrid,.commandList{grid-template-columns:1fr}
  .heroTitleLarge{max-width:none}
  .panelList{min-height:auto}
  .list{max-height:none}
  .heroMetrics{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width: 860px){
  .container,.page-detail .container{width:min(100% - 20px, 100% - 20px)}
  .header,.hudHeader{flex-direction:column;align-items:stretch}
  .brand{font-size:24px;justify-content:center}
  .brandWrap,.brandWrap.compact{min-width:0}
  .heroMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quickDock{flex-wrap:wrap}
  .petName{font-size:18px}
  .petRow{grid-template-columns:72px minmax(0,1fr) 22px;min-height:96px;padding:14px}
  .petThumbWrap{width:72px;height:72px;border-radius:18px}
  .pimg{width:54px;height:54px}
}
@media (max-width: 620px){
  .panel,.hudHeader{padding:14px}
  .sectionTitle,.infoCardHead,.subSectionTitle{flex-direction:column;align-items:flex-start}
  .petTitleMain{font-size:34px}
  .heroMetrics{grid-template-columns:1fr 1fr}
  .statValue,.metricValue{font-size:28px}
  .conditionLine{flex-direction:column}
  .conditionVal{text-align:left;max-width:none}
  .itemHeroLine,.entityLink,.drop,.recipeItem{gap:12px}
}


/* ===== PETDEX V4 AJUSTES DE LAYOUT, SLIDER Y CACHE VISUAL ===== */
.searchHint{margin-top:10px}
#suggest{display:none !important}

.panelList{
  min-height:840px;
  overflow:hidden;
}
.panelList .list{
  flex:1 1 auto;
  min-height:0;
  height:100%;
  max-height:none;
  padding-right:10px;
  padding-bottom:14px;
  margin-bottom:0;
  overscroll-behavior:contain;
}
.panelList .list::after{
  content:"";
  display:block;
  height:2px;
  flex:0 0 auto;
}
.panelList .emptyStateList{margin-top:14px}

.heroBlockMedia{
  grid-template-columns:minmax(0,1.22fr) minmax(250px,.78fr);
  align-items:stretch;
}
.heroCarousel{
  position:relative;
  min-height:368px;
  border-radius:24px;
  border:1px solid var(--border);
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(89,240,255,.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    linear-gradient(180deg, var(--panel3), var(--panel2));
  box-shadow:var(--shadow-soft);
  isolation:isolate;
}
.heroCarousel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    var(--mouse-glow),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(89,240,255,.05) 28px 29px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(89,240,255,.05) 28px 29px),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 26%);
  mix-blend-mode:screen;
}
:root[data-theme="light"] .heroCarousel{
  background:
    linear-gradient(135deg, rgba(0,150,214,.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(180deg, #eef8ff, #e7f3fd);
}
:root[data-theme="light"] .heroCarousel::before{
  background:
    var(--mouse-glow),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(0,112,176,.08) 28px 29px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(0,112,176,.08) 28px 29px),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 26%);
}
.heroSlide{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  opacity:0;
  pointer-events:none;
  transition:opacity .5s ease, transform .5s ease;
  transform:scale(1.02);
}
.heroSlide.is-active{
  opacity:1;
  pointer-events:auto;
  transform:scale(1);
}
.heroSlideMedia{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:28px 28px 18px 28px;
}
.heroSlideMedia::before{
  background:
    radial-gradient(circle at 72% 50%, rgba(89,240,255,.10), transparent 20%),
    radial-gradient(circle at 74% 56%, rgba(89,240,255,.05), transparent 34%) !important;
}

:root[data-theme="light"] .heroSlideMedia::before{
  background:
    radial-gradient(circle at 72% 50%, rgba(0,150,214,.10), transparent 20%),
    radial-gradient(circle at 74% 56%, rgba(0,150,214,.05), transparent 34%) !important;
}
.heroSlideImg{
  position:relative;
  z-index:1;
  width:min(100%, 56%);
  max-height:88%;
  object-fit:contain;
  filter:drop-shadow(0 22px 28px rgba(0,0,0,.28));
}
.heroSlideCaption{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
  max-width:min(52ch, 62%);
  padding:28px;
  min-height:100%;
}
.heroSlideTitle{
  margin:0;
  font-size:clamp(32px, 4vw, 58px);
  line-height:.98;
  font-weight:900;
  letter-spacing:.01em;
}
.heroSlideCaption .heroLead{
  margin:0;
  max-width:58ch;
}
.heroDots{
  position:absolute;
  left:28px;
  bottom:20px;
  z-index:3;
  display:flex;
  align-items:center;
  gap:8px;
}
.heroDot{
  width:11px;
  height:11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.16);
  box-shadow:none;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.heroDot.is-active{
  transform:scale(1.18);
  background:var(--accent);
  border-color:rgba(255,255,255,.5);
}

:root[data-theme="light"] .portraitFrame::before{
  border-color:rgba(0,112,176,.24);
  background:
    radial-gradient(circle at 50% 50%, rgba(0,150,214,.08), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,112,176,.11) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,112,176,.11) 22px 23px);
}
:root[data-theme="light"] .portraitGlow{
  background:radial-gradient(circle, rgba(0,150,214,.26), transparent 68%);
}

@media (max-width: 1180px){
  .heroSlideImg{width:min(100%, 48%)}
  .heroSlideCaption{max-width:min(62ch, 70%)}
}
@media (max-width: 980px){
  .panelList{min-height:auto}
  .panelList .list{max-height:none;height:auto}
  .heroCarousel{min-height:320px}
  .heroSlideMedia{justify-content:center;padding:22px}
  .heroSlideMedia::before{
    background:
      radial-gradient(circle at 50% 38%, rgba(89,240,255,.12), transparent 24%),
      linear-gradient(180deg, rgba(4,11,18,.20) 0%, rgba(4,11,18,.58) 58%, rgba(4,11,18,.82) 100%);
  }
  :root[data-theme="light"] .heroSlideMedia::before{
    background:
      radial-gradient(circle at 50% 38%, rgba(0,150,214,.10), transparent 24%),
      linear-gradient(180deg, rgba(246,251,255,.10) 0%, rgba(246,251,255,.52) 58%, rgba(246,251,255,.88) 100%);
  }
  .heroSlideImg{width:min(100%, 68%);max-height:54%}
  .heroSlideCaption{max-width:100%;padding:24px;justify-content:flex-end}
}
@media (max-width: 680px){
  .heroCarousel{min-height:300px}
  .heroSlideTitle{font-size:clamp(28px, 8vw, 42px)}
  .heroSlideImg{width:min(100%, 78%);max-height:46%}
  .heroDots{left:20px;bottom:16px}
}


/* ===== PETDEX V5 LISTA IZQUIERDA CON SCROLL INDEPENDIENTE ===== */
.homeGrid{
  align-items:start;
}

@media (min-width: 981px){
  .panelList{
    position:sticky;
    top:18px;
    height:calc(100dvh - 170px);
    min-height:calc(100dvh - 170px);
    max-height:calc(100dvh - 170px);
  }

  .panelList .list{
    flex:1 1 auto;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:auto;
    overscroll-behavior:contain;
    padding-right:10px;
    padding-bottom:18px;
  }
}

@media (min-width: 981px) and (max-height: 860px){
  .panelList{
    height:calc(100dvh - 150px);
    min-height:calc(100dvh - 150px);
    max-height:calc(100dvh - 150px);
  }
}


/* ===== PETDEX V6 AJUSTES DE ALTURA + SLIDE MÁS LIMPIO ===== */
@media (min-width: 981px){
  .panelList{
    top:16px;
    height:calc(100dvh - 108px);
    min-height:calc(100dvh - 108px);
    max-height:calc(100dvh - 108px);
  }

  .panelList .list{
    padding-bottom:22px;
  }
}

@media (min-width: 981px) and (max-height: 860px){
  .panelList{
    height:calc(100dvh - 96px);
    min-height:calc(100dvh - 96px);
    max-height:calc(100dvh - 96px);
  }
}

.heroSlideMedia::before{
  background:
    radial-gradient(circle at 72% 50%, rgba(89,240,255,.14), transparent 20%),
    radial-gradient(circle at 74% 56%, rgba(89,240,255,.08), transparent 34%),
    linear-gradient(90deg, rgba(4,11,18,.12) 0%, rgba(4,11,18,.06) 34%, rgba(4,11,18,.015) 58%, rgba(4,11,18,0) 76%) !important;
}

:root[data-theme="light"] .heroSlideMedia::before{
  background:
    radial-gradient(circle at 72% 50%, rgba(0,150,214,.12), transparent 20%),
    radial-gradient(circle at 74% 56%, rgba(0,150,214,.06), transparent 34%),
    linear-gradient(90deg, rgba(246,251,255,.12) 0%, rgba(246,251,255,.06) 34%, rgba(246,251,255,.01) 58%, rgba(246,251,255,0) 76%) !important;
}

.heroSlideImg{
  background:transparent !important;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.18)) !important;
}

@media (max-width: 980px){
  .heroSlideMedia::before{
    background:
      radial-gradient(circle at 50% 38%, rgba(89,240,255,.12), transparent 24%),
      linear-gradient(180deg, rgba(4,11,18,.10) 0%, rgba(4,11,18,.20) 52%, rgba(4,11,18,.34) 100%) !important;
  }

  :root[data-theme="light"] .heroSlideMedia::before{
    background:
      radial-gradient(circle at 50% 38%, rgba(0,150,214,.10), transparent 24%),
      linear-gradient(180deg, rgba(246,251,255,.04) 0%, rgba(246,251,255,.12) 52%, rgba(246,251,255,.22) 100%) !important;
  }
}
