/* =============================================================================
   NERV CENTRAL DOGMA SHRINE (dogma.css)
   Authentic 2000s Dark Cyber / Anime Shrine Aesthetic
   Flat, sharp, zero modern glow / zero CSS3 blur shadows
   ============================================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html, body, a, button, input, select, textarea {
  cursor: none !important;
}

/* Rei Custom Mouse Cursor (Never blocks clicks) */
#rei-clock-head {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 100000;
  image-rendering: pixelated;
  display: block;
}

body {
  font-family: "Courier New", Courier, monospace;
  background-color: #000000;
  background-image: 
    linear-gradient(rgba(35, 12, 0, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 12, 0, 0.4) 1px, transparent 1px);
  background-size: 16px 16px;
  background-attachment: fixed;
  color: #ffaa00;
  font-size: 11.5px;
  line-height: 1.5;
  min-height: 100vh;
  padding: 20px 10px 60px 10px;
}

a {
  color: #ff5500;
  text-decoration: underline;
}

a:hover {
  color: #ffff00;
  background-color: #331100;
}

/* ================= NERV TUI / CLI DIGITAL TACTICAL STATUS BAR ================= */
#dogma-bottom-clock {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #000000;
  border: 1px solid #ffaa00;
  padding: 3px 12px;
  text-align: center;
  user-select: none;
  pointer-events: auto;
  min-width: 240px;
  font-family: "Courier New", Courier, monospace;
}

.dogma-clock-header, .dogma-clock-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 8.5px;
  color: #ff7700;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.dogma-segment-display {
  position: relative;
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  line-height: 1.15;
  margin: 1px 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.segment-ghost {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #220e00;
  user-select: none;
  pointer-events: none;
  font-size: 18px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.segment-live {
  color: #ffaa00;
  font-size: 18px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.segment-ms {
  color: #ff5500;
  font-size: 11px;
  margin-left: 2px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

/* Main Container Frame */
#dogma-frame {
  max-width: 860px;
  margin: 0 auto;
  border: 2px solid #ff5500;
  background: #050200;
  padding: 16px;
}

/* Big ASCII Title Banner */
.ascii-banner-box {
  text-align: center;
  margin-bottom: 12px;
  border-bottom: 1px dashed #ff5500;
  padding-bottom: 12px;
}

.ascii-banner-pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 9.5px;
  line-height: 1.05;
  color: #ff3300;
  display: inline-block;
  text-align: left;
  white-space: pre;
  overflow-x: auto;
}

.dogma-subtext {
  color: #ffaa00;
  font-size: 11px;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* Top Nav Strip */
.dogma-nav-strip {
  background: #110500;
  border: 1px solid #ff5500;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: bold;
}

.dogma-nav-links a {
  margin-right: 10px;
  color: #ffaa00;
  text-decoration: none;
}

.dogma-nav-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.return-surface-btn {
  display: inline-block;
  background: #220800;
  color: #00ff66 !important;
  border: 1px solid #00ff66;
  padding: 3px 10px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 10.5px;
}

.return-surface-btn:hover {
  background: #00ff66;
  color: #000000 !important;
}

/* Hazard Warning Line */
.retro-hazard-line {
  height: 8px;
  background: repeating-linear-gradient(-45deg, #ffaa00, #ffaa00 10px, #1a0500 10px, #1a0500 20px);
  margin-bottom: 14px;
  border: 1px solid #ff7700;
}

/* Sections */
.dogma-section {
  background: #0a0300;
  border: 1px solid #ff5500;
  margin-bottom: 14px;
  padding: 10px;
}

.dogma-section-title {
  color: #ff3300;
  font-weight: bold;
  font-size: 12px;
  border-bottom: 1px solid #441500;
  padding-bottom: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ASCII Viewer Core */
.ascii-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.ascii-tab-btn {
  background: #140500;
  color: #ffaa00;
  border: 1px solid #882200;
  padding: 3px 8px;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.ascii-tab-btn.active, .ascii-tab-btn:hover {
  background: #ff5500;
  color: #000000;
  border-color: #ff5500;
}

.ascii-screen-box {
  background: #000000;
  border: 1px solid #ff7700;
  padding: 10px;
  position: relative;
}

.ascii-screen-pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1.05;
  white-space: pre;
  color: #ffaa00;
  overflow-x: auto;
  min-height: 240px;
  display: block;
}

.ascii-caption-box {
  margin-top: 8px;
  padding: 6px;
  background: #110400;
  border-left: 3px solid #ff5500;
  font-size: 11px;
  color: #ffcc66;
}

/* Audio Player */
.dogma-audio-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #110500;
  border: 1px solid #882200;
  padding: 6px 8px;
}

.dogma-audio-display {
  flex: 1;
  background: #000000;
  color: #00e5ff;
  padding: 3px 6px;
  border: 1px solid #331100;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dogma-audio-btn {
  background: #220800;
  color: #ffaa00;
  border: 1px solid #ff5500;
  padding: 3px 8px;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.dogma-audio-btn:hover {
  background: #ff5500;
  color: #000000;
}

.dogma-track-select {
  width: 100%;
  background: #000000;
  color: #ffaa00;
  border: 1px solid #662200;
  padding: 3px;
  font-family: inherit;
  font-size: 10px;
  margin-top: 4px;
}

/* Lore & Theory Text Block */
.lore-text-block {
  font-size: 11px;
  line-height: 1.6;
  color: #ffaa00;
}

.lore-quote {
  background: #110500;
  border-left: 3px solid #ff3300;
  padding: 6px 10px;
  margin: 6px 0;
  font-style: italic;
  color: #ffcc88;
}

.lore-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 10.5px;
}

.lore-table td {
  border: 1px solid #441500;
  padding: 4px 6px;
}

.lore-table td.label {
  background: #140500;
  color: #ff5500;
  font-weight: bold;
  width: 32%;
}

/* Webring Footer */
.dogma-footer {
  text-align: center;
  border-top: 1px dashed #ff5500;
  padding-top: 10px;
  margin-top: 14px;
  font-size: 10px;
  color: #884400;
}

/* Responsive */
@media (max-width: 650px) {
  .ascii-banner-pre {
    font-size: 7px;
  }
  .ascii-screen-pre {
    font-size: 7.5px;
  }
}
