:root {
  --win-gray: #c0c0c0;
  --win-dark: #000080;
  --acid: #00ff00;
  --hot: #ff00ff;
  --yellow: #ffff00;
  --red: #ff0000;
  --cyan: #00ffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  margin: 0;
  min-width: 320px;
  color: #000;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 255, .12) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(255, 0, 255, .09) 0 1px, transparent 1px 18px),
    #fff;
  font-family: "Times New Roman", Times, serif;
  overflow-x: hidden;
}

body,
a,
button,
input,
summary {
  cursor: none !important;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

button,
input {
  font: inherit;
}

#rage-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 58px;
  height: 66px;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-15px, -18px) rotate(-8deg);
  transform-origin: center;
  filter: drop-shadow(2px 2px 0 #ff00ff);
  transition: width .08s, height .08s, filter .08s;
}

#rage-cursor.clicking {
  width: 74px;
  height: 84px;
  filter: drop-shadow(3px 3px 0 #00ff00);
}

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wall-rage {
  position: absolute;
  width: 240px;
  opacity: .1;
  filter: grayscale(1) contrast(2);
}

.wall-rage-1 { top: 8%; left: -70px; transform: rotate(16deg); }
.wall-rage-2 { top: 30%; right: -90px; transform: rotate(-20deg); }
.wall-rage-3 { top: 58%; left: 2%; transform: rotate(8deg); }
.wall-rage-4 { top: 76%; right: -45px; transform: rotate(15deg); }
.wall-rage-5 { top: 118%; left: 42%; transform: rotate(-12deg); }

.top-warning {
  position: relative;
  z-index: 20;
  height: 28px;
  padding-top: 4px;
  color: #fff;
  background: #000;
  border-bottom: 3px ridge #fff;
  font: bold 15px/1 "Comic Sans MS", cursive;
}

.top-warning marquee {
  color: var(--yellow);
  text-shadow: 2px 0 var(--red), -2px 0 #0000ff;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 180px 160px 210px;
  align-items: center;
  min-height: 120px;
  padding: 8px 18px;
  background:
    radial-gradient(circle, #fff 0 2px, transparent 3px) 0 0 / 14px 14px,
    linear-gradient(90deg, #00ffff, #fff 33%, #ffff00 66%, #ff00ff);
  border-bottom: 6px groove var(--win-gray);
}

.logo-zone {
  display: flex;
  align-items: flex-end;
  width: max-content;
  color: #000;
  text-decoration: none;
  transform: rotate(-2deg);
}

.logo-zone .tiny {
  align-self: flex-start;
  margin-top: 10px;
  font: bold 13px/1 Arial, sans-serif;
}

.logo-rage,
.logo-comics {
  font: 900 clamp(54px, 6vw, 92px)/.72 Impact, "Arial Black", sans-serif;
  letter-spacing: -5px;
  text-shadow:
    3px 3px 0 #fff,
    6px 6px 0 #ff0000,
    9px 9px 0 #0000ff;
}

.logo-comics {
  color: #ff0000;
  margin-left: 8px;
  font-size: clamp(30px, 3.2vw, 50px);
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #000;
}

.logo-nft {
  align-self: flex-start;
  margin: 6px 0 0 8px;
  padding: 4px 6px;
  color: var(--yellow);
  background: #000;
  font: bold 15px/1 "Comic Sans MS", cursive;
  transform: rotate(12deg);
  animation: blink .65s steps(1) infinite;
}

.header-gif {
  height: 98px;
  overflow: hidden;
  border: 4px outset var(--win-gray);
  background: #fff;
  transform: rotate(2deg);
}

.header-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.visitor-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 12px;
  padding: 7px;
  color: var(--acid);
  background: #000;
  border: 3px inset var(--win-gray);
  font: bold 9px/1.2 "Courier New", monospace;
  text-align: center;
}

.visitor-box strong {
  margin: 4px 0;
  padding: 2px 4px;
  color: #ff0000;
  background: #1d0000;
  font-size: 22px;
  letter-spacing: 2px;
  text-shadow: 0 0 5px red;
}

.win-button {
  min-height: 34px;
  padding: 5px 12px;
  color: #000;
  background: var(--win-gray);
  border: 3px outset #eee;
  border-right-color: #333;
  border-bottom-color: #333;
  font: bold 12px/1 Arial, sans-serif;
}

.win-button:active {
  border-style: inset;
}

.wallet-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  font-size: 15px;
}

