:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --ink: #17231d;
  --muted: #637068;
  --line: #dce4dc;
  --small: #2f8f61;
  --small-dark: #1d6d48;
  --big: #2867b2;
  --big-dark: #1e4c84;
  --accent: #f0b429;
  --danger: #c94b4b;
  --shadow: 0 18px 45px rgba(23, 35, 29, 0.12);
}

@media (pointer: fine) {
  body.frog-cursor-enabled,
  body.frog-cursor-enabled * {
    cursor: none !important;
  }

  .frog-cursor {
    position: fixed;
    top: -18px;
    left: -18px;
    z-index: 99999;
    width: 54px;
    height: 54px;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 10px 18px rgba(23, 35, 29, 0.22));
    transition: opacity 140ms ease;
    will-change: transform;
  }

  .frog-cursor.is-visible {
    opacity: 1;
  }

  .frog-face {
    position: relative;
    width: 48px;
    height: 40px;
    border: 2px solid #155c38;
    border-radius: 52% 52% 46% 46%;
    background:
      radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.38) 0 12%, transparent 13%),
      linear-gradient(135deg, #58c878, #24945f);
    transform-origin: 50% 80%;
    transition: transform 160ms ease, background 160ms ease;
  }

  .frog-eye {
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    border: 2px solid #155c38;
    border-radius: 50%;
    background: #fbfff7;
  }

  .frog-eye::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #17231d;
    transition: transform 160ms ease;
  }

  .frog-eye-left {
    left: 5px;
  }

  .frog-eye-right {
    right: 5px;
  }

  .frog-cheek {
    position: absolute;
    top: 22px;
    width: 8px;
    height: 6px;
    border-radius: 999px;
    background: rgba(240, 180, 41, 0.55);
  }

  .frog-cheek-left {
    left: 7px;
  }

  .frog-cheek-right {
    right: 7px;
  }

  .frog-mouth {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 18px;
    height: 8px;
    border-bottom: 3px solid #113f2b;
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
    transition: all 160ms ease;
  }

  .frog-bubble {
    position: absolute;
    right: -92px;
    bottom: 46px;
    width: max-content;
    max-width: 150px;
    border: 1px solid rgba(23, 35, 29, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 35, 29, 0.16);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: translateY(8px) scale(0.94);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .frog-bubble::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    border-right: 1px solid rgba(23, 35, 29, 0.12);
    border-bottom: 1px solid rgba(23, 35, 29, 0.12);
    background: #fff;
    transform: rotate(45deg);
  }

  .frog-cursor.is-ready .frog-face {
    background:
      radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.42) 0 12%, transparent 13%),
      linear-gradient(135deg, #72d88a, #1d8b58);
    transform: translateY(-3px) scale(1.08);
  }

  .frog-cursor.is-ready .frog-eye::after {
    transform: translateY(-1px);
  }

  .frog-cursor.is-ready .frog-mouth {
    bottom: 5px;
    width: 22px;
    height: 15px;
    border: 0;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 78%, #ff8aa0 0 22%, transparent 24%),
      #173123;
  }

  .frog-cursor.is-ready .frog-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .frog-cursor.is-pressing .frog-face {
    transform: translateY(1px) scale(0.94);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 143, 97, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 5%, rgba(40, 103, 178, 0.14), transparent 24rem),
    linear-gradient(180deg, #fbfcf8 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--small-dark);
  text-decoration: none;
}

a:hover {
  color: var(--big-dark);
}

