:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #fffaf0;
  --panel-strong: #ffffff;
  --ink: #1f2933;
  --muted: #667085;
  --line: #ddd6c8;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --danger: #b91c1c;
  --shadow: 0 16px 40px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32rem),
    linear-gradient(135deg, #f8f3e8 0%, #eef4ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.display-page {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 28rem),
    linear-gradient(180deg, #fbf7ef 0%, #f3f8ff 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.display-shell {
  width: min(1880px, calc(100% - 12px));
  padding: 18px 0;
}

.shell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 0.95;
}

.subtitle {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.subtitle:empty,
.display-phase:empty,
.display-kicker:empty {
  display: none;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--shadow);
}

.display-panel {
  min-height: calc(100vh - 36px);
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.display-panel.has-actor-color {
  border-color: var(--actor-border);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--actor-color) 36%, transparent), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--actor-color) 32%, #ffffff), color-mix(in srgb, var(--actor-color) 22%, #ffffff));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.has-actor-color {
  --actor-tint: color-mix(in srgb, var(--actor-color) 22%, #ffffff);
  --actor-tint-strong: color-mix(in srgb, var(--actor-color) 34%, #ffffff);
  --actor-border: color-mix(in srgb, var(--actor-color) 55%, var(--line));
}

.tile-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tile-value {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.1;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 90ms ease, background 90ms ease, border-color 90ms ease, box-shadow 90ms ease, opacity 90ms ease;
}

.button:hover:not(:disabled),
.button:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.button:active:not(:disabled),
.button.is-submitting {
  transform: scale(0.97);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button.danger {
  background: #b91c1c;
}

.button.danger:hover {
  background: #991b1b;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.is-submitting,
button.is-submitting {
  cursor: progress;
  opacity: 1;
}

.status-pill {
  min-width: 128px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.status-pill.ok {
  border-color: #86efac;
  color: #166534;
}

.status-pill.error {
  border-color: #fecaca;
  color: #991b1b;
}

.status {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 650;
}

.error {
  margin-top: 16px;
  color: var(--danger);
  font-weight: 800;
}

.placeholder-card {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.small {
  margin-top: 0;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.master-page .display-shell {
  width: min(1280px, calc(100% - 28px));
}

.master-page .display-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vmin, 28px);
  min-height: calc(100dvh - 36px);
  padding: clamp(24px, 2.3vmin, 36px);
}

.master-panel > section:not(.hidden) {
  display: grid;
  gap: clamp(16px, 1.8vmin, 26px);
}

.master-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: clamp(18px, 2vmin, 28px);
  align-items: start;
}

.master-dashboard-main,
.master-dashboard-side {
  display: grid;
  gap: clamp(16px, 1.7vmin, 24px);
  min-width: 0;
}

.master-dashboard-card {
  display: grid;
  gap: clamp(14px, 1.5vmin, 22px);
  min-width: 0;
  padding: clamp(18px, 1.8vmin, 26px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.master-setup-card {
  max-width: none;
}

.master-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.master-card-heading h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.25rem, 1.65vmin, 1.7rem);
  font-weight: 900;
  text-transform: uppercase;
}

.master-phase-card {
  align-content: start;
}

.master-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vmin, 22px);
}

.master-subphase-card {
  padding: clamp(14px, 1.5vmin, 20px);
  background: rgba(248, 250, 252, 0.76);
  box-shadow: none;
}

.master-phase-actions {
  align-items: stretch;
}

.master-phase-actions > .master-toggle-row {
  flex: 1 1 100%;
}

.master-side-actions {
  display: grid;
}

.master-page .display-banner {
  margin-bottom: 0;
}

.master-page .display-title {
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
}

.master-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vmin, 22px);
}

.master-top-bar-right {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vmin, 14px);
}

.master-phase-label {
  font-size: clamp(0.82rem, 1vmin, 1rem);
  font-weight: 800;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.master-phase-label:empty {
  display: none;
}

.master-round-label {
  padding: clamp(6px, 0.7vmin, 9px) clamp(10px, 1vmin, 14px);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  font-size: clamp(0.9rem, 1.1vmin, 1.05rem);
  font-weight: 900;
}

#game-code-pill {
  font-weight: 900;
  font-size: clamp(1rem, 1.2vmin, 1.2rem);
  letter-spacing: 0.08em;
}

.master-role-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vmin, 20px);
}

.master-role-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(0.85rem, 1vmin, 1rem);
  font-weight: 800;
  text-transform: uppercase;
}

.master-role-form input {
  min-height: clamp(58px, 6vmin, 74px);
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: clamp(1.5rem, 2.1vmin, 2rem);
  font-weight: 800;
  text-align: center;
}

.master-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.4vmin, 20px);
}

.master-actions > * {
  flex: 1 1 0;
  min-width: 0;
}

.master-big-button {
  min-height: clamp(58px, 6.2vmin, 76px);
  border-radius: 16px;
  font-size: clamp(1.08rem, 1.35vmin, 1.3rem);
}

.master-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.2vmin, 18px);
  justify-content: center;
}

.master-stat {
  padding: clamp(10px, 1vmin, 14px) clamp(18px, 1.5vmin, 24px);
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.07);
  font-size: clamp(1.05rem, 1.3vmin, 1.25rem);
  font-weight: 700;
}

.master-stat strong {
  font-size: clamp(1.3rem, 1.7vmin, 1.65rem);
  font-weight: 900;
}

.master-game-control {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.master-game-control .button {
  min-height: 42px;
  font-size: 0.88rem;
  border-radius: 12px;
}

.master-page .status-pill {
  min-height: 42px;
  font-size: clamp(0.82rem, 1vmin, 1rem);
}

.master-page .status,
.master-page .error {
  margin: 0;
  text-align: center;
  font-size: clamp(0.95rem, 1.1vmin, 1.05rem);
  font-weight: 700;
}

.master-page .status:empty,
.master-page .error:empty {
  display: none;
}

.profile-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vmin, 22px);
}

.profile-section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.profile-section h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
}

.profile-input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.creator-link-list {
  display: grid;
  gap: clamp(14px, 1.5vmin, 22px);
}

.creator-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.creator-link-card strong {
  flex-shrink: 0;
}

.creator-link-card code {
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.75rem;
}

.creator-link-card .button {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.master-info-section {
  display: grid;
  gap: clamp(8px, 1vmin, 12px);
}

.master-info-section .button {
  min-height: 44px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.master-info-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.master-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.2vmin, 16px);
  padding: clamp(10px, 1vmin, 14px) clamp(14px, 1.4vmin, 20px);
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.05);
}

.master-info-row.is-active {
  background: rgba(37, 99, 235, 0.12);
}

.master-info-row.has-actor-color {
  border-left: 6px solid var(--actor-color);
  background: var(--actor-tint);
}

.master-info-row.has-actor-color.is-active {
  background: var(--actor-tint-strong);
}

.master-info-name {
  font-weight: 800;
  font-size: clamp(1rem, 1.2vmin, 1.15rem);
}

.master-info-detail {
  font-size: clamp(0.9rem, 1.05vmin, 1rem);
  color: var(--muted);
  font-weight: 700;
}

.master-info-link {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.5;
}

.master-info-link:hover {
  opacity: 1;
}

.master-toggle-row {
  display: flex;
  gap: 8px;
}

