/* ============================================================
   UX Dictionary — Styles
   Fonts: Geist (body), Geist Mono (headings/logo)
   ============================================================ */

/* --- Reset & Variables ------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --off-white: #FAFAFA;
  --off-white-t: #FDFCFB;
  --black: #0F0F0F;
  --grey: #8C8C8A;
  --grey-warm: #EDEBEB;
  --purple: #AA8AC0;
  --white: #FFFFFF;

  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Code', monospace;

  --card-radius: 40px;
  --pill-radius: 999px;
  --card-w: 600px;
  --card-h: 360px;
  --card-shadow: 0px 8px 25px 0px rgba(0, 0, 0, 0.03);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: #c9a882;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* --- Background ------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  border-radius: 0;
}

.bg-base {
  position: absolute;
  inset: 0;
  background: #1a1008;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.20) 100%
  );
}

/* --- App Layout ------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 80px 65px;
  gap: 0;
}

/* --- Header ----------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
}

.logo {
  white-space: nowrap;
}

.ux-dictionary {
  position: relative;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: #fafafa;
  text-align: left;
  text-shadow:
    0px 1px 3px rgba(0, 0, 0, 0.6),
    0px 2px 16px rgba(0, 0, 0, 0.5);
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--pill-radius);
  background: rgba(253, 252, 251, 0.16);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--off-white-t);
  letter-spacing: -0.32px;
  line-height: 1;
  transition: background 0.2s;
}

.theme-btn:hover {
  background: rgba(253, 252, 251, 0.24);
}

/* --- Main / Center Content -------------------------------- */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* --- Navigation Pills ------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--pill-radius);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1;
  color: #ffffff;
  background: transparent;
  transition: color 0.2s;
  isolation: isolate;
}

/* Frosted glass background via pseudo-element so .active can be truly opaque */
.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: background 0.2s;
  z-index: -1;
}

.nav-pill[data-category="all"] {
  padding: 10px 20px;
}

.nav-pill svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-pill.active {
  color: #0f0f0f;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-pill.active::before {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-pill:hover:not(.active)::before {
  background: rgba(255, 255, 255, 0.28);
}

/* --- Card Stack Area -------------------------------------- */
.card-stack-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Shadow/back card wrapper — creates the "stacked deck" effect */
.card-shadow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 613px;
  height: 382px;
  margin-bottom: -360px;
  position: relative;
  z-index: 1;
  transition: opacity 0.18s ease;
}

.card--shadow {
  transform: rotate(-2.11deg);
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  pointer-events: none;
  user-select: none;
}

/* --- 3D Card Scene --------------------------------------- */
.card-scene {
  position: relative;
  z-index: 2;
  width: var(--card-w);
  height: var(--card-h);
  perspective: 1400px;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform;
  transition: opacity 0.18s ease, transform 0.12s ease-out;
}

/* Hide content on the decorative back card — show clean stack shape only */
.card--shadow .card-badge,
.card--shadow .card-term-text {
  display: none;
}

.card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner.flipped {
  transform: rotateY(180deg);
}

/* --- Card Base ------------------------------------------- */
.card {
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Card faces (3D flip) */
.card--face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

/* Definition face is rotated 180° and has different layout */
.card--def-face {
  transform: rotateY(180deg);
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding: 32px 40px;
}

/* --- Card Content: Term Face ----------------------------- */
.card-term-text {
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -1.2px;
  line-height: 1;
  text-align: center;
  transition: opacity 0.2s;
}

/* --- Category Badge --------------------------------------- */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--pill-radius);
  background: var(--grey-warm);
  flex-shrink: 0;
}

.badge-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: -0.32px;
  line-height: 1;
}

.badge-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--grey);
}

.badge-icon svg {
  width: 16px;
  height: 16px;
}

/* Purple badge variant (for active/highlighted) */
.card-badge--purple {
  background: var(--purple);
}
.card-badge--purple .badge-label,
.card-badge--purple .badge-icon {
  color: var(--off-white);
}

/* --- Card Content: Definition Face ----------------------- */
.def-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
}

.def-term-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: -0.32px;
  line-height: 1;
}

/* Smaller badge on definition face */
.def-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: var(--pill-radius);
  background: var(--grey-warm);
  flex-shrink: 0;
}

.def-badge .badge-label {
  font-size: 12px;
  letter-spacing: -0.24px;
}

.def-badge .badge-icon {
  width: 12px;
  height: 12px;
}

.def-badge .badge-icon svg {
  width: 12px;
  height: 12px;
}

.def-text {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.4px;
  line-height: 1.45;
  flex-shrink: 0;
  width: 100%;
}

/* Slot: the visual example area */
.def-slot {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: var(--grey-warm);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* --- Slot Visuals: Component Examples -------------------- */

/* Toast example */
.slot-toast-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 280px;
  height: 140px;
  background: white;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  padding-bottom: 18px;
}

.slot-toast-notif {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
}

.slot-toast-notif .slot-x {
  margin-left: 4px;
  color: var(--grey);
  font-size: 14px;
  line-height: 1;
  cursor: default;
}

