.hobby-home {
  overflow-y: scroll;
  max-height: calc(100vh);
  scroll-behavior: smooth;
  padding: 1rem 0;
  box-sizing: border-box;
}

.hobby-home::-webkit-scrollbar {
  width: 7px;
  background-color: transparent;
}

.hobby-home::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: transparent;
}

.hobby-home::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--cgrey);
}

.hobby-page {
  padding: 0;
}

.hobby-page > section {
  margin: 0 1rem;
  padding: 1rem;
  background-color: var(--cdarkgrey);
  border-radius: 16px;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

@media (min-width: 750px) {
  .hobby-home {
    margin: 0 3rem;
  }

  .hobby-page > section {
    padding: 4rem;
  }
}

@media (min-width: 900px) {
  .hobby-home {
    margin: 0 13%;
  }
}

@media (min-width: 1200px) {
  .hobby-home {
    margin: 0 23%;
  }
}

.hobby-header,
.panel-heading-spread,
.lichess-layout,
.entry-card,
.entry-card-body,
.filters-form,
.players-cell,
.stacked-cell,
.pagination,
.hobby-nav,
.tag-row,
.lichess-list,
.mini-stat-grid,
.hero-grid,
.panel-heading,
.lichess-preview-copy {
  display: flex;
}

.hobby-header,
.panel-heading-spread,
.lichess-layout,
.filters-form,
.hero-grid,
.panel-heading {
  justify-content: space-between;
}

.hobby-header,
.entry-card,
.filters-form,
.hero-grid,
.panel-heading,
.mini-stat-grid,
.lichess-layout {
  gap: 1rem;
}

.hobby-header,
.hero-grid,
.table-shell,
.pagination {
  margin-bottom: 1.5rem;
}

.hobby-overview .hero-grid {
  margin-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ccyan);
  font-size: 0.75rem;
}

.lede {
  max-width: 60ch;
  color: rgba(238, 231, 231, 0.82);
}

.hobby-nav {
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hobby-nav a,
.text-link,
.pagination-link,
.filters-form button {
  border: 1px solid var(--clightgrey);
  background: var(--cblack);
  color: var(--cwhite);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
}

.filters-form button {
  cursor: pointer;
}

.hero-grid {
  align-items: stretch;
  flex-wrap: wrap;
}

.hero-card,
.entry-card,
.mini-stat-card,
.lichess-game-button,
.games-table th,
.games-table td,
.filters-form select {
  border-radius: 10px;
}

.hero-card,
.entry-card,
.mini-stat-card,
.lichess-game-button,
.filters-form select,
.games-table th,
.games-table td {
  background: var(--cblack);
  border: 1px solid var(--clightgrey);
}

.hero-card,
.mini-stat-card {
  padding: 1.2rem;
  min-width: 180px;
  flex: 1;
}

.hero-card strong,
.mini-stat-card strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.small-stat {
  font-size: 1.2rem !important;
}

.panel-heading {
  align-items: end;
  flex-wrap: wrap;
}

.chart-shell {
  min-height: 320px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.entry-card {
  overflow: hidden;
  flex-direction: column;
}

.entry-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--cgrey);
}

.entry-card-body,
.lichess-preview-copy,
.players-cell,
.stacked-cell,
.tag-row,
.lichess-list {
  flex-direction: column;
}

.entry-card-body {
  justify-content: space-between;
  height: 100%;
  padding: 1rem;
}

.entry-card-copy p {
  color: rgba(238, 231, 231, 0.75);
}

.tag-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-pill {
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  background: var(--cgrey);
  color: var(--cyellow);
  font-size: 0.85rem;
}

.mini-stat-grid {
  flex-wrap: wrap;
}

.mini-stat-card small,
.stacked-cell small,
.lichess-game-button small,
.players-cell span {
  color: rgba(238, 231, 231, 0.7);
}

.lichess-layout {
  align-items: flex-start;
  flex-wrap: wrap;
}

.lichess-preview {
  flex: 1.4;
  min-width: 320px;
}

.board-shell {
  width: min(100%, 520px);
}

.lichess-list {
  flex: 1;
  min-width: 260px;
}

.lichess-game-button {
  width: 100%;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--cwhite);
}

.lichess-game-button.active {
  border-color: var(--cyellow);
  background: var(--cgrey);
}

.filters-form {
  align-items: end;
  flex-wrap: wrap;
}

.filters-form label {
  min-width: 180px;
}

.filters-form span {
  display: block;
  margin-bottom: 0.5rem;
}

.filters-form select {
  width: 100%;
  color: var(--cwhite);
  padding: 0.8rem 1rem;
}

.table-shell {
  overflow-x: auto;
}

.games-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.6rem;
}

.games-table th,
.games-table td {
  padding: 1rem;
}

.games-table th {
  color: rgba(238, 231, 231, 0.72);
  font-weight: 500;
  text-align: left;
}

.games-table td {
  vertical-align: top;
}

.table-link {
  color: var(--ccyan);
  text-decoration: none;
}

.pagination {
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.pagination-link.active {
  background: var(--cgrey);
  border-color: var(--cyellow);
}

.pagination-link.disabled {
  opacity: 0.45;
}

@media (max-width: 720px) {
  .hobby-page > section {
    padding: 1.25rem 0.9rem;
  }

  .hobby-header,
  .panel-heading,
  .panel-heading-spread,
  .filters-form,
  .lichess-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .board-shell {
    width: 100%;
  }
}