/* ---------------------------------------------------------------------------
   Kudos Board — one bright, warm theme. Good vibes are the whole point.
   --------------------------------------------------------------------------- */

:root {
  --ink: #241b33;
  --ink-soft: #5b5170;
  --ink-faint: #8d85a3;
  --paper: #fffdfa;
  --surface: #ffffff;
  --line: #eae4f2;

  --brand-1: #ff5f9e;
  --brand-2: #a45cff;
  --brand-3: #35b9f5;
  --brand-4: #2fd6a8;
  --brand-5: #ffc75f;

  --grad-brand: linear-gradient(
    100deg,
    var(--brand-1) 0%,
    var(--brand-2) 32%,
    var(--brand-3) 62%,
    var(--brand-4) 100%
  );

  --shadow-sm: 0 1px 2px rgba(36, 27, 51, 0.06), 0 2px 8px rgba(36, 27, 51, 0.05);
  --shadow-md: 0 6px 18px rgba(36, 27, 51, 0.09), 0 2px 6px rgba(36, 27, 51, 0.05);
  --shadow-lg: 0 24px 60px rgba(36, 27, 51, 0.16), 0 8px 20px rgba(36, 27, 51, 0.08);

  --radius: 18px;
  --radius-lg: 28px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- layout helpers ------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.stack-lg > * + * {
  margin-top: 28px;
}

/* --- top bar ------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(255, 253, 250, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.topbar__spacer {
  flex: 1;
}

.navlink {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.16s ease, color 0.16s ease;
}

.navlink:hover {
  background: #f4effb;
  color: var(--ink);
}

.navlink--active {
  background: #efe7fb;
  color: var(--brand-2);
}

.navlink__badge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--brand-1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  flex: none;
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease;
  background: #f2edf8;
  color: var(--ink);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--grad-brand);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover:not(:disabled) {
  background-position: 100% 0;
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn--ghost:hover:not(:disabled) {
  background: #faf7fe;
  color: var(--ink);
}

.btn--danger {
  background: #ffe9ee;
  color: #c2185b;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}

/* --- landing ------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  isolation: isolate;
}

.hero__aurora {
  position: absolute;
  inset: -30% -20%;
  z-index: -2;
  filter: blur(70px);
  opacity: 0.55;
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: drift 22s ease-in-out infinite;
}

.blob:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: 2%;
  top: 6%;
  background: #ffb3d1;
}
.blob:nth-child(2) {
  width: 40vw;
  height: 40vw;
  right: 4%;
  top: 0%;
  background: #bfa4ff;
  animation-delay: -5s;
}
.blob:nth-child(3) {
  width: 38vw;
  height: 38vw;
  left: 28%;
  bottom: -6%;
  background: #8fe3ff;
  animation-delay: -11s;
}
.blob:nth-child(4) {
  width: 32vw;
  height: 32vw;
  right: 20%;
  bottom: 0%;
  background: #9df5d4;
  animation-delay: -16s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(5%, -7%, 0) scale(1.12);
  }
  66% {
    transform: translate3d(-6%, 5%, 0) scale(0.92);
  }
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(164, 92, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 78%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(164, 92, 255, 0.22);
  box-shadow: var(--shadow-sm);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--brand-2);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-4);
  box-shadow: 0 0 0 0 rgba(47, 214, 168, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 214, 168, 0.65);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(47, 214, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 214, 168, 0);
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 22px 0 0;
  font-weight: 900;
  max-width: 16ch;
}

.shimmer {
  background: linear-gradient(
    100deg,
    var(--brand-1),
    var(--brand-2),
    var(--brand-3),
    var(--brand-4),
    var(--brand-1)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 300% 0;
  }
}

.hero__lede {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 46px;
}

.stat__value {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* floating sample cards behind the hero copy */

/*
 * Decoration only, and it lives strictly to the right of the headline column. Below
 * 1240px there is no room for both, so the cards step aside rather than sit under the
 * words (see the media query at the end of this file).
 */
.floaters {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.floater {
  position: absolute;
  width: 190px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  animation: bob 9s ease-in-out infinite;
  border: 1px solid rgba(36, 27, 51, 0.05);
}

.floater strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  margin-bottom: 3px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
  50% {
    transform: translateY(-16px) rotate(calc(var(--tilt, 0deg) * -1));
  }
}

/* --- reveal on scroll ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- marquee ------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.chip {
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

/* --- steps --------------------------------------------------------------- */

.section {
  padding: 78px 0;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 0;
}

.section__sub {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  max-width: 60ch;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--grad-brand);
}

