html.games-layout {
  height: 100%;
  overflow: hidden;
}

body.games-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 22px;
}

body.games-page #site-page {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 992px) {
  body.games-page {
    padding-top: 60px;
    padding-bottom: 16px;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  body.games-page > *:not(.orientation-warning) {
    display: none !important;
  }

  body.games-page .orientation-warning {
    display: flex !important;
  }
}

.games-page #particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.games-pick {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  padding: 22px 22px 0;
}

@media (max-width: 992px) {
  .games-pick {
    padding: 16px 14px 0;
  }
}

.games-pick__head {
  text-align: center;
  margin: 0 0 18px;
}

.games-pick__title {
  margin: 0;
  color: #fff8e7;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(124, 58, 237, 0.65), 0 0 32px rgba(245, 158, 11, 0.35);
}

.games-pick__cols {
  flex: 1 1 0%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.game-col[hidden] {
  display: none !important;
}

.game-col {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  height: auto;
  max-height: 100%;
  padding: 28px 24px 26px;
  border-radius: 28px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.game-col:hover,
.game-col:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.38);
  outline: none;
}

.game-col__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.game-col__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.game-col h2 {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding-bottom: 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 900;
}

.game-col h2::after {
  left: 0;
  right: 0;
  width: 100%;
}

.game-col p {
  margin: 0 0 8px;
  max-width: 28ch;
  color: rgba(255, 248, 231, 0.82);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 600;
}

