/* behindx — shared content/slide layer (homepage + creator)
   constraints: palette-only, rounded shapes, subtle motion */

:root {
  /* consumed by this file (fallbacks only, real tokens in base.css) */
  --bx-mint: #00dba8;
  --bx-blue: #77e3e5;
  --bx-yellow: #dbd200;
  --bx-red: #db3700;
  --bx-text-black: #000000;
  --bx-text-white: #ffffff;
  --bx-text-gray: #323333;
}

.content-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  height: 100%;
}

.content-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  /* high-contrast title on dark green background */
  color: var(--bx-blue);
  min-height: 1.3rem;
  opacity: 1;
}

.content-title:empty {
  display: none;
}

.content-frame-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.content-viewer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.content-frame {
  /* Variant-aware aspect ratio:
     - desktop: 16 / 9 (default)
     - mobile:  9 / 16 (portrait)
     Controlled via --bx-frame-aspect on <body>. */
  aspect-ratio: var(--bx-frame-aspect, 16 / 9);
  /* fit into available height when not fullscreen (no scroll) */
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 28px;
  --bx-frame-pad-y: 2rem;
  --bx-frame-pad-x: 2.1rem;
  padding: var(--bx-frame-pad-y) var(--bx-frame-pad-x);
  background-color: #ffffff;
  color: var(--bx-text-gray);
  box-shadow: 0 30px 46px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(0, 219, 168, 0.7);
  position: relative;
  overflow: hidden;
  transition: border-color 240ms var(--bx-ease), box-shadow 240ms var(--bx-ease);
}

/* During the splash shrink animation, hide the frame chrome so it appears only
   after the video has settled into place. */
body.bx-splash-moving .content-frame {
  border-color: transparent;
  box-shadow: none;
}

/* Legal page: use the "content frame" as a full-page document container. */
body.bx-legal .content-frame {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  max-height: none;
}

/* Make swipe navigation reliable on touch devices: prevent the browser from
   treating swipes on the frame as page scroll gestures. */
#content_frame {
  touch-action: none;
}

/* Mobile: keep the frame 16:9 without forcing full-height (prevents compression). */
@media (max-width: 900px) {
  .content-viewer {
    height: auto;
  }

  .content-frame-shell {
    flex: 0 0 auto;
  }

  .content-frame {
    width: 100%;
    height: auto;
    max-height: none;
    margin-inline: 0;
  }
}

/* content navigation (up/down) lives on top of the frame now */
.arrow-button-top,
.arrow-button-bottom {
  position: absolute;
  left: 50%;
  z-index: 5;
  opacity: 1;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.arrow-button-top {
  top: 0.75rem;
}

.arrow-button-bottom {
  bottom: 0.75rem;
}

.arrow-button-top:hover,
.arrow-button-bottom:hover,
.arrow-button-top:focus-visible,
.arrow-button-bottom:focus-visible {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(119, 227, 229, 0.75);
}

/* abstract geometry inside the frame (very subtle) */
.content-frame::before,
.content-frame::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  opacity: 0.75;
}

.content-frame::before {
  border-radius: 46%;
  background: rgba(0, 219, 168, 0.06);
  transform: rotate(-12deg);
  animation: bx-frame-drift 18s linear infinite;
}

.content-frame::after {
  inset: 8% 10%;
  border-radius: 22px;
  background: rgba(119, 227, 229, 0.08);
  clip-path: polygon(6% 20%, 66% 10%, 96% 44%, 78% 88%, 16% 82%);
}

@media (prefers-reduced-motion: reduce) {
  .content-frame::before {
    animation: none;
  }
}

@keyframes bx-frame-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
  }
  50% {
    transform: translate3d(1.5vw, -1vh, 0) rotate(-12deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
  }
}

.content-frame > * {
  position: relative;
  z-index: 1;
}

/* slide base */
.slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  color: var(--bx-text-gray);
}

.slide h1,
.slide h2,
.slide h3 {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--bx-text-black);
}

