/* LotoStats professional visual layer.
 * Goal: a calm product UI with a light lottery/FDJ-like colour atmosphere.
 * Business components stay untouched; this file only normalises presentation.
 */

.stitch-home {
  background:
    radial-gradient(720px 360px at 4% -6%, rgb(24 143 219 / 0.12), transparent 62%),
    radial-gradient(540px 300px at 104% 8%, rgb(255 205 39 / 0.1), transparent 60%),
    linear-gradient(180deg, #f9fcff 0%, #f4f8fc 58%, #f1f6fa 100%);
}

.dark .stitch-home {
  background:
    radial-gradient(780px 400px at 5% -8%, rgb(25 145 218 / 0.15), transparent 64%),
    radial-gradient(520px 280px at 104% 4%, rgb(255 205 39 / 0.06), transparent 60%),
    linear-gradient(180deg, #0b1728 0%, #0d192a 58%, #0b1625 100%);
}

.stitch-home .stitch-home-lines,
.stitch-home .stitch-home-grid,
.stitch-home .stitch-home-coin {
  display: none;
}

.stitch-home .stitch-home-shell {
  max-width: 520px;
}

.stitch-home .stitch-brand {
  padding-top: 0.8rem;
  padding-inline: 2.75rem;
}

.stitch-home .stitch-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  margin: 0 auto 0.62rem;
  text-align: center;
  text-transform: none;
  font-family: "Space Grotesk", "Montserrat", ui-sans-serif, system-ui, sans-serif;
  line-height: 1;
  filter: none;
}

.stitch-home .stitch-wordmark::before {
  content: "";
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 0.72rem;
  background: url("/pwa-icons/favicon.svg") center / cover no-repeat;
  box-shadow: 0 6px 16px rgb(23 86 133 / 0.14);
}

.stitch-home .stitch-wordmark span,
.stitch-home .stitch-wordmark strong {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  color: #14243a;
  font-size: clamp(1.85rem, 6.8vw, 2.32rem);
  letter-spacing: -0.05em;
  -webkit-text-stroke: 0;
}

.stitch-home .stitch-wordmark span {
  font-weight: 600;
}

.stitch-home .stitch-wordmark strong {
  font-weight: 800;
  color: #147ec4;
}

.dark .stitch-home .stitch-wordmark,
.dark .stitch-home .stitch-wordmark span,
.dark .stitch-home .stitch-wordmark strong {
  filter: none;
}

.dark .stitch-home .stitch-wordmark span {
  color: #f6fbff;
}

.dark .stitch-home .stitch-wordmark strong {
  color: #52bff2;
}

.stitch-home .stitch-tagline {
  padding-bottom: 0.4rem;
  color: #617087;
}

.dark .stitch-home .stitch-tagline {
  color: #a8b7c8;
}

.stitch-home .stitch-tagline::after {
  display: none;
}

.stitch-home .stitch-activity-card,
.stitch-home .stitch-game-card,
.stitch-home .stitch-onboarding-card {
  border-radius: 1rem;
  backdrop-filter: none;
}

.stitch-home .stitch-activity-card {
  border: 1px solid #dbe6ef;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 8px 24px rgb(35 70 104 / 0.08);
}

.stitch-home .stitch-activity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1689d1 0%, #1689d1 72%, #ffd12f 100%);
}

.dark .stitch-home .stitch-activity-card {
  border-color: #24364b;
  background: rgb(17 31 50 / 0.96);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.22);
}

.stitch-home .stitch-card-label {
  letter-spacing: 0.09em;
  font-weight: 700;
}

.stitch-home .stitch-status-pill {
  border: 1px solid #e1e9f0;
  background: #f5f8fb;
}

.dark .stitch-home .stitch-status-pill {
  border-color: #293b50;
  background: #132237;
}

.stitch-home .stitch-activity-button {
  min-height: 2.65rem;
  border-radius: 0.78rem;
  font-weight: 650;
  box-shadow: none;
}

.dark .stitch-home .stitch-activity-button[data-variant="outline"],
.dark .stitch-home button.stitch-activity-button.border-input {
  border-color: #30465f;
  background: #112034;
}

.stitch-home .stitch-activity-stats {
  gap: 0.5rem;
}

.stitch-home .stitch-activity-stats span {
  border: 1px solid #e0e8f0;
  background: #f7fafc;
  box-shadow: none;
}

.dark .stitch-home .stitch-activity-stats span {
  border-color: #293b50;
  background: #132237;
  box-shadow: none;
}

.stitch-home .stitch-game-list {
  gap: 0.72rem;
}

.stitch-home .stitch-game-card {
  min-height: 5.65rem;
  border: 1px solid #dce6ef;
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 6px 20px rgb(35 70 104 / 0.07);
}

.stitch-home .stitch-game-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 1rem 0 0 1rem;
}

.stitch-home .stitch-game-card--loto::before {
  background: #178ad1;
}

.stitch-home .stitch-game-card--euro::before {
  background: #ffc928;
}