.master-toggle-row .button {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.qr-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.qr-code {
  width: 148px;
  height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.progress-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.progress-row span {
  color: var(--muted);
}

.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.operator-workspace {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.operator-current-card {
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.operator-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.operator-feed-column {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.small-empty {
  min-height: 120px;
  font-size: 1rem;
}

.policy-workspace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(14px, 1.5vmin, 22px);
  margin-top: 0;
}

.policy-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.policy-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.policy-row-list {
  display: grid;
  gap: 10px;
}

.policy-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 96px auto;
  align-items: center;
  gap: 10px;
}

.policy-row > span {
  font-weight: 800;
}

.policy-row.has-actor-color {
  border-left: 6px solid var(--actor-color);
  background: var(--actor-tint);
}

.policy-recorded {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.policy-current-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.policy-current-row span {
  color: var(--muted);
  font-weight: 800;
}

.policy-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.policy-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audience-panel {
  min-height: calc(100vh - 170px);
}

.audience-stage {
  display: grid;
  gap: 26px;
  min-height: 100%;
}

.audience-stage-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 0;
  text-align: center;
}

.audience-stage-header h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  line-height: 0.92;
}

.audience-stage-header .subtitle {
  max-width: 960px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
}

.audience-content {
  display: grid;
  align-content: start;
  gap: 22px;
  flex: 1;
}

.audience-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.audience-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(204, 214, 228, 0.9);
  border-radius: 22px;
  background: #ffffff;
}

.audience-card.featured {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

.audience-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.audience-card-title strong {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 0.98;
}

.audience-card-title span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.big-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  font-size: 1.35rem;
  font-weight: 850;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 2.1rem;
  line-height: 1;
}

.leaderboard {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 70px 1.2fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 1.08rem;
  font-weight: 850;
  background: #ffffff;
}

.leaderboard-rank {
  color: var(--accent-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.leaderboard-role {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.leaderboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.leaderboard-row.has-actor-color {
  border-color: color-mix(in srgb, var(--actor-color) 60%, var(--line));
  background: color-mix(in srgb, var(--actor-color) 30%, #ffffff);
}

.leaderboard-separator {
  height: 3px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--line);
}

.empty-audience {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 850;
  text-align: center;
}

.waiting-screen {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vmin, 30px);
  padding: clamp(24px, 4vmin, 64px);
  text-align: center;
}

/* Make every waiting screen fill the viewport like the live screens do,
   regardless of which page (or which role mode) is rendering it. */
body.display-page:has(.waiting-screen) {
  overflow: hidden;
}

body.display-page:has(.waiting-screen) .display-shell {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

body.display-page:has(.waiting-screen) .display-panel {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.display-page:has(.waiting-screen) .role-workspace,
body.display-page:has(.waiting-screen) .creator-vote-workspace {
  flex: 1;
  min-height: 0;
}

.waiting-orb {
  display: grid;
  place-items: center;
  width: clamp(118px, 17vmin, 220px);
  height: clamp(118px, 17vmin, 220px);
  border-radius: 50%;
  font-size: clamp(3.4rem, 8.5vmin, 6.6rem);
  line-height: 1;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #ffffff), color-mix(in srgb, var(--accent) 10%, #ffffff));
  border: 2px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 24px 60px rgba(31, 41, 51, 0.12);
  animation: waiting-pulse 2.6s ease-in-out infinite;
}

@keyframes waiting-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 24px 60px rgba(31, 41, 51, 0.12);
  }

  50% {
    transform: scale(1.045);
    box-shadow: 0 30px 72px rgba(31, 41, 51, 0.16);
  }
}

.waiting-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
}

.waiting-text {
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
}

/* Hide the bare title banner whenever a waiting placeholder is on screen. */
.display-panel:has(.waiting-screen) .display-banner {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .waiting-orb {
    animation: none;
  }
}

.role-workspace {
  margin-top: 26px;
}

.role-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(540px, 1.45fr);
  gap: 22px;
}

.role-sidebar,
.role-main {
  display: grid;
  gap: 14px;
}

.feed-card {
  min-height: 620px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(204, 214, 228, 0.9);
  border-radius: 24px;
  background: #ffffff;
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feed-card-body {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: 24px;
  border-radius: 22px;
  background: #f8fafc;
  color: var(--ink);
  text-align: center;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 900;
}

.feed-card-body.feed-card-body--content {
  gap: 18px;
}

.feed-emoji {
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
}

.feed-flames {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.08em;
}

.feed-product-name {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.02;
}

.feed-product-price {
  color: var(--muted);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
}

.control-list {
  display: grid;
  gap: 12px;
}

.choice-button,
.slot-button {
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: left;
}

.choice-button.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.choice-button:disabled,
.slot-button:disabled {
  color: #9ca3af;
  background: #f3f4f6;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.slot-button {
  min-height: 120px;
  text-align: center;
  white-space: pre-line;
}

.slot-button.available {
  border-color: #86efac;
  background: #f0fdf4;
}

.select-field {
  min-height: 58px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 750;
}

.creator-vote-workspace {
  margin-top: 0;
}

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

.content-choice {
  min-height: min(58vh, 520px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: default;
}

.content-choice:active {
  transform: scale(0.99);
}

.content-choice-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-choice-body {
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #ffffff;
  font-size: clamp(6rem, 11vw, 9rem);
  font-weight: 900;
}

.content-choice.has-actor-color {
  border-color: var(--actor-border);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--actor-color) 32%, transparent), transparent 16rem),
    linear-gradient(180deg, color-mix(in srgb, var(--actor-color) 30%, #ffffff), color-mix(in srgb, var(--actor-color) 20%, #ffffff));
}

.content-choice.has-actor-color .content-choice-body {
  border: 0;
  background: transparent;
}

.content-choice-footer {
  display: none !important;
}

.vote-summary {
  display: grid;
  gap: 14px;
}

.vote-bar {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  font-size: 1.2rem;
  font-weight: 850;
}

.display-banner {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.display-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.92;
}

.display-phase {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 800;
}

.utility-actions {
  margin-top: 24px;
  justify-content: center;
  opacity: 0.65;
}

.utility-status {
  text-align: center;
  opacity: 0.7;
}

.utility-error {
  text-align: center;
}

.role-page .button,
.creator-page .button,
.audience-page .button {
  min-height: 52px;
  border-radius: 14px;
}

.role-page .role-sidebar .audience-card,
.role-page .role-main .audience-card {
  border-radius: 24px;
}

.role-page .audience-card-title strong {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

.role-page .metric strong {
  font-size: 2.3rem;
}

.role-page .status,
.creator-page .status,
.audience-page .status {
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.audience-page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.audience-page .audience-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
}

.audience-page .display-panel,
.role-page .display-panel {
  overflow: hidden;
}

.audience-page .display-panel {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  min-height: 0;
  padding: clamp(10px, 1.45vmin, 28px);
  border-radius: 0;
}

.audience-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.audience-wall {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vmin, 22px);
  align-items: stretch;
}

.audience-wall.audience-wall--two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-user-card {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.1vmin, 16px);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(10px, 1.8vmin, 28px);
  border: 2px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.audience-user-card.is-active {
  border-color: #2563eb;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 17rem),
    linear-gradient(180deg, #ffffff, #edf5ff);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14), 0 28px 80px rgba(37, 99, 235, 0.2);
  animation: audiencePulse 2.6s ease-in-out infinite;
}

.audience-user-card.has-actor-color {
  border-color: var(--actor-border);
  background:
    radial-gradient(circle at top right, var(--actor-tint-strong), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--actor-tint));
}

.audience-user-card.has-actor-color.is-active {
  border-color: var(--actor-color);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--actor-color) 24%, #ffffff), transparent 17rem),
    linear-gradient(180deg, #ffffff, var(--actor-tint-strong));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--actor-color) 20%, transparent), 0 28px 80px rgba(15, 23, 42, 0.16);
}

.audience-user-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.audience-user-identity {
  display: flex;
  gap: clamp(8px, 1.2vmin, 18px);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.audience-user-icon {
  width: clamp(48px, 7vmin, 84px);
  height: clamp(48px, 7vmin, 84px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #195b7b;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.1vmin, 1.9rem);
  font-weight: 900;
}

.audience-user-icon.has-actor-color,
.user-name-icon.has-actor-color,
.board-user-icon.has-actor-color {
  background: var(--actor-color);
  color: #ffffff;
}

.audience-user-title-group {
  display: grid;
  gap: 8px;
}

.audience-user-name {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vmin, 3.6rem);
  line-height: 0.95;
}

.audience-user-state {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vmin, 1.45rem);
  font-weight: 700;
}

.audience-user-state.is-reserved {
  visibility: hidden;
}

.audience-user-state.is-reserved::before {
  content: "\00a0";
}

.audience-user-stats {
  display: flex;
  gap: clamp(6px, 1vmin, 14px);
  justify-content: center;
}

.audience-stat-box {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vmin, 14px);
  padding: clamp(8px, 1.1vmin, 16px) clamp(10px, 1.6vmin, 24px);
  border: 2px solid #2563eb;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.audience-stat-box strong {
  font-size: clamp(1.55rem, 3.5vmin, 3rem);
  line-height: 1;
}

.audience-stat-box span {
  font-size: clamp(1.45rem, 3.2vmin, 2.8rem);
  line-height: 1;
}

.audience-product-interests {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vmin, 14px);
  justify-content: center;
  flex-shrink: 0;
  margin: clamp(6px, 1vmin, 16px) 0 clamp(8px, 2vmin, 32px);
}

