/* Bella's World — personal Sanrio fan homepage (original layout/code) */

:root {
  --bg: #ffeaf4;
  --bg-2: #e6f4ff;
  --bg-3: #fff5e0;
  --cream: #fff9f0;
  --ink: #4a2a5b;
  --ink-soft: #8a6ba0;
  --pink: #ffb6d5;
  --pink-deep: #ff6fa8;
  --pink-hot: #ff3d8c;
  --sky: #b6e0ff;
  --sky-deep: #6fb3e8;
  --mint: #c4ecd5;
  --lemon: #fff3b0;
  --lavender: #d9c8ff;
  --peach: #ffd6b8;
  --shadow: 0 8px 24px rgba(180, 90, 150, 0.18);
  --shadow-soft: 0 4px 14px rgba(180, 90, 150, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --font-display: "Fredoka", "Quicksand", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  --font-body: "Quicksand", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(ellipse at 10% 0%, var(--bg-2) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 8%, var(--bg-3) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 60%, #fff 0%, transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  min-height: 100vh;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* tiny hearts background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,182,213,0.2) 1px, transparent 2px),
    radial-gradient(circle at 70% 50%, rgba(182,224,255,0.25) 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,243,176,0.3) 1px, transparent 2px);
  background-size: 80px 80px, 100px 100px, 120px 120px;
}

/* ========== Floating sparkles & clouds ========== */
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 100px;
  filter: drop-shadow(0 6px 12px rgba(180, 90, 150, 0.12));
  opacity: 0.85;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.cloud.c1 { width: 180px; height: 50px; top: 8%; left: -10%; animation: drift 60s linear infinite; }
.cloud.c1::before { width: 80px; height: 80px; top: -38px; left: 24px; }
.cloud.c1::after  { width: 60px; height: 60px; top: -28px; left: 90px; }
.cloud.c2 { width: 140px; height: 40px; top: 38%; left: -10%; animation: drift 80s linear infinite; animation-delay: -20s; }
.cloud.c2::before { width: 60px; height: 60px; top: -28px; left: 18px; }
.cloud.c2::after  { width: 50px; height: 50px; top: -22px; left: 70px; }
.cloud.c3 { width: 220px; height: 60px; top: 65%; left: -15%; animation: drift 90s linear infinite; animation-delay: -40s; }
.cloud.c3::before { width: 100px; height: 100px; top: -50px; left: 30px; }
.cloud.c3::after  { width: 70px; height: 70px; top: -34px; left: 120px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(120vw); } }

.no-motion .cloud, .no-motion .float, .no-motion .wiggle, .no-motion .twinkle, .no-motion .spin-slow, .no-motion .marquee-track { animation: none !important; }

/* ========== Layout ========== */
main { position: relative; z-index: 1; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ========== Top marquee ========== */
.marquee {
  background: linear-gradient(90deg, var(--pink-hot) 0%, var(--pink-deep) 50%, var(--sky-deep) 100%);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== Nav ========== */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  max-width: 1140px;
  padding: 0 16px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #fff;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  display: grid; place-items: center;
  font-size: 16px;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08), 0 2px 6px rgba(255,111,168,0.4);
}
.brand .heart { color: var(--pink-hot); animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.25); }
  40% { transform: scale(1); }
  60% { transform: scale(1.18); }
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--pink); color: #fff; }
.nav-cta {
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px) rotate(-2deg); }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 50px 0 30px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: var(--pink-hot);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink-hot); animation: twinkle 1.6s ease-in-out infinite; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(54px, 9vw, 120px);
  line-height: 0.95;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 .name {
  display: inline-block;
  background: linear-gradient(90deg, var(--pink-hot), var(--sky-deep), var(--pink-hot));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
  position: relative;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero h1 .swirl { display: inline-block; color: var(--pink-hot); animation: wiggle 3s ease-in-out infinite; }
.hero p.lede {
  max-width: 560px; margin: 0 auto 28px;
  font-size: 18px; line-height: 1.55;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.btn {
  padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-3px) rotate(-1deg); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px) rotate(1deg); }

/* Banner image — full bleed */
.hero-banner {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  aspect-ratio: 1452 / 1024;
  background: var(--bg-2);
}
.hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-banner .tape {
  position: absolute; top: -16px;
  width: 110px; height: 32px;
  background: rgba(255, 200, 220, 0.85);
  border-left: 2px dashed rgba(255, 111, 168, 0.5);
  border-right: 2px dashed rgba(255, 111, 168, 0.5);
  z-index: 2;
}
.hero-banner .tape.t1 { left: 8%; transform: rotate(-8deg); background: rgba(255, 200, 220, 0.85); }
.hero-banner .tape.t2 { right: 8%; transform: rotate(6deg); background: rgba(182, 224, 255, 0.85); }

