/* Deliberately ugly 1996 look, but with room to breathe. Mobile first. */
:root {
  --comic: "Comic Sans MS", "Comic Sans", "Comic Neue", "Chalkboard SE", cursive;
  --hot: #ff00ff;
  --lime: #00ff00;
  --sun: #ffff00;
  --sky: #00ffff;
  --blood: #ff0000;
  --royal: #0000ff;
  --paper: #fffef0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 12px 12px 40px;
  font-family: var(--comic);
  font-size: 17px;
  line-height: 1.45;
  color: #000;
  background-color: #fff9c4;
  background-image: radial-gradient(circle, rgba(255, 0, 255, .35) 2px, transparent 3px);
  background-size: 48px 48px;
}

.page { max-width: 600px; margin: 0 auto; }

/* --- head --- */
.hero { text-align: center; margin: 6px 0 14px; }
.wordart {
  font-size: clamp(44px, 14vw, 84px);
  font-weight: 900;
  line-height: 1;
  margin: 10px 0 6px;
  color: var(--sun);
  -webkit-text-stroke: 2px var(--royal);
  text-shadow: 4px 4px 0 var(--hot), 8px 8px 0 var(--royal);
  transform: rotate(-3deg);
  animation: wobble 3s ease-in-out infinite;
}
.wordart small { display: block; font-size: 0.36em; -webkit-text-stroke: 1px var(--royal); text-shadow: 2px 2px 0 var(--hot); }
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(2deg); }
}
.hero-img { margin: 0 -12px 4px; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.hero-img img { display: block; width: 100%; height: auto; filter: drop-shadow(4px 4px 0 var(--royal)); }
.keyfacts { margin: 4px 0 0; font-size: 18px; background: #fff; display: inline-block; padding: 6px 14px; border: 3px double var(--royal); }
.keyfacts b { color: var(--blood); }

.marquee { overflow: hidden; white-space: nowrap; background: #000; color: var(--lime); padding: 5px 0; border: 3px double var(--sun); font-size: 15px; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 20s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* --- jump bar --- */
.jump {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 6px; padding: 6px 0; margin: 0 -12px; padding-left: 12px; padding-right: 12px;
  background: #fff9c4;
}
.jump a {
  flex: 1; text-align: center; padding: 9px 4px; font-weight: 900; font-size: 15px; text-decoration: none; color: #000;
  background: var(--sky); border: 4px outset #9ee; white-space: nowrap;
}
.jump a:active { border-style: inset; }

.hello { margin: 12px 4px 4px; }
.hello b { color: var(--hot); }

/* --- boxes / steps --- */
.step { scroll-margin-top: 64px; }
.box {
  background: var(--paper);
  border: 4px ridge var(--hot);
  padding: 14px;
  margin: 14px 0 22px;
  box-shadow: 6px 6px 0 var(--royal);
}
.box h2 { margin: 0 0 8px; font-size: 22px; color: var(--royal); display: flex; align-items: center; gap: 10px; }
.box h3 { margin: 16px 0 6px; font-size: 17px; color: var(--blood); text-transform: uppercase; }
.num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--royal); color: #000; font-size: 18px; flex: none;
}

.hint { font-size: 14px; color: #444; margin: 6px 0; }

.fact { display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; margin: 8px 0; }
.fact b { color: var(--blood); text-transform: uppercase; font-size: 13px; padding-top: 3px; }
.fact a { color: var(--royal); }

.sticker-photo { margin: 14px 0 6px; padding: 8px 8px 6px; background: #fff; border: 3px solid #000; box-shadow: 5px 5px 0 var(--hot); transform: rotate(-1.5deg); }
.sticker-photo img { display: block; width: 100%; height: auto; border: 2px solid #000; }
.sticker-photo figcaption { text-align: center; font-size: 14px; margin-top: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 5px 0; border-bottom: 2px dotted var(--hot); }
.timeline li b { display: inline-block; min-width: 60px; color: var(--royal); }

.hosts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.host { border: 3px groove var(--sky); padding: 6px 2px; background: #fff; font-size: 14px; }
.host b { display: block; font-size: 17px; color: var(--hot); }

/* --- counter --- */
.counterline { text-align: center; margin: 14px 0 4px; font-size: 15px; }
.counter { display: flex; justify-content: center; gap: 3px; }
.counter span {
  display: inline-block; width: 26px; height: 36px; line-height: 36px; text-align: center;
  background: #000; color: var(--lime); font: 900 24px "Courier New", monospace; border: 2px inset #888;
}

/* --- forms --- */
label { display: block; margin: 12px 0 4px; font-weight: 700; }
input[type="text"], textarea { width: 100%; padding: 10px; font: inherit; font-size: 17px; border: 3px inset #999; background: #fff; }
textarea { min-height: 64px; }

.btn {
  display: inline-block; width: 100%; padding: 13px 10px; margin: 5px 0;
  font: 900 19px var(--comic); text-transform: uppercase; text-align: center;
  border: 5px outset #ccc; cursor: pointer; color: #000; text-decoration: none;
}
.btn:active { border-style: inset; }
.btn.yes { background: var(--lime); border-color: #0c0; }
.btn.no { background: #ffb3b3; border-color: #c66; font-size: 16px; }
.btn.go { background: var(--sun); border-color: #cc0; }
.btn.small { width: auto; padding: 8px 14px; font-size: 14px; margin: 4px 0; }
.btn.selected { outline: 4px dashed var(--royal); outline-offset: 3px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Official Apple badge: no shadows, no rotation, clear space of at least 10% of its height. */
.wallet-badge { display: flex; justify-content: center; padding: 8px 0 4px; }
.wallet-badge img { height: 52px; width: auto; }
.companion-row { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.companion-row input { flex: 1; }
.companion-row button { width: 44px; height: 44px; font: 900 20px var(--comic); background: #ffb3b3; border: 3px outset #c66; cursor: pointer; }

.msg { padding: 10px; margin: 10px 0; font-weight: 700; border: 3px dashed #000; }
.msg.ok { background: #ccffcc; }
.msg.err { background: #ffcccc; }
.msg.warn { background: #fff3b0; border-color: #c90; }
.btn.attention { animation: pulse 1s ease-in-out infinite; box-shadow: 0 0 0 4px var(--hot); }
.btn.attention::before { content: "\2193 "; }
.btn.attention::after { content: " \2193"; }
[hidden] { display: none !important; }

/* --- upload --- */
.dropzone { border: 4px dashed var(--royal); background: #fff; padding: 16px 12px; text-align: center; margin: 10px 0; }
.dropzone input { display: none; }
.progress { height: 20px; background: #ddd; border: 2px inset #999; margin: 6px 0; }
.progress i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--lime) 0 10px, #0a0 10px 20px); width: 0; transition: width .2s; }
.upload-list { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.upload-list li { padding: 3px 0; }
.upload-list .ok { color: #070; }
.upload-list .err { color: #c00; }

/* --- own photo gallery --- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.gallery figure { margin: 0; background: #fff; border: 3px solid #000; box-shadow: 4px 4px 0 var(--hot); padding: 6px; }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; border: 2px solid #000; }
.gallery input { width: 100%; margin-top: 6px; padding: 7px; font: inherit; font-size: 14px; border: 2px inset #999; }
.gallery .row { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.gallery .row small { flex: 1; color: #555; font-size: 12px; }
.gallery .del { padding: 4px 8px; font: 700 12px var(--comic); background: #ffb3b3; border: 3px outset #c66; cursor: pointer; }
.gallery .saved { color: #070; font-size: 12px; }

/* --- celebration --- */
.celebrate {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background-color: #fff9c4;
  background-image: radial-gradient(circle, rgba(255, 0, 255, .35) 2px, transparent 3px);
  background-size: 48px 48px;
}
#confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 51; }
.celebrate-inner { position: relative; z-index: 52; max-width: 520px; margin: 0 auto; padding: 24px 16px 40px; text-align: center; }
.celebrate-art { width: 70%; max-width: 320px; margin: 0 auto 6px; filter: drop-shadow(3px 3px 0 var(--royal)); }
.celebrate-title { font-size: clamp(48px, 16vw, 90px); margin: 6px 0 10px; }
.celebrate-title small { font-size: .55em; }
.celebrate-text { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.celebrate-cta { background: var(--paper); border: 4px ridge var(--hot); box-shadow: 6px 6px 0 var(--royal); padding: 14px; margin-top: 18px; }
.celebrate-cta p { margin: 0 0 10px; }
.btn.big { font-size: 22px; padding: 18px 10px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* --- footer --- */
.construction {
  background: repeating-linear-gradient(45deg, var(--sun) 0 14px, #000 14px 28px);
  color: #fff; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; font-weight: 900; text-align: center; padding: 5px; margin: 10px 0; font-size: 14px;
}
footer { text-align: center; font-size: 12px; margin-top: 30px; color: #333; }
footer .badge { display: inline-block; background: #ccc; border: 2px outset #eee; padding: 2px 6px; font: 10px "Times New Roman", serif; margin: 2px; }

@media (min-width: 480px) {
  body { padding: 20px; font-size: 18px; }
  .btn.half { width: 49%; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