.wallet-button span {
  font-size: 30px;
}

.wallet-button.connected {
  color: #fff;
  background: #008000;
}

.link-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 7px 12px;
  color: #fff;
  background: var(--win-dark);
  border-top: 2px solid #fff;
  border-bottom: 4px ridge var(--win-gray);
  font: bold 14px/1 "Courier New", monospace;
}

.link-bar a,
.link-bar button {
  color: #fff;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
}

.link-bar a:hover,
.link-bar button:hover {
  color: var(--yellow);
  background: #ff0000;
}

main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 180px minmax(620px, 1fr) 190px;
  gap: 10px;
  width: min(1420px, calc(100% - 18px));
  margin: 10px auto 0;
}

.left-rail,
.right-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.win-box {
  background: var(--win-gray);
  border: 3px outset #fff;
  box-shadow: 2px 2px 0 #000;
}

.win-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  padding: 3px 4px;
  color: #fff;
  background: linear-gradient(90deg, #000080, #1084d0);
  font: bold 12px/1 Arial, sans-serif;
}

.win-title div {
  display: flex;
  gap: 2px;
}

.win-title i,
.win-title > button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #000;
  background: var(--win-gray);
  border: 2px outset #eee;
  font: bold 11px/1 Arial, sans-serif;
  font-style: normal;
}

.win-body {
  padding: 8px;
  font: 12px/1.2 Arial, sans-serif;
}

.win-body p {
  margin: 7px 0;
}

.center {
  text-align: center;
}

.browser-badge {
  padding: 7px 2px;
  color: #fff;
  background: #000080;
  border: 2px inset #fff;
  font: italic 12px/1 Arial, sans-serif;
  text-align: center;
}

.blink-text {
  color: red;
  font-weight: bold;
  animation: blink .7s steps(1) infinite;
}

.rail-gif,
.side-gif {
  width: 100%;
  border: 4px ridge #ff00ff;
  background: #fff;
  image-rendering: pixelated;
}

.poll-box {
  padding: 8px;
  color: #fff;
  background: #008080;
  border: 4px ridge #c0c0c0;
  font: 12px/1.25 Arial, sans-serif;
}

.poll-box > b {
  display: block;
  padding: 3px;
  color: var(--yellow);
  background: #000080;
  text-align: center;
}

.poll-box label {
  display: block;
  margin: 5px 0;
}

.tiny-button {
  padding: 3px 8px;
  background: var(--win-gray);
  border: 2px outset #fff;
  font: bold 10px Arial, sans-serif;
}

.poll-result {
  margin-top: 7px;
  color: var(--acid);
  font-weight: bold;
}

.badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.badges span {
  display: grid;
  place-items: center;
  min-height: 31px;
  color: #fff;
  background: #000;
  border: 2px ridge #fff;
  font: bold 9px/1 Arial, sans-serif;
  text-align: center;
}

.badges span:nth-child(2) { color: yellow; background: red; }
.badges span:nth-child(3) { color: lime; background: navy; }
.badges span:nth-child(4) { color: black; background: cyan; }

.content-column {
  min-width: 0;
}

.hero-zone {
  position: relative;
  min-height: 870px;
  padding: 10px 14px 25px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255,255,0,.78), rgba(255,255,255,.88) 35%, rgba(0,255,255,.75) 70%, rgba(255,0,255,.7)),
    #fff;
  border: 7px ridge #c0c0c0;
}

