/* PixelPals - Kawaii Pastel theme
   Trainers helping trainers. */

:root {
  --bg: #fff5fa;
  --bg-2: #fff;
  --pink: #ffb3d1;
  --pink-deep: #ff7fb0;
  --mint: #b8f5d0;
  --mint-deep: #6fe0a0;
  --lav: #d9c2ff;
  --lav-deep: #b491ff;
  --yellow: #ffe89e;
  --ink: #5a4a63;
  --ink-soft: #8a7b93;
  --white: #ffffff;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow-soft: 0 10px 30px rgba(255, 127, 176, 0.18);
  --shadow-pop: 0 14px 0 rgba(180, 145, 255, 0.22);
  --shadow-card: 0 12px 28px rgba(151, 122, 173, 0.16);
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(217, 194, 255, 0.35) 0, transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(184, 245, 208, 0.4) 0, transparent 28%),
    radial-gradient(circle at 78% 88%, rgba(255, 179, 209, 0.4) 0, transparent 32%),
    radial-gradient(circle at 6% 92%, rgba(255, 232, 158, 0.4) 0, transparent 30%);
  background-attachment: fixed;
  line-height: 1.65;
  font-weight: 500;
  overflow-x: hidden;
}

/* floating pastel dots layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 179, 209, 0.5) 0 6px, transparent 7px),
    radial-gradient(circle, rgba(184, 245, 208, 0.5) 0 5px, transparent 6px),
    radial-gradient(circle, rgba(217, 194, 255, 0.5) 0 4px, transparent 5px);
  background-size: 340px 340px, 280px 280px, 200px 200px;
  background-position: 20px 40px, 160px 120px, 90px 220px;
  opacity: 0.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: var(--pink-deep); text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 245, 250, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 3px dashed rgba(255, 179, 209, 0.55);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  margin-right: auto;
}
.brand .brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  animation: bob 3.2s ease-in-out infinite;
}
.brand .brand-mark svg { width: 30px; height: 30px; }
.brand b { color: var(--pink-deep); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--mint); transform: translateY(-2px); }
.nav-links a.active { background: var(--lav); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--pink);
  border: 3px solid var(--white);
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--pink-deep);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 12px 0 var(--pink-deep); animation: wobble 0.5s ease; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--pink-deep); }
.btn-mint { background: var(--mint); box-shadow: 0 8px 0 var(--mint-deep); }
.btn-mint:hover { box-shadow: 0 12px 0 var(--mint-deep); }
.btn-mint:active { box-shadow: 0 3px 0 var(--mint-deep); }
.btn-lav { background: var(--lav); box-shadow: 0 8px 0 var(--lav-deep); }
.btn-lav:hover { box-shadow: 0 12px 0 var(--lav-deep); }
.btn-lav:active { box-shadow: 0 3px 0 var(--lav-deep); }
.btn-sm { font-size: 0.9rem; padding: 9px 18px; box-shadow: 0 6px 0 var(--pink-deep); }
.btn-sm:hover { box-shadow: 0 9px 0 var(--pink-deep); }
.btn.disabled, .btn:disabled {
  background: #ececf2;
  color: var(--ink-soft);
  box-shadow: 0 6px 0 #d5d0dd;
  cursor: not-allowed;
  transform: none;
  animation: none;
}
.btn-discord { padding-left: 22px; }

/* ---------- Sticker badges ---------- */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  border: 2.5px solid var(--pink);
  box-shadow: 0 4px 10px rgba(255, 127, 176, 0.25);
  transform: rotate(-3deg);
}
.sticker.mint { border-color: var(--mint-deep); transform: rotate(2deg); }
.sticker.lav { border-color: var(--lav-deep); transform: rotate(-2deg); }
.sticker.yellow { border-color: #f2ce5e; transform: rotate(3deg); }
.sticker-icon, .sticker-img { flex-shrink: 0; }
.sticker-img { object-fit: contain; }
.btn-icon { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  color: var(--ink);
}
.hero-copy h1 .pop { color: var(--pink-deep); display: inline-block; animation: bob 3s ease-in-out infinite; }
.hero-tag {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 6px 0 24px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stickers { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.hero-art { display: grid; place-items: center; position: relative; }
.blob-card {
  position: relative;
  width: 340px; max-width: 100%;
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.blob-card .blob-bg {
  position: absolute; inset: 0;
  fill: var(--lav);
  filter: drop-shadow(0 20px 30px rgba(180, 145, 255, 0.3));
  animation: morph 9s ease-in-out infinite, spin 40s linear infinite;
}
.mascot { width: 190px; height: 190px; position: relative; z-index: 2; animation: bob 3.6s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 44px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head .eyebrow {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--lav-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-weight: 600; font-size: 1.08rem; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.svc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-card);
  border: 3px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.9;
  z-index: 0;
}
.svc-card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--pink); box-shadow: 0 20px 34px rgba(255, 127, 176, 0.25); }
.svc-card:nth-child(3n+2):hover { border-color: var(--mint-deep); }
.svc-card:nth-child(3n):hover { border-color: var(--lav-deep); }
.svc-icon {
  position: relative; z-index: 1;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--pink);
  box-shadow: 0 8px 0 rgba(255, 127, 176, 0.35);
  margin-bottom: 16px;
}
.svc-icon img {
  width: 40px; height: 40px;
  object-fit: contain;
}
.svc-card:nth-child(3n+2) .svc-icon { background: var(--mint); box-shadow: 0 8px 0 rgba(111, 224, 160, 0.4); }
.svc-card:nth-child(3n) .svc-icon { background: var(--lav); box-shadow: 0 8px 0 rgba(180, 145, 255, 0.4); }
.svc-card h3 { position: relative; z-index: 1; font-size: 1.3rem; }
.svc-card p { position: relative; z-index: 1; color: var(--ink-soft); font-weight: 600; margin: 0; }

/* ---------- Why us strip ---------- */
.why {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.why-item { text-align: center; }
.why-icon {
  display: inline-grid; place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--bg);
  margin-bottom: 10px;
  animation: bob 4s ease-in-out infinite;
}
.why-item:nth-child(2) .why-icon { animation-delay: 0.4s; }
.why-item:nth-child(3) .why-icon { animation-delay: 0.8s; }
.why-item:nth-child(4) .why-icon { animation-delay: 1.2s; }
.why-item h3 { font-size: 1.2rem; margin-bottom: 4px; }
.why-item p { color: var(--ink-soft); font-weight: 600; margin: 0; font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.testi-card:nth-child(1) { transform: rotate(-1.4deg); }
.testi-card:nth-child(2) { transform: rotate(1deg); }
.testi-card:nth-child(3) { transform: rotate(-0.6deg); }
.testi-card::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--pink);
  position: absolute;
  top: 14px; right: 20px;
  opacity: 0.6;
}
.testi-card p { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--mint);
}
.testi-card:nth-child(2) .testi-avatar { background: var(--lav); }
.testi-card:nth-child(3) .testi-avatar { background: var(--yellow); }
.testi-who b { font-family: var(--font-head); display: block; font-size: 1rem; }
.testi-who span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.testi-note {
  text-align: center; color: var(--ink-soft);
  font-weight: 600; font-size: 0.9rem; margin-top: 18px;
}

