:root {
  --wen-green: #75fb51;
  --wen-red: #b72619;
  --wen-yellow: #f9e054;
  --wen-orange: #eb9137;
  --ink: #111;
  --paper: #fff7cc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "VT323", ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  color: var(--ink);
  background: var(--paper);
}

/* Background: loud MSPAINT vibes */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--wen-yellow);
}

/* Loud tickers top/bottom */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 5;
  border-top: 6px dotted var(--ink);
  border-bottom: 6px dotted var(--ink);
  background: var(--wen-orange);
  box-shadow: 0 6px 0 0 var(--ink) inset, 0 -6px 0 0 var(--ink) inset, 0 4px 0 rgba(0,0,0,0.15);
}
#ticker-top { top: 0; }
#ticker-bottom { bottom: 0; }
.ticker__inner {
  position: absolute;
  white-space: nowrap;
  font-family: "Rubik Mono One", system-ui, sans-serif;
  letter-spacing: 2px;
  font-size: 20px;
  line-height: 44px;
  color: var(--ink);
  animation: marquee 18s linear infinite;
  text-shadow: 2px 2px var(--wen-yellow), -2px 2px var(--wen-green), 2px -2px var(--wen-orange);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Center card */
#app {
  position: relative;
  z-index: 3;
  height: 100vh;
  width: 100vw;
}

#center {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
  padding: 22px 22px 18px;
  background: var(--wen-green);
  border: 8px solid var(--ink);
  outline: 8px dashed var(--wen-red);
  box-shadow: 12px 12px 0 var(--ink), -6px -6px 0 var(--wen-orange);
  transform-origin: center;
  animation: wobble 2.8s ease-in-out infinite;
}
@keyframes wobble {
  0%,100% { transform: translate(-50%, -50%) rotate(-1deg) scale(1.01); }
  50% { transform: translate(-50%, -50%) rotate(1.2deg) scale(0.995); }
}

.title {
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Rubik Mono One", system-ui, sans-serif;
  text-transform: uppercase;
}
.title__image {
  display: block;
  width: clamp(90px, 22vw, 180px);
  max-height: 160px;
  object-fit: contain;
  border: 6px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper);
}
.title__wen {
  font-size: clamp(48px, 12vw, 110px);
  color: var(--ink);
  text-shadow: 6px 6px var(--wen-green), -6px -6px var(--wen-orange), 0 0 0 6px var(--wen-yellow);
}
.title__ticker {
  font-size: clamp(20px, 5vw, 38px);
  color: var(--wen-red);
  background: var(--paper);
  padding: 2px 8px;
  border: 4px solid var(--ink);
  transform: rotate(-6deg);
}

#slogan {
  margin: 0 0 12px 0;
  font-size: clamp(22px, 4.4vw, 42px);
  background: var(--paper);
  display: inline-block;
  padding: 2px 10px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.ca {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 6px 0 14px 0;
}
.ca__field {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.ca__prefix {
  font-family: "Rubik Mono One", system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: var(--wen-orange);
  border-right: 4px solid var(--ink);
}
.ca input {
  font-size: 18px;
  font-family: "VT323", monospace;
  padding: 8px 10px 8px 12px;
  border: 0;
  outline: none;
  background: var(--paper);
  width: 100%;
}
.ca__copy {
  font-family: "Rubik Mono One", system-ui, sans-serif;
  background: var(--wen-green);
  border: 4px solid var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}
.ca__copy:active { transform: translateY(2px); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 8px;
}
.btn {
  font-family: "Rubik Mono One", system-ui, sans-serif;
  text-decoration: none;
  color: var(--ink);
  border: 6px double var(--ink);
  padding: 8px 12px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  cursor: pointer;
  user-select: none;
}
.btn--x { background: var(--wen-yellow); }
.btn--tg { background: var(--wen-green); }
.btn--dex { background: var(--wen-orange); }
.btn--ghost { background: #fff; }
.btn:active { transform: translateY(2px) translateX(2px); box-shadow: 4px 4px 0 var(--ink); }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
#imgInput {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

/* Chaos layer for floating images */
#chaos-layer {
  position: fixed;
  inset: 0;
  z-index: 1; /* behind #app/#center */
  pointer-events: none;
}
.floater {
  position: absolute;
  z-index: 1;
  image-rendering: pixelated;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  filter: saturate(1.3) contrast(1.05);
  transform: translate3d(0,0,0) rotate(0.5deg);
  will-change: transform;
}
.sticker {
  position: absolute;
  border: 5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

/* Drop veil */
#drop-veil {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(255,255,255,0.8);
  border: 10px dashed var(--wen-red);
  display: grid;
  place-items: center;
}
.veil__inner {
  text-align: center;
  padding: 20px 28px;
  background: var(--wen-yellow);
  border: 8px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}
.veil__title {
  font-family: "Rubik Mono One", system-ui, sans-serif;
  font-size: clamp(28px, 6vw, 64px);
}
.veil__hint { font-size: 22px; margin-top: 10px; }

/* Small screens: ensure center fits */
@media (max-width: 520px) {
  #center {
    padding: 16px;
    outline-width: 6px;
    border-width: 6px;
  }
  .btn { box-shadow: 4px 4px 0 var(--ink); }
}