/* Modal example */
.slot-modal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  border-radius: 20px;
  margin: 10px;
}

.slot-modal-box {
  background: white;
  border-radius: 16px;
  width: 200px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.slot-modal-title {
  width: 70%;
  height: 10px;
  background: #d0d0d0;
  border-radius: 5px;
}

.slot-modal-body {
  width: 100%;
  height: 7px;
  background: #e8e8e8;
  border-radius: 5px;
}
.slot-modal-body-2 {
  width: 80%;
  height: 7px;
  background: #e8e8e8;
  border-radius: 5px;
}

.slot-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  justify-content: flex-end;
}

.slot-modal-btn {
  height: 28px;
  border-radius: 8px;
}

.slot-modal-btn--secondary {
  width: 64px;
  background: #edebeb;
}

.slot-modal-btn--primary {
  width: 72px;
  background: var(--black);
}

/* Tooltip example */
.slot-tooltip-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.slot-tooltip-target {
  background: var(--black);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
}

.slot-tooltip-bubble {
  background: #222;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  white-space: nowrap;
  position: relative;
}

.slot-tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #222;
}

/* Skeleton example */
.slot-skeleton-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 220px;
}

.slot-skel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e0e0e0 25%, #ebebeb 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}

.slot-skel-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.slot-skel-line {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #e0e0e0 25%, #ebebeb 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.slot-skel-line--short { width: 60%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Breadcrumb example */
.slot-breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
}

.slot-bc-item { color: var(--grey); }
.slot-bc-item--active { color: var(--black); font-weight: 500; }
.slot-bc-sep { color: #ccc; }

/* Accordion example */
.slot-accordion-wrap {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-acc-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

.slot-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--black);
}

.slot-acc-arrow { font-size: 10px; color: var(--grey); }

.slot-acc-body {
  padding: 0 14px 10px;
  height: 28px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slot-acc-body-line {
  height: 6px;
  background: var(--grey-warm);
  border-radius: 3px;
}

.slot-acc-body-line--short { width: 70%; }

/* --- Slot Visuals: Pattern Examples ---------------------- */

/* Infinite scroll */
.slot-scroll-wrap {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-scroll-item {
  height: 30px;
  background: white;
  border-radius: 8px;
}

.slot-scroll-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.slot-spinner-ring {
  width: 16px;
  height: 16px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--grey);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Progressive disclosure */
.slot-disclosure-wrap {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-disc-row {
  background: white;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-disc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--black);
}

.slot-disc-arrow { color: var(--grey); font-size: 10px; }

.slot-disc-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slot-disc-line {
  height: 6px;
  background: var(--grey-warm);
  border-radius: 3px;
}
.slot-disc-line--short { width: 65%; }

/* Empty state */
.slot-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.slot-empty-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.slot-empty-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
}

.slot-empty-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--grey);
  max-width: 160px;
}

.slot-empty-btn {
  background: var(--black);
  color: white;
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 7px 14px;
  border-radius: var(--pill-radius);
  margin-top: 2px;
}

/* Onboarding */
.slot-onboarding-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 220px;
}

.slot-onboard-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.slot-onboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0d0;
}

.slot-onboard-dot--active {
  width: 20px;
  border-radius: 4px;
  background: var(--black);
}

.slot-onboard-card {
  background: white;
  border-radius: 14px;
  padding: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.slot-onboard-icon {
  width: 32px;
  height: 32px;
  background: var(--grey-warm);
  border-radius: 8px;
}

.slot-onboard-line {
  width: 80%;
  height: 8px;
  background: var(--grey-warm);
  border-radius: 4px;
}

.slot-onboard-line--short {
  width: 55%;
  height: 6px;
}

/* --- Slot Visuals: Principles Examples ------------------- */

/* Fitts's Law */
.slot-fitts-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  width: 220px;
}

.slot-fitts-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-fitts-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  width: 70px;
  flex-shrink: 0;
}

.slot-fitts-target {
  background: var(--black);
  border-radius: 50%;
  flex-shrink: 0;
}

.slot-fitts-target--lg { width: 36px; height: 36px; }
.slot-fitts-target--md { width: 22px; height: 22px; }
.slot-fitts-target--sm { width: 12px; height: 12px; }

.slot-fitts-ease {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
}

/* Hick's Law */
.slot-hicks-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 220px;
}

.slot-hicks-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-hicks-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  width: 72px;
  flex-shrink: 0;
}

.slot-hicks-bar {
  height: 10px;
  background: var(--black);
  border-radius: 5px;
}
.slot-hicks-bar--s { width: 50px; }
.slot-hicks-bar--m { width: 80px; }
.slot-hicks-bar--l { width: 120px; }

/* Jakob's Law */
.slot-jakob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 220px;
}

.slot-jakob-browsers {
  display: flex;
  gap: 4px;
  width: 100%;
}

