@font-face {
  font-family: "VT323";
  src: url("assets/fonts/VT323.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Share Tech Mono";
  src: url("assets/fonts/ShareTechMono.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --hot-pink: #ff2d78;
  --electric-blue: #00f5ff;
  --lime: #39ff14;
  --gold: #ffd700;
  --purple: #bf00ff;
  --bg: #000008;
  --dark-panel: #08001a;
  --panel-border: #ff2d78;
}

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

body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(0, 245, 255, 0.03) 31px,
      rgba(0, 245, 255, 0.03) 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 31px,
      rgba(0, 245, 255, 0.03) 31px,
      rgba(0, 245, 255, 0.03) 32px
    );
  font-family: "VT323", "Courier New", monospace;
  font-size: 18px;
  color: var(--electric-blue);
  min-height: 100vh;
  cursor: crosshair;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--electric-blue);
}

.marquee-bar {
  background: var(--hot-pink);
  color: #000;
  font-size: 16px;
  padding: 3px 0;
  font-family: "Share Tech Mono", "Courier New", monospace;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: scroll-left 20s linear infinite;
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-content {
  flex-shrink: 0;
}

.header-logo {
  margin: 0 auto 8px;
  width: 160px;
  height: 160px;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 12px var(--gold),
    0 0 30px rgba(255, 215, 0, 0.2);
  overflow: hidden;
}

.header-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#site-header {
  text-align: center;
  padding: 18px 12px 10px;
  border-bottom: 3px dashed var(--hot-pink);
  position: relative;
}

#site-header h1 {
  font-size: clamp(48px, 10vw, 96px);
  color: var(--gold);
  text-shadow:
    0 0 10px var(--gold),
    0 0 30px var(--hot-pink),
    4px 4px 0 var(--hot-pink);
  letter-spacing: 8px;
  line-height: 1;
  animation: flicker 6s infinite;
}

.sub-title {
  color: var(--lime);
  font-size: 22px;
  letter-spacing: 4px;
  margin-top: 4px;
  text-shadow: 0 0 8px var(--lime);
}

.header-meaning {
  color: var(--electric-blue);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.6;
}

.header-gif-left,
.header-gif-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-gif-left {
  left: 20px;
}

.header-gif-right {
  right: 20px;
}

#site-nav {
  background: var(--dark-panel);
  border-bottom: 2px solid var(--electric-blue);
  border-top: 2px solid var(--electric-blue);
  text-align: center;
  padding: 6px;
}

#site-nav a {
  color: var(--gold);
  text-decoration: none;
  font-size: 20px;
  margin: 0 10px;
  border: 1px solid var(--gold);
  padding: 2px 10px;
  display: inline-block;
  transition: all 0.1s;
}

#site-nav a:hover {
  background: var(--gold);
  color: #000;
  text-shadow: none;
}

#main-layout {
  display: table;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
  border-spacing: 10px;
}

#sidebar {
  display: table-cell;
  width: 190px;
  vertical-align: top;
}

#content {
  display: table-cell;
  vertical-align: top;
  padding-left: 10px;
}

.panel {
  border: 2px solid var(--panel-border);
  background: var(--dark-panel);
  margin-bottom: 12px;
  padding: 0;
}

.panel-title {
  background: var(--panel-border);
  color: #000;
  font-size: 15px;
  padding: 2px 8px;
  letter-spacing: 2px;
  font-family: "Share Tech Mono", "Courier New", monospace;
}

.panel-body {
  padding: 8px;
}

.gif-slot {
  width: 100%;
  min-height: 80px;
  border: 2px dashed var(--electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 245, 255, 0.4);
  font-size: 13px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  text-align: center;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.gif-slot img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.gif-slot:hover {
  border-color: var(--hot-pink);
}

.gif-slot .gif-label {
  position: absolute;
  font-size: 11px;
  bottom: 2px;
  right: 4px;
  color: rgba(255, 45, 120, 0.5);
}

#visitor-counter {
  text-align: center;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--lime);
}

#visitor-counter .count {
  font-size: 28px;
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold);
  display: block;
  letter-spacing: 4px;
}