.construction {
  display: flex;
  justify-content: space-around;
  padding: 5px;
  color: #000;
  background: repeating-linear-gradient(-45deg, #ffff00 0 10px, #000 10px 20px);
  border: 2px solid #000;
  font: bold 13px/1 Arial, sans-serif;
  text-align: center;
  text-shadow: 1px 1px #fff, -1px -1px #fff;
}

.construction span {
  color: #ff0000;
  font-size: 20px;
}

h1 {
  position: relative;
  margin: 22px 0 10px;
  text-align: center;
}

.welcome {
  display: block;
  color: #000080;
  font: bold italic 27px/1 "Comic Sans MS", cursive;
  letter-spacing: 8px;
  text-shadow: 2px 2px #fff;
}

.mega-rage {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  color: #ff0000;
  font: 900 clamp(72px, 9vw, 148px)/.78 Impact, "Arial Black", sans-serif;
  letter-spacing: -6px;
  text-shadow:
    4px 4px 0 #fff,
    8px 8px 0 #000,
    -4px -4px 0 #ffff00;
  transform: skew(-7deg) rotate(-1deg);
  animation: titleJitter .23s steps(2) infinite;
}

.mega-rage::after {
  content: attr(data-glitch);
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: -1;
  color: #00ffff;
  text-shadow: none;
  clip-path: inset(45% 0 20% 0);
}

.dot-eth {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 16px;
  color: var(--acid);
  background: #000;
  font: bold 29px/1 "Courier New", monospace;
  transform: rotate(3deg);
}

.subtitle {
  max-width: 750px;
  margin: 20px auto;
  padding: 7px;
  color: #fff;
  background: #000080;
  border: 3px dashed yellow;
  font: bold 17px/1.3 "Comic Sans MS", cursive;
  text-align: center;
}

.hero-chaos {
  display: grid;
  grid-template-columns: 190px 1fr 155px;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-gif {
  width: 100%;
  border: 5px ridge #ff0000;
  image-rendering: pixelated;
}

.gif-left {
  transform: rotate(-6deg) scale(1.08);
}

.gif-right {
  transform: rotate(7deg) scale(1.12);
}

.main-alert {
  position: relative;
  z-index: 3;
  transform: rotate(-1deg);
}

.alert-content {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px;
  font: 14px/1.3 Arial, sans-serif;
}

.alert-content .alert-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: #ff0000;
  border-radius: 50%;
  font: bold 36px/1 Arial, sans-serif;
}

.alert-content p {
  margin: 0;
}

.alert-content button {
  grid-column: 1 / -1;
  justify-self: center;
}

.launch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 38px 0 24px;
}

.enter-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(390px, 70%);
  padding: 10px 28px;
  color: #fff !important;
  background: linear-gradient(#ff0000, #810000);
  border: 8px outset #ff6666;
  font-family: Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 0 0 5px yellow, 10px 10px 0 #000;
  animation: buttonPulse .7s steps(2) infinite;
}

.enter-button span {
  font-size: 13px;
}

.enter-button strong {
  font: 900 44px/.9 Impact, sans-serif;
  letter-spacing: 3px;
}

.enter-button small {
  margin-top: 4px;
  color: #ffff00;
}

.new-star,
.hot-star {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  color: #000;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 34%, 98% 22%, 70% 50%, 98% 78%, 62% 67%, 50% 100%, 38% 67%, 2% 78%, 30% 50%, 2% 22%, 39% 34%);
  font: bold 15px/1 Arial, sans-serif;
  animation: spin 3s linear infinite;
}

.hot-star {
  color: #fff;
  background: #ff0000;
  animation-direction: reverse;
}

.scrolling-text {
  padding: 5px 0;
  color: var(--acid);
  background: #000;
  border: 4px inset #c0c0c0;
  font: bold 16px/1 "Courier New", monospace;
}

.collection-section {
  padding: 55px 18px 35px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.75), transparent 60%),
    repeating-conic-gradient(#ffc0cb 0 25%, #fff 0 50%) 0 / 30px 30px;
  border: 7px ridge #ff00ff;
  border-top: 0;
}

.section-break {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 12px;
}

.section-break img {
  width: 100%;
  border: 4px ridge #0000ff;
}

.section-break h2,
.faq-section > h2 {
  margin: 0;
  color: #000080;
  font: 900 clamp(45px, 7vw, 96px)/.8 Impact, sans-serif;
  text-align: center;
  text-decoration: underline wavy red;
  text-shadow: 3px 3px #00ffff, 6px 6px #ff00ff;
}

.section-copy {
  margin: 28px auto;
  padding: 10px;
  max-width: 790px;
  background: #fff;
  border: 3px solid #000;
  font: 17px/1.35 "Comic Sans MS", cursive;
  text-align: center;
}

