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

:root {
  --color-bg:          #fdf6f0;
  --color-surface:     #ffffff;
  --color-primary:     #c9607a;
  --color-primary-dk:  #a8485f;
  --color-secondary:   #9b7fb6;
  --color-secondary-lt:#ede3f5;
  --color-accent:      #f2a7b8;
  --color-text:        #3a2a30;
  --color-text-muted:  #8a7078;
  --color-border:      #edd8de;
  --color-success:     #7ab89b;
  --color-error:       #c0455a;

  --radius-sm:  8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(180, 80, 100, 0.08);
  --shadow-md: 0 4px 20px rgba(180, 80, 100, 0.12);
  --shadow-lg: 0 8px 40px rgba(180, 80, 100, 0.16);

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Mono", "Cascadia Code", Consolas, monospace;

  --transition: 0.25s ease;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3rem;
}

/* ── Header ── */
.app-header {
  width: 100%;
  background: linear-gradient(135deg, #f8d7df 0%, #e8d0f0 100%);
  padding: 0.75rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(180, 80, 100, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.header-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dk);
  letter-spacing: 0.02em;
}

.header-icon {
  color: var(--color-primary);
  font-size: 1rem;
  animation: heartbeat 2.4s ease-in-out infinite;
}

.participants-display {
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-primary-dk);
  padding: 0.2rem 0 0;
  opacity: 0.85;
}

.participants-display[hidden] {
  display: none;
}

.my-name {
  font-weight: 700;
}

.partner-name {
  font-weight: 700;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.2); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.15); }
  56%       { transform: scale(1); }
}

/* ── Invite Banner ── */
.invite-banner {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fff0f4 0%, #f3eafc 100%);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
}

.invite-banner[hidden] {
  display: none;
}

.invite-label {
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.invite-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.btn-icon-sm {
  padding: 0.25rem 0.4rem;
  font-size: 0.9rem;
}

.copy-feedback-inline {
  font-size: 0.78rem;
  color: var(--color-success);
  font-weight: 600;
  animation: fadeSlideIn 0.2s ease;
}

/* ── Screens ── */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 1.5rem 1rem 2rem;
  gap: 1rem;
  animation: fadeSlideIn var(--transition);
}

.screen.active {
  display: flex;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cards ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

/* ── Landing ── */
.hero-card {
  background: linear-gradient(135deg, #fff0f4 0%, #f3eafc 100%);
  border-color: var(--color-accent);
  text-align: center;
  padding: 2rem 1.5rem;
}

.app-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.app-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.875rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ── Category selector ── */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-option {
  cursor: pointer;
  display: block;
}

.category-option input[type="radio"] {
  display: none;
}

.category-card {
  display: block;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color var(--transition), background var(--transition);
}

.category-option.selected .category-card,
.category-option input[type="radio"]:checked + .category-card {
  border-color: var(--color-primary);
  background: rgba(201, 96, 122, 0.06);
}

.category-option:not(.locked):hover .category-card {
  border-color: var(--color-accent);
}

.category-option.locked {
  cursor: not-allowed;
  opacity: 0.6;
}

.category-option.locked .category-card {
  background: var(--color-surface);
}

.category-name {
  display: inline;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.category-count {
  display: inline;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 0.4rem;
}

.category-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.category-lock {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 96, 122, 0.15);
  background: #fff;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #c5b3b9;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Divider ── */
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(201, 96, 122, 0.30);
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dk);
  box-shadow: 0 4px 16px rgba(201, 96, 122, 0.40);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(155, 127, 182, 0.28);
}
.btn-secondary:hover:not(:disabled) {
  background: #7d64a0;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--color-secondary-lt);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-icon {
  background: var(--color-secondary-lt);
  color: var(--color-secondary);
  border: 1.5px solid transparent;
  padding: 0.5rem 0.65rem;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
}
.btn-icon:hover { background: #ddd0ef; }

.btn-full { width: 100%; }

.btn-sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
}

/* ── Error messages ── */
.error-message {
  color: var(--color-error);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: #fde8ec;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

/* ── Waiting screen ── */
.waiting-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.waiting-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.waiting-card h2 {
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.waiting-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.session-code-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff0f4;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
}

.session-code {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}

.copy-feedback {
  font-size: 0.82rem;
  color: var(--color-success);
  font-weight: 600;
  margin-top: 0.25rem;
  animation: fadeSlideIn 0.2s ease;
}

/* Pulse ring animation */
.pulse-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  margin: 1.5rem auto 0;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

/* ── Question screen ── */
.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.25rem;
}

.q-progress {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.turn-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.turn-badge.your-turn {
  background: #fff0f4;
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}

.turn-badge.their-turn {
  background: var(--color-secondary-lt);
  color: var(--color-secondary);
  border: 1.5px solid #c9b0e4;
}

.question-card {
  background: linear-gradient(135deg, #fff6f8 0%, #f8f3fc 100%);
  border-color: var(--color-accent);
  padding: 2rem 1.5rem;
}

.question-text {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
}

.answer-card { padding: 1.25rem 1.5rem; }

.answer-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.answer-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.875rem;
  justify-content: flex-end;
}

.waiting-partner-card {
  text-align: center;
  padding: 1.75rem;
  background: var(--color-secondary-lt);
  border-color: #c9b0e4;
  color: var(--color-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.partner-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 0.75rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  animation: dotBounce 1.3s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.15s; }
.dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-8px); opacity: 1; }
}