.step__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.step__num {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 2.6rem;
  font-weight: 900;
  color: rgba(36, 27, 51, 0.05);
  letter-spacing: -0.05em;
}

/* --- closing band -------------------------------------------------------- */

.band {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 64px 32px;
  text-align: center;
  color: #fff;
  background: var(--grad-brand);
  background-size: 250% 100%;
  animation: shimmer 16s linear infinite;
  box-shadow: var(--shadow-lg);
}

.band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.band p {
  margin: 14px auto 28px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
}

.band .btn {
  background: #fff;
  color: var(--brand-2);
}

.footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.87rem;
}

/* --- board --------------------------------------------------------------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  padding: 36px 0 22px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border-radius: 999px;
  background: #f2edf8;
}

.segmented button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.89rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-2);
  box-shadow: var(--shadow-sm);
}

.masonry {
  columns: 3 320px;
  column-gap: 20px;
  padding-bottom: 60px;
}

.masonry > * {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* --- a kudo card --------------------------------------------------------- */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(36, 27, 51, 0.06);
  animation: pop 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px) rotate(-0.35deg);
  box-shadow: var(--shadow-lg);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.card--off {
  opacity: 0.6;
  filter: saturate(0.5);
}

.card__top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.card__to {
  flex: 1;
  min-width: 0;
}

.card__to small {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(36, 27, 51, 0.45);
}

/* A card can thank several people, so the names get two lines before they are cut. */
.card__to strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  line-height: 1.28;
  overflow: hidden;
}

.card__img {
  display: block;
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.card__body {
  font-size: 0.97rem;
  line-height: 1.62;
  color: #2f2542;
  word-break: break-word;
}

.card__body p {
  margin: 0 0 9px;
}

.card__body p:last-child {
  margin-bottom: 0;
}

.card__body ul,
.card__body ol {
  margin: 0 0 9px;
  padding-left: 22px;
}

.card__body li {
  margin-bottom: 4px;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 8px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(36, 27, 51, 0.09);
  font-size: 0.82rem;
  color: rgba(36, 27, 51, 0.6);
}

.card__foot strong {
  color: rgba(36, 27, 51, 0.85);
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag--pending {
  background: #fff1cf;
  color: #a3630b;
}
.tag--rejected {
  background: #ffe1e1;
  color: #b3261e;
}
.tag--off {
  background: #e8e4ef;
  color: #574d6b;
}

/* --- the "..." menu ------------------------------------------------------ */

.menu {
  position: relative;
  flex: none;
}

.menu__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.menu__btn:hover {
  background: #fff;
}

.menu__list {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 30;
  min-width: 176px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: pop 0.16s ease both;
}

.menu__list button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.menu__list button:hover {
  background: #f5f1fb;
}

.menu__list button.is-danger {
  color: #c2185b;
}

.menu__list button.is-danger:hover {
  background: #ffeef3;
}

/* --- empty state --------------------------------------------------------- */

.empty {
  text-align: center;
  padding: 72px 20px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
  color: var(--ink-soft);
}

.empty__emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 14px;
  animation: bob 4s ease-in-out infinite;
}

.empty h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
}

.empty p {
  margin: 0 auto 22px;
  max-width: 42ch;
  line-height: 1.6;
}

/* --- modal / composer ---------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(36, 27, 51, 0.42);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 60px;
  overflow-y: auto;
  animation: fade 0.2s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  overflow: hidden;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex: 1;
}

.modal__body {
  padding: 22px;
}

.modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #fdfbff;
}

.field + .field {
  margin-top: 20px;
}

/* The field caption only. The picture picker is itself a <label>, and must not inherit
   the small-caps treatment. */
