.tool-hero {
  padding: 46px 0 22px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
.home-hero { padding-top: 64px; }
.hero-actions { margin-top: 20px; }
.outcome-card h3 { font-size: 1.55rem; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.quick-link {
  text-decoration: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--muted);
  font-size: .9rem;
}
.quick-link.active, .quick-link:hover { color: var(--brand); border-color: rgba(54,87,255,.35); background: var(--brand-soft); }
.compact { margin-bottom: 14px; }
.compact h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.input-panel textarea { min-height: 190px; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.options-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfcff;
}
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 750; margin-bottom: 0; }
.check input { width: auto; }
details { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; background: white; }
details summary { cursor: pointer; font-weight: 850; }
details textarea { min-height: 90px; margin-top: 8px; }
.feedback { min-height: 28px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.feedback p { margin: 4px 0; color: var(--muted); }
.wheel-panel { text-align: center; position: sticky; top: 84px; }
.wheel-container { min-height: 340px; display: grid; place-items: center; }
.wheel-shell { position: relative; width: min(340px, 92vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-svg { display: block; filter: drop-shadow(0 14px 34px rgba(23,32,51,.15)); }
.wheel-rotor {
  transform-origin: 50% 50%;
  transform-box: view-box;
  will-change: transform;
}

.wheel-shell.shuffle-mode .wheel-pointer {
  opacity: .45;
}
.wheel-shell.shuffle-mode .wheel-pointer::after {
  content: "Mélange";
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 32, 51, .82);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 1.2rem;
}
.wheel-fallback {
  text-align: left;
  margin: 12px auto 0;
  max-height: 140px;
  overflow: auto;
  padding: 10px 16px 10px 28px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.result-card { text-align: left; }
.result-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}
.result-actions { justify-content: center; margin-top: 14px; }
.how-it-works .card { min-height: 150px; }
.seo-section .article-card { max-width: 920px; margin: 0 auto; }
.seo-section details { margin-top: 10px; }
.muted { color: var(--muted); font-size: .9rem; }
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 860px) {
  .tool-hero, .tool-layout, .split-fields, .option-grid { grid-template-columns: 1fr; }
  .tool-hero { padding-top: 28px; }
  .wheel-panel { position: static; }
  .sticky-actions {
    position: sticky;
    bottom: 8px;
    z-index: 10;
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 18px;
    background: rgba(247,248,251,.92);
    backdrop-filter: blur(8px);
  }
  .sticky-actions .btn { flex: 1 1 100%; min-height: 48px; }
  .quick-grid { grid-template-columns: 1fr; }
  .wheel-container { min-height: 280px; }
  .wheel-shell { width: min(300px, 88vw); }
}
@media (max-width: 520px) {
  .input-panel textarea { min-height: 150px; }
  .tool-panel { padding: 18px; }
  .result-box strong { font-size: 1.25rem; }
}

.speed-control {
  display: grid;
  gap: 6px;
}
.speed-control label {
  margin: 0;
  font-weight: 850;
  color: var(--ink);
}
.speed-control select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
}
.speed-control select:focus-visible,
.wheel-go-button:focus-visible {
  outline: 3px solid rgba(54,87,255,.35);
  outline-offset: 3px;
}
.wheel-go-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 34px rgba(23,32,51,.22);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: .04em;
  cursor: pointer;
  touch-action: manipulation;
}
.wheel-go-button:hover:not(:disabled) {
  background: #22304a;
  box-shadow: 0 18px 38px rgba(23,32,51,.26);
}
.wheel-go-button:active:not(:disabled) {
  background: #10182a;
}
.wheel-go-button:disabled {
  opacity: .72;
  cursor: not-allowed;
  transform: translate(-50%, -50%) !important;
}
@media (max-width: 520px) {
  .speed-control select { min-height: 48px; font-size: 1rem; }
  .wheel-go-button { width: 66px; height: 66px; font-size: .98rem; }
}

/* Structured result visualizations: used when visualMode is not wheel. */
.visual-panel { text-align: center; position: sticky; top: 84px; }
.business-visual {
  width: min(560px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, #f7f8ff);
  box-shadow: var(--shadow);
  text-align: left;
}
.business-visual-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.business-visual-head strong { display: block; font-size: 1.15rem; color: var(--ink); }
.business-visual-head p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.business-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  font-size: 1.35rem;
}
.business-icon.is-pulsing { animation: rtePulse .7s ease-in-out infinite alternate; }
.business-card-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.mini-card {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 850;
  color: var(--ink);
  animation: rteShuffle .75s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.business-empty { color: var(--muted); font-weight: 800; }
.business-status { margin: 0 0 12px; font-weight: 900; color: var(--brand); }
.business-action-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(23,32,51,.16);
}
.business-action-button:hover:not(:disabled) { transform: translateY(-1px); }
.business-action-button:active:not(:disabled) { transform: translateY(1px); }
.business-action-button:disabled { opacity: .72; cursor: not-allowed; }
.team-board,
.gift-grid,
.pair-board,
.assignment-board,
.calendar-board,
.tournament-board,
.ranking-board,
.winner-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(640px, 100%);
  margin: 0 auto;
  text-align: left;
}
.team-column,
.gift-card,
.pair-card,
.assignment-card,
.calendar-day,
.match-card,
.ranking-card,
.winner-card,
.order-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(23,32,51,.08);
}
.reveal-card { animation: rteReveal .34s ease-out both; animation-delay: calc(var(--i, 0) * 80ms); }
.team-column h3 { margin: 0 0 10px; font-size: 1rem; }
.team-column h3 span { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.team-column ul,
.calendar-day ul { margin: 0; padding-left: 18px; }
.team-column li,
.calendar-day li { margin: 5px 0; font-weight: 750; }
.gift-card,
.pair-card,
.assignment-card,
.match-card,
.ranking-card,
.winner-card,
.order-card {
  display: grid;
  gap: 6px;
}
.gift-icon { font-size: 1.4rem; }
.pair-card {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}
.pair-card.group-three,
.pair-card.waiting { grid-template-columns: 1fr; text-align: left; }
.pair-card em,
.gift-card em,
.assignment-card span { color: var(--brand); font-weight: 950; font-style: normal; }
.assignment-card { grid-template-columns: 1fr auto 1.4fr; align-items: center; }
.assignment-card p { margin: 0; color: var(--ink); font-weight: 850; }
.calendar-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calendar-day h3 { margin: 0 0 10px; font-size: .98rem; color: var(--brand); }
.match-card span,
.ranking-card span,
.winner-card span,
.order-card span { color: var(--brand); font-weight: 950; }
.ranking-card,
.order-card { grid-template-columns: auto 1fr auto; align-items: center; }
.ranking-card em { color: var(--muted); font-style: normal; font-weight: 850; }
.order-board {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
  margin: 0 auto;
}
.confidential-grid .secret-value { margin: 6px 0; color: var(--ink); font-weight: 900; }
@keyframes rteReveal { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes rtePulse { from { transform: scale(.96); } to { transform: scale(1.05); } }
@keyframes rteShuffle { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-4px) rotate(1deg); } }
@media (max-width: 860px) {
  .visual-panel { position: static; }
  .team-board,
  .gift-grid,
  .pair-board,
  .assignment-board,
  .calendar-board,
  .tournament-board,
  .ranking-board,
  .winner-board { grid-template-columns: 1fr; }
  .assignment-card { grid-template-columns: 1fr; }
  .business-visual { padding: 18px; border-radius: 22px; }
}
.team-column li small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