/* ---------- CTA band ---------- */
.cta-band {
  margin: 50px 0 10px;
  background: linear-gradient(120deg, var(--pink) 0%, var(--lav) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); }
.cta-band p { color: rgba(90, 74, 99, 0.85); font-weight: 700; margin-bottom: 22px; }

/* ---------- Raids page ---------- */
.page-hero {
  text-align: center;
  padding: 46px 0 20px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; max-width: 44ch; margin: 0 auto; }

.boss-picker {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px 0 30px;
}
.boss-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
  padding: 16px 18px;
  background: var(--white);
  border: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.boss-chip .boss-art {
  width: 56px; height: 56px;
  object-fit: contain;
}
.boss-chip .boss-name { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1rem; }
.boss-chip .boss-tier { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.boss-chip:hover { transform: translateY(-5px) rotate(-1deg); }
.boss-chip.active { border-color: var(--pink); background: #fff0f7; transform: translateY(-3px); }

.counter-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}
.counter-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.counter-panel-head .cp-art {
  width: 70px; height: 70px;
  object-fit: contain;
  border-radius: 22px;
  background: var(--bg);
  padding: 4px;
}
.type-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.type-icon {
  width: 18px; height: 18px;
  object-fit: contain;
  vertical-align: middle;
}
.counter-panel-head h2 { margin: 0; font-size: 1.7rem; }
.cp-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.type-tag {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--ink);
}
.cp-cp { margin-left: auto; text-align: right; }
.cp-cp b { font-family: var(--font-head); font-size: 1.5rem; color: var(--pink-deep); display: block; }
.cp-cp span { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }

