/* ════════════════════════════════════════════════════════════════
   ichaklunka · linker
   Style DNA (from the reference sheets):
   • charcoal #484848 ground + white hand-inked lines
   • "tube" strokes — a line drawn hollow (outline → gap → outline)
   • every word exists twice: SOLID and outline — hover flips one to the other
   • sticker look: white border around colour shapes, grainy paper texture
   • accents straight from her art: pink, periwinkle, mustard, rose, cream
   ════════════════════════════════════════════════════════════════ */

:root {
  --font-display: "Sniglet", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-hand: "Pangolin", "Comic Sans MS", system-ui, sans-serif;
  --font-logo: "Amatic SC", var(--font-hand);
  --font-btn: var(--font-display); /* her "Follow" lettering = Sniglet regular, a touch bolder & tighter (.btn-type) */

  --pink: #f72a53;
  --pink-2: #ff5c7c;
  --blue: #7884f0;
  --yellow: #ffc23a;
  --rose: #c8545e;
  --cream: #f6e3b4;
  --mint: #8fc5a6;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-squish: cubic-bezier(0.5, -0.4, 0.3, 1.5);
  --r: 22px;
}

:root,
[data-theme="charcoal"] {
  --bg: #484848;
  --bg-2: #3f3f3f;
  --surface: #484848;   /* inside buttons */
  --hero: transparent;  /* paper sheet behind the profile */
  --gap: var(--bg);     /* colour inside "tube" strokes */
  --line: #ffffff;
  --text: #ffffff;
  --muted: #d2d2d2;
  --on-line: #484848;   /* text sitting on a solid --line fill */
  --tile: #7884f0;
  --tile-ink: #ffffff;
  --name-stroke: #484848;
  --pattern-op: 0.26;
  --blob-op: 0.42;
  --grain-op: 0.1;
  --shadow: rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

[data-theme="paper"] {
  --bg: #c5cedd;
  --bg-2: #b7c1d3;
  --surface: #f7f7f4;
  --hero: #f7f7f4;
  --gap: var(--bg);
  --line: #6b78e5;
  --text: #24263a;
  --muted: #5d6178;
  --on-line: #ffffff;
  --tile: #6b78e5;
  --tile-ink: #ffffff;
  --name-stroke: #1f2030;
  --pattern-op: 0.5;
  --blob-op: 0.75;
  --grain-op: 0.14;
  --shadow: rgba(52, 62, 110, 0.2);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.35;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--pink); color: #fff; }

html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--bg); }
html::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--line) 55%, transparent);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 99px;
}
html::-webkit-scrollbar-thumb:hover { background-color: var(--line); }
html::-webkit-scrollbar-button { display: none; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--line) 55%, transparent) transparent; }
}
@media (pointer: coarse) {
  html, .stats__sheet { scrollbar-width: none; }
  html::-webkit-scrollbar, .stats__sheet::-webkit-scrollbar { display: none; }
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── sketched shapes (generated in app.js): smooth vector lines, no raster filters ── */
.sk { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.sk path { stroke-linejoin: round; stroke-linecap: round; }
.sk .v1, .sk .v2 { display: none; }
/* line boil: three slightly different drawings swapped ~7× a second while hovered */
[data-boil="1"] :is(.link:hover > .sk, .stamp:hover .sk) .v0,
[data-boil="2"] :is(.link:hover > .sk, .stamp:hover .sk) .v0 { display: none; }
[data-boil="1"] :is(.link:hover > .sk, .stamp:hover .sk) .v1,
[data-boil="2"] :is(.link:hover > .sk, .stamp:hover .sk) .v2 { display: inline; }

/* tube strokes (shared by svg doodles) */
.tube { overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tube__o { stroke: var(--line); stroke-width: 3.4; }
.tube__i { stroke: var(--gap); stroke-width: 1.3; }

/* ═════════════ background ═════════════ */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bg__pattern {
  position: absolute;
  inset: -300px;
  background-image: var(--pattern);
  background-size: 300px 300px;
  opacity: var(--pattern-op);
  animation: drift 60s linear infinite;
  transition: opacity 0.6s;
}
@keyframes drift { to { transform: translate3d(300px, 300px, 0); } }

.bg__blobs {
  position: absolute;
  width: min(620px, 95vw);
  aspect-ratio: 1;
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: var(--blob-op);
}
.bg__blobs .inner { stroke-width: 1.6; }
.bg__blobs--tl { top: max(-260px, -40vw); left: max(-280px, -46vw); animation: float-a 22s ease-in-out infinite alternate; }
.bg__blobs--br { bottom: max(-280px, -44vw); right: max(-260px, -46vw); animation: float-b 26s ease-in-out infinite alternate; }
@keyframes float-a { to { transform: translate(26px, 18px) rotate(4deg); } }
@keyframes float-b { to { transform: translate(-22px, -26px) rotate(-5deg); } }

/* grain — her pieces always carry a pencil/noise texture */
.bg__grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-op);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═════════════ top bar ═════════════ */
.topbar {
  position: fixed;
  z-index: 20;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  transition: translate 0.5s var(--ease-out);
}
.topbar.is-hidden { translate: 0 calc(-100% - 30px); }
.icon-btn {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--line);
  box-shadow: 0 0 0 2px var(--line), 0 0 0 5px var(--surface), 0 0 0 7px var(--line), 0 8px 20px var(--shadow);
  transition: transform 0.45s var(--ease-spring), background-color 0.3s, color 0.3s;
  opacity: 0;
  animation: pop 0.6s 1.1s var(--ease-spring) forwards;
}
.icon-btn .ico { width: 22px; height: 22px; transition: transform 0.5s var(--ease-spring); }
.icon-btn:hover { transform: translateY(-2px) rotate(-8deg) scale(1.06); }
.icon-btn:hover .ico { transform: rotate(25deg); }
.icon-btn:active { transform: scale(0.9); transition-duration: 0.12s; }
@keyframes pop { from { opacity: 0; scale: 0.4; rotate: -30deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

/* ═════════════ page ═════════════ */
.page {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  margin: 0 auto;
  padding: calc(76px + env(safe-area-inset-top)) 16px 24px;
}

/* ── hero ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px 30px;
  margin-bottom: 18px;
}
/* paper sheet behind the profile — a hand-cut vector shape, visible in the light theme */
.hero { isolation: isolate; --ci: 2px; }
.sheet { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sk--sheet path { fill: var(--hero); transition: fill 0.5s; }
[data-theme="paper"] .sk--sheet { filter: drop-shadow(0 16px 24px var(--shadow)); }
[data-theme="paper"] .hero { --ci: 15px; } /* brackets sit inside the sheet, like on her card */
[data-theme="paper"] .hero { --gap: var(--hero); }

.corner { position: absolute; width: 62px; height: 62px; pointer-events: none; transition: inset 0.5s var(--ease-out); }
.corner svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.corner .tube__o { stroke-width: 7.4; }
.corner .tube__i { stroke-width: 3.4; }
.corner .tube__o, .corner .tube__i { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s 0.35s var(--ease-out) forwards; }
.corner--tl { top: var(--ci); left: var(--ci); }
.corner--tr { top: var(--ci); right: var(--ci); transform: scaleX(-1); }
.corner--bl { bottom: var(--ci); left: var(--ci); transform: scaleY(-1); }
.corner--br { bottom: var(--ci); right: var(--ci); transform: scale(-1); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* logo stamp — rebuilt from her ICHAKLUNKA / ARTIST mark */
.stamp {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 18px;
  transform-origin: 50% 60%;
  opacity: 0;
  animation: stamp-in 0.7s 0.1s var(--ease-spring) forwards;
}
.stamp__box { position: relative; display: block; padding: 8px 21px 6px; color: var(--gap); isolation: isolate; }
.stamp__box .sk { z-index: -1; }
.sk--stamp .sk-fill { fill: var(--line); }
.sk--stamp .sk-ring { fill: none; stroke: var(--line); stroke-width: 2.2; }
.stamp__name { font: 700 34px/1.05 var(--font-logo); letter-spacing: 0.06em; }
.stamp__sub { font: 400 12px/1 var(--font-display); letter-spacing: 0.95em; padding-left: 0.95em; margin-top: 7px; color: var(--line); }
.stamp__box { transition: transform 0.45s var(--ease-spring); }
.stamp:hover .stamp__box { transform: rotate(-3deg) scale(1.05); }
.stamp.is-stamped { animation: thunk 0.45s var(--ease-squish); opacity: 1; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.9) rotate(-10deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes thunk { 0% { transform: none; } 35% { transform: scale(0.88, 0.8) rotate(-2deg); } 100% { transform: none; } }

/* status — pink bubble lettering with a white inline, like her "COMMISSION OPEN" */
.status { position: relative; z-index: 3; margin-bottom: -10px; transform: rotate(-3deg); }
.bubble {
  position: relative;
  display: inline-block;
  font: 800 clamp(25px, 7.4vw, 31px)/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--pink);
  -webkit-text-stroke: 8px var(--pink);
  paint-order: stroke fill;
  animation: wobble 3.2s ease-in-out infinite;
}
.bubble::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1.7px #fff;
}
.status[data-state="closed"] .bubble { color: var(--blue); -webkit-text-stroke-color: var(--blue); animation: none; }
.status[data-state="waitlist"] .bubble { color: #e9a21c; -webkit-text-stroke-color: #e9a21c; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg) translateY(-1px); } }
.status.is-flip { animation: flip 0.7s var(--ease-squish); }
@keyframes flip {
  0% { transform: rotate(-3deg); }
  35% { transform: rotate(-3deg) scale(1.18, 0.62); }
  70% { transform: rotate(-3deg) scale(0.94, 1.1); }
  100% { transform: rotate(-3deg); }
}

/* avatar sticker on a periwinkle blob */
.avatar {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: 196px;
  height: 196px;
  display: grid;
  place-items: center;
  margin: 4px 0 26px;
  perspective: 600px;
}
.avatar__blob {
  position: absolute;
  inset: 0;
  background: var(--tile);
  border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%;
  animation: morph 9s ease-in-out infinite alternate;
}
@keyframes morph {
  33% { border-radius: 58% 42% 46% 54% / 52% 58% 42% 48%; transform: rotate(8deg); }
  66% { border-radius: 42% 58% 52% 48% / 58% 42% 58% 42%; transform: rotate(-6deg); }
  100% { border-radius: 52% 48% 40% 60% / 46% 54% 46% 54%; transform: rotate(4deg); }
}
.avatar__ring {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 0 0 2.5px #2a2a2a, 0 14px 26px rgba(0, 0, 0, 0.25);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease-out);
  background: #fff;
}
.avatar__ring img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.avatar__ring:hover img { transform: scale(1.06); }
.avatar__ring.is-loved { animation: love 0.55s var(--ease-squish); }
@keyframes love { 30% { scale: 0.9 0.86; } 65% { scale: 1.06; } }

.sticker { position: absolute; overflow: visible; fill: var(--yellow); stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; paint-order: stroke; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.12)); }
.avatar__spark { animation: twinkle 2.6s ease-in-out infinite; }
.avatar__spark--1 { width: 34px; top: 4px; left: -6px; }
.avatar__spark--2 { width: 24px; top: 30px; right: -12px; animation-delay: -0.9s; }
.avatar__spark--3 { width: 20px; bottom: 34px; left: -16px; animation-delay: -1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(0.72) rotate(18deg); } }

.pill {
  position: absolute;
  bottom: -14px;
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px 10px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font: 400 21px/1 var(--font-btn);
  letter-spacing: -0.04em;
  -webkit-text-stroke: 0.04em currentColor;
  paint-order: stroke fill;
  box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(247, 42, 83, 0.35);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.3s;
}
.pill__heart { width: 17px; height: 17px; fill: #fff; transition: transform 0.45s var(--ease-spring); }
.pill:hover { transform: translateY(-3px) rotate(-3deg) scale(1.05); }
.pill:hover .pill__heart { animation: beat 0.8s ease-in-out infinite; }
.pill:active { transform: scale(0.92); transition-duration: 0.1s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(0.95); } }

/* name — white bubble letters, sparkles either side */
.name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  font: 800 clamp(34px, 10vw, 44px)/1 var(--font-display);
  letter-spacing: 0.005em;
}
.name__text { color: #fff; -webkit-text-stroke: 7px var(--name-stroke); paint-order: stroke fill; }
.name__spark { width: 26px; height: 26px; flex: none; animation: spin-soft 6s linear infinite; }
.name__spark--r { animation-direction: reverse; width: 22px; }
@keyframes spin-soft { 0% { rotate: 0deg; scale: 1; } 50% { rotate: 90deg; scale: 0.82; } 100% { rotate: 180deg; scale: 1; } }

.bio { margin: 2px 0 18px; color: var(--muted); font-size: 16.5px; max-width: 34ch; text-wrap: balance; }

/* social tiles — periwinkle rounded squares from her commission card */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.social { position: relative; display: block; }
.social__tile {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 54px;
  height: 44px;
  color: var(--tile-ink);
  transition: transform 0.45s var(--ease-spring);
}
.social__tile .sk { z-index: -1; }
.social__tile .ico { width: 26px; height: 26px; transition: transform 0.5s var(--ease-spring); }
.sk--tile .sk-fill { fill: var(--tile); transition: fill 0.3s; }
.sk--tile .sk-shadow { fill: rgba(0, 0, 0, 0.16); }
.social:hover .social__tile,
.social:focus-visible .social__tile { transform: translateY(-5px) rotate(var(--hr, -8deg)); }
.social:hover .sk-fill,
.social:focus-visible .sk-fill { fill: var(--pink); }
.social:hover .ico { transform: scale(1.12); }
.social:active .social__tile { transform: scale(0.88); transition-duration: 0.1s; }
.social.is-clicked .social__tile { animation: squish 0.5s var(--ease-squish); }
.tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  translate: -50% 6px;
  white-space: nowrap;
  padding: 5px 10px 6px;
  border-radius: 10px;
  background: var(--line);
  color: var(--on-line);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.35s var(--ease-spring);
}
.tip::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% -1px; border: 6px solid transparent; border-top-color: var(--line); }
.social:hover .tip,
.social:focus-visible .tip { opacity: 1; translate: -50% 0; }

