/* Logo maker — geometric marks (shared chrome from ../business_card/gadget.css) */

.gadget-field--words-first {
  margin-bottom: 1.05rem;
}

.logo-maker-play {
  margin: 0 0 1.05rem;
  padding: 0.65rem 0.75rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.logo-play__head {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin-bottom: 0.5rem;
}

.logo-play__title {
  font-size: clamp(0.56rem, 0.95vw, 0.64rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 205, 255, 0.55);
}

.logo-play__hint {
  font-size: clamp(0.5rem, 0.88vw, 0.58rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
}

.logo-play__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.logo-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  border-radius: 9999px;
  -webkit-tap-highlight-color: transparent;
}

.logo-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.logo-chip__face {
  display: inline-block;
  padding: 0.38rem 0.75rem;
  font-size: clamp(0.55rem, 0.92vw, 0.64rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.logo-chip:hover .logo-chip__face {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.logo-chip:active .logo-chip__face {
  transform: scale(0.97);
}

.logo-chip:has(:checked) .logo-chip__face {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(200, 190, 255, 0.14);
  border-color: rgba(200, 190, 255, 0.42);
  box-shadow: 0 0 20px rgba(180, 160, 255, 0.12);
}

.logo-play__swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.55rem;
}

.logo-swatch {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.logo-swatch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.logo-swatch__dot {
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 50%;
  background: var(--dot, #333);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-swatch:hover .logo-swatch__dot {
  transform: translateY(-2px);
}

.logo-swatch:active .logo-swatch__dot {
  transform: scale(0.94);
}

.logo-swatch:has(:checked) .logo-swatch__dot {
  box-shadow:
    0 0 0 2px rgba(200, 190, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.4);
}

.logo-swatch__name {
  font-size: clamp(0.45rem, 0.78vw, 0.52rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  max-width: 4.5rem;
  text-align: center;
  line-height: 1.2;
}

.logo-swatch--auto .logo-swatch__ring {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.75);
  background: conic-gradient(from 210deg, rgba(200, 190, 255, 0.5), rgba(46, 196, 182, 0.45), rgba(201, 162, 39, 0.5), rgba(200, 190, 255, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.logo-swatch--auto:has(:checked) .logo-swatch__ring {
  box-shadow: 0 0 0 2px rgba(200, 190, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.logo-swatch--stone {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.logo-swatch--stone .logo-swatch__dot {
  width: 1.15rem;
  height: 1.15rem;
}

.logo-swatch__dot--checker {
  background:
    linear-gradient(45deg, rgba(40, 40, 48, 0.95) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(40, 40, 48, 0.95) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(40, 40, 48, 0.95) 75%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%);
  background-size: 8px 8px;
  background-position:
    0 0,
    0 4px,
    4px -4px,
    -4px 0;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.logo-swatch--clear:has(:checked) .logo-swatch__dot--checker {
  box-shadow:
    0 0 0 2px rgba(200, 190, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.logo-play__head--tight {
  margin-top: 0.55rem;
  margin-bottom: 0.35rem;
}

.logo-play__head--caption-band {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem 0.65rem;
}

.logo-play__head-stack {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

/* Caption band — vertical anchor preview (rim · belt · crown) */
.logo-caption-thumb {
  flex: 0 0 auto;
  position: relative;
  width: 56px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.logo-caption-thumb__guide {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1px;
  border-radius: 1px;
  pointer-events: none;
  background: rgba(200, 190, 255, 0.22);
  opacity: 0.35;
}

.logo-caption-thumb__guide--crown {
  top: 14%;
}

.logo-caption-thumb__guide--belt {
  top: 40%;
}

.logo-caption-thumb__guide--rim {
  top: 66%;
}

.logo-caption-thumb__glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 1.12rem;
  height: 1.12rem;
  margin: -0.56rem 0 0 -0.56rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 252, 248, 0.88);
}

.logo-caption-thumb__band {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 2.05rem;
  height: 0.68rem;
  margin-left: -1.025rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: rgba(200, 190, 255, 0.1);
  border: 1px solid rgba(200, 190, 255, 0.32);
  box-shadow: 0 0 10px rgba(200, 190, 255, 0.12);
  animation: logo-caption-thumb-band 3.35s ease-in-out infinite;
}

.logo-caption-thumb__fa {
  font-size: 0.48rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(235, 232, 255, 0.92);
  transform: translateY(0.02em);
}

@keyframes logo-caption-thumb-band {
  0%,
  100% {
    top: 62%;
    opacity: 0.95;
    box-shadow: 0 0 10px rgba(200, 190, 255, 0.18);
  }
  8%,
  25% {
    top: 62%;
    opacity: 1;
    box-shadow: 0 0 12px rgba(200, 190, 255, 0.28);
  }
  33% {
    top: 36%;
    opacity: 0.92;
    box-shadow: 0 0 8px rgba(200, 190, 255, 0.14);
  }
  41%,
  58% {
    top: 36%;
    opacity: 1;
    box-shadow: 0 0 14px rgba(46, 196, 182, 0.22);
  }
  66% {
    top: 10%;
    opacity: 0.92;
    box-shadow: 0 0 8px rgba(200, 190, 255, 0.14);
  }
  74%,
  92% {
    top: 10%;
    opacity: 1;
    box-shadow: 0 0 12px rgba(200, 190, 255, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-caption-thumb__band {
    animation: none !important;
    top: 62%;
    opacity: 1;
    box-shadow: 0 0 8px rgba(200, 190, 255, 0.14);
  }
}

.logo-play__explain {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: clamp(0.52rem, 0.88vw, 0.6rem);
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: rgba(220, 225, 255, 0.52);
}

.logo-play__explain strong {
  color: rgba(255, 252, 248, 0.78);
  font-weight: 500;
}

.logo-slider {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.42rem;
  cursor: pointer;
}

.logo-slider__label {
  font-size: clamp(0.5rem, 0.85vw, 0.58rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.logo-slider input[type="range"] {
  width: 100%;
  max-width: 22rem;
  accent-color: rgba(200, 190, 255, 0.85);
}

/* Layout sliders — microcopy + looping motion thumbs (illustrate each control) */
.logo-slider--preview .logo-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.logo-slider__micro {
  display: block;
  margin: 0.08rem 0 0.12rem;
  max-width: 36rem;
  font-size: clamp(0.48rem, 0.82vw, 0.55rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.34);
  text-transform: none;
}

.logo-slider__micro strong {
  font-weight: 500;
  color: rgba(255, 250, 245, 0.62);
}

.logo-motion-thumb {
  flex: 0 0 auto;
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.logo-motion-thumb__rail {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 190, 255, 0.35), transparent);
  opacity: 0.75;
}

.logo-motion-thumb__rail--v {
  left: 50%;
  right: auto;
  top: 5px;
  bottom: 5px;
  width: 2px;
  height: auto;
  margin-top: 0;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(200, 190, 255, 0.35), transparent);
}

.logo-motion-thumb__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 252, 248, 0.88);
}

.logo-motion-thumb--focal-x .logo-motion-thumb__dot {
  animation: logo-thumb-focal-x 2.4s ease-in-out infinite;
}

.logo-motion-thumb--focal-y .logo-motion-thumb__dot {
  animation: logo-thumb-focal-y 2.4s ease-in-out infinite;
}

@keyframes logo-thumb-focal-x {
  0%,
  100% {
    transform: translate(-7px, 0);
  }
  50% {
    transform: translate(7px, 0);
  }
}

@keyframes logo-thumb-focal-y {
  0%,
  100% {
    transform: translate(0, -5px);
  }
  50% {
    transform: translate(0, 5px);
  }
}

.logo-motion-thumb--coupled .logo-motion-thumb__coupled-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(90, 40, 60, 0.35), rgba(40, 55, 90, 0.3));
  animation: logo-thumb-coupled-bg 2.8s ease-in-out infinite;
}

.logo-motion-thumb__tiles {
  position: absolute;
  left: 5px;
  top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 16px;
  animation: logo-thumb-coupled-sync 2.8s ease-in-out infinite;
}

.logo-motion-thumb__tiles span {
  border-radius: 2px;
  background: rgba(200, 190, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.logo-motion-thumb--coupled .logo-motion-thumb__mark {
  position: absolute;
  right: 6px;
  top: 50%;
  margin-top: -0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 252, 248, 0.92);
  animation: logo-thumb-coupled-sync 2.8s ease-in-out infinite;
}

@keyframes logo-thumb-coupled-sync {
  0%,
  100% {
    transform: translate(-1px, 0);
  }
  50% {
    transform: translate(2px, 1px);
  }
}

@keyframes logo-thumb-coupled-bg {
  0%,
  100% {
    transform: translate(-5%, 0) scale(1.02);
    opacity: 0.85;
  }
  50% {
    transform: translate(5%, 0) scale(1.05);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-motion-thumb--focal-x .logo-motion-thumb__dot,
  .logo-motion-thumb--focal-y .logo-motion-thumb__dot,
  .logo-motion-thumb--coupled .logo-motion-thumb__tiles,
  .logo-motion-thumb--coupled .logo-motion-thumb__mark,
  .logo-motion-thumb--coupled .logo-motion-thumb__coupled-bg {
    animation: none !important;
  }

  .logo-motion-thumb--focal-x .logo-motion-thumb__dot {
    transform: translate(3px, 0);
  }

  .logo-motion-thumb--focal-y .logo-motion-thumb__dot {
    transform: translate(0, 3px);
  }

  .logo-motion-thumb--coupled .logo-motion-thumb__tiles,
  .logo-motion-thumb--coupled .logo-motion-thumb__mark {
    transform: translate(1px, 0);
  }
}

.logo-toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr minmax(50px, 58px);
  gap: 0.45rem 0.5rem;
  align-items: center;
  margin-top: 0.42rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.logo-toggle--sub {
  margin-left: 0.35rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-toggle__track {
  position: relative;
  grid-column: 1;
  width: 2.35rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.logo-toggle__knob {
  position: absolute;
  top: 50%;
  left: 0.14rem;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.2s ease;
}

.logo-toggle:has(:checked) .logo-toggle__track {
  background: rgba(120, 110, 200, 0.35);
  border-color: rgba(200, 190, 255, 0.45);
}

.logo-toggle:has(:checked) .logo-toggle__knob {
  transform: translate(1.05rem, -50%);
  background: rgba(255, 252, 255, 0.95);
}

.logo-toggle:active .logo-toggle__knob {
  transform: translateY(-50%) scale(0.92);
}

.logo-toggle:has(:checked):active .logo-toggle__knob {
  transform: translate(1.05rem, -50%) scale(0.92);
}

.logo-toggle__text {
  grid-column: 2;
  font-size: clamp(0.54rem, 0.92vw, 0.63rem);
  letter-spacing: 0.035em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.logo-toggle:hover .logo-toggle__text {
  color: rgba(255, 255, 255, 0.78);
}

.logo-toggle__thumb {
  grid-column: 3;
  justify-self: end;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-toggle:hover .logo-toggle__thumb {
  opacity: 1;
  transform: scale(1.03);
}

.logo-thumb-svg {
  width: 52px;
  height: auto;
  display: block;
  border-radius: 4px;
}

.gadget-actions--split {
  align-items: center;
}

.gadget-actions--split .gadget-btn--quiet:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/*
 * Logo lab: no sticky preview column (Card pattern). Wide screens: two scrollports so
 * the Name panel and Logos panel scroll independently; the document still scrolls for
 * the hero, nav chrome, and footer when you’re not capturing the wheel in a panel.
 */
.gadget-grid.logo-maker-grid > .gadget-preview-wrap {
  position: static;
  top: auto;
}

@media (min-width: 901px) {
  /*
   * Fixed row height so the grid track doesn’t grow with panel content (which would
   * bring back whole-page scroll for long settings). Stretch + min-height:0 lets each
   * column scroll inside the viewport band under the top chrome.
   */
  .gadget-grid.logo-maker-grid {
    align-items: stretch;
    grid-template-rows: calc(100vh - 9rem);
    grid-template-rows: calc(100dvh - 9rem);
  }

  .gadget-grid.logo-maker-grid > .gadget-panel {
    overflow-x: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    scrollbar-gutter: stable;
  }

  .gadget-grid.logo-maker-grid > .gadget-preview-wrap {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 900px) {
  .gadget-grid.logo-maker-grid {
    grid-template-rows: none;
  }
}

.logo-maker-hint-ok {
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.06em;
  color: rgba(180, 220, 200, 0.75);
  margin: 0.35rem 0 0;
}

.logo-maker-mode {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.logo-maker-mode legend {
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
  padding: 0;
}

.logo-maker-mode__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.logo-maker-mode label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.62rem, 1.05vw, 0.72rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.logo-maker-mode input {
  accent-color: rgba(200, 195, 255, 0.85);
}

.logo-maker-look {
  border: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.logo-maker-look legend {
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.45rem;
  padding: 0;
}

.logo-maker-look__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.45rem;
}

.logo-maker-look__row--sub {
  padding-left: 0.15rem;
  opacity: 0.92;
}

.logo-maker-look__row--sub[hidden] {
  display: none !important;
}

.logo-maker-look__sub {
  font-size: clamp(0.5rem, 0.88vw, 0.58rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-right: 0.25rem;
}

.logo-maker-look__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.logo-maker-look__choice input {
  accent-color: rgba(200, 195, 255, 0.85);
}

.logo-maker-look__check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: clamp(0.56rem, 0.98vw, 0.66rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  margin: 0.35rem 0 0;
  max-width: 36rem;
}

.logo-maker-look__check input {
  margin-top: 0.2rem;
  accent-color: rgba(200, 195, 255, 0.85);
  flex-shrink: 0;
}

.logo-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.logo-badge-grid--pattern-focus {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: clamp(0.65rem, 1.8vw, 1rem);
  justify-items: center;
}

/* Backdrop editor: one squircle in the spotlight */
.logo-results-stage--pattern-focus {
  position: relative;
  container-type: inline-size;
  container-name: logo-stage;
  border-radius: 16px;
  padding: clamp(0.65rem, 1.5vw, 1rem);
  margin: 0 calc(-0.65rem + -0.5vw) clamp(0.35rem, 1vw, 0.65rem);
  background: radial-gradient(
    ellipse 85% 70% at 50% 42%,
    rgba(200, 195, 255, 0.07) 0%,
    rgba(4, 6, 14, 0.35) 55%,
    rgba(2, 3, 8, 0.5) 100%
  );
  border: 1px solid rgba(200, 195, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.25);
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
  /* Hero preview ≈ same readable width band as long settings blocks (≈28rem cap), never wider than this column */
  --logo-pattern-hero: min(28rem, 100cqi);
}

.logo-results-stage--pattern-focus .gadget-panel__title {
  color: rgba(220, 224, 255, 0.72);
  transition: color 0.35s ease;
}

.logo-badge-card {
  border-radius: 0.85rem;
  padding: clamp(0.75rem, 2vw, 1rem);
  background: rgba(4, 4, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition:
    transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1),
    filter 0.42s ease,
    opacity 0.42s ease,
    box-shadow 0.42s ease,
    border-color 0.42s ease,
    background 0.42s ease;
}

.logo-badge-grid--pattern-focus .logo-badge-card--pattern-dim {
  opacity: 0.38;
  filter: blur(5px) saturate(0.72);
  transform: none;
  width: 100%;
  max-width: 8.5rem;
  justify-self: center;
  order: 1;
  pointer-events: auto;
  isolation: isolate;
}

.logo-badge-grid--pattern-focus .logo-badge-card--pattern-focus {
  opacity: 1;
  filter: none;
  -webkit-filter: none;
  transform: none;
  order: -1;
  grid-column: 1 / -1;
  width: var(--logo-pattern-hero, min(28rem, 100%));
  max-width: 100%;
  justify-self: center;
  z-index: 3;
  isolation: isolate;
  position: relative;
  border-color: rgba(200, 195, 255, 0.55);
  background: rgba(12, 14, 28, 0.88);
  box-shadow:
    0 0 0 1px rgba(200, 195, 255, 0.25),
    0 0 48px rgba(160, 150, 255, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Fallback when container queries are unsupported */
@supports not (container-type: inline-size) {
  .logo-results-stage--pattern-focus {
    --logo-pattern-hero: min(28rem, calc(100% - 0.35rem));
  }
}

.logo-badge-grid--pattern-focus .logo-badge-card--pattern-focus figcaption {
  color: rgba(230, 232, 255, 0.88);
  letter-spacing: 0.2em;
  text-align: center;
  font-size: clamp(0.52rem, 0.95vw, 0.62rem);
}

.logo-badge-card figcaption {
  font-size: clamp(0.48rem, 0.85vw, 0.55rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 0.55rem;
}

.logo-badge-card .gadget-btn {
  width: 100%;
  margin-top: 0.35rem;
}

.logo-geo-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  border-radius: 0.45rem;
  background: #030308;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.logo-maker-empty {
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.06em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
  max-width: 28rem;
  margin: 0 0 1rem;
}

/* Equation reference — one row per letter in Pure geometry mode */
.logo-maker-math-wrap {
  margin-top: 1.15rem;
  padding: 0.85rem 0.95rem 0.95rem;
  max-width: 36rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-sizing: border-box;
}

.logo-maker-math-wrap[hidden] {
  display: none !important;
}

.logo-maker-math__h {
  margin: 0 0 0.35rem;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 210, 255, 0.55);
}

.logo-maker-math__intro {
  margin: 0 0 0.65rem;
  font-size: clamp(0.54rem, 0.95vw, 0.64rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.48);
}

.logo-maker-math__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.logo-maker-math__letter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.75rem;
  align-items: start;
  padding: 0.5rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-maker-math__glyph {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 252, 248, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-maker-math__glyph--fa {
  font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.logo-maker-math__note {
  margin: 0 0 0.35rem;
  font-size: clamp(0.48rem, 0.82vw, 0.56rem);
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: rgba(200, 220, 255, 0.45);
}

.logo-maker-math__name {
  margin: 0 0 0.28rem;
  font-size: clamp(0.56rem, 0.92vw, 0.65rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(230, 235, 255, 0.78);
}

.logo-maker-math__eq {
  margin: 0;
  padding-left: 1rem;
  font-size: clamp(0.5rem, 0.85vw, 0.58rem);
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.logo-maker-math__eq li {
  margin-bottom: 0.2rem;
}

.logo-maker-math__eq li:last-child {
  margin-bottom: 0;
}

/* —— 3D-ish layer stack: backdrop · geometry · script —— */
.logo-layer-stack {
  perspective: 1100px;
  margin: 0 0 1.05rem;
}

.logo-layer-stack__hint {
  font-size: clamp(0.52rem, 0.9vw, 0.6rem);
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: rgba(210, 218, 255, 0.5);
  max-width: 36rem;
  margin: 0 0 0.65rem;
}

.logo-layer-stack__hint strong {
  font-weight: 500;
  color: rgba(245, 246, 255, 0.72);
}

.logo-layer-card {
  position: relative;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.62rem 0.65rem;
  border-radius: 13px;
  background: linear-gradient(168deg, rgba(18, 20, 34, 0.94), rgba(7, 8, 14, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transform: rotateX(5.5deg) translateZ(var(--lz, 0px));
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-layer-card:hover {
  transform: rotateX(3deg) translateZ(calc(var(--lz, 0px) + 10px));
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.48),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.logo-layer-card__ribbon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.42rem;
}

.logo-layer-card__depth {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  font-size: clamp(0.56rem, 0.95vw, 0.64rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(230, 228, 255, 0.92);
  background: rgba(200, 190, 255, 0.12);
  border: 1px solid rgba(200, 190, 255, 0.28);
  box-shadow: 0 0 16px rgba(200, 190, 255, 0.1);
}

.logo-layer-card__ribbon-text {
  font-size: clamp(0.52rem, 0.88vw, 0.6rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 205, 255, 0.48);
  font-weight: 500;
}

.logo-layer-skirt {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  margin: 0 0 0.5rem;
  cursor: pointer;
  font-size: clamp(0.54rem, 0.92vw, 0.62rem);
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: rgba(235, 238, 255, 0.74);
}

.logo-layer-skirt input {
  margin-top: 0.12rem;
  accent-color: rgba(200, 195, 255, 0.85);
  flex-shrink: 0;
}

.logo-layer-skirt__text {
  flex: 1;
  min-width: 0;
}

.logo-play__head--layer {
  margin-top: 0.2rem;
}

.logo-play__explain--layer {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.logo-toggle--layer {
  margin-top: 0.35rem;
}

.logo-full-blend-wrap {
  margin: 0.05rem 0 0.35rem;
}

.logo-fuse-thumb {
  flex: 0 0 auto;
  position: relative;
  width: 56px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.logo-fuse-thumb__stage {
  position: absolute;
  inset: 4px;
  transform-origin: 50% 55%;
  animation: logo-fuse-spin 3.6s ease-in-out infinite;
}

.logo-fuse-thumb__letter {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 252, 248, 0.9);
  animation: logo-fuse-pulse 3.6s ease-in-out infinite;
}

.logo-fuse-thumb__letter--a {
  left: 5px;
  bottom: 5px;
}

.logo-fuse-thumb__letter--b {
  right: 5px;
  bottom: 5px;
}

.logo-fuse-thumb__letter--c {
  left: 50%;
  top: 4px;
  margin-left: -0.45rem;
}

@keyframes logo-fuse-spin {
  0%,
  18% {
    transform: rotate(0deg) scale(1);
  }
  30%,
  48% {
    transform: rotate(118deg) scale(1.04);
  }
  58%,
  74% {
    transform: rotate(238deg) scale(0.96);
  }
  86%,
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes logo-fuse-pulse {
  0%,
  100% {
    opacity: 0.88;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.12);
  }
}

/* Backdrop patterns — one panel + variant picker */
.logo-pattern-global-wrap {
  border: 0;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.logo-pattern-panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-pattern-group {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.logo-pattern-group--muted {
  opacity: 0.34;
  pointer-events: none;
  filter: grayscale(0.35);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.logo-pattern-group[hidden] {
  display: none !important;
}

.logo-pattern-global-summary {
  cursor: pointer;
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 205, 255, 0.72);
  margin-bottom: 0.55rem;
  list-style: none;
}

.logo-pattern-global-summary::-webkit-details-marker {
  display: none;
}

.logo-play__head--nested {
  margin-top: 0.35rem;
}

.logo-play__hint--spice {
  margin: 0 0 0.6rem;
}

.logo-pattern-spice-mount {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.logo-pattern-spice-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.logo-pattern-spice-editor__pick {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.logo-pattern-spice-editor__pick-label {
  font-size: clamp(0.48rem, 0.85vw, 0.55rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 205, 255, 0.52);
}

.logo-pattern-spice-editor__select {
  width: 100%;
  max-width: 28rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 14, 0.72);
  color: rgba(245, 246, 255, 0.9);
  font: inherit;
  font-size: clamp(0.55rem, 0.95vw, 0.68rem);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.logo-pattern-spice-editor__spotlight {
  align-self: flex-start;
  padding: 0.38rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(200, 195, 255, 0.35);
  background: rgba(200, 190, 255, 0.1);
  color: rgba(235, 236, 255, 0.92);
  font: inherit;
  font-size: clamp(0.48rem, 0.85vw, 0.56rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.logo-pattern-spice-editor__spotlight:hover,
.logo-pattern-spice-editor__spotlight:focus-visible {
  background: rgba(200, 190, 255, 0.16);
  border-color: rgba(200, 195, 255, 0.5);
}

.logo-pattern-spice-editor__reset {
  align-self: flex-start;
  padding: 0.38rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 232, 255, 0.88);
  font: inherit;
  font-size: clamp(0.48rem, 0.85vw, 0.56rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.logo-pattern-spice-editor__reset:hover,
.logo-pattern-spice-editor__reset:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 195, 255, 0.35);
}

.logo-pattern-spice-editor__scope {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.4);
}

.logo-pattern-spice-controls {
  padding: 0.5rem 0.55rem 0.55rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-pattern-spice-controls__banner {
  margin: 0 0 0.45rem;
  line-height: 1.45;
}

.logo-pattern-spice-controls .logo-slider__micro {
  margin-top: -0.05rem;
}

.logo-pattern-spice-controls .logo-play__chips {
  margin-bottom: 0.35rem;
}

.logo-pattern-spice-controls .logo-chip__face {
  padding: 0.3rem 0.52rem;
  font-size: clamp(0.48rem, 0.82vw, 0.55rem);
}

.logo-play__head--spice-inner {
  margin-top: 0.45rem;
  margin-bottom: 0.15rem;
}

.logo-toggle--spice {
  margin-bottom: 0.35rem;
}

.logo-slider--spice {
  margin-bottom: 0.35rem;
}

.logo-slider--spice .logo-slider__label {
  font-size: clamp(0.48rem, 0.82vw, 0.55rem);
}

/* Design-specific pattern previews (animate with slider-driven --sig-a / --sig-b) */
.logo-pattern-sig {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-pattern-sig-demo {
  position: relative;
  height: 3.35rem;
  margin: 0.3rem 0 0.5rem;
  border-radius: 12px;
  background: rgba(4, 6, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  --sig-a: 0.5;
  --sig-b: 0.5;
}

.logo-pattern-sig-demo--vault::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 18%;
  height: 46%;
  border: 2px solid rgba(190, 185, 255, 0.5);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  transform-origin: 50% 100%;
  animation: logoSigVaultArch 3.1s ease-in-out infinite;
}

.logo-pattern-sig-demo--vault::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

@keyframes logoSigVaultArch {
  0%,
  100% {
    transform: scaleY(calc(0.82 + var(--sig-a) * 0.38)) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: scaleY(calc(0.92 + var(--sig-b) * 0.28)) translateY(-3px);
    opacity: 1;
  }
}

.logo-pattern-sig-demo--constellation::before,
.logo-pattern-sig-demo--constellation::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(200, 220, 255, 0.85);
  box-shadow: 0 0 10px rgba(180, 200, 255, 0.45);
  animation: logoSigStarOrbit 4s linear infinite;
}

.logo-pattern-sig-demo--constellation::before {
  left: calc(35% + var(--sig-a) * 18%);
  top: 38%;
  animation-duration: calc(3.2s + var(--sig-b) * 2.2s);
}

.logo-pattern-sig-demo--constellation::after {
  left: calc(52% - var(--sig-b) * 12%);
  top: 52%;
  animation-duration: calc(4.5s + var(--sig-a) * 2s);
  animation-direction: reverse;
}

@keyframes logoSigStarOrbit {
  0% {
    transform: rotate(0deg) translateX(calc(10px + var(--sig-a) * 14px)) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(calc(10px + var(--sig-a) * 14px)) rotate(-360deg);
  }
}

.logo-pattern-sig-demo--tessellation {
  background-image: radial-gradient(circle at 50% 48%, rgba(120, 200, 255, 0.12) 0%, transparent 55%),
    repeating-linear-gradient(
      30deg,
      transparent 0,
      transparent 7px,
      rgba(255, 255, 255, 0.06) 7px,
      rgba(255, 255, 255, 0.06) 8px
    );
  animation: logoSigHexPulse 2.8s ease-in-out infinite;
}

@keyframes logoSigHexPulse {
  0%,
  100% {
    filter: saturate(calc(0.85 + var(--sig-a) * 0.35));
    opacity: 0.85;
  }
  50% {
    filter: saturate(calc(1 + var(--sig-a) * 0.5));
    opacity: 1;
  }
}

.logo-pattern-sig-demo--rings::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(200, 190, 255, 0.12),
    0 0 0 calc(8px + var(--sig-a) * 18px) rgba(200, 190, 255, 0.08),
    0 0 0 calc(16px + var(--sig-a) * 28px) rgba(160, 210, 255, 0.06);
  animation: logoSigRingRipple 2.6s ease-out infinite;
}

@keyframes logoSigRingRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
  }
  70% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92);
  }
}

.logo-pattern-sig-demo--pulse::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 22%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 calc(1px + var(--sig-b) * 3px) rgba(200, 200, 255, 0.12);
  animation: logoSigPulseBands 2.2s ease-in-out infinite;
}

@keyframes logoSigPulseBands {
  0%,
  100% {
    transform: scale(calc(0.92 - var(--sig-a) * 0.06));
    opacity: 0.75;
  }
  50% {
    transform: scale(calc(1 - var(--sig-a) * 0.04));
    opacity: 1;
  }
}

.logo-pattern-sig-demo--nebula::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, calc(0.04 + var(--sig-a) * 0.12)) 0%, transparent 42%),
    radial-gradient(circle at 62% 58%, rgba(180, 210, 255, calc(0.08 + var(--sig-b) * 0.18)) 0%, transparent 38%);
  animation: logoSigNebulaDrift 5s ease-in-out infinite;
}

.logo-pattern-sig-demo--nebula::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 22%;
  top: 36%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, calc(0.15 + var(--sig-b) * 0.55)), transparent);
  transform: rotate(-18deg);
  animation: logoSigComet 2.9s ease-in-out infinite;
}

@keyframes logoSigNebulaDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4px, -3px) scale(1.03);
  }
}

@keyframes logoSigComet {
  0%,
  100% {
    opacity: 0.45;
    transform: rotate(-18deg) translateX(0);
  }
  50% {
    opacity: 1;
    transform: rotate(-18deg) translateX(8px);
  }
}

.logo-pattern-sig-demo--lattice::after {
  content: "";
  position: absolute;
  inset: 10%;
  background-image: linear-gradient(rgba(255, 255, 255, calc(0.04 + var(--sig-a) * 0.18)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, calc(0.04 + var(--sig-a) * 0.18)) 1px, transparent 1px);
  background-size: calc(9px - var(--sig-a) * 3px) calc(9px - var(--sig-a) * 3px);
  animation: logoSigGridShimmer 3.4s ease-in-out infinite;
}

@keyframes logoSigGridShimmer {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.logo-pattern-sig-demo--echo::before {
  content: "";
  position: absolute;
  width: 48%;
  height: 48%;
  left: 22%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 200, 255, calc(0.12 + var(--sig-a) * 0.35)) 0%, transparent 68%);
  filter: blur(calc(2px + var(--sig-b) * 6px));
  animation: logoSigBloom 3.6s ease-in-out infinite;
}

.logo-pattern-sig-demo--echo::after {
  content: "";
  position: absolute;
  width: 38%;
  height: 38%;
  right: 16%;
  bottom: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 200, calc(0.08 + var(--sig-a) * 0.22)) 0%, transparent 70%);
  filter: blur(calc(4px + var(--sig-b) * 8px));
  animation: logoSigBloom 4.2s ease-in-out infinite reverse;
}

@keyframes logoSigBloom {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.logo-pattern-sig-demo--naksha::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: repeating-linear-gradient(
    -12deg,
    rgba(120, 190, 255, calc(0.05 + var(--sig-a) * 0.14)) 0 2px,
    rgba(255, 200, 160, calc(0.04 + var(--sig-a) * 0.1)) 2px 5px
  );
  animation: logoSigNakshaMoire 2.4s linear infinite;
  border-radius: 10px;
}

.logo-pattern-sig-demo--naksha::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(36% + var(--sig-b) * 22%);
  height: calc(36% + var(--sig-b) * 22%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(230, 200, 120, calc(0.25 + var(--sig-b) * 0.45));
  animation: logoSigHaloSpin 6s linear infinite;
}

@keyframes logoSigNakshaMoire {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(calc(1 + var(--sig-a) * 0.04));
  }
}

@keyframes logoSigHaloSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-layer-card {
    transform: none !important;
    transition: none !important;
  }

  .logo-layer-card:hover {
    transform: none !important;
  }

  .logo-fuse-thumb__stage {
    animation: none !important;
  }

  .logo-fuse-thumb__letter {
    animation: none !important;
    opacity: 1;
    filter: none;
  }

  .logo-pattern-sig-demo::before,
  .logo-pattern-sig-demo::after {
    animation: none !important;
  }

  .logo-pattern-sig-demo--tessellation {
    animation: none !important;
  }

  .logo-badge-card {
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .logo-badge-grid--pattern-focus .logo-badge-card--pattern-dim {
    filter: none;
    opacity: 0.45;
    transform: none;
  }

  .logo-badge-grid--pattern-focus .logo-badge-card--pattern-focus {
    transform: none;
  }
}

.logo-maker-empty__jump-hint {
  display: none;
}

@media (max-width: 900px) {
  .logo-maker-empty__jump-hint {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92em;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.52);
  }

  body.logo-maker-gadget.alma-ready .gadget-main {
    padding-top: max(2.75rem, calc(env(safe-area-inset-top, 0px) + 1.75rem));
    padding-bottom: max(4.25rem, calc(env(safe-area-inset-bottom, 0px) + 2.85rem));
  }

  /* Logo-only: extra-compact chips & modes (shared panel chrome is gadget.css) */
  body.logo-maker-gadget .gadget-grid.logo-maker-grid > section.gadget-panel:first-of-type .logo-maker-play {
    margin-bottom: 0.48rem;
    padding: 0.38rem 0.45rem 0.48rem;
  }

  body.logo-maker-gadget .gadget-grid.logo-maker-grid > section.gadget-panel:first-of-type .logo-play__head {
    margin-bottom: 0.28rem;
  }

  body.logo-maker-gadget .gadget-grid.logo-maker-grid > section.gadget-panel:first-of-type .logo-maker-mode {
    margin-bottom: 0.45rem;
  }

  body.logo-maker-gadget .gadget-grid.logo-maker-grid > section.gadget-panel:first-of-type .logo-maker-mode legend {
    margin-bottom: 0.28rem;
  }

  /* Selected design (spotlight): hero stays large in the top band — live preview while editing below */
  body.logo-maker-gadget:not(.gadget-mobile--preview-expanded) .logo-results-stage--pattern-focus {
    margin-left: 0;
    margin-right: 0;
    padding: 0.5rem 0.55rem;
  }

  body.logo-maker-gadget:not(.gadget-mobile--preview-expanded) .logo-badge-grid--pattern-focus {
    grid-template-columns: repeat(auto-fill, minmax(5.35rem, 1fr));
    gap: 0.5rem;
    align-items: start;
  }

  body.logo-maker-gadget:not(.gadget-mobile--preview-expanded)
    .logo-badge-grid--pattern-focus
    .logo-badge-card--pattern-focus {
    grid-column: 1 / -1;
    justify-self: center;
    order: -1;
    /* size: filled by @container logo-preview-badges in gadget.css */
  }

  body.logo-maker-gadget:not(.gadget-mobile--preview-expanded)
    .logo-badge-grid--pattern-focus
    .logo-badge-card--pattern-dim {
    max-width: 5.35rem;
    opacity: 0.4;
    filter: blur(4px) saturate(0.78);
  }
}
