/* MK-33c loot-item sample. Scoped to gtavi-loot-item-v1 only.
   Does not change locked character, place, category, home, or walkthrough CSS. */
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-ph--branded{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:16/10;
  width:100%;
  min-height:0;
  padding:8px 10px;
  box-sizing:border-box;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,80,160,.42), transparent 52%),
    radial-gradient(circle at 82% 86%, rgba(80,200,255,.28), transparent 48%),
    linear-gradient(160deg,#2A0F2E 0%,#5A1640 42%,#1a0a18 100%);
  color:#FFE3EE;
  text-align:center;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-ph--branded span{
  font:700 .92rem/1.2 "Chakra Petch",system-ui,sans-serif;
  letter-spacing:.06em;
  text-shadow:0 0 10px rgba(255,80,160,.85),0 0 18px rgba(80,200,255,.35);
}

main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide{margin-top:8px}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide > h2,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-section > h2,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gpd-tile-sec > h2{
  text-align:center;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__grid,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-steps,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-step,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-spoilers,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-faq{
  min-width:0;
  max-width:100%;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  margin:0;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card{
  background:rgba(20,10,18,.55);
  border:1px solid rgba(255,140,190,.28);
  box-shadow:0 0 18px -8px rgba(255,80,160,.45);
  border-radius:14px;
  padding:16px 18px 18px;
  min-width:0;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card h3{
  margin:0 0 10px;
  color:#FFE3EE;
  font:700 1.05rem/1.25 "Chakra Petch",system-ui,sans-serif;
  letter-spacing:.04em;
  text-align:center;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card p,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card li{
  color:#F4EEF6;
  font-size:.96rem;
  line-height:1.55;
  overflow-wrap:break-word;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card p{margin:0 0 10px;overflow-wrap:break-word}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card p:last-child,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card li:last-child{margin-bottom:0}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card ul,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card ol{
  margin:0;
  padding-left:1.25rem;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__related{margin-top:16px}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__related h3{
  margin:0 0 10px;
  color:#FFE3EE;
  font:700 1.05rem/1.25 "Chakra Petch",system-ui,sans-serif;
  letter-spacing:.04em;
  text-align:center;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-hero .hero-stage{
  box-shadow:0 0 28px -6px rgba(255,80,160,.55),0 0 40px -10px rgba(80,200,255,.28);
  aspect-ratio:16 / 9;
  width:100%;
  height:auto;
  overflow:hidden;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-hero .hero-stage img,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-hero .hero-main__img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}

/* Spec / facts card in the left column (Kastov / Control Unit lead slot). */
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .weapon-gs-spec,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-loot-facts{
  margin:0;
  padding:16px 18px 18px;
  background:rgba(20,10,18,.55);
  border:1px solid rgba(255,210,74,.35);
  box-shadow:0 0 18px -8px rgba(255,210,74,.55),0 0 18px -8px rgba(255,80,160,.35);
  border-radius:14px;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-facts{
  display:grid;
  gap:8px 14px;
  margin:0;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-facts > div{
  display:grid;
  grid-template-columns:minmax(0,8.5em) minmax(0,1fr);
  gap:8px;
  align-items:baseline;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-facts dt{
  margin:0;
  font:700 .68rem/1.2 "Chakra Petch",system-ui,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#FFD24A;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-facts dd{
  margin:0;
  color:#F4EEF6;
  font-size:.95rem;
  overflow-wrap:break-word;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .otp-chips__row{flex-wrap:wrap}

main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > .task-lead > .task-extras:empty{display:none}

/* Desktop: hero fills the left column height (header + specs/facts). */
@media (min-width:1024px){
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero){
    align-items:stretch;
    grid-template-rows:max-content minmax(0,auto);
  }
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > .task-lead > .task-header{
    grid-column:1;
    grid-row:1;
    align-self:stretch;
    min-height:0;
  }
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > #specs.task-section,
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > #facts.task-section{
    grid-column:1;
    grid-row:2;
    align-self:start;
    margin:0;
    width:100%;
    max-width:100%;
  }
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > #specs.task-section > h2,
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > #facts.task-section > h2{
    text-align:left !important;
    margin-bottom:8px;
  }
  /* MK-41b: site-standard 16:9 hero, row 1 only, never stretched to the left column. */
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > .task-hero{
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:start !important;
    display:flex;
    flex-direction:column;
    min-height:0;
    height:auto;
  }
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > .task-hero .hero-main,
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > .task-hero .hero-main--slider{
    flex:none;
    display:flex;
    flex-direction:column;
    width:100%;
    height:auto;
    max-height:none !important;
    min-height:0;
    aspect-ratio:auto !important;
  }
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-layout:has(> .task-hero) > .task-hero .hero-stage{
    flex:none;
    align-self:stretch;
    position:relative;
    width:100%;
    height:auto !important;
    max-height:none;
    min-height:0;
    aspect-ratio:16 / 9;
  }
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-hero .hero-slides{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-height:none;
  }
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-hero .hero-stage img,
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-hero .hero-slide img,
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .task-hero .hero-slide__img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
  }
}

/* Beat styles-v8 max-width:none !important so copy cannot spill into the rail. */
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__grid,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__related,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide p,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide li,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-step,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-step p,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-faq,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gta-spoiler,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .weapon-gs-spec,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-loot-facts{
  max-width:100% !important;
  min-width:0;
  box-sizing:border-box;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  width:100%;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__card,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .field-guide__related{
  width:100% !important;
  flex:0 0 auto !important;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-step__media{
  max-width:100%;
  min-width:0;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-step__shot,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-step__shot img{
  max-width:100%;
  height:auto;
}

main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gpd-found{
  margin:12px 0 0;
  min-width:0;
  max-width:100%;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .gpd-found__h{
  margin:0 0 8px;
  color:#FFE3EE;
  font:700 1.05rem/1.25 "Chakra Petch",system-ui,sans-serif;
  letter-spacing:.04em;
  text-align:left;
}

/* MK-34: golden Found-in / Drops tags on loot-item samples */
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-gta-drops{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-gta-drop{
  position:relative;
  display:inline-flex;
  align-items:center;
  overflow:hidden;
  max-width:100%;
  padding:6px 11px;
  border-radius:999px;
  text-decoration:none;
  color:#FFF3C4;
  font:700 .62rem/1.2 "Chakra Petch",system-ui,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:linear-gradient(180deg,rgba(40,28,8,.95),rgba(16,12,6,.95));
  border:1px solid rgba(255,210,74,.55);
  box-shadow:0 0 12px -4px rgba(255,210,74,.7);
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-gta-drop:hover,
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-gta-drop:focus-visible{
  border-color:#FFE14A;
  box-shadow:0 0 16px -2px rgba(255,210,74,.9);
  outline:none;
  color:#fff;
}
main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-gta-drop .mk-gta-drop__shine{
  position:absolute;
  inset:0 auto 0 0;
  width:40%;
  pointer-events:none;
  background:linear-gradient(105deg, transparent 15%, rgba(255,243,196,.4) 50%, transparent 85%);
  transform:translateX(-140%);
  animation:mk-gta-loot-shimmer 3.8s ease-in-out infinite;
}
@keyframes mk-gta-loot-shimmer{
  0%, 28%{ transform:translateX(-140%); }
  58%, 100%{ transform:translateX(280%); }
}
@media (prefers-reduced-motion:reduce){
  main.gpd-page[data-mk-template="gtavi-loot-item-v1"] .mk-gta-drop .mk-gta-drop__shine{
    animation:none;
    transform:none;
    opacity:.35;
  }
}
