* {
  box-sizing: border-box;
}

:root {
  --ink: #1d2433;
  --muted: #778093;
  --line: #e7eaf0;
  --purple: #044891;
  --soft: #f6f7fb;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

.topbar {
  height: 78px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  max-width: 1900px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #806af0, #5844c6);
  border-radius: 12px;
  color: white;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 5px 13px #6955dc33;
}

.brand-name {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.8px;
}

.brand-name small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: #7b8190;
  margin-top: -2px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  width: min(470px, 42vw);
  border: 1px solid #e2e5ed;
  border-radius: 13px;
  padding: 5px 6px 5px 13px;
  background: #fafbfe;
}

.search span {
  font-size: 23px;
  color: #8991a2;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
}

.search button {
  border: 0;
  background: var(--purple);
  color: white;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px;
}

.category-nav {
  max-width: 1900px;
  margin: auto;
  padding: 10px 22px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.chip {
  white-space: nowrap;
  border: 1px solid transparent;
  background: #f5f6fa;
  color: #475064;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.chip:hover,
.chip.active {
  background: #efecff;
  border-color: #ded7ff;
  color: #044891;
}

.wrap {
  max-width: 1900px;
  margin: auto;
  padding: 17px 22px 38px;
}

.intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.intro-row h1 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 3px;
}

.intro-row p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.sort select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 9px;
  color: var(--ink);
}

.ad-slot {
  height: 66px;
  border: 1px dashed #d7dbe5;
  border-radius: 10px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #9aa1b0;
  margin-bottom: 17px;
}

.ad-slot span {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 800;
}

.ad-slot small {
  font-size: 10px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 10px;
}

.game-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #e9ebf1;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 1px #10182804;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #202b4514;
}

.game-art {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}

.game-art:before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 2px solid #ffffff55;
  border-radius: 50%;
  right: -35px;
  top: -55px;
}

.game-art:after {
  content: "";
  position: absolute;
  width: 65px;
  height: 65px;
  background: #ffffff22;
  border-radius: 18px;
  transform: rotate(25deg);
  left: -20px;
  bottom: -28px;
}

.art-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(33px, 3.3vw, 53px);
  filter: drop-shadow(0 5px 2px #00000015);
  transition: transform 0.18s;
}

.game-card:hover .art-emoji {
  transform: scale(1.12) rotate(-5deg);
}

