@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --pg-bg-1: #05030f;
  --pg-bg-2: #0e0821;
  --pg-panel: #141032;
  --pg-cyan: #00f5ff;
  --pg-magenta: #ff38d1;
  --pg-violet: #8f67ff;
  --pg-text: #eef2ff;
  --pg-muted: #a6b1d5;
  --pg-border: rgba(0, 245, 255, 0.35);
  --pg-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  --pg-glow: 0 0 16px rgba(0, 245, 255, 0.45), 0 0 28px rgba(255, 56, 209, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--pg-text);
  font-family: 'Rajdhani', system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 245, 255, 0.16), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(255, 56, 209, 0.18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(143, 103, 255, 0.22), transparent 44%),
    linear-gradient(165deg, var(--pg-bg-1) 0%, var(--pg-bg-2) 52%, #03020b 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 56, 209, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
}

.pg-container {
  width: min(1180px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pg-nav {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--pg-border);
  background: linear-gradient(96deg, rgba(9, 6, 24, 0.94), rgba(22, 14, 52, 0.9));
  box-shadow: var(--pg-shadow), 0 0 22px rgba(0, 245, 255, 0.2);
  backdrop-filter: blur(9px);
}

.pg-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pg-brand img {
  height: 50px;
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.75));
  transition: opacity 0.2s ease;
}

.pg-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  transition: opacity 0.2s ease;
}

.pg-brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--pg-cyan);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.75);
}

.pg-brand-sub {
  color: var(--pg-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.pg-nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pg-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  color: var(--pg-text);
  padding: 0.42rem 0.68rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pg-nav-links a:hover {
  transform: translateY(-1px);
  color: #090611;
  border-color: rgba(0, 245, 255, 0.75);
  background: linear-gradient(130deg, rgba(0, 245, 255, 0.9), rgba(255, 56, 209, 0.88));
  box-shadow: var(--pg-glow);
}

.pg-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 245, 255, 0.6);
  border-radius: 11px;
  appearance: none;
  background: rgba(11, 8, 29, 0.92);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.24);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 95;
}

.pg-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--pg-cyan);
  border-radius: 99px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.pg-mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pg-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.pg-mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.pg-mobile-menu {
  position: fixed;
  top: 78px;
  right: 14px;
  left: 14px;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--pg-border);
  background: linear-gradient(145deg, rgba(19, 13, 45, 0.97), rgba(10, 7, 27, 0.97));
  box-shadow: var(--pg-glow), var(--pg-shadow);
  z-index: 90;
}

.pg-mobile-menu a {
  text-decoration: none;
  color: var(--pg-text);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.64rem 0.72rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pg-mobile-menu a:hover {
  color: #090611;
  border-color: rgba(0, 245, 255, 0.8);
  background: linear-gradient(125deg, rgba(0, 245, 255, 0.9), rgba(255, 56, 209, 0.88));
}

.pg-mobile-menu.active,
.pg-mobile-menu.is-open {
  display: flex;
}

.wrap {
  width: min(1180px, 94vw);
  margin: 34px auto;
  animation: pgFadeUp 0.45s ease;
}

.hero,
.card {
  background: linear-gradient(150deg, rgba(16, 12, 36, 0.95), rgba(9, 7, 22, 0.94));
  border: 1px solid var(--pg-border);
  border-radius: 16px;
  box-shadow: var(--pg-shadow), 0 0 22px rgba(0, 245, 255, 0.16);
}

.hero {
  padding: 24px;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 10px;
  font-family: 'Orbitron', sans-serif;
  color: #f2fbff;
  font-size: clamp(1.3rem, 1.1rem + 1.35vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
}

.sub {
  margin: 0;
  color: #d5e0ff;
  line-height: 1.5;
  font-size: 1.07rem;
}

.statusbar,
.controls {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill,
.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  padding: 7px 12px;
  background: rgba(20, 17, 46, 0.72);
  font-size: 0.95rem;
  color: #d3ddff;
}

.filter-group {
  border-radius: 12px;
}

.filter-group label {
  color: #d9e5ff;
}

.filter-group input[type="checkbox"] {
  accent-color: var(--pg-cyan);
}

.platform-filters {
  gap: 10px;
  border-radius: 14px;
  padding: 8px;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 9, 22, 0.92);
  color: #dce8ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.filter-chip input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 245, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.2);
}

.filter-chip input[type="checkbox"]:focus-visible + span {
  outline: 2px solid rgba(0, 245, 255, 0.95);
  outline-offset: 3px;
  border-radius: 999px;
}

.filter-chip input[type="checkbox"]:checked + span {
  color: #090611;
}

.filter-chip input[type="checkbox"]:checked ~ span,
.filter-chip input[type="checkbox"]:checked + span {
  font-weight: 700;
}

.filter-chip:has(input[type="checkbox"]:checked) {
  border-color: rgba(0, 245, 255, 0.8);
  background: linear-gradient(130deg, rgba(0, 245, 255, 0.92), rgba(255, 56, 209, 0.86));
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.3), 0 0 22px rgba(255, 56, 209, 0.24);
}

