/* Association game — Woordenboek.nl Product Phase 8
   Inherits Lexend from site _Fonts / vd.css. Uses Puzzle blue tokens. */
.assoc-game-page {
  --assoc-bg: #f4f7fb;
  --assoc-panel: #ffffff;
  --assoc-ink: #202a35;
  --assoc-muted: #667381;
  --assoc-line: #d8e0ea;
  --assoc-accent: var(--headerBg, #3f6e7f);
  --assoc-accent-strong: var(--buttonBg, #4f8191);
  --assoc-accent-soft: #e8f1f4;
  --assoc-hint: #edf4f7;
  --assoc-hint-ink: #2d5a6a;
  --assoc-shadow: 0 16px 42px rgba(63, 110, 127, 0.12);
  --assoc-radius: 18px;
  font-family: Lexend, sans-serif;
  color: var(--assoc-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(63, 110, 127, 0.08), transparent 34%),
    radial-gradient(circle at 92% 90%, rgba(79, 129, 145, 0.07), transparent 30%),
    var(--assoc-bg);
  --assoc-shell-half: 440px; /* half of .assoc-shell max-width 880px */
  min-height: 70vh;
  /* Extra outer padding = visible gutters for atmosphere letters (card layout unchanged) */
  padding: 1.75rem max(1rem, calc((100% - 880px) / 2 * 0.35 + 1rem)) 3.5rem;
  position: relative;
  isolation: isolate;
  /* Clip drifting atmos letters so they never grow page scrollbars */
  overflow: hidden;
}

/* Atmospheric letter field — always behind the game UI */
.assoc-atmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.assoc-atmos-letter {
  position: absolute;
  left: 0;
  top: 0;
  font-family: Lexend, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #3f6e7f;
  opacity: 0;
  line-height: 1;
  user-select: none;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  white-space: nowrap;
}

/* Atmosphere on/off — above the game card */
.assoc-atmos-switch-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 0.85rem;
  padding: 0 0.15rem;
  pointer-events: auto;
}

.assoc-atmos-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.6rem 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--assoc-line);
  box-shadow: 0 6px 16px rgba(63, 110, 127, 0.1);
  color: var(--assoc-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.assoc-atmos-switch:focus-within {
  outline: 2px solid var(--assoc-accent);
  outline-offset: 2px;
}

.assoc-atmos-switch-text {
  line-height: 1.2;
}

.assoc-atmos-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.assoc-atmos-switch-track {
  position: relative;
  display: inline-block;
  width: 2.4rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c5d0da;
  transition: background 0.22s ease;
}

.assoc-atmos-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.35rem - 4px);
  height: calc(1.35rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(32, 42, 53, 0.28);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.assoc-atmos-switch input:checked + .assoc-atmos-switch-track {
  background: var(--assoc-accent-strong);
}

.assoc-atmos-switch input:checked + .assoc-atmos-switch-track .assoc-atmos-switch-thumb {
  transform: translateX(1.05rem);
}

@media (max-width: 980px) {
  .assoc-game-page {
    padding: 3.75rem 2.5rem 3rem;
  }

  .assoc-atmos-switch-wrap {
    margin-bottom: 0.7rem;
  }
}

.assoc-game-root {
  position: relative;
  z-index: 1;
}

.assoc-game-root[v-cloak] {
  display: none;
}

.assoc-shell {
  max-width: 880px;
  margin: 0 auto;
}

.assoc-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--assoc-line);
  border-radius: var(--assoc-radius);
  box-shadow: var(--assoc-shadow);
  padding: clamp(24px, 4vw, 42px);
  min-height: 520px;
  position: relative;
}

.assoc-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--assoc-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.assoc-card h1,
.assoc-card h2 {
  font-family: Lexend, sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 1.05;
}

.assoc-card h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.assoc-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.assoc-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #465155;
  max-width: 40rem;
}

.assoc-small {
  font-size: 0.9rem;
  color: var(--assoc-muted);
  line-height: 1.5;
}