.slot-jakob-tab {
  flex: 1;
  background: #e8e8e8;
  border-radius: 6px 6px 0 0;
  padding: 6px 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  text-align: center;
}

.slot-jakob-tab--active {
  background: white;
  color: var(--black);
}

.slot-jakob-browser-body {
  width: 100%;
  background: white;
  border-radius: 0 6px 6px 6px;
  height: 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.slot-jakob-line {
  height: 7px;
  background: var(--grey-warm);
  border-radius: 3px;
}
.slot-jakob-line--short { width: 60%; }

.slot-jakob-note {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  text-align: center;
}

/* Affordance */
.slot-afford-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.slot-afford-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.slot-afford-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
}

.slot-afford-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
}

.slot-afford-btn--flat {
  background: #e8e8e8;
  color: var(--grey);
}

.slot-afford-btn--raised {
  background: var(--black);
  color: white;
  box-shadow: 0 4px 0 #555;
}

/* --- Slot Visuals: Research Examples --------------------- */

/* Affinity map */
.slot-affinity-wrap {
  display: flex;
  gap: 10px;
}

.slot-affinity-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-note {
  width: 64px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-note--yellow { background: #fef08a; }
.slot-note--blue   { background: #bae6fd; }
.slot-note--pink   { background: #fbcfe8; }
.slot-note--green  { background: #bbf7d0; }

/* Card sorting */
.slot-csorting-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.slot-cs-pile {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slot-cs-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  margin-bottom: 2px;
  text-align: center;
}

.slot-cs-card {
  width: 72px;
  height: 28px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--black);
}

/* Usability test */
.slot-usability-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slot-person {
  width: 32px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.slot-person-head {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d0c4bc;
}

.slot-person-body {
  width: 28px;
  height: 26px;
  background: #d0c4bc;
  border-radius: 6px 6px 0 0;
}

.slot-arrow-right {
  font-size: 18px;
  color: var(--grey);
}

.slot-screen-mini {
  width: 80px;
  height: 60px;
  background: white;
  border-radius: 8px;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.slot-screen-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 100%;
}

.slot-screen-line {
  height: 6px;
  background: var(--grey-warm);
  border-radius: 3px;
}

.slot-screen-line--short { width: 65%; }

/* A/B Test */
.slot-ab-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-ab-variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.slot-ab-tag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: white;
}

.slot-ab-tag--a { background: var(--black); }
.slot-ab-tag--b { background: var(--purple); }

.slot-ab-card {
  width: 78px;
  height: 60px;
  border-radius: 10px;
  background: white;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.slot-ab-line {
  height: 7px;
  background: var(--grey-warm);
  border-radius: 3px;
}
.slot-ab-line--short { width: 55%; }
.slot-ab-line--accent { background: #c4b3d4; }

.slot-ab-vs {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
}

/* Contextual inquiry */
.slot-ci-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 220px;
}

.slot-ci-scene {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.slot-ci-thought {
  background: white;
  border-radius: 10px 10px 10px 2px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  max-width: 130px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.slot-ci-note {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  text-align: center;
}

/* --- Controls -------------------------------------------- */
.controls {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-shrink: 0;
}

.circle-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
  flex-shrink: 0;
  isolation: isolate;
}

.circle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(253, 252, 251, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.2s;
  z-index: -1;
}

.circle-btn:hover::before {
  background: rgba(253, 252, 251, 0.28);
}

.circle-btn:active {
  transform: scale(0.95);
}

.reveal-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  border-radius: 999px;
  background-color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 20px;
  font-weight: 400;
  color: #0f0f0f;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.1s;
}

.reveal-btn:hover {
  background-color: #f5f5f5;
}

.reveal-btn:active {
  transform: scale(0.98);
}

/* --- Card Counter ---------------------------------------- */
.card-counter {
  position: fixed;
  bottom: 24px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(253, 252, 251, 0.5);
  letter-spacing: -0.26px;
  pointer-events: none;
}

/* --- Card transition (fade on navigate) ------------------ */
.card-transitioning .card-inner {
  opacity: 0;
  transform: scale(0.97);
}

.card-transitioning .card--shadow {
  opacity: 0;
}

/* Transition utility */
.card-inner {
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              scale 0.2s ease;
}

/* --- Shuffle Animation ----------------------------------- */
@keyframes card-shuffle-out-right {
  0%   { transform: translateX(0)     translateY(0)     scale(1)    rotate(0deg);   opacity: 1;    }
  35%  { transform: translateX(120px) translateY(-22px) scale(0.78) rotate(11deg);  opacity: 0.75; }
  70%  { transform: translateX(28px)  translateY(10px)  scale(0.58) rotate(2deg);   opacity: 0.1;  }
  100% { transform: translateX(10px)  translateY(4px)   scale(0.55) rotate(-1deg);  opacity: 0;    }
}

@keyframes card-shuffle-out-left {
  0%   { transform: translateX(0)      translateY(0)     scale(1)    rotate(0deg);  opacity: 1;    }
  35%  { transform: translateX(-120px) translateY(-22px) scale(0.78) rotate(-11deg);opacity: 0.75; }
  70%  { transform: translateX(-28px)  translateY(10px)  scale(0.58) rotate(-2deg); opacity: 0.1;  }
  100% { transform: translateX(-10px)  translateY(4px)   scale(0.55) rotate(1deg);  opacity: 0;    }
}

@keyframes card-shuffle-in {
  0%   { transform: translateY(20px)  scale(0.55)   rotate(-0.5deg); opacity: 0; }
  55%  { transform: translateY(-8px)  scale(1.024)  rotate(0.2deg);  opacity: 1; }
  100% { transform: translateY(0px)   scale(1)      rotate(0deg);    opacity: 1; }
}

@keyframes deck-scatter-out {
  0%   { transform: scale(1)    translateY(0)    rotate(0deg);   opacity: 1; }
  40%  { transform: scale(1.04) translateY(-18px) rotate(-3deg); opacity: 0.8; }
  100% { transform: scale(0.72) translateY(-50px) rotate(6deg);  opacity: 0; }
}

@keyframes deck-nudge {
  0%   { transform: rotate(-2.11deg); }
  25%  { transform: rotate(-6.5deg) translateX(-10px) translateY(5px) scale(1.03); }
  60%  { transform: rotate(-0.4deg) translateX(4px) scale(0.99); }
  100% { transform: rotate(-2.11deg); }
}

/* --- Light Mode Overrides -------------------------------- */
.theme-light .ux-dictionary {
  color: #0f0f0f;
  text-shadow: none;
}

.theme-light .theme-btn {
  color: #0f0f0f;
  background: rgba(0, 0, 0, 0.09);
}

.theme-light .theme-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.theme-light .theme-btn svg path {
  stroke: #0f0f0f;
}

.theme-light .nav-pill {
  color: #0f0f0f;
}

.theme-light .nav-pill::before {
  background: rgba(0, 0, 0, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-light .nav-pill:hover:not(.active)::before {
  background: rgba(0, 0, 0, 0.13);
}

.theme-light .nav-pill.active {
  color: #ffffff;
}

.theme-light .nav-pill.active::before {
  background: #0f0f0f;
}

.theme-light .circle-btn::before {
  background: rgba(0, 0, 0, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-light .circle-btn:hover::before {
  background: rgba(0, 0, 0, 0.13);
}

.theme-light .circle-btn svg path {
  stroke: #0f0f0f;
}

.theme-light .reveal-btn {
  background-color: #0f0f0f;
  color: #ffffff;
}

.theme-light .reveal-btn:hover {
  background-color: #2a2a2a;
}

.theme-light .card-counter {
  color: rgba(15, 15, 15, 0.45);
}

/* --- Slot Visuals: New Components ------------------------ */

/* Drawer / Bottom sheet */
.slot-drawer-wrap {
  display: flex;
  justify-content: center;
}

.slot-drawer-screen {
  width: 160px;
  height: 110px;
  background: #f0eeec;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #e0ddd9;
}

.slot-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.slot-drawer-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: white;
  border-radius: 10px 10px 0 0;
  padding: 10px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-drawer-handle {
  width: 32px;
  height: 4px;
  background: #d0ccc8;
  border-radius: 2px;
}

.slot-drawer-row {
  height: 7px;
  width: 100%;
  background: #e8e5e2;
  border-radius: 4px;
}

.slot-drawer-row--short {
  width: 65%;
}

/* Banner */
.slot-banner-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 240px;
}

.slot-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef9c3;
  border-bottom: 1.5px solid #fde68a;
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
}

.slot-banner-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.slot-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot-banner-title {
  height: 7px;
  background: #ca8a04;
  border-radius: 3px;
  width: 80%;
  opacity: 0.6;
}

.slot-banner-sub {
  height: 5px;
  background: #ca8a04;
  border-radius: 3px;
  width: 55%;
  opacity: 0.35;
}

.slot-banner-x {
  font-size: 14px;
  color: #92400e;
  opacity: 0.5;
  flex-shrink: 0;
}

.slot-banner-body {
  background: white;
  border: 1.5px solid #e8e5e2;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-banner-line {
  height: 7px;
  background: #e8e5e2;
  border-radius: 3px;
}

.slot-banner-line--short {
  width: 60%;
}

/* Badge */
.slot-badge-demo-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
}

.slot-badge-item {
  position: relative;
}

.slot-badge-num {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: white;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid white;
}

.slot-badge-num--purple {
  background: var(--purple);
}

.slot-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 1.5px solid white;
}

/* Chip / Tag */
.slot-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 240px;
}

.slot-chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  background: #f0eeec;
  color: #555;
  border: 1.5px solid #e0ddd9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slot-chip--active {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

.slot-chip-x {
  opacity: 0.6;
  font-size: 12px;
}

/* Toggle / Switch */
.slot-toggle-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}

.slot-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-toggle-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #444;
}

.slot-toggle {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.slot-toggle--on {
  background: var(--black);
}

.slot-toggle--off {
  background: #d0ccc8;
}

.slot-toggle-thumb {
  position: absolute;
  top: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: left 0.2s;
}

.slot-toggle--on .slot-toggle-thumb  { left: 19px; }
.slot-toggle--off .slot-toggle-thumb { left: 3px; }

/* Stepper */
.slot-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

.slot-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  background: #e8e5e2;
  color: #888;
  flex-shrink: 0;
  z-index: 1;
}

.slot-step--done {
  background: var(--black);
  color: white;
  font-size: 10px;
}

.slot-step--active {
  background: var(--black);
  color: white;
  box-shadow: 0 0 0 3px rgba(15,15,15,0.15);
}

.slot-step-line {
  width: 36px;
  height: 2px;
  background: #e0ddd9;
  flex-shrink: 0;
}

.slot-step-line--done {
  background: var(--black);
}

/* Progress Indicator */
.slot-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 220px;
}

.slot-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-progress-row--sub {
  justify-content: flex-start;
}

.slot-progress-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #333;
}