.field > label:not(.dropzone) {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(164, 92, 255, 0.14);
}

.hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

.suggest {
  position: relative;
}

/* --- recipient bubbles --------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: text;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.chips:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(164, 92, 255, 0.14);
}

.chips__input {
  flex: 1;
  min-width: 170px;
  border: 0;
  outline: none;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}

.chips__input::placeholder {
  color: var(--ink-faint);
}

.chip-person {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  background: #f1eafd;
  border: 1px solid #e0d2fa;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  animation: pop 0.2s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.chip-person__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
}

.chip-person__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}

.chip-person__x {
  flex: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.14s ease, color 0.14s ease;
}

.chip-person__x:hover {
  background: #c2185b;
  color: #fff;
}

/* stacked faces on a card with several recipients */

.avatars {
  display: inline-flex;
  flex: none;
}

.avatars .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.avatars .avatar + .avatar {
  margin-left: -11px;
}

.avatar--more {
  background: var(--ink-soft) !important;
}

.avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 0.64rem;
}

.suggest__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 210px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.suggest__list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font-size: 0.91rem;
}

.suggest__list button:hover,
.suggest__list button[data-active="true"] {
  background: #f5f1fb;
}

.suggest__email {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* rich text editor */

.editor__tools {
  display: flex;
  gap: 5px;
  padding: 7px;
  border: 1.5px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #faf8fd;
}

.editor__tools button {
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}

.editor__tools button:hover {
  background: #ece4f8;
  color: var(--ink);
}

.editor__area {
  min-height: 150px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 0 0 12px 12px;
  font-size: 0.97rem;
  line-height: 1.62;
  background: #fff;
}

.editor__area:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(164, 92, 255, 0.14);
}

.editor__area:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-faint);
}

.editor__area p {
  margin: 0 0 8px;
}

.editor__area ul,
.editor__area ol {
  padding-left: 22px;
  margin: 0 0 8px;
}

/* colours */

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 2px solid rgba(36, 27, 51, 0.08);
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(36, 27, 51, 0.1);
  transform: scale(1.1);
}

.swatch--custom {
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(
    #ff5f9e,
    #ffc75f,
    #2fd6a8,
    #35b9f5,
    #a45cff,
    #ff5f9e
  );
  overflow: hidden;
}

.swatch--custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}

/* picture picker */

.dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.dropzone:hover {
  border-color: var(--brand-2);
  background: #fbf8ff;
}

.dropzone__preview {
  width: 62px;
  height: 62px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
}

.dropzone input[type="file"] {
  display: none;
}

/* messages */

.alert {
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.alert--error {
  background: #ffeced;
  color: #b3261e;
}

.alert--ok {
  background: #e3f9ef;
  color: #10693f;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: rise 0.25s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

/* floating "give kudos" button */

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: var(--grad-brand);
  background-size: 200% 100%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.18s ease, background-position 0.3s ease;
}

.fab:hover {
  transform: translateY(-3px) scale(1.03);
  background-position: 100% 0;
}

/* loading skeleton */

.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #f4f0fa 30%, #fbf9fe 50%, #f4f0fa 70%);
  background-size: 220% 100%;
  animation: sweep 1.3s linear infinite;
}

@keyframes sweep {
  to {
    background-position: -220% 0;
  }
}

/* admin */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}

.review {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.review .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.87rem;
}

.review .btn--approve {
  background: #d6f7e6;
  color: #0f6b42;
}

.review .btn--reject {
  background: #ffe5e7;
  color: #b3261e;
}

/* --- motion preferences -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1239px) {
  .floaters {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 48px 0 64px;
  }

  .masonry {
    columns: 1;
  }

  .fab {
    right: 16px;
    bottom: 16px;
    padding: 13px 22px;
  }
}

/* --- magic words --------------------------------------------------------- */

