:root {
  background-color: #000 !important;
  --bg: #000;
  --primary: #b30931;
  --primary-dim: #aa002880;
  --yellow: #FFFF00;
  --pink: #FF00FF;
  --blue: #0000ff;
  --white: #fff;
  --gray: #888;
}

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

.site-logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  image-rendering: crisp-edges; 
}

body {
  background: var(--bg);
  font-family: 'Courier New', Courier, monospace;
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 0 L10 20 M0 10 L20 10" stroke="%23aa0028" stroke-width="2" /></svg>') 10 10, crosshair;
}

.asterisk-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: bold;
  margin-left: 2px;
}

.asterisk-link:hover {
  color: var(--pink);
  text-decoration: underline;
}

a {
  color: var(--yellow);
  text-decoration: none;
}
a:hover {
  color: var(--pink);
}

@font-face {
  font-family: 'power_symbols';
  src: url('fonts/Unicode_IEC_symbol.woff2') format('woff2'),
       url('fonts/Unicode_IEC_symbol.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
.power {
  font-family: 'power_symbols', 'Courier New', monospace;
}

#console {
  width: min(900px, 95%);
  margin: 2rem auto;
  padding: 2rem;
  background: #000;
  border: 1px solid var(--primary);
  flex: 1;
}

.site-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}
.site-header h1 {
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.site-header .sub {
  color: var(--gray);
  font-size: 0.9rem;
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  margin: 1.5rem 0 2.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
}
.nav-bar a {
  font-size: 1.1rem;
  color: var(--yellow);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.nav-bar a:hover {
  border-bottom-color: var(--pink);
  color: var(--pink);
}
.nav-bar a.active {
  border-bottom: 2px solid var(--blue);
  color: var(--yellow);
  font-weight: bold;
}

.section {
  display: none;
  margin: 2rem 0;
}
.section.active-section {
  display: block;
}
.section h2 {
  font-size: 1.6rem;
  color: var(--primary);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.window-panel {
  border: 1px solid var(--primary);
  background: #0a0a0a;
  margin-bottom: 2rem;
}
.window-title {
  background: #111;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.window-body {
  padding: 2rem;
}

.dev-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--primary-dim);
  padding-bottom: 1rem;
}
.dev-btn {
  background: #000;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.dev-btn:hover {
  background: var(--primary);
  color: #000;
}
.dev-btn.active-dev {
  background: var(--primary);
  color: #000;
  border-color: var(--yellow);
}
.dev-content {
  display: none;
}
.dev-content.active-dev-content {
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid var(--primary);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2.5rem;
  color: var(--primary);
  cursor: pointer;
}
.lightbox-close:hover {
  color: var(--pink);
}

.comments-footer {
  margin-top: 3rem;
  border-top: 2px solid var(--primary);
  padding-top: 2rem;
}
.comments-footer h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.comment-thread {
  margin-top: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.comment {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--primary);
}
.comment.reply {
  margin-left: 3rem;
  border-left: 2px solid var(--blue);
  padding-left: 1.5rem;
}
.avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.comment-content .name {
  color: #b30931 !important;
  font-weight: bold;
}
.comment-content .time {
  color: var(--gray);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}
.comment-content p {
  margin: 0.25rem 0 0;
  color: #ddd;
}
mark {
  background: #330000;
  color: var(--pink);
  border: 1px dotted var(--pink);
  padding: 0 0.2rem;
}
.comment-input-area {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
}
.comment-input-area input {
  background: #111;
  border: 1px solid var(--primary);
  padding: 0.8rem 1.2rem;
  font-family: inherit;
  color: var(--white);
  flex: 1 1 200px;
}
.comment-input-area input:focus {
  outline: none;
  border-color: var(--pink);
}
.comment-input-area button {
  background: #000;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
}
.comment-input-area button:hover {
  background: var(--primary);
  color: #000;
}

.credits-icon {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.credits-icon:hover {
  color: var(--pink);
  border-color: var(--pink);
}
.credits-panel {
  position: fixed;
  bottom: 60px;
  left: 15px;
  width: 300px;
  max-width: calc(100vw - 30px);
  background: #0a0a0a;
  border: 2px solid var(--primary);
  padding: 1.5rem;
  z-index: 1000;
  display: none;
  word-wrap: break-word; 
  overflow-wrap: break-word;
  white-space: normal; 
}

.credits-panel pre {
  color: var(--white);
  font-size: 0.8rem;
  white-space: pre-wrap; 
  word-wrap: break-word;
  max-width: 100%;
  overflow-x: hidden;
  margin-bottom: 1rem;
}

.credits-panel.show { display: block; }
.credits-panel .close-credits {
  float: right;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}
.credits-panel .close-credits:hover {
  color: var(--pink);
}
.credits-panel a {
  display: block;
  margin: 0.6rem 0;
  color: var(--yellow);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  padding-right: 0.5rem;
}

.credits-panel a:hover {
  color: var(--pink);
}

.credits-panel h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 0.5rem;
  width: 100%;
}

@keyframes flicker {
  0% { opacity: 1; }
  10% { opacity: 0.99; }
  20% { opacity: 1; }
  30% { opacity: 0.99; }
  100% { opacity: 1; }
}
#console {
  animation: flicker 0.3s infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
  z-index: 9999;
}

