/* gynx.gg — terminal coming-soon */

:root {
  --void: #0B0B0F;
  --purple: #7C3AED;
  --purple-soft: rgba(124, 58, 237, 0.35);
  --blue: #22D3EE;
  --gray: #9CA3AF;
  --slate: #1F2937;
  --pink: #EC4899;
  --green: #34D399;
  --yellow: #FBBF24;
  --red: #F87171;
  --text: #E5E7EB;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(800px 500px at 85% 100%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--void);
  color: var(--gray);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.crt {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  isolation: isolate;
}

.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 5;
  mix-blend-mode: overlay;
}

.glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 25%, rgba(124, 58, 237, 0.10), transparent 60%);
  z-index: 1;
}

.terminal {
  width: 100%;
  max-width: 920px;
  background: rgba(11, 11, 15, 0.82);
  border: 1px solid var(--purple-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(31, 41, 55, 0.55);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r { background: var(--red); }
.dot-y { background: var(--yellow); }
.dot-g { background: var(--green); }

.bar-title {
  margin-left: 12px;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.terminal-body {
  padding: 22px 24px 20px;
  min-height: 420px;
}

.ascii {
  color: var(--purple);
  text-shadow: 0 0 24px rgba(124, 58, 237, 0.55);
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.1;
  white-space: pre;
  overflow-x: auto;
  font-family: inherit;
}

.header-text {
  margin: 0 0 16px;
  padding: 6px 0 14px;
  border-bottom: 1px dashed rgba(124, 58, 237, 0.18);
}
.header-text[hidden] { display: none; }

.header-name {
  font-family: "Space Grotesk", "JetBrains Mono", monospace;
  font-size: clamp(40px, 7.5vw, 76px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-shadow:
    0 0 24px rgba(124, 58, 237, 0.55),
    0 0 48px rgba(124, 58, 237, 0.22);
  word-break: break-word;
}

.header-subtitle {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--blue);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  margin-top: 12px;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}
.header-subtitle:empty { display: none; }

.lines { display: flex; flex-direction: column; }

.line {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1em;
}
.line.system { color: var(--gray); }
.line.accent {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}
.line.heading {
  color: #fff;
  font-family: "Space Grotesk", "JetBrains Mono", monospace;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 10px 0 4px;
}
.line.body { color: var(--gray); }
.line.blank { min-height: 0.85em; }

.countdowns { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }

.countdown {
  padding: 14px 16px;
  border: 1px dashed rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.05);
  position: relative;
  overflow: hidden;
}

.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.05), transparent);
  pointer-events: none;
}

.countdown-label {
  color: var(--blue);
  letter-spacing: 0.12em;
  font-size: 12px;
}

.countdown-time {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  font-family: "Space Grotesk", "JetBrains Mono", monospace;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.countdown-val {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(124, 58, 237, 0.6);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-sub {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.18em;
  margin-top: 4px;
  text-transform: uppercase;
}

.countdown.done .countdown-val {
  color: var(--blue);
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
}

.prompt-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.prompt-row.visible { opacity: 1; }

.prompt {
  color: var(--purple);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

#cmd {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font: inherit;
  caret-color: var(--blue);
  padding: 0;
  min-width: 0;
}

.cursor {
  width: 9px;
  height: 16px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
  animation: blink 1s steps(2) infinite;
  flex-shrink: 0;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--gray);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: 0.05em;
}
.terminal-footer span:last-child .hint {
  color: var(--blue);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  flex-wrap: wrap;
}
.socials:empty {
  display: none;
}

.social-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--gray);
  text-decoration: none;
  transition: all 0.18s ease;
}
.social-btn:hover {
  color: var(--blue);
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}
.social-btn:active { transform: translateY(0); }
.social-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-link {
  position: fixed;
  bottom: 12px;
  right: 16px;
  color: rgba(156, 163, 175, 0.3);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.15em;
  z-index: 10;
  transition: color 0.2s, text-shadow 0.2s;
  font-family: "JetBrains Mono", monospace;
}
.admin-link:hover {
  color: var(--purple);
  text-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

/* Echoed user commands */
.entered { color: var(--text); }
.entered .entered-prompt { color: var(--purple); }

@media (max-width: 640px) {
  .ascii { font-size: 9px; }
  .terminal-body { padding: 16px; min-height: 360px; }
  .countdown-val { font-size: 26px; }
  .countdown-time { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .scanlines { display: none; }
}