.new {
  position: absolute;
  z-index: 2;
  left: 7px;
  top: 7px;
  background: #f04480;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 4px 6px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.game-meta {
  padding: 7px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-title {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-category {
  font-size: 9px;
  color: var(--muted);
}

.size-large {
  grid-column: span 2;
  grid-row: span 2;
}

.size-wide {
  grid-column: span 2;
}

.size-tall {
  grid-row: span 2;
}

.size-large .art-emoji {
  font-size: 70px;
}

.size-wide .art-emoji {
  font-size: 48px;
}

.load-row {
  text-align: center;
  padding: 22px 0 5px;
}

.load-row button,
.empty-state button {
  background: #fff;
  border: 1px solid #dfe2ea;
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 750;
  color: #4d43ae;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 45px;
}

.video-strip {
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.video-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.video-kicker {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: var(--purple);
}

.video-heading h2 {
  font-size: 19px;
  margin: 3px 0 0;
}

.muted {
  font-size: 11px;
  color: var(--muted);
}

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

.video-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
}

.video-art {
  position: relative;
  aspect-ratio: 16/7;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 15px;
  color: white;
  background: linear-gradient(120deg, #1c2b55, #5372d8);
}

.video-art b {
  font-size: clamp(14px, 2vw, 24px);
  line-height: 1.05;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 6px #0005;
}

.art-one {
  background: linear-gradient(120deg, #f28a3c, #b52e62 52%, #322b80);
}

.art-two {
  background: linear-gradient(120deg, #26b8d3, #574fe1 60%, #241d52);
}

.art-three {
  background: linear-gradient(120deg, #3bbd78, #2877c9 55%, #22234f);
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ffffffed;
  color: #5948c7;
  padding-left: 3px;
  font-size: 17px;
  box-shadow: 0 4px 15px #0002;
}

.video-card small {
  color: var(--muted);
  font-size: 10px;
}

.footer {
  background: #fafbfe;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.footer-inner {
  max-width: 1600px;
  margin: auto;
  padding: 29px 22px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 28px;
}

.footer-about p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 280px;
}

.footer h3 {
  font-size: 12px;
  margin: 3px 0 10px;
}

.footer-inner>div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-inner a:not(.brand) {
  font-size: 11px;
  color: #6d7586;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--purple);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 13px 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9298a5;
  font-size: 10px;
  max-width: 1600px;
  margin: auto;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #24283a;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 8px 24px #0002;
}

@media (max-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 120px;
  }

  .topbar,
  .category-nav,
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 13px;
    gap: 10px;
  }

  .brand-name {
    font-size: 21px;
  }

  .search {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .category-nav {
    padding: 9px 13px;
  }

  .category-nav:not(.open) {
    max-height: 54px;
  }

  .category-nav.open {
    max-height: 180px;
    flex-wrap: wrap;
    overflow-y: auto;
  }

  .wrap {
    padding: 14px 0px 28px;
  }

  .hover-info span { display: none;}
  .chip { line-height: 10px;}
  .game-player { min-height: 400px !important; border-radius: 15px !important;}

  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 105px;
    gap: 8px;
  }

  .size-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .size-wide {
    grid-column: span 2;
  }

  .game-title {
    font-size: 10px;
  }

  .game-meta {
    padding: 6px;
  }

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

  .video-card:last-child {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 24px 14px;
    gap: 23px;
  }

  .footer-about {
    grid-column: 1/-1;
  }

  .footer-bottom {
    padding: 13px 14px;
    flex-direction: column;
  }

  .video-heading {
    align-items: start;
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 470px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 100px;
    gap: 7px;
  }

  .size-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .size-wide {
    grid-column: span 2;
  }

  .art-emoji {
    font-size: 31px;
  }

  .size-large .art-emoji {
    font-size: 54px;
  }

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

  .video-card:last-child {
    display: flex;
  }

  .video-art {
    aspect-ratio: 16/7;
  }

  .sort {
    font-size: 10px;
  }

  .sort select {
    padding: 7px;
  }

  .ad-slot {
    height: 60px;
  }

  .footer-inner {
    gap: 20px;
  }
}

/* Mixed game/video grid: video cards sit inside the same continuous grid. */
.video-grid-card .game-art {
  isolation: isolate;
}

.video-grid-card .art-emoji {
  font-size: 64px;
  opacity: 0.75;
}

.video-play-overlay {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffffee;
  color: #654ad7;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 19px;
  box-shadow: 0 5px 16px #0002;
  padding-left: 3px;
}

.video-label {
  position: absolute;
  z-index: 4;
  top: 7px;
  left: 7px;
  background: #20233ccc;
  color: #fff;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.5px;
  padding: 5px 7px;
}

.blog-layout {
  max-width: 1050px;
  margin: 0 auto;
  padding: 24px 18px 50px;
}

.blog-layout h1 {
  font-size: 30px;
  line-height: 1.2;
}

.blog-layout p {
  line-height: 1.75;
  color: #60697a;
}

.blog-player {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #28254f, #6253bd);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.blog-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-meta {
  font-size: 12px;
  color: #888;
}

.blog-related {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.blog-related a {
  background: #f2efff;
  padding: 10px 14px;
  border-radius: 8px;
  color: #6049c5;
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 470px) {
  .video-grid-card.size-wide {
    grid-column: span 2;
  }

  .video-play-overlay {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .blog-layout h1 {
    font-size: 24px;
  }
}

/* Streaming video cards integrated into the game mosaic */
.video-grid-card .game-art {
  background: #26376e;
}

.video-grid-card .stream-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-grid-card .art-emoji {
  display: none;
}

.video-grid-card .video-play-overlay {
  z-index: 3;
  pointer-events: none;
  background: #10182e99;
  border: 1px solid #ffffffaa;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  padding-left: 2px;
}

.video-grid-card .video-label {
  z-index: 3;
  pointer-events: none;
}

.video-grid-card .game-art:before,
.video-grid-card .game-art:after {
  display: none;
}

.video-grid-card:hover .video-play-overlay {
  background: #6a55db;
}

.blog-player video {
  border-radius: 12px;
}



.brand-name {
  font-weight: 900;
  letter-spacing: -0.9px;
  font-size: 24px;
  line-height: 1.06;
}

.brand-name small {
  font-size: 8.5px;
  letter-spacing: 1.35px;
  font-weight: 700;
  margin-top: 4px;
}

.logo {
  border-radius: 12px;
  letter-spacing: -1px;
  box-shadow: 0 5px 15px #6752db30;
}

.intro-row h1 {
  font-weight: 850;
  font-size: 26px;
  letter-spacing: -0.8px;
}

.intro-row p {
  font-size: 13px;
  letter-spacing: 0.05px;
}

.chip {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05px;
}

.search input {
  font-size: 14px;
  font-weight: 500;
}

.game-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.15px;
  line-height: 1.2;
}

.game-category {
  font-size: 10.5px;
  font-weight: 500;
}

.game-meta {
  padding: 8px 9px 9px;
  gap: 4px;
}

.game-card {
  border-radius: 12px;
}

.video-heading h2 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.45px;
}

.video-card strong {
  font-size: 14px;
  font-weight: 750;
}

.footer h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.footer-inner a:not(.brand) {
  font-size: 14px;
  font-weight: 500;
}

.footer-about p {
  font-size: 13px;
}

@media (max-width: 760px) {
  .brand-name {
    font-size: 22px;
  }

  .intro-row h1 {
    font-size: 23px;
  }

  .game-title {
    font-size: 11.5px;
  }

  .game-category {
    font-size: 9.5px;
  }
}

/* Playgama-style preview inside every game card on mouse hover */
.game-card:not(.video-grid-card) .game-art {
  isolation: isolate;
}

.game-hover-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  background: #151a2c;
}

.game-card.is-previewing .game-hover-preview {
  opacity: 1;
}

.game-card.is-previewing .game-art .new {
  z-index: 4;
}

@media (hover: none) {
  .game-hover-preview {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-hover-preview {
    transition: none;
  }
}

/* LARGE-CARD LAYOUT — overrides older small 8-column grid */
@media (min-width: 1201px) {
  .game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 185px;
    gap: 15px;
  }

  .game-title {
    font-size: 15px;
  }

  .game-category {
    font-size: 12px;
  }

  .game-meta {
    padding: 10px 12px 12px;
    gap: 5px;
  }

  .art-emoji {
    font-size: clamp(48px, 5vw, 78px);
  }

  .size-large .art-emoji {
    font-size: 100px;
  }

  .size-wide .art-emoji {
    font-size: 76px;
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 165px;
    gap: 12px;
  }

  .game-title {
    font-size: 14px;
  }

  .game-category {
    font-size: 11px;
  }

  .game-meta {
    padding: 10px 11px;
  }

  .art-emoji {
    font-size: 57px;
  }
}

@media (min-width: 471px) and (max-width: 760px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 145px;
    gap: 10px;
  }

  .game-title {
    font-size: 13px;
  }

  .game-category {
    font-size: 10px;
  }

  .game-meta {
    padding: 9px;
  }

  .art-emoji {
    font-size: 47px;
  }
}

@media (max-width: 470px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 148px;
    gap: 10px;
  }

  .game-title {
    font-size: 13px;
  }

  .game-category {
    font-size: 10px;
  }

  .game-meta {
    padding: 9px;
  }

  .art-emoji {
    font-size: 48px;
  }

  .size-wide {
    grid-column: span 2;
  }

  .size-tall {
    grid-row: span 2;
  }
}