.question-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.25rem;
}

/* ── Analysis screen ── */
.analysis-header {
  text-align: center;
  padding: 0.5rem 0;
}

.analysis-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: sparkle 1.5s ease-in-out;
}

@keyframes sparkle {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.analysis-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.analysis-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.analysis-card {
  background: linear-gradient(135deg, #fff6f8 0%, #f3eafc 100%);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.analysis-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.analysis-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* ── Share card ── */
.share-card-wrapper {
  width: 100%;
  margin: 1rem 0;
  text-align: center;
}

.share-card-wrapper canvas {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.share-card-wrapper[hidden] { display: none; }

/* ── History screen ── */
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.25rem;
}

.history-header h2 {
  font-size: 1.2rem;
  color: var(--color-text);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.history-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.history-q-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.history-q-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.history-answer-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.history-answer-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.history-answer-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

.history-answer-text.skipped {
  color: var(--color-text-muted);
  font-style: italic;
}

.history-analysis {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.history-analysis-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-bottom: 0.3rem;
}

.empty-hint {
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}

/* ── Completed screen ── */
.completed-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #fff0f4 0%, #f3eafc 100%);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.completed-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.completed-card h2 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.completed-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ── QR Code ── */
.waiting-qr-container {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.waiting-qr-container canvas {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.share-buttons a {
  text-decoration: none;
}

.qr-icon {
  font-size: 1rem;
}

/* ── QR Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 48, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.modal-content h3 {
  font-size: 1.1rem;
  color: var(--color-text);
}

.modal-content canvas {
  border-radius: var(--radius-sm);
}

.qr-hint {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Global counter ── */
.global-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 96, 122, 0.08);
  border-radius: 999px;
}

.global-counter[hidden] { display: none; }

.counter-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.counter-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Category stars ── */
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.category-stars {
  font-size: 0.8rem;
  color: #e0c060;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.category-stars .rating-count {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-left: 0.2rem;
}

/* ── Star rating ── */
.rating-card {
  text-align: center;
  padding: 1.5rem;
}

.rating-prompt {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-border);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0.1rem;
  line-height: 1;
}

.star-btn:hover {
  transform: scale(1.2);
}

.star-btn.active {
  color: #e0c060;
}

.star-btn.hover {
  color: #f0d060;
}

.rating-thanks {
  font-size: 0.85rem;
  color: var(--color-success);
  font-weight: 600;
  margin-top: 0.5rem;
  animation: fadeSlideIn 0.3s ease;
}

.rating-thanks[hidden] { display: none; }

/* ── Style badge ── */
.style-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--color-secondary-lt);
  color: var(--color-secondary);
  border: 1px solid #c9b0e4;
  vertical-align: middle;
  margin-left: 0.3rem;
  text-transform: none;
  font-style: normal;
}

/* ── Feedback thumbs ── */
.feedback-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.feedback-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-right: auto;
}

.feedback-btn {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.feedback-btn:hover {
  background: var(--color-secondary-lt);
  border-color: var(--color-secondary);
  transform: scale(1.15);
}

.feedback-btn.selected {
  background: var(--color-secondary-lt);
  border-color: var(--color-secondary);
}

.feedback-btn.selected-up {
  background: #e6f7ee;
  border-color: var(--color-success);
}

.feedback-btn.selected-down {
  background: #fde8ec;
  border-color: var(--color-error);
}

.feedback-thanks {
  font-size: 0.78rem;
  color: var(--color-success);
  font-weight: 600;
  animation: fadeSlideIn 0.2s ease;
}

.feedback-thanks[hidden] { display: none; }

/* ── Thinking overlay ── */
.thinking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s ease;
}

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

.thinking-content {
  text-align: center;
  padding: 2rem;
}

.thinking-brain {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
}

.brain-icon {
  font-size: 2.8rem;
  z-index: 1;
  animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

.thinking-rings {
  position: absolute;
  inset: 0;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringExpand 2.4s ease-out infinite;
}

.ring-1 { width: 40px; height: 40px; animation-delay: 0s; }
.ring-2 { width: 40px; height: 40px; animation-delay: 0.8s; }
.ring-3 { width: 40px; height: 40px; animation-delay: 1.6s; }

@keyframes ringExpand {
  0%   { width: 40px; height: 40px; opacity: 0.6; }
  100% { width: 120px; height: 120px; opacity: 0; }
}

.thinking-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.thinking-subtext {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  animation: thinkingDots 1.5s steps(4) infinite;
}

@keyframes thinkingDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

/* ── Responsive tweaks ── */
@media (max-width: 400px) {
  .session-code { font-size: 1.3rem; }
  .question-text { font-size: 1.05rem; }
  .app-title { font-size: 1.4rem; }
}
