/* ─── Layout ─────────────────────────────────────────────────── */
.quotes-wrap {
  max-width: 660px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
}

.quotes-header-section {
  text-align: center;
  margin-bottom: 1.8rem;
}

.quotes-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--yellow) 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  padding-bottom: 0.12em;
}

.quotes-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
}

/* ─── Quote card ─────────────────────────────────────────────── */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.quote-version {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--text);
  margin: 0;
  quotes: '\00AB' '\00BB';
}

.quote-text::before { content: open-quote;  margin-right: 0.1em; opacity: 0.4; }
.quote-text::after  { content: close-quote; margin-left: 0.1em;  opacity: 0.4; }

/* ─── Hints ──────────────────────────────────────────────────── */
.hints-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.hint-slot {
  min-width: 140px;
  padding: 0.55rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
}

.hint-lock {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hint-value {
  font-weight: 700;
  color: var(--yellow);
  animation: hintReveal 0.4s ease;
}

@keyframes hintReveal {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Input & autocomplete ───────────────────────────────────── */
.quotes-input-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto 0.75rem;
}

#quotes-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

#quotes-input:focus  { border-color: var(--yellow); }
#quotes-input:disabled { opacity: 0.45; cursor: not-allowed; }

#quotes-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  list-style: none;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

#quotes-autocomplete li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.1s;
}

#quotes-autocomplete li:hover { background: var(--surface2); }

#quotes-autocomplete li img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* ─── Feedback & counter ─────────────────────────────────────── */
#quotes-feedback {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.2rem;
  margin-bottom: 0.5rem;
}

#quotes-counter {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ─── Wrong guesses ──────────────────────────────────────────── */
.wrong-guesses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  min-height: 1rem;
  margin-bottom: 0.75rem;
}

.wrong-tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #f87171;
}

.wrong-tag img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}

/* ─── Replay ─────────────────────────────────────────────────── */
.replay-btn {
  display: block;
  margin: 0 auto 1.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  border: 1px dashed var(--text-muted);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.replay-btn:hover { opacity: 1; }

/* ─── Result ─────────────────────────────────────────────────── */
#quotes-result {
  padding: 1.5rem 2rem;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.result-sprite {
  width: 80px;
  height: 80px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.result-win  { font-size: 1.4rem; font-weight: 800; color: #4ade80; }
.result-lose { font-size: 1.2rem; font-weight: 800; color: #f87171; }

.result-pokemon-name { font-size: 1.1rem; font-weight: 700; margin-top: 0.15rem; }
.result-rank, .result-attempts { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

.result-countdown-section {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.result-countdown-section > p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }

.result-countdown {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--yellow);
}

.result-timezone { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.6rem; opacity: 0.65; }
