/* Would You Rather — game-specific styles
 * Design system per docs/design-guidelines.md (v1: free-only, drives-content).
 * Optimized for couch-party-S cell: one phone, group around, big readable text.
 */

:root {
  --gof-green-dark: #157623;
  --gof-green-lime: #9bca3e;
  --gof-teal: #3abbc0;
  --gof-teal-dark: #2a8a8e;
  --gof-bg-light: #dde5ed;
  --gof-bg-mint: #defff0;
  --gof-yellow: #ffb920;
  --gof-rust: #de6739;
  --gof-text-primary: #2f2c28;
  --gof-text-secondary: #5e5c5e;
  --gof-card-bg: #ffffff;
  --gof-shadow: 0 4px 16px rgba(47, 44, 40, 0.08);
  --gof-shadow-lg: 0 8px 32px rgba(47, 44, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--gof-bg-light);
  color: var(--gof-text-primary);
  font-family: 'Arimo', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Header — minimal, game name only */
.wyr-header {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}

/* Mode toggle (Generator | Pass & Play) */
.wyr-mode-toggle {
  display: inline-flex;
  background: var(--gof-card-bg);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 20px;
  box-shadow: var(--gof-shadow);
  align-self: center;
}

.wyr-mode-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gof-text-secondary);
  cursor: pointer;
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease;
}

.wyr-mode-btn.is-active {
  background: var(--gof-teal);
  color: white;
}

.wyr-mode-btn:not(.is-active):hover {
  color: var(--gof-text-primary);
}

.wyr-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wyr-header h1 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--gof-text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.wyr-header .wyr-tagline {
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  color: var(--gof-text-secondary);
  margin-top: 4px;
}

/* Prompt card — the main event */
.wyr-card {
  background: var(--gof-card-bg);
  border-radius: 20px;
  box-shadow: var(--gof-shadow-lg);
  padding: 24px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  transition: opacity 180ms ease;
}

.wyr-card.is-fading {
  opacity: 0;
}

.wyr-category-label {
  font-family: 'Arimo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gof-text-primary);
  background: var(--gof-bg-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.wyr-question-prefix {
  font-family: 'Trocchi', Georgia, serif;
  font-size: 22px;
  color: var(--gof-text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.wyr-options {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
}

.wyr-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  text-align: left;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--gof-text-primary);
}

.wyr-option-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.wyr-option-a .wyr-option-badge {
  background: var(--gof-teal);
  color: white;
}

.wyr-option-b .wyr-option-badge {
  background: var(--gof-yellow);
  color: var(--gof-text-primary);
}

.wyr-option-text {
  flex: 1;
}

.wyr-or {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gof-text-secondary);
  text-align: center;
  letter-spacing: 3px;
  margin: 2px 0;
  padding-left: 60px;
}

/* Next button — big, primary action */
.wyr-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.wyr-next-btn {
  background: var(--gof-green-dark);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 20px 32px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  width: 100%;
  cursor: pointer;
  box-shadow: var(--gof-shadow);
  transition: transform 100ms ease, background 150ms ease;
}

.wyr-next-btn:hover {
  background: #0f5a1b;
}

.wyr-next-btn:active {
  transform: scale(0.98);
}

.wyr-categories-btn {
  background: transparent;
  color: var(--gof-text-secondary);
  border: none;
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
}

.wyr-categories-btn:hover {
  color: var(--gof-text-primary);
}

/* Categories sheet (modal) */
.wyr-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 44, 40, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
}

.wyr-sheet-backdrop.is-open {
  display: flex;
}

.wyr-sheet {
  background: var(--gof-card-bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--gof-shadow-lg);
}

.wyr-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wyr-sheet-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--gof-text-primary);
  margin: 0;
}

.wyr-sheet-close {
  background: var(--gof-bg-light);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  color: var(--gof-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wyr-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gof-bg-light);
  font-family: 'Arimo', sans-serif;
  font-size: 16px;
}

.wyr-category-row:last-child {
  border-bottom: none;
}

.wyr-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.wyr-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wyr-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  cursor: pointer;
  transition: background 180ms ease;
}

.wyr-toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 180ms ease;
}

.wyr-toggle input:checked + .wyr-toggle-slider {
  background: var(--gof-teal);
}

.wyr-toggle input:checked + .wyr-toggle-slider::before {
  transform: translateX(20px);
}

.wyr-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--gof-text-secondary);
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
}

/* ============================================
   PASS & PLAY (v2/v3)
   ============================================ */