.section-copy b {
  color: red;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.nft-file {
  padding: 8px;
  background: var(--win-gray);
  border: 4px outset #eee;
  font: 12px/1.2 Arial, sans-serif;
  text-align: center;
}

.nft-file > a,
.nft-file > span {
  display: block;
  margin-top: 7px;
}

.nft-file > a {
  font-weight: bold;
}

.file-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px inset #fff;
}

.file-image > span {
  position: absolute;
  top: 8px;
  padding: 3px 6px;
  color: #fff;
  background: red;
  font: bold 10px Arial, sans-serif;
  transform: rotate(-4deg);
}

.file-image strong {
  font: 900 clamp(42px, 5vw, 80px)/1 "Courier New", monospace;
}

.file-image small {
  position: absolute;
  bottom: 7px;
  padding: 2px 5px;
  background: #fff;
  border: 1px solid #000;
  font: bold 8px Arial, sans-serif;
}

.redacted {
  background: repeating-linear-gradient(0deg, #000 0 12px, #fff 12px 15px);
  color: yellow;
}

.corrupted {
  color: lime;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, #f0f 14px 19px),
    repeating-linear-gradient(0deg, #000080 0 11px, #00ffff 11px 15px);
}

.loading {
  color: #fff;
  background: #000;
}

.censored {
  color: #fff;
  background: #ff0000;
}

.censored strong {
  padding: 8px;
  color: #000;
  background: #000;
  text-shadow: 0 0 0 #000;
  transform: rotate(-7deg);
}

.gif-stampede {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 35px -18px -35px;
  height: 118px;
  overflow: hidden;
  background: #000;
  border-top: 5px ridge yellow;
}

.gif-stampede img {
  flex: 0 0 25%;
  width: 25%;
  height: 110px;
  object-fit: cover;
  image-rendering: pixelated;
  border-right: 3px solid lime;
}

.mint-zone {
  padding: 70px 30px;
  background:
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
    repeating-linear-gradient(45deg, #000080 0 20px, #000 20px 40px);
  border: 7px ridge #c0c0c0;
  border-top: 0;
}

.dialup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 7px;
  color: lime;
  background: #000;
  border: 3px inset #c0c0c0;
  font: 12px "Courier New", monospace;
}

.dialup-lights {
  display: flex;
  gap: 5px;
}

.dialup-lights span {
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  animation: modem 1s steps(1) infinite;
}

.dialup-lights span:nth-child(2) { animation-delay: .2s; }
.dialup-lights span:nth-child(3) { animation-delay: .4s; }
.dialup-lights span:nth-child(4) { animation-delay: .6s; }
.dialup-lights span:nth-child(5) { animation-delay: .8s; }

.mint-window {
  max-width: 760px;
  margin: 0 auto;
  background: var(--win-gray);
  border: 6px outset #fff;
  box-shadow: 14px 14px 0 rgba(0,0,0,.65);
}

.mint-titlebar {
  min-height: 31px;
  font-size: 14px;
}

.mint-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 14px;
  padding: 18px;
}

.mint-side-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at center, yellow 0 10px, red 11px 22px);
  border: 4px inset #fff;
}

.mint-side-art img {
  position: absolute;
  top: 15px;
  left: 8%;
  width: 84%;
  filter: drop-shadow(7px 7px 0 #000);
  animation: headWobble 1s steps(3) infinite;
}

.mint-side-art span {
  position: relative;
  z-index: 2;
  margin: 10px;
  padding: 6px;
  color: lime;
  background: #000;
  font: bold 18px/1 "Comic Sans MS", cursive;
  text-align: center;
}

.mint-controls {
  padding: 12px;
  background: #fff;
  border: 3px inset #fff;
  font-family: Arial, sans-serif;
}

.mint-controls h2 {
  margin: 0;
  color: red;
  font: 900 clamp(45px, 5vw, 76px)/.8 Impact, sans-serif;
  text-align: center;
  text-shadow: 3px 3px yellow, 5px 5px #000;
}

.mint-status {
  padding: 5px;
  color: lime;
  background: #000;
  font: 11px "Courier New", monospace;
}

.mint-status b {
  animation: blink .8s steps(1) infinite;
}

.mint-controls table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
}

