/* ==========================================================================
   Partiels Motion Design — 4CREA 2026
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Serif";
  src: url("fonts/GeistSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --bg: #0a0a0a;
  --bg-elev: #0f0f0f;
  --surface: #121212;
  --surface-2: #171717;
  --surface-3: #1f1f1f;
  --border: #262626;
  --border-strong: #333;
  --text: #fafafa;
  --text-2: #d4d4d4;
  --muted: #a1a1a1;
  --faint: #6b6b6b;

  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --accent-soft: rgb(139 92 246 / .14);
  --accent-glow: rgb(139 92 246 / .35);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Geist Serif", "Times New Roman", Georgia, serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-card: 0 1px 0 rgb(255 255 255 / .04) inset, 0 1px 2px rgb(0 0 0 / .4);
  --shadow-pop: 0 1px 0 rgb(255 255 255 / .06) inset, 0 20px 50px -20px rgb(0 0 0 / .8);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 20px; }
code, kbd { font-family: ui-monospace, "Geist Mono", SFMono-Regular, Menlo, monospace; font-size: .86em; }
code { background: var(--surface-3); padding: .15em .4em; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 8px 24px -8px rgb(255 255 255 / .25);
}
.btn--primary:hover { background: #e9e9e9; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn--sm { --h: 34px; padding: 0 12px; font-size: 13px; }
.btn--icon { width: var(--h); padding: 0; }
.btn--block { width: 100%; --h: 46px; font-size: 15px; }

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--border-strong); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input--bare, .input--bare:hover, .input--bare:focus { border: 0; background: transparent; box-shadow: none; height: 100%; padding: 0; }
.input--bare::-webkit-search-cancel-button { filter: invert(1) brightness(.6); }

.field { display: grid; gap: 8px; text-align: left; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field--error .input { border-color: #f87171; box-shadow: 0 0 0 4px rgb(248 113 113 / .12); }
.field__error { margin-top: -6px; font-size: 13px; color: #fca5a5; text-align: left; }

/* ==========================================================================
   Login
   ========================================================================== */
.page-login { overflow-x: hidden; }
.login {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}
.login::before { /* grille */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%);
}
.login__glow {
  position: absolute;
  z-index: -1;
  width: min(720px, 120vw);
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgb(139 92 246 / .30), rgb(139 92 246 / .08) 40%, transparent 68%);
  filter: blur(20px);
  animation: breathe 9s var(--ease) infinite alternate;
}
@keyframes breathe { from { scale: .92; opacity: .8; } to { scale: 1.06; opacity: 1; } }

.login__card {
  width: min(400px, 100%);
  display: grid;
  gap: 20px;
  padding: 36px 32px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgb(23 23 23 / .82), rgb(12 12 12 / .88));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop), 0 0 0 1px rgb(0 0 0 / .4);
  backdrop-filter: blur(16px);
  animation: rise .7s var(--ease) both;
}
.login__mark {
  width: 48px; height: 48px;
  margin: 0 auto 4px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--accent-3);
  background: linear-gradient(180deg, rgb(139 92 246 / .28), rgb(139 92 246 / .08));
  border: 1px solid rgb(167 139 250 / .3);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.login__title { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; margin-top: -10px; }
.login__lead { color: var(--muted); font-size: 14px; margin-top: -8px; margin-bottom: 4px; text-wrap: balance; }

