:root {
  --orange: #b95003;
  --orange-deep: #5c2a0c;
  --cream: #f7f0e8;
  --blue-gray-100: #f7f9fe;
  --white: #ffffff;
  --banner-ink: #211c12;
  --ink: #454545;
  --bg: #353e4d;
  --dynamic: #bb81f9;
  --curious: #f48b32;
  --collaborative: #82c24a;
  --tenacious: #07baef;
  --theme-accent: #f48b32;
  --theme-deep: #5c2a0c;
  --vacuum-w: 92;
  --vacuum-h: 150;
  --trait-size: 74;
  --kiosk-w: 1920;
  --kiosk-h: 1080;
}

@font-face {
  font-family: "Nulshock";
  src: url("assets/fonts/Nulshock-Bd.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  background: #2a160c;
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.viewport {
  height: 100%;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: linear-gradient(160deg, #4a2410 0%, #2a160c 100%);
  transition: background 0.8s ease;
}

.character-viewport {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--theme-accent) 35%, #1a1010) 0%,
    var(--theme-deep) 100%
  );
}

.stage {
  position: relative;
  width: min(
    100vw - 24px,
    calc((100vh - 24px) * (var(--kiosk-w) / var(--kiosk-h))),
    calc(var(--kiosk-w) * 1px)
  );
  aspect-ratio: var(--kiosk-w) / var(--kiosk-h);
  max-height: min(100vh - 24px, calc(var(--kiosk-h) * 1px));
  border-radius: 0;
  overflow: hidden;
  background: var(--theme-deep);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
}

.character-corner {
  --theme-accent: #f48b32;
  --theme-deep: #5c2a0c;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
}

.corner-bg {
  opacity: 1;
}

.top-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  padding: clamp(1.25rem, 2.64cqi, 2.5rem);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.5cqi, 0.75rem);
  padding: clamp(0.3rem, 0.41cqi, 0.65rem);
  background: var(--white);
  border-radius: 100px;
  box-shadow: 3px 2.5px 2.5px rgba(50, 42, 87, 0.35);
}

.lang-toggle-orange {
  background: var(--theme-accent);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--theme-accent);
  font: inherit;
  font-size: clamp(0.9rem, 1.49cqi, 1.4rem);
  line-height: 1.5;
  padding: clamp(0.45rem, 0.83cqi, 0.8rem) clamp(0.75rem, 1.16cqi, 1.1rem);
  border-radius: 300px;
  cursor: pointer;
  transition: color 0.6s ease, background 0.6s ease;
}

.lang-toggle-orange .lang-btn {
  color: var(--white);
}

.lang-btn.is-active {
  background: var(--theme-accent);
  color: var(--white);
}

.lang-toggle-orange .lang-btn.is-active {
  background: var(--white);
  color: var(--theme-accent);
}

.corner-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
}

.corner-title {
  position: relative;
  z-index: 2;
  width: min(70cqi, 1342px);
  height: clamp(5.5rem, 11.15cqi, 13.4rem);
  margin-top: clamp(0.5rem, 1.5cqi, 1.5rem);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(3px 5px 2.5px rgba(50, 42, 87, 0.55));
}

.corner-title-frame {
  position: absolute;
  inset: -1.5% -0.6%;
  width: 101.2%;
  height: 103%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}

.corner-title-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 0.9cqi, 0.9rem);
  border: clamp(4px, 0.36cqi, 7px) solid #ffe88d;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.corner-title-icon {
  width: clamp(2.8rem, 6.2cqi, 7.4rem);
  height: auto;
  flex-shrink: 0;
  display: block;
}

.corner-title-text {
  margin: 0;
  font-family: "Nulshock", Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.6cqi, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(50, 42, 87, 0.35);
}

.corner-tap {
  /* Figma 2250:3735 — center of 591px pulse at (984.5, 723.2) on 1920×1080 */
  position: absolute;
  left: 51.274%;
  top: 66.961%;
  width: min(30.786cqi, 591px);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.corner-tap:active {
  transform: translate(-50%, -50%) scale(0.985);
}

.corner-radar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-origin: center center;
  animation: corner-pulse 1.05s cubic-bezier(0.15, 0.85, 0.25, 1) infinite;
}

.corner-soundwave {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  display: block;
  opacity: 1;
}

.corner-soundwave-light {
  opacity: 0;
  animation: corner-pulse-light 1.05s cubic-bezier(0.15, 0.85, 0.25, 1) infinite;
  filter: brightness(1.35);
}

/* Perfect circle sharing the radar transform-origin (center) */
.corner-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 63%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffb577;
  pointer-events: none;
}

