/* The brand and these two outer seams share a slow 11.7s spectrum rhythm.
   All control lettering and icons use their original white artwork. */
:root {
  --control-spectrum: linear-gradient(112deg,#ff265c,#ffb638 17%,#b4ff56 32%,#23ffc8 47%,#38b6ff 63%,#a94cff 80%,#ff265c);
}
@keyframes control-spectrum-flow {
  0% { background-position: 0% 50%; }
  38% { background-position: 38% 35%; }
  64% { background-position: 64% 65%; }
  100% { background-position: 100% 50%; }
}
@keyframes control-spectrum-breathe {
  0%,8%,100% { opacity: .18; }
  19% { opacity: .92; }
  34% { opacity: .4; }
  48% { opacity: .98; }
  61% { opacity: .2; }
  73% { opacity: .88; }
  89% { opacity: .18; }
}
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  body[data-section="menu"] #menu-options .menu-option::before,
  body[data-section="shop"] #add::before,
  body[data-section="shop"] .size-option[aria-pressed="true"]::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    padding: 1px; pointer-events: none;
    background-image: var(--size-spectrum,var(--control-spectrum)); background-size: 300% 200%;
    animation: control-spectrum-flow 11.7s ease-in-out infinite,control-spectrum-breathe 11.7s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
  }
}
/* Selected sizes have their own hue family. Labels remain white; no underline. */
body[data-section="shop"] .size-option[value="S"] {
  --size-accent: #ff547f;
  --size-spectrum: linear-gradient(112deg,#ff2452,#ff93be 25%,#e15bff 50%,#ff476f 75%,#ff2452);
}
body[data-section="shop"] .size-option[value="M"] {
  --size-accent: #8be65a;
  --size-spectrum: linear-gradient(112deg,#43dd89,#beff6c 25%,#f0ef87 50%,#6de7b0 75%,#43dd89);
}
body[data-section="shop"] .size-option[value="L"] {
  --size-accent: #66bdff;
  --size-spectrum: linear-gradient(112deg,#438dff,#60dfff 25%,#b0f5ff 50%,#6a9dff 75%,#438dff);
}
body[data-section="shop"] .size-option[value="XL"] {
  --size-accent: #cbd1da;
  --size-spectrum: linear-gradient(112deg,#8c97a6,#f9fcff 25%,#adb9c7 50%,#fff 75%,#8c97a6);
}
body[data-section="shop"] .size-option[aria-pressed="true"] { border-color: var(--size-accent); }
body[data-section="shop"] .size-option[aria-pressed="true"]::before {
  animation: control-spectrum-flow 7.8s ease-in-out infinite; opacity: .95;
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  body[data-section="menu"] #menu-options .menu-option::before,
  body[data-section="shop"] #add::before { display: none; }
  body[data-section="shop"] .size-option[aria-pressed="true"]::before { animation: none; }
}

@media (forced-colors: active) {
  body[data-section="shop"] .size-option[aria-pressed="true"]::before { display: none; }
  body[data-section="shop"] .size-option[aria-pressed="true"] { border-color: Highlight; }
}
