/* =========================================================================
   $PLOY · Ploy the Hippo — design system + components
   Palette: slate grey · watermelon red · leaf green · cream · ink
   Spacing: strict 8px scale (4 = half step)
   ========================================================================= */

/* ---------- Fonts (self-hosted, subset) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jbmono.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("../assets/fonts/lilita.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --ink: #161B22;
  --slate-900: #1E242C;
  --slate-800: #262D37;
  --slate-700: #3A4350;
  --slate-600: #4B5562;
  --slate-500: #5F6B7A;
  --ploy: #6B7684;
  --slate-300: #C9D0D8;
  --slate-200: #E2E6EB;
  --slate-100: #F1F3F5;
  --white: #FFFFFF;
  --melon-700: #A51E2D;
  --melon-600: #C42536;
  --melon-500: #E23B4A;
  --melon-100: #FDECEA;
  --leaf-800: #17552A;
  --leaf-700: #1F6F31;
  --leaf-600: #2B8A3E;
  --leaf-100: #E3F2E1;
  --cream: #FFF8EC;
  --cream-2: #FBF0DC;
  --on-dark: #F4F6F8;
  --on-dark-muted: #AEB7C2;
  --line: rgba(22, 27, 34, .10);
  --line-strong: rgba(22, 27, 34, .16);
  --line-dark: rgba(255, 255, 255, .12);

  /* spacing — 8px scale */
  --s-0: 4px; --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px;
  --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px; --s-16: 128px;

  /* radius */
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(22,27,34,.06), 0 1px 1px rgba(22,27,34,.04);
  --sh-2: 0 2px 4px rgba(22,27,34,.05), 0 8px 24px -4px rgba(22,27,34,.10);
  --sh-3: 0 4px 8px rgba(22,27,34,.06), 0 24px 48px -12px rgba(22,27,34,.22);
  --ring: 0 0 0 3px var(--white), 0 0 0 5px var(--leaf-600);

  /* type */
  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-xs: .75rem;      /* 12 */
  --t-sm: .875rem;     /* 14 */
  --t-base: 1rem;      /* 16 */
  --t-md: 1.0625rem;   /* 17 */
  --t-lg: clamp(1.0625rem, 1rem + .3vw, 1.25rem);      /* 17–20 */
  --t-xl: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);      /* 20–24 */
  --t-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); /* 18–21 */
  --t-h2: clamp(2rem, 1.55rem + 2vw, 3.25rem);          /* 32–52 */
  --t-h1: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);        /* 40–72 */

  --maxw: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-2)); }
body {
  margin: 0; font-family: var(--f-body); font-size: var(--t-base); line-height: 1.6; color: var(--slate-700);
  background: var(--cream); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.06; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
strong, b { font-weight: 650; color: var(--ink); }
code { font-family: var(--f-mono); }
.mono { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0; }
::selection { background: var(--melon-500); color: var(--white); }

.i { width: 1.125em; height: 1.125em; flex: none; display: inline-block; vertical-align: -0.18em; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--leaf-600); outline-offset: 3px; border-radius: var(--r-sm); }
.section--dark :focus-visible, .join :focus-visible, .footer :focus-visible, .lb :focus-visible { outline-color: #8FD19E; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--s-3) * 2); margin: 0 auto; padding: 0 var(--s-3); }
@media (max-width: 480px) { .wrap { padding: 0 var(--s-2); } }

.skip { position: absolute; left: var(--s-2); top: -100px; z-index: 200; background: var(--ink); color: var(--white); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: var(--s-2); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: var(--bh); padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: var(--t-base); line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { --bh: 40px; padding: 0 var(--s-2); font-size: var(--t-sm); }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: var(--t-md); }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: var(--white); box-shadow: var(--sh-2); }
.btn--primary:hover { background: var(--slate-800); transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn--melon { background: var(--melon-600); color: var(--white); box-shadow: 0 8px 20px -8px rgba(196,37,54,.55); }
.btn--melon:hover { background: var(--melon-700); transform: translateY(-2px); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--sh-1); }
.btn--secondary:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--slate-100); transform: translateY(-1px); }
.btn--tertiary { --bh: 48px; padding: 0 var(--s-1); background: none; color: var(--slate-700); border-radius: var(--r-sm); }
.btn--tertiary .i:last-child { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.btn--tertiary:hover { color: var(--ink); }
.btn--tertiary:hover .i:last-child { transform: translate(2px, -2px); }
.btn--xchat .i { color: #8FD19E; }

.iconrow { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.iconbtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.iconbtn .i { width: 18px; height: 18px; }
.iconbtn:hover { transform: translateY(-2px); background: var(--ink); color: var(--white); border-color: var(--ink); }
.iconrow--dark .iconbtn { background: rgba(255,255,255,.06); color: var(--on-dark); border-color: var(--line-dark); box-shadow: none; }
.iconrow--dark .iconbtn:hover { background: var(--white); color: var(--ink); }

.textlink { display: inline-flex; align-items: center; gap: var(--s-0); color: var(--leaf-700); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.textlink .i { width: 14px; height: 14px; }
.textlink:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); transition: background-color .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
/* blur lives on a pseudo-element so the fixed mobile menu is not trapped by backdrop-filter */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color .25s; pointer-events: none; }
.nav.is-scrolled::before { background: rgba(255, 248, 236, .82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22,27,34,.4); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; border-radius: var(--r-sm); }
.brand__mark { width: 40px; height: 40px; }
.brand__word { font-family: var(--f-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1; }
.brand__s { color: var(--melon-600); }
.brand--light { color: var(--white); }
.brand--light .brand__s { color: var(--melon-500); }
.nav__links { display: flex; align-items: center; gap: var(--s-0); }
.nav__links > a {
  position: relative; padding: var(--s-1) 12px; border-radius: var(--r-pill); text-decoration: none;
  font-size: var(--t-sm); font-weight: 550; color: var(--slate-700); transition: color .2s, background-color .2s;
}
.nav__links > a:hover { color: var(--ink); background: rgba(22,27,34,.05); }
.nav__links > a.is-active { color: var(--ink); background: var(--white); box-shadow: var(--sh-1); }
.nav__links > a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--melon-600); }
.nav__mobile-extra { display: none; }
.nav__cta { flex: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--white); border-radius: var(--r-pill); padding: 0; position: relative; }
.burger span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__links > a { padding: var(--s-1) 10px; }
}
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav { border-bottom-color: var(--line); }
  .nav::before { background: rgba(255, 248, 236, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  body.menu-open .nav::before { background: var(--cream); }
  .brand__mark { width: 36px; height: 36px; }
  .burger { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--s-3) var(--s-4);
    background: var(--cream); border-top: 1px solid var(--line); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .nav__links > a { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); padding: var(--s-2) 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links > a:hover { background: none; }
  .nav__links > a.is-active { background: none; box-shadow: none; color: var(--melon-600); }
  .nav__links > a.is-active::after { display: none; }
  .nav__mobile-extra { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
  .nav__mobile-extra .iconrow { justify-content: center; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Generic section ---------- */
.section { padding: var(--s-16) 0; position: relative; }
@media (max-width: 768px) { .section { padding: var(--s-10) 0; } }
.section--cream { background: var(--cream); }
.section--cream2 { background: var(--cream-2); }
.section--paper { background: var(--white); }
.section--leaf { background: var(--leaf-100); }
.section--dark { background: var(--slate-900); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3, .section--dark b, .section--dark strong { color: var(--white); }

.shead { max-width: 720px; margin-bottom: var(--s-8); }
.shead--center { margin-left: auto; margin-right: auto; text-align: center; }
.shead h2 { margin-top: var(--s-2); }
.shead .sub { margin-top: var(--s-2); font-size: var(--t-lg); line-height: 1.55; color: var(--slate-500); }
.section--dark .shead .sub { color: var(--on-dark-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-1); margin: 0;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-700);
}
.eyebrow::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--melon-500); }
.section--dark .eyebrow, .join .eyebrow { color: #8FD19E; }
.asof { display: inline-flex; align-items: center; gap: var(--s-1); padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-dark); font-size: var(--t-sm); font-weight: 500; color: var(--on-dark); }
.asof .i { width: 16px; height: 16px; color: #8FD19E; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + var(--s-8));
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(43,138,62,.10), transparent 60%),
    radial-gradient(700px 480px at 8% 0%, rgba(226,59,74,.07), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #FFF4E0 100%);
}
.hero::before { /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.11 0 0 0 0 0.13 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-8); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: var(--t-sm); font-weight: 600; color: var(--slate-700);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-600); box-shadow: 0 0 0 4px rgba(43,138,62,.18); }
.hero h1 { margin-top: var(--s-3); }
.hero h1 .hl { display: block; margin-top: var(--s-1); font-size: .56em; line-height: 1.12; letter-spacing: -0.02em; color: var(--slate-600); font-weight: 700; }
.hero h1 .hl::first-line { color: inherit; }
.hero__lead { margin-top: var(--s-3); max-width: 540px; font-size: var(--t-lg); line-height: 1.6; color: var(--slate-700); }

.ca {
  margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-1); max-width: 560px;
  padding: 6px 6px 6px var(--s-2); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line-strong); box-shadow: var(--sh-1);
}
.ca__label { flex: none; font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; color: var(--white); background: var(--ink); padding: 4px 8px; border-radius: 6px; }
.ca__addr { flex: 1; min-width: 0; font-size: var(--t-sm); font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.ca__btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 0;
  background: var(--slate-100); color: var(--ink); font-size: var(--t-sm); font-weight: 600; transition: background-color .2s, color .2s;
}
.ca__btn .i { width: 16px; height: 16px; }
.ca__btn:hover { background: var(--slate-200); }
.ca__btn.copied { background: var(--leaf-600); color: var(--white); }
.ca__btn--lg { height: 48px; padding: 0 var(--s-3); border-radius: var(--r-md); background: var(--white); font-size: var(--t-base); }
.ca__btn--lg:hover { background: var(--slate-100); }

.hero__ctas { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--s-1); }
.hero__ctas .btn--tertiary { margin-left: var(--s-1); }
.hero__social { margin-top: var(--s-3); display: flex; align-items: center; gap: var(--s-2); }
.hero__social-lbl { font-size: var(--t-sm); font-weight: 500; color: var(--slate-500); }

.hero__art { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.hero__halo { position: absolute; inset: 6% -6% -6% 6%; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--leaf-600), var(--leaf-700)); transform: rotate(3deg); opacity: .95; }
.hero__halo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.3px); background-size: 16px 16px; }
.hero__frame { position: relative; margin: 0; padding: 12px; border-radius: var(--r-xl); background: var(--white); box-shadow: var(--sh-3); transform: rotate(-1.5deg); }
.hero__frame img { width: 100%; aspect-ratio: 1; border-radius: calc(var(--r-xl) - 12px); background: var(--slate-100); }
.hero__frame figcaption { display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; font-size: var(--t-sm); font-weight: 500; color: var(--slate-700); }
.tag { flex: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--melon-600); color: var(--white); font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; }
.hero__sticker { position: absolute; top: -18px; right: -10px; width: 72px; height: 72px; display: grid; place-items: center; font-size: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-2); transform: rotate(12deg); }

.trust { list-style: none; margin: var(--s-10) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--sh-1); }
.trust li + li { border-left: 1px solid var(--line); }
.trust a { height: 100%; display: flex; align-items: center; gap: 12px; padding: var(--s-2) var(--s-3); text-decoration: none; font-size: var(--t-sm); color: var(--slate-500); line-height: 1.35; border-radius: var(--r-lg); transition: background-color .2s; }
.trust a:hover { background: rgba(255,255,255,.9); }
.trust b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.trust__ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--slate-100); color: var(--ink); }
.trust__ico .i { width: 20px; height: 20px; }
.trust__asof { margin-top: var(--s-1); text-align: right; font-size: var(--t-xs); color: var(--slate-500); }

.marquee { position: relative; margin-top: var(--s-8); background: var(--ink); color: var(--white); overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; align-items: center; gap: var(--s-4); width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-weight: 700; font-size: var(--t-base); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.marquee__track span:nth-child(8n+1) { color: #FF8A94; }
.marquee__track i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-600); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .hero__copy { max-width: 640px; }
  .hero__art { max-width: 440px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-4)); }
  .hero h1 .hl { font-size: .6em; }
  .hero__ctas .btn--lg { width: 100%; }
  .hero__ctas .btn--tertiary { width: 100%; }
  .hero__social { flex-wrap: wrap; gap: 12px; }
  .ca { padding-left: 12px; }
  .ca .ca__btn span { display: none; }
  .ca .ca__btn { width: 40px; padding: 0; justify-content: center; }
  .hero__art { max-width: min(320px, calc(100% - 32px)); }
  .hero__halo { inset: 5% -5% -5% 5%; }
  .hero__sticker { width: 56px; height: 56px; font-size: 30px; right: -4px; }
  .trust { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-6); }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line); }
  .trust a { padding: 12px var(--s-2); }
  .trust b { display: inline; font-size: 1.0625rem; margin-right: 4px; }
  .trust__asof { text-align: center; }
}

/* ---------- Who ---------- */
.who { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.who .shead { margin-bottom: var(--s-4); }
.prose { display: grid; gap: var(--s-2); font-size: var(--t-md); max-width: 600px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.fact {
  display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-3); border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.fact:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.fact b { display: block; font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 2px; }
.fact span:not(.fact__ico) { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
.fact__ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--slate-100); color: var(--slate-700); }
.fact__ico .i { width: 20px; height: 20px; }
.fact__ico--melon { background: var(--melon-100); color: var(--melon-600); }
@media (max-width: 960px) { .who { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } .fact { padding: var(--s-2); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.stat {
  position: relative; display: flex; flex-direction: column; padding: var(--s-4); border-radius: var(--r-lg); text-decoration: none;
  background: var(--slate-800); border: 1px solid var(--line-dark); color: var(--on-dark-muted); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background-color .25s;
}
a.stat:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); background: #2B333E; }
.stat__plat { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-sm); font-weight: 500; color: var(--on-dark-muted); }
.stat__plat .i { width: 16px; height: 16px; color: var(--white); }
.stat__num { margin-top: var(--s-3); font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 2.4rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--white); font-variant-numeric: tabular-nums; }
.stat__lbl { margin-top: var(--s-1); font-size: var(--t-lg); font-weight: 600; color: var(--on-dark); }
.stat__sub { margin-top: var(--s-0); font-size: var(--t-sm); color: var(--on-dark-muted); }
.stat__link { margin-top: auto; padding-top: var(--s-3); display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: #8FD19E; }
.stat__link .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
a.stat:hover .stat__link .i { transform: translate(2px, -2px); }
.stat--total { background: linear-gradient(150deg, var(--melon-600), #8E1824); border-color: transparent; }
.stat--total .stat__plat, .stat--total .stat__sub { color: rgba(255,255,255,.85); }
.stat--total::after { content: ""; position: absolute; right: -48px; bottom: -48px; width: 180px; height: 180px; border-radius: 50%; border: 24px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .stats { grid-template-columns: minmax(0, 1fr); } .stat { padding: var(--s-3); } }
/* ---------- Viral everywhere (inside #stats) ---------- */
.viral { margin-top: var(--s-10); padding-top: var(--s-8); border-top: 1px solid var(--line-dark); }
.viral__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: end; margin-bottom: var(--s-4); }
.viral__head h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--white); }
.viral__lede { margin: 0; color: var(--on-dark-muted); font-size: var(--t-md, 1rem); max-width: 520px; justify-self: end; }
.viral__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-3); align-items: stretch; }
.viral__side { display: grid; grid-template-rows: repeat(3, auto); gap: var(--s-3); }
.stat--ig { background: radial-gradient(120% 90% at 100% 0%, rgba(214,41,118,.22), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(254,218,117,.12), transparent 60%), var(--slate-800); }
.stat--ig .stat__plat .i { color: #F58BB4; }
.stat--mini { padding: var(--s-3); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "plat plat" "num lbl" "sub sub" "link link"; column-gap: var(--s-2); align-items: baseline; }
.stat--mini .stat__plat { grid-area: plat; }
.stat--mini .stat__num { grid-area: num; margin-top: var(--s-2); font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); }
.stat--mini .stat__lbl { grid-area: lbl; margin: 0; font-size: var(--t-md, 1rem); }
.stat--mini .stat__sub { grid-area: sub; margin-top: 4px; }
.stat--mini .stat__link { grid-area: link; padding-top: var(--s-2); }
.stat--mini .stat__plat .i { color: #FF5A5A; }
.stat--mini[href*="x.com"] .stat__plat .i { color: var(--white); }
.igembed { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.igembed__hint { font-size: var(--t-xs, .8125rem); color: var(--on-dark-muted); }
.igembed iframe { display: block; width: 100%; max-width: 420px; height: 680px; border: 0; border-radius: var(--r-md, 14px); background: var(--white); }
.igembed.is-loaded { justify-content: center; }
.btn--ig { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); color: var(--white); border-color: transparent; }
.btn--ig:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ig .i { width: 16px; height: 16px; }
.viral__note { margin: var(--s-3) 0 0; display: flex; gap: 10px; font-size: var(--t-sm); color: var(--on-dark-muted); }
.viral__note .i { width: 16px; height: 16px; margin-top: 3px; color: #8FD19E; flex: none; }
.press { margin-top: var(--s-6); }
.press__title { margin: 0 0 var(--s-2); display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.press__title .i { width: 16px; height: 16px; color: #8FD19E; }
.press__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.press__list a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r-md, 14px); border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); text-decoration: none; color: var(--on-dark); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.press__list a:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.press__list b { font-weight: 600; font-size: var(--t-sm); color: var(--white); }
.press__list span { font-size: var(--t-xs, .8125rem); color: var(--on-dark-muted); }
@media (max-width: 960px) { .viral__head { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } .viral__lede { justify-self: start; } .viral__grid { grid-template-columns: minmax(0, 1fr); } .press__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .viral { margin-top: var(--s-8); padding-top: var(--s-6); } }
@media (max-width: 480px) { .igembed iframe { height: 600px; } .igembed .btn { width: 100%; justify-content: center; } }


/* ---------- Timeline ---------- */
.tl { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; position: relative; }
.tl::before { content: ""; position: absolute; left: 111px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--slate-200), var(--slate-200)) ; border-radius: 2px; }
.tl__item { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: var(--s-6); padding-bottom: var(--s-3); }
.tl__item::before { content: ""; position: absolute; left: 105px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--ploy); z-index: 1; }
.tl__item--now::before { border-color: var(--melon-600); box-shadow: 0 0 0 6px rgba(196,37,54,.14); }
.tl__date { padding-top: 18px; text-align: right; font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.tl__card { padding: var(--s-3); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.tl__card:hover { transform: translateX(4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.tl__card p { margin-top: var(--s-1); color: var(--slate-700); }
.tl__item--now .tl__card { background: var(--cream); border-color: rgba(196,37,54,.25); }
.tl__badge { display: inline-block; margin-bottom: var(--s-1); padding: 3px 10px; border-radius: var(--r-pill); background: var(--leaf-100); color: var(--leaf-700); font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; }
.tl__badge--melon { background: var(--melon-600); color: var(--white); }
.tl__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: 12px !important; }
.tl__links a { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); font-weight: 600; color: var(--leaf-700); text-decoration: none; border-bottom: 1px solid rgba(31,111,49,.3); line-height: 1.5; }
.tl__links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.tl__links .i { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .tl::before { left: 7px; }
  .tl__item { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); padding-left: var(--s-4); }
  .tl__item::before { left: 1px; top: 5px; }
  .tl__date { padding-top: 0; text-align: left; font-size: 1rem; }
  .tl__card { padding: var(--s-2) 20px; }
}

/* ---------- Live ---------- */
.live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--s-8); align-items: center; }
.live .shead { margin-bottom: var(--s-4); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--melon-600); animation: pulse 1.6s ease-in-out infinite; }
.live .eyebrow::before { display: none; }
@keyframes pulse { 50% { opacity: .3; } }
.livebadge { display: inline-flex; align-items: center; vertical-align: middle; gap: 6px; margin-left: 6px; padding: 6px 12px 6px 10px; border-radius: var(--r-sm); background: var(--melon-600); color: var(--white); font-family: var(--f-body); font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; position: relative; top: -.3em; }
.livebadge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: pulse 1.6s ease-in-out infinite; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: var(--s-3); display: flex; gap: 10px; font-size: var(--t-sm); color: var(--slate-600); max-width: 520px; }
.note .i { width: 16px; height: 16px; margin-top: 3px; color: var(--leaf-700); }
.note a { color: var(--leaf-700); font-weight: 600; }
.live__frame { position: relative; min-height: 620px; display: grid; place-items: center; padding: var(--s-1); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; }
.live__frame::before { content: "Loading the zoo’s Facebook timeline…"; position: absolute; left: 0; right: 0; top: 50%; text-align: center; font-size: var(--t-sm); color: var(--slate-500); }
.live__frame:has(.live__ph)::before { display: none; }
.live__frame iframe { position: relative; z-index: 1; border: 0; width: 100%; max-width: 500px; height: 600px; border-radius: var(--r-md); }
.live__ph { text-align: center; color: var(--slate-500); display: grid; justify-items: center; gap: 12px; }
.live__ph-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--leaf-100); color: var(--leaf-700); }
.live__ph-ico .i { width: 28px; height: 28px; }
@media (max-width: 960px) { .live { grid-template-columns: minmax(0, 1fr); } .live__frame { min-height: 0; } }