.audience-product-interest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3rem, 7.2vmin, 6rem);
  height: clamp(3rem, 7.2vmin, 6rem);
  border-radius: 50%;
  border: 2px solid #2563eb;
  background: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.9rem, 4.4vmin, 3.6rem);
  line-height: 1;
}

.audience-interest-list {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: clamp(6px, 1.1vmin, 18px);
  align-content: stretch;
}

.interest-row {
  display: grid;
  grid-template-columns: clamp(42px, 5vmin, 72px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.2vmin, 18px);
  min-height: 0;
}

.interest-row--empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-size: 1.4rem;
  text-align: center;
}

.interest-emoji {
  font-size: clamp(2rem, 4.1vmin, 3.4rem);
  text-align: center;
}

.interest-bar {
  position: relative;
  height: clamp(34px, 5vh, 56px);
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: rgba(15, 67, 97, 0.18);
}

.interest-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, #155e75, #1d7ba8);
  z-index: 1;
}

.interest-bar-fill-pending {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(21, 94, 117, 0.55) 0px,
    rgba(21, 94, 117, 0.55) 6px,
    transparent 6px,
    transparent 12px
  );
}

.interest-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: clamp(72px, 8vmin, 120px);
  font-size: clamp(1.45rem, 3.3vmin, 2.7rem);
  font-weight: 900;
}

.audience-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.audience-product-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff3dd;
  font-size: 1.15rem;
  font-weight: 800;
}

.audience-product-emoji {
  font-size: 1.8rem;
}

.audience-lobby {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 2fr);
  gap: 22px;
  text-align: center;
}

.audience-lobby-title {
  align-self: end;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
}

.audience-lobby-subtitle {
  color: var(--muted);
  font-size: 1.6rem;
}

.audience-lobby-grid {
  align-self: start;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.audience-lobby-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.audience-lobby-card strong {
  font-size: 1.5rem;
  text-transform: capitalize;
}

.audience-lobby-card span {
  font-size: 2.6rem;
  font-weight: 900;
}

.audience-leaderboard-board {
  flex: 1;
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.audience-leaderboard-board .leaderboard {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audience-leaderboard-board .leaderboard-row {
  flex: 1;
  min-height: 0;
}

.audience-leaderboard-board .leaderboard-separator {
  flex: 0 0 3px;
  margin: 2px 0;
}

.audience-leaderboard-title {
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  font-weight: 900;
  text-align: center;
  line-height: 1;
}

.leaderboard-name {
  font-size: 1.25rem;
  min-width: 0;
}

.leaderboard-stat {
  font-size: 1.18rem;
  white-space: nowrap;
}

.leaderboard-stat--points {
  margin-left: 18px;
  color: var(--accent-dark);
}

.audience-leaderboard-board .leaderboard-row {
  gap: clamp(16px, 1.8vw, 28px);
  padding: clamp(12px, 1.4vh, 22px) clamp(20px, 2vw, 34px);
  font-size: clamp(1.5rem, 2vw, 2.4rem);
}

.audience-leaderboard-board .leaderboard-rank {
  font-size: clamp(2.4rem, 3.4vw, 4rem);
}

.audience-leaderboard-board .leaderboard-name {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
}

.audience-leaderboard-board .leaderboard-role {
  font-size: clamp(1.1rem, 1.5vw, 1.7rem);
}

.audience-leaderboard-board .leaderboard-stat {
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
}

.role-page .display-banner {
  margin-bottom: 10px;
}

.role-workspace {
  margin-top: 0;
}

.role-layout {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.65fr);
  gap: 14px;
}

.role-action-button {
  min-height: 70px;
  font-size: 1.35rem;
}

.role-layout--user {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  height: 100%;
  max-height: none;
  min-height: 0;
}

.role-layout--user .role-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.role-layout--user .role-sidebar .user-sidebar-section:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.role-layout--user .role-sidebar .user-sidebar-section:last-child .topic-progress-panel {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.role-layout--user .role-sidebar {
  padding-right: clamp(10px, 1.8vmin, 32px);
}

.role-layout--user .role-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  border-left: 3px solid #c8d0dc;
  padding-left: clamp(10px, 1.8vmin, 32px);
}

.user-sidebar {
  gap: clamp(6px, 1vmin, 14px);
  align-content: start;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vmin, 20px);
}

.user-name-icon {
  width: clamp(46px, 5.8vmin, 68px);
  height: clamp(46px, 5.8vmin, 68px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: clamp(1.1rem, 1.9vmin, 1.55rem);
  font-weight: 900;
  flex-shrink: 0;
}

.user-name-label {
  font-size: clamp(2rem, 3.5vmin, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
}

.user-sidebar .advertiser-summary-card {
  gap: clamp(6px, 1vmin, 14px);
  padding: clamp(10px, 1.4vmin, 22px);
}

.user-sidebar .user-summary-card {
  gap: clamp(10px, 1.4vmin, 18px);
  padding: clamp(14px, 1.7vmin, 24px);
}

.user-sidebar .user-summary-card.has-actor-color {
  border-color: var(--actor-border);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--actor-color) 32%, transparent), transparent 18rem),
    linear-gradient(180deg, color-mix(in srgb, var(--actor-color) 30%, #ffffff), color-mix(in srgb, var(--actor-color) 20%, #ffffff));
}

.user-summary-stat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vmin, 14px);
  margin-top: 0;
}

.user-summary-stat-box {
  min-height: clamp(82px, 9.5vmin, 126px);
  padding: clamp(10px, 1.25vmin, 18px);
  border-color: var(--actor-border, rgba(37, 99, 235, 0.18));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    color-mix(in srgb, var(--actor-color, #2563eb) 16%, #ffffff);
}

.user-summary-stat-box .operator-stat-amount {
  font-size: clamp(2rem, 3.5vmin, 3.35rem);
}

.user-summary-stat-box .operator-stat-icon {
  font-size: clamp(1.7rem, 3vmin, 2.85rem);
}

.user-summary-stat-box .operator-stat-label {
  font-size: clamp(0.8rem, 1.25vmin, 1.05rem);
}

.user-sidebar .advertiser-money-box {
  border: 1px solid var(--line);
  background: #ffffff;
}

.user-stat-row-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.user-stat-row-compact .advertiser-money-box {
  padding: 12px 14px;
  border-radius: 14px;
}

.user-stat-row-compact .advertiser-money-amount {
  font-size: 2rem;
}

.user-stat-row-compact .advertiser-money-icon {
  font-size: 1.6rem;
}

.user-sidebar-section {
  display: grid;
  gap: 8px;
  width: 100%;
}

.user-sidebar-heading {
  font-size: clamp(0.82rem, 1.45vmin, 1.3rem);
  font-weight: 900;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-sidebar-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: -2px;
}

.user-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vmin, 12px);
}

.user-interest-pill {
  min-width: clamp(58px, 6.8vmin, 86px);
  min-height: clamp(58px, 6.8vmin, 86px);
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.1vmin, 14px);
  border-radius: clamp(14px, 1.4vmin, 20px);
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: clamp(2.1rem, 4.8vmin, 3.8rem);
}

