:root {
  --red: #a30020;
  --crimson: #d0002a;
  --gold: #ffd447;
  --green: #0f5f36;
  --blue: #074b8a;
  --purple: #4e2377;
  --ink: #170b06;
  --paper: #fff4c2;
  --acid: #b8ff1f;
  --cyan: #41f4ff;
  --shadow: #2d1105;
  --jester-cursor: url("assets/jester-cursor.png?v=2") 7 4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: var(--jester-cursor), auto;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  background:
    linear-gradient(45deg, rgba(255, 212, 71, 0.32) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(65, 244, 255, 0.18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(163, 0, 32, 0.26) 75%),
    #1b6e41;
  background-size: 34px 34px;
  background-position: 0 0;
  cursor: var(--jester-cursor), auto;
  animation: checkerCrawl 9s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 212, 71, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 35%, rgba(65, 244, 255, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.44) 0 2px, transparent 3px);
  background-size: 140px 140px, 190px 190px, 230px 230px;
  animation: starDrift 14s linear infinite;
}

a {
  color: #fff;
}

button,
a {
  touch-action: manipulation;
  cursor: var(--jester-cursor), pointer;
}

input,
textarea,
select,
summary,
[role="button"] {
  cursor: var(--jester-cursor), pointer;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 18px));
  margin: 10px auto 22px;
  border: 6px ridge var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 5px #080808, 0 16px 0 rgba(0, 0, 0, 0.45);
  animation: shellGlow 2.8s ease-in-out infinite;
}

.site-header {
  padding: 18px 14px 12px;
  text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--red), var(--purple) 46%, var(--blue));
  background-size: 54px 54px, 180% 180%;
  border-bottom: 5px ridge var(--gold);
  text-shadow: 3px 3px 0 #000;
  animation: headerSweep 4.4s ease-in-out infinite;
}

.pixel-badge {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 8px;
  font: 700 16px "Courier New", monospace;
  color: #000;
  background: var(--gold);
  border: 3px outset #fff3a5;
  animation: blink 1.05s steps(2, start) infinite, hatBob 1.4s ease-in-out infinite;
}

.site-header h1 {
  margin: 0;
  font: 900 clamp(34px, 8vw, 82px) Impact, Haettenschweiler, "Arial Black", sans-serif;
  line-height: 0.95;
  letter-spacing: 0;
  animation: titleZap 1.8s ease-in-out infinite;
}

.tagline,
.visit-line {
  margin: 10px 0 0;
  font-weight: 700;
}

.ticker {
  overflow: hidden;
  color: #000;
  background: var(--gold);
  border-block: 3px solid #000;
  font: 700 17px "Courier New", monospace;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  min-width: 100%;
  padding: 8px 0;
  animation: ticker 18s linear infinite;
}

.nav-box {
  padding: 8px;
  color: #fff;
  background: #050505;
  border-bottom: 5px ridge var(--gold);
  text-align: center;
}

.nav-box h2,
.panel h2,
.warning-box h2,
.system-box h2,
.testimonials h2,
.offer-box h2 {
  margin: 0 0 9px;
  font: 900 20px "Arial Black", Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  min-height: 34px;
  padding: 8px 11px;
  color: #ffff00;
  background: var(--blue);
  border: 3px outset #60d7ff;
  font: 700 14px Arial, sans-serif;
  text-decoration: underline;
  animation: navJitter 2.6s ease-in-out infinite;
}

.nav-links a:nth-child(2n) {
  animation-delay: 0.35s;
}

.nav-links a:nth-child(3n) {
  animation-delay: 0.7s;
}

.nav-links a:hover {
  filter: brightness(1.35);
  transform: rotate(-2deg) scale(1.08);
}

.three-column {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 9px;
  padding: 9px;
}

.sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.panel,
.warning-box,
.system-box,
.testimonials,
.offer-box,
.hero-card {
  border: 5px ridge var(--gold);
  background: #fff8d5;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
  transform-origin: center;
}

.panel {
  padding: 10px;
  animation: panelWobble 5.8s ease-in-out infinite;
}

.panel:nth-child(2n) {
  animation-delay: 0.45s;
}

