:root {
  --page: #eef5ff;
  --surface: #ffffff;
  --surface-blue: #deecff;
  --surface-cyan: #dff8fb;
  --ink: #11284a;
  --muted: #607493;
  --line: #c9dcf6;
  --brand: #1768e5;
  --brand-deep: #0b47aa;
  --sidebar: #105bd2;
  --sidebar-deep: #083b92;
  --cyan: #14aeca;
  --coral: #ff6b57;
  --lime: #b9eb5e;
  --gold: #ffc857;
  --player: #092b62;
  --shadow: 0 10px 28px rgba(34, 86, 155, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

body,
button,
input {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.site-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  padding: 22px 14px 16px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
  box-shadow: 6px 0 24px rgba(17, 71, 153, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  margin: 0 4px 28px;
}

.brand-logo {
  display: block;
  width: 158px;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 28, 83, 0.18));
}

.nav-label {
  margin: 0 10px 8px;
  color: #a9d4ff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-nav {
  display: grid;
  gap: 5px;
  margin-bottom: 22px;
}

.category-nav-scroll {
  min-height: 0;
  margin-bottom: 12px;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  scrollbar-width: thin;
}

.category-nav a {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 41px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #e9f5ff;
  font-size: 13px;
  font-weight: 800;
}

.category-nav a:hover,
.category-nav a.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.category-nav a > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-nav small {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  border-radius: 6px;
  color: #dceeff;
  background: rgba(3, 36, 91, 0.38);
  font-size: 10px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  font-size: 17px;
  font-weight: 900;
}

.sidebar-note {
  margin: auto 4px 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  color: #c9e7ff;
  background: rgba(5, 42, 105, 0.34);
  font-size: 11px;
  line-height: 1.5;
}

.main-content {
  min-width: 0;
  padding: 18px 22px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  margin: -18px -22px 20px;
  padding: 9px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 245, 255, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--brand-deep);
  font-weight: 900;
}

.mobile-brand img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.mobile-brand span {
  font-size: 17px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--brand);
  background: var(--surface);
  font-size: 20px;
}

.search-box {
  display: flex;
  width: min(560px, 100%);
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #b7cff0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(35, 87, 155, 0.08);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 104, 229, 0.12);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 43px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder {
  color: #8397b4;
}

.search-box button {
  min-width: 88px;
  border: 0;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.search-box button:hover {
  background: var(--brand-deep);
}

.category-showcase {
  margin-bottom: 26px;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(118deg, rgba(20, 174, 202, 0.88), rgba(23, 104, 229, 0.96) 45%, rgba(11, 71, 170, 0.98));
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h1,
.section-heading h2 {
  margin: 3px 0 0;
  line-height: 1.08;
}

.section-heading h1 {
  font-size: 32px;
}

.section-heading h2 {
  font-size: 26px;
}

.section-kicker {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-showcase .section-kicker {
  color: #bff8ff;
}

.section-heading > a,
.section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-heading > a {
  color: var(--brand);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.category-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 47, 118, 0.54);
  transition: transform 160ms ease, background 160ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  background: rgba(5, 47, 118, 0.74);
}

.category-card img,
.category-card-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface-blue);
}

.category-card-mark {
  color: var(--brand-deep);
  font-size: 26px;
  font-weight: 900;
}

.category-card:nth-child(3n + 2) .category-card-mark {
  color: #703219;
  background: #ffe0b2;
}

.category-card:nth-child(3n + 3) .category-card-mark {
  color: #255400;
  background: var(--lime);
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  font-size: 14px;
  line-height: 1.22;
}

.category-card small {
  margin-top: 5px;
  color: #c8e5ff;
  font-size: 10px;
  font-weight: 700;
}

.game-shelf {
  margin-bottom: 28px;
  padding: 2px 0 25px;
  border-bottom: 1px solid var(--line);
}

.shelf-accent {
  margin-right: -22px;
  margin-left: -22px;
  padding: 22px;
  border-top: 1px solid #b9e6ed;
  border-bottom-color: #b9e6ed;
  background: var(--surface-cyan);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
  align-items: start;
}

.game-grid[data-responsive-rows] > .responsive-grid-overflow {
  display: none;
}