/* ---------- Coming (cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: var(--s-4) var(--s-3) var(--s-3);
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.card p { color: var(--slate-600); font-size: var(--t-sm); line-height: 1.6; flex: 1; }
.card__ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--white); margin-bottom: var(--s-1); transition: transform .3s var(--ease); }
.card:hover .card__ico { transform: rotate(-6deg) scale(1.05); }
.card__ico .i { width: 22px; height: 22px; }
.card__ico--melon { background: var(--melon-600); }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--slate-100); color: var(--slate-700); font-size: var(--t-xs); font-weight: 650; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--slate-500); }
.status--leaf { background: var(--leaf-100); color: var(--leaf-700); }
.status--leaf::before { background: var(--leaf-600); }
.status--melon { background: var(--melon-100); color: var(--melon-700); }
.status--melon::before { background: var(--melon-600); }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Verify ---------- */
#verify { background: radial-gradient(800px 400px at 50% 0%, rgba(43,138,62,.16), transparent 70%), var(--slate-900); }
.vpanel { max-width: 920px; margin: 0 auto; padding: var(--s-4); border-radius: var(--r-xl); background: var(--slate-800); border: 1px solid var(--line-dark); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.vca { display: flex; align-items: center; gap: var(--s-2); padding: 12px 12px 12px var(--s-3); border-radius: var(--r-lg); background: var(--ink); border: 1px solid rgba(143,209,158,.35); }
.vca__label { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FD19E; }
.vca__label .i { width: 16px; height: 16px; }
.vca__addr { flex: 1; min-width: 0; font-size: clamp(.8125rem, .6rem + .7vw, 1.125rem); font-weight: 600; color: var(--white); letter-spacing: 0; word-break: break-all; line-height: 1.5; }
.vca__hint { margin-top: 12px; text-align: center; font-size: var(--t-sm); color: var(--on-dark-muted); }
.vca__hint b { font-family: var(--f-mono); color: var(--white); }
.warn { margin-top: var(--s-3); display: flex; gap: var(--s-2); padding: var(--s-2) 20px; border-radius: var(--r-md); background: rgba(196,37,54,.14); border: 1px solid rgba(226,59,74,.45); }
.warn__ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--melon-600); color: var(--white); }
.warn__ico .i { width: 18px; height: 18px; }
.warn p { color: #F2D4D7; font-size: var(--t-sm); line-height: 1.55; }
.warn p b { display: block; color: var(--white); font-size: var(--t-base); margin-bottom: 2px; }
.vlinks { max-width: 920px; margin: var(--s-3) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.vlink { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--r-md); background: var(--slate-800); border: 1px solid var(--line-dark); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, background-color .25s; }
.vlink:hover { transform: translateY(-3px); border-color: rgba(143,209,158,.5); background: #2B333E; }
.vlink__ico { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--white); }
.vlink__ico .i { width: 20px; height: 20px; }
.vlink b { font-size: var(--t-base); }
.vlink > span:not([class]) { font-size: var(--t-sm); color: var(--on-dark-muted); line-height: 1.45; }
.vlink__go { position: absolute; top: 20px; right: 20px; color: var(--on-dark-muted); transition: transform .2s var(--ease), color .2s; }
.vlink__go .i { width: 16px; height: 16px; }
.vlink:hover .vlink__go { color: #8FD19E; transform: translate(2px, -2px); }
.vgrid { max-width: 920px; margin: var(--s-6) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-3); }
.facts2 { padding: var(--s-4); border-radius: var(--r-lg); background: var(--slate-800); border: 1px solid var(--line-dark); }
.facts2 dl { margin: var(--s-2) 0 0; }
.facts2 dl > div { display: flex; justify-content: space-between; gap: var(--s-2); padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: var(--t-sm); }
.facts2 dt { color: var(--on-dark-muted); }
.facts2 dd { margin: 0; font-weight: 600; color: var(--white); text-align: right; display: inline-flex; align-items: center; gap: 6px; }
.dd-ico .i { width: 14px; height: 14px; }
.facts2 dd a { color: #8FD19E; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.facts2 dd a:hover { text-decoration: underline; }
.facts2 dd a .i { width: 14px; height: 14px; }
.facts2__note { margin-top: var(--s-2); display: flex; gap: var(--s-1); font-size: var(--t-xs); line-height: 1.55; color: var(--on-dark-muted); }
.facts2__note .i { width: 14px; height: 14px; margin-top: 2px; }
.chart { min-height: 360px; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); border: 1px solid var(--line-dark); display: grid; }
.chart iframe { width: 100%; height: 100%; min-height: 420px; border: 0; background: var(--white); }
.chart__ph { display: grid; place-content: center; justify-items: center; gap: 12px; padding: var(--s-4); text-align: center;
  background: linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,.04) 0) 0 0 / 100% 40px, linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255,255,255,.04) 0) 0 0 / 40px 100%; }
.chart__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(43,138,62,.18); color: #8FD19E; }
.chart__ico .i { width: 26px; height: 26px; }
.chart__ph b { font-family: var(--f-display); font-size: var(--t-xl); letter-spacing: -0.02em; }
.chart__ph p { font-size: var(--t-sm); max-width: 320px; }
.chart__ph .btn { margin-top: var(--s-1); }
.chart__alt { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); color: var(--on-dark-muted); }
.chart__alt:hover { color: var(--white); }
.chart__alt .i { width: 14px; height: 14px; }
.steps__title { max-width: 920px; margin: var(--s-10) auto var(--s-3); text-align: center; font-size: var(--t-xl); }
.steps { max-width: 920px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); counter-reset: s; }
.step { padding: var(--s-3); border-radius: var(--r-lg); background: var(--slate-800); border: 1px solid var(--line-dark); font-size: var(--t-sm); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.step__n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm); }
.step__ico { color: var(--on-dark-muted); }
.step__ico .i { width: 22px; height: 22px; }
.step b { display: block; font-size: var(--t-base); margin-bottom: 6px; line-height: 1.35; }
.step p { line-height: 1.6; }
.step a { color: #8FD19E; }
.step .mono { color: var(--white); }
@media (max-width: 960px) { .vlinks, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .vca { flex-wrap: wrap; row-gap: 12px; }
  .vca__label { flex-basis: 100%; }
  .vca__addr { font-size: 1rem; }
}
@media (max-width: 640px) {
  .vpanel { padding: var(--s-2); border-radius: var(--r-lg); }
  .vca { flex-wrap: wrap; padding: var(--s-2); gap: 12px; }
  .vca__addr { flex-basis: 100%; order: 2; font-size: .9375rem; }
  .vca .ca__btn { order: 3; width: 100%; justify-content: center; }
  .warn { padding: var(--s-2); }
  .facts2 { padding: var(--s-3); }
}
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .vlinks { gap: 12px; } .vlink { padding: var(--s-2); } .vlink__go { top: var(--s-2); right: var(--s-2); } }

/* ---------- Maker ---------- */
.maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; padding: var(--s-4); border-radius: var(--r-xl); background: var(--cream); border: 1px solid var(--line); }
.maker__stage { position: sticky; top: calc(var(--nav-h) + var(--s-3)); padding: 12px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); }
.maker__stage canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-md); background: var(--slate-100); }
.maker__ctl { display: grid; gap: var(--s-3); }
.maker__ctl fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.maker__ctl legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-family: var(--f-display); font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.01em; color: var(--ink); }
.lg-n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: var(--t-sm); font-weight: 800; }
.mk-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-1); }
.mk-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--white); aspect-ratio: 1; box-shadow: var(--sh-1); transition: transform .2s var(--ease), border-color .2s; }
.mk-thumbs button:hover { transform: translateY(-2px); }
.mk-thumbs button.is-on { border-color: var(--melon-600); box-shadow: 0 0 0 3px rgba(196,37,54,.18); }
.mk-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mk-tip { margin-top: 12px; display: flex; gap: var(--s-1); font-size: var(--t-sm); color: var(--slate-600); }
.mk-tip .i { width: 16px; height: 16px; margin-top: 3px; color: var(--melon-600); }
.mk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-fields label { display: grid; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--slate-700); }
.mk-fields input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--white); font-size: var(--t-base); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.mk-fields input:hover { border-color: var(--slate-300); }
.mk-fields input:focus { border-color: var(--leaf-600); box-shadow: 0 0 0 4px rgba(43,138,62,.16); outline: none; }
.mk-group { display: flex; align-items: center; gap: var(--s-2); }
.mk-group + .mk-group { margin-top: 12px; }
.mk-lbl { flex: none; width: 72px; font-size: var(--t-sm); font-weight: 600; color: var(--slate-600); }
.mk-row { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.mk-sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--white); background: var(--sw, var(--white)); box-shadow: 0 0 0 1px var(--line-strong); transition: transform .2s var(--ease), box-shadow .2s; display: grid; place-items: center; color: var(--slate-500); }
.mk-sw:hover { transform: scale(1.08); }
.mk-sw.is-on { box-shadow: 0 0 0 2px var(--ink); }
.mk-sw--none { background: var(--white); }
.mk-sw--none .i { width: 16px; height: 16px; }
.mk-st { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--white); font-size: 22px; line-height: 1; transition: transform .2s var(--ease), border-color .2s, background-color .2s; }
.mk-st--txt { font-family: "Lilita One", var(--f-display); font-size: var(--t-base); color: var(--leaf-700); }
.mk-st:hover { transform: translateY(-2px); border-color: var(--slate-300); }
.mk-st[aria-pressed="true"] { border-color: var(--leaf-600); background: var(--leaf-100); box-shadow: 0 0 0 3px rgba(43,138,62,.16); }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
@media (max-width: 960px) { .maker { grid-template-columns: minmax(0, 1fr); padding: var(--s-3); } .maker__stage { position: relative; top: 0; max-width: 520px; width: 100%; margin: 0 auto; } }
@media (max-width: 560px) {
  .maker { padding: var(--s-2); border-radius: var(--r-lg); }
  .mk-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-fields { grid-template-columns: minmax(0, 1fr); }
  .mk-group { flex-direction: column; align-items: flex-start; gap: var(--s-1); }
  .mk-actions .btn { width: 100%; }
}

/* ---------- Memes ---------- */
.gtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 var(--s-2); border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); font-size: var(--t-sm); font-weight: 600; color: var(--slate-700); transition: background-color .2s, color .2s, border-color .2s; }
.chip .i { width: 16px; height: 16px; }
.chip small { font-size: var(--t-xs); font-weight: 600; color: var(--slate-500); background: var(--slate-100); padding: 1px 7px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip.is-on small { background: rgba(255,255,255,.16); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.g { position: relative; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--white); box-shadow: var(--sh-1); text-align: left; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.g img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.g span { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-4) 12px 12px; font-size: var(--t-sm); font-weight: 600; line-height: 1.35; color: var(--white); background: linear-gradient(transparent, rgba(22,27,34,.88)); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease); }
.g:hover, .g:focus-visible { transform: translateY(-4px); box-shadow: var(--sh-3); }
.g:hover img { transform: scale(1.04); }
.g:hover span, .g:focus-visible span { opacity: 1; transform: none; }
.g.is-hidden { display: none; }
.g.pop { animation: pop .4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
@media (hover: none) { .g span { opacity: 1; transform: none; padding-top: var(--s-3); font-size: var(--t-xs); } }
.gmore { margin-top: var(--s-6); display: grid; justify-items: center; gap: var(--s-2); }
.gcount { font-size: var(--t-sm); color: var(--slate-500); font-variant-numeric: tabular-nums; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .gtools .btn { width: 100%; } .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--s-2) * -1); padding: 2px var(--s-2) 6px; scrollbar-width: none; width: calc(100% + var(--s-4)); } .chips::-webkit-scrollbar { display: none; } .chip { flex: none; } }