.user-sidebar .topic-progress-panel {
  padding: clamp(8px, 1.25vmin, 18px) clamp(10px, 1.4vmin, 20px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.topic-progress-reward {
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
  min-width: 3rem;
}

.user-sidebar .topic-progress-chart {
  --topic-progress-left-gutter: calc(clamp(2.1rem, 3.2vmin, 3.6rem) + clamp(10px, 1.1vmin, 16px));
  --topic-progress-right-gutter: calc(clamp(3rem, 3.8vmin, 4.2rem) + clamp(10px, 1.1vmin, 16px));
  width: 100%;
  position: relative;
  display: grid;
  gap: clamp(7px, 1.15vmin, 16px);
  padding-bottom: clamp(2.2rem, 3.5vmin, 3.2rem);
}

.user-sidebar .topic-progress-row {
  grid-template-columns: clamp(2.1rem, 3.2vmin, 3.6rem) minmax(0, 1fr) clamp(3rem, 3.8vmin, 4.2rem);
  column-gap: clamp(10px, 1.1vmin, 16px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.user-sidebar .topic-progress-icon {
  font-size: clamp(1.6rem, 3.4vmin, 3rem);
}

.user-sidebar .topic-progress-bar {
  height: clamp(18px, 3.2vmin, 36px);
  border-radius: 0;
  background: rgba(37, 99, 235, 0.16);
  overflow: hidden;
}

.user-sidebar .topic-progress-fill {
  border-radius: 0;
  opacity: 1;
}

.user-sidebar .topic-progress-fill-pending {
  border-radius: 0;
  background: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--accent) 55%, transparent) 0px,
    color-mix(in srgb, var(--accent) 55%, transparent) 5px,
    transparent 5px,
    transparent 10px
  );
}

.user-sidebar .topic-progress-reward {
  font-size: clamp(1rem, 2.2vmin, 1.75rem);
  font-weight: 900;
  justify-self: end;
}

.user-sidebar .topic-progress-guides {
  position: absolute;
  top: 0;
  left: var(--topic-progress-left-gutter);
  right: var(--topic-progress-right-gutter);
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.user-sidebar .topic-progress-guide {
  position: absolute;
  top: 0;
  bottom: clamp(1.65rem, 2.8vmin, 2.5rem);
  width: 2px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.34);
}

.user-sidebar .topic-progress-guide-label {
  position: absolute;
  left: 50%;
  bottom: calc(-1 * clamp(2rem, 3.2vmin, 2.9rem));
  transform: translateX(-50%);
  color: var(--accent-dark);
  font-size: clamp(0.8rem, 1.5vmin, 1.15rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.user-feed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vmin, 18px);
  padding: clamp(8px, 1.2vmin, 20px);
  flex: 1;
  min-height: 0;
  width: 100%;
  border: none;
  background: none;
  box-shadow: none;
}

.user-feed-stack {
  --feed-card-w: 100%;
  --feed-card-h: clamp(240px, 42vh, 440px);
  flex: 1;
  min-height: 0;
  width: min(58vh, 540px, 100%);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vmin, 22px);
  padding: clamp(14px, 2.2vmin, 28px);
  border: 2px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.user-feed-inner {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(6px, 1vmin, 14px);
  width: var(--feed-card-w, min(52vh, 480px, 100%));
  height: var(--feed-card-h, clamp(260px, 46vh, 460px));
  flex: 0 0 auto;
  min-height: 0;
  max-height: 100%;
  padding: clamp(10px, 1.6vmin, 26px);
  border: 2px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
}

/* Decorative peek + tail slots that frame the active card as a feed. */
.user-feed-peek,
.user-feed-slot-spacer,
.user-feed-tail {
  flex: 0 0 auto;
  width: var(--feed-card-w);
  height: var(--feed-card-h);
  min-height: 0;
}

.user-feed-peek {
  border: 2px dashed color-mix(in srgb, var(--line) 65%, #aab6c8);
  border-radius: 28px;
  background: repeating-linear-gradient(
    45deg,
    #f5f8fc,
    #f5f8fc 11px,
    #e8eef6 11px,
    #e8eef6 22px
  );
  opacity: 0.85;
}

.user-feed-slot-spacer {
  visibility: hidden;
}

.user-feed-tail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.user-feed-tail-badge {
  margin-top: clamp(6px, 1.4vmin, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vmin, 8px);
  padding: clamp(12px, 1.8vmin, 22px) clamp(18px, 2.6vmin, 30px);
  border: 2px dashed color-mix(in srgb, var(--line) 65%, #aab6c8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  text-align: center;
}

.user-feed-tail-icon {
  font-size: clamp(1.6rem, 3.2vh, 2.6rem);
  line-height: 1;
}

.user-feed-tail-text {
  font-size: clamp(1rem, 1.9vh, 1.45rem);
  font-weight: 800;
}

.user-feed-inner.user-feed-animate {
  animation: userFeedSlideIn 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.user-feed-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vmin, 12px);
}

.user-actions-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vmin, 8px);
  width: min(420px, 100%);
  margin-top: clamp(2px, 0.6vmin, 8px);
}

.user-actions-heading {
  font-size: clamp(1rem, 1.8vmin, 1.55rem);
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-action-counts-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(4px, 0.8vmin, 10px);
  width: 100%;
}

.user-action-counts-card .advertiser-money-box {
  min-width: 0;
  padding: clamp(7px, 1vmin, 14px) clamp(7px, 1vmin, 14px);
  border-radius: clamp(12px, 1.4vmin, 20px);
  gap: clamp(4px, 0.6vmin, 8px);
}

.user-action-counts-card .advertiser-money-amount {
  font-size: clamp(1.35rem, 2.55vmin, 2.3rem);
}

.user-action-counts-card .advertiser-money-icon {
  font-size: clamp(1.15rem, 2.2vmin, 2rem);
}

.user-feed-title {
  font-size: clamp(1.1rem, 2.4vmin, 2.2rem);
  font-weight: 900;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.user-content-square {
  height: 100%;
  min-height: 0;
  max-height: min(36vh, 100%);
  aspect-ratio: 1;
  width: auto;
  max-width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 8px;
  border-radius: 22px;
  background: #f7faff;
  overflow: hidden;
}

.user-feed-inner.has-actor-color {
  border-color: var(--actor-border);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--actor-color) 32%, transparent), transparent 18rem),
    linear-gradient(180deg, color-mix(in srgb, var(--actor-color) 28%, #ffffff), color-mix(in srgb, var(--actor-color) 20%, #ffffff));
}

.user-content-square.has-actor-color {
  background: #ffffff;
  border: 3px solid var(--actor-border);
}

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

.user-content-label {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.user-content-square .feed-emoji {
  font-size: clamp(3rem, 17vh, 12rem);
  line-height: 1.1;
  text-align: center;
  width: 100%;
}

.user-content-square--product .feed-emoji {
  font-size: clamp(2.4rem, 10vh, 6rem);
}

.user-shared-by {
  min-height: clamp(1rem, 2vmin, 1.8rem);
  text-align: center;
  font-size: clamp(0.9rem, 1.8vmin, 1.5rem);
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-content-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.35rem, 3vmin, 2.7rem);
  font-weight: 900;
}

.user-content-header > :first-child {
  justify-self: start;
}

.user-content-header > :nth-child(2) {
  justify-self: center;
}

.user-content-header > :last-child {
  justify-self: end;
}

.user-content-header .user-content-creator {
  font-size: clamp(0.95rem, 2vmin, 1.8rem);
  font-weight: 800;
  color: var(--muted);
}

.user-content-header--product {
  font-size: clamp(1.3rem, 2.8vmin, 2.6rem);
}

.user-action-row {
  display: flex;
  gap: clamp(8px, 1vmin, 16px);
  width: min(52vh, 480px, 100%);
}

.user-action-row .button {
  flex: 1;
  min-height: clamp(56px, 8.5vmin, 88px);
  border-radius: clamp(12px, 1.4vmin, 18px);
  font-size: clamp(1rem, 2vmin, 1.6rem);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 80ms ease, background 80ms ease, box-shadow 80ms ease, filter 80ms ease;
}

.user-action-row .button:hover:not(:disabled),
.user-action-row .button:focus-visible {
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22), 0 0 0 5px rgba(37, 99, 235, 0.14);
}

.user-action-row .button:active:not(:disabled),
.user-action-row .button.is-submitting {
  transform: scale(0.94);
  filter: brightness(0.98);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.24);
}

.user-primary-action,
.user-secondary-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.8vmin, 6px);
  min-height: clamp(64px, 10vmin, 124px);
  padding: clamp(8px, 1.2vmin, 16px) clamp(10px, 1.6vmin, 22px);
}

.role-page .user-action-row .button,
.role-page .user-action-row .button.secondary {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
}

.role-page .user-action-row .button:hover:not(:disabled),
.role-page .user-action-row .button.secondary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.user-action-label {
  font-size: clamp(0.95rem, 1.8vmin, 1.5rem);
  font-weight: 800;
}

.user-action-reward {
  font-size: clamp(1.1rem, 2.2vmin, 1.8rem);
  font-weight: 900;
}

