/* ============================================================
   TECHNO-VISION 2026 - STYLE.CSS
   Estética: Internet de finales de los 90 / principios de los 2000
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  --bg-dark: #000080;
  --bg-page: #000020;
  --text-primary: #FFFF00;
  --text-secondary: #00FF00;
  --text-link: #00FFFF;
  --text-link-hover: #FF00FF;
  --text-red: #FF0000;
  --border-light: #FFFFFF;
  --border-dark: #808080;
  --border-darkest: #404040;
  --shadow: #000000;
  --box-inset: #C0C0C0;
  --win-bg: #C0C0C0;
  --pixel: 1px;
}

/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='5' cy='5' r='4' fill='%2300FFFF' opacity='0.8'/%3E%3Ccircle cx='5' cy='5' r='2' fill='%23FFFFFF'/%3E%3C/svg%3E") 5 5, auto;
}

body {
  font-family: 'Times New Roman', Times, serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(2px 2px at 20px 30px, #FFFFFF33, transparent),
    radial-gradient(2px 2px at 40px 70px, #FFFFFF22, transparent),
    radial-gradient(1px 1px at 90px 40px, #FFFFFF44, transparent),
    radial-gradient(1px 1px at 130px 80px, #FFFFFF33, transparent),
    radial-gradient(2px 2px at 160px 30px, #FFFFFF22, transparent),
    radial-gradient(1px 1px at 200px 90px, #FFFFFF44, transparent),
    radial-gradient(1px 1px at 50px 120px, #FFFFFF33, transparent),
    radial-gradient(2px 2px at 180px 140px, #FFFFFF22, transparent),
    radial-gradient(1px 1px at 250px 50px, #FFFFFF44, transparent),
    radial-gradient(1px 1px at 300px 160px, #FFFFFF33, transparent);
  background-size: 320px 200px;
  color: var(--text-secondary);
  min-height: 100vh;
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  color: var(--text-link);
  text-decoration: underline;
}
a:hover {
  color: var(--text-link-hover);
  text-shadow: 0 0 8px #FF00FF;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='5' cy='5' r='5' fill='%23FF00FF' opacity='0.8'/%3E%3Ccircle cx='5' cy='5' r='2' fill='%23FFFFFF'/%3E%3C/svg%3E") 5 5, pointer;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   3. LAYOUT PRINCIPAL
   ============================================================ */
#container {
  max-width: 960px;
  margin: 0 auto;
  padding: 4px;
  width: 100%;
}

/* ============================================================
   4. TIPOGRAFÍA ESPECIAL
   ============================================================ */

.blink {
  animation: blink 0.8s step-end infinite;
}

.blink-fast {
  animation: blink 0.4s step-end infinite;
}

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

