/* ============================================================
   main.css — global resets, CSS variables, typography, utils
   ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
:root {
  --color-bg:            #0A0A0A;
  --color-bg-card:       #1A1A2E;
  --color-bg-card-hover: #22223D;
  --color-accent:        #00FF88;
  --color-accent-dim:    rgba(0, 255, 136, 0.15);
  --color-gold:          #FFD700;
  --color-danger:        #FF4444;
  --color-danger-dim:    rgba(255, 68, 68, 0.15);
  --color-text:          #EFEFEF;
  --color-text-muted:    #888;
  --color-border:        rgba(255, 255, 255, 0.08);
  --color-overlay-bg:    rgba(10, 10, 10, 0.85);

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.25);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

/* ── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.accent { color: var(--color-accent); }
.danger { color: var(--color-danger); }

/* ── Screens ────────────────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: var(--color-bg);
  padding: 24px 16px;
  z-index: 1;
}

.screen.active {
  display: flex;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  letter-spacing: 0.02em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-accent);
  color: #000;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-accent-dim);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Field error ────────────────────────────────────────────── */
.field-error {
  color: var(--color-danger);
  font-size: 0.875rem;
  margin-top: 6px;
  text-align: center;
}

/* ── Screen inner wrapper ───────────────────────────────────── */
.screen-inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.screen-inner--narrow {
  max-width: 520px;
}

.screen-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.screen-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: -12px;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
