:root {
  --bg: #161922;
  --bg-2: #1d2230;
  --panel: #080b12;
  --panel-2: #171b25;
  --text: #ffffff;
  --muted: #9ca8c7;
  --line: #32394b;
  --dark: #0b1f52;
  --dark-2: #12307d;
  --blue: #4ea1ff;
  --blue-soft: #102a58;
  --green: #15b977;
  --green-soft: #103a2f;
  --amber: #ff9e2c;
  --amber-soft: #3d2b0d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-display: "Bahnschrift", "Aptos Display", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: #151922;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(960px 680px at 12% 5%, rgba(78, 161, 255, 0.11), transparent 72%),
    radial-gradient(780px 560px at 88% 4%, rgba(21, 185, 119, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(135deg, #242a38 0%, #1a1e28 42%, #151922 100%);
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: auto, auto, 32px 32px, 32px 32px, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

body > :not(script) {
  position: relative;
  z-index: 1;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.brand-title,
.poll-title,
.section-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.stack-xl > * + * {
  margin-top: 26px;
}

.stack-lg > * + * {
  margin-top: 18px;
}

.stack-sm > * + * {
  margin-top: 10px;
}

.top-gap {
  margin-top: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 11, 17, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 210px;
  height: auto;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #0a1a48;
  color: white;
  font-weight: 700;
  font-size: 17px;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.nav-button,
.primary-btn,
.ghost-btn,
.soft-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  transition: 0.18s ease;
}

.nav-link,
.nav-button {
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-link.active,
.nav-link:hover,
.nav-button:hover,
.nav-button.search-open {
  background: #071735;
  color: white;
}

.search-inline-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 44px;
}

.search-icon-btn {
  width: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid rgba(112, 133, 181, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(21, 29, 46, 0.86), rgba(11, 17, 29, 0.86));
  color: #dce8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.topbar-icon-btn:hover,
.topbar-icon-btn:focus-visible,
.topbar-icon-btn.search-open {
  border-color: rgba(118, 155, 229, 0.56);
  background:
    linear-gradient(180deg, rgba(28, 40, 64, 0.96), rgba(14, 23, 39, 0.96));
  color: #ffffff;
  outline: 0;
  transform: translateY(-1px);
}

.topbar-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.92;
}

.top-search-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: white;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}

.top-search-input:focus {
  border-color: #5670b8;
}

.inline-search {
  width: 44px;
  min-width: 44px;
  transition: width 0.22s ease, opacity 0.18s ease;
  opacity: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.inline-search.open {
  width: 340px;
  min-width: 340px;
  opacity: 1;
}

.top-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  background: #0b0f17;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
  z-index: 60;
}

.top-search-item {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  background: #111624;
}

.top-search-item:hover {
  border-color: #334266;
  background: #151b2a;
}

.top-search-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.language-wrap {
  position: relative;
}

.language-btn {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 112px;
  background: #0b0f17;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 6px;
  z-index: 60;
}

.language-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: white;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 10px;
}

.language-menu button:hover,
.language-menu button.active {
  background: #151b2a;
}

.language-flag {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  background: #111624;
  flex: 0 0 auto;
}

.language-code {
  font-weight: 800;
  white-space: nowrap;
}

.language-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #9ca8c7;
  border-bottom: 2px solid #9ca8c7;
  display: inline-block;
  font-size: 0;
  margin-left: 2px;
  transition: transform 0.18s ease, border-color 0.18s ease;
  transform: translateY(0) rotate(45deg);
}

.language-btn.is-open .language-caret {
  transform: translateY(3px) rotate(225deg);
}

.language-btn:hover .language-caret,
.language-btn:focus-visible .language-caret {
  border-color: #ffffff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #111624;
  color: white;
  border-radius: 999px;
  padding: 11px 14px;
  cursor: pointer;
}

.primary-btn {
  background: #0a2d7e;
  color: white;
  cursor: pointer;
}

.sign-in-btn {
  min-width: 112px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(83, 132, 232, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #1749ba 0%, #0c3289 100%);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(8, 23, 68, 0.26);
}

.sign-in-btn:hover,
.sign-in-btn:focus-visible {
  border-color: rgba(139, 174, 242, 0.6);
  background:
    linear-gradient(180deg, #1d56d0 0%, #123d9b 100%);
  transform: translateY(-1px);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: #133a96;
  outline: 0;
}

.primary-btn.is-unvote {
  background: #19365c;
}

.primary-btn.is-unvote:hover {
  background: #274a78;
}

.light-btn {
  background: white;
  color: #111827;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: white;
  cursor: pointer;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  border-color: #6687c8;
  background: rgba(15, 24, 38, 0.88);
  outline: 0;
}

.soft-btn {
  background: #191f32;
  color: #d7c3ff;
  cursor: pointer;
}

.auth-area,
.profile-wrap {
  position: relative;
}

.auth-btn {
  min-width: 120px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: #0b0f17;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 6px;
  z-index: 60;
}

.profile-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: white;
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.profile-menu button:hover {
  background: #151b2a;
}

.profile-email {
  padding: 10px 12px 12px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.55);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 20px;
}

.translation-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 14, 0.58);
  backdrop-filter: blur(7px);
}

.translation-loader-card {
  min-width: 190px;
  border: 1px solid rgba(126, 160, 226, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 25, 41, 0.98), rgba(9, 14, 24, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 22px;
  font-weight: 900;
}

.translation-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(220, 232, 255, 0.22);
  border-top-color: #4ea1ff;
  border-radius: 999px;
  animation: translationSpin 0.8s linear infinite;
}

@keyframes translationSpin {
  to {
    transform: rotate(360deg);
  }
}

.modal-card {
  width: min(460px, 100%);
  background: #0b0f17;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.would-rather-card {
  width: min(760px, 100%);
  background:
    radial-gradient(circle at top left, rgba(78, 161, 255, 0.16), transparent 30%),
    #0b0f17;
}

.would-rather-game {
  margin-top: 18px;
}

.would-rather-empty {
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 20px;
  background: rgba(12, 19, 31, 0.62);
  display: grid;
  gap: 10px;
  padding: 22px;
}

.would-rather-empty .primary-btn {
  justify-self: start;
}

.would-rather-round {
  display: grid;
  gap: 16px;
}

.would-rather-round-top,
.would-rather-footer,
.would-rather-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.would-rather-round-top {
  color: var(--muted);
  font-size: 13px;
}

.would-rather-round h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
}

