:root {
  --bg: #f3f1ee;
  --card: #ffffff;
  --ink: #18161a;
  --soft: #7a757d;
  --accent: #ff5a36;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #faf9f7, var(--bg));
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px;
}

.board {
  width: min(388px, 100%);
  padding: 16px 10px 8px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #fdfcfb);
  box-shadow:
    inset 0 0 0 1px rgba(24, 22, 26, 0.06),
    0 1px 2px rgba(24, 22, 26, 0.05),
    0 16px 32px -16px rgba(70, 40, 20, 0.2),
    0 40px 72px -40px rgba(70, 40, 20, 0.3);
}

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 8px 10px; }
.head__brand { font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.head__title { font-size: 18px; line-height: 23px; font-weight: 680; font-stretch: 104%; letter-spacing: -0.015em; }
.head__live { flex: none; font-size: 12px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.head__live span { display: inline-block; font-weight: 700; color: var(--ink); }

/* ---- the ideas ---- */
.ideas { list-style: none; }
.idea { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px; border-top: 1px solid rgba(24, 22, 26, 0.07); background: #ffffff; border-radius: 0; }
.idea.is-moving { z-index: 2; border-radius: 14px; border-top-color: transparent; box-shadow: 0 10px 22px -10px rgba(70, 40, 20, 0.35), 0 0 0 1px rgba(24, 22, 26, 0.06); }
.idea__text { min-width: 0; display: grid; gap: 2px; }
.idea__name { font-size: 14.5px; line-height: 19px; font-weight: 620; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea__tag { justify-self: start; font-size: 11.5px; line-height: 15px; font-weight: 560; color: var(--soft); }
.idea__tag--doing { color: #1a8f5c; }
.idea__tag--planned { color: #3d6fd9; }

/* ---- the vote ---- */
.vote {
  position: relative;
  flex: none;
  width: 46px;
  height: 44px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  border: 0;
  border-radius: 13px;
  background: rgba(24, 22, 26, 0.04);
  box-shadow: inset 0 0 0 1px rgba(24, 22, 26, 0.08);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.vote svg { width: 14px; height: 14px; }
.vote path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill 0.3s ease; }
.vote__n { height: 15px; overflow: hidden; font-size: 12.5px; line-height: 15px; font-weight: 700; }
.vote__n span { display: block; }
.vote.is-hot { box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (hover: hover) { .vote:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }
.vote:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vote[aria-pressed="true"] { background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 12px -5px color-mix(in srgb, var(--accent) 70%, transparent); color: #ffffff; }
.vote[aria-pressed="true"] path { fill: currentColor; }
/* a vote from someone else: a short light on the button */
.vote::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); opacity: var(--ping, 0); pointer-events: none; }

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

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (max-height: 420px) {
  .board { padding-top: 12px; padding-bottom: 6px; }
  .head { padding-bottom: 7px; }
  .idea { height: 52px; }
  .vote { height: 42px; }
}
@media (max-width: 360px) {
  .head__title { font-size: 16px; }
  .head__live { display: none; }
}
@media (min-width: 900px) and (min-height: 680px) {
  .board { zoom: 1.3; }
}
