/* ANTIMEME LAYOUT — retro terminal meets modern web */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #fdfdf9;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.45;
}
/* Background layers */
body::before, body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
body::before {
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 3px 3px;
}
body::after {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px),
    radial-gradient(circle at 20% 50%, rgba(120,119,198,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,119,198,0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120,255,198,0.03) 0%, transparent 50%);
}
.scanline { position: fixed; left:0; right:0; height:2px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent); animation: scan 12s linear infinite; pointer-events:none; z-index:3; }
@keyframes scan { 0%{ top:-2px } 100%{ top:100% } }
.cursor { display:inline-block; width:8px; height:14px; background:#000; margin-left:2px; vertical-align:text-bottom; animation: blink 1s infinite; }
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.hero-sub.flicker, .hero-sub.flicker * { filter: contrast(120%) brightness(96%); }

.wrap { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 30px; }
.hero { margin-bottom: 18px; }
.hero-title { font-size: 42px; line-height: 1.05; margin: 0 0 6px 0; letter-spacing: 1px; }
.hero-sub { margin: 0; font-size: 18px; min-height: 1.6em; }
.divider { border-top: 1px solid #000; margin: 12px 0; }
.top .prompt { font-weight: bold; text-shadow: 0.5px 0.5px 0 rgba(0,0,50,0.3); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  border: 1px solid #000; background: #fff; color: #000; padding: 5px 10px; cursor: pointer; transition: all .2s;
}
.tab:hover, .tab[aria-selected="true"] { background: #000; color: #fff; }
.panes { margin-top: 10px; }
.pane { border: 1px solid #000; padding: 12px; background: #fff; min-height: 380px; }
hr { border: none; border-top: 1px solid #000; margin: 15px 0; }
a { color: inherit; }
a:hover { text-decoration: underline; }
code, pre { font-family: "Courier New", Courier, monospace; }
pre { white-space: pre-wrap; border: 1px solid #000; padding: 8px; background: #fff; }
.status { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; border: 1px solid #000; padding: 8px; background: #fff; }
.iframe-wrap { border: 1px solid #000; background: #fff; height: 70vh; min-height: 420px; }
.iframe-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.pill { border: 1px solid #000; padding: 2px 6px; display: inline-block; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { opacity: .7; }

/* Buttons */
.btn { border: 1px solid #000; background: #fff; color: #000; padding: 5px 10px; transition: all .2s; text-decoration: none; display: inline-block; }
.btn:hover { background: #000; color: #fff; }

/* About Build Links */
.about-build-link {
  color: #666;
  font-size: 12px;
  transition: all .2s;
}
.about-build-link:hover {
  color: #000;
  background: #f0f0f0;
  padding: 2px 4px;
  border-radius: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scanline { animation: none; display: none; }
  .cursor { animation: none; }
}
