/* Shop-only theme discovery. Artwork supplied as optimized 256px WebPs. */
#goober-confetti .gc-theme-toggle[hidden],#goober-confetti .gc-theme-picker[hidden],#goober-confetti .gc-theme-choice[hidden],#goober-confetti .gc-theme-no-matches[hidden] { display: none; }
/* Keep the forthcoming button's exact box while its event handlers load. */
html.goober-catalog-js #goober-confetti .gc-theme-toggle[hidden] { display: inline-flex; visibility: hidden; }
#goober-confetti .gc-theme-toggle-arrow { display: grid; place-items: center; flex-shrink: 0; }
#goober-confetti .gc-theme-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
#goober-confetti .gc-theme-picker { padding: 28px 0 30px; border-bottom: 1px solid #39190f24; }
#goober-confetti .gc-theme-picker-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
#goober-confetti .gc-theme-picker h2 { color: #39190f; font: 700 clamp(26px,3vw,38px)/1.15 var(--display); letter-spacing: -.035em; margin: 0; }
#goober-confetti .gc-theme-picker-heading p { margin: 8px 0 0; font-size: 14px; }
#goober-confetti .gc-theme-find { display: grid; gap: 6px; width: min(100%,300px); font-size: 12px; font-weight: 700; }
#goober-confetti .gc-theme-find input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #39190f40; border-radius: 9px; background: #fff; color: #39190f; font: 400 16px/1.4 var(--body); }
#goober-confetti .gc-theme-choice-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 22px 16px; }
#goober-confetti .gc-theme-choice { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 12px 6px; border: 1px solid transparent; border-radius: 14px; color: #39190f; font-size: 13px; font-weight: 600; text-align: center; }
#goober-confetti .gc-theme-choice:hover { background: #e1e2c350; border-color: #89a77560; }
#goober-confetti .gc-theme-choice-art { position: relative; display: block; width: 96px; height: 96px; max-width: 100%; }
#goober-confetti .gc-theme-choice-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
#goober-confetti .gc-theme-picker-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 30px; }
#goober-confetti .gc-theme-picker-actions a { display: inline-flex; align-items: center; gap: 8px; color: #39190f; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
#goober-confetti .gc-theme-picker-done { padding: 11px 18px; border: 1px solid #39190f50; border-radius: 999px; color: #39190f; background: transparent; font: 600 13px/1.4 var(--body); }
#goober-confetti .gc-theme-no-matches { padding: 24px 0; font-size: 16px; }
#goober-confetti .gc-theme-no-matches a { text-decoration: underline; }
@media (max-width: 1050px) {
  #goober-confetti .gc-theme-choice-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  #goober-confetti .gc-theme-picker-heading { gap: 18px; margin-bottom: 18px; }
  #goober-confetti .gc-theme-find { width: 100%; }
  #goober-confetti .gc-theme-choice-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 8px; }
  #goober-confetti .gc-theme-choice { padding: 10px 3px; font-size: 12px; gap: 8px; }
  #goober-confetti .gc-theme-choice-art { width: 66px; height: 66px; }
}
@media (max-width: 360px) {
  #goober-confetti .gc-theme-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}



#goober-confetti .gc-theme-toggle:hover { background: #f7f6f2; }
/* Product artwork anchored to the wave, like Happy Table Bingo's shop banner. */
#goober-confetti .gc-shop-hero { position: relative; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: end; gap: 40px; min-height: 0; padding: 12px var(--pad) 0; overflow: visible; text-align: left; }
#goober-confetti .gc-shop-hero-copy { position: relative; z-index: 2; align-self: center; padding: 16px 0 34px; }
#goober-confetti .gc-shop-hero h1 { margin: 0; font-size: clamp(48px,5.5vw,78px); line-height: 1.04; }
#goober-confetti .gc-shop-hero-photo { min-width: 0; width: 100%; max-width: 540px; aspect-ratio: 1000 / 660; justify-self: center; display: flex; justify-content: center; align-items: flex-start; }
#goober-confetti .gc-shop-kids { display: block; width: 100%; max-width: 540px; height: auto; flex-shrink: 0; object-fit: contain; transform: translateY(-30px); }
#goober-confetti .gc-shop-hero-wave { z-index: 6; }
#goober-confetti .gc-theme-toggle-wrap { position: relative; z-index: 3; display: flex; justify-content: flex-start; margin: 24px 0 0; }
#goober-confetti .gc-theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 14px 24px; border: 0; border-radius: 999px; font: 700 17px/1.3 var(--body); background: #fff; color: #39190f; box-shadow: 0 4px 16px #39190f20; cursor: pointer; }
#goober-confetti .gc-theme-toggle-arrow svg { display: block; width: 24px; height: 24px; transition: transform .2s ease; }
#goober-confetti .gc-theme-toggle[aria-expanded=false] .gc-theme-toggle-arrow { animation: gc-theme-arrow-nudge 2.8s ease-in-out infinite; }
#goober-confetti .gc-theme-toggle:focus-visible { outline: 3px solid #39190f; outline-offset: 5px; }
@keyframes gc-theme-arrow-nudge { 0%,60%,100% { transform: translateY(0); } 72% { transform: translateY(5px); } 84% { transform: translateY(0); } 92% { transform: translateY(3px); } }
@media (max-width: 760px) {
  #goober-confetti .gc-shop-hero { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  #goober-confetti .gc-shop-hero-copy { padding: 0; }
  #goober-confetti .gc-shop-hero h1 { font-size: clamp(40px,9.5vw,62px); }
  #goober-confetti .gc-shop-hero-photo { width: calc(100% + 20px); max-width: 480px; margin-inline: -10px; }
  #goober-confetti .gc-shop-kids { max-width: 480px; transform: translateY(-12px); }
  #goober-confetti .gc-theme-toggle-wrap { margin-top: 20px; }
  #goober-confetti .gc-theme-toggle { min-height: 50px; padding: 12px 20px; border-radius: 14px; font-size: 16px; }
  #goober-confetti .gc-theme-toggle-arrow svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #goober-confetti .gc-theme-toggle[aria-expanded=false] .gc-theme-toggle-arrow { animation: none; }
  #goober-confetti .gc-theme-toggle-arrow svg { transition: none; }
}

/* White rotating rays adapted from Happy Table Bingo's homepage hero. */
#goober-confetti .gc-shop-hero-photo { position: relative; isolation: isolate; z-index: 5; clip-path: inset(-60px -20px 0); }
#goober-confetti .gc-shop-kids { position: absolute; top: 0; left: 0; z-index: 1; }
#goober-confetti .gc-shop-sun-rays { --ray-size: max(1100px,calc(100vw + 300px)); position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to right,transparent 24%,#0005 46%,#000 68%); }
#goober-confetti .gc-shop-sun-rays::before { content: ''; position: absolute; width: var(--ray-size); height: var(--ray-size); left: calc(var(--ray-x,77%) - var(--ray-size) / 2); top: calc(var(--ray-y,32%) - var(--ray-size) / 2); background: repeating-conic-gradient(from -8deg,#ffffff26 0deg 11deg,transparent 11deg 29deg,#ffffff14 29deg 41deg,transparent 41deg 60deg); animation: gc-shop-ray-turn 120s linear infinite; animation-play-state: var(--ray-play,running); }
@keyframes gc-shop-ray-turn { to { transform: rotate(1turn); } }
@media (max-width: 760px) {
  #goober-confetti .gc-shop-sun-rays { --ray-size: max(900px,145vw); mask-image: linear-gradient(to bottom,transparent 27%,#000 62%); }
  #goober-confetti .gc-shop-sun-rays::before { left: calc(var(--ray-x,50%) - var(--ray-size) / 2); top: calc(var(--ray-y,70%) - var(--ray-size) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  #goober-confetti .gc-shop-sun-rays::before { animation: none; }
}
#goober-confetti .gc-shop-theme-intro { max-width: 46ch; margin: 20px 0 0; color: #23351f; font-size: clamp(15px,1.4vw,18px); line-height: 1.6; }

/* Theme collections spotlight their existing lightweight icon. */
#goober-confetti .gc-shop-hero-photo--icon { height: 360px; aspect-ratio: auto; align-items: center; padding-bottom: 36px; clip-path: none; }
#goober-confetti .gc-shop-theme-art { position: relative; z-index: 1; width: 320px; max-width: 90%; aspect-ratio: 1; animation: gc-theme-icon-float 6s ease-in-out infinite; animation-play-state: var(--hero-art-play,running); }
#goober-confetti .gc-shop-theme-icon { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes gc-theme-icon-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@media (max-width:760px) {
  #goober-confetti .gc-shop-hero-photo--icon { width: 100%; height: 250px; margin-inline: 0; padding-bottom: 32px; }
  #goober-confetti .gc-shop-theme-art { width: 200px; }
}
@media (prefers-reduced-motion:reduce) {
  #goober-confetti .gc-shop-theme-art { animation: none; }
}

/* One server-rendered palette per collection; no color-detection script needed. */
#goober-confetti .gc-shop-hero { background: var(--theme-hero-bg,#89a775); }
#goober-confetti .gc-shop-hero h1 { color: var(--theme-hero-heading,#fff); }
#goober-confetti .gc-shop-theme-intro { color: var(--theme-hero-body,#23351f); }
#goober-confetti .gc-shop-wave-outline { stroke: var(--theme-hero-wave,#e1e2c3); }