.bc-button {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #1da0c3, #0f6a8a);
  color: #fff;
  text-decoration: none;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  padding: 8px;
  border: 2px solid var(--electric-blue);
  letter-spacing: 1px;
  animation: pulse-border 2s infinite;
  margin-bottom: 6px;
}

.bc-button:hover {
  background: var(--electric-blue);
  color: #000;
}

.section-header {
  font-size: 28px;
  color: var(--hot-pink);
  text-shadow: 0 0 10px var(--hot-pink);
  border-bottom: 1px dashed var(--hot-pink);
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.section-desc {
  font-size: 16px;
  color: rgba(0, 245, 255, 0.6);
  font-family: "Share Tech Mono", "Courier New", monospace;
  margin-bottom: 10px;
}

.hr-stars {
  text-align: center;
  color: var(--gold);
  font-size: 20px;
  margin: 14px 0;
  letter-spacing: 6px;
}

#about-text {
  font-size: 19px;
  line-height: 1.55;
  color: #b8e4ff;
  margin-bottom: 10px;
}

#about-text span.hi {
  color: var(--lime);
}

#about-text span.em {
  color: var(--gold);
}

#player-section {
  border: 2px solid var(--lime);
  background: var(--dark-panel);
  margin-top: 14px;
}

#player-title-bar {
  background: var(--lime);
  color: #000;
  padding: 3px 10px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#player-status {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}

#player-now-playing {
  padding: 6px 10px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

#player-track-list {
  max-height: 300px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}

#player-track-list::-webkit-scrollbar {
  width: 6px;
}

#player-track-list::-webkit-scrollbar-thumb {
  background: var(--lime);
}

.player-track {
  padding: 6px 10px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  color: var(--electric-blue);
  cursor: pointer;
  border-bottom: 1px solid rgba(57, 255, 20, 0.08);
  display: flex;
  gap: 8px;
  align-items: center;
  transition: background 0.1s;
}

.player-track:hover {
  background: rgba(57, 255, 20, 0.08);
}

.player-track.active {
  background: rgba(57, 255, 20, 0.12);
  color: var(--lime);
}

.player-track-num {
  color: var(--gold);
  width: 24px;
  flex-shrink: 0;
  text-align: right;
}

.player-track-title {
  flex: 1;
}

.player-track-icon {
  color: var(--lime);
  flex-shrink: 0;
}

#player-embed-area {
  min-height: 42px;
  background: rgba(0, 0, 0, 0.3);
}

#player-embed-placeholder {
  text-align: center;
  padding: 12px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 13px;
  color: rgba(57, 255, 20, 0.4);
}

#player-embed-area iframe {
  display: block;
  width: 100%;
  border: 0;
}

#chat-section {
  border: 2px solid var(--purple);
  background: var(--dark-panel);
  padding: 0;
  margin-top: 14px;
}

#chat-title-bar {
  background: var(--purple);
  color: #fff;
  padding: 3px 10px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-title-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.dot-r {
  background: #ff4444;
}

.dot-y {
  background: #ffcc00;
}

.dot-g {
  background: #44ff44;
}

#chat-log {
  height: 280px;
  overflow-y: auto;
  padding: 8px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  border-bottom: 1px solid var(--purple);
  scroll-behavior: smooth;
}

#chat-log::-webkit-scrollbar {
  width: 6px;
}

#chat-log::-webkit-scrollbar-thumb {
  background: var(--purple);
}

.chat-msg {
  margin-bottom: 5px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg .msg-time {
  color: rgba(191, 0, 255, 0.5);
}

.chat-msg .msg-user {
  color: var(--gold);
}

.chat-msg .msg-text {
  color: #ddd;
}

.chat-msg .msg-text a {
  color: var(--electric-blue);
}

.chat-system {
  color: rgba(57, 255, 20, 0.6);
  font-style: italic;
  margin-bottom: 4px;
}

#chat-input-area {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
}

#handle-wrapper {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

