﻿:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #5f6b7a;
  --line: #d7deea;
  --accent: #0b6e63;
  --accent-strong: #09544c;
  --danger: #b42318;
  --baby-blue-bg: #e8f2ff;
  --baby-blue-text: #1f5fa8;
  --baby-blue-line: #aacbf7;
  --baby-pink-bg: #ffe8f3;
  --baby-pink-text: #a53c72;
  --baby-pink-line: #f4b5d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #e5faf6 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, #fff2d7 0%, transparent 45%),
    var(--bg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #22456f;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #c6d7f5;
  border-radius: 999px;
  padding: 6px 10px;
  background: #edf4ff;
}

.nav-links a:hover {
  background: #dfecff;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.hero {
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0 0 8px;
}

.subtitle,
.muted {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.05);
  padding: 18px;
  margin-top: 14px;
}

.countdown-card {
  background:
    linear-gradient(135deg, rgba(232, 242, 255, 0.55), rgba(255, 232, 243, 0.55)),
    var(--card);
}

.countdown {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #254d82;
}

.stack p {
  margin: 0 0 10px;
}

form {
  margin-top: 8px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

input,
select,
button,
.button {
  width: 100%;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #bcc8da;
  padding: 10px 11px;
  font: inherit;
}

input:focus,
select:focus,
button:focus,
.button:focus {
  outline: 2px solid #77d4c8;
  outline-offset: 1px;
}

.grid {
  display: grid;
  gap: 12px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

button,
.button {
  max-width: 260px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
}

.secondary {
  background: #eaf2ff;
  color: #1d3f72;
  border: 1px solid #b8d0f5;
}

.secondary:hover {
  background: #dbe9ff;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sex-male {
  background: var(--baby-blue-text);
}

.sex-female {
  background: var(--baby-pink-text);
}

.team-samuel-select {
  background: var(--baby-blue-bg);
  border-color: var(--baby-blue-line);
  color: var(--baby-blue-text);
}

.team-skylar-select {
  background: var(--baby-pink-bg);
  border-color: var(--baby-pink-line);
  color: var(--baby-pink-text);
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.status.error {
  color: var(--danger);
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.team-summary {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.team-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.team-metrics {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.team-summary-note {
  margin: 0;
  grid-column: 1 / -1;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid transparent;
}

.team-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.team-samuel {
  color: #0e5aa8;
  background: #e8f1ff;
  border-color: #bfd8fb;
}

.team-skylar {
  color: #8a4f00;
  background: #fff2df;
  border-color: #f6d39f;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  white-space: nowrap;
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}

th {
  color: #35485f;
}

.hidden {
  display: none;
}

.small-link-row {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .four,
  .three,
  .two {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
  }

  button,
  .button {
    max-width: 100%;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-summary {
    grid-template-columns: 1fr;
  }

  .countdown {
    font-size: 20px;
  }
}