/* Sub-mode toggle (Quick Vote | Mind Reader) — sits below top mode toggle */
.wyr-submode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 3px;
  margin: 0 auto 16px;
  align-self: center;
  border: 1px solid #c8d2dc;
}

.wyr-submode-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gof-text-secondary);
  cursor: pointer;
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease;
}

.wyr-submode-btn.is-active {
  background: var(--gof-teal);
  color: white;
}

.wyr-submode-btn:not(.is-active):hover {
  color: var(--gof-text-primary);
}

/* Mind Reader question screen */
.wyr-mr-options-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.wyr-mr-option-header {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gof-text-primary);
  line-height: 1.2;
}

.wyr-mr-header-a {
  background: linear-gradient(135deg, #e0f4f5 0%, #c5ebed 100%);
  border: 2px solid var(--gof-teal);
}

.wyr-mr-header-b {
  background: linear-gradient(135deg, #fff5d6 0%, #ffeab0 100%);
  border: 2px solid var(--gof-yellow);
}

.wyr-mr-option-text {
  flex: 1;
  min-width: 0;
}

.wyr-mr-option-header .wyr-option-badge {
  width: 32px;
  height: 32px;
  font-size: 16px;
  flex-shrink: 0;
}

/* Mind Reader voting sections — split your-vote vs guess-others */
.wyr-mr-section {
  width: 100%;
  margin-top: 14px;
}

.wyr-mr-section-label {
  font-family: 'Arimo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gof-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.wyr-mr-section-label strong {
  color: var(--gof-text-primary);
  font-weight: 800;
}

.wyr-mr-section-self .wyr-mr-name {
  color: var(--gof-text-primary);
}

.wyr-mr-placement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.wyr-mr-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wyr-mr-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gof-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 4px;
}

.wyr-mr-you {
  font-family: 'Arimo', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--gof-text-secondary);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.wyr-mr-buckets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; /* matches .wyr-mr-options-header gap so buttons align under headers */
}

.wyr-mr-bucket {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 2px solid #c8d2dc;
  background: white;
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  color: var(--gof-text-secondary);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 100ms ease;
}

.wyr-mr-bucket:hover {
  border-color: var(--gof-text-primary);
}

.wyr-mr-bucket:active {
  transform: scale(0.95);
}

/* Selected — saturated brand color, clearly distinct from the faint unselected tint */
.wyr-mr-bucket-a.is-selected {
  background: var(--gof-teal);
  border-color: var(--gof-teal-dark);
  color: white;
}

.wyr-mr-bucket-b.is-selected {
  background: var(--gof-yellow);
  border-color: #c98c00;
  color: var(--gof-text-primary);
}

/* Mind Reader reveal — section titles, awards grid, report cards */
.wyr-reveal-section-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--gof-text-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 24px 0 12px;
  align-self: flex-start;
}

.wyr-reveal-section-title:first-of-type {
  margin-top: 8px;
}

.wyr-awards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.wyr-award-card {
  background: var(--gof-card-bg);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--gof-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wyr-award-icon {
  font-size: 28px;
  line-height: 1;
}

.wyr-award-name {
  font-family: 'Arimo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gof-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.wyr-award-winner {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--gof-text-primary);
  line-height: 1.15;
  margin-top: 2px;
}

.wyr-award-detail {
  font-family: 'Arimo', sans-serif;
  font-size: 11px;
  color: var(--gof-text-secondary);
  line-height: 1.3;
  margin-top: 4px;
}

/* Mind Reader paced reveal — names appear as text columns directly under
   the A/B header pills (matching the same 2-col grid + 12px gap), so the
   reveal feels like the names "drop into" their bucket instead of repeating
   the prompt in a second pill. */
.wyr-mr-reveal-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.wyr-mr-reveal-col {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
}

.wyr-mr-reveal-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--gof-text-primary);
  line-height: 1.2;
}

.wyr-mr-reveal-empty {
  font-family: 'Arimo', sans-serif;
  color: var(--gof-text-secondary);
  font-style: italic;
  font-size: 14px;
}

/* Slim report cards (final results screen) */
.wyr-report-cards-slim {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.wyr-report-card-slim {
  background: var(--gof-card-bg);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--gof-shadow);
}

.wyr-report-card-slim summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-right: 24px;
}

.wyr-report-card-slim summary::-webkit-details-marker {
  display: none;
}

.wyr-report-card-slim summary::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 4px;
  font-size: 14px;
  color: var(--gof-text-secondary);
  transition: transform 200ms ease;
}

.wyr-report-card-slim[open] summary::after {
  transform: rotate(180deg);
}

