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

:root {
  --bg: #030d1b;
  --surface: #091a2e;
  --surface-light: #102842;
  --border: #1b3955;
  --blue: #00aaff;
  --cyan: #4de2ff;
  --text: #f0f7ff;
  --muted: #91a8c0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.navbar {
  height: 82px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 13, 27, .95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-icon {
  font-size: 34px;
}

.brand-accent {
  color: var(--cyan);
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
}

.hero {
  min-height: 580px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, #0d5481 0%, transparent 55%),
    radial-gradient(ellipse at 90% 85%, #073958 0%, transparent 40%),
    linear-gradient(180deg, #061b32, #030d1b);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    repeating-linear-gradient(
      120deg,
      transparent 0 95px,
      rgba(77, 226, 255, .18) 96px,
      transparent 98px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding: 80px 24px;
  text-align: center;
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

h1 {
  margin: 25px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -3px;
  font-weight: 900;
}

h1 span {
  color: var(--cyan);
}

.subtitle {
  max-width: 590px;
  margin: 0 auto 35px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 710px;
  margin: auto;
  padding: 8px;
  border: 1px solid #24618a;
  border-radius: 14px;
  background: #0c2138;
  box-shadow: 0 0 45px rgba(0, 170, 255, .12);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 16px;
  color: white;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
}

.search-box button {
  padding: 15px 24px;
  border: none;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #008dff, #005be0);
  font-weight: 800;
  cursor: pointer;
}

.search-box button:hover {
  filter: brightness(1.15);
}

.search-box button:disabled {
  opacity: .6;
  cursor: wait;
}

.status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 13px;
}

.results {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px;
}

.hidden {
  display: none;
}

.section-heading h2 {
  margin: 12px 0 25px;
  font-size: 30px;
}

.player-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.player-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.player-avatar {
  width: 75px;
  height: 75px;
  border-radius: 15px;
  object-fit: cover;
  background: var(--surface-light);
}

.player-name {
  margin: 0 0 6px;
  font-size: 25px;
}

.player-link {
  color: var(--cyan);
  text-decoration: none;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.rating-box {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-light);
  border: 1px solid var(--border);
}

.rating-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.rating-value {
  font-size: 26px;
  font-weight: 800;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 45px 24px 80px;
}

.feature-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.feature-icon {
  color: var(--cyan);
  font-size: 34px;
}

.feature-card h3 {
  margin: 22px 0 10px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.feature-tag {
  display: inline-block;
  margin-top: 15px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 800;
}

.disclaimer {
  max-width: 1050px;
  margin: 0 auto 70px;
  padding: 28px;
  border-left: 3px solid var(--blue);
  background: var(--surface);
  border-radius: 8px;
}

.disclaimer h3 {
  margin-top: 0;
}

.disclaimer p {
  color: var(--muted);
  line-height: 1.7;
}

footer {
  padding: 30px 7%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-label {
    display: none;
  }

  h1 {
    letter-spacing: -1px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    width: 100%;
  }

  .features,
  .rating-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

/* Fair Play v87 panels: extend the existing Shark Ocean Blue theme. */
.v87-review {
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #0a2037, #071627 65%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
}
.v87-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.v87-priority {
  margin: 12px 0 6px;
  color: var(--cyan);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1px;
}
.v87-muted { color: var(--muted); line-height: 1.6; font-size: 13px; }
.v87-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
}
.v87-metric {
  min-width: 0;
  padding: 18px;
  border: 1px solid #1c4360;
  border-radius: 12px;
  background: #102842;
}
.v87-metric span { display: block; margin-bottom: 8px; font-size: 11px; }
.v87-metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(15px, 1.8vw, 22px);
  color: #f0f7ff;
}
.v87-heading { margin: 28px 0 15px; }
.v87-heading h3 { margin: 0 0 6px; font-size: 22px; }
.v87-heading p { margin: 0; }
.v87-reasons {
  padding: 18px 18px 18px 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #091a2e;
  color: #c5dbec;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.v87-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.v87-chart {
  min-width: 0;
  min-height: 270px;
  padding: 20px;
  border: 1px solid #1b3955;
  border-radius: 14px;
  background: linear-gradient(160deg, #102842, #091a2e);
}
.v87-chart h4 { margin: 0 0 5px; font-size: 15px; color: #eaf8ff; }
.v87-chart p { margin: 0 0 18px; }
.v87-plot { display: grid; align-content: start; gap: 11px; }
.v87-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 92px) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
}
.v87-bar-label {
  color: #a6c6dc;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.v87-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #071425;
}
.v87-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0074db, #4de2ff);
}
.v87-bar-number {
  text-align: right;
  font-size: 10px;
  color: #dff7ff;
  font-variant-numeric: tabular-nums;
}
.v87-empty {
  padding: 20px 4px;
  color: #789ab3;
  font-size: 12px;
  font-style: italic;
}
.v87-warning {
  padding: 17px;
  border: 1px solid #336181;
  border-radius: 10px;
  color: #b7e7ff;
  background: #102842;
  line-height: 1.7;
}
.v87-note {
  margin: 25px 0 0;
  color: #91a8c0;
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 950px) {
  .v87-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v87-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .v87-review { padding: 18px; }
  .v87-chart-grid, .v87-metrics { grid-template-columns: 1fr; }
}

/* Review loading state below the Chess.com ratings. */
.v87-progress { padding: 4px 0; }
.v87-progress-heading { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
.v87-progress-message { color: #e6f5ff; font-size: 18px; margin: 18px 0 16px; }
.v87-progress-track { height: 11px; background: #102d47; border: 1px solid #205274; border-radius: 100px; overflow: hidden; }
.v87-progress-fill { height: 100%; width: 38%; border-radius: 100px; background: linear-gradient(90deg, #006fc7, #49ddff); animation: v87-progress-sweep 2.4s ease-in-out infinite alternate; }
.v87-progress-running { animation-duration: 1.7s; }
.v87-progress-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
@keyframes v87-progress-sweep { from { transform: translateX(-95%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .v87-progress-fill { animation: none; width: 65%; } }