/* Icon + label centered on the peach disc */
.corner-core {
  position: absolute;
  left: 50%;
  top: 32.75%;
  z-index: 2;
  width: 31.3%;
  height: 35.55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.35rem, 0.9cqi, 0.75rem);
  transform: translateX(-50%);
  pointer-events: none;
  color: var(--blue-gray-100);
}

.corner-icon {
  width: 73%;
  height: auto;
  display: block;
  flex-shrink: 0;
  animation: corner-icon-pulse 1.05s cubic-bezier(0.15, 0.85, 0.25, 1) infinite;
}

.corner-label {
  margin: 0;
  width: max-content;
  max-width: 145%;
  font-family: "Nulshock", Inter, system-ui, sans-serif;
  font-size: clamp(0.75rem, 1.48cqi, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--blue-gray-100);
  white-space: nowrap;
  letter-spacing: 0.02em;
  /* Sit under the wristband’s optical center (art leans left in the SVG box) */
  transform: translateX(-0.28em);
}

@keyframes banner-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes corner-pulse {
  0% {
    transform: scale(0.96);
  }
  14% {
    transform: scale(1.08);
  }
  32% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(0.96);
  }
}

@keyframes corner-pulse-light {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 0.92;
  }
  32% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
  }
}

@keyframes corner-core-glow {
  0% {
    opacity: 0.28;
    background: radial-gradient(
      circle,
      rgba(244, 139, 50, 0.4) 0%,
      rgba(244, 139, 50, 0.18) 42%,
      rgba(244, 139, 50, 0) 72%
    );
  }
  14% {
    opacity: 0.85;
    background: radial-gradient(
      circle,
      rgba(255, 181, 119, 0.72) 0%,
      rgba(255, 181, 119, 0.32) 44%,
      rgba(244, 139, 50, 0) 74%
    );
  }
  32% {
    opacity: 0.4;
    background: radial-gradient(
      circle,
      rgba(255, 181, 119, 0.45) 0%,
      rgba(244, 139, 50, 0.22) 42%,
      rgba(244, 139, 50, 0) 72%
    );
  }
  100% {
    opacity: 0.28;
    background: radial-gradient(
      circle,
      rgba(244, 139, 50, 0.4) 0%,
      rgba(244, 139, 50, 0.18) 42%,
      rgba(244, 139, 50, 0) 72%
    );
  }
}

@keyframes corner-icon-pulse {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.05);
  }
  32%,
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .corner-banner-glow,
  .corner-banner-ellipse,
  .corner-radar,
  .corner-soundwave-light,
  .corner-core::before,
  .corner-icon,
  .bin {
    animation: none;
  }

  .corner-soundwave-light,
  .corner-core::before {
    opacity: 0;
  }

  .lang-btn,
  .character-viewport {
    transition: none;
  }
}

@media (max-width: 700px) {
  .stage {
    border-radius: 0;
  }
}

/* ——— Contribute vacuum (drag & drop) ——— */