.assoc-intro-box {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--assoc-accent-soft);
  border: 1px solid #c9dde4;
}

.assoc-explain-grid,
.assoc-mode-grid,
.assoc-next-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.assoc-explain-grid {
  grid-template-columns: repeat(3, 1fr);
}

.assoc-mode-grid,
.assoc-next-grid {
  grid-template-columns: repeat(2, 1fr);
}

.assoc-next-grid {
  grid-template-columns: repeat(3, 1fr);
}

.assoc-explain {
  background: #fff;
  border: 1px solid var(--assoc-line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assoc-explain strong,
.assoc-explain .assoc-small {
  display: block;
}

.assoc-stepnr {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--assoc-accent-soft);
  color: var(--assoc-accent);
  font-weight: 800;
  margin-bottom: 10px;
}

.assoc-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Intro — editorial word world */
.assoc-intro {
  position: relative;
  isolation: isolate;
  min-height: 100%;
}

.assoc-intro-content {
  position: relative;
  z-index: 1;
}

.assoc-intro-cta {
  gap: 10px;
  padding: 13px 20px 13px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(63, 110, 127, 0.22);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.assoc-intro-cta-label {
  display: inline-block;
}

.assoc-intro-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.assoc-intro-cta:hover:not(:disabled),
.assoc-intro-cta:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  background: var(--assoc-accent-strong);
  box-shadow: 0 14px 28px rgba(63, 110, 127, 0.26);
}

.assoc-intro-cta:hover:not(:disabled) .assoc-intro-cta-arrow,
.assoc-intro-cta:focus-visible:not(:disabled) .assoc-intro-cta-arrow {
  transform: translateX(3px);
}

.assoc-mode-foot {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

/* Reset site-wide Skeleton/vd button rules that force height:38px + nowrap. */
.assoc-game-page button,
.assoc-game-page .assoc-btn,
.assoc-game-page .assoc-mode,
.assoc-game-page .assoc-vote,
.assoc-game-page .assoc-next-card,
.assoc-game-page .assoc-hint-btn,
.assoc-game-page .assoc-chip button,
.assoc-game-page .assoc-ac-list button {
  height: auto;
  min-height: 0;
  line-height: normal;
  letter-spacing: normal;
  white-space: normal;
  margin-bottom: 0;
  text-transform: none;
}

.assoc-btn {
  font-family: Lexend, sans-serif;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.assoc-btn:focus-visible {
  outline: 3px solid rgba(63, 110, 127, 0.35);
  outline-offset: 2px;
}

.assoc-btn-primary {
  background: var(--assoc-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(63, 110, 127, 0.2);
}

.assoc-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--assoc-accent-strong);
}

.assoc-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.assoc-btn-secondary {
  background: #fff;
  color: var(--assoc-ink);
  border-color: var(--assoc-line);
}

.assoc-btn-ghost {
  background: transparent;
  color: var(--assoc-muted);
  padding-inline: 8px;
}

.assoc-card--mode {
  min-height: 0;
  padding: clamp(22px, 3.5vw, 34px);
  background:
    linear-gradient(165deg, #ffffff 0%, #f7fafc 55%, #f3f7f9 100%);
}

.assoc-mode-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assoc-mode-head {
  margin-bottom: 2px;
  max-width: 36rem;
}

.assoc-mode-head .assoc-lead {
  margin-bottom: 0;
}

.assoc-mode-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.assoc-mode {
  --mode-wash: rgba(63, 110, 127, 0.12);
  --mode-cta: rgba(63, 110, 127, 0.07);
  --mode-stage-h: 11.25rem;
  --mode-copy-min: 4.35em;
  background: #fff;
  border: 1px solid var(--assoc-line);
  border-radius: 22px;
  text-align: left;
  padding: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: var(--mode-stage-h) minmax(0, 1fr);
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 30px rgba(63, 110, 127, 0.07);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.28s ease,
    background-color 0.25s ease;
}

.assoc-mode-free {
  --mode-wash: rgba(90, 140, 110, 0.14);
  --mode-cta: rgba(74, 122, 96, 0.08);
}

.assoc-mode-judge {
  --mode-wash: rgba(120, 108, 158, 0.12);
  --mode-cta: rgba(99, 118, 150, 0.08);
}

.assoc-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 84% -8%, var(--mode-wash), transparent 58%),
    radial-gradient(ellipse 50% 45% at 8% 108%, rgba(63, 110, 127, 0.05), transparent 55%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.35s ease, opacity 0.28s ease;
}

.assoc-mode-judge::before {
  background:
    radial-gradient(ellipse 80% 68% at 16% -6%, var(--mode-wash), transparent 56%),
    radial-gradient(ellipse 48% 42% at 96% 110%, rgba(201, 168, 96, 0.1), transparent 55%);
}

.assoc-mode-stage,
.assoc-mode-content {
  position: relative;
  z-index: 1;
}

.assoc-mode-stage {
  height: var(--mode-stage-h);
  min-height: var(--mode-stage-h);
  max-height: var(--mode-stage-h);
  width: 100%;
  padding: 1.05rem 1.25rem 0.55rem;
  box-sizing: border-box;
  display: grid;
  place-items: stretch stretch;
  pointer-events: none;
}

.demo-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.demo-stage-free {
  background:
    linear-gradient(160deg, rgba(90, 140, 110, 0.08), rgba(63, 110, 127, 0.02) 55%, rgba(236, 243, 245, 0.28));
}

.demo-stage-judge {
  background:
    linear-gradient(165deg, rgba(120, 108, 158, 0.07), rgba(63, 110, 127, 0.02) 52%, rgba(246, 241, 230, 0.24));
}

.assoc-mode-content {
  padding: 0.7rem 1.35rem 1.35rem;
  display: grid;
  grid-template-rows: auto minmax(var(--mode-copy-min), 1fr) auto;
  gap: 0.65rem;
  min-height: 0;
  box-sizing: border-box;
}

.assoc-mode-title {
  font-size: clamp(1.7rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1.1;
  min-height: 1.1em;
}

.assoc-mode-copy {
  margin: 0;
  font-size: 0.94rem;
  color: var(--assoc-muted);
  line-height: 1.5;
  max-width: none;
  min-height: var(--mode-copy-min);
}

.assoc-mode-cta {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 10px;
  margin: 0;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  background: var(--mode-cta);
  border: 1px solid rgba(63, 110, 127, 0.08);
  font-weight: 700;
  color: var(--assoc-accent);
  font-size: 0.96rem;
  box-shadow: none;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.assoc-mode-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.assoc-mode:hover,
.assoc-mode:focus-visible {
  border-color: #8aafbb;
  transform: translateY(-5px);
  box-shadow:
    0 20px 38px rgba(63, 110, 127, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  outline: none;
}

.assoc-mode:hover::before,
.assoc-mode:focus-visible::before {
  transform: scale(1.05);
}

.assoc-mode:focus-visible {
  box-shadow:
    0 0 0 3px rgba(63, 110, 127, 0.26),
    0 20px 38px rgba(63, 110, 127, 0.16);
}

.assoc-mode:hover .assoc-mode-cta,
.assoc-mode:focus-visible .assoc-mode-cta {
  background: rgba(63, 110, 127, 0.18);
  border-color: rgba(63, 110, 127, 0.22);
  color: #2f5968;
}

.assoc-mode-free:hover .assoc-mode-cta,
.assoc-mode-free:focus-visible .assoc-mode-cta {
  background: rgba(74, 122, 96, 0.2);
  border-color: rgba(74, 122, 96, 0.28);
  color: #355f48;
}

.assoc-mode-judge:hover .assoc-mode-cta,
.assoc-mode-judge:focus-visible .assoc-mode-cta {
  background: rgba(99, 118, 150, 0.2);
  border-color: rgba(99, 118, 150, 0.28);
  color: #40506c;
}

.assoc-mode:hover .assoc-mode-cta-arrow,
.assoc-mode:focus-visible .assoc-mode-cta-arrow {
  transform: translateX(4px);
}

.assoc-mode:disabled {
  cursor: default;
  opacity: 1;
}

/* Demo chips — concrete game mechanics */
.demo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-family: Lexend, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(32, 42, 53, 0.06);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.demo-chip-prompt {
  background: #3f6e7f;
  color: #fff;
  border-color: #365f6e;
  box-shadow: 0 10px 20px rgba(63, 110, 127, 0.22);
  font-size: 1.05rem;
  min-height: 2.35rem;
  padding-inline: 1.15rem;
}

.demo-chip-green {
  background: #e7f1e8;
  color: #3a6148;
  border-color: #c5dcc9;
}

.demo-chip-sand {
  background: #f5efdf;
  color: #6d5a32;
  border-color: #e4d6b0;
}

.demo-chip-violet {
  background: #ece8f5;
  color: #564f72;
  border-color: #d3cde4;
}

.demo-chip-blue {
  background: #e4eef3;
  color: #355868;
  border-color: #c3d7e0;
}

.demo-chip-rose {
  background: #f3e8e6;
  color: #7a4a45;
  border-color: #e0c7c2;
}

.demo-chip-mint {
  background: #e5f3f0;
  color: #2f6158;
  border-color: #c5ddd7;
}

.demo-chip-pair {
  min-width: 5.2rem;
  min-height: 2.35rem;
  font-size: 1.02rem;
  flex: 0 0 auto;
}

/* Associëren — hub-and-spoke association map */
.demo-free-graph {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: rgba(63, 110, 127, 0.68);
  box-sizing: border-box;
}

.demo-hub-slot,
.demo-sat-slot {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.demo-hub-slot {
  left: 50%;
  top: 48%;
  z-index: 3;
}

.demo-hub-slot .demo-chip {
  box-shadow: 0 10px 22px rgba(63, 110, 127, 0.26);
}

/* Soft hex ring around boom — nature / figurative / technical / jump */
.demo-sat-a { left: 50%; top: 8%; }    /* groen */
.demo-sat-b { left: 88%; top: 28%; }   /* blad */
.demo-sat-c { left: 88%; top: 70%; }   /* bos */
.demo-sat-d { left: 50%; top: 93%; }   /* kerel */
.demo-sat-e { left: 12%; top: 70%; }   /* giek */
.demo-sat-f { left: 12%; top: 28%; }   /* hausse */

.demo-sat-slot .demo-chip {
  min-width: 3.85rem;
  min-height: 1.8rem;
  padding: 0.26rem 0.72rem;
  font-size: 0.86rem;
  justify-content: center;
  text-align: center;
}

.demo-sat-slot .demo-chip[data-demo-word="hausse"],
.demo-sat-slot .demo-chip[data-demo-word="kerel"] {
  min-width: 4.35rem;
}

.demo-chip-text {
  display: inline-block;
  min-height: 1em;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.demo-sat-slot .demo-chip.is-empty {
  box-shadow: 0 4px 12px rgba(32, 42, 53, 0.04);
}

.demo-sat-slot .demo-chip.is-typing .demo-chip-text::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.1em;
  background: currentColor;
  opacity: 0.55;
  animation: demo-caret-blink 0.7s steps(1, end) infinite;
}

@keyframes demo-caret-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-sat-slot .demo-chip.is-typing .demo-chip-text::after {
    animation: none;
    opacity: 0;
  }
}

.demo-free-links {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.demo-link {
  opacity: 0.58;
  transition: opacity 0.25s ease;
}

.demo-link-joint {
  opacity: 0.85;
}

/* Beoordelen — centered compact column */
.demo-judge-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 0.15rem 0.5rem;
  margin: 0 auto;
}

.demo-judge-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(100%, 18rem);
}

.demo-judge-bridge-wrap {
  position: relative;
  flex: 1 1 2.75rem;
  min-width: 1.75rem;
  max-width: 3.6rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.demo-judge-bridge {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fa9b6, #3f6e7f 48%, #c3a96a);
  opacity: 0.88;
  transform-origin: 50% 50%;
  box-shadow: 0 0 0 3px rgba(63, 110, 127, 0.05);
}

.demo-judge-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f6e7f;
  border: 1.5px solid #fff;
  box-shadow: none;
  opacity: 0.72;
}

.demo-judge-prompt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #5f6f7a;
  text-align: center;
}

.demo-judge-choices {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.demo-choice {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.demo-choice-yes {
  background: #e7f1e8;
  color: #3a6148;
  border-color: #c5dcc9;
}

.demo-choice-no {
  background: #f3e8e6;
  color: #7a4a45;
  border-color: #e0c7c2;
}

.demo-choice-maybe {
  background: #f5efdf;
  color: #6d5a32;
  border-color: #e4d6b0;
}

.assoc-mode-free:hover .demo-link,
.assoc-mode-free:focus-visible .demo-link {
  opacity: 0.88;
}

.assoc-mode-free:hover [data-demo-target],
.assoc-mode-free:focus-visible [data-demo-target] {
  transform: scale(1.04);
}

.assoc-mode-judge:hover .demo-judge-bridge,
.assoc-mode-judge:focus-visible .demo-judge-bridge {
  opacity: 1;
}

.assoc-mode-judge:hover .demo-judge-dot,
.assoc-mode-judge:focus-visible .demo-judge-dot {
  transform: scale(1.12);
}

.assoc-mode-judge:hover .demo-chip-pair.demo-chip-blue,
.assoc-mode-judge:focus-visible .demo-chip-pair.demo-chip-blue {
  transform: translateX(-2px);
}

.assoc-mode-judge:hover .demo-chip-pair.demo-chip-sand,
.assoc-mode-judge:focus-visible .demo-chip-pair.demo-chip-sand {
  transform: translateX(2px);
}

.assoc-mode-judge:hover .demo-choice-yes,
.assoc-mode-judge:focus-visible .demo-choice-yes {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(74, 122, 96, 0.16);
}

.assoc-mode-judge:hover .demo-choice-no,
.assoc-mode-judge:focus-visible .demo-choice-no {
  transform: translateY(-1px);
}

.assoc-mode-judge:hover .demo-choice-maybe,
.assoc-mode-judge:focus-visible .demo-choice-maybe {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(201, 168, 96, 0.16);
}

.assoc-session-meta {
  text-align: right;
  color: var(--assoc-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.assoc-prompt {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 6px 0 10px;
  line-height: 1;
  text-transform: uppercase;
}

.assoc-question {
  color: var(--assoc-muted);
  font-size: 1rem;
}

.assoc-input-wrap {
  margin-top: 26px;
  background: #fff;
  border: 1.5px solid var(--assoc-line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 16px;
  position: relative;
}

.assoc-input-wrap:focus-within {
  border-color: #75a8b8;
  box-shadow: 0 0 0 4px rgba(63, 110, 127, 0.1);
}

.assoc-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 0;
  font-size: 1.1rem;
  font-family: Lexend, sans-serif;
  min-width: 0;
}

.assoc-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--assoc-line);
  border-radius: 10px;
  box-shadow: var(--assoc-shadow);
  z-index: 5;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
}

.assoc-ac-list button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.assoc-ac-list button:hover,
.assoc-ac-list button[aria-selected="true"] {
  background: var(--assoc-accent-soft);
}

.assoc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  min-height: 44px;
}

.assoc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1.5px solid #aabac8;
  background: rgba(255, 255, 255, 0.85);
  font-weight: 650;
  transform-origin: center;
}

.assoc-chip-answer {
  cursor: pointer;
}

.assoc-chip-answer:hover {
  border-color: #7da8b8;
  background: #f5fafb;
}

.assoc-chip-answer.editing {
  border-color: var(--assoc-accent);
  background: var(--assoc-accent-soft);
  box-shadow: 0 0 0 3px rgba(63, 110, 127, 0.12);
}

.assoc-chip-answer.is-duplicate-pulse {
  border-color: var(--assoc-accent);
}

.assoc-chip button {
  border: none;
  background: transparent;
  color: var(--assoc-muted);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
}

.assoc-chip-hint {
  background: var(--assoc-hint);
  color: var(--assoc-hint-ink);
  border-color: #b7d0da;
  cursor: default;
}

.assoc-edit-note,
.assoc-hint-note {
  font-size: 0.8rem;
  color: var(--assoc-accent);
  margin-top: 8px;
}

.assoc-hint-note {
  color: var(--assoc-muted);
}

.assoc-hint-row,
.assoc-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.assoc-hint-btn {
  border: none;
  background: transparent;
  color: var(--assoc-accent);
  font-weight: 750;
  padding: 8px 0;
  cursor: pointer;
  font-family: Lexend, sans-serif;
}

.assoc-hint-btn:disabled {
  color: #a7adac;
  cursor: default;
}

.assoc-divider {
  height: 1px;
  background: var(--assoc-line);
  margin: 24px 0;
}

.assoc-validation {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.assoc-candidate {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 42px 0 32px;
  min-height: 84px;
  display: grid;
  place-items: center;
  text-transform: uppercase;
}

.assoc-vote-row {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.assoc-vote {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px solid var(--assoc-line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 42, 46, 0.06);
  transition: transform 0.15s ease;
  font-family: Lexend, sans-serif;
}

.assoc-vote:hover:not(:disabled) {
  transform: translateY(-2px);
}

.assoc-vote:disabled {
  opacity: 0.55;
  cursor: default;
}

.assoc-vote-labels {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 8px;
  color: var(--assoc-muted);
  font-size: 0.8rem;
}

.assoc-vote-labels span {
  width: 70px;
  text-align: center;
}

.assoc-progress {
  margin: 32px auto 18px;
  max-width: 470px;
}

.assoc-progress-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  position: relative;
}

.assoc-progress-track::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  height: 4px;
  background: #d7dee4;
  border-radius: 999px;
  z-index: 0;
}

.assoc-progress-fill {
  position: absolute;
  left: 7%;
  height: 4px;
  background: var(--assoc-accent);
  border-radius: 999px;
  z-index: 1;
  transition: width 0.35s ease;
}

.assoc-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #c4ccd3;
  justify-self: center;
  z-index: 2;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.assoc-dot.done {
  background: var(--assoc-accent);
  border-color: var(--assoc-accent);
  transform: scale(1.08);
}

.assoc-progress-caption {
  text-align: right;
  color: var(--assoc-muted);
  font-size: 0.8rem;
  margin-top: 8px;
}

.assoc-next-card {
  border: 1px solid var(--assoc-line);
  background: #fff;
  border-radius: 14px;
  padding: 24px 14px;
  min-height: 120px;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: Lexend, sans-serif;
  text-transform: uppercase;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.assoc-next-card:hover,
.assoc-next-card:focus-visible {
  transform: translateY(-2px);
  border-color: #88afb8;
  box-shadow: 0 10px 22px rgba(63, 110, 127, 0.1);
}

.assoc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1f2a2e;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  z-index: 40;
}

.assoc-status {
  margin-top: 12px;
  color: var(--assoc-muted);
  font-size: 0.9rem;
}

.assoc-error {
  margin-top: 12px;
  color: #8a3b3b;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .assoc-explain-grid,
  .assoc-mode-grid,
  .assoc-next-grid {
    grid-template-columns: 1fr;
  }

  .assoc-mode-grid {
    gap: 14px;
    margin-top: 14px;
  }

  .assoc-mode {
    --mode-stage-h: 9.75rem;
    --mode-copy-min: 3.9em;
    min-height: 0;
    height: auto;
    grid-template-rows: var(--mode-stage-h) auto;
  }

  .assoc-mode-stage {
    padding: 0.8rem 1rem 0.4rem;
  }

  .assoc-mode-content {
    padding: 0.55rem 1rem 1rem;
    gap: 0.55rem;
    grid-template-rows: auto minmax(var(--mode-copy-min), auto) auto;
  }

  .demo-hub-slot { top: 47%; }
  .demo-sat-a { top: 6%; }
  .demo-sat-b { left: 90%; top: 26%; }
  .demo-sat-c { left: 90%; top: 72%; }
  .demo-sat-d { top: 95%; }
  .demo-sat-e { left: 10%; top: 72%; }
  .demo-sat-f { left: 10%; top: 26%; }

  .demo-sat-slot .demo-chip {
    font-size: 0.78rem;
    min-height: 1.65rem;
    min-width: 3.35rem;
    padding: 0.22rem 0.58rem;
  }

  .demo-sat-slot .demo-chip[data-demo-word="hausse"],
  .demo-sat-slot .demo-chip[data-demo-word="kerel"] {
    min-width: 3.9rem;
  }

  .demo-chip {
    font-size: 0.9rem;
    min-height: 1.9rem;
    padding: 0.28rem 0.8rem;
  }

  .demo-chip-prompt {
    font-size: 0.95rem;
    min-height: 2.05rem;
    padding-inline: 0.95rem;
  }

  .demo-chip-pair {
    min-width: 4.4rem;
    min-height: 2.1rem;
    font-size: 0.96rem;
  }

  .demo-judge-scene {
    gap: 0.4rem;
  }

  .demo-judge-pair {
    width: min(100%, 16.5rem);
  }

  .demo-judge-bridge-wrap {
    min-width: 1.5rem;
    max-width: 3rem;
  }

  .demo-choice {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .assoc-mode-copy {
    max-width: none;
  }

  .assoc-vote {
    width: 70px;
    height: 70px;
  }

  .assoc-card {
    min-height: 0;
    padding: 22px 18px;
  }

  .assoc-card--mode {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assoc-atmos-letter {
    will-change: auto;
    filter: none;
  }

  .assoc-btn,
  .assoc-mode,
  .assoc-vote,
  .assoc-next-card,
  .assoc-dot,
  .assoc-progress-fill,
  .assoc-chip,
  .assoc-mode-cta,
  .assoc-mode-cta-arrow,
  .assoc-mode::before,
  .assoc-intro-cta,
  .assoc-intro-cta-arrow,
  .demo-chip,
  .demo-choice,
  .demo-judge-bridge,
  .demo-judge-dot {
    transition: none !important;
  }

  .assoc-intro-cta:hover:not(:disabled),
  .assoc-intro-cta:focus-visible:not(:disabled) {
    transform: none;
  }

  .assoc-intro-cta:hover:not(:disabled) .assoc-intro-cta-arrow,
  .assoc-intro-cta:focus-visible:not(:disabled) .assoc-intro-cta-arrow {
    transform: none;
  }

  .assoc-mode:hover,
  .assoc-mode:focus-visible {
    transform: none;
  }

  .assoc-mode:hover::before,
  .assoc-mode:focus-visible::before {
    transform: none;
  }

  .assoc-mode:hover .assoc-mode-cta-arrow,
  .assoc-mode:focus-visible .assoc-mode-cta-arrow,
  .assoc-mode-free:hover [data-demo-target],
  .assoc-mode-free:focus-visible [data-demo-target],
  .assoc-mode-judge:hover .demo-chip-pair,
  .assoc-mode-judge:focus-visible .demo-chip-pair,
  .assoc-mode-judge:hover .demo-choice-yes,
  .assoc-mode-judge:focus-visible .demo-choice-yes,
  .assoc-mode-judge:hover .demo-choice-no,
  .assoc-mode-judge:focus-visible .demo-choice-no,
  .assoc-mode-judge:hover .demo-choice-maybe,
  .assoc-mode-judge:focus-visible .demo-choice-maybe,
  .assoc-mode-judge:hover .demo-judge-dot,
  .assoc-mode-judge:focus-visible .demo-judge-dot {
    transform: none;
  }
}
