/* PBM BREAKS — signature lighting, seasonal atmosphere & live drop board.
   The legacy theme key "crystal" is retained for backend compatibility;
   no crystal artwork or invented league branding appears on the site. */
:root {
  --pbm-glint:#70fff3;
  --pbm-amber:#ffc978;
  --pbm-aurora-a:rgba(0,255,242,.16);
  --pbm-aurora-b:rgba(165,72,235,.16);
  --pbm-aurora-c:rgba(32,94,154,.10);
}
html[data-theme="halloween"]{
  --pbm-glint:#ff9a50;
  --pbm-amber:#c99bff;
  --pbm-aurora-a:rgba(255,107,38,.18);
  --pbm-aurora-b:rgba(121,45,158,.16);
  --pbm-aurora-c:rgba(71,12,55,.18);
}
html[data-theme="christmas"]{
  --pbm-glint:#68f5bc;
  --pbm-amber:#ffce85;
  --pbm-aurora-a:rgba(36,216,152,.16);
  --pbm-aurora-b:rgba(223,54,82,.13);
  --pbm-aurora-c:rgba(61,116,128,.11);
}
html[data-theme="thanksgiving"]{
  --pbm-glint:#ffb85a;
  --pbm-amber:#ffd889;
  --pbm-aurora-a:rgba(242,150,48,.18);
  --pbm-aurora-b:rgba(196,52,44,.15);
  --pbm-aurora-c:rgba(120,104,30,.13);
}
html[data-theme="birthday"]{
  --pbm-glint:#ff90d4;
  --pbm-amber:#ffd77e;
  --pbm-aurora-a:rgba(255,95,189,.18);
  --pbm-aurora-b:rgba(133,67,236,.16);
  --pbm-aurora-c:rgba(244,160,75,.10);
}

/* The seasonal showcase is confined to the header, so it scrolls away.
   Local vectors and still gradients keep the atmosphere crisp on phones. */
#pbm-scene {
  position:absolute;inset:0 0 auto;height:560px;
  pointer-events:none;overflow:hidden;z-index:0;isolation:isolate;
}
#pbm-scene .pbm-sky {
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 40% 58% at 12% 28%,var(--pbm-aurora-a),transparent 78%),
    radial-gradient(ellipse 40% 58% at 88% 28%,var(--pbm-aurora-b),transparent 78%),
    radial-gradient(ellipse 50% 45% at 50% 25%,var(--pbm-aurora-c),transparent 82%);
}
#pbm-scene .pbm-orbit {
  position:absolute;width:510px;height:510px;top:-185px;left:calc(50% - 255px);
  border:1px solid rgba(var(--glow-rgb),.12);border-radius:50%;
  box-shadow:0 0 0 19px rgba(var(--glow-rgb),.025),0 0 0 42px rgba(var(--spark-rgb),.03);
  background:radial-gradient(circle at 50% 50%,transparent 18%,rgba(var(--glow-rgb),.035) 18.2%,transparent 18.8%);
}
#pbm-scene .pbm-stars {position:absolute;inset:0}
#pbm-scene .pbm-star {
  position:absolute;width:3px;height:3px;background:#fff1cd;border-radius:50%;opacity:.45;
}
#pbm-scene .pbm-star:nth-child(3n) {
  width:10px;height:10px;border-radius:0;background:var(--pbm-amber);
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
}
#pbm-scene .pbm-art {
  position:absolute;top:100px;width:clamp(150px,19vw,255px);opacity:.94;
}
#pbm-scene .pbm-art:empty {display:none}
#pbm-scene .pbm-art::before {
  content:"";position:absolute;inset:15% 4%;border-radius:50%;z-index:-1;
  background:radial-gradient(circle,var(--pbm-aurora-a),transparent 72%);
  border:1px solid rgba(var(--glow-rgb),.16);
}
#pbm-scene .pbm-left {left:clamp(4px,4vw,90px);transform:rotate(-8deg)}
#pbm-scene .pbm-right {right:clamp(4px,4vw,90px);transform:rotate(8deg)}
#pbm-scene svg {display:block;width:100%;height:auto}
#pbm-scene[data-season="crystal"] .pbm-orbit {display:none}
#pbm-scene[data-season="crystal"] .pbm-art {display:none}

