/* =====================================================================
   Universo da Juju: fansite kawaii dos anos 2000.
   Céu azul com nuvens, xadrez rosa, faixa amarelo-manteiga, caixinhas
   com cabeçalho pastel, estrelinhas e florzinhas.
   ===================================================================== */

.juju { background: var(--j-sky); color: var(--j-ink); font-family: var(--f-body); }

.juju-sky {
  position: relative;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 44px) clamp(8px, 2.4vw, 24px) 64px;
  background-color: var(--j-sky);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 1.6px, transparent 2px);
  background-size: 34px 34px;
  overflow: hidden;
}
.juju-clouds { position: absolute; inset: 0; pointer-events: none; }
.juju-cloud { position: absolute; display: block; animation: drift 32s ease-in-out infinite alternate; }
.juju-cloud svg { width: 100%; height: auto; display: block; }
.juju-cloud--1 { left: 1%; top: 3%; width: 170px; }
.juju-cloud--2 { right: 2%; top: 9%; width: 210px; animation-delay: -10s; }
.juju-cloud--3 { left: -30px; top: 38%; width: 150px; animation-duration: 38s; }
.juju-cloud--4 { right: -40px; top: 52%; width: 190px; animation-delay: -18s; }
.juju-cloud--5 { left: 3%; top: 74%; width: 130px; animation-duration: 44s; }
.juju-cloud--6 { right: 4%; top: 88%; width: 160px; animation-delay: -6s; }

.juju-site {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 28px;
  background: #e8f6fe;
  border: 6px solid #fff;
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.2);
}