.counter-list { display: flex; flex-direction: column; gap: 12px; }
.counter-row {
  display: grid;
  grid-template-columns: 34px 1.4fr 0.8fr 1.4fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.15s ease;
}
.counter-row:hover { transform: translateX(4px); }
.counter-rank {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--lav-deep);
  font-size: 1.1rem;
}
.counter-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.counter-type .type-tag { background: var(--mint); }
.counter-move { font-weight: 600; color: var(--ink-soft); font-size: 0.94rem; }
.rating {
  display: flex; align-items: center; gap: 8px;
  justify-content: flex-end;
}
.rating-bar {
  width: 72px; height: 12px;
  border-radius: 999px;
  background: #efe7f2;
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-deep), var(--pink-deep));
}
.rating b { font-family: var(--font-head); font-weight: 800; min-width: 30px; text-align: right; }
.counter-list-head {
  display: grid;
  grid-template-columns: 34px 1.4fr 0.8fr 1.4fr auto;
  gap: 14px;
  padding: 0 18px 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.counter-list-head .rh { text-align: right; }

/* ---------- Friends page ---------- */
.friends-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 26px;
  align-items: start;
}
.isolation-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  color: var(--ink);
  max-width: max-content;
  margin: 0 auto 26px;
  box-shadow: 0 6px 16px rgba(242, 206, 94, 0.3);
}
.add-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}
.add-card h2 { font-size: 1.4rem; }
.add-card .sub { color: var(--ink-soft); font-weight: 600; font-size: 0.94rem; margin-top: -4px; margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--ink);
}
.field input, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 16px;
  border: 3px solid #f2e3ec;
  border-radius: 16px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--pink); }