.rainbow-text {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  background: linear-gradient(90deg,
    #FF0000, #FF7700, #FFFF00, #00FF00,
    #0000FF, #8B00FF, #FF0000);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-scroll 3s linear infinite;
}

@keyframes rainbow-scroll {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.rainbow-short {
  background: linear-gradient(90deg, #FF0000, #FFFF00, #00FF00, #0000FF, #FF00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.yellow-text {
  color: #FFFF00;
  text-shadow: 0 0 4px #FFA500;
}

.red-text {
  color: #FF0000;
  text-shadow: 0 0 4px #FF000088;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee {
  display: inline-block;
  animation: marquee-scroll 15s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.spin-slow {
  display: inline-block;
  animation: spin-star 3s linear infinite;
}

@keyframes spin-star {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pulse {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* ============================================================
   5. BANNER PRINCIPAL
   ============================================================ */
#banner {
  text-align: center;
  padding: 20px 10px 15px;
  border: 3px solid;
  border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
  background: linear-gradient(180deg, #000044 0%, #000088 50%, #000044 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.banner-fire {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.fire-left, .fire-right {
  font-size: 2.5rem;
  animation: fire-flicker 0.5s ease-in-out infinite alternate;
  flex-shrink: 0;
}
.fire-left::before { content: "🔥"; }
.fire-right::before { content: "🔥"; }

@keyframes fire-flicker {
  0% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.3) translateY(-3px); }
  100% { transform: scaleY(0.9) translateY(0); }
}

#banner h1 {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  text-shadow:
    2px 2px 0 #FF0000,
    -1px -1px 0 #0000FF,
    0 0 20px #FFFF00;
  padding: 5px 15px;
  line-height: 1.2;
}

.subtitle {
  margin-top: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  color: #FFD700;
  text-shadow: 0 0 6px #FF6600;
  border: 1px inset #808080;
  padding: 4px 0;
  background: #000033;
}

.banner-stars {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star {
  font-size: 1.2rem;
  color: #FFD700;
  animation: twinkle 1.5s ease-in-out infinite;
}
.star-1 { animation-delay: 0s; }
.star-2 { animation-delay: 0.3s; }
.star-3 { animation-delay: 0.6s; }
.star-4 { animation-delay: 0.9s; }
.star-5 { animation-delay: 1.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================================
   6. NAVEGACIÓN
   ============================================================ */
#nav {
  background: linear-gradient(90deg, #000066, #0000AA, #000066);
  border: 2px solid;
  border-color: #6666FF #000044 #000044 #6666FF;
  padding: 4px 0;
  margin: 2px 0;
}

.nav-marquee {
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.8rem;
  overflow: hidden;
  white-space: nowrap;
}

.nav-label {
  color: #FF66FF;
  font-weight: bold;
  padding: 0 8px;
}

.nav-links {
  animation-duration: 20s;
}

.nav-links a {
  color: #00FFFF;
  font-weight: bold;
  padding: 0 4px;
}
.nav-links a:hover {
  color: #FF00FF;
}

/* ============================================================
   7. DIVISORES
   ============================================================ */
hr {
  border: none;
  height: 4px;
  margin: 6px 0;
}

.divider-fire {
  height: 6px;
  background: linear-gradient(90deg,
    transparent 0%, #FF0000 15%, #FF7700 30%,
    #FFFF00 50%, #FF7700 70%, #FF0000 85%, transparent 100%);
  box-shadow: 0 0 8px #FF6600;
}

.divider-neon {
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%, #00FFFF 50%, transparent 100%);
  box-shadow: 0 0 10px #00FFFF;
}

.divider-dots {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #FFFF00 0px, #FFFF00 4px,
    transparent 4px, transparent 8px
  );
}

.divider-thick {
  height: 8px;
}

/* ============================================================
   8. SIDEBAR
   ============================================================ */
#main-area {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4px;
  margin: 4px 0;
}

#sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-box {
  border: 3px solid;
  border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
  background: #000044;
  padding: 8px;
}

.sidebar-title {
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.85rem;
  color: #FFFF00;
  text-align: center;
  border-bottom: 1px solid #FFFF00;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.construction-sign {
  text-align: center;
  animation: construction-pulse 1s ease-in-out infinite alternate;
}

@keyframes construction-pulse {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

.sign-inner {
  background: #FFA500;
  border: 3px solid;
  border-color: #FFD700 #CC7700 #CC7700 #FFD700;
  padding: 8px 4px;
}

.sign-icon {
  font-size: 1.5rem;
}

.sign-text {
  display: block;
  font-family: 'Impact', sans-serif;
  font-size: 0.95rem;
  color: #000000;
  font-weight: bold;
  letter-spacing: 2px;
}

.sign-stripe {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    #FF6600 0px, #FF6600 10px,
    #FFFFFF 10px, #FFFFFF 20px);
  margin-top: 4px;
}

.counter-display {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 6px 0;
}

.counter-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 38px;
  background: #000000;
  border: 2px inset #808080;
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: #00FF00;
  text-shadow: 0 0 6px #00FF00;
}

.counter-label {
  text-align: center;
  font-size: 0.7rem;
  color: #FF6600;
  font-family: 'Verdana', 'Arial', sans-serif;
}

.sidebar-badges .badge {
  font-size: 0.65rem;
  padding: 3px 6px;
  margin: 3px 0;
  background: #000066;
  border: 1px solid;
  border-color: #6666FF #000033 #000033 #6666FF;
  color: #FFD700;
  text-align: center;
  font-family: 'Verdana', 'Arial', sans-serif;
}

.fake-ad {
  padding: 6px 4px;
  margin: 4px 0;
  text-align: center;
  border: 2px solid;
  font-family: 'Verdana', 'Arial', sans-serif;
  cursor: pointer;
}

.fake-ad:hover {
  filter: brightness(1.3);
}

.ad-1 {
  background: linear-gradient(180deg, #FF6600, #CC3300);
  border-color: #FF9900 #993300 #993300 #FF9900;
}
.ad-2 {
  background: linear-gradient(180deg, #0066FF, #003399);
  border-color: #3399FF #002266 #002266 #3399FF;
}
.ad-3 {
  background: linear-gradient(180deg, #009900, #006600);
  border-color: #00CC00 #003300 #003300 #00CC00;
}

.ad-text {
  display: block;
  font-weight: bold;
  font-size: 0.7rem;
  color: #FFFFFF;
}

.ad-sub {
  display: block;
  font-size: 0.6rem;
  color: #FFFF00;
}

.ad-blink {
  display: block;
  font-size: 0.65rem;
  color: #FFFFFF;
  font-weight: bold;
  animation: blink 0.6s step-end infinite;
}

.best-viewed {
  text-align: center;
  padding: 4px;
}

.bv-icon {
  font-size: 2rem;
  display: block;
}

.bv-text {
  display: block;
  font-size: 0.6rem;
  color: #CCCCCC;
  font-family: 'Verdana', 'Arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bv-res {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  color: #00FF00;
  font-family: 'Impact', sans-serif;
  margin: 2px 0;
}

.bv-browsers {
  margin-top: 4px;
}

.bv-browser {
  display: block;
  font-size: 0.65rem;
  color: #FFFF00;
  font-family: 'Verdana', 'Arial', sans-serif;
}

.made-with {
  text-align: center;
}

.mw-icon {
  font-size: 1.5rem;
  display: block;
}

.mw-text {
  display: block;
  font-size: 0.6rem;
  color: #CCCCCC;
  font-family: 'Verdana', 'Arial', sans-serif;
}

.mw-tool {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: #00FF00;
  font-family: 'Courier New', monospace;
}

.mw-heart {
  display: block;
  font-size: 1.5rem;
  color: #FF0000;
  animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}



/* ============================================================
   8b. MIDI PLAYER (sidebar)
   ============================================================ */
.midi-player {
  font-family: 'Verdana', 'Arial', sans-serif;
}

.midi-display {
  background: #000000;
  border: 2px inset #808080;
  padding: 6px 8px;
  margin-bottom: 6px;
  min-height: 60px;
}

.midi-display-text {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 0.7rem;
  color: #00FF00;
  text-shadow: 0 0 4px #00FF00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  line-height: 1.3;
}

.midi-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: #00CC00;
  margin: 4px 0;
}

.midi-sep {
  color: #006600;
}

.midi-progress-container {
  margin: 4px 0;
}

.midi-progress-track {
  height: 8px;
  background: #003300;
  border: 1px inset #004400;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.midi-progress-thumb {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00AA00, #00FF00);
  transition: width 0.2s;
  position: relative;
}

.midi-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}

.midi-btn {
  font-size: 0.85rem;
  width: 30px;
  height: 26px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C0C0C0;
  border: 2px solid;
  border-color: #FFFFFF #808080 #808080 #FFFFFF;
  cursor: pointer;
  transition: all 0.1s;
  flex-shrink: 0;
}

.midi-btn:hover {
  background: #D0D0D0;
}

.midi-btn:active {
  border-color: #808080 #FFFFFF #FFFFFF #808080;
  transform: translate(1px, 1px);
}

.midi-btn-play {
  color: #006600;
  font-size: 0.9rem;
}

.midi-btn-stop {
  color: #CC0000;
  font-size: 0.75rem;
}

.midi-volume-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}

.midi-vol-icon {
  font-size: 0.7rem;
  flex-shrink: 0;
}

.midi-volume {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #333333;
  border: 1px inset #808080;
  outline: none;
  cursor: pointer;
}

.midi-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 14px;
  background: #C0C0C0;
  border: 2px solid;
  border-color: #FFFFFF #808080 #808080 #FFFFFF;
  cursor: pointer;
}

.midi-volume::-moz-range-thumb {
  width: 10px;
  height: 14px;
  background: #C0C0C0;
  border: 2px solid;
  border-color: #FFFFFF #808080 #808080 #FFFFFF;
  cursor: pointer;
}

.midi-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: #888888;
}

.midi-status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444444;
  flex-shrink: 0;
  transition: background 0.2s;
}