.game-tile {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #bcd2ef;
  border-radius: 8px;
  background: #cfe0f7;
  box-shadow: 0 5px 14px rgba(32, 75, 133, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.game-tile:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 12px 23px rgba(35, 84, 151, 0.2);
}

.game-tile img,
.game-tile-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.game-tile:hover img,
.game-tile:hover .game-tile-art {
  transform: scale(1.035);
}

.game-tile-art {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--brand) 58%, var(--coral));
  font-size: 50px;
  font-weight: 900;
}

.game-tile strong {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-width: 0;
  padding: 24px 10px 9px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(5, 28, 65, 0), rgba(5, 28, 65, 0.92));
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-front {
  margin: 20px 0 28px;
  padding: 48px 22px;
  border: 1px dashed #a9c4e7;
  border-radius: 8px;
  text-align: center;
  background: var(--surface);
}

.empty-front h1,
.empty-front h2 {
  margin: 0 0 10px;
}

.empty-front p {
  margin: 0 0 18px;
  color: var(--muted);
}

.empty-front a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.home-seo {
  margin: 48px -22px 0;
  padding: 54px max(22px, 5vw);
  border-top: 5px solid var(--brand);
  color: #e7f2ff;
  background: var(--player);
}

.home-seo > h2 {
  max-width: 880px;
  margin: 7px 0 16px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.1;
}

.home-seo > p {
  max-width: 930px;
  margin: 0;
  color: #bfd4ef;
  font-size: 16px;
  line-height: 1.75;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.seo-columns h3 {
  margin: 0 0 9px;
  color: var(--lime);
  font-size: 17px;
}

.seo-columns p {
  margin: 0;
  color: #bfd4ef;
  font-size: 14px;
  line-height: 1.72;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 -22px;
  padding: 18px max(22px, 5vw);
  color: #a9c9ee;
  background: #062451;
  font-size: 12px;
}

.site-footer strong {
  color: #ffffff;
  font-size: 14px;
}

.site-footer-brand {
  display: grid;
  gap: 3px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 18px;
}

.site-footer-links a {
  color: #d8e9ff;
  font-weight: 800;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--lime);
}

.game-page-content {
  padding-bottom: 0;
}

.game-page-content .site-footer {
  margin-top: 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.detail-category-strip {
  margin: 0 -22px 18px;
  padding: 16px 22px;
  border-top: 1px solid #1858b5;
  border-bottom: 1px solid #1858b5;
  background: var(--player);
}

.detail-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.detail-category-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  padding: 6px;
  border: 1px solid rgba(158, 203, 255, 0.22);
  border-radius: 8px;
  color: #eef7ff;
  background: #0d4389;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.detail-category-card:hover,
.detail-category-card.active {
  transform: translateY(-2px);
  border-color: var(--lime);
  background: #155bb1;
}

.detail-category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 7px;
  background: #ddecff;
  font-size: 25px;
}

.detail-category-card:nth-child(3n + 2) .detail-category-icon {
  background: #ffe4b6;
}

.detail-category-card:nth-child(3n + 3) .detail-category-icon {
  background: var(--lime);
}

.detail-category-card strong,
.detail-category-card small {
  display: block;
}

.detail-category-card strong {
  font-size: 12px;
  line-height: 1.25;
}

.detail-category-card small {
  margin-top: 4px;
  color: #bcd9f8;
  font-size: 9px;
  font-weight: 800;
}

.breadcrumb-band {
  min-height: 62px;
  margin-bottom: 18px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(34, 86, 155, 0.07);
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.game-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.game-heading h1 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.05;
}

.game-heading p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.game-heading-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.action-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #b3cbea;
  border-radius: 7px;
  color: var(--brand-deep);
  background: #f7faff;
  box-shadow: 0 4px 12px rgba(28, 82, 151, 0.08);
  font-size: 13px;
  font-weight: 900;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.action-button:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: #edf5ff;
}

.action-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  font-size: 17px;
  line-height: 1;
}

.action-button.is-active {
  border-color: #e3a600;
  color: #744b00;
  background: #fff2bd;
}

.action-button-primary {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(23, 104, 229, 0.22);
}

.action-button-primary:hover {
  color: #ffffff;
  background: var(--brand-deep);
}