.team-pick { display: flex; gap: 8px; }
.team-opt {
  flex: 1;
  cursor: pointer;
  text-align: center;
  padding: 10px 4px;
  border-radius: 16px;
  border: 3px solid #f2e3ec;
  background: var(--bg);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  transition: transform 0.14s, border-color 0.14s;
}
.to-dot {
  display: block;
  width: 22px; height: 22px;
  border-radius: 50%;
  margin: 0 auto 4px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
}
.to-dot.mystic { background: #7aa8ff; }
.to-dot.valor { background: #ff8a8a; }
.to-dot.instinct { background: #f2ce5e; }
.note-icon { flex-shrink: 0; }
.team-opt input { position: absolute; opacity: 0; pointer-events: none; }
.team-opt.sel-mystic { border-color: #7aa8ff; background: #eef4ff; }
.team-opt.sel-valor { border-color: #ff8a8a; background: #ffeeee; }
.team-opt.sel-instinct { border-color: #f2ce5e; background: #fff8e6; }
.team-opt:hover { transform: translateY(-3px); }
.form-msg {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mint-deep);
  min-height: 1.2em;
}

.directory-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.directory-head h2 { font-size: 1.5rem; margin: 0; }
.directory-head .count {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--pink-deep);
}
.code-list { display: flex; flex-direction: column; gap: 14px; }
.code-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  border-left: 8px solid var(--lav);
  transition: transform 0.16s ease;
}
.code-card:hover { transform: translateY(-3px); }
.code-card.team-mystic { border-left-color: #7aa8ff; }
.code-card.team-valor { border-left-color: #ff8a8a; }
.code-card.team-instinct { border-left-color: #f2ce5e; }
.code-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--bg);
}
.code-main .code-trainer {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mine-tag {
  font-size: 0.68rem;
  background: var(--pink);
  color: var(--ink);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 800;
  transform: rotate(-4deg);
}
.code-digits {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 2px 0;
}
.code-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.team-badge {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--ink);
}
.team-badge.mystic { background: #d6e4ff; }
.team-badge.valor { background: #ffd9d9; }
.team-badge.instinct { background: #ffefc2; }
.lvl-pill {
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 999px;
}
.code-actions { text-align: center; }
.cooldown-text { display: block; font-size: 0.72rem; color: var(--ink-soft); font-weight: 700; margin-top: 6px; }
.empty {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 30px;
}

/* ---------- Blog: sticker-card masonry ---------- */
.blog-masonry {
  columns: 2;
  column-gap: 22px;
  margin-top: 10px;
}
.blog-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 22px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 3px solid transparent;
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  border-color: var(--pink);
  box-shadow: 0 20px 34px rgba(255, 127, 176, 0.25);
}
.blog-card.sticker-mint:hover { border-color: var(--mint-deep); }
.blog-card.sticker-lav:hover { border-color: var(--lav-deep); }
.blog-card.sticker-yellow:hover { border-color: #f2ce5e; }
.blog-card-cover {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--lav) 100%);
  display: grid;
  place-items: center;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-cover-fallback {
  background: linear-gradient(135deg, var(--mint) 0%, var(--lav) 100%);
}
.blog-card-body {
  padding: 22px 24px 26px;
  position: relative;
}
.blog-cat {
  margin-bottom: 10px;
  transform: rotate(-2deg);
}
.blog-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  line-height: 1.2;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--lav-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.blog-read {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.blog-excerpt {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0 0 14px;
  line-height: 1.55;
}
.blog-card-link {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--pink-deep);
}
.blog-empty {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  box-shadow: var(--shadow-card);
  max-width: 520px;
  margin: 0 auto;
}
.blog-empty-icon { margin-bottom: 16px; }
.blog-empty h2 { font-size: 1.6rem; }
.blog-empty p { color: var(--ink-soft); font-weight: 600; }

/* ---------- Single post page ---------- */
.post-article {
  max-width: 760px;
  margin: 0 auto;
}
.post-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  max-height: 320px;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 36px 38px;
  box-shadow: var(--shadow-card);
}
.post-inner h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--lav-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px dotted rgba(180, 145, 255, 0.35);
}
.post-author { color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 600; }
.post-body {
  font-weight: 500;
  color: var(--ink);
  line-height: 1.7;
}
.post-body h2 {
  font-size: 1.4rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}
.post-body p { margin: 0 0 16px; }
.post-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.post-body li { margin-bottom: 6px; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
}

/* ---------- Related articles ---------- */
.related-section {
  max-width: 900px;
  margin: 50px auto 0;
  padding-bottom: 20px;
}
.related-head {
  text-align: center;
  margin-bottom: 28px;
}
.related-head .eyebrow {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--lav-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.related-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.related-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  border: 3px solid transparent;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s;
}
.related-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: var(--lav);
}
.related-thumb {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-body h3 {
  font-size: 1.05rem;
  margin: 6px 0 4px;
  line-height: 1.25;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  background: var(--white);
  border-top: 3px dashed rgba(255, 179, 209, 0.55);
  padding: 40px 0 30px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--bg); border-radius: 50%; }
.footer-brand .brand-mark svg { width: 32px; height: 32px; }
.footer-brand b { font-family: var(--font-head); font-size: 1.3rem; }
.footer-brand span { display: block; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-weight: 700; color: var(--ink); }
.footer-links a:hover { color: var(--pink-deep); }
.footer-fine {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px dotted rgba(180, 145, 255, 0.35);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}
.footer-cap {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--mint-deep);
}

/* ---------- Animations ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -3deg; }
  75% { rotate: 3deg; }
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { border-radius: 62% 38% 41% 59% / 58% 61% 39% 42%; }
}
@keyframes pop-in {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.pop-in { animation: pop-in 0.35s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 34px; }
  .hero-copy .hero-tag { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stickers { justify-content: center; }
  .hero-art { order: -1; }
  .blob-card { width: 240px; }
  .friends-layout { grid-template-columns: 1fr; }
  .add-card { position: static; }
}
@media (max-width: 680px) {
  .nav { flex-wrap: wrap; gap: 8px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .nav .btn-discord { margin-left: auto; }
  .counter-row, .counter-list-head { grid-template-columns: 28px 1fr auto; }
  .counter-type, .counter-move, .counter-list-head .ch-type, .counter-list-head .ch-move { display: none; }
  .code-card { grid-template-columns: 46px 1fr; }
  .code-actions { grid-column: 1 / -1; text-align: left; }
  .cp-cp { margin-left: 0; text-align: left; }
  .blog-masonry { columns: 1; }
  .post-inner { padding: 26px 22px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
}
