/* czTrumpPikachu4SAFU — maximum overstimulation */

:root {
  --yellow: #ffe600;
  --blue: #00a2ff;
  --hot: #ff004c;
  --lime: #39ff14;
  --pink: #ff4fd8;
  --orange: #ff8a00;
  --bg1: #1a0033;
  --bg2: #004422;
}

* {
  box-sizing: border-box;
}

html {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='24' font-size='24'%3E⚡%3C/text%3E%3C/svg%3E") 8 8, auto;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Comic Neue", "Comic Sans MS", "Chalkboard SE", cursive;
  color: #fff;
  background:
    repeating-linear-gradient(
      45deg,
      #ff0080 0 12px,
      #00e5ff 12px 24px,
      #ffe600 24px 36px,
      #39ff14 36px 48px,
      #9b00ff 48px 60px
    );
  background-size: 200% 200%;
  animation: bgShift 6s linear infinite;
  padding: 42px 0 48px;
}

@keyframes bgShift {
  0% { background-position: 0 0; }
  100% { background-position: 120px 120px; }
}

/* ----- gate ----- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.gate-spiral {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gate-spiral svg {
  width: 220vmax;
  height: 220vmax;
  min-width: 1400px;
  min-height: 1400px;
  animation: hypnoSpin 7s linear infinite;
  will-change: transform;
}

@keyframes hypnoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gate-box {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  padding: 24px;
  border: 6px ridge gold;
  background: linear-gradient(180deg, #220044, #004466);
  box-shadow: 0 0 0 4px #fff, 0 0 40px #ff00aa, 0 0 80px #00e5ff;
}

.gate-img {
  width: min(260px, 70vw);
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 0 12px #00a2ff);
}

.gate-title {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  line-height: 1.25;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em 0.45em;
}

.gate-title .word {
  display: inline-block;
}

.gate-title .word-you {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.35em;
  letter-spacing: 0.04em;
}

.gate-title .word-have {
  font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", cursive;
  font-size: 1.15em;
  font-weight: 700;
}

.gate-title .word-entered {
  font-family: "Press Start 2P", monospace;
  font-size: 0.55em;
  line-height: 1.6;
}

.gate-title .word-ticker {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 1.05em;
  width: 100%;
  text-align: center;
  margin-top: 0.15em;
  word-break: break-word;
}

.gate-title br {
  flex-basis: 100%;
  width: 100%;
  content: "";
}

.gate.hidden {
  display: none;
}

/* ----- rainbow / blink ----- */
.rainbow-text {
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff8a00,
    #ffe600,
    #39ff14,
    #00a2ff,
    #9b00ff,
    #ff0000
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbowSlide 2s linear infinite;
  font-weight: 900;
  filter: drop-shadow(2px 2px 0 #000) drop-shadow(-1px -1px 0 #fff);
}

@keyframes rainbowSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.blink {
  animation: blink 0.6s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hot,
.hot-inline {
  color: var(--hot);
  text-shadow: 0 0 8px #ff004c, 2px 2px 0 #000;
  font-weight: 900;
}

.comic {
  font-family: "Comic Neue", "Comic Sans MS", cursive;
}

.tiny {
  font-size: 11px;
  opacity: 0.85;
}

.center {
  text-align: center;
}

/* ----- tickers ----- */
.ticker-wrap {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #000;
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--blue);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.ticker-top { top: 0; }
.ticker-bottom { bottom: 0; }

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tick 28s linear infinite;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--lime);
  text-shadow: 0 0 6px var(--lime);
}

.ticker-track.reverse {
  animation-direction: reverse;
  color: var(--yellow);
  text-shadow: 0 0 6px var(--yellow);
}

