.game-center-page,
.game-player-page {
  background: #0e1014;
}

.lz-game-center,
.lz-game-player {
  width: min(1220px, calc(100% - 48px));
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 54px 0 80px;
  color: #f4f5f7;
}

.lz-game-catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.lz-game-catalog-tools > p {
  margin: 0;
  color: #8d93a3;
  font-size: 13px;
}

.lz-game-sort {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #303540;
  border-radius: 12px;
  background: #14171d;
}

.lz-game-sort a {
  padding: 9px 14px;
  border-radius: 8px;
  color: #9da2b1;
  font-size: 14px;
}

.lz-game-sort a:hover,
.lz-game-sort a.is-active {
  color: #fff;
  background: #282c3a;
}

.lz-game-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
  padding: 36px 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: radial-gradient(circle at 82% 18%, rgba(96, 86, 255, .28), transparent 36%), linear-gradient(135deg, #191d27 0%, #11131a 70%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.lz-game-eyebrow {
  color: #8f89ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
}

.lz-game-hero h1 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
}

.lz-game-hero p,
.lz-game-player-head p {
  margin: 0;
  color: #a8acb8;
  font-size: 16px;
}

.lz-game-count {
  min-width: 110px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-align: right;
}

.lz-game-count small {
  display: block;
  color: #808593;
  font-size: 12px;
  font-weight: 400;
}

.lz-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.lz-game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: #171a21;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
  transition: transform .22s ease, border-color .22s ease;
}

.lz-game-card:hover {
  border-color: rgba(127, 118, 255, .55);
  transform: translateY(-4px);
}

.lz-game-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #393e63, #181b28 58%, #111318);
}

.lz-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.lz-game-card:hover .lz-game-cover img { transform: scale(1.035); }

.lz-game-cover-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .3);
  font-size: 78px;
}

.lz-game-play {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  background: rgba(94, 84, 245, .92);
  box-shadow: 0 8px 22px rgba(67, 57, 222, .35);
}