/* TheZGame Logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

/* Mobile Logo */
@media (max-width: 768px) {
  .brand-logo {
    width: 145px;
    max-height: 48px;
  }
}

.game-card {
  border-radius: 14px;
}

.game-card:hover {
  box-shadow: 0 10px 25px #222b451c;
}

/* Videos belong inside the main mosaic, not in a second video section. */
.video-strip {
  display: none !important;
}

/* Actual game thumbnails */

.game-art .game-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.25s ease;
}

.game-card:hover .game-thumbnail {
  transform: scale(1.05);
}

/* Actual gameplay video on hover */

.game-hover-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.game-card.is-previewing .game-hover-preview {
  opacity: 1;
}

/* New game badge stays visible */

.game-art .new {
  z-index: 4;
}

/* Hide hover video on touch devices */

@media (hover: none) {
  .game-hover-preview {
    display: none !important;
  }
}

/* TheZGame - Taller Game Cards */

/* TheZGame - Taller HD Game Grid */

@media (min-width: 1201px) {
  .game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 215px;
  }
}

@media (min-width: 471px) and (max-width: 760px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 185px;
  }
}

@media (max-width: 470px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 195px;
  }
}

/* Image display */

.game-card .game-art {
  min-height: 0;
  overflow: hidden;
}

.game-card .game-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Remove decorative shapes over thumbnails */

