/* Feature illustrations — all sizes are fluid via clamp() so they scale
   smoothly across mobile/tablet/desktop without stepwise breakpoints. */

/* ---- Illustration: irregular crossword ---- */
.illus-xword {
  display: grid;
  grid-template-columns: repeat(5, clamp(40px, 12vw, 56px));
  gap: clamp(3px, 1vw, 6px);
  padding: clamp(16px, 4vw, 28px);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--vp-shadow-card);
  border: 1px solid var(--vp-divider);
  transform: rotate(-3deg);
  transition: transform .4s var(--vp-ease-tile);
}
.illus-xword:hover { transform: rotate(0deg) scale(1.03); }
.illus-xword__cell {
  width: clamp(40px, 12vw, 56px);
  height: clamp(40px, 12vw, 56px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vp-font-rounded);
  font-weight: 800;
  font-size: clamp(18px, 5vw, 24px);
}
.illus-xword__cell--filled {
  background: var(--vp-brand-blue);
  color: #fff;
  box-shadow: 0 2px 0 rgba(15,23,42,0.06);
}
.illus-xword__cell--empty { background: transparent; }
.illus-xword__cell--slot {
  background: transparent;
  color: var(--vp-amber-deep);
  border: 2px dashed var(--vp-brand-yellow);
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s var(--vp-ease-tile), background .15s linear;
}
.illus-xword__cell--slot:hover {
  background: var(--vp-amber-fill-soft);
  transform: scale(1.06);
}
.illus-xword__cell--green {
  background: var(--vp-success-fill);
  color: var(--vp-success-ink);
  border: 2px solid var(--vp-success-green);
  animation: tileFlip 0.45s var(--vp-ease-flip);
  cursor: default;
}

/* ---- Illustration: calendar ---- */
.illus-cal {
  background: #fff;
  border-radius: 24px;
  padding: clamp(20px, 5vw, 28px);
  box-shadow: var(--vp-shadow-card);
  border: 1px solid var(--vp-divider);
  width: clamp(240px, 70vw, 320px);
  transform: rotate(3deg);
  transition: transform .4s var(--vp-ease-tile);
}
.illus-cal:hover { transform: rotate(0); }
.illus-cal__head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.illus-cal__month { font-weight: 900; font-size: 18px; color: var(--vp-text-primary); }
.illus-cal__year { font-size: 12px; font-weight: 700; color: var(--vp-text-secondary); }
.illus-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
  text-align: center;
  font-weight: 700;
}
.illus-cal__dow {
  color: var(--vp-text-tertiary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
}
.illus-cal__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--vp-brand-blue-mist);
  color: var(--vp-brand-blue-deep);
}
.illus-cal__day--solved {
  background: var(--vp-success-fill);
  color: var(--vp-success-ink);
}
.illus-cal__day--today {
  background: var(--vp-brand-blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37,99,235,0.4);
}
.illus-cal__day--out { opacity: 0.3; }
.illus-cal__streak {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--vp-orange-fill);
  color: var(--vp-orange-ink);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
}

/* ---- Illustration: brain (THINK) — overlapping 3D-ish tiles ---- */
.illus-brain {
  position: relative;
  width: clamp(220px, 65vw, 340px);
  height: clamp(220px, 65vw, 340px);
}
.illus-brain__tile {
  position: absolute;
  width: clamp(72px, 22vw, 100px);
  height: clamp(72px, 22vw, 100px);
  border-radius: 16px;
  background: var(--vp-brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(32px, 10vw, 48px);
  font-family: var(--vp-font-rounded);
  box-shadow: 0 12px 24px rgba(37,99,235,0.18);
  animation: floatBob 5s ease-in-out infinite;
}
/* Position by percentage so they stay coherent at any scale. */
.illus-brain__tile--a { top: 3%;  left: 9%;  }
.illus-brain__tile--b { top: 18%; left: 50%; }
.illus-brain__tile--c { top: 53%; left: 18%; }
.illus-brain__tile--d { top: 65%; left: 59%; }
.illus-brain__tile--e { top: 32%; left: 32%; }

/* ---- Illustration: share card ---- */
.illus-share {
  background: #fff;
  border-radius: 24px;
  padding: clamp(18px, 4.5vw, 24px);
  box-shadow: var(--vp-shadow-card);
  border: 1px solid var(--vp-divider);
  width: clamp(240px, 70vw, 320px);
  transform: rotate(2deg);
  transition: transform .4s var(--vp-ease-tile);
}
.illus-share:hover { transform: rotate(0); }
.illus-share__head { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: var(--vp-brand-blue-deep); margin-bottom: 6px; }
.illus-share__title { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--vp-text-primary); }
.illus-share__row { display: flex; align-items: center; gap: 10px; padding: clamp(7px, 2vw, 10px) 4px; border-bottom: 1px solid var(--vp-divider); }
.illus-share__row:last-child { border-bottom: none; }
.illus-share__row--highlight { background: var(--vp-brand-blue-mist); border-radius: 10px; padding: clamp(7px, 2vw, 10px) 8px; }
.illus-share__avatar { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; color: #fff; flex-shrink: 0; }
.illus-share__name { flex: 1; font-weight: 700; font-size: 14px; color: var(--vp-text-primary); }
.illus-share__time { font-family: var(--vp-font-mono); font-size: 12px; font-weight: 700; color: var(--vp-success-ink); background: var(--vp-success-fill); padding: 3px 9px; border-radius: 999px; }
