/* YELLA v1.2.110 — genuine proportional artwork and responsive panel borders. */
#page-reports .ych29-hub { max-width:100%; min-width:0; }
#page-reports .ych29-hub img { max-width:100%; }
#page-reports .ych29-week-layout > * { min-width:0; }

/* Weekly Leader's rim belongs to the panel, never to a stretched background image. */
#page-reports .ych29-week-board {
  position:relative;isolation:isolate;overflow:hidden;
  min-width:0;box-sizing:border-box;
  border:2px solid rgba(255,205,90,.92)!important;
  border-radius:19px!important;
  background:linear-gradient(150deg,#092c3a 0%,#031720 55%,#082535 100%)!important;
  box-shadow:0 0 0 3px rgba(245,187,66,.08),inset 0 0 15px rgba(255,187,55,.10),0 0 20px rgba(255,190,63,.18),0 12px 30px #0008!important;
  padding:clamp(15px,2vw,24px)!important;
}
#page-reports .ych29-week-board::before {
  content:"";position:absolute;inset:8px;border-radius:calc(19px - 11px);pointer-events:none;
  background:url('./assets/yella-challenges-leaders-texture-v12110.webp') center/cover no-repeat;
  opacity:.27;z-index:-1;
}
#page-reports .ych29-week-board::after {
  content:"";position:absolute;inset:6px;border:1px solid rgba(255,217,140,.28);
  border-radius:12px;pointer-events:none;z-index:0;
}
#page-reports .ych29-week-board > * { position:relative;z-index:1; }
#page-reports .ych29-week-board h3 { margin:0 0 20px;line-height:1.18;font-size:clamp(17px,1.75vw,21px); }
#page-reports .ych29-board-empty { min-height:180px;background:rgba(2,18,27,.8);border:1px solid rgba(158,213,227,.12); }

/* No compressed / stretched artwork on match history either. Use CSS for its edges. */
#page-reports .ych29-my-matches {
  min-width:0;overflow:hidden;
  background:linear-gradient(145deg,#082636,#02131d 78%)!important;
  border:1px solid rgba(59,159,190,.75)!important;
  box-shadow:inset 0 0 0 1px rgba(82,201,234,.1),0 14px 30px #0008!important;
}
#page-reports .ych29-my-matches::before {
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url('./assets/yella-challenges-match-board-v12109.webp') center/cover no-repeat;
  opacity:.16;mix-blend-mode:screen;
}
#page-reports .ych29-my-matches > * {position:relative;z-index:1;}
#page-reports .ych29-matches-top {min-width:0;}
#page-reports .ych29-matches-top > div {min-width:0;}

/* New approved banner: one natural-aspect responsive image, not a stretched wallpaper. */
#page-reports .ych29-arena { min-width:0;overflow:visible; }
#page-reports .ych30-arena-scene {
  display:block;min-height:0!important;overflow:hidden;
  border-radius:19px 19px 0 0;
  background:#031a27!important;
}
#page-reports .ych30-arena-scene::before { display:none!important; }
#page-reports .ych30-art-action {
  display:block;width:100%;max-width:100%;margin:0;padding:0;border:0;
  background:#021824;line-height:0;cursor:pointer;text-align:left;
}
#page-reports .ych30-art-action img {
  display:block;width:100%;height:auto;max-width:100%;object-fit:contain;
  aspect-ratio:2172 / 724; /* preserves headline, fishermen and rounded artwork edges */
}
#page-reports .ych30-art-action:hover {filter:brightness(1.07)}
#page-reports .ych30-art-action:focus-visible {outline:3px solid #ffd871!important;outline-offset:-5px;}

/* Real (accessible) Send Challenge button — not a 3:1 JPEG stretched to 5:1. */
#page-reports .ych29-mate-form .yella-h2h-primary.ych29-send {
  border:1px solid #ffe7a0!important;
  background:linear-gradient(180deg,#ffe691 0%,#f5c34b 46%,#d99b20 100%)!important;
  border-radius:11px!important;
  box-shadow:inset 0 2px 0 #ffedb4,inset 0 -2px 0 #ab7b1a,0 5px 20px #d5a12e44!important;
  text-shadow:0 1px 0 #ffe7a8;
}
#page-reports .ych29-mate-form .yella-h2h-primary.ych29-send:hover {filter:brightness(1.07)}

/* Give the jumping fish its own space instead of letting it cover the weekly copy. */
@media (max-width:790px) {
  #page-reports .ych29-weekly {min-height:unset;display:flex;flex-direction:column;background:#061d2a!important;}
  #page-reports .ych29-weekly::before {display:none;}
  #page-reports .ych29-weekly::after {
    content:"";display:block;order:-1;position:relative;height:190px;flex:none;
    background:#062533 url('./assets/yella-challenges-weekly-fish-v12109.webp') 66% 48%/cover no-repeat;
    border-bottom:1px solid rgba(100,201,236,.22);
  }
  #page-reports .ych29-ribbon {align-self:flex-start;order:0;margin:0 0 0 15px;transform:translateY(-15px);}
  #page-reports .ych29-week-content {order:1;width:100%;padding:0 16px 17px;}
  #page-reports .ych29-week-content > p{max-width:100%;}
  #page-reports .ych29-week-board {min-height:220px;}
  #page-reports .ych29-board-empty{min-height:125px;}
  #page-reports .ych29-my-matches::before {background-size:cover;}
}
@media (max-width:600px) {
  #page-reports .ych29-hero{background-position:70% center;}
  #page-reports .ych29-weekly::after{height:175px;background-position:69% center;}
  #page-reports .ych29-weekly h3{font-size:clamp(24px,7vw,30px);}
  #page-reports .ych29-week-board {padding:17px!important;border-radius:15px!important;}
  #page-reports .ych29-week-board::before {inset:7px;border-radius:8px;}
  #page-reports .ych29-week-board::after {inset:5px;border-radius:9px;}
  #page-reports .ych29-week-board h3 {margin:2px 0 12px;font-size:19px;}
  #page-reports .ych29-board-empty {min-height:122px;padding:14px;}
  #page-reports .ych30-arena-scene {border-radius:12px 12px 0 0;}
  #page-reports .ych30-art-action img {aspect-ratio:2172 / 724;height:auto;object-fit:contain;}
  #page-reports .ych29-mate-form{padding:15px 14px 8px;}
  #page-reports .ych29-my-matches {padding:18px 13px!important;}
}
@media (max-width:370px){
  #page-reports .ych29-weekly::after{height:150px;}
  #page-reports .ych29-week-content{padding:0 12px 16px;}
  #page-reports .ych29-week-board{padding:14px!important;}
  #page-reports .ych29-matches-top {gap:7px;}
  #page-reports .ych29-my-matches .yella-h2h-refresh{padding:8px!important;white-space:nowrap;}
}
@media(prefers-reduced-motion:reduce){#page-reports .ych30-art-action{transition:none!important}}