.filter-chip.is-checked {
  border-color: rgba(0, 245, 255, 0.8);
  background: linear-gradient(130deg, rgba(0, 245, 255, 0.92), rgba(255, 56, 209, 0.86));
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.3), 0 0 22px rgba(255, 56, 209, 0.24);
}

.filter-chip-steam {
  border-color: rgba(67, 156, 255, 0.42);
}

.filter-chip-epic {
  border-color: rgba(194, 202, 218, 0.42);
}

.filter-chip-ubisoft {
  border-color: rgba(0, 245, 255, 0.42);
}

.filter-chip-ea {
  border-color: rgba(255, 56, 209, 0.42);
}

.filter-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: rgba(7, 8, 19, 0.95);
  color: #eaf2ff;
  border-radius: 8px;
  padding: 5px 34px 5px 8px;
  font-family: inherit;
  background-image:
    linear-gradient(135deg, rgba(0, 245, 255, 0.16), rgba(255, 56, 209, 0.16)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.2 4.6L7 9.2l4.8-4.6' fill='none' stroke='%2300f5ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right 0.55rem center, right 0.6rem center;
  background-size: 1.7rem 1.7rem, 0.85rem;
}

.filter-group select:hover {
  border-color: rgba(255, 56, 209, 0.58);
  box-shadow: 0 0 14px rgba(255, 56, 209, 0.18);
}

.filter-group select option {
  background: #0b0f25;
  color: #eaf2ff;
}

.filter-group select option:checked {
  background: #1c2a5a;
  color: #ffffff;
}

.sort-radar {
  border-color: rgba(255, 56, 209, 0.38);
  background: linear-gradient(120deg, rgba(25, 15, 58, 0.82), rgba(11, 10, 30, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 18px rgba(255, 56, 209, 0.12);
}

.sort-radar label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd9f5;
}

.sort-radar select {
  min-width: 280px;
  border-color: rgba(255, 56, 209, 0.45);
  background: linear-gradient(155deg, rgba(14, 8, 35, 0.96), rgba(8, 7, 22, 0.96));
  color: #f3f6ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.sort-radar select:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.16), 0 0 16px rgba(255, 56, 209, 0.2);
}

.btn {
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
  background: linear-gradient(115deg, rgba(0, 245, 255, 0.2), rgba(255, 56, 209, 0.22));
  color: #f6fbff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.22);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 0 20px rgba(255, 56, 209, 0.22);
}

.card {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

thead th {
  text-align: left;
  background: linear-gradient(98deg, rgba(0, 245, 255, 0.12), rgba(255, 56, 209, 0.12));
  color: #f1f7ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  position: sticky;
  top: 0;
  text-transform: uppercase;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.16);
  vertical-align: middle;
  color: #e3ebff;
  font-size: 1.01rem;
}

.cover-cell {
  width: 100px;
}

.deal-cover {
  width: 74px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 245, 255, 0.28);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.16);
  background: rgba(12, 10, 28, 0.9);
}

tbody tr:nth-child(odd) {
  background: rgba(14, 13, 34, 0.6);
}

tbody tr:nth-child(even) {
  background: rgba(9, 10, 23, 0.45);
}

.platform {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid transparent;
}

.platform-steam {
  background: rgba(67, 156, 255, 0.2);
  color: #c8e6ff;
  border-color: rgba(67, 156, 255, 0.45);
}

.platform-epic {
  background: rgba(194, 202, 218, 0.16);
  color: #edf3ff;
  border-color: rgba(194, 202, 218, 0.45);
}

.platform-ubisoft {
  background: rgba(0, 245, 255, 0.16);
  color: #cfffff;
  border-color: rgba(0, 245, 255, 0.45);
}

.platform-ea {
  background: rgba(255, 56, 209, 0.15);
  color: #ffd7f6;
  border-color: rgba(255, 56, 209, 0.45);
}

.countdown-soon {
  color: #ff92d9;
  font-weight: 700;
}

.countdown-ok {
  color: #90f9ff;
  font-weight: 700;
}

a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.16), rgba(255, 56, 209, 0.18));
  color: #f2fbff;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 12px rgba(0, 245, 255, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

a.cta:hover,
a.cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 56, 209, 0.6);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.32), rgba(255, 56, 209, 0.28));
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.25), 0 0 22px rgba(255, 56, 209, 0.2);
  color: #ffffff;
  outline: none;
}

.empty,
.error-box {
  padding: 16px;
  color: #c8d6ff;
}

.error-box {
  border-top: 1px dashed rgba(255, 56, 209, 0.5);
  color: #ffc5e8;
  background: rgba(44, 12, 36, 0.58);
}

@keyframes pgFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .pg-nav-links {
    display: none;
  .pg-mobile-menu.active { display: flex; }
  }

  .pg-mobile-toggle {
    display: inline-flex;
  }

  .pg-brand-sub {
    display: none;
  }

  .wrap {
    margin: 20px auto;
  }

  .hero,
  .card {
    border-radius: 14px;
  }

  .btn {
    width: 100%;
  }

  .statusbar,
  .controls {
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .sort-radar select {
    width: 100%;
    min-width: 0;
  }
}
