:root {
  --ink: #090a08;
  --paper: #f7f3e8;
  --lime: #dfff00;
  --green: #7cf000;
  --aqua: #16d8d0;
  --yellow: #ffe500;
  --line: 3px solid var(--ink);
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: #fff;
  border: var(--line);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: .65rem 2vw;
  background: rgba(247, 243, 232, .91);
  border-bottom: var(--line);
  backdrop-filter: blur(9px);
}
.brand, .footer-mark {
  width: max-content;
  font: 900 1.45rem/1 Arial Black, Arial, sans-serif;
  text-decoration: none;
  letter-spacing: -.08em;
  transform: rotate(-2deg);
}
.status { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.status i { display: inline-block; width: .65rem; height: .65rem; margin-right: .45rem; border-radius: 50%; background: var(--green); border: 1px solid; animation: blink 1.2s steps(2) infinite; }
.topbar nav { display: flex; justify-content: flex-end; gap: .45rem; }
.nav-link {
  display: inline-flex;
  padding: .55rem .8rem;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
}
.nav-link:hover, .nav-link:focus-visible { background: var(--lime); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 9rem 4vw 4rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(9,10,8,.1) 50%, transparent 50.2%),
    linear-gradient(rgba(9,10,8,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,10,8,.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 36px 36px, 36px 36px, auto;
}
.hero::before {
  content: "";
  position: absolute;
  width: 53vw;
  aspect-ratio: 1;
  top: 54%;
  left: 58%;
  z-index: -2;
  background: var(--lime);
  border: var(--line);
  border-radius: 46% 54% 62% 38% / 39% 38% 62% 61%;
  transform: translate(-50%, -50%) rotate(calc(var(--mx) * 2deg));
  box-shadow: 14px 16px 0 var(--ink);
}
.hero-copy { position: relative; z-index: 4; width: min(48rem, 56vw); }
.eyebrow { margin: 0 0 .65rem; font: 900 .76rem/1.2 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
h1 {
  width: min(39vw, 560px);
  margin: 0;
  transform: rotate(-3deg);
}
.title-art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(7px 8px 0 rgba(9, 10, 8, .18));
  user-select: none;
}
.tagline {
  width: max-content;
  max-width: 100%;
  margin: 3.2rem 0 0 4vw;
  padding: .85rem 1rem;
  font: 900 clamp(1rem, 1.7vw, 1.5rem)/1.05 Arial Black, Arial, sans-serif;
  background: #fff;
  border: var(--line);
  box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(1.5deg);
}

.art-stage {
  position: absolute;
  z-index: 3;
  top: 51%;
  left: 66%;
  width: min(64vw, 820px);
  aspect-ratio: 1;
  transform: translate(calc(-50% + var(--mx) * 12px), calc(-50% + var(--my) * 10px)) rotate(calc(var(--mx) * 1deg));
  transition: transform .15s ease-out;
}
.main-art { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(9px 12px 0 rgba(0,0,0,.2)); user-select: none; }
.orbit { position: absolute; inset: -2%; z-index: -1; animation: orbit 22s linear infinite; }
.orbit span { position: absolute; padding: .3rem .55rem; background: var(--yellow); border: 2px solid; font: 900 .65rem/1 Arial, sans-serif; }
.orbit span:nth-child(1) { top: 4%; left: 49%; transform: rotate(8deg); }
.orbit span:nth-child(2) { top: 50%; right: -3%; transform: rotate(86deg); }
.orbit span:nth-child(3) { bottom: 8%; left: 11%; transform: rotate(-18deg); }
.scribble { position: absolute; z-index: 8; font-family: Marker Felt, Comic Sans MS, cursive; font-weight: 900; color: white; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink); pointer-events: none; }
.scribble-one { right: 5%; top: 35%; font-size: 1.5rem; transform: rotate(13deg); }
.scribble-two { left: 10%; top: 31%; font-size: 3rem; animation: twinkle 1.6s steps(2) infinite; }

.sticker { position: absolute; z-index: 2; object-fit: contain; user-select: none; cursor: grab; touch-action: none; filter: drop-shadow(5px 6px 0 rgba(0,0,0,.18)); }
.sticker:active { cursor: grabbing; }
.sticker-ufo { width: clamp(140px, 19vw, 290px); height: auto; right: -3vw; top: 14%; transform: rotate(9deg); }
.sticker-planet { width: clamp(110px, 14vw, 220px); height: auto; left: -3vw; bottom: 4%; transform: rotate(-13deg); }
.sticker-peace { width: clamp(105px, 15vw, 230px); height: auto; right: 2vw; bottom: -5%; transform: rotate(12deg); }
.sticker.dragging { z-index: 20; filter: drop-shadow(12px 14px 0 rgba(0,0,0,.22)); }

.make-noise {
  position: absolute;
  left: 44%;
  bottom: 5%;
  z-index: 8;
  width: 108px;
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 7px 8px 0 var(--ink);
  font: 900 .72rem/1.05 Arial Black, Arial, sans-serif;
  cursor: pointer;
  transform: rotate(-7deg);
}
.make-noise:hover, .make-noise:focus-visible { background: var(--yellow); transform: rotate(3deg) scale(1.08); }
.hint { position: absolute; right: 2vw; bottom: 1rem; margin: 0; font-size: .65rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

.ticker-strip { overflow: hidden; border-block: var(--line); background: var(--ink); color: var(--lime); transform: rotate(-1deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; animation: marquee 19s linear infinite; }
.ticker-track span { padding: .65rem 1rem; font: 900 clamp(1.7rem, 4vw, 3.5rem)/1 Arial Black, Arial, sans-serif; white-space: nowrap; letter-spacing: -.05em; }

.details { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; padding: clamp(5rem, 10vw, 9rem) 5vw; background: var(--yellow); }
h2 { margin: 0; font: 900 clamp(3rem, 8vw, 8rem)/.82 Arial Black, Arial, sans-serif; letter-spacing: -.08em; }
.contract-card { padding: 1.2rem; background: #fff; border: var(--line); box-shadow: 10px 11px 0 var(--ink); transform: rotate(1deg); }
.contract-card > p:first-child { margin: 0 0 .6rem; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.contract-row { display: flex; gap: .7rem; align-items: stretch; }
.contract-row code { flex: 1; min-width: 0; padding: .85rem; overflow: hidden; text-overflow: ellipsis; background: var(--paper); border: 2px solid; font: 900 1.05rem/1.3 ui-monospace, monospace; }
.copy-button { display: flex; gap: 1.8rem; align-items: center; padding: .7rem .9rem; border: 2px solid; background: var(--lime); box-shadow: 3px 3px 0 var(--ink); font-size: .72rem; font-weight: 900; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { transform: translate(2px, 2px); box-shadow: 1px 1px 0; }
.copy-status { min-height: 1.2em; margin: .75rem 0 0; font-size: .7rem; font-weight: 900; text-transform: uppercase; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.4rem 2vw; background: var(--ink); color: #fff; }
footer p { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
footer p:last-child { text-align: right; }
.footer-mark { color: var(--lime); }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 2rem; padding: .75rem 1rem; background: var(--lime); border: var(--line); box-shadow: 5px 5px 0 var(--ink); font-size: .78rem; font-weight: 900; transform: translate(-50%, 180%); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0) rotate(-2deg); }
.burst { position: fixed; z-index: 110; pointer-events: none; font: 900 1.25rem/1 Arial Black, Arial, sans-serif; animation: burst .8s ease-out forwards; }

.cursor { position: fixed; z-index: 200; width: 24px; height: 24px; left: 0; top: 0; pointer-events: none; border: 2px solid var(--ink); border-radius: 50%; transform: translate(-50%, -50%); transition: width .15s, height .15s, background .15s; mix-blend-mode: multiply; }
.cursor span { position: absolute; width: 4px; height: 4px; left: 50%; top: 50%; background: var(--ink); border-radius: 50%; transform: translate(-50%, -50%); }
.cursor.active { width: 44px; height: 44px; background: var(--lime); }

@keyframes blink { 50% { opacity: .2; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { transform: scale(.6) rotate(25deg); } }
@keyframes marquee { to { transform: translateX(-25%); } }
@keyframes burst { to { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.2); opacity: 0; } }

@media (max-width: 800px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 62px; }
  .status { display: none; }
  .topbar nav { gap: .25rem; }
  .nav-link { padding: .45rem .52rem; box-shadow: 2px 2px 0; }
  .hero { min-height: 880px; padding: 7.5rem 1.1rem 4rem; }
  .hero::before { width: 88vw; top: 54%; left: 51%; }
  .hero-copy { width: 100%; }
  h1 { width: min(94vw, 610px); }
  .tagline { margin: 2.5rem 0 0; font-size: 1rem; }
  .art-stage { top: 56%; left: 52%; width: min(118vw, 660px); }
  .sticker-ufo { top: 53%; right: -9%; }
  .sticker-planet { left: -9%; bottom: 2%; }
  .sticker-peace { right: -5%; bottom: -2%; }
  .make-noise { left: 5%; bottom: 13%; width: 94px; }
  .hint { display: none; }
  .details { grid-template-columns: 1fr; gap: 2.5rem; }
  .contract-row { flex-direction: column; }
  .copy-button { justify-content: space-between; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p:nth-child(2) { display: none; }
}

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

:focus-visible { outline: 4px solid var(--aqua); outline-offset: 4px; }
