/* Guess-the-Club — Worldle-style layout. Retro pixel aesthetic shared with
   the rest of the hub, pill icons for feedback, radial-gradient fog mask
   that clears from the centre as wrong guesses accumulate. */

.gc-body {
  background: #1d1a47;
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Override any site-wide defaults that might bleed through */
.gc-body, .gc-body * {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.gc-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px;
}

.gc-title {
  text-align: center;
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Mode picker */
.gc-mode {
  background: #fff;
  border-radius: 12px;
  padding: 28px 16px 22px;
  margin-top: 20px;
  text-align: center;
}
.gc-question {
  font-size: 80px;
  font-weight: 700;
  color: #7a7a85;
  line-height: 1;
}
.gc-mode-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.gc-btn {
  background: #6a5cff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.gc-btn:hover { background: #7a6cff; }

/* Crest display */
.gc-crest {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px 14px;
  margin-top: 16px;
  text-align: center;
}
.gc-crest-img {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gc-crest-img img {
  max-width: 170px;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Fog overlay: opaque except for a circular reveal in the centre.
   As wrong guesses stack, JS bumps --reveal so the hole widens. */
.gc-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0,
    transparent var(--reveal, 0px),
    rgba(255,255,255,0.98) calc(var(--reveal, 0px) + 40px)
  );
  transition: background 0.4s ease;
}
.gc-crest.show-mode .gc-fog { display: none; }
.gc-nation-overlay {
  position: absolute;
  top: 8px; left: 14px;
  width: 40px; height: 40px;
}
.gc-nation-overlay img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  object-fit: cover;
}
.gc-counter {
  margin-top: 10px;
  font-size: 12px;
  color: #333;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Search box */
.gc-search {
  margin-top: 14px;
  background: #fff;
  border: 3px solid #000;
  padding: 8px;
  position: relative;
}
.gc-input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 8px;
  border: 2px solid #111;
  box-sizing: border-box;
}
.gc-ac {
  position: absolute;
  left: 0; right: 0; top: calc(100% - 2px);
  background: #fff;
  border: 2px solid #111;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;
}
.gc-ac div {
  padding: 8px 12px;
  color: #111;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gc-ac div:hover, .gc-ac div.active { background: #d4ff00; }
.gc-ac .ac-flag {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  object-fit: cover;
  flex: 0 0 auto;
}
.gc-ac .ac-flag-fallback {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #eee;
  color: #555;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.gc-ac .ac-name  { flex: 1 1 auto; }
.gc-ac .ac-ctry  { color: #888; font-size: 11px; }

/* Guess rows + pills */
.gc-guesses { margin-top: 16px; }
.gc-guess {
  text-align: center;
  margin-bottom: 14px;
}
.gc-guess .club-name {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  color: #fff;
  margin-bottom: 8px;
}
.gc-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.gc-pill {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #b9b9c2;
  color: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.gc-pill.match  { background: #3ece5b; color: #fff; }
.gc-pill img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; }
.gc-pill .arrow {
  font-size: 16px;
  margin-left: 2px;
}
.gc-pill .dir {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
}
.gc-pill .big { font-size: 18px; font-weight: 700; line-height: 1; }
.gc-pill .big.arrow { font-size: 28px; display: inline-block; }
.gc-pill .big .trend { font-size: 16px; display: inline-block; margin-left: 2px; font-weight: 700; }
.gc-pill-label {
  display: none;
}
/* Per-column header labels shown under the pill grid */
.gc-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 8px auto 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c4c4d6;
  text-align: center;
}

/* Result card */
#gc-result:not(:empty) {
  margin-top: 20px;
  padding: 16px;
  background: #12224a;
  border-radius: 8px;
  text-align: center;
}
#gc-result h3 { margin: 0 0 10px; letter-spacing: 3px; }
#gc-result .streak-row {
  display: flex;
  justify-content: space-around;
  margin: 12px 0;
}
#gc-result .streak-row .num { font-size: 20px; font-weight: 700; }
#gc-result .streak-row .lbl { font-size: 10px; letter-spacing: 1px; color: #c4c4d6; }