.midi-status-light.playing {
  background: #00FF00;
  box-shadow: 0 0 6px #00FF00;
  animation: blink 1s step-end infinite;
}

.midi-status-light.paused {
  background: #FFAA00;
  box-shadow: 0 0 6px #FFAA00;
}

.midi-status-text {
  font-style: italic;
}

/* ============================================================
   8c. IRC CHAT WINDOW
   ============================================================ */
#irc-chat {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 0.65rem;
  background: #000000;
  border: 2px inset #808080;
  padding: 3px;
}

#irc-nick-bar {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
  align-items: center;
}

.irc-label {
  color: #FFFF00;
  font-weight: bold;
  flex-shrink: 0;
}

.irc-input {
  background: #0a0a0a;
  border: 1px inset #444;
  color: #00FF00;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  padding: 2px 4px;
  outline: none;
  flex: 1;
}

.irc-input:focus {
  border-color: #00FF00;
}

.irc-btn {
  background: #C0C0C0;
  border: 2px solid;
  border-color: #FFF #808080 #808080 #FFF;
  font-size: 0.6rem;
  padding: 2px 6px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

.irc-btn:active {
  border-color: #808080 #FFF #FFF #808080;
}

#irc-messages {
  background: #0a0a0a;
  border: 1px inset #333;
  height: 220px;
  overflow-y: auto;
  padding: 3px;
  margin-bottom: 3px;
  scrollbar-width: thin;
  scrollbar-color: #444 #0a0a0a;
}

#irc-messages::-webkit-scrollbar {
  width: 6px;
}
#irc-messages::-webkit-scrollbar-track {
  background: #0a0a0a;
}
#irc-messages::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.irc-line {
  word-wrap: break-word;
  line-height: 1.4;
  padding: 1px 0;
}

.irc-nick {
  font-weight: bold;
  margin-right: 2px;
}

.irc-msg {
  color: #CCCCCC;
}

.irc-system {
  color: #888888;
  font-style: italic;
}

.irc-emote {
  color: #FF66FF;
  font-style: italic;
}

.irc-join {
  color: #00FF00;
}

.irc-part {
  color: #FF4444;
}

#irc-input-bar {
  margin-bottom: 3px;
}

#irc-input-bar .irc-input {
  width: 100%;
}

#irc-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.irc-status-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  flex-shrink: 0;
}