.panel:nth-child(3n) {
  animation-delay: 0.9s;
}

.left-rail .panel:nth-child(odd) {
  color: #fff;
  background: var(--green);
}

.left-rail .panel:nth-child(even) {
  color: #fff;
  background: var(--purple);
}

.right-rail .panel:nth-child(odd) {
  color: #fff;
  background: var(--blue);
}

.right-rail .panel:nth-child(even) {
  color: #000;
  background: var(--acid);
}

.money-list,
.rank-list,
.simple-list,
.bonus-list {
  padding-left: 20px;
  margin: 0;
}

.money-list li,
.rank-list li,
.simple-list li,
.bonus-list li {
  margin-bottom: 7px;
}

.tiny,
.fine-print {
  font-size: 12px;
  line-height: 1.25;
}

.webring a {
  display: block;
  margin: 6px 0;
  padding: 5px;
  color: #000;
  background: var(--gold);
  border: 2px outset #fff7a1;
  font: 700 13px Arial, sans-serif;
  text-align: center;
}

.construction {
  text-align: center;
}

.counter-label {
  margin-top: 10px;
  font-weight: 900;
}

.hit-counter,
.online-box div,
.countdown {
  display: inline-block;
  padding: 7px 9px;
  color: #39ff14;
  background: #000;
  border: 3px inset #777;
  font: 900 22px "Courier New", monospace;
  letter-spacing: 0;
  animation: counterFlicker 1.4s steps(2, start) infinite;
}

.content-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.hero-card {
  padding: 12px;
  text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, var(--crimson), #36144f 52%, #062c83);
  background-size: auto, 180% 180%;
  animation: heroPulse 3.2s ease-in-out infinite;
}

.sticker-row {
  display: flex;
  justify-content: space-around;
  color: var(--gold);
  font-size: 26px;
  text-shadow: 2px 2px 0 #000;
}

.sticker-row span {
  animation: starBounce 0.9s ease-in-out infinite;
}

.sticker-row span:nth-child(2) {
  animation-delay: 0.14s;
}

.sticker-row span:nth-child(3) {
  animation-delay: 0.28s;
}

.sticker-row span:nth-child(4) {
  animation-delay: 0.42s;
}

.hero-image {
  display: block;
  width: min(100%, 520px);
  max-height: 640px;
  object-fit: contain;
  margin: 9px auto 12px;
  border: 6px ridge var(--gold);
  background: #e8d9ab;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
  animation: jesterFloat 3.4s ease-in-out infinite;
}

.hero-card h2 {
  margin: 10px 0 6px;
  color: var(--gold);
  font: 900 clamp(26px, 5vw, 48px) Impact, "Arial Black", sans-serif;
  text-shadow: 3px 3px 0 #000;
  letter-spacing: 0;
}

.quote {
  max-width: 620px;
  margin: 0 auto 12px;
  font-size: 20px;
  font-weight: 700;
}

.contract-box {
  display: grid;
  gap: 6px;
  width: min(100%, 620px);
  margin: 12px auto;
  padding: 10px;
  color: #000;
  background: var(--gold);
  border: 4px inset #fff1a1;
  font-family: Arial, sans-serif;
  animation: contractGlow 1.6s ease-in-out infinite;
}

.contract-box span {
  font-weight: 900;
}

.contract-box code {
  overflow-wrap: anywhere;
  padding: 7px;
  color: #31ff00;
  background: #000;
  border: 2px inset #999;
  font-size: 14px;
}

.contract-box button,
.claim-button {
  min-height: 40px;
  border: 4px outset #fff6a6;
  color: #000;
  background: #ffea00;
  font: 900 16px Arial, sans-serif;
  cursor: var(--jester-cursor), pointer;
  animation: buttonShake 1.9s ease-in-out infinite;
}