.mint-controls th,
.mint-controls td {
  padding: 7px;
  border: 2px inset #ddd;
  text-align: left;
}

.mint-controls th {
  width: 46%;
  color: #fff;
  background: #000080;
}

.mint-controls fieldset {
  margin: 14px 0;
  border: 2px groove #ccc;
}

.mint-controls legend {
  font-weight: bold;
}

.qty-control {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.qty-control input {
  width: 70px;
  background: #fff;
  border: 3px inset #ddd;
  font: bold 22px/1 "Courier New", monospace;
  text-align: center;
}

.massive-mint {
  width: 100%;
  min-height: 70px;
  color: #fff;
  background: linear-gradient(#ff3131, #850000);
  border: 7px outset #ff7777;
  font: 900 26px/1 Impact, sans-serif;
  letter-spacing: 2px;
  text-shadow: 2px 2px #000;
  animation: buttonPulse .8s steps(2) infinite;
}

.massive-mint.connected {
  color: #000;
  background: linear-gradient(#00ff00, #008000);
  border-color: #99ff99;
}

.fine-print {
  margin-bottom: 0;
  font-size: 9px;
}

.faq-section {
  padding: 60px 22px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.78) 0 14px, rgba(0,255,0,.4) 14px 28px),
    #fff;
  border: 7px ridge lime;
  border-top: 0;
}

.faq-section > h2 {
  margin-bottom: 32px;
  font-size: clamp(44px, 6vw, 82px);
}

.faq-section details {
  margin: 10px auto;
  max-width: 760px;
  background: var(--win-gray);
  border: 4px outset #fff;
  font: 14px/1.35 Arial, sans-serif;
}

.faq-section summary {
  padding: 9px;
  color: #fff;
  background: #000080;
  font-weight: bold;
}

.faq-section p {
  padding: 10px;
}

.shout-box {
  padding: 5px;
  background: var(--win-gray);
  border: 4px outset #fff;
  font: 11px/1.2 Arial, sans-serif;
}

.shout-title {
  padding: 4px;
  color: #fff;
  background: #000080;
  font-weight: bold;
}

.shout-messages {
  height: 135px;
  padding: 5px;
  overflow-y: auto;
  background: #fff;
  border: 2px inset #ddd;
}

.shout-messages p {
  margin: 4px 0;
}

.shout-box input {
  width: 100%;
  margin: 5px 0;
  border: 2px inset #ddd;
  font: 11px Arial, sans-serif;
}

.ad-box {
  padding: 10px 5px;
  color: #fff;
  background: linear-gradient(45deg, red, #ff00ff, #0000ff, #00ffff);
  border: 5px ridge yellow;
  font-family: Arial, sans-serif;
  text-align: center;
  animation: hue 1.8s linear infinite;
}

.ad-box span,
.ad-box b {
  display: block;
}

.ad-box span {
  color: yellow;
  font-size: 12px;
  font-weight: bold;
  animation: blink .45s steps(1) infinite;
}

.ad-box b {
  margin: 8px 0;
  font-size: 22px;
  text-shadow: 2px 2px #000;
}

.ad-box button {
  color: red;
  background: yellow;
  border: 4px outset #fff;
  font-weight: bold;
}

.rotate-gif {
  transform: rotate(3deg);
}

.friend-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  background: #ffff00;
  border: 4px dashed red;
  font: 12px/1.2 "Comic Sans MS", cursive;
}

.friend-links b {
  color: red;
  text-align: center;
}

footer {
  position: relative;
  z-index: 3;
  padding: 0 10px 30px;
  color: #fff;
  background: #000;
  border-top: 8px ridge #c0c0c0;
  font: 11px/1.4 "Courier New", monospace;
  text-align: center;
}

.footer-rage-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 110px;
  overflow: hidden;
  background: #fff;
  border-bottom: 5px solid red;
}

.footer-rage-row img {
  width: 15%;
  height: 110px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.5);
}

footer a {
  color: yellow;
}

.last-updated {
  color: lime;
  animation: blink 1s steps(1) infinite;
}

.error-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9990;
  width: min(360px, calc(100% - 30px));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(.8);
  transition: opacity .1s, transform .1s;
}

