body {
  background: #000000 url('public.png') center/cover no-repeat;
  background-attachment: fixed;
  color: #FFD700;
  font-family: 'IBM Plex+Mono', monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.ascii-art {
  color: #FFD700;
  font-size: 1.2vw;
  text-align: center;
  line-height: 1;
  margin-top: 2vw;
  font-family: 'IBM Plex Mono', monospace;
  user-select: none;
  white-space: pre;
  background: none;
  border: none;
  padding: 0;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  pointer-events: none;
}

h1, h2 {
  text-align: center;
  font-weight: 700;
  margin: 1.5vw 0 0.5vw 0;
  animation: fadeInUp 1s ease-out;
  color: #FFD700;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.desc {
  text-align: center;
  color: #FFEB3B;
  margin-bottom: 2vw;
  font-size: 1.1em;
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.desc.warning {
  color: #FFC107;
  font-weight: 700;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3vw;
  margin: 2vw 0;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat {
  text-align: center;
  padding: 1vw;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #FFD700;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.stat-number {
  display: block;
  font-size: 1.5em;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 0.5vw;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-label {
  font-size: 0.9em;
  color: #FFC107;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin: 2vw 0;
  gap: 0;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.search-bar input {
  width: 300px;
  padding: 0.7em;
  font-size: 1em;
  border: 2px solid #FFD700;
  background: rgba(0, 0, 0, 0.7);
  color: #FFD700;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: 'IBM Plex Mono', monospace;
}

.search-bar input:focus {
  border-color: #FFC107;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.search-bar button {
  background: #FFD700;
  color: #000000;
  border: none;
  padding: 0.7em 1.2em;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'IBM Plex Mono', monospace;
}

.search-bar button:first-of-type {
  border-radius: 0;
}

.search-bar button:last-of-type {
  border-radius: 0 4px 4px 0;
}

.search-bar button:hover, .search-bar button:focus {
  background: #FFC107;
  color: #000000;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin: 2vw 0;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.filter-tab {
  background: transparent;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 0.5em 1em;
  font-size: 0.9em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.3s ease;
  font-family: 'IBM Plex Mono', monospace;
}

.filter-tab.active, .filter-tab:hover {
  background: #FFD700;
  color: #000000;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.scenarios-scroll-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2vw 0;
  gap: 0.5vw;
  animation: fadeInUp 1s ease-out 1s both;
}

.scenarios {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1vw;
  padding: 0.5vw 0;
  scrollbar-width: thin;
  scrollbar-color: #FFD700 #000;
  max-width: 90vw;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.scenarios::-webkit-scrollbar {
  height: 8px;
}

.scenarios::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 4px;
}

.scenarios::-webkit-scrollbar-track {
  background: #000000;
}

.scroll-btn {
  background: #FFD700;
  color: #000000;
  border: none;
  border-radius: 50%;
  width: 2.2em;
  height: 2.2em;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-btn:hover, .scroll-btn:focus {
  background: #FFC107;
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.scenario-btn {
  background: #FFD700;
  color: #000000;
  border: none;
  padding: 0.5em 1.2em;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 0.5vw;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
}

.scenario-btn:hover, .scenario-btn:focus {
  background: #FFC107;
  color: #000000;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

.scenario-btn.new {
  background: linear-gradient(45deg, #FFD700, #FFC107);
  border: 1px solid #FFEB3B;
}

.scenario-btn.popular {
  background: linear-gradient(45deg, #FFC107, #FFD700);
  border: 1px solid #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.scenario-btn.wisdom {
  background: linear-gradient(45deg, #FFEB3B, #FFD700);
  border: 1px solid #FFC107;
}

.dreams-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2vw;
  margin: 2vw 0;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.dreams-list a {
  color: #FFD700;
  text-decoration: underline;
  font-size: 1em;
  margin: 0.2vw 0;
  display: block;
  transition: all 0.3s ease;
}

.dreams-list a:hover, .dreams-list a:focus {
  color: #FFC107;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.bonk-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  margin: 3vw 0;
  padding: 1vw;
  border: 1px dashed #FFD700;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.05);
  animation: fadeInUp 1s ease-out 1.4s both;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  color: #FFD700;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.last-update {
  color: #FFC107;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .ascii-art { font-size: 5vw; }
  .search-bar { flex-direction: column; align-items: center; }
  .search-bar input { width: 70vw; border-radius: 4px; margin-bottom: 1vw; }
  .search-bar button { border-radius: 4px; }
  .scenarios-scroll-wrapper { gap: 1vw; }
  .scenarios { max-width: 98vw; }
  .scroll-btn { width: 2.5em; height: 2.5em; font-size: 1.5em; }
  .dreams-list { flex-direction: column; align-items: center; }
  .stats-bar { flex-direction: column; align-items: center; gap: 1vw; }
  .filter-tabs { flex-wrap: wrap; gap: 0.5vw; }
  .bonk-status { flex-direction: column; gap: 1vw; }
}

@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

.scenario-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: left 0.5s ease;
}

.scenario-btn:hover::before {
  left: 100%;
}

.scenario-btn[style*="display: none"] {
  display: none !important;
}

button:focus, input:focus, a:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

* {
  transition: all 0.3s ease;
}