/*
 * A word that comes alive on hover. Reads like a link but with a dotted underline, so
 * nobody expects it to navigate anywhere.
 */
.magic {
  text-decoration: underline dotted currentColor;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  cursor: help;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
  display: inline-block;
}

.magic:hover {
  transform: translateY(-1px) scale(1.06);
  filter: saturate(1.4);
}

/* The only links a card may carry: addresses back into Forge. */
.kudo-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  word-break: break-all;
}

.kudo-link::after {
  content: " ↗";
  font-weight: 700;
  text-decoration: none;
}

/* --- the effects layer --------------------------------------------------- */

.magic-canvas,
.magic-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.magic-layer {
  overflow: hidden;
}

.magic-particle {
  position: absolute;
  line-height: 1;
  will-change: transform, opacity;
  user-select: none;
}

.magic-particle--burst {
  animation: magic-burst ease-out both;
}
.magic-particle--up {
  animation: magic-up ease-in both;
}
.magic-particle--fall {
  animation: magic-fall linear both;
}
.magic-particle--across {
  animation: magic-across ease-in-out both;
}
.magic-particle--dance {
  animation: magic-dance ease-in-out both;
}

@keyframes magic-burst {
  0% {
    transform: translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0), var(--dy, 0)) scale(1.15) rotate(var(--rot, 180deg));
    opacity: 0;
  }
}

@keyframes magic-up {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(-112vh) scale(1.2) rotate(var(--rot, 120deg));
    opacity: 0;
  }
}

@keyframes magic-fall {
  0% {
    transform: translateY(-14vh) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(112vh) rotate(var(--rot, 200deg));
    opacity: 0;
  }
}

@keyframes magic-across {
  0% {
    transform: translateX(-12vw) translateY(0) rotate(-14deg) scale(0.8);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateX(114vw) translateY(var(--dy, 0)) rotate(14deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes magic-dance {
  0% {
    transform: translateY(60px) scale(0.5);
    opacity: 0;
  }
  14% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translateY(-30px) rotate(-16deg);
  }
  46% {
    transform: translateY(0) rotate(12deg);
  }
  62% {
    transform: translateY(-26px) rotate(-12deg);
  }
  78% {
    transform: translateY(0) rotate(10deg);
  }
  90% {
    transform: translateY(-16px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(50px) scale(0.6);
    opacity: 0;
  }
}

/* --- the Diogo takeover -------------------------------------------------- */

.magic-quake {
  animation: magic-quake 0.13s linear 0s 15;
}

@keyframes magic-quake {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-9px, 5px) rotate(-0.7deg);
  }
  40% {
    transform: translate(8px, -7px) rotate(0.6deg);
  }
  60% {
    transform: translate(-7px, -4px) rotate(-0.5deg);
  }
  80% {
    transform: translate(6px, 6px) rotate(0.5deg);
  }
}

.magic-takeover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #ff5f9e 0%, #a45cff 45%, #241b33 100%);
  animation: magic-swallow 2s cubic-bezier(0.6, 0, 0.3, 1) both;
}

@keyframes magic-swallow {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.magic-takeover__word {
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.55);
  animation: magic-fatten 2s cubic-bezier(0.5, 0, 0.2, 1) both;
}

/* Starts small, gets fat, and eats the whole screen. */
@keyframes magic-fatten {
  0% {
    font-size: 2rem;
    transform: scale(0.2) rotate(-8deg);
    opacity: 0;
  }
  18% {
    font-size: 8rem;
    transform: scale(1) rotate(3deg);
    opacity: 1;
  }
  45% {
    font-size: 18vw;
    transform: scale(1.05) rotate(-2deg);
  }
  75% {
    font-size: 30vw;
    transform: scale(1.4) rotate(1deg);
  }
  100% {
    font-size: 30vw;
    transform: scale(4.2) rotate(0deg);
    opacity: 0;
  }
}

/* --- emoji picker -------------------------------------------------------- */

.editor__tools-gap {
  flex: 1;
}

