/* Would You Rather - Online Mode (Phase 4) */

#wyr-online-root {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1d1d1f;
}

.wyr-online-banner {
  background: #fff8db;
  border: 1px solid #f0d878;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #5a4a00;
}

.wyr-online-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.wyr-online-card h2 {
  font-size: 16px;
  margin: 0 0 14px;
  font-weight: 600;
}

.wyr-online-section-title {
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: 700;
}

#wyr-online-status {
  font-size: 13px;
  color: #6e6e73;
  margin: 0 0 14px;
  min-height: 1.2em;
}
#wyr-online-status.error { color: #ff3b30; }

.wyr-roster {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wyr-roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f3;
}
.wyr-roster-item:last-child { border-bottom: none; }
.wyr-roster-name {
  font-size: 15px;
  font-weight: 500;
}
.wyr-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #fff;
}
.wyr-badge-you { background: #34c759; }
.wyr-badge-host { background: #007aff; }

.wyr-online-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #007aff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  font-family: inherit;
}
.wyr-online-btn:hover:not(:disabled) { background: #0066d6; }
.wyr-online-btn:disabled { background: #c7c7cc; cursor: not-allowed; }
.wyr-online-btn.secondary {
  background: #f0f0f3;
  color: #007aff;
}
.wyr-online-btn.secondary:hover:not(:disabled) { background: #e5e5ea; }
.wyr-online-btn.switch {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}
.wyr-online-btn.switch:hover:not(:disabled) { background: #fde68a; }

.wyr-hint {
  font-size: 13px;
  color: #6e6e73;
  margin: 0 0 12px;
}

.wyr-prompt-question {
  font-size: 14px;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  text-align: center;
}

.wyr-option-btn {
  display: block;
  width: 100%;
  padding: 20px 16px;
  border: 2px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
  transition: all 0.15s ease;
}
.wyr-option-btn:hover { border-color: #007aff; background: #f5f8ff; }
.wyr-option-btn.voted {
  border-color: #34c759;
  background: #e8f9ec;
  color: #1d6e2e;
}

.wyr-option-or {
  text-align: center;
  font-size: 13px;
  color: #6e6e73;
  margin: 6px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.wyr-voting-progress {
  text-align: center;
  font-size: 13px;
  color: #6e6e73;
  margin: 16px 0;
}

.wyr-reveal-bar-wrap {
  margin-bottom: 14px;
}
.wyr-reveal-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.wyr-reveal-bar-text {
  flex: 1;
  margin-right: 8px;
}
.wyr-reveal-bar-count {
  color: #007aff;
  white-space: nowrap;
}
.wyr-reveal-bar-outer {
  background: #f0f0f3;
  border-radius: 6px;
  overflow: hidden;
  height: 24px;
  position: relative;
}
.wyr-reveal-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #007aff, #34c759);
  transition: width 0.4s ease;
  min-width: 1px;
}
.wyr-reveal-bar-voters {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 4px;
}

/* ===== Mind Reader online — round progress, sections, predict, reveal ===== */

.wyr-round-progress {
  text-align: center;
  font-size: 12px;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 0 12px;
}

.wyr-section-label {
  font-size: 12px;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.wyr-self-pick-section {
  margin-bottom: 8px;
}

.wyr-predict-section {
  margin-top: 4px;
}

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

.wyr-predict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f3;
}
.wyr-predict-row:last-child { border-bottom: none; }

.wyr-predict-name {
  font-size: 15px;
  font-weight: 500;
}

.wyr-predict-btns {
  display: inline-flex;
  gap: 6px;
}

.wyr-predict-btn {
  width: 44px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1.5px solid #d2d2d7;
  background: #fff;
  color: #1d1d1f;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.wyr-predict-btn:hover:not(:disabled) {
  border-color: #007aff;
}
.wyr-predict-btn.selected {
  background: #007aff;
  color: #fff;
  border-color: #007aff;
}
.wyr-predict-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wyr-voting-nav {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.wyr-voting-nav .wyr-online-btn { margin-bottom: 0; }

/* ===== Reveal screen ===== */

.wyr-reveal-options {
  text-align: center;
  margin: 8px 0 18px;
}

.wyr-reveal-option {
  font-size: 16px;
  font-weight: 600;
  margin: 6px 0;
  padding: 10px 14px;
  background: #f5f8ff;
  border-radius: 8px;
}

.wyr-reveal-picks-list,
.wyr-reveal-accuracy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wyr-reveal-pick-row,
.wyr-reveal-acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f3;
}
.wyr-reveal-pick-row:last-child,
.wyr-reveal-acc-row:last-child { border-bottom: none; }

.wyr-reveal-pick-name {
  font-size: 15px;
  font-weight: 500;
}

.wyr-reveal-pick-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wyr-reveal-pick-a { background: #d1f0db; color: #166534; }
.wyr-reveal-pick-b { background: #ffe5cc; color: #92400e; }
.wyr-reveal-pick-none { background: #f0f0f3; color: #6e6e73; }

.wyr-reveal-acc-score {
  font-size: 13px;
  color: #007aff;
  font-weight: 600;
}

/* ===== Leaderboard ===== */

.wyr-leaderboard-section { margin-top: 18px; }

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

.wyr-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f3;
}
.wyr-lb-row:last-child { border-bottom: none; }

.wyr-lb-rank {
  width: 24px;
  font-weight: 700;
  color: #6e6e73;
  font-size: 14px;
}

.wyr-lb-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.wyr-lb-score {
  font-size: 14px;
  font-weight: 700;
  color: #007aff;
}

.wyr-lb-top .wyr-lb-rank,
.wyr-lb-top .wyr-lb-name,
.wyr-lb-top .wyr-lb-score {
  color: #b45309;
}
.wyr-lb-top .wyr-lb-rank::after { content: ' 🥇'; }

/* ===== Placement-row checkmark ===== */

/* .wyr-mr-row is a flex column in style.css. We wrap the check + name in
   .wyr-mr-name-line to keep them inline on the same visual line. */
.wyr-mr-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.wyr-mr-check {
  display: inline-block;
  width: 18px;
  font-size: 16px;
  line-height: 1;
  color: #c8d2dc;
  text-align: center;
  flex-shrink: 0;
}
.wyr-mr-check.is-placed {
  color: #34c759;
  font-weight: 700;
}
.wyr-mr-row-placed .wyr-mr-name {
  color: #1d6e2e;
}

/* ===== Roster kick button ===== */

.wyr-remove-btn {
  display: inline-block;
  background: transparent;
  color: #ff3b30;
  border: 1px solid #ff3b30;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.wyr-remove-btn:hover { background: #fff5f4; }

/* ===== "More host options" disclosure ===== */

.wyr-host-more {
  margin-top: 12px;
  border: 1px dashed #d2d2d7;
  border-radius: 8px;
  padding: 0 12px;
  background: #fafafa;
}
.wyr-host-more[open] { padding-bottom: 12px; }
.wyr-host-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.wyr-host-more > summary::-webkit-details-marker { display: none; }
.wyr-host-more > summary::after {
  content: '▾';
  margin-left: 6px;
  color: #6e6e73;
}
.wyr-host-more[open] > summary::after { content: '▴'; }
.wyr-host-more .wyr-online-btn { margin-bottom: 6px; }
.wyr-host-more p.wyr-host-warning {
  font-size: 12px;
  color: #6e6e73;
  margin: 6px 0 10px;
  line-height: 1.4;
}

/* ===== Awards grid (port of single-device Mind Reader final screen) ===== */

.wyr-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.wyr-award-card {
  background: #fff8db;
  border: 1px solid #f0d878;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wyr-award-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}

.wyr-award-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #92400e;
  margin-bottom: 6px;
}

.wyr-award-winner {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.wyr-award-detail {
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.4;
}