/* sparkles */
.sparkle {
  position: absolute;
  font-size: 22px;
  animation: twinkle 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.hero .sparkle.s1 { top: 14%; left: 8%; font-size: 28px; animation-delay: 0s; color: var(--pink-hot); }
.hero .sparkle.s2 { top: 6%; right: 10%; font-size: 24px; animation-delay: 0.4s; color: var(--sky-deep); }
.hero .sparkle.s3 { top: 50%; left: 4%; font-size: 32px; animation-delay: 0.8s; color: var(--pink-deep); }
.hero .sparkle.s4 { top: 40%; right: 4%; animation-delay: 1.2s; color: var(--pink-hot); }
.hero .sparkle.s5 { bottom: 8%; left: 12%; animation-delay: 0.6s; font-size: 28px; color: var(--sky-deep); }
.hero .sparkle.s6 { bottom: 14%; right: 14%; animation-delay: 1s; color: var(--pink-hot); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.4; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 16s linear infinite; }

/* ========== Section header ========== */
.section { padding: 70px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--pink-hot);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.section h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1; margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section h2 .heart { color: var(--pink-hot); display: inline-block; animation: wiggle 2.5s ease-in-out infinite; }
.section-sub { font-size: 16px; color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* ========== About Bella ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.about-photo {
  position: relative;
  display: grid; place-items: center;
}
.polaroid {
  background: #fff;
  padding: 14px 14px 50px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  transform: rotate(-4deg);
  transition: transform 0.3s;
}
.polaroid:hover { transform: rotate(-2deg) scale(1.02); }
.polaroid image-slot { width: 280px; height: 280px; display: block; border-radius: 4px; overflow: hidden; }
.polaroid .caption {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--ink-soft);
}
.polaroid .heart-sticker {
  position: absolute;
  top: -16px; right: -16px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pink-hot);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-soft);
  border: 3px solid #fff;
  animation: heartbeat 1.4s ease-in-out infinite;
}
.about-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #fff;
  position: relative;
}
.about-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}
.about-card p {
  font-size: 15px; line-height: 1.65;
  color: var(--ink); margin: 0 0 12px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat .label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.stat .val { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  background: var(--pink); color: var(--ink);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.tag.b { background: var(--sky); }
.tag.y { background: var(--lemon); }
.tag.g { background: var(--mint); }
.tag.v { background: var(--lavender); }
.tag.p { background: var(--peach); }

/* ========== Favorite friends grid ========== */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.friend-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid #fff;
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}
.friend-card:hover {
  transform: translateY(-8px) rotate(-2deg);
  box-shadow: var(--shadow);
  border-color: var(--pink);
}
.friend-card:nth-child(even):hover { transform: translateY(-8px) rotate(2deg); }
.friend-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, var(--bg-tint, var(--pink)) 0%, transparent 100%);
  z-index: 0;
}
.friend-portrait {
  width: 130px; height: 130px;
  border-radius: 50%;
  margin: 6px auto 12px;
  background: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(180, 90, 150, 0.18);
  overflow: hidden;
  border: 3px solid #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
}
.friend-portrait .initial {
  font-size: 56px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
  line-height: 1;
}
.friend-portrait .portrait-img {
  width: 88%; height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}
.friend-portrait .deco-emoji {
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 26px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}
.friend-portrait .deco-sparkle {
  position: absolute;
  top: 10px; left: 12px;
  font-size: 16px;
  color: #fff;
  opacity: 0.85;
}
.friend-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; margin: 0 0 4px;
  color: var(--ink); position: relative; z-index: 1;
}
.friend-card .role {
  font-size: 11px; font-weight: 700;
  color: var(--pink-hot);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.friend-card .rank {
  position: absolute;
  top: 10px; left: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pink-hot);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.friend-card .heart-mini {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 18px;
  z-index: 2;
}
.friend-card p {
  font-size: 13px; line-height: 1.45;
  color: var(--ink-soft); margin: 0;
  position: relative; z-index: 1;
}

/* ========== Diary ========== */
.diary-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
.diary-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  position: relative;
  border: 2px solid #fff;
  background-image:
    linear-gradient(transparent 0, transparent 31px, rgba(255, 111, 168, 0.18) 32px);
  background-size: 100% 32px;
  background-position: 0 18px;
}
.diary-card::before {
  content: "";
  position: absolute;
  left: 60px; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255, 111, 168, 0.5);
}
.diary-tape {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 110px; height: 28px;
  background: rgba(255, 200, 220, 0.7);
  border-left: 1px dashed rgba(255, 111, 168, 0.5);
  border-right: 1px dashed rgba(255, 111, 168, 0.5);
}
.diary-date {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--pink-hot);
  margin-bottom: 10px;
}
.diary-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 30px; margin: 0 0 14px;
  color: var(--ink); line-height: 1.1;
}
.diary-card p {
  font-size: 15px; line-height: 1.7;
  color: var(--ink); margin: 0 0 14px;
}
.diary-mood {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow-soft);
  margin-right: 6px;
}