.user-share-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.user-share-prompt {
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 40px));
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.user-share-prompt strong {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.user-share-option {
  min-height: 52px;
  border-radius: 14px;
  font-size: 1.05rem;
  transition: transform 80ms ease, box-shadow 80ms ease, background 80ms ease;
  cursor: pointer;
  touch-action: manipulation;
}

.user-share-option:hover:not(:disabled),
.user-share-option:focus-visible {
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.18), 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.user-share-option:active:not(:disabled),
.user-share-option.is-submitting {
  transform: scale(0.96);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.role-page[data-role-mode="user"] .display-banner {
  display: none;
}

.creator-topic-overview {
  min-height: 0;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.role-page[data-actor-key="creator-topic-overview"] .display-shell {
  width: calc(100vw - 12px);
  padding: 6px 0;
}

.role-page[data-actor-key="creator-topic-overview"] .display-panel {
  height: calc(100dvh - 8px);
  min-height: calc(100dvh - 8px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 16px;
  background: #ffffff;
}

.role-page[data-actor-key="creator-topic-overview"] .role-workspace {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  margin-top: 0;
}

.role-page[data-actor-key="creator-topic-overview"] .display-banner {
  margin-bottom: 0;
}

.creator-topic-overview-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--accent-dark);
  text-align: center;
}

.creator-topic-overview-header strong {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.creator-topic-overview-header span {
  color: var(--muted);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 800;
}

.creator-topic-overview-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 16px;
  overflow: hidden;
  width: 100%;
  background: transparent;
}

.creator-topic-user-card {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 22px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: none;
}

.creator-topic-user-card.has-actor-color {
  border-color: var(--actor-border);
  background: var(--actor-tint);
}

.creator-topic-user-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.creator-topic-user-title strong {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
}

.creator-topic-user-title span:last-child {
  color: var(--muted);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 900;
  white-space: nowrap;
}

.creator-topic-user-card .topic-progress-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.creator-topic-user-card .topic-progress-chart {
  --topic-progress-left-gutter: calc(4.2rem + 42px);
  --topic-progress-right-gutter: calc(5.4rem + 18px);
  position: relative;
  min-height: 0;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 10px;
  padding-bottom: 3rem;
}

.creator-topic-user-card .topic-progress-row {
  grid-template-columns: 4.2rem minmax(0, 1fr) 5.4rem;
  column-gap: 42px;
  row-gap: 10px;
  align-items: center;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.creator-topic-user-card .topic-progress-icon {
  font-size: clamp(3.6rem, 5.2vw, 5.2rem);
}

.creator-topic-user-card .topic-progress-reward {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  font-weight: 900;
  justify-self: end;
  white-space: nowrap;
}

.creator-topic-user-card .topic-progress-bar {
  height: clamp(40px, 6vh, 68px);
  border-radius: 0;
  background: rgba(37, 99, 235, 0.06);
  overflow: hidden;
}

.creator-topic-user-card .topic-progress-fill,
.creator-topic-user-card .topic-progress-fill-pending {
  border-radius: 0;
}

.creator-topic-user-card .topic-progress-guides {
  position: absolute;
  top: 0;
  right: var(--topic-progress-right-gutter);
  bottom: 0;
  left: var(--topic-progress-left-gutter);
  pointer-events: none;
  z-index: 2;
}

.creator-topic-user-card .topic-progress-guide {
  position: absolute;
  top: 0;
  bottom: 2.6rem;
  width: 3px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.34);
}

.creator-topic-user-card .topic-progress-guide-label {
  position: absolute;
  left: 50%;
  bottom: -2.7rem;
  transform: translateX(-50%);
  color: var(--accent-dark);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.role-page[data-role-mode="user"] {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.role-page[data-role-mode="user"] .display-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.role-page[data-role-mode="user"][data-actor-key="creator-topic-overview"] .display-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.role-page[data-role-mode="user"] .display-panel {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: clamp(8px, 1.45vmin, 24px);
  border-radius: 0;
  overflow: hidden;
}

.role-page[data-role-mode="user"][data-actor-key="creator-topic-overview"] .display-panel {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: clamp(6px, 1.2vmin, 20px);
  border-radius: 0;
  overflow: hidden;
}

.role-page[data-role-mode="user"] .role-workspace {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.role-page[data-role-mode="user"] .role-layout--user {
  width: 100%;
  overflow: hidden;
}

.role-page[data-role-mode="user"] .role-sidebar {
  min-width: 0;
  overflow: hidden;
}

.role-page[data-role-mode="user"] .role-main {
  min-width: 0;
  overflow: hidden;
}

.role-page[data-role-mode="advertiser"] {
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.18), transparent 22rem),
    linear-gradient(180deg, #fffaf1 0%, #f7fbff 100%);
}

.role-page[data-role-mode="advertiser"][data-player-index="1"] {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.16), transparent 22rem),
    linear-gradient(180deg, #f5faff 0%, #fcfeff 100%);
}

.role-page[data-role-mode="advertiser"][data-player-index="2"] {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.16), transparent 22rem),
    linear-gradient(180deg, #fff8f2 0%, #fffdf9 100%);
}

.role-page[data-role-mode="advertiser"][data-player-index="3"] {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.22), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.16), transparent 22rem),
    linear-gradient(180deg, #f4fff8 0%, #fcfffd 100%);
}

.role-page[data-role-mode="user"] {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 22rem),
    linear-gradient(180deg, #fafcff 0%, #f5fffb 100%);
}

.turn-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  gap: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 235, 0.98), rgba(255, 244, 214, 0.98));
  text-align: center;
}

.turn-overlay.has-actor-color {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--actor-color) 22%, #ffffff),
    color-mix(in srgb, var(--actor-color) 38%, #ffffff)
  );
}

.turn-overlay.has-actor-color .turn-overlay-kicker {
  color: var(--actor-border);
}

