/* AUTISMGANG :: BRAINROT CSS :: NO DESIGN SYSTEM, ON PURPOSE */

/* ============================================================
   GLOBAL
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
  color: #100020;
  cursor: crosshair;
  /* tiled cyber/sky-blue background to nod the mascot bg */
  background-color: #87ceeb;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.18) 18px 36px),
    repeating-linear-gradient(-45deg, rgba(0,0,128,0.06) 0 18px, transparent 18px 36px);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { background: yellow; }

::selection { background: #ffea00; color: #000; }

img { max-width: 100%; }

/* utility */
.hidden { display: none !important; }

.rainbow {
  background: linear-gradient(90deg,
    #ff004c, #ff8000, #ffea00, #00ff66, #00d0ff, #6a00ff, #ff00aa);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: rainbow-pan 4s linear infinite;
  font-weight: 900;
  text-shadow: none;
}
@keyframes rainbow-pan {
  from { background-position: 0% 0%; }
  to   { background-position: 200% 0%; }
}

.blink {
  animation: blink 0.8s steps(2, end) infinite;
}
.blink-slow {
  animation: blink 1.6s steps(2, end) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================================
   TOP MARQUEE + UNDER CONSTRUCTION
   ============================================================ */

.top-marquee {
  background: #000;
  color: #00ff66;
  font-family: "Courier New", monospace;
  font-size: 16px;
  padding: 6px 0;
  border-top: 3px ridge #00ff66;
  border-bottom: 3px ridge #00ff66;
  letter-spacing: 1px;
}

.under-construction {
  background: repeating-linear-gradient(45deg, #ffea00 0 24px, #000 24px 48px);
  color: #000;
  font-weight: 900;
  text-align: center;
  padding: 10px 6px;
  font-size: 14px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #fff;
  border-bottom: 4px ridge #ff004c;
}
.under-construction .construction-gif {
  display: inline-block;
  font-size: 26px;
  vertical-align: middle;
  animation: spin 1.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.7), transparent 60%),
    linear-gradient(180deg, #b8e0ff 0%, #87ceeb 70%, #5fb5e8 100%);
  border-bottom: 6px ridge #ff00aa;
}

.hero-mascot {
  text-align: center;
}
.hero-mascot img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border: 8px ridge #ffea00;
  box-shadow: 0 0 0 4px #000, 8px 8px 0 #000;
  transform: rotate(-3deg);
  background: #fff;
}
.hero-mascot-caption {
  margin-top: 12px;
  font-size: 14px;
  color: #000;
  background: #fff;
  display: inline-block;
  padding: 4px 10px;
  border: 2px dashed #000;
}

.hero-text h1 { display: none; }

.hero-banner {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 0 18px;
  border: 4px ridge #fff;
  box-shadow: 6px 6px 0 #000;
}

.hero-tagline {
  font-size: 22px;
  line-height: 1.4;
  color: #000;
  text-shadow: 2px 2px 0 #fff;
  margin: 0 0 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  border: 3px outset #fff;
  background: #ff00aa;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  cursor: pointer;
  letter-spacing: 1px;
}
.btn:active { border-style: inset; }
.btn:hover  { background: yellow; color: #000; text-shadow: 1px 1px 0 #fff; }
.btn-tg  { background: #29a8ea; }
.btn-x   { background: #000; }
.btn-buy { background: #00cc44; animation: pulse 0.9s ease-in-out infinite; }
.btn-earl{ background: #cc0033; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ============================================================
   STICKY AUDIO BAR (mute / volume / now-playing)
   ============================================================ */

.audio-bar {
  background: #000;
  color: #ffea00;
  padding: 8px 14px;
  border-top: 3px ridge #ffea00;
  border-bottom: 3px ridge #ffea00;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  flex-wrap: wrap;
}

.mute-btn {
  font: 900 14px/1 "Comic Sans MS", cursive;
  background: #ff004c;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  border: 3px outset #fff;
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mute-btn:active { border-style: inset; }
.mute-btn[aria-pressed="false"] {
  background: #00cc44;
}
.mute-btn .mute-icon { font-size: 18px; }

.vol-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,234,0,0.1);
  border: 2px ridge #ffea00;
  padding: 4px 10px;
}
.vol-emoji { font-size: 18px; }
#vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 12px;
  background: linear-gradient(90deg, #00ff66, #ffea00, #ff004c);
  border: 2px inset #fff;
  outline: none;
  cursor: pointer;
}
#vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px ridge #ff00aa;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}
#vol-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px ridge #ff00aa;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}
.vol-readout {
  font-weight: 900;
  color: #00ff66;
  min-width: 28px;
  text-align: right;
}

.np-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  color: #ffea00;
  font-size: 13px;
  letter-spacing: 1px;
}
.np-blink { animation: blink 0.9s steps(2, end) infinite; font-size: 18px; }
#np-track {
  color: #00ff66;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   VOTE HERO BUTTON (entry point for vote modal)
   ============================================================ */

.btn-vote {
  background: linear-gradient(90deg, #6a00ff, #ff00aa, #ffea00);
  background-size: 200% 100%;
  animation: rainbow-pan 3s linear infinite, pulse 0.95s ease-in-out infinite;
}
.btn-vote:hover {
  background: yellow;
  color: #000;
  text-shadow: 1px 1px 0 #fff;
  animation: none;
}

/* ============================================================
   INTRO MODAL EXTRAS (caption + close + play button + repeat banner)
   ============================================================ */

.intro-modal { min-width: 320px; max-width: 480px; }
.intro-caption {
  font-size: 22px;
  text-align: center;
  font-weight: 900;
  color: #ffea00;
  text-shadow: 2px 2px 0 #000;
  margin: 0 0 10px;
}
.intro-disclaimer {
  font-size: 13px;
  text-align: center;
  color: #ff77cc;
  margin: 0;
}
.intro-actions {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #000;
  border-top: 4px ridge #ffea00;
  align-items: center;
  justify-content: center;
}
.intro-play {
  background: #00cc44;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 12px 24px;
  animation: pulse 0.9s ease-in-out infinite;
}
.intro-close {
  font: 900 22px/1 "Comic Sans MS", cursive;
  background: #ff004c;
  color: #fff;
  border: 3px outset #fff;
  width: 44px; height: 44px;
  cursor: pointer;
  text-shadow: 2px 2px 0 #000;
}
.intro-close:active { border-style: inset; }

/* ============================================================
   VOTE MODAL
   ============================================================ */

.vote-modal { min-width: 360px; max-width: 560px; }
.vote-body {
  display: flex;
  gap: 16px;
  padding: 24px 22px;
  justify-content: center;
  align-items: stretch;
}
.vote-choice {
  font: 900 22px/1 "Comic Sans MS", cursive;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #000;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  border: 5px ridge #ffea00;
  cursor: pointer;
  letter-spacing: 2px;
  flex: 1;
  min-width: 140px;
  position: relative;
  transition: transform 0.18s ease-out, left 0.15s ease-out, top 0.15s ease-out;
  box-shadow: 6px 6px 0 #000;
}
.vote-choice img {
  width: 100px; height: 100px;
  object-fit: cover;
  border: 4px ridge #fff;
  background: #fff;
}
.vote-earl-silhouette {
  width: 100px; height: 100px;
  display: grid; place-items: center;
  background: #5a0000;
  color: #f4e2b0;
  font: 900 70px/1 "Impact", sans-serif;
  border: 4px ridge #fff;
}
.vote-sonic { background: linear-gradient(180deg, #2a4cff, #1f2fbf); }
.vote-sonic:hover {
  background: linear-gradient(180deg, #4f6dff, #2a4cff);
  transform: scale(1.05) rotate(-2deg);
}
.vote-earl {
  background: linear-gradient(180deg, #2a1810, #1a0f08);
}
/* dodge-state class added by JS when earl is unlocked */
.vote-earl.unlocked { animation: shake 0.4s ease-in-out infinite; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25%      { transform: translate(-3px, 1px) rotate(-1deg); }
  75%      { transform: translate(3px, -1px) rotate(1deg); }
}
.vote-hint {
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #ffea00;
  padding: 12px;
  margin: 0;
  background: #000;
  border-top: 4px ridge #ffea00;
  letter-spacing: 1px;
}

/* ============================================================
   CONFETTI + SCREEN FLASH + AWESOME BANNER (Sonic reward)
   ============================================================ */

#confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}
.confetti {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 16px;
  opacity: 0.95;
  animation: confetti-fall 3.4s linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.9; }
}

#screen-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  background: linear-gradient(90deg, #ff004c, #ff8000, #ffea00, #00ff66, #00d0ff, #6a00ff);
}
#screen-flash.flashing {
  animation: flash-burst 1.1s ease-out 2;
}
@keyframes flash-burst {
  0%   { opacity: 0; }
  20%  { opacity: 0.55; }
  100% { opacity: 0; }
}

#awesome-banner {
  position: fixed;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%) scale(0.7) rotate(-3deg);
  z-index: 100000;
  font: 900 64px/1 "Impact", "Arial Black", sans-serif;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 4px 4px 0 #000, -2px -2px 0 #ff00aa, 8px 8px 0 #ff004c;
  background: linear-gradient(90deg, #ff004c, #ff8000, #ffea00, #00ff66, #00d0ff, #6a00ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  /* fall back to white-on-rainbow if background-clip:text isn't supported */
  padding: 12px 36px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation:
    awesome-pop 0.4s ease-out forwards,
    rainbow-pan 1.5s linear infinite;
}
@keyframes awesome-pop {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.4) rotate(-8deg); }
  60%  { opacity: 1; transform: translateX(-50%) scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-3deg); }
}

/* ============================================================
   EARL PRONUNCIATION CALLOUT (inside wanted poster)
   ============================================================ */

.earl-pronunciation {
  margin: 16px auto;
  max-width: 520px;
  background: #f4e2b0;
  border: 3px dashed #5a0000;
  padding: 12px 16px;
  font-family: "Courier New", monospace;
  text-align: center;
  color: #2a1810;
  transform: rotate(0.4deg);
}
.earl-pronunciation h4 {
  margin: 0 0 6px;
  font: 900 16px/1 "Impact", sans-serif;
  letter-spacing: 3px;
  color: #5a0000;
}
.earl-pronunciation p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
}
.earl-pronunciation .rule-wrong {
  color: #cc0033;
  font-weight: 900;
}

/* ============================================================
   THE DOCTOR (parasocial love interest)
   ============================================================ */

.doctor {
  padding: 32px 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,200,230,0.45), transparent 60%),
    linear-gradient(180deg, #ffd6f0 0%, #ffaedb 100%);
  color: #2a1830;
  border-top: 6px ridge #ff8ed0;
  border-bottom: 6px ridge #ff8ed0;
  text-align: center;
}
.doctor h2 { font-size: 32px; margin: 0 0 14px; }
.doctor-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.5);
  border: 5px double #5a002a;
  padding: 18px 22px;
  text-align: left;
  box-shadow: 6px 6px 0 #000;
}
.doctor-rule {
  font-size: 16px;
  text-align: center;
  margin: 0 0 14px;
  padding: 8px;
  border: 2px dashed #5a002a;
  background: rgba(255,255,255,0.5);
}
.doctor-canon { padding-left: 20px; line-height: 1.6; }
.doctor-canon li { margin-bottom: 6px; }
.doctor-line {
  margin: 14px 0 0;
  padding: 12px;
  background: #5a002a;
  color: #ffd6f0;
  font: 900 18px/1.3 "Comic Sans MS", cursive;
  text-align: center;
  letter-spacing: 1px;
  animation: blink 2.4s steps(2, end) infinite;
}

