@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: light;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --bg: #f8f5fc;
  --ink: #362e42;
  --ink-soft: #5f546d;
  --muted: #7c7089;
  --hairline: rgba(84, 63, 110, 0.14);
  --chip: rgba(255, 255, 255, 0.66);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #fdfbff;
  --card-line: rgba(255, 255, 255, 0.88);
  --shadow-card:
    0 34px 70px -38px rgba(74, 48, 104, 0.45),
    0 12px 26px -24px rgba(74, 48, 104, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --handle-bg: color-mix(in oklab, var(--accent) 11%, white);
  --handle-ink: color-mix(in oklab, var(--accent) 72%, var(--ink));
  --mark: color-mix(in oklab, var(--accent2) 30%, transparent);

  /* default palette: starlight */
  --accent-base: #8a76d6;
  --accent2-base: #e58fb6;
  --accent3-base: #e6b96a;
  --blob-a: #dbe3ff;
  --blob-b: #f0dcff;
  --blob-c: #ffe7dc;

  --accent: var(--accent-base);
  --accent2: var(--accent2-base);
  --accent3: var(--accent3-base);

  --focus: color-mix(in oklab, var(--accent) 80%, var(--ink));
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
  --radius-card: 32px;
}

/* ---- other palettes (click the dots in the footer) ---------------------- */
html[data-theme="aqua"] {
  --bg: #eef9fd;
  --ink: #223848;
  --ink-soft: #405c6d;
  --muted: #5a7484;
  --hairline: rgba(59, 116, 145, 0.16);
  --chip: rgba(255, 255, 255, 0.68);
  --card: rgba(255, 255, 255, 0.74);
  --card-solid: #fbfeff;
  --card-line: rgba(255, 255, 255, 0.92);
  --shadow-card:
    0 34px 70px -38px rgba(40, 92, 124, 0.42),
    0 12px 26px -24px rgba(40, 92, 124, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  --accent-base: #3f8fc9;
  --accent2-base: #7ab4f9;
  --accent3-base: #6dd3f7;
  --blob-a: #d6f5fb;
  --blob-b: #deedff;
  --blob-c: #e6faf8;
}

html[data-theme="sakura"] {
  --bg: #fff5f8;
  --ink: #4a2f3b;
  --ink-soft: #6f4f5d;
  --muted: #8c6c7a;
  --hairline: rgba(155, 83, 112, 0.15);
  --chip: rgba(255, 255, 255, 0.68);
  --card: rgba(255, 255, 255, 0.76);
  --card-solid: #fffafc;
  --card-line: rgba(255, 255, 255, 0.92);
  --shadow-card:
    0 34px 70px -38px rgba(155, 60, 95, 0.35),
    0 12px 26px -24px rgba(155, 60, 95, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  --accent-base: #d9678b;
  --accent2-base: #a583e8;
  --accent3-base: #f0b26a;
  --blob-a: #ffe0e9;
  --blob-b: #e9ddff;
  --blob-c: #ffeccd;
}

html[data-theme="matcha"] {
  --bg: #f5faf3;
  --ink: #2f4032;
  --ink-soft: #536753;
  --muted: #748675;
  --hairline: rgba(83, 125, 90, 0.15);
  --chip: rgba(255, 255, 255, 0.68);
  --card: rgba(255, 255, 255, 0.76);
  --card-solid: #fbfef9;
  --card-line: rgba(255, 255, 255, 0.92);
  --shadow-card:
    0 34px 70px -38px rgba(60, 105, 70, 0.34),
    0 12px 26px -24px rgba(60, 105, 70, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  --accent-base: #6b9a6f;
  --accent2-base: #d99a52;
  --accent3-base: #8fc0a9;
  --blob-a: #dff3e3;
  --blob-b: #f4ecd0;
  --blob-c: #e2f0ea;
}

html[data-theme="sunset"] {
  --bg: #fff7f0;
  --ink: #4a3328;
  --ink-soft: #6f5245;
  --muted: #8c7062;
  --hairline: rgba(155, 98, 65, 0.15);
  --chip: rgba(255, 255, 255, 0.68);
  --card: rgba(255, 255, 255, 0.76);
  --card-solid: #fffbf7;
  --card-line: rgba(255, 255, 255, 0.92);
  --shadow-card:
    0 34px 70px -38px rgba(150, 80, 45, 0.34),
    0 12px 26px -24px rgba(150, 80, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  --accent-base: #d97a55;
  --accent2-base: #c97fd1;
  --accent3-base: #e9b95e;
  --blob-a: #ffe3d2;
  --blob-b: #f2e0ff;
  --blob-c: #ffefca;
}

/* ---- dark mode --------------------------------------------------------- */
html[data-mode="dark"] {
  color-scheme: dark;

  --bg: #14101c;
  --ink: #f5eff9;
  --ink-soft: #d2c6dd;
  --muted: #b9abc7;
  --hairline: rgba(255, 255, 255, 0.12);
  --chip: rgba(255, 255, 255, 0.06);
  --card: rgba(30, 24, 41, 0.76);
  --card-solid: #241e30;
  --card-line: rgba(255, 255, 255, 0.09);
  --shadow-card:
    0 34px 80px -34px rgba(0, 0, 0, 0.75),
    0 12px 26px -20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --accent: color-mix(in oklab, var(--accent-base) 72%, white);
  --accent2: color-mix(in oklab, var(--accent2-base) 68%, white);
  --accent3: color-mix(in oklab, var(--accent3-base) 72%, white);

  --blob-a: color-mix(in oklab, var(--accent-base) 26%, #181322);
  --blob-b: color-mix(in oklab, var(--accent2-base) 22%, #181322);
  --blob-c: color-mix(in oklab, var(--accent3-base) 16%, #181322);

  --handle-bg: color-mix(in oklab, var(--accent) 17%, transparent);
  --handle-ink: color-mix(in oklab, var(--accent) 55%, white);
  --mark: color-mix(in oklab, var(--accent2) 34%, transparent);
}

html[data-theme="aqua"][data-mode="dark"] {
  --bg: #081824;
  --ink: #eaf9ff;
  --ink-soft: #c3dfeb;
  --muted: #9cbac9;
  --hairline: rgba(255, 255, 255, 0.12);
  --chip: rgba(255, 255, 255, 0.06);
  --card: rgba(10, 28, 40, 0.78);
  --card-solid: #102431;
  --card-line: rgba(255, 255, 255, 0.1);
  --shadow-card:
    0 34px 80px -34px rgba(0, 0, 0, 0.78),
    0 12px 26px -20px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --handle-bg: color-mix(in oklab, var(--accent) 17%, transparent);
  --handle-ink: color-mix(in oklab, var(--accent) 55%, white);
  --mark: color-mix(in oklab, var(--accent2) 34%, transparent);
}

html[data-theme="sakura"][data-mode="dark"] {
  --bg: #1c1016;
  --ink: #fbeef3;
  --ink-soft: #e3cbd6;
  --muted: #c5a8b5;
  --hairline: rgba(255, 255, 255, 0.12);
  --chip: rgba(255, 255, 255, 0.06);
  --card: rgba(34, 18, 26, 0.78);
  --card-solid: #2a1821;
  --card-line: rgba(255, 255, 255, 0.1);
  --shadow-card:
    0 34px 80px -34px rgba(0, 0, 0, 0.78),
    0 12px 26px -20px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="matcha"][data-mode="dark"] {
  --bg: #0e1710;
  --ink: #eef8ef;
  --ink-soft: #cfe2d1;
  --muted: #a9beab;
  --hairline: rgba(255, 255, 255, 0.12);
  --chip: rgba(255, 255, 255, 0.06);
  --card: rgba(16, 30, 20, 0.78);
  --card-solid: #14251a;
  --card-line: rgba(255, 255, 255, 0.1);
  --shadow-card:
    0 34px 80px -34px rgba(0, 0, 0, 0.78),
    0 12px 26px -20px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="sunset"][data-mode="dark"] {
  --bg: #1b110d;
  --ink: #fff3ea;
  --ink-soft: #e8d0c2;
  --muted: #c6a999;
  --hairline: rgba(255, 255, 255, 0.12);
  --chip: rgba(255, 255, 255, 0.06);
  --card: rgba(32, 21, 15, 0.78);
  --card-solid: #281a13;
  --card-line: rgba(255, 255, 255, 0.1);
  --shadow-card:
    0 34px 80px -34px rgba(0, 0, 0, 0.78),
    0 12px 26px -20px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ========================================================================== */
/* base                                                                       */
/* ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 6vh, 58px) 16px max(28px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

::selection {
  background: color-mix(in oklab, var(--accent) 26%, transparent);
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ========================================================================== */
/* backdrop                                                                   */
/* ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% -10%, color-mix(in oklab, var(--bg) 82%, white), transparent 70%),
    var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.9;
  will-change: transform;
}

.blob--1 {
  width: 58vmax;
  height: 58vmax;
  top: -24vmax;
  left: -16vmax;
  background: radial-gradient(circle at 45% 45%, var(--blob-a), transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.blob--2 {
  width: 52vmax;
  height: 52vmax;
  right: -20vmax;
  bottom: -24vmax;
  background: radial-gradient(circle at 45% 45%, var(--blob-b), transparent 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob--3 {
  width: 42vmax;
  height: 42vmax;
  top: 32%;
  left: 52%;
  background: radial-gradient(circle at 45% 45%, var(--blob-c), transparent 70%);
  opacity: 0.72;
  animation: drift-c 38s ease-in-out infinite alternate;
}

.aurora {
  position: absolute;
  width: 150vmax;
  height: 22vmax;
  top: 16%;
  left: -25%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in oklab, var(--accent3) 26%, transparent) 22%,
    color-mix(in oklab, var(--accent2) 20%, transparent) 46%,
    color-mix(in oklab, var(--accent) 16%, transparent) 68%,
    transparent 100%
  );
  filter: blur(22px);
  transform: rotate(-14deg);
  opacity: 0.8;
  animation: aurora-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}

html[data-mode="dark"] .aurora {
  opacity: 0.45;
}

.petal {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(13px * var(--s, 1));
  height: calc(9px * var(--s, 1));
  border-radius: 100% 0 100% 0;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--accent3) 58%, white),
    color-mix(in oklab, var(--accent2) 48%, white)
  );
  opacity: 0.48;
  transform: rotate(var(--r, 0deg));
  animation: petal-drift 18s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  will-change: transform;
}

html[data-mode="dark"] .petal {
  opacity: 0.3;
}

.twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--font-display);
  font-size: var(--s, 12px);
  color: var(--accent);
  opacity: 0.4;
  animation: twinkle 5.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-mode="dark"] .grain {
  opacity: 0.06;
  mix-blend-mode: soft-light;
}

/* ========================================================================== */
/* page + card                                                                */
/* ========================================================================== */

.page {
  margin: auto;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  animation: card-in 0.85s var(--ease) both;
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .card {
    background: color-mix(in oklab, var(--bg) 8%, var(--card-solid));
  }
}

/* ---- banner ------------------------------------------------------------- */

.banner {
  position: relative;
  height: 124px;
  overflow: hidden;
  background:
    radial-gradient(95% 150% at 88% 0%, color-mix(in oklab, var(--accent2) 40%, transparent), transparent 64%),
    linear-gradient(
      118deg,
      color-mix(in oklab, var(--accent) 34%, white) 0%,
      color-mix(in oklab, var(--accent2) 26%, white) 100%
    );
}

html[data-mode="dark"] .banner {
  background:
    radial-gradient(95% 150% at 88% 0%, color-mix(in oklab, var(--accent2) 34%, transparent), transparent 64%),
    linear-gradient(
      118deg,
      color-mix(in oklab, var(--accent) 40%, var(--card-solid)) 0%,
      color-mix(in oklab, var(--accent2) 32%, var(--card-solid)) 100%
    );
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1.1px, transparent 1.2px);
  background-size: 15px 15px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.banner::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 100%;
  top: -60%;
  left: -10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.banner__ribbon {
  position: absolute;
  z-index: 0;
  left: -12%;
  bottom: 12px;
  width: 124%;
  height: 58px;
  border-top: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: rotate(-5deg);
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.18));
}

.banner__ribbon::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 12px;
  width: 84%;
  height: 44px;
  border-top: 1.5px solid rgba(122, 180, 249, 0.34);
  border-radius: 50%;
  transform: rotate(4deg);
}

.banner__sticker {
  position: absolute;
  z-index: 1;
  top: 26px;
  right: -12px;
  width: 94px;
  height: 94px;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 34%);
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 12px rgba(55, 110, 145, 0.18));
  opacity: 0.9;
}

.banner__sticker span {
  position: absolute;
  inset: 5px;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 34%);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 2px, transparent 2.5px),
    radial-gradient(circle at 66% 58%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2px),
    linear-gradient(
      145deg,
      color-mix(in oklab, var(--accent3) 52%, white),
      color-mix(in oklab, var(--accent2) 44%, white)
    );
}

.banner__note {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 15px;
  padding: 3px 11px 4px;
  border-radius: 8px 8px 8px 2px;
  background: rgba(255, 255, 255, 0.82);
  color: color-mix(in oklab, var(--accent) 40%, var(--ink));
  font-family: var(--font-hand);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px -8px rgba(45, 95, 124, 0.5);
}

html[data-mode="dark"] .banner__note {
  background: rgba(255, 255, 255, 0.14);
  color: #eaf9ff;
  box-shadow: none;
}

.banner__moon {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 17px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  transform: rotate(12deg);
  text-shadow: 0 2px 10px rgba(90, 60, 110, 0.25);
}

.banner__star {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  line-height: 1;
  animation: twinkle 4.5s ease-in-out infinite;
}

.banner__star--1 {
  right: 66px;
  top: 62px;
  font-size: 13px;
  animation-delay: 0.4s;
}

.banner__star--2 {
  left: 26px;
  bottom: 14px;
  font-size: 16px;
  animation-delay: 1.6s;
}

.banner__star--3 {
  right: 18px;
  bottom: 20px;
  font-size: 9px;
  animation-delay: 2.7s;
}

/* ---- profile ------------------------------------------------------------ */

.profile {
  position: relative;
  padding: 0 26px;
  text-align: center;
  animation: rise 0.75s var(--ease) 0.08s both;
}

.avatar {
  --ring-angle: 0deg;
  position: relative;
  width: 106px;
  height: 106px;
  margin: -52px auto 14px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--ring-angle),
    var(--accent) 0deg,
    var(--accent2) 120deg,
    var(--accent3) 220deg,
    var(--accent) 360deg
  );
  box-shadow:
    0 12px 26px -14px color-mix(in oklab, var(--accent) 65%, transparent),
    0 2px 10px -4px rgba(60, 36, 82, 0.35);
  animation: ring-spin 16s linear infinite;
}