.game-card:has(.game-thumbnail) .game-art::before,
.game-card:has(.game-thumbnail) .game-art::after {
  display: none;
}

/* TheZGame - Featured First Game */

@media (min-width: 1201px) {
  .game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
  }

  .game-grid>.game-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
    width: 100%;
    height: 100%;
    max-width: none;
    position: relative;
    z-index: 1;
  }

  .game-grid>.game-card:first-child .game-thumbnail {
    object-fit: cover;
    object-position: center;
  }
}

/* Show full featured game image */
@media (min-width: 1201px) {
  .game-grid>.game-card:first-child .game-art .game-thumbnail {
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
}

/* Featured Game Image - Full Card */

@media (min-width: 1201px) {
  .game-grid>.game-card:first-child .game-art {
    background: #07101c;
  }

  .game-grid>.game-card:first-child .game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
  }
}

/* Smooth Game Card Hover Animation */

.game-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.game-card .game-art {
  overflow: hidden;
}

.game-card .game-thumbnail {
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    z-index: 5;
  }

  .game-card:hover .game-thumbnail {
    transform: scale(1.07) !important;
    filter: brightness(1.1) saturate(1.15);
  }
}

/* Original theme preserved: new hover-only overlay and subtle light sweep */
.game-card {
  position: relative;
  overflow: hidden;
  transition: transform .32s ease, box-shadow .32s ease;
  will-change: transform
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px #22233d25
}

.game-card .game-art {
  position: relative;
  overflow: hidden
}

.game-card .game-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease
}

.game-card:hover .game-thumbnail {
  transform: scale(1.055)
}

.game-card .hover-info {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(0deg, rgba(10, 13, 32, .93), rgba(10, 13, 32, .1) 90%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  pointer-events: none
}

.game-card:hover .hover-info,
.game-card:focus-visible .hover-info {
  opacity: 1;
  transform: none
}

.hover-info strong {
  font-size: 16px
}

.hover-info span {
  font-size: 12px;
  opacity: .85
}

.hover-info em {
  font-size: 12px;
  font-style: normal;
  margin-top: 7px;
  font-weight: 700
}

.game-card .game-art:after {
  content: '';
  position: absolute;
  z-index: 4;
  top: -100%;
  left: -70%;
  width: 45%;
  height: 300%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, #ffffff40, transparent);
  pointer-events: none;
  transition: left .7s ease
}

.game-card:hover .game-art:after {
  left: 145%
}

@media(hover:none) {
  .game-card .hover-info {
    opacity: 1;
    transform: none;
    background: linear-gradient(0deg, #0a0d20bd, transparent 70%);
    padding: 10px
  }

  .game-card .hover-info strong {
    font-size: 13px
  }
}

@media(prefers-reduced-motion:reduce) {

  .game-card,
  .game-card *,
  .game-card .game-art:after {
    transition: none !important;
    animation: none !important
  }
}

.game-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr);
  gap: 20px;
  align-items: start
}

.game-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px
}

.game-side a {
  display: block;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  font-weight: 600
}

.game-side img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px
}

.game-content {
  max-width: 850px;
  line-height: 1.75
}

.game-content details {
  padding: 12px 0;
  border-bottom: 1px solid #e1e4ed
}

.game-content summary {
  cursor: pointer;
  font-weight: 700
}

@media(max-width:800px) {
  .game-split {
    grid-template-columns: 1fr
  }

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

@media(max-width:420px) {
  .game-side {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

/* Game detail + editorial improvements */
.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(245px, 1fr);
  gap: 22px;
  align-items: start
}

.detail-main {
  min-width: 0
}

.detail-sidebar {
  min-width: 0
}

.detail-head {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 20px 0
}

.detail-head img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 15px
}

.detail-head h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px)
}

.detail-kicker {
  color: #6550d7;
  font-weight: 700;
  font-size: 13px
}

.detail-panel {
  background: #fff;
  border: 1px solid #e6e8f2;
  border-radius: 17px;
  padding: 20px;
  margin: 22px 0;
  line-height: 1.8
}

.detail-panel h2 {
  margin: 0 0 12px
}

.detail-sidebar h2 {
  font-size: 19px;
  margin: 0 0 14px
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.mini-card {
  display: block;
  text-decoration: none;
  color: #17223c;
  border: 1px solid #e7e9f1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #17223c18
}

.mini-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover
}

