/* GW_AGE — Age selector overlay and comparison card styles */

/* Overlay */
.gw-age-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(10, 15, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gw-age-box {
  max-width: 400px;
  width: 90%;
  padding: clamp(24px, 6vw, 32px) clamp(18px, 4vw, 24px);
  text-align: center;
}

/* Title & subtitle */
.gw-age-title {
  color: #fff;
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.gw-age-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.82rem, 2.2vw, 0.9rem);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Bracket buttons */
.gw-age-buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gw-age-btn {
  width: 100%;
  padding: 16px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  min-height: 48px;
}

.gw-age-btn:hover,
.gw-age-btn:active {
  background: rgba(255, 152, 0, 0.2);
  border-color: #FF9800;
}

/* Skip link */
.gw-age-skip {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-age-skip:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* Change age group link */
.gw-age-change {
  display: inline-block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
}

.gw-age-change:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* Comparison card */
.gw-age-comparison {
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 12px;
  padding: clamp(14px, 4vw, 20px);
  margin: 16px 0;
  text-align: center;
}

.gw-age-percentile {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 800;
  color: #FF9800;
  line-height: 1.2;
}

.gw-age-bracket-text {
  font-size: clamp(0.88rem, 2.3vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.gw-age-count {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  .gw-age-btn {
    padding: 14px;
    margin: 5px 0;
    font-size: 1rem;
  }

  .gw-age-comparison {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .gw-age-btn {
    padding: 12px;
    margin: 4px 0;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .gw-age-box {
    padding: 20px 16px;
  }

  .gw-age-percentile {
    font-size: 2rem;
  }
}