/* ═════════════ link groups ═════════════ */
.group { margin-top: 26px; }
.group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 14px;
  font: 800 25px/1 var(--font-display);
}
.hollow { color: var(--bg); -webkit-text-stroke: 5px var(--line); paint-order: stroke fill; letter-spacing: 0.02em; }
.hollow--sm { -webkit-text-stroke-width: 3.5px; }
.squiggle { flex: 1; height: 14px; overflow: visible; fill: none; stroke: var(--line); stroke-width: 2.2; stroke-linecap: round; opacity: 0.8; }
.squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s 0.2s var(--ease-out); }
.group__title.in .squiggle path { stroke-dashoffset: 0; }

.links { display: grid; gap: 14px; }

/* the link button: outline "tube" frame → floods solid on hover (her outline/solid lettering pairs) */
.link {
  --x: 50%;
  --y: 50%;
  --t-fill: var(--surface); /* hollow title: fill + outline */
  --t-stroke: var(--line);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 13px 18px 13px 15px;
  color: var(--text);
  isolation: isolate;
  transition: transform 0.5s var(--ease-spring), color 0.35s var(--ease-out);
}
.link > :not(.sk) { position: relative; z-index: 1; }
.link > .sk .sk-shadow { fill: var(--shadow); }
.link > .sk .sk-base { fill: var(--surface); transition: fill 0.4s; }
.link > .sk .sk-flood { fill: var(--line); clip-path: circle(0px at var(--x) var(--y)); transition: clip-path 0.6s var(--ease-out); }
.link > .sk .sk-o { fill: none; stroke: var(--line); stroke-width: 7; transition: stroke 0.35s; }
.link > .sk .sk-i { fill: none; stroke: var(--surface); stroke-width: 3; transition: stroke 0.35s; }