.irc-status-light.connected {
  background: #00FF00;
  box-shadow: 0 0 4px #00FF00;
}

.irc-status-text {
  color: #888;
  font-size: 0.6rem;
}

/* ============================================================
   8d. LANGUAGE SELECTOR
   ============================================================ */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 5px 8px;
  margin: 3px 0;
  background: #000066;
  border: 2px solid;
  border-color: #6666FF #000033 #000033 #6666FF;
  color: #CCCCFF;
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover {
  background: #000099;
  border-color: #9999FF #000066 #000066 #9999FF;
  color: #FFFFFF;
}

.lang-btn.active {
  background: #000088;
  border-color: #FFFF00 #000033 #000033 #FFFF00;
  color: #FFFF00;
  font-weight: bold;
}

.lang-flag {
  font-size: 1.1rem;
}

.lang-name {
  flex: 1;
  text-align: left;
}

.lang-check {
  font-size: 0.9rem;
}

/* ============================================================
   9. CONTENIDO PRINCIPAL
   ============================================================ */
#content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.content-section {
  border: 3px solid;
  border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
  background: #000033;
  padding: 12px 10px;
}

.section-title {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  text-align: center;
  margin-bottom: 8px;
  word-break: break-word;
}

.section-star {
  color: #FFD700;
  display: inline-block;
}

.section-sub {
  text-align: center;
  color: #CCCCCC;
  font-size: 0.8rem;
  margin-bottom: 10px;
  font-family: 'Verdana', 'Arial', sans-serif;
}