.vacuum-viewport {
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(187, 129, 249, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 45% at 15% 85%, rgba(7, 186, 239, 0.14), transparent 45%),
    linear-gradient(165deg, #2a3342 0%, #1f2530 100%);
}

.vacuum-stage {
  background: var(--bg);
  touch-action: none;
}

.vacuum-stage .bg {
  transition: opacity 0.55s ease;
}

.vacuum-stage .bg-trait {
  opacity: 0;
  z-index: 0;
}

.vacuum-stage .bg-trait.is-visible,
.vacuum-stage.has-trait-bg .bg-trait {
  opacity: 1;
}

.vacuum-stage .bg-default {
  z-index: 0;
}

.vacuum-stage.has-trait-bg .bg-default {
  opacity: 0;
}

.vacuum-nav {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  pointer-events: none;
  z-index: 20;
}

.vacuum-nav .lang-toggle {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
}

.vacuum-nav .lang-btn {
  color: #5a6578;
}

.vacuum-nav .lang-btn.is-active {
  background: #5a6578;
  color: var(--white);
}

.progress {
  display: none;
}

.hint {
  position: absolute;
  left: 50%;
  top: 16.3%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  width: 90%;
  text-align: center;
  font-size: clamp(0.95rem, 2.4cqi, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hint.is-hidden {
  opacity: 0;
}

.avatar-prompt {
  position: absolute;
  left: 50%;
  top: 16.3%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  width: min(92%, 920px);
  padding: 0.55rem 1.1rem;
  text-align: center;
  font-size: clamp(1.05rem, 3.2cqi, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  pointer-events: none;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.avatar-prompt[hidden] {
  display: none;
}

.avatar-target {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: min(38cqi, 360px);
  aspect-ratio: 1;
  pointer-events: none;
  transition:
    left 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s ease,
    opacity 0.55s ease;
}

.avatar-target[hidden] {
  display: none;
}

.avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: clamp(10px, 1.4cqi, 20px) solid #8abfbd;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  background: #e8dff5;
}

.avatar-img {
  width: 122%;
  height: 106%;
  object-fit: cover;
  object-position: 44% 42%;
  display: block;
  margin: -3% 0 0 -11%;
  pointer-events: none;
}

.avatar-target.is-sucking {
  z-index: 7;
}

.avatar-target.is-inside {
  width: 42px;
  height: 42px;
  opacity: 0.95;
}

.vacuum-stage.is-avatar-phase .progress,
.vacuum-stage.is-avatar-phase .hint,
.vacuum-stage.is-avatar-phase .traits {
  display: none;
}

.vacuum-stage.is-waiting-board .bins,
.vacuum-stage.is-waiting-board .vacuum {
  pointer-events: none;
}

.trait-popup {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%) scale(0.85);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.trait-popup[hidden] {
  display: none;
}

.trait-popup.is-pop {
  display: flex;
  animation: trait-pop 1.05s ease forwards;
}

.trait-popup-value {
  font-family: "Nulshock", Inter, system-ui, sans-serif;
  font-size: clamp(2.8rem, 9cqi, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--white);
}

.trait-popup-label {
  font-family: "Nulshock", Inter, system-ui, sans-serif;
  font-size: clamp(1.1rem, 3.2cqi, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.trait-popup[data-type="dynamic"] .trait-popup-value,
.trait-popup[data-type="dynamic"] .trait-popup-label {
  color: var(--dynamic);
}

.trait-popup[data-type="tenacious"] .trait-popup-value,
.trait-popup[data-type="tenacious"] .trait-popup-label {
  color: var(--tenacious);
}

.trait-popup[data-type="curious"] .trait-popup-value,
.trait-popup[data-type="curious"] .trait-popup-label {
  color: var(--curious);
}

.trait-popup[data-type="collaborative"] .trait-popup-value,
.trait-popup[data-type="collaborative"] .trait-popup-label {
  color: var(--collaborative);
}

@keyframes trait-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
  55% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8%) scale(0.96);
  }
}

.bins {
  position: absolute;
  left: 3.5%;
  right: 3.5%;
  bottom: 3.8%;
  height: 16.5%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4.5%;
  z-index: 7;
}

.bin {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 70%;
  animation: bin-wiggle 5.2s ease-in-out infinite;
}

.bin-dynamic {
  animation-delay: 0s;
}

.bin-curious {
  animation-delay: 0.55s;
}

.bin-collaborative {
  animation-delay: 1.1s;
}

.bin-tenacious {
  animation-delay: 1.65s;
}

.bin:active {
  animation: none;
  transform: scale(0.98);
}

.bin-shape {
  position: absolute;
  inset: -4% -2%;
  width: 104%;
  height: 108%;
  object-fit: fill;
  pointer-events: none;
}

.bin-dynamic .bin-shape {
  filter:
    drop-shadow(0 0 14px rgba(187, 129, 249, 0.85))
    drop-shadow(0 0 28px rgba(133, 100, 187, 0.55))
    drop-shadow(5px 8px 4px rgba(50, 42, 87, 0.55));
}

.bin-curious .bin-shape {
  filter:
    drop-shadow(0 0 14px rgba(244, 139, 50, 0.85))
    drop-shadow(0 0 28px rgba(244, 139, 50, 0.45))
    drop-shadow(5px 8px 4px rgba(50, 42, 87, 0.55));
}

.bin-collaborative .bin-shape {
  filter:
    drop-shadow(0 0 14px rgba(130, 194, 74, 0.85))
    drop-shadow(0 0 28px rgba(84, 164, 15, 0.45))
    drop-shadow(5px 8px 4px rgba(50, 42, 87, 0.55));
}

.bin-tenacious .bin-shape {
  filter:
    drop-shadow(0 0 14px rgba(7, 186, 239, 0.9))
    drop-shadow(0 0 28px rgba(0, 195, 255, 0.5))
    drop-shadow(5px 8px 4px rgba(50, 42, 87, 0.55));
}

.bin-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding-top: 0.4rem;
  font-weight: 700;
  pointer-events: none;
}

.bin-icon {
  width: clamp(28px, 5cqi, 56px);
  height: clamp(28px, 5cqi, 56px);
  object-fit: contain;
}

.bin-dynamic .bin-icon {
  width: clamp(22px, 3.8cqi, 42px);
  height: clamp(30px, 5.2cqi, 58px);
}

.bin-content span {
  font-family: "Nulshock", Inter, system-ui, sans-serif;
  font-size: clamp(0.7rem, 2.1cqi, 1.55rem);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: var(--white);
}

@keyframes bin-wiggle {
  0%,
  72%,
  100% {
    transform: rotate(0deg) translateX(0);
  }
  76% {
    transform: rotate(-2.4deg) translateX(-1px);
  }
  80% {
    transform: rotate(2.2deg) translateX(1px);
  }
  84% {
    transform: rotate(-1.8deg) translateX(-1px);
  }
  88% {
    transform: rotate(1.4deg) translateX(1px);
  }
  92% {
    transform: rotate(-0.8deg);
  }
  96% {
    transform: rotate(0.4deg);
  }
}

.traits {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.trait {
  position: absolute;
  width: calc(var(--trait-size) * 1px);
  height: calc(var(--trait-size) * 1px);
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: default;
  will-change: transform, opacity, left, top;
}

.trait .swirl-point {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  animation: spin-idle 10s linear infinite;
}

.trait:nth-child(odd) .swirl-point {
  animation-direction: reverse;
  animation-duration: 12s;
}

.trait.is-sucking .swirl-point {
  animation: spin-fast 0.35s linear infinite;
}

.trait.is-inside .swirl-point {
  animation: spin-idle 6s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.trait.is-sucking {
  z-index: 9;
  pointer-events: none;
  transition:
    left 0.55s cubic-bezier(0.4, 0, 1, 1),
    top 0.55s cubic-bezier(0.4, 0, 1, 1),
    transform 0.55s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.55s ease;
}

.trait.is-inside {
  position: absolute;
  z-index: 1;
  width: 34px;
  height: 34px;
  transform: none;
  left: auto !important;
  top: auto !important;
  margin: 0;
  pointer-events: none;
  animation: settle-in 0.35s ease forwards;
}

@keyframes spin-idle {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-fast {
  to {
    transform: rotate(360deg);
  }
}

@keyframes settle-in {
  from {
    opacity: 0.4;
    transform: scale(1.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mount {
  position: absolute;
  top: 0;
  /* Keep clear of top-right language toggle */
  right: 26%;
  width: 58px;
  height: 20px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45),
    rgba(180, 195, 210, 0.35)
  );
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-top: 0;
  box-shadow: inset 0 -2px 10px rgba(255, 255, 255, 0.35);
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.hose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

#hose-glow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 42;
  stroke-linecap: round;
  filter: blur(4px);
}

#hose-path {
  fill: none;
  stroke: url(#hose-fill);
  stroke-width: 34;
  stroke-linecap: round;
}

#hose-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0.55;
}

.vacuum {
  position: absolute;
  width: calc(var(--vacuum-w) * 1px);
  height: calc(var(--vacuum-h) * 1px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  z-index: 6;
  transform: translate(-50%, 0);
}

.vacuum:active,
.vacuum.is-dragging {
  cursor: grabbing;
}

.vacuum-glass {
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 30px 30px;
  background: linear-gradient(
    165deg,
    rgba(196, 204, 214, 0.72) 0%,
    rgba(140, 152, 168, 0.45) 42%,
    rgba(170, 180, 194, 0.58) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 2px 18px rgba(255, 255, 255, 0.28),
    inset 0 -8px 20px rgba(0, 0, 0, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.vacuum-rim {
  position: absolute;
  inset: 8% 14% auto;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.vacuum-chamber {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 16%;
  bottom: 22%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
}

.vacuum-mouth {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 62%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(20, 28, 40, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.vacuum-suction {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 48%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.45),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
}

.vacuum.is-dragging .vacuum-suction,
.vacuum.is-sucking .vacuum-suction {
  opacity: 1;
  animation: pulse-suction 0.45s ease-in-out infinite;
}

@keyframes pulse-suction {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translateX(-50%) scale(1.4);
    opacity: 0.9;
  }
}

.done {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-content: center;
  gap: clamp(1.35rem, 2.8cqi, 2.25rem);
  background: rgba(53, 62, 77, 0.78);
  backdrop-filter: blur(10px);
  text-align: center;
  font-weight: 700;
  padding: 1.5rem;
}

.done[hidden] {
  display: none;
}

.done-link {
  justify-self: center;
  display: inline-block;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  min-width: min(42cqi, 16rem);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.95rem, 2.2cqi, 1.25rem);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.done button {
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  min-width: min(42cqi, 16rem);
  background: var(--collaborative);
  color: var(--white);
  font: inherit;
  font-size: clamp(0.95rem, 2.2cqi, 1.25rem);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.done button:active {
  transform: scale(0.98);
}

/* ——— Sign-off (Great work) — Figma 2250:3898 ——— */

.signoff-viewport {
  background: #050b18;
}

.signoff-stage {
  --kiosk-w: 1920;
  --kiosk-h: 1080;
  background: #0a1630;
}

.signoff-stage .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
}

.signoff-stage .top-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: clamp(1rem, 2.2cqi, 2.6rem);
  pointer-events: none;
}

.signoff-stage .top-nav .lang-toggle {
  pointer-events: auto;
  background: #515e74;
  box-shadow: 3px 2.5px 2.5px rgba(50, 42, 87, 0.35);
}

.signoff-stage .lang-btn {
  color: var(--white);
}

.signoff-stage .lang-btn.is-active {
  background: var(--white);
  color: #454545;
}

.signoff-main {
  position: absolute;
  left: 50%;
  top: calc(50% + 4.5cqi);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(100cqi, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 3.75cqi, 4.5rem);
}

.signoff-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--white);
  pointer-events: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.signoff-title {
  margin: 0;
  font-family: "Nulshock", Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 3.33cqi, 4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.signoff-subtitle {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.92cqi, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
}

.signoff-exit {
  position: relative;
  z-index: 8;
  width: min(31.5cqi, 604px);
  aspect-ratio: 604 / 200;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
}

.signoff-exit:active {
  transform: scale(0.98);
}

.signoff-exit-glow {
  position: absolute;
  inset: -18% -10%;
  pointer-events: none;
  z-index: 0;
  border-radius: 8px;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 186, 239, 0.55) 0%,
    rgba(7, 186, 239, 0.2) 45%,
    rgba(7, 186, 239, 0) 72%
  );
  filter: blur(18px);
  animation: signoff-glow 2.8s ease-in-out infinite;
}

.signoff-exit-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
  filter:
    drop-shadow(0 0 8px rgba(7, 186, 239, 0.65))
    drop-shadow(0 0 22px rgba(7, 186, 239, 0.45))
    drop-shadow(0 0 40px rgba(7, 186, 239, 0.28));
  animation: signoff-glow-filter 2.8s ease-in-out infinite;
}

.signoff-exit-shape {
  position: absolute;
  left: 4.66%;
  top: 0;
  width: 90.84%;
  height: 89.4%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}

.signoff-exit-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 0.55cqi, 0.7rem);
  margin-top: 2%;
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2cqi, 2.65rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow:
    0 8px 20px rgba(0, 0, 0, 0.34),
    0 24px 40px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.signoff-exit-content img {
  width: clamp(1.5rem, 2.8cqi, 3.4rem);
  height: clamp(1.5rem, 2.8cqi, 3.4rem);
  object-fit: contain;
}

@keyframes signoff-glow {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.78;
  }
}

@keyframes signoff-glow-filter {
  0%,
  100% {
    filter:
      drop-shadow(0 0 6px rgba(7, 186, 239, 0.45))
      drop-shadow(0 0 16px rgba(7, 186, 239, 0.32))
      drop-shadow(0 0 28px rgba(7, 186, 239, 0.18));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(7, 186, 239, 0.75))
      drop-shadow(0 0 24px rgba(7, 186, 239, 0.55))
      drop-shadow(0 0 42px rgba(7, 186, 239, 0.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  .signoff-exit-glow,
  .signoff-exit-frame {
    animation: none;
  }
}

@media (max-width: 700px) {
  :root {
    --vacuum-w: 68;
    --vacuum-h: 112;
    --trait-size: 56;
  }

  #hose-path {
    stroke-width: 26;
  }

  #hose-glow {
    stroke-width: 32;
  }

  #hose-shine {
    stroke-width: 6;
  }

  .trait.is-inside {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trait .swirl-point,
  .trait.is-sucking .swirl-point,
  .vacuum.is-dragging .vacuum-suction,
  .vacuum.is-sucking .vacuum-suction,
  .trait-popup.is-pop {
    animation: none;
  }

  .trait-popup.is-pop {
    opacity: 1;
    transform: translateX(-50%);
  }

  .trait-overlay-stage.is-open {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ——— Trait info overlays (bin tap) ——— */

.trait-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.trait-overlay:not([hidden]) {
  pointer-events: auto;
}

.trait-overlay[hidden] {
  display: none;
}

.trait-overlay-dismiss {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.trait-overlay-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(58cqi, 68%);
  max-width: 68%;
  max-height: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.trait-overlay-stage.is-open {
  animation: overlay-in 0.38s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

.trait-overlay-art {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 58cqi;
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
}

@keyframes overlay-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