.game-stage {
  position: relative;
  display: grid;
  place-items: stretch;
  width: 100%;
  height: clamp(540px, 68vh, 860px);
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #174d96;
  border-radius: 8px;
  background: var(--player);
  box-shadow: 0 18px 36px rgba(10, 46, 99, 0.2);
}

.game-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
}

.game-stage.is-playing {
  background: #06152f;
}

.game-stage iframe[hidden],
.game-preview-panel[hidden] {
  display: none;
}

.game-preview-panel {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #071f49;
}

.game-preview-panel > img,
.game-preview-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-preview-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 28, 68, 0.38), rgba(3, 22, 55, 0.72));
  content: "";
}

.game-preview-art {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--brand) 58%, var(--coral));
  font-size: 110px;
  font-weight: 900;
}

.game-preview-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 520px;
  padding: 28px;
  color: #ffffff;
  text-align: center;
}

.game-preview-content > strong {
  font-size: 34px;
  line-height: 1.15;
}

.play-game-button {
  min-width: 164px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  color: #082a60;
  background: var(--lime);
  box-shadow: 0 8px 22px rgba(0, 25, 68, 0.32);
  font-size: 16px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.play-game-button:hover {
  transform: translateY(-2px);
  background: #cbf47d;
  box-shadow: 0 12px 25px rgba(0, 25, 68, 0.38);
}

.game-interactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  margin-top: 12px;
  margin-bottom: 30px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(34, 86, 155, 0.08);
}

.engagement-metric {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: 90px;
  min-height: 38px;
  padding: 0 12px 0 8px;
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.engagement-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--brand);
  font-size: 11px;
}

.engagement-metric span:last-child,
.rating-summary {
  display: grid;
  gap: 1px;
}

.engagement-metric small,
.rating-summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.engagement-metric strong {
  font-size: 14px;
}

.vote-actions {
  display: inline-flex;
  gap: 5px;
  padding: 3px;
  border: 1px solid #c7d9f1;
  border-radius: 7px;
  background: #edf4fd;
}

.vote-actions button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #385372;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.vote-actions button:hover {
  color: var(--brand-deep);
  background: #ffffff;
}

.vote-actions button.is-active {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 3px 8px rgba(23, 104, 229, 0.2);
}

.vote-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.rating-summary {
  min-width: 100px;
  padding: 0 4px;
}

.interaction-message {
  min-width: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.like-ratio {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.game-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.game-stage:fullscreen iframe {
  border-radius: 0;
}

.player-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 420px;
  padding: 30px;
  color: #d7eaff;
  text-align: center;
}

.player-empty .game-tile-art {
  width: 180px;
  height: 135px;
  border-radius: 8px;
}

.detail-shelf {
  margin-top: 30px;
}

.more-games-shelf {
  margin-right: -22px;
  margin-left: -22px;
  padding: 24px 22px 28px;
  border-top: 1px solid #b9e6ed;
  border-bottom-color: #b9e6ed;
  background: var(--surface-cyan);
}

.related-shelf {
  margin-top: 0;
  padding-top: 2px;
}

.detail-game-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 160px));
}

.local-list-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 0;
  color: var(--muted);
}

.local-list-empty {
  grid-column: 1 / -1;
  padding: 34px 20px;
  border: 1px dashed #a9c4e7;
  border-radius: 8px;
  text-align: center;
  background: var(--surface);
}

.local-list-empty strong,
.local-list-empty p {
  display: block;
}

.local-list-empty strong {
  font-size: 18px;
}

.local-list-empty p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.local-list-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.catalog-heading {
  max-width: 840px;
  margin: 8px 0 24px;
}

.catalog-heading h1 {
  margin: 5px 0 9px;
  font-size: 38px;
  line-height: 1.08;
}

.catalog-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-results {
  min-height: 320px;
}

.catalog-seo {
  max-width: 920px;
  margin: 42px 0 10px;
  padding: 25px 0 10px;
  border-top: 1px solid var(--line);
}

.catalog-seo h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.catalog-seo p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-page-content {
  padding-bottom: 0;
}

.legal-document {
  width: min(940px, 100%);
  margin: 8px auto 64px;
  color: var(--text);
}

.legal-document-header {
  padding: 18px 0 30px;
  border-bottom: 2px solid var(--brand);
}

.legal-document-header h1 {
  margin: 6px 0 12px;
  font-size: 42px;
  line-height: 1.08;
}