/* ---------- Join ---------- */
.join { color: rgba(255,255,255,.86); background: radial-gradient(700px 400px at 90% 0%, rgba(255,255,255,.10), transparent 60%), linear-gradient(160deg, var(--leaf-700) 0%, var(--leaf-800) 60%, #103D1E 100%); overflow: hidden; }
.join::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.join__inner { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.join h2 { color: var(--white); }
.join .shead { margin-bottom: var(--s-3); }
.join__p { font-size: var(--t-lg); line-height: 1.6; max-width: 480px; }
.sig { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.18); font-size: var(--t-base); font-style: italic; color: rgba(255,255,255,.86); max-width: 480px; }
.sig a { color: var(--white); font-weight: 700; font-style: normal; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 3px; }
.sig a:hover { text-decoration-color: var(--white); }
.join__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.jcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--s-3); border-radius: var(--r-lg); text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.8); transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.jcard:hover { transform: translateY(-4px); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.jcard b { margin-top: 12px; font-size: var(--t-md); color: var(--white); }
.jcard__txt { font-size: var(--t-sm); line-height: 1.5; }
.jcard__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--white); }
.jcard__ico .i { width: 20px; height: 20px; }
.jcard__arrow { position: absolute; top: var(--s-3); right: var(--s-3); transition: transform .2s var(--ease); }
.jcard__arrow .i { width: 18px; height: 18px; }
.jcard:hover .jcard__arrow { transform: translate(2px, -2px); }
.jcard--feature { grid-column: 1 / -1; padding: var(--s-4); background: var(--white); color: var(--slate-700); border-color: transparent; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.jcard--feature:hover { background: var(--white); border-color: transparent; transform: translateY(-4px); }
.jcard--feature b { font-family: var(--f-display); font-size: var(--t-xl); letter-spacing: -0.02em; color: var(--ink); margin-top: var(--s-2); }
.jcard--feature .jcard__txt { font-size: var(--t-base); line-height: 1.6; color: var(--slate-700); margin-top: 4px; }
.jcard__head { display: flex; align-items: center; justify-content: space-between; }
.jcard--feature .jcard__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); }
.jcard--feature .jcard__ico .i { width: 24px; height: 24px; }
.jcard__badge { padding: 4px 12px; border-radius: var(--r-pill); background: var(--leaf-100); color: var(--leaf-700); font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.jcard__go { margin-top: var(--s-3); align-self: flex-start; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 48px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-weight: 600; transition: background-color .2s; }
.jcard__go .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.jcard--feature:hover .jcard__go { background: var(--slate-800); }
.jcard--feature:hover .jcard__go .i { transform: translateX(3px); }
@media (max-width: 960px) { .join__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
@media (max-width: 480px) { .join__grid { grid-template-columns: minmax(0, 1fr); } .jcard--feature { padding: var(--s-3); } .jcard__go { width: 100%; justify-content: center; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: var(--s-12) 0 var(--s-4); font-size: var(--t-sm); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--s-6); padding-bottom: var(--s-8); border-bottom: 1px solid var(--line-dark); }
.footer__brand p { margin: var(--s-2) 0 var(--s-3); max-width: 320px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__col h2 { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.footer__col a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.fca { display: inline-flex; align-items: center; gap: var(--s-1); padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: var(--white); font-size: var(--t-xs); font-weight: 600; transition: background-color .2s, border-color .2s; }
.fca code { font-size: var(--t-xs); color: #8FD19E; }
.fca .i { width: 14px; height: 14px; }
.fca:hover { background: rgba(255,255,255,.12); }
.fca.copied { border-color: #8FD19E; }
.footer__bottom { padding-top: var(--s-4); display: grid; gap: var(--s-2); }
.footer__disc { max-width: 820px; font-size: var(--t-xs); line-height: 1.6; color: var(--on-dark-muted); }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.footer__fan { font-size: var(--t-xs); color: var(--on-dark-muted); }
.totop { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--white); text-decoration: none; }
.totop .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.totop:hover .i { transform: translateY(-2px); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer { padding-top: var(--s-10); } .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); } .footer__verify { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-2); padding: var(--s-3); background: rgba(14,17,22,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; justify-self: center; max-width: min(820px, 100%); display: grid; gap: var(--s-2); }
.lb__fig img { max-height: calc(100vh - 160px); width: auto; margin: 0 auto; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb__fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--white); font-weight: 600; }
.lb__actions { display: flex; gap: var(--s-1); }
.lb__close, .lb__nav { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--white); transition: background-color .2s; }
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.2); }
.lb__close .i, .lb__nav .i { width: 22px; height: 22px; }
.lb__close { position: absolute; top: var(--s-2); right: var(--s-2); }
@media (max-width: 640px) { .lb { grid-template-columns: minmax(0, 1fr); padding: var(--s-8) var(--s-2) var(--s-2); } .lb__nav { position: absolute; bottom: var(--s-2); } .lb__prev { left: var(--s-2); } .lb__next { right: var(--s-2); } .lb__fig img { max-height: calc(100vh - 220px); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: var(--s-3); z-index: 400; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-size: var(--t-sm); font-weight: 600; box-shadow: var(--sh-3); transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
@media print { .nav, .marquee, .lb, .toast { display: none; } .reveal { opacity: 1; transform: none; } }
.viral__side { align-content: start; }
a.stat__link { text-decoration: none; }
a.stat__link:hover .i { transform: translate(2px, -2px); }

/* ---------- Security notice (Telegram) ---------- */
.alertbar {
  position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-3);
  margin: 0 0 var(--s-6); padding: var(--s-2) var(--s-3); border-radius: var(--r-md);
  background: var(--white); border: 1px solid rgba(196,37,54,.22); border-left: 4px solid var(--melon-600);
  box-shadow: var(--sh-1); color: var(--ink);
}
.alertbar__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--melon-100); color: var(--melon-600); flex: none; }
.alertbar__ico .i { width: 22px; height: 22px; }
.alertbar__tag { margin: 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--melon-600); }
.alertbar__title { margin: 2px 0 4px; font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.alertbar__text { margin: 0; font-size: var(--t-sm); line-height: 1.55; color: var(--slate-700, #3A4350); max-width: 760px; }
.alertbar__text a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--melon-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.alertbar__text a:hover { color: var(--melon-600); }
.alertbar__links { display: flex; flex-direction: column; gap: 8px; }
.alertbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s, transform .2s var(--ease); }
.alertbar__btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.alertbar__btn .i { width: 16px; height: 16px; }
@media (max-width: 960px) { .alertbar { grid-template-columns: auto minmax(0, 1fr); } .alertbar__links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 560px) {
  .alertbar { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: var(--s-2); margin-bottom: var(--s-4); }
  .alertbar__ico { width: 40px; height: 40px; position: absolute; top: var(--s-2); right: var(--s-2); }
  .alertbar__tag, .alertbar__title { padding-right: 52px; }
  .alertbar__title { font-size: 1.0625rem; }
  .alertbar__text { font-size: .9375rem; padding-right: 0; }
  .alertbar__links { flex-direction: column; }
  .alertbar__btn { width: 100%; min-height: 44px; }
}

/* ---------- Top Ployer posts ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.asof--light { border-color: var(--line-strong); background: var(--white); color: var(--slate-700); box-shadow: var(--sh-1); }
.asof--light .i { color: var(--leaf-700); }
#top-posts .shead { margin-bottom: var(--s-3); }
.tposts__asof { margin: 0 0 var(--s-6); text-align: center; }
.tposts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); counter-reset: none; }
.tpost { display: flex; min-width: 0; }
.tpost--top { grid-column: span 2; }
.tpost__card {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3);
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tpost__card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.tpost--top .tpost__card {
  padding: var(--s-4); background: radial-gradient(520px 260px at 100% 0%, rgba(226,59,74,.08), transparent 70%), var(--cream);
  border-color: rgba(196,37,54,.22);
}
.tpost__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tpost__head .status { margin-left: auto; align-self: center; }
.tpost__rank {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 14px;
  background: var(--ink); color: var(--white); font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tpost__rank > span[aria-hidden] { opacity: .55; margin-right: 1px; font-weight: 700; }
.tpost--top .tpost__rank { background: var(--melon-600); min-width: 52px; height: 52px; font-size: 1.375rem; border-radius: 16px; }
.tpost__author { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.tpost__ava { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--slate-100); color: var(--ink); border: 1px solid var(--line); transition: background-color .2s, color .2s; }
.tpost__ava .i { width: 15px; height: 15px; }
.tpost__author:hover .tpost__ava { background: var(--ink); color: var(--white); }
.tpost__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tpost__who b { font-weight: 700; font-size: var(--t-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpost__who small { font-size: var(--t-xs); color: var(--slate-500); font-weight: 500; }
.tpost__author:hover b { text-decoration: underline; text-decoration-color: var(--melon-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tpost__text { margin: 0; flex: 1; position: relative; }
.tpost__text p { margin: 0; color: var(--slate-700); font-size: var(--t-base); line-height: 1.6; overflow-wrap: anywhere; }
.tpost--top .tpost__text { padding-left: var(--s-3); border-left: 3px solid var(--melon-500); }
.tpost--top .tpost__text p { font-family: var(--f-display); font-weight: 650; font-size: var(--t-xl); line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.tpost__metrics { list-style: none; margin: 0; padding: var(--s-2) 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tpost__m { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--slate-500); white-space: nowrap; }
.tpost__m b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tpost__mi { display: inline-grid; place-items: center; color: var(--slate-500); }
.tpost__mi .i { width: 16px; height: 16px; }
.tpost__m--likes .tpost__mi { color: var(--melon-600); }
.tpost__m--reposts .tpost__mi { color: var(--leaf-600); }
.tpost__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--leaf-700); text-decoration: none; border-radius: var(--r-sm); }
.tpost__link .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.tpost__link:hover { color: var(--ink); }
.tpost__link:hover .i { transform: translate(2px, -2px); }
.tposts__foot { display: flex; align-items: flex-start; justify-content: center; gap: var(--s-1); max-width: 720px; margin: var(--s-5) auto 0; font-size: var(--t-sm); color: var(--slate-500); text-align: left; }
.tposts__foot .i { width: 16px; height: 16px; margin-top: 3px; color: var(--slate-500); }
@media (max-width: 1024px) { .tposts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tposts { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .tpost--top { grid-column: auto; }
  .tpost__card, .tpost--top .tpost__card { padding: 20px; }
  .tpost--top .tpost__text { padding-left: var(--s-2); }
  .tpost--top .tpost__text p { font-size: var(--t-lg); }
  .tpost__metrics { gap: 8px 14px; }
  .tposts__asof { margin-bottom: var(--s-4); }
}
@media (prefers-reduced-motion: reduce) { .tpost__card, .tpost__card:hover { transition: none; transform: none; } }

/* ---------- Donations notice (hero) ---------- */
.donatebar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin: calc(var(--s-6) * -1 + var(--s-1)) 0 var(--s-6); padding: 10px 12px 10px 14px; border-radius: var(--r-md); background: var(--leaf-100); border: 1px solid rgba(43,138,62,.22); color: var(--leaf-800); text-decoration: none; font-size: var(--t-sm); line-height: 1.45; transition: border-color .2s, transform .2s var(--ease); }
.donatebar:hover { border-color: var(--leaf-600); transform: translateY(-1px); }
.donatebar__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--white); }
.donatebar__ico .i { width: 18px; height: 18px; color: var(--melon-600); }
.donatebar__txt { flex: 1; min-width: 0; color: var(--slate-700); }
.donatebar__txt b { color: var(--leaf-800); }
.donatebar__go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--leaf-700); color: var(--white); font-weight: 600; }
.donatebar__go .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.donatebar:hover .donatebar__go .i { transform: translateX(2px); }
@media (max-width: 560px) {
  .donatebar { flex-wrap: wrap; margin-top: calc(var(--s-4) * -1 + var(--s-1)); margin-bottom: var(--s-4); padding: 12px var(--s-2); }
  .donatebar__txt { flex-basis: calc(100% - 44px); font-size: .9375rem; }
  .donatebar__go { margin-left: 44px; min-height: 36px; }
}

/* ---------- Donate ---------- */
.donate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-4); align-items: start; }
.donate__h { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.uses { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 12px; }
.uses li { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-2); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.uses__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--white); }
.uses__ico .i { width: 20px; height: 20px; }
.uses__ico--melon { background: var(--melon-600); }
.uses b { display: block; font-weight: 700; color: var(--ink); }
.uses li > div > span { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--slate-600); line-height: 1.5; }
.donate__fine { margin: var(--s-3) 0 0; display: flex; gap: 10px; font-size: var(--t-sm); color: var(--slate-600); line-height: 1.55; }
.donate__fine .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--leaf-700); }

.wcard { padding: var(--s-4); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.wcard__head { display: flex; flex-direction: column; gap: 10px; }
.wcard__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--slate-100); font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-700); }
.wcard__badge .i { width: 14px; height: 14px; }
.wcard__body { margin-top: var(--s-3); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.wcard__qr { display: block; width: 196px; height: 196px; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--white); image-rendering: pixelated; }
.wcard__lbl { margin: 0 0 8px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); }
.wcard__addr { display: block; padding: 12px 14px; border-radius: var(--r-sm); background: var(--slate-100); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .9375rem; font-weight: 600; line-height: 1.5; color: var(--ink); word-break: break-all; user-select: all; }
.wcard__acts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.wcard__acts .i { width: 16px; height: 16px; }
.wcard__acts .copied { background: var(--leaf-600); }
.wcard__warn { margin-top: var(--s-3); display: flex; gap: 12px; padding: 14px var(--s-2); border-radius: var(--r-md); background: var(--melon-100); color: var(--slate-700); font-size: var(--t-sm); line-height: 1.5; }
.wcard__warn > .i { flex: none; width: 20px; height: 20px; color: var(--melon-600); margin-top: 1px; }
.wcard__warn p { margin: 0; }
.wcard__warn b { color: var(--ink); }
.wcard__warn code { font-family: var(--f-mono); font-weight: 700; color: var(--ink); }

.dform { margin-top: var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.dform__intro p { margin: var(--s-2) 0 0; color: var(--slate-600); line-height: 1.6; }
.dform__steps { margin: var(--s-3) 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.dform__steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); color: var(--slate-700); line-height: 1.5; }
.dform__steps li::before { content: counter(st); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf-100); color: var(--leaf-700); font-weight: 700; font-size: var(--t-xs); }
.dform__form { display: grid; gap: var(--s-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.req { color: var(--melon-600); }
.field__opt { font-weight: 400; color: var(--slate-500); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--white); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--leaf-600); box-shadow: 0 0 0 3px rgba(43,138,62,.18); }
.field input[aria-invalid="true"] { border-color: var(--melon-600); }
.field__pre { position: relative; }
.field__pre > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-500); font-weight: 600; }
.field__pre input { padding-left: 32px; }
.field small { font-size: var(--t-xs); color: var(--slate-500); }
.dform__err { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--melon-100); color: var(--melon-700); font-size: var(--t-sm); font-weight: 600; }
.dform__submit { justify-self: start; }
.dform__submit .i { width: 18px; height: 18px; }
.dform__submit[disabled] { opacity: .6; pointer-events: none; }
.dform__note { margin: 0; font-size: var(--t-xs); color: var(--slate-500); }
.dform__ok { display: flex; gap: 12px; padding: var(--s-2); border-radius: var(--r-md); background: var(--leaf-100); color: var(--leaf-800); }
.dform__ok[hidden] { display: none; }
.dform__ok > .i { flex: none; width: 22px; height: 22px; color: var(--leaf-600); }
.dform__ok p { margin: 4px 0 0; font-size: var(--t-sm); color: var(--slate-700); }

.dwall { margin-top: var(--s-8); }
.dwall__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s-3); }
.dwall__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--slate-500); }
.dwall__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.dcard { display: flex; flex-direction: column; gap: 12px; padding: var(--s-3); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.dcard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.dcard__who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.dcard__who b { overflow-wrap: anywhere; }
a.dcard__who:hover b { text-decoration: underline; }
.dcard__ava { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); }
.dcard__ava .i { width: 16px; height: 16px; }
.dcard__amt { font-family: var(--f-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dcard__tok { font-size: .8em; color: var(--slate-600); }
.dcard__plus { color: var(--slate-400, #8A95A3); }
.dcard__reason { margin: 0; padding: 12px 14px; border-left: 3px solid var(--slate-200); background: var(--slate-100); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.dcard__reason p { margin: 0; font-size: var(--t-sm); line-height: 1.55; color: var(--slate-700); overflow-wrap: anywhere; }
.dcard__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--t-xs); color: var(--slate-500); }
.dcard__ver { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--leaf-700); }
.dcard__ver .i { width: 14px; height: 14px; }
.dcard__meta a { color: var(--slate-600); }
.dcard__tx { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
.dcard__tx .i { width: 12px; height: 12px; }
.dwall__empty { padding: var(--s-6) var(--s-3); border-radius: var(--r-lg); border: 2px dashed var(--slate-300); background: rgba(255,255,255,.6); text-align: center; color: var(--slate-600); }
.dwall__emptyico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--melon-100); color: var(--melon-600); }
.dwall__emptyico .i { width: 28px; height: 28px; }
.dwall__emptyt { margin: var(--s-2) 0 6px; font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); color: var(--ink); }
.dwall__empty p:last-child { margin: 0 auto; max-width: 480px; font-size: var(--t-sm); line-height: 1.6; }
@media (max-width: 1024px) { .dwall__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .donate, .dform { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .wcard, .dform { padding: var(--s-3) var(--s-2); }
  .wcard__body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .wcard__addrwrap { width: 100%; }
  .wcard__acts .btn { flex: 1 1 100%; justify-content: center; }
  .dwall__list { grid-template-columns: minmax(0, 1fr); }
  .dform__submit { justify-self: stretch; justify-content: center; }
  .dform { margin-top: var(--s-6); }
}

/* ============ REAL PLOY (posts from X) ============ */
.rps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-3); align-items: stretch; }
.rp__card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s; }
.rp__card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.rp__media { position: relative; aspect-ratio: 4 / 3; background: var(--slate-800); overflow: hidden; }
.rp__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp__media.is-embed { aspect-ratio: auto; background: var(--white); padding: var(--s-2); max-height: 760px; overflow-y: auto; }
.rp__media.is-embed .twitter-tweet { margin: 0 auto !important; }
.rp__type, .rp__dur { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(30,36,44,.82); color: var(--white); font-size: var(--t-xs); font-weight: 700; }
.rp__type { left: 10px; } .rp__dur { right: 10px; font-family: var(--f-mono); font-weight: 600; }
.rp__type .i { width: 13px; height: 13px; }
.rp__load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: rgba(255,255,255,.94); color: var(--ink); font: inherit; font-weight: 700; font-size: var(--t-sm); box-shadow: var(--sh-2); cursor: pointer; transition: transform .15s, background .15s; }
.rp__load .i { width: 18px; height: 18px; color: var(--leaf-700); }
.rp__load:hover { background: var(--white); transform: translate(-50%, -50%) scale(1.05); }
.rp__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.rp__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin: 0; font-size: var(--t-sm); color: var(--slate-500); }
.rp__body h3 { margin: 0; font-size: var(--t-lg); line-height: 1.25; }
.rp__cap { margin: 0; color: var(--slate-600); font-size: var(--t-sm); line-height: 1.55; }
.rp__why { font-size: var(--t-xs); color: var(--slate-600); }
.rp__why summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 650; color: var(--leaf-700); list-style: none; min-height: 32px; }
.rp__why summary::-webkit-details-marker { display: none; }
.rp__why summary .i { width: 15px; height: 15px; }
.rp__why p { margin: 4px 0 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--leaf-100); line-height: 1.5; }
.rp__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.rp__by { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: var(--ink); }
.rp__by > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rp__by b { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp__by small { font-size: var(--t-xs); color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.rp__by:hover b { text-decoration: underline; }
.rp__ava { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); }
.rp__ava .i { width: 14px; height: 14px; }
.rp__link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: var(--t-sm); font-weight: 650; color: var(--leaf-700); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.rp__link .i { width: 14px; height: 14px; }
.rps__foot { display: flex; gap: var(--s-2); max-width: 760px; margin: var(--s-5) auto 0; font-size: var(--t-sm); color: var(--slate-500); line-height: 1.55; }
.rps__foot .i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--leaf-700); }
.rps__foot a { color: var(--leaf-700); font-weight: 600; }
.xm__metrics { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.xm__metrics li { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); color: var(--slate-500); white-space: nowrap; }
.xm__metrics b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.xm__mi .i { width: 14px; height: 14px; display: block; }

/* ============ FROM THE PLOYERS ON X ============ */
.xfeed { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px dashed var(--line-strong); }
.xfeed__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-3); }
.xfeed__head > div:first-child { max-width: 620px; }
.xfeed__head h3 { margin: var(--s-1) 0 var(--s-1); font-size: var(--t-h3); }
.xfeed__head p:not(.eyebrow) { margin: 0; color: var(--slate-500); line-height: 1.55; }
.xfeed__head .eyebrow .i { width: 13px; height: 13px; }
.xfeed__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); }
.xfeed__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s-3); }
.xf__card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.xf__card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.xf__media { position: relative; display: block; aspect-ratio: 1; background: var(--slate-100); overflow: hidden; }
.xf__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xf__play, .xf__more { position: absolute; display: grid; place-items: center; border-radius: var(--r-pill); background: rgba(30,36,44,.82); color: var(--white); font-size: var(--t-xs); font-weight: 700; }
.xf__play { left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); }
.xf__play .i { width: 20px; height: 20px; }
.xf__more { right: 8px; bottom: 8px; padding: 3px 9px; }
.xf__foot { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.xf__who { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: var(--t-sm); }
.xf__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xf__who time { flex: none; font-size: var(--t-xs); color: var(--slate-500); }
.xf__card:hover .xf__who b { text-decoration: underline; }
.xfeed__empty { padding: var(--s-3); text-align: center; color: var(--slate-500); background: var(--white); border-radius: var(--r-md); }
@media (max-width: 640px) {
  .xfeed__side { align-items: flex-start; }
  .xfeed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .xf__foot { padding: 8px 10px 10px; }
  .xf__foot .xm__metrics li:nth-child(3) { display: none; }
}

/* ---- Real Ploy gallery: filter tabs, photo cards, show more, lightbox ---- */
.rpbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin: 0 0 var(--s-4); }
.rptabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); max-width: 100%; overflow-x: auto; }
.rptab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--slate-600); font: inherit; font-size: var(--t-sm); font-weight: 650; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.rptab .i { width: 15px; height: 15px; }
.rptab span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--slate-100, #eef1f4); color: var(--slate-600); font-size: var(--t-xs); font-family: var(--f-mono); }
.rptab:hover { color: var(--ink); background: var(--slate-100, #eef1f4); }
.rptab.is-on { background: var(--ink); color: var(--white); }
.rptab.is-on span { background: rgba(255,255,255,.18); color: var(--white); }
.rptab:focus-visible { outline: 3px solid var(--leaf-600); outline-offset: 2px; }
.rpbar__note { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--t-sm); color: var(--slate-500); }
.rpbar__note .i { width: 15px; height: 15px; color: var(--leaf-700); }
.rp.is-hidden, .rp.is-later { display: none; }
.rp__open { display: block; color: inherit; cursor: zoom-in; }
.rp__open img { transition: transform .35s ease; }
.rp__open:hover img, .rp__open:focus-visible img { transform: scale(1.04); }
.rp__open:focus-visible { outline: 3px solid var(--leaf-600); outline-offset: -3px; }
.rp__zoom { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: rgba(255,255,255,.94); color: var(--ink); font-weight: 700; font-size: var(--t-sm); box-shadow: var(--sh-2); opacity: 0; transition: opacity .2s; }
.rp__zoom .i { width: 18px; height: 18px; color: var(--leaf-700); }
.rp__open:hover .rp__zoom, .rp__open:focus-visible .rp__zoom { opacity: 1; }
@media (hover: none) { .rp__zoom { opacity: 1; min-height: 40px; padding: 0 14px; } }
.rp__count { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(30,36,44,.82); color: var(--white); font-size: var(--t-xs); font-weight: 700; }
.rp__count .i { width: 13px; height: 13px; }
.rpmore { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); margin-top: var(--s-5); }
.rpmore[hidden] { display: none; }
.rpmore__n { opacity: .7; font-weight: 600; }
.rpmore__status { margin: 0; font-size: var(--t-sm); color: var(--slate-500); min-height: 1em; }

