:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --border: #2a2a2a;
  --amber: #ffb300;
  --green: #5ac25a;
  --text: #c0c0c0;
  --dim: #555;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 2.5rem 1rem;
}

.screen { width: 100%; max-width: 760px; }
.hidden { display: none; }

h1 { font-size: 2rem; color: var(--amber); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
h2 { font-size: 1.4rem; color: var(--amber); letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.subtitle { color: var(--dim); font-size: 0.78rem; margin-bottom: 1.2rem; }

#login-status { color: var(--text); margin: 0.8rem 0 1rem; font-size: 0.9rem; }

button {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0 0.5rem 0.5rem 0;
  transition: background 0.12s;
}
button:hover:not(:disabled) { background: rgba(255, 179, 0, 0.1); }
button:disabled { border-color: var(--dim); color: var(--dim); cursor: not-allowed; }

#tick-feed {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  height: 380px;
  overflow-y: auto;
  font-size: 0.8rem;
  color: var(--green);
  margin: 1rem 0;
  line-height: 1.6;
}
#tick-feed p { margin: 0; }
#tick-feed p.outcome { color: var(--amber); font-weight: bold; margin-top: 0.3rem; }
#tick-feed pre {
  margin: 0;
  padding: 0;
  white-space: pre;
  font-family: inherit;
  color: inherit;
  line-height: 1.4;
}
#tick-feed pre.outcome { color: var(--amber); font-weight: bold; }

#aar-content {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  white-space: pre;
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--text);
  max-height: 68vh;
  overflow-y: auto;
  overflow-x: auto;
  margin: 1rem 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  body { padding: 1.5rem 0.875rem; }
  h1   { font-size: 1.65rem; }
  #tick-feed { height: 300px; }
  button { min-height: 44px; padding: 0.55rem 1rem; }
}

@media (max-width: 480px) {
  body { padding: 1.25rem 0.75rem; }
  h1   { font-size: 1.4rem; }
  #tick-feed { height: 250px; font-size: 0.75rem; }
  button {
    display: block;
    width: 100%;
    margin: 0 0 0.6rem 0;
    min-height: 48px;
  }
  #aar-content { font-size: 0.7rem; }
}
