/* =========================================================
   Home page layout
   ========================================================= */
.home-shell {
  position: relative;
  left: 50%;
  width: min(1220px, calc(100vw - 48px));
  transform: translateX(-50%);
}

.home-section {
  margin-top: 32px;
}

.home-section h2 {
  margin: 0 0 16px;
  color: #0f1728;
  font-size: 24px;
  line-height: 1.4;
}

/* =========================================================
   Hero
   ========================================================= */
.home-hero {
  position: relative;
  padding: 28px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(35, 70, 162, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.95) 100%);
  box-shadow: var(--shadow-soft);
}

.home-kicker {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h2 {
  margin: 0;
  color: #0f1728;
  font-size: 36px;
  line-height: 1.3;
}

.home-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--color-text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.home-actions,
.home-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-actions {
  margin-top: 22px;
}

.home-card-links {
  justify-content: center;
  margin-top: 18px;
}

/* =========================================================
   Shared grids and cards
   ========================================================= */
.home-grid,
.home-feature-grid {
  display: grid;
  gap: 16px;
}

.home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-game-card,
.home-feature-card {
  margin-bottom: 0;
}

.home-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-game-card h3,
.home-feature-card h3 {
  margin: 0;
  color: #0f1728;
  font-size: 22px;
  line-height: 1.4;
}

.home-game-card p,
.home-feature-card p {
  margin: 12px 0 0;
  color: var(--color-text-soft);
  line-height: 1.8;
}

.home-card-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   Featured game card
   ========================================================= */
.home-game-card-primary {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 300px;
  overflow: hidden;
  padding: 30px 30px 26px;
  border-color: rgba(59, 130, 246, 0.2);
  border-left: 6px solid rgba(35, 70, 162, 0.82);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.97) 58%, rgba(234, 243, 255, 0.94) 100%);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
    max-width: 760px;
    margin-inline: auto;  
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-game-card-primary:hover,
.home-game-card-primary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.34);
  text-decoration: none;
  box-shadow:
    0 20px 38px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.home-game-main,
.home-game-bottom-row,
.home-game-progress {
  z-index: 1;
}

.home-game-main {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.home-game-card-label {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 0;
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #2346a2;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.18;
  pointer-events: none;
}

.home-game-title {
  margin: 0;
}

.home-game-title,
.home-game-card p {
  text-align: center;
}

.home-game-card-primary .home-game-title {
  width: 100%;
  text-align: center;
}

.home-game-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.home-game-card-primary .home-game-logo {
  width: min(100%, 460px);
  max-width: none;
  filter: drop-shadow(0 10px 16px rgba(21, 39, 78, 0.16));
}

.home-game-card-primary:hover .home-game-logo,
.home-game-card-primary:focus-visible .home-game-logo {
  opacity: 0.9;
}

.home-game-bottom-row {
  display: grid;
  grid-template-columns: 260px auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 600px;
  margin: 18px auto 0;
}

.home-game-tags,
.home-feature-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-game-tags {
  margin-top: 12px;
}

.home-game-bottom-row .home-game-tags {
  justify-content: flex-start;
  margin-top: 0;
  align-self: end;
  transform: translateY(-10px);
}

.home-game-tags span,
.home-feature-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(35, 70, 162, 0.12);
  border-radius: 999px;
  background: rgba(235, 242, 255, 0.88);
  color: #31508f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.home-game-card .home-card-label + .home-game-title {
  margin-top: 8px;
}