.plb { width: min(1180px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--slate-900, #161b22); color: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.plb::backdrop { background: rgba(14,18,24,.86); backdrop-filter: blur(4px); }
.plb[open] { display: block; animation: plbIn .2s ease-out; }
@keyframes plbIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.plb__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; max-height: calc(100dvh - 32px); }
.plb__fig { position: relative; margin: 0; display: grid; place-items: center; min-height: 320px; max-height: calc(100dvh - 32px); background: #0d1117; touch-action: pan-y; }
.plb__img { display: block; max-width: 100%; max-height: calc(100dvh - 32px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.plb__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: var(--sh-2); }
.plb__nav .i { width: 22px; height: 22px; }
.plb__nav--prev { left: 14px; } .plb__nav--next { right: 14px; }
.plb__nav[hidden] { display: none; }
.plb__nav:hover { background: var(--white); }
.plb__side { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; overflow-y: auto; background: var(--slate-900, #161b22); }
.plb__top { display: flex; align-items: center; justify-content: space-between; }
.plb__count { font-family: var(--f-mono); font-size: var(--t-xs); color: rgba(255,255,255,.65); }
.plb__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); cursor: pointer; }
.plb__close:hover { background: rgba(255,255,255,.2); }
.plb__close .i { width: 20px; height: 20px; }
.plb__title { margin: 0; font-size: var(--t-xl, 1.35rem); line-height: 1.25; color: var(--white); }
.plb__cap { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: rgba(255,255,255,.78); }
.plb__by { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.plb__by .rp__ava { background: var(--white); color: var(--ink); }
.plb__by > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.plb__by b { font-size: var(--t-sm); } .plb__by small { font-size: var(--t-xs); color: rgba(255,255,255,.6); }
.plb__by:hover b { text-decoration: underline; }
.plb__go { align-self: flex-start; }
.plb__note { margin: auto 0 0; font-size: var(--t-xs); color: rgba(255,255,255,.5); }
.plb :focus-visible { outline: 3px solid var(--leaf-600); outline-offset: 2px; }
@media (max-width: 860px) {
  .plb { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .plb__inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: 100dvh; max-height: 100dvh; }
  .plb__fig { min-height: 0; max-height: none; }
  .plb__img { max-height: 100%; }
  .plb__side { max-height: 46dvh; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); gap: 10px; }
  .plb__nav { width: 44px; height: 44px; }
  .plb__nav--prev { left: 8px; } .plb__nav--next { right: 8px; }
  .plb__note { display: none; }
  .rpbar { justify-content: center; }
  .rpbar__note { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .plb[open] { animation: none; } .rp__open img { transition: none; } .rp__open:hover img { transform: none; } }
.plb__by b { color: var(--white); }
@media print { .plb { display: none; } }

/* ---- Feed Ploy game section ---- */
.play { max-width: 1040px; margin: 0 auto; }
.play__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #CFE7E4; border: 1px solid var(--line); box-shadow: 0 24px 48px -12px rgba(22,27,34,.22); }
.play__frame iframe { display: block; width: 100%; height: min(78vh, 720px); min-height: 520px; border: 0; }
.play__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }
.play__board { display: flex; align-items: flex-start; gap: 10px; margin: 0; max-width: 620px; font-size: var(--t-sm); line-height: 1.55; color: var(--slate-600); }
.play__board .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--leaf-700); }
.play__board b { color: var(--ink); }
.card a { color: var(--leaf-700); font-weight: 650; }
@media (max-width: 640px) {
  .play__frame { border-radius: var(--r-md); margin: 0 calc(var(--s-2) * -1); }
  .play__frame iframe { height: min(82vh, 680px); min-height: 560px; }
  .play__bar { flex-direction: column; align-items: stretch; }
  .play__bar .btn { justify-content: center; }
}

/* ============ Oct 27: brand logo image, hero "site updated" link, Download all, website update log ============ */
img.brand__mark { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(201,162,39,.35); background: #1b1b16; }
.hero__upd { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); border: 1px solid var(--line); color: var(--slate-700); font-size: var(--t-xs); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.hero__upd .i { width: 14px; height: 14px; color: var(--melon-600); }
.hero__upd:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.hero__upd:focus-visible { outline: none; box-shadow: var(--ring); }
.gtools__btns { display: flex; flex-wrap: wrap; gap: 10px; }
#dlAll[aria-busy="true"] { opacity: .85; cursor: progress; }
@media (max-width: 640px) { .gtools__btns { width: 100%; } }
.footer__fan a { color: var(--white); text-underline-offset: 3px; }
.ulogsec { padding: var(--s-5) 0; background: var(--cream); }
.ulog { max-width: 880px; margin: 0 auto; padding: var(--s-3); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ulog__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ulog__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--melon-100); color: var(--melon-700); }
.ulog__ico .i { width: 18px; height: 18px; }
.ulog__head h2 { font-size: 1.125rem; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.ulog__meta { margin: 2px 0 0; font-size: var(--t-xs); color: var(--slate-500); }
.ulog__list { list-style: none; margin: 0; padding: 0; }
.ulog__item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.45; color: var(--slate-700); }
.ulog__item time { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 600; color: var(--leaf-700); padding-top: 2px; white-space: nowrap; }
.ulog__more { margin-top: 4px; }
.ulog__more summary { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 0; font-size: var(--t-sm); font-weight: 600; color: var(--leaf-700); cursor: pointer; list-style: none; }
.ulog__more summary::-webkit-details-marker { display: none; }
.ulog__more summary .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ulog__more[open] summary .i { transform: rotate(90deg); }
.ulog__more summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
@media (max-width: 560px) { .ulog { padding: var(--s-2) 18px; } .ulog__item { grid-template-columns: 48px 1fr; gap: 10px; } }

/* ---------- Meme maker v2 (mobile-first) ---------- */
@font-face { font-family: "MK Anton"; src: url("../assets/fonts/mk-anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MK Bangers"; src: url("../assets/fonts/mk-bangers.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MK Marker"; src: url("../assets/fonts/mk-marker.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MK Courier"; src: url("../assets/fonts/mk-courier.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "MK Playfair"; src: url("../assets/fonts/mk-playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
.mk2 { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.mk2__stage { min-width: 0; }
.mk2__canvas { background: repeating-conic-gradient(var(--slate-100) 0 25%, var(--white) 0 50%) 0 0 / 24px 24px; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(22, 27, 34, .12); border: 1px solid var(--line); }
#mkCanvas { display: block; width: 100%; height: auto; touch-action: none; -webkit-user-select: none; user-select: none; cursor: default; }
#mkCanvas:focus-visible { outline: 3px solid var(--leaf-600); outline-offset: -3px; border-radius: var(--r-md); }
.mk2__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-1); margin-top: var(--s-1); }
.mk2-ib { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); border-radius: var(--r-pill); font: 700 var(--t-sm)/1 Inter, sans-serif; cursor: pointer; padding: 0 10px; }
.mk2-ib .i { width: 18px; height: 18px; }
.mk2-ib:hover:not(:disabled) { border-color: var(--slate-500); }
.mk2-ib:disabled { opacity: .4; cursor: not-allowed; }
.mk2-ib--add { background: var(--ink); color: var(--white); border-color: var(--ink); }
.mk2-ib--del { color: var(--melon-700); }
.mk2:not(.has-sel) .mk2-ib--del { opacity: .4; pointer-events: none; }
.mk2__hint { margin: var(--s-1) 0 0; text-align: center; font-size: var(--t-sm); color: var(--slate-600); min-height: 1.4em; }
.mk2__panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-2); box-shadow: 0 8px 24px rgba(22, 27, 34, .06); }
.mk2-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--slate-100); border-radius: var(--r-pill); padding: 4px; margin-bottom: var(--s-2); position: sticky; top: 64px; z-index: 3; }
.mk2-tab { min-height: 44px; border: 0; background: none; border-radius: var(--r-pill); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 .75rem/1 Inter, sans-serif; color: var(--slate-600); cursor: pointer; }
.mk2-tab .i { width: 18px; height: 18px; }
.mk2-tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 27, 34, .14); }
.mk2-pane[hidden] { display: none !important; }
.mk2-h { margin: var(--s-2) 0 var(--s-1); font: 800 .75rem/1.2 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-600); }
.mk2-upload { display: flex; align-items: center; gap: 12px; padding: 14px var(--s-2); border: 2px dashed var(--slate-300); border-radius: var(--r-md); background: var(--cream); cursor: pointer; position: relative; }
.mk2-upload:hover, .mk2-upload:focus-within { border-color: var(--leaf-600); }
.mk2-upload .i { width: 28px; height: 28px; flex: none; color: var(--leaf-700); }
.mk2-upload b { display: block; font-size: 1rem; }
.mk2-upload small { display: block; color: var(--slate-600); font-size: .8rem; }
.mk2-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.mk2-tpls { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 84px); grid-auto-columns: 84px; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 10px; scrollbar-width: thin; }
.mk2-tpl { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--slate-100); cursor: pointer; scroll-snap-align: start; }
.mk2-tpl img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk2-tpl:hover { border-color: var(--slate-300); }
.mk2-tpl.is-on { border-color: var(--melon-500); box-shadow: 0 0 0 2px var(--melon-100); }
.mk2-presets, .mk2-fonts { display: flex; flex-wrap: wrap; gap: 6px; }
.mk2-preset, .mk2-font, .mk2-sm, .mk2-seg > button { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: 700 var(--t-sm)/1 Inter, sans-serif; cursor: pointer; }
.mk2-font { font-size: 1.05rem; padding: 0 12px; }
.mk2-preset:hover, .mk2-font:hover, .mk2-sm:hover, .mk2-seg > button:hover { border-color: var(--slate-500); }
.mk2-font.is-on, .mk2-seg > button.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.mk2-empty { margin: var(--s-2) 0 0; color: var(--slate-600); font-size: var(--t-sm); }
.mk2-link { border: 0; background: none; padding: 0; color: var(--leaf-700); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 0; }
.mk2-ed { display: none; }
.mk2.has-text .mk2-ed--text, .mk2.has-st .mk2-ed--st { display: block; }
.mk2.has-sel .mk2-ed--common { display: flex; }
.mk2.has-text .mk2-empty { display: none; }
.mk2-ed--common { flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.mk2-field { display: grid; gap: 6px; margin-top: var(--s-2); font: 800 .75rem/1.2 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-600); }
.mk2-field textarea { font: 600 1rem/1.35 Inter, sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); resize: vertical; min-height: 64px; width: 100%; box-sizing: border-box; }
.mk2-field textarea:focus { outline: 2px solid var(--leaf-600); outline-offset: 0; border-color: transparent; }
.mk2-grid2 { display: grid; gap: 0 var(--s-2); }
.mk2-range { display: grid; gap: 4px; margin-top: var(--s-2); font: 700 var(--t-sm)/1.2 Inter, sans-serif; color: var(--slate-700); }
.mk2-range input { width: 100%; height: 32px; accent-color: var(--melon-600); }
.mk2-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.mk2-sw { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--white); background: var(--sw, #fff); box-shadow: 0 0 0 1.5px var(--line-strong); cursor: pointer; padding: 0; display: inline-grid; place-items: center; position: relative; }
.mk2-sw.is-on { box-shadow: 0 0 0 3px var(--ink); }
.mk2-sw--none { background: var(--white); color: var(--slate-500); }
.mk2-sw--none .i { width: 18px; height: 18px; }
.mk2-sw--pick { background: conic-gradient(#e23b4a, #ffe066, #2b8a3e, #3b82f6, #a855f7, #e23b4a); overflow: hidden; }
.mk2-sw--pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.mk2-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); }
.mk2-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mk2-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 var(--t-sm)/1.2 Inter, sans-serif; color: var(--slate-700); cursor: pointer; }
.mk2-chk input { width: 20px; height: 20px; accent-color: var(--melon-600); }
.mk2-stks { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.mk2-stk { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--slate-100); cursor: pointer; font: 700 .7rem/1.1 Inter, sans-serif; color: var(--slate-700); min-height: 44px; }
.mk2-stk canvas { width: 48px; height: 48px; }
.mk2-stk:hover { border-color: var(--slate-300); background: var(--white); }
.mk2-ed--st { margin-top: var(--s-2); padding-top: var(--s-1); border-top: 1px solid var(--line); }
.mk2-ed--st .mk2-sm { margin-top: var(--s-2); }
.mk2-out { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.mk2-chk--wm { margin-bottom: var(--s-1); }
.mk2-actions { display: grid; gap: var(--s-1); }
.mk2-actions .btn { width: 100%; justify-content: center; }
.mk2-actions .btn[hidden] { display: none; }
.mk2-note { margin: var(--s-1) 0 0; font-size: .8rem; color: var(--slate-600); }
@media (min-width: 560px) {
  .mk2-grid2 { grid-template-columns: 1fr 1fr; }
  .mk2-actions { grid-template-columns: 1fr 1fr; }
  .mk2-tpls { grid-template-rows: repeat(2, 96px); grid-auto-columns: 96px; }
}
@media (min-width: 960px) {
  .mk2 { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: var(--s-4); }
  .mk2__stage { position: sticky; top: 88px; }
  .mk2-tabs { position: static; }
  .mk2-tpls { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; max-height: 360px; overflow-y: auto; overflow-x: hidden; }
  .mk2-tpl { aspect-ratio: 1; }
}

/* =========================================================================
   Meme maker 2.0 (.mk3)
   ========================================================================= */
.wrap--maker { max-width: 1480px; }
.mk3 { --mk-line: rgba(22,27,34,.10); --mk-acc: #7C5CFF; --mk-acc-2: #EFEBFF; --mk-bg: #F4F5F7;
  margin-top: var(--s-4); background: var(--white); border: 1px solid var(--mk-line); border-radius: var(--r-lg); box-shadow: var(--sh-2);
  overflow: hidden; color: var(--slate-700); font-size: var(--t-sm); position: relative; isolation: isolate; text-align: left; }
.mk3 *, .mk3 *::before, .mk3 *::after { box-sizing: border-box; }
.mk3 button { font: inherit; color: inherit; }
.mk3-i { width: 20px; height: 20px; flex: none; display: block; }
.mk3-loading { min-height: 520px; display: grid; place-content: center; justify-items: center; gap: var(--s-2); color: var(--slate-500); font-weight: 600; }
.mk3-loading span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--slate-200); border-top-color: var(--melon-500); animation: mk3spin .8s linear infinite; }
@keyframes mk3spin { to { transform: rotate(360deg); } }

/* top bar */
.mk3-top { display: flex; align-items: center; gap: var(--s-1); padding: 10px var(--s-2); border-bottom: 1px solid var(--mk-line); background: var(--white); position: relative; z-index: 3; }
.mk3-grp { display: flex; align-items: center; gap: 4px; }
.mk3-grp--r { margin-left: auto; gap: 6px; }
.mk3-ib { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--slate-700); cursor: pointer; transition: background .15s, color .15s; }
.mk3-ib:hover { background: var(--slate-100); color: var(--ink); }
.mk3-ib:disabled { opacity: .35; cursor: default; background: transparent; }
.mk3-ib[aria-pressed="true"], .mk3-ib.on { background: var(--mk-acc-2); color: var(--mk-acc); }
.mk3-ib--danger:hover { background: var(--melon-100); color: var(--melon-600); }
.mk3-ib--sm { width: 32px; height: 32px; border-radius: 8px; }
.mk3-ib--sm .mk3-i { width: 17px; height: 17px; }
.mk3-select { height: 40px; border: 1px solid var(--mk-line); border-radius: 10px; padding: 0 30px 0 12px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F6B7A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center; -webkit-appearance: none; appearance: none; font: 600 var(--t-sm)/1 var(--f-body); color: var(--ink); cursor: pointer; max-width: 230px; }
.mk3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--mk-line); background: var(--white); font-weight: 600 !important; color: var(--ink) !important; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.mk3-btn:hover { background: var(--slate-100); }
.mk3-btn:active { transform: translateY(1px); }
.mk3-btn .mk3-i { width: 18px; height: 18px; }
.mk3-btn--primary { background: var(--melon-500); border-color: var(--melon-500); color: var(--white) !important; }
.mk3-btn--primary:hover { background: var(--melon-600); }
.mk3-btn--fun { background: var(--mk-acc-2); border-color: transparent; color: #4B33C9 !important; }
.mk3-btn--fun:hover { background: #E2DAFF; }
.mk3-btn--ghost { border-color: transparent; background: transparent; color: var(--slate-600) !important; }
.mk3 [data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, -4px); background: var(--ink); color: var(--white); font: 500 12px/1.2 var(--f-body); padding: 6px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; z-index: 20; }
@media (hover: hover) { .mk3 .mk3-ib[data-tip]:hover::after, .mk3 .mk3-ib[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); } }
.mk3-props .mk3-ib[data-tip]::after, .mk3-layer .mk3-ib[data-tip]::after { top: auto; bottom: calc(100% + 6px); }

