:root {
  --black: #000000;
  --safe: #39ff14;
  --warn: #fff000;
  --danger: #ff007f;
  --ink: #f7f7f7;
  --muted: #a3a3a3;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(57, 255, 20, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 0, 127, 0.08) 1px, transparent 1px),
    #000;
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
input {
  font: inherit;
}

.impact-font {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: 0;
}

.data-font {
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.neo-shell {
  min-height: 100vh;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: 0.22;
}

.neo-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 7px 7px 0 var(--danger);
}

.safe-shadow {
  box-shadow: 7px 7px 0 var(--safe);
}

.warn-shadow {
  box-shadow: 7px 7px 0 var(--warn);
}

.danger-shadow {
  box-shadow: 7px 7px 0 var(--danger);
}

.neo-button {
  min-height: 52px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: #000;
  background: var(--safe);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.neo-button:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}

.neo-button.warning {
  background: var(--warn);
}

.neo-button.danger {
  background: var(--danger);
  color: #fff;
}

.ghost-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.lang-button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.lang-button.active {
  border-color: var(--safe);
  color: #000;
  background: var(--safe);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--safe);
  transition: width 280ms ease, background 280ms ease;
}

.option-button {
  width: 100%;
  min-height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.option-button.selected,
.option-button:hover {
  border-color: var(--warn);
  background: rgba(255, 240, 0, 0.12);
  transform: translateY(-2px);
}

.score-ring {
  display: grid;
  width: min(58vw, 220px);
  aspect-ratio: 1;
  place-items: center;
  border: 10px solid var(--safe);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), #000 64%);
  box-shadow: 0 0 28px currentColor;
}

.loading-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--safe);
  animation: pulse 800ms infinite alternate;
}

.badge-preview {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #050505;
}

@keyframes pulse {
  from {
    opacity: 0.35;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (min-width: 768px) {
  .neo-shell {
    padding-inline: 32px;
  }
}
