/* ===== BARAKI STYLE — Hub Arcade Web 1.0 / 2000 Kitch ===== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Comic+Neue:wght@700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Comic Sans MS', 'Comic Neue', cursive, sans-serif;
  background: #0a0015;
  color: #ffe066;
  min-height: 100vh;
  overflow-x: hidden;
}

.stars-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #0a0015;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ff00ff, transparent),
    radial-gradient(2px 2px at 40px 70px, #00ff88, transparent),
    radial-gradient(1px 1px at 90px 40px, #ffff00, transparent),
    radial-gradient(2px 2px at 130px 80px, #00ffff, transparent),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(0, 255, 136, 0.03) 19px, rgba(0, 255, 136, 0.03) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 0, 255, 0.03) 19px, rgba(255, 0, 255, 0.03) 20px);
  background-size: 200px 150px, 200px 150px, 200px 150px, 200px 150px, 20px 20px, 20px 20px;
  animation: bg-drift 40s linear infinite;
}

@keyframes bg-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 200px 150px, -200px 150px, 100px -75px, -100px 75px, 0 0, 0 0; }
}

.top-marquee {
  display: block;
  background: linear-gradient(90deg, #ff0080, #7928ca, #ff0080);
  color: #ffff00;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 3px solid #00ff88;
  text-shadow: 1px 1px 0 #000;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 10px 10px;
  flex-wrap: wrap;
}

.baraki-logo {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  border: 3px ridge #ffcc00;
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.45), 4px 4px 0 #000;
  background: #1a1008;
}

.header-text {
  text-align: center;
}

.neon-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2.5vw, 22px);
  line-height: 1.6;
  animation: blink-neon 1.2s step-start infinite;
}

.neon-green {
  display: block;
  color: #39ff14;
  text-shadow: 0 0 5px #39ff14, 0 0 20px #0f0, 2px 2px 0 #000;
}

.neon-pink {
  display: block;
  color: #ff2d95;
  margin-top: 6px;
  text-shadow: 0 0 5px #ff2d95, 0 0 20px #f0f, 2px 2px 0 #000;
}

@keyframes blink-neon {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.55; }
}

.tagline {
  margin-top: 10px;
  font-size: 14px;
  color: #ffcc00;
}

.baraki-badge {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(90deg, #ffcc00, #ff6600, #ffcc00);
  color: #000;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 10px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  animation: classic-blink 1.6s step-start infinite;
}

.under-construction {
  text-align: center;
  color: #ff0;
  font-size: 13px;
  padding: 4px;
  background: #330033;
  border-top: 2px dashed #ff0;
  border-bottom: 2px dashed #ff0;
}

blink, .ad-blink {
  animation: classic-blink 1s step-start infinite;
}

@keyframes classic-blink {
  50% { opacity: 0; }
}

.layout-3col {
  display: grid;
  grid-template-columns: 170px 1fr 210px;
  gap: 12px;
  max-width: 1100px;
  margin: 16px auto;
  padding: 0 8px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-3col {
    grid-template-columns: 1fr;
  }
  .col-center { order: 1; }
  .col-left { order: 2; }
  .col-right { order: 3; }
  .col-left, .col-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
}

/* BANNER ADS */
.banner-ad {
  background: linear-gradient(180deg, #220044, #110022);
  border: 3px ridge #ff00ff;
  padding: 10px 6px;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
}

.banner-ad.pink { border-color: #ff6699; background: linear-gradient(180deg, #440022, #220011); }
.banner-ad.green { border-color: #39ff14; background: linear-gradient(180deg, #003311, #001a08); }
.banner-ad.vertical { min-height: 120px; }

.ad-label {
  font-size: 9px;
  color: #aaa;
  letter-spacing: 2px;
  margin-bottom: 6px;
  border-bottom: 1px dotted #666;
  padding-bottom: 2px;
}

.ad-flash {
  color: #ff0;
  font-weight: bold;
  animation: classic-blink 0.6s step-start infinite;
}

.banner-ad .tiny {
  font-size: 11px;
  color: #ccc;
  margin: 4px 0;
  line-height: 1.3;
}

.ad-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #ffff00, #ff9900);
  color: #000;
  font-weight: bold;
  font-size: 11px;
  text-decoration: none;
  border: 2px outset #fff;
  cursor: pointer;
  animation: classic-blink 1.4s step-start infinite;
}

.best-viewed-box {
  background: #000;
  border: 3px ridge #00ff00;
  padding: 8px;
  text-align: center;
  margin-top: 8px;
}

.best-viewed-box pre {
  color: #0f0;
  font-size: 10px;
  font-family: 'Press Start 2P', monospace;
  line-height: 1.5;
}

/* CENTRE ARCADE */
.section-title {
  text-align: center;
  color: #00ff88;
  font-size: 16px;
  text-shadow: 0 0 8px #0f8;
  margin-bottom: 4px;
}

.section-sub {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 14px;
}

.arcade-grid {
  display: grid;
  gap: 14px;
}

.cartouche {
  background: linear-gradient(180deg, #1a0033, #0d001a);
  border: 5px ridge #00ffff;
  padding: 14px;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.25), 4px 4px 0 #000;
  position: relative;
}

.cartouche.available { border-color: #39ff14; box-shadow: 0 0 18px rgba(57, 255, 20, 0.3), 4px 4px 0 #000; }
.cartouche.coming { border-color: #ffcc00; }
.cartouche.mystery { border-color: #ff00ff; }

.cartouche-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.prep-badge {
  display: inline-block;
  background: #ff0;
  color: #c00;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 8px;
  border: 2px solid #c00;
  margin-bottom: 8px;
}

.cartouche-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 10px;
  border: 3px inset #333;
  background: #000022;
  padding: 12px;
}

.pacmoule-art {
  background: radial-gradient(circle at 50% 40%, #220044, #000022);
}

.kart-art {
  background: radial-gradient(circle at 50% 40%, #332200, #000022);
  opacity: 0.85;
}

.mystery-art {
  background: radial-gradient(circle at 50% 40%, #330033, #000011);
}

.cartouche-emoji {
  font-size: 48px;
  filter: drop-shadow(0 0 8px #ff0);
}

.mystery-q {
  font-family: 'Press Start 2P', monospace;
  font-size: 56px;
  color: #ff00ff;
  text-shadow: 0 0 20px #f0f;
  animation: classic-blink 1.2s step-start infinite;
}

.cartouche-game-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #39ff14;
  margin-top: 8px;
  text-shadow: 0 0 8px #0f0;
}

.cartouche-game-sub {
  font-size: 12px;
  color: #ff99cc;
  margin-top: 4px;
}

.cartouche h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: #ffff00;
  margin-bottom: 8px;
}

.cartouche-desc {
  font-size: 13px;
  color: #ddd;
  line-height: 1.45;
  margin-bottom: 12px;
}

.cartouche-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.kitch-btn {
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 14px;
  background: linear-gradient(180deg, #ff66aa, #cc0066);
  color: #fff;
  border: 3px outset #ff99cc;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 3px 3px 0 #000;
  text-decoration: none;
  display: inline-block;
}

.kitch-btn.play-btn {
  background: linear-gradient(180deg, #66ff88, #00aa44);
  border-color: #99ffbb;
  color: #003300;
  text-shadow: none;
}

.kitch-btn.secondary-btn {
  background: linear-gradient(180deg, #ffff66, #cc9900);
  border-color: #ffff99;
  color: #332200;
  text-shadow: none;
}

.kitch-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.kitch-btn:active:not(:disabled) {
  border-style: inset;
  box-shadow: 1px 1px 0 #000;
  transform: translate(2px, 2px);
}

.kitch-btn:disabled {
  background: #555;
  border-color: #777;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.cartouche-status {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
}

.cartouche-status.on { color: #39ff14; }
.cartouche-status.soon { color: #ffcc00; }
.cartouche-status.mystery-s { color: #ff00ff; }

/* RIGHT COL */
.visitor-counter {
  background: #000;
  border: 4px ridge #00ff00;
  padding: 10px;
  text-align: center;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.counter-title {
  font-size: 10px;
  color: #0f0;
  margin-bottom: 6px;
}

.counter-digits {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.counter-digits span {
  display: inline-block;
  width: 22px;
  height: 28px;
  line-height: 28px;
  background: #001100;
  border: 2px inset #0a0;
  color: #0f0;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  text-shadow: 0 0 6px #0f0;
}

.counter-sub {
  font-size: 9px;
  color: #6f6;
  margin-top: 6px;
}

.hall-of-fame {
  background: #001a00;
  border: 4px ridge #ffcc00;
  padding: 10px;
  margin-bottom: 10px;
}

.hall-of-fame h3 {
  text-align: center;
  color: #ffcc00;
  font-size: 14px;
  margin-bottom: 4px;
}

.hof-sub {
  text-align: center;
  font-size: 10px;
  color: #aaa;
  margin-bottom: 8px;
}

.hof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  font-family: 'Press Start 2P', monospace;
}

.hof-table th,
.hof-table td {
  border: 1px solid #446622;
  padding: 4px 3px;
  text-align: center;
  color: #9f9;
}

.hof-table th {
  background: #003300;
  color: #ff0;
  font-size: 8px;
}

.hof-link {
  display: block;
  text-align: center;
  margin-top: 8px;
}

.guestbook {
  background: #1a1020;
  border: 3px ridge #ffcc00;
  padding: 10px;
  margin-bottom: 10px;
}

.guestbook h3 {
  text-align: center;
  color: #ffcc00;
  font-size: 14px;
  margin-bottom: 8px;
}

.gb-entry {
  background: #0d0810;
  border: 1px solid #443;
  padding: 6px;
  margin-bottom: 6px;
  font-size: 11px;
}

.gb-entry strong { color: #ff66aa; }
.gb-entry em { color: #888; font-size: 9px; }
.gb-entry p { color: #ddd; margin-top: 2px; }

/* WIN95 */
.win95-panel {
  margin-bottom: 10px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #0a0a0a #0a0a0a #dfdfdf;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  color: #000;
}

.win95-panel-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
}

.win95-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 6px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.3;
}

.win95-check input {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  accent-color: #000080;
  flex-shrink: 0;
}

.win95-btn {
  display: block;
  margin: 0 10px 10px;
  padding: 4px 10px;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  background: #c0c0c0;
  border: 2px outset #fff;
  color: #000;
  cursor: pointer;
  width: calc(100% - 20px);
}

.win95-btn:active { border-style: inset; }

.popup-toggle-panel.is-blocked .win95-panel-title {
  background: linear-gradient(90deg, #800000, #c04040);
}

.midi-status {
  font-size: 10px;
  color: #000080;
  padding: 8px 10px 0;
  line-height: 1.4;
  white-space: pre-wrap;
}

.audio-btn {
  font-weight: bold;
}

/* FOOTER */
.site-footer {
  margin-top: 24px;
  border-top: 4px double #ff00ff;
  background: #050010;
  padding: 10px;
  text-align: center;
}

.site-footer marquee {
  color: #ff99cc;
  font-size: 12px;
  margin-bottom: 8px;
}

.footer-bestline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 10px auto;
  padding: 8px 12px;
  max-width: 720px;
  background: #000;
  border: 3px ridge #00ff00;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  line-height: 1.5;
}

.footer-bestline .best-viewed { color: #ffff00; }
.footer-bestline .footer-visits { color: #39ff14; }
.footer-bestline .footer-visits strong { color: #fff; }

.footer-links {
  font-size: 12px;
  margin: 8px 0;
}

.footer-links a {
  color: #00ffff;
}

.footer-links a:hover {
  color: #ffff00;
  background: #ff00ff;
}

.netscape-badge {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

/* POPUPS */
.kitch-popup {
  position: fixed;
  z-index: 9999;
  width: 320px;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  animation: popup-in 0.25s ease-out;
  user-select: none;
}

@keyframes popup-in {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.kitch-popup-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
  font-weight: bold;
  font-size: 11px;
}

.kitch-popup-close {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 2px outset #fff;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  line-height: 10px;
  padding: 0;
  cursor: pointer;
}

.kitch-popup-body {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #0a0a0a #0a0a0a #dfdfdf;
  padding: 16px 12px;
  text-align: center;
  color: #000;
}

.kitch-popup-body .popup-icon { font-size: 36px; margin-bottom: 8px; }
.kitch-popup-body .popup-msg { font-size: 13px; font-weight: bold; margin-bottom: 12px; line-height: 1.4; }

.kitch-popup-click {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(180deg, #ffff00, #ff6600);
  border: 3px outset #fff;
  color: #c00;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  animation: classic-blink 0.8s step-start infinite;
}

.kitch-popup-footer {
  background: #c0c0c0;
  border-top: 1px solid #808080;
  padding: 4px 8px;
  font-size: 9px;
  color: #666;
  text-align: right;
}