.big-cta,
.yes-button,
.x-cta {
  display: inline-block;
  max-width: 100%;
  padding: 12px 14px;
  color: #fff;
  background: var(--red);
  border: 5px outset #ff8aa0;
  font: 900 18px Arial, sans-serif;
  text-decoration: none;
  text-align: center;
  animation: pulse 1.2s infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.x-cta {
  color: #000;
  background: var(--cyan);
  border-color: #b8fbff;
}

.warning-box {
  padding: 14px;
  color: #000;
  background: var(--acid);
  font: 700 18px Arial, sans-serif;
  animation: warningFlash 1.85s steps(2, start) infinite;
}

.warning-box h2,
.offer-box h2 {
  color: var(--red);
  text-align: center;
}

.wide-panel h2,
.testimonials h2,
.system-box h2 {
  color: var(--purple);
  text-align: center;
}

.bonus-list {
  columns: 2;
  column-gap: 28px;
  font: 700 17px Arial, sans-serif;
}

.yes-button {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  background: var(--blue);
  border-color: #66cfff;
}

.system-box {
  padding: 14px;
  text-align: center;
  background: #e6f7ff;
}

.sparkle-row {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.pyramid {
  display: grid;
  gap: 7px;
  width: min(100%, 560px);
  margin: 0 auto 8px;
}

.pyramid div {
  min-height: 40px;
  margin-inline: auto;
  padding: 9px;
  color: #fff;
  background: var(--red);
  border: 3px outset #ff8ba0;
  font: 900 14px Arial, sans-serif;
  animation: pyramidSlide 2.8s ease-in-out infinite;
}

.pyramid div:nth-child(1) {
  width: 42%;
}

.pyramid div:nth-child(2) {
  width: 68%;
  background: var(--purple);
  animation-delay: 0.2s;
}

.pyramid div:nth-child(3) {
  width: 95%;
  background: var(--green);
  animation-delay: 0.4s;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font: 700 15px Arial, sans-serif;
}

th,
td {
  padding: 9px;
  border: 3px ridge #000;
}

th {
  color: #fff;
  background: var(--purple);
}

td {
  background: #fff;
}

tbody tr:nth-child(even) td {
  background: #fff1a7;
}

.testimonials {
  padding: 12px;
  background: #ffe4ef;
}

.testimonials article {
  margin: 10px 0;
  padding: 10px;
  background: #fff;
  border: 4px ridge var(--crimson);
}

.stars {
  color: #ffb300;
  font-size: 21px;
  text-shadow: 1px 1px 0 #000;
  animation: starTwinkle 0.85s steps(2, start) infinite;
}

cite {
  display: block;
  color: var(--blue);
  font-weight: 700;
}

.offer-box {
  padding: 14px;
  text-align: center;
  background: #fff0a5;
  animation: offerPop 2.2s ease-in-out infinite;
}

.sale {
  color: var(--red);
  font: 900 32px Impact, "Arial Black", sans-serif;
}

.countdown {
  display: block;
  width: fit-content;
  margin: 8px auto 12px;
  font-size: 34px;
}

.claim-button {
  width: min(100%, 440px);
  color: #fff;
  background: var(--red);
  border-color: #ff8aa0;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ad-grid div {
  min-height: 92px;
  padding: 10px 8px;
  color: #000;
  background: var(--cyan);
  border: 5px outset #b8fbff;
  font: 900 17px Impact, "Arial Black", sans-serif;
  text-align: center;
  display: grid;
  place-items: center;
  animation: adFlash 1.2s steps(2, start) infinite;
}

.ad-grid div:nth-child(even) {
  background: var(--gold);
  animation-delay: 0.4s;
}

.ad-grid span {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.contact-card {
  text-align: center;
}

.seal {
  display: inline-grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--gold);
  background: var(--red);
  border: 5px ridge var(--gold);
  border-radius: 50%;
  font-size: 34px;
  text-decoration: none;
  animation: sealSpin 2.2s ease-in-out infinite;
}

.online-box {
  text-align: center;
}

.site-footer {
  padding: 14px;
  color: #fff;
  background: #050505;
  border-top: 5px ridge var(--gold);
  text-align: center;
}

.site-footer h2 {
  margin: 6px 0;
  color: var(--gold);
  font: 900 28px Impact, "Arial Black", sans-serif;
  letter-spacing: 0;
}

.disclaimer {
  color: #fff;
  background: var(--red);
  border: 3px ridge var(--gold);
  padding: 9px;
  font-weight: 700;
}

.footer-stars {
  color: var(--gold);
  font-size: 24px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  color: #000;
  background: var(--gold);
  border: 4px ridge var(--red);
  box-shadow: 4px 4px 0 #000;
  font: 900 14px Arial, sans-serif;
  transform: translateY(140%);
  transition: transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.sparkle-pop {
  position: fixed;
  z-index: 9;
  pointer-events: none;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000, 0 0 8px #fff;
  font: 900 18px Impact, "Arial Black", sans-serif;
  animation: sparklePop 1.8s ease-out forwards;
}

@keyframes blink {
  50% {
    opacity: 0.24;
  }
}

@keyframes checkerCrawl {
  to {
    background-position: 34px 34px;
  }
}

@keyframes starDrift {
  to {
    background-position: 140px 90px, -190px 120px, 230px -80px;
  }
}

@keyframes shellGlow {
  50% {
    box-shadow: 0 0 0 5px #080808, 0 16px 0 rgba(0, 0, 0, 0.45), 0 0 28px var(--gold);
  }
}

@keyframes headerSweep {
  50% {
    background-position: 24px 0, 100% 50%;
  }
}

@keyframes hatBob {
  50% {
    transform: translateY(-3px) rotate(1.5deg);
  }
}

@keyframes titleZap {
  0%,
  100% {
    color: #fff;
  }

  50% {
    color: var(--gold);
    text-shadow: 4px 4px 0 #000, -3px 0 0 var(--cyan);
  }
}

@keyframes navJitter {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(1.2deg);
  }
}

@keyframes panelWobble {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(0.45deg);
  }
}

@keyframes counterFlicker {
  50% {
    color: #fff700;
  }
}

@keyframes heroPulse {
  50% {
    background-position: 0 0, 100% 50%;
    filter: saturate(1.25);
  }
}

@keyframes starBounce {
  50% {
    transform: translateY(-8px) scale(1.18);
  }
}

@keyframes jesterFloat {
  50% {
    transform: translateY(-7px) rotate(-0.7deg);
    box-shadow: 12px 16px 0 rgba(0, 0, 0, 0.38);
  }
}

@keyframes contractGlow {
  50% {
    box-shadow: 0 0 20px var(--cyan);
  }
}

@keyframes buttonShake {
  0%,
  100% {
    transform: translateX(0);
  }

  48% {
    transform: translateX(0);
  }

  52% {
    transform: translateX(-2px);
  }

  56% {
    transform: translateX(2px);
  }
}

@keyframes warningFlash {
  50% {
    background: #fff000;
    color: var(--red);
  }
}

@keyframes pyramidSlide {
  50% {
    transform: translateX(5px);
  }
}

@keyframes starTwinkle {
  50% {
    color: #fff;
  }
}

@keyframes offerPop {
  50% {
    transform: scale(1.012);
  }
}

@keyframes adFlash {
  50% {
    filter: hue-rotate(70deg) brightness(1.18);
  }
}

@keyframes sealSpin {
  50% {
    transform: rotate(8deg) scale(1.08);
  }
}

@keyframes sparklePop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.6) rotate(-12deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-62px) scale(1.25) rotate(12deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

@keyframes ticker {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

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

@media (max-width: 980px) {
  .three-column {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 8px, 1180px);
    margin-top: 4px;
    border-width: 4px;
  }

  .three-column {
    grid-template-columns: 1fr;
  }

  .right-rail {
    display: flex;
  }

  .bonus-list {
    columns: 1;
  }

  .ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header h1 {
    font-size: clamp(32px, 15vw, 58px);
  }

  .quote {
    font-size: 17px;
  }
}

@media (max-width: 460px) {
  .nav-links a {
    flex: 1 1 42%;
    padding-inline: 6px;
    font-size: 12px;
  }

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

  .pyramid div:nth-child(1),
  .pyramid div:nth-child(2),
  .pyramid div:nth-child(3) {
    width: 100%;
  }

  .countdown {
    font-size: 28px;
  }
}