.avatar__initial {
  position: absolute;
  inset: 8px;
  z-index: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--card-solid), color-mix(in oklab, var(--accent) 14%, var(--card-solid)));
  color: var(--handle-ink);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid var(--card-solid);
  border-radius: 50%;
  background: var(--card-solid);
  object-fit: cover;
}

.avatar__status {
  --dot: #62c98f;
  position: absolute;
  z-index: 2;
  right: 3px;
  bottom: 7px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--card-solid);
  border-radius: 50%;
  background: var(--dot);
  animation: status-pulse 3.2s ease-out infinite;
}

.avatar[data-status="away"] .avatar__status {
  --dot: #f0b45a;
}

.avatar[data-status="offline"] .avatar__status {
  --dot: #a89fb3;
  animation: none;
}

.avatar[data-status=""] .avatar__status,
.avatar:not([data-status]) .avatar__status {
  display: none;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: 0;
  border: 1px dashed color-mix(in oklab, var(--accent) 38%, transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-spin 26s linear infinite;
}

.avatar__charm {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.avatar__charm--star {
  top: -8px;
  right: -4px;
  color: color-mix(in oklab, var(--accent2) 72%, white);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(80, 150, 190, 0.45);
  transform: rotate(12deg);
}

.avatar__charm--bow {
  left: -3px;
  bottom: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow:
    -9px -3px 0 -2px var(--accent2),
    -9px 3px 0 -2px var(--accent3),
    9px -3px 0 -2px var(--accent2),
    9px 3px 0 -2px var(--accent3);
  transform: rotate(-12deg);
  filter: drop-shadow(0 1px 2px rgba(60, 120, 150, 0.25));
}

.eyebrow {
  margin: 0 0 3px;
  color: color-mix(in oklab, var(--accent) 78%, var(--ink));
  font-family: var(--font-hand);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.4vw, 2.28rem);
  font-weight: 600;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

.handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0;
  padding: 5px 12px 5px 13px;
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  border-radius: 999px;
  background: var(--handle-bg);
  color: var(--handle-ink);
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s var(--ease), box-shadow 0.25s ease;
}

.handle:hover {
  background: color-mix(in oklab, var(--accent) 17%, white);
  box-shadow: 0 6px 14px -10px color-mix(in oklab, var(--accent) 70%, transparent);
  transform: translateY(-1px);
}

html[data-mode="dark"] .handle:hover {
  background: color-mix(in oklab, var(--accent) 25%, transparent);
}

.handle:active {
  transform: scale(0.97);
}

.handle__copy {
  width: 13px;
  height: 13px;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.handle:hover .handle__copy {
  opacity: 0.9;
  transform: translateY(-1px);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}
.meta:empty {
  display: none;
}

.meta span + span::before {
  content: "✦";
  margin-right: 7px;
  color: color-mix(in oklab, var(--accent2) 70%, transparent);
  font-size: 0.62em;
  vertical-align: 0.15em;
}

.bio {
  margin: 14px auto 0;
  max-width: 33ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.68;
  text-wrap: balance;
}
.bio:empty {
  display: none;
}

.bio mark {
  padding: 0 2px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent 58%, var(--mark) 58%);
  color: inherit;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.tags:empty {
  display: none;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4.5px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.tags li::before {
  content: "♡";
  color: var(--accent2);
  font-size: 0.95em;
  line-height: 1;
}

.tags li:hover {
  border-color: color-mix(in oklab, var(--accent2) 35%, transparent);
  transform: translateY(-1px);
}

/* ---- divider ------------------------------------------------------------ */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 21px 22px 13px;
  color: color-mix(in oklab, var(--accent) 45%, var(--ink-soft));
  font-family: var(--font-hand);
  font-size: 1.12rem;
  letter-spacing: 0.015em;
  line-height: 1;
  animation: rise 0.7s var(--ease) 0.16s both;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.divider::before {
  background: linear-gradient(to right, transparent, var(--hairline));
}

.divider::after {
  background: linear-gradient(to left, transparent, var(--hairline));
}

/* ---- links -------------------------------------------------------------- */

.links {
  display: grid;
  gap: 9px;
  padding: 0 18px;
  animation: rise 0.7s var(--ease) 0.22s both;
}
.links:empty {
  display: none;
}

.link {
  --tint: color-mix(in oklab, var(--item-tint, var(--accent)) 28%, var(--accent));
  --tint-bg: color-mix(in oklab, var(--tint, #8a76d6) 17%, white);
  --tint-bg-hover: color-mix(in oklab, var(--tint, #8a76d6) 25%, white);
  --tint-line: color-mix(in oklab, var(--tint, #8a76d6) 24%, transparent);
  --tint-ink: color-mix(in oklab, var(--tint, #8a76d6) 82%, var(--ink));

  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--tint-line);
  border-radius: 16px;
  background: var(--tint-bg);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.link:nth-child(1) { animation: rise 0.6s var(--ease) 0.28s both; }
.link:nth-child(2) { animation: rise 0.6s var(--ease) 0.34s both; }
.link:nth-child(3) { animation: rise 0.6s var(--ease) 0.4s both; }
.link:nth-child(4) { animation: rise 0.6s var(--ease) 0.46s both; }
.link:nth-child(5) { animation: rise 0.6s var(--ease) 0.52s both; }
.link:nth-child(6) { animation: rise 0.6s var(--ease) 0.58s both; }
.link:nth-child(n + 7) { animation: rise 0.6s var(--ease) 0.62s both; }

html[data-mode="dark"] .link {
  --tint-bg: color-mix(in oklab, var(--tint, #8a76d6) 18%, transparent);
  --tint-bg-hover: color-mix(in oklab, var(--tint, #8a76d6) 27%, transparent);
  --tint-line: color-mix(in oklab, var(--tint, #8a76d6) 30%, transparent);
  --tint-ink: color-mix(in oklab, var(--tint, #8a76d6) 55%, white);
}

.link:hover {
  border-color: color-mix(in oklab, var(--tint, #8a76d6) 30%, transparent);
  background: var(--tint-bg-hover);
  box-shadow: 0 13px 24px -18px color-mix(in oklab, var(--tint, #8a76d6) 85%, transparent);
  transform: translateY(-2px);
}

.link:active {
  transform: translateY(0) scale(0.995);
}

.link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.link__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--tint, #8a76d6) 11%, var(--card-solid));
  color: var(--tint-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 5px -3px color-mix(in oklab, var(--tint, #8a76d6) 50%, transparent);
}

.link__icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: transform 0.3s var(--ease);
}

.link__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.link:hover .link__icon svg,
.link:hover .link__icon img {
  transform: rotate(-6deg) scale(1.07);
}

.link__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.link__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.link__badge {
  flex: 0 0 auto;
  padding: 2px 6px 1.5px;
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--tint, #8a76d6) 16%, white);
  color: var(--tint-ink);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  transform: rotate(-2deg);
}

html[data-mode="dark"] .link__badge {
  background: color-mix(in oklab, var(--tint, #8a76d6) 25%, transparent);
}

.link__sub {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.735rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.86;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link__arrow {
  width: 15px;
  height: 15px;
  color: var(--tint-ink);
  opacity: 0.62;
  justify-self: end;
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}

.link:hover .link__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ---- about, playing, folds --------------------------------------------- */

.panel,
.fold {
  margin: 18px 20px 0;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: color-mix(in oklab, var(--card-solid) 48%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  animation: rise 0.7s var(--ease) 0.18s both;
}

.panel {
  padding: 15px 16px 16px;
}

html[data-mode="dark"] .panel,
html[data-mode="dark"] .fold {
  background: color-mix(in oklab, var(--card-solid) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#about { animation-delay: 0.14s; }
#playing { animation-delay: 0.2s; }
#threads { animation-delay: 0.52s; }
#boundaries { animation-delay: 0.58s; }
#favorites { animation-delay: 0.64s; }

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.section-head__ornament {
  color: var(--accent2);
  font-size: 0.82rem;
  line-height: 1;
}

.section-head__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.section-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  margin-left: 2px;
  background: linear-gradient(to right, var(--hairline), transparent);
}

.about__greeting {
  margin: 0 0 3px;
  color: var(--handle-ink);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.facts:empty {
  display: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px 3.5px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.facts li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--accent2);
}

.about__text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.64;
}

.about__text p {
  margin: 0;
}

.about__text p + p {
  margin-top: 6px;
}

.game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-chips:empty {
  display: none;
}

.game-chips li {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 8%, white);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}

.game-chips li::before {
  content: "✦";
  margin-right: 5px;
  color: var(--accent2);
  font-size: 0.84em;
  line-height: 1;
}

.game-chips li:hover {
  background: color-mix(in oklab, var(--accent) 13%, white);
  transform: translateY(-1px);
}

html[data-mode="dark"] .game-chips li {
  border-color: color-mix(in oklab, var(--accent) 28%, transparent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
}

.fold__summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.fold__summary::-webkit-details-marker {
  display: none;
}

.fold__summary:hover {
  background: var(--chip);
}

.fold__summary:focus-visible {
  border-radius: 20px;
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

.fold__ornament {
  color: var(--accent2);
  font-size: 0.82rem;
  line-height: 1;
}

.fold__title {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.05;
}

.fold__chevron {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.fold[open] .fold__chevron {
  transform: rotate(-135deg);
}

.fold__body {
  padding: 13px 16px 16px;
  border-top: 1px dashed var(--hairline);
  animation: rise 0.35s var(--ease) both;
}

.boundary + .boundary {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--hairline);
}

.boundary__title {
  margin: 0 0 5px;
  color: color-mix(in oklab, var(--accent) 52%, var(--ink));
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1;
}

.boundary__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.62;
}

.boundary__list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.58;
  list-style: none;
}

.boundary__list li {
  position: relative;
  padding-left: 15px;
}

.boundary__list li::before {
  content: "✧";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent2);
  font-size: 0.78em;
  line-height: 1.6;
}

.favorites {
  display: grid;
  gap: 12px;
}

.favorite + .favorite {
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
}

.favorite__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.favorite__icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 10%, white);
  color: color-mix(in oklab, var(--accent) 58%, var(--ink));
}

.favorite__icon svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.favorite p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.62;
}

html[data-mode="dark"] .favorite__icon {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: color-mix(in oklab, var(--accent) 62%, white);
}

.threads__intro {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.55;
}

.thread-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thread {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--chip);
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}

.thread:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  transform: translateY(-1px);
}

.thread__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.thread__arrow {
  flex: 0 0 auto;
  color: var(--accent2);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ---- sticky note -------------------------------------------------------- */

.note {
  position: relative;
  margin: 19px 20px 0;
  padding: 13px 15px 12px;
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent3) 17%, white),
    color-mix(in oklab, var(--accent2) 24%, white)
  );
  color: color-mix(in oklab, var(--accent) 52%, var(--ink));
  font-family: var(--font-hand);
  font-size: 1.13rem;
  font-weight: 500;
  line-height: 1.32;
  text-align: center;
  transform: rotate(-1.1deg);
  box-shadow: 0 10px 20px -16px color-mix(in oklab, var(--accent) 45%, transparent);
  animation: rise 0.7s var(--ease) 0.46s both;
}

.note[hidden] {
  display: none;
}

.note::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 58px;
  height: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(80, 60, 40, 0.08);
  transform: translateX(-50%) rotate(1.5deg);
}

html[data-mode="dark"] .note {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent3) 22%, var(--card-solid)),
    color-mix(in oklab, var(--accent2) 20%, var(--card-solid))
  );
  color: color-mix(in oklab, var(--accent3) 42%, white);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.85);
}

/* ---- footer ------------------------------------------------------------- */

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 15px 22px 19px;
  border-top: 1px dashed var(--hairline);
  animation: rise 0.7s var(--ease) 0.56s both;
}

.themes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  position: relative;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-a), var(--sw-b));
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.72),
    0 1px 4px rgba(40, 20, 60, 0.2);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.swatch:hover {
  transform: scale(1.14);
}

.swatch[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 2px var(--card-solid),
    0 0 0 2px var(--sw-a),
    0 2px 6px rgba(40, 20, 60, 0.22);
  transform: scale(1.06);
}

.swatch:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  background: var(--chip);
  color: var(--ink);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.i-sun {
  display: none;
}

.i-pause {
  display: none;
}

#music.is-playing {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 32%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}

#music.is-playing .i-note {
  display: none;
}

#music.is-playing .i-pause {
  display: block;
}

html[data-mode="dark"] .i-sun {
  display: block;
}

html[data-mode="dark"] .i-moon {
  display: none;
}

/* ---- colophon + toast --------------------------------------------------- */

.colophon {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

.colophon__dot {
  opacity: 0.5;
}

#year {
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 90%, transparent);
  color: var(--bg);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* click sparkles */
.pop {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: pop 0.75s var(--ease) forwards;
  will-change: transform, opacity;
}

/* ---- no-js fallback ----------------------------------------------------- */

.noscript {
  max-width: 440px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-align: center;
}

.noscript a {
  color: var(--handle-ink);
  font-weight: 800;
}

/* ========================================================================== */
/* animation                                                                  */
/* ========================================================================== */

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ring-spin {
  to {
    --ring-angle: 360deg;
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vmax, 3vmax, 0) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  to {
    transform: translate3d(-4vmax, -2vmax, 0) scale(1);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  to {
    transform: translate3d(-3vmax, -4vmax, 0) scale(1.06);
  }
}

@keyframes aurora-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-14deg) scale(1);
  }
  to {
    transform: translate3d(3vmax, -2vmax, 0) rotate(-10deg) scale(1.04);
  }
}

@keyframes petal-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(var(--r, 0deg));
  }
  to {
    transform: translate3d(16px, -20px, 0) rotate(calc(var(--r, 0deg) + 16deg));
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--dot) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes pop {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--dx, 0px)),
        calc(-50% + var(--dy, -24px))
      )
      scale(1.05) rotate(35deg);
  }
}

/* ========================================================================== */
/* responsive + motion preferences                                            */
/* ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .swatch:hover {
    transform: scale(1.14);
  }
}

@media (max-width: 400px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .banner {
    height: 116px;
  }

  .profile {
    padding: 0 20px;
  }

  .avatar {
    width: 98px;
    height: 98px;
    margin-top: -46px;
  }

  h1 {
    font-size: 1.96rem;
  }

  .bio {
    font-size: 0.92rem;
  }

  .links {
    padding: 0 14px;
  }

  .link {
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 9px 10px 9px 9px;
  }

  .link__icon {
    width: 38px;
    height: 38px;
  }

  .tags {
    max-width: 216px;
    margin-right: auto;
    margin-left: auto;
  }

  .panel,
  .fold {
    margin-right: 14px;
    margin-left: 14px;
  }

  .panel {
    padding: 14px 14px 15px;
  }

  .section-head__title {
    font-size: 1.22rem;
  }

  .fold__summary {
    padding: 13px 14px;
  }

  .fold__body {
    padding: 12px 14px 15px;
  }

  .note {
    margin-left: 16px;
    margin-right: 16px;
    font-size: 1.06rem;
  }

  .card__footer {
    padding: 14px 18px 17px;
  }
}

@media (max-width: 340px) {
  .handle {
    font-size: 0.74rem;
  }

  .link__label {
    font-size: 0.86rem;
  }

  .link__sub {
    font-size: 0.69rem;
  }

  .swatch {
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .avatar {
    animation: none;
  }
}