.wyr-report-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gof-bg-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wyr-detail-question {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.wyr-detail-prompt {
  font-weight: 700;
  color: var(--gof-text-primary);
}

.wyr-detail-self {
  color: var(--gof-text-secondary);
}

.wyr-detail-self strong {
  color: var(--gof-text-primary);
  font-weight: 700;
}

.wyr-detail-guess-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}

.wyr-detail-guess-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wyr-detail-mark {
  display: inline-block;
  width: 18px;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.wyr-detail-mark-correct {
  color: var(--gof-green-dark);
}

.wyr-detail-mark-wrong {
  color: var(--gof-rust);
}

.wyr-detail-text {
  color: var(--gof-text-primary);
}

.wyr-detail-text strong {
  font-weight: 700;
}

.wyr-report-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--gof-text-primary);
  text-transform: capitalize;
  margin-bottom: 2px;
}

.wyr-report-insight {
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  color: var(--gof-text-secondary);
  line-height: 1.4;
}

.wyr-report-insight strong {
  color: var(--gof-text-primary);
  font-weight: 700;
}

.wyr-insight-muted {
  font-style: italic;
  color: var(--gof-text-secondary);
}

.wyr-report-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.wyr-report-card {
  background: var(--gof-card-bg);
  border-radius: 10px;
  box-shadow: var(--gof-shadow);
  overflow: hidden;
}

.wyr-report-summary {
  cursor: pointer;
  padding: 12px 16px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gof-text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wyr-report-summary::-webkit-details-marker { display: none; }

.wyr-report-summary::after {
  content: '▾';
  font-size: 14px;
  color: var(--gof-text-secondary);
  transition: transform 200ms ease;
}

.wyr-report-card[open] .wyr-report-summary::after {
  transform: rotate(180deg);
}

.wyr-report-body {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--gof-bg-light);
  padding-top: 12px;
}

.wyr-report-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wyr-report-label {
  font-family: 'Arimo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gof-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wyr-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wyr-report-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  color: var(--gof-text-primary);
  border-bottom: 1px dashed var(--gof-bg-light);
}

.wyr-report-list li:last-child {
  border-bottom: none;
}

.wyr-report-list strong {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  color: var(--gof-text-primary);
  font-size: 14px;
}

@media (min-width: 480px) {
  .wyr-mr-name {
    font-size: 18px;
  }
  .wyr-award-winner {
    font-size: 20px;
  }
}

/* Tappable A/B options (used in pp question screen — visually a button, unlike Generator's labels) */
.wyr-option-tappable {
  background: var(--gof-card-bg);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: transform 100ms ease, border-color 150ms ease, background 150ms ease;
}

.wyr-option-tappable.wyr-option-a {
  background: linear-gradient(135deg, #e0f4f5 0%, #c5ebed 100%);
  border-color: var(--gof-teal);
}

.wyr-option-tappable.wyr-option-b {
  background: linear-gradient(135deg, #fff5d6 0%, #ffeab0 100%);
  border-color: var(--gof-yellow);
}

.wyr-option-tappable:hover {
  transform: translateY(-1px);
}

.wyr-option-tappable:active {
  transform: scale(0.98);
}

.wyr-option-tappable .wyr-option-text {
  text-align: left;
}

/* Setup screen — hero card (primary CTA) */
.wyr-pp-hero {
  text-align: center;
  align-items: center;
  padding: 32px 24px 24px;
  margin-bottom: 16px;
}

.wyr-pp-hero-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--gof-text-primary);
  margin: 0 0 12px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.wyr-pp-hero-desc {
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  color: var(--gof-text-secondary);
  margin: 0 0 22px;
  max-width: 360px;
  line-height: 1.45;
}

/* Setup screen — settings panel (de-emphasized, below hero) */
.wyr-pp-settings {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #c8d2dc;
  border-radius: 14px;
  padding: 4px 16px;
}

.wyr-pp-settings .wyr-setting-row {
  padding: 12px 0;
  font-size: 14px;
}

.wyr-pp-settings .wyr-setting-label {
  font-size: 14px;
}

.wyr-pp-settings .wyr-step-value {
  font-size: 18px;
  min-width: 28px;
}

.wyr-pp-settings .wyr-step-btn {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.wyr-pp-settings .wyr-customize-names-link,
.wyr-pp-settings .wyr-categories-btn-pp {
  font-size: 14px;
}

.wyr-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gof-bg-light);
  font-family: 'Arimo', sans-serif;
  font-size: 16px;
}

.wyr-setting-row:last-child {
  border-bottom: none;
}

.wyr-setting-label {
  font-family: 'Arimo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gof-text-primary);
}