@media(max-width:768px),(hover:none),(pointer:coarse) {
  #decor {display:none}
  .garland {animation:none!important;filter:none!important}
}

/* Readable content keeps its normal hierarchy. The season colors the stage. */
html:is([data-theme="halloween"],[data-theme="christmas"],[data-theme="birthday"],[data-theme="thanksgiving"]) main {
  border-color:rgba(var(--glow-rgb),.32);
  background:linear-gradient(145deg,rgba(var(--spark-rgb),.045),transparent 32%),rgba(5,5,14,.95);
}
html:is([data-theme="halloween"],[data-theme="christmas"],[data-theme="birthday"],[data-theme="thanksgiving"]) .section-header {
  border-color:rgba(var(--glow-rgb),.4);
  background:linear-gradient(110deg,rgba(var(--glow-rgb),.11),rgba(var(--spark-rgb),.1));
  box-shadow:inset 0 1px 0 #ffffff12,0 9px 24px #0003;
}
html:is([data-theme="halloween"],[data-theme="christmas"],[data-theme="birthday"],[data-theme="thanksgiving"]) .hero-status-card {
  background:linear-gradient(135deg,rgba(var(--glow-rgb),.13),transparent 70%),#0b0d1b;
}
html[data-theme="christmas"] .hero-status-card::after {
  height:3px;background:repeating-linear-gradient(120deg,#e9697b 0 12px,#fff0cc 12px 24px,#65d4b0 24px 36px);
  box-shadow:none;
}
html[data-theme="halloween"] .hero-status-card::after {background:linear-gradient(90deg,transparent,#c8a3ff,#ffad55,transparent)}
html[data-theme="birthday"] .hero-status-card::after {background:linear-gradient(90deg,#ff9ad8,#ffe094,#98e9ed,#c4a4ff)}
html[data-theme="thanksgiving"] .hero-status-card::after {background:linear-gradient(90deg,#c8362f,#f08a2e,#f7c45a,#8fae3a,#c8362f)}

/* Two slow transforms only, and only on desktop. No flashing or blur layers. */
@media(min-width:1000px) and (hover:hover) and (prefers-reduced-motion:no-preference) {
  #pbm-scene .pbm-left {animation:pbm-art-left 12s ease-in-out infinite}
  #pbm-scene .pbm-right {animation:pbm-art-right 14s ease-in-out infinite}
}
@keyframes pbm-art-left {0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-8px) rotate(-5deg)}}
@keyframes pbm-art-right {0%,100%{transform:translateY(0) rotate(8deg)}50%{transform:translateY(-8px) rotate(5deg)}}

/* Dual live + upcoming drop status. Both derive from real storefront items. */
.hero-status-board{
  width:min(900px,calc(100vw - 36px));
  max-width:100%;margin:0 auto;position:relative;z-index:3;
  color:#fff;
}
.hero-status-row{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
  align-items:stretch;gap:13px;
}
.hero-status-card{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;
  width:100%;min-width:0;min-height:100px;text-align:left;
  overflow:hidden;border-radius:19px;border:1px solid rgba(var(--glow-rgb),.36);
  padding:16px 19px 16px 20px;
  background:linear-gradient(132deg,rgba(11,33,43,.9),rgba(7,10,25,.94) 60%,rgba(14,19,35,.94));
  box-shadow:0 16px 36px rgba(0,0,0,.4),0 0 30px rgba(var(--glow-rgb),.085),inset 0 1px 0 rgba(255,255,255,.09);
  color:#fff;font-family:Inter,system-ui,sans-serif;
  cursor:pointer;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
  appearance:none;-webkit-appearance:none;
}
.hero-status-card::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(circle at 0% 0%,rgba(var(--glow-rgb),.14),transparent 55%);
  opacity:.8;
}
.hero-status-card::after{
  content:"";position:absolute;top:0;left:13%;right:13%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(var(--glow-rgb),.8),transparent);
  box-shadow:0 0 18px rgba(var(--glow-rgb),.28);pointer-events:none;
}
.hero-status-card>*{position:relative;z-index:1}
.hero-status-card:hover,.hero-status-card:focus-visible{
  transform:translateY(-3px);border-color:rgba(var(--glow-rgb),.68);
  box-shadow:0 19px 44px #0009,0 0 29px rgba(var(--glow-rgb),.17);
}
.hero-status-card:focus-visible{outline:2px solid var(--pbm-glint);outline-offset:3px}
.hero-status-card.hero-upcoming{
  border-color:rgba(255,204,113,.32);
  background:linear-gradient(132deg,rgba(42,27,23,.92),rgba(19,16,30,.93) 62%,rgba(25,18,40,.91));
  box-shadow:0 16px 36px rgba(0,0,0,.4),0 0 26px rgba(255,187,109,.085),inset 0 1px 0 rgba(255,255,255,.09);
}
.hero-status-card.hero-upcoming::before{background:radial-gradient(circle at 0% 0%,rgba(255,185,98,.16),transparent 58%)}
.hero-status-card.hero-upcoming::after{background:linear-gradient(90deg,transparent,rgba(255,199,107,.78),transparent);box-shadow:0 0 16px rgba(255,199,107,.25)}
.hero-status-card.hero-upcoming:hover,.hero-status-card.hero-upcoming:focus-visible{border-color:rgba(255,205,122,.65);box-shadow:0 19px 42px #0009,0 0 29px #ffc87526}
.hero-status-label{
  display:inline-flex;align-items:center;gap:8px;
  font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  font-weight:900;color:var(--pbm-glint);line-height:1.2;margin-bottom:9px;
}
.hero-upcoming .hero-status-label{color:var(--pbm-amber)}
.hero-status-dot{
  width:8px;height:8px;border-radius:50%;flex-shrink:0;
  background:var(--pbm-glint);
  box-shadow:0 0 9px 2px var(--pbm-glint),0 0 17px rgba(var(--glow-rgb),.4);
}
.hero-live .hero-status-dot{animation:pbm-live-dot 2.3s ease-in-out infinite}
.hero-upcoming .hero-status-dot{width:8px;height:8px;background:transparent;border:2px solid var(--pbm-amber);box-shadow:0 0 9px rgba(255,196,111,.4)}
.hero-status-title{
  display:block;width:100%;color:#fff;font:800 clamp(15px,1.45vw,17px)/1.35 Inter,system-ui,sans-serif;
  letter-spacing:-.02em;overflow-wrap:anywhere;
  text-shadow:0 1px 8px #0009;
}
.hero-status-sub{
  display:block;margin-top:8px;color:#b9c9d5;
  font:600 12px/1.4 Inter,system-ui,sans-serif;letter-spacing:.01em;
}
.hero-upcoming .hero-status-sub{color:#e6cda9}
.hero-countdown{
  display:inline-block;margin-left:8px;color:#ffdc9e;
  font:900 11px/1.4 Inter,system-ui,sans-serif;
  font-variant-numeric:tabular-nums;
}
.hero-status-empty{
  max-width:630px;margin:0 auto;
  padding:13px 18px;border-radius:999px;
  border:1px solid rgba(var(--glow-rgb),.3);
  background:rgba(6,15,25,.82);color:#d7e0ee;
  font:700 13px/1.5 Inter,system-ui,sans-serif;text-align:center;
  box-shadow:0 8px 25px rgba(0,0,0,.35);
}
@keyframes pbm-live-dot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.85)}}

@media(max-width:768px){
  #decor{display:none}
  #pbm-scene{height:400px}
  #pbm-scene .pbm-art{width:118px;top:88px;opacity:.58}
  #pbm-scene .pbm-left{left:-25px}
  #pbm-scene .pbm-right{right:-25px}
  #pbm-scene .pbm-orbit{width:360px;height:360px;left:calc(50% - 180px);top:-100px}
  .hero-status-board{width:min(96vw,580px)}
  .hero-status-row{gap:9px}
  .hero-status-card{min-height:92px;padding:13px 15px;border-radius:16px}
  .hero-status-label{font-size:9px;margin-bottom:7px}
  .hero-status-title{font-size:14px}
  .hero-status-sub{font-size:11px;margin-top:6px}
}
@media(max-width:480px){
  #pbm-scene .pbm-art{width:104px;top:80px;opacity:.5}
  .hero-status-row{grid-template-columns:1fr;gap:8px}
  .hero-status-card{min-height:79px}
}
@media(hover:none),(pointer:coarse){
  .hero-status-card{backdrop-filter:none;-webkit-backdrop-filter:none}
  .hero-status-card:hover{transform:none}
}
@media(prefers-reduced-motion:reduce){
  #pbm-scene *,header #site-title,.hero-status-card,.hero-status-dot{animation:none!important;transition:none!important}
}


/* Premium in-card upcoming break navigation: no controls below the card. */
.hero-status-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));align-items:stretch;gap:14px}
.hero-status-row>.hero-live{min-height:160px}
.hero-status-row>.hero-live .hero-status-title{font-size:clamp(17px,1.55vw,20px)}
.hero-upcoming-carousel{position:relative;min-width:0;display:flex;align-items:stretch}
.hero-upcoming-frame{position:relative;display:flex;flex:1;min-width:0}
.hero-upcoming-shell.hero-status-card{
  min-height:160px;height:100%;flex:1;
  padding:17px 59px 42px 60px;justify-content:flex-start;
  border-radius:21px;
  background:linear-gradient(135deg,rgba(36,25,28,.91),rgba(17,16,33,.95) 55%,rgba(9,10,24,.97));
  border:1px solid rgba(255,205,127,.3);
  box-shadow:0 16px 36px #0007,inset 0 1px 0 #ffffff15,0 0 25px #ffc16f0d;
}
.hero-upcoming-shell .hero-status-label{margin-bottom:10px;letter-spacing:.12em}
.hero-upcoming-shell .hero-status-title{font-size:clamp(17px,1.55vw,20px);line-height:1.28;margin-bottom:5px}
.hero-upcoming-shell .hero-status-sub{font-size:12px;line-height:1.45;color:#d9c5aa}
.hero-upcoming-shell .hero-countdown{color:#ffe0aa}
.hero-upcoming-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  display:grid;place-items:center;width:34px;height:42px;
  border:1px solid rgba(255,218,162,.24);border-radius:12px;
  background:rgba(255,255,255,.055);color:#fff2d8;
  font:700 27px/1 Inter,system-ui,sans-serif;
  cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  transition:background .2s,border-color .2s,box-shadow .2s;
}
.hero-upcoming-arrow.left{left:13px}
.hero-upcoming-arrow.right{right:13px}
.hero-upcoming-arrow:hover{background:rgba(255,219,158,.18);border-color:rgba(255,223,170,.7);box-shadow:0 0 17px #ffd69828}
.hero-upcoming-arrow:focus-visible,.hero-carousel-dot:focus-visible{outline:2px solid #ffd59a;outline-offset:3px}
.hero-upcoming-meta{
  position:absolute;bottom:12px;left:60px;right:59px;z-index:3;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  pointer-events:none;
}
.hero-upcoming-count{color:#d7c3a3;font:800 10px/1.3 Inter,system-ui,sans-serif;letter-spacing:.08em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hero-carousel-dots{display:flex;align-items:center;justify-content:flex-end;gap:6px;pointer-events:auto}
.hero-carousel-dot{
  display:block;flex:none;width:7px;height:7px;border:0;padding:0;
  border-radius:100px;background:rgba(255,219,172,.3);cursor:pointer;
  transition:width .2s,background .2s,box-shadow .2s;
}
.hero-carousel-dot.selected{width:20px;background:#ffce83;box-shadow:0 0 11px #ffce8361}
@media(max-width:768px){
 .hero-status-row>.hero-live,.hero-upcoming-shell.hero-status-card{min-height:146px}
 .hero-upcoming-shell.hero-status-card{padding:15px 48px 39px}
 .hero-upcoming-meta{left:48px;right:48px;bottom:10px}
 .hero-upcoming-arrow{width:29px;height:38px;border-radius:10px}
 .hero-upcoming-arrow.left{left:9px}
 .hero-upcoming-arrow.right{right:9px}
}
@media(max-width:480px){
 .hero-status-row{grid-template-columns:1fr;gap:10px}
 .hero-status-row>.hero-live,.hero-upcoming-shell.hero-status-card{min-height:128px}
 .hero-upcoming-shell.hero-status-card{padding:14px 47px 36px}
 .hero-upcoming-meta{left:47px;right:47px;bottom:9px}
 .hero-upcoming-shell .hero-status-title{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.hero-upcoming-arrow,.hero-carousel-dot{transition:none!important}}

/* Unified, centered break highlights — live and carousel (mobile first). */
.hero-status-row > .hero-live,
.hero-upcoming-shell.hero-status-card {
  box-sizing:border-box;
  width:100%;
  min-height:148px;
  padding:22px 26px 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  border-radius:21px;
}
.hero-status-row > .hero-live .hero-status-label,
.hero-upcoming-shell .hero-status-label {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  width:100%;
  margin:0;
  font-size:12px;
  line-height:1.35;
  letter-spacing:.12em;
}
.hero-status-row > .hero-live .hero-status-title,
.hero-upcoming-shell .hero-status-title {
  display:block;
  width:100%;
  margin:0;
  font-size:clamp(19px,3.8vw,24px);
  line-height:1.24;
  font-weight:800;
  overflow-wrap:anywhere;
}
.hero-status-row > .hero-live .hero-status-sub,
.hero-upcoming-shell .hero-status-sub {
  display:block;
  width:100%;
  margin:0;
  font-size:clamp(12px,2.6vw,14px);
  line-height:1.5;
  text-align:center;
  overflow-wrap:break-word;
}
.hero-upcoming-shell .hero-countdown {text-align:center}
@media(max-width:768px) {
  .hero-status-row > .hero-live,
  .hero-upcoming-shell.hero-status-card {min-height:136px;padding:18px 24px 28px}
  .hero-upcoming-shell.hero-status-card {padding-left:49px;padding-right:49px}
}
@media(max-width:480px) {
  .hero-status-row {gap:12px}
  .hero-status-row > .hero-live,
  .hero-upcoming-shell.hero-status-card {min-height:126px;padding:16px 20px 27px;gap:7px}
  .hero-upcoming-shell.hero-status-card {padding-left:48px;padding-right:48px}
  .hero-status-row > .hero-live .hero-status-title,
  .hero-upcoming-shell .hero-status-title {font-size:20px}
  .hero-status-row > .hero-live .hero-status-sub,
  .hero-upcoming-shell .hero-status-sub {font-size:12px}
}

/* Consistent, centered break cards (live and carousel) */
.hero-status-row .hero-status-card {
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:0;
  padding:18px 22px;
  min-height:132px;
}
.hero-status-row .hero-status-label {
  justify-content:center;
  align-self:center;
  width:100%;
  margin-bottom:10px;
  font-size:11px;
  line-height:1.35;
}
.hero-status-row .hero-status-title {
  text-align:center;
  font-size:clamp(17px,2vw,22px);
  line-height:1.25;
  font-weight:800;
  max-width:100%;
}
.hero-status-row .hero-status-sub {
  width:100%;
  text-align:center;
  font-size:12px;
  line-height:1.5;
  margin-top:9px;
  overflow-wrap:break-word;
}
.hero-status-row .hero-upcoming-frame,
.hero-status-row .hero-upcoming-carousel {min-width:0;width:100%}
@media(max-width:600px) {
  .hero-status-row .hero-status-card {
    min-height:118px;
    padding:17px 22px;
    border-radius:18px;
  }
  .hero-status-row .hero-status-label {font-size:10px;margin-bottom:8px}
  .hero-status-row .hero-status-title {font-size:19px}
  .hero-status-row .hero-status-sub {font-size:12px;margin-top:7px}
}

/* Pause even the small desktop decorations when the page is not visible. */
#pbm-scene[data-paused] * {animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce) {
  #pbm-scene *,header #site-title {animation:none!important;transition:none!important}
}
