:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a1d26;
  --muted: #5c6477;
  --accent: #5b6cff;
  --accent2: #00c2a8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 32, 58, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at 15% 0%, #eef1ff 0, transparent 40%),
    radial-gradient(circle at 90% 10%, #e9fbff 0, transparent 42%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
  padding: 24px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(22, 32, 64, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand__logo {
  width: 42px;
  height: 42px;
}

.brand__logo--svg {
  filter: drop-shadow(0 4px 8px rgba(91, 108, 255, 0.35));
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid #e1e6f2;
  border-radius: 10px;
  padding: 8px;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
}

.nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.nav__cols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.nav__pill {
  background: rgba(91, 108, 255, 0.12);
  color: #3339b5;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav__pill:hover {
  text-decoration: none;
  background: rgba(91, 108, 255, 0.2);
}

.nav__link {
  font-weight: 600;
}

.nav__link--accent {
  color: var(--accent2);
}

.site-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-search input {
  border-radius: 12px;
  border: 1px solid #e1e6f2;
  padding: 10px 12px;
  min-width: 200px;
  font-size: 0.95rem;
}

.site-search button,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: none;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent), #8895ff);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.site-search--page input {
  min-width: 260px;
  flex: 1;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  background: #eef0fb;
  color: var(--accent);
}

.btn--sm {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
}

.btn--xl {
  padding: 14px 32px;
  font-size: 1.125rem;
  border-radius: 999px;
}

.section__head {
  margin: 32px 0 14px;
}
.section__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.page-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 12px 0 22px;
}

.chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.chip {
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text);
}

.chip:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.games-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

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

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(24, 32, 58, 0.15);
}

.game-card__link {
  color: inherit;
  display: block;
}

.game-card__link:hover {
  text-decoration: none;
}

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

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

.game-card__body {
  padding: 10px 12px 14px;
}

.game-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.game-card__badge {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.game-card__play::after {
  content: '';
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%235b6cff' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7L8 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-card:hover .game-card__play::after {
  opacity: 1;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a {
  font-weight: 600;
}

.breadcrumbs .sep {
  opacity: 0.5;
  margin: 0 8px;
}

.game-layout__main {
  display: grid;
  gap: 28px;
}

.game-stage {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f1220;
  position: relative;
}

.game-toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px;
  flex-wrap: wrap;
  background: #181c2f;
}

.game-stage__poster {
  position: relative;
  aspect-ratio: 16 / 9;
}

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

.game-stage__poster--empty {
  background: linear-gradient(140deg, #2b3360, #171a2f);
}

.game-stage__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0.2), rgba(10, 12, 24, 0.55));
}

.game-frame-wrap {
  width: 100%;
  min-height: 500px;
  height: min(72vh, 750px);
}

.game-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

@media (max-width: 720px) {
  .game-frame-wrap {
    min-height: 520px;
    height: 65vh;
  }
}

.game-meta .lead {
  font-size: 1.1rem;
  font-weight: 600;
}

.prose,
.seo-text {
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 28px 0;
}

.pagination__status {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid rgba(22, 32, 64, 0.08);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .nav.is-open {
    display: flex;
  }
}
