.app-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.24), transparent 32%),
    linear-gradient(180deg, #eef5ff 0%, #d8e7fb 100%);
  color: #1a1a1b;
}

.hero-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 1rem;
}

.hero-card {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #c8d8ee;
}

.g5-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1620;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.g5-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.g5-splash-logo {
  width: min(72vw, 420px);
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.38));
}

.hero-card .card-body {
  padding: 1.5rem !important;
}

.g5-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g5-brandmark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.g5-brandmark-logo {
  width: 84px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.26));
}

.nav-tabs {
  border-bottom: 1px solid #d3d6da;
}

.nav-tabs .nav-link {
  color: #3a3a3c;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  box-shadow: none;
}

.nav-tabs .nav-link.active {
  color: #1a1a1b;
  background: transparent;
  border-bottom-color: #6aaa64;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:focus-visible {
  outline: none;
  box-shadow: inset 0 -3px 0 #6aaa64;
}

.tab-pane:focus,
.tab-pane:focus-visible {
  outline: none;
  box-shadow: none;
}

.status-banner {
  background: #f8f9fa;
  border: 1px solid #d3d6da;
  color: #3a3a3c;
}

.board-wrap {
  display: flex;
  justify-content: center;
}

.board {
  display: grid;
  gap: 0.45rem;
  max-width: 23rem;
  width: 100%;
}

.board-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.tile {
  aspect-ratio: 1;
  border-radius: 0.8rem;
  border: 2px solid #d3d6da;
  display: grid;
  place-items: center;
  font-size: clamp(1.55rem, 3.1vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  background: #ffffff;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.tile-empty {
  background: #ffffff;
}

.tile-active {
  background: #ffffff;
  border-color: #878a8c;
  transform: translateY(-1px);
}

.tile-miss {
  background: #787c7e;
  border-color: #787c7e;
  color: #fff;
}

.tile-present {
  background: #c9b458;
  border-color: #c9b458;
  color: #fff;
}

.tile-match {
  background: #6aaa64;
  border-color: #6aaa64;
  color: #fff;
}

.keyboard-row {
  justify-content: center;
}

.key-button {
  min-height: 2.6rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.2rem;
  letter-spacing: 0.01em;
}

.key-idle {
  background: #d3d6da;
  border-color: #d3d6da;
  color: #1a1a1b;
}

.key-miss {
  background: #787c7e;
  border-color: #787c7e;
  color: #fff;
}

.key-present {
  background: #c9b458;
  border-color: #c9b458;
  color: #fff;
}

.key-match {
  background: #6aaa64;
  border-color: #6aaa64;
  color: #fff;
}

.solver-shell {
  max-width: 23rem;
  margin: 0 auto;
}

.solver-guess-input {
  max-width: 10rem;
  text-align: center;
  letter-spacing: 0.35em;
  font-weight: 700;
}

.solver-pattern {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.solver-color {
  cursor: pointer;
}

.solver-clues {
  display: grid;
  gap: 0.5rem;
}

.solver-clue-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}

.solver-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.solver-suggestions-wrap {
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.25rem;
  border: 1px solid #d3d6da;
  border-radius: 1rem;
  background: rgba(248, 249, 250, 0.9);
}

.solver-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d3d6da;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: #f8f9fa;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1a1b;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.solver-chip:hover,
.solver-chip:focus-visible {
  background: #e9ecef;
  border-color: #b8bcc1;
  outline: none;
}

.help-shell {
  max-width: 34rem;
  margin: 0 auto;
}

.help-section + .help-section {
  margin-top: 1.25rem;
}

.help-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.analysis-grid {
  display: grid;
  gap: 1rem;
}

.analysis-card {
  border: 1px solid #d3d6da;
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(248, 249, 250, 0.92);
}

.analysis-list {
  display: grid;
  gap: 0.45rem;
}

.analysis-description {
  color: #5f6368;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}

.analysis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #e5e7ea;
  padding-bottom: 0.3rem;
}

.analysis-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.analysis-label {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.analysis-count {
  color: #5f6368;
}

.analysis-examples {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: -0.15rem;
}

.analysis-examples-label {
  color: #5f6368;
  font-size: 0.84rem;
}

.analysis-example-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid #d3d6da;
  border-radius: 0.8rem;
  background: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.analysis-weird-list {
  display: grid;
  gap: 0.75rem;
  max-height: 29rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.analysis-weird-item {
  border: 1px solid #d3d6da;
  border-radius: 0.95rem;
  background: #ffffff;
  padding: 0.7rem 0.8rem;
}

.analysis-weird-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.analysis-weird-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid #d3d6da;
  border-radius: 0.8rem;
  background: #f8f9fa;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.analysis-weird-score {
  color: #5f6368;
  font-size: 0.88rem;
  font-weight: 700;
}

.analysis-weird-note {
  color: #4f5459;
  font-size: 0.9rem;
}

.help-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.75rem;
}

.help-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.help-tile-bullet {
  flex: 0 0 auto;
  width: 2.35rem;
  min-width: 2.35rem;
  font-size: 1rem;
}

.analysis-badge {
  display: inline-flex;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dfe9f8;
  color: #274d7d;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .hero-shell {
    padding-block: 0.5rem;
  }

  .hero-card {
    border-radius: 1.5rem;
  }

  .hero-card .card-body {
    padding: 1rem !important;
  }

  .g5-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .g5-brandmark {
    justify-content: center;
  }

  .g5-brandmark-logo {
    width: 72px;
  }

  .board {
    max-width: 18rem;
    gap: 0.35rem;
  }

  .tile {
    border-radius: 0.7rem;
    font-size: 1.5rem;
  }

  .key-button {
    min-height: 2.35rem;
    font-size: 0.68rem;
    padding-inline: 0.18rem;
  }
}
