/* F1 Predict — Paddock. Shared visual system and responsive page compositions. */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../assets/fonts/barlow-condensed-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}
:root {
  --bg-base: #141516;
  --bg-surface: #1b1c1e;
  --bg-elevated: #242527;
  --accent: #f34232;
  --accent-hover: #ff5848;
  --accent-dim: #f3423218;
  --text-primary: #f4f1e9;
  --text-secondary: #cdcdc6;
  --text-muted: #999b98;
  --glass-bg: #ffffff03;
  --glass-bg-hover: #ffffff08;
  --glass-border: #ffffff12;
  --glass-border-hover: #ffffff2a;
  --border: var(--glass-border);
  --font-display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-data: 'DM Sans', sans-serif;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --gold: #e9c578;
  --status-upcoming: #a5a7a3;
  --success: #a6c68b;
  --status-active: #a6c68b;
  --shadow-glow: 0 8px 24px #0002;
}
body {
  background: var(--bg-base);
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
}
fieldset {
  border: 0;
  min-width: 0;
}
.icon {
  flex: 0 0 auto;
}
.diagonal-arrow {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: middle;
  transform: rotate(-45deg);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.6;
}
.text-label {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.text-display-sm {
  font-size: 24px;
  font-weight: 700;
}
.text-data {
  font-variant-numeric: tabular-nums;
}
.status-dot,
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}
.brand-mark {
  display: inline-flex;
  gap: 3px;
  transform: skew(-28deg);
  margin-right: 7px;
}
.brand-mark i {
  display: block;
  background: var(--accent);
  height: 21px;
  width: 7px;
}
.brand-mark i:last-child {
  width: 3px;
}
.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 19px;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand-light {
  margin-left: 3px;
  font-weight: 400;
}
.brand-dot {
  font-size: 9px;
  vertical-align: super;
  margin-left: 3px;
}
.header-inner {
  max-width: 1440px;
  height: 84px;
  padding: 0 48px;
}
.app-header {
  background: #141516f2;
}
.header-nav {
  height: 100%;
  gap: 10px;
}
.nav-item {
  position: relative;
  height: 100%;
  border-radius: 0;
  padding: 0 17px;
  font-size: 12px;
  gap: 8px;
}
.nav-number {
  font-size: 9px;
  color: #676a66;
}
.nav-item.active {
  background: transparent;
  color: var(--text-primary);
}
.nav-item.active .nav-number {
  color: var(--accent);
}
.nav-item.active::after {
  left: 17px;
  right: 17px;
  bottom: 0;
  width: auto;
  transform: none;
  height: 2px;
}
.header-user {
  color: var(--text-primary);
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #dfdbc9;
  color: #252624;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}
.app-main {
  max-width: 1344px;
  padding: 44px 48px 56px;
}
.app-main:has(#auth-page.active) {
  max-width: none;
  padding: 0;
}
.app:has(#auth-page.active) > .app-footer {
  display: none;
}
.app-footer {
  max-width: 1344px;
  width: calc(100% - 96px);
  margin: auto auto 0;
  border-top: 1px solid var(--glass-border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  color: #858781;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.page-header {
  margin-bottom: 32px;
}
.editorial-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.page-header .eyebrow {
  color: var(--accent);
  margin-bottom: 7px;
}
.page-title {
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}
.season-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.season-label {
  padding: 11px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}
.btn {
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
  border-radius: 4px;
}
.btn-sm {
  min-height: 32px;
  font-size: 11px;
}
.btn-lg {
  min-height: 48px;
  font-size: 13px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  box-shadow: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: #ffffff05;
}
.card {
  background: var(--bg-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.card-cta {
  border-left: 1px solid var(--glass-border);
}
.card-header {
  padding: 20px 24px;
}
.card-body {
  padding: 24px;
}
.badge {
  font-size: 9px;
  padding: 5px 8px;
  letter-spacing: 0.07em;
  font-weight: 500;
  border-radius: 3px;
}
.badge-active {
  background: #a6c68b12;
  border-color: #a6c68b25;
}
.form-label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 9px;
}
.form-input,
.form-select,
.form-textarea {
  background: #141516;
  border: 1px solid #ffffff1c;
  border-radius: 4px;
  font-size: 13px;
  padding: 13px 15px;
  min-height: 48px;
}
.form-input:focus {
  border-color: #aaa99f;
  box-shadow: 0 0 0 3px #ffffff05;
}
.form-input::placeholder {
  color: #6f736f;
}
.form-group {
  margin-bottom: 21px;
}
.form-error {
  font-size: 11px;
  padding-top: 5px;
}
/* Public entry: an editorial racing poster paired with a quiet sign-in surface. */
.auth-shell {
  max-width: 1600px;
  padding: 0 48px;
  margin: auto;
}
.auth-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 95px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 650px;
  padding: 0;
  align-items: stretch;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}
.auth-story {
  min-height: 690px;
  position: relative;
  overflow: hidden;
  background: #222625;
  padding: 34px 38px;
}
.auth-story::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #22262500 50%, #141616bb);
  pointer-events: none;
}
.auth-story-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
  color: #c2c7bd;
}
.auth-story-top .eyebrow {
  font-size: 9px;
}
.story-edition {
  font-size: 8px;
  letter-spacing: 0.09em;
  opacity: 0.65;
}
.auth-story h1 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(68px, 6.5vw, 104px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.015em;
  margin-top: 44px;
}
.auth-story h1 > span {
  color: var(--accent);
}
.auth-story-copy {
  position: relative;
  z-index: 2;
  margin-top: 23px;
  font-size: 12px;
  line-height: 1.75;
  color: #acb1a8;
}
.auth-car {
  position: absolute;
  width: 110%;
  max-width: none;
  bottom: -105px;
  right: -115px;
  pointer-events: none;
}
.auth-car,
.race-hero-art img {
  height: auto;
}
.story-stamp {
  position: absolute;
  bottom: 127px;
  left: 38px;
  z-index: 2;
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: #989f94;
}
.stamp-cross {
  display: block;
  font-size: 25px;
  font-weight: 400;
  margin-bottom: 9px;
}
.story-bottom {
  position: absolute;
  bottom: 28px;
  left: 38px;
  right: 38px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #ffffff24;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.story-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-bottom .live-dot {
  background: var(--accent);
}
.auth-form-side {
  padding: 34px 42px 28px;
  display: flex;
  flex-direction: column;
  background: #1a1b1c;
}
.auth-form-intro {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #979991;
}
.auth-form-intro .eyebrow {
  font-size: 8px;
}
.tiny-line {
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.form-number {
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.auth-card {
  max-width: 350px;
  margin: auto;
  padding: 42px 0;
  width: 100%;
}
.auth-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 23px;
}
.auth-symbol {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 6px;
}
.auth-title-row .text-label {
  font-size: 9px;
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.auth-description {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 15px;
  margin-bottom: 29px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 38px;
  display: grid;
  place-items: center;
  color: #878a85;
}
.password-toggle[aria-pressed='true'] {
  color: var(--accent);
}
.auth-submit {
  width: 100%;
  justify-content: space-between;
  min-height: 50px;
  margin-top: 6px;
  padding: 0 18px;
}
.auth-switch {
  text-align: center;
  font-size: 11px;
  margin-top: 24px;
  color: var(--text-muted);
}
.auth-switch button {
  font-weight: 600;
  margin-left: 4px;
  color: var(--text-primary);
  border-bottom: 1px solid #ffffff40;
  padding: 2px 0;
}
.auth-switch button:hover {
  color: var(--accent);
}
.auth-switch button:disabled {
  color: var(--text-muted);
}
.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
  color: #8c8f87;
  margin-top: 32px;
}
.auth-footnote .icon {
  width: 14px;
  height: 14px;
}
.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #7f827a;
}
.checker-pattern {
  width: 32px;
  height: 16px;
  background: conic-gradient(
      #888c84 25%,
      transparent 0 50%,
      #888c84 0 75%,
      transparent 0
    )
    0 0 / 8px 8px;
  opacity: 0.5;
}
.connection-state {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: #ffffff05;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 22px;
  color: var(--text-muted);
}
.connection-error {
  flex-direction: column;
  align-items: flex-start;
  border-color: #e9c57830;
  color: var(--gold);
}
.auth-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0;
}
.auth-features > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 7px 30px;
  border-right: 1px solid var(--glass-border);
}
.auth-features > div:first-child {
  padding-left: 0;
}
.auth-features > div:last-child {
  border-right: 0;
  padding-right: 0;
}
.feature-index {
  color: var(--accent);
  font-size: 10px;
  align-self: flex-start;
  padding-top: 3px;
}
.auth-features h3 {
  font-size: 13px;
  font-weight: 600;
}
.auth-features p {
  font-size: 10px;
  margin-top: 5px;
  color: var(--text-muted);
}
.auth-features .icon {
  margin-left: auto;
  color: #636860;
  width: 18px;
}
.auth-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #747870;
}
.noscript-message {
  padding: 40px;
  text-align: center;
}
/* Overview */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.race-hero {
  grid-column: 1 / -1;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #deded1;
  color: #232922;
  border: 0;
}
.race-hero:hover {
  background: #e5e4d8;
}
.race-hero-copy {
  padding: 34px 38px;
  position: relative;
  z-index: 2;
}
.race-hero .eyebrow {
  color: #5d6456;
  font-size: 9px;
}
.race-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 0.96;
  text-transform: uppercase;
  max-width: 440px;
  margin: 19px 0 12px;
}
.race-hero-location {
  font-size: 12px;
  color: #69705e;
}
.race-hero-art {
  position: relative;
  overflow: hidden;
  background: #d1d2c4;
}
.race-hero-art::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #6a715f30;
  border-radius: 50%;
  top: -40px;
  left: 70px;
  box-shadow:
    0 0 0 55px #6a715f0a,
    0 0 0 110px #6a715f05;
}
.race-hero-art img {
  position: absolute;
  width: 125%;
  max-width: none;
  top: -92px;
  right: -70px;
}
.race-hero-round {
  position: absolute;
  right: 25px;
  top: 22px;
  font-size: 10px;
  color: #5d6456;
  letter-spacing: 0.1em;
}
.race-hero-art-label {
  position: absolute;
  bottom: 20px;
  right: 25px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #5d6456;
}
.race-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 15px;
}
.race-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #23292240;
  padding-bottom: 5px;
}
.countdown {
  gap: 18px;
  margin-top: 22px;
}
.countdown-unit {
  align-items: flex-start;
  gap: 3px;
}
.countdown-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: #232922;
  line-height: 1;
}
.countdown-label {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #707762;
}
.overview-card {
  min-height: 220px;
}
.overview-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
  padding-bottom: 8px;
}
.overview-card .card-header .icon {
  color: var(--text-muted);
  width: 16px;
}
.overview-card .card-body {
  padding-top: 10px;
}
.mini-standing {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.mini-standing:last-child {
  border: 0;
}
.mini-rank {
  color: #747b70;
  font-size: 10px;
  width: 17px;
}
.mini-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-points {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mini-points small {
  font-size: 9px;
  color: var(--text-muted);
}
.leader-name {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.leader-points {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  margin-top: 12px;
}
.leader-points small {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.card-detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}
.result-title {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 6px;
}
.result-link {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 19px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 33px 0 17px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.section-label a {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--text-secondary);
}
.season-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: var(--bg-surface);
}
.season-stat {
  padding: 20px 24px;
  border-right: 1px solid var(--glass-border);
}
.season-stat:last-child {
  border: 0;
}
.season-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 7px;
}
.season-stat span {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.dashboard-cta .card {
  border-color: var(--glass-border);
}
/* Calendar */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid var(--glass-border);
  margin-bottom: 10px;
}
.calendar-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 13px;
  color: var(--text-muted);
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.filter-btn:hover {
  color: var(--text-primary);
}
.filter-btn.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--glass-border);
}
.calendar-count {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.07em;
}
.race-list {
  gap: 9px;
}
.race-calendar-row {
  border-radius: 6px;
}
.race-calendar-row[data-status='active'] {
  border-color: #a6c68b45;
  background: #a6c68b05;
}
.race-row-body {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 23px;
}
.race-round {
  display: flex;
  flex-direction: column;
  min-width: 44px;
  border-right: 1px solid var(--glass-border);
  padding-right: 21px;
}
.race-round small {
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.race-round strong {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
}
.race-flag {
  font-size: 26px;
  width: 34px;
}
.race-row-info {
  flex: 1;
  min-width: 0;
}
.race-row-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 5px;
}
.race-row-info p {
  font-size: 11px;
  color: var(--text-muted);
}
.race-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.race-row-arrow {
  margin-left: 17px;
  color: var(--text-muted);
}
/* Championship */
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 30px 0;
}
.podium-card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: var(--bg-surface);
  overflow: hidden;
}
.podium-card:first-child {
  background: #deded1;
  color: #232922;
  border-color: transparent;
}
.podium-number {
  position: absolute;
  right: 15px;
  top: -10px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  opacity: 0.04;
}
.podium-card:first-child .podium-number {
  opacity: 0.09;
}
.podium-card .eyebrow {
  font-size: 9px;
  color: var(--text-muted);
  position: relative;
}
.podium-card:first-child .eyebrow {
  color: #5d6456;
}
.podium-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  margin: 25px 0 12px;
  overflow-wrap: anywhere;
  position: relative;
}
.podium-score {
  font-size: 12px;
  position: relative;
}
.podium-score strong {
  font-size: 22px;
  margin-right: 5px;
}
.leaderboard-table {
  border-spacing: 0;
}
.leaderboard-row td {
  padding: 21px 24px;
  background: var(--bg-surface);
  border-top: 0;
  border-bottom: 1px solid var(--glass-border);
}
.leaderboard-row td:first-child,
.leaderboard-row td:last-child {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
.leaderboard-row.leader td {
  border-left: 0;
  background: #deded108;
}
.leaderboard-row.leader td:first-child {
  border-left: 2px solid var(--accent);
}
.standing-player {
  display: flex;
  align-items: center;
  gap: 13px;
}
.standing-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2d302c;
  color: #babdb3;
  font-size: 11px;
}
.standing-rank {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-muted);
}
.standing-name {
  font-size: 13px;
}
.standings-live {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}
/* Prediction builder, dialogs and chat use the same tactile surfaces. */
.prediction-layout {
  gap: 22px;
  min-height: 0;
}
.prediction-title {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 0;
}
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 22px;
  min-width: 0;
}
.panel-header {
  padding-bottom: 18px;
  margin-bottom: 12px;
}
.panel-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.session-tabs {
  gap: 8px;
  margin-bottom: 24px;
}
.session-tab {
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 12px;
}
.session-tab.active {
  background: var(--bg-surface);
}
.driver-card {
  background: #222527;
  border-radius: 4px;
}
.driver-pool {
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 9px;
}
.driver-pool .driver-card {
  aspect-ratio: 1.1;
}
.driver-card-name {
  font-size: 13px;
}
.order-slot-placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.confirm-bar {
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  margin-top: 18px;
  background: #1b1c1ef5;
}
.modal {
  background: #222426;
  border-radius: 8px;
  box-shadow: 0 30px 100px #0007;
}
.side-panel {
  background: #1b1c1e;
  width: 460px;
}
.side-panel-header h2 {
  font-family: var(--font-display);
  font-size: 30px;
}
.toast {
  background: #282b28;
  border-radius: 6px;
  font-size: 12px;
}
.empty-state {
  border: 1px dashed var(--glass-border);
  border-radius: 6px;
  margin-top: 20px;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 30px;
}
.empty-state-text {
  font-size: 13px;
}
.chat-fab {
  width: 48px;
  height: 48px;
  background: var(--accent);
  box-shadow: 0 5px 20px #0005;
  border: 1px solid #ff766660;
  border-radius: 14px;
}
.chat-fab-avatar {
  display: grid;
  place-items: center;
}
.chat-popup {
  background: #1b1c1e;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}
.chat-header {
  background: #242627;
}
.chat-title {
  font-family: var(--font-display);
  font-size: 25px;
}
.chat-bubble {
  font-size: 13px;
}
.chat-message-wrapper.own .chat-bubble,
.chat-send-btn {
  background: var(--accent);
}
@media (min-width: 1500px) {
  .auth-story {
    min-height: 780px;
  }
  .auth-car {
    bottom: -140px;
  }
  .auth-card {
    max-width: 390px;
  }
}
@media (max-width: 1100px) {
  .auth-shell {
    padding: 0 28px;
  }
  .auth-story {
    padding: 28px;
  }
  .auth-story h1 {
    font-size: 72px;
  }
  .story-edition {
    display: none;
  }
  .auth-form-side {
    padding: 28px;
  }
  .form-number {
    display: none;
  }
  .auth-car {
    bottom: -50px;
    right: -75px;
  }
  .header-inner {
    padding: 0 28px;
  }
  .header-user .text-body-sm {
    display: none;
  }
  .nav-item {
    padding: 0 10px;
  }
  .app-main {
    padding: 32px 28px;
  }
  .race-hero-art img {
    width: 155%;
    right: -95px;
    top: -42px;
  }
  .auth-features > div {
    padding: 7px 18px;
  }
  .auth-features .icon {
    display: none;
  }
}
@media (max-width: 900px) {
  .header-inner {
    height: 70px;
  }
  .header-nav {
    display: none;
    height: auto;
  }
  .header-nav.mobile-open {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
    background: #1b1c1e;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-item {
    min-height: 46px;
    width: 100%;
    padding: 0 16px;
  }
  .nav-item.active::after {
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    right: auto;
  }
  .auth-layout {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story h1 {
    font-size: 61px;
  }
  .auth-story {
    min-height: 675px;
  }
  .auth-car {
    width: 145%;
    right: -95px;
    bottom: -25px;
  }
  .auth-story-copy br {
    display: none;
  }
  .auth-story-copy {
    max-width: 230px;
  }
  .auth-title-row .text-label {
    font-size: 8px;
  }
  .auth-card h2 {
    font-size: 46px;
  }
  .auth-footnote {
    font-size: 8px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .overview-card .card-header,
  .overview-card .card-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .race-hero-copy {
    padding: 28px;
  }
  .race-hero h2 {
    font-size: 52px;
  }
  .race-hero-art img {
    top: 0;
  }
  .race-row-body {
    gap: 16px;
  }
  .race-row-meta {
    max-width: 210px;
  }
  .race-row-arrow {
    display: none;
  }
}
@media (max-width: 680px) {
  .auth-shell {
    padding: 0 18px;
  }
  .auth-topbar {
    height: 76px;
  }
  .header-logo {
    font-size: 17px;
  }
  .season-tag {
    font-size: 8px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    min-height: 350px;
    padding: 25px;
  }
  .auth-story h1 {
    font-size: clamp(45px, 12.6vw, 78px);
    margin-top: 28px;
  }
  .auth-story-copy {
    font-size: 10px;
    max-width: 175px;
    margin-top: 16px;
  }
  .auth-car {
    width: 90%;
    bottom: -77px;
    right: -118px;
  }
  .story-stamp {
    display: none;
  }
  .story-bottom {
    left: 25px;
    right: 25px;
    bottom: 20px;
    padding-top: 14px;
    font-size: 7px;
  }
  .auth-story-top .eyebrow {
    font-size: 8px;
  }
  .story-edition {
    display: block;
    font-size: 7px;
  }
  .auth-form-side {
    padding: 26px;
  }
  .auth-card {
    max-width: none;
    padding: 34px 0;
  }
  .auth-card h2 {
    font-size: 50px;
  }
  .auth-form-intro .eyebrow {
    font-size: 8px;
  }
  .form-number {
    display: block;
  }
  .auth-features {
    grid-template-columns: 1fr;
    margin: 15px 0;
  }
  .auth-features > div,
  .auth-features > div:first-child,
  .auth-features > div:last-child {
    padding: 19px 7px;
    border-right: 0;
    border-bottom: 1px solid var(--glass-border);
  }
  .auth-features > div:last-child {
    border-bottom: 0;
  }
  .auth-features .icon {
    display: block;
  }
  .auth-bottom {
    font-size: 7px;
    padding: 22px 0;
  }
  .auth-bottom > span:nth-child(2) {
    display: none;
  }
  .header-inner {
    padding: 0 16px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn {
    padding: 5px 8px;
  }
  .user-avatar {
    width: 27px;
    height: 27px;
  }
  .app-main {
    padding: 27px 18px 40px;
  }
  .page-title {
    font-size: 44px;
  }
  .page-subtitle {
    font-size: 11px;
  }
  .page-header {
    margin-bottom: 25px;
  }
  .editorial-heading .season-label {
    display: none;
  }
  .app-footer {
    width: calc(100% - 36px);
    gap: 15px;
    font-size: 7px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .race-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .race-hero-copy {
    padding: 25px;
  }
  .race-hero h2 {
    font-size: 52px;
    max-width: 260px;
  }
  .race-hero-art {
    display: none;
  }
  .countdown {
    gap: 24px;
  }
  .countdown-value {
    font-size: 36px;
  }
  .race-hero-footer {
    margin-top: 24px;
  }
  .overview-card {
    min-height: 0;
  }
  .overview-card .card-header {
    padding: 20px 22px 8px;
  }
  .overview-card .card-body {
    padding: 12px 22px 22px;
  }
  .season-strip {
    grid-template-columns: 1fr;
  }
  .season-stat {
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--glass-border);
  }
  .season-stat:last-child {
    border-bottom: 0;
  }
  .race-row-body {
    padding: 18px 16px;
    display: grid;
    grid-template-columns: 33px 28px minmax(0, 1fr);
    gap: 12px;
  }
  .race-round {
    min-width: 0;
    padding-right: 12px;
    grid-row: span 2;
    align-self: stretch;
    justify-content: center;
  }
  .race-flag {
    font-size: 22px;
    width: auto;
  }
  .race-row-info h3 {
    font-size: 23px;
  }
  .race-row-info p {
    font-size: 10px;
  }
  .race-row-meta {
    grid-column: 2 / -1;
    max-width: none;
  }
  .calendar-toolbar {
    padding-top: 14px;
  }
  .calendar-count {
    display: none;
  }
  .filter-btn {
    padding: 8px 10px;
  }
  .podium {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 20px 0;
  }
  .podium-card {
    padding: 21px;
  }
  .podium-card h2 {
    margin: 12px 0;
    font-size: 30px;
  }
  .podium-number {
    font-size: 110px;
    right: 25px;
    top: 0;
  }
  .leaderboard-row td {
    padding: 17px 15px;
  }
  .standing-avatar {
    display: none;
  }
  .prediction-layout {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 16px;
  }
  .panel-title {
    font-size: 23px;
  }
  .driver-pool {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .order-list {
    max-height: 480px;
  }
  .driver-pool {
    max-height: 450px;
  }
  .confirm-bar {
    padding: 14px;
    flex-wrap: wrap;
  }
  .confirm-bar-actions {
    flex-wrap: wrap;
  }
  .confirm-bar-message {
    flex-basis: 100%;
    font-size: 11px;
  }
  .session-tab {
    padding: 12px 15px;
  }
  .toast-container {
    left: 16px;
    right: 16px;
  }
  .dashboard-cta .card-body {
    gap: 15px;
  }
  .chat-popup {
    border-radius: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-story h1,
  .auth-card {
    animation: paddock-enter 0.7s ease both;
  }
  .auth-card {
    animation-delay: 0.1s;
  }
  @keyframes paddock-enter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
