/* Base tokens, reset, and typography. */

:root {
  --app-bg: #000000;
  --app-surface: #0a0a0a;
  --app-surface-soft: #111111;
  --app-surface-muted: #171717;
  --app-border: #404040;
  --app-border-soft: #262626;

  --app-text: #ffffff;
  --app-muted: #ffffff;
  --app-muted-strong: #ffffff;

  --app-primary: #6b7280;
  --app-primary-hover: #9ca3af;
  --app-secondary-bg: #111111;
  --app-secondary-hover: #171717;
  --app-success: #166534;
  --app-success-hover: #14532d;
  --app-danger: #b91c1c;
  --app-danger-hover: #7f1d1d;
  --app-focus: #2563eb;

  --app-radius-xl: 24px;
  --app-radius: 16px;
  --app-radius-sm: 12px;
  --app-radius-xs: 8px;

  --app-width: 760px;
  --app-footer-space: 76px;
  --app-font: "Segoe UI", Roboto, Arial, sans-serif;
  --app-mono: "Segoe UI Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--app-footer-space);
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--app-font);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

noscript {
  display: block;
  width: min(var(--app-width), calc(100% - 40px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  background: var(--app-surface-soft);
  color: var(--app-text);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.choice-card {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.36);
  outline-offset: 2px;
}
