:root {
  --bg: #fff7e0;
  --ink: #2b1d3a;
  --muted: #5d4b6e;
  --red: #ff4d6d;
  --orange: #ff8c1a;
  --yellow: #ffd23f;
  --green: #3ecf8e;
  --blue: #3fa7ff;
  --purple: #9b5de5;
  --card: #ffffff;
  --outline: #2b1d3a;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(rgba(155, 93, 229, .12) 2px, transparent 2px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .button, .pill, .owner-badge, .poke-hint { font-family: "Baloo 2", "Nunito", sans-serif; }

/* floating emoji in the background */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.float { position: absolute; font-size: 2rem; opacity: .55; animation: drift 9s ease-in-out infinite; }
.s1 { top: 12%; left: 6%; }
.s2 { top: 28%; right: 7%; animation-delay: -2s; }
.s3 { top: 62%; left: 4%; animation-delay: -4s; }
.s4 { top: 78%; right: 5%; animation-delay: -1s; }
.s5 { top: 45%; left: 48%; animation-delay: -6s; font-size: 1.4rem; }
.s6 { top: 88%; left: 30%; animation-delay: -3s; }
.s7 { top: 8%; right: 30%; animation-delay: -5s; }
.s8 { top: 55%; right: 22%; animation-delay: -7s; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-24px) rotate(8deg); }
}

header, main, footer { position: relative; z-index: 1; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(255, 247, 224, .94);
  backdrop-filter: blur(6px);
  border-bottom: 4px dashed var(--purple);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.45rem;
}
.brand img { transition: transform .3s; }
.brand:hover img { transform: rotate(-20deg) scale(1.15); }
.topbar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  text-decoration: none; color: #fff; font-weight: 800;
  padding: 4px 14px; border-radius: 999px;
  border: 3px solid var(--outline); box-shadow: 0 4px 0 var(--outline);
  transition: transform .15s, box-shadow .15s;
}
.pill:hover { transform: translateY(-3px) rotate(-3deg); box-shadow: 0 7px 0 var(--outline); }
.c1 { background: var(--orange); } .c2 { background: var(--blue); }
.c3 { background: var(--red); }    .c4 { background: var(--green); }

/* hero */
.hero { text-align: center; padding: 40px 16px 30px; }
.potato-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.hero-potato { animation: wobble 2.6s ease-in-out infinite; max-width: 48vw; height: auto; filter: drop-shadow(0 10px 0 rgba(43, 29, 58, .15)); }
.potato-btn:active .hero-potato { transform: scale(.9); }
.potato-btn.spin .hero-potato { animation: spin .7s ease-in-out; }
@keyframes wobble {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}
@keyframes spin { to { transform: rotate(360deg) scale(1.1); } }
.poke-hint { margin: 0; color: var(--purple); font-weight: 700; font-size: 1.05rem; }

.rainbow { font-size: clamp(2.6rem, 10vw, 5.2rem); margin: 4px 0 0; line-height: 1.05; font-weight: 800; }
.rainbow span {
  display: inline-block;
  -webkit-text-stroke: 2px var(--outline);
  text-shadow: 0 5px 0 var(--outline);
  animation: hop 1.8s ease-in-out infinite;
}
.rainbow .gap { width: .3em; }
.rainbow span:nth-child(6n+1) { color: var(--red); }
.rainbow span:nth-child(6n+2) { color: var(--orange); animation-delay: .1s; }
.rainbow span:nth-child(6n+3) { color: var(--yellow); animation-delay: .2s; }
.rainbow span:nth-child(6n+4) { color: var(--green); animation-delay: .3s; }
.rainbow span:nth-child(6n+5) { color: var(--blue); animation-delay: .4s; }
.rainbow span:nth-child(6n)   { color: var(--purple); animation-delay: .5s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }

.tagline { font-size: 1.25rem; color: var(--muted); margin: 14px 0 12px; font-weight: 800; }
.owner-badge {
  display: inline-block; margin: 0 0 22px;
  background: var(--yellow); color: var(--ink);
  padding: 6px 18px; border-radius: 999px;
  border: 3px solid var(--outline); box-shadow: 0 4px 0 var(--outline);
  font-size: 1.1rem; transform: rotate(-2deg);
}

.button {
  display: inline-block;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 1.3rem;
  padding: 10px 30px; border-radius: 999px;
  border: 3px solid var(--outline); box-shadow: 0 6px 0 var(--outline);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 9px 0 var(--outline); }
.button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--outline); }
.button.small { font-size: 1rem; padding: 4px 18px; margin: 0 16px 16px; background: var(--green); }