.slot-progress-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #555;
}

.slot-progress-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
}

.slot-progress-track {
  height: 8px;
  background: #e8e5e2;
  border-radius: 999px;
  overflow: hidden;
}

.slot-progress-fill {
  height: 100%;
  width: 65%;
  background: var(--black);
  border-radius: 999px;
}

/* Input Field */
.slot-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 220px;
}

.slot-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot-input-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #666;
}

.slot-input-box {
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  background: white;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 2px;
}

.slot-input-box--focused {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(15,15,15,0.08);
  color: var(--black);
}

.slot-input-placeholder {
  color: #bbb;
  font-size: 11px;
}

.slot-input-cursor {
  color: var(--black);
  font-size: 12px;
  animation: blink 1s step-end infinite;
}

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

/* Card (component) */
.slot-cardcomp-wrap {
  display: flex;
  justify-content: center;
}

.slot-cardcomp {
  width: 160px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.slot-cardcomp-img {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #e8e5e2, #d0ccc8);
}

.slot-cardcomp-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-cardcomp-title {
  height: 8px;
  background: #333;
  border-radius: 4px;
  width: 75%;
}

.slot-cardcomp-sub {
  height: 6px;
  background: #e0ddd9;
  border-radius: 4px;
  width: 90%;
}

.slot-cardcomp-btn {
  height: 22px;
  background: var(--black);
  border-radius: 6px;
  margin-top: 2px;
  width: 65px;
}

/* Nav Bar */
.slot-navbar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 240px;
}