.home-game-card.is-coming {
  background: linear-gradient(180deg, #fcfdff 0%, #f7f8fb 100%);
}

/* =========================================================
   Progress card
   ========================================================= */
.home-progress-card {
  display: block;
  max-width: 720px;
  margin: 0 auto 14px;
  padding: 16px 18px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.home-progress-card:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.home-progress-card .home-progress-title {
  margin: 0 0 10px;
  color: var(--color-primary-strong);
  font-size: 16px;
  line-height: 1.4;
}

.home-progress-status,
.home-progress-content p {
  margin: 6px 0 0;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.7;
}

.home-game-progress {
  flex: none;
  width: min(100%, 360px);
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: default;
}

.home-game-bottom-row .home-game-progress {
  width: 100%;
  max-width: 260px;
}

.home-game-progress:hover {
  border-color: var(--color-border);
  text-decoration: none;
}

.home-game-progress .home-progress-title {
  font-size: 18px;
}

.home-game-progress .home-progress-status,
.home-game-progress .home-progress-content p {
  color: var(--color-text);
  font-size: 13px;
  text-align: left;
}

/* =========================================================
   Feature cards
   ========================================================= */
.home-feature-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 176px;
  overflow: hidden;
  padding: 20px 18px;
  border-color: rgba(92, 125, 176, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  color: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-feature-link:hover,
.home-feature-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: 0 16px 30px rgba(25, 42, 70, 0.11);
}

.home-feature-number {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #2346a2;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
}

.home-feature-label {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.home-feature-link h3 {
  color: #0f1728;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
}

.home-feature-link p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.home-feature-tags {
  margin-top: auto;
}

/* =========================================================
   Feature summary cards
   ========================================================= */

.home-feature-grid-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-static {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 176px;
  overflow: hidden;
  padding: 20px 18px;
  border-color: rgba(92, 125, 176, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  text-align: left;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-feature-static h3 {
  color: #0f1728;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.home-feature-static p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .home-feature-grid-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-feature-grid-summary {
    grid-template-columns: 1fr;
  }

  .home-feature-static {
    min-height: 158px;
    padding: 18px 16px;
  }

  .home-feature-static h3 {
    font-size: 20px;
  }
}

/* =========================================================
   Site update card
   ========================================================= */
.site-update-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 24px;
  border-color: rgba(92, 125, 176, 0.22);
  background:
    radial-gradient(circle at top right, rgba(35, 70, 162, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.site-update-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
}

.site-update-section h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.site-update-date {
  margin: 0;
  color: var(--color-primary-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.site-update-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-update-list li {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.site-update-list a {
  color: var(--color-primary-strong);
  text-decoration: none;
}

.site-update-list a:hover,
.site-update-list a:focus-visible {
  text-decoration: underline;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 601px) {
  .home-game-card {
    padding-top: 12px;
  }

  .home-game-card-primary {
    padding-top: 26px;
  }
}

@media (max-width: 900px) {
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-shell {
    width: calc(100vw - 24px);
  }

  .home-hero {
    padding: 22px 18px;
  }

  .home-hero h2 {
    font-size: 28px;
  }

  .home-grid,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-game-card-primary {
    min-height: auto;
    padding: 18px 16px;
    border-left-width: 5px;
  }

  .home-game-card-primary .home-game-logo {
    width: min(100%, 310px);
  }

  .home-game-card-label {
    top: 18px;
    right: 18px;
    font-size: 26px;
  }

  .home-game-progress {
    max-width: 100%;
    padding: 13px 14px;
  }

  .home-game-bottom-row {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
  }

  .home-game-bottom-row .home-game-progress {
    max-width: 100%;
  }

  .home-feature-link {
    min-height: 158px;
    padding: 18px 16px;
  }

  .home-feature-link h3 {
    font-size: 20px;
  }

  .home-game-card-primary {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .home-game-main,
  .home-game-progress {
    flex: none;
    width: 100%;
  }

  .home-game-main {
    align-items: center;
  }

  .home-game-progress {
    max-width: 360px;
  }

  .site-update-card {
    padding: 14px 16px;
  }

  .site-update-section {
    display: block;
  }

  .site-update-section h2,
  .site-update-date,
  .site-update-list {
    margin: 0 0 6px;
  }

  .site-update-list {
    display: block;
  }

  .site-update-list li {
    font-size: 13px;
  }
}