.legal-document-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-document-header small {
  display: block;
  margin-top: 16px;
  color: #56708f;
  font-weight: 800;
}

.legal-document section {
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 23px;
}

.legal-document p,
.legal-document li {
  color: #38516f;
  font-size: 15px;
  line-height: 1.78;
}

.legal-document p {
  margin: 0 0 13px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  margin: 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
  margin-top: 26px;
}

.detail-article {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.content-panel,
.quick-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(38, 82, 143, 0.07);
}

.content-panel {
  padding: 24px;
}

.content-panel h2,
.quick-info h2 {
  margin: 5px 0 12px;
  font-size: 23px;
  line-height: 1.2;
}

.content-panel p,
.quick-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.72;
}

.content-panel p:last-child,
.quick-info p:last-child {
  margin-bottom: 0;
}

.content-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.detail-aside {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.quick-info {
  padding: 16px;
}

.quick-info > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-blue);
}

.quick-info dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.quick-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.quick-info dt,
.quick-info dd {
  margin: 0;
  font-size: 12px;
}

.quick-info dt {
  color: var(--muted);
}

.quick-info dd {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.mini-game-list {
  display: grid;
  gap: 8px;
}

.mini-game-list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mini-game-list a:hover {
  border-color: var(--brand);
  background: var(--surface-blue);
}

.mini-game-list img,
.mini-game-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 46px;
  border-radius: 5px;
  object-fit: cover;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.mini-game-list strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.faq-panel details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq-panel details:first-of-type {
  border-top: 0;
}

.faq-panel summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.faq-panel details p {
  margin-top: 10px;
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(290px, 86vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open::after {
    position: fixed;
    z-index: 15;
    inset: 0;
    background: rgba(8, 43, 98, 0.36);
    content: "";
  }

  .menu-toggle,
  .mobile-brand {
    display: inline-flex;
  }

  .detail-aside {
    position: static;
  }

  .game-stage {
    height: clamp(500px, 65vh, 740px);
  }

  .game-preview-panel {
    min-height: 100%;
  }
}

@media (max-width: 760px) {
  .main-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .search-box {
    width: auto;
  }

  .search-box button {
    min-width: 68px;
  }

  .category-showcase {
    padding: 18px;
  }

  .detail-category-strip {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .detail-category-grid {
    display: flex;
    padding-bottom: 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .detail-category-card {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

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

  .category-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 62px;
  }

  .category-card img,
  .category-card-mark {
    width: 48px;
    height: 48px;
  }

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

  .shelf-accent,
  .more-games-shelf,
  .home-seo,
  .site-footer {
    margin-right: -14px;
    margin-left: -14px;
  }

  .shelf-accent {
    padding-right: 14px;
    padding-left: 14px;
  }

  .more-games-shelf {
    padding-right: 14px;
    padding-left: 14px;
  }

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

  .seo-columns,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .game-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-heading h1 {
    font-size: 32px;
  }

  .game-stage {
    height: min(68vh, 620px);
    min-height: 420px;
  }

  .game-preview-panel {
    min-height: 100%;
  }

  .game-interactions {
    align-items: center;
  }

  .interaction-message {
    flex: 1 0 100%;
    margin-left: 4px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .topbar {
    flex-wrap: wrap;
  }

  .mobile-brand {
    flex: 1;
  }

  .search-box {
    flex: 0 0 100%;
  }

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

  .section-heading h1 {
    font-size: 27px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading > span {
    display: none;
  }

  .game-stage {
    height: clamp(360px, 66vh, 520px);
    min-height: 0;
    padding: 6px;
  }

  .game-preview-panel {
    min-height: 100%;
  }

  .game-preview-content > strong {
    font-size: 24px;
  }

  .game-interactions {
    padding: 9px;
  }

  .engagement-metric {
    min-width: 78px;
    padding-right: 8px;
  }

  .vote-actions button {
    padding: 0 8px;
  }

  .rating-summary {
    flex: 1 0 100%;
    padding: 8px 4px 2px;
    border-top: 1px solid var(--line);
  }

  .catalog-heading h1 {
    font-size: 32px;
  }

  .legal-document-header h1 {
    font-size: 34px;
  }

  .legal-document-header p {
    font-size: 15px;
  }

  .content-panel {
    padding: 18px;
  }

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