.link__tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 46px;
  color: var(--tile-ink);
  isolation: isolate;
  transition: transform 0.5s var(--ease-spring), color 0.3s;
}
.link__tile .sk { z-index: -1; }
.link__tile .ico { width: 25px; height: 25px; }
/* brand marks (e.g. VGen) sit in the hand-cut tile like a sticker */
.link__logo { width: 40px; height: 40px; transition: transform 0.5s var(--ease-spring); }
.link__wordmark {
  display: inline-block;
  height: 1.3em;
  width: auto;
  margin-left: 0.1em;
  vertical-align: -0.34em;
  rotate: -4deg;
  filter: drop-shadow(0 3px 0 rgba(90, 0, 25, 0.28));
  transition: rotate 0.5s var(--ease-spring), scale 0.5s var(--ease-spring);
}
@media (hover: hover) {
  .link:hover .link__logo { transform: rotate(-12deg) scale(1.1); }
  .link:hover .link__wordmark { rotate: 3deg; scale: 1.08; }
}
.link__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.link__title {
  font: 400 21px/1.12 var(--font-display);
  letter-spacing: 0.012em;
  text-wrap: balance;
  color: var(--t-fill);
  -webkit-text-stroke: 3.4px var(--t-stroke);
  paint-order: stroke fill;
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.link__sub { font-size: 14.5px; line-height: 1.2; color: var(--muted); transition: color 0.35s; }
.link__arrow { flex: none; width: 26px; height: 26px; transition: transform 0.5s var(--ease-spring); }
.link__arrow .ico { width: 100%; height: 100%; }

@media (hover: hover) {
  .link:hover { transform: translateY(-3px) rotate(-0.6deg); color: var(--on-line); --t-fill: var(--line); --t-stroke: var(--on-line); }
  .link:hover > .sk .sk-flood { clip-path: circle(150% at var(--x) var(--y)); }
  .link:hover > .sk .sk-i { stroke: var(--line); }
  .link:hover .link__sub { color: var(--on-line); opacity: 0.78; }
  .link:hover .link__tile { transform: rotate(var(--hr, 8deg)) scale(1.08); }
  [data-theme="paper"] .link:hover:not(.link--featured) .link__tile { color: var(--tile); }
  [data-theme="paper"] .link:hover:not(.link--featured) .sk--tile .sk-fill { fill: #fff; }
  .link:hover .link__arrow { transform: translateX(4px) rotate(-35deg); }
}
.link:active { transform: scale(0.97) !important; transition-duration: 0.12s; }
.link.is-clicked { animation: squish 0.5s var(--ease-squish); }
@keyframes squish { 0% { scale: 1; } 30% { scale: 0.95 0.9; } 60% { scale: 1.03 1.02; } 100% { scale: 1; } }
@keyframes jiggle { 25% { rotate: -6deg; } 50% { rotate: 10deg; } 75% { rotate: 2deg; } }

/* featured — the pink sticker */
.link--featured { color: #fff; min-height: 90px; --t-fill: var(--pink); --t-stroke: #fff; }
.link--featured > .sk .sk-base { fill: var(--pink); }
.link--featured > .sk .sk-shadow { fill: rgba(247, 42, 83, 0.32); }
.link--featured > .sk .sk-flood { fill: #fff; }
.link--featured > .sk .sk-o { stroke: #fff; }
.link--featured > .sk .sk-i { stroke: var(--pink); }
.link--featured .link__sub { color: rgba(255, 255, 255, 0.88); }
.link--featured .link__tile { color: var(--pink); width: 58px; height: 52px; }
.link--featured .sk--tile .sk-fill { fill: #fff; }
.link--featured .sk--tile .sk-shadow { fill: rgba(120, 0, 30, 0.22); }
.link--featured .link__title { font-size: 22px; }
.link__tag {
  position: absolute !important;
  top: -14px;
  right: 16px;
  padding: 6px 13px 7px;
  border-radius: 11px;
  background: var(--yellow);
  color: #3b2a00;
  font: 400 17px/1 var(--font-btn);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.04em currentColor;
  paint-order: stroke fill;
  text-transform: uppercase;
  box-shadow: 0 0 0 2.5px #fff;
  rotate: 6deg;
  animation: tag 2.4s ease-in-out infinite;
}
@keyframes tag { 0%, 100% { rotate: 6deg; } 50% { rotate: -2deg; translate: 0 -2px; } }
.link__tag[data-state="closed"] { background: #b9c1e4; color: #2a2f52; animation: none; rotate: -4deg; }
.link__tag[data-state="waitlist"] { background: #ffd98a; }
@media (hover: hover) {
  .link--featured:hover { color: var(--pink); --t-fill: #fff; --t-stroke: var(--pink); }
  .link--featured:hover .link__sub { color: var(--pink); opacity: 0.85; }
  .link--featured:hover > .sk .sk-o { stroke: var(--pink); }
  .link--featured:hover > .sk .sk-i { stroke: #fff; }
  .link--featured:hover .link__tile { color: #fff; }
  .link--featured:hover .sk--tile .sk-fill { fill: var(--pink); }
}

/* focus — a dashed hand-drawn ring */
:focus-visible { outline: none; }
.link:focus-visible,
.pill:focus-visible,
.icon-btn:focus-visible,
.stamp:focus-visible,
.avatar__ring:focus-visible,
.social:focus-visible .social__tile {
  outline: 2.5px dashed var(--yellow);
  outline-offset: 5px;
}

/* ═════════════ reveal ═════════════ */
.reveal { opacity: 0; transform: translateY(18px) scale(0.97) rotate(-1deg); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--d, 0ms) var(--ease-out), transform 0.8s var(--d, 0ms) var(--ease-spring);
}
.status.reveal.in { transform: rotate(-3deg); }

/* ═════════════ footer ═════════════ */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 16px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}
/* embossed variant of the stamp — second logo on her sheet */
.emboss { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.9; }
.emboss__box {
  padding: 0 12px;
  border-radius: 10px;
  font: 700 26px/1.1 var(--font-logo);
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--bg);
  text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.35), 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.28), inset -1px -1px 0 rgba(0, 0, 0, 0.4), 1px 1px 0 rgba(255, 255, 255, 0.2), -1px -1px 0 rgba(0, 0, 0, 0.35);
}
.emboss__sub { font: 400 10px/1 var(--font-display); letter-spacing: 0.9em; padding-left: 0.9em; color: var(--bg); text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.3), 1px 1px 0 rgba(0, 0, 0, 0.4); }
.footer__note { margin: 4px 0 0; font: 800 17px/1 var(--font-display); }
.footer__copy { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ═════════════ fx ═════════════ */
.fx { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.particle { position: absolute; display: block; will-change: transform, opacity; }
.particle svg { width: 100%; height: 100%; overflow: visible; display: block; }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 12px;
  border-radius: 16px;
  background: var(--line);
  color: var(--on-line);
  font: 800 16px/1 var(--font-display);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line), 0 14px 30px var(--shadow);
  translate: -50% 140%;
  rotate: -2deg;
  opacity: 0;
  transition: translate 0.55s var(--ease-spring), opacity 0.3s;
  pointer-events: none;
}
.toast.is-on { translate: -50% 0; opacity: 1; }
.toast__ico { width: 18px; height: 18px; color: var(--yellow); fill: var(--yellow); }

/* ═════════════ theme transition (View Transitions API) ═════════════ */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ═════════════ responsive ═════════════ */
@media (max-width: 380px) {
  .link { gap: 11px; padding-right: 12px; }
  .link__tile { width: 46px; height: 42px; }
  .link__title { font-size: 19px; }
  .socials { gap: 8px; }
  .social__tile { width: 48px; height: 40px; }
}
@media (min-width: 900px) {
  .page { padding-top: 64px; }
}

/* ═════════════ reduced motion ═════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.12s !important; }
  .bg__pattern, .bg__blobs { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .corner .tube__o, .corner .tube__i { stroke-dashoffset: 0; }
}

/* ═════════════ stats panel ═════════════ */
.stats { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
.stats[hidden] { display: none; }
.stats__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 24, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.stats__sheet {
  --gap: var(--surface);
  position: relative;
  width: min(100%, 560px);
  max-height: min(92dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 2px var(--line), 0 -20px 50px rgba(0, 0, 0, 0.35);
  translate: 0 104%;
  transition: translate 0.55s var(--ease-out);
}
[data-theme="charcoal"] .stats__sheet { background: var(--bg-2); --gap: var(--bg-2); }
.stats__sheet::-webkit-scrollbar { width: 14px; }
.stats__sheet::-webkit-scrollbar-track { background: transparent; margin: 26px 0; }
.stats__sheet::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--line) 70%, transparent);
  background-clip: padding-box;
  border: 4px solid transparent;
  border-radius: 99px;
}
.stats__sheet::-webkit-scrollbar-thumb:hover { background-color: var(--line); }
.stats__sheet::-webkit-scrollbar-button { display: none; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  .stats__sheet { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
.stats.is-open .stats__backdrop { opacity: 1; }
.stats.is-open .stats__sheet { translate: 0 0; }
@media (min-width: 640px) {
  .stats { place-items: center; padding: 24px; }
  .stats__sheet { border-radius: 28px; translate: 0 40px; opacity: 0; scale: 0.96; transition: translate 0.55s var(--ease-spring), opacity 0.3s, scale 0.55s var(--ease-spring); }
  .stats.is-open .stats__sheet { opacity: 1; scale: 1; }
}
.stats__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stats__title { margin: 0; display: flex; gap: 10px; font: 800 36px/1 var(--font-display); text-transform: uppercase; }
.stats__title .hollow { color: var(--gap); }
.stats__close { opacity: 1; animation: none; width: 42px; height: 42px; box-shadow: 0 0 0 2px var(--line), 0 0 0 5px var(--gap), 0 0 0 7px var(--line); background: var(--gap); }
.stats__src { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; color: var(--muted); font-size: 14.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: none; }
.dot--server { background: #4fd18b; box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.2); animation: ping 2s ease-out infinite; }
.dot--off { background: #999; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(79, 209, 139, 0); } }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 16px; }
.seg button { padding: 7px 12px 8px; border-radius: 10px; font: 400 15px/1 var(--font-display); color: var(--text); transition: background-color 0.25s, color 0.25s; }
.seg button[aria-pressed="true"] { background: var(--line); color: var(--gap); }
.seg button:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--line) 16%, transparent); }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.hl {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--gap);
  -webkit-text-stroke: 3.2px var(--line);
  paint-order: stroke fill;
  letter-spacing: 0.012em;
}
.kpi {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 12px 14px 34px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 5px var(--gap), inset 0 0 0 7px var(--line);
  animation: kpi-in 0.6s var(--ease-spring) both;
}
.kpi:nth-child(2) { animation-delay: 0.05s; }
.kpi:nth-child(3) { animation-delay: 0.1s; }
.kpi:nth-child(4) { animation-delay: 0.15s; }
.kpi b { font-size: 46px; line-height: 1; -webkit-text-stroke-width: 4px; font-variant-numeric: tabular-nums; }
.kpi span { position: absolute; left: 16px; bottom: 13px; right: 12px; font-size: 14.5px; line-height: 1.15; color: var(--muted); text-align: left; }
.kpi--pink { background: var(--pink); color: #fff; box-shadow: 0 0 0 3px #fff inset; }
.kpi--pink b { color: var(--pink); -webkit-text-stroke-color: #fff; }
.kpi--pink span { color: rgba(255, 255, 255, 0.9); }
@keyframes kpi-in { from { opacity: 0; transform: translateY(10px) scale(0.95); } }

.stats__h { margin: 22px 0 12px; font-size: 22px; line-height: 1.1; }
.chartbox { position: relative; touch-action: pan-y; cursor: crosshair; border-radius: 12px; outline-offset: 6px; }
.chartbox:focus-visible { outline: 2.5px dashed var(--yellow); }
.chart { display: block; width: 100%; height: auto; overflow: visible; font: 11px var(--font-hand); }
.chart__guide { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; opacity: 0; transition: opacity 0.2s; }
.chartbox.is-scrub .chart__guide { opacity: 0.8; }
.chart__dot { transform-box: fill-box; transform-origin: center; transition: transform 0.25s var(--ease-spring); }
.chart__dot.is-on { transform: scale(1.9); }
.chart__tip {
  position: absolute;
  top: -8px;
  left: 0;
  display: grid;
  gap: 3px;
  min-width: 128px;
  padding: 8px 12px 9px;
  border-radius: 14px;
  background: var(--line);
  color: var(--gap);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 0 0 3px var(--gap), 0 0 0 5px var(--line), 0 10px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  translate: 0 -100%;
  scale: 0.92;
  transition: opacity 0.2s, scale 0.3s var(--ease-spring), left 0.18s var(--ease-out);
}
.chartbox.is-scrub .chart__tip { opacity: 1; scale: 1; }
.chart__tip b { font: 400 15px/1.1 var(--font-display); }
.tip__row { display: flex; align-items: center; gap: 7px; }
.tip__row i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tip__v { background: var(--gap); box-shadow: inset 0 0 0 2px var(--gap); }
.tip__c { background: var(--pink); }
.chart text { fill: var(--muted); }
.chart__base { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.6; }
.chart__area { fill: color-mix(in srgb, var(--line) 12%, transparent); }
.chart__views, .chart__clicks { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s 0.2s var(--ease-out) forwards; }
.chart__views { stroke: var(--line); }
.chart__clicks { stroke: var(--pink); }
.chart__dot { stroke: var(--gap); stroke-width: 2; }
.chart__dot--v { fill: var(--line); }
.chart__dot--c { fill: var(--pink); }
.legend { display: flex; gap: 16px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 16px; height: 3px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend__v::before { background: var(--line); }
.legend__c::before { background: var(--pink); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 18px; line-height: 1.2; }
.bar__num { font-variant-numeric: tabular-nums; }
.bar__track { height: 14px; margin: 6px 0 4px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--line); padding: 3px; }
.bar__fill {
  display: block;
  height: 100%;
  width: var(--w);
  min-width: 0;
  border-radius: 99px;
  background: var(--line);
  transform-origin: left;
  animation: grow 0.9s calc(0.15s + var(--i) * 0.05s) var(--ease-out) both;
}
.bar:first-child .bar__fill { background: var(--pink); }
.bar__meta { font-size: 12.5px; color: var(--muted); }
@keyframes grow { from { transform: scaleX(0); } }

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.mini li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent); padding-bottom: 5px; }
.mini li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); font-size: 14.5px; }

.statusbox {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 5px var(--gap), inset 0 0 0 7px var(--line);
}
.statusbox__now { display: flex; align-items: center; gap: 9px; margin: 2px 4px 0; font-size: 16px; }
.statusbox__now b { font: 400 18px/1 var(--font-display); }
.statusbox__note { margin: 0 4px; font-size: 13px; }
.dot--open { background: #4fd18b; box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.2); }
.dot--closed { background: #9aa3c7; }
.btn.btn--status { padding: 14px 18px 15px; font-size: 18px; background: var(--blue); color: #fff; }
.btn.btn--status.is-closed { background: var(--pink); }
.btn:disabled { opacity: 0.6; pointer-events: none; }
.stats__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  padding: 11px 18px 12px;
  border-radius: 14px;
  background: var(--line);
  color: var(--gap);
  font: 400 16px/1 var(--font-display);
  transition: transform 0.4s var(--ease-spring), background-color 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); }
.btn:active { transform: scale(0.94); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.keyform { display: grid; gap: 12px; margin-top: 10px; }
.keyform p { margin: 0; color: var(--muted); }
.keyform input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 0 0 2px var(--line);
}
.keyform input:focus { outline: 2.5px dashed var(--yellow); outline-offset: 3px; }

/* ═════════════ tabs: links ⇄ prices ═════════════ */
.tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 300px);
  margin: 2px auto 8px;
  padding: 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4.5px var(--bg), inset 0 0 0 6.5px var(--line);
}
.tabs[hidden] { display: none; }
.tabs__pill {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 9px;
  width: calc(50% - 9px);
  border-radius: 999px;
  background: var(--line);
  transition: translate 0.55s var(--ease-spring);
}
.tabs[data-active="prices"] .tabs__pill { translate: 100% 0; }
.tabs__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 0 10px;
  border-radius: 999px;
  font: 400 19px/1 var(--font-display);
  color: var(--bg);
  -webkit-text-stroke: 3px var(--line);
  paint-order: stroke fill;
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.tabs__tab .ico { width: 19px; height: 19px; color: var(--line); -webkit-text-stroke: 0; transition: color 0.3s, transform 0.5s var(--ease-spring); }
.tabs__tab[aria-selected="true"] { color: var(--on-line); -webkit-text-stroke-color: transparent; }
.tabs__tab[aria-selected="true"] .ico { color: var(--on-line); transform: rotate(-12deg) scale(1.1); }
.tabs__tab:focus-visible { outline: 2.5px dashed var(--yellow); outline-offset: 3px; }
.views { position: relative; }
.view[hidden] { display: none; }

/* ═════════════ price builder ═════════════ */
.prices { padding-top: 10px; }
.prices .group__title { margin-top: 6px; }

.pb-sale {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 6px 18px;
  padding: 10px 16px 11px;
  border-radius: 18px;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 10px 22px rgba(247, 42, 83, 0.3);
  rotate: -1.5deg;
}
.pb-sale__pct { font: 400 28px/1 var(--font-display); color: var(--pink); -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
.pb-sale span { font: 400 17px/1.1 var(--font-display); }
.pb-sale small { margin-left: auto; font-size: 13.5px; opacity: 0.9; white-space: nowrap; }

.pb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pb-card {
  --x: 50%;
  --y: 45%;
  --t-fill: var(--surface);
  --t-stroke: var(--line);
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px 12px 14px;
  text-align: left;
  color: var(--text);
  transition: transform 0.5s var(--ease-spring), color 0.35s;
  animation: card-in 0.65s calc(80ms + var(--i) * 70ms) var(--ease-spring) both;
}
@keyframes card-in { from { opacity: 0; translate: 0 16px; scale: 0.94; } }
.pb-card > :not(.sk) { position: relative; z-index: 1; }
.pb-card > .sk .sk-shadow { fill: var(--shadow); }
.pb-card > .sk .sk-base { fill: var(--surface); }
.pb-card > .sk .sk-flood { fill: var(--pink); clip-path: circle(0px at var(--x) var(--y)); transition: clip-path 0.6s var(--ease-out); }
.pb-card > .sk .sk-o { fill: none; stroke: var(--line); stroke-width: 7; transition: stroke 0.35s; }
.pb-card > .sk .sk-i { fill: none; stroke: var(--surface); stroke-width: 3; transition: stroke 0.35s; }
.pb-card[aria-checked="true"] { color: #fff; --t-fill: var(--pink); --t-stroke: #fff; transform: translateY(-3px) rotate(-1deg); }
.pb-card[aria-checked="true"] > .sk .sk-flood { clip-path: circle(150% at var(--x) var(--y)); }
.pb-card[aria-checked="true"] > .sk .sk-o { stroke: #fff; }
.pb-card[aria-checked="true"] > .sk .sk-i { stroke: var(--pink); }
@media (hover: hover) {
  .pb-card:hover:not([aria-checked="true"]) { transform: translateY(-3px) rotate(0.6deg); }
  .pb-card:hover .pb-card__img img { transform: scale(1.07) rotate(-1.5deg); }
}
.pb-card:active { transform: scale(0.96) !important; transition-duration: 0.12s; }
.pb-card:focus-visible { outline: 2.5px dashed var(--yellow); outline-offset: 4px; border-radius: 22px; }

.pb-card__img {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: 0 0 0 3px #fff;
  rotate: -1.5deg;
  transition: rotate 0.5s var(--ease-spring);
}
.pb-card:nth-child(even) .pb-card__img { rotate: 1.5deg; }
.pb-card[aria-checked="true"] .pb-card__img { rotate: 0deg; }
.pb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.pb-card__name {
  font: 400 18px/1.1 var(--font-display);
  color: var(--t-fill);
  -webkit-text-stroke: 3.2px var(--t-stroke);
  paint-order: stroke fill;
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.pb-card__price { display: flex; align-items: baseline; gap: 5px; font-size: 14.5px; }
.pb-card__price small { color: var(--muted); }
.pb-card__price s { color: var(--muted); }
.pb-card__price b { font: 400 18px/1 var(--font-display); }
.pb-card[aria-checked="true"] .pb-card__price :is(small, s) { color: rgba(255, 255, 255, 0.78); }
.pb-card__slots {
  position: absolute !important;
  top: 6px;
  right: 6px;
  padding: 4px 8px 5px;
  border-radius: 9px;
  background: var(--yellow);
  color: #3b2a00;
  font: 400 12.5px/1 var(--font-display);
  box-shadow: 0 0 0 2.5px #fff;
  rotate: 5deg;
}

.pb-panel { display: grid; gap: 18px; margin-top: 20px; }
.pb-includes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pb-includes li {
  padding: 5px 11px 6px;
  border-radius: 99px;
  font-size: 14px;
  color: var(--muted);
  box-shadow: inset 0 0 0 1.8px color-mix(in srgb, var(--line) 45%, transparent);
}
.pb-includes li::before { content: "\2726  "; color: var(--yellow); }
.pb-blurb { margin: 0 4px; color: var(--muted); font-size: 16px; }

.pb-opt { display: grid; gap: 9px; }
.pb-opt--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-opt__label {
  margin: 0;
  font: 400 19px/1.15 var(--font-display);
  color: var(--bg);
  -webkit-text-stroke: 3px var(--line);
  paint-order: stroke fill;
}
.pb-opt__label small { display: block; margin-top: 3px; font: 14px var(--font-hand); color: var(--muted); -webkit-text-stroke: 0; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px 10px;
  border-radius: 14px;
  color: var(--text);
  font-size: 15.5px;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color 0.25s, color 0.25s, transform 0.45s var(--ease-spring);
}
.pb-chip small { font-size: 13px; color: var(--muted); transition: color 0.25s; }
.pb-chip[aria-checked="true"],
.pb-chip[aria-pressed="true"] { background: var(--line); color: var(--on-line); transform: rotate(-1.5deg); animation: chip-pop 0.45s var(--ease-spring); }
.pb-chip[aria-checked="true"] small,
.pb-chip[aria-pressed="true"] small { color: var(--on-line); opacity: 0.75; }
@keyframes chip-pop { 40% { scale: 1.08; } }
@media (hover: hover) { .pb-chip:hover { transform: translateY(-2px); } }
.pb-chip:active { scale: 0.94; }
.pb-chip:focus-visible, .stepper button:focus-visible, .pb-order:focus-visible, .pb-reset:focus-visible { outline: 2.5px dashed var(--yellow); outline-offset: 3px; }
.pb-chip__box {
  position: relative;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px currentColor;
}
.pb-chip[aria-pressed="true"] .pb-chip__box { background: var(--pink); box-shadow: none; }
.pb-chip[aria-pressed="true"] .pb-chip__box::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  rotate: 42deg;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 4px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 2px var(--line);
}
.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--line);
  color: var(--on-line);
  font: 400 22px/1 var(--font-display);
  transition: transform 0.35s var(--ease-spring), opacity 0.2s;
}
.stepper button:disabled { opacity: 0.25; cursor: default; }
.stepper button:not(:disabled):active { transform: scale(0.85); }
.stepper output { min-width: 30px; text-align: center; font: 400 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stepper output.is-pop { animation: chip-pop 0.4s var(--ease-spring); }
.pb-reset { justify-self: start; margin-left: 4px; color: var(--muted); font-size: 14.5px; text-decoration: underline dashed; text-underline-offset: 4px; }

.pb-total {
  scroll-margin-bottom: 20px;
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 5;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 14px;
  margin-top: 24px;
  padding: 16px 18px 14px;
}
.pb-total > :not(.sk) { position: relative; z-index: 1; }
.pb-total > .sk .sk-shadow { fill: rgba(0, 0, 0, 0.3); }
.pb-total > .sk .sk-base { fill: var(--surface); }
.pb-total > .sk .sk-flood { display: none; }
.pb-total > .sk .sk-o { fill: none; stroke: var(--line); stroke-width: 7; }
.pb-total > .sk .sk-i { fill: none; stroke: var(--surface); stroke-width: 3; }
.pb-total__sum { display: grid; gap: 2px; }
.pb-total__label { font-size: 13.5px; color: var(--muted); }
.pb-total__line { display: flex; align-items: baseline; gap: 8px; }
.pb-total__old { font-size: 17px; color: var(--muted); }
.pb-total__num {
  display: inline-block;
  font: 400 36px/1 var(--font-display);
  color: var(--surface);
  -webkit-text-stroke: 4px var(--line);
  paint-order: stroke fill;
  font-variant-numeric: tabular-nums;
  transform-origin: left 70%;
}
.pb-total__num.is-bump { animation: bump 0.5s var(--ease-spring); }
.pb-total__num.is-dip { animation: dip 0.45s var(--ease-spring); }
@keyframes bump { 35% { transform: scale(1.18) rotate(-3deg); } }
@keyframes dip { 35% { transform: scale(0.9); } }
.pb-order {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px 9px 15px;
  border-radius: 16px;
  background: var(--pink);
  color: #fff;
  font: 400 16px/1 var(--font-display);
  white-space: nowrap;
  box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(247, 42, 83, 0.35);
  transition: transform 0.45s var(--ease-spring);
}
.pb-order img { height: 26px; width: auto; rotate: -4deg; transition: rotate 0.45s var(--ease-spring); }
@media (hover: hover) {
  .pb-order:hover { transform: translateY(-2px) rotate(-2deg); }
  .pb-order:hover img { rotate: 4deg; }
}
.pb-order:active { transform: scale(0.94); }
.pb-break { grid-column: 1 / -1; margin-top: -2px; font-size: 14px; }
.pb-break summary { cursor: pointer; list-style: none; color: var(--muted); width: max-content; }
.pb-break summary::-webkit-details-marker { display: none; }
.pb-break summary::before { content: "\25B8  "; display: inline-block; transition: rotate 0.3s var(--ease-out); }
.pb-break[open] summary::before { rotate: 90deg; }
.pb-break ul { display: grid; gap: 5px; margin: 8px 0 2px; padding: 0; list-style: none; }
.pb-break li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 5px; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 30%, transparent); }
.pb-break li s { color: var(--muted); font-size: 13px; }
.pb-note { margin: -4px 4px 0; font-size: 13px; color: var(--muted); }
.pb-total__num--talk { font-size: 28px; }

@media (max-width: 380px) {
  .pb-cards { gap: 10px; }
  .pb-card__name { font-size: 16.5px; }
  .pb-total__num { font-size: 31px; }
  .pb-order { font-size: 15px; padding: 8px 10px 8px 12px; }
  .pb-order img { height: 22px; }
}