.would-rather-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.would-rather-choice {
  border: 1px solid rgba(103, 132, 197, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--row-accent, #4ea1ff) 18%, transparent), transparent 42%),
    rgba(12, 19, 31, 0.78);
  color: white;
  cursor: pointer;
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 22px;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.would-rather-choice:hover,
.would-rather-choice:focus-visible {
  border-color: color-mix(in srgb, var(--row-accent, #4ea1ff) 78%, white);
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--row-accent, #4ea1ff) 24%, transparent), transparent 46%),
    rgba(16, 25, 39, 0.94);
  outline: 0;
  transform: translateY(-2px);
}

.would-rather-choice:disabled {
  color: white;
  cursor: default;
  opacity: 1;
}

.would-rather-choice.is-revealed {
  transform: none;
}

.would-rather-choice.is-selected {
  border-color: color-mix(in srgb, var(--row-accent, #4ea1ff) 80%, white);
}

.would-rather-choice.is-winner {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--row-accent, #4ea1ff) 62%, white);
}

.would-rather-choice-label {
  color: #9bc6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.would-rather-choice strong {
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

.would-rather-result-line {
  color: var(--muted);
  font-size: 14px;
}

.would-rather-footer {
  color: var(--muted);
  min-height: 42px;
}

.would-rather-skip {
  min-height: 34px;
  padding: 8px 14px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.google-account-btn {
  width: 100%;
  border: 1px solid var(--line);
  background: #111624;
  color: white;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.google-account-btn:hover {
  background: #151b2a;
}

.google-account-btn small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.google-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #1b2336;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.panel,
.section-card,
.stat-card,
.poll-card,
.mini-card,
.vote-row,
.ad-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero,
.section-card,
.stat-card,
.mini-card,
.vote-row,
.ad-box {
  padding: 24px;
}

.hero {
  background: linear-gradient(135deg, #090d17 0%, #0c1220 50%, #10182a 100%);
}

.hero-compact {
  padding: 32px;
}

.hero-home {
  position: relative;
  overflow: hidden;
  height: 336px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #09101c 0%, #0d1320 45%, #101a2b 100%);
}

.home-main.stack-xl > * + * {
  margin-top: 18px;
}

body[data-page="home"]::before {
  background:
    radial-gradient(1050px 760px at 12% 3%, rgba(78, 161, 255, 0.11), transparent 72%),
    radial-gradient(860px 620px at 86% 2%, rgba(21, 185, 119, 0.07), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(135deg, #242a38 0%, #1a1e28 42%, #151922 100%);
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: auto, auto, 32px 32px, 32px 32px, 100% 100%;
}

body[data-page="home"] .hero-home,
body[data-page="home"] .discovery-dashboard {
  background: rgba(8, 12, 20, 0.9);
}

body[data-page="home"] .recommended-section {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 4px 0 0;
}

body[data-page="home"] .hero-home::after {
  display: none;
}

body[data-page="home"] .hero-spotlight-card,
body[data-page="home"] .dashboard-stat,
body[data-page="home"] .dashboard-poll-card,
body[data-page="home"] .dashboard-arrow {
  background: rgba(12, 19, 31, 0.72);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 72%, rgba(94, 120, 173, 0.08));
  pointer-events: none;
}

.hero-home-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 24px;
  height: 100%;
  align-items: center;
}

.hero-home-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.hero-copy-wrap {
  min-height: 0;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 38, 77, 0.72);
  color: #9bc6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-spotlight {
  height: 100%;
  position: relative;
  z-index: 1;
}

.hero-spotlight.is-switching .hero-spotlight-card {
  opacity: 0;
  transform: translateY(6px) scale(0.985);
}

.hero-spotlight-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(95, 120, 176, 0.36);
  border-radius: 22px;
  background: rgba(8, 12, 20, 0.88);
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-spotlight-card:hover,
.hero-spotlight-card:focus-visible {
  transform: translateY(-3px);
  border-color: #78a5ff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  outline: 0;
}

.hero-spotlight-top,
.hero-spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-spotlight-label,
.hero-spotlight-meta {
  font-size: 12px;
  font-weight: 700;
  color: #dbe8ff;
}

.hero-spotlight-label {
  color: #8ec3ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-spotlight-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-spotlight-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  max-height: 3.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-spotlight-stack {
  align-content: start;
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.hero-spotlight-row:nth-child(n + 3) {
  display: none;
}

.hero-spotlight-row {
  display: grid;
  gap: 7px;
}

.hero-spotlight-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.hero-spotlight-foot {
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.flashcard-text-wrap {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-wrap {
  min-height: 0;
  justify-content: center;
}

#heroHeadline,
#heroSubtext {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flashcard-fade {
  opacity: 0;
  transform: translateY(8px);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
  margin: 0 0 14px;
}

.hero-home h1 {
  display: -webkit-box;
  max-width: 820px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero p,
.section-sub,
.muted {
  color: var(--muted);
}

.hero p {
  max-width: 760px;
  line-height: 1.7;
}

.hero-home p {
  display: -webkit-box;
  max-height: 3.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-actions,
.button-row,
.badge-row,
.tag-row,
.inline-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 22px;
}

.hero-home .hero-actions {
  margin-top: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 28px;
}

.small-section {
  font-size: 24px;
}

.section-sub {
  margin: 6px 0 0;
  line-height: 1.6;
}

.small-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.stats-grid,
.card-grid,
.two-panel-layout,
.poll-lower,
.search-results {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.discovery-deck {
  display: block;
}

.discovery-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 13, 21, 0.94) 0%, rgba(12, 17, 28, 0.96) 100%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.discovery-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.1), transparent 30%),
    rgba(8, 12, 20, 0.82);
  box-shadow: var(--shadow);
}

.discovery-strip-item {
  border: 1px solid rgba(79, 99, 143, 0.2);
  border-radius: 16px;
  background: rgba(12, 19, 31, 0.64);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.discovery-strip-item:hover,
.discovery-strip-item:focus-visible {
  border-color: #6687c8;
  background: rgba(15, 24, 38, 0.88);
  transform: translateY(-1px);
  outline: 0;
}

.discovery-strip-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-strip-item span:last-child,
.discovery-strip-pulse {
  color: var(--muted);
  font-size: 13px;
}

.discovery-strip-pulse {
  align-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 270px;
}

.discovery-strip-pulse span {
  border: 1px solid rgba(103, 132, 197, 0.16);
  border-radius: 999px;
  background: rgba(12, 19, 31, 0.72);
  padding: 9px 12px;
  white-space: nowrap;
}

.discovery-strip-pulse strong {
  color: white;
}

.discovery-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.1), transparent 30%),
    rgba(8, 12, 20, 0.82);
  box-shadow: var(--shadow);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-items: stretch;
}

.dashboard-stat,
.dashboard-poll-card {
  border: 1px solid rgba(103, 132, 197, 0.16);
  border-radius: 13px;
  background: rgba(12, 19, 31, 0.7);
}

.dashboard-stat {
  align-content: center;
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 7px 10px;
}

.dashboard-stat strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.dashboard-stat span,
.dashboard-poll-card span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-stat span {
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dashboard-polls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-carousel {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.dashboard-arrow {
  align-self: center;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at top, rgba(78, 161, 255, 0.12), transparent 44%),
    rgba(12, 19, 31, 0.72);
  color: #dbe8ff;
  cursor: pointer;
  display: grid;
  font-size: 18px;
  font-weight: 900;
  height: 30px;
  line-height: 1;
  padding: 0;
  place-items: center;
  width: 30px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dashboard-arrow:hover,
.dashboard-arrow:focus-visible {
  border-color: #6687c8;
  background: rgba(15, 24, 38, 0.9);
  outline: 0;
  transform: translateY(-1px);
}

.dashboard-carousel-window {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.dashboard-carousel-track {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) minmax(0, 3fr) minmax(56px, 1fr);
  gap: 8px;
  min-width: 0;
  position: relative;
  z-index: 1;
  animation: dashboardTrackSwipe 0.74s cubic-bezier(0.2, 0.78, 0.22, 1);
}

.dashboard-poll-card {
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 10px;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dashboard-period-card {
  align-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 5px 10px;
}

.dashboard-period-card.is-prev,
.dashboard-period-card.is-next {
  align-content: center;
  opacity: 0.46;
  padding-inline: 12px;
  transform: scale(0.97);
}

.dashboard-period-card.is-prev {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.38) 36%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.38) 36%, #000 100%);
}

.dashboard-period-card.is-next {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.38) 64%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.38) 64%, transparent 100%);
}

.dashboard-period-card.is-prev .dashboard-card-label,
.dashboard-period-card.is-next .dashboard-card-label {
  font-size: 10px;
}

.dashboard-poll-card:hover,
.dashboard-poll-card:focus-visible {
  border-color: #6687c8;
  background: rgba(15, 24, 38, 0.88);
  transform: translateY(-1px);
  outline: 0;
}

.dashboard-poll-card.is-empty {
  cursor: default;
  opacity: 0.68;
}

.dashboard-poll-card.is-empty:hover {
  border-color: rgba(103, 132, 197, 0.16);
  background: rgba(12, 19, 31, 0.7);
  transform: none;
}

.dashboard-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dashboard-card-row-top strong {
  color: #f5f8ff;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.1;
}

.dashboard-card-row-bottom {
  color: var(--muted);
}

.dashboard-card-label {
  color: #9bc6ff !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-card-row strong,
.dashboard-card-row > span,
.dashboard-top-choice {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-top-choice {
  flex: 1;
  max-width: 230px;
}

.dashboard-vote-total {
  flex-shrink: 0;
  text-align: right;
}

.discovery-card-accent {
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(9, 13, 21, 0.94) 0%, rgba(12, 17, 28, 0.96) 100%);
}

.discovery-card-label {
  color: #9bc6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discovery-list {
  display: grid;
  gap: 10px;
}

.discovery-list-item,
.discovery-feature {
  border: 1px solid rgba(79, 99, 143, 0.24);
  border-radius: 16px;
  background: rgba(12, 19, 31, 0.72);
  padding: 14px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.discovery-list-item:hover,
.discovery-list-item:focus-visible,
.discovery-feature:hover,
.discovery-feature:focus-visible {
  border-color: #6687c8;
  background: rgba(15, 24, 38, 0.88);
  transform: translateY(-2px);
  outline: 0;
}

.discovery-list-title,
.discovery-feature-title {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
}

.discovery-list-meta,
.discovery-feature-copy,
.discovery-feature-note {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.discovery-list-meta,
.discovery-feature-copy {
  margin-top: 6px;
}

.discovery-feature-note {
  margin-top: 10px;
  color: #dbe8ff;
  font-weight: 700;
}

.pulse-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pulse-stat {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(12, 19, 31, 0.72);
  text-align: center;
}

.pulse-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
}

.pulse-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.discovery-chip-row,
.home-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-filter-row {
  margin: 18px 0 20px;
}

.topic-chip,
.mini-topic-chip,
.home-filter-chip {
  border: 1px solid rgba(103, 132, 197, 0.22);
  border-radius: 999px;
  background: rgba(11, 18, 30, 0.68);
  color: #dbe8ff;
  padding: 9px 13px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.topic-chip:hover,
.mini-topic-chip:hover,
.home-filter-chip:hover,
.topic-chip:focus-visible,
.mini-topic-chip:focus-visible,
.home-filter-chip:focus-visible {
  background: rgba(16, 29, 51, 0.92);
  border-color: #6a8bd0;
  transform: translateY(-1px);
  outline: 0;
}

.topic-chip,
.mini-topic-chip {
  font-size: 12px;
}

.home-filter-chip {
  font-size: 13px;
  font-weight: 700;
}

.topic-chip.active,
.mini-topic-chip.active,
.home-filter-chip.active {
  background: linear-gradient(135deg, rgba(19, 54, 118, 0.95), rgba(17, 110, 182, 0.85));
  border-color: transparent;
  color: white;
}

.empty-home-state {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed rgba(103, 132, 197, 0.36);
  border-radius: 20px;
  background: rgba(10, 15, 24, 0.74);
  color: var(--muted);
  text-align: center;
}

.two-panel-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.poll-lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.poll-card {
  position: relative;
  overflow: visible;
  padding: 0;
  height: 286px;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 24%, transparent), transparent 34%),
    linear-gradient(180deg, #0b0f18 0%, #080b12 100%);
  cursor: pointer;
  z-index: 0;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.poll-card::before {
  display: none;
}

.poll-card:hover,
.poll-card:focus-visible {
  z-index: 12;
  border-color: #5e78ad;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.poll-card:focus-visible {
  outline: 0;
}

.poll-card-layer {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 286px;
  overflow: hidden;
  padding: 16px 16px 14px;
  border: 1px solid transparent;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 22%, transparent), transparent 34%),
    linear-gradient(180deg, #0b0f18 0%, #080b12 100%);
  transition:
    opacity 0.2s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

body[data-page="home"] .poll-card,
body[data-page="home"] .poll-card-layer {
  background: linear-gradient(180deg, #0b0f18 0%, #080b12 100%);
}

.poll-card-compact {
  pointer-events: none;
  z-index: 1;
}

.poll-card-expanded-layer {
  height: 500px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  clip-path: inset(0 0 calc(100% - 286px) 0 round var(--radius-xl));
  z-index: 2;
  will-change: clip-path, opacity, transform;
}

.poll-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.poll-card-footer,
.poll-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.recommended-head {
  align-items: flex-end;
}

.recommended-toolbar,
.recommended-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommended-toolbar {
  justify-content: space-between;
  margin: 14px 0 20px;
}

.recommended-search {
  flex: 1;
  width: min(300px, 42vw);
  min-height: 44px;
  border-radius: 999px;
  background: rgba(11, 18, 30, 0.72);
}

.recommended-search:focus {
  border-color: #5f90e8;
  box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.12);
}

.recommended-toolbar .home-filter-row {
  margin: 0;
}

.home-search-wrap {
  position: relative;
  flex: 1;
  width: min(300px, 42vw);
}

.home-search-wrap .recommended-search {
  width: 100%;
}

.home-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(420px, 78vw);
  border: 1px solid rgba(103, 132, 197, 0.22);
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.98);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 7px;
  max-height: 390px;
  overflow: auto;
  padding: 8px;
}

.home-search-item {
  border: 1px solid transparent;
  border-radius: 14px;
  background: #111624;
  color: white;
  cursor: pointer;
  display: grid;
  gap: 7px;
  padding: 12px;
  text-align: left;
}

.home-search-item:hover,
.home-search-item:focus-visible {
  border-color: #334266;
  background: #151b2a;
  outline: 0;
}

.home-search-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search-item span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.home-search-item.is-empty {
  cursor: default;
}

.home-search-item.is-empty:hover {
  border-color: transparent;
  background: #111624;
}

.home-sort-wrap {
  position: relative;
}

.home-sort-toggle {
  border: 1px solid rgba(103, 132, 197, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(78, 161, 255, 0.16), transparent 42%),
    rgba(11, 18, 30, 0.82);
  color: #f4f8ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.home-sort-toggle:hover,
.home-sort-toggle:focus-visible,
.home-sort-toggle[aria-expanded="true"] {
  border-color: #6687c8;
  background: rgba(15, 24, 38, 0.94);
  outline: 0;
  transform: translateY(-1px);
}

.hamburger-lines {
  display: grid;
  gap: 3px;
  width: 14px;
}

.hamburger-lines span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: #9bc6ff;
}

.home-sort-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 190px;
  border: 1px solid rgba(103, 132, 197, 0.22);
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  padding: 8px;
}

.home-sort-menu button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #eef5ff;
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  text-align: left;
}

.home-sort-menu button:hover,
.home-sort-menu button.active {
  background: rgba(18, 45, 93, 0.78);
}

.home-sort-menu small {
  color: var(--muted);
  font-size: 11px;
}

.poll-card-meta {
  justify-content: flex-start;
}

.poll-card-meta-chip {
  border: 1px solid rgba(103, 132, 197, 0.24);
  background: rgba(13, 22, 42, 0.82);
  color: #dbe8ff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
}

.poll-card-owner {
  max-width: 42%;
  padding: 5px 9px;
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 999px;
  background: rgba(9, 15, 27, 0.72);
  color: #93a7d8;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poll-card-scoreboard {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 99, 143, 0.26);
  border-radius: 16px;
  background: rgba(8, 14, 24, 0.76);
}

.poll-card-option {
  display: grid;
  gap: 5px;
}

.poll-card-option-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.poll-card-rank {
  min-width: 30px;
  padding: 4px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #d5e3ff;
  background: rgba(27, 40, 70, 0.88);
}

.poll-card-option-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f5f8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poll-card-option-percent {
  font-size: 13px;
  font-weight: 700;
  color: #dbe8ff;
}

.poll-card-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.poll-card-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.poll-card-bar-fill.rank-1 {
  background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, #2f70ff) 68%, white) 0%, var(--row-accent, #2f70ff) 100%);
}

.poll-card-bar-fill.rank-2 {
  background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, #14b97a) 68%, white) 0%, var(--row-accent, #14b97a) 100%);
}

.poll-card-bar-fill.rank-3 {
  background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, #ff9e2c) 68%, white) 0%, var(--row-accent, #ff9e2c) 100%);
}

.poll-card-bar-fill.rank-4 {
  background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, #4f7ce2) 68%, white) 0%, var(--row-accent, #4f7ce2) 100%);
}

.poll-card-bar-fill.rank-5 {
  background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, #3da0d9) 68%, white) 0%, var(--row-accent, #3da0d9) 100%);
}

.poll-card-footer,
.poll-card-description,
.poll-card-detail-note {
  color: var(--muted);
}

.poll-card-description,
.poll-card-detail-note {
  margin: 0;
  line-height: 1.5;
}

.poll-card-expanded-content {
  display: grid;
  gap: 12px;
}

.poll-card:hover .poll-card-compact,
.poll-card:focus-visible .poll-card-compact,
.poll-card:focus-within .poll-card-compact {
  opacity: 0;
}

.poll-card:hover .poll-card-expanded-layer,
.poll-card:focus-visible .poll-card-expanded-layer,
.poll-card:focus-within .poll-card-expanded-layer {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0 round var(--radius-xl));
  pointer-events: auto;
  border-color: #5e78ad;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 28%, transparent), transparent 32%),
    linear-gradient(180deg, #0b0f18 0%, #080b12 100%);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.36);
}

body[data-page="home"] .poll-card:hover .poll-card-expanded-layer,
body[data-page="home"] .poll-card:focus-visible .poll-card-expanded-layer,
body[data-page="home"] .poll-card:focus-within .poll-card-expanded-layer {
  background: linear-gradient(180deg, #0b0f18 0%, #080b12 100%);
}

body.is-scrolling .poll-card {
  z-index: 0;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.is-scrolling .poll-card-compact {
  opacity: 1;
}

body.is-scrolling .poll-card-expanded-layer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  clip-path: inset(0 0 calc(100% - 286px) 0 round var(--radius-xl));
}

.poll-card-extra-rows {
  display: grid;
  gap: 8px;
  padding-bottom: 2px;
}

.poll-card-tag-row {
  gap: 6px;
}

.poll-card-scoreboard-expanded {
  padding: 10px 12px;
}

.poll-card .poll-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  padding-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poll-card-footer {
  font-size: 13px;
  padding-top: 2px;
  margin-top: auto;
}

.poll-title {
  font-size: 22px;
  margin: 14px 0 10px;
}

.badge,
.status-pill {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.official,
.status-good {
  background: var(--green-soft);
  color: var(--green);
}

.badge.community {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.pending,
.status-warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.approved {
  background: var(--green-soft);
  color: var(--green);
}

.badge.category {
  background: #191f32;
  color: #c5d0ef;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: #111624;
}

.option-link {
  color: #9ec8ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.option-link:hover {
  color: white;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: white;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: #5f78bb;
}

.vote-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #171d2b;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #1f5fff;
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.notifications-wrap {
  position: relative;
}

.icon-btn.has-alert {
  position: relative;
}

.icon-btn.has-alert::after {
  content: attr(data-count);
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff8a2b;
  color: #081018;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.notifications-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b1019;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 8px;
  z-index: 70;
}

.notification-item {
  width: 100%;
  border: 1px solid rgba(103, 132, 197, 0.12);
  border-radius: 16px;
  background: #101725;
  color: inherit;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.notification-main {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
}

.notification-dismiss {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.notification-item:hover,
.notification-item:focus-within {
  border-color: #6585c4;
  background: #141d2d;
  outline: 0;
}

.notification-dismiss:hover {
  color: white;
  border-color: #6585c4;
}

.notification-item.unread {
  border-color: rgba(105, 139, 210, 0.28);
  background: linear-gradient(180deg, rgba(13, 22, 40, 0.95) 0%, rgba(10, 17, 28, 0.95) 100%);
}

.notification-copy {
  font-size: 14px;
  line-height: 1.45;
}

.notification-time,
.notification-empty {
  color: var(--muted);
  font-size: 12px;
}

.notification-empty {
  padding: 12px;
}

.page-shell {
  padding: 28px 0 60px;
}

.page-hero-card,
.auth-gate-card {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(9, 13, 21, 0.98) 0%, rgba(12, 18, 29, 0.98) 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 280px;
  gap: 18px;
  align-items: start;
}

.page-hero-title {
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.02;
}

.page-hero-side {
  display: grid;
  gap: 12px;
}

.page-metric-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(11, 18, 30, 0.76);
  border: 1px solid rgba(103, 132, 197, 0.16);
}

.page-metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
}

.page-metric-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.feature-grid,
.principles-grid,
.settings-grid,
.my-polls-grid,
.create-poll-layout,
.poll-page-grid,
.poll-support-grid,
.quick-stats-grid {
  display: grid;
  gap: 18px;
}

.feature-grid,
.principles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.principle-card {
  display: grid;
  gap: 10px;
}

.principle-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(11, 18, 30, 0.68);
  border: 1px solid rgba(103, 132, 197, 0.14);
}

.settings-grid,
.create-poll-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toggle-row {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #dce6ff;
  padding: 10px 0;
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.my-polls-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.my-owned-card,
.my-owned-card .poll-card-layer {
  height: 246px;
}

.my-owned-card .poll-card-layer {
  position: absolute;
  pointer-events: auto;
  gap: 10px;
  padding: 14px;
}

.my-owned-card .poll-card-scoreboard {
  gap: 6px;
  padding: 9px 11px;
}

.my-owned-card .poll-card-option {
  gap: 4px;
}

.my-owned-card .poll-card-bar {
  height: 6px;
}

.my-owned-card .poll-card-owner {
  max-width: none;
}

.owned-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.owned-card-actions .soft-chip,
.owned-card-actions .danger-chip {
  padding: 5px 8px;
  font-size: 11px;
}

.my-owned-empty-score {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(103, 132, 197, 0.22);
  border-radius: 14px;
  font-size: 13px;
}

.my-polls-empty {
  padding: 20px 24px;
}

.my-poll-card {
  cursor: pointer;
  display: grid;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.my-poll-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.my-poll-actions,
.poll-owner-actions,
.create-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.create-hero-actions {
  justify-content: flex-end;
}

.edit-live-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.58);
}

.edit-live-controls .ghost-btn,
.edit-live-controls .soft-chip,
.edit-live-controls .danger-chip {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}

.soft-chip,
.danger-chip {
  border-radius: 999px;
  cursor: pointer;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.18s ease;
}

.soft-chip {
  border: 1px solid rgba(103, 132, 197, 0.3);
  background: rgba(13, 32, 66, 0.72);
  color: #c7dcff;
}

.soft-chip:hover {
  border-color: rgba(142, 184, 255, 0.55);
  color: white;
  background: rgba(21, 54, 112, 0.86);
}

.danger-chip {
  border: 1px solid rgba(255, 114, 114, 0.3);
  background: rgba(80, 18, 28, 0.72);
  color: #ffb8b8;
}

.danger-chip:hover {
  border-color: rgba(255, 150, 150, 0.55);
  color: white;
  background: rgba(112, 25, 38, 0.86);
}

.my-poll-card:hover {
  transform: translateY(-3px);
  border-color: #6687c8;
}

.my-poll-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.create-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.create-wizard-hero,
.create-wizard-layout {
  max-width: 1160px;
  margin-inline: auto;
}

.create-wizard-hero {
  margin-bottom: 12px;
  padding: 16px 22px;
}

.create-wizard-hero .section-head {
  align-items: center;
}

.create-wizard-layout {
  grid-template-columns: minmax(0, 1fr);
}

.create-wizard-card {
  overflow: hidden;
  padding: 0;
}

.create-wizard-layout.is-editing .create-wizard-card {
  overflow: visible;
}

.create-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 24, 0.78);
}

.create-step-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-right: 1px solid rgba(103, 132, 197, 0.12);
  background: transparent;
  color: var(--muted);
  padding: 13px 16px;
  text-align: center;
  cursor: pointer;
  transition: 0.18s ease;
}

.create-step-tab:last-child {
  border-right: 0;
}

.create-step-tab:hover,
.create-step-tab.is-active {
  color: white;
  background: linear-gradient(135deg, rgba(16, 44, 92, 0.72), rgba(11, 18, 30, 0.38));
}

.create-step-tab.is-complete .create-step-index {
  background: var(--green-soft);
  color: var(--green);
}

.create-step-index {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #9ec8ff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.create-step-tab strong {
  display: block;
}

.create-step-panels {
  padding: 22px 26px;
}

.create-step-panel[hidden] {
  display: none !important;
}

.create-step-panel {
  animation: createStepIn 0.22s ease;
}

.create-step-head {
  max-width: 760px;
}

.create-step-head .section-title {
  font-size: 24px;
}

.create-step-panel.stack-lg > * + * {
  margin-top: 14px;
}

.create-step-panel .textarea {
  min-height: 96px;
}

.create-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.create-settings-grid > .field,
.create-settings-grid > .create-toggle-row {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(103, 132, 197, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.08), transparent 36%),
    rgba(11, 18, 30, 0.62);
}

.create-settings-grid > .field {
  align-content: start;
}

.create-settings-grid .select {
  min-height: 48px;
}

.color-field {
  position: relative;
}

.color-picker-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.color-picker-button {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--poll-accent, #2f70ff) 34%, rgba(103, 132, 197, 0.24));
  border-radius: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #2f70ff) 18%, transparent), transparent 42%),
    rgba(17, 22, 36, 0.88);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.color-picker-button:hover {
  border-color: color-mix(in srgb, var(--poll-accent, #2f70ff) 68%, #ffffff);
  transform: translateY(-1px);
}

.color-preview {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--poll-accent, #2f70ff);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--poll-accent, #2f70ff) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--poll-accent, #2f70ff) 38%, transparent);
  flex: 0 0 auto;
}

.native-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.color-field .soft-chip {
  min-height: 44px;
  opacity: 1;
}

.color-field .soft-chip:disabled {
  cursor: not-allowed;
  display: none;
  opacity: 0.45;
}

.create-toggle-row {
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(103, 132, 197, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.08), transparent 36%),
    rgba(11, 18, 30, 0.62);
  font-weight: 800;
}

.create-toggle-row span {
  display: grid;
  gap: 4px;
}

.create-toggle-row small {
  color: var(--muted);
  font-size: 13px;
}

.create-wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 26px 18px;
  border-top: 1px solid var(--line);
  background: rgba(9, 14, 24, 0.5);
}

.create-wizard-layout.is-editing .create-wizard-nav {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  margin: 0 14px 14px;
  border: 1px solid rgba(103, 132, 197, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(78, 161, 255, 0.12), transparent 34%),
    rgba(8, 12, 20, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.create-wizard-nav .muted {
  margin-left: auto;
}

@keyframes createStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboardTrackSwipe {
  from {
    opacity: 0;
    transform: translateX(calc(var(--slide-direction, 1) * 10%));
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.compact-head {
  align-items: center;
}

.chip-field {
  align-content: start;
}

.chip-input-panel {
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-chip-row,
.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip-input-panel .selected-chip-row {
  display: contents;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #0d2754;
  color: #dce8ff;
  font-size: 13px;
  font-weight: 700;
}

.chip-placeholder {
  color: var(--muted);
  font-size: 13px;
}

.chip-remove {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  line-height: 1;
}

.chip-text-input {
  width: auto;
  min-width: 150px;
  flex: 1 1 150px;
  border: 0;
  outline: none;
  background: transparent;
  color: white;
  padding: 7px 4px;
}

.suggestion-row {
  margin-top: 8px;
}

.suggestion-chip {
  border: 1px solid rgba(103, 132, 197, 0.24);
  border-radius: 999px;
  background: #111624;
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.18s ease;
}

.suggestion-chip:hover,
.suggestion-chip.is-picked {
  border-color: #4d77cd;
  color: white;
  background: #0d2754;
}

.create-option-list {
  display: grid;
  gap: 10px;
}

.create-option-row {
  display: grid;
  grid-template-columns: 38px minmax(170px, 1fr) minmax(112px, 0.38fr) minmax(160px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(103, 132, 197, 0.14);
  border-radius: 18px;
  background: rgba(11, 18, 30, 0.6);
}

.create-option-color-cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}

.option-color-button {
  min-height: 44px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--row-accent, #2f70ff) 36%, rgba(103, 132, 197, 0.2));
  border-radius: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--row-accent, #2f70ff) 16%, transparent), transparent 44%),
    rgba(17, 22, 36, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.option-color-preview {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--row-accent, #2f70ff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--row-accent, #2f70ff) 18%, transparent);
  flex: 0 0 auto;
}

.option-color-reset {
  flex: 0 0 auto;
}

.option-color-reset:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.create-option-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #a9cfff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.create-option-file-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px dashed rgba(103, 132, 197, 0.36);
  border-radius: 14px;
  color: #dce8ff;
  background: rgba(15, 23, 39, 0.9);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.option-file-hint {
  color: var(--muted);
  font-size: 12px;
}

.option-image-preview {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.option-image-preview img {
  width: 44px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(103, 132, 197, 0.24);
}

.create-option-remove {
  padding: 10px 14px;
}

.ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-gate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.auth-gate-copy {
  max-width: 620px;
}

.empty-state-card {
  text-align: left;
}

.poll-page-shell {
  padding: 18px 0 52px;
}

.poll-page-shell.stack-xl > * + * {
  margin-top: 16px;
}

.poll-hero-card {
  padding: 18px 20px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 20%, transparent), transparent 28%),
    linear-gradient(135deg, rgba(9, 13, 21, 0.98) 0%, rgba(12, 18, 29, 0.98) 100%);
}

.poll-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.poll-hero-title {
  margin-top: 8px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.02;
}

.poll-hero-card .section-sub {
  max-width: 760px;
  margin-top: 10px;
}

.poll-hero-tags {
  margin-top: 12px;
}

.poll-hero-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.poll-summary-card {
  padding: 12px;
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 14%, transparent), transparent 42%),
    rgba(11, 18, 30, 0.76);
  border: 1px solid color-mix(in srgb, var(--poll-accent, #4ea1ff) 20%, rgba(103, 132, 197, 0.14));
  display: grid;
  gap: 6px;
}

.poll-summary-card strong {
  font-size: 16px;
}

.poll-summary-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.poll-page-grid {
  grid-template-columns: minmax(0, 1.55fr) 320px;
  align-items: start;
  gap: 16px;
}

.poll-vote-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--poll-accent, #4ea1ff) 24%, rgba(103, 132, 197, 0.18));
  border-radius: 22px;
  background: rgba(7, 12, 21, 0.82);
}

.poll-vote-row {
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--row-accent, var(--poll-accent, #4ea1ff)) 16%, transparent), transparent 32%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.92), rgba(8, 13, 23, 0.92));
  border-bottom: 1px solid rgba(103, 132, 197, 0.14);
}

.poll-vote-row:last-child {
  border-bottom: 0;
}

.poll-vote-row-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.poll-vote-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.poll-option-image {
  width: 70px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(103, 132, 197, 0.2);
  background: #111624;
  flex: 0 0 auto;
}

.poll-vote-rank {
  color: var(--muted);
  font-size: 13px;
}

.poll-vote-title {
  margin-top: 3px;
  font-size: 20px;
  font-family: var(--font-display);
}

.poll-vote-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.poll-vote-numbers {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 96px;
}

.poll-vote-numbers span {
  color: var(--muted);
}

.poll-vote-bar.bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.09);
}

.poll-vote-bar .bar-fill {
  background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, var(--poll-accent, #4ea1ff)) 72%, white), var(--row-accent, var(--poll-accent, #4ea1ff)));
}

.poll-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.poll-breakdown-card {
  padding: 18px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 12%, transparent), transparent 28%),
    rgba(8, 12, 20, 0.98);
}

.poll-breakdown-card .section-head {
  align-items: center;
}

.owner-control-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(103, 132, 197, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.08), transparent 35%),
    rgba(11, 18, 30, 0.72);
}

.quick-stat {
  padding: 12px 10px;
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 12%, transparent), transparent 40%),
    rgba(11, 18, 30, 0.72);
  border: 1px solid rgba(103, 132, 197, 0.12);
  text-align: center;
}

.quick-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
}

.quick-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.poll-side-divider {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--poll-accent, #4ea1ff) 20%, rgba(103, 132, 197, 0.12));
  margin: 14px 0;
}

.poll-side .section-card {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 10%, transparent), transparent 30%),
    rgba(8, 12, 20, 0.98);
}

