/* ─────────────────────────────────────────────────────────────────────────────
   HollyWouldYouRather — Main Stylesheet
   Dark Hollywood theme: near-black background, coral + gold accents
───────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0d1117;
  --bg-card:   #161b22;
  --bg-card2:  #1c2230;
  --coral:     #FF6B6B;
  --gold:      #FFD700;
  --teal:      #00CED1;
  --text:      #e8eaf0;
  --text-muted:#8b98b0;
  --border:    #2d3748;
  --radius:    12px;
  --radius-lg: 20px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Bebas Neue', Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 64px;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
}
.nav-logo-holly  { font-family: var(--font-display); font-size: 1.6rem; color: var(--coral); letter-spacing: 1px; }
.nav-logo-would  { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold);  letter-spacing: 1px; }
.nav-logo-you    { font-family: var(--font-display); font-size: 1rem;   color: var(--text-muted); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-link  { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.nav-room-code  { font-size: 0.9rem; color: var(--text-muted); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.btn-primary:hover:not(:disabled) {
  background: #ff5252;
  border-color: #ff5252;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--coral);
  border-color: var(--coral);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(255,107,107,0.1);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg   { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-sm   { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ─── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem clamp(1rem, 4vw, 3rem);
  font-size: 0.9rem;
}
.alert-success { background: rgba(0,206,209,0.15); border: 1px solid var(--teal);  color: var(--teal); }
.alert-error   { background: rgba(255,107,107,0.15); border: 1px solid var(--coral); color: var(--coral); }
.alert-info    { background: rgba(255,215,0,0.12);  border: 1px solid var(--gold);  color: var(--gold); }

/* ─── Inputs ──────────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
}
.input:focus { outline: none; border-color: var(--coral); }
.input::placeholder { color: var(--text-muted); }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,107,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,215,0,0.06) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,107,107,0.15);
  border: 1px solid rgba(255,107,107,0.3);
  color: var(--coral);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.0;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-accent { color: var(--coral); }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Sample Prompt Card ──────────────────────────────────────────────────── */
.sample-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.sample-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ─── Prompt Card (shared by home + game room) ────────────────────────────── */
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 800px;
  margin: 0 auto;
}
.prompt-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.options-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}
.option {
  flex: 1;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--text);
}
.option:hover { border-color: var(--coral); background: rgba(255,107,107,0.05); }
.option:disabled { cursor: not-allowed; opacity: 0.6; }
.option p { font-size: 0.95rem; line-height: 1.5; }
.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.option-a .option-letter { background: var(--coral); color: #fff; }
.option-b .option-letter { background: var(--gold);  color: #0d1117; }
.option-or {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}
@media (max-width: 600px) {
  .options-row { flex-direction: column; }
  .option-or { text-align: center; }
}

/* ─── How It Works ────────────────────────────────────────────────────────── */
.how-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem);
  background: var(--bg-card);
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
  color: var(--text);
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.step p  { font-size: 0.9rem; color: var(--text-muted); }

/* ─── Categories ──────────────────────────────────────────────────────────── */
.categories-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.cat-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.category-card h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--text); }
.category-card p  { font-size: 0.8rem; color: var(--text-muted); }

/* ─── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem);
  background: linear-gradient(135deg, rgba(255,107,107,0.08) 0%, rgba(255,215,0,0.05) 100%);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; }

/* ─── Play Page ───────────────────────────────────────────────────────────── */
.play-section {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}
.play-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-align: center;
}
.play-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.play-card h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.play-card p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.guest-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* ─── Game Room ───────────────────────────────────────────────────────────── */
.game-view { padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem); max-width: 860px; margin: 0 auto; }
.room-header { text-align: center; margin-bottom: 2rem; }
.room-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.accent { color: var(--coral); }
.room-share { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.player-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; justify-content: center; }
.player-chip {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.player-score { color: var(--gold); font-weight: 700; font-size: 0.8rem; }
.host-controls, .waiting-msg { text-align: center; }
.waiting-msg { color: var(--text-muted); font-style: italic; }
.round-badge {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.answered-msg {
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  margin-top: 1.25rem;
}
.results-view {
  margin-top: 2rem;
  text-align: center;
}
.results-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.results-bars { max-width: 500px; margin: 0 auto 1.5rem; }
.result-bar-wrap { margin-bottom: 1rem; text-align: left; }
.result-bar-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-muted); }
.result-bar-track { background: var(--bg-card2); border-radius: 100px; height: 18px; overflow: hidden; }
.result-bar { height: 100%; border-radius: 100px; transition: width 0.6s ease; }
.result-bar-a { background: var(--coral); }
.result-bar-b { background: var(--gold); }
.result-bar-wrap.result-winner .result-bar-label { color: var(--gold); }
.result-bar-wrap.result-winner .result-bar-track { box-shadow: 0 0 8px rgba(255,215,0,0.3); }
.vote-count { font-weight: 400; opacity: 0.75; }
.majority-msg { font-size: 1rem; font-weight: 600; color: var(--gold); margin-bottom: 1rem; min-height: 1.5em; }

/* ─── Finished ────────────────────────────────────────────────────────────── */
.finished-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gold);
}
.final-scores { max-width: 500px; margin: 0 auto 2rem; }
.score-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.score-rank { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-muted); width: 32px; }
.score-name { flex: 1; font-weight: 600; }
.score-pts  { color: var(--gold); font-weight: 700; }

/* ─── Auth Pages ──────────────────────────────────────────────────────────── */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 440px;
}
.auth-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 2px; margin-bottom: 0.35rem; }
.auth-sub   { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 1.25rem; }

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.pricing-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.pricing-sub { color: var(--text-muted); margin-bottom: 2.5rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: left;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card-featured {
  border-color: var(--coral);
  background: linear-gradient(160deg, rgba(255,107,107,0.05) 0%, var(--bg-card) 100%);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name  { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 1px; margin-bottom: 0.35rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--coral); margin-bottom: 1.5rem; }
.plan-period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border: none; }

/* ─── Account Page ────────────────────────────────────────────────────────── */
.account-section { max-width: 600px; margin: 0 auto; padding: clamp(2rem,5vw,4rem) 1rem; }
.account-title   { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 2px; margin-bottom: 2rem; }
.account-card    { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.account-row     { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.account-row:last-child { border: none; }
.account-label   { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.tier-badge      { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tier-free       { background: rgba(139,152,176,0.2); color: var(--text-muted); }
.tier-roast_pass { background: rgba(255,107,107,0.2); color: var(--coral); }
.tier-elite_roast{ background: rgba(255,215,0,0.2);  color: var(--gold); }
.tier-crew_pack  { background: rgba(0,206,209,0.2);  color: var(--teal); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-credit { display: block; margin-top: 0.5rem; color: var(--text-muted); font-size: 0.75rem; }
.footer-credit:hover { color: var(--text); }

/* ─── Live vote panel (host view during voting) ─────────────────────────── */
.live-vote-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.live-vote-total {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── Scoring / results additions ───────────────────────────────────────── */
.result-bar-wrap.result-winner .result-bar-label { color: #FFD700; }
.result-bar-wrap.result-winner .result-bar-track { box-shadow: 0 0 8px rgba(255,215,0,0.3); }
.vote-count { font-weight: 400; opacity: 0.75; }
.majority-msg { font-size: 1rem; font-weight: 600; color: #FFD700; margin-bottom: 1rem; min-height: 1.5em; text-align: center; }
