/* Who Is Who — Frontend Shortcode Styling */
.wiw-game-root {
  background: #1c1917;
  color: #f5f5f4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin: 28px 0;
}

.wiw-game-header {
  padding: 16px 20px;
  background: #292524;
  border-bottom: 1px solid #44403c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.wiw-game-title {
  margin: 0;
  font-size: 1.2rem;
  color: #fbbf24;
  font-weight: 700;
}
.wiw-game-era {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: #a8a29e;
}
.wiw-header-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wiw-stat-pill {
  background: #1c1917;
  border: 1px solid #44403c;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wiw-stat-pill .lbl {
  color: #a8a29e;
}
.wiw-stat-pill strong {
  color: #fbbf24;
  font-family: monospace;
  font-size: 0.95rem;
}
.wiw-timer-pill strong {
  color: #38bdf8;
}

/* Stage */
.wiw-photo-stage {
  position: relative;
  width: 100%;
  background: #0c0a09;
  overflow: hidden;
}
.wiw-main-photo {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}
.wiw-markers-overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.wiw-face-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: rgba(245, 158, 11, 0.92);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: all 0.2s ease;
}
.wiw-face-pin.active {
  background: #ef4444;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 16px #ef4444, 0 0 0 3px rgba(255,255,255,0.8);
  z-index: 10;
}
.wiw-face-pin.correct {
  background: #22c55e !important;
  color: #fff !important;
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 16px #22c55e;
}
.wiw-face-pin.wrong {
  background: #ef4444 !important;
  color: #fff !important;
  transform: translate(-50%, -50%) scale(1.2);
}
.wiw-face-pin.clickable {
  cursor: pointer;
}
.wiw-face-pin.clickable:hover {
  transform: translate(-50%, -50%) scale(1.25);
}

/* Quiz Controls */
.wiw-quiz-panel {
  padding: 20px;
}
.wiw-question-box {
  margin-bottom: 16px;
}
.wiw-question-step {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 4px;
}
.wiw-question-text {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  color: #fafaf9;
  font-weight: 600;
}
.wiw-question-clue {
  margin: 0;
  font-size: 0.9rem;
  color: #d6d3d1;
}

.wiw-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .wiw-options-grid {
    grid-template-columns: 1fr;
  }
}

.wiw-opt-btn {
  background: #292524;
  border: 1px solid #57534e;
  color: #fafaf9;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wiw-opt-btn:hover:not(:disabled) {
  background: #44403c;
  border-color: #f59e0b;
}
.wiw-opt-btn.correct {
  background: #15803d !important;
  border-color: #22c55e !important;
  color: #fff !important;
}
.wiw-opt-btn.wrong {
  background: #991b1b !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}
.wiw-find-prompt {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px;
  background: #292524;
  border: 1px dashed #57534e;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #fbbf24;
}

/* Gameover Screen */
.wiw-gameover-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  background: #292524;
  border-radius: 8px;
  border: 1px solid #44403c;
}
.wiw-gameover-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  color: #fbbf24;
}
.wiw-gameover-sub {
  margin: 0 0 20px 0;
  color: #a8a29e;
  font-size: 0.95rem;
}
.wiw-gameover-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.wiw-stat-box {
  background: #1c1917;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid #44403c;
  min-width: 100px;
}
.wiw-stat-box .label {
  display: block;
  font-size: 0.75rem;
  color: #a8a29e;
  text-transform: uppercase;
}
.wiw-stat-box strong {
  display: block;
  font-size: 1.4rem;
  color: #fbbf24;
  margin-top: 4px;
}
.wiw-restart-btn {
  background: #d97706;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wiw-restart-btn:hover {
  background: #b45309;
}
