/* ============================================================
   Party Photo Voting App — Step 8 minimal styling
   Just enough structure to test the flow on a real phone.
   The real design system (colors, type, motion) lands in Step 10.
   ============================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fafafa;
  color: #222;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress {
  text-align: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-btn {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
}

.photo-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-btn:disabled {
  opacity: 0.6;
}

.photo-btn.picked {
  border-color: #4a90d9;
}

.vs {
  text-align: center;
  font-weight: bold;
  color: #999;
}

.status {
  text-align: center;
  font-size: 18px;
}

.error {
  color: #c0392b;
  text-align: center;
}

button.retry {
  display: block;
  margin: 12px auto 0;
  padding: 10px 20px;
  font-size: 16px;
}

/* --- results.html --- */

#results {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.stats {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.result-row img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.result-row .rank {
  font-weight: bold;
  width: 28px;
}

.result-row .wins {
  font-weight: bold;
  margin-left: auto;
}

.result-row .shown {
  font-size: 13px;
  color: #999;
}

