/* OddsHunter landing — darkweb / terminal style */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #050607;
  --fg:      #c9d1d9;
  --dim:     #6b7280;
  --muted:   #3b4147;
  --ok:      #4ae68b;
  --pending: #ffb000;
  --warn:    #ff6b6b;
  --accent:  #5865f2;  /* discord blurple */
  --mono:    'Fira Code', 'JetBrains Mono', 'Consolas', 'Menlo', monospace;
}

html, body { height: 100%; }

body {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(74, 230, 139, 0.04), transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.012) 2px,
      rgba(255, 255, 255, 0.012) 3px
    ),
    var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}

/* Scanline flicker — subtle, non-annoying */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.015), transparent 50%, rgba(255,255,255,0.015));
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.4;
  animation: scanline 8s linear infinite;
  z-index: 2;
}
@keyframes scanline {
  from { background-position: 0 -100%; }
  to   { background-position: 0 100%; }
}

/* ---------- layout ---------- */

.gate {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 24px;
  text-align: center;
}

/* ---------- glyph ---------- */

.glyph {
  display: flex;
  gap: 2px;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ok);
  text-shadow: 0 0 14px rgba(74, 230, 139, 0.4);
  animation: pulse 2.4s ease-in-out infinite;
  user-select: none;
}
.glyph .g {
  display: inline-block;
  transform: skewX(-10deg);
}
@keyframes pulse {
  0%, 100% { opacity: 0.85; text-shadow: 0 0 10px rgba(74, 230, 139, 0.35); }
  50%      { opacity: 1.00; text-shadow: 0 0 22px rgba(74, 230, 139, 0.65); }
}

/* ---------- boot lines ---------- */

.boot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 320px;
  text-align: left;
}
.boot .line {
  color: var(--dim);
  white-space: nowrap;
  opacity: 0;
  animation: typein 0.35s ease forwards;
}
.boot .line:nth-child(1) { animation-delay: 0.15s; }
.boot .line:nth-child(2) { animation-delay: 0.55s; }
.boot .line:nth-child(3) { animation-delay: 0.95s; }

@keyframes typein {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0);    }
}

.boot .prompt   { color: var(--muted); }
.boot .ok       { color: var(--ok);       font-weight: 600; }
.boot .pending  { color: var(--pending);  font-weight: 600; }
.boot .blink {
  display: inline-block;
  margin-left: 1px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- CLI ---------- */

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cli {
  width: 100%;
  max-width: 480px;
  text-align: left;
  opacity: 0;
  animation: fadein 0.5s 1.25s ease forwards;
}

.cli-output {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 4px;
}
.cli-output::-webkit-scrollbar { width: 4px; }
.cli-output::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

.cli-out        { color: var(--dim); white-space: pre-wrap; word-break: break-word; }
.cli-out.echo   { color: var(--fg); }
.cli-out.ok     { color: var(--ok); }
.cli-out.dim    { color: var(--muted); }
.cli-out.warn-line { color: var(--warn); opacity: 0.8; }

.cli-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cli-prefix {
  color: var(--ok);
  font-weight: 600;
  user-select: none;
}

#cli-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  font-family: var(--mono);
  font-size: inherit;
  letter-spacing: inherit;
  caret-color: var(--ok);
  padding: 0;
  min-width: 0;
}
#cli-input::placeholder { color: var(--muted); }
#cli-input:disabled { opacity: 0.6; cursor: wait; }

/* ---------- warn ---------- */

.warn {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  max-width: 440px;
  opacity: 0;
  animation: fadein 0.5s 1.5s ease forwards;
}

/* ---------- meta ---------- */

.meta {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadein 0.5s 1.8s ease forwards;
}
.meta .sep { opacity: 0.4; }

/* ---------- selection: nothing to see ---------- */

::selection { background: rgba(74, 230, 139, 0.25); color: var(--fg); }

/* ---------- mobile ---------- */

@media (max-width: 480px) {
  .glyph { font-size: 2.2rem; }
  .boot  { min-width: 240px; font-size: 0.78rem; }
  .auth-btn { padding: 12px 20px; font-size: 0.82rem; }
}
