/* Direction: Ideaflow — charcoal control room, condensed caps, one electric lime */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0f1110;
  --surface: #171a18;
  --surface-2: #1e2220;
  --border: #2c312e;
  --border-strong: #575858;
  --ink: #f3f5f1;
  --muted: #959d96;
  --accent: #c7f53f;
  --accent-hover: #cff75c;
  --accent-ink: #0f1110;
  --accent-text: #cbf85c;
  --accent-strong: #c7f53f;
  --accent-soft: #37431a;
  --accent-border: #627825;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #10291a;
  --success-strong: #499c68;
  --warning: #f3bf4d;
  --warning-ink: #ffffff;
  --warning-soft: #41371d;
  --warning-strong: #f3bf4d;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #341313;
  --danger-strong: #d16969;
  --chart-1: #c7f53f;
  --chart-2: #2fd9c6;
  --chart-3: #80c6fc;
  --chart-4: #ec9afb;
  --chart-5: #fea09e;
  --chart-6: #f1b121;

  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.01em;
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --card-pad: 1.5rem;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dddede;
  --border-strong: #b7b8b7;
  --ink: #0f1110;
  --muted: #666767;
  --accent: #a8cf35;
  --accent-hover: #8fb02d;
  --accent-ink: #0f1110;
  --accent-text: #5e731d;
  --accent-strong: #5e731d;
  --accent-soft: #f3f8e3;
  --accent-border: #d8e9a4;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #f3bf4d;
  --warning-ink: #0f1110;
  --warning-soft: #fef7ea;
  --warning-strong: #886b2b;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #81a020;
  --chart-2: #1ea192;
  --chart-3: #0581c5;
  --chart-4: #ab7fe4;
  --chart-5: #bc496e;
  --chart-6: #d17a00;
}

/* Ideaflow's own screen furniture: the ranked board, the vote pop, the grid band. */

main[data-page] {
  animation: ideaflow-page 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@keyframes ideaflow-page {
  from {
    opacity: 0.55;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* the card that just received a vote re-enters with a small bounce */
.vote-pop {
  animation: ideaflow-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ideaflow-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.035);
  }
  70% {
    transform: scale(0.994);
  }
  100% {
    transform: scale(1);
  }
}

.vote-pop .vote-count {
  animation: ideaflow-count 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ideaflow-count {
  0% {
    transform: scale(0.82);
  }
  45% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

/* a just-posted idea: short lime glow where it landed in the ranking */
.idea-landed {
  animation: ideaflow-landed 2.4s ease-out both;
}

@keyframes ideaflow-landed {
  0%,
  35% {
    border-color: var(--accent);
    background-color: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent), 0 0 44px -6px var(--accent);
  }
  100% {
    border-color: var(--border);
    background-color: var(--surface);
    box-shadow: 0 0 0 1px transparent, 0 0 0 0 transparent;
  }
}

html.reduced-motion .idea-landed {
  animation: none;
  border-color: var(--accent);
}

.hair-grid {
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: center;
}

.rank-no {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

html.reduced-motion main[data-page],
html.reduced-motion .vote-pop,
html.reduced-motion .vote-pop .vote-count {
  animation: none;
}
