/* Round 241: official Dude Perfect logo + Panda, Ned Forrester, and Rocket Football.
   DP skin only. Artwork is local (see app/static/dp/SOURCES.txt). Other themes hide these marks. */
.appbadge-dp,
.dp-panda-hdr,
.dp-rocket-hdr,
.hdr-title-gb,
.hdr-title-gb-sm,
.hdr-kicker-ot,
.hdr-title-ot,
.hdr-title-ot-sm,
.hcoach-ned,
.hct-ned,
.cs-lab-ned,
.cs-lab-panda,
.cs-ic-ned,
.cs-ic-panda,
.cs-replay-ned,
.ou-tx b.cs-lab-ned,
.ou-tx small.cs-lab-ned,
.ou-tx b.cs-lab-panda,
.ou-tx small.cs-lab-panda{display:none}

html[data-skin=dp] .appbadge-gsop{display:none}
html[data-skin=dp] .appbadge-dp{display:block}
html[data-skin=dp] .appbadge{background:#000;box-shadow:0 0 0 2px rgba(126,249,228,.55)}

/* Panda is the DP header mascot (tappable, inside #hcoach). Round 263: Coach Stash
   no longer appears in the header on Day / Night / T3; Panda on DP is unchanged.
   Ned Forrester is not in the header; he still appears in weekly W/L/T reactions. */
html[data-skin=dp] .hcoach-stash,
html[data-skin=dp] .hcoach-ned{display:none}
html[data-skin=dp] .dp-panda-hdr{
  display:block;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
html[data-skin=dp] .hcoach{--hcw:30px}
html[data-skin=dp] .hcoach.hc-hunt,
html[data-skin=dp] .hcoach.hc-out,
html[data-skin=dp] .hcoach.hc-offseason{--hcw:30px}
html[data-skin=dp] .hcoach.hc-offseason img{height:56px}
@media (prefers-reduced-motion:reduce){
  html[data-skin=dp] .hcoach img{animation:none}
}

/* Subtle Panda watermark — decorative, never intercepts taps */
html[data-skin=dp] body.tpage::after{
  content:"";position:fixed;right:4px;bottom:calc(68px + var(--sa-b,0px));
  width:68px;height:132px;z-index:2;pointer-events:none;
  background:url(/static/dp/panda-sm.webp?v=1) no-repeat bottom right/contain;
  opacity:.15;
}
@media (min-width:1100px){
  html[data-skin=dp] body.tpage::after{
    right:auto;left:18px;bottom:20px;width:88px;height:170px;opacity:.12
  }
}

/* Empty-state accent (templates may add .dp-empty on a vacant message) */
html[data-skin=dp] .dp-empty{
  position:relative;padding-bottom:86px;min-height:4.5em
}
html[data-skin=dp] .dp-empty::after{
  content:"";position:absolute;left:50%;bottom:0;width:64px;height:80px;
  transform:translateX(-50%);pointer-events:none;
  background:url(/static/dp/panda-sm.webp?v=1) no-repeat bottom center/contain
}

/* Rocket Football: small accent on the GSOP line, not its own header column */
html[data-skin=dp] .titles .lname.apptitle{
  display:flex;align-items:center;gap:6px;min-width:0
}
html[data-skin=dp] .dp-rocket-hdr{
  display:block;height:13px;width:auto;flex:none;margin:0;
  filter:drop-shadow(0 0 4px rgba(79,209,193,.45));
  pointer-events:none;
}
@media (min-width:1100px){
  html[data-skin=dp] .dp-rocket-hdr{height:16px}
  /* Phone titles are 19px (style.css max-width:700px). On desktop the default
     .lname is 12.5px, so GSOP / OVERTIME (and GOLDEN BOY) looked like a caption.
     Match the phone title size at desktop widths. */
  html[data-skin=dp] .appbar .lname.apptitle{font-size:19px;letter-spacing:.04em}
}

/* Phone header (360–430): logo, full kicker ("MADDEN DYNASTY", or "GSOP" in
   Overtime League), title (GOLDEN BOY or OVERTIME) + rocket, Panda, bell, and
   avatar — no overlap or truncated title. */
@media (max-width:430px){
  html[data-skin=dp] .appbar-in{gap:8px}
  html[data-skin=dp] .appbar-right{gap:3px} /* match the tightened chat+bell cluster */
  html[data-skin=dp] .appname{letter-spacing:.06em;overflow:visible}
  html[data-skin=dp] .dp-rocket-hdr{height:12px}
  /* Chat is now in the header: keep GOLDEN BOY / OVERTIME from ellipsizing */
  html[data-skin=dp] .appbar .lname.apptitle{letter-spacing:.02em;overflow:visible}
}
@media (max-width:360px){
  html[data-skin=dp] .appbar-in{gap:6px}
  html[data-skin=dp] .appbar-right{gap:4px}
}

/* Settings / tip / replay copy: Ned stays for weekly reactions; header toggle is Panda */
html[data-skin=dp] .hct-stash,
html[data-skin=dp] .cs-lab-stash,
html[data-skin=dp] .cs-ic-stash,
html[data-skin=dp] .cs-replay-stash{display:none}
html[data-skin=dp] .hct-ned,
html[data-skin=dp] .cs-lab-ned,
html[data-skin=dp] .cs-lab-panda,
html[data-skin=dp] .cs-replay-ned{display:revert}
html[data-skin=dp] .cs-ic-ned,
html[data-skin=dp] .cs-ic-panda{display:inline}
.hcoach-tip .hct-l i{font-style:normal;font-weight:700}
html[data-skin=dp] .hcoach-tip b{color:#4fd1c1}

/* Pull-to-refresh spinner: tumbling rocket football */
html[data-skin=dp] .ptr-s{
  border:0;border-radius:0;width:26px;height:16px;
  background:url(/static/dp/rocket-football.svg?v=1) center/contain no-repeat;
}
html[data-skin=dp] .ptr.ready .ptr-s,
html[data-skin=dp] .ptr.spin .ptr-s{border:0;background-color:transparent}

/* DP-only header title: GOLDEN BOY (GB at very narrow widths). GSOP stays in the DOM.
   Overtime League (data-league-brand=overtime) instead uses GSOP over OVERTIME
   (OT at very narrow widths). First-Down Syndrome and other DP leagues are unchanged. */
html[data-skin=dp] .hdr-title-gsop{display:none}
html[data-skin=dp] .hdr-title-gb{display:inline;letter-spacing:.03em;white-space:nowrap}
html[data-skin=dp] .hdr-title-gb-sm{display:none}
@media (max-width:340px){
  html[data-skin=dp] .hdr-title-gb{display:none}
  html[data-skin=dp] .hdr-title-gb-sm{display:inline;letter-spacing:.06em}
}
html[data-skin=dp][data-league-brand=overtime] .hdr-kicker{display:none}
html[data-skin=dp][data-league-brand=overtime] .hdr-kicker-ot{display:inline}
html[data-skin=dp][data-league-brand=overtime] .hdr-title-gsop,
html[data-skin=dp][data-league-brand=overtime] .hdr-title-gb,
html[data-skin=dp][data-league-brand=overtime] .hdr-title-gb-sm{display:none}
html[data-skin=dp][data-league-brand=overtime] .hdr-title-ot{display:inline;letter-spacing:.03em;white-space:nowrap}
html[data-skin=dp][data-league-brand=overtime] .hdr-title-ot-sm{display:none}
@media (max-width:340px){
  html[data-skin=dp][data-league-brand=overtime] .hdr-title-ot{display:none}
  html[data-skin=dp][data-league-brand=overtime] .hdr-title-ot-sm{display:inline;letter-spacing:.06em}
}

/* Golden Boy trophy swap: tinted detailed mask for nav/small icons; rendered
   metallic gold / silver / bronze figures (with a GB pedestal plate) on medals. */
html[data-skin=dp] svg.ic-trophy{
  background-color:currentColor;
  -webkit-mask:url(/static/dp/trophy/icon-mask.webp?v=2) center / contain no-repeat;
  mask:url(/static/dp/trophy/icon-mask.webp?v=2) center / contain no-repeat;
  -webkit-mask-mode:luminance;
  mask-mode:luminance;
}
html[data-skin=dp] svg.ic-trophy *{fill:none!important;stroke:none!important;opacity:0}

/* 🏆 emoji wrapped in .t-cup (templates + a small skin script) */
html[data-skin=dp] .t-cup{
  display:inline-block;width:1em;height:1.4em;vertical-align:-.25em;
  font-size:0;line-height:0;color:inherit;
  background-color:currentColor;
  -webkit-mask:url(/static/dp/trophy/icon-mask.webp?v=2) center / contain no-repeat;
  mask:url(/static/dp/trophy/icon-mask.webp?v=2) center / contain no-repeat;
  -webkit-mask-mode:luminance;
  mask-mode:luminance;
}

/* Team-page medals: rendered statues in the existing gold / silver / bronze
   (#e2b33a, #c9ced6, #c58149); the pedestal + GB plate is in the image, so the
   CSS GSOP stand is hidden. */
html[data-skin=dp] .th-hero .th-trophy picture,html[data-skin=dp] .op-hero .th-trophy picture{
  width:30px;height:79px;
  background:transparent url(/static/dp/trophy/gold.webp?v=2) center / contain no-repeat;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.45));
  -webkit-mask:none;
  mask:none;
  background-color:transparent;
}
html[data-skin=dp] .th-hero .th-trophy.md-silver picture,html[data-skin=dp] .op-hero .th-trophy.md-silver picture{background-image:url(/static/dp/trophy/silver.webp?v=2)}
html[data-skin=dp] .th-hero .th-trophy.md-bronze picture,html[data-skin=dp] .op-hero .th-trophy.md-bronze picture{background-image:url(/static/dp/trophy/bronze.webp?v=2)}
html[data-skin=dp] .th-hero .th-trophy picture img,html[data-skin=dp] .op-hero .th-trophy picture img{opacity:0}
html[data-skin=dp] .th-hero .th-trophy .tr-base,html[data-skin=dp] .op-hero .th-trophy .tr-base{display:none}

/* Round 249: read-only Overtime League demo chip (replaces the sign-in avatar). */
html[data-guest] .avatar.demo-guest{
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;min-width:38px;height:28px;padding:0 8px;border-radius:999px;
  font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:#10332e;background:rgba(126,249,228,.92);box-shadow:0 0 0 2px rgba(16,51,46,.15)
}
html[data-guest] .appgear{display:none}