.ticker-track span {
  padding-right: 2rem;
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- vertical trump ----- */
.vert-trump {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: 0.15em;
  color: var(--yellow);
  -webkit-text-stroke: 4px var(--blue);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 #000;
  z-index: 50;
  pointer-events: none;
  animation: trumpPulse 1.2s ease-in-out infinite alternate;
  opacity: 0.9;
}

.vert-trump.left { left: 4px; }
.vert-trump.right {
  right: 4px;
  writing-mode: vertical-lr;
  animation-delay: 0.4s;
}

@keyframes trumpPulse {
  from { filter: hue-rotate(0deg) saturate(1.2); }
  to { filter: hue-rotate(25deg) saturate(1.8); }
}

/* ----- page ----- */
.page {
  position: relative;
  z-index: 100;
  max-width: 920px;
  margin: 0 auto;
  padding: 160px 12px 40px;
}

.hero {
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  border: 8px double var(--yellow);
  outline: 4px solid var(--blue);
  padding: 18px 12px 28px;
  box-shadow:
    0 0 0 2px #fff,
    12px 12px 0 #ff00aa,
    -12px -12px 0 #00e5ff;
  animation: heroWiggle 3s ease-in-out infinite;
}

@keyframes heroWiggle {
  0%, 100% { transform: rotate(-0.4deg); }
  50% { transform: rotate(0.4deg); }
}

.site-name {
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(1.6rem, 7vw, 3.4rem);
  line-height: 1.05;
  margin: 8px 0 4px;
  word-break: break-word;
}

.tagline {
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

.hero-art-wrap {
  position: relative;
  display: inline-block;
  margin: 10px 0;
}

.hero-art {
  width: min(420px, 88vw);
  height: auto;
  border: 6px solid #fff;
  outline: 4px solid var(--blue);
  box-shadow: 0 0 30px var(--blue), 0 0 60px var(--yellow);
  background: #333;
}

.badge-4 {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Impact, sans-serif;
  font-size: 48px;
  color: #fff;
  -webkit-text-stroke: 3px #000;
  background: conic-gradient(
    #ff0000,
    #ff8a00,
    #ffe600,
    #39ff14,
    #00a2ff,
    #9b00ff,
    #ff0000
  );
  border: 4px solid #fff;
  box-shadow: 0 0 20px #fff;
}

.safu-huge {
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(3rem, 14vw, 7rem);
  margin: 4px 0;
  letter-spacing: 0.08em;
}

.subtitle {
  font-size: 1.15rem;
  text-shadow: 2px 2px 0 #000;
}

.under-construction {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--yellow);
}

/* ----- mega Twitter + Flap (fixed top, above popups) ----- */
.mega-links {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 9500;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  margin: 0;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 4px solid #ffe600;
  box-shadow: 0 8px 24px #000;
  pointer-events: auto;
}

.mega-card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  padding: 8px 10px;
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 4px 4px 0 #000;
  min-width: 0;
}

.mega-twitter {
  border: 4px ridge #ff0000;
  outline: 2px dashed #ffe600;
}

.mega-flap {
  border: 4px ridge #ffe600;
  outline: 2px dashed #39ff14;
}

.x-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: arrowPoint 0.7s ease-in-out infinite alternate;
}

.x-arrow-label,
.flap-arrow-label {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(0.75rem, 2.4vw, 1.15rem);
  line-height: 1.05;
  color: #ff0000;
  -webkit-text-stroke: 1px #fff;
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 #000, 0 0 10px #ff004c;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.flap-arrow-label {
  color: #39ff14;
  -webkit-text-stroke: 1px #000;
  text-shadow: 2px 2px 0 #ffe600, 0 0 10px #39ff14;
  transform: rotate(5deg);
  animation: arrowPoint 0.7s ease-in-out infinite alternate-reverse;
}

.x-arrow {
  width: min(90px, 18vw);
  height: auto;
  overflow: visible;
  filter: drop-shadow(2px 2px 0 #000);
}

.x-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  padding: 8px 12px;
  border: 4px solid #fff;
  background: #000;
  box-shadow: 0 0 0 4px #ff0000, 0 0 20px #fff;
  animation: xPulse 1s ease-in-out infinite;
  transition: transform 0.12s ease;
}

.x-logo-link:hover,
.x-logo-link:focus-visible {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 0 6px #ffe600, 0 0 40px #ff004c;
}

.x-logo-link:active {
  transform: scale(0.96);
}

.x-logo {
  width: clamp(48px, 10vw, 72px);
  height: clamp(48px, 10vw, 72px);
  fill: #fff;
}

.x-logo-caption {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: #ffe600;
  text-shadow: 1px 1px 0 #000;
  text-align: center;
  line-height: 1.35;
}

