:root {
  color-scheme: light;
  --ink: #183153;
  --muted: #5e6b82;
  --line: #dfe8f3;
  --paper: #ffffff;
  --soft: #f5f9ff;
  --sky: #2f9df4;
  --teal: #33c6a6;
  --coral: #ff6b6b;
  --gold: #ffd166;
  --mint: #dff8ef;
  --shadow: 0 18px 42px rgba(24, 49, 83, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(47, 157, 244, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(255, 209, 102, 0.18), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 38%, #fffaf0 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(18px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(223, 232, 243, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
}

.brand img {
  width: 44px;
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: #eef7ff;
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 690px;
  padding: 88px 0 56px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 35%, rgba(255, 255, 255, 0.16) 72%),
    url("images/generated/hero-gaming-hub.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, #ffffff);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(260px, 360px);
  gap: 48px;
  align-items: end;
  min-height: 540px;
}

.hero-copy h1 {
  margin: 4px 0 16px;
  font-size: 4.25rem;
  line-height: 0.98;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0b8c73;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 610px;
  margin: 0 0 26px;
  color: #2d405f;
  font-size: 1.2rem;
}

.hero-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #207fd5, #0fa986);
  box-shadow: 0 12px 28px rgba(47, 157, 244, 0.22);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.button.small {
  min-height: 40px;
  padding: 10px 14px;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.safety-strip {
  max-width: 650px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #bfe8dc;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 26px rgba(24, 49, 83, 0.08);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(223, 232, 243, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #edf3fa;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.stat-value {
  display: block;
  font-weight: 950;
  font-size: 2.15rem;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.notice-band {
  padding: 18px 0;
  background: #fff7df;
  border-block: 1px solid #ffe3a4;
}

.notice-grid {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.notice-grid p {
  margin: 0;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #7a4d00;
  background: var(--gold);
  font-weight: 950;
}

.section {
  padding: 74px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section h2,
.cta-band h2,
.legal-hero h1 {
  margin: 0 0 12px;
  font-size: 2.55rem;
  line-height: 1.08;
}

.section-head p,
.ranking-layout > div > p,
.method-grid > div > p,
.faq-layout > div > p,
.cta-content p,
.site-footer p {
  color: var(--muted);
}

.week-grid,
.games-grid,
.mood-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.week-card,
.game-card,
.mood-grid article,
.testimonial-grid article,
.criteria-grid article,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(24, 49, 83, 0.08);
}

.week-card {
  overflow: hidden;
}

.week-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.week-content {
  padding: 18px;
}

.week-rank {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 950;
}

.game-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 150px;
  height: 56px;
  padding: 6px;
  border: 1px solid #edf3fa;
  border-radius: 8px;
  background: #ffffff;
}

.game-logo.dark-logo,
.ranking-logo.dark-logo {
  background: linear-gradient(135deg, #101724, #27314a);
  border-color: #2f405d;
}

.game-logo.compact {
  width: 132px;
  height: 50px;
  margin-bottom: 12px;
}

.game-logo img,
.ranking-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text-logo {
  display: block;
  width: 100%;
  color: var(--ink);
  font-weight: 950;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.catalog-count {
  display: grid;
  place-items: center;
  min-width: 130px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.catalog-count span {
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1;
}

.catalog-count small {
  color: var(--muted);
  font-weight: 800;
}

.catalog-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.search-box input:focus {
  border-color: var(--sky);
  outline: 3px solid rgba(47, 157, 244, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  color: #ffffff;
  background: var(--ink);
  outline: none;
}

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

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

.game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf2fb;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
}

.rating-pill {
  display: grid;
  justify-items: end;
  min-width: 84px;
  color: #986d00;
  font-size: 0.78rem;
  line-height: 1.2;
}

.rating-pill strong {
  color: var(--ink);
  font-size: 1rem;
}

.game-card h3,
.week-card h3,
.mood-grid h3,
.testimonial-grid h3,
.criteria-grid h3,
.ranking-item h3 {
  margin: 12px 0 4px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.game-genre {
  margin: 0 0 10px;
  color: #0b8c73;
  font-weight: 850;
}

.game-body p {
  margin: 0 0 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 12px;
}

.tag-row span {
  padding: 5px 8px;
  border: 1px solid #dcecf7;
  border-radius: 8px;
  color: #2d405f;
  background: #f4fbff;
  font-size: 0.82rem;
  font-weight: 800;
}

.reason-list {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.reason-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0b8c73;
  font-weight: 950;
}

.card-disclaimer {
  margin-top: auto;
  padding: 10px;
  border-radius: 8px;
  color: #2d405f;
  background: #fff7df;
  font-size: 0.9rem;
  font-weight: 760;
}

.card-button {
  width: 100%;
  margin-top: 12px;
  color: var(--ink);
  background: #eef7ff;
  border-color: #cfe6fb;
}

.ranking-section {
  background: linear-gradient(180deg, #f4fbff, #ffffff);
  border-block: 1px solid var(--line);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 76px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--mint);
  font-weight: 950;
}

.ranking-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 50px;
  padding: 5px;
  border: 1px solid #edf3fa;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.ranking-item h3,
.ranking-item p {
  margin: 0;
}

.ranking-item p {
  color: var(--muted);
}

.ranking-item > strong {
  justify-self: end;
  font-size: 1.24rem;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.method-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.method-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.criteria-grid article,
.mood-grid article,
.testimonial-grid article {
  padding: 18px;
}

.mini-icon,
.mood-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-weight: 950;
}

.mood-section {
  background: #fffaf0;
  border-block: 1px solid #ffedbd;
}

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

.mood-grid article:nth-child(2) .mood-icon {
  background: #e5f1ff;
}

.mood-grid article:nth-child(3) .mood-icon {
  background: #ffe7e7;
}

.mood-grid article:nth-child(4) .mood-icon {
  background: #fff2bd;
}

.testimonial-grid article {
  display: grid;
  gap: 12px;
}

.testimonial-grid p,
.testimonial-grid strong {
  margin: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--teal));
  font-weight: 950;
}

.faq-section {
  background: #f4fbff;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 40px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.cta-band {
  padding: 42px 0;
  background: linear-gradient(135deg, #e8f6ff, #fff6d8 54%, #e8fbf4);
  border-top: 1px solid var(--line);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-content h2 {
  margin-bottom: 8px;
}

.cta-content p {
  margin: 0;
  max-width: 680px;
}

.site-footer {
  padding: 42px 0;
  color: #dbe9f9;
  background: #183153;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(0, 1fr);
  gap: 30px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer p {
  margin: 8px 0 0;
  color: #dbe9f9;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cookie-banner[hidden] {
  display: none;
}

.legal-main {
  background: linear-gradient(180deg, #ffffff, #f4fbff);
}

.legal-hero {
  padding: 70px 0 32px;
}

.legal-hero p {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 70px;
}

.legal-toc {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 8px;
  align-self: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.legal-toc a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--ink);
  background: #eef7ff;
  outline: none;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-card {
  padding: 24px;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .ranking-layout,
  .method-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

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

  .method-grid {
    gap: 28px;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 38px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.84) 54%, rgba(255, 255, 255, 0.18) 100%),
      url("images/generated/hero-gaming-hub.png") center / cover no-repeat;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 3.05rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-panel,
  .week-grid,
  .games-grid,
  .mood-grid,
  .testimonial-grid,
  .criteria-grid,
  .footer-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-head.split,
  .cta-content,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .section h2,
  .cta-band h2,
  .legal-hero h1 {
    font-size: 2rem;
  }

  .ranking-item {
    grid-template-columns: 38px minmax(0, 1fr) 48px;
  }

  .ranking-logo {
    display: none;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 22px, 1160px);
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .notice-grid {
    grid-template-columns: 1fr;
  }

  .game-logo {
    width: 132px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
