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

:root {
  /* ── 蓉色珊瑚 — Dusk Coral Theme ── */
  --primary: #F4A261;
  --primary-dark: #E76F51;
  --primary-light: #FFB980;
  --primary-glow: #FFDDD2;
  --accent: #E76F51;
  --accent-light: #FFDDD2;
  --gradient-primary: linear-gradient(135deg, #E76F51, #F4A261);
  --gradient-accent: linear-gradient(135deg, #F4A261, #FFDDD2);
  --gradient-hot: linear-gradient(135deg, #E76F51, #F4A261, #FFDDD2);
  --gradient-success: linear-gradient(135deg, #2C5364, #203A43);
  --gradient-hero: linear-gradient(135deg, #0F2027, #203A43, #0F2027);

  --secondary: #203A43;
  --tertiary: #1A3038;
  --neutral: #8FA3AD;

  --bg-body: #0F2027;
  --bg-card: #203A43;
  --bg-card-elevated: #2C5364;
  --bg-hover: #345E70;
  --bg-elevated: #2C5364;
  --bg-input: #162D36;
  --bg-glass: rgba(15, 32, 39, 0.85);

  --text: #FFFFFF;
  --text-secondary: #D4E4EB;
  --text-muted: #8FA3AD;
  --text-dim: #5E7A86;

  --border: rgba(255, 255, 255, 0.08);
  --border-active: #F4A261;
  --border-w: 1px;
  --border-w-thick: 1px;

  --danger: #EF4444;
  --success: #4ADE80;
  --warning: #FBBF24;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 20px rgba(244, 162, 97, 0.2);
  --shadow-glow-accent: 0 0 20px rgba(231, 111, 81, 0.2);
}

/* Odds / betting accent — coral orange */
:root {
  --odds-accent: #F4A261;
  --odds-accent-light: #FFB980;
  --odds-accent-soft: rgba(244, 162, 97, 0.1);
}

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

body {
  font-family: 'Inter', -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;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(244, 162, 97, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(244, 162, 97, 0.5); }

/* ── Input ── */
input {
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: var(--text-dim); }
input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.15);
}

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 var(--bg-input) inset;
  border: 1px solid var(--border);
  transition: background-color 99999s ease-out 0s;
}

/* ── Primary button (coral gradient 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(--gradient-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  width: 100%;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.35);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 4px 20px rgba(244, 162, 97, 0.4); }
.btn-primary:active:not(:disabled) {
  transform: scale(0.985);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Outline button ── */
.btn-gold-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary-light);
  font-weight: 700;
}
.btn-gold-outline:active:not(:disabled) {
  background: rgba(244, 162, 97, 0.08);
  border-color: var(--primary-light);
}

/* ── Active tab ── */
.tab-gold-active {
  background: rgba(244, 162, 97, 0.1) !important;
  border-color: var(--primary) !important;
  color: var(--primary-light) !important;
}

/* ── Card frame ── */
.ps-gold-frame {
  position: relative;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  background: var(--bg-card) !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.ps-gold-frame::before,
.ps-gold-frame::after { display: none; }

.ps-gold-input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none;
  color: var(--text);
}
.ps-gold-input::placeholder { color: var(--text-dim); }
.ps-gold-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.15) !important;
}

/* ── Odds button ── */
.odds-btn {
  background: var(--bg-card-elevated);
  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, background 0.2s;
}
.odds-btn:active { transform: scale(0.96); }
.odds-btn.selected {
  border: 1px solid var(--primary);
  background: rgba(244, 162, 97, 0.1);
  box-shadow: 0 0 12px rgba(244, 162, 97, 0.12);
}
.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;
}