.stitch-home .stitch-game-card--loto {
  color: #17263a;
  background:
    linear-gradient(90deg, rgb(23 138 209 / 0.045), transparent 34%),
    rgb(255 255 255 / 0.97);
}

.stitch-home .stitch-game-card--euro {
  color: #17263a;
  background:
    linear-gradient(90deg, rgb(255 201 40 / 0.07), transparent 36%),
    rgb(255 255 255 / 0.97);
}

.dark .stitch-home .stitch-game-card {
  border-color: #26394f;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}

.dark .stitch-home .stitch-game-card--loto {
  color: #f5f9fd;
  background:
    linear-gradient(90deg, rgb(24 141 211 / 0.11), transparent 38%),
    #101f33;
}

.dark .stitch-home .stitch-game-card--euro {
  color: #f5f9fd;
  background:
    linear-gradient(90deg, rgb(255 201 40 / 0.08), transparent 40%),
    #101f33;
}

.stitch-home .stitch-game-link:hover .stitch-game-card,
.stitch-home .stitch-game-link:active .stitch-game-card {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgb(35 70 104 / 0.1);
}

.dark .stitch-home .stitch-game-link:hover .stitch-game-card,
.dark .stitch-home .stitch-game-link:active .stitch-game-card {
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.24);
}

.stitch-home .stitch-game-content {
  gap: 0.95rem;
  padding: 0.92rem 1rem 0.92rem 1.08rem;
}

.stitch-home .stitch-game-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #178ad1;
  box-shadow: 0 5px 14px rgb(23 138 209 / 0.22);
}

.stitch-home .stitch-game-card--euro .stitch-game-icon {
  background: #ffc928;
  box-shadow: 0 5px 14px rgb(212 157 0 / 0.18);
}

.dark .stitch-home .stitch-game-card--loto .stitch-game-icon {
  border: 0;
  background: #178ad1;
  box-shadow: 0 5px 16px rgb(23 138 209 / 0.2);
}

.dark .stitch-home .stitch-game-card--euro .stitch-game-icon {
  border: 0;
  background: #ffc928;
  box-shadow: 0 5px 16px rgb(212 157 0 / 0.16);
}

.stitch-home .stitch-game-title {
  margin-bottom: 0.2rem;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(1.02rem, 4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stitch-home .stitch-game-subtitle {
  font-size: 0.78rem;
  opacity: 0.68;
}

.stitch-home .stitch-game-card--loto .stitch-game-arrow {
  color: #178ad1;
  opacity: 0.82;
}

.stitch-home .stitch-game-card--euro .stitch-game-arrow {
  color: #b68100;
  opacity: 0.88;
}

.dark .stitch-home .stitch-game-card--euro .stitch-game-arrow {
  color: #ffd24a;
}

.stitch-home .stitch-onboarding-card {
  border: 1px solid #dce6ef;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 8px 24px rgb(35 70 104 / 0.07);
}

.stitch-home .stitch-onboarding-card::before {
  height: 3px;
  background: linear-gradient(90deg, #178ad1 0%, #178ad1 72%, #ffc928 100%);
  opacity: 1;
}

.dark .stitch-home .stitch-onboarding-card {
  border-color: #26394f;
  background: #101f33;
  box-shadow: 0 9px 26px rgb(0 0 0 / 0.2);
}

.stitch-home .stitch-onboarding-icon {
  border-radius: 999px;
  background: rgb(23 138 209 / 0.1);
  color: #147ec4;
  box-shadow: none;
}

.dark .stitch-home .stitch-onboarding-icon {
  background: rgb(82 191 242 / 0.1);
  color: #52bff2;
  box-shadow: none;
}

.stitch-home .stitch-help {
  color: #66768a;
}

.dark .stitch-home .stitch-help {
  color: #9eafc1;
}

@media (max-width: 380px) {
  .stitch-home .stitch-brand {
    padding-inline: 2.3rem;
  }

  .stitch-home .stitch-wordmark::before {
    width: 2.25rem;
    height: 2.25rem;
  }

  .stitch-home .stitch-wordmark span,
  .stitch-home .stitch-wordmark strong {
    font-size: 1.82rem;
  }
}

/* Desktop-safe wordmark: the icon is tied to the title background instead of
 * a pseudo-element, so it cannot wrap below the text at wider breakpoints. */
html body .stitch-home .stitch-brand .stitch-wordmark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 0.16rem !important;
  min-height: 2.5rem !important;
  padding-left: 3.15rem !important;
  background-image: url("/pwa-icons/favicon.svg") !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-size: 2.5rem 2.5rem !important;
}

html body .stitch-home .stitch-brand .stitch-wordmark::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  flex: 0 0 0 !important;
  background: none !important;
  box-shadow: none !important;
}

@media (max-width: 380px) {
  html body .stitch-home .stitch-brand .stitch-wordmark {
    min-height: 2.25rem !important;
    padding-left: 2.85rem !important;
    background-size: 2.25rem 2.25rem !important;
  }
}