.slot-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid #e8e5e2;
}

.slot-navbar-logo {
  width: 22px;
  height: 22px;
  background: var(--black);
  border-radius: 6px;
}

.slot-navbar-links {
  display: flex;
  gap: 12px;
}

.slot-navbar-link {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #999;
}

.slot-navbar-link--active {
  color: var(--black);
  font-weight: 500;
}

.slot-navbar-cta {
  width: 44px;
  height: 20px;
  background: var(--black);
  border-radius: 999px;
}

.slot-navbar-body {
  background: #f8f7f6;
  border: 1.5px solid #e8e5e2;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-navbar-line {
  height: 7px;
  background: #e0ddd9;
  border-radius: 3px;
}

.slot-navbar-line--short {
  width: 55%;
}

/* Context Menu */
.slot-ctx-wrap {
  display: flex;
  justify-content: center;
}

.slot-ctx-menu {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  padding: 5px 0;
  min-width: 140px;
  border: 1px solid rgba(0,0,0,0.06);
}

.slot-ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #333;
}

.slot-ctx-item--danger {
  color: #ef4444;
}

.slot-ctx-icon {
  font-size: 11px;
  opacity: 0.5;
  width: 14px;
  text-align: center;
}

.slot-ctx-divider {
  height: 1px;
  background: #f0eeec;
  margin: 3px 0;
}

/* --- Slot Visuals: Patterns (new) ------------------------ */

/* Pagination */
.slot-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-pg-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.slot-pg-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: white;
  border: 1.5px solid #e0ddd9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
}

.slot-pg-btn--active {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

.slot-pg-btn--arrow {
  font-size: 14px;
  color: #888;
  border-color: #eee;
}

.slot-pg-ellipsis {
  font-size: 13px;
  color: #aaa;
  padding: 0 2px;
}

/* Error state */
.slot-error-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-error-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.slot-error-title {
  width: 120px;
  height: 9px;
  background: #333;
  border-radius: 4px;
}

.slot-error-sub {
  width: 160px;
  height: 7px;
  background: #ddd;
  border-radius: 4px;
}

.slot-error-btn {
  margin-top: 4px;
  padding: 7px 16px;
  background: #ef4444;
  color: white;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
}

/* Loading state */
.slot-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.slot-loading-spinner {
  width: 36px;
  height: 36px;
  position: relative;
}

.slot-spinner-arc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #e8e5e2;
  border-top-color: var(--black);
  animation: spin 0.8s linear infinite;
}

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

.slot-loading-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--grey);
}