.slide p {
  max-width: 48rem;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.6;
  color: var(--bx-text-gray);
  /* no-overflow rule: clamp long copy so it never gets clipped by the 16:9 frame */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/* title */
.slide-title {
  align-items: center;
  text-align: center;
}

.slide-title h1 {
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(0, 219, 168, 0.9);
  text-underline-offset: 0.16em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slide-title p {
  font-size: 1rem;
  max-width: 36rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* text left / right */
.slide-text {
  align-items: flex-start;
}

.slide-text-left {
  align-items: flex-start;
  text-align: left;
}

.slide-text-right {
  align-items: flex-end;
  text-align: right;
}

.slide-text-right p,
.slide-text-right h2 {
  text-align: right;
}

.slide-text h2 {
  font-size: 1.35rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.slide-text p {
  -webkit-line-clamp: 8;
}

/* image */
.slide-image {
  justify-content: flex-start;
  gap: 0.75rem;
}

.slide-image:not(.slide-image-text),
.slide-video:not(.slide-video-text) {
  /* full-bleed media layouts: fill the entire frame */
  position: relative;
  margin: calc(var(--bx-frame-pad-y) * -1) calc(var(--bx-frame-pad-x) * -1);
  width: calc(100% + (var(--bx-frame-pad-x) * 2));
  height: calc(100% + (var(--bx-frame-pad-y) * 2));
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* lowkey corner overlays (title + info) for full-bleed media */
.slide-image:not(.slide-image-text) .bx-media-overlay,
.slide-video:not(.slide-video-text) .bx-media-overlay {
  position: absolute;
  z-index: 3;
  max-width: min(62%, 40rem);
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.slide-image:not(.slide-image-text) .bx-media-overlay--tl,
.slide-video:not(.slide-video-text) .bx-media-overlay--tl {
  top: 1rem;
  left: 1rem;
}

.slide-image:not(.slide-image-text) .bx-media-overlay--br,
.slide-video:not(.slide-video-text) .bx-media-overlay--br {
  right: 1rem;
  bottom: 1rem;
}

.slide-image:not(.slide-image-text) .bx-media-overlay h2,
.slide-video:not(.slide-video-text) .bx-media-overlay h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: underline;
  text-decoration-color: rgba(119, 227, 229, 0.9);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bx-media-overlay-text {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slide-image:not(.slide-image-text) .slide-image-figure,
.slide-video:not(.slide-video-text) .slide-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.slide-image h2,
.slide-video h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--bx-text-gray);
  text-decoration: underline;
  text-decoration-color: rgba(0, 219, 168, 0.9);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

.slide-image-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.slide-image-media,
.slide-video-media {
  max-width: 100%;
  max-height: 80%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  border: 0;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* override for full-bleed media: fill frame */
.slide-image:not(.slide-image-text) .slide-image-media,
.slide-video:not(.slide-video-text) .slide-video-media {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Overlays for full-frame media (title and caption) */
.slide-overlay {
  position: absolute;
  z-index: 3;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  max-width: min(75%, 42rem);
}

.slide-overlay--title {
  top: 1.25rem;
  left: 1.25rem;
}

.slide-overlay--caption {
  bottom: 1.25rem;
  right: 1.25rem;
  text-align: right;
}

.slide-overlay h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.98);
  text-decoration: underline;
  text-decoration-color: rgba(119, 227, 229, 0.95);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.slide-overlay .slide-caption {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* --- Aspect-aware media layouts (Creator-enforced) ---
   The 16:9 frame is fixed; these rules prevent awkward cropping and keep
   consistent padding for 4:3 / 1:1 (desktop) and 3:4 / 1:1 (mobile). */

/* Full-bleed layouts: if the asset is not the "native" orientation, avoid cover-cropping. */
.slide-image:not(.slide-image-text) .slide-image-frame[data-bx-aspect="4x3"] .slide-image-media,
.slide-video:not(.slide-video-text) .slide-video-frame[data-bx-aspect="4x3"] .slide-video-media,
.slide-image:not(.slide-image-text) .slide-image-frame[data-bx-aspect="1x1"] .slide-image-media,
.slide-video:not(.slide-video-text) .slide-video-frame[data-bx-aspect="1x1"] .slide-video-media,
.slide-image:not(.slide-image-text) .slide-image-frame[data-bx-aspect="3x4"] .slide-image-media,
.slide-video:not(.slide-video-text) .slide-video-frame[data-bx-aspect="3x4"] .slide-video-media {
  object-fit: contain;
  background: #ffffff;
}

/* Give non-native full-bleed media a gentle inset so it doesn't feel cramped. */
.slide-image:not(.slide-image-text) .slide-image-frame[data-bx-aspect="4x3"],
.slide-video:not(.slide-video-text) .slide-video-frame[data-bx-aspect="4x3"],
.slide-image:not(.slide-image-text) .slide-image-frame[data-bx-aspect="1x1"],
.slide-video:not(.slide-video-text) .slide-video-frame[data-bx-aspect="1x1"],
.slide-image:not(.slide-image-text) .slide-image-frame[data-bx-aspect="3x4"],
.slide-video:not(.slide-video-text) .slide-video-frame[data-bx-aspect="3x4"] {
  padding: 4%;
  box-sizing: border-box;
}

/* Image/video-with-text layouts: title on top, then row with text left, asset right */
.slide-image-text,
.slide-video-text {
  gap: 1rem;
}

.slide-heading-top {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--bx-text-black);
  text-decoration: underline;
  text-decoration-color: rgba(0, 219, 168, 0.9);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.16em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: left;
}

.slide-media-row {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  flex: 1;
  min-height: 0;
}

.slide-media-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.slide-media-col--text {
  flex: 1 1 50%;
  padding-right: 0.5rem;
}

.slide-media-col--image,
.slide-media-col--video {
  flex: 0 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.slide-media-col--image .slide-image-frame,
.slide-media-col--video .slide-video-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-media-col--image .slide-image-media,
.slide-media-col--video .slide-video-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* Image/video-with-text: tune image column sizing per aspect. */
.slide-media-col--image[data-bx-aspect="16x9"] .slide-image-media,
.slide-media-col--image[data-bx-aspect="9x16"] .slide-image-media {
  max-height: 78%;
}

.slide-media-col--image[data-bx-aspect="4x3"] .slide-image-media,
.slide-media-col--image[data-bx-aspect="3x4"] .slide-image-media {
  max-height: 70%;
}

.slide-media-col--image[data-bx-aspect="1x1"] .slide-image-media {
  max-height: 64%;
}

.slide-media-col--video[data-bx-aspect="16x9"] .slide-video-media,
.slide-media-col--video[data-bx-aspect="9x16"] .slide-video-media {
  max-height: 78%;
}

.slide-media-col--video[data-bx-aspect="4x3"] .slide-video-media,
.slide-media-col--video[data-bx-aspect="3x4"] .slide-video-media {
  max-height: 70%;
}

.slide-media-col--video[data-bx-aspect="1x1"] .slide-video-media {
  max-height: 64%;
}

.slide-caption {
  font-size: 0.85rem;
  color: var(--bx-text-gray);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slide-caption-right {
  align-self: flex-end;
  text-align: right;
}

.slide-image-text .slide-image-figure {
  align-items: stretch;
}

.slide-image-text .slide-image-media {
  margin-inline: auto;
}

/* video */
.slide-video {
  justify-content: flex-start;
  gap: 0.75rem;
}

.slide-video-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Accessibility: blocked media overlays (flicker/substances) */
.slide-image-frame,
.slide-video-frame,
.slide-media-col--image {
  position: relative;
}

.bx-asset-blocked {
  visibility: hidden;
}

.bx-asset-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: inherit;
  border: 2px solid rgba(0, 0, 0, 0.85);
  color: rgba(0, 0, 0, 0.92);
  z-index: 4;
}

.bx-asset-overlay-inner {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  background: #ffffff;
}

body.bx-high-contrast .bx-asset-overlay {
  background: #ffffff;
  border-color: #000000;
  color: #000000;
}

.slide-video-fullscreen-button {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 219, 168, 0.7);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  color: var(--bx-text-white);
  font-size: 0.8rem;
  line-height: 1;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-video-fullscreen-button:hover,
.slide-video-fullscreen-button:focus-visible {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
  border-color: rgba(0, 219, 168, 0.9);
}

.slide-video-placeholder {
  font-size: 0.9rem;
  color: var(--bx-text-gray);
}

.slide-video-text .slide-caption {
  align-self: flex-end;
  text-align: right;
}

/* arrow + slide buttons */
.arrow-button,
.slide-button {
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-frame-shell:hover .arrow-button,
.content-frame-shell:hover .slide-button,
.arrow-button:focus-visible,
.slide-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.arrow-button:hover,
.slide-button:hover {
  background: rgba(0, 219, 168, 0.16);
  border-color: rgba(0, 219, 168, 0.65);
}

.arrow-button svg,
.slide-button svg {
  width: 16px;
  height: 16px;
}

.arrow-button-top,
.arrow-button-bottom {
  align-self: center;
  /* Ensure these are always visible so disabled/loading feedback can be seen. */
  opacity: 1;
  transform: translateX(-50%);
}

/* Stronger affordances for unavailable controls */
.arrow-button:disabled,
.slide-button:disabled,
.slide-button.is-disabled {
  opacity: 0.22;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

/* Loading state: show busy cursor + keep button visible */
.arrow-button.is-loading {
  opacity: 0.65;
  cursor: progress;
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-loader {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.button-loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bx-mint);
  opacity: 0.9;
  animation: buttonLoaderPulse 0.9s infinite ease-in-out;
}

.button-loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.button-loader span:nth-child(3) {
  animation-delay: 0.3s;
}

.content-loading-state {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
}

.loader-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(0, 219, 168, 0.35);
  border-top-color: var(--bx-mint);
  animation: spinnerRotation 0.9s linear infinite;
}

.slide-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 219, 168, 0.6);
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}

.slide-dot.is-active {
  width: 18px;
  background: var(--bx-mint);
}

.slide-dot:focus-visible {
  outline: 2px solid var(--bx-mint);
  outline-offset: 2px;
}

.slide-indicators[hidden] {
  display: none;
}

/* sticker blocks (used in content slides) */
.sticker {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 2px solid rgba(0, 219, 168, 0.6);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.sticker-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: var(--bx-mint);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: var(--bx-text-black);
}

.sticker-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--bx-text-black);
  flex: 1;
}

.sticker-body {
  margin: 0;
  color: var(--bx-text-gray);
}

.sticker-input {
  width: 100%;
  background: #ffffff;
  border: 2px solid rgba(46, 92, 55, 0.35);
  border-radius: 16px;
  color: var(--bx-text-gray);
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  resize: vertical;
  transition:
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sticker-input:focus {
  border-color: rgba(0, 219, 168, 0.85);
  box-shadow: 0 0 0 4px rgba(0, 219, 168, 0.18);
  outline: none;
}

.sticker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--bx-text-gray);
}

.sticker-status {
  min-width: 140px;
  text-align: right;
  font-weight: 900;
  color: var(--bx-text-gray);
}

.sticker-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--bx-mint);
}

.sticker-status-icon svg {
  width: 18px;
  height: 18px;
}

.sticker-status[data-state="locked"] {
  color: var(--bx-mint);
}

.sticker[data-sticker-status="locked"] .sticker-choice {
  cursor: default;
  opacity: 0.55;
}

.sticker[data-sticker-status="locked"] .sticker-choice.is-active {
  opacity: 1;
}

.sticker-status[data-state="pending"] {
  color: var(--bx-text-gray);
  text-decoration: underline;
  text-decoration-color: rgba(219, 210, 0, 0.9);
}

.sticker-status[data-state="success"] {
  color: var(--bx-text-gray);
  text-decoration: underline;
  text-decoration-color: rgba(0, 219, 168, 0.95);
}

.sticker-status[data-state="error"] {
  color: var(--bx-text-gray);
  text-decoration: underline;
  text-decoration-color: rgba(219, 55, 0, 0.9);
}

.sticker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sticker-choice {
  border: 2px solid rgba(46, 92, 55, 0.25);
  background: rgba(255, 255, 255, 0.96);
  color: var(--bx-text-gray);
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sticker-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 219, 168, 0.7);
  background: rgba(0, 219, 168, 0.08);
}

.sticker-choice.is-active {
  background: var(--bx-mint);
  border-color: transparent;
  color: var(--bx-text-black);
}

.sticker-upload-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.sticker-file-input {
  display: none;
}

.sticker-file-trigger,
.sticker-upload-button {
  border: 2px solid rgba(46, 92, 55, 0.25);
  background: rgba(255, 255, 255, 0.96);
  color: var(--bx-text-gray);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sticker-file-trigger:hover,
.sticker-upload-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 219, 168, 0.7);
  background: rgba(0, 219, 168, 0.08);
}

.sticker-file-name {
  font-size: 0.9rem;
  color: var(--bx-text-gray);
  min-width: 140px;
}

@keyframes buttonLoaderPulse {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spinnerRotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .content-frame {
    --bx-frame-pad-y: 1.7rem;
    --bx-frame-pad-x: 1.7rem;
    padding: var(--bx-frame-pad-y) var(--bx-frame-pad-x);
  }
}