.mini-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin: 7px 8px 3px
}

.mini-card small {
  display: block;
  color: #69758d;
  font-size: 11px;
  margin: 0 8px 9px
}

.poster-launch {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-position: center;
  background-size: cover;
  isolation: isolate
}

.poster-launch:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #06142d20, #06142dc9);
  z-index: -1
}

.launch-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid #ffffffbd;
  background: #6550d7;
  color: white;
  font-size: 36px;
  cursor: pointer;
  box-shadow: 0 0 0 13px #ffffff29, 0 18px 45px #0008;
  transition: transform .2s
}

.launch-button:hover {
  transform: scale(1.1)
}

.launch-label {
  color: #fff;
  font-weight: 800;
  margin-top: 25px;
  text-shadow: 0 2px 8px #000
}

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

.guide-card {
  background: white;
  border: 1px solid #e6e8f1;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: #13223d;
  transition: transform .2s
}

.guide-card:hover {
  transform: translateY(-5px)
}

.guide-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block
}

.guide-card div {
  padding: 15px
}

.guide-card small {
  color: #6550d7
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 16px
}

.article-body h2 {
  margin-top: 32px
}

.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px
}

.article-body p {
  color: #3b4860
}

.article-body a {
  color: #6550d7
}

.game-player {
  position: relative;
  aspect-ratio: 16/9;
  min-height: 280px;
  background: #07172e;
  overflow: hidden;
  border-radius: 15px 15px
}

.game-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

@media(max-width:850px) {
  .detail-shell {
    grid-template-columns: 1fr
  }

  .detail-sidebar {
    margin-top: 12px
  }

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

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

  .detail-head img {
    width: 65px;
    height: 65px
  }

  .detail-panel {
    padding: 16px
  }

  .launch-button {
    width: 76px;
    height: 76px
  }
}

/* Separate game pages: sidebar stays visible on desktop only */
@media(min-width:1025px) {
  .detail-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 30px);
    overflow-y: auto
  }

  .detail-shell {
    align-items: start
  }
}

@media(max-width:1024px) {
  .detail-sidebar {
    position: static;
    max-height: none;
    overflow: visible
  }
}

.detail-main .mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.mini-card {
  min-width: 0;
  overflow: hidden
}

.mini-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block
}

.mini-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 8px 0
}

.mini-card small {
  display: block;
  padding: 2px 8px 9px
}

.detail-head img {
  object-fit: cover
}

.game-player {
  overflow: hidden
}

.poster-launch {
  background-position: center;
  background-size: cover
}

@media(max-width:650px) {
  .detail-main .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

/* Global TheZGame typography and brand theme */
:root {
  --brand: #044B95;
  --brand-hover: #03366c;
  --text: #10263f;
  --muted: #63758a
}

html {
  scroll-behavior: smooth
}

body,
button,
input,
select,
textarea {
  font-family: 'Poppins', sans-serif !important
}

body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif !important;
  line-height: 1.35;
  letter-spacing: -.025em
}

h1 {
  font-size: clamp(24px, 2.5vw, 34px)
}

h2 {
  font-size: clamp(18px, 1.7vw, 24px)
}

h3 {
  font-size: 16px
}

a {
  color: var(--brand)
}

a:hover {
  color: var(--brand-hover)
}

button,
.btn,
[class*="button"],
.play-btn {
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease
}

button:hover,
.btn:hover,
[class*="button"]:hover {
  transform: translateY(-1px)
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 56px
}

.guide-card {
  display: block;
  min-width: 0;
  border: 1px solid #dce6f0;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(4, 75, 149, .04);
  transition: transform .22s ease, box-shadow .22s ease
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(4, 75, 149, .14);
  color: var(--text)
}

.guide-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover
}

.guide-card>div {
  padding: 14px 16px 18px
}

.guide-card small {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand)
}

.guide-card h2 {
  font-size: 16px;
  line-height: 1.45;
  margin: 9px 0 7px;
  font-weight: 650
}

.guide-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1900px;
  margin: auto;
  padding: 16px 24px;
  border-bottom: 1px solid #e3eaf2
}

.topbar nav {
  display: flex;
  gap: 16px;
  align-items: center
}

.topbar nav a {
  font-weight: 600;
  text-decoration: none
}