@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(10 10 10 / .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / .06);
  view-transition-name: topbar;
}
.topbar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(160deg, var(--accent-2), var(--accent) 60%, #6d28d9);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset, 0 6px 18px -6px var(--accent-glow);
}
.brand__text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand__title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { color: var(--faint); font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) { .brand__sub { display: none; } }
.topbar__nav { display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(24px, 4vw, 36px); display: grid; gap: 14px; }
.hero__title {
  font-size: clamp(44px, 7.5vw, 92px);
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 30%, #9a9a9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .04em;
}
.hero__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.toolbar {
  position: sticky;
  top: 64px;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 8px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.search {
  flex: 1;
  max-width: 420px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:hover { border-color: var(--border-strong); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search .input { font-size: 14px; }

.segmented {
  flex: none;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.segmented button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: #fff; color: #0a0a0a; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease), background-color .25s;
  animation: rise .6s var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 35ms);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
}
.card:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
  overflow: hidden;
}
.card__media img, .card__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .4s;
}
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.035); }
.card__media video[data-lazy] { opacity: 0; }
.card__media video.is-ready { opacity: 1; }
.card__media .preview {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card__media .preview.is-playing { opacity: 1; }
.card__media::after { /* vignette */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .45));
  pointer-events: none;
}
.card__play {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  translate: -50% -50%;
  display: grid; place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  background: rgb(255 255 255 / .92);
  color: #0a0a0a;
  box-shadow: 0 10px 30px -6px rgb(0 0 0 / .6);
  opacity: 0;
  scale: .85;
  transition: opacity .25s var(--ease), scale .35s var(--ease-spring);
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; scale: 1; }
.card.is-previewing .card__play { opacity: 0; }
.card__badge {
  position: absolute;
  z-index: 2;
  top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: rgb(10 10 10 / .6);
  border: 1px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(8px);
}
.card__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  color: var(--faint);
  font-size: 13px;
  background: repeating-linear-gradient(-45deg, #0c0c0c 0 10px, #0f0f0f 10px 20px);
}
.card--missing { opacity: .7; }

.card__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 14px;
}
.card__name {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-2);
  background: linear-gradient(160deg, var(--surface-3), #101010);
  border: 1px solid var(--border-strong);
}
.avatar--sm { width: 28px; height: 28px; font-size: 10px; }

.heart { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }

.pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.pill--on { color: var(--accent-3); background: var(--accent-soft); border-color: rgb(139 92 246 / .35); }
.pill--on .heart { fill: currentColor; }

.no-results { padding: 48px 0; text-align: center; color: var(--muted); }

.empty {
  margin: 24px 0 64px;
  padding: clamp(40px, 7vw, 72px) 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  display: grid; gap: 10px;
}
.empty h2 { color: var(--text); }
.empty--sm { padding: 32px 24px; margin: 0; }

