* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Pinnacle-inspired: Navy blue + clean white theme */
  --primary: #003D6B;
  --primary-dark: #002847;
  --primary-light: #005B9F;
  --secondary: #E8EDF2;
  --tertiary: #F5F7FA;
  --neutral: #6B7280;
  --bg-body: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-hover: #F0F4F8;
  --bg-elevated: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-active: #0066CC;
  --border-w: 1px;
  --border-w-thick: 1px;
  --danger: #DC2626;
  --success: #059669;
  --warning: #F8971F;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 2px 12px rgba(0, 61, 107, 0.12);
  --glow-gold: 0 0 8px rgba(0, 61, 107, 0.12);
  --gradient-gold: linear-gradient(180deg, #F0F4F8 0%, #FFFFFF 100%);
  --gradient-gold-border: linear-gradient(180deg, #E5E7EB 0%, #FFFFFF 100%);
  --gradient-card: linear-gradient(160deg, #FFFFFF 0%, #F5F7FA 100%);
  --space-card: 16px;
  --space-section: 12px;
  --surface-accent: rgba(0, 102, 204, 0.06);
  --border-gold-soft: rgba(0, 102, 204, 0.2);
  --player-header-h: 48px;
  --player-bottom-nav-h: 54px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Gold kept only for odds/betting accent as orange-amber */
:root {
  --odds-accent: #F8971F;
  --odds-accent-light: #FBBF24;
  --odds-accent-soft: rgba(248, 151, 31, 0.1);
  --captcha-canvas-bg: #E8EDF2;
  --captcha-char: #003D6B;
  --captcha-noise-rgb: 0, 61, 107;
}

/* ── Global resets ── */
html, body, #app { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  body {
    background-color: var(--bg-body);
  }
}

#app {
  min-height: 100%;
  min-height: -webkit-fill-available;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── Input ── */
input {
  font-family: inherit;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #F0F4F8 inset;
  border: 1px solid var(--border);
  transition: background-color 99999s ease-out 0s;
}

/* ── Primary button (blue CTA) ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  width: 100%;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0, 61, 107, 0.2);
}
.btn-primary:hover { background: var(--primary-light); }
.btn-primary:active:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(0.985);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Gold-outline (now blue outline) ── */
.btn-gold-outline {
  background: #FFFFFF;
  border: 1px solid var(--border-active);
  color: var(--primary);
  font-weight: 700;
}
.btn-gold-outline:active:not(:disabled) {
  background: rgba(0, 102, 204, 0.06);
  border-color: var(--primary);
}

/* ── Active tab: light blue ── */
.tab-gold-active {
  background: rgba(0, 102, 204, 0.06) !important;
  border-color: var(--border-active) !important;
  color: var(--primary) !important;
}

/* ── Gold frame (now light blue frame) ── */
.ps-gold-frame {
  position: relative;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  background: #FFFFFF !important;
  box-shadow: var(--shadow);
}
.ps-gold-frame::before,
.ps-gold-frame::after { display: none; }

.ps-gold-input {
  background: #F9FAFB !important;
  border: 1px solid var(--border) !important;
  box-shadow: none;
  color: var(--text);
}
.ps-gold-input::placeholder { color: rgba(0, 0, 0, 0.3); }
.ps-gold-input:focus {
  border-color: var(--border-active) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

/* ── Odds button ── */
.odds-btn {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 78px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.odds-btn:active { transform: scale(0.96); }
.odds-btn.selected {
  border: 1px solid var(--border-active);
  background: rgba(0, 102, 204, 0.06);
  box-shadow: none;
}
.odds-btn.selected::before,
.odds-btn.selected::after { display: none; }

.odds-btn .label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.odds-btn .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

/* ── Section title ── */
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 4px 0 4px 12px;
  border-left: 3px solid var(--primary);
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ── Empty / loading state ── */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}