/* ============================================================
   RICHARD WATTERSON (rival)
   ============================================================ */

.richard {
  padding: 32px 24px;
  background:
    repeating-linear-gradient(135deg, #2a0a0a 0 18px, #1a0505 18px 36px);
  color: #ffcccc;
  border-bottom: 6px ridge #cc0033;
  text-align: center;
}
.richard h2 { font-size: 28px; margin: 0 0 6px; }
.richard h2 small {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffaaaa;
  font-weight: 400;
  margin-top: 4px;
}
.richard-card {
  max-width: 720px;
  margin: 14px auto 0;
  background: rgba(0,0,0,0.4);
  border: 4px ridge #cc0033;
  padding: 18px 22px;
  text-align: left;
  box-shadow: 6px 6px 0 #000;
}
.richard-intro {
  margin: 0 0 14px;
  font-size: 15px;
  color: #fff;
  text-align: center;
  border-bottom: 2px dashed #cc0033;
  padding-bottom: 10px;
}
.richard-canon { padding-left: 20px; line-height: 1.6; color: #ffe0e0; }
.richard-canon li { margin-bottom: 6px; }
.richard-line {
  margin: 14px 0 0;
  padding: 12px;
  background: #cc0033;
  color: #fff;
  font: 900 18px/1.3 "Comic Sans MS", cursive;
  text-align: center;
  letter-spacing: 1px;
}

/* ============================================================
   THE LIST
   ============================================================ */

.thelist {
  padding: 32px 24px;
  background:
    repeating-linear-gradient(0deg, #ecd8a0 0 4px, #f4e2b0 4px 8px);
  color: #2a1810;
  border-top: 6px ridge #5a0000;
  border-bottom: 6px ridge #5a0000;
  text-align: center;
}
.thelist h2 { font-size: 30px; margin: 0; }
.thelist-sub {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #5a0000;
  margin: 4px 0 18px;
}
.thelist-entries {
  list-style: none;
  counter-reset: thelist;
  padding: 0;
  margin: 0 auto;
  max-width: 620px;
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: 15px;
}
.thelist-entries li {
  counter-increment: thelist;
  padding: 8px 12px 8px 44px;
  position: relative;
  border-bottom: 1px dashed #5a0000;
  line-height: 1.4;
}
.thelist-entries li::before {
  content: counter(thelist) ".";
  position: absolute;
  left: 10px;
  top: 8px;
  font-weight: 900;
  color: #5a0000;
}
.thelist-entries li b { color: #5a0000; }
.thelist-entries small { color: #6a3500; }

/* ============================================================
   HOUSE RULES SECTION
   ============================================================ */

.houserules {
  padding: 32px 24px;
  background:
    repeating-linear-gradient(135deg, #2a1054 0 18px, #1a0834 18px 36px);
  color: #fff;
  border-top: 6px ridge #ffea00;
  border-bottom: 6px ridge #ffea00;
  text-align: center;
}
.houserules h2 {
  font-size: 30px;
  margin: 0 0 6px;
}
.houserules h2 small {
  display: block;
  font-size: 14px;
  color: #ffea00;
  letter-spacing: 2px;
  font-weight: 400;
  margin-top: 4px;
}
.houserules-list {
  list-style: none;
  padding: 0;
  margin: 18px auto 0;
  max-width: 760px;
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: 15px;
}
.houserules-list li {
  background: rgba(0,0,0,0.4);
  border: 2px solid #ff00aa;
  border-left: 8px solid #ffea00;
  padding: 10px 14px;
  margin: 8px 0;
  color: #fff;
  line-height: 1.5;
}
.houserules-list li b { color: #ffea00; }

/* ============================================================
   IN-PAGE MODAL (replaces alert())
   ============================================================ */

.brainrot-modal {
  padding: 0;
  border: 6px ridge #ffea00;
  background: #110018;
  color: #fff;
  max-width: 520px;
  min-width: 280px;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  box-shadow: 8px 8px 0 #000, 0 0 0 4px #ff00aa;
}
.brainrot-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.brainrot-modal[open] {
  animation: modal-pop 0.18s ease-out;
}
@keyframes modal-pop {
  from { transform: scale(0.85) rotate(-2deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

.brainrot-modal-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 28px;
  letter-spacing: 2px;
  background: #000;
  border-bottom: 4px ridge #ffea00;
  text-align: center;
}

.brainrot-modal-body {
  padding: 20px 22px;
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  background:
    repeating-linear-gradient(45deg, rgba(255,0,170,0.06) 0 12px, transparent 12px 24px);
}
.brainrot-modal-body b { color: #ffea00; }
.brainrot-modal-body i { color: #00d0ff; }

.brainrot-modal-actions {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #000;
  border-top: 4px ridge #ffea00;
  margin: 0;
}
.brainrot-modal-ok {
  background: #00cc44;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 12px 28px;
  animation: pulse 0.9s ease-in-out infinite;
}

/* ============================================================
   $TISM
   ============================================================ */

.tism-block {
  background: #000;
  color: #00ff66;
  padding: 32px 24px;
  border-top: 6px ridge #00ff66;
  border-bottom: 6px ridge #00ff66;
  font-family: "Courier New", monospace;
  position: relative;
}
.tism-block::before {
  content: "$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $";
  position: absolute;
  top: 6px; left: 0; right: 0;
  color: rgba(0,255,102,0.25);
  text-align: center;
  letter-spacing: 8px;
  pointer-events: none;
}

.tism-h2 {
  text-align: center;
  font-size: 30px;
  color: #ffea00;
  text-shadow: 0 0 8px #ffea00, 2px 2px 0 #000;
  margin: 0 0 24px;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
}

.tism-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.tism-ticker {
  border: 4px ridge #00ff66;
  padding: 18px;
  text-align: center;
  background: rgba(0,255,102,0.05);
}
.tism-ticker-label { font-size: 14px; color: #00d0ff; letter-spacing: 2px; }
.tism-ticker-price {
  font-size: 38px;
  font-weight: 900;
  color: #00ff66;
  text-shadow: 0 0 10px #00ff66;
  margin: 8px 0;
}
.tism-ticker-delta { color: #00ff66; font-size: 18px; }
.tism-ticker-delta.down { color: #ff004c; text-shadow: 0 0 10px #ff004c; }
.tism-ticker-rocket { font-size: 28px; margin-top: 10px; }

.tism-stats {
  border: 4px ridge #ff00aa;
  padding: 18px;
  background: rgba(255,0,170,0.05);
}
.tism-stats h3 {
  margin: 0 0 12px;
  color: #ffea00;
  letter-spacing: 2px;
}
.tism-stats ul { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 1.7; }
.tism-stats li { border-bottom: 1px dashed #00ff66; padding: 4px 0; }
.tism-stats b { color: #00d0ff; }
.tism-contract {
  font-size: 11px;
  word-break: break-all;
  color: #ffea00;
}

.tism-pie {
  border: 4px ridge #00d0ff;
  padding: 18px;
  background: rgba(0,208,255,0.05);
  text-align: center;
}
.tism-pie h3 { margin: 0 0 12px; color: #ffea00; letter-spacing: 2px; }
.pie-svg {
  width: 160px;
  height: 160px;
  border: 3px ridge #fff;
  border-radius: 50%;
  background: #000;
  animation: spin 8s linear infinite;
}
.pie-legend {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  text-align: left;
  font-size: 13px;
}
.pie-legend li { padding: 2px 0; }
.pie-legend .sw {
  display: inline-block;
  width: 12px; height: 12px;
  vertical-align: middle;
  border: 1px solid #fff;
  margin-right: 6px;
}
.sw1 { background: #00ff66; }
.sw2 { background: #ff00aa; }
.sw3 { background: #ffea00; }
.sw4 { background: #00d0ff; }
.sw5 { background: #ff6600; }
.sw6 { background: #9900ff; }

.roadmap-h {
  margin: 28px 0 12px;
  color: #ffea00;
  letter-spacing: 2px;
  font-size: 22px;
  text-align: center;
}
.roadmap {
  max-width: 720px;
  margin: 0 auto;
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.7;
  color: #00ff66;
}
.roadmap li { padding: 4px 0; border-bottom: 1px dotted #00ff66; }

.disclaimer {
  font-size: 9px;
  color: #444;
  text-align: center;
  margin-top: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   LORE COLUMNS
   ============================================================ */

.lore {
  padding: 32px 24px;
  text-align: center;
}
.lore h2 { font-size: 34px; margin: 0 0 24px; }
.lore-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  text-align: left;
}
.lore-col {
  border: 5px ridge #fff;
  padding: 18px;
  box-shadow: 6px 6px 0 #000;
}
.lore-col h3 {
  font-size: 22px;
  margin: 0 0 12px;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 2px;
}
.lore-col ul { padding-left: 20px; line-height: 1.6; }
.lore-col li { margin-bottom: 6px; }

.col-sonic {
  background: repeating-linear-gradient(0deg, #2a4cff 0 14px, #4a6fff 14px 28px);
  color: #fff;
}
.col-sonic h3 { color: #ffea00; }

.col-trains {
  background: repeating-linear-gradient(90deg, #444 0 14px, #222 14px 28px);
  color: #ffea00;
}
.col-trains h3 { color: #ff8000; }

.col-oil {
  background: repeating-linear-gradient(45deg, #e6e600 0 14px, #d4c500 14px 28px);
  color: #2a2a00;
}
.col-oil h3 { color: #6a3500; }

/* ============================================================
   EARL
   ============================================================ */

.earl {
  padding: 40px 24px;
  background: #2a1810;
  border-top: 6px ridge #cc6633;
  border-bottom: 6px ridge #cc6633;
}
.earl-poster {
  max-width: 760px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.4), transparent 70%),
    repeating-linear-gradient(0deg, #f4e2b0 0 3px, #ecd8a0 3px 6px);
  border: 8px double #2a1810;
  padding: 32px 28px;
  color: #2a1810;
  box-shadow: 0 0 0 6px #cc6633, 12px 12px 0 #000;
  transform: rotate(-1deg);
}
.earl-h {
  text-align: center;
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 56px;
  letter-spacing: 6px;
  margin: 0 0 18px;
  color: #5a0000;
  text-shadow: 3px 3px 0 #f4e2b0;
}
.earl-h span {
  display: block;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #5a0000;
  margin-top: 4px;
}
.earl-mugshot { display: flex; gap: 24px; align-items: center; margin: 18px 0; justify-content: center; }
.earl-silhouette {
  width: 140px;
  height: 140px;
  background: #2a1810;
  color: #f4e2b0;
  font-size: 100px;
  font-weight: 900;
  display: grid; place-items: center;
  border: 6px solid #5a0000;
  font-family: "Impact", sans-serif;
}
.earl-name {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 44px;
  letter-spacing: 4px;
  margin: 0;
  color: #5a0000;
}
.earl-name small {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  color: #2a1810;
  font-family: "Courier New", monospace;
  margin-top: 4px;
}
.earl-crimes { font-family: "Courier New", monospace; font-size: 14px; line-height: 1.7; }
.earl-crimes li { padding: 3px 0; border-bottom: 1px dashed rgba(42,24,16,0.3); }
.earl-vengeance {
  margin: 24px 0 12px;
  border: 3px dashed #5a0000;
  padding: 16px;
  background: rgba(255,255,255,0.4);
  text-align: center;
}
.earl-vengeance h4 {
  margin: 0 0 8px;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  color: #5a0000;
}
#earl-vengeance-line {
  font-size: 22px;
  font-weight: 900;
  color: #5a0000;
  margin: 6px 0;
}
.earl-stamp {
  text-align: center;
  font-family: "Impact", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: #5a0000;
  border-top: 3px solid #5a0000;
  padding-top: 12px;
  margin-top: 18px;
}

/* ============================================================
   REPORTS FEED
   ============================================================ */

.reports {
  padding: 32px 24px;
  background: #110018;
  color: #ff00aa;
  border-top: 6px ridge #ff00aa;
}
.reports h2 { font-size: 30px; margin: 0; text-align: center; }
.reports-sub { color: #ffea00; text-align: center; margin: 4px 0 18px; font-family: "Courier New", monospace; font-size: 12px; }
.reports-feed {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
}
.reports-feed li {
  background: rgba(255,255,255,0.04);
  border: 1px solid #ff00aa;
  padding: 10px 12px;
  margin-bottom: 8px;
  color: #fff;
  animation: report-in 0.6s ease-out;
}
.reports-feed li.new {
  border-color: #ffea00;
  box-shadow: 0 0 12px #ff00aa;
}
.reports-feed li.outburst {
  background: #5a0000;
  border-color: #ff004c;
  color: #ffea00;
  font-weight: 900;
  letter-spacing: 1px;
  animation: report-in 0.6s ease-out, blink 1.4s steps(2, end) 3;
}
.reports-feed li.outburst .prefix {
  color: #fff;
  background: #ff004c;
  padding: 2px 6px;
}
.reports-feed .prefix {
  color: #00ff66;
  font-weight: 900;
  margin-right: 6px;
}
@keyframes report-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MEME GALLERY
   ============================================================ */

.memes {
  padding: 32px 24px;
  background: #fff;
  border-top: 6px ridge #000;
  border-bottom: 6px ridge #000;
}
.memes h2 { font-size: 30px; margin: 0; text-align: center; }
.memes-sub { text-align: center; font-size: 12px; color: #666; margin-bottom: 18px; }
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.meme-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 4px ridge #ffea00;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s;
}
/* per-image random rotation via nth-child */
.meme-grid img:nth-child(3n+1) { transform: rotate(-3deg); }
.meme-grid img:nth-child(3n+2) { transform: rotate(2deg); }
.meme-grid img:nth-child(3n)   { transform: rotate(-1deg); }
.meme-grid img:hover {
  transform: rotate(0) scale(1.1);
  z-index: 2;
  position: relative;
  border-color: #ff00aa;
}

/* ============================================================
   FOOTER (GEOCITIES FURNITURE)
   ============================================================ */

.footer {
  background:
    repeating-linear-gradient(45deg, #2a0040 0 16px, #1a0028 16px 32px);
  color: #fff;
  padding: 28px 18px 0;
  border-top: 6px ridge #ffea00;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer h3 {
  margin: 0 0 10px;
  color: #ffea00;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #000;
}

.counter-box, .guestbook-box, .webring-box {
  border: 4px ridge #ffea00;
  padding: 14px;
  background: rgba(0,0,0,0.4);
}

.hit-counter {
  font-family: "Courier New", monospace;
  font-size: 36px;
  letter-spacing: 6px;
  color: #00ff66;
  background: #000;
  border: 3px inset #555;
  padding: 8px 12px;
  display: inline-block;
  text-shadow: 0 0 8px #00ff66;
  margin-bottom: 8px;
}
.best-viewed {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #ffea00;
  border: 2px solid #ffea00;
  padding: 6px;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 1px;
}

.guestbook {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
  background: rgba(0,0,0,0.4);
  border: 2px inset #555;
  padding: 6px;
}
.guestbook li {
  padding: 4px 6px;
  border-bottom: 1px dotted #555;
}
.guestbook li b { color: #00d0ff; }
.guestbook li.banned {
  background: #5a0000;
  color: #fff;
}
.guestbook li.banned b { color: #ff8888; }
.guestbook li.banned::after {
  content: "  [BANNED]";
  color: #ffea00;
  font-weight: 900;
  font-family: "Courier New", monospace;
}

.guestbook-form { display: grid; gap: 6px; }
.guestbook-form input {
  font: inherit;
  padding: 4px 6px;
  border: 2px inset #888;
  background: #f4e2b0;
  color: #000;
}
.guestbook-form button {
  font: 900 14px/1 "Comic Sans MS", cursive;
  background: #00cc44;
  color: #fff;
  border: 3px outset #fff;
  padding: 6px;
  cursor: pointer;
  letter-spacing: 2px;
}
.gb-warning {
  font-size: 11px;
  color: #ffaaaa;
  margin: 4px 0 0;
}

.webring {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.webring a {
  background: #ff00aa;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border: 2px outset #fff;
  font-weight: 900;
}
.webring-misc { font-size: 13px; line-height: 1.6; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  font-family: "Impact", sans-serif;
  letter-spacing: 2px;
  padding: 4px 8px;
  border: 3px outset #fff;
  color: #fff;
  font-size: 14px;
  text-shadow: 2px 2px 0 #000;
}
.badge-hot  { background: #ff0033; animation: blink 0.6s steps(2) infinite; }
.badge-new  { background: #00cc44; }
.badge-cool { background: #00d0ff; color: #000; text-shadow: 1px 1px 0 #fff; }
.badge-tism { background: linear-gradient(90deg, #ff00aa, #ffea00); color: #000; text-shadow: 1px 1px 0 #fff; }

.bottom-marquee {
  background: #000;
  color: #ffea00;
  padding: 6px;
  border-top: 3px ridge #ffea00;
  font-family: "Courier New", monospace;
  font-size: 14px;
  margin-top: 18px;
}
.legal {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  padding: 14px;
  font-family: "Courier New", monospace;
}

/* ============================================================
   FLOATING *actions*
   ============================================================ */

#actions-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.floating-action {
  position: absolute;
  font-family: "Comic Sans MS", cursive;
  font-size: 28px;
  font-weight: 900;
  color: #ff00aa;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #000;
  white-space: nowrap;
  animation: float-action 4s ease-out forwards;
  pointer-events: none;
}
@keyframes float-action {
  0%   { opacity: 0; transform: translateY(20px) rotate(-3deg) scale(0.7); }
  15%  { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  85%  { opacity: 1; transform: translateY(-40px) rotate(3deg) scale(1.1); }
  100% { opacity: 0; transform: translateY(-80px) rotate(-2deg) scale(1.2); }
}

/* ============================================================
   RESPONSIVE — only partially, the brokenness is on-brand
   ============================================================ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-mascot img { width: 220px; height: 220px; }
  .hero-banner { margin-left: auto; margin-right: auto; }
  .tism-grid { grid-template-columns: 1fr; }
  .lore-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .earl-h { font-size: 36px; letter-spacing: 3px; }
  .earl-silhouette { width: 100px; height: 100px; font-size: 70px; }
}
