:root {
  --cream: #fff4e8; --paper: #fffaf3; --ink: #2a1b3d; --soft: #6b5a7e;
  --coral: #ff4d66; --violet: #7c4dff; --sun: #ffc93c; --mint: #2fd6a3;
  --line: #2a1b3d; --shadow: 5px 5px 0 var(--line);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); background: var(--cream);
  background-image: radial-gradient(circle at 12% 8%, #ffd9e0 0 14rem, transparent 14.1rem), radial-gradient(circle at 90% 30%, #e4dbff 0 11rem, transparent 11.1rem), radial-gradient(circle at 20% 78%, #fff0b8 0 12rem, transparent 12.1rem);
  background-attachment: fixed;
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; margin-bottom: .3rem; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { text-decoration: none; font-weight: 600; }
nav a:not(.button):hover { color: var(--coral); }

.button {
  display: inline-block; padding: 16px 28px; border-radius: 999px; background: var(--coral); color: #fff;
  font-weight: 800; font-size: 1.1rem; text-decoration: none; border: 2.5px solid var(--line); box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.button:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--line); }
.button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--line); }
.button.small { padding: 8px 16px; font-size: .95rem; box-shadow: 3px 3px 0 var(--line); }

.hero { text-align: center; padding: 30px 0 50px; }
.lede { max-width: 640px; margin: 22px auto 30px; font-size: 1.25rem; color: var(--soft); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.fine { color: var(--soft); font-size: .92rem; }
.squiggle { color: var(--coral); text-decoration: underline wavy var(--sun) 5px; text-underline-offset: 8px; }

.mascot { position: relative; width: 220px; height: 220px; margin: 10px auto 34px; }
.mascot img { position: relative; border-radius: 48px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 22px #7c4dff44); }
.ping { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--coral); opacity: 0; animation: ping 3s ease-out infinite; }
.ping:nth-child(2) { animation-delay: 1s; } .ping:nth-child(3) { animation-delay: 2s; }
.sticker { position: absolute; font-size: 2.2rem; animation: wobble 4s ease-in-out infinite; }
.s1 { left: -70px; top: 10px; } .s2 { right: -74px; top: 34px; animation-delay: -1s; }
.s3 { left: -48px; bottom: 6px; animation-delay: -2s; } .s4 { right: -44px; bottom: -6px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes ping { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes wobble { 50% { transform: rotate(14deg) scale(1.12); } }

.show { padding-bottom: 60px; }
.polaroid {
  width: min(680px, 100%); margin: 0 auto; padding: 14px 14px 6px; background: #fff; border: 2.5px solid var(--line);
  border-radius: 18px; box-shadow: 8px 8px 0 var(--violet); transform: rotate(-1.5deg); transition: transform .2s;
}
.polaroid:hover { transform: rotate(.5deg) scale(1.01); }
.polaroid img { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption { text-align: center; padding: 10px; color: var(--soft); font-weight: 600; }

section { padding: 40px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 20px; }
.cards article {
  background: var(--paper); border: 2.5px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
  transition: transform .15s;
}
.cards article:nth-child(odd):hover { transform: rotate(-1.5deg) translateY(-4px); }
.cards article:nth-child(even):hover { transform: rotate(1.5deg) translateY(-4px); }
.cards p { margin: 0; color: var(--soft); font-size: .98rem; }
.emoji { display: inline-block; font-size: 2rem; margin-bottom: 8px; }
.cards article:hover .emoji { animation: wobble .6s ease-in-out; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "🦊"; position: absolute; left: 0; }
.linkcard { background: #fff; border: 2.5px solid var(--line); border-radius: 20px; box-shadow: 8px 8px 0 var(--mint); overflow: hidden; transform: rotate(2deg); }
.linkcard .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2.5px solid var(--line); background: var(--paper); font-size: .8rem; }
.linkcard i { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); border: 1.5px solid var(--line); }
.linkcard i:nth-child(2) { background: var(--sun); } .linkcard i:nth-child(3) { background: var(--mint); }
.linkcard .bar span { margin-left: 8px; padding: 3px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkcard .screen { aspect-ratio: 16 / 9; margin: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--violet), var(--coral)); display: grid; place-items: center; }
.play { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2.5px solid var(--line); display: grid; place-items: center; font-size: 1.4rem; padding-left: 5px; animation: bob 2.4s ease-in-out infinite; }
.linkcard p { margin: 0 14px 14px; font-size: .9rem; color: var(--soft); }

.finale { text-align: center; padding: 60px 0 80px; }
.bob { animation: bob 3.2s ease-in-out infinite; border-radius: 22px; margin-bottom: 14px; }

footer { display: flex; justify-content: space-between; padding: 26px 0 40px; color: var(--soft); font-size: .92rem; border-top: 2.5px dashed #2a1b3d33; }

.prose { max-width: 720px; padding: 30px 0 60px; }
.prose h1 { font-size: 2.6rem; } .prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose li { margin-bottom: .6rem; } .updated { color: var(--soft); }

/* Shared-link pages */
.share main { padding: 10px 0 60px; }
.viewer { background: #1a1026; border: 2.5px solid var(--line); border-radius: 20px; box-shadow: 8px 8px 0 var(--violet); overflow: hidden; display: grid; place-items: center; }
.viewer video, .viewer img { display: block; max-width: 100%; max-height: 76vh; }
.share-note { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; color: var(--soft); }
.lost { text-align: center; padding: 70px 0; }
.lost .big { font-size: 4.5rem; margin: 0; }
.lost p { color: var(--soft); margin: 14px 0 28px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  nav a:not(.button) { display: none; }
  .sticker { font-size: 1.6rem; } .s1 { left: -40px; } .s2 { right: -42px; } .s3 { left: -26px; } .s4 { right: -24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
