/* ═══ Guess Who ═════════════════════════════════════════════════════════ */
.gw-header { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 16px; gap: 12px; flex-wrap: wrap; }
.gw-title { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.gw-phase-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--accent-soft); color: var(--yodi-purple);
}
.gw-phase-answer { background: linear-gradient(90deg, rgba(0,233,246,0.18), rgba(242,41,158,0.18)); color: var(--yodi-pink); }
.gw-phase-wait   { background: var(--line); color: var(--muted); }
.gw-phase-done   { background: var(--yodi-gradient); color: #fff; }

.gw-pending {
  padding: 14px 16px; margin: 0 0 16px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid var(--line);
}
.gw-pending-answer {
  background: linear-gradient(135deg, rgba(0,233,246,0.08), rgba(136,82,247,0.12), rgba(242,41,158,0.08));
  border-color: rgba(136,82,247,0.3);
}
.gw-pending-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.gw-pending-q { font-size: 17px; font-weight: 700; margin: 4px 0 10px; color: var(--ink); }
.gw-answer-form { display: flex; gap: 8px; }
.gw-answer-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 999px; border: none; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
}
.gw-answer-btn:hover { transform: translateY(-1px); }
.gw-answer-yes { background: #00c896; color: #fff; }
.gw-answer-no  { background: var(--yodi-pink); color: #fff; }

.gw-pick-banner {
  background: var(--accent-soft); color: var(--yodi-purple);
  padding: 12px 16px; border-radius: 14px; margin: 0 0 16px;
  border: 1px solid rgba(136,82,247,0.25);
}

.gw-board {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; margin: 0 0 20px;
}
.gw-face {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 10px 8px 8px; transition: transform 0.1s, border-color 0.15s, opacity 0.2s;
}
.gw-face-mine { border-color: var(--yodi-purple); box-shadow: 0 0 0 3px rgba(136,82,247,0.15); }
.gw-face-flipped {
  opacity: 0.3; filter: grayscale(1);
  background: var(--line);
}
.gw-face-photo {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--yodi-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; text-transform: uppercase; margin-bottom: 8px;
}
.gw-face-photo img { width: 100%; height: 100%; object-fit: cover; }
.gw-face-name { font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; }
.gw-face-mine-badge {
  position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: var(--yodi-purple); color: #fff;
}
.gw-face-action { width: 100%; margin-top: 6px; }
.gw-face-pick-btn {
  width: 100%; padding: 6px 10px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--yodi-gradient); color: #fff; font-weight: 700; font-size: 12px;
}
.gw-face-flip-btn {
  width: 100%; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); font-size: 11px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.gw-face-flip-btn:hover { border-color: var(--yodi-purple); color: var(--yodi-purple); }
.gw-face-actions { display: flex; flex-direction: column; gap: 4px; }
.gw-face-actions > form { margin: 0; }
.gw-face-guess-btn {
  width: 100%; padding: 4px 8px; border-radius: 999px; border: 1px solid #dc2626;
  background: #fff; color: #dc2626; font-size: 11px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.gw-face-guess-btn:hover { background: #dc2626; color: #fff; }

.gw-composer {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px; margin: 0 0 18px;
}
.gw-ask-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.gw-ask-form label { grid-column: 1 / -1; }
.gw-ask-form input[type=text] {
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 15px; outline: none; background: var(--bg);
}
.gw-ask-form input[type=text]:focus { border-color: var(--yodi-purple); background: var(--surface); }
.gw-guess-wrap { margin-top: 12px; }
.gw-guess-wrap summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--yodi-pink); padding: 6px 0; }
.gw-guess-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px; margin-top: 8px;
}
.gw-guess-tile {
  width: 100%; padding: 4px; background: var(--surface);
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600;
}
.gw-guess-tile:hover { border-color: var(--yodi-pink); }
.gw-guess-tile img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.gw-guess-tile > span:first-child {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--yodi-purple); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.gw-guess-tile-name { color: var(--ink); }

.gw-done {
  text-align: center; padding: 24px 20px; border-radius: 16px;
  background: var(--yodi-gradient); color: #fff;
  margin: 0 0 20px;
}
.gw-done h2 { margin: 0 0 8px; font-size: 22px; }
.gw-done p { margin: 0 0 14px; opacity: 0.95; }
.gw-done .btn-primary { background: #fff; color: var(--yodi-purple); }

.gw-history { margin: 20px 0; }
.gw-history-list { list-style: none; padding: 0; margin: 0; }
.gw-history-item {
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.5;
}
.gw-history-item:last-child { border-bottom: none; }
.gw-history-ans { padding: 1px 8px; border-radius: 4px; font-weight: 700; }
.gw-history-ans-yes { background: rgba(0,200,150,0.15); color: #00946f; }
.gw-history-ans-no  { background: rgba(242,41,158,0.15); color: var(--yodi-pink); }

@media (max-width: 480px) {
  .gw-board { grid-template-columns: repeat(3, 1fr); }
  .gw-face-photo { width: 60px; height: 60px; font-size: 18px; }
  .gw-face-name { font-size: 12px; }
  .gw-guess-grid { grid-template-columns: repeat(4, 1fr); }
  .gw-ask-form { grid-template-columns: 1fr; }
}