/* Module */
.slot-module-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 220px;
}

.slot-module-block {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.slot-module-block--alt .slot-module-header {
  background: #c4b3d4;
}

.slot-module-header {
  height: 14px;
  background: #d0ccc8;
}

.slot-module-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slot-module-line {
  height: 6px;
  background: #e8e5e2;
  border-radius: 3px;
}

.slot-module-line--short { width: 60%; }

/* Dialog */
.slot-dialog-wrap {
  position: relative;
  width: 220px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-dialog-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
}

.slot-dialog-box {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 14px;
  width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-dialog-title {
  height: 9px;
  background: #333;
  border-radius: 4px;
  width: 60%;
}

.slot-dialog-body {
  height: 6px;
  background: #e0ddd9;
  border-radius: 3px;
}

.slot-dialog-body--short { width: 75%; }

.slot-dialog-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 4px;
}

.slot-dialog-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
}

.slot-dialog-btn--ghost {
  background: #f0eeec;
  color: #555;
}

.slot-dialog-btn--primary {
  background: var(--black);
  color: white;
}

/* Drill in */
.slot-drillin-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 200px;
}

.slot-drillin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: white;
  border-radius: 8px;
  border: 1.5px solid #e8e5e2;
}

.slot-drillin-item--active {
  border-color: var(--black);
  background: #f8f7f6;
}

.slot-drillin-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #333;
}

.slot-drillin-arrow {
  font-size: 14px;
  color: #aaa;
}

.slot-drillin-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
}

/* Sticky */
.slot-sticky-wrap {
  display: flex;
  flex-direction: column;
  width: 220px;
  overflow: hidden;
  border-radius: 10px;
  border: 1.5px solid #e8e5e2;
}

.slot-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
}

.slot-sticky-logo {
  width: 20px;
  height: 20px;
  background: var(--black);
  border-radius: 5px;
}

.slot-sticky-links {
  display: flex;
  gap: 8px;
}

.slot-sticky-link {
  width: 28px;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
}

.slot-sticky-content {
  padding: 12px;
  background: #f8f7f6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-sticky-line {
  height: 7px;
  background: #e0ddd9;
  border-radius: 3px;
}

.slot-sticky-line--short { width: 55%; }

/* Popup */
.slot-popup-wrap {
  position: relative;
  width: 220px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.slot-popup-bg {
  position: absolute;
  inset: 0;
  background: #f8f7f6;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-popup-line {
  height: 7px;
  background: #e0ddd9;
  border-radius: 3px;
}

.slot-popup-line--short { width: 60%; }

.slot-popup-box {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  width: 170px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 6px;
}

.slot-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-popup-title {
  height: 7px;
  width: 80px;
  background: #333;
  border-radius: 3px;
}

.slot-popup-x {
  font-size: 12px;
  color: #aaa;
}

.slot-popup-body {
  height: 5px;
  background: #e0ddd9;
  border-radius: 3px;
  width: 100%;
}

.slot-popup-cta {
  height: 18px;
  background: var(--black);
  border-radius: 6px;
  width: 60px;
  margin-top: 2px;
}

/* --- Slot Visuals: Strategy ------------------------------ */

/* Edge case */
.slot-edgecase-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}

.slot-ec-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-ec-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--black);
}