/* body grid */
.mk3-body { display: grid; grid-template-columns: 84px 300px minmax(0, 1fr) 300px; height: min(78vh, 760px); min-height: 600px; }
.mk3-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-right: 1px solid var(--mk-line); background: var(--white); }
.mk3-tab { display: grid; justify-items: center; gap: 4px; padding: 10px 2px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--slate-500); font-size: 11.5px !important; font-weight: 600 !important; cursor: pointer; }
.mk3-tab:hover { background: var(--slate-100); color: var(--ink); }
.mk3-tab[aria-selected="true"] { background: var(--mk-acc-2); color: var(--mk-acc); }
.mk3-tab .mk3-i { width: 22px; height: 22px; }
.mk3-drawer { border-right: 1px solid var(--mk-line); overflow: auto; overscroll-behavior: contain; background: var(--white); }
.mk3-pane { padding: var(--s-2); display: grid; gap: 12px; align-content: start; }
.mk3-pane[hidden] { display: none; }
.mk3-ptitle { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mk3-ptitle strong { font: 800 1.05rem/1.2 var(--f-display); color: var(--ink); }
.mk3-ptitle small, .mk3-ph span { color: var(--slate-500); font-size: 12px; }
.mk3-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; color: var(--ink); font-size: 13px; }
.mk3-sub .mk3-i { width: 16px; height: 16px; color: var(--mk-acc); }
.mk3-search { width: 100%; height: 40px; border: 1px solid var(--mk-line); border-radius: 10px; padding: 0 12px 0 36px; font: inherit; background: var(--mk-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235F6B7A' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px center; }
.mk3-search:focus { outline: 2px solid var(--mk-acc); outline-offset: 0; background-color: var(--white); }
.mk3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk3-chip { border: 1px solid var(--mk-line); background: var(--white); border-radius: 999px; padding: 5px 11px; font-size: 12.5px !important; font-weight: 600 !important; cursor: pointer; }
.mk3-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white) !important; }
.mk3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mk3-grid--stk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk3-th { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--slate-100); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.mk3-th img, .mk3-th canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk3-grid--stk .mk3-th { background: repeating-conic-gradient(#F1F3F5 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.mk3-grid--stk .mk3-th img { object-fit: contain; padding: 8px; }
.mk3-th:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--mk-acc); }
.mk3-th[data-tip]::after { display: none; }
.mk3-trend { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.mk3-th--trend { aspect-ratio: auto; height: 132px; scroll-snap-align: start; }
.mk3-th--trend img { height: 100%; }
.mk3-th--trend span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 11.5px; font-weight: 700; text-align: left; line-height: 1.2; }
.mk3-empty { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px; border-radius: 12px; background: var(--mk-bg); color: var(--slate-600); line-height: 1.45; grid-column: 1 / -1; }
.mk3-empty .mk3-i, .mk3-empty span:first-child .mk3-i { width: 18px; height: 18px; color: var(--mk-acc); }
.mk3-note { margin: 0; color: var(--slate-500); font-size: 12px; line-height: 1.45; }

