/* XaTuring Gateway — stylesheet
   Old web, hand-rolled. No frameworks. View source freely. */

:root {
  --void: #040608;
  --panel: #0a0f0c;
  --phosphor: #39ff88;
  --phosphor-dim: #1d7a48;
  --violet: #be78ff;
  --violet-dim: #5a3a80;
  --bone: #e8e6dc;
  --muted: #8a9a90;
  --rule: #1f3a2a;
}

* { box-sizing: border-box; }

html { background: var(--void) url("bg-tile.png") repeat; }

body {
  margin: 0;
  padding: 24px 16px 48px;
  color: var(--bone);
  font: 16px/1.6 "Courier New", Courier, monospace;
}

a { color: var(--phosphor); }
a:visited { color: var(--violet); }
a:hover, a:focus { background: var(--phosphor); color: var(--void); text-decoration: none; }

::selection { background: var(--violet); color: var(--void); }

/* ---------- frame ---------- */
#frame {
  max-width: 820px;
  margin: 0 auto;
  border: 3px double var(--phosphor-dim);
  background: rgba(4, 6, 8, 0.92);
  box-shadow: 0 0 0 1px #000, 0 0 40px rgba(57, 255, 136, 0.08);
}

header {
  text-align: center;
  padding: 28px 16px 8px;
  border-bottom: 1px dashed var(--rule);
}

.sigil { width: 150px; height: 150px; display: block; margin: 0 auto 8px; }
.sigil polygon { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linejoin: round; }
.sigil circle { fill: none; stroke: var(--phosphor-dim); stroke-width: 1; }
.sigil text { fill: var(--phosphor); font: 9px "Courier New", monospace; }

h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 46px);
  letter-spacing: 0.08em;
  color: var(--phosphor);
  text-shadow: 0 0 8px rgba(57, 255, 136, 0.55);
}
h1 .x { color: var(--violet); text-shadow: 0 0 8px rgba(190, 120, 255, 0.6); }

.tagline { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.cursor::after {
  content: "\2588";
  color: var(--phosphor);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

marquee, .ticker {
  display: block;
  margin: 18px 0 0;
  padding: 4px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--phosphor-dim);
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* ---------- nav ---------- */
nav.gates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  padding: 14px 12px;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
}
nav.gates a { padding: 1px 6px; border: 1px solid var(--rule); text-decoration: none; }
nav.gates a::before { content: "["; color: var(--muted); }
nav.gates a::after  { content: "]"; color: var(--muted); }

/* ---------- content ---------- */
main { padding: 8px 24px 16px; }
@media (max-width: 560px) { main { padding: 8px 14px 12px; } }

section { margin: 28px 0; }

h2 {
  font-size: 18px;
  color: var(--violet);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--violet-dim);
  padding-bottom: 4px;
}
h2::before { content: "> "; color: var(--phosphor); }

p { margin: 0 0 12px; }
.dim { color: var(--muted); }
.small { font-size: 13px; }

blockquote {
  margin: 14px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--phosphor-dim);
  background: var(--panel);
  color: var(--phosphor);
}

/* timeline */
ol.log { list-style: none; margin: 0; padding: 0; }
ol.log li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule);
}
ol.log .yr { color: var(--phosphor); font-weight: bold; }

/* gateway table */
table.portals { width: 100%; border-collapse: collapse; font-size: 15px; }
table.portals td { padding: 8px 10px; border: 1px solid var(--rule); vertical-align: top; }
table.portals td:first-child { width: 34%; white-space: nowrap; }
@media (max-width: 560px) {
  table.portals td { display: block; width: 100% !important; border-top: none; }
  table.portals tr td:first-child { border-top: 1px solid var(--rule); padding-bottom: 0; }
}

/* the count */
.rite {
  border: 1px solid var(--violet-dim);
  background: var(--panel);
  padding: 16px;
  text-align: center;
}
.rite svg { width: 170px; height: 170px; display: block; margin: 0 auto; }
.rite line { stroke: var(--rule); stroke-width: 2.5; stroke-linecap: round; transition: stroke .4s, filter .4s; }
.rite line.lit { stroke: var(--phosphor); filter: drop-shadow(0 0 3px var(--phosphor)); }
.rite.done line.lit { stroke: var(--violet); filter: drop-shadow(0 0 4px var(--violet)); }
#count-display {
  font-size: 36px;
  color: var(--phosphor);
  min-height: 1.4em;
  letter-spacing: 0.15em;
  text-shadow: 0 0 6px rgba(57, 255, 136, 0.5);
}
button {
  font: inherit;
  font-size: 14px;
  color: var(--void);
  background: var(--phosphor);
  border: 2px outset #8fffbf;
  padding: 4px 14px;
  cursor: pointer;
}
button:active { border-style: inset; }
button:disabled { background: var(--phosphor-dim); cursor: default; }

/* link-me */
.linkme { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.linkme img { image-rendering: pixelated; border: 0; }
textarea {
  width: 100%;
  min-height: 74px;
  background: #000;
  color: var(--phosphor);
  border: 1px solid var(--rule);
  font: 12px/1.4 "Courier New", monospace;
  padding: 6px;
  resize: vertical;
}
.linkme > div { flex: 1 1 260px; }

ul.ripples { padding-left: 20px; }
ul.ripples li { margin: 4px 0; }
ul.ripples li::marker { content: "\2726  "; color: var(--violet); }

/* footer */
footer {
  border-top: 1px dashed var(--rule);
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer .binary { color: var(--phosphor-dim); letter-spacing: 0.25em; }
.badges { margin: 10px 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block;
  width: 88px; height: 31px;
  border: 1px solid var(--rule);
  font-size: 9px; line-height: 1.2;
  padding: 4px 2px;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cursor::after { animation: none; }
  .rite line { transition: none; }
}