/* A pressed toolbar button is filled in, so it is obvious what the caret is sitting in. */
.editor__tools button[aria-pressed="true"] {
  background: var(--brand-2);
  color: #fff;
}

.editor__tools button[aria-pressed="true"]:hover {
  background: #8f45ec;
  color: #fff;
}

.emoji {
  position: relative;
  display: inline-flex;
}

.emoji__panel {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 70;
  width: 356px;
  max-width: calc(100vw - 48px);
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: pop 0.16s ease both;
}

.emoji__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

/* Never squeeze a label: a clipped "Celeb…" reads as a broken picker. */
/*
 * The panel sits inside .editor__tools, which sizes every button to a fixed 34x32 —
 * that is what was clipping "Celebrate" to "Cele". These two rules opt back out of it.
 */
.emoji__tabs button {
  flex: none;
  width: auto;
  height: auto;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  background: #f4effb;
  color: var(--ink-soft);
}

.emoji__tabs button[aria-pressed="true"] {
  background: var(--brand-2);
  color: #fff;
}

.emoji__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.emoji__grid button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
  /* Ask for the colour emoji font explicitly, or Windows draws some of these as
     flat black-and-white glyphs in the middle of a colourful row. */
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji",
    "Segoe UI Symbol", sans-serif;
}

.emoji__grid button:hover {
  background: #f1eafd;
  transform: scale(1.18);
}

/* quotes, now that the editor can make them */

.card__body blockquote,
.editor__area blockquote {
  margin: 0 0 9px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid currentColor;
  opacity: 0.85;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .magic:hover {
    transform: none;
  }
}

/* ===========================================================================
   kudos.dcp.pt — acrescentos da versão PHP (boards, PIN, partilha, admin)
   =========================================================================== */

[hidden] {
  display: none !important;
}

button.navlink {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.start-side {
  display: grid;
  gap: 22px;
}

.start-card .field {
  margin-top: 16px;
}

.start-card .field + .field {
  margin-top: 16px;
}

.code-input {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
}

.recent {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.recent a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f5fd;
}

.recent a:hover {
  background: #efe7fb;
}

.recent code,
.table code {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.code-pill {
  border: 0;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 999px;
  background: #efe7fb;
  color: var(--brand-2);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.share-code {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #f8f5fd;
}

.share-code small {
  color: var(--ink-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.share-code strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--brand-2);
}

.modal--sm {
  max-width: 460px;
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--brand-1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.review {
  flex-wrap: wrap;
}

.review__why {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.table .num {
  text-align: right;
}

.table a:hover strong {
  color: var(--brand-2);
}

.btn--sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn.is-danger {
  color: #b3261e;
}

.footer a {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar__inner .navlink {
    padding: 8px 9px;
    font-size: 0.82rem;
  }
  .fab {
    right: 16px;
    bottom: 16px;
  }
}

.segmented button {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .segmented button {
    padding-left: 11px;
    padding-right: 11px;
  }
}

/* Interruptor EN / PT, sempre no canto superior direito */
.lang-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  margin-left: 4px;
  border-radius: 999px;
  background: #f2edf8;
}

.lang-toggle a {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  transition: background 0.16s ease, color 0.16s ease;
}

.lang-toggle a:hover {
  color: var(--ink);
}

.lang-toggle a[aria-current="true"] {
  background: #fff;
  color: var(--brand-2);
  box-shadow: var(--shadow-sm);
}

/* Pop-up das palavras mágicas */
.magic-help {
  display: grid;
  gap: 10px;
}

.magic-help__row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8f5fd;
}

.magic-help__icon {
  grid-row: span 2;
  font-size: 1.6rem;
  line-height: 1.2;
}

.magic-help__name {
  font-weight: 800;
  font-size: 0.92rem;
}

.magic-help__words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.92rem;
}

.magic-help__lang {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-faint);
  margin-right: -4px;
}

.linkish {
  border: 0;
  padding: 0;
  background: none;
  color: var(--brand-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .brand {
    font-size: 0;
    gap: 0;
  }
  .topbar__inner {
    gap: 2px;
  }
}