.flap-mega-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
  padding: 10px 16px;
  text-decoration: none;
  color: #000;
  border: 5px outset #fff;
  background:
    repeating-linear-gradient(
      -45deg,
      #ffe600 0 10px,
      #ff8a00 10px 20px
    );
  box-shadow: 0 0 0 4px #39ff14, 0 0 20px #f0b90b, 4px 4px 0 #000;
  animation: flapPulse 1.1s ease-in-out infinite;
  transition: transform 0.12s ease;
}

.flap-mega-btn:hover,
.flap-mega-btn:focus-visible {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 0 6px #00a2ff, 0 0 40px #ffe600, 4px 4px 0 #000;
}

.flap-mega-btn:active {
  border-style: inset;
  transform: scale(0.96);
}

.flap-mega-title {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: #000;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #ff004c;
}

.flap-mega-sub {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  text-align: center;
  line-height: 1.4;
  background: #000;
  color: #39ff14;
  padding: 5px 6px;
}

@keyframes arrowPoint {
  from { transform: translate(0, 0); }
  to { transform: translate(6px, 4px); }
}

@keyframes xPulse {
  0%, 100% { box-shadow: 0 0 0 4px #ff0000, 0 0 16px #fff; }
  50% { box-shadow: 0 0 0 7px #ff004c, 0 0 30px #ffe600; }
}

@keyframes flapPulse {
  0%, 100% { box-shadow: 0 0 0 4px #39ff14, 0 0 16px #f0b90b, 4px 4px 0 #000; }
  50% { box-shadow: 0 0 0 7px #ffe600, 0 0 30px #39ff14, 4px 4px 0 #000; }
}

@media (max-width: 700px) {
  .mega-links {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
  }

  .page {
    padding-top: 250px;
  }

  .x-arrow {
    display: none;
  }
}

/* ----- buttons ----- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 22px 0;
}

.big-btn {
  appearance: none;
  border: 4px outset #fff;
  padding: 14px 22px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
}

.big-btn:active {
  border-style: inset;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.big-btn.twitter {
  background: linear-gradient(180deg, #1da1f2, #0c6db0);
  color: #fff;
}

.big-btn.flap {
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  color: #000;
  animation: pulse 1.1s ease-in-out infinite;
}

.big-btn.panic {
  background: linear-gradient(180deg, var(--hot), #990028);
  color: #fff;
}

.pulse {
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ----- marquees ----- */
.marquee-block {
  margin: 18px 0;
}

.old-marquee {
  display: block;
  background: #000;
  color: var(--lime);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  padding: 8px 0;
  border: 3px solid var(--pink);
  margin-bottom: 8px;
}

.rainbow-bg {
  background: linear-gradient(90deg, #ff004c, #ffe600, #39ff14, #00a2ff, #9b00ff) !important;
  color: #000 !important;
  font-weight: 900;
}

/* ----- panels ----- */
.chaos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.panel {
  border: 5px ridge #fff;
  padding: 12px 14px;
  color: #000;
  box-shadow: 6px 6px 0 #000;
}

.panel.yellow { background: repeating-linear-gradient(0deg, #ffe600, #ffe600 8px, #ffd000 8px, #ffd000 16px); }
.panel.cyan { background: repeating-linear-gradient(90deg, #7ef9ff, #7ef9ff 10px, #4de8ff 10px, #4de8ff 20px); }
.panel.pink { background: repeating-linear-gradient(135deg, #ff9de2, #ff9de2 12px, #ff70d4 12px, #ff70d4 24px); }

.panel h2 {
  margin-top: 0;
  font-size: 1.4rem;
  text-decoration: underline wavy #000;
}

.panel ul,
.panel ol {
  padding-left: 1.2rem;
}

.thumb {
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 10px auto 0;
  border: 4px solid #000;
}

.spin-hover:hover {
  animation: spin 0.6s linear infinite;
}

/* ----- floaters ----- */
.gif-wall {
  position: relative;
  height: 180px;
  margin: 10px 0 24px;
  pointer-events: none;
}

.floater {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 900;
  text-shadow: 2px 2px 0 #000;
}

.floater img {
  width: 90px;
  height: auto;
  border: 3px solid #fff;
}

.emoji-char {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 0 8px #fff);
}

.emoji-char.trump-face {
  animation: bounce 0.7s ease-in-out infinite;
}

.emoji-char.pika {
  animation: shake 0.35s linear infinite;
  color: var(--yellow);
}

.label {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  background: #000;
  color: #fff;
  padding: 3px 6px;
  margin-top: 4px;
}

.f1 { left: 4%; top: 10%; animation: floatY 2.4s ease-in-out infinite; }
.f2 { left: 38%; top: 0; animation: floatY 3s ease-in-out infinite reverse; }
.f3 { right: 8%; top: 20%; animation: floatY 2.1s ease-in-out infinite; }
.f4 {
  left: 20%;
  bottom: 0;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 42px;
  animation: spin 4s linear infinite;
}
.f5 { right: 28%; top: 40%; }

.badge-mini {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Impact, sans-serif;
  font-size: 32px;
  color: #fff;
  -webkit-text-stroke: 2px #000;
  background: conic-gradient(#ff0000, #ffe600, #39ff14, #00a2ff, #9b00ff, #ff0000);
  border: 3px solid #fff;
}

/* ----- counters ----- */
.counter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 18px 0;
}

.counter-box {
  background: #000;
  border: 4px inset #888;
  padding: 10px 16px;
  text-align: center;
  min-width: 160px;
  color: var(--lime);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
}

.hit {
  font-size: 22px;
  margin: 8px 0;
  color: var(--hot);
}

.links-again {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border: 6px dashed var(--pink);
  padding: 16px;
}

.links-again h2 {
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  margin: 0 0 8px;
}

.footer {
  margin-top: 24px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.footer a {
  color: var(--yellow);
}

/* ----- animations ----- */
.bounce {
  animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.spin,
.spin-slow {
  animation: spin 8s linear infinite;
}

.spin-slow {
  animation-duration: 14s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-6deg); }
  75% { transform: translateX(4px) rotate(6deg); }
}

/* ----- sparkles ----- */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.spark {
  position: absolute;
  font-size: 14px;
  animation: sparkFall linear forwards;
  opacity: 0.9;
}

@keyframes sparkFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ----- fake OS popups ----- */
#popup-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
}

.popup {
  position: absolute;
  pointer-events: auto;
  width: min(280px, 86vw);
  background: #c0c0c0;
  border: 3px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 4px 4px 0 #000;
  font-family: "Comic Neue", "Comic Sans MS", sans-serif;
  color: #000;
  animation: popupIn 0.25s ease-out;
}

@keyframes popupIn {
  from { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.popup-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.popup-x {
  background: #c0c0c0;
  border: 2px outset #fff;
  width: 18px;
  height: 18px;
  line-height: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  color: #000;
  padding: 0;
}

.popup-body {
  padding: 10px;
  text-align: center;
  background: #c0c0c0;
}

.popup-body img {
  width: 120px;
  height: auto;
  border: 2px solid #000;
  margin-bottom: 8px;
  animation: bounce 0.9s ease-in-out infinite;
}

.popup-body .char {
  font-size: 56px;
  line-height: 1;
  display: block;
  animation: shake 0.4s linear infinite;
}

.popup-body .safu-pop {
  font-family: "Bungee", Impact, sans-serif;
  font-size: 42px;
  margin: 6px 0;
}

.popup-body p {
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.popup-ok {
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 4px 18px;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.popup.trump .popup-title { background: linear-gradient(90deg, #b22222, #ff4500); }
.popup.cz .popup-title { background: linear-gradient(90deg, #f0b90b, #c99400); color: #000; }
.popup.pika .popup-title { background: linear-gradient(90deg, #ffe600, #00a2ff); color: #000; }
.popup.safu .popup-title { background: linear-gradient(90deg, #ff0000, #ffe600, #39ff14, #00a2ff, #9b00ff); color: #000; }

/* mobile */
@media (max-width: 700px) {
  .vert-trump {
    font-size: 1.4rem;
    opacity: 0.55;
  }

  .gif-wall {
    height: 140px;
  }

  .floater img {
    width: 64px;
  }

  .big-btn {
    width: 100%;
  }
}
