@import url("https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Fraunces:opsz,wght@9..144,500;9..144,800&family=IBM+Plex+Mono:wght@500;700&display=swap");

:root {
  --paper: #f7e7b7;
  --paper-deep: #e7c772;
  --ink: #16130f;
  --red: #e0332d;
  --blue: #1659c7;
  --green: #00a878;
  --yellow: #ffd33f;
  --pink: #ff5fa2;
  --shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Fraunces", Georgia, serif;
  background:
    linear-gradient(90deg, rgba(22, 19, 15, 0.05) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(22, 19, 15, 0.05) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 20% 20%, rgba(255, 211, 63, 0.35), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(224, 51, 45, 0.16), transparent 24%),
    var(--paper);
}

body.is-booting {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(22, 19, 15, 0.16) 4px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.34) 8px);
  mix-blend-mode: multiply;
}

button {
  font: inherit;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 255, 130, 0.08), transparent 34%),
    repeating-linear-gradient(0deg, rgba(108, 255, 151, 0.08) 0 1px, transparent 1px 5px),
    #061207;
  color: #79ff8f;
  transition:
    opacity 650ms ease,
    visibility 650ms ease;
}

.boot-screen::before,
.boot-screen::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.boot-screen::before {
  opacity: 0.18;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 45%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(121, 255, 143, 0.24) 3px);
  mix-blend-mode: screen;
}

.boot-screen::after {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.58) 100%);
}

.boot-screen.is-complete {
  visibility: hidden;
  opacity: 0;
}

.boot-screen__bezel {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  border: 5px solid #1b2d1c;
  background: #0c170d;
  box-shadow:
    0 0 0 4px #030704,
    0 0 48px rgba(42, 255, 107, 0.22),
    inset 0 0 42px rgba(0, 0, 0, 0.9);
}

.boot-screen__chrome {
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 3px solid #1f3a23;
  background: #141914;
  color: #c7ffbf;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.62rem, 1.6vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0;
}

.boot-screen__terminal {
  min-height: clamp(27rem, 70vh, 38rem);
  padding: clamp(1rem, 4vw, 2.2rem);
  border: 12px solid #0a0e0a;
  background:
    linear-gradient(90deg, rgba(121, 255, 143, 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(121, 255, 143, 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    #061207;
  font-family: "IBM Plex Mono", monospace;
  text-shadow: 0 0 7px rgba(121, 255, 143, 0.9);
}

.boot-screen__label {
  margin: 0 0 1.1rem;
  color: #f3ffc7;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0;
}

.boot-screen h2 {
  margin: 0 0 1.2rem;
  color: #79ff8f;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.55rem, 5vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.boot-screen h2::after {
  display: inline-block;
  width: 0.55em;
  content: "_";
  animation: cursor-blink 0.8s steps(1) infinite;
}

.boot-log {
  display: grid;
  gap: 0.7rem;
  min-height: 12.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boot-log li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: #d9ffd6;
  font-size: clamp(0.85rem, 2.1vw, 1.16rem);
  line-height: 1.35;
}

.boot-log li::before {
  color: #79ff8f;
  content: "C:\\JJNET>";
}

.boot-log li.is-done::after {
  color: #f3ffc7;
  content: " OK";
}

.boot-log li.is-connected {
  color: #f3ffc7;
  font-weight: 700;
}

.boot-progress {
  overflow: hidden;
  height: 1.15rem;
  margin-top: clamp(1rem, 3vw, 2rem);
  border: 2px solid #79ff8f;
  background: rgba(121, 255, 143, 0.08);
  box-shadow: inset 0 0 18px rgba(121, 255, 143, 0.18);
}

.boot-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #79ff8f 0 12px, #f3ffc7 12px 18px);
  transition: width 520ms steps(8);
}

.boot-screen__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.boot-start {
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #79ff8f;
  border-radius: 0;
  background: #79ff8f;
  color: #061207;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #1f3a23;
}

.boot-start:hover,
.boot-start:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #1f3a23;
}

.boot-start:focus-visible {
  outline: 3px solid #f3ffc7;
  outline-offset: 3px;
}

.boot-start:disabled {
  cursor: wait;
  opacity: 0.65;
}

.boot-status {
  color: #f3ffc7;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.76rem, 1.7vw, 0.95rem);
  font-weight: 700;
}

.ticker {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ticker__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: ticker 18s linear infinite;
}

.ticker span {
  padding: 0.55rem 1.35rem;
  white-space: nowrap;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 42px);
  padding: clamp(1.25rem, 3vw, 3rem);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: clamp(1rem, 7vw, 5rem);
  bottom: 0;
  z-index: -1;
  width: min(42rem, 78vw);
  height: 12px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--ink) 0 16px, transparent 16px 24px);
}

.hero__stage {
  position: relative;
  min-height: clamp(25rem, 58vw, 46rem);
}

