:root {
  --bg: #0a0704;
  --panel: #1a1510;
  --bezel: #3a2f22;
  --amber: #ffb000;
  --amber-bright: #ffd470;
  --red-warn: #ff4422;
  --mono: "Courier New", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(ellipse at center, #1a1510 0%, #0a0704 60%, #000 100%);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.4) 2px 3px);
  pointer-events: none;
}

.terminal {
  width: min(26rem, 100%);
  background: var(--panel);
  border: 4px solid var(--bezel);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: inset 0 0 80px rgba(255,176,0,0.08), 0 20px 60px rgba(0,0,0,0.8);
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 38px;
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--bezel);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.status-bar span { display: inline-flex; align-items: center; gap: 0.4rem; }
.led.warn { width: 8px; height: 8px; border-radius: 50%; background: var(--red-warn); box-shadow: 0 0 4px var(--red-warn); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.badge { width: 155px; height: 20px; max-width: 100%; margin-left: auto; display: block; }

h1 {
  margin: 0.9rem 0 0;
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--amber-bright);
  text-shadow: 0 0 6px var(--amber);
}

h2 {
  font-size: 12px;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--bezel);
  padding-bottom: 0.3rem;
  margin: 1.1rem 0 0.5rem;
}

.panel-inset {
  background: var(--bg);
  border: 2px solid var(--bezel);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.readout {
  color: var(--amber-bright);
  font-size: 1rem;
  text-transform: none;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.readout:hover { text-decoration: underline; }
.row { display: flex; gap: 0.6rem; }

.btn {
  flex: 1 1 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--amber);
  background: linear-gradient(to bottom, #3a2f22, #1e180f);
  border: 2px solid var(--bezel);
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
}

.btn:hover { color: var(--amber-bright); }
.btn:active { transform: scale(0.98); }

a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@media (max-width: 480px) {
  .row { gap: 0.4rem; }
  .btn { padding: 0.55rem 0.3rem; letter-spacing: 1px; font-size: 10px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .led.warn { animation: none; }
}