.turn-overlay.has-actor-color .turn-overlay-hint {
  color: color-mix(in srgb, var(--actor-color) 70%, #000000);
}

.turn-overlay-kicker {
  margin: 0;
  color: #b45309;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.turn-overlay-name {
  margin: 0;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.92;
}

.turn-overlay-hint {
  margin: 0;
  color: #92400e;
  font-size: 1.4rem;
  font-weight: 700;
}

.role-layout--advertiser {
  grid-template-columns: max(360px, 30vw) minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
  gap: clamp(8px, 1vmin, 14px);
}

.role-page[data-role-mode="advertiser"] .display-title {
  font-size: clamp(3rem, 5vw, 4.8rem);
}

.role-page[data-role-mode="advertiser"] .display-banner,
.role-page[data-role-mode="operator"] .display-banner {
  display: none;
}

.role-page[data-role-mode="advertiser"] {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.role-page[data-role-mode="advertiser"] .display-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.role-page[data-role-mode="advertiser"] .display-panel {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: clamp(6px, 1.1vmin, 18px);
  border-radius: 0;
  overflow: hidden;
}

.role-page[data-role-mode="advertiser"] .role-workspace {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.role-page[data-role-mode="advertiser"] .role-sidebar,
.role-page[data-role-mode="advertiser"] .role-main {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.role-page[data-role-mode="advertiser"] .role-main {
  display: flex;
  flex-direction: column;
}

.role-page[data-role-mode="advertiser"] .role-main > .audience-card {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1.1vmin, 24px);
}

.advertiser-sidebar {
  gap: clamp(8px, 1vmin, 12px);
  grid-template-rows: auto minmax(0, 1fr);
}

.advertiser-summary-card {
  display: grid;
  align-content: start;
  gap: clamp(8px, 1vmin, 14px);
  padding: clamp(12px, 1.3vmin, 18px) clamp(16px, 1.7vmin, 24px);
}

.role-page[data-role-mode="advertiser"] .advertiser-sidebar > .audience-card:last-child {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vmin, 14px);
  overflow: hidden;
}

.role-page[data-role-mode="advertiser"] .advertiser-sidebar > .audience-card:last-child .advertiser-product-list {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
}

.role-page[data-role-mode="advertiser"] .advertiser-sidebar > .audience-card.has-actor-color {
  border-color: var(--actor-border);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--actor-color) 32%, transparent), transparent 18rem),
    linear-gradient(180deg, color-mix(in srgb, var(--actor-color) 30%, #ffffff), color-mix(in srgb, var(--actor-color) 20%, #ffffff));
}

.advertiser-summary-name {
  font-size: clamp(2.2rem, 2.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.advertiser-summary-stat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.role-page[data-role-mode="advertiser"] .advertiser-summary-card.has-actor-color .operator-stat-box {
  border-color: var(--actor-border);
  background: rgba(255, 255, 255, 0.82);
}

.role-page[data-role-mode="advertiser"] .audience-card-title strong {
  font-size: clamp(1.8rem, 2.35vw, 2.9rem);
  line-height: 1.05;
}

.advertiser-money-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 1.35vmin, 18px) clamp(14px, 1.45vmin, 20px);
  border-radius: clamp(14px, 1.4vmin, 20px);
  background: linear-gradient(135deg, #fff3c4, #ffe28a);
}

.role-page[data-role-mode="advertiser"] .advertiser-summary-card.has-actor-color .advertiser-money-box {
  border: 2px solid var(--actor-border);
  background: rgba(255, 255, 255, 0.82);
}

.advertiser-products-box {
  background: linear-gradient(135deg, #e7f2ff, #d7ebff);
  margin-top: 2px;
}

.advertiser-money-amount {
  font-size: clamp(2.2rem, 3.2vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
}

.advertiser-money-icon {
  font-size: clamp(1.8rem, 2.7vw, 2.8rem);
}

.advertiser-product-total {
  color: var(--ink);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.advertiser-product-total-label {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 900;
}

.advertiser-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 0.9vmin, 12px);
}

.advertiser-product-column {
  display: grid;
  gap: clamp(8px, 0.9vmin, 12px);
  align-content: start;
}

.advertiser-product-card {
  position: relative;
  display: grid;
  gap: clamp(5px, 0.7vmin, 8px);
  min-height: clamp(124px, 15vh, 168px);
  padding: clamp(8px, 1vmin, 12px) clamp(10px, 1.1vmin, 14px);
  border: 2px solid rgba(37, 99, 235, 0.16);
  border-radius: 20px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
  overflow: hidden;
}

.advertiser-product-card-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(5px, 0.7vmin, 8px);
}

.advertiser-product-card.pile-2 {
  box-shadow: 3px 3px 0 rgba(37, 99, 235, 0.08);
}

.advertiser-product-card.pile-3 {
  box-shadow:
    3px 3px 0 rgba(37, 99, 235, 0.08),
    6px 6px 0 rgba(37, 99, 235, 0.05);
}

.advertiser-product-card.pile-4 {
  box-shadow:
    3px 3px 0 rgba(37, 99, 235, 0.08),
    6px 6px 0 rgba(37, 99, 235, 0.06),
    9px 9px 0 rgba(37, 99, 235, 0.04);
}

.advertiser-product-card.is-selected {
  border-color: #2563eb;
  background: #ecf5ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.advertiser-product-card:hover,
.advertiser-product-card:focus-visible {
  border-color: #2563eb;
  background: #f6faff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.advertiser-product-card:active,
.advertiser-product-card:focus-visible,
.role-action-button:active,
.vote-submit-button:active,
.content-choice:active {
  transform: scale(0.985);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.feed-board-slot:active,
.feed-board-slot:focus-visible {
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.advertiser-product-card:disabled {
  opacity: 0.45;
}

.advertiser-product-top,
.advertiser-product-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.advertiser-product-pile {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.55vmin, 6px);
  flex-wrap: nowrap;
  min-width: clamp(70px, 6vw, 96px);
  min-height: clamp(42px, 4.6vmin, 56px);
}

.advertiser-product-pile-card {
  width: clamp(42px, 4.6vmin, 56px);
  height: clamp(42px, 4.6vmin, 56px);
  flex: 0 0 clamp(42px, 4.6vmin, 56px);
  display: grid;
  place-items: center;
  border: 2px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: #ffffff;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

.advertiser-product-quantity {
  color: #344054;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-weight: 900;
}

.advertiser-product-price {
  font-size: clamp(1.25rem, 1.9vw, 1.95rem);
  font-weight: 900;
}

.advertiser-product-bonus {
  color: #be123c;
  font-size: clamp(1.15rem, 1.8vw, 1.8rem);
  font-weight: 900;
}

.feed-board {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.9vmin, 14px);
  align-items: stretch;
}

.feed-board-column {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(8px, 1vmin, 14px);
  min-height: 0;
  padding: clamp(8px, 1vmin, 10px);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.feed-board-column.has-actor-color {
  border-color: var(--actor-border);
  background: linear-gradient(180deg, #ffffff, var(--actor-tint));
}

.feed-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-user-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.1vmin, 16px);
  width: 100%;
}

.board-user-icon {
  width: clamp(48px, 5.2vmin, 72px);
  height: clamp(48px, 5.2vmin, 72px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #195b7b;
  color: #ffffff;
  font-weight: 900;
}

.board-user-name {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  font-weight: 900;
}

.board-user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.board-user-money {
  color: #b45309;
  font-size: clamp(1.45rem, 1.95vw, 2.35rem);
  font-weight: 900;
  white-space: nowrap;
  padding: clamp(5px, 0.7vmin, 8px) clamp(10px, 1.1vmin, 16px);
  border: clamp(1px, 0.18vmin, 2px) solid rgba(180, 83, 9, 0.5);
  border-radius: clamp(10px, 1vmin, 14px);
  background: #ffffff;
}

.feed-board-interests {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1vmin, 14px);
  justify-content: center;
}

.feed-board-interests--empty {
  min-height: clamp(64px, 7.2vmin, 104px);
}

.feed-board-interest {
  width: clamp(64px, 7.2vmin, 104px);
  height: clamp(64px, 7.2vmin, 104px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #2563eb;
  background: #ffffff;
  font-size: clamp(2.6rem, 5vmin, 4.4rem);
}

.feed-board-slot-list {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(11, minmax(0, 1fr));
  gap: clamp(8px, 1.1vmin, 18px);
}

.feed-board-slot {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2px;
  min-height: 0;
  height: min(100%, clamp(104px, 13.5vh, 176px));
  align-self: center;
  container-type: size;
  overflow: hidden;
  padding: clamp(5px, 0.75vmin, 8px);
  border: 2px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  cursor: default;
  touch-action: manipulation;
  transition: transform 80ms ease, background 80ms ease, border-color 80ms ease, box-shadow 80ms ease, filter 80ms ease;
}

.feed-board-slot-list > :nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.feed-board-slot-list > :nth-child(2) {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.feed-board-slot-list > :nth-child(3) {
  grid-column: 1;
  grid-row: 3 / span 2;
}

.feed-board-slot-list > :nth-child(4) {
  grid-column: 2;
  grid-row: 4 / span 2;
}

.feed-board-slot-list > :nth-child(5) {
  grid-column: 1;
  grid-row: 5 / span 2;
}

.feed-board-slot-list > :nth-child(6) {
  grid-column: 2;
  grid-row: 6 / span 2;
}

.feed-board-slot-list > :nth-child(7) {
  grid-column: 1;
  grid-row: 7 / span 2;
}

.feed-board-slot-list > :nth-child(8) {
  grid-column: 2;
  grid-row: 8 / span 2;
}

.feed-board-slot-list > :nth-child(9) {
  grid-column: 1;
  grid-row: 9 / span 2;
}

.feed-board-slot-list > :nth-child(10) {
  grid-column: 2;
  grid-row: 10 / span 2;
}

.feed-board-slot.is-available {
  border-color: #22c55e;
  background: #f3fff6;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.12);
}

.feed-board-slot.is-previewable:hover,
.feed-board-slot.is-previewable:focus-visible {
  border-color: #16a34a;
  background: #e8fff0;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.18), 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.feed-board-slot.is-previewable:active,
.feed-board-slot.is-submitting {
  border-color: #15803d;
  filter: brightness(0.98);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.26);
}

.feed-board-slot.is-occupied {
  background: #eef2f7;
}

.feed-board-slot.has-actor-color.is-occupied {
  border-color: var(--actor-border);
  background: var(--actor-tint);
}

.advertiser-product-card.has-actor-color {
  border-color: rgba(37, 99, 235, 0.16);
  background: #ffffff;
}

.advertiser-product-card.has-actor-color.is-selected {
  border-color: #2563eb;
  background: #ecf5ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.advertiser-product-card.has-actor-color:hover,
.advertiser-product-card.has-actor-color:focus-visible {
  border-color: #2563eb;
  background: #f6faff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.feed-board-slot.is-blocked {
  background: #f4f4f5;
}

.feed-board-slot-top,
.feed-board-slot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(1.25rem, 1.8vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
}

.feed-board-slot-top span:last-child {
  color: #b45309;
  font-size: clamp(1.45rem, 2.15vw, 2.5rem);
  font-weight: 900;
}

.feed-board-slot-middle {
  min-height: 34px;
  display: grid;
  place-items: center;
  font-size: clamp(1.9rem, 2.9vw, 3.2rem);
  font-weight: 900;
  transition: opacity 120ms ease;
}

.feed-board-slot-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: clamp(6px, 0.8vmin, 12px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 120ms ease;
}

.feed-board-slot-preview-emoji {
  font-size: clamp(2.4rem, 4.2vmin, 4.2rem);
}

.feed-board-slot-preview-label {
  color: #166534;
  font-size: clamp(1.45rem, 2.2vmin, 2.4rem);
  font-weight: 900;
}

.feed-board-slot.is-previewable:hover .feed-board-slot-preview,
.feed-board-slot.is-previewable:focus-visible .feed-board-slot-preview {
  opacity: 1;
}

.feed-board-slot.is-previewable:hover .feed-board-slot-middle,
.feed-board-slot.is-previewable:focus-visible .feed-board-slot-middle {
  opacity: 0.15;
}

.advertiser-pass-button {
  width: 100%;
  min-height: clamp(48px, 5.8vmin, 68px);
  margin-top: clamp(10px, 1.4vmin, 18px);
  font-size: clamp(1rem, 1.5vw, 1.55rem);
  font-weight: 800;
  border: none;
  border-radius: 18px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 80ms ease, background 80ms ease, box-shadow 80ms ease, filter 80ms ease;
}

.advertiser-pass-button:hover:not(:disabled),
.advertiser-pass-button:focus-visible {
  background: var(--accent-dark);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
}

.advertiser-pass-button:active:not(:disabled) {
  transform: scale(0.98);
}

.advertiser-pass-button.is-submitting {
  transform: scale(0.96);
  filter: brightness(0.98);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.24);
}

.audience-card-title--tight {
  margin-bottom: 14px;
}

.audience-card-title--tight strong {
  font-size: 2rem;
}

.role-page[data-role-mode="operator"] .display-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.role-page[data-role-mode="operator"] .display-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: clamp(6px, 1.1vmin, 18px);
  border-radius: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.role-page[data-role-mode="operator"] .role-workspace {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.operator-master-layout {
  grid-template-columns: max(360px, 30vw) minmax(0, 1fr);
  flex: 1;
  height: 100%;
  min-height: 0;
  align-content: stretch;
}

.operator-master-layout .audience-card-title strong {
  font-size: clamp(1.6rem, 1.7vw, 3rem);
}

.operator-master-layout .feed-board-slot-middle {
  min-height: 0;
  font-size: clamp(1rem, 34cqh, 3.8rem);
}

.operator-master-layout .feed-board-slot-top,
.operator-master-layout .feed-board-slot-bottom {
  font-size: clamp(0.7rem, 15cqh, 2.3rem);
}

.operator-master-layout .feed-board-slot-top span:last-child {
  font-size: clamp(0.85rem, 20cqh, 2.5rem);
}

.operator-master-layout .feed-board-slot-preview-emoji {
  font-size: clamp(1.4rem, 40cqh, 4.2rem);
}

.operator-master-layout .feed-board-slot-preview-label {
  font-size: clamp(0.85rem, 18cqh, 2.4rem);
}

.operator-master-layout .feed-board-column {
  grid-template-rows: auto minmax(0, 1fr);
}

.operator-master-layout .board-user-name {
  font-size: clamp(1.5rem, 1.55vw, 2.6rem);
}

.operator-master-layout .board-user-marker {
  justify-content: center;
}

.operator-master-layout .feed-board-slot-flames {
  color: #b45309;
}

.operator-master-layout .advertiser-pass-button {
  padding-block: clamp(12px, 1.6vmin, 22px);
  font-size: clamp(1.4rem, 1.45vw, 2.4rem);
}

.operator-master-layout .role-sidebar {
  min-height: 0;
  overflow: hidden;
}

.operator-master-layout .role-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.operator-master-layout .role-main > .audience-card {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1.1vmin, 24px);
}

.operator-master-layout .feed-board {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.operator-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.operator-identity-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.operator-identity-name {
  font-size: clamp(1.7rem, 1.9vw, 3.2rem);
  font-weight: 900;
}

.operator-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.operator-stat-box {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 14px 8px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.operator-stat-amount {
  font-size: clamp(1.9rem, 2.1vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.operator-stat-icon {
  font-size: clamp(1.4rem, 1.5vw, 2.6rem);
  line-height: 1;
}

.operator-stat-label {
  font-size: clamp(0.82rem, 0.8vw, 1.4rem);
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.operator-pool-card {
  position: relative;
  width: 100%;
  padding: 16px;
  border: 2px solid rgba(37, 99, 235, 0.16);
  border-radius: 22px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.operator-pool-card.has-actor-color {
  border-color: var(--actor-border);
  background: var(--actor-tint);
}

.operator-pool-card.pile-2 {
  box-shadow: 4px 4px 0 rgba(37, 99, 235, 0.08), 0 10px 28px rgba(15, 23, 42, 0.08);
}

.operator-pool-card.pile-3 {
  box-shadow:
    4px 4px 0 rgba(37, 99, 235, 0.08),
    8px 8px 0 rgba(37, 99, 235, 0.05),
    0 10px 28px rgba(15, 23, 42, 0.08);
}

.operator-pool-card.pile-4 {
  box-shadow:
    4px 4px 0 rgba(37, 99, 235, 0.08),
    8px 8px 0 rgba(37, 99, 235, 0.05),
    12px 12px 0 rgba(37, 99, 235, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.08);
}

.operator-pool-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.operator-pool-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.operator-pool-card-creator,
.operator-pool-card-flames {
  font-size: clamp(1.6rem, 1.7vw, 3rem);
  font-weight: 900;
}

.operator-pool-card-flames {
  text-align: right;
  white-space: nowrap;
}

.operator-pool-card-square {
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #f7faff;
  overflow: hidden;
}

.operator-pool-card-icon {
  font-size: clamp(4rem, 12vh, 8rem);
  line-height: 1;
}

.creator-page .display-banner {
  gap: 2px;
  margin-bottom: 8px;
}

.creator-page .display-phase {
  display: none;
}

.creator-page {
  cursor: default;
  overflow-y: hidden;
  overflow-x: hidden;
}

.creator-shell {
  min-height: calc(100dvh - 36px);
}

.creator-page .display-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  height: calc(100dvh - 36px);
  overflow-y: hidden;
}

.creator-page.reward-levels-open .display-panel,
.creator-page:has(.topic-progress-details[open]) .display-panel {
  overflow-y: auto;
}

.creator-vote-workspace {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 0;
  margin-top: 0;
}

.display-title--compact {
  font-size: clamp(2rem, 5vw, 3rem);
}

.creator-page.has-actor-color {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--actor-color) 34%, transparent), transparent 24rem),
    linear-gradient(180deg, color-mix(in srgb, var(--actor-color) 20%, #ffffff) 0%, color-mix(in srgb, var(--actor-color) 12%, #ffffff) 100%);
}

.display-title.has-actor-color {
  color: var(--actor-color);
}

.creator-instruction {
  width: 100%;
  max-width: none;
  text-align: center;
}

.creator-prompt-card {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.creator-pair {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  max-width: 540px;
  margin-inline: auto;
  width: 100%;
  align-items: center;
}

.creator-pair .content-choice {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
}

.creator-pair .content-choice-body {
  width: 100%;
  max-width: 220px;
}

.creator-page .content-choice {
  min-height: 0;
  grid-template-rows: auto 1fr;
  gap: 6px;
  padding: 12px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.creator-page .content-choice:not(:disabled),
.creator-page .content-choice:not(:disabled) * {
  cursor: pointer;
}

.creator-page .content-choice:not(:disabled):hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.18);
  background: #f0f5ff;
}

.creator-page .content-choice.has-actor-color:not(:disabled):hover {
  border-color: var(--actor-color);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--actor-color) 24%, transparent);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--actor-color) 30%, transparent), transparent 16rem),
    linear-gradient(180deg, color-mix(in srgb, var(--actor-color) 22%, #ffffff), color-mix(in srgb, var(--actor-color) 12%, #ffffff));
}

.creator-page .content-choice:not(:disabled):active {
  transform: scale(0.96);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  background: #dbeafe;
}

.creator-page .content-choice.has-actor-color:not(:disabled):active {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--actor-color) 28%, transparent);
  background: color-mix(in srgb, var(--actor-color) 24%, #ffffff);
}

.creator-page .content-choice.is-submitting {
  border-color: var(--accent);
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
  transform: scale(0.95);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.22);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  pointer-events: none;
}

.creator-page .content-choice.is-locked {
  opacity: 0.25;
  transform: scale(0.96);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.content-choice-body {
  min-height: 0;
  width: min(240px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
}

.content-choice-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(8px, 1.2vmin, 16px);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 900;
}

.content-choice-header > :first-child {
  justify-self: start;
}

.content-choice-header > :last-child {
  justify-self: end;
}

.content-choice-topic {
  font-size: clamp(5.5rem, 18vmin, 12rem);
  line-height: 1;
}

.content-choice-flames {
  justify-self: start;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.content-choice-label {
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
}

.content-choice-stock {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
}

.content-choice-rewards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.content-choice-rewards-users {
  display: grid;
  grid-template-columns: repeat(var(--user-count, 3), 1fr);
  gap: 4px;
  justify-content: center;
}

.content-choice-reward-row {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.content-choice-reward-row.reward-creator {
  background: rgba(249, 115, 22, 0.1);
}

.creator-tap-hint {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-dark);
  animation: creatorHintPulse 2s ease-in-out infinite;
}

@keyframes creatorHintPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.creator-vs-label {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 0;
  line-height: 1;
  pointer-events: none;
  cursor: default;
}

.topic-progress-details {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  margin-top: 10px;
  padding-bottom: 16px;
}

.topic-progress-summary {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.06);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-dark);
  cursor: pointer;
  user-select: none;
}

.topic-progress-summary,
.topic-progress-summary * {
  cursor: pointer;
}

.topic-progress-summary::after {
  content: " ▾";
}

.topic-progress-summary:hover {
  background: rgba(37, 99, 235, 0.12);
}

.topic-progress-details[open] .topic-progress-summary {
  margin-bottom: 10px;
}

.topic-progress-details[open] .topic-progress-summary::after {
  content: " ▴";
}

.creator-page .topic-progress-legend {
  display: none;
}

.topic-progress-panel {
  display: grid;
  gap: 8px;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.topic-progress-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 8px;
}

.topic-progress-icon {
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
}

.topic-progress-details .topic-progress-row {
  grid-template-columns: 2.4rem 1fr auto;
  gap: 12px;
}

.topic-progress-details .topic-progress-icon {
  font-size: 1.9rem;
}

.topic-progress-count {
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  min-width: 1.5rem;
  text-align: right;
}

.topic-progress-details .topic-progress-count {
  font-size: 1.4rem;
  min-width: 2.4rem;
}

.topic-progress-bar {
  position: relative;
  height: 18px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.06);
  overflow: hidden;
}

.topic-progress-details .topic-progress-bar,
.topic-progress-details .topic-progress-fill,
.topic-progress-details .topic-progress-fill-pending {
  border-radius: 0;
}

.topic-progress-details .topic-progress-bar {
  background: rgba(37, 99, 235, 0.16);
}

.topic-progress-fill-pending {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 9px;
  background: repeating-linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.18) 0px,
    rgba(37, 99, 235, 0.18) 6px,
    transparent 6px,
    transparent 10px
  );
  transition: width 300ms ease;
  z-index: 0;
}

.topic-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 9px;
  background: var(--accent);
  opacity: 0.7;
  transition: width 300ms ease;
  z-index: 1;
}

.topic-progress-tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(37, 99, 235, 0.25);
  z-index: 2;
}

.topic-progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  padding-top: 4px;
}