.new-badge {
  display: inline-block;
  background: #FF0000;
  color: #FFFFFF;
  font-family: 'Impact', sans-serif;
  font-size: 0.75rem;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.news-article {
  margin: 10px 0;
  padding: 8px;
  border: 1px dotted #333399;
}

.article-title {
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: clamp(0.95rem, 3vw, 1.3rem);
  color: #FF6600;
  text-shadow: 0 0 4px #FF3300;
  margin-bottom: 4px;
}

.article-icon {
  font-size: 1.2rem;
  margin-right: 4px;
}

.article-date {
  font-size: 0.7rem;
  color: #9999CC;
  font-style: italic;
  margin-bottom: 6px;
  border-bottom: 1px dashed #333366;
  padding-bottom: 4px;
}

.article-body {
  font-size: 0.9rem;
  color: #CCCCEE;
  margin: 6px 0;
  line-height: 1.6;
}

.article-gif {
  text-align: center;
  font-size: 2rem;
  margin: 8px 0 4px;
}

.gif-cellphone {
  display: inline-block;
  animation: phone-shake 1s ease-in-out infinite;
}

@keyframes phone-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.gif-waves {
  display: inline-block;
  animation: waves-pulse 1.5s ease-in-out infinite;
}

@keyframes waves-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.rotate {
  display: inline-block;
  animation: spin-star 2s linear infinite;
}

/* ============================================================
   10. GALERÍA DE GIFS
   ============================================================ */
.gallery-subtitle {
  text-align: center;
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #FFD700;
  margin-bottom: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  padding: 4px;
}

.gallery-item {
  text-align: center;
  border: 2px inset #808080;
  padding: 8px 4px;
  background: #000022;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
  border-color: #FFFF00;
}

.gif-wrapper {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gif-label {
  display: block;
  font-size: 0.6rem;
  color: #00FF00;
  font-family: 'Verdana', 'Arial', sans-serif;
  margin-top: 4px;
}


.gif-sphere {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066FF, #00CCFF, #0066FF);
  background-size: 200% 200%;
  animation: sphere-spin 2s linear infinite;
  position: relative;
  box-shadow: 0 0 12px #0066FF;
}

@keyframes sphere-spin {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

.sphere-continent {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 15px;
  background: #00DD00;
  border-radius: 40% 60% 40% 60%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

.gif-flame {
  position: relative;
  width: 60px;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.flame-1, .flame-2, .flame-3 {
  animation: flame-dance 0.6s ease-in-out infinite alternate;
}

.flame-1 { animation-delay: 0s; }
.flame-2 { animation-delay: 0.2s; }
.flame-3 { animation-delay: 0.4s; }

@keyframes flame-dance {
  0% { transform: scaleY(0.7) translateY(0); }
  100% { transform: scaleY(1.3) translateY(-4px); }
}

.gif-construction {
  text-align: center;
}

.const-icon {
  font-size: 2rem;
  animation: const-bounce 0.5s ease-in-out infinite alternate;
}

@keyframes const-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.const-bar {
  display: block;
  height: 4px;
  margin-top: 4px;
  background: repeating-linear-gradient(90deg, #FF6600 0px, #FF6600 8px, #FFFFFF 8px, #FFFFFF 16px);
  animation: bar-scroll 0.8s linear infinite;
}

@keyframes bar-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 16px 0; }
}

.gif-dance .dance-figure {
  display: inline-block;
  animation: dance-move 0.4s ease-in-out infinite alternate;
  font-size: 2rem;
}

@keyframes dance-move {
  0% { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(-8px) rotate(5deg); }
}

.gif-email {
  position: relative;
}

.email-icon {
  font-size: 1.8rem;
  animation: email-float 1.5s ease-in-out infinite;
}

@keyframes email-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.email-arrow {
  display: block;
  font-size: 1rem;
  animation: arrow-move 1s ease-in-out infinite alternate;
}

@keyframes arrow-move {
  0% { transform: translateX(-5px); opacity: 0.3; }
  100% { transform: translateX(5px); opacity: 1; }
}

.gif-computer {
  position: relative;
}

.comp-icon {
  font-size: 2rem;
}

.comp-blink {
  position: absolute;
  top: -4px;
  right: -8px;
  font-size: 0.8rem;
  animation: blink 0.3s step-end infinite;
}

.gif-star .star-icon {
  font-size: 2rem;
  animation: twinkle 0.8s ease-in-out infinite;
}

.gif-new .new-icon {
  background: #FF0000;
  color: #FFFFFF;
  font-family: 'Impact', sans-serif;
  font-size: 0.9rem;
  padding: 4px 10px;
  display: inline-block;
}

/* ============================================================
   11. ENLACES
   ============================================================ */
.links-list {
  list-style: none;
  padding: 0;
}

.link-item {
  padding: 6px 8px;
  margin: 4px 0;
  border: 1px solid;
  border-color: #333366 #000011 #000011 #333366;
  background: linear-gradient(90deg, #000044 0%, #000033 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  transition: all 0.2s;
}

.link-item:hover {
  border-color: #6666AA;
  background: #000066;
}

.link-icon {
  font-size: 1rem;
}

.fake-link {
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: #00FFFF;
  cursor: pointer;
  text-decoration: none;
}
.fake-link:hover {
  color: #FF00FF;
  text-shadow: 0 0 8px #FF00FF;
}

.link-desc {
  width: 100%;
  font-size: 0.7rem;
  color: #8888AA;
  font-style: italic;
}

/* ============================================================
   12. DESCARGAS
   ============================================================ */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.download-item {
  border: 3px solid;
  border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
  background: #000044;
  padding: 10px 6px;
  text-align: center;
  transition: transform 0.2s;
}

.download-item:hover {
  transform: scale(1.03);
  border-color: #FFFF00 #808080 #808080 #FFFF00;
}

.dl-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 4px;
}

.dl-name {
  display: block;
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 2px;
}

.dl-size {
  display: block;
  font-size: 0.6rem;
  color: #8888AA;
  margin-bottom: 6px;
}

.dl-progress {
  height: 8px;
  background: #000000;
  border: 1px inset #808080;
  margin-bottom: 6px;
  overflow: hidden;
}

.dl-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0000FF, #00FFFF);
  animation: progress-fill 3s ease-in-out infinite;
}

@keyframes progress-fill {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 0%; }
}

.retro-btn {
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 6px 14px;
  background: var(--win-bg);
  color: #000000;
  border: 3px solid;
  border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.1s;
}

.retro-btn:hover {
  border-color: #FFFF00 var(--border-dark) var(--border-dark) #FFFF00;
  background: #D0D0D0;
}

.retro-btn:active {
  border-color: var(--border-dark) var(--border-light) var(--border-light) var(--border-dark);
  transform: translate(1px, 1px);
}

.submit-btn {
  font-size: 0.8rem;
  padding: 8px 20px;
  background: #000088;
  color: #FFFF00;
}

.submit-btn:hover {
  background: #0000AA;
}

/* ============================================================
   13. WEBMASTER SECTION
   ============================================================ */
.webmaster-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  border: 2px inset #808080;
  background: #000044;
}

.wm-avatar {
  flex-shrink: 0;
}

.wm-avatar-icon {
  font-size: 4rem;
  display: block;
  animation: wm-glow 2s ease-in-out infinite;
}

@keyframes wm-glow {
  0%, 100% { filter: drop-shadow(0 0 4px #FFFF00); }
  50% { filter: drop-shadow(0 0 12px #FF6600); }
}

.wm-name {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: bold;
}

.wm-title {
  font-size: 0.75rem;
  color: #8888AA;
  font-style: italic;
  margin-bottom: 6px;
}

.wm-bio {
  font-size: 0.85rem;
  color: #CCCCEE;
  margin: 6px 0;
}

.wm-email, .wm-icq, .wm-update {
  font-size: 0.8rem;
  margin: 3px 0;
  color: #AAAACC;
}

.email-link {
  color: #00FF00;
  font-family: 'Courier New', monospace;
}

.webmaster-tip {
  margin-top: 10px;
  padding: 8px;
  border: 1px dashed #6666AA;
  background: #000055;
}

.tip-title {
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #FF6600;
  margin-bottom: 4px;
}

.tip-text {
  font-size: 0.8rem;
  color: #CCCCEE;
}

/* ============================================================
   14. LIBRO DE VISITAS
   ============================================================ */
.gb-form {
  padding: 10px;
  border: 2px inset #808080;
  background: #000044;
  margin-bottom: 12px;
}

.form-row {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.form-label {
  display: block;
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #FFD700;
  min-width: 140px;
}

.form-input, .form-textarea {
  flex: 1;
  min-width: 200px;
  padding: 6px 8px;
  background: #000022;
  border: 2px inset var(--border-dark);
  color: #00FF00;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: #00FFFF;
  box-shadow: 0 0 6px #00FFFF;
}

.form-textarea {
  resize: vertical;
}

.form-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-label {
  font-size: 0.8rem;
  color: #FFD700;
  font-family: 'Verdana', 'Arial', sans-serif;
}

.stars {
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.star-select {
  color: #444444;
  transition: color 0.2s;
  cursor: pointer;
}

.star-select.active {
  color: #FFD700;
  text-shadow: 0 0 6px #FFD700;
}

.star-select:hover {
  color: #FFAA00;
}

.gb-entries {
  max-height: 400px;
  overflow-y: auto;
}

.gb-entry {
  padding: 8px;
  margin: 6px 0;
  border: 1px solid;
  border-color: #333366 #000011 #000011 #333366;
  background: #000044;
}

.entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.entry-name {
  font-family: 'Verdana', 'Arial', sans-serif;
  font-weight: bold;
  color: #00FFFF;
  font-size: 0.85rem;
}

.entry-date {
  font-size: 0.65rem;
  color: #8888AA;
}

.entry-stars {
  font-size: 0.75rem;
  color: #FFD700;
  margin-left: auto;
}

.entry-text {
  font-size: 0.85rem;
  color: #CCCCEE;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
#footer {
  margin-top: 2px;
  padding: 12px 8px;
  border: 3px solid;
  border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
  background: linear-gradient(180deg, #000044, #000022);
  text-align: center;
  width: 100%;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.footer-badge {
  font-size: 0.6rem;
  padding: 3px 6px;
  background: #000066;
  border: 1px solid;
  border-color: #6666FF #000033 #000033 #6666FF;
  color: #FFD700;
  font-family: 'Verdana', 'Arial', sans-serif;
  white-space: nowrap;
}

.footer-counter {
  margin: 10px 0;
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #CCCCCC;
}

.footer-counter-text {
  color: #9999CC;
}

.footer-digits {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #00FF00;
  text-shadow: 0 0 6px #00FF00;
}

.footer-links {
  margin: 10px 0;
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.8rem;
}

.footer-links a {
  color: #00FFFF;
  padding: 0 4px;
}

.footer-sep {
  color: #444466;
  margin: 0 2px;
}

.footer-copy {
  margin: 10px 0;
  font-size: 0.7rem;
  color: #8888AA;
}

.footer-disclaimer {
  font-size: 0.6rem;
  color: #666688;
  margin-top: 2px;
}

.footer-midi {
  font-size: 0.65rem;
  color: #FF6600;
  margin-top: 4px;
  animation: blink 1.5s step-end infinite;
}

.footer-signature {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #333366;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #00FF00;
}

.sig-text {
  display: block;
  margin-bottom: 4px;
}

.sig-animation {
  display: inline-block;
  font-size: 1rem;
}

.footer-author {
  text-align: center;
  padding: 6px 0 4px;
  border-top: 1px dashed #333399;
  margin-top: 6px;
}

.author-text {
  font-size: 0.75rem;
  font-family: 'Verdana', 'Arial', sans-serif;
  color: #CCCCCC;
}

.author-link {
  color: #00FFFF;
  font-weight: bold;
  text-decoration: underline;
}
.author-link:hover {
  color: #FF00FF;
  text-shadow: 0 0 8px #FF00FF;
}

/* ============================================================
   16. BSOD OVERLAY
   ============================================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay.hidden {
  display: none;
}

#bsod-overlay {
  background: #000080;
  cursor: default;
}

.bsod-content {
  max-width: 600px;
  padding: 20px;
  font-family: 'Courier New', 'Lucida Console', monospace;
}

.bsod-header {
  margin-bottom: 20px;
}

.bsod-title {
  font-size: 2rem;
  font-weight: bold;
  color: #C0C0C0;
  display: block;
  letter-spacing: 4px;
}

.bsod-subtitle {
  font-size: 1.2rem;
  color: #C0C0C0;
  display: block;
}

.bsod-body p {
  color: #C0C0C0;
  font-size: 0.9rem;
  margin: 4px 0;
  line-height: 1.4;
}

.bsod-spacer {
  height: 12px;
}

.bsod-blink {
  animation: blink 1s step-end infinite;
}

#konami-reward {
  background: rgba(0, 0, 0, 0.85);
}

.konami-content {
  background: linear-gradient(135deg, #000044, #330066);
  border: 4px solid;
  border-color: #FFD700 #996600 #996600 #FFD700;
  padding: 24px;
  text-align: center;
  max-width: 450px;
  animation: konami-enter 0.5s ease-out;
}

@keyframes konami-enter {
  0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.konami-content h2 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.konami-content p {
  color: #CCCCFF;
  font-size: 0.9rem;
  margin: 6px 0;
}

.konami-stars {
  font-size: 1.5rem;
  animation: twinkle 0.5s ease-in-out infinite;
}

.konami-power {
  font-family: 'Impact', sans-serif;
  font-size: 1.2rem;
  color: #FFFF00;
  text-shadow: 0 0 12px #FF6600;
}

.konami-small {
  font-size: 0.7rem !important;
  color: #8888AA !important;
}

/* ============================================================
   17. CLIPPY POPUP
   ============================================================ */
.clippy-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  animation: clippy-slide 0.4s ease-out;
}

@keyframes clippy-slide {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.clippy-window {
  background: #FFFFCC;
  border: 2px solid #000000;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  width: 280px;
  font-family: 'Verdana', 'Arial', sans-serif;
}

.clippy-header {
  background: #000080;
  color: #FFFFFF;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.clippy-icon {
  font-size: 1rem;
}

.clippy-title {
  flex: 1;
}

.clippy-close {
  background: #C0C0C0;
  border: 1px solid;
  border-color: #FFFFFF #808080 #808080 #FFFFFF;
  color: #000000;
  cursor: pointer;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.clippy-body {
  display: flex;
  padding: 10px;
  gap: 8px;
  align-items: flex-start;
}

.clippy-character {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.clippy-face {
  animation: clippy-wiggle 2s ease-in-out infinite;
}

@keyframes clippy-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.clippy-bubble {
  flex: 1;
}

.clippy-bubble p {
  font-size: 0.8rem;
  color: #000000;
  margin: 0;
}

.clippy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px 10px;
}

.clippy-btn {
  font-size: 0.65rem;
  padding: 4px 8px;
  background: #FFFFFF;
  border: 1px solid;
  border-color: #CCCCCC #666666 #666666 #CCCCCC;
  cursor: pointer;
  color: #000000;
  flex: 1;
  min-width: 60px;
}

.clippy-btn:hover {
  background: #EEEEFF;
  border-color: #000080;
}

/* ============================================================
   18. MOUSE TRAIL
   ============================================================ */
#mouse-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
}

.trail-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: trail-fade 0.8s ease-out forwards;
}

@keyframes trail-fade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.3) translateY(-20px); }
}

/* ============================================================
   19. FAKE POPUPS / MODALS
   ============================================================ */
.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9996;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popup-fade 0.3s ease-out;
}

@keyframes popup-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.popup-window {
  position: relative;
  background: #C0C0C0;
  border: 3px solid;
  border-color: #FFFFFF #808080 #808080 #FFFFFF;
  padding: 0;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
  font-family: 'Verdana', 'Arial', sans-serif;
  animation: popup-bounce 0.3s ease-out;
}

@keyframes popup-bounce {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.popup-titlebar {
  background: linear-gradient(90deg, #000080, #0000CC);
  color: #FFFFFF;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

.popup-titlebar .popup-icon {
  font-size: 0.9rem;
}

.popup-titlebar .popup-title {
  flex: 1;
}

.popup-close-btn {
  background: #C0C0C0;
  border: 1px solid;
  border-color: #FFFFFF #808080 #808080 #FFFFFF;
  color: #000000;
  cursor: pointer;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: bold;
}

.popup-body {
  padding: 16px;
  font-size: 0.85rem;
  color: #000000;
  text-align: center;
}

.popup-body .popup-icon-big {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}

.popup-body .popup-text {
  margin: 8px 0;
}

.popup-ok-btn {
  margin-top: 12px;
  min-width: 80px;
}

/* ============================================================
   20. DOWNLOAD PROGRESS SIMULATION
   ============================================================ */
.download-progress-modal .popup-body {
  text-align: left;
}

.dl-modal-name {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.dl-modal-source {
  font-size: 0.65rem;
  color: #666666;
  margin-bottom: 8px;
}

.dl-modal-bar-container {
  height: 20px;
  background: #FFFFFF;
  border: 2px inset #808080;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}

.dl-modal-bar {
  height: 100%;
  background: linear-gradient(90deg, #0000FF, #0099FF, #0000FF);
  background-size: 200% 100%;
  animation: dl-bar-shine 1s linear infinite;
  transition: width 0.3s;
}

@keyframes dl-bar-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dl-modal-status {
  font-size: 0.7rem;
  color: #006600;
  margin: 4px 0;
}

.dl-modal-eta {
  font-size: 0.65rem;
  color: #666666;
}

/* ============================================================
   21. SCROLLBAR (retro)
   ============================================================ */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #C0C0C0;
  border: 1px inset #808080;
}

::-webkit-scrollbar-thumb {
  background: #000080;
  border: 2px solid;
  border-color: #6666FF #000033 #000033 #6666FF;
}

::-webkit-scrollbar-thumb:hover {
  background: #0000AA;
}

/* ============================================================
   22. RESPONSIVE
   ============================================================ */
@media (max-width: 780px) {
  #main-area {
    grid-template-columns: 1fr;
  }

  #sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    order: 2;
  }

  #content {
    order: 1;
  }

  .webmaster-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .downloads-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  #irc-messages {
    height: 160px;
  }

  .midi-btn {
    width: 36px;
    height: 32px;
    font-size: 1rem;
  }

  .midi-volume-wrap {
    min-width: 60px;
  }

  .counter-digit {
    width: 22px;
    height: 32px;
    font-size: 1.2rem;
  }

  .fun-btn {
    width: 75px;
    height: 75px;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  #container {
    padding: 2px;
  }

  #sidebar {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-badges {
    gap: 4px;
  }

  .footer-badge {
    font-size: 0.5rem;
  }

  .form-label {
    min-width: 100%;
  }

  .fun-btn {
    width: 65px;
    height: 65px;
    top: 6px;
    right: 6px;
    font-size: 0.55rem;
    border-width: 2px;
    padding: 4px;
  }

  .form-input, .form-textarea {
    min-width: 100%;
  }

  .entry-stars {
    margin-left: 0;
    width: 100%;
  }

  .clippy-popup {
    right: 5px;
    bottom: 5px;
  }

  .clippy-window {
    width: 240px;
  }

  #irc-messages {
    height: 120px;
  }

  #banner {
    padding: 10px 4px 8px;
  }

  #banner h1 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .fire-left, .fire-right {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.65rem;
  }

  .content-section {
    padding: 8px 6px;
  }

  .news-article {
    padding: 6px 4px;
  }

  .article-title {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  }

  .article-body {
    font-size: 0.8rem;
  }

  .article-gif {
    font-size: 1.5rem;
  }

  .midi-btn {
    width: 40px;
    height: 36px;
    font-size: 1.1rem;
  }

  .irc-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .retro-btn {
    padding: 8px 12px;
    font-size: 0.65rem;
  }

  .konami-content {
    padding: 16px;
    max-width: 90%;
  }

  .konami-content h2 {
    font-size: 1.2rem;
  }

  .bsod-content {
    padding: 12px;
    max-width: 95%;
  }

  .bsod-title {
    font-size: 1.5rem;
  }

  .bsod-subtitle {
    font-size: 1rem;
  }

  .bsod-body p {
    font-size: 0.75rem;
  }

  .clippy-popup {
    right: 5px;
    bottom: 5px;
  }

  .clippy-window {
    width: 240px;
  }

  .links-list {
    padding: 0;
  }

  .link-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-item {
    padding: 8px 4px;
  }

  .dl-icon {
    font-size: 1.5rem;
  }

  .dl-name {
    font-size: 0.65rem;
  }

  .gallery-grid {
    gap: 4px;
  }

  .gallery-item {
    padding: 6px 2px;
  }

  .entry-stars {
    margin-left: 0;
    width: 100%;
  }

  .footer-badges {
    gap: 3px;
  }

  .footer-badge {
    font-size: 0.45rem;
    padding: 2px 4px;
  }

  .footer-links {
    font-size: 0.65rem;
  }

  .popup-window {
    min-width: 200px;
    max-width: 90vw;
  }

  .popup-body {
    padding: 12px;
    font-size: 0.8rem;
  }

  .popup-close-btn {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }

  .fun-btn {
    width: 65px;
    height: 65px;
    top: 6px;
    right: 6px;
    font-size: 0.55rem;
    border-width: 2px;
    padding: 4px;
  }
}

@media (max-height: 500px) {
  #banner {
    padding: 8px 6px;
  }

  #banner h1 {
    font-size: 1.4rem;
  }
}

