/* neobrutalistcomponents v1.3.0 — theme: y2k */
@layer nbc.tokens, nbc.theme, nbc.base, nbc.components, nbc.flourish;

/* tokens.css */
@layer nbc.theme {
/* ============================================================
   Y2K — holographic trading-card energy.
   Frutiger-Aero sky, holo gradient fills, chromatic-aberration
   shadows (cyan and magenta split, then an indigo drop), pill
   buttons, a -0.6deg tilt, bouncy motion. Sixtyfour scanline
   display, M PLUS Rounded body, VT323 for mono.
   Dark: midnight holo — the foil glows on deep indigo.
   ============================================================ */
[data-theme="y2k"] {
  --nbc-scheme: light;

  --nbc-font-sans: 'M PLUS Rounded 1c', 'Nunito', system-ui, sans-serif;
  --nbc-font-display: 'Sixtyfour', 'VT323', ui-monospace, monospace;
  --nbc-font-mono: 'VT323', ui-monospace, monospace;
  --nbc-weight-body: 500;
  --nbc-weight-label: 800;
  --nbc-weight-display: 400;
  --nbc-label-transform: none;
  --nbc-label-spacing: 0.01em;
  --nbc-display-transform: none;
  --nbc-display-spacing: -0.02em;

  --nbc-bg: light-dark(#e6efff, #0f0a2a);
  --nbc-fg: light-dark(#1a0a3e, #f1eaff);
  --nbc-fg-muted: light-dark(#54447a, #b9abdf);
  --nbc-surface: light-dark(#ffffff, #1b1342);
  --nbc-surface-alt: light-dark(#fff0fb, #271a5c);
  --nbc-border-color: light-dark(#1a0a3e, #c9b8ff);

  --nbc-primary: #ff6ec7;
  --nbc-primary-fg: #1a0a3e;
  --nbc-accent: light-dark(#7c3aed, #a78bfa);
  --nbc-accent-fg: light-dark(#ffffff, #1a0a3e);

  --nbc-info: light-dark(#0a6fb8, #7ee8fa);
  --nbc-info-fg: light-dark(#ffffff, #1a0a3e);
  --nbc-success: light-dark(#0f7b55, #6ff2c0);
  --nbc-success-fg: light-dark(#ffffff, #1a0a3e);
  --nbc-warning: #ffd86b;
  --nbc-warning-fg: #1a0a3e;
  --nbc-danger: light-dark(#d4145a, #ff7aa8);
  --nbc-danger-fg: light-dark(#ffffff, #1a0a3e);
  --nbc-focus: light-dark(#d4145a, #ff7aa8);

  --nbc-primary-fill: linear-gradient(135deg, #ff6ec7 0%, #a78bfa 25%, #7ee8fa 50%, #ffd86b 75%, #ff6ec7 100%);
  --nbc-danger-fill: linear-gradient(135deg, light-dark(#d4145a, #ff7aa8), light-dark(#b5179e, #ff9fdc));
  --nbc-surface-fill: linear-gradient(
    135deg,
    light-dark(#fff0f9, #2a1650) 0%,
    light-dark(#f2edff, #1f1850) 35%,
    light-dark(#e9fbff, #13224d) 65%,
    light-dark(#fff8e3, #2a2143) 100%
  );
  --nbc-texture: none;

  --nbc-border-width: 2px;
  --nbc-border-style: solid;
  --nbc-radius: 14px;
  --nbc-radius-control: 10px;
  --nbc-radius-button: 999px;
  --nbc-radius-small: 999px;

  --nbc-shadow: -2px 0 0 #00e5ff88, 2px 0 0 #ff00a888, 4px 4px 0 light-dark(#1a0a3e, #05020f);
  --nbc-shadow-lg: -3px 0 0 #00e5ff88, 3px 0 0 #ff00a888, 8px 8px 0 light-dark(#1a0a3e, #05020f);
  --nbc-shadow-press: -1px 0 0 #00e5ffaa, 1px 0 0 #ff00a8aa, 2px 2px 0 light-dark(#1a0a3e, #05020f);
  --nbc-press: 2px;
  --nbc-press-active: 4px;
  --nbc-rotate: -0.6deg;
  --nbc-focus-width: 3px;
  --nbc-focus-offset: 3px;

  --nbc-duration: 160ms;
  --nbc-duration-slow: 320ms;
  --nbc-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}
}

/* Button.css */
@layer nbc.flourish {
/* Y2K: drifting holo foil, a glossy capsule highlight, a dashed glass ghost. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-button--primary {
    overflow: hidden;
    background-size: 220% 220%;
    animation: nbc-y2k-holo 6s ease-in-out infinite;
  }

  .nbc-button--primary::after,
  .nbc-button--danger::after {
    content: '';
    position: absolute;
    inset: 2px 12px auto;
    block-size: 42%;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
    pointer-events: none;
  }

  .nbc-button--danger {
    overflow: hidden;
  }

  .nbc-button--ghost {
    border: 2px dashed var(--nbc-border-color);
    background: color-mix(in srgb, var(--nbc-surface) 45%, transparent);
    backdrop-filter: blur(6px);
  }

  .nbc-button__spinner {
    border: 0;
    background: conic-gradient(from 0deg, #ff6ec7, #a78bfa, #7ee8fa, #ffd86b, #ff6ec7);
    mask: radial-gradient(circle, transparent 40%, #000 44%);
  }
}

@keyframes nbc-y2k-holo {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
}

/* Field.css */
@layer nbc.flourish {
/* Y2K: labels printed in holo foil (dark enough stops to stay legible). */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-field__label {
    background: linear-gradient(
      90deg,
      light-dark(#c2125a, #ff9fd2),
      light-dark(#6d28d9, #c4b5fd),
      light-dark(#0a64a6, #9ef0ff)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
}

/* Input.css */
@layer nbc.flourish {
/* Y2K: a glossy bevel across the top of every field. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-input::before {
    content: '';
    position: absolute;
    inset: 2px 8px auto;
    block-size: 38%;
    border-radius: 999px;
    background: linear-gradient(180deg, light-dark(#ffffffcc, #ffffff26), #ffffff00);
    pointer-events: none;
  }
}
}

/* Card.css */
@layer nbc.flourish {
/* Y2K: the foil shimmers slowly; elevated cards get a holo sticker. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-card {
    background-size: auto, 300% 300%;
    animation: nbc-y2k-shimmer 12s ease-in-out infinite;
  }

  .nbc-card__title {
    font-size: var(--nbc-fs-lg);
    line-height: 1.3;
  }

  .nbc-card--elevated {
    overflow: visible;
  }

  .nbc-card--elevated::after {
    content: '★' / '';
    position: absolute;
    inset-block-start: -14px;
    inset-inline-end: -14px;
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    font-size: 18px;
    color: #1a0a3e;
    background: var(--nbc-primary-fill);
    background-size: 220% 220%;
    border: 2px solid #1a0a3e;
    border-radius: 50%;
    box-shadow: 2px 2px 0 #1a0a3e;
    transform: rotate(12deg);
    animation: nbc-y2k-sticker 6s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes nbc-y2k-shimmer {
  0%,
  100% {
    background-position: 0 0, 0% 50%;
  }
  50% {
    background-position: 0 0, 100% 50%;
  }
}

@keyframes nbc-y2k-sticker {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
}

/* Textarea.css */
@layer nbc.flourish {
/* Y2K: a glossy bevel across the top of the textarea, layered over the surface. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-textarea {
    background:
      linear-gradient(180deg, light-dark(#ffffffcc, #ffffff26), #ffffff00) 8px 2px / calc(100% - 16px) 18px no-repeat,
      var(--nbc-surface);
  }

  .nbc-textarea:read-only:not(:disabled) {
    background:
      linear-gradient(180deg, light-dark(#ffffffcc, #ffffff26), #ffffff00) 8px 2px / calc(100% - 16px) 18px no-repeat,
      var(--nbc-surface-alt);
  }

  .nbc-textarea::selection {
    background: var(--nbc-primary);
    color: var(--nbc-primary-fg);
  }
}
}

/* Checkbox.css */
@layer nbc.flourish {
/* Y2K: a bubbly glass tile — glossy capsule highlight, holo foil when checked, a springy tick. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-checkbox__box {
    border-radius: 36%;
  }

  .nbc-checkbox__box::before {
    content: '';
    position: absolute;
    inset: 1px 3px auto;
    block-size: 38%;
    border-radius: 999px;
    background: linear-gradient(180deg, light-dark(#ffffffb3, #ffffff33), #ffffff00);
    pointer-events: none;
  }

  .nbc-checkbox__box:has(.nbc-checkbox__control:checked, .nbc-checkbox__control:indeterminate) {
    background-size: 220% 220%;
    animation: nbc-y2k-checkbox-shimmer 6s ease-in-out infinite;
  }

  .nbc-checkbox__box:has(.nbc-checkbox__control:checked, .nbc-checkbox__control:indeterminate)::before {
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
  }

  /* The tick overshoots on the bouncy y2k easing. */

  .nbc-checkbox__check,
  .nbc-checkbox__dash {
    scale: 0.2;
    transition-duration: var(--nbc-duration-slow);
  }

  .nbc-checkbox__control:checked ~ .nbc-checkbox__check,
  .nbc-checkbox__control:indeterminate ~ .nbc-checkbox__dash {
    scale: 1;
  }

  .nbc-checkbox__control:indeterminate ~ .nbc-checkbox__check {
    scale: 0.2;
  }
}

@keyframes nbc-y2k-checkbox-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
}

/* Select.css */
@layer nbc.flourish {
/* Y2K: a glossy bevel across the field and a holo-foil chevron pill that pops
   when the list opens. The open list is a glass card of pill-shaped rows. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-select {
    --_pill: calc(var(--_h) - 2 * var(--nbc-border-width) - 8px);
  }

  .nbc-select::before {
    content: '';
    position: absolute;
    inset: 2px 8px auto;
    block-size: 38%;
    border-radius: 999px;
    background: linear-gradient(180deg, light-dark(#ffffffcc, #ffffff26), #ffffff00);
    pointer-events: none;
  }

  .nbc-select__control {
    padding-inline-end: calc(var(--_pill) + 6px + var(--nbc-space-sm));
  }

  .nbc-select__chevron {
    inset-inline-end: 4px;
    box-sizing: border-box;
    inline-size: var(--_pill);
    block-size: var(--_pill);
    padding: 0.22em;
    color: #1a0a3e;
    background: linear-gradient(135deg, #ff6ec7, #a78bfa, #7ee8fa, #ffd86b, #ff6ec7);
    background-size: 220% 220%;
    border: var(--nbc-border-width) var(--nbc-border-style) var(--nbc-border-color);
    border-radius: 999px;
    box-shadow: inset 0 2px 1px #ffffffb3;
    animation: nbc-y2k-select-holo 6s ease-in-out infinite;
    transition-property: color, scale;
    transition-duration: var(--nbc-duration-slow);
  }

  .nbc-select__control:open ~ .nbc-select__chevron {
    rotate: none;
    scale: 1.12;
  }

  @supports (appearance: base-select) {
    .nbc-select__control::picker(select) {
      border-radius: var(--nbc-radius);
    }
    .nbc-select__control option {
      border-radius: 999px;
      padding-inline: var(--nbc-space-lg);
    }
  }
}

@keyframes nbc-y2k-select-holo {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
}

/* RadioGroup.css */
@layer nbc.flourish {
/* Y2K: a glossy bubble — capsule highlight, drifting holo foil when checked, a dark pearl that springs in. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-radio__box::before {
    content: '';
    position: absolute;
    inset: 1px 18% auto;
    block-size: 36%;
    border-radius: 999px;
    background: linear-gradient(180deg, light-dark(#ffffffb3, #ffffff33), #ffffff00);
    pointer-events: none;
  }

  .nbc-radio__box:has(.nbc-radio__control:checked) {
    background-size: 220% 220%;
    animation: nbc-y2k-radio-shimmer 6s ease-in-out infinite;
  }

  .nbc-radio__box:has(.nbc-radio__control:checked)::before {
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
  }

  .nbc-radio__dot {
    background: radial-gradient(circle at 34% 30%, #ffffff 0 14%, var(--nbc-primary-fg) 48%);
    scale: 0.2;
    transition-duration: var(--nbc-duration-slow);
  }

  .nbc-radio__control:checked ~ .nbc-radio__dot {
    scale: 1;
  }

  /* The legend is printed in holo foil, like every field label (dark enough stops to stay legible). */

  .nbc-radio-group__label {
    background: linear-gradient(
      90deg,
      light-dark(#c2125a, #ff9fd2),
      light-dark(#6d28d9, #c4b5fd),
      light-dark(#0a64a6, #9ef0ff)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  @media (forced-colors: active) {
    .nbc-radio__dot {
      background: Highlight;
    }
    .nbc-radio-group__label {
      background: none;
      color: CanvasText;
    }
  }
}

@keyframes nbc-y2k-radio-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
}

/* Badge.css */
@layer nbc.flourish {
/* Y2K: a holographic sticker pressed onto the card — tilted, glossy, and the
   primary one drifts through the foil. The gloss sits behind the text. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-badge {
    position: relative;
    isolation: isolate;
    rotate: -2deg;
    box-shadow: -1px 0 0 #00e5ff88, 1px 0 0 #ff00a888;
  }

  .nbc-badge::before {
    content: '';
    position: absolute;
    inset: 1px 6px auto;
    block-size: 42%;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
    pointer-events: none;
  }

  .nbc-badge--neutral {
    background: var(--nbc-surface-fill);
  }

  .nbc-badge--primary {
    background-size: 220% 220%;
    animation: nbc-y2k-badge-shimmer 6s ease-in-out infinite;
  }
}

@keyframes nbc-y2k-badge-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
}

/* Switch.css */
@layer nbc.flourish {
/* Y2K: a glossy gel pill. Holo foil fills the track when on and slowly shimmers, a capsule
   highlight rides its top edge, and the thumb is a glass bubble that overshoots and squashes
   on the bouncy y2k easing. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-switch__track {
    background: var(--nbc-surface-fill);
  }

  .nbc-switch__track::before {
    content: '';
    position: absolute;
    inset: 1px 4px auto;
    block-size: 40%;
    border-radius: 999px;
    background: linear-gradient(180deg, light-dark(#ffffffb3, #ffffff33), #ffffff00);
    pointer-events: none;
  }

  .nbc-switch__track:has(.nbc-switch__control:checked) {
    background: var(--nbc-primary-fill);
    background-size: 220% 220%;
    animation: nbc-y2k-switch-shimmer 6s ease-in-out infinite;
  }

  .nbc-switch__track:has(.nbc-switch__control:checked)::before {
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
  }

  .nbc-switch__thumb {
    background: radial-gradient(
      circle at 34% 28%,
      #ffffff 0%,
      light-dark(#ffffff, #f1eaff) 40%,
      light-dark(#d9ccff, #a99ae6) 100%
    );
    box-shadow: inset 0 -2px 3px #7c3aed40, 0 1px 2px #1a0a3e40;
    transition-property: inset-inline-start, background-color, border-color, box-shadow, scale;
    transition-duration: var(--nbc-duration-slow);
  }

  .nbc-switch:not(.nbc-switch--disabled) .nbc-switch__track:has(.nbc-switch__control:active) .nbc-switch__thumb {
    scale: 1.15 0.9;
  }

  @media (hover: hover) {
    .nbc-switch:not(.nbc-switch--disabled) .nbc-switch__track:has(.nbc-switch__control:not(:checked)):hover {
      filter: brightness(0.96) saturate(1.2);
    }
  }

  @media (forced-colors: active) {
    .nbc-switch__track {
      background: Canvas;
    }
    .nbc-switch__track::before {
      display: none;
    }
    .nbc-switch__track:has(.nbc-switch__control:checked) {
      background: Highlight;
    }
    .nbc-switch__thumb {
      background: ButtonText;
    }
    .nbc-switch__control:checked ~ .nbc-switch__thumb {
      background: HighlightText;
    }
  }
}

@keyframes nbc-y2k-switch-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
}

/* Alert.css */
@layer nbc.flourish {
/* Y2K: a candy-glossed icon chip and a holographic foil stripe that drifts
   slowly. The stripe replaces the flat status edge; the chip keeps the status. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-alert {
    border-inline-start: var(--nbc-border-width) var(--nbc-border-style) var(--nbc-border-color);
  }

  .nbc-alert::before {
    content: '';
    position: absolute;
    inset-block: 8px;
    inset-inline-start: 5px;
    inline-size: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6ec7, #a78bfa, #7ee8fa, #ffd86b, #ff6ec7) 0 0 / 100% 300%;
    animation: nbc-y2k-alert-foil 6s ease-in-out infinite;
    pointer-events: none;
  }

  .nbc-alert__icon {
    position: relative;
    isolation: isolate;
    box-shadow: inset 0 -3px 0 #0000002e;
  }

  .nbc-alert__icon::before {
    content: '';
    position: absolute;
    inset: 2px 5px auto;
    block-size: 42%;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
    pointer-events: none;
  }
}

@keyframes nbc-y2k-alert-foil {
  0%,
  100% {
    background-position: 0 0;
  }
  50% {
    background-position: 0 100%;
  }
}
}

/* Progress.css */
@layer nbc.flourish {
/* Y2K: a candy-striped holo capsule. The bar is a glossy pill with barber-pole
   stripes marching across it; the gloss sits on top of the stripes. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-progress__track {
    border-radius: 999px;
    box-shadow: var(--nbc-shadow-press);
  }

  .nbc-progress__bar {
    isolation: isolate;
    border-radius: 999px;
  }

  .nbc-progress__bar::before {
    content: '' / '';
    position: absolute;
    inset: 1px 6px auto;
    z-index: 1;
    block-size: 42%;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
    pointer-events: none;
  }

  /* Replaces the base end-cap: the stripes are the texture, the pill is the edge. */
  .nbc-progress__bar::after {
    inset: 0;
    inline-size: auto;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        #ffffff59 25%,
        transparent 25%,
        transparent 50%,
        #ffffff59 50%,
        #ffffff59 75%,
        transparent 75%
      )
      0 0 / 28px 28px;
    animation: nbc-y2k-progress-stripes 1s linear infinite;
  }

  .nbc-progress__value {
    font-size: calc(var(--_fs) + 4px);
    line-height: 1;
    color: var(--nbc-fg);
  }

  @media (forced-colors: active) {
    .nbc-progress__bar {
      background: Highlight;
    }

    .nbc-progress__bar::before,
    .nbc-progress__bar::after {
      display: none;
    }
  }
}

@keyframes nbc-y2k-progress-stripes {
  to {
    background-position: 28px 0;
  }
}
}

/* Table.css */
@layer nbc.flourish {
/* Y2K: the header is a glossy bar with a holo underline that drifts slowly;
   hovered rows catch a soft rainbow wash. */

@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-table__head {
    background:
      linear-gradient(180deg, light-dark(#ffffffb3, #ffffff26), #ffffff00 60%),
      linear-gradient(90deg, #ff6ec7, #a78bfa, #7ee8fa, #ffd86b, #ff6ec7) 0 100% / 200% 3px repeat-x,
      var(--nbc-surface-alt);
    animation: nbc-y2k-table-holo 9s linear infinite;
  }

  .nbc-table__head .nbc-table__header-cell {
    background: transparent;
    border-block-end-width: 3px;
    border-block-end-color: transparent;
  }

  @media (hover: hover) {
    .nbc-table__body > .nbc-table__row:hover {
      background: linear-gradient(90deg, #ff6ec733, #a78bfa33, #7ee8fa33, #ffd86b33);
    }
  }

  @media (forced-colors: active) {
    .nbc-table__head .nbc-table__header-cell {
      border-block-end-color: CanvasText;
    }
  }
}

@keyframes nbc-y2k-table-holo {
  to {
    background-position: 0 0, 200% 100%;
  }
}
}

/* Kbd.css */
@layer nbc.flourish {
/* Y2K: a glossy bubble key with a top highlight. */
@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-kbd {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #cfe9ff);
    color: #1a1033;
    box-shadow: 0 2px 0 var(--nbc-border-color), 1px 1px 0 #ff6ec7;
  }

  .nbc-kbd::before {
    content: '' / '';
    position: absolute;
    inset: 1px 3px auto;
    block-size: 45%;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
    pointer-events: none;
  }
}
}

/* Dialog.css */
@layer nbc.flourish {
/* Y2K: a glossy holographic band across the header, chromatic shadow on the card. */
@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-dialog__header {
    position: relative;
    background:
      linear-gradient(180deg, #ffffffb3, #ffffff00 55%),
      linear-gradient(100deg, #ff6ec7, #a78bfa, #7ee8fa, #ffd86b);
    background-size: 100% 100%, 200% 100%;
    animation: nbc-y2k-dialog-shimmer 8s linear infinite;
    border-start-start-radius: inherit;
    border-start-end-radius: inherit;
    color: #1a1033;
  }
  .nbc-dialog__header .nbc-dialog__description {
    color: #1a1033;
  }
  .nbc-dialog__close {
    color: #1a1033;
  }
}

@keyframes nbc-y2k-dialog-shimmer {
  to {
    background-position: 0 0, 200% 0;
  }
}
}

/* Tabs.css */
@layer nbc.flourish {
/* Y2K: pill segmented control; the active pill is holographic with a gloss highlight. */
@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-tabs__list {
    gap: 6px;
    padding: 6px;
    border: var(--nbc-border-width) var(--nbc-border-style) var(--nbc-border-color);
    border-radius: 999px;
    background: var(--nbc-surface-alt);
  }
  .nbc-tabs__tab {
    position: relative;
    margin-block-end: 0;
    border-radius: 999px;
    border-color: transparent;
    overflow: hidden;
  }
  .nbc-tabs__tab--active {
    background: linear-gradient(120deg, #ff6ec7, #a78bfa, #7ee8fa, #ffd86b);
    background-size: 200% 100%;
    color: #1a1033;
    border-color: var(--nbc-border-color);
    box-shadow: none;
    animation: nbc-y2k-tab-shimmer 6s linear infinite;
  }
  .nbc-tabs__tab--active::before {
    content: '' / '';
    position: absolute;
    inset: 0 0 50%;
    background: linear-gradient(180deg, #ffffffb3, #ffffff00);
    pointer-events: none;
  }
}

@keyframes nbc-y2k-tab-shimmer {
  to {
    background-position: 200% 0;
  }
}
}

/* Tooltip.css */
@layer nbc.flourish {
/* Y2K: a candy bubble with a glossy top and a slight tilt. */
@scope ([data-theme="y2k"]) to ([data-theme]:not([data-theme="y2k"])) {
  .nbc-tooltip {
    color: #1a0a3e;
    background:
      linear-gradient(180deg, #ffffffa6, #ffffff00 55%),
      linear-gradient(135deg, #ff6ec7, #a78bfa, #7ee8fa);
    border-color: #1a0a3e;
    border-radius: 8px;
    rotate: -1deg;
  }
}
}
