:root {
  --navy-900: #06122A;
  --navy-800: #0A1A33;
  --navy-700: #0F2547;
  --navy-600: #16335F;
  --blue: #1F5BC6;
  --blue-2: #2E6FD8;
  --blue-3: #6FA3F2;
  --gold: #C9A227;
  --white: #F4F7FC;
  --muted: #9FB3D1;
  --ok: #22C55E;
  --bad: #EF4444;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(159, 179, 209, 0.22);
  --fd: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --fb: 'Inter', system-ui, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
.bp-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(46, 111, 216, 0.35), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(201, 162, 39, 0.12), transparent 60%),
    linear-gradient(rgba(111, 163, 242, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(111, 163, 242, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(111, 163, 242, 0.035) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, rgba(111, 163, 242, 0.035) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--navy-800);
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift { to { background-position: 0 0, 0 0, 48px 48px, 48px 48px, 12px 12px, 12px 12px, 0 0; } }
.display { font-family: var(--fd); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.95; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* team animations */
.anim-rebote { animation: aRebote 1.1s ease-in-out infinite; display: inline-block; }
.anim-giro { animation: aGiro 2.4s linear infinite; display: inline-block; }
.anim-pulso { animation: aPulso 1.2s ease-in-out infinite; display: inline-block; }
.anim-sacudida { animation: aSacudida 0.9s ease-in-out infinite; display: inline-block; }
.anim-flotar { animation: aFlotar 2.6s ease-in-out infinite; display: inline-block; }
@keyframes aRebote { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18%); } 60% { transform: translateY(0) scale(1.08, 0.92); } }
@keyframes aGiro { to { transform: rotate(360deg); } }
@keyframes aPulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes aSacudida { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@keyframes aFlotar { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12%) rotate(3deg); } }

/* generic entrances */
.in-up { animation: inUp 0.6s cubic-bezier(.2, .8, .2, 1) both; }
.in-pop { animation: inPop 0.55s cubic-bezier(.2, 1.4, .4, 1) both; }
.in-fade { animation: inFade 0.5s ease both; }
@keyframes inUp { from { opacity: 0; transform: translateY(30px); } }
@keyframes inPop { from { opacity: 0; transform: scale(0.6); } }
@keyframes inFade { from { opacity: 0; } }
.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); filter: brightness(1.25); } }

.btn {
  border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700;
  background: var(--blue-2); color: #fff; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--white); }
.btn.ok { background: var(--ok); color: #04210f; }
.btn.bad { background: var(--bad); }
.btn.gold { background: var(--gold); color: #1d1600; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111c33; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; z-index: 99; animation: inUp .3s both; }
.svg-card { background: #fff; border-radius: 14px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.svg-card svg { width: 100%; height: 100%; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #4b5d7a; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