#chat-handle {
  width: 110px;
  background: #000;
  border: 1px solid var(--purple);
  border-right: none;
  color: var(--gold);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  padding: 4px 6px;
  min-width: 0;
}

#chat-handle[readonly] {
  opacity: 0.75;
  cursor: default;
}

#chat-handle:focus {
  outline: none;
  border-color: var(--electric-blue);
}

.btn-handle-edit {
  background: var(--dark-panel);
  border: 1px solid var(--purple);
  color: var(--purple);
  font-size: 14px;
  padding: 0 8px;
  cursor: pointer;
  transition:
    background 0.1s,
    color 0.1s;
  line-height: 1;
  flex-shrink: 0;
}

.btn-handle-edit:hover {
  background: var(--purple);
  color: #fff;
}

#chat-message {
  flex: 1;
  min-width: 0;
  background: #000;
  border: 1px solid var(--purple);
  color: #eee;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 14px;
  padding: 4px 6px;
}

#chat-message:focus {
  outline: none;
  border-color: var(--electric-blue);
}

#chat-send {
  background: var(--purple);
  border: none;
  color: #fff;
  font-family: "VT323", "Courier New", monospace;
  font-size: 18px;
  padding: 4px 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.1s;
}

#chat-send:hover {
  background: var(--hot-pink);
}

#chat-status {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 2px 8px;
  color: rgba(57, 255, 20, 0.6);
  background: rgba(0, 0, 0, 0.5);
}

#fb-config-notice {
  background: rgba(255, 45, 120, 0.12);
  border: 1px dashed var(--hot-pink);
  color: var(--hot-pink);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 8px;
  margin: 0 6px 6px;
  display: none;
}

#site-footer {
  text-align: center;
  border-top: 3px dashed var(--hot-pink);
  padding: 12px;
  margin-top: 20px;
  font-size: 15px;
  font-family: "Share Tech Mono", "Courier New", monospace;
  color: rgba(0, 245, 255, 0.4);
}

#site-footer a {
  color: var(--electric-blue);
}

.privacy-note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0, 245, 255, 0.25);
  line-height: 1.5;
}

.uc-badge {
  display: inline-block;
  background: repeating-linear-gradient(
    45deg,
    #000,
    #000 5px,
    #ffd700 5px,
    #ffd700 10px
  );
  color: #000;
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 3px 8px;
  font-weight: bold;
  letter-spacing: 1px;
}

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

@keyframes flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow:
      0 0 10px var(--gold),
      0 0 30px var(--hot-pink),
      4px 4px 0 var(--hot-pink);
  }
  20%,
  24%,
  55% {
    text-shadow: none;
    opacity: 0.85;
  }
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: var(--electric-blue);
  }
  50% {
    border-color: var(--hot-pink);
  }
}

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

  100% {
    transform: translateX(-50%);
  }
}

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

  100% {
    transform: translateX(0%);
  }
}

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

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

.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}

.page-404 h1 {
  font-size: clamp(64px, 15vw, 160px);
  color: var(--hot-pink);
  text-shadow:
    0 0 20px var(--hot-pink),
    4px 4px 0 var(--purple);
  line-height: 1;
  margin-bottom: 10px;
}

.page-404 p {
  font-size: 24px;
  color: var(--electric-blue);
  margin-bottom: 20px;
}

.page-404 a {
  color: var(--lime);
  font-size: 22px;
  border: 2px solid var(--lime);
  padding: 6px 20px;
  text-decoration: none;
  transition: all 0.1s;
}

.page-404 a:hover {
  background: var(--lime);
  color: #000;
}

.page-404 .glitch-text {
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 16px;
  color: var(--gold);
  margin-top: 20px;
  opacity: 0.5;
}

@media (max-width: 680px) {
  #main-layout,
  #sidebar,
  #content {
    display: block;
    width: 100%;
  }
  #sidebar {
    margin-bottom: 10px;
  }
  #content {
    padding-left: 0;
  }
  .header-gif-left,
  .header-gif-right {
    display: none;
  }
  #site-nav a {
    margin: 2px 4px;
    font-size: 16px;
    padding: 2px 6px;
  }
}
