.games-page { min-height: 100vh; }

.games-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 145px 0 95px;
  overflow: hidden;
}

.games-orb {
  position: absolute;
  top: 80px;
  left: 18%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255,22,70,.075);
  filter: blur(24px);
  pointer-events: none;
}

.games-hero > .shell { position: relative; z-index: 1; }

.games-heading {
  max-width: 700px;
  margin-bottom: 38px;
}

.games-heading h1 {
  margin: 12px 0 14px;
  font-size: clamp(52px, 6.2vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
}

.games-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.game-controls {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.game-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15,15,18,.86);
  transition: border-color .18s ease, background .18s ease;
}

.game-search:focus-within {
  border-color: rgba(255,49,91,.52);
  background: rgba(17,17,21,.96);
}

.game-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #76767f;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.game-search input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font: inherit;
  font-size: 12px;
}
.game-search input::placeholder { color: #66666f; }

.game-filters {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15,15,18,.86);
}

.access-summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border-radius: 9px;
  color: white;
  background: rgba(255,255,255,.075);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: #777780;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.filter-button:hover { color: white; }
.filter-button.active { color: white; background: rgba(255,255,255,.075); }

.game-count {
  color: #777780;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

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

.game-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.28 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: white;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255,49,91,.65);
  box-shadow: 0 28px 78px rgba(0,0,0,.4), 0 0 35px rgba(255,22,70,.085);
}

.game-card[hidden] { display: none; }
.game-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.game-card:hover > img { transform: scale(1.045); filter: saturate(1.07); }

.game-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,7,.2) 8%, rgba(5,5,7,.08) 38%, rgba(5,5,7,.94) 100%);
}

.card-topline {
  position: absolute;
  inset: 14px 14px auto;
  display: flex;
  justify-content: space-between;
  gap: 9px;
}

.card-topline i,
.card-topline em {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #dedee3;
  background: rgba(10,10,13,.72);
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.card-topline i { display: inline-flex; align-items: center; gap: 6px; }
.card-topline i b { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(80,227,148,.1); }

.card-copy {
  position: absolute;
  inset: auto 20px 19px;
  display: grid;
}

.card-copy small {
  margin-bottom: 7px;
  color: #aaaab2;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-copy > strong { font-size: 22px; letter-spacing: -.035em; }
.card-copy > span { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #aaaab2; font-size: 9px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.card-copy > span b { color: var(--red-high); }
.game-card:hover .card-copy > span,
.game-card:focus-visible .card-copy > span { opacity: 1; transform: none; }

.games-empty {
  padding: 70px 20px;
  border: 1px dashed var(--line-high);
  border-radius: 18px;
  text-align: center;
}
.games-empty strong { font-size: 18px; }
.games-empty p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 22px;
}
.game-modal[hidden] { display: none; }
.game-modal-backdrop { position: absolute; inset: 0; background: rgba(3,3,5,.8); backdrop-filter: blur(15px); }

.game-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  width: min(820px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-high);
  border-radius: 22px;
  background: #101014;
  box-shadow: 0 35px 120px rgba(0,0,0,.7), 0 0 65px rgba(255,22,70,.055);
  animation: gameDialogIn .2s ease both;
}

.game-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  color: white;
  background: rgba(8,8,10,.92);
  box-shadow: 0 8px 25px rgba(0,0,0,.34);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.game-modal-close::before,
.game-modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}
.game-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.game-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.game-modal-close:hover,
.game-modal-close:focus-visible {
  border-color: rgba(255,49,91,.62);
  background: rgba(255,22,70,.13);
  transform: translateY(-1px);
}
.game-modal-close:focus-visible { outline: 2px solid rgba(255,49,91,.45); outline-offset: 2px; }

.detail-image { min-height: 420px; overflow: hidden; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { padding: 42px 38px 36px; }

.detail-status { display: flex; align-items: center; justify-content: flex-start; padding-right: 50px; }
.detail-status span { font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.detail-status span { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.detail-status span i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(80,227,148,.08); }

.detail-content h2 { margin: 17px 0 10px; font-size: 34px; letter-spacing: -.05em; }
.detail-content > p { min-height: 48px; margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.detail-label { color: var(--red-high); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.detail-content ul { display: grid; gap: 12px; margin: 17px 0 29px; padding: 0; list-style: none; }
.detail-content li { display: flex; gap: 9px; color: #d4d4da; font-size: 11px; }
.detail-content li::before { color: var(--red-high); content: "✓"; }
.detail-actions { display: grid; grid-template-columns: 1fr; }
.detail-actions .button { width: 100%; }

@keyframes gameDialogIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 940px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game-controls { grid-template-columns: 1fr auto; }
  .game-search { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .games-hero { padding: 118px 0 72px; }
  .games-heading h1 { font-size: 48px; }
  .game-controls { grid-template-columns: 1fr; }
  .game-search { grid-column: auto; }
  .game-filters { overflow-x: auto; }
  .game-count { display: none; }
  .games-grid { grid-template-columns: 1fr; }
  .game-card { aspect-ratio: 1.38 / 1; }
  .game-dialog { grid-template-columns: 1fr; max-height: calc(100vh - 30px); overflow-y: auto; }
  .detail-image { min-height: 220px; max-height: 260px; }
  .detail-content { padding: 30px 23px 24px; }
  .detail-status { padding-right: 0; }
}

@media (max-width: 420px) {
  .filter-button { padding: 0 10px; font-size: 9px; }
  .card-copy > strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-card, .game-card > img, .card-copy > span { transition: none; }
  .game-dialog { animation: none; }
}