.footer {
  background: #f6f9fd;
  border-top: 1px solid #e0e9f3;
  margin-top: 60px;
  padding: 46px 24px 20px;
  color: var(--text);
  font-size: 13px
}

.footer-inner {
  max-width: 1900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px
}

.footer h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px
}

.footer p {
  color: var(--muted);
  margin: 0
}

.footer a {
  display: block;
  color: #435b75;
  text-decoration: none;
  margin: 0 0 8px
}

.footer a:hover {
  color: var(--brand)
}

.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  border-top: 1px solid #e0e9f3;
  padding-top: 15px;
  color: #70839a;
  font-size: 12px;
  justify-content: center;
}

.wrap {
  width: min(1900px, calc(100% - 40px));
  margin: 0px auto
}

.guide-card:focus-visible,
.topbar a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px
}

button,
[type=submit],
.btn,
.play-btn {
  accent-color: var(--brand)
}

@media(max-width:1100px) {
  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:750px) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .footer-inner>div:first-child {
    grid-column: 1/-1
  }

  .topbar {
    padding: 12px 16px
  }
}

@media(max-width:450px) {
  .guide-card h2 {
    font-size: 13px
  }

  .guide-card>div {
    padding: 11px
  }

  .guide-grid {
    gap: 10px
  }

  .footer-inner {
    grid-template-columns: 1fr
  }

  .footer-inner>div:first-child {
    grid-column: auto
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important
  }
}

/* Final layout refinements */
.player-toolbar {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.player-toolbar button {
  background: #044B95 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 10px 16px !important;
  font: 600 13px Poppins, sans-serif !important;
  cursor: pointer
}

.player-toolbar button:hover {
  background: #03366c !important
}

.footer-inner {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px !important;
  align-items: start
}

.footer-inner>div {
  min-width: 0
}

.footer a {
  display: block;
  overflow-wrap: anywhere
}

.footer {
  background: #f4f8fc
}

.game-player,
.poster-launch {
  overflow: hidden
}

.game-split {
  min-width: 0
}

.game-side {
  min-width: 0
}

@media(max-width:767px) {

  html,
  body {
    max-width: 100%;
    overflow-x: clip
  }

  .footer-inner {
    display: block !important
  }

  .footer-inner>div:not(.footer-about) {
    border-top: 1px solid #dbe5f1;
    padding: 0 !important
  }

  .footer-inner>div:not(.footer-about)>h3,
  .footer-inner>div:not(.footer-about)>h4 {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin: 0 !important
  }

  .footer-inner>div:not(.footer-about)>h3::after,
  .footer-inner>div:not(.footer-about)>h4::after {
    content: '+';
    font-size: 23px;
    color: #044B95
  }

  .footer-inner>div:not(.footer-about).footer-open>h3::after,
  .footer-inner>div:not(.footer-about).footer-open>h4::after {
    content: '−'
  }

  .footer-inner>div:not(.footer-about):not(.footer-open)>:not(h3):not(h4) {
    display: none !important
  }

  .footer-inner>div:not(.footer-about).footer-open>:not(h3):not(h4) {
    display: block !important
  }

  .player-toolbar {
    padding: 12px 0 !important
  }

  .game-split {
    display: block !important
  }

  .game-split>* {
    width: 100% !important;
    max-width: 100% !important
  }

  .footer-about {
    padding-bottom: 22px
  }
}

/* Unified 25-game layout: poster, title, actions, content */
.detail-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr) !important;
  gap: 22px !important;
  align-items: start !important
}

.detail-main,
.detail-sidebar {
  min-width: 0 !important;
  width: auto !important
}

.detail-main>.game-player {
  margin: 0 0 16px !important;
  width: 100% !important
}

.detail-main>.detail-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  min-height: 72px !important;
  border: 0 !important;
  background: transparent !important
}

.detail-main>.detail-head img {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  object-fit: cover !important;
  border-radius: 12px !important
}

.detail-main>.detail-head h1 {
  font-size: clamp(21px, 2.2vw, 31px) !important;
  line-height: 1.22 !important;
  margin: 3px 0 0 !important
}

.detail-main>.player-toolbar {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  min-height: 40px !important
}

.detail-sidebar {
  align-self: start !important
}

@media(max-width:900px) {
  .detail-shell {
    grid-template-columns: minmax(0, 1fr) !important
  }

  .detail-sidebar {
    position: static !important;
    max-height: none !important
  }

  .detail-main>.detail-head img {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important
  }
}