.lz-game-card-body { padding: 20px; }
.lz-game-card-body h2 { margin: 0 0 9px; font-size: 19px; }
.lz-game-card-body h2 a { color: #f7f7fb; }
.lz-game-card-body h2 a:hover { color: #9a94ff; }
.lz-game-card-body p { min-height: 42px; margin: 0 0 18px; color: #969ba8; line-height: 1.65; }
.lz-game-card-body p { overflow-wrap: anywhere; }

.lz-game-meta {
  display: flex;
  justify-content: space-between;
  color: #6f7481;
  font-size: 12px;
}

.lz-game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.lz-game-tags span { padding: 4px 8px; border: 1px solid #303541; border-radius: 6px; color: #aaaec0; font-size: 11px; }

.lz-game-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 20px;
}

.lz-game-card-actions > a,
.lz-game-card-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #363b49;
  border-radius: 10px;
  color: #f3f4f8;
  font-size: 14px;
  font-weight: 600;
  background: #222630;
}

.lz-game-card-actions .lz-game-primary-action {
  border-color: #6258f4;
  background: #6258f4;
}

.lz-game-card-actions .lz-game-primary-action:hover { color: #fff; background: #7168ff; }
.lz-game-card-actions .lz-game-idea-action:hover { color: #fff; border-color: #5d6372; }

.lz-game-card-actions .lz-game-like-action {
  min-width: 76px;
  color: #eef0f6;
}

.lz-game-card-actions .lz-game-like-action span { margin-right: 6px; font-size: 18px; line-height: 1; }
.lz-game-like-action.is-liked,
.lz-idea-like.is-liked { color: #ff7c8e; border-color: rgba(255, 93, 116, .55); background: rgba(255, 75, 105, .1); }
.lz-game-like-action:disabled,
.lz-idea-like:disabled { opacity: .55; cursor: wait; }

.lz-game-ideas { max-width: 980px; }
.lz-game-ideas > .lz-game-back { display: inline-block; margin-bottom: 20px; }

.lz-idea-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 34px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: radial-gradient(circle at 86% 12%, rgba(98, 88, 244, .24), transparent 42%), #171a21;
}

.lz-idea-head h1 { margin: 8px 0 10px; color: #fff; font-size: 30px; }
.lz-idea-head p { max-width: 650px; margin: 0; color: #9da2b0; line-height: 1.7; }
.lz-idea-game-likes { min-width: 92px; text-align: center; }
.lz-idea-game-likes strong { display: block; color: #fff; font-size: 30px; }
.lz-idea-game-likes span { color: #777d8c; font-size: 12px; }

.lz-idea-compose,
.lz-idea-board {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: #171a21;
}

.lz-idea-compose label { display: block; margin-bottom: 11px; color: #f5f6f8; font-size: 15px; }
.lz-idea-compose-row { position: relative; display: flex; gap: 10px; }
.lz-idea-compose-row input {
  flex: 1;
  height: 44px;
  padding: 0 58px 0 14px;
  border: 1px solid #353b48;
  border-radius: 9px;
  outline: none;
  color: #fff;
  background: #0f1116;
}
.lz-idea-compose-row input:focus { border-color: #7067f8; box-shadow: 0 0 0 3px rgba(98, 88, 244, .14); }
.lz-idea-counter { position: absolute; right: 112px; top: 12px; color: #696f7e; font-size: 12px; }
.lz-idea-compose-row button,
.lz-idea-login a { padding: 0 18px; border: 0; border-radius: 9px; color: #fff; font-weight: 600; background: #6258f4; }
.lz-idea-login { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #a0a5b2; }
.lz-idea-login a { padding-top: 10px; padding-bottom: 10px; }

.lz-idea-board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lz-idea-board-head h2 { margin: 0; color: #fff; font-size: 19px; }
.lz-idea-board-head span { color: #707685; font-size: 12px; }
.lz-idea-list { margin: 0; padding: 0; list-style: none; }
.lz-idea-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 17px 4px; border-top: 1px solid rgba(255, 255, 255, .065); }
.lz-idea-rank { color: #696f7e; font-size: 16px; font-weight: 700; text-align: center; }
.lz-idea-item:nth-child(-n+3) .lz-idea-rank { color: #938cff; }
.lz-idea-copy strong { display: block; color: #f4f5f8; font-size: 16px; font-weight: 500; }
.lz-idea-copy span { display: block; margin-top: 6px; color: #6f7583; font-size: 12px; }
.lz-idea-like { min-width: 72px; padding: 8px 12px; border: 1px solid #353a46; border-radius: 9px; color: #b7bbc6; background: #20232b; }
.lz-idea-like span { margin-right: 6px; }
.lz-idea-empty { padding: 48px 18px; color: #747a89; text-align: center; }
.lz-idea-empty h3 { color: #d9dbe2; }

.lz-game-empty {
  padding: 90px 24px;
  border: 1px dashed #343945;
  border-radius: 16px;
  color: #858a98;
  text-align: center;
}
.lz-game-empty > i { font-size: 54px; }
.lz-game-empty h2 { margin: 16px 0 8px; color: #e9eaf0; }

.lz-game-player-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.lz-game-player-head h1 { margin: 12px 0 6px; color: #fff; font-size: 30px; }
.lz-game-back { color: #898f9f; }
.lz-game-back:hover { color: #b5b0ff; }

.lz-game-fullscreen {
  padding: 10px 16px;
  border: 1px solid #3b4050;
  border-radius: 9px;
  color: #fff;
  background: #20242e;
}
.lz-game-fullscreen:hover { border-color: #7770eb; background: #292d3b; }

.lz-game-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #2c303b;
  border-radius: 14px;
  background: #050608;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}
.lz-game-frame-wrap:fullscreen { border: 0; border-radius: 0; }
.lz-game-frame { width: 100%; height: 100%; border: 0; background: #050608; }
.lz-game-security-note { margin-top: 13px; color: #686d79; font-size: 12px; text-align: right; }

@media (max-width: 991px) {
  .lz-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lz-game-catalog-tools { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .lz-game-center, .lz-game-player { width: calc(100% - 28px); padding-top: 24px; }
  .lz-game-hero { align-items: flex-start; padding: 25px; }
  .lz-game-hero h1 { font-size: 34px; }
  .lz-game-count { display: none; }
  .lz-game-grid { grid-template-columns: 1fr; }
  .lz-game-sort { width: 100%; overflow-x: auto; }
  .lz-game-sort a { flex: 0 0 auto; }
  .lz-game-card-actions { grid-template-columns: 1fr 1fr; }
  .lz-game-card-actions .lz-game-like-action { grid-column: 1 / -1; }
  .lz-idea-head { align-items: flex-start; flex-direction: column; padding: 24px; }
  .lz-idea-game-likes { text-align: left; }
  .lz-idea-login { align-items: flex-start; flex-direction: column; }
  .lz-idea-compose-row { flex-direction: column; }
  .lz-idea-compose-row button { min-height: 44px; }
  .lz-idea-counter { right: 12px; }
  .lz-idea-item { grid-template-columns: 28px 1fr; }
  .lz-idea-like { grid-column: 2; justify-self: start; margin-top: 4px; }
  .lz-game-player-head { align-items: flex-start; flex-direction: column; }
  .lz-game-fullscreen { width: 100%; }
}

html[data-lz-site-theme="light"] .game-center-page,
html[data-lz-site-theme="light"] .game-player-page { background: #f5f6f8; }
html[data-lz-site-theme="light"] .lz-game-center,
html[data-lz-site-theme="light"] .lz-game-player { color: #20232b; }
html[data-lz-site-theme="light"] .lz-game-card { border-color: #e1e4ea; background: #fff; box-shadow: 0 14px 38px rgba(30, 35, 50, .08); }
html[data-lz-site-theme="light"] .lz-game-card-body h2 a,
html[data-lz-site-theme="light"] .lz-game-player-head h1 { color: #20232b; }
html[data-lz-site-theme="light"] .lz-game-frame-wrap { border-color: #dfe2e8; }
html[data-lz-site-theme="light"] .lz-game-sort,
html[data-lz-site-theme="light"] .lz-idea-head,
html[data-lz-site-theme="light"] .lz-idea-compose,
html[data-lz-site-theme="light"] .lz-idea-board { border-color: #e0e3e9; background: #fff; }
html[data-lz-site-theme="light"] .lz-game-sort a.is-active { color: #222631; background: #eceef4; }
html[data-lz-site-theme="light"] .lz-idea-head h1,
html[data-lz-site-theme="light"] .lz-idea-board-head h2,
html[data-lz-site-theme="light"] .lz-idea-copy strong,
html[data-lz-site-theme="light"] .lz-idea-compose label,
html[data-lz-site-theme="light"] .lz-idea-game-likes strong { color: #20232b; }
html[data-lz-site-theme="light"] .lz-idea-compose-row input { border-color: #d7dbe3; color: #252934; background: #f8f9fb; }
