:root {
  --f1-red: #ff1801;
  --f1-red-dark: #b80d00;
  --f1-red-glow: rgba(255, 24, 1, 0.42);
  --studio-bg: #05060a;
  --anodized-border: #32394f;
  --anodized-highlight: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--studio-bg);
  background-image:
    radial-gradient(ellipse 85% 45% at 50% -10%, rgba(255, 24, 1, 0.14), transparent 60%),
    radial-gradient(circle at 50% 35%, rgba(26, 32, 48, 0.45) 0%, rgba(5, 6, 10, 0.98) 75%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.font-f1 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.04em;
}
.font-telemetry {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
}
.carbon-panel {
  background-color: #0e111a;
  background-image:
    linear-gradient(168deg, rgba(30, 35, 50, 0.72) 0%, rgba(10, 12, 18, 0.88) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 3px, rgba(0, 0, 0, 0.35) 3px, rgba(0, 0, 0, 0.35) 6px);
  border: 1px solid var(--anodized-border);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 var(--anodized-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    0 20px 44px rgba(0, 0, 0, 0.85);
  max-width: 100%;
  position: relative;
}
.f1-top-stripe {
  border-top: 3px solid var(--f1-red);
  box-shadow:
    inset 0 2px 14px rgba(255, 24, 1, 0.22),
    0 20px 44px rgba(0, 0, 0, 0.85);
}
.f1-input, .f1-select {
  background-color: #07090f !important;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 5px) !important;
  border: 1px solid #353c54 !important;
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  max-width: 100%;
  color-scheme: dark;
}
.f1-input:focus, .f1-select:focus {
  border-color: var(--f1-red) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 24, 1, 0.32) !important;
  outline: none;
}
input.f1-input:-webkit-autofill,
input.f1-input:-webkit-autofill:hover,
input.f1-input:-webkit-autofill:focus,
input.f1-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #07090f inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  border: 1px solid #353c54 !important;
  transition: background-color 9999s ease-in-out 0s;
}
.custom-dropdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  max-height: 280px;
  overflow-y: auto;
  background-color: #090b12;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 36, 0.98) 0%, rgba(8, 10, 16, 0.99) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 5px);
  border: 1px solid #434c69;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.custom-dropdown-panel::-webkit-scrollbar {
  width: 6px;
}
.custom-dropdown-panel::-webkit-scrollbar-track {
  background: #06070b;
  border-radius: 6px;
}
.custom-dropdown-panel::-webkit-scrollbar-thumb {
  background: #353c54;
  border-radius: 6px;
}
.custom-dropdown-panel::-webkit-scrollbar-thumb:hover {
  background: var(--f1-red);
}
.btn-f1-primary {
  background: linear-gradient(180deg, #ff2814 0%, #d91000 55%, #9e0800 100%);
  border: 1px solid rgba(255, 125, 110, 0.55);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 22px rgba(255, 24, 1, 0.42);
  transition: all 0.16s ease;
}
.btn-f1-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ff3b28 0%, #e61400 55%, #b00a00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 28px rgba(255, 24, 1, 0.58);
}
.btn-f1-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(35%);
}
.btn-f1-secondary {
  background:
    linear-gradient(180deg, rgba(32, 37, 54, 0.92) 0%, rgba(15, 18, 28, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 5px);
  border: 1px solid #38405a;
  color: #e2e8f0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.55);
  transition: all 0.16s ease;
}
.btn-f1-secondary:hover {
  border-color: #7c8aa8;
  color: #ffffff;
  background: linear-gradient(180deg, #272d42 0%, #151926 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 14px rgba(255, 255, 255, 0.08);
}
.btn-whatsapp-f1 {
  background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%);
  border: 1px solid rgba(110, 231, 183, 0.55);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.16s ease;
}
.btn-whatsapp-f1:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #34d399 0%, #10b981 60%, #059669 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 8px 24px rgba(16, 185, 129, 0.5);
}
.choice-btn {
  background:
    linear-gradient(180deg, rgba(24, 28, 42, 0.92) 0%, rgba(12, 14, 22, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 5px);
  border: 1px solid #30374f;
  color: #cbd5e1;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.16s ease;
}
.choice-btn:hover {
  border-color: #5b6785;
  color: #ffffff;
}
.choice-btn.active {
  background:
    linear-gradient(180deg, rgba(255, 24, 1, 0.22) 0%, rgba(16, 19, 30, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 5px);
  border: 1px solid rgba(255, 24, 1, 0.78);
  border-bottom: 2.5px solid var(--f1-red);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 16px rgba(255, 24, 1, 0.28);
}
.choice-btn.h2h-win {
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.36) 0%, rgba(6, 78, 59, 0.94) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 2px, transparent 2px, transparent 5px) !important;
  border: 1.5px solid #10b981 !important;
  border-bottom: 3px solid #34d399 !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 18px rgba(16, 185, 129, 0.42) !important;
  transform: translateY(-1px);
}
.choice-btn.h2h-loss {
  background:
    linear-gradient(180deg, rgba(220, 38, 38, 0.26) 0%, rgba(69, 10, 10, 0.9) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 5px) !important;
  border: 1px solid rgba(239, 68, 68, 0.58) !important;
  border-bottom: 2.5px solid #ef4444 !important;
  color: #fecaca !important;
  opacity: 0.88;
}
.prop-card-yes {
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.22) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.55) !important;
  border-left: 4px solid #10b981 !important;
}
.prop-card-no {
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.22) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.55) !important;
  border-left: 4px solid #ef4444 !important;
}
.prop-card-amber {
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.24) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.55) !important;
  border-left: 4px solid #f59e0b !important;
}
.nav-pill-active {
  background:
    linear-gradient(180deg, #212638 0%, #10131d 100%) !important;
  color: #ffffff !important;
  border: 1px solid #454e6b !important;
  border-bottom: 2.5px solid var(--f1-red) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 16px -4px rgba(255, 24, 1, 0.4) !important;
}
.mobile-tab-active {
  color: #ffffff !important;
  border-top: 2.5px solid var(--f1-red);
  background: linear-gradient(180deg, rgba(255, 24, 1, 0.18) 0%, rgba(12, 14, 22, 0.95) 100%);
}
[class*="livery-"] {
  --team-rgb: 232, 0, 45;
  --team-hex: #e8002d;
  --team-accent: rgba(18, 21, 32, 0.92);
  background:
    linear-gradient(90deg, rgba(var(--team-rgb), 0.3) 0%, var(--team-accent) 44%, rgba(10, 12, 18, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 2px, transparent 2px, transparent 5px);
  border: 1px solid rgba(var(--team-rgb), 0.48) !important;
  border-left: 4px solid var(--team-hex) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.livery-ferrari { --team-rgb: 232, 0, 45; --team-hex: #e8002d; }
.livery-mercedes { --team-rgb: 0, 210, 190; --team-hex: #00d2be; }
.livery-mclaren { --team-rgb: 255, 128, 0; --team-hex: #ff8000; }
.livery-redbull { --team-rgb: 54, 113, 198; --team-hex: #3671c6; }
.livery-alpine { --team-rgb: 0, 147, 204; --team-hex: #0093cc; --team-accent: rgba(255, 102, 178, 0.15); }
.livery-aston { --team-rgb: 34, 153, 113; --team-hex: #229971; }
.livery-williams { --team-rgb: 100, 196, 255; --team-hex: #64c4ff; }
.livery-audi { --team-rgb: 245, 5, 55; --team-hex: #f50537; --team-accent: rgba(156, 163, 175, 0.2); }
.livery-cadillac { --team-rgb: 212, 175, 55; --team-hex: #d4af37; }
.livery-vcarb { --team-rgb: 102, 146, 255; --team-hex: #6692ff; }
.livery-haas { --team-rgb: 229, 231, 235; --team-hex: #e5e7eb; --team-accent: rgba(185, 28, 28, 0.16); }
.telemetry-pos-cube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  background: linear-gradient(180deg, #121624 0%, #07090f 100%);
  border: 1px solid #353c54;
  border-radius: 7px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.telemetry-team-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #101420 0%, #07090f 100%);
  border: 1px solid #32394f;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.telemetry-pts-box {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  background: linear-gradient(180deg, #06080d 0%, #0d101a 100%);
  border: 1px solid #353c54;
  padding: 6px 13px;
  border-radius: 9px;
  min-width: 96px;
  text-align: right;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.flag-icon {
  display: inline-block;
  width: 21px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}
.svg-telemetry-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  stroke-width: 2;
  vertical-align: middle;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .overflow-x-auto {
    overflow-x: hidden !important;
  }
  table, tbody {
    display: block;
    width: 100% !important;
  }
  thead {
    display: none !important;
  }
  tr.mobile-card-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 11px !important;
    width: 100% !important;
  }
  tr.mobile-card-row td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
  }
  .telemetry-pts-box {
    min-width: 82px;
    padding: 5px 10px;
  }
}