.poll-side .search-results {
  gap: 10px;
}

.poll-support-grid .section-card {
  padding: 18px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--poll-accent, #4ea1ff) 8%, transparent), transparent 30%),
    rgba(8, 12, 20, 0.98);
}

.poll-side .quick-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-poll-card {
  border: 1px solid color-mix(in srgb, var(--poll-accent, #4ea1ff) 18%, rgba(103, 132, 197, 0.14));
  border-radius: 16px;
  padding: 13px;
  background: rgba(11, 18, 30, 0.72);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.related-poll-card:hover {
  transform: translateY(-2px);
  border-color: #6687c8;
}

.related-poll-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.12;
}

.poll-update-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.poll-update-head,
.poll-update-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poll-update-copy {
  min-width: 0;
}

.poll-update-copy strong {
  overflow-wrap: anywhere;
}

.poll-update-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-action-btn {
  min-height: 34px;
  padding: 8px 13px;
  font-size: 13px;
}

.suggestion-upvote-btn {
  border: 1px solid rgba(103, 132, 197, 0.16);
  border-radius: 999px;
  background: rgba(13, 18, 30, 0.68);
  color: #77849e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px 7px 9px;
  font-weight: 900;
  flex-shrink: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.suggestion-upvote-btn:hover,
.suggestion-upvote-btn:focus-visible {
  border-color: rgba(103, 132, 197, 0.34);
  background: rgba(18, 28, 45, 0.9);
  color: #bfd4ff;
  outline: 0;
  transform: translateY(-1px);
}

.suggestion-upvote-btn.is-picked {
  border-color: rgba(78, 161, 255, 0.72);
  background:
    radial-gradient(circle at top, rgba(78, 161, 255, 0.32), transparent 55%),
    rgba(13, 39, 84, 0.94);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(78, 161, 255, 0.18),
    0 0 18px rgba(78, 161, 255, 0.28);
}

.suggestion-upvote-arrow {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  line-height: 1;
}

.suggestion-upvote-btn.is-picked .suggestion-upvote-arrow {
  background: rgba(255, 255, 255, 0.16);
  color: #cfe2ff;
}

.suggestion-upvote-count {
  min-width: 1.2em;
  text-align: center;
}

.poll-side-note {
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(9, 13, 21, 0.96) 0%, rgba(12, 17, 28, 0.98) 100%);
}

.empty-side-state {
  color: var(--muted);
  padding: 10px 0;
}

.poll-shell {
  padding: 28px 0 60px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 300px 170px;
  gap: 20px;
  align-items: start;
}

.ad-column {
  position: sticky;
  top: 92px;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .poll-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .hero-home {
    height: auto;
  }

  .hero-home-grid,
  .hero-spotlight {
    height: auto;
  }

  .hero-spotlight-card {
    height: auto;
    min-height: 260px;
  }

  .ad-column {
    display: none;
  }

  .hero-home-grid,
  .discovery-deck,
  .poll-page-grid,
  .poll-hero-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .stats-grid,
  .card-grid,
  .discovery-deck,
  .page-hero-grid,
  .feature-grid,
  .principles-grid,
  .settings-grid,
  .my-polls-grid,
  .create-poll-layout,
  .create-form-grid,
  .poll-hero-grid,
  .poll-page-grid,
  .poll-support-grid,
  .two-panel-layout,
  .poll-lower,
  .poll-shell {
    grid-template-columns: 1fr;
  }

  .hero-home {
    padding: 24px 20px;
  }

  .hero-home-grid {
    grid-template-columns: 1fr;
  }

  .hero-spotlight-card {
    padding: 16px;
  }

  .would-rather-choices {
    grid-template-columns: 1fr;
  }

  .would-rather-choice {
    min-height: 150px;
  }

  .pulse-row {
    grid-template-columns: 1fr;
  }

  .discovery-strip {
    grid-template-columns: 1fr;
  }

  .discovery-strip-pulse {
    justify-content: flex-start;
    min-width: 0;
  }

  .discovery-dashboard,
  .dashboard-polls {
    grid-template-columns: 1fr;
  }

  .dashboard-carousel {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }

  .dashboard-carousel-track {
    gap: 6px;
    grid-template-columns: minmax(42px, 1fr) minmax(0, 3fr) minmax(42px, 1fr);
  }

  .dashboard-period-card {
    grid-template-columns: 1fr;
  }

  .dashboard-period-card .dashboard-top-choice {
    display: none;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-arrow {
    height: 28px;
    min-height: 0;
    width: 28px;
  }

  .recommended-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .recommended-controls {
    width: 100%;
  }

  .home-search-wrap {
    width: 100%;
  }

  .recommended-search {
    max-width: none;
    width: auto;
  }

  .home-search-results {
    left: 0;
    right: auto;
    width: 100%;
  }

  .poll-hero-summary,
  .quick-stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-gate-card {
    align-items: flex-start;
  }

  .poll-vote-row {
    padding: 18px;
  }

  .create-stepper,
  .create-settings-grid {
    grid-template-columns: 1fr;
  }

  .create-step-tab {
    border-right: 0;
    border-bottom: 1px solid rgba(103, 132, 197, 0.12);
  }

  .create-step-tab:last-child {
    border-bottom: 0;
  }

  .create-step-panels,
  .create-wizard-nav {
    padding: 20px;
  }

  .create-wizard-nav .muted {
    width: 100%;
    margin-left: 0;
  }

  .create-option-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .create-option-color-cell,
  .create-option-file-cell,
  .create-option-remove {
    grid-column: 2;
  }

  .poll-vote-actions,
  .poll-vote-numbers {
    width: 100%;
    justify-items: stretch;
  }

  .poll-option-image {
    width: 72px;
    height: 56px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .inline-search.open,
  .top-search-results {
    width: min(92vw, 340px);
    min-width: min(92vw, 340px);
  }

  .poll-card {
    height: 246px;
  }

  .poll-card-layer {
    height: 100%;
  }

  .poll-card:hover,
  .poll-card:focus-visible {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  }

  .poll-card-expanded-layer {
    display: none;
  }

  .poll-card:hover .poll-card-compact,
  .poll-card:focus-visible .poll-card-compact,
  .poll-card:focus-within .poll-card-compact {
    opacity: 1;
  }

  .poll-card:hover .poll-card-layer,
  .poll-card:focus-visible .poll-card-layer,
  .poll-card:focus-within .poll-card-layer {
    height: 100%;
  }
}
