:root {
  --ink: #4a2340;
  --pink: #ff6fae;
  --pink-deep: #e84393;
  --pink-soft: #fff0f7;
  --blue: #5eb0ff;
  --blue-deep: #2f7fe0;
  --blue-soft: #f3f8ff;
  --cream: #fffafc;
  --paper: #fff;
  --column: 42rem;
}

* {
  box-sizing: border-box;
}

html:not(.is-open),
html:not(.is-open) body {
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  background-color: #ffd4ea;
  background-image:
    radial-gradient(circle at 12px 14px, rgba(255, 255, 255, 0.85) 5px, transparent 6px),
    radial-gradient(circle at 48px 42px, rgba(186, 224, 255, 0.9) 4px, transparent 5px),
    linear-gradient(180deg, #ffe3f2 0%, #f4e9ff 48%, #e5f3ff 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

html.is-open,
html.is-open body {
  overflow: visible;
  height: auto;
}

.column {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
}

.door {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow: auto;
  background-color: #ffb3d9;
  background-image:
    repeating-conic-gradient(#ff8ec4 0% 25%, #fff 0% 50%);
  background-size: 22px 22px;
}

html.is-open .door {
  display: none;
}

.door-card {
  width: min(26rem, 100%);
  margin: auto;
  padding: 1.4rem 1.2rem 1.3rem;
  border: 4px solid #fff;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 6px 6px 0 rgba(90, 30, 70, 0.18);
  text-align: center;
}

.door-age {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.7rem;
  border: 3px solid var(--pink-deep);
  border-radius: 999px;
  color: var(--pink-deep);
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.7rem;
  font-weight: 700;
  transform: rotate(-6deg);
}

.door-card h2 {
  margin: 0.8rem 0 0.4rem;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.8rem;
  line-height: 1.15;
}

.door-card p {
  margin: 0.4rem 0 1rem;
}

.continue {
  width: 100%;
  min-height: 48px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8ec4, #ff4f9a);
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 0 #c72d74;
}

.continue:focus-visible,
.clip:focus-visible,
.chip-link:focus-visible,
.throne:focus-visible,
.jump a:focus-visible,
.cat:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #2a2a2a;
  outline-offset: 3px;
}

.mast {
  margin: 0.25rem 0 1rem;
  text-align: center;
}

.blinkie {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 0.7rem;
  padding: 0.35rem 0.85rem;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  background-image: linear-gradient(90deg, #ff4f9a, #7ec8ff, #ff4f9a, #b388ff, #ff4f9a);
  background-size: 240% 100%;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-weight: 700;
  animation: blinkie 3.2s linear infinite;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 1.05;
  text-shadow:
    0 2px 0 var(--pink-deep),
    3px 4px 0 #7eb6ff;
}

.lede {
  margin: 0.55rem auto 0.8rem;
  max-width: 28rem;
}

.served {
  width: min(18rem, 100%);
  margin: 0.3rem auto 0;
  padding: 0.7rem 0.8rem 0.85rem;
  border: 4px solid #fff;
  border-radius: 18px;
  background:
    linear-gradient(#fff7fb, #fff7fb) padding-box,
    repeating-conic-gradient(#ff7eb3 0% 25%, #fff 0% 50%) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 4px 4px 0 #ffb3d9;
  transform: rotate(-1.5deg);
}

.served-label {
  margin: 0;
  color: var(--pink-deep);
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.35rem;
  line-height: 1.1;
}

.served-digits {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
}

.served-digits span {
  width: 2.3rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(#fff, #ffe4f4);
  border: 3px solid #ff8ec4;
  color: #c2185b;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.6rem;
  box-shadow: inset 0 -4px 0 #ffd0e8;
}

.contact {
  margin: 0 0 1.1rem;
  padding: 0.95rem 0.85rem 1rem;
  border: 4px dashed var(--pink);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, #ffe4f4 10px, transparent 11px),
    radial-gradient(circle at 100% 0, #e5f3ff 10px, transparent 11px),
    var(--paper);
  box-shadow: 4px 4px 0 #ffd0e8;
}

.contact-title {
  margin: 0 0 0.7rem;
  text-align: center;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.35rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chip {
  min-height: 44px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 3px solid var(--pink);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.chip-link {
  color: #fff;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(80, 30, 60, 0.16);
}

.chip-x {
  background: var(--pink-deep);
  border-color: #fff;
}

.chip-of {
  background: var(--blue-deep);
  border-color: #fff;
}

.chip-cash {
  background: #3dce7a;
  border-color: #fff;
}

.chip-venmo {
  background: #3d95e0;
  border-color: #fff;
}

.chip-paypal {
  background: #ffb020;
  color: #5a2a00;
  border-color: #fff;
}

.chip-tree {
  background: #43e660;
  color: #14331c;
  border-color: #fff;
}

.throne {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8ec4, #c9a6ff, #7ec8ff);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.chip-link,
.throne,
.jump a,
.continue,
.cat,
.clip,
.menu-toggle {
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.chip-link:hover,
.throne:hover,
.jump a:hover,
.continue:hover {
  transform: translate(-2px, -2px);
  filter: brightness(1.08);
  box-shadow: 5px 5px 0 rgba(90, 30, 70, 0.22);
}

.chip-link:active,
.throne:active,
.jump a:active,
.continue:active,
.cat:active,
.clip:active {
  transform: translate(1px, 1px);
}

.menu {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 1.15rem 0.85rem 1rem;
  border: 24px solid transparent;
  border-radius: 0;
}

.menu::before,
.menu::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.menu::before {
  top: -24px;
  right: -24px;
  bottom: -24px;
  left: -24px;
  background-image: url("decor/pixel-x.png"), url("decor/pixel-x.png");
  background-repeat: repeat-x, repeat-x;
  background-size: auto 24px, auto 24px;
  background-position: 0 0, 0 100%;
  animation: edge-x 2.4s steps(10) infinite;
}

.menu::after {
  top: 0;
  right: -24px;
  bottom: 0;
  left: -24px;
  background-image: url("decor/pixel-y.png"), url("decor/pixel-y.png");
  background-repeat: repeat-y, repeat-y;
  background-size: 24px auto, 24px auto;
  background-position: 0 0, 100% 0;
  animation: edge-y 2.4s steps(8) infinite;
}

.menu-pink,
.menu-blue {
  background-image: none;
  animation: none;
}

.menu-pink {
  background-color: var(--pink-soft);
}

.menu-blue {
  background-color: var(--blue-soft);
}

.menu-title,
.menu-sub,
.rule,
.menu-foot,
.cat,
.creator {
  overflow-wrap: break-word;
}

.menu-title {
  margin: 0;
  text-align: center;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 2rem;
  line-height: 1.1;
}

.menu-pink .menu-title {
  color: var(--pink-deep);
}

.menu-blue .menu-title {
  color: var(--blue-deep);
}

.menu-sub,
.rule,
.menu-foot {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.menu-pink .menu-sub,
.menu-pink .menu-foot {
  color: #9d245c;
  border: 2px solid #ffb3d4;
}

.menu-blue .menu-sub,
.menu-blue .rule,
.menu-blue .menu-foot {
  color: #1d4f8f;
  border: 2px solid #b9dcff;
}

.cat-heading {
  margin: 0.85rem 0 0.45rem;
}

.cat {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: left;
}

.cat-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.cat::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
}

.cat[aria-expanded="true"]::after {
  content: "–";
}

.menu-pink .cat {
  background: var(--pink);
  box-shadow: 3px 3px 0 rgba(90, 30, 70, 0.12);
}

.menu-blue .cat {
  background: var(--blue);
  box-shadow: 3px 3px 0 rgba(20, 50, 100, 0.12);
}

.cat:hover {
  transform: translate(-2px, -2px);
  filter: brightness(1.08);
}

.clip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(90, 30, 70, 0.12);
}

.menu-toggle:hover {
  transform: scale(1.04);
}

.creator {
  margin: 0.85rem 0 0.35rem;
  color: #c2185b;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.clip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid #ffc2dc;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.menu-blue .clip {
  border-color: #c5e2ff;
}

.clip-text {
  flex: 1 1 14rem;
  min-width: 0;
  overflow-wrap: break-word;
  user-select: text;
}

.clip-note {
  flex: 0 0 auto;
  color: var(--pink-deep);
  font-weight: 800;
}

.menu-blue .clip-note {
  color: var(--blue-deep);
}

.clip-note:empty {
  display: none;
}

.clip:hover {
  background: #fff;
}

.menu-pink .clip:hover {
  background: #ffe8f3;
}

.menu-blue .clip:hover {
  background: #eaf4ff;
}

.stamp {
  width: 4.2rem;
  height: 4.2rem;
  margin: -0.3rem auto 0.2rem;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.5rem;
  transform: rotate(-8deg);
}

.menu-pink .stamp {
  color: var(--pink-deep);
  background: #fff;
}

.menu-blue .stamp {
  color: var(--blue-deep);
  background: #fff;
}

@keyframes blinkie {
  from { background-position: 0 0; }
  to { background-position: 240% 0; }
}

html {
  cursor: url("cursors/bunny.png") 1 2, auto;
}

a,
button {
  cursor: url("cursors/bunny-link.png") 0 0, pointer;
}

.menu-wrap {
  position: relative;
  margin: 5.6rem 0 1.2rem;
}

.menu {
  margin: 0;
  z-index: 1;
}

.peekers {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: -5rem;
  height: 7.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: end;
  column-gap: 0.45rem;
  padding: 0 0.2rem;
  pointer-events: none;
}

@media (max-width: 520px) {
  .peekers {
    left: 1.5rem;
    right: 1.5rem;
  }
}

.peep {
  width: auto;
  height: 7.2rem;
  max-width: 100%;
  flex: 0 1 auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 0 rgba(90, 30, 70, 0.18));
}

.peep-up {
  transform: translateY(-0.6rem);
}

@media (min-width: 521px) {
  .peep-wooper {
    transform: translateY(-0.25rem);
  }
}

.spark {
  position: fixed;
  z-index: 6;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0 22%, var(--hue, #ff4f9a) 46%, transparent 72%);
  animation: spark 850ms ease-out forwards;
}

.marquee-track img {
  display: block;
  width: 11.5rem;
  height: 7.6rem;
  object-fit: cover;
  object-position: center;
}

.menu-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 2rem;
  line-height: 1.1;
}

.menu-toggle::after {
  content: "";
}

.menu-toggle[aria-expanded="false"]::after {
  content: "+";
}

.jump {
  position: static;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.jump a {
  flex: 1 1 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #ff4f9a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(90, 30, 70, 0.16);
}

.jump a:last-child {
  background: #2f7fe0;
}

.marquee {
  width: 100%;
  margin: 0 0 0.9rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  animation: march 9s linear infinite;
}

.postage {
  flex: 0 0 auto;
  padding: 0.7rem;
  background-color: #fff;
  background-image: radial-gradient(circle, transparent 5px, #fff 6px);
  background-size: 14px 14px;
  background-position: -7px -7px;
  box-shadow: 3px 4px 0 #ffb7d8;
}

.tile {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  color: #c2185b;
  font-family: "Chalkboard SE", "Comic Sans MS", "Segoe Print", cursive;
  font-weight: 700;
  white-space: nowrap;
}

.tile svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.tile-word {
  color: #2f7fe0;
}

@keyframes march {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes checker-march {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 32px 32px; }
}

@keyframes y2k-border {
  0%, 16% { box-shadow: 0 0 0 4px #ff2d95, 0 0 18px #ff4f9a, 7px 7px 0 #ffe14a; }
  20%, 36% { box-shadow: 0 0 0 4px #00e5ff, 0 0 18px #7af6ff, 7px 7px 0 #ff2d95; }
  40%, 56% { box-shadow: 0 0 0 4px #ffe14a, 0 0 18px #fff3a1, 7px 7px 0 #39ff14; }
  60%, 76% { box-shadow: 0 0 0 4px #39ff14, 0 0 18px #b8ff9c, 7px 7px 0 #c77dff; }
  80%, 100% { box-shadow: 0 0 0 4px #c77dff, 0 0 18px #e7d0ff, 7px 7px 0 #00e5ff; }
}

@keyframes edge-x {
  to { background-position: 240px 0, -240px 100%; }
}

@keyframes edge-y {
  to { background-position: 0 192px, 100% -192px; }
}

@keyframes spark {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blinkie,
  .marquee-track,
  .menu-pink,
  .menu-blue,
  .menu::before,
  .menu::after,
  .spark {
    animation: none;
  }

  .marquee-track {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}