.wyr-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wyr-step-btn {
  background: var(--gof-bg-light);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  color: var(--gof-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 120ms ease;
}

.wyr-step-btn:hover:not(:disabled) {
  background: #c8d2dc;
}

.wyr-step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wyr-step-value {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 22px;
  min-width: 36px;
  text-align: center;
  color: var(--gof-text-primary);
}

.wyr-customize-names-link {
  color: var(--gof-teal);
  text-decoration: underline;
  cursor: pointer;
  font-size: 15px;
}

.wyr-customize-names-link:hover {
  color: var(--gof-teal-dark);
}

.wyr-name-inputs {
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--gof-bg-light);
  margin-bottom: 0;
}

.wyr-name-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wyr-name-input-label {
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  color: var(--gof-text-secondary);
  width: 70px;
  flex-shrink: 0;
}

.wyr-name-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #c8d2dc;
  border-radius: 8px;
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  background: white;
  color: var(--gof-text-primary);
}

.wyr-name-input:focus {
  outline: none;
  border-color: var(--gof-teal);
}

.wyr-categories-btn-pp {
  background: transparent;
  border: none;
  color: var(--gof-teal);
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.wyr-start-btn,
.wyr-ready-btn,
.wyr-pass-btn,
.wyr-replay-btn {
  background: var(--gof-green-dark);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 20px 32px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  width: 100%;
  cursor: pointer;
  box-shadow: var(--gof-shadow);
  transition: transform 100ms ease, background 150ms ease;
}

.wyr-start-btn:hover,
.wyr-ready-btn:hover,
.wyr-pass-btn:hover,
.wyr-replay-btn:hover {
  background: #0f5a1b;
}

.wyr-start-btn:active,
.wyr-ready-btn:active,
.wyr-pass-btn:active,
.wyr-replay-btn:active {
  transform: scale(0.98);
}

.wyr-replay-setup-btn {
  background: transparent;
  border: none;
  color: var(--gof-text-secondary);
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
}

/* Splash screens (turn / pass) */
.wyr-splash {
  min-height: 240px;
  justify-content: center;
}

.wyr-splash-text {
  text-align: center;
}

.wyr-splash-sub {
  font-family: 'Arimo', sans-serif;
  font-size: 18px;
  color: var(--gof-text-secondary);
  margin: 4px 0;
}

.wyr-splash-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: var(--gof-text-primary);
  line-height: 1.1;
}

/* Question progress label */
.wyr-progress {
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gof-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* Reveal screen */
.wyr-reveal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wyr-reveal-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--gof-text-primary);
  margin: 0 0 16px;
  text-align: center;
}

.wyr-reveal-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.wyr-reveal-row {
  background: var(--gof-card-bg);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--gof-shadow);
}

.wyr-reveal-prompt {
  font-family: 'Arimo', sans-serif;
  font-size: 15px;
  color: var(--gof-text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.wyr-reveal-splits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wyr-reveal-split {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gof-bg-light);
}


.wyr-reveal-split .wyr-option-badge {
  width: 36px;
  height: 36px;
  font-size: 18px;
  flex-shrink: 0;
}

.wyr-split-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wyr-split-label {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gof-text-primary);
  line-height: 1.2;
}

.wyr-split-voters {
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  color: var(--gof-text-secondary);
  line-height: 1.35;
  word-wrap: break-word;
}

/* More Games footer */
.more-games {
  width: 100%;
  background: var(--gof-card-bg);
  margin-top: 32px;
  padding: 18px 16px;
  border-top: 1px solid #cfd6dd;
}

.more-games-content {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.more-games-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.more-games-line1 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.more-games-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gof-text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.more-games-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.more-games-link {
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  color: var(--gof-teal);
  text-decoration: none;
}

.more-games-link:hover {
  text-decoration: underline;
}

.feedback-link {
  font-family: 'Arimo', sans-serif;
  font-size: 13px;
  color: var(--gof-text-secondary);
  text-decoration: none;
}

.feedback-link:hover {
  color: var(--gof-text-primary);
  text-decoration: underline;
}

.more-games-right .logo {
  height: 36px;
}

/* Larger screens — give the card more breathing room */
@media (min-width: 480px) {
  .wyr-option {
    font-size: 26px;
    padding: 16px 8px;
  }

  .wyr-option-badge {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .wyr-or {
    padding-left: 64px;
  }

  .wyr-question-prefix {
    font-size: 26px;
  }

  .wyr-card {
    padding: 32px 28px;
  }
}

@media (min-width: 768px) {
  #app {
    padding: 40px 16px 24px;
  }

  .wyr-header h1 {
    font-size: 36px;
  }
}
