:root {
  --cyan: #17d7d7;
  --teal: #00e7d8;
  --yellow: #ffff6d;
  --pink: #ff4fd8;
  --purple: #26007f;
  --panel: #111155;
  --bevel: #c0c0c0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Verdana, Tahoma, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,0.18) 1.6px, transparent 0) 0 0/34px 34px,
    linear-gradient(180deg, #040021 0%, #09185e 36%, #1b0b52 68%, #040021 100%);
}
body.overlay-open { overflow: hidden; }

.page-shell { min-height: 100vh; padding: 12px; }
.site-table {
  width: min(1200px, calc(100% - 12px));
  margin: 0 auto;
  border: 4px ridge var(--bevel);
  background: #00146f;
  box-shadow: 0 0 0 4px #000080, 0 0 0 8px #67d7ff;
}
.header-bar {
  padding: 6px 10px;
  border-bottom: 4px ridge var(--bevel);
  background: linear-gradient(90deg, #ff00cc, #00ffff, #ffff00, #ff6600, #ff00cc);
  color: #000;
  font: bold 12px/1.2 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.banner {
  position: relative;
  overflow: hidden;
  padding: 18px 12px 14px;
  border-bottom: 4px ridge var(--bevel);
  text-align: center;
  background:
    repeating-linear-gradient(45deg, #220066 0 14px, #3a0088 14px 28px),
    linear-gradient(180deg, #001a66, #000033);
}
.sparkle {
  position: absolute;
  top: 10px;
  font-size: 26px;
  text-shadow: 0 0 10px #fff;
  animation: spin 4s linear infinite;
}
.sparkle.left { left: 16px; }
.sparkle.right { right: 16px; animation-direction: reverse; }
.rainbow-title {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .93;
  letter-spacing: 2px;
  transform: skew(-7deg);
  color: #fff;
  text-shadow: 3px 3px 0 #ff00cc, 6px 6px 0 #00ffff, 9px 9px 0 #000;
}
.subhead {
  margin-top: 10px;
  color: var(--yellow);
  font: bold 16px/1.3 "Courier New", monospace;
  text-shadow: 2px 2px 0 #000;
}
.blink { animation: blink 1s steps(1) infinite; }
.ticker {
  overflow: hidden;
  border-top: 3px ridge var(--bevel);
  border-bottom: 3px ridge var(--bevel);
  background: #000;
  color: #00ff7f;
  font: bold 14px/1.2 "Courier New", monospace;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-block;
  padding: 6px 0;
  min-width: 100%;
  animation: ticker 22s linear infinite;
}
.content-grid {
  display: grid;
  grid-template-columns: 230px 1fr 270px;
  gap: 8px;
  padding: 8px;
  background: #000066;
}
.panel {
  border: 4px ridge var(--bevel);
  background: var(--panel);
  padding: 10px;
  box-shadow: inset 0 0 0 2px #000033;
}
.panel-title {
  margin: -10px -10px 10px;
  padding: 6px 8px;
  border-bottom: 3px ridge var(--bevel);
  background: linear-gradient(90deg, #00ffff, #66ff00);
  color: #000;
  font: bold 14px/1 Arial, sans-serif;
  text-transform: uppercase;
}
.nav-button, .oracle-button, .submit-button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 4px outset #ffd5ff;
  background: linear-gradient(180deg, #ff66cc, #cc00ff);
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font: bold 12px/1.2 Verdana, sans-serif;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
}
.nav-button:active, .oracle-button:active, .submit-button:active,
.actually-fab:active, .consult-button:active, .consult-close:active { border-style: inset; }
.counter-shell {
  margin-bottom: 10px;
  padding: 7px;
  border: 2px inset #999;
  background: #000;
}
.counter-badge {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 20px;
  background: #000;
  image-rendering: pixelated;
}
.counter-meta {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  color: #9dff9d;
  font: bold 11px/1.35 "Courier New", monospace;
  text-transform: uppercase;
}
.counter-meta b { color: #ffff6d; }
.chip-grid, .stamp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gif-chip {
  padding: 4px 6px;
  border: 3px ridge var(--bevel);
  background: linear-gradient(180deg, #ffff66, #ffcc00);
  color: #000;
  font: bold 11px/1.1 "Courier New", monospace;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #000;
}
.mini-box {
  margin-top: 14px;
  padding: 10px;
  border: 3px dashed #83e6ff;
  background: #09174f;
  font-size: 12px;
  line-height: 1.45;
}
.mini-box-title {
  margin-bottom: 8px;
  font: bold 12px/1.1 "Courier New", monospace;
  color: var(--yellow);
  text-transform: uppercase;
}
.main-window {
  border: 4px ridge var(--bevel);
  background: #f3f4ff;
  color: #000;
  box-shadow: inset 0 0 0 2px #fff;
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font: bold 13px/1 Tahoma, sans-serif;
  text-transform: uppercase;
}
.window-body { padding: 12px; }
.comic-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 4px solid #000;
  background: #fff59d;
  box-shadow: 5px 5px 0 #000;
}
.impact-head {
  margin-bottom: 8px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
  color: #c00000;
}
.courier-head {
  margin-bottom: 8px;
  font: bold 18px/1.2 "Courier New", monospace;
}
.body-copy { font-size: 15px; line-height: 1.4; }
.record {
  margin: 12px 0;
  padding: 10px;
  border: 3px dashed #000080;
  background: #eaf3ff;
}
.record-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 6px;
  background: #000;
  color: #00ff66;
  font: bold 11px/1 "Courier New", monospace;
}
.record-title {
  margin-bottom: 6px;
  font: bold 22px/1.12 "Arial Black", sans-serif;
  color: #000080;
}
.record-blurb { font-size: 14px; line-height: 1.4; }
.stamp {
  padding: 4px 8px;
  border: 3px ridge var(--bevel);
  background: linear-gradient(180deg, #66ffcc, #00ccff);
  color: #000;
  font: bold 11px/1.1 "Courier New", monospace;
}
.submit-box { background: #ccffcc; }
.annoyance-form { display: grid; gap: 10px; margin-top: 12px; }
.annoyance-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.annoyance-form input,
.annoyance-form textarea,
.annoyance-form select {
  width: 100%;
  padding: 10px 10px;
  border: 3px inset #d7d7d7;
  font: 14px/1.35 Verdana, sans-serif;
  background: #fff;
}
.submit-button { margin: 4px 0 0; }
.hidden-row { display: none; }
.head-shrine {
  margin-bottom: 12px;
  padding: 10px;
  border: 5px ridge #ffd700;
  background: radial-gradient(circle, #ffff9e 0%, #ffd426 40%, #ff7a00 78%, #6b0041 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.head-shrine::before,
.head-shrine::after {
  content: "✦ ✦ ✦";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 18px;
  letter-spacing: 8px;
  text-shadow: 0 0 8px #fff, 2px 2px 0 #000;
}
.head-shrine::before { top: 3px; }
.head-shrine::after { bottom: 3px; }
.oracle-lights {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.oracle-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  animation: blink 1.2s steps(1) infinite;
}
.oracle-lights span:nth-child(1) { color: #ff00cc; }
.oracle-lights span:nth-child(2) { color: #00ffff; animation-delay: .2s; }
.oracle-lights span:nth-child(3) { color: #ffff00; animation-delay: .4s; }
.oracle-lights span:nth-child(4) { color: #00ff66; animation-delay: .6s; }
.head-bob { display: inline-block; animation: bob 2.8s ease-in-out infinite; }
.head-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 142px;
  margin: 0 auto;
  border: 6px ridge #fff;
  box-shadow: 0 0 0 4px #000, 0 0 18px #fff;
  background: linear-gradient(180deg, #24003f, #060021);
}
.head-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(255,255,255,0.55);
  pointer-events: none;
}
.head-img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  image-rendering: pixelated;
  filter: contrast(1.16) saturate(1.18);
  transform-origin: center 82%;
}
.head-img.talking, .consult-portrait.talking { animation: talk .14s steps(2) 7; }
.speech {
  min-height: 82px;
  margin-top: 10px;
  padding: 8px;
  border: 4px solid #000;
  background: #fff;
  color: #000;
  box-shadow: 4px 4px 0 #000;
  font: bold 13px/1.25 "Comic Sans MS", "Trebuchet MS", sans-serif;
}
.urgent-box {
  margin-bottom: 10px;
  padding: 8px;
  border: 4px dashed #ff0000;
  background: #330000;
  box-shadow: 0 0 10px rgba(255,0,0,0.45);
}
.impact-mini {
  margin-bottom: 6px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 20px;
  color: var(--yellow);
}
.faq-line { margin: 0 0 8px; font-size: 13px; line-height: 1.35; }
.faq-line b { color: var(--yellow); }
.badge-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.micro-badge {
  padding: 6px 4px;
  border: 3px ridge var(--bevel);
  background: linear-gradient(90deg, #001f7a, #0b6be6 45%, #00d1ff);
  color: #fff;
  text-align: center;
  font: bold 10px/1.05 "Courier New", monospace;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #000;
}
.tiny-copy { font-size: 12px; line-height: 1.35; }
.footer {
  margin-top: 8px;
  padding: 8px 10px 12px;
  border-top: 4px ridge var(--bevel);
  background: #000;
  color: #fff;
  text-align: center;
  font: bold 12px/1.45 "Courier New", monospace;
}
.star-divider {
  color: var(--yellow);
  letter-spacing: 4px;
  text-shadow: 0 0 8px var(--yellow);
}

.actually-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  padding: 12px 16px;
  border: 4px outset #ffe6ff;
  background: linear-gradient(180deg, #ffff66, #ff66cc 55%, #b000ff);
  color: #000;
  font: bold 14px/1 "Arial Black", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  animation: actuallyPulse 1.2s steps(1) infinite;
}

.consult-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.consult-overlay.is-open { display: block; }
.consult-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.consult-modal {
  position: relative;
  width: min(1040px, calc(100% - 24px));
  margin: 32px auto;
  border: 5px ridge #ffd700;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0)),
    radial-gradient(circle at 20% 20%, #5e0036 0%, #1c003c 45%, #05001a 100%);
  box-shadow: 0 0 0 5px #000, 0 0 28px rgba(255,255,255,0.45);
  overflow: hidden;
}
.consult-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 4px outset #ffd6ff;
  background: linear-gradient(180deg, #ff66cc, #b600ff);
  color: #fff;
  font: bold 18px/1 Arial, sans-serif;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
}
.consult-alert {
  padding: 10px 16px;
  border-bottom: 4px ridge var(--bevel);
  background: linear-gradient(90deg, #ff0000, #ffff00, #ff0000);
  color: #000;
  font: bold 16px/1.2 "Courier New", monospace;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}
.consult-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
}
.consult-portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 16px;
  border: 4px ridge #fff;
  background:
    radial-gradient(circle, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #350057, #090022);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
}
.consult-portrait {
  width: min(100%, 320px);
  max-height: 420px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 6px ridge #ffe98e;
  box-shadow: 0 0 0 4px #000, 0 0 26px rgba(255,255,255,0.45);
  filter: contrast(1.12) saturate(1.12);
  transform-origin: center 82%;
}
.consult-copy { color: #fff; }
.consult-title {
  margin: 0 0 10px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .95;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 3px 3px 0 #ff00cc, 6px 6px 0 #000;
}
.consult-subtitle {
  margin: 0 0 14px;
  color: #ffff8d;
  font: bold 16px/1.4 "Courier New", monospace;
}
.consult-speech {
  min-height: 120px;
  padding: 14px 16px;
  border: 4px solid #000;
  background: #fff;
  color: #000;
  box-shadow: 6px 6px 0 #000;
  font: bold 22px/1.2 "Comic Sans MS", "Trebuchet MS", sans-serif;
}
.consult-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.consult-button {
  padding: 10px 14px;
  border: 4px outset #ffd8ff;
  background: linear-gradient(180deg, #ff67cf, #c100ff);
  color: #fff;
  text-transform: uppercase;
  font: bold 12px/1.2 Verdana, sans-serif;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}
.consult-button-primary {
  background: linear-gradient(180deg, #ffff66, #ffc400);
  color: #000;
  border-color: #fff3b0;
}
.consult-footer-note {
  margin-top: 14px;
  color: #9dfcae;
  font: bold 11px/1.35 "Courier New", monospace;
  text-transform: uppercase;
}
.quote-pop { animation: quotePop .16s ease-out; }

@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }
@keyframes talk {
  0% { transform: translateX(0) rotate(0deg) scale(1); }
  25% { transform: translateX(-2px) rotate(-2deg) scale(1.03); }
  50% { transform: translateX(2px) rotate(2deg) scale(1.01); }
  75% { transform: translateX(-1px) rotate(-1deg) scale(1.03); }
  100% { transform: translateX(0) rotate(0deg) scale(1); }
}
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes quotePop {
  0% { transform: scale(.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes actuallyPulse {
  0%, 49% { filter: brightness(1); }
  50%, 100% { filter: brightness(1.18); }
}

@media (max-width: 1020px) {
  .content-grid { grid-template-columns: 1fr; }
  .badge-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .consult-grid { grid-template-columns: 1fr; }
  .consult-portrait-wrap { min-height: 260px; }
}
@media (max-width: 620px) {
  .page-shell { padding: 6px; }
  .site-table { width: min(100%, calc(100% - 6px)); }
  .badge-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rainbow-title { font-size: clamp(36px, 12vw, 54px); }
  .subhead { font-size: 13px; }
  .record-title { font-size: 18px; }
  .consult-modal { width: calc(100% - 12px); margin: 12px auto; }
  .consult-grid { padding: 16px; gap: 12px; }
  .consult-title { font-size: clamp(30px, 10vw, 44px); }
  .consult-speech { min-height: 92px; font-size: 18px; }
  .actually-fab { right: 10px; bottom: 10px; padding: 10px 12px; font-size: 12px; }
}
