/* Write Q & A – Present Continuous – Teen2Teen 2 Unit 2 */

:root {
  --wq-bg: #f3f0ff;
  --wq-card: #ffffff;
  --wq-text: #1e1b4b;
  --wq-muted: #64748b;
  --wq-accent: #7c3aed;
  --wq-soft: rgba(124, 58, 237, 0.12);
  --wq-ok: #16a34a;
  --wq-bad: #dc2626;
  --wq-shadow: 0 10px 28px rgba(30, 27, 75, 0.08);
}

html[data-theme="dark"] {
  --wq-bg: #0f1220;
  --wq-card: #1a1f35;
  --wq-text: #f1f5f9;
  --wq-muted: #94a3b8;
  --wq-accent: #a78bfa;
  --wq-soft: rgba(167, 139, 250, 0.16);
  --wq-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--wq-bg);
  color: var(--wq-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wq-game {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
}

.wq-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wq-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--wq-card);
  color: var(--wq-text);
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--wq-shadow);
  flex-shrink: 0;
}

.wq-topbar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wq-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--wq-accent);
  text-transform: uppercase;
}

.wq-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wq-muted);
}

.wq-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--wq-soft);
  color: var(--wq-accent);
  white-space: nowrap;
}

.wq-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  overflow: hidden;
  margin-bottom: 16px;
}

.wq-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f472b6, #7c3aed);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.wq-start {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px 8px;
}

.wq-hero {
  font-size: 3rem;
}

.wq-start h1 {
  margin: 0;
  font-size: 1.5rem;
}

.wq-desc {
  margin: 0;
  color: var(--wq-muted);
  line-height: 1.45;
  max-width: 38ch;
}

.wq-muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--wq-muted);
}

.wq-stars {
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  margin: 4px 0;
}

.wq-link {
  color: var(--wq-accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}

.wq-card {
  background: var(--wq-card);
  border-radius: 18px;
  padding: 20px 16px 16px;
  box-shadow: var(--wq-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wq-num {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wq-accent);
}

.wq-cues {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.wq-cue {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--wq-soft);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.wq-cue-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wq-accent);
  margin-bottom: 4px;
  opacity: 0.9;
}

.wq-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wq-muted);
  margin-top: 4px;
}

.wq-input {
  width: 100%;
  border: 2px solid rgba(124, 58, 237, 0.22);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--wq-text);
  background: var(--wq-card);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wq-input:focus {
  border-color: var(--wq-accent);
  box-shadow: 0 0 0 3px var(--wq-soft);
}

.wq-input.is-ok {
  border-color: var(--wq-ok);
  background: rgba(22, 163, 74, 0.08);
}

.wq-input.is-bad {
  border-color: var(--wq-bad);
  background: rgba(220, 38, 38, 0.08);
}

.wq-input::placeholder {
  color: var(--wq-muted);
  font-weight: 500;
  opacity: 0.7;
}

.wq-reveal {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.wq-reveal p {
  margin: 0 0 6px;
}

.wq-reveal p:last-child {
  margin-bottom: 0;
}

.wq-btn {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.3);
  font-family: inherit;
}

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

.wq-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.wq-check {
  width: 100%;
  margin-top: 8px;
  min-height: 50px;
}

@media (min-width: 900px) {
  .wq-game {
    max-width: 720px;
    padding: 28px 28px 48px;
  }
  .wq-card {
    padding: 28px 24px 22px;
    gap: 12px;
  }
  .wq-cue {
    font-size: 1.15rem;
    padding: 14px 16px;
  }
  .wq-input {
    font-size: 1.15rem;
    padding: 16px 16px;
  }
  .wq-check {
    min-height: 54px;
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .wq-game {
    padding: 12px 12px 24px;
  }
  .wq-input {
    font-size: 1rem;
    padding: 12px 12px;
  }
  .wq-cue {
    font-size: 0.98rem;
  }
}