/* ---------- banner xadrez ---------- */
.juju-banner {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  min-height: 250px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 3px solid #f4a6c2;
  background-color: #fff6f9;
  background-image:
    repeating-linear-gradient(0deg, rgba(251, 202, 219, 0.75) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(90deg, rgba(251, 202, 219, 0.75) 0 16px, transparent 16px 32px);
}
.juju-banner__stickers { position: relative; height: 210px; }
.juju-banner__mitsuba { position: absolute; left: -34px; top: -44px; --size: 160px; font-size: 16px; z-index: 3; }
.juju-banner__anzu { position: absolute; left: 150px; bottom: 0; }
.juju-banner__title-wrap { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 40px; }
.juju-banner__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #c2457a;
  -webkit-text-stroke: 10px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 0 #f4a6c2);
  text-wrap: balance;
}
.juju-banner__wing { position: absolute; top: 14%; width: 54px; }
.juju-banner__wing svg { width: 100%; height: auto; }
.juju-banner__wing--l { left: -6px; rotate: 10deg; }
.juju-banner__wing--r { right: -6px; transform: scaleX(-1); rotate: -10deg; }
.juju-banner__phrase {
  margin-top: 26px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--f-hand);
  font-size: 1.5rem;
  line-height: 1.15;
}
.juju-banner__star { right: 18px; top: 14px; --star-color: #fde58a; }
.juju-banner__decor .shape { position: absolute; pointer-events: none; }
.juju-banner__flower--a { width: 34px; left: 44%; bottom: 10px; color: #a9d8f5; }
.juju-banner__flower--b { width: 26px; right: 8%; bottom: 22px; color: #f7b5cf; }
.juju-banner__spark { width: 22px; right: 22%; top: 18px; color: #fff; animation: twinkle 3s ease-in-out infinite; }

/* ---------- faixa de links ---------- */
.juju-links {
  margin: 10px 6px 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--j-butter);
  border: 2px solid var(--j-butter-deep);
}
.juju-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.juju-links a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 1.02rem;
  color: var(--j-link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}
.juju-links a:hover { color: var(--j-pink-deep); }

/* ---------- colunas ---------- */
.juju-cols {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
.juju-side { position: relative; display: grid; gap: 18px; }
.juju-main { position: relative; display: grid; gap: 18px; min-width: 0; }

.juju-featured { position: relative; display: grid; justify-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 2px solid var(--j-blue-line); }
.juju-featured__frame { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 4px solid #fde3ec; }
.juju-featured__pill,
.juju-pill-title {
  justify-self: center;
  padding: 4px 18px;
  border-radius: 999px;
  border: 2px solid #f4a6c2;
  background-color: #fff;
  background-image:
    repeating-linear-gradient(0deg, rgba(251, 202, 219, 0.8) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, rgba(251, 202, 219, 0.8) 0 6px, transparent 6px 12px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #c2457a;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
}
.juju-featured__caption { display: grid; justify-items: center; gap: 8px; text-align: center; }
.juju-featured__legenda { font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.2; color: var(--j-ink); max-width: 22ch; }
.juju-featured__flower { position: absolute; left: -12px; top: -12px; width: 40px; color: #f7b5cf; }
.juju-featured__star { position: absolute; right: -10px; top: 30px; width: 28px; color: #fde58a; --shape-line: #d4a72c; }

.juju-likes,
.juju-log {
  display: grid;
  gap: 12px;
  padding: 14px 14px 18px;
  border-radius: 18px;
  background: #fff;
  border: 2px dashed #f4a6c2;
}
.juju-likes ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.juju-likes li { padding: 3px 11px; border-radius: 999px; background: var(--j-blue-box); font-size: 0.92rem; }
.juju-log__list { display: grid; gap: 14px; }
.juju-log__list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--f-hand);
  font-size: 1.35rem;
  line-height: 1.2;
}
.juju-log__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f07fa8;
  box-shadow: 0 0 0 3px #fde3ec;
}
.juju-side__bisky { position: absolute; right: -24px; top: 46%; z-index: 4; }
.juju-side__star { left: -14px; top: 40%; }
.juju-side__flower { right: 6px; bottom: 120px; }

/* caixinhas com cabeçalho pastel */
.juju-box {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--j-blue-line);
  scroll-margin-top: 20px;
}
.juju-box__title {
  padding: 10px 92px 8px 18px;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px solid var(--box-line, var(--j-butter-deep));
  background: var(--box-head, var(--j-butter));
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--j-ink);
}
.juju-box--blue { --box-head: var(--j-blue-box); --box-line: var(--j-blue-line); }
.juju-box--pink { --box-head: #fde3ec; --box-line: #f4a6c2; border-color: #f4a6c2; }
.juju-box__body { padding: 16px 18px 20px; }
.juju-box__mascot { position: absolute; right: 12px; top: -28px; z-index: 3; }
.juju-welcome { font-family: var(--f-hand); font-size: 1.65rem; line-height: 1.25; max-width: 40ch; }
.juju-decl { font-family: var(--f-hand); font-size: 1.8rem; line-height: 1.22; margin-bottom: 16px; }
.juju .player { --player-bg: #fff8fb; border-color: #f4a6c2; }

.juju-box--mural { overflow: clip; }
.juju-mural {
  border-radius: 10px;
  background-color: #f2f9fe;
  background-image:
    linear-gradient(rgba(143, 198, 232, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 198, 232, 0.25) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 26px 16px 34px;
  --tape: rgba(169, 216, 245, 0.8);
  --pin: #f07fa8;
  --frame-color: #fff;
  --frame-edge: #f4a6c2;
}
.juju-mural__poke { position: absolute; right: 26px; bottom: -6px; z-index: 3; }

.juju-games { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.juju-games__spot {
  display: grid;
  justify-items: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: #fff8fb;
  border: 2px dotted #f4a6c2;
}
.juju-main__star { right: -14px; top: 38%; --star-color: #fde58a; }

/* ---------- lago da Ponyo ---------- */
.lake-wrap { display: grid; gap: 10px; }
.lake {
  --lake-w: 600px;
  position: relative;
  height: 240px;
  border-radius: 46% 54% 44% 56% / 38% 42% 58% 62%;
  overflow: hidden;
  background: #8fd3ef;
  border: 6px solid #d9f2fc;
  box-shadow: inset 0 18px 30px -12px rgba(255, 255, 255, 0.7), 0 10px 20px -14px rgba(0, 0, 0, 0.2);
}
.lake__water { position: absolute; inset: 0; }
.lake__wave { position: absolute; left: 0; width: 200%; height: 46px; animation: wave-slide 16s linear infinite; }
.lake__wave svg { width: 100%; height: 100%; display: block; }
.lake__wave--back { top: 12%; }
.lake__wave--front { bottom: -8px; animation-duration: 10s; animation-direction: reverse; z-index: 3; }
.lake__fish {
  position: absolute;
  left: 0;
  width: calc(58px * var(--size, 1));
  height: calc(36px * var(--size, 1));
  z-index: 2;
  animation: swim 18s linear infinite;
}
.lake__fish.is-back { animation-name: swim-back; }
.lake__fish svg { width: 100%; height: 100%; animation: bob 2.4s ease-in-out infinite; }
.lake__fish.is-clickable { cursor: pointer; }
.lake__fish.is-clickable:hover { animation-play-state: paused; }
.lake__bubble {
  position: absolute;
  bottom: 12%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  animation: bubble-up 6.5s ease-in infinite;
}
.lake__pad { position: absolute; width: 74px; z-index: 1; }
.lake__pad svg { width: 100%; height: auto; display: block; }
.lake__pad--a { left: 10%; top: 26%; rotate: -14deg; }
.lake__pad--b { left: 46%; bottom: 18%; width: 58px; rotate: 30deg; }
.lake__pad--keroppi { right: 9%; top: 46%; width: 96px; }
.lake__keroppi { position: absolute; right: 11%; top: 14%; z-index: 4; }
.lake__keroppi .sticker { --size: 76px; }
.lake__note { font-size: 0.92rem; color: var(--j-ink-soft); text-align: center; }

/* ---------- rodapé ---------- */
.juju-footer {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-top: 18px;
  padding: 26px 18px 24px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--j-blue-line);
  text-align: center;
}
.juju-footer__bye { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.25; }
.juju-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.juju-footer .leave-btn { background: #fde3ec; }
.tiny-envelope--juju { left: 22px; bottom: 14px; --tiny-body: #fde3ec; --tiny-line: #f07fa8; }
.juju-footer__star { right: 30px; top: -18px; }

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .juju-cols { grid-template-columns: 240px minmax(0, 1fr); }
  .juju-banner { grid-template-columns: 190px 1fr; }
  .juju-banner__mitsuba { --size: 120px; }
  .juju-banner__anzu { left: 110px; }
}

@media (max-width: 720px) {
  .juju-site { padding: 8px; border-width: 4px; border-radius: 22px; }
  .juju-banner { grid-template-columns: 1fr; min-height: 0; padding: 16px 12px 18px; }
  .juju-banner__stickers { height: 104px; order: 2; }
  .juju-banner__mitsuba { --size: 96px; left: 14%; top: -6px; }
  .juju-banner__anzu { left: auto; right: 18%; }
  .juju-banner__title-wrap { padding: 0 34px; }
  .juju-banner__wing { width: 38px; }
  .juju-links ul { gap: 2px 14px; }
  .juju-cols { grid-template-columns: 1fr; position: relative; }
  .juju-side { display: contents; }
  .juju-featured { order: 1; }
  .juju-side .counter { order: 2; }
  .juju-main { order: 3; }
  .juju-likes { order: 4; }
  .juju-log { order: 5; }
  .juju-featured__frame { max-width: 320px; }
  .juju-side__bisky { right: 6px; top: -30px; }
  .juju-games { grid-template-columns: 1fr; }
  .juju-box__title { padding-right: 84px; }
  .lake { height: 200px; }
  .juju-main__star { right: 4px; }
}