/* ============================================================
   23. ACCESIBILIDAD
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   99. FUN BUTTON — Super Fun Button (Top Right)
   ============================================================ */
.fun-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FF4444, #CC0000);
  border: 3px solid #FFFF00;
  color: #FFFF00;
  font-family: 'Verdana', 'Arial', sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 1px 1px 2px #000000;
  box-shadow:
    0 0 0 2px #000000,
    0 0 0 4px #FF6600,
    0 0 12px #FF0000,
    inset 0 -4px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
  padding: 6px;
  transition: all 0.15s;
  animation: fun-btn-glow 1.5s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
}

@media (hover: hover) {
  .fun-btn:hover {
    transform: scale(1.15);
    border-color: #FFFFFF;
    color: #FFFFFF;
    box-shadow:
      0 0 0 2px #000000,
      0 0 0 4px #FFFF00,
      0 0 20px #FF4444,
      inset 0 -4px 8px rgba(0,0,0,0.4);
    background: radial-gradient(circle at 35% 35%, #FF6666, #DD0000);
  }
}

.fun-btn:active {
  transform: scale(0.95);
}

@keyframes fun-btn-glow {
  0% { box-shadow: 0 0 0 2px #000000, 0 0 0 4px #FF6600, 0 0 8px #FF0000, inset 0 -4px 8px rgba(0,0,0,0.4); }
  100% { box-shadow: 0 0 0 2px #000000, 0 0 0 4px #FFFF00, 0 0 20px #FF4444, 0 0 30px #FF0000, inset 0 -4px 8px rgba(0,0,0,0.4); }
}

/* ============================================================
   FIN DE STYLE.CSS
   ============================================================ */
