/* ===================== */
/* VIEW 0: THE QUEST     */
/* ===================== */

.quest-container {
  padding: 0;
  max-width: 100%;
  margin: 0;
  background: #0a0a1a;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(30,40,80,0.3) 31px, rgba(30,40,80,0.3) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(30,40,80,0.3) 31px, rgba(30,40,80,0.3) 32px);
  min-height: 70vh;
  image-rendering: pixelated;
  color: #e0d8c0;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.8;
  overflow-x: hidden;
}

.quest-scroll-top, .quest-scroll-bottom {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, #8B6914 0px, #8B6914 8px, #6B4F12 8px, #6B4F12 16px);
  border-top: 3px solid #a07818;
  border-bottom: 3px solid #503a0d;
  image-rendering: pixelated;
}

.quest-scroll-body {
  background: linear-gradient(180deg, #1a1205 0%, #201808 50%, #1a1205 100%);
  border-left: 6px solid #8B6914;
  border-right: 6px solid #8B6914;
  padding: 24px 20px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.quest-narrator {
  color: #887755;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: quest-fade-in 2s ease-out;
}

@keyframes quest-fade-in {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.quest-headline {
  font-size: clamp(14px, 3vw, 22px);
  color: #FFD700;
  text-shadow: 2px 2px 0 #8B6914, 0 0 10px rgba(255,215,0,0.3);
  margin-bottom: 18px;
  letter-spacing: 3px;
  animation: quest-fade-in 2.5s ease-out;
}

.quest-text {
  font-family: 'VT323', monospace;
  font-size: clamp(14px, 2.5vw, 18px);
  color: #c8b88a;
  margin-bottom: 12px;
  line-height: 1.7;
  animation: quest-fade-in 3s ease-out;
}

.quest-dim { color: #887755; font-style: italic; }

.quest-gold { color: #FFD700; text-shadow: 0 0 6px rgba(255,215,0,0.4); }
.quest-copper { color: #b87333; }
.quest-aetherium {
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: quest-shimmer 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes quest-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.quest-char-select {
  text-align: center;
  padding: 24px 16px;
}

.quest-char-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #FFD700;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-shadow: 1px 1px 0 #8B6914;
}

.quest-char-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.quest-char {
  background: #0f0f22;
  border: 3px solid #333;
  padding: 14px 10px 10px;
  cursor: pointer;
  text-align: center;
  width: 100px;
  transition: all 0.15s;
  font-family: inherit;
  position: relative;
}

.quest-char:hover {
  border-color: #FFD700;
  background: #1a1a33;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.15);
}

.quest-char.selected {
  border-color: #FFD700;
  background: #1a1a33;
  box-shadow: 0 0 12px rgba(255,215,0,0.3), inset 0 0 15px rgba(255,215,0,0.05);
}

.quest-char.selected::after {
  content: '▶';
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 8px;
  color: #FFD700;
}

.quest-char-sprite {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knight-sprite {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='0' width='6' height='3' fill='%23888'/%3E%3Crect x='4' y='3' width='8' height='2' fill='%23aaa'/%3E%3Crect x='5' y='5' width='2' height='2' fill='%23FFD700'/%3E%3Crect x='9' y='5' width='2' height='2' fill='%23FFD700'/%3E%3Crect x='6' y='7' width='4' height='1' fill='%23ccc'/%3E%3Crect x='5' y='8' width='6' height='4' fill='%234444cc'/%3E%3Crect x='4' y='9' width='2' height='3' fill='%23888'/%3E%3Crect x='10' y='9' width='2' height='3' fill='%23888'/%3E%3Crect x='5' y='12' width='2' height='2' fill='%234444cc'/%3E%3Crect x='9' y='12' width='2' height='2' fill='%234444cc'/%3E%3Crect x='5' y='14' width='2' height='2' fill='%23666'/%3E%3Crect x='9' y='14' width='2' height='2' fill='%23666'/%3E%3Crect x='12' y='6' width='3' height='1' fill='%23aaa'/%3E%3Crect x='13' y='4' width='1' height='5' fill='%23aaa'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.mage-sprite {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='0' width='1' height='1' fill='%23FFD700'/%3E%3Crect x='4' y='1' width='3' height='1' fill='%236a0dad'/%3E%3Crect x='3' y='2' width='5' height='2' fill='%236a0dad'/%3E%3Crect x='4' y='4' width='3' height='1' fill='%236a0dad'/%3E%3Crect x='5' y='5' width='2' height='2' fill='%23FFD700'/%3E%3Crect x='9' y='5' width='2' height='2' fill='%23FFD700'/%3E%3Crect x='6' y='7' width='4' height='1' fill='%23ecc'/%3E%3Crect x='5' y='8' width='6' height='4' fill='%236a0dad'/%3E%3Crect x='6' y='9' width='4' height='1' fill='%238b5cf6'/%3E%3Crect x='5' y='12' width='2' height='2' fill='%236a0dad'/%3E%3Crect x='9' y='12' width='2' height='2' fill='%236a0dad'/%3E%3Crect x='5' y='14' width='2' height='2' fill='%23553'/%3E%3Crect x='9' y='14' width='2' height='2' fill='%23553'/%3E%3Crect x='12' y='5' width='1' height='6' fill='%23864'/%3E%3Crect x='12' y='4' width='3' height='1' fill='%23FFD700'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%23ff0'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23ff0'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.rogue-sprite {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='3' fill='%23333'/%3E%3Crect x='4' y='3' width='2' height='2' fill='%23333'/%3E%3Crect x='5' y='5' width='2' height='2' fill='%2300cc66'/%3E%3Crect x='9' y='5' width='2' height='2' fill='%2300cc66'/%3E%3Crect x='7' y='6' width='2' height='1' fill='%23333'/%3E%3Crect x='6' y='7' width='4' height='1' fill='%23dba'/%3E%3Crect x='5' y='8' width='6' height='4' fill='%23333'/%3E%3Crect x='4' y='9' width='1' height='2' fill='%23555'/%3E%3Crect x='11' y='9' width='1' height='2' fill='%23555'/%3E%3Crect x='7' y='9' width='2' height='2' fill='%23444'/%3E%3Crect x='5' y='12' width='2' height='2' fill='%23333'/%3E%3Crect x='9' y='12' width='2' height='2' fill='%23333'/%3E%3Crect x='5' y='14' width='2' height='2' fill='%23444'/%3E%3Crect x='9' y='14' width='2' height='2' fill='%23444'/%3E%3Crect x='1' y='8' width='3' height='1' fill='%23888'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23888'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.ranger-sprite {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='2' fill='%23228B22'/%3E%3Crect x='4' y='3' width='8' height='1' fill='%23228B22'/%3E%3Crect x='7' y='0' width='2' height='1' fill='%23cc3333'/%3E%3Crect x='5' y='4' width='6' height='1' fill='%23dba'/%3E%3Crect x='5' y='5' width='2' height='2' fill='%2344aaff'/%3E%3Crect x='9' y='5' width='2' height='2' fill='%2344aaff'/%3E%3Crect x='6' y='7' width='4' height='1' fill='%23dba'/%3E%3Crect x='5' y='8' width='6' height='4' fill='%23228B22'/%3E%3Crect x='6' y='10' width='4' height='1' fill='%231a6e1a'/%3E%3Crect x='5' y='12' width='2' height='2' fill='%23228B22'/%3E%3Crect x='9' y='12' width='2' height='2' fill='%23228B22'/%3E%3Crect x='5' y='14' width='2' height='2' fill='%23664'/%3E%3Crect x='9' y='14' width='2' height='2' fill='%23664'/%3E%3Crect x='12' y='4' width='1' height='8' fill='%23864'/%3E%3Crect x='13' y='3' width='1' height='2' fill='%23864'/%3E%3Crect x='13' y='10' width='1' height='2' fill='%23864'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.quest-char-name {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #c8b88a;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.quest-char.selected .quest-char-name {
  color: #FFD700;
}

.quest-char-desc {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #665;
}

.quest-char.selected .quest-char-desc {
  color: #998;
}

.quest-char-hint {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #444;
  margin-top: 12px;
}

.quest-chest-area {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.quest-chest {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 64px;
  cursor: pointer;
}

.dollar-cursor,
.dollar-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='20'%3E%3Crect x='0' y='0' width='32' height='20' rx='2' fill='%23518a4e'/%3E%3Crect x='1' y='1' width='30' height='18' rx='1' fill='%2385bb65' stroke='%23518a4e' stroke-width='0.5'/%3E%3Crect x='3' y='3' width='26' height='14' rx='0' fill='none' stroke='%23518a4e' stroke-width='0.5' stroke-dasharray='1,1'/%3E%3Ctext x='16' y='14.5' text-anchor='middle' font-family='serif' font-weight='bold' font-size='13' fill='%23336633'%3E%241%3C/text%3E%3C/svg%3E") 16 10, auto !important;
}

.quest-chest-lid {
  width: 80px;
  height: 24px;
  background: linear-gradient(180deg, #c8961e, #8B6914);
  border: 3px solid #503a0d;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  position: absolute;
  top: 0;
  box-shadow: inset 0 4px 0 rgba(255,255,255,0.1);
  animation: chest-hover 3s ease-in-out infinite;
}

@keyframes chest-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.quest-chest-base {
  width: 80px;
  height: 40px;
  background: linear-gradient(180deg, #8B6914, #6B4F12);
  border: 3px solid #503a0d;
  border-top: none;
  position: absolute;
  bottom: 0;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
}

.quest-chest-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,0.6);
  z-index: 2;
  animation: lock-pulse 2s ease-in-out infinite;
}

@keyframes lock-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(255,215,0,0.6); }
  50% { text-shadow: 0 0 20px rgba(255,215,0,0.9), 0 0 30px rgba(255,215,0,0.4); }
}

.quest-sparkles {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 100%;
  pointer-events: none;
}

.quest-spark {
  position: absolute;
  color: #FFD700;
  font-size: 10px;
  animation: spark-float 3s ease-in-out infinite;
  opacity: 0.6;
}

.quest-spark.s1 { top: 10%; left: 5%; animation-delay: 0s; }
.quest-spark.s2 { top: 20%; right: 5%; animation-delay: 0.7s; }
.quest-spark.s3 { bottom: 20%; left: 10%; animation-delay: 1.4s; }
.quest-spark.s4 { bottom: 10%; right: 10%; animation-delay: 2.1s; }

@keyframes spark-float {
  0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.3; }
  50% { transform: translateY(-8px) scale(1.2); opacity: 1; }
}

.quest-tier-display {
  text-align: center;
  padding: 16px 10px;
  margin: 0 auto;
  max-width: 500px;
}

.quest-tier-title {
  font-size: 8px;
  color: #887755;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.quest-tier-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.qt {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 4px 8px;
  border: 2px solid;
  letter-spacing: 1px;
  image-rendering: pixelated;
}

.qt-copper { color: #b87333; border-color: #8B5A2B; background: rgba(184,115,51,0.1); }
.qt-silver { color: #C0C0C0; border-color: #808080; background: rgba(192,192,192,0.1); }
.qt-gold { color: #FFD700; border-color: #B8860B; background: rgba(255,215,0,0.1); }
.qt-platinum { color: #E5E4E2; border-color: #A9A9A9; background: rgba(229,228,226,0.1); text-shadow: 0 0 4px rgba(229,228,226,0.3); }
.qt-orichalcum { color: #FF6B35; border-color: #CC4400; background: rgba(255,107,53,0.1); text-shadow: 0 0 4px rgba(255,107,53,0.3); }
.qt-electrum { color: #C9B037; border-color: #8B7500; background: rgba(201,176,55,0.1); text-shadow: 0 0 4px rgba(201,176,55,0.3); }
.qt-aetherium {
  color: #ff00ff;
  border-color: #8800aa;
  background: rgba(255,0,255,0.1);
  text-shadow: 0 0 6px rgba(255,0,255,0.5);
  animation: qt-aeth-glow 2s ease-in-out infinite;
}

@keyframes qt-aeth-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(255,0,255,0.2); }
  50% { box-shadow: 0 0 10px rgba(255,0,255,0.4), 0 0 20px rgba(0,255,255,0.2); }
}

.quest-dialog {
  text-align: center;
  padding: 20px;
}

.quest-dialog-frame {
  display: inline-block;
  background: #0a0a2e;
  border: 4px solid #4444aa;
  border-radius: 0;
  padding: 20px 28px;
  position: relative;
  max-width: 500px;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.05),
    inset -2px -2px 0 rgba(0,0,0,0.3),
    0 0 15px rgba(68,68,170,0.3);
  image-rendering: pixelated;
}

.quest-dialog-arrow {
  position: absolute;
  bottom: -14px;
  right: 24px;
  color: #4444aa;
  font-size: 14px;
  animation: dialog-blink 1s step-end infinite;
}

@keyframes dialog-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.quest-dialog-text {
  font-size: clamp(9px, 2vw, 12px);
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 2;
}

.quest-dialog-sub {
  font-family: 'VT323', monospace;
  font-size: clamp(12px, 2.5vw, 16px);
  color: #aaaacc;
}

.quest-cta {
  text-align: center;
  padding: 20px;
}

.quest-button {
  background: linear-gradient(180deg, #2a6e2a, #1a4e1a);
  color: #FFD700;
  border: 4px solid;
  border-color: #44aa44 #1a3a1a #1a3a1a #44aa44;
  padding: 16px 36px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2.5vw, 16px);
  cursor: pointer;
  text-shadow: 2px 2px 0 #0a2a0a;
  transition: all 0.15s;
  letter-spacing: 1px;
  image-rendering: pixelated;
  position: relative;
  animation: quest-btn-idle 3s ease-in-out infinite;
}

@keyframes quest-btn-idle {
  0%, 100% { box-shadow: 0 0 8px rgba(68,170,68,0.3); }
  50% { box-shadow: 0 0 16px rgba(68,170,68,0.5), 0 0 30px rgba(255,215,0,0.2); }
}

.quest-button:hover {
  background: linear-gradient(180deg, #3a8e3a, #2a6e2a);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(68,170,68,0.6), 0 0 40px rgba(255,215,0,0.3);
}

.quest-button:active {
  border-color: #1a3a1a #44aa44 #44aa44 #1a3a1a;
  transform: scale(0.95);
}

.quest-safety {
  color: #556644;
  font-family: 'VT323', monospace;
  font-size: 13px;
  margin-top: 12px;
}

.quest-info-scroll {
  max-width: 600px;
  margin: 20px auto;
  border: 3px solid #44443a;
  background: #12120a;
}

.quest-info-header {
  background: #2a2a1a;
  color: #FFD700;
  padding: 8px 14px;
  font-size: 9px;
  letter-spacing: 2px;
  border-bottom: 2px solid #44443a;
}

.quest-info-body {
  padding: 16px;
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #a09878;
  line-height: 1.7;
}

.quest-info-body p {
  margin-bottom: 10px;
}

.quest-info-body em {
  color: #FFD700;
  font-style: normal;
}

.quest-stats {
  max-width: 400px;
  margin: 20px auto;
  border: 3px solid #333;
  background: #0f0f08;
}

.quest-stat-bar {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #222;
  gap: 10px;
}

.quest-stat-bar:last-child { border-bottom: none; }

.quest-stat-icon {
  font-size: 14px;
  color: #FFD700;
  width: 24px;
  text-align: center;
}

.quest-stat-label {
  flex: 1;
  font-size: 8px;
  color: #887755;
  letter-spacing: 1px;
}

.quest-stat-val {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #44aa44;
}

.quest-visitor {
  text-align: center;
  padding: 10px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #556644;
}

.quest-visitor .counter-display {
  color: #44aa44;
}

.quest-lore {
  max-width: 580px;
  margin: 20px auto;
  padding: 16px 20px;
  border: 2px dashed #333;
  text-align: center;
}

.quest-lore p {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #887755;
  line-height: 1.7;
  margin-bottom: 8px;
}

.quest-lore-dim { color: #555 !important; font-style: italic; }

.quest-collection {
  text-align: center;
  padding: 12px;
}

.quest-collection p {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #887755;
}

.quest-collection a {
  color: #FFD700;
}

.quest-toggle {
  color: #556644;
  font-size: 10px;
}

.quest-toggle:hover {
  color: #44aa44;
  text-decoration: none;
}

.quest-footer {
  text-align: center;
  padding: 20px;
  border-top: 2px solid #222;
  margin-top: 20px;
}

.quest-footer p {
  color: #444;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.quest-footer .footer-tiny a {
  color: #555;
}

body.a11y-mode .quest-text {
  font-size: clamp(18px, 3vw, 24px);
}

body.a11y-mode .quest-headline {
  font-size: clamp(20px, 4vw, 30px);
}

body.a11y-mode .quest-button {
  font-size: clamp(16px, 3vw, 24px);
  padding: 22px 50px;
}

body.a11y-mode .quest-dialog-text {
  font-size: clamp(14px, 2.5vw, 18px);
}

body.a11y-mode .quest-info-body {
  font-size: 20px;
}

/* ===================== */
/* SHARED / MENUBAR      */
/* ===================== */

.ie-menubar {
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 2px 5px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 11px;
  position: relative;
}

.ie-menubar .menu-item {
  padding: 2px 5px;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.ie-menubar .menu-item:hover {
  background: #000080;
  color: white;
}

.ie-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #c0c0c0;
  border: 2px solid #dfdfdf;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 2px 2px 0 #000;
  min-width: 200px;
  z-index: 500;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 12px;
}

.ie-dropdown.show {
  display: block;
}

.ie-dropdown a {
  display: block;
  padding: 4px 20px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.ie-dropdown a:hover {
  background: #000080;
  color: white;
}

.dropdown-separator {
  height: 1px;
  background: #808080;
  margin: 2px 4px;
}

.dropdown-section-label {
  padding: 3px 8px 2px;
  font-size: 10px;
  color: #555;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #d4d0c8;
  border-bottom: 1px solid #a0a0a0;
  cursor: default;
  user-select: none;
}

.dropdown-label {
  display: block;
  padding: 4px 20px 2px;
  color: #555;
  font-size: 11px;
  font-weight: bold;
  cursor: default;
}

.profile-check {
  display: inline-block;
  width: 14px;
  text-align: center;
  font-size: 11px;
}

.stop-modal-body {
  white-space: pre-line;
  text-align: center;
  padding: 30px 20px;
}

body.a11y-mode {
  font-size: 18px;
}

body.a11y-mode .ie-content {
  font-size: 18px;
  line-height: 1.8;
}

body.a11y-mode .mystery-text {
  font-size: 22px;
  color: #fff;
}

body.a11y-mode .mystery-subtext {
  font-size: 18px;
  color: #ccc;
}

body.a11y-mode .mystery-box {
  background: #000;
  border-color: #fff;
}

body.a11y-mode .main-title .title-line {
  font-size: clamp(28px, 6vw, 56px);
}

body.a11y-mode .main-title .title-line.accent {
  font-size: clamp(36px, 8vw, 72px);
}

body.a11y-mode .marquee-text {
  font-size: 26px;
}

body.a11y-mode .big-button {
  font-size: clamp(20px, 4vw, 32px);
  padding: 25px 60px;
}

body.a11y-mode .dare-text {
  font-size: 18px;
}

body.a11y-mode .fine-print {
  font-size: 15px;
}

body.a11y-mode .stats-box {
  font-size: 18px;
  background: #fff;
  border: 3px solid #000;
}

body.a11y-mode .stat-row {
  font-size: 20px;
  padding: 6px 0;
}

body.a11y-mode .philosophy-box {
  font-size: 18px;
  background: #fff;
  color: #000;
  border: 3px solid #000;
}

body.a11y-mode .easter-egg-links p,
body.a11y-mode .retro-links a {
  font-size: 16px;
}

body.a11y-mode .collection-link {
  font-size: 18px;
}

body.a11y-mode .modal-body p {
  font-size: 17px;
}

body.a11y-mode .void-message {
  font-size: clamp(22px, 4vw, 36px);
}

body.a11y-mode .void-quote p {
  font-size: 20px;
}

body.a11y-mode .void-button {
  font-size: clamp(28px, 5vw, 56px);
  padding: 30px 60px;
}

.mystery-box {
  background: #1a1a2e;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 30px 20px;
  margin-bottom: 25px;
  text-align: center;
}

.mystery-text {
  color: #ccc;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.mystery-subtext {
  color: #888;
  font-size: 14px;
  font-style: italic;
  margin-top: 15px;
}

.what-is-it-section {
  text-align: center;
  margin: 20px 0;
}

.what-button {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
  padding: 10px 25px;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: 15px;
  cursor: pointer;
  color: #000;
  text-decoration: underline;
}

.what-button:hover {
  background: #FFD700;
}

.easter-egg-links {
  text-align: center;
  margin: 25px 0;
  padding: 15px;
  border-top: 1px dashed #ccc;
  border-bottom: 1px dashed #ccc;
}

.easter-egg-links p {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  font-style: italic;
}

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

.retro-links a {
  color: #0000FF;
  font-size: 12px;
  text-decoration: underline;
}

.link-separator {
  color: #ccc;
  font-size: 12px;
}

.philosophy-box {
  background: #f8f8f0;
  border: 2px double #999;
  padding: 20px;
  margin: 25px 0;
  text-align: center;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.philosophy-box a {
  color: #0000FF;
}

.philosophy-answer {
  margin-top: 10px;
  font-style: italic;
  font-weight: bold;
  color: #333;
}

.view-toggle-hint {
  text-align: center;
  margin: 15px 0;
}

.toggle-btn {
  background: none;
  border: none;
  color: #808080;
  font-family: 'VT323', monospace;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 10px;
}

.toggle-btn:hover {
  color: #0000FF;
  text-decoration: underline;
}

.footer-tiny {
  margin-top: 5px;
}

.footer-tiny a {
  color: #808080;
  font-size: 10px;
}

/* ===================== */
/* VIEW 2: THE VOID      */
/* ===================== */

.void-container {
  background: #000;
  min-height: 70vh;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.void-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.void-title {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: clamp(28px, 5vw, 48px);
  color: #FFFF00;
  text-shadow: 3px 3px 0px #FF00FF, -3px -3px 0px #00FFFF;
  margin-bottom: 30px;
  animation: glitch 5s infinite;
  letter-spacing: 3px;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 2px); }
  94% { transform: translate(2px, -2px); }
  96% { transform: translate(-2px, -2px); }
  98% { transform: translate(2px, 2px); }
}

.void-message-container {
  min-height: 80px;
  margin: 30px 0;
}

.void-message {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: clamp(18px, 3vw, 28px);
  color: #00FF00;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  line-height: 1.6;
  transition: opacity 0.5s;
}

.void-visitor-counter {
  font-family: 'Courier New', monospace;
  color: #00FF00;
  font-size: 16px;
  margin: 15px 0;
}

.void-hearts {
  margin: 25px 0;
  font-size: 22px;
}

.rainbow-hearts {
  animation: rainbow 3s infinite;
  display: inline-block;
  color: #FF00FF;
  letter-spacing: 4px;
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.void-button {
  background: linear-gradient(180deg, #FF0080, #8000FF);
  border: 5px solid #FFFF00;
  padding: 25px 50px;
  font-size: clamp(24px, 4vw, 48px);
  font-family: Impact, 'Arial Black', sans-serif;
  color: #fff;
  text-shadow: 3px 3px 0px #000;
  cursor: pointer;
  display: inline-block;
  animation: void-pulse 2s infinite;
  box-shadow: 0 0 20px #FF00FF, 0 0 40px #00FFFF;
  transform: rotate(-2deg);
  transition: all 0.3s;
}

.void-button:hover {
  transform: rotate(2deg) scale(1.1);
  box-shadow: 0 0 30px #FF00FF, 0 0 60px #00FFFF;
}

.void-button:active {
  transform: scale(0.95);
}

@keyframes void-pulse {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(-2deg) scale(1.05); }
}

.void-what {
  margin: 25px 0;
}

.void-what-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
  padding: 8px 20px;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  text-decoration: underline;
}

.void-what-btn:hover {
  background: #FFFF00;
}

.void-quote {
  margin: 35px 0;
  padding: 20px;
  border: 1px dashed #555;
}

.void-quote p {
  color: #FFFF00;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}

.void-quote-sub {
  color: #888 !important;
  font-size: 14px !important;
  margin-top: 8px;
}

.void-construction {
  margin: 25px 0;
}

.bounce-text {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: #FFD700;
  animation: bounce-anim 1s infinite;
}

@keyframes bounce-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.void-links {
  margin: 20px 0;
  font-size: 12px;
}

.void-links a {
  color: #00FFFF;
  text-decoration: underline;
}

.void-links span {
  color: #555;
  margin: 0 5px;
}

.void-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px dashed #FFFF00;
}

.void-footer p {
  color: #808080;
  font-size: 12px;
  margin-bottom: 4px;
}

.void-footer-tiny {
  font-size: 10px !important;
  color: #555 !important;
}

.void-toggle {
  color: #555;
  margin-top: 10px;
}

.void-toggle:hover {
  color: #FFFF00;
}

/* WHAT IS IT modal */
.what-modal-body {
  text-align: left;
  line-height: 1.7;
}

.what-modal-body p {
  margin-bottom: 10px;
  font-size: 14px;
}

.what-modal-body a {
  color: #0000FF;
}

.what-intro {
  font-size: 16px !important;
  font-weight: bold;
  color: #800080;
}

.what-punchline {
  font-weight: bold;
  font-style: italic;
  color: #333;
  margin-top: 15px !important;
}

.what-disclaimer {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 12px !important;
  color: #888;
}

.what-disclaimer p {
  font-size: 12px !important;
  color: #888 !important;
}

/* ===================== */
/* GEOCITIES ELEMENTS    */
/* ===================== */

.geo-sparkle-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 0 4px;
  flex-wrap: wrap;
}

@keyframes geo-spin-anim {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.geo-spin {
  animation: geo-spin-anim 3s linear infinite;
  display: inline-block;
}

.geo-pixel-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 8px;
}
.geo-divider-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #FF6600 0px, #FF6600 6px, #FFD700 6px, #FFD700 12px);
  border-radius: 1px;
}

.geo-infobox {
  border: 2px solid #000080;
  margin: 10px 4px;
  background: #fff;
  font-size: 12px;
}
.geo-infobox-title {
  background: #000080;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 4px 8px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.geo-infobox-body {
  padding: 8px 10px;
  line-height: 1.6;
  color: #222;
}
.geo-infobox-body p {
  margin: 0 0 6px 0;
}
.geo-infobox-body p:last-child {
  margin-bottom: 0;
}
.geo-infobox-sub {
  font-size: 11px;
  color: #444;
  border-top: 1px dotted #ccc;
  padding-top: 5px;
  margin-top: 6px;
}

.geo-directory .geo-dir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 6px 8px;
}
.geo-dir-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  color: #000080;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.geo-dir-link:hover {
  background: #ffffcc;
  border-color: #000080;
  text-decoration: underline;
}

.geo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 4px;
  margin-top: 4px;
}
.geo-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #000080;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 3px 7px;
  border: 1px outset #4040ff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ===================== */
/* YAHOO PORTAL VIEW     */
/* ===================== */

.yahoo-portal {
  background: #fff;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000;
}

.yp-header {
  background: #fff;
  padding: 8px 12px 0;
}

.yp-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.yp-logo {
  font-family: 'Times New Roman', Times, serif;
  font-size: 30px;
  font-weight: bold;
  color: #400098;
  letter-spacing: -1px;
  line-height: 1;
}

.yp-logo-dot { color: #cc0000; }
.yp-logo-com { font-size: 20px; color: #400098; }

.yp-tagline {
  font-size: 11px;
  color: #555;
  margin-top: 3px;
}

.yp-visitor-inline {
  font-weight: bold;
  color: #400098;
}

.yp-header-links {
  font-size: 11px;
  color: #444;
  text-align: right;
  white-space: nowrap;
  padding-top: 4px;
}

.yp-header-links a {
  color: #0000cc;
  text-decoration: none;
}

.yp-header-links a:hover { text-decoration: underline; }

.yp-sep { color: #aaa; margin: 0 3px; }

.yp-search-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0 8px;
}

.yp-search-input {
  flex: 1;
  padding: 4px 7px;
  border: 1px solid #999;
  font-size: 12px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  background: #fff;
}

.yp-search-btn {
  padding: 4px 14px;
  background: linear-gradient(to bottom, #f0f0f0, #ddd);
  border: 1px solid #888;
  font-size: 12px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  white-space: nowrap;
}

.yp-search-btn:hover { background: linear-gradient(to bottom, #e8e8e8, #ccc); }

.yp-rule {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0;
}

.yp-body {
  display: flex;
  align-items: flex-start;
}

.yp-main {
  flex: 1;
  padding: 8px 10px;
  border-right: 1px solid #ddd;
  min-width: 0;
}

.yp-sidebar {
  width: 195px;
  flex-shrink: 0;
  padding: 8px;
}

.yp-section-label {
  font-size: 11px;
  font-weight: bold;
  color: #400098;
  background: #eeeeff;
  padding: 2px 6px;
  margin-bottom: 6px;
  border-left: 3px solid #400098;
}

.yp-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.yp-cat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.yp-cat-head {
  font-weight: bold;
  margin-bottom: 3px;
  font-size: 12px;
}

.yp-cat-head a {
  color: #400098;
  text-decoration: none;
}

.yp-cat-head a:hover { text-decoration: underline; }

.yp-cat a {
  color: #0000cc;
  text-decoration: none;
  font-size: 11px;
  padding: 1px 0;
  display: block;
}

.yp-cat a:hover { text-decoration: underline; }
.yp-cat a:visited { color: #551a8b; }

.yp-news { margin-bottom: 8px; }

.yp-news-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 0;
  border-bottom: 1px dotted #e0e0e0;
  font-size: 11px;
}

.yp-news-item:last-child { border-bottom: none; }

.yp-news-item a {
  color: #0000cc;
  text-decoration: none;
  flex: 1;
}

.yp-news-item a:hover { text-decoration: underline; }
.yp-news-item a:visited { color: #551a8b; }

.yp-news-badge {
  background: #cc0000;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 3px;
  flex-shrink: 0;
  line-height: 1.4;
}

.yp-news-date {
  color: #888;
  font-size: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.yp-cool-links {
  font-size: 11px;
  color: #444;
  padding: 6px 0;
  line-height: 1.8;
}

.yp-cool-links a {
  color: #0000cc;
  text-decoration: none;
}

.yp-cool-links a:hover { text-decoration: underline; }

.yp-toggle-wrap {
  padding: 8px 0 2px;
  text-align: center;
}

/* SIDEBAR WIDGETS */
.yp-widget {
  border: 1px solid #bbb;
  margin-bottom: 8px;
}

.yp-widget-title {
  background: linear-gradient(to bottom, #400098, #280060);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yp-widget-body {
  padding: 7px;
  font-size: 11px;
  line-height: 1.5;
}

.yp-widget-body p { margin: 0 0 6px; }
.yp-widget-body p:last-child { margin-bottom: 0; }

.yp-tiers {
  font-size: 10px;
  margin: 4px 0 8px;
  line-height: 1.8;
}

.yp-cta-btn {
  display: block;
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(to bottom, #400098, #280060);
  color: #fff;
  border: 1px solid #280060;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  margin: 4px 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.yp-cta-btn:hover { background: linear-gradient(to bottom, #5500bb, #400098); }

.yp-cta-sub {
  font-size: 10px;
  text-align: center;
  color: #555;
  margin-top: 3px;
}

.yp-cta-sub a { color: #0000cc; text-decoration: none; }
.yp-cta-sub a:hover { text-decoration: underline; }

.yp-stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #ddd;
  padding: 2px 0;
  font-size: 10px;
}

.yp-stat-row:last-child { border-bottom: none; }
.yp-stat-row span:last-child { font-weight: bold; color: #400098; }

.yp-quick-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yp-quick-links a {
  color: #0000cc;
  text-decoration: none;
  font-size: 11px;
}

.yp-quick-links a:hover { text-decoration: underline; }

.yp-footer {
  border-top: 1px solid #ccc;
  background: #f4f4f4;
  text-align: center;
  padding: 6px 10px;
  font-size: 10px;
  color: #666;
}

.yp-footer p { margin: 2px 0; }
.yp-footer a { color: #0000cc; text-decoration: none; }
.yp-footer a:hover { text-decoration: underline; }

/* FEATURE BANNER */
.yp-feature-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0eeff;
  border: 1px solid #c0a8ff;
  border-left: 4px solid #400098;
  padding: 12px 14px;
  margin: 10px 0;
}

.yp-feature-left {
  flex: 1;
  min-width: 0;
}

.yp-feature-eyebrow {
  font-size: 10px;
  font-weight: bold;
  color: #400098;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.yp-feature-headline {
  font-size: 14px;
  font-weight: bold;
  color: #111;
  margin-bottom: 5px;
  line-height: 1.3;
}

.yp-feature-body {
  font-size: 11px;
  color: #444;
  line-height: 1.6;
}

.yp-feature-right {
  flex-shrink: 0;
  text-align: center;
  min-width: 140px;
}

.yp-feature-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(to bottom, #400098, #280060);
  color: #fff;
  border: 1px solid #280060;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: Arial, sans-serif;
  margin-bottom: 6px;
  white-space: nowrap;
}

.yp-feature-btn:hover { background: linear-gradient(to bottom, #5500bb, #400098); }

.yp-feature-sub {
  font-size: 10px;
  color: #666;
  line-height: 1.6;
}

.yp-feature-sub a { color: #0000cc; text-decoration: none; }
.yp-feature-sub a:hover { text-decoration: underline; }
