/* ============================================
   THE HOT SEAT — Veritania Counter-Narrative
   Ripple Research · rippleresearch.ai
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Nunito+Sans:wght@400;600;700&display=swap');

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

html, body {
  min-height: 100vh;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  background: #FFF8F0;
}

/* --- Typography --- */
h1, h2, h3 { font-family: 'Nunito', sans-serif; font-weight: 900; color: #1A1A2E; letter-spacing: -0.5px; }
h1 { font-size: 34px; line-height: 1.05; margin-bottom: 12px; }
h2 { font-size: 26px; line-height: 1.1;  margin-bottom: 10px; }
h3 { font-size: 19px; line-height: 1.2;  margin-bottom: 8px; }

p { font-size: 16px; line-height: 1.75; color: #444; font-weight: 600; }
p strong { font-weight: 800; color: #1A1A2E; }

a { color: #FF4D4D; text-decoration: none; }
a:hover { text-decoration: underline; }

.label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FF4D4D;
  display: block;
  margin-bottom: 6px;
}

.muted { font-size: 13px; color: #AAA; font-weight: 600; }
.red { color: #FF4D4D; }

/* --- Layout --- */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 120px;
}

/* --- Top Bar --- */
.topbar {
  background: #FFF8F0;
  border-bottom: 2px solid #F0E8DC;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #1A1A2E;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-logo span { color: #FF4D4D; }

.topbar-badge {
  background: #FF4D4D;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* --- Ticker --- */
.ticker-wrap {
  background: #2D1B69;
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  border-top: 2px solid #1A0D40;
  border-bottom: 2px solid #1A0D40;
  cursor: pointer;
}

.ticker-label {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FF4D4D;
  padding: 0 16px;
  white-space: nowrap;
  border-right: 2px solid rgba(255,255,255,0.1);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 90s linear infinite;
  will-change: transform;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #E0D8F0;
  padding: 0 48px;
  letter-spacing: 0.2px;
}

.ticker-item .ticker-source {
  color: #9B8FCC;
  margin-right: 8px;
  font-weight: 900;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Main Content --- */
.main-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

/* --- Pill Tracker --- */
.pill-tracker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 2px solid #E8E0D8;
  color: #CCC;
  background: #FFF8F0;
  transition: all 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
}

.pill.done { background: #E8F8E8; border-color: #A8E0A8; color: #22AA55; }
.pill.current { background: #FF4D4D; border-color: #FF4D4D; color: #fff; font-weight: 900; }

/* --- Bottom HUD --- */
.hud {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1A1A2E;
  border-top: 2px solid #0D0D1A;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  height: 54px;
}

/* Ticker positioned above HUD on game page only */
.ticker-fixed {
  position: fixed;
  bottom: 54px;
  left: 0;
  right: 0;
  z-index: 99;
}

.hud-firm-label { font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #555E7A; display: block; margin-bottom: 2px; }
.hud-firm { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 900; color: #FF4D4D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hud-score-label { font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #555E7A; display: block; margin-bottom: 2px; text-align: right; }
.hud-score { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 900; color: #555E7A; text-align: right; }
.hud-score.revealed { color: #FF4D4D; }

/* --- Cards --- */
.card {
  background: #fff;
  border: 2px solid #E8E0D8;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 0 #E8E0D8;
  margin-bottom: 16px;
}

.card-flat {
  background: #fff;
  border: 2px solid #E8E0D8;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}

/* --- Character Card (Moremoney/Greenleaf) --- */
.character-card {
  background: #2D1B69;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 0 #1A0D40;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.character-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2A2A3E;
  border: 2px solid #363A50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.character-avatar.red-avatar { border-color: #FF4D4D; background: rgba(255,77,77,0.15); }
.character-avatar.green-avatar { border-color: #22AA55; background: rgba(34,170,85,0.15); }

.character-name {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.character-title {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #555E7A;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.character-speech {
  font-size: 15px;
  color: #B0B8D0;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.character-speech strong { color: #fff; font-style: normal; font-weight: 800; }

/* --- Story Block --- */
.story-block {
  background: #2D1B69;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 0 #1A0D40;
}

.story-block .story-title {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #FF4D4D;
  margin-bottom: 12px;
  display: block;
}

.story-block p { color: #B0B8D0; font-size: 15px; line-height: 1.75; }
.story-block p + p { margin-top: 10px; }
.story-block strong { color: #fff; font-weight: 800; }

/* --- Onboarding --- */
.onboarding-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.onboarding-step {
  background: #fff;
  border: 2px solid #E8E0D8;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 0 #E8E0D8;
}

.onboarding-step-num { font-family: 'Nunito', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #FF4D4D; text-transform: uppercase; }
.onboarding-step-text { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; color: #1A1A2E; line-height: 1.3; }
.onboarding-step-sub { font-size: 12px; color: #888; line-height: 1.5; font-weight: 600; }

/* --- Notice Blocks --- */
.secretary-block {
  background: #2D1B69;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 3px 0 #1A0D40;
}

.secretary-block p { font-size: 15px; color: #B0B8D0; margin: 0; line-height: 1.6; }
.secretary-block strong { color: #fff; font-weight: 800; }

.notice-block {
  background: #FFF0F0;
  border: 2px solid #FFD0D0;
  border-left: 4px solid #FF4D4D;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-block p { font-size: 14px; color: #CC2222; margin: 0; line-height: 1.6; font-weight: 700; }

/* --- Step Instruction --- */
.step-instruction {
  background: #2D1B69;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 4px 0 #1A0D40;
}

.step-instruction-num { font-family: 'Nunito', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #FF4D4D; text-transform: uppercase; display: block; margin-bottom: 8px; }
.step-instruction-title { font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 8px; line-height: 1.1; }
.step-instruction-body { font-size: 15px; color: #B0B8D0; line-height: 1.7; margin: 0; font-weight: 600; }
.step-instruction-body strong { color: #fff; font-weight: 800; }

/* --- Selection Tag --- */
.selection-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F8E8;
  border: 2px solid #A8E0A8;
  border-radius: 20px;
  color: #22AA55;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* --- Options --- */
.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 2px solid #E8E0D8;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 3px 0 #E8E0D8;
}

.option-item:hover { border-color: #FF4D4D; box-shadow: 0 3px 0 #FFB0B0; transform: translateY(-1px); }
.option-item.selected { border-color: #FF4D4D; background: #FFF0F0; box-shadow: 0 3px 0 #FFB0B0; }

.option-radio {
  width: 20px; height: 20px;
  border: 2.5px solid #DDD;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.15s;
}

.option-item.selected .option-radio { border-color: #FF4D4D; }
.option-item.selected .option-radio::after { content: ''; position: absolute; inset: 3px; background: #FF4D4D; border-radius: 50%; }

.option-text { font-size: 15px; line-height: 1.6; color: #1A1A2E; font-weight: 700; }
.option-desc { font-size: 13px; line-height: 1.5; color: #888; margin-top: 4px; font-weight: 600; }

.option-emoji { font-size: 28px; flex-shrink: 0; margin-top: 2px; }

/* --- Reveal --- */
.option-reveal-item { display: none; animation: slideIn 0.35s ease forwards; }
.option-reveal-item.visible { display: flex; }

@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.options-count { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; color: #BBB; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: block; }

.all-shown-notice {
  background: #F8F4F0;
  border: 2px solid #E8E0D8;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #888;
  text-align: center;
  margin-bottom: 12px;
  display: none;
}

/* --- Rationale --- */
.rationale-wrap {
  background: #F8F4F0;
  border: 2px dashed #E8E0D8;
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  transition: opacity 0.2s;
}

.rationale-wrap.locked { opacity: 0.4; pointer-events: none; }

.rationale-label { font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #AAA; text-transform: uppercase; display: block; margin-bottom: 8px; }

.rationale-counter {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #CCC;
  text-align: right;
  margin-top: 6px;
}

.rationale-counter.ok { color: #22AA55; }
.rationale-counter.warn { color: #FF4D4D; }

textarea {
  background: #fff;
  border: 2px solid #E8E0D8;
  border-radius: 10px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1A1A2E;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
  transition: border-color 0.15s;
}

textarea:focus { border-color: #FF4D4D; }
textarea::placeholder { color: #CCC; font-style: italic; }

/* --- Buttons --- */
.btn-primary {
  background: #FF4D4D;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  padding: 16px 24px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 0 #CC2222;
  transition: all 0.1s;
}

.btn-primary:hover { background: #E03A3A; transform: translateY(-1px); box-shadow: 0 5px 0 #CC2222; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #CC2222; }
.btn-primary:disabled { background: #DDD; box-shadow: 0 4px 0 #CCC; cursor: not-allowed; transform: none; color: #AAA; }

.btn-reveal {
  background: #FF4D4D;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 900;
  padding: 14px 24px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 0 #CC2222;
  transition: all 0.1s;
  margin: 10px 0;
}

.btn-reveal:hover { background: #E03A3A; transform: translateY(-1px); box-shadow: 0 5px 0 #CC2222; }
.btn-reveal:active { transform: translateY(2px); box-shadow: 0 2px 0 #CC2222; }

.btn-ghost {
  background: #fff;
  border: 2px solid #E8E0D8;
  border-radius: 12px;
  color: #888;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 3px 0 #E8E0D8;
}

.btn-ghost:hover { border-color: #CCC; color: #555; }

.btn-copy {
  background: #fff;
  border: 2px solid #FF4D4D;
  border-radius: 12px;
  color: #FF4D4D;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 24px;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: all 0.15s;
  box-shadow: 0 3px 0 #FFB0B0;
}

.btn-copy:hover { background: #FFF0F0; }
.btn-copy.copied { background: #22AA55; border-color: #22AA55; color: #fff; box-shadow: 0 3px 0 #117733; }

.btn-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; margin-top: 8px; }

/* --- Score & Result --- */
.score-reveal-box {
  background: #FF4D4D;
  border-radius: 20px;
  padding: 28px 36px;
  margin-bottom: 16px;
  display: block;
  box-shadow: 0 6px 0 #CC2222;
  text-align: center;
}

.score-display {
  font-family: 'Nunito', sans-serif;
  font-size: 96px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -4px;
  display: block;
}

.score-out-of { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.7); margin-top: 4px; letter-spacing: 1px; }

.people-reveal-box {
  background: #2D1B69;
  border-radius: 20px;
  padding: 20px 28px;
  margin-bottom: 16px;
  display: block;
  box-shadow: 0 6px 0 #1A0D40;
  text-align: center;
}

.people-count { font-family: 'Nunito', sans-serif; font-size: 48px; font-weight: 900; color: #FF4D4D; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -2px; display: block; }
.people-label { font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-top: 6px; text-transform: uppercase; }

.outcome-badge { display: inline-block; background: #FF4D4D; color: #fff; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 2px; padding: 6px 16px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; }

@keyframes flashIn { 0% { opacity: 0; transform: scale(0.85); } 65% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
.flash-in { animation: flashIn 0.5s ease forwards; }

/* --- Score explanation --- */
.score-reason {
  background: #FFF8F0;
  border: 2px solid #F0E8DC;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.score-reason-emoji { font-size: 18px; flex-shrink: 0; }
.score-reason-text { font-size: 14px; color: #555; font-weight: 600; line-height: 1.5; }
.score-reason-text strong { color: #1A1A2E; font-weight: 800; }

/* --- Leaderboard score bar --- */
.score-bar-wrap { width: 60px; height: 8px; background: #F0E8DC; border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; background: #FF4D4D; border-radius: 4px; transition: width 0.5s ease; }

/* --- Message Box --- */
.message-box { background: #2D1B69; border-radius: 16px; padding: 22px 26px; font-size: 16px; line-height: 1.75; color: #fff; font-style: italic; font-weight: 600; margin: 16px 0; box-shadow: 0 4px 0 #1A0D40; }

/* --- Step reveal blocks --- */
.step-block { display: none; animation: slideIn 0.4s ease forwards; }
.step-block.visible { display: block; }

.step-card { background: #fff; border: 2px solid #E8E0D8; border-radius: 16px; padding: 22px; margin-bottom: 14px; box-shadow: 0 4px 0 #E8E0D8; }

.step-quote { background: #FFF8F0; border: 2px solid #FFD580; border-left: 5px solid #FF4D4D; border-radius: 10px; padding: 14px 18px; font-size: 15px; font-style: italic; font-weight: 700; color: #1A1A2E; line-height: 1.7; margin-top: 14px; }

/* --- Dividers --- */
.rule { border: none; border-top: 2px solid #F0E8DC; margin: 20px 0; }
.rule-light { border: none; border-top: 1px solid #F0E8DC; margin: 16px 0; }

/* --- Brief block --- */
.brief-block { display: grid; grid-template-columns: 4px 1fr; gap: 0 16px; margin-bottom: 20px; }
.brief-bar { background: #FF4D4D; border-radius: 2px; }

/* --- Info bullet --- */
.info-bullet { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.info-bullet-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; margin-top: 6px; flex-shrink: 0; }

/* --- Footer --- */
.site-footer {
  border-top: 2px solid #F0E8DC;
  padding: 16px 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #AAA;
  text-align: center;
  background: #FFF8F0;
  letter-spacing: 0.3px;
}

.site-footer a { color: #FF4D4D; font-weight: 800; }
.site-footer a:hover { text-decoration: underline; }

/* --- Utility --- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
