:root {
  --pathle-bg: #ffffff;
  --pathle-card-bg: #ffffff;
  --pathle-border: #e5e7eb;
  --pathle-text: #156644;
  --pathle-muted: #0b7f94;
  --pathle-accent: #0cc0df;
  --pathle-error: #b91c1c;
  --pathle-cell-correct: #156644;
  --pathle-cell-incorrect: #f1f5f9;
}

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

/* =====================
   CONTAINER
   ===================== */

.pathle-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  border-radius: 20px;
  border: 5px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #156644, #0cc0df) border-box;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  font-family: "Chakra Petch", system-ui, sans-serif;
  color: var(--pathle-text);
}

/* =====================
   HEADER / STATUS
   ===================== */

.pathle-title { display: none; }

.pathle-header,
.pathle-status {
  text-align: center;
}

.pathle-subtitle {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pathle-muted);
}

.pathle-status {
  margin: 18px auto 24px;
  padding: 14px 18px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 14px;
  background: #ecfdf5;
  border: 2px solid #16a34a;
}

/* =====================
   HINT BOX
   ===================== */

.pathle-hint-box {
  background: #f9fafb;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #cbd5f5;
  margin-bottom: 22px;
  text-align: center;
}

.pathle-hint-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #156644;
}

/* =====================
   INPUT + AUTOCOMPLETE
   ===================== */

.pathle-input-wrapper {
  position: relative;
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.pathle-input {
  flex: 1;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--pathle-border);
}

/* =====================
   BOARD
   ===================== */

.pathle-board-row {
  display: grid;
  grid-template-columns: 2.4fr 1.6fr 1fr 1.3fr 1fr 1.2fr 0.8fr 0.8fr;
  gap: 8px;
  margin-bottom: 8px;
}

/* Empty */
.pathle-board-empty {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pathle-muted);
}

/* Header boxes */
.pathle-cell-header {
  font-size: 13px;
  font-weight: 800;
  padding: 10px 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
  border: 1px solid #c7e8df;
}

/* Cells */
.pathle-cell {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--pathle-border);
  background: #ffffff;
  text-align: center;
}

.pathle-cell-correct {
  background: linear-gradient(135deg, #156644, #0cc0df);
  color: #ffffff;
}

/* =====================
   RESULT IMAGE
   ===================== */

.pathle-result-image-wrap {
  width: 160px;
  height: 160px;
  margin: 28px auto 24px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #156644, #0cc0df);
}

.pathle-result-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}
/* ✅ FORCE RESULT SECTION CENTERING (desktop + mobile) */
.pathle-result-card,
.pathle-date-line,
.pathle-result-title,
.pathle-result-name,
.pathle-result-meta,
.pathle-share-section,
.pathle-share-label,
.pathle-share-feedback,
.pathle-psn-tagline,
.pathle-share-link {
  text-align: center;
}


/* =====================
   SHARE
   ===================== */

.pathle-share-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 28px 0 32px;
}

.pathle-share-btn {
  padding: 16px 24px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #156644, #0cc0df);
  color: #ffffff;
}

/* =====================
   GUESS BUTTON
   ===================== */

.pathle-submit-btn {
  background: linear-gradient(135deg, #156644, #0cc0df) !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* =====================
   ✅ MOBILE OPTIMIZATION ONLY
   ===================== */

@media (max-width: 640px) {

  /* container padding tighter */
  .pathle-container {
    padding: 18px 14px 22px;
  }

  /* stack guess input + button */
  .pathle-input-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .pathle-input {
    font-size: 15px;
    padding: 12px 16px;
  }

  .pathle-submit-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 14px;
  }

  /* status + hints smaller */
  .pathle-status {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .pathle-hint-box {
    padding: 14px 14px;
  }

  .pathle-hint-title {
    font-size: 13px;
  }

  /* board tighter */
  .pathle-board-row {
    gap: 4px;
    grid-template-columns:
      1.8fr
      1.6fr
      1fr
      1fr
      0.7fr
      0.8fr
      0.6fr
      0.5fr;
  }

  .pathle-cell,
  .pathle-cell-header {
    font-size: 10px;
    padding: 6px 4px;
    border-radius: 10px;
  }

  /* result image smaller */
  .pathle-result-image-wrap {
    width: 120px;
    height: 120px;
    margin: 20px auto;
  }

  /* share buttons smaller */
  .pathle-share-buttons {
    gap: 12px;
    margin: 20px 0 24px;
  }

  .pathle-share-btn {
    padding: 12px 16px;
    font-size: 12px;
  }

  .pathle-board-empty {
    font-size: 13px;
    padding-bottom: 32px;
  }
}

/* =====================
   OUTER FRAME
   ===================== */

.pathle-frame {
  max-width: 1900px;
  margin: 32px auto;
  padding: 4px;
  border-radius: 24px;
  background: linear-gradient(135deg, #156644, #0cc0df);
}

.pathle-frame .pathle-container {
  border-radius: 20px;
  background: #ffffff;
}
@media (max-width: 640px) {

  /* ✅ FORCE FULL-WIDTH + CENTERING FOR RESULT CONTENT */
  .pathle-result-card,
  .pathle-date-line,
  .pathle-result-title,
  .pathle-result-name,
  .pathle-result-meta,
  .pathle-share-section,
  .pathle-share-label,
  .pathle-share-feedback,
  .pathle-psn-tagline,
  .pathle-share-link {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* ✅ FIX META LINE FLOW (team • pos • #) */
  .pathle-result-meta {
    display: block;
    line-height: 1.4;
  }

  /* ✅ SHARE LABEL + FOOTER TEXT */
  .pathle-share-label,
  .pathle-psn-tagline,
  .pathle-share-link {
    padding-left: 8px;
    padding-right: 8px;
  }

}
