/* BBQVN — promo mascot clarity & safe-area fix (2026-11-09)
 * Preserve existing banner artwork, copy, order and visual footprint.
 * Background sheet has 3 portraits with original aspect ratio 230:384.
 * Previous CSS stretched each portrait to 175x205; never distort them.
 */
#bbq-root .bbm-grill-banner,
#bbq-root .bc-pigs{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  overflow:hidden;
}

/* Contain the portrait in its own grid track instead of cropping it. */
#bbq-root .bbm-small-pig,
#bbq-root .bc-pig{
  box-sizing:border-box;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0 6px;
  overflow:visible;
  transform:none;
}
#bbq-root .bbm-small-pig .bbm-mascot-sprite,
#bbq-root .bc-pig .bbm-mascot-sprite{
  box-sizing:border-box;
  display:block;
  flex:0 0 auto;
  width:clamp(106px,9vw,132px);
  height:auto;
  aspect-ratio:230 / 384;
  max-width:100%;
  background-image:url("/bbqvn-mascots.avif");
  background-repeat:no-repeat;
  background-size:300% 100%;
  transform:none;
  filter:drop-shadow(0 5px 8px rgba(61,17,15,.16));
  image-rendering:auto;
  backface-visibility:visible;
}
#bbq-root .bc-pig-flip .bbm-mascot-sprite{
  transform:none;
}
/* Copy cannot force the grid wider than the available safe area. */
#bbq-root .bbm-grill-copy{
  min-width:0;
  position:relative;
  z-index:1;
}
#bbq-root .bbm-grill-copy h2{
  max-width:100%;
  line-height:1.12;
  overflow-wrap:normal;
  word-break:normal;
  text-wrap:balance;
}
#bbq-root .bbm-grill-copy p{
  max-width:100%;
  text-wrap:pretty;
}
#bbq-root .bbm-grill-price{
  min-width:0;
}
#bbq-root .bbm-grill-price strong{
  white-space:nowrap;
  font-variant-numeric:lining-nums;
}

/* A deliberately stacked headline: no text collision with the two mascots. */
#bbq-root .bc-pigs > div:nth-child(2){
  min-width:0;
  max-width:100%;
  padding:13px 7px;
  z-index:1;
}
#bbq-root .bc-pigs h2{
  margin:9px auto 0;
  line-height:1.12;
  max-width:100%;
  font-weight:900;
  font-size:clamp(25px,2.65vw,38px);
  letter-spacing:-.045em;
  text-align:center;
  text-wrap:balance;
}
#bbq-root .bc-pigs h2 em{
  display:block;
  margin-top:5px;
  color:#ffe075;
  font-style:normal;
  font-size:.91em;
  line-height:1.13;
}
#bbq-root .bc-pigs>div:nth-child(2)>span{
  display:block;
  line-height:1.4;
}

/* Tablet */
@media (min-width:701px) and (max-width:1100px){
  #bbq-root .bbm-small-pig .bbm-mascot-sprite,
  #bbq-root .bc-pig .bbm-mascot-sprite{
    width:clamp(100px,10.3vw,121px);
    max-width:calc(100% - 4px);
  }
  #bbq-root .bbm-grill-copy h2{font-size:clamp(25px,3vw,34px)}
  #bbq-root .bc-pigs h2{font-size:clamp(23px,2.7vw,30px)}
}

/* Mobile: preserve existing 258px banner height and 73px price bar.
 * Use one full mascot in the left track, not a clipped scaled sprite. */
@media (max-width:700px){
  #bbq-root .bbm-grill-banner,
  #bbq-root .bc-pigs{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    height:258px;
    min-height:258px;
  }
  #bbq-root .bbm-small-pig{
    grid-column:1;
    grid-row:1;
    width:100%;
    min-width:0;
    height:185px;
    padding:0 2px 4px;
    align-self:end;
    transform:none;
  }
  #bbq-root .bbm-small-pig .bbm-mascot-sprite{
    width:min(88px,100%);
    height:auto;
    max-width:100%;
    aspect-ratio:230/384;
    transform:none;
  }
  #bbq-root .bbm-grill-copy{
    grid-column:2;
    grid-row:1;
    padding:12px 13px 12px 4px;
    align-self:center;
    min-width:0;
  }
  #bbq-root .bbm-grill-copy>span{
    font-size:9px;
    line-height:1.4;
  }
  #bbq-root .bbm-grill-copy h2{
    font-size:clamp(20px,5.7vw,27px);
    line-height:1.1;
    margin:7px 0;
    letter-spacing:-.04em;
  }
  #bbq-root .bbm-grill-copy h2 em{display:block}
  #bbq-root .bbm-grill-copy p{
    font-size:10px;
    line-height:1.45;
  }
  #bbq-root .bbm-grill-price{
    grid-column:1/-1;
    grid-row:2;
    height:73px;
    min-height:73px;
    padding:9px 12px;
    gap:8px;
  }
  #bbq-root .bbm-grill-price strong{font-size:clamp(24px,7vw,30px)}
  #bbq-root .bc-pigs{
    grid-template-columns:104px minmax(0,1fr);
    padding:0 10px 0 0;
    gap:3px;
  }
  #bbq-root .bc-pig{
    grid-column:1;
    width:100%;
    min-width:0;
    max-width:100%;
    height:100%;
    padding:0 2px 7px;
    align-self:end;
    justify-content:center;
    overflow:visible;
    transform:none;
  }
  #bbq-root .bc-pig .bbm-mascot-sprite{
    width:min(98px,100%);
    height:auto;
    max-width:100%;
    aspect-ratio:230/384;
    transform:none;
  }
  #bbq-root .bc-pig-flip{display:none}
  #bbq-root .bc-pigs>div:nth-child(2){
    grid-column:2;
    align-self:center;
    padding:9px 2px 9px 5px;
    text-align:left;
  }
  #bbq-root .bc-pigs>div:nth-child(2)>span{
    font-size:9px;
    letter-spacing:.07em;
  }
  #bbq-root .bc-pigs h2{
    margin:10px 0 0;
    font-size:clamp(21px,5.65vw,28px);
    line-height:1.09;
    text-align:left;
    text-wrap:balance;
    overflow-wrap:normal;
  }
  #bbq-root .bc-pigs h2 em{
    font-size:.92em;
    margin-top:7px;
    line-height:1.12;
  }
}
@media (max-width:360px){
  /* Keep the original narrow-phone 275px layout rather than crop copy. */
  #bbq-root .bbm-grill-banner,
  #bbq-root .bc-pigs{
    height:275px;
    min-height:275px;
  }
  #bbq-root .bbm-grill-banner{grid-template-rows:202px 73px}
  #bbq-root .bbm-small-pig{height:202px}
  #bbq-root .bc-pigs{grid-template-columns:84px minmax(0,1fr)}
  #bbq-root .bc-pig .bbm-mascot-sprite{width:min(79px,100%)}
  #bbq-root .bc-pigs h2{font-size:21px}
}
@media (prefers-reduced-motion:reduce){
  #bbq-root .bbm-small-pig .bbm-mascot-sprite,
  #bbq-root .bc-pig .bbm-mascot-sprite{transition:none!important;animation:none!important}
}
