:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #1c2333;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.page-header {
  margin-bottom: 1.25rem;
  padding: 0.85rem 0 0.35rem;
  border-bottom: 1px solid #e8edf7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #122b66;
  line-height: 1.1;
}

.intro {
  margin-top: 0.7rem;
  margin-bottom: 1.25rem;
  color: #3f4f70;
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 780px;
}

.bookmark-filter-wrap {
  margin: 0.75rem 0 1.15rem;
}

.hover-note {
  margin: 0 0 0.6rem;
  color: #4d5a75;
  font-size: 0.95rem;
}

.wordle-style-button {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: #123f96;
  color: #fff;
  font-weight: 600;
}

.wordle-style-button:hover,
.wordle-style-button:focus {
  color: #fff;
  text-decoration: none;
  background: #0e347e;
}

.bookmark-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.bookmark-filter input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bookmark-filter-box {
  width: 22px;
  height: 22px;
  border: 2px solid #4967ab;
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: all 160ms ease;
}

.bookmark-filter input:checked + .bookmark-filter-box {
  background: #123f96;
  border-color: #123f96;
}

.bookmark-filter input:checked + .bookmark-filter-box::after {
  content: '✓';
  position: absolute;
  color: #fff;
  font-size: 0.95rem;
  left: 4px;
  top: 0;
}

.bookmark-filter-label {
  font-size: 1rem;
  color: #2e3a50;
}

.site-grid-wrapper {
  display: flex;
  justify-content: center;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  width: 100%;
  max-width: 1120px;
}

.site-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-card {
  background: transparent;
  border: none;
  padding: 1rem;
  height: fit-content;
}

.category-card {
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #fff;
}

.category-description {
  margin: 0.6rem 0;
  color: #4d5a75;
  line-height: 1.45;
}

.category-game-count {
  margin: 0;
  color: #2f4f88;
  font-weight: 500;
}

.category-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.category-link {
  color: #1a2b50;
  text-decoration: none;
}

.category-link:hover,
.category-link:focus {
  text-decoration: underline;
}

.site-card h2,
.site-detail h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.site-title-content {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #1a2b50;
}

.site-title-image,
.site-logo-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-title-logo .site-logo-image,
.site-title-header-image .site-title-image {
  height: 56px;
  width: auto;
  max-height: 56px;
}

.site-title-header-image.site-linkedin .site-title-image {
  height: 48px;
  max-height: 48px;
}

.site-card ul {
  margin: 0.75rem 0 0;
  padding-left: 0;
  list-style: none;
}

.site-card li {
  margin-bottom: 0.45rem;
  transition: transform 170ms ease, background-color 170ms ease;
  border-radius: 8px;
}

.game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  transition: transform 170ms ease, background-color 170ms ease;
}

.site-card li:hover .game-row,
.site-card li:focus-within .game-row {
  background-color: #f2f6ff;
  transform: translateX(4px);
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 170ms ease;
  font-size: 1.1rem;
}

.game-link:hover,
.game-link:focus-visible {
  color: #000;
  text-decoration: none;
}

.site-card li:hover .game-link,
.site-card li:focus-within .game-link {
  transform: translateX(2px);
}

.game-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.game-complete-indicator {
  border: none;
  background: transparent;
  padding: 0.15rem;
  cursor: pointer;
  color: #118847;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 140ms ease, transform 140ms ease;
}

.game-complete-indicator.visible {
  opacity: 1;
  transform: scale(1);
}

.bookmark-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #93a0ba;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.15rem;
}

.bookmark-toggle.active {
  color: #f6b600;
}

.site-detail-header {
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-detail-description {
  margin-top: 0.5rem;
  color: #4d5a75;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.game-card {
  border: 1px solid #e7ebf3;
  border-radius: 10px;
  padding: 0.95rem;
}

.game-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.game-card h3 {
  margin: 0;
  font-size: 1.14rem;
}

.game-card p {
  margin: 0.55rem 0 0;
  color: #445067;
  line-height: 1.35;
  font-size: 0.95rem;
}

.wordle-search-wrap {
  margin-bottom: 1rem;
}

.wordle-search-label {
  display: block;
  margin-bottom: 0.4rem;
  color: #2b3a57;
  font-weight: 500;
}

.wordle-search-input {
  width: 100%;
  max-width: 620px;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cad5eb;
  border-radius: 8px;
  font-size: 1rem;
}

.wordle-search-count {
  margin: 0.55rem 0 0;
  color: #4d5a75;
}

.wordle-game-meta {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: #5a6785;
}

.game-logo-image {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.game-tooltip {
  position: absolute;
  z-index: 999;
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #ffffff;
  background: rgba(17, 25, 40, 0.96);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  box-shadow: 0 10px 28px rgba(17, 25, 40, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.game-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: #123f96;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e8edf7;
}

@media (max-width: 900px) {
  .site-grid {
    grid-template-columns: 1fr;
  }

  .game-cards {
    grid-template-columns: 1fr;
  }

  .game-link {
    display: inline-flex;
  }
}

.seo-content {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #f9fbff;
}

.seo-content h2 {
  margin-top: 0;
  color: #122b66;
  font-size: 1.35rem;
}

.seo-content p {
  margin: 0.55rem 0;
  line-height: 1.5;
  color: #2f3d58;
}
