/* Scroll Gambit — brand styles */

:root {
  --sg-navy-900: #070b24;
  --sg-navy-800: #0a1030;
  --sg-navy-700: #101842;
  --sg-navy-600: #18215a;
  --sg-navy-500: #1e2a6e;
  --sg-line: rgba(255,255,255,0.08);
  --sg-line-strong: rgba(255,255,255,0.14);
  --sg-blue: #2856ff;
  --sg-blue-bright: #4a73ff;
  --sg-blue-glow: #5d83ff;
  --sg-ivory: #f3ecd9;
  --sg-ivory-dim: #d6cfbd;
  --sg-text: #ffffff;
  --sg-text-mid: rgba(255,255,255,0.62);
  --sg-text-dim: rgba(255,255,255,0.42);
  --sg-success: #34d97a;
}

@font-face {
  font-family: 'sg-display';
  src: local('SF Pro Display'), local('-apple-system'), local('Inter');
}

.sg-screen {
  position: absolute;
  inset: 0;
  background: var(--sg-navy-800);
  color: var(--sg-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow: hidden;
}

/* Subtle 2x2 checker motif — very faint */
.sg-checker {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.018) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.018) 75%);
  background-size: 56px 56px;
  background-position: 0 0, 28px 28px;
  pointer-events: none;
}

.sg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(40,86,255,0.10), transparent 55%);
  pointer-events: none;
}

.sg-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Buttons */
.sg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 60px;
  border-radius: 18px;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}
.sg-btn:active { transform: scale(0.985); }

.sg-btn-primary {
  background: var(--sg-blue);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(40,86,255,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.sg-btn-primary:hover { background: var(--sg-blue-bright); }

.sg-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--sg-text);
  border: 1px solid var(--sg-line-strong);
}

.sg-btn-link {
  background: transparent;
  color: var(--sg-text-mid);
  height: auto;
  padding: 8px;
  font-size: 15px;
}

/* Cards */
.sg-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sg-line);
  border-radius: 22px;
  padding: 18px;
}
.sg-card-selected {
  background: rgba(40,86,255,0.12);
  border-color: var(--sg-blue);
  box-shadow: 0 0 0 3px rgba(40,86,255,0.18);
}

/* Type */
.sg-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-text-dim);
}
.sg-h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.sg-h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.sg-h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.sg-body {
  font-size: 16px;
  line-height: 1.45;
  color: var(--sg-text-mid);
}
.sg-mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* Pills + badges */
.sg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sg-pill-locked {
  background: rgba(255,255,255,0.08);
  color: var(--sg-text);
  border: 1px solid var(--sg-line-strong);
}
.sg-pill-blue {
  background: rgba(40,86,255,0.18);
  color: var(--sg-blue-glow);
  border: 1px solid rgba(40,86,255,0.4);
}
.sg-pill-reward {
  background: var(--sg-ivory);
  color: var(--sg-navy-900);
}

/* Logo glow */
.sg-glow {
  filter: drop-shadow(0 20px 40px rgba(40,86,255,0.35));
}

/* List rows for level select */
.sg-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sg-line);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sg-chip:hover { background: rgba(255,255,255,0.06); }
.sg-chip-selected {
  background: rgba(40,86,255,0.14);
  border-color: var(--sg-blue);
  color: #fff;
}

/* dot indicator */
.sg-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sg-radio-on {
  border-color: var(--sg-blue);
  background: var(--sg-blue);
}
.sg-radio-on::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