.diary-photo { position: relative; display: grid; place-items: center; gap: 16px; }
.diary-photo .polaroid { transform: rotate(4deg); }
.diary-photo .polaroid image-slot,
.diary-photo .polaroid img { width: 320px; height: 320px; display: block; object-fit: cover; }

/* ========== Faves grid ========== */
.faves-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fave-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.fave-card:hover { transform: translateY(-4px) rotate(-1deg); }
.fave-card .icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 14px;
}
.fave-card h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; margin: 0 0 4px;
  color: var(--ink);
}
.fave-card .lbl {
  font-size: 11px; font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.fave-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.fave-card .deco {
  position: absolute;
  bottom: -10px; right: -10px;
  font-size: 80px;
  opacity: 0.08;
  line-height: 1;
}

/* ========== Photo wall ========== */
.photo-wall {
  position: relative;
  height: 540px;
  margin: 0 auto;
  max-width: 1100px;
}
.wall-photo {
  position: absolute;
  background: #fff;
  padding: 10px 10px 36px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, z-index 0s;
  cursor: pointer;
}
.wall-photo:hover {
  transform: scale(1.06) rotate(0deg) !important;
  z-index: 10;
}
.wall-photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.wall-photo .caption {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--ink-soft);
}
.wall-photo.p1 { top: 0; left: 4%; width: 320px; height: 240px; transform: rotate(-5deg); }
.wall-photo.p2 { top: 30px; left: 30%; width: 360px; height: 290px; transform: rotate(3deg); z-index: 2; }
.wall-photo.p3 { top: 0; right: 6%; width: 280px; height: 280px; transform: rotate(-3deg); }
.wall-photo.p4 { bottom: 0; left: 14%; width: 260px; height: 220px; transform: rotate(4deg); }
.wall-photo.p5 { bottom: 10px; left: 42%; width: 220px; height: 220px; transform: rotate(-6deg); z-index: 3; }
.wall-photo.p6 { bottom: 20px; right: 14%; width: 280px; height: 220px; transform: rotate(5deg); }

.wall-sticker {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--pink-hot);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow);
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 700;
}
.wall-sticker.heart { background: var(--pink-hot); top: 18%; left: 26%; transform: rotate(-12deg); }
.wall-sticker.star { background: var(--lemon); color: var(--ink); top: 70%; left: 33%; transform: rotate(8deg); }
.wall-sticker.bow { background: var(--sky-deep); top: 24%; right: 28%; transform: rotate(-6deg); font-size: 20px; }