/* meet the creator */
.creator {
  max-width: 1050px; margin: 10px auto 30px; padding: 0 16px;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 10px;
}
.kicker { margin: 0; font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--purple); font-size: 1.2rem; }
.creator h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; line-height: 1.1; }
.bubble {
  position: relative;
  background: #fff; border: 4px solid var(--outline); border-radius: 26px;
  box-shadow: 0 7px 0 var(--outline);
  padding: 18px 22px; font-size: 1.15rem; font-weight: 800;
}
.bubble::after { /* tail pointing toward Atef */
  content: ""; position: absolute; right: -22px; top: 38%;
  border: 14px solid transparent; border-left: 18px solid var(--outline);
}
.bubble::before {
  content: ""; position: absolute; right: -14px; top: calc(38% + 4px); z-index: 1;
  border: 10px solid transparent; border-left: 13px solid #fff;
}
.sig { margin: 16px 0 0; font-weight: 800; color: var(--muted); }
.creator-pic { position: relative; display: flex; justify-content: center; overflow-x: clip; }
.creator-pic img {
  position: relative; z-index: 1; width: 100%; max-width: 440px; height: auto;
  filter: drop-shadow(0 10px 0 rgba(43, 29, 58, .18));
  animation: wobble 3.2s ease-in-out infinite;
}
.burst {
  position: absolute; inset: 8% 6%; border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 12.5%, var(--orange) 0 25%, var(--yellow) 0 37.5%, var(--orange) 0 50%,
                             var(--yellow) 0 62.5%, var(--orange) 0 75%, var(--yellow) 0 87.5%, var(--orange) 0);
  border: 4px solid var(--outline);
  animation: turn 24s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .creator { grid-template-columns: 1fr; text-align: center; }
  .creator-pic { order: -1; }
  .creator-pic img { max-width: 320px; }
  .bubble::after, .bubble::before { display: none; }
}

.wave {
  height: 34px;
  background:
    radial-gradient(circle at 20px -8px, transparent 22px, #ffe3ef 23px) 0 0 / 40px 34px repeat-x;
}

/* sections */
.shelf { padding: 40px 16px 56px; }
.tint1 { background: #ffe3ef; }
.tint2 { background: #dff3ff; }
.tint3 { background: #fff1c9; }
.tint4 { background: #e3f9ec; }
.shelf h2 { text-align: center; font-size: clamp(2rem, 6vw, 2.8rem); margin: 0; font-weight: 800; }
.bounce { display: inline-block; animation: hop 1.4s ease-in-out infinite; }
.intro { text-align: center; color: var(--muted); margin: 0 0 8px; font-weight: 800; font-size: 1.1rem; }

.grid {
  max-width: 1100px; margin: 24px auto 0;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--radius);
  border: 4px solid var(--outline); box-shadow: 0 8px 0 var(--outline);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:nth-child(odd) { transform: rotate(-1.5deg); }
.card:nth-child(even) { transform: rotate(1.5deg); }
.card:hover { transform: rotate(0) translateY(-6px) scale(1.03); box-shadow: 0 14px 0 var(--outline); }
.card h3 { margin: 12px 16px 0; font-size: 1.4rem; font-weight: 800; }
.card p { margin: 0 16px 16px; color: var(--muted); }

.media {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  border: 0; border-bottom: 4px solid var(--outline);
  object-fit: cover; background: #f4ecff;
}
#videos .media { aspect-ratio: 16 / 9; }
.gallery .media { aspect-ratio: 1 / 1; }
.soon {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  font-family: "Baloo 2", sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--ink);
}
.soon .big { font-size: 3rem; animation: wobble 2.2s ease-in-out infinite; }
.tint1 .soon { background: repeating-linear-gradient(45deg, #fff, #fff 16px, #ffd0e2 16px, #ffd0e2 32px); }
.tint2 .soon { background: repeating-linear-gradient(45deg, #fff, #fff 16px, #c6e8ff 16px, #c6e8ff 32px); }
.tint3 .soon { background: repeating-linear-gradient(45deg, #fff, #fff 16px, #ffe39a 16px, #ffe39a 32px); }
.tint4 .soon { background: repeating-linear-gradient(45deg, #fff, #fff 16px, #c4f0d6 16px, #c4f0d6 32px); }

footer {
  text-align: center; padding: 32px 16px 40px;
  background: var(--purple); color: #fff;
  border-top: 4px solid var(--outline);
}
footer p { margin: 6px 0; font-size: 1.1rem; }
footer .small { font-size: .95rem; opacity: .9; }

/* confetti */
.confetti {
  position: fixed; top: -2rem; z-index: 50; pointer-events: none;
  font-size: 1.8rem; animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