.topic-progress-legend-item {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.creator-page .vote-summary-title {
  margin: 0 0 clamp(10px, 1.4vmin, 18px);
  color: var(--accent-dark);
  font-size: clamp(2.6rem, 6vmin, 5rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.vote-bar {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.vote-bar-emoji {
  font-size: 2rem;
}

.vote-bar-label,
.vote-bar-count {
  font-size: 1.25rem;
  font-weight: 900;
}

.vote-submit-button {
  min-height: 62px;
  font-size: 1.2rem;
}

@keyframes audiencePulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .display-shell {
    width: min(100% - 10px, 1880px);
    padding: 8px 0;
  }

  .master-page .display-shell {
    width: min(100% - 12px, 1280px);
  }

  .master-page .display-panel {
    min-height: calc(100dvh - 16px);
    padding: 18px;
  }

  .master-top-bar,
  .master-top-bar-right {
    flex-wrap: wrap;
  }

  .master-dashboard,
  .master-phase-grid {
    grid-template-columns: 1fr;
  }

  .master-dashboard-side {
    order: -1;
  }

  .master-role-form,
  .profile-editor,
  .policy-workspace {
    grid-template-columns: 1fr;
  }

  .creator-link-list {
    grid-template-columns: 1fr;
  }

  .creator-link-card {
    align-items: stretch;
    flex-direction: column;
  }

  .shell-header {
    display: block;
  }

  h1 {
    font-size: 2.25rem;
  }

  .panel {
    padding: 18px;
  }

  .display-panel {
    min-height: calc(100dvh - 16px);
    height: calc(100dvh - 16px);
    padding: 18px;
    border-radius: 18px;
  }

  .creator-shell {
    min-height: calc(100dvh - 16px);
  }

  .feed-card-body {
    font-size: 2.6rem;
  }

  .content-choice-body {
    font-size: 5rem;
  }

  .audience-meta,
  .leaderboard-row,
  .role-layout {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .audience-card-grid {
    grid-template-columns: 1fr;
  }

  .audience-wall,
  .audience-wall.audience-wall--two-up,
  .role-layout {
    grid-template-columns: 1fr;
  }

  .audience-user-card {
    min-height: auto;
    padding: 20px;
  }

  .audience-user-header {
    display: grid;
  }

  .audience-user-icon {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }

  .interest-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .interest-bar {
    height: 26px;
  }

  .interest-meta {
    min-width: auto;
    font-size: 1.5rem;
  }

  .feed-board-slot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .advertiser-product-list {
    grid-template-columns: 1fr;
  }

  .role-page[data-role-mode="advertiser"] .display-title {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }

  .role-layout--advertiser {
    grid-template-columns: 1fr;
  }

  .operator-master-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .content-choice {
    min-height: min(38vh, 300px);
  }

  .content-choice-label {
    font-size: 2rem;
  }

  .creator-pair {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  .policy-row {
    grid-template-columns: 1fr;
  }

  .profile-row,
  .creator-link-card {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

html:has(body.audience-page),
html:has(body.role-page[data-role-mode="user"]) {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.audience-page,
.role-page[data-role-mode="user"] {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden;
}

.audience-page .display-shell,
.role-page[data-role-mode="user"] .display-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.audience-page .display-panel,
.role-page[data-role-mode="user"] .display-panel {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
}

.audience-page .display-panel {
  padding: clamp(8px, 1.45vmin, 28px);
}

.role-page[data-role-mode="user"] .display-panel {
  padding: clamp(6px, 1.2vmin, 20px);
}

.audience-page .audience-content,
.role-page[data-role-mode="user"] .role-workspace {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.audience-page .audience-wall {
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.audience-page .audience-user-card,
.audience-page .audience-lobby,
.audience-page .audience-leaderboard-board {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.role-page[data-role-mode="user"] .role-layout--user {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  grid-template-columns: max(360px, 40vw) minmax(0, 1fr);
  overflow: hidden;
}

.role-page[data-role-mode="user"] .role-sidebar,
.role-page[data-role-mode="user"] .role-main,
.role-page[data-role-mode="user"] .user-feed-card,
.role-page[data-role-mode="user"] .user-feed-inner {
  min-height: 0;
  overflow: hidden;
}