/* formats */
.mk3-lays { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk3-lay { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--white); cursor: pointer; text-align: center; font-weight: 600 !important; font-size: 12px !important; }
.mk3-lay:hover { border-color: var(--mk-acc); }
.mk3-lay.on { border-color: var(--mk-acc); box-shadow: 0 0 0 2px var(--mk-acc-2); background: #FBFAFF; }
.mk3-mini { position: relative; aspect-ratio: 1; border-radius: 6px; background: var(--slate-200); overflow: hidden; }
.mk3-mini i { position: absolute; border: 2px solid var(--white); background: linear-gradient(135deg, #8E9AAB, #6B7684); }
.mk3-mini em { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 800 13px/1 var(--f-display); color: var(--ink); }
.mk3-mini--compare { background: #fff; } .mk3-mini--compare em { right: 14%; letter-spacing: 1.2em; writing-mode: vertical-lr; }
.mk3-mini--expect em, .mk3-mini--before em { top: 12%; left: 0; right: 0; transform: none; color: #fff; font-size: 11px; text-shadow: 0 1px 2px #000; }
.mk3-mini--demotiv { background: #000; } .mk3-mini--demotiv::after { content: "TITLE"; position: absolute; left: 0; right: 0; bottom: 8%; color: #fff; font: 700 10px/1 Georgia, serif; letter-spacing: .2em; }
.mk3-mini--demotiv i { inset: 10% 14% 30% 14% !important; width: auto !important; height: auto !important; outline: 1px solid #fff; outline-offset: 2px; }
.mk3-mini--post { background: #E9EEF3; } .mk3-mini--post::before { content: ""; position: absolute; inset: 6%; background: #fff; border-radius: 6px; }
.mk3-mini--post i { inset: 34% 12% 18% 12% !important; width: auto !important; height: auto !important; border-radius: 4px; }
.mk3-mini--post::after { content: ""; position: absolute; left: 12%; top: 13%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #FFB3BB; box-shadow: 14px 1px 0 -3px #CBD3DC, 26px 1px 0 -3px #CBD3DC; }
.mk3-mini--news::after { content: "BREAKING"; position: absolute; left: 6%; right: 6%; bottom: 10%; height: 24%; background: #fff; border-top: 7px solid #E03131; color: #E03131; font: 800 8px/1 Inter, sans-serif; text-align: left; padding: 2px 4px; }
.mk3-mini--starter { background: #fff; background-image: radial-gradient(circle, #C9D0D8 0 34%, transparent 36%); background-size: 33.3% 40%; background-position: 0 70%; }
.mk3-mini--starter::before { content: "STARTER PACK"; position: absolute; top: 8%; left: 0; right: 0; font: 800 8px/1 Inter, sans-serif; color: #111; }
.mk3-mini--says::after { content: "…"; position: absolute; right: 10%; top: 10%; width: 46%; height: 28%; background: #fff; border: 2px solid var(--ink); border-radius: 50%; font: 800 14px/1 var(--f-display); display: grid; place-items: center; }

/* text pane */
.mk3-tpres { display: grid; gap: 8px; }
.mk3-tpre { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--mk-line); border-radius: 12px; cursor: pointer; text-align: center; background: #2F3742; }
.mk3-tpre:hover { border-color: var(--mk-acc); box-shadow: 0 0 0 2px var(--mk-acc-2); }
.mk3-tpre b { font-size: 22px; line-height: 1.1; }
.mk3-tpre small { color: #AEB7C2; font-size: 11px; }
.mk3-tpre--classic b { font-family: "MK Anton", Impact, sans-serif; font-weight: 400; color: #fff; -webkit-text-stroke: 1.2px #000; paint-order: stroke fill; text-shadow: 0 0 1px #000; letter-spacing: .02em; }
.mk3-tpre--subtitle b { font: 800 17px/1.2 Inter, sans-serif; color: #FFE066; text-shadow: 0 2px 2px #000; }
.mk3-tpre--bar b { font: 800 16px/1.2 Inter, sans-serif; color: #111; background: #fff; padding: 6px 10px; border-radius: 6px; justify-self: center; }
.mk3-tpre--label b { font: 400 18px/1 "Lilita One", sans-serif; color: #fff; background: #E8414F; padding: 6px 12px; border-radius: 999px; justify-self: center; letter-spacing: .04em; }
.mk3-tpre--gold b { font: 800 24px/1 "Bricolage Grotesque", sans-serif; letter-spacing: .06em; background: linear-gradient(#FFF3C4, #E0A100); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3B2A00); }
.mk3-bubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk3-bub { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 600 !important; font-size: 12px !important; }
.mk3-bub:hover { border-color: var(--mk-acc); }
.mk3-bub i { width: 46px; height: 30px; border: 2.5px solid var(--ink); border-radius: 50%; position: relative; background: #fff; }
.mk3-bub i::after { content: ""; position: absolute; left: 8px; bottom: -9px; border: 6px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; transform: rotate(18deg); }
.mk3-bub--thought i::after { border: 2.5px solid var(--ink); width: 8px; height: 8px; border-radius: 50%; bottom: -11px; transform: none; }
.mk3-bub--shout i { border-radius: 4px; clip-path: polygon(0 20%, 12% 0, 30% 14%, 50% 0, 68% 14%, 88% 0, 100% 22%, 92% 50%, 100% 80%, 84% 100%, 64% 86%, 44% 100%, 26% 86%, 8% 100%, 0 78%, 8% 50%); background: #FFE066; }
.mk3-caps { display: grid; gap: 6px; }
.mk3-cap { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--mk-line); border-radius: 10px; background: var(--white); cursor: pointer; }
.mk3-cap:hover { border-color: var(--mk-acc); background: #FBFAFF; }
.mk3-cap b { font: 400 15px/1.15 "MK Anton", Impact, sans-serif; color: var(--ink); letter-spacing: .02em; text-transform: uppercase; }
.mk3-cap span { font-size: 12px; color: var(--slate-500); text-transform: uppercase; }
.mk3-emo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.mk3-emo button { aspect-ratio: 1; border: 0; background: transparent; border-radius: 8px; font-size: 24px !important; line-height: 1; cursor: pointer; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif !important; }
.mk3-emo button:hover { background: var(--slate-100); transform: scale(1.12); }
.mk3-drop { display: grid; justify-items: center; gap: 6px; padding: 28px 12px; border: 2px dashed var(--slate-300); border-radius: 14px; text-align: center; cursor: pointer; background: var(--mk-bg); transition: border-color .15s, background .15s; }
.mk3-drop .mk3-i { width: 28px; height: 28px; color: var(--mk-acc); }
.mk3-drop b { color: var(--ink); } .mk3-drop small { color: var(--slate-500); }
.mk3-drop:hover, .mk3-drop.is-over { border-color: var(--mk-acc); background: #FBFAFF; }

/* stage */
.mk3-stage { position: relative; display: grid; place-items: center; background: var(--mk-bg); background-image: radial-gradient(rgba(22,27,34,.07) 1px, transparent 1px); background-size: 18px 18px; overflow: hidden; min-width: 0; }
.mk3-cvwrap { line-height: 0; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 40px -12px rgba(22,27,34,.35); border-radius: 4px; background: repeating-conic-gradient(#E2E6EB 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.mk3-cv { display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; border-radius: 4px; }
.mk3-cv:focus-visible { outline: 3px solid var(--mk-acc); outline-offset: 3px; }
.mk3-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(92%, 380px); background: rgba(22,27,34,.94); color: var(--on-dark); border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: grid; gap: 8px; font-size: 13px; }
.mk3-hint[hidden] { display: none; }
.mk3-hint b { color: #fff; font: 700 15px/1.2 var(--f-display); }
.mk3-hint ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; color: var(--on-dark-muted); }
.mk3-hint .mk3-btn { justify-self: end; min-height: 34px; }

/* properties */
.mk3-props { border-left: 1px solid var(--mk-line); overflow: auto; overscroll-behavior: contain; padding: var(--s-2); display: grid; gap: 12px; align-content: start; background: var(--white); }
.mk3-ph { display: grid; gap: 2px; }
.mk3-ph strong { font: 800 1.05rem/1.2 var(--f-display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk3-sec { border-top: 1px solid var(--mk-line); padding-top: 10px; display: grid; gap: 10px; }
.mk3-sec > summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.mk3-sec > summary::-webkit-details-marker { display: none; }
.mk3-sec > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--slate-500); border-bottom: 2px solid var(--slate-500); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.mk3-sec:not([open]) > summary::after { transform: rotate(-45deg); }
.mk3-sec[open] { gap: 10px; }
.mk3-row { display: grid; gap: 6px; }
.mk3-lbl { font-size: 12px; font-weight: 600; color: var(--slate-600); }
.mk3-rng { grid-template-columns: 1fr auto; align-items: center; row-gap: 2px; }
.mk3-rng .mk3-lbl { grid-column: 1; }
.mk3-rng output { grid-column: 2; grid-row: 1; font: 600 12px/1 var(--f-body); color: var(--slate-500); font-variant-numeric: tabular-nums; }
.mk3-rng input { grid-column: 1 / -1; width: 100%; accent-color: var(--mk-acc); height: 22px; margin: 0; }
.mk3-sws { display: flex; flex-wrap: wrap; gap: 6px; }
.mk3-sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: var(--c); cursor: pointer; padding: 0; position: relative; }
.mk3-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mk-acc); }
.mk3-sw--none { background: linear-gradient(135deg, #fff 45%, #E23B4A 45% 55%, #fff 55%); }
.mk3-sw--pick { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); overflow: hidden; }
.mk3-sw--pick input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.mk3-seg { display: flex; background: var(--slate-100); border-radius: 10px; padding: 3px; gap: 2px; }
.mk3-seg button { flex: 1; min-height: 32px; border: 0; background: transparent; border-radius: 8px; font-weight: 600 !important; font-size: 12.5px !important; color: var(--slate-600) !important; cursor: pointer; display: grid; place-items: center; position: relative; }
.mk3-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink) !important; box-shadow: var(--sh-1); }
.mk3-seg button:disabled { opacity: .4; cursor: not-allowed; }
.mk3-seg .mk3-i { width: 18px; height: 18px; }
.mk3-tog { grid-template-columns: 1fr auto; align-items: center; cursor: pointer; position: relative; }
.mk3-tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk3-knob { width: 38px; height: 22px; border-radius: 999px; background: var(--slate-300); position: relative; transition: background .15s; }
.mk3-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.mk3-tog input:checked + .mk3-knob { background: var(--mk-acc); }
.mk3-tog input:checked + .mk3-knob::after { transform: translateX(16px); }
.mk3-tog input:focus-visible + .mk3-knob { outline: 2px solid var(--mk-acc); outline-offset: 2px; }
.mk3-ta { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--mk-line); border-radius: 10px; padding: 10px 12px; font: 600 15px/1.35 var(--f-body); color: var(--ink); background: var(--mk-bg); }
.mk3-ta:focus { outline: 2px solid var(--mk-acc); outline-offset: 0; background: #fff; }
.mk3-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.mk3-acts .mk3-btn { min-height: 36px; padding: 0 10px; font-size: 12.5px !important; }
.mk3-acts--item { justify-content: space-between; background: var(--mk-bg); border-radius: 12px; padding: 4px; }
.mk3-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mk3-pre { position: relative; min-height: 38px; border: 1px solid var(--mk-line); border-radius: 8px; background: #2F3742; cursor: pointer; overflow: hidden; padding: 0 2px; }
.mk3-pre span { font-size: 11px; line-height: 1; display: inline-block; }
.mk3-pre--classic span { font-family: "MK Anton", Impact, sans-serif; color: #fff; -webkit-text-stroke: .6px #000; font-size: 13px; }
.mk3-pre--subtitle span { color: #FFE066; font-weight: 800; }
.mk3-pre--bar span { background: #fff; color: #111; padding: 3px 4px; border-radius: 3px; font-weight: 800; }
.mk3-pre--label span { background: #E8414F; color: #fff; padding: 3px 5px; border-radius: 99px; font-family: "Lilita One", sans-serif; }
.mk3-pre--gold span { color: #F5C518; font-weight: 800; }
.mk3-pre[data-tip]::after { top: auto; bottom: calc(100% + 6px); }
.mk3-pre:hover { border-color: var(--mk-acc); }
.mk3-fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mk3-fonts button { display: grid; gap: 1px; padding: 6px 2px; border: 1px solid var(--mk-line); border-radius: 8px; background: var(--white); cursor: pointer; }
.mk3-fonts b { font-size: 18px; line-height: 1.1; color: var(--ink); font-family: inherit; font-weight: inherit; }
.mk3-fonts small { font: 500 10.5px/1 var(--f-body); color: var(--slate-500); }
.mk3-fonts button.on { border-color: var(--mk-acc); box-shadow: 0 0 0 1px var(--mk-acc); background: #FBFAFF; }
.mk3-fx { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.mk3-fxb { display: grid; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 11px !important; font-weight: 600 !important; text-align: center; }
.mk3-fxb canvas { width: 64px; height: 64px; border-radius: 10px; background: var(--slate-200); }
.mk3-fxb:hover canvas { box-shadow: 0 0 0 2px var(--mk-acc); }
.mk3-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk3-size { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 8px; border: 1px solid var(--mk-line); border-radius: 10px; background: var(--white); cursor: pointer; }
.mk3-size b { font-size: 12px; color: var(--ink); line-height: 1.15; } .mk3-size small { font-size: 10.5px; color: var(--slate-500); }
.mk3-size.on { border-color: var(--mk-acc); box-shadow: 0 0 0 1px var(--mk-acc); background: #FBFAFF; }
.mk3-ratio { grid-row: 1 / 3; justify-self: center; display: block; max-width: 24px; max-height: 24px; width: 24px; height: auto; border: 2px solid var(--slate-500); border-radius: 3px; }
.mk3-ratio[style*="1080/1920"] { width: auto; height: 24px; } .mk3-ratio[style*="1080/1350"] { width: auto; height: 24px; }
.mk3-ratio.is-round { border-radius: 50%; }

/* layers */
.mk3-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mk3-layer { display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 4px; border: 1px solid var(--mk-line); border-radius: 10px; background: var(--white); }
.mk3-layer.on { border-color: var(--mk-acc); background: #FBFAFF; }
.mk3-layer.is-hidden .mk3-lname { opacity: .45; text-decoration: line-through; }
.mk3-layer--panel { background: var(--mk-bg); }
.mk3-lsel { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--slate-100); cursor: pointer; flex: none; }
.mk3-lsel .mk3-i { width: 16px; height: 16px; }
.mk3-lname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); cursor: pointer; padding: 0 4px; }
.mk3-lin { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--mk-acc); border-radius: 6px; padding: 0 6px; font: inherit; }

/* sheets */
.mk3-sheet { position: absolute; inset: 0; z-index: 30; background: rgba(22,27,34,.45); display: grid; place-items: center; padding: var(--s-2); animation: mk3fade .15s; }
.mk3-sheet[hidden] { display: none; }
@keyframes mk3fade { from { opacity: 0; } }
.mk3-card { width: min(100%, 520px); max-height: 100%; overflow: auto; background: var(--white); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: mk3up .18s ease-out; }
@keyframes mk3up { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk3-card, .mk3-sheet { animation: none; } }
.mk3-card-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0 20px; }
.mk3-card-h h3 { font-size: 1.2rem; margin: 0; }
.mk3-card-b { padding: 14px 20px 20px; display: grid; gap: 14px; }
.mk3-pv { display: grid; place-items: center; background: repeating-conic-gradient(#E2E6EB 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 12px; padding: 12px; min-height: 160px; }
.mk3-pv img { max-width: 100%; max-height: 260px; border-radius: 4px; box-shadow: var(--sh-2); }
.mk3-pv.is-round img { border-radius: 50%; }
.mk3-seg--wide button { min-height: 40px; }
.mk3-expacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk3-expacts .mk3-btn--primary { grid-column: 1 / -1; min-height: 48px; font-size: 15px !important; }
.mk3-keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; align-items: center; }
.mk3-keys dt { color: var(--slate-500); font-size: 12px; white-space: nowrap; }
.mk3-keys dd { margin: 0; color: var(--ink); font-weight: 500; }
.mk3-keys kbd { display: inline-block; min-width: 24px; padding: 3px 7px; border: 1px solid var(--slate-300); border-bottom-width: 2px; border-radius: 6px; background: var(--slate-100); font: 600 12px/1.2 var(--f-body); color: var(--ink); text-align: center; }
.mk3-drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.mk3-draft { position: relative; }
.mk3-draft-o { display: grid; gap: 4px; width: 100%; padding: 6px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--white); cursor: pointer; text-align: left; }
.mk3-draft-o:hover { border-color: var(--mk-acc); }
.mk3-draft-o img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--slate-100); border-radius: 8px; }
.mk3-draft-o b { font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk3-draft-o small { font-size: 10.5px; color: var(--slate-500); }
.mk3-draft .mk3-ib { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); }

/* responsive */
@media (max-width: 1280px) { .mk3-body { grid-template-columns: 76px 260px minmax(0, 1fr) 272px; } .mk3-hide-md { display: none; } }
@media (max-width: 1080px) { .mk3-body { grid-template-columns: 72px 236px minmax(0, 1fr) 252px; } .mk3-btn--fun span { display: none; } .mk3-btn--fun { padding: 0 10px; } }
@media (max-width: 899px) {
  .mk3 { margin-left: calc(var(--s-2) * -1); margin-right: calc(var(--s-2) * -1); border-radius: 18px; }
  .mk3-top { flex-wrap: wrap; gap: 6px; padding: 8px; position: sticky; top: 0; }
  .mk3-select { flex: 1; max-width: none; min-width: 0; order: 3; width: 100%; flex-basis: 100%; }
  .mk3-hide-sm { display: none; }
  .mk3-grp--r { gap: 2px; }
  .mk3-btn--fun span { display: none; } .mk3-btn--fun { padding: 0 10px; }
  .mk3-body { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .mk3-stage { order: 1; padding: 12px; min-height: 0; }
  .mk3-props { order: 2; border-left: 0; border-top: 1px solid var(--mk-line); max-height: 46vh; }
  .mk3-rail { order: 3; flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--mk-line); padding: 6px; gap: 2px; scrollbar-width: none; position: sticky; bottom: 0; z-index: 2; }
  .mk3-rail::-webkit-scrollbar { display: none; }
  .mk3-tab { flex: 1 0 64px; padding: 8px 2px 6px; }
  .mk3-drawer { order: 4; border-right: 0; max-height: 52vh; border-top: 1px solid var(--mk-line); }
  .mk3-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk3-emo { grid-template-columns: repeat(8, 1fr); }
  .mk3-lays { grid-template-columns: repeat(3, 1fr); }
  .mk3-hint { bottom: 10px; }
  .mk3-sheet { position: fixed; z-index: 1000; align-items: end; padding: 0; }
  .mk3-card { border-radius: 18px 18px 0 0; max-height: 92vh; width: 100%; }
  .mk3 [data-tip]::after { display: none; }
}
/* polish pass */
.mk3-ptitle { flex-wrap: wrap; row-gap: 2px; }
.mk3-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk3-pre span { white-space: nowrap; }
.mk3-layer .mk3-ib--sm { width: 28px; height: 30px; flex: none; }
.mk3-layer .mk3-ib--sm .mk3-i { width: 16px; height: 16px; }
.mk3-lname { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk3-props, .mk3-drawer, .mk3-layers { overflow-anchor: none; }
.mk3-fx { display: grid !important; grid-auto-flow: row !important; grid-auto-columns: auto !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible !important; }
.mk3-fxb { width: auto !important; min-width: 0; }
.mk3-fxb canvas { width: 100% !important; height: auto !important; aspect-ratio: 1; }

/* ============ Oct 27 (optimization pass): slim mobile alert, game facade, zoo feed on tap, how to buy, MOTD, X embeds ============ */
.alertbar__short { display: none; margin: 0; font-size: var(--t-sm); line-height: 1.45; color: var(--ink); }
.alertbar__short b { color: var(--melon-600); }
.alertbar__short a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--melon-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .alertbar { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px 12px; margin-bottom: var(--s-3); border-left-width: 3px; }
  .alertbar__ico { display: none; }
  .alertbar__tag, .alertbar__title, .alertbar__text, .alertbar__links { display: none; }
  .alertbar__short { display: block; }
}
/* game facade: the iframe is injected on tap */
.play__start { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: min(78vh, 720px); padding: 0; border: 0; background: #CFE7E4; cursor: pointer; font: inherit; color: var(--ink); }
.play__start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.play__start::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,27,34,0) 45%, rgba(22,27,34,.55)); }
.play__go { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: var(--r-pill); background: var(--melon-600); color: var(--white); font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; box-shadow: var(--sh-3); transition: transform .15s var(--ease); }
.play__go .i { width: 22px; height: 22px; }
.play__start:hover .play__go, .play__start:focus-visible .play__go { transform: translate(-50%, -50%) scale(1.05); }
.play__hint { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--white); font-size: var(--t-sm); font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
@media (max-width: 640px) { .play__start { aspect-ratio: 4 / 5; } .play__go { font-size: 1.125rem; min-height: 52px; } }
/* zoo feed: neutral label, loads on tap */
.zoobadge { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 5px 11px; border-radius: var(--r-sm); background: var(--white); color: var(--leaf-700); border: 1px solid var(--line-strong); font-family: var(--f-body); font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; position: relative; top: -.3em; }
.live__frame { min-height: 420px; }
.live__ph { padding: var(--s-4) var(--s-3); max-width: 360px; }
.live__ph p { margin: 0; color: var(--slate-600); line-height: 1.55; }
.live__ph p b { color: var(--ink); font-size: var(--t-base); }
.live__ph small { font-size: var(--t-xs); color: var(--slate-500); }
/* how to buy safely */
.vbuy { text-align: center; margin: var(--s-6) 0 0; }
.steps--light .step { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: var(--sh-1); }
.steps--light .step__n { background: var(--ink); color: var(--white); }
.steps--light .step__ico { color: var(--leaf-700); }
.steps--light .step p { color: var(--slate-700, #3A4350); }
.steps--light .step a { color: var(--leaf-700); font-weight: 650; }
.steps--light .step .mono { color: var(--ink); }
.howca { max-width: 920px; margin: var(--s-3) auto 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.howca__lbl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-700); }
.howca__lbl .i { width: 16px; height: 16px; }
.howca__addr { flex: 1 1 280px; min-width: 0; font-family: var(--f-mono); font-size: .9375rem; overflow-wrap: anywhere; color: var(--ink); }
.safelist { max-width: 920px; margin: var(--s-3) auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.safelist li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.55; color: var(--slate-700, #3A4350); }
.safelist li .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--melon-600); }
.safelist b { color: var(--ink); }
.safelist a { color: var(--leaf-700); font-weight: 650; }
@media (max-width: 640px) { .safelist { grid-template-columns: minmax(0, 1fr); } }
/* meme of the day */
.motd { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-2); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.motd__media { aspect-ratio: var(--ar, 16 / 9); border-radius: var(--r-md); }
.motd__info { display: grid; gap: 12px; padding: var(--s-2) var(--s-2) var(--s-2) 0; }
.motd__date { margin: 0; }
.motd__by { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.motd__by small { display: block; color: var(--slate-500); font-size: var(--t-xs); }
.motd__by:hover b { text-decoration: underline; }
.motd__text { margin: 0; font-family: var(--f-display); font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.motd__text p { margin: 0; }
.motd__m { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-sm); color: var(--slate-600); }
.motd__m b { color: var(--ink); }
.motd__why { display: flex; gap: 8px; margin: 0; font-size: var(--t-sm); line-height: 1.55; color: var(--slate-600); }
.motd__why .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--melon-600); }
.motd__why a { color: var(--leaf-700); font-weight: 650; }
.motd__acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .motd { grid-template-columns: minmax(0, 1fr); } .motd__info { padding: 0 var(--s-1) var(--s-1); } .motd__text { font-size: 1.1875rem; } }
/* top posts: tap to load X's embed */
.xembed { display: grid; gap: 10px; }
.xembed.is-embed { display: block; }
.xembed.is-embed .twitter-tweet { margin: 0 auto !important; }
.xload { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 650; cursor: pointer; transition: border-color .2s; }
.xload:hover { border-color: var(--ink); }
.xload .i { width: 15px; height: 15px; }
.xload small { color: var(--slate-500); font-size: var(--t-xs); font-weight: 500; }
.tpost__card .xembed { flex: 1; align-content: start; }

/* ===== MAKER v5 ===== */
/* Meme Maker v3: picker, presets, export, mobile order */
.mk3-chips--row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; scroll-padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.mk3-chips--row::-webkit-scrollbar { display: none; }
.mk3-chips--row .mk3-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.mk3-chip small { font-size: 11px; font-weight: 600; color: var(--slate-500); }
.mk3-chip[aria-pressed="true"] small { color: rgba(255,255,255,.7); }
.mk3-count { margin: 2px 0 -2px; font-size: 12px; color: var(--slate-500); font-weight: 600; }
.mk3-thw { position: relative; }
.mk3-thw .mk3-th { width: 100%; }
.mk3-star { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(22,27,34,.55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s, transform .1s; padding: 0; }
.mk3-star .mk3-i { width: 16px; height: 16px; }
.mk3-star.on { opacity: 1; color: #FFD23F; background: rgba(22,27,34,.7); }
.mk3-star.on .mk3-i path { fill: currentColor; }
.mk3-thw:hover .mk3-star, .mk3-star:focus-visible { opacity: 1; }
.mk3-star:active { transform: scale(.9); }
@media (hover: none) { .mk3-star { opacity: .85; width: 28px; height: 28px; } }
.mk3-recent { display: grid; grid-auto-flow: column; grid-auto-columns: 58px; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mk3-recent::-webkit-scrollbar { display: none; }
.mk3-recent[hidden], .mk3-trend[hidden], .mk3-sub[hidden] { display: none; }
.mk3-th--mini { aspect-ratio: 1; border-radius: 8px; }
.mk3-tpres { grid-template-columns: 1fr 1fr; }
.mk3-tpre--comic b { font: 400 21px/1 "MK Bangers", "Comic Sans MS", cursive; color: #FFD23F; -webkit-text-stroke: 1px #111; paint-order: stroke fill; text-shadow: 2px 2px 0 #111; letter-spacing: .03em; }
.mk3-tpre--neon b { font: 400 19px/1 "Lilita One", sans-serif; color: #F4FFFF; text-shadow: 0 0 4px #37E2FF, 0 0 10px #37E2FF, 0 0 18px #37E2FF; letter-spacing: .03em; }
.mk3-tpre--retro b { font: 800 18px/1 "Bricolage Grotesque", sans-serif; color: #FFF6E0; -webkit-text-stroke: .8px #1E242C; paint-order: stroke fill; text-shadow: 2px 2px 0 #E8414F; letter-spacing: .02em; }
.mk3-pre--comic span { font-family: "MK Bangers", cursive; color: #FFD23F; text-shadow: 1px 1px 0 #111; font-size: 14px; }
.mk3-pre--neon span { color: #F4FFFF; text-shadow: 0 0 3px #37E2FF, 0 0 7px #37E2FF; font-family: "Lilita One", sans-serif; }
.mk3-pre--retro span { color: #FFF6E0; text-shadow: 1.5px 1.5px 0 #E8414F; font-weight: 800; }
.mk3-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* export */
.mk3-expgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mk3-expside { display: grid; gap: 10px; align-content: start; }
.mk3-pv--v3 { position: relative; margin: 0; background: repeating-conic-gradient(#E9ECEF 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 12px; padding: 10px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--mk-line); }
.mk3-pv--v3 img { max-height: 46vh; width: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 10px 30px rgba(22,27,34,.22); }
.mk3-pv--v3.is-round img { border-radius: 50%; }
.mk3-pvbadge { position: absolute; left: 16px; bottom: 16px; background: rgba(22,27,34,.78); color: #fff; font: 600 11.5px/1 var(--f-body); padding: 6px 9px; border-radius: 999px; }
.mk3-expinfo { margin: 0; font-size: 13px; font-weight: 600; color: var(--slate-600); }
.mk3-xbox { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--mk-bg); }
.mk3-xhead { display: flex; justify-content: space-between; align-items: baseline; }
.mk3-xcnt { color: var(--slate-500); font-size: 12px; }
.mk3-xtxt { min-height: 74px; font-size: 14px; background: var(--white); }
.mk3-btn--x { background: #161B22; border-color: #161B22; color: #fff !important; min-height: 44px; }
.mk3-btn--x:hover { background: #2A313B; }
.mk3-card--export { width: min(860px, 100%); }
/* onboarding card: compact, out of the way */
@media (min-width: 900px) { .mk3-hint { left: auto; right: 16px; transform: none; bottom: 16px; width: 290px; padding: 12px 14px; font-size: 12.5px; } }
@media (max-width: 899px) {
  .mk3-stage { order: 1; }
  .mk3-rail { order: 2; }
  .mk3-drawer { order: 3; max-height: 62vh; }
  .mk3-props { order: 4; max-height: none; overflow: visible; }
  .mk3--editing .mk3-props { order: 2; border-top: 0; }
  .mk3--editing .mk3-rail { order: 3; }
  .mk3--editing .mk3-drawer { order: 4; }
  .mk3-hint { position: static; transform: none; width: auto; margin: 10px 0 0; }
  .mk3-expgrid { grid-template-columns: 1fr; gap: 12px; }
  .mk3-pv--v3 img { max-height: 34vh; }
  .mk3-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mk3 [hidden] { display: none !important; }

/* --- Meme Maker v4: crop, onboarding checklist, a11y, micro-interactions --- */
.mk4-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mk3 :focus { outline: none; }
.mk3 :focus-visible { outline: 2px solid var(--mk-acc); outline-offset: 2px; border-radius: 8px; }
.mk3 .mk3-cv:focus-visible { outline: 3px solid var(--mk-acc); outline-offset: 4px; border-radius: 2px; }
.mk3-cvwrap { position: relative; }
.mk4-chip { position: absolute; left: 50%; top: 12px; transform: translate(-50%, -6px); background: rgba(22,27,34,.9); color: #fff; font: 600 12.5px/1 Inter, sans-serif; padding: 8px 12px; border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity .18s ease, transform .18s ease; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 3; }
.mk4-chip.on { opacity: 1; transform: translate(-50%, 0); }
/* press + hover feedback */
.mk3-btn, .mk3-ib, .mk3-th, .mk3-tab, .mk3-seg button, .mk3-sw, .mk3-cap, .mk3-pre, .mk3-fxb { transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.mk3-ib:active, .mk3-seg button:active, .mk3-sw:active, .mk3-pre:active, .mk3-fxb:active, .mk3-cap:active { transform: scale(.95); }
.mk3-btn:active { transform: translateY(1px) scale(.98); }
.mk3-th:active { transform: scale(.96); }
@media (hover: hover) { .mk3-th:hover { box-shadow: 0 0 0 2px var(--mk-acc); } .mk3-cap:hover { border-color: var(--mk-acc); } }
.mk3-btn--soft { background: var(--mk-acc-2); border-color: transparent; color: #4B33C9 !important; }
.mk3-btn--soft:hover { background: #E2DBFF; }
/* onboarding checklist */
.mk4-onb { gap: 10px; }
.mk4-onb.out { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
@media (min-width: 900px) { .mk4-onb.out { transform: translateY(8px); } }
.mk4-onb-h { display: flex; align-items: center; gap: 8px; }
.mk4-onb-h b { flex: 1; }
.mk4-onb-p { font: 600 11.5px/1 Inter, sans-serif; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.mk4-onb .mk3-ib { color: #fff; width: 30px; height: 30px; min-width: 30px; background: transparent; border-color: rgba(255,255,255,.18); }
.mk4-onb .mk3-ib:hover { background: rgba(255,255,255,.1); }
.mk4-onb-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.mk4-onb-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FF8FB1, #FFD43B); border-radius: inherit; transition: width .35s ease; }
.mk4-onb ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mk4-onb-s { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; color: inherit; padding: 6px 6px; border-radius: 10px; cursor: pointer; font: inherit; }
.mk4-onb-s:hover { background: rgba(255,255,255,.07); }
.mk4-onb-c { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; }
.mk4-onb-c svg { width: 13px; height: 13px; stroke: #161B22; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s cubic-bezier(.3,1.6,.5,1); }
.mk4-onb-t { display: grid; gap: 1px; }
.mk4-onb-t b { font: 600 13.5px/1.25 Inter, sans-serif; color: #fff; }
.mk4-onb-t small { color: var(--on-dark-muted); font-size: 12px; }
.mk4-onb li.done .mk4-onb-c { background: #FFD43B; border-color: #FFD43B; }
.mk4-onb li.done .mk4-onb-c svg { opacity: 1; transform: none; }
.mk4-onb li.done .mk4-onb-t b { color: var(--on-dark-muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
/* crop sheet */
.mk4-card--crop { width: min(700px, 100%); }
.mk4-crop { display: grid; gap: 12px; justify-items: center; }
.mk4-crop-stage { background: #0E1116; border-radius: 12px; padding: 12px; display: grid; place-items: center; width: 100%; box-sizing: border-box; }
.mk4-crop-cv { touch-action: none; display: block; border-radius: 2px; cursor: crosshair; }
.mk4-crop-cv:focus-visible { outline: 3px solid var(--mk-acc); outline-offset: 3px; }
.mk4-crop-ar { flex-wrap: wrap; justify-content: center; }
.mk4-crop-info { margin: 0; font: 600 12.5px/1.2 Inter, sans-serif; color: var(--slate-500, #5b6573); font-variant-numeric: tabular-nums; }
.mk4-crop-acts { justify-content: flex-end; width: 100%; }
@media (max-width: 899px) { .mk4-crop-stage { padding: 8px; } .mk4-crop-acts { justify-content: stretch; } .mk4-crop-acts .mk3-btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .mk4-chip, .mk4-onb.out, .mk4-onb-bar i, .mk4-onb-c svg, .mk3-btn, .mk3-ib, .mk3-th { transition: none !important; } }
/* checklist folds to its header while you are editing so it never covers what you are working on */
.mk4-onb.min { gap: 0; padding-top: 9px; padding-bottom: 9px; opacity: .92; }
.mk4-onb.min ol, .mk4-onb.min .mk4-onb-bar { display: none; }
@media (min-width: 900px) { .mk4-onb { width: 262px; } }
/* .mk3 isolates its stacking context, so the fixed mobile sheet must lift the whole maker above later sections */
.mk3:has(> .mk3-sheet:not([hidden])) { z-index: 1000; }

/* --- Meme Maker v5 --- */
/* desktop: checklist sits in the right column instead of over the canvas */
@media (min-width: 900px) {
  .mk3-props > .mk4-onb { position: static; transform: none; width: auto; left: auto; right: auto; bottom: auto; margin: 0; }
  .mk3-props > .mk4-onb.out { transform: translateY(-6px); }
}
/* the checklist already explains the basics; don't repeat the tap tip under it */
@media (min-width: 900px) { .mk3-props > .mk4-onb:not([hidden]) ~ .mk3-empty { display: none; } }

/* v6: Ploy memes in Templates + Caption writer tab */
.mk6-sub { margin-top: 6px; }
.mk6-sub[hidden] { display: none !important; }
.mk6-ghead { grid-column: 1 / -1; margin: 10px 0 2px; font: 800 13px/1.2 var(--f-display); color: var(--ink); }
.mk6-ghead small { font-weight: 600; color: var(--slate-500); margin-left: 6px; }
.mk6-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0 4px; }
.mk6-more:empty { display: none; }
.mk6-morebtn { width: 100%; justify-content: center; }
.mk3-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mk3-row2 > * { justify-content: center; }
.mk3-tocap { border-color: var(--melon-500) !important; }
.mk3-loading--pane { min-height: 220px; }
.cw { display: grid; gap: 10px; }
.cw-head { display: grid; gap: 2px; }
.cw-honest { margin: 0; font-size: 12px; color: var(--slate-500); }
.cw-tabs { gap: 6px; }
.cw-body { display: grid; gap: 8px; }
.cw-lbl { font-size: 11.5px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .04em; }
.cw-lbl--b { margin: 2px 0 -2px; }
.cw-row { align-items: center; }
.cw-row .cw-lbl { min-width: 52px; }
.cw-vibes, .cw-fmts { gap: 6px; }
.mk3-chip.cw-sug { box-shadow: inset 0 0 0 2px var(--melon-500); }
.mk3-chip.cw-sug[aria-pressed="true"] { box-shadow: none; }
.cw-allv { border-style: dashed !important; }
.cw-kw { width: 100%; }
.cw-note:empty { display: none; }
.cw-more { border: 1px solid var(--mk-line); border-radius: 10px; padding: 6px 10px; background: var(--white); }
.cw-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); padding: 2px 0; }
.cw-opts { display: grid; gap: 8px; padding: 8px 0 4px; }
.cw-cards { display: grid; gap: 8px; }
.cw-card { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border: 1px solid var(--mk-line); border-radius: 10px; background: var(--white); cursor: pointer; transition: border-color .15s, transform .15s; }
.cw-card:hover, .cw-card:focus-visible { border-color: var(--melon-500); outline: none; }
.cw-card:active { transform: scale(.99); }
.cw-txt { flex: 1; display: grid; gap: 3px; min-width: 0; }
.cw-txt b { font: 400 15px/1.18 "MK Anton", Impact, sans-serif; color: var(--ink); letter-spacing: .02em; overflow-wrap: anywhere; }
.cw-txt span { font-size: 13px; line-height: 1.25; color: var(--slate-500); overflow-wrap: anywhere; }
.cw-acts { display: flex; gap: 2px; flex: none; }
.cw-ic { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 17px; line-height: 1; cursor: pointer; color: var(--slate-500); }
.cw-ic:hover { background: var(--slate-100, #f1f3f5); color: var(--ink); }
.cw-ic.is-on { color: #e0a100; }
.cw-bar { margin-top: 2px; }
.cw-tip { margin: 0; font-size: 12px; }
.cw-clear { justify-self: start; }
@media (max-width: 480px) { .cw-ic { width: 38px; height: 38px; } .cw-txt b { font-size: 14px; } }
/* ---- v6 options: fonts (OFL / Apache-2.0, subset), presets, gradients, frames, export ---- */
@font-face { font-family: "MK Bebas"; src: url("../assets/fonts/mk-bebas.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MK Luckiest"; src: url("../assets/fonts/mk-luckiest.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MK Caveat"; src: url("../assets/fonts/mk-caveat.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "MK Fredoka"; src: url("../assets/fonts/mk-fredoka.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "MK Archivo"; src: url("../assets/fonts/mk-archivo.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MK Cinzel"; src: url("../assets/fonts/mk-cinzel.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "MK Pacifico"; src: url("../assets/fonts/mk-pacifico.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MK Pixel"; src: url("../assets/fonts/mk-pixel.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.mk6-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin: 4px 0 8px; }
.mk6-sw { aspect-ratio: 1; min-height: 34px; border-radius: 9px; border: 2px solid var(--mk-line); cursor: pointer; padding: 0; background: #2F3742; color: #fff; font-size: 16px; }
.mk6-sw.on { border-color: #FFD43B; box-shadow: 0 0 0 2px rgba(255, 212, 59, .35); }
.mk6-frames .mk3-chip.on { border-color: #FFD43B; }
.mk6-tr { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0 4px; cursor: pointer; }
.mk6-tr input { width: 18px; height: 18px; accent-color: #2F9E44; }
.mk3-pre--melon span, .mk3-tpre--melon b { font-family: "MK Luckiest", sans-serif; color: #FF5C6C; -webkit-text-stroke: .8px #1B5E20; text-shadow: 2px 2px 0 #2F9E44; }
.mk3-pre--spooky span, .mk3-tpre--spooky b { font-family: "MK Luckiest", sans-serif; color: #FF9F1C; text-shadow: 0 0 6px #FF7A00; }
.mk3-pre--pond span, .mk3-tpre--pond b { font-family: "MK Fredoka", sans-serif; font-weight: 600; color: #E3FAFC; -webkit-text-stroke: .6px #0B4F6C; text-shadow: 2px 2px 0 #0B4F6C; }
.mk3-pre--tall span, .mk3-tpre--tall b { font-family: "MK Bebas", sans-serif; color: #fff; letter-spacing: .06em; text-shadow: 2px 2px 0 rgba(0,0,0,.35), 4px 4px 0 rgba(0,0,0,.2); }
.mk3-pre--hand span, .mk3-tpre--hand b { font-family: "MK Caveat", cursive; font-weight: 700; color: #1E242C; background: #fff; padding: 0 4px; border-radius: 4px; }
.mk3-pre--pixel span, .mk3-tpre--pixel b { font-family: "MK Pixel", monospace; color: #fff; font-size: 10px; text-shadow: 2px 2px 0 #111; }
.mk3-pre--epic span, .mk3-tpre--epic b { font-family: "MK Cinzel", serif; font-weight: 800; color: #F0D27A; letter-spacing: .08em; }
.mk3-pre--sticky span, .mk3-tpre--sticky b { font-family: "MK Archivo", sans-serif; color: #111; background: #FFE066; padding: 1px 5px; border-radius: 4px; }
.mk3-pre--script span, .mk3-tpre--script b { font-family: "MK Pacifico", cursive; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cw-cards { container-type: inline-size; }
@container (max-width: 320px) { .cw-card { flex-wrap: wrap; row-gap: 2px; padding-bottom: 4px; } .cw-txt { flex-basis: 100%; } .cw-acts { margin-left: auto; } .cw-ic { width: 32px; height: 30px; } }


/* ---------- Share to X (lightbox button + composer sheet, js/share.js) ---------- */
.btn--x { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn--x:hover { background: #1d1f23; transform: translateY(-1px); }
.btn--x:disabled { opacity: .45; transform: none; cursor: not-allowed; }
.lb__actions { flex-wrap: wrap; }
.lb__actions #lbShare { order: -1; }
.sx { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: var(--s-2); background: rgba(14,17,22,.55); }
.sx[hidden] { display: none; }
.sx__panel { width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; display: grid; gap: 12px; padding: var(--s-3); border-radius: var(--r-lg, 20px); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.sx__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sx__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.25rem; }
.sx__head h2 .i { width: 20px; height: 20px; }
.sx__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); }
.sx__close:hover { background: var(--slate-100); }
.sx__close .i { width: 18px; height: 18px; }
.sx__meme { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--slate-100); }
.sx__meme img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.sx__meme strong { display: block; font-size: .95rem; }
.sx__meme small { color: var(--slate-600); font-size: .8rem; word-break: break-word; }
.sx__pickhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sx__label { font-weight: 700; font-size: .9rem; }
.sx__vibes { display: flex; flex-wrap: wrap; gap: 6px; }
.sx__vibe { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 600; }
.sx__vibe[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sx__list { display: grid; gap: 6px; max-height: 196px; overflow: auto; overscroll-behavior: contain; padding: 2px; border-radius: 12px; }
.sx__post { text-align: left; white-space: pre-line; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font-size: .88rem; line-height: 1.35; }
.sx__post:hover { border-color: var(--line-strong); background: var(--cream-2); }
.sx__post[aria-pressed="true"] { border-color: var(--leaf-600); background: var(--leaf-100); box-shadow: inset 3px 0 0 var(--leaf-600); }
.sx__ta { width: 100%; min-height: 104px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); font: inherit; font-size: .95rem; line-height: 1.4; color: var(--ink); background: var(--white); }
.sx__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sx__ca { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.sx__ca input { width: 18px; height: 18px; accent-color: var(--leaf-600); }
.sx__cnt { font-variant-numeric: tabular-nums; color: var(--slate-600); font-weight: 700; }
.sx__cnt.is-over { color: var(--melon-600); }
.sx__post-btn { width: 100%; justify-content: center; font-size: 1.02rem; padding-block: 14px; }
.sx__more { display: flex; flex-wrap: wrap; gap: 8px; }
.sx__more .btn { border: 1px solid var(--line-strong); }
.sx__note { margin: 0; color: var(--slate-600); font-size: .8rem; }
@media (max-width: 640px) {
  .sx { place-items: end stretch; padding: 0; }
  .sx__panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: var(--s-2); padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom)); }
  .sx__list { max-height: 132px; }
  .sx__meme small { display: none; }
  .sx__meme img { width: 56px; height: 42px; }
  .sx__post-btn { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -10px 18px 6px var(--white); }
  .sx__ta { min-height: 88px; }
  .lb__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media print { .sx { display: none; } }
.mk3-xpickrow { display: flex; gap: 8px; align-items: stretch; }
.mk3-xpickrow .mk3-xpick { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 6px 10px; }
.mk3-xpickrow .mk3-btn { flex: none; }

/* ===================== s14: community kit ===================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* nav: Create dropdown + language */
.navdd { position: relative; }
.navdd__btn { display: inline-flex; align-items: center; gap: 4px; padding: var(--s-1) 10px var(--s-1) 12px; border: 0; background: none; border-radius: var(--r-pill); font: inherit; font-size: var(--t-sm); font-weight: 550; color: var(--slate-700); cursor: pointer; transition: color .2s, background-color .2s; }
.navdd__btn .i { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s var(--ease); }
.navdd__btn:hover { color: var(--ink); background: rgba(22,27,34,.05); }
.navdd__btn.is-active { color: var(--ink); background: var(--white); box-shadow: var(--sh-1); }
.navdd.open .navdd__btn .i { transform: rotate(-90deg); }
.navdd__menu { position: absolute; left: 50%; top: calc(100% + 10px); min-width: 236px; transform: translate(-50%, -6px); padding: 8px; display: grid; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; z-index: 120; }
.navdd.open .navdd__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.navdd__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.navdd__menu a .i { width: 18px; height: 18px; color: var(--melon-600); flex: none; }
.navdd__menu a:hover, .navdd__menu a:focus-visible { background: var(--cream); }
.langbtn { flex: none; min-width: 44px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: 700 .875rem/1 var(--f-body); cursor: pointer; }
.langbtn:hover { border-color: var(--ink); }
.langbtn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.langnote { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 var(--s-2); padding: 8px 8px 8px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--white); font-size: var(--t-sm); line-height: 1.4; }
.langnote[hidden] { display: none; }
.langnote p { margin: 0; }
.langnote__x { flex: none; min-height: 32px; border: 1px solid rgba(255,255,255,.35); background: none; color: var(--white); border-radius: var(--r-pill); padding: 4px 12px; font: 700 .8125rem var(--f-body); cursor: pointer; }
html.is-th body { font-family: "Inter", "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, system-ui, sans-serif; }
html.is-th h1, html.is-th h2, html.is-th h3 { font-family: "Bricolage Grotesque", "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, sans-serif; line-height: 1.2; }
@media (max-width: 960px) {
  .nav__inner .langbtn { height: 40px; margin-left: auto; }
  .brand { margin-right: 0; }
  .nav__inner .brand { margin-right: auto; }
  .navdd { border-bottom: 1px solid var(--line); }
  .navdd__btn { width: 100%; justify-content: space-between; padding: var(--s-2) 0; border-radius: 0; font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
  .navdd__btn:hover, .navdd__btn.is-active { background: none; box-shadow: none; }
  .navdd__btn.is-active { color: var(--melon-600); }
  .navdd__btn .i { width: 22px; height: 22px; }
  .navdd__menu { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; background: none; padding: 0 0 var(--s-2); display: none; grid-template-columns: 1fr 1fr; opacity: 1; visibility: visible; transition: none; }
  .navdd.open .navdd__menu { display: grid; transform: none; }
  .navdd__menu a { padding: 12px 10px; background: var(--white); border: 1px solid var(--line); }
}
/* press strip */
.seen { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: var(--s-3); }
.seen__lbl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500, #6B7684); }
.seen__lbl .i { width: 16px; height: 16px; }
.seen__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seen__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: .9375rem; letter-spacing: -.01em; transition: border-color .2s, transform .2s; }
.seen__chip:hover { border-color: var(--ink); transform: translateY(-1px); }
@media (max-width: 560px) { .seen { gap: 8px; } .seen__list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: 100%; padding: 2px 2px 6px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); } .seen__list::-webkit-scrollbar { display: none; } .seen__chip { white-space: nowrap; } }
/* how to buy: numbered list */
.buylist { list-style: none; max-width: 820px; margin: 0 auto; padding: 0; display: grid; gap: 12px; counter-reset: b; }
.buystep { position: relative; display: grid; grid-template-columns: 48px 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.buystep__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font: 800 1.25rem/1 var(--f-display); }
.buystep__ico { width: 40px; height: 44px; display: grid; place-items: center; color: var(--leaf-700); }
.buystep__ico .i { width: 26px; height: 26px; }
.buystep b { display: block; font-family: var(--f-display); font-size: 1.1875rem; color: var(--ink); margin: 2px 0 4px; }
.buystep p { margin: 0; color: var(--slate-700, #3A4350); line-height: 1.6; font-size: var(--t-base); }
.buystep a { color: var(--leaf-700); font-weight: 650; }
.buystep .howca { margin: 12px 0 0; max-width: none; background: var(--cream); }
.buystep--ca { border-color: var(--leaf-600); box-shadow: 0 0 0 3px var(--leaf-100); }
@media (max-width: 560px) { .buystep { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; gap: 12px; } .buystep__ico { display: none; } .buystep__n { width: 40px; height: 40px; font-size: 1.125rem; } .buystep .howca { margin-left: -52px; } }
/* meme guide */
.guide { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.guide__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.guide__n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--melon-500); color: var(--white); font: 400 1.5rem/1 "Lilita One", var(--f-display); transform: rotate(-4deg); }
.guide__item b { display: block; font-family: var(--f-display); font-size: 1.125rem; color: var(--ink); margin-bottom: 4px; }
.guide__item p { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--slate-700, #3A4350); }
.guide__item a { color: var(--leaf-700); font-weight: 650; }
.guide__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s-5); }
@media (max-width: 900px) { .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .guide { grid-template-columns: minmax(0, 1fr); gap: 10px; } .guide__item { padding: 16px; } .guide__ctas .btn { flex: 1 1 100%; } }
/* fan art wall (images hot-linked from X, credited) */
.fawall { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: var(--s-2); }
.fa { break-inside: avoid; margin-bottom: var(--s-2); border-radius: var(--r-md); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.fa__img { position: relative; display: block; background: var(--cream-2); }
.fa__img img { display: block; width: 100%; height: auto; }
.fa__open { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(22,27,34,.82); color: var(--white); font-size: var(--t-xs); font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.fa__open .i { width: 13px; height: 13px; }
.fa__img:hover .fa__open, .fa__img:focus-visible .fa__open { opacity: 1; transform: none; }
@media (hover: none) { .fa__open { opacity: 1; transform: none; } }
.fa__meta { display: grid; gap: 2px; padding: 12px 14px 14px; }
.fa__meta b { font-family: var(--f-display); color: var(--ink); font-size: 1rem; }
.fa__meta span { font-size: var(--t-sm); color: var(--slate-600, #4B5562); }
.fa__meta a { color: var(--leaf-700); font-weight: 650; text-decoration: none; }
.fa__meta a:hover { text-decoration: underline; }
.fa__note { max-width: 760px; margin: var(--s-3) auto 0; display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); line-height: 1.6; color: var(--slate-700, #3A4350); }
.fa__note .i { flex: none; width: 20px; height: 20px; color: var(--leaf-700); margin-top: 1px; }
.fa__note a { color: var(--leaf-700); font-weight: 650; }
@media (max-width: 600px) { .fawall { columns: 2 150px; column-gap: 10px; } .fa { margin-bottom: 10px; } .fa__meta { padding: 10px; } .fa__meta b { font-size: .875rem; } .fa__meta span { font-size: var(--t-xs); } }
/* weekly challenge */
.ch { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; }
.ch__card { position: relative; overflow: hidden; padding: var(--s-5); border-radius: var(--r-xl); background: radial-gradient(circle at 90% 10%, #3FA857, var(--leaf-700) 60%); color: var(--white); box-shadow: var(--sh-3); }
.ch__card::after { content: "🍉"; position: absolute; right: -14px; bottom: -22px; font-size: 140px; opacity: .16; transform: rotate(-18deg); pointer-events: none; }
.ch__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FFE7A8; }
.ch__eyebrow .i { width: 18px; height: 18px; }
.ch__week { margin: 10px 0 0; font-weight: 600; color: rgba(255,255,255,.8); font-size: var(--t-sm); }
.ch__title { margin: 6px 0 10px; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); color: var(--white); }
.ch__desc { margin: 0; font-size: var(--t-lg); line-height: 1.55; color: rgba(255,255,255,.92); max-width: 46ch; }
.ch__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-3); position: relative; z-index: 1; }
.ch__maker { background: rgba(255,255,255,.12) !important; color: var(--white) !important; border-color: rgba(255,255,255,.3) !important; }
.ch__next { margin: var(--s-3) 0 0; font-size: var(--t-sm); color: rgba(255,255,255,.75); }
.ch__next b { color: var(--white); }
.ch__side { padding: var(--s-4); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); display: grid; align-content: start; gap: 12px; }
.ch__side h3 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.ch__side h3 .i { width: 20px; height: 20px; color: var(--melon-600); }
.ch__how { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--slate-700, #3A4350); line-height: 1.55; }
.ch__how b { color: var(--ink); }
.ch__fine { margin: 0; font-size: var(--t-sm); color: var(--slate-500, #6B7684); }
.chwin { margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: grid; gap: 10px; }
.chwin__empty { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); background: var(--cream); font-size: var(--t-sm); line-height: 1.55; color: var(--slate-700, #3A4350); }
.chwin__empty .i { flex: none; width: 28px; height: 28px; color: var(--slate-400, #9AA5B3); }
.chwin__empty b { display: block; color: var(--ink); }
.chwin__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chwin__list a { display: grid; padding: 10px 12px; border-radius: var(--r-sm); background: var(--cream); color: var(--ink); text-decoration: none; }
.chwin__list span { font-size: var(--t-sm); color: var(--slate-600, #4B5562); }
@media (max-width: 860px) { .ch { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } .ch__card, .ch__side { padding: var(--s-3); border-radius: var(--r-lg); } .ch__ctas .btn { flex: 1 1 auto; } }
/* brand kit */
.kit__cta { margin-top: var(--s-3); }
.kit__cta small { font-weight: 600; opacity: .75; margin-left: 4px; font-size: .8em; }
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.kitcard { padding: var(--s-3); border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--line); }
.kitcard h3 { margin: 0 0 var(--s-2); font-size: 1.25rem; }
.kitlogos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kitlogo { margin: 0; display: grid; gap: 8px; }
.kitlogo__bg { display: grid; place-items: center; height: 120px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); padding: 14px; }
.kitlogo__bg img { max-width: 100%; max-height: 80px; width: auto; height: auto; }
.kitlogo--dark .kitlogo__bg { background: var(--ink); }
.kitlogo__bg--photo img { border-radius: 50%; }
.kitlogo figcaption { font-size: var(--t-sm); color: var(--slate-600, #4B5562); }
.kitlogo a { color: var(--leaf-700); font-weight: 700; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.swatch { width: 100%; display: grid; gap: 2px; text-align: left; padding: 8px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.swatch:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.swatch__chip { display: block; height: 52px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(22,27,34,.1); margin-bottom: 6px; }
.swatch b { font-size: var(--t-sm); }
.swatch code { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--slate-600, #4B5562); }
.kitnote { margin: 12px 0 0; font-size: var(--t-xs); color: var(--slate-500, #6B7684); }
.fonts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fonts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 10px 12px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.fonts__s { font-size: 1.375rem; color: var(--ink); font-family: var(--f-body); font-weight: 700; }
.fonts__s--display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; }
.fonts__s--meme { font-family: "Lilita One", var(--f-display); font-weight: 400; }
.fonts__s--mono { font-family: var(--f-mono); font-size: 1.125rem; }
.fonts li span { grid-row: 2; font-size: var(--t-xs); color: var(--slate-500, #6B7684); }
.fonts li a { grid-row: 1 / 3; grid-column: 2; align-self: center; display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 700; color: var(--leaf-700); text-decoration: none; }
.fonts li a .i { width: 13px; height: 13px; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dodont ul { list-style: none; margin: 0; padding: 14px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; font-size: var(--t-sm); line-height: 1.45; color: var(--slate-700, #3A4350); }
.dodont li { position: relative; padding-left: 26px; }
.dodont li::before { position: absolute; left: 0; top: -1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--white); }
.dodont__do { border-top: 4px solid var(--leaf-600) !important; }
.dodont__do li::before { content: "✓"; background: var(--leaf-600); }
.dodont__dont { border-top: 4px solid var(--melon-600) !important; }
.dodont__dont li::before { content: "✕"; background: var(--melon-600); }
.kit__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: var(--s-5) 0 var(--s-2); font-size: 1.25rem; }
.kit__h small { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 500; color: var(--slate-500, #6B7684); }
.cuts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cut { position: relative; display: grid; grid-template-rows: 1fr auto auto; gap: 6px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background-color: #fff; background-image: linear-gradient(45deg, #F2F3F5 25%, transparent 25%, transparent 75%, #F2F3F5 75%), linear-gradient(45deg, #F2F3F5 25%, transparent 25%, transparent 75%, #F2F3F5 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.cut img { width: 100%; height: 120px; object-fit: contain; }
.cut__name { font-weight: 700; font-size: var(--t-sm); color: var(--ink); text-align: center; }
.cut__dl { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); font: 700 var(--t-xs)/1 var(--f-body); color: var(--ink); cursor: pointer; }
.cut__dl .i { width: 14px; height: 14px; }
.cut__dl:hover { border-color: var(--ink); }
@media (max-width: 960px) { .kit { grid-template-columns: minmax(0, 1fr); } .cuts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kitcard { padding: var(--s-2); } .kitlogos { gap: 8px; } .kitlogo__bg { height: 96px; } .dodont { grid-template-columns: minmax(0, 1fr); } .cuts { gap: 8px; } .cut { padding: 8px; } .cut img { height: 84px; } .kit__cta .btn { width: 100%; justify-content: center; } }
/* stickers */
.stkgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-4); }
.stkgrid .kit__h { margin-top: 0; }
.stks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stks--props { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stk { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); cursor: pointer; font: 600 var(--t-xs)/1.2 var(--f-body); color: var(--slate-700, #3A4350); transition: transform .15s var(--ease), box-shadow .15s; }
.stk img { width: 100%; max-width: 88px; height: 72px; object-fit: contain; transition: transform .2s var(--ease); }
.stk:hover { box-shadow: var(--sh-2); }
.stk:hover img { transform: rotate(-6deg) scale(1.06); }
@media (max-width: 860px) { .stkgrid { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } }
@media (max-width: 560px) { .stks, .stks--props { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .stk img { height: 56px; } }
/* PFP framer */
.pfp { margin-top: var(--s-6); display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--s-5); align-items: center; padding: var(--s-4); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.pfp__stage { display: grid; gap: 8px; justify-items: center; }
#pfpCanvas { width: 100%; max-width: 420px; aspect-ratio: 1; height: auto; border-radius: 50%; background: var(--cream-2); box-shadow: var(--sh-2); touch-action: none; cursor: grab; }
#pfpCanvas:active { cursor: grabbing; }
.pfp__hint { margin: 0; font-size: var(--t-xs); color: var(--slate-500, #6B7684); }
.pfp__ctl { display: grid; gap: 14px; align-content: start; }
.pfp__eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--melon-600); }
.pfp__eyebrow .i { width: 18px; height: 18px; }
.pfp__ctl h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.pfp__lead { margin: 0; color: var(--slate-700, #3A4350); line-height: 1.6; }
.pfp__up { justify-self: start; cursor: pointer; }
.pfp__frames { display: flex; flex-wrap: wrap; gap: 8px; }
.pfp__frames button { display: grid; justify-items: center; gap: 4px; width: 76px; padding: 6px 4px; border-radius: var(--r-md); border: 2px solid transparent; background: var(--cream); cursor: pointer; font: 600 11px/1.2 var(--f-body); color: var(--ink); }
.pfp__frames button canvas, .pfp__frames button img { width: 52px; height: 52px; border-radius: 50%; }
.pfp__frames button[aria-checked="true"] { border-color: var(--melon-600); background: var(--white); box-shadow: var(--sh-1); }
.pfp__zoom { display: flex; align-items: center; gap: 12px; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.pfp__zoom input { flex: 1; accent-color: var(--melon-600); }
.pfp__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 860px) { .pfp { grid-template-columns: minmax(0, 1fr); padding: var(--s-3) var(--s-2); gap: var(--s-3); } #pfpCanvas { max-width: 320px; } .pfp__up { justify-self: stretch; justify-content: center; } .pfp__frames { justify-content: center; } .pfp__btns .btn--primary { flex: 1 1 100%; justify-content: center; } .pfp__btns { justify-content: center; } }
/* share / raid kit */
.skits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.skit { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.skit__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream); }
.skit__body { display: grid; gap: 8px; padding: var(--s-3); align-content: start; }
.skit__lab { margin: 0; font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--melon-600); }
.skit h3 { margin: 0; font-size: 1.25rem; }
.skit__copy { padding: 12px 14px; border-radius: var(--r-md); background: var(--cream); border: 1px dashed var(--line-strong); }
.skit__post { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--ink); }
.skit__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.skit__more { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px; border: 0; background: none; font: 700 var(--t-xs)/1 var(--f-body); color: var(--leaf-700); cursor: pointer; }
.skit__more .i { width: 15px; height: 15px; }
@media (max-width: 760px) { .skits { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } .skit__body { padding: var(--s-2); } }
/* footer tools + easter egg */
.footer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.ftool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); color: var(--on-dark); font: 600 var(--t-xs)/1 var(--f-body); cursor: pointer; }
.ftool .i { width: 15px; height: 15px; }
.ftool:hover { border-color: rgba(255,255,255,.4); }
.ftool[aria-pressed="true"] { background: rgba(255,255,255,.14); }
.footer__psst { font-size: var(--t-xs); color: var(--on-dark-muted); opacity: .6; }
.melonrain { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.melonrain span { position: absolute; top: -60px; font-size: 32px; animation: mrfall var(--d, 2.4s) linear var(--w, 0s) forwards; will-change: transform; }
@keyframes mrfall { to { transform: translateY(calc(100vh + 120px)) rotate(var(--r, 360deg)); } }
.hero__sticker.is-chomp { animation: chomp .5s var(--ease) 2; }
@keyframes chomp { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.25) rotate(-12deg); } 70% { transform: scale(.9) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .melonrain { display: none; } .hero__sticker.is-chomp { animation: none; } }

/* ===================== s15: Join the Herd (PFPs + builder) ===================== */
.navdd__new { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: var(--r-pill); background: var(--melon-500); color: #fff; }
.herd { background: radial-gradient(900px 500px at 50% -10%, rgba(108,75,216,.28), transparent 70%), var(--slate-900); }
.herd .shead h2 .hl { color: #FF8A93; }
.herdgrid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3) var(--s-2); max-width: 1080px; }
.herdpfp { display: grid; justify-items: center; gap: 6px; }
.herdpfp a { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--on-dark); font-size: var(--t-sm); font-weight: 700; }
.herdpfp img { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 14px 28px -14px rgba(0,0,0,.6); transition: transform .2s ease, box-shadow .2s ease; }
.herdpfp a:hover img, .herdpfp a:focus-visible img { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 3px var(--melon-500), 0 18px 30px -14px rgba(0,0,0,.7); }
.herdpfp__remix { border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark-muted); font: 600 12px var(--f-body); padding: 4px 12px; border-radius: var(--r-pill); cursor: pointer; min-height: 30px; }
.herdpfp__remix:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.herd__fine { text-align: center; margin: var(--s-3) 0 0; font-size: var(--t-xs); color: var(--on-dark-muted); }
.herdb { margin-top: var(--s-8); display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: var(--s-5); align-items: start; padding: var(--s-4); border-radius: var(--r-xl); background: var(--white); color: var(--slate-700, #3A4350); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); scroll-margin-top: calc(var(--nav-h) + 12px); }
.herd .herdb h3, .herd .herdb b { color: var(--ink); }
.herdb__stage { display: grid; gap: 10px; }
.herdb__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--cream); }
.herdb__frame canvas { display: block; width: 100%; height: 100%; }
.herdb__frame.is-guide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent calc(50% - 1px), rgba(255,255,255,.95) calc(50% - 1px) 50%, rgba(22,27,34,.55) 50%); }
.herdb__guide { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); cursor: pointer; }
.herdb__guide input { accent-color: var(--melon-600); width: 18px; height: 18px; }
.herdb__x { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.herdb__av { border-radius: 50%; flex: none; }
.herdb__av--l { width: 48px; height: 48px; }
.herdb__av--s { width: 32px; height: 32px; margin-left: auto; }
.herdb__post { min-width: 0; }
.herdb__who { margin: 0; font-size: 14px; color: var(--slate-500, #6B7684); }
.herdb__who b { color: var(--ink); }
.herdb__txt { margin: 2px 0 0; font-size: 15px; color: var(--ink); }
.herdb__ctl { display: grid; gap: 14px; align-content: start; }
.herdb__ctl h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.herdb__groups { display: grid; gap: 12px; }
.herdb__g > p { margin: 0 0 6px; font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-600, #4B5562); }
.herdb__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.herdopt { min-height: 36px; padding: 6px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); font: 600 13px var(--f-body); cursor: pointer; transition: border-color .15s, background .15s; }
.herdopt:hover { border-color: var(--slate-400, #9AA3AE); }
.herdopt[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.herdopt--sw { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); }
.herdopt--sw[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.herdcta { margin-top: var(--s-6); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-4); }
.herdcta__main { padding: var(--s-4); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--melon-600), #8E2BB0); color: #fff; }
.herdcta__main h3 { margin: 0 0 12px; color: #fff; }
.herdcta__steps { margin: 0 0 var(--s-3); padding-left: 1.3em; display: grid; gap: 6px; line-height: 1.5; }
.herd .herdcta__steps b { color: #fff; }
.herdcta__steps .mono { font-family: var(--f-mono); font-size: .92em; background: rgba(255,255,255,.16); padding: 1px 6px; border-radius: 6px; }
.herdcta__soon { padding: var(--s-4); border-radius: var(--r-xl); border: 1px dashed var(--line-dark); color: var(--on-dark-muted); }
.herdcta__soon p { margin: 0; line-height: 1.6; }
.herdcta__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px !important; font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.herdcta__tag .i { width: 16px; height: 16px; }

.herdb__preview-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.herdb__preview-row select { margin-left: 6px; font: 600 13px var(--f-body); border-radius: 8px; border: 1px solid var(--line); padding: 4px 8px; }
.herdb__hdr { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #0f141a; }
.herdb__hdr canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; }
.herdb__hdr-lbl { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.7); background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 999px; }
.herdb__rarity { margin: 0; font-size: var(--t-xs); color: var(--slate-600, #4B5562); line-height: 1.4; }
.herdb__rarity b { color: var(--ink); }
.herdb__toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.herdb__glab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.herdb__glab > p { margin: 0; font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-600, #4B5562); }
.herdb__lock { border: 1px solid var(--line); background: transparent; color: var(--slate-500); font: 700 10px var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; cursor: pointer; min-height: 24px; }
.herdb__lock.is-locked, .herdb__lock[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.herdopt--rare { box-shadow: inset 0 0 0 1px #F6C343; }
.herdb__frame.is-square { border-radius: var(--r-lg); }
.herdb__frame.is-square.is-guide::after { background: none; }
.herdb__groups { max-height: min(62vh, 720px); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.herdb__opts { max-height: none; }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--slate-400); }

@media (max-width: 960px) {
  .herdgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .herdb { grid-template-columns: minmax(0, 1fr); }
  .herdb__stage { max-width: 440px; width: 100%; justify-self: center; }
  .herdcta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .herdgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2) 10px; }
  .herdpfp a { font-size: 12px; text-align: center; }
  .herdb { padding: var(--s-2); }
  .herdcta__main, .herdcta__soon { padding: var(--s-3); }
  .herd .kit__cta .btn { width: 100%; justify-content: center; }
}

.herdb__hint{margin:.55rem 0 0;padding:.55rem .75rem;border-radius:10px;background:#E8F5E9;color:#1B5E20;font-size:.9rem;font-weight:700;line-height:1.35}
.pfp__btns{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.pfp__btns .btn{flex:1 1 auto;min-width:9.5rem}
@media (max-width:520px){.pfp__btns .btn{min-width:100%}}

/* Make your own PFP — nav / Create dropdown highlight */
.nav__pfp { white-space: nowrap; }
.navdd__feat {
  background: linear-gradient(135deg, var(--melon-600), #c9184a) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 16px -8px rgba(196,37,54,.55);
}
.navdd__feat .i { color: #fff !important; }
.navdd__feat:hover, .navdd__feat:focus-visible {
  background: linear-gradient(135deg, var(--melon-700), #a4133c) !important;
  color: #fff !important;
  filter: brightness(1.03);
}
.navdd__feat .navdd__new { background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 900px) {
  .nav__pfp--desk { display: none !important; }
  .nav__mobile-extra .nav__pfp { order: -1; }
}

/* Herd announcement bar (above nav, scrolls away; nav stays sticky) */
.annc { position: relative; z-index: 101; display: flex; align-items: stretch; min-height: 34px; background: linear-gradient(90deg, #161B22, #2A1D44 55%, #C9184A); color: #fff; font-size: 13.5px; line-height: 1.25; }
.annc__link { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 44px; color: #fff; text-decoration: none; text-align: center; }
.annc .annc__link b, .annc .annc__link strong { color: #fff; font-weight: 800; margin-right: 4px; }
.annc__txt { min-width: 0; }
.annc__arr { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.16); font-weight: 800; font-size: 12px; transition: transform .2s var(--ease, ease), background-color .2s; flex: none; }
.annc__link:hover .annc__arr, .annc__link:focus-visible .annc__arr { transform: translateX(3px); background: var(--melon-600, #E23B4A); }
.annc__link:hover .annc__txt { text-decoration: underline; text-underline-offset: 3px; }
.annc__link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.annc__x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.75); font-size: 20px; line-height: 1; cursor: pointer; }
.annc__x:hover, .annc__x:focus-visible { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 960px) {
  html.has-annc .nav__links { top: var(--menu-top, var(--nav-h)); }
}
@media (max-width: 480px) {
  .annc { font-size: 12.5px; min-height: 32px; }
  .annc__link { padding: 6px 38px 6px 12px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .annc__arr { transition: none; } }

/* ===== s19 polish: a11y contrast, tokens, footer peek hippo ===== */
:root { --slate-400: #8C96A3; }
.footer__psst { opacity: .85; }
.footer { position: relative; }
.fpeek { position: absolute; right: clamp(16px, 7vw, 96px); top: -48px; width: 76px; height: 48px; display: block; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.fpeek__win { position: absolute; inset: 0; overflow: hidden; border-radius: 0; }
.fpeek img { display: block; width: 76px; height: 76px; transform: translateY(100%); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.fpeek.is-in img { transform: translateY(14%); }
.fpeek:hover img, .fpeek:focus-visible img { transform: translateY(4%) rotate(-6deg); }
.fpeek.is-boop img { animation: fpeek-boop .5s ease; }
.fpeek__tip { position: absolute; right: 74px; top: 8px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); font: 600 12px/1.3 var(--f-body); white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
@media (hover: hover) { .fpeek:hover .fpeek__tip { opacity: 1; transform: none; } }
.fpeek:focus-visible .fpeek__tip { opacity: 1; transform: none; }
.fpeek:focus-visible { outline: none; }
.fpeek:focus-visible img { filter: drop-shadow(0 0 0 #8FD19E) drop-shadow(0 0 3px #8FD19E); }
@keyframes fpeek-boop { 0%,100% { transform: translateY(14%); } 30% { transform: translateY(0) rotate(5deg) scale(1.06); } 60% { transform: translateY(8%) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .fpeek img, .fpeek__tip { transition: none; } .fpeek.is-boop img { animation: none; } }
@media print { .fpeek { display: none; } }