.game-col__icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-size: 2rem;
  margin-bottom: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.game-col__icon--classic {
  background: linear-gradient(160deg, #c084fc, #7c3aed);
  color: #fff;
}

.game-col__fan {
  position: relative;
  width: 168px;
  height: 88px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0 0 4px;
  overflow: visible;
}

.game-col__fan-card {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 36px;
  height: 50px;
  margin-left: -18px;
  transform-origin: 50% 100%;
  transform: rotate(calc(var(--r) * 1deg));
  border-radius: 6px;
  overflow: hidden;
  background: #2d1a4a;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

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

.game-col__fan-card:nth-child(1) { z-index: 1; }
.game-col__fan-card:nth-child(2) { z-index: 2; }
.game-col__fan-card:nth-child(3) { z-index: 3; }
.game-col__fan-card:nth-child(4) { z-index: 4; }
.game-col__fan-card:nth-child(5) { z-index: 5; }
.game-col__fan-card:nth-child(6) { z-index: 6; }

.game-col__icon--mafia {
  background: linear-gradient(160deg, #2e1065, #111827);
  color: #e9d5ff;
}

.game-col__icon--hive {
  position: relative;
  background: transparent;
  box-shadow: none;
}

.game-col__hex,
.game-col__hex::after {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.game-col__hex {
  background: linear-gradient(160deg, #ffe9a8, #f0b429 45%, #b87a10);
}

.game-col__hex::after {
  content: '';
  inset: 9%;
  background: linear-gradient(165deg, #2d1658, #1a0d36);
}

.game-col__letter {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 2rem;
  color: #fff8e7;
}

.game-col--classic {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(192, 132, 252, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(124, 58, 237, 0.28), transparent 50%),
    linear-gradient(165deg, #3b1764 0%, #1a0a2e 55%, #12061f 100%);
}

.game-col--classic:hover,
.game-col--classic:focus-visible {
  border-color: rgba(245, 158, 11, 0.7);
}

.game-col--hive {
  background:
    radial-gradient(ellipse 70% 50% at 80% 15%, rgba(251, 191, 36, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 85%, rgba(180, 83, 9, 0.2), transparent 50%),
    linear-gradient(165deg, #3a2410 0%, #1a1024 50%, #12081c 100%);
}

.game-col--hive:hover,
.game-col--hive:focus-visible {
  border-color: rgba(251, 191, 36, 0.75);
}

.game-col--mafia {
  background:
    radial-gradient(ellipse 60% 45% at 85% 12%, rgba(196, 181, 253, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 40% at 10% 90%, rgba(76, 29, 149, 0.28), transparent 52%),
    linear-gradient(165deg, #1e1038 0%, #0b0614 58%, #07040f 100%);
}

.game-col--mafia:hover,
.game-col--mafia:focus-visible {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.game-col__new {
  position: absolute;
  top: 22px;
  left: -48px;
  z-index: 5;
  width: 186px;
  padding: 8px 0 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #1a0a2e;
  white-space: nowrap;
  pointer-events: none;
  background: linear-gradient(180deg, #ffe9a8 0%, #f0b429 46%, #d97706 100%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: rotate(-45deg);
}

.game-col__new::before,
.game-col__new::after {
  content: '';
  position: absolute;
  top: 100%;
  width: 0;
  height: 0;
  border-style: solid;
}

.game-col__new::before {
  left: 0;
  border-width: 8px 8px 0 0;
  border-color: #92400e transparent transparent transparent;
}

.game-col__new::after {
  right: 0;
  border-width: 8px 0 0 8px;
  border-color: #92400e transparent transparent transparent;
}

.game-col--soon {
  cursor: default;
  background:
    radial-gradient(ellipse 60% 45% at 80% 18%, rgba(167, 139, 250, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 40% at 12% 86%, rgba(88, 28, 135, 0.22), transparent 50%),
    linear-gradient(165deg, #24143f 0%, #12081f 58%, #0b0614 100%);
}

.game-col--soon:hover,
.game-col--soon:focus-visible {
  transform: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.12);
}

.game-col__icon--soon {
  background: linear-gradient(160deg, #4c1d95, #1f1135);
  color: #e9d5ff;
}

.g-soon-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: 8%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.22), transparent 68%);
}

.g-soon-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ddd6fe, #7c3aed 62%, #2e1065);
  opacity: 0.28;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.g-soon-orb--a { width: 86px; height: 86px; left: 10%; top: 18%; }
.g-soon-orb--b { width: 54px; height: 54px; right: 14%; top: 38%; opacity: 0.2; }
.g-soon-orb--c { width: 38px; height: 38px; left: 28%; top: 42%; opacity: 0.16; }

.g-soon-mark {
  position: absolute;
  font-size: 4.2rem;
  font-weight: 900;
  color: rgba(251, 191, 36, 0.16);
  line-height: 1;
}

.g-soon-mark--a { top: 16%; left: 46%; }
.g-soon-mark--b { top: 36%; right: 22%; font-size: 2.6rem; opacity: 0.7; }

.g-shape {
  position: absolute;
  display: block;
  pointer-events: none;
}

.g-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 72px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(45, 26, 74, 0.85), rgba(56, 31, 88, 0.75));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.g-card img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  height: 0;
  object-fit: cover;
}

.g-card em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 2px 4px;
  text-align: center;
  color: #fff8e7;
  background: rgba(26, 10, 46, 0.82);
}

.g-card--a { top: 12%; right: 10%; transform: rotate(-14deg); }
.g-card--a img { object-position: center 5%; }
.g-card--b { top: 28%; left: 8%; width: 58px; height: 78px; transform: rotate(16deg); opacity: 0.78; }
.g-card--b em { font-size: 0.36rem; letter-spacing: -0.02em; }
.g-card--c { top: 8%; left: 38%; width: 46px; height: 62px; transform: rotate(-8deg); opacity: 0.58; }
.g-card--c em { font-size: 0.4rem; padding: 2px 1px 3px; }
.g-card--d { left: 10%; bottom: 36%; width: 64px; height: 86px; transform: rotate(-11deg); opacity: 0.72; }
.g-card--e { right: 6%; top: 42%; width: 54px; height: 74px; transform: rotate(20deg); opacity: 0.62; }
.g-card--f { right: 18%; bottom: 38%; width: 50px; height: 68px; transform: rotate(-18deg); opacity: 0.5; }
.g-card--f em { font-size: 0.38rem; }

.g-qmark {
  top: 18%;
  left: 46%;
  font-size: 4.6rem;
  font-weight: 900;
  color: rgba(251, 191, 36, 0.18);
}

.g-hex {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: calc(92px * 1.1547);
  opacity: 0.38;
}

.g-hex::before,
.g-hex::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.g-hex::before {
  background: linear-gradient(160deg, #ffe9a8, #f0b429 45%, #b87a10);
}

.g-hex::after {
  inset: 8%;
  background: linear-gradient(165deg, #2d1658, #1a0d36);
}

.g-hex em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff8e7;
}

.g-hex--a { right: 8%; top: 10%; }
.g-hex--b { left: 8%; top: 22%; width: 70px; height: calc(70px * 1.1547); opacity: 0.26; }
.g-hex--c { right: 18%; top: 38%; width: 78px; height: calc(78px * 1.1547); opacity: 0.22; }
.g-hex--d { left: 22%; bottom: 36%; width: 64px; height: calc(64px * 1.1547); opacity: 0.2; }
.g-hex--e { right: 10%; bottom: 42%; width: 56px; height: calc(56px * 1.1547); opacity: 0.16; }

.g-moon {
  position: absolute;
  width: 110px;
  height: 110px;
  right: 10%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #f3e8ff, #c4b5fd 46%, #7c3aed 100%);
  box-shadow: inset -16px -8px 0 0 rgba(11, 6, 20, 0.55);
  opacity: 0.32;
}

.g-playcard {
  position: absolute;
  display: block;
  width: 58px;
  height: 82px;
  border-radius: 8px;
  background: linear-gradient(165deg, #fffdf8, #efe6d6);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(46, 16, 101, 0.18);
  overflow: hidden;
}

.g-playcard__corner {
  position: absolute;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  font-style: normal;
}

.g-playcard__corner--tl { top: 4px; left: 5px; }
.g-playcard__corner--br { right: 5px; bottom: 4px; transform: rotate(180deg); }

.g-playcard__pip,
.g-playcard__face,
.g-playcard__joker {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
}

.g-playcard--diamond {
  left: 8%;
  top: 16%;
  transform: rotate(-16deg);
  color: #c81e1e;
  opacity: 0.82;
}

.g-playcard--joker {
  left: 12%;
  top: 42%;
  transform: rotate(14deg);
  opacity: 0.78;
}

.g-playcard--joker .g-playcard__joker {
  top: 8px;
  bottom: 26px;
  font-size: 1.35rem;
  color: #7c3aed;
}

.g-playcard--joker em {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 8px;
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  color: #3b0764;
}

.g-playcard--king {
  right: 8%;
  top: 38%;
  transform: rotate(18deg);
  color: #1a1024;
  opacity: 0.8;
}

.g-playcard--queen {
  right: 18%;
  top: 12%;
  transform: rotate(-10deg);
  color: #be123c;
  opacity: 0.76;
}

.g-city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: rgba(196, 181, 253, 0.22);
  clip-path: polygon(
    0 100%, 0 58%, 8% 58%, 8% 36%, 16% 36%, 16% 68%,
    24% 68%, 24% 24%, 34% 16%, 34% 70%,
    46% 70%, 46% 40%, 58% 40%, 58% 22%, 70% 30%, 70% 64%,
    80% 64%, 80% 44%, 90% 44%, 90% 28%, 100% 28%, 100% 100%
  );
  opacity: 0.18;
}

.g-star {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fde68a;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.3;
}

.g-star--a { left: 46%; top: 14%; }
.g-star--b { right: 36%; top: 28%; width: 14px; height: 14px; opacity: 0.2; }

@media (max-width: 1100px) {
  .games-pick__cols {
    gap: 14px;
  }

  .game-col {
    min-height: 0;
    padding: 22px 18px 22px;
  }
}

@media (max-width: 860px) {
  html.games-layout {
    height: auto;
    overflow: auto;
  }

  body.games-page {
    height: auto;
    max-height: none;
    overflow: auto;
    padding-bottom: 18px;
  }

  .games-pick {
    flex: none;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 8px;
  }

  .games-pick__cols {
    flex: none;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .game-col {
    min-height: 340px;
    height: auto;
  }

  .g-hex--d,
  .g-hex--e,
  .g-card--c,
  .g-card--e,
  .g-card--f,
  .g-playcard--joker,
  .g-playcard--queen {
    display: none;
  }
}