.sunburst {
  position: absolute;
  inset: 5% 5% 8% 0;
  border: 4px solid var(--ink);
  background:
    conic-gradient(
      from -10deg,
      var(--yellow) 0 10deg,
      var(--paper) 10deg 20deg,
      var(--red) 20deg 29deg,
      var(--paper) 29deg 41deg,
      var(--blue) 41deg 50deg,
      var(--paper) 50deg 63deg
    );
  box-shadow: var(--shadow);
  clip-path: polygon(4% 11%, 92% 0, 99% 80%, 18% 100%);
  transform: rotate(-2deg);
}

.cutout,
.badge,
.photo-collage {
  position: absolute;
  filter: drop-shadow(5px 5px 0 rgba(22, 19, 15, 0.96));
}

.cutout svg {
  display: block;
  width: 100%;
  height: auto;
}

.cutout path {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cutout .ink {
  fill: none;
}

.cutout .paper {
  fill: var(--yellow);
}

.cutout--hand {
  top: 3%;
  left: 4%;
  width: clamp(8rem, 22vw, 16rem);
  animation: drift-hand 5.2s ease-in-out infinite;
}

.cutout--megaphone {
  right: 4%;
  bottom: 12%;
  width: clamp(13rem, 33vw, 25rem);
  transform: rotate(-8deg);
  animation: shout 3.6s ease-in-out infinite;
}

.cutout--megaphone path:first-child {
  fill: var(--red);
}

.cutout--megaphone path:nth-child(2) {
  fill: var(--blue);
}

.badge {
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--green);
  color: var(--paper);
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-size: clamp(1.5rem, 4vw, 3.8rem);
  line-height: 1;
  text-align: center;
}

.photo-collage {
  top: 18%;
  left: 22%;
  z-index: 2;
  width: clamp(14rem, 32vw, 25rem);
  margin: 0;
  transform: rotate(3deg);
  animation: photo-float 5.8s ease-in-out infinite;
}

.photo-collage__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  background: var(--paper);
  box-shadow:
    0 0 0 12px var(--paper),
    0 0 0 16px var(--ink),
    10px 10px 0 var(--red);
  clip-path: polygon(4% 0, 100% 3%, 96% 96%, 0 100%);
}

.photo-collage__frame::before,
.photo-collage__frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.photo-collage__frame::before {
  opacity: 0.45;
  background:
    linear-gradient(100deg, rgba(255, 211, 63, 0.28), transparent 36%, rgba(22, 89, 199, 0.28)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(22, 19, 15, 0.14) 6px);
  mix-blend-mode: multiply;
}

.photo-collage__frame::after {
  border: 2px dashed rgba(247, 231, 183, 0.8);
  inset: 0.85rem;
}

.photo-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  transform: scale(1.05);
  animation: portrait-drift 9s ease-in-out infinite alternate;
}

.photo-collage__ticket,
.photo-collage__burst,
.photo-collage figcaption {
  position: absolute;
  z-index: 3;
  border: 3px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
}

.photo-collage__ticket {
  top: -2.2rem;
  left: -1.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--yellow);
  font-size: clamp(1rem, 2vw, 1.35rem);
  transform: rotate(-9deg);
}

.photo-collage__burst {
  right: -1.35rem;
  bottom: 2.4rem;
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 9vw, 7rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--pink);
  color: var(--paper);
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  transform: rotate(13deg);
  animation: stamp-pulse 3.4s ease-in-out infinite;
}

.photo-collage figcaption {
  right: 1.4rem;
  bottom: -1.2rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  background: var(--blue);
  color: var(--paper);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  transform: rotate(-2deg);
}

.badge--one {
  right: 15%;
  top: 6%;
  width: clamp(4.6rem, 10vw, 8rem);
  aspect-ratio: 1;
  transform: rotate(10deg);
  animation: badge-pop 2.8s ease-in-out infinite;
}

.badge--thing {
  left: 4%;
  bottom: 13%;
  width: clamp(6rem, 16vw, 12rem);
  aspect-ratio: 1.6;
  background: var(--blue);
  transform: rotate(-10deg);
  animation: badge-pop 3.2s 0.5s ease-in-out infinite;
}

.badge--today {
  left: 44%;
  bottom: 1%;
  width: clamp(7rem, 17vw, 14rem);
  aspect-ratio: 2.1;
  background: var(--pink);
  transform: rotate(4deg);
  animation: badge-pop 3.5s 0.2s ease-in-out infinite;
}

.hero__copy {
  max-width: 45rem;
}

.kicker,
.section-label {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  display: inline-block;
  padding: 0.38rem 0.55rem;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1deg);
}

h1,
h2 {
  margin: 0;
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-block: clamp(1rem, 2.2vw, 1.55rem);
  max-width: 13ch;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.88;
  text-wrap: balance;
}

