:root {
  --amber: #FFBF00;
  --amber-dim: rgba(255, 191, 0, 0.3);
  --bg-dark: #0a0a0a;
  --bg-panel: #111;
  --text-main: var(--amber);
  --font-mono: "Courier New", Courier, monospace;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-mono);
  margin: 0;
  padding: 0;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-x: hidden;
}

/* Dithered map background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(var(--amber-dim) 1px, transparent 1px),
    radial-gradient(var(--amber-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  animation: mapDrift 60s linear infinite;
}

@keyframes mapDrift {
  0% { background-position: 0 0, 20px 20px; }
  100% { background-position: 400px 400px, 420px 420px; }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-left: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  min-height: 100vh;
  background: rgba(10, 10, 10, 0.85);
  box-shadow: 0 0 20px rgba(255, 191, 0, 0.1);
}

header {
  border-bottom: 2px dashed var(--amber);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  font-weight: normal;
  margin-top: 0;
  text-shadow: 0 0 5px var(--amber);
}

h1::before { content: "[SYS] "; }
h2::before { content: ">> "; }

a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-dim);
}

a:hover {
  background-color: var(--amber);
  color: var(--bg-dark);
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  border: 1px solid var(--amber);
  padding: 10px;
}

nav ul li::before {
  content: "[";
}
nav ul li::after {
  content: "]";
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

section {
  border: 1px solid var(--amber-dim);
  padding: 15px;
  margin-bottom: 20px;
  background: var(--bg-panel);
  position: relative;
}

section::before {
  content: "[███░░]";
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--bg-dark);
  padding: 0 5px;
  font-size: 0.8em;
}

ul {
  list-style-type: square;
  padding-left: 20px;
}

/* Packet Transfer Log */
.packet-log {
  font-size: 0.8em;
  border: 1px solid var(--amber);
  padding: 10px;
  height: 80px;
  overflow-y: hidden;
  background: #000;
  margin-bottom: 20px;
  position: relative;
}

.packet-log::before {
  content: "COMM-LINK STATUS";
  position: absolute;
  top: -8px;
  left: 10px;
  background: #000;
  padding: 0 5px;
  font-size: 0.9em;
}

.log-entries {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.log-entry {
  margin: 2px 0;
  opacity: 0.8;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 0.8; transform: translateY(0); }
}

/* Services container specific */
#services-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 600px) {
  #services-container {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  border: 1px solid var(--amber);
  padding: 10px;
  background: rgba(255, 191, 0, 0.05);
}

.service-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  border-bottom: 1px dashed var(--amber-dim);
}

.service-card p {
  font-size: 0.9em;
  margin: 5px 0;
}

details {
  border: 1px solid var(--amber);
  padding: 10px;
  margin-bottom: 15px;
}

summary {
  cursor: pointer;
  font-weight: bold;
}

summary:hover {
  background: var(--amber-dim);
}

.crypto-address {
  display: block;
  word-break: break-all;
  background: #000;
  padding: 5px;
  border: 1px dashed var(--amber);
  margin: 5px 0;
}

.footer-links .link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  border: 1px solid var(--amber);
  padding: 2px 8px;
}

.footer-links a::before {
  content: "> ";
}

/* Hide canvas warp */
#warp {
  display: none;
}