.slot-ec-bar--main { width: 130px; }
.slot-ec-bar--edge { width: 44px; background: #bbb; }
.slot-ec-bar--xs   { width: 20px; background: #ddd; }

.slot-ec-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #333;
  white-space: nowrap;
}

.slot-ec-label--muted { color: #aaa; }

/* Handoff */
.slot-handoff-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-handoff-frame {
  background: #f0eeec;
  border-radius: 10px;
  padding: 20px;
  border: 1.5px solid #e0ddd9;
}

.slot-handoff-element {
  position: relative;
}

.slot-handoff-box {
  width: 80px;
  height: 48px;
  background: #c4b3d4;
  border-radius: 8px;
}

.slot-handoff-ann {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #1d6ae5;
  background: #e8f0fe;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.slot-handoff-ann--top {
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
}

.slot-handoff-ann--right {
  right: -82px;
  top: 50%;
  transform: translateY(-50%);
}

/* Design system */
.slot-ds-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-ds-grid {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 6px;
}

.slot-ds-token {
  height: 28px;
  border-radius: 8px;
}

.slot-ds-token--primary   { background: var(--black); }
.slot-ds-token--secondary { background: var(--purple); }
.slot-ds-token--neutral   { background: #d0ccc8; }

.slot-ds-comp {
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #e0ddd9;
  background: white;
}

.slot-ds-comp--btn   { background: var(--black); border: none; }
.slot-ds-comp--input { border-style: solid; }
.slot-ds-comp--badge { width: 32px; background: #f0eeec; justify-self: center; }

/* Component library */
.slot-complib-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-complib-file {
  background: #1e1e2e;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 180px;
}

.slot-complib-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #888;
  margin-top: 2px;
  flex-shrink: 0;
}

.slot-complib-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.slot-complib-line {
  height: 6px;
  border-radius: 3px;
  background: #444;
}

.slot-complib-line--blue   { background: #6cb6ff; width: 85%; }
.slot-complib-line--purple { background: #c4b3d4; width: 60%; }

/* Happy path */
.slot-happypath-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.slot-happypath-wrap > :not(.slot-hp-note) {
  display: flex;
  align-items: center;
}

.slot-happypath-wrap {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.slot-hp-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #e8e5e2;
  color: #aaa;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.slot-hp-step--done   { background: #22c55e; color: white; }
.slot-hp-step--active { background: #22c55e; color: white; box-shadow: 0 0 0 4px rgba(34,197,94,0.2); }

.slot-hp-line {
  width: 32px;
  height: 2px;
  background: #e0ddd9;
}

.slot-hp-line--done { background: #22c55e; }

.slot-hp-note {
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  color: #22c55e;
  margin-top: 4px;
}

/* QA */
.slot-qa-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 180px;
}

.slot-qa-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 11px;
}

.slot-qa-item--pass { background: #f0fdf4; color: #166534; }
.slot-qa-item--fail { background: #fef2f2; color: #991b1b; }
.slot-qa-item--warn { background: #fffbeb; color: #92400e; }

.slot-qa-icon {
  font-size: 10px;
  flex-shrink: 0;
}

/* Heuristic */
.slot-heuristic-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 210px;
}

.slot-heur-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-heur-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--black);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slot-heur-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #444;
}

/* Rationale */
.slot-rationale-wrap {
  display: flex;
  justify-content: center;
}

.slot-rat-doc {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-rat-heading {
  height: 9px;
  width: 55%;
  background: #333;
  border-radius: 4px;
}

.slot-rat-line {
  height: 6px;
  background: #e0ddd9;
  border-radius: 3px;
}

.slot-rat-line--short { width: 70%; }

.slot-rat-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  background: #fef9c3;
  border-radius: 5px;
  padding: 5px 7px;
}

.slot-rat-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #a16207;
  flex-shrink: 0;
}

.slot-rat-noteline {
  height: 5px;
  flex: 1;
  background: #fde68a;
  border-radius: 3px;
}

/* Variant */
.slot-variant-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.slot-var-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.slot-var-label {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--grey);
}

.slot-var-btn {
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
}

.slot-var-btn--default { background: var(--black); color: white; }
.slot-var-btn--outline { background: transparent; border: 1.5px solid var(--black); color: var(--black); }
.slot-var-btn--ghost   { background: transparent; color: var(--grey); }

/* Copywriting */
.slot-copy-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-copy-before,
.slot-copy-after {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.slot-copy-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #aaa;
}

.slot-copy-tag--good { color: #22c55e; }

.slot-copy-text {
  padding: 6px 10px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 11px;
  white-space: nowrap;
}

.slot-copy-text--bad  { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.slot-copy-text--good { background: #f0fdf4; color: #166534; }

.slot-copy-arrow {
  font-size: 16px;
  color: #aaa;
  flex-shrink: 0;
}

/* Funnel */
.slot-funnel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 200px;
}

.slot-funnel-step {
  background: var(--black);
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: width 0.3s;
}

.slot-funnel-step:nth-child(2) { background: #444; }
.slot-funnel-step:nth-child(3) { background: #777; }
.slot-funnel-step:nth-child(4) { background: #aaa; }

.slot-funnel-label {
  font-family: var(--font-sans);
  font-size: 9px;
  color: white;
}

.slot-funnel-n {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.6);
}

/* Delight */
.slot-delight-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-delight-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.slot-delight-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-delight-sparks {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  pointer-events: none;
}

.slot-spark {
  position: absolute;
  font-size: 12px;
  color: #fbbf24;
  animation: sparkle 1.2s ease-in-out infinite;
}

.slot-spark--1 { top: 0;   left: 8px;  animation-delay: 0s; }
.slot-spark--2 { top: 0;   right: 8px; animation-delay: 0.2s; }
.slot-spark--3 { top: 10px; left: 50%; transform: translateX(-50%); animation-delay: 0.4s; }
.slot-spark--4 { bottom: 0; left: 30%; animation-delay: 0.1s; }

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

.slot-delight-msg {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #166534;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 999px;
}

/* --- Slot Visuals: Research (new) ------------------------ */

/* Control */
.slot-control-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-ctrl-variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.slot-ctrl-variant--control .slot-ctrl-card {
  border: 2px solid var(--black);
}

.slot-ctrl-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #888;
  background: #f0eeec;
  padding: 2px 6px;
  border-radius: 4px;
}

.slot-ctrl-tag--variant {
  background: #ede9f5;
  color: var(--purple);
}

.slot-ctrl-card {
  width: 78px;
  height: 56px;
  border-radius: 8px;
  background: white;
  border: 1.5px solid #e0ddd9;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
}

.slot-ctrl-line {
  height: 6px;
  background: #e8e5e2;
  border-radius: 3px;
}

.slot-ctrl-btn {
  height: 16px;
  border-radius: 4px;
}

.slot-ctrl-btn--plain  { background: #d0ccc8; }
.slot-ctrl-btn--accent { background: var(--purple); }

.slot-ctrl-vs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

/* Mental model */
.slot-mental-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 210px;
}

.slot-mental-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-mental-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #555;
  width: 80px;
  flex-shrink: 0;
}

.slot-mental-bar {
  height: 10px;
  border-radius: 999px;
}

.slot-mental-bar--expect { width: 100px; background: #c4b3d4; }
.slot-mental-bar--actual { width: 64px;  background: var(--black); }

.slot-mental-gap {
  font-family: var(--font-sans);
  font-size: 9px;
  color: #ef4444;
  padding-left: 90px;
}

/* Cognitive load */
.slot-cogload-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

.slot-cog-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.slot-cog-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--grey);
  margin-bottom: 4px;
}

.slot-cog-item {
  width: 60px;
  height: 14px;
  border-radius: 5px;
}

.slot-cog-col--low  .slot-cog-item { background: #e8e5e2; }
.slot-cog-col--high .slot-cog-item { background: var(--black); opacity: 0.8; }
.slot-cog-col--high .slot-cog-item:nth-child(odd) { opacity: 0.5; }

/* Visual hierarchy */
.slot-vishier-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 200px;
}

.slot-vh-title {
  height: 16px;
  width: 65%;
  background: #111;
  border-radius: 4px;
}

.slot-vh-sub {
  height: 10px;
  width: 80%;
  background: #555;
  border-radius: 3px;
}

.slot-vh-body {
  height: 7px;
  background: #bbb;
  border-radius: 3px;
}

.slot-vh-body--short { width: 75%; }

.slot-vh-caption {
  height: 5px;
  width: 45%;
  background: #ddd;
  border-radius: 3px;
}

/* Information architecture */
.slot-ia-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
}

.slot-ia-root {
  background: var(--black);
  color: white;
  padding: 4px 12px;
  border-radius: 5px;
}

.slot-ia-children {
  display: flex;
  gap: 16px;
}

.slot-ia-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-top: 1.5px solid #ddd;
  padding-top: 5px;
}

.slot-ia-node {
  background: #e8e5e2;
  color: #333;
  padding: 3px 8px;
  border-radius: 5px;
}

.slot-ia-leaves {
  display: flex;
  gap: 4px;
}

.slot-ia-leaf {
  background: #f0eeec;
  color: #777;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
}

/* Feedback loop */
.slot-feedback-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 200px;
}

.slot-feedback-wrap > :not(.slot-fb-return) {
  display: flex;
  align-items: center;
}

.slot-feedback-wrap {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-bottom: 20px;
}

.slot-fb-step {
  padding: 6px 10px;
  background: #e8e5e2;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: #444;
  white-space: nowrap;
}

.slot-fb-step--response {
  background: var(--black);
  color: white;
}

.slot-fb-arrow {
  font-size: 13px;
  color: #aaa;
  flex-shrink: 0;
}

.slot-fb-return {
  position: absolute;
  bottom: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  color: #aaa;
  white-space: nowrap;
}

/* --- Mobile / Responsive --------------------------------- */
@media (max-width: 680px) {
  :root {
    --card-w: calc(100vw - 32px);
    --card-h: 260px;
    --card-radius: 24px;
  }

  .app {
    padding: 24px 16px 36px;
  }

  .ux-dictionary {
    font-size: 20px;
  }

  .theme-btn {
    padding: 9px 14px;
    font-size: 13px;
    gap: 8px;
  }

  /* Nav pills: horizontal scroll, no wrap */
  .nav {
    width: calc(100vw - 32px);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scrollbar-width: none;
    padding-bottom: 2px;
    gap: 6px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-pill {
    font-size: 13px;
    padding: 8px 12px;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-pill[data-category="all"] {
    padding: 8px 14px;
  }

  /* Shadow/deck card */
  .card-shadow-wrapper {
    width: calc(100vw - 20px);
    height: 282px; /* --card-h + 22px */
    margin-bottom: -260px;
  }

  /* Card faces */
  .card--face {
    gap: 20px;
    padding: 24px;
  }

  .card--def-face {
    padding: 18px 20px;
    gap: 10px;
  }

  .card-term-text {
    font-size: 36px;
    letter-spacing: -0.7px;
  }

  .def-text {
    font-size: 14px;
    letter-spacing: -0.2px;
    line-height: 1.4;
  }

  .card-badge {
    padding: 7px 12px;
    gap: 7px;
  }

  .badge-label {
    font-size: 13px;
  }

  /* Controls */
  .controls {
    gap: 14px;
  }

  .circle-btn {
    width: 52px;
    height: 52px;
  }

  .reveal-btn {
    font-size: 16px;
    padding: 16px 20px;
  }

  .card-counter {
    bottom: 14px;
    right: 20px;
    font-size: 11px;
  }

  .main {
    gap: 14px;
  }
}