.error-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.popup-body {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  padding: 18px;
  font: 13px Arial, sans-serif;
}

.popup-body > span {
  font-size: 42px;
}

.popup-body button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 80px;
}

.click-explosion {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--blast-spin)) scale(0.25);
  transform-origin: center;
  animation: clickExplosion 1.15s steps(6, end) forwards;
  mix-blend-mode: screen;
  filter: saturate(1.6) contrast(1.25) drop-shadow(0 0 18px #ff0);
}

@keyframes clickExplosion {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--blast-spin)) scale(0.15);
  }

  12% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--blast-spin)) scale(1.1);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--blast-spin) * -1)) scale(1.45);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--blast-spin)) scale(2.2);
  }
}

@keyframes blink {
  0%, 49% { visibility: visible; }
  50%, 100% { visibility: hidden; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes titleJitter {
  0% { translate: 0 0; }
  50% { translate: 2px -1px; }
  100% { translate: -1px 1px; }
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  50% { transform: scale(1.04) rotate(1deg); }
}

@keyframes headWobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg) scale(1.03); }
}

@keyframes modem {
  0%, 50% { background: lime; box-shadow: 0 0 6px lime; }
  51%, 100% { background: #333; box-shadow: none; }
}

@keyframes hue {
  to { filter: hue-rotate(360deg); }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr 150px 190px;
  }

  .visitor-box {
    display: none;
  }

  main {
    grid-template-columns: 160px minmax(560px, 1fr);
  }

  .right-rail {
    display: none;
  }

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

@media (max-width: 760px) {
  body,
  a,
  button,
  input,
  summary {
    cursor: auto !important;
  }

  #rage-cursor {
    display: none;
  }

  .top-warning {
    height: 24px;
    font-size: 12px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 92px;
    padding: 7px;
  }

  .header-gif {
    display: none;
  }

  .logo-rage {
    font-size: 52px;
  }

  .logo-comics {
    font-size: 26px;
  }

  .wallet-button {
    width: 105px;
    min-height: 52px;
    font-size: 10px;
  }

  .wallet-button span {
    display: none;
  }

  .link-bar {
    justify-content: flex-start;
    gap: 11px;
    overflow-x: auto;
    font-size: 11px;
    white-space: nowrap;
  }

  main {
    display: block;
    width: 100%;
    margin: 0;
  }

  .left-rail,
  .right-rail {
    display: none;
  }

  .hero-zone {
    min-height: auto;
    border-right: 0;
    border-left: 0;
  }

  .construction {
    font-size: 10px;
  }

  .welcome {
    font-size: 18px;
    letter-spacing: 4px;
  }

  .mega-rage {
    font-size: clamp(55px, 17vw, 82px);
    letter-spacing: -3px;
  }

  .subtitle {
    font-size: 13px;
  }

  .hero-chaos {
    grid-template-columns: 1fr 1fr;
  }

  .main-alert {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero-gif {
    max-height: 130px;
    object-fit: cover;
  }

  .launch-row {
    gap: 5px;
  }

  .new-star,
  .hot-star {
    width: 52px;
    height: 52px;
    font-size: 10px;
  }

  .enter-button {
    width: 72%;
    padding: 9px 12px;
  }

  .enter-button strong {
    font-size: 34px;
  }

  .collection-section,
  .mint-zone,
  .faq-section {
    border-right: 0;
    border-left: 0;
  }

  .section-break {
    grid-template-columns: 80px 1fr 80px;
  }

  .section-break h2 {
    font-size: 47px;
  }

  .section-copy {
    font-size: 13px;
  }

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

  .nft-file {
    padding: 5px;
    font-size: 10px;
  }

  .gif-stampede img {
    flex-basis: 50%;
    width: 50%;
  }

  .mint-zone {
    padding: 48px 8px;
  }

  .mint-inner {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .mint-side-art {
    min-height: 250px;
  }

  .mint-side-art img {
    top: -45px;
    left: 22%;
    width: 56%;
  }

  .mint-side-art span {
    font-size: 14px;
  }

  .footer-rage-row {
    height: 75px;
  }

  .footer-rage-row img {
    height: 75px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