@media(max-width:480px) {
  .detail-main>.player-toolbar {
    gap: 8px !important
  }

  .detail-main>.player-toolbar button {
    padding: 9px 11px !important;
    font-size: 12px !important
  }

  .detail-main>.detail-head h1 {
    font-size: 21px !important
  }
}

/* Support page only — TheZGame */

      /* CONTACT PAGE - THEZGAME */

      .tz-contact {
        --purple: #6550e8;
        --navy: #101b3b;
        --body-text: #34466b;
        --border: #e0e5f5;

        font-family: Arial, Helvetica, sans-serif;
        background: #fafaff;
        color: var(--body-text);
        padding: 32px 20px 75px;
        font-size: 15px;
        line-height: 1.8;
      }

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

      .tz-container {
        max-width: 1120px;
        margin: 0 auto;
      }

      .tz-breadcrumb {
        font-size: 13px;
        margin-bottom: 20px;
        color: #64748b;
      }

      .tz-breadcrumb a {
        color: #6550e8;
        text-decoration: none;
      }

      /* HERO */

      .tz-hero {
        position: relative;
        overflow: hidden;
        background: linear-gradient(
          115deg,
          #5048ce 0%,
          #7059ed 55%,
          #9274f5 100%
        );
        border-radius: 27px;
        padding: 56px 40px;
        text-align: center;
        color: #fff;
        margin-bottom: 28px;
      }

      .tz-hero::after {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 50%;
        right: -100px;
        top: -100px;
        pointer-events: none;
      }

      .tz-hero h1 {
        font-size: 36px;
        font-weight: 800;
        line-height: 1.3;
        color: white;
        margin: 0 0 15px;
      }

      .tz-hero h1 span {
        color: #F49411;
      }

      .tz-hero p {
        max-width: 780px;
        margin: 0 auto;
        font-size: 16px;
        line-height: 1.9;
        color: #fff;
        font-weight: 400;
      }

      /* CARDS */

      .tz-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 23px;
        margin-bottom: 24px;
      }

      .tz-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 21px;
        padding: 30px;
        box-shadow: 0 12px 30px rgba(30, 40, 100, 0.035);
        transition:
          transform 0.25s,
          box-shadow 0.25s;
      }

      .tz-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 35px rgba(80, 72, 206, 0.09);
      }

      .tz-card-heading {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 18px;
      }

      .tz-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 14px;
        background: #f0ecff;
        color: #044891;
      }

      .tz-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .tz-card h2 {
        color: var(--navy);
        font-size: 21px;
        font-weight: 700;
        line-height: 1.35;
        margin: 0;
      }

      .tz-card p {
        font-size: 15px;
        font-weight: 400;
        line-height: 1.8;
        color: var(--body-text);
        margin: 0 0 12px;
        letter-spacing: 0;
      }

      .tz-card p:last-child {
        margin-bottom: 0;
      }

      .tz-card strong {
        font-weight: 700;
        color: #263657;
      }

      .tz-email {
        color: #044891;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        overflow-wrap: anywhere;
      }

      .tz-email:hover {
        text-decoration: underline;
      }

      /* SUPPORT BUTTON */

      .tz-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 18px;
        padding: 12px 23px;
        border-radius: 11px;
        background: #044891;
        color: white;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        transition: background 0.2s;
      }

      .tz-button:hover {
        background: #044891;
        color: white;
      }

      /* FINAL CTA */

      .tz-cta {
        text-align: center;
        background: #f0edff;
        border: 1px solid #e3dcff;
        border-radius: 22px;
        padding: 35px 22px;
        margin-top: 25px;
      }

      .tz-cta h2 {
        font-size: 24px;
        color: var(--navy);
        margin: 0 0 10px;
      }

      .tz-cta p {
        font-size: 15px;
        color: var(--body-text);
        margin: 0;
      }

      /* RESPONSIVE */

      @media (max-width: 768px) {
        .tz-contact {
          padding: 22px 15px 50px;
        }

        .tz-grid {
          grid-template-columns: 1fr;
          gap: 16px;
        }

        .tz-hero {
          padding: 42px 22px;
          border-radius: 20px;
        }

        .tz-hero h1 {
          font-size: 29px;
        }

        .tz-hero p {
          font-size: 15px;
        }

        .tz-card {
          padding: 23px;
        }

        .tz-card h2 {
          font-size: 20px;
        }
      }
    
