    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: radial-gradient(circle at top, #0f172a 0%, #020617 70%);
      color: #f8fafc;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 2rem;
    }
    .container {
      max-width: 720px;
      width: 100%;
      padding: 2rem;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 24px;
      backdrop-filter: blur(14px);
      box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    }
    h1 {
      margin: 0 0 1rem;
      font-size: clamp(2.5rem, 4vw, 4.5rem);
      letter-spacing: -0.05em;
    }
    p {
      margin: 0 0 1.5rem;
      line-height: 1.7;
      font-size: 1.1rem;
      color: #cbd5e1;
    }
    a:link, a:visited {
      color: #90bfa1;
      text-decoration: none;
    }
    a:hover, a:focus {
      text-decoration: underline;
    }
    .home-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      align-items: center;
      justify-content: center;
    }
    .status {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.9rem 1.4rem;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.12);
      color: #e2e8f0;
      font-weight: 600;
      font-size: 0.95rem;
    }
    .status::before {
      content: '';
      width: 0.75rem;
      height: 0.75rem;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 0 0 rgba(34,197,94,0.45);
      animation: pulse 1.8s infinite ease-in-out;
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.45); opacity: 0.45; }
    }
    .footer {
      width: 100%;
      text-align: center;
      margin-top: 1.75rem;
      font-size: 0.95rem;
      color: #94a3b8;
    }
    .footer-stats-updated {
      display: block;
      margin-top: 0.35rem;
      font-size: 0.8rem;
      color: #64748b;
    }
    /* ---- Sign-up form ---- */
    .signup-form {
      text-align: left;
      max-width: 440px;
      margin: 2rem auto 0;
    }
    .field {
      margin-bottom: 1.25rem;
    }
    .field label {
      display: block;
      margin-bottom: 0.45rem;
      font-weight: 600;
      font-size: 0.95rem;
      color: #e2e8f0;
    }
    .field input[type="email"],
    .field input[type="tel"],
    .field input[type="text"],
    .field input[type="password"] {
      width: 100%;
      box-sizing: border-box;
      padding: 0.85rem 1rem;
      font-size: 1rem;
      color: #f8fafc;
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .field input::placeholder {
      color: #64748b;
    }
    .field input:focus {
      outline: none;
      border-color: #90bfa1;
      box-shadow: 0 0 0 3px rgba(144, 191, 161, 0.25);
    }
    .field input[aria-invalid="true"] {
      border-color: #f87171;
    }
    .field input[aria-invalid="true"]:focus {
      box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
    }
    .field-help {
      display: block;
      margin-top: 0.4rem;
      font-size: 0.85rem;
      color: #94a3b8;
    }
    .field-optional {
      font-weight: 400;
      color: #94a3b8;
    }
    .field-error {
      display: block;
      margin-top: 0.4rem;
      font-size: 0.85rem;
      color: #fca5a5;
    }
    .field-checkbox label {
      display: flex;
      align-items: flex-start;
      gap: 0.6rem;
      font-weight: 400;
      font-size: 0.9rem;
      color: #cbd5e1;
      cursor: pointer;
    }
    .field-checkbox input[type="checkbox"] {
      margin-top: 0.15rem;
      width: 1.1rem;
      height: 1.1rem;
      accent-color: #90bfa1;
      flex-shrink: 0;
    }
    .btn {
      width: 100%;
      padding: 0.95rem 1rem;
      font-size: 1.05rem;
      font-weight: 600;
      color: #04120a;
      background: #90bfa1;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.05s ease;
    }
    .btn:link, .btn:visited {
      color: #04120a;
    }
    .btn:hover, .btn:focus {
      background: #a6d0b5;
    }
    .btn:active {
      transform: translateY(1px);
    }
    /* "Sign in with Google" — white button per Google's brand guidance. */
    .btn-google {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      background: #ffffff;
      color: #1f2937;
      border: 1px solid rgba(0, 0, 0, 0.16);
    }
    .btn-google:link, .btn-google:visited {
      color: #1f2937;
    }
    .btn-google:hover, .btn-google:focus {
      background: #f1f5f9;
    }
    .google-g {
      flex: 0 0 auto;
      display: block;
    }
    /* "or" separator with a rule on each side. */
    .or-divider {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin: 1.25rem 0;
      color: #94a3b8;
      font-size: 0.85rem;
    }
    .or-divider::before, .or-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, 0.15);
    }
    .form-error {
      padding: 0.85rem 1rem;
      background: rgba(248, 113, 113, 0.12);
      border: 1px solid rgba(248, 113, 113, 0.35);
      border-radius: 12px;
      color: #fca5a5;
      font-size: 0.95rem;
    }
    /* Honeypot — visually hidden, still submitted by bots. */
    .hp {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }
    /* ---- League select ---- */
    .field select {
      width: 100%;
      box-sizing: border-box;
      padding: 0.85rem 1rem;
      font-size: 1rem;
      color: #f8fafc;
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .field select:focus {
      outline: none;
      border-color: #90bfa1;
      box-shadow: 0 0 0 3px rgba(144, 191, 161, 0.25);
    }
    .field select option {
      color: #f8fafc;
      background: #0f172a;
    }
    /* ---- Pitcher picker ---- */
    .pitcher-fieldset {
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      padding: 1rem 1rem 0.4rem;
      margin: 0 0 1.25rem;
    }
    .pitcher-fieldset legend {
      padding: 0 0.5rem;
      font-weight: 600;
      font-size: 0.95rem;
      color: #e2e8f0;
    }
    .pitcher-slot {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.75rem;
    }
    .pitcher-slot-num {
      flex-shrink: 0;
      width: 1.9rem;
      height: 1.9rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(148, 163, 184, 0.14);
      color: #cbd5e1;
      font-weight: 600;
      font-size: 0.9rem;
    }
    .pitcher-slot[data-filled] .pitcher-slot-num {
      background: #90bfa1;
      color: #04120a;
    }
    .pitcher-slot .pitcher-search {
      flex: 1;
      box-sizing: border-box;
      padding: 0.75rem 2.2rem 0.75rem 1rem;
      font-size: 1rem;
      color: #f8fafc;
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .pitcher-slot .pitcher-search::placeholder {
      color: #64748b;
    }
    .pitcher-slot .pitcher-search:focus {
      outline: none;
      border-color: #90bfa1;
      box-shadow: 0 0 0 3px rgba(144, 191, 161, 0.25);
    }
    .pitcher-clear {
      position: absolute;
      right: 0.6rem;
      top: 50%;
      transform: translateY(-50%);
      width: 1.5rem;
      height: 1.5rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      font-size: 1.1rem;
      line-height: 1;
      color: #94a3b8;
      background: transparent;
      border: none;
      border-radius: 50%;
      cursor: pointer;
    }
    .pitcher-clear:hover {
      color: #f8fafc;
      background: rgba(148, 163, 184, 0.18);
    }
    .pitcher-suggestions {
      position: absolute;
      z-index: 20;
      top: calc(100% + 4px);
      left: 2.5rem;
      right: 0;
      margin: 0;
      padding: 0.3rem;
      list-style: none;
      max-height: 15rem;
      overflow-y: auto;
      background: #0b1424;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
      text-align: left;
    }
    .pitcher-suggestion {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      padding: 0.6rem 0.75rem;
      border-radius: 8px;
      font-size: 0.95rem;
      color: #e2e8f0;
      cursor: pointer;
    }
    .pitcher-suggestion.is-active {
      background: rgba(144, 191, 161, 0.18);
    }
    .pitcher-suggestion.is-disabled {
      color: #64748b;
      cursor: default;
    }
    .pitcher-suggestion-tag {
      flex-shrink: 0;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #94a3b8;
    }
    /* ---- Saved-staff summary ---- */
    .staff-summary {
      text-align: left;
      max-width: 440px;
      margin: 1.5rem auto 0;
      padding-left: 1.4rem;
      line-height: 1.9;
    }
    .staff-summary li {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.75rem;
    }
    .staff-summary-name {
      font-weight: 600;
    }
    .staff-summary-team {
      flex-shrink: 0;
      font-size: 0.85rem;
      color: #94a3b8;
    }
    /* ---- Staff pitcher stats table (My Staffs) ----
       A div-based grid so every row shares one column layout:
       Pitcher | W-L | ERA | G/GS | IP. */
    .staff-table {
      margin-top: 1rem;
      font-size: 0.9rem;
    }
    .staff-table-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 3.4rem 3.4rem 3.6rem 3.6rem;
      align-items: baseline;
      gap: 0.75rem;
      padding: 0.4rem 0;
    }
    .staff-table-row + .staff-table-row {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .staff-table-head {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #94a3b8;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .staff-table .col-name {
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
      min-width: 0;
    }
    .staff-table .col-name .staff-summary-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .staff-table .col-stat {
      text-align: right;
      font-variant-numeric: tabular-nums;
    }
    .staff-table-row:not(.staff-table-head) .col-stat {
      color: #cbd5e1;
    }
    .staff-table abbr {
      text-decoration: none;
    }
    .staff-table-row + .staff-table-total {
      border-top: 2px solid rgba(255, 255, 255, 0.18);
    }
    .staff-table-total {
      font-weight: 600;
    }
    .staff-table-total .col-name {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #94a3b8;
    }
    /* ---- Standings table ---- */
    .standings-table {
      margin-top: 1.5rem;
      text-align: left;
    }
    .standings-row {
      display: grid;
      grid-template-columns: 2.5rem minmax(0, 1fr) 3rem;
      align-items: baseline;
      gap: 0.75rem;
      padding: 0.55rem 0;
    }
    .standings-row + .standings-row {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .standings-head {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #94a3b8;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .standings-row .col-rank {
      color: #94a3b8;
      font-variant-numeric: tabular-nums;
    }
    .standings-row .col-staff {
      min-width: 0;
    }
    .standings-row .col-wins {
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      color: #cbd5e1;
    }
    .standings-staff-name {
      font-weight: 600;
    }
    .standings-user {
      margin-left: 0.35rem;
      font-size: 0.85rem;
      color: #94a3b8;
    }
    /* ---- Standings hover card (staff pitcher stats) ---- */
    .staff-hover {
      position: relative;
      display: inline-block;
    }
    /* The trigger is a button (focusable for keyboard users) styled to
       read as the plain staff name. */
    .staff-hover-trigger {
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
      font: inherit;
      color: inherit;
      text-align: left;
      cursor: pointer;
    }
    .staff-hover-trigger:hover,
    .staff-hover-trigger:focus-visible {
      text-decoration: underline;
    }
    .staff-hover-card {
      position: absolute;
      left: 0;
      top: calc(100% + 0.4rem);
      z-index: 30;
      width: 360px;
      max-width: calc(100vw - 2rem);
      padding: 0.9rem 1rem;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 14px;
      /* Opaque so rows underneath don't bleed through the card. */
      background: #0f172a;
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.12s ease;
    }
    .staff-hover:hover .staff-hover-card,
    .staff-hover:focus-within .staff-hover-card {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    /* Explicitly dismissed (via the X) — beats the latched :hover/:focus
       state on touch devices, which visibility alone can't override. */
    .staff-hover.is-dismissed .staff-hover-card {
      display: none;
    }
    .staff-hover-close {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      width: 1.75rem;
      height: 1.75rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.08);
      color: #cbd5e1;
      font-size: 1.25rem;
      line-height: 1;
      cursor: pointer;
    }
    .staff-hover-close:hover,
    .staff-hover-close:focus-visible {
      background: rgba(255, 255, 255, 0.16);
      color: #fff;
    }
    .staff-hover-card-title {
      display: block;
      font-weight: 600;
      /* Leave room for the close button in the corner. */
      padding-right: 2rem;
    }
    .staff-hover-card .staff-table {
      margin-top: 0.5rem;
      font-size: 0.82rem;
    }
    /* ---- My Staffs list ---- */
    .form-notice {
      padding: 0.85rem 1rem;
      background: rgba(34, 197, 94, 0.12);
      border: 1px solid rgba(34, 197, 94, 0.35);
      border-radius: 12px;
      color: #86efac;
      font-size: 0.95rem;
    }
    .staff-list {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      margin-top: 1.5rem;
    }
    .staff-card {
      padding: 1.25rem 1.4rem;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      background: rgba(148, 163, 184, 0.06);
      text-align: left;
    }
    .staff-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
    }
    .staff-card-name {
      margin: 0;
      font-size: 1.4rem;
      letter-spacing: -0.02em;
    }
    .staff-card-league {
      display: inline-block;
      margin-top: 0.3rem;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #94a3b8;
    }
    .staff-card .staff-summary {
      margin: 1rem 0 0;
      max-width: none;
    }
    .staff-card-actions {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 0.9rem;
    }
    .btn-link {
      padding: 0.4rem 0.2rem;
      font-size: 0.9rem;
      font-weight: 600;
    }
    .btn-link-danger {
      flex-shrink: 0;
      padding: 0.4rem 0.2rem;
      font-size: 0.9rem;
      font-weight: 600;
      color: #fca5a5;
      background: none;
      border: none;
      cursor: pointer;
    }
    .btn-link-danger:hover, .btn-link-danger:focus {
      color: #f87171;
      text-decoration: underline;
    }