.app-navbar {
  border-bottom: 1px solid rgba(23, 35, 29, 0.08);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.nav-link {
  font-weight: 700;
}

.app-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.app-footer {
  border-top: 1px solid rgba(23, 35, 29, 0.08);
  padding: 20px 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--small-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arena-screen,
.dashboard-shell {
  display: grid;
  gap: 28px;
}

.narrow-screen {
  max-width: 760px;
  margin: 0 auto;
}

.arena-hero h1,
.page-heading h1,
.message-panel h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
}

.arena-hero p,
.page-heading p,
.message-panel p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.choice-card,
.panel,
.message-panel,
.reason-form {
  border: 1px solid rgba(23, 35, 29, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.choice-card {
  display: grid;
  min-height: 260px;
  gap: 16px;
  padding: 30px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 35, 29, 0.18);
  box-shadow: 0 26px 60px rgba(23, 35, 29, 0.16);
}

.choice-card strong {
  max-width: 520px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.choice-card span:last-child {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.choice-icon {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.small-pond-card .choice-icon,
.small-pond {
  background: linear-gradient(135deg, var(--small), #62bb7d);
}

.big-pond-card .choice-icon,
.big-pond {
  background: linear-gradient(135deg, var(--big), #6c9deb);
}

.reason-form,
.message-panel,
.panel {
  padding: 24px;
}

.reason-form {
  display: grid;
  gap: 16px;
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.55;
}

textarea:focus {
  border-color: var(--small);
  box-shadow: 0 0 0 4px rgba(47, 143, 97, 0.14);
  outline: none;
}

.btn-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--small), var(--small-dark));
}

.btn-muted {
  color: var(--ink);
  background: #e9efe9;
}

.btn-danger {
  background: var(--danger);
}

.page-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.status-strip,
.dashboard-grid,
.opinion-grid {
  display: grid;
  gap: 16px;
}

.status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-strip > div {
  border: 1px solid rgba(23, 35, 29, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.status-strip span,
.panel-title span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.dashboard-grid,
.opinion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-title {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bar-row + .bar-row {
  margin-top: 20px;
}

.bar-label {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
}

.bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee8;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  transition: width 220ms ease;
}

.random-panel blockquote {
  min-height: 84px;
  margin: 0;
  border-left: 5px solid var(--accent);
  padding: 12px 0 12px 18px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.55;
}

.opinion-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 0;
  list-style: none;
}

.opinion-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfcfb;
  color: var(--ink);
  line-height: 1.5;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-lock {
  display: grid;
  gap: 16px;
}

.lock-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.lock-input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.lock-input:focus {
  border-color: var(--small);
  box-shadow: 0 0 0 4px rgba(47, 143, 97, 0.14);
  outline: none;
}

.lock-error {
  border-radius: 8px;
  padding: 12px 14px;
  color: #8b1f1f;
  background: #fff0f0;
  font-weight: 800;
}

@media (max-width: 820px) {
  .app-main {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .choice-grid,
  .dashboard-grid,
  .opinion-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 220px;
    padding: 24px;
  }

  .page-heading {
    display: grid;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .lock-form {
    grid-template-columns: 1fr;
  }
}

.opening-show {
  display: grid;
  min-height: calc(100vh - 210px);
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.show-mark {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid rgba(23, 35, 29, 0.1);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 4rem;
}

.opening-show h1,
.show-header h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.8rem);
  font-weight: 950;
  line-height: 0.92;
}

.show-question {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.show-question strong {
  color: var(--ink);
}

.btn-xl {
  min-height: 58px;
  padding: 16px 24px;
  font-size: 1.05rem;
}

.btn-gold {
  color: #221706;
  background: linear-gradient(135deg, #f7d36b, var(--accent));
}

.round-banner {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(23, 35, 29, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 35, 29, 0.08);
}

.round-banner span {
  color: var(--small-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.round-banner strong {
  font-size: 0.92rem;
}

.choice-card {
  position: relative;
  align-content: start;
}

.choice-emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.choice-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 750;
  list-style: none;
}

.choice-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--small-dark);
  font-weight: 950;
}

.big-pond-card li::before {
  color: var(--big-dark);
}

.choose-label {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--ink);
  font-weight: 900;
}

.counter-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.counter-row strong {
  color: var(--ink);
}

.thanks-screen {
  position: relative;
  overflow: hidden;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti-layer span {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  animation: confettiFall 2.8s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(520px) rotate(360deg);
    opacity: 0;
  }
}

.show-dashboard {
  display: grid;
  gap: 20px;
}

.show-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.show-header p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.vote-status {
  display: grid;
  min-width: 220px;
  gap: 4px;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow);
}

.vote-status span {
  font-size: 1.4rem;
}

.vote-status strong {
  font-size: 1.1rem;
}

.vote-status small {
  opacity: 0.86;
  font-weight: 750;
}

.status-open {
  background: linear-gradient(135deg, var(--small), var(--small-dark));
}

.status-closed {
  background: linear-gradient(135deg, #3a3f46, #171b20);
}

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.live-vote-board {
  border: 1px solid rgba(23, 35, 29, 0.08);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.live-side {
  display: grid;
  gap: 12px;
}

.live-side span {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 900;
}

.live-side strong {
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 950;
  line-height: 0.88;
}

.live-side small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 850;
}

.small-live strong {
  color: var(--small-dark);
}

.big-live strong {
  color: var(--big-dark);
}

.versus {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 950;
}

.mega-bar {
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee8;
}

.mega-bar div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--small), #62bb7d);
}

.big-live .mega-bar div {
  background: linear-gradient(135deg, var(--big), #6c9deb);
}

.show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stage-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.round-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8faf7;
}

.round-state span {
  color: var(--muted);
  font-weight: 950;
}

.round-state strong {
  color: #8b1f1f;
}

.round-state.active {
  border-color: rgba(47, 143, 97, 0.35);
  background: rgba(47, 143, 97, 0.1);
}

.round-state.active strong {
  color: var(--small-dark);
}

.opinion-spotlight {
  min-height: 148px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(240, 180, 41, 0.65);
  border-radius: 8px;
  padding: 22px;
  background: #fffaf0;
  color: var(--ink);
  text-align: center;
  font-size: clamp(1.45rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.28;
}

.opinion-spotlight.rolling {
  animation: pulseSpotlight 420ms ease-in-out infinite alternate;
}

@keyframes pulseSpotlight {
  from {
    transform: scale(0.99);
  }
  to {
    transform: scale(1.01);
  }
}

.spotlight-team {
  min-height: 26px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.leaderboard {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.leaderboard li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
  line-height: 1.45;
}

.leaderboard strong {
  display: inline-flex;
  margin-right: 8px;
  color: var(--small-dark);
}

.leaderboard span {
  color: var(--ink);
}

.leaderboard em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.word-cloud {
  display: flex;
  min-height: 210px;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.word-cloud span {
  color: var(--big-dark);
  font-weight: 950;
}

.word-cloud span:nth-child(3n + 1) {
  color: var(--small-dark);
}

.word-cloud span:nth-child(4n) {
  color: #9a6500;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.comparison-grid h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 950;
}

.compare-line {
  display: grid;
  grid-template-columns: 100px 64px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.compare-line span,
.compare-line strong {
  font-weight: 900;
}

.arrow-shift {
  color: var(--accent);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 950;
}

@media (max-width: 900px) {
  .show-header,
  .live-row,
  .show-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .show-header {
    display: grid;
  }

  .versus,
  .arrow-shift {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .compare-line {
    grid-template-columns: 88px 56px 1fr;
  }

  .counter-row {
    display: grid;
  }
}