/* ========== Guestbook ========== */
.guestbook {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.gb-form {
  background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.gb-form::before, .gb-form::after {
  content: ""; position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}
.gb-form::before { width: 160px; height: 160px; top: -60px; right: -40px; }
.gb-form::after  { width: 100px; height: 100px; bottom: -40px; left: -30px; }
.gb-form h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; margin: 0 0 6px;
  color: var(--ink);
  position: relative; z-index: 2;
}
.gb-form p { font-size: 14px; color: var(--ink); opacity: 0.85; margin: 0 0 18px; position: relative; z-index: 2; }
.gb-form .field {
  display: block; width: 100%;
  margin-bottom: 10px;
  border: none; outline: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative; z-index: 2;
}
.gb-form .field::placeholder { color: var(--ink-soft); }
.gb-form textarea.field { min-height: 84px; resize: vertical; }
.gb-form button {
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  margin-top: 6px; position: relative; z-index: 2;
  transition: transform 0.2s;
}
.gb-form button:hover { transform: scale(1.05); }

.gb-list {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 420px; overflow-y: auto;
  padding-right: 6px;
}
.gb-msg {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--pink-hot);
  position: relative;
}
.gb-msg.alt { border-left-color: var(--sky-deep); }
.gb-msg.alt2 { border-left-color: var(--lemon); }
.gb-msg.alt3 { border-left-color: var(--lavender); }
.gb-msg .who {
  font-family: var(--font-display); font-weight: 600;
  font-size: 16px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.gb-msg .who .when { font-size: 11px; color: var(--ink-soft); font-weight: 500; }
.gb-msg p { font-size: 14px; color: var(--ink); margin: 6px 0 0; line-height: 1.5; }

/* ========== Mailbox / newsletter ========== */
.mailbox {
  background: linear-gradient(135deg, var(--pink) 0%, var(--peach) 50%, var(--lemon) 100%);
  border-radius: 48px;
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mailbox::before, .mailbox::after {
  content: ""; position: absolute;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}
.mailbox::before { width: 200px; height: 200px; top: -80px; left: -60px; }
.mailbox::after  { width: 280px; height: 280px; bottom: -120px; right: -80px; }
.mailbox-inner { position: relative; z-index: 2; }
.mailbox h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 10px; line-height: 1; color: var(--ink);
}
.mailbox p { color: var(--ink); font-size: 16px; margin: 0 0 26px; opacity: 0.85; }
.mail-form {
  display: flex; gap: 8px;
  max-width: 460px; margin: 0 auto;
  background: #fff;
  padding: 8px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.mail-form input {
  flex: 1; border: none; outline: none;
  background: transparent;
  padding: 0 18px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  color: var(--ink);
}
.mail-form input::placeholder { color: var(--ink-soft); }
.mail-form button {
  background: var(--ink); color: #fff;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: transform 0.2s;
}
.mail-form button:hover { transform: scale(1.05); }
.mail-confirm {
  margin-top: 14px;
  font-size: 14px; color: var(--ink); font-weight: 700;
  opacity: 0; transform: translateY(-6px);
  transition: all 0.3s;
}
.mail-confirm.show { opacity: 1; transform: translateY(0); }

/* ========== Footer ========== */
.footer { padding: 60px 0 40px; position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
  margin-bottom: 36px;
}
.footer-grid h5 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 12px;
  color: var(--ink);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: 14px; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--pink-hot); }
.footer-brand p {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.55; margin: 12px 0 0;
}
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
}
.socials a:hover { transform: translateY(-3px) rotate(-8deg); background: var(--pink); }
.footer-bottom {
  padding-top: 22px;
  border-top: 2px dashed rgba(255, 111, 168, 0.3);
  font-size: 13px; color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom .visit-counter {
  background: #000; color: #6f6;
  font-family: ui-monospace, monospace;
  padding: 4px 10px; border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.15em;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .friends-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .friends-grid { grid-template-columns: repeat(2, 1fr); }
  .faves-grid   { grid-template-columns: repeat(2, 1fr); }
  .diary-wrap, .about-grid, .guestbook { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .photo-wall { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 16px; }
  .wall-photo { position: static; width: auto !important; height: 220px !important; }
  .wall-sticker { display: none; }
}
@media (max-width: 560px) {
  .friends-grid, .faves-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
  .hero { padding: 30px 0 20px; }
  .hero-banner { border-width: 4px; }
}

/* ---- live guestbook bits ---- */
.gb-form h3 { display: flex; align-items: center; gap: 8px; }
.gb-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #c9c9c9; box-shadow: 0 0 0 0 rgba(255,107,148,0.5);
  transition: background .25s ease;
}
.gb-dot.live {
  background: #59d28b;
  animation: gb-pulse 1.6s ease-out infinite;
}
.gb-dot.off { background: #d9b4b4; }
@keyframes gb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(89,210,139,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(89,210,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(89,210,139,0); }
}

.gb-typing {
  min-height: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 4px 6px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .2s ease, transform .2s ease;
}
.gb-typing.show { opacity: 1; transform: translateY(0); }

.gb-dots { display: inline-block; margin-left: 4px; }
.gb-dots span {
  display: inline-block; opacity: 0.3;
  animation: gb-bounce 1.2s infinite ease-in-out;
}
.gb-dots span:nth-child(2) { animation-delay: 0.15s; }
.gb-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes gb-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-2px); }
}

.gb-msg {
  animation: gb-pop 0.35s ease-out both;
}
@keyframes gb-pop {
  0%   { opacity: 0; transform: translateY(6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
