/* Say Hi (/talk/): one big machine, one big question card. Loaded after style.css; every rule is scoped to body.solo. */
.solo {
  --bg-top: #eaf5ff;
  --bg-bottom: #fff6f8;
  --dot: #d9ebfb;
  --sky: #bfe2ff;
  --sky-deep: #a3d0f5;
  --sky-ink: #2f5a7a;
  /* desktop: one machine, a little bigger than one of a row of three */
  --mw: min(250px, calc((100dvh - 300px) * 0.517));
}
.solo .prompt { color: #6f8aa3; }
.solo .controls { min-height: 92px; }
.solo .coins { padding-left: 0; }
.solo .coin { margin-left: 0; --size: 58px; }
.solo .coins { height: 70px; transition: opacity .3s ease; }
.solo .coins.spent { opacity: 0; pointer-events: none; }

.solo .btn.primary { background: var(--sky); border-color: var(--sky-deep); color: var(--sky-ink); box-shadow: 0 4px 0 var(--sky-deep); }
.solo .btn.primary:active { box-shadow: 0 1px 0 var(--sky-deep); }
.solo :focus-visible { outline-color: #7fb3e0; }

/* the question slip a little bigger than on the three-machine pages */
.solo .reveal-slip { width: min(340px, 88vw); }
.solo .slip-text { font-size: clamp(24px, 7.2vw, 31px); line-height: 1.22; }
.solo .slip-body { min-height: 150px; }
.solo .reveal-backdrop { background: rgba(236, 246, 255, .86); }
.solo .card-backdrop { background: rgba(236, 246, 255, .84); }

/* where the slip docks if no card is there (fallback) */
.talk-dock {
  position: fixed; left: 50%; top: 50%; width: min(300px, 80vw); height: 160px;
  translate: -50% -50%; pointer-events: none; visibility: hidden;
}

/* ---------- the question card ---------- */
.talk-card {
  --tint: #fffdf9;
  position: relative; width: min(400px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  border-radius: 32px; padding: 24px 22px 14px;
  background: linear-gradient(180deg, #fffdf9 35%, var(--tint));
  border: 3px solid var(--sky);
  box-shadow: 0 5px 0 var(--sky-deep), 0 24px 60px rgba(80, 120, 170, .22);
  text-align: center;
}
.talk-card .card-eyebrow { color: #7d98b0; margin-bottom: 14px; }
.talk-q {
  margin: 0 0 14px; padding: 4px 0;
  font-size: clamp(29px, 9.4vw, 40px); line-height: 1.2; font-weight: 600; color: var(--ink);
  overflow-wrap: break-word; text-wrap: balance;
}
.talk-q.long { font-size: clamp(26px, 8.4vw, 36px); }
.talk-q.short { font-size: clamp(33px, 10.6vw, 46px); }
.talk-both { margin: 0 0 20px; font-size: 16px; font-weight: 600; color: var(--sky-ink); opacity: .8; }
.talk-next { width: 100%; min-height: 58px; font-size: 20px; }
.talk-next svg { width: 22px; height: 22px; }
.talk-save {
  margin-top: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.talk-save svg { width: 18px; height: 18px; }
.talk-save:active { background: rgba(191, 226, 255, .35); }
.talk-card .card-status { margin-top: 2px; }
.talk-card .card-status:empty { min-height: 4px; margin: 0; }

/* gold capsule: a dare. Same drifting gold border and sheen as a rare brief card. */
.talk-card.rare {
  border-color: transparent;
  background:
    linear-gradient(180deg, #fffdf9 35%, #fffaea) padding-box,
    linear-gradient(110deg, #f6cf63, #fff6d6, #f2c14e, #fff6d6, #f6cf63) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: goldDrift 3s linear infinite;
  box-shadow: 0 4px 0 #f3dc96, 0 0 30px rgba(246, 207, 99, .45), 0 24px 60px rgba(110, 95, 170, .2);
}
.talk-card.rare::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 170, .22) 48%, rgba(255, 255, 255, .38) 50%, rgba(255, 236, 170, .22) 52%, transparent 58%);
  background-size: 260% 100%;
  animation: sheen 2.8s ease-in-out infinite;
}
.talk-card.rare .card-eyebrow { color: #b08a2a; }

.solo .history-head h2 { color: var(--sky-ink); }
.solo .history-list li { background: #f2f8ff; border-color: #e0effc; }
.solo .history-list li.rare { border-color: #f6dd92; background: #fffaea; }

@media (min-width: 700px) {
  .talk-card { width: min(480px, 100%); padding: 30px 32px 18px; }
  .talk-q { font-size: 40px; }
  .talk-q.long { font-size: 36px; }
  .talk-q.short { font-size: 46px; }
}

/* ---------- phones: one machine, large and centred; it grows after the coin (zoom.js) ---------- */
@media (max-width: 699px) {
  .solo { --mw: min(60vw, 250px, calc((100dvh - 290px) * 0.517)); }
  .solo .floor { overflow-x: clip; }
  .solo .hint { font-size: clamp(16px, 2.1dvh, 19px); }
  .solo .machine {
    transform-origin: 50% 50%;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
  }
  .solo .machine.zoomed {
    z-index: 3; touch-action: none;
    transition: transform .44s cubic-bezier(.3, 1.12, .4, 1), opacity .35s ease;
  }
  .solo .machine.zoom-leaving { z-index: 2; }
  .solo .machines::before, .solo .prompt { transition: opacity .3s ease; }
  .solo .hint { position: relative; z-index: 4; pointer-events: none; transition: translate .44s cubic-bezier(.3, 1.12, .4, 1); }
  .solo.zooming .machines::before, .solo.zooming .prompt { opacity: 0; }
  .solo.zooming .hint:not(:empty) { background: rgba(255, 253, 248, .92); border-radius: 999px; box-shadow: 0 0 0 5px rgba(255, 253, 248, .92), 0 4px 14px 5px rgba(80, 120, 170, .1); }
  .solo.zoom-instant .machine, .solo.zoom-instant .hint { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .talk-card.rare, .talk-card.rare::after { animation: none; }
  .solo .machine, .solo .machine.zoomed { transition: opacity .15s ease !important; }
  .solo .hint { transition: none !important; }
  .solo .coins { transition: none; }
}