/* ---------- Leaderboard ---------- */
.board { padding: clamp(64px, 10vw, 112px) 0 32px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head .eyebrow { margin-bottom: 8px; }
.section-head__aside { color: var(--faint); font-size: 13px; }

.podium {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: end;
  gap: clamp(12px, 2vw, 20px);
}
.podium__item--1 { order: 2; }
.podium__item:nth-child(2) { order: 1; }
.podium__item:nth-child(3) { order: 3; }
@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr; }
  .podium__item { order: 0 !important; }
}
.podium__link {
  display: block;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s;
}
.podium__link:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-pop); }
.podium__item--1 .podium__link {
  border-color: rgb(139 92 246 / .5);
  background: linear-gradient(180deg, rgb(139 92 246 / .14), var(--surface) 55%);
  box-shadow: 0 0 0 1px rgb(139 92 246 / .2), 0 30px 80px -30px var(--accent-glow);
}
.podium__media { position: relative; aspect-ratio: 16 / 9; background: #050505; }
.podium__media img, .podium__media video { width: 100%; height: 100%; object-fit: cover; }
.podium__media video[data-lazy] { opacity: 0; transition: opacity .4s; }
.podium__media video.is-ready { opacity: 1; }
.podium__rank {
  position: absolute;
  top: 12px; left: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  background: rgb(10 10 10 / .7);
  border: 1px solid rgb(255 255 255 / .15);
  backdrop-filter: blur(8px);
}
.podium__item--1 .podium__rank {
  width: 44px; height: 44px; font-size: 22px;
  background: var(--accent);
  border-color: rgb(255 255 255 / .25);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}
.podium__body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.podium__body h3 { font-size: 22px; }
.podium__item--1 .podium__body h3 { font-size: 26px; }
.podium__likes { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.podium__item--1 .podium__likes { color: var(--accent-3); }
.podium__item--1 .podium__likes .heart { fill: currentColor; }

.ranking {
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.ranking li + li { border-top: 1px solid rgb(255 255 255 / .05); }
.ranking__row {
  display: grid;
  grid-template-columns: 32px 28px minmax(0, 1fr) minmax(60px, 180px) 56px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background-color .2s;
}
.ranking__row:hover { background: var(--surface-2); }
.ranking__rank { color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.ranking__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ranking__bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.ranking__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ranking__count { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .ranking__row { grid-template-columns: 24px 28px minmax(0, 1fr) 48px; }
  .ranking__bar { display: none; }
}

.foot { padding-block: 40px 48px; color: var(--faint); font-size: 13px; margin-top: 48px; }
.foot span { display: block; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .06); }

/* ==========================================================================
   Viewer
   ========================================================================== */
.viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding-block: clamp(20px, 3vw, 36px) 64px;
}
@media (max-width: 1000px) { .viewer { grid-template-columns: 1fr; } }

.viewer__stage { display: grid; gap: 16px; min-width: 0; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px -40px rgb(139 92 246 / .25), var(--shadow-pop);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player video:focus { outline: none; }
.player__missing {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  color: var(--faint);
  background: repeating-linear-gradient(-45deg, #0c0c0c 0 12px, #0f0f0f 12px 24px);
}

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper .btn { --h: 52px; padding: 0 18px; border-radius: var(--radius); max-width: 42%; }
.stepper__label { display: grid; text-align: left; line-height: 1.2; min-width: 0; }
.stepper__next .stepper__label { text-align: right; }
.stepper__hint { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.stepper__name { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.stepper__count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.stepper__count strong { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .stepper__name { display: none; } .stepper .btn { padding: 0 14px; } }

.viewer__side { display: grid; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 1000px) { .viewer__side { position: static; } }
.viewer__head { display: grid; gap: 8px; padding: 4px 2px 4px; }
.viewer__name { font-size: clamp(30px, 3.4vw, 42px); text-wrap: balance; }

/* Like button */
.like {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 0 10px 0 18px;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / .9);
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s, box-shadow .3s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.like:hover { background: rgb(255 255 255 / .06); }
.like:active { transform: scale(.98); }
.like__icon { display: grid; place-items: center; }
.like__icon .heart { transition: fill .2s, transform .45s var(--ease-spring); }
.like__text { flex: 1; text-align: left; }
.like__count {
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  background: rgb(255 255 255 / .08);
  font-size: 14px;
}
.like.is-on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 40px -12px var(--accent-glow), 0 0 0 1px rgb(255 255 255 / .12) inset;
}
.like.is-on:hover { background: #7c4dee; }
.like.is-on .heart { fill: currentColor; }
.like.is-on .like__count { background: rgb(0 0 0 / .2); }
.like.pop .heart { animation: pop .5s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.like .burst { position: absolute; left: 28px; top: 50%; pointer-events: none; }
.like .burst i {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: burst .6s var(--ease) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translateY(0); opacity: 1; }
  to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-26px) scale(.3); opacity: 0; }
}

/* Comment */
.comment {
  padding: 20px 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.comment__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px;
  margin-bottom: 12px;
}
.comment__title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.comment__body { color: var(--text-2); display: grid; gap: 12px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.comment__body strong { color: var(--text); font-weight: 600; }
.comment__empty { color: var(--faint); font-size: 14px; }

.shortcuts { margin: 0; padding: 4px 4px; display: grid; gap: 8px; font-size: 12px; color: var(--faint); }
.shortcuts div { display: flex; align-items: center; gap: 10px; }
.shortcuts dt { display: flex; gap: 4px; min-width: 64px; }
.shortcuts dd { margin: 0; }

/* ---------- View transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
