@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

/* Regatta ENTER modal — SailingSA navy / gold */
body.re-lock { overflow: hidden; }
.re-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: "Outfit", "Segoe UI", sans-serif;
}
.re-modal.re-open { display: flex; }
.re-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 40, 0.78);
  backdrop-filter: blur(2px);
}
.re-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(11, 44, 77, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  padding: 26px 22px 22px;
}
.re-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: #e8eef5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #0b2c4d;
}
.re-hero { margin-bottom: 14px; padding-right: 28px; }
.re-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a035;
}
.re-h {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b2c4d;
}
.re-lead { margin: 0; color: #475569; font-size: 0.98rem; line-height: 1.4; }
.re-hint, .re-muted { font-size: 0.88rem; color: #64748b; margin: 10px 0 0; line-height: 1.4; }
.re-warn { color: #b45309; margin: 8px 0; font-weight: 600; }
.re-ok { margin: 0; color: #0b2c4d; font-weight: 600; }
.re-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.re-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #0b2c4d;
  background: #fff;
  color: #0b2c4d;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
}
.re-btn-title { font-weight: 800; font-size: 15px; }
.re-btn-sub { font-weight: 500; font-size: 12px; color: #64748b; }
.re-btn--primary {
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 55%, #e0a800 100%);
  border-color: #c4a035;
  color: #071828;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 0 #9a7a12;
}
.re-btn--primary .re-btn-sub { color: #5b4a12; }
.re-btn--ghost {
  background: transparent;
  border-color: #94a3b8;
  font-weight: 600;
  align-items: center;
  text-align: center;
}
.re-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.re-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.re-lab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  text-transform: uppercase;
}
.re-opt { text-transform: none; font-weight: 500; color: #94a3b8; letter-spacing: 0; }
.re-inp, .re-select {
  padding: 12px 14px;
  border: 1.5px solid #c5d0de;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #0b2c4d;
  background: #fff;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
}
.re-inp:focus, .re-select:focus {
  outline: none;
  border-color: #0b2c4d;
  box-shadow: 0 0 0 3px rgba(11, 44, 77, 0.12);
}
.re-ta { resize: vertical; min-height: 64px; font-family: inherit; }
.re-card {
  background: linear-gradient(135deg, #e8eef5 0%, #dfe8f4 100%);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 4px 0 12px;
  border: 1px solid rgba(11, 44, 77, 0.08);
}
.re-card--profile .re-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0b2c4d;
  margin-bottom: 8px;
}
.re-meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.re-meta-line { font-size: 14px; color: #0f172a; font-weight: 600; }
.re-meta-line span {
  display: inline-block;
  min-width: 3.2rem;
  color: #64748b;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 6px;
}
.re-section-label {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.re-class-panel {
  background: #fff;
  border: 1.5px solid #c5d0de;
  border-radius: 12px;
  padding: 10px;
}
.re-class-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 4px;
}
.re-class-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
}
.re-class-opt:hover { border-color: #0b2c4d; background: #eef3f9; }
.re-class-opt--on {
  border-color: #f5c518;
  background: #fff8db;
  box-shadow: inset 0 0 0 1px #f5c518;
}
.re-class-opt--static { cursor: default; }
.re-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 2px;
}
.re-logo--empty, .re-logo--broken {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}
.re-logo--broken { opacity: 0; }
.re-class-opt-text { display: flex; flex-direction: column; min-width: 0; }
.re-class-opt-name { font-size: 14px; font-weight: 700; color: #0b2c4d; }
.re-class-opt-sub { font-size: 11px; color: #64748b; font-weight: 500; }
.re-class-selected { margin-top: 8px; }
.re-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 280px; overflow: auto; }
.re-list li { margin: 0 0 6px; }
.re-pick {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.re-pick:hover { border-color: #0b2c4d; background: #f1f5f9; }
.re-pick-main { font-size: 14px; font-weight: 700; color: #0b2c4d; }
.re-pick-meta {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.re-pick-club {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.re-club-code { font-weight: 700; color: #0b2c4d; letter-spacing: 0.02em; }
.re-club-logo {
  height: 36px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  vertical-align: middle;
}
.re-club-logo--sm { height: 22px; max-width: 36px; }
.re-meta-line--club .re-club-logo {
  height: 40px;
  max-width: 64px;
}
.re-meta-line--club {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.re-teammate-box { position: relative; margin-top: 6px; }
.re-teammate-results { margin-top: 6px; }
.re-results--live { margin-top: 8px; min-height: 48px; }
.re-results--live .re-list { max-height: 280px; }
.re-teammate-picked { margin-top: 6px; }
.re-teammate-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #f5c518;
  background: #fff8db;
}
.re-teammate-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.re-teammate-clear {
  border: 0;
  background: #0b2c4d;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.re-hint--tight { margin-top: 4px; font-size: 0.8rem; }
.re-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 520px) {
  .re-panel { padding: 20px 14px 16px; border-radius: 14px; }
  .re-grid2 { grid-template-columns: 1fr; }
}