h1 span {
  display: inline-block;
  padding-inline: 0.12em;
  background: var(--red);
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

h1 b {
  display: block;
  color: var(--blue);
  font-size: 0.64em;
  font-weight: inherit;
  line-height: 0.95;
  text-shadow: 3px 3px 0 var(--yellow);
  white-space: nowrap;
}

.lede {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.42;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.voice-button,
.burst-button {
  min-height: 3.4rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.voice-button {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--green);
}

.voice-button__icon {
  display: grid;
  grid-template-columns: repeat(4, 4px);
  gap: 3px;
  align-items: end;
  width: 25px;
  height: 27px;
}

.voice-button__icon span {
  display: block;
  width: 4px;
  height: 10px;
  background: var(--ink);
}

.voice-button__icon span:nth-child(2) {
  height: 18px;
}

.voice-button__icon span:nth-child(3) {
  height: 26px;
}

.voice-button__icon span:nth-child(4) {
  height: 14px;
}

.voice-button.is-playing .voice-button__icon span {
  animation: meter 0.48s ease-in-out infinite alternate;
}

.voice-button.is-playing .voice-button__icon span:nth-child(2) {
  animation-delay: 80ms;
}

.voice-button.is-playing .voice-button__icon span:nth-child(3) {
  animation-delay: 150ms;
}

.voice-button.is-playing .voice-button__icon span:nth-child(4) {
  animation-delay: 30ms;
}

.burst-button {
  padding: 0.75rem 1rem;
  background: var(--paper);
}

.voice-button:hover,
.burst-button:hover,
.voice-button:focus-visible,
.burst-button:focus-visible {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.voice-button:focus-visible,
.burst-button:focus-visible {
  outline: 4px solid var(--pink);
  outline-offset: 3px;
}

.number-band {
  display: grid;
  grid-template-columns: max-content minmax(18rem, 1fr);
  gap: clamp(1rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  border-block: 4px solid var(--ink);
  background: var(--blue);
  color: var(--paper);
}

.number-band h2 {
  color: var(--yellow);
  font-size: clamp(7rem, 17vw, 16rem);
  line-height: 0.8;
  text-shadow: 8px 8px 0 var(--ink);
}

.number-band p:last-child {
  max-width: 43rem;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1.25rem, 5vw, 5rem);
}

.poster {
  min-height: 21rem;
  padding: clamp(1rem, 2.4vw, 1.8rem);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

.poster span {
  display: inline-grid;
  place-items: center;
  min-width: 4.2rem;
  min-height: 4.2rem;
  margin-bottom: 1.2rem;
  border: 3px solid var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.poster h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: 0.9;
  overflow-wrap: normal;
}

.poster p {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
}

.poster--red {
  background: var(--red);
  color: var(--paper);
  transform: rotate(-1deg);
}

.poster--blue {
  background: var(--yellow);
  transform: rotate(1.3deg);
}

.poster--green {
  background: var(--green);
  color: var(--paper);
  transform: rotate(-0.6deg);
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 52rem);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem) clamp(3rem, 8vw, 7rem);
}

.toast__stamp {
  display: grid;
  place-items: center;
  width: clamp(6rem, 17vw, 13rem);
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  background: var(--pink);
  color: var(--paper);
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
}

.toast h2 {
  margin-top: 0.35rem;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 0.95;
}

.toast p:last-child {
  max-width: 48rem;
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.4;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes drift-hand {
  50% {
    transform: translateY(16px) rotate(7deg);
  }
}

@keyframes shout {
  50% {
    transform: translateY(-9px) rotate(-4deg) scale(1.03);
  }
}

@keyframes photo-float {
  50% {
    transform: translateY(12px) rotate(-1deg) scale(1.02);
  }
}

@keyframes portrait-drift {
  to {
    transform: scale(1.12) translate3d(-2%, -1%, 0);
  }
}

@keyframes stamp-pulse {
  50% {
    transform: translateY(-6px) rotate(4deg) scale(1.08);
  }
}

@keyframes badge-pop {
  50% {
    transform: translateY(-10px) rotate(0deg) scale(1.04);
  }
}

@keyframes meter {
  to {
    height: 5px;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .hero__stage {
    order: -1;
    min-height: clamp(20rem, 82vw, 34rem);
  }

  .hero__copy {
    max-width: none;
  }

  h1 {
    max-width: 10ch;
  }

  .number-band,
  .toast {
    grid-template-columns: 1fr;
  }

  .poster-grid {
    grid-template-columns: 1fr;
  }

  .poster {
    min-height: 16rem;
    transform: none;
  }
}

@media (max-width: 520px) {
  .boot-screen {
    padding: 0.75rem;
  }

  .boot-screen__terminal {
    min-height: 32rem;
    border-width: 8px;
  }

  .boot-screen__chrome {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .boot-screen__chrome span:last-child {
    display: none;
  }

  .boot-log li {
    grid-template-columns: 1fr;
    gap: 0.22rem;
  }

  .boot-screen__footer {
    display: grid;
  }

  .boot-start {
    width: 100%;
  }

  .actions {
    display: grid;
  }

  .voice-button,
  .burst-button {
    justify-content: center;
    width: 100%;
  }

  .badge--today {
    left: 32%;
  }

  .photo-collage {
    left: 18%;
    top: 16%;
    width: clamp(13rem, 66vw, 18rem);
  }

  .photo-collage__burst {
    right: -0.8rem;
    bottom: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