.section h2 {
  animation: pulse 4s infinite;
}
@keyframes pulse {
  0% { text-shadow: 0 0 2px rgba(170, 0, 40, 0.2); }
  50% { text-shadow: 0 0 5px rgba(170, 0, 40, 0.3); }
  100% { text-shadow: 0 0 2px rgba(170, 0, 40, 0.2); }
}

.window-title::before {
  content: '>';
  margin-right: 0.5rem;
  color: var(--yellow);
}
.window-title {
  position: relative;
  overflow: hidden;
}
.window-title::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(170, 0, 40, 0.05), transparent);
  animation: staticShift 4s linear infinite;
}
@keyframes staticShift {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.restoration-btn {
  display: inline-block;
  background: var(--primary);
  color: #000 !important;
  font-weight: bold;
  font-size: 1.4rem;
  padding: 1rem 2rem;
  margin: 1rem 0;
  border: 2px solid var(--yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.1s ease;
  text-decoration: none;
}

.restoration-btn:hover {
  background: var(--yellow);
  color: #000 !important;
  border-color: var(--primary);
  transform: scale(1.02);
}

.restoration-btn:active {
  transform: scale(0.98);
}

.demo-btn {
  display: inline-block;
  background: #0a0000;
  color: #ffffff !important;
  font-weight: bold;
  font-size: 2rem;
  padding: 1.5rem 3rem;
  margin: 1.5rem 0;
  border: 2px solid #440000;
  text-transform: uppercase;
  letter-spacing: 4px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  animation: demoFlicker 0.15s infinite steps(2);
}

.demo-btn::before {
  content: 'DOWNLOAD UNTITLED.EXE HERE';
  position: absolute;
  top: 0;
  left: -2px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF0000;
  background: transparent;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  animation: driftRed 0.2s infinite alternate;
}

.demo-btn::after {
  content: 'DOWNLOAD UNTITLED.EXE HERE';
  position: absolute;
  top: 0;
  left: 2px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00FFFF;
  background: transparent;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  animation: driftCyan 0.2s infinite alternate;
}

.demo-btn span {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00FF00;
  background: transparent;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  animation: driftGreen 0.2s infinite alternate;
}

@keyframes driftRed {
  0% { transform: translate(-2px, -1px); }
  100% { transform: translate(1px, 1px); }
}

@keyframes driftGreen {
  0% { transform: translate(1px, 1px); }
  100% { transform: translate(-1px, -2px); }
}

@keyframes driftCyan {
  0% { transform: translate(1px, -1px); }
  100% { transform: translate(-2px, 1px); }
}

@keyframes demoFlicker {
  0% { opacity: 1; filter: brightness(1); }
  25% { opacity: 0.95; filter: brightness(1.1); }
  50% { opacity: 0.9; filter: brightness(0.9); }
  75% { opacity: 0.95; filter: brightness(1.05); }
  100% { opacity: 1; filter: brightness(1); }
}

.demo-btn:hover {
  background: #150000;
  border-color: #660000;
  transform: scale(1.02);
  animation: demoFlicker 0.08s infinite steps(3);
}

.demo-btn:hover::before {
  animation: driftRed 0.1s infinite alternate;
}

.demo-btn:hover::after {
  animation: driftCyan 0.1s infinite alternate;
}

.demo-btn:hover span {
  animation: driftGreen 0.1s infinite alternate;
}

.demo-btn:active {
  transform: scale(0.95);
  filter: blur(0.5px);
  animation: none;
}

.qna-item {
  background: #0a0a0a;
  margin-bottom: 16px;
  border: 2px solid #2eff2e22;
  padding: 16px;
  transition: border-color 0.2s;
}
.qna-item:hover {
  border-color: #2eff2e66;
}
.q-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.q-handle {
  color: #2eff2e !important;
  font-size: 14px;
  font-weight: bold;
  background: #00000055;
  padding: 2px 8px;
}
.q-date {
  color: #888;
  font-size: 11px;
}
.pending-badge {
  background: #ffaa3322;
  color: #ffaa33;
  border: 1px solid #ffaa33;
  padding: 2px 8px;
  font-size: 10px;
}
.answered-badge {
  background: #2eff2e22;
  color: #2eff2e;
  border: 1px solid #2eff2e;
  padding: 2px 8px;
  font-size: 10px;
}
.q-text {
  color: #ddd;
  line-height: 1.5;
  margin: 12px 0;
  padding-left: 8px;
}
.answer-block {
  background: #101010;
  font-weight: bold;
  padding: 12px;
  margin-top: 12px;
  border-left: 3px solid #b30931;
}
.answer-label {
  color: #b30931 !important;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.answer-text {
  color: #FFFFFF;
  font-weight: bold;
  line-height: 1.5;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

.filter-bar {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}
.filter-btn {
  background: #000;
  color: #b30931;
  border: 1px solid #b30931;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.filter-btn.active {
  background: #b30931;
  color: #000;
  border-color: #FFFF00;
}

.notif-btn {
  background: #000;
  color: #2eff2e;
  border: 1px solid #2eff2e55;
  padding: 4px 12px;
  cursor: pointer;
  font-family: monospace;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.2s;
}
.notif-btn.active {
  border-color: #ffaa33;
  color: #ffaa33;
}
.notif-btn:hover {
  background: #0a1a0a;
  border-color: #2eff2e;
}
.notif-btn.active:hover {
  border-color: #ffaa33;
  background: #1a1a0a;
}

.ask-form {
  background: #0a0a0a;
  padding: 16px;
}
.ask-form input, .ask-form textarea {
  background: #060606;
  border: 1px solid #2eff2e33;
  color: #fff;
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
}
#submitBtn {
  background: #b30931;
  color: #000;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}
#submitBtn:hover {
  opacity: 0.85;
}
.status-msg {
  margin-top: 10px;
  font-size: 12px;
}
.status-msg.ok {
  color: #2eff2e;
}
.status-msg.err {
  color: #f50f20;
}
.loading {
  color: #444;
  font-size: 12px;
  letter-spacing: 2px;
  animation: blink 1s step-end infinite;
}
.empty-state {
  color: #444;
  font-size: 13px;
  text-align: center;
  padding: 30px 0;
  letter-spacing: 1px;
}


.discord-window-body {
  padding: 1rem;
}

.channel-select-label {
  color: var(--gray);
  font-size: 0.9rem;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.discord-channel-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

#discordContainer {
  width: 680px;
  height: 1010px;
  margin: 0 auto;
  border: 1px solid var(--primary);
  overflow: hidden;
  position: relative;
  background: #000;
}

#discordScaler {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.discord-channel-buttons .filter-btn:hover {
  background: #b30931;
  color: #000;
  border-color: #FFFF00;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; border-left: 1px solid var(--primary); }
::-webkit-scrollbar-thumb { background: var(--primary); }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

@media (max-width: 600px) {
  #console { padding: 1.2rem; }
  .nav-bar { gap: 1.2rem; }
  .comment.reply { margin-left: 1rem; }
  .comment-thread { max-height: 350px; }
  .demo-btn { font-size: 1.4rem; padding: 1rem 2rem; }
  .restoration-btn { font-size: 1.2rem; padding: 0.8rem 1.5rem; }
}

@media (max-width: 600px) {
  .btn,
  .filter-btn,
  #submitBtn,
  .qa-controls button,
  .restoration-btn,
  .demo-btn,
  .dev-btn {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    min-height: 48px;
    margin: 4px 0;
  }

  .filter-bar {
    flex-direction: column;
    gap: 8px;
  }

  .qa-controls {
    flex-direction: column;
    align-items: stretch !important;
  }

  .answer-text {
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }

  .ask-form input,
  .ask-form textarea {
    font-size: 16px;
    padding: 12px;
  }

  .stats-bar {
    flex-direction: column;
  }
  .stat {
    width: 100%;
    text-align: center;
  }
}