@import url("https://fonts.googleapis.com/css2?family=Raleway+Dots&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bungee&display=swap");

:root {
  --hg-bg-start: #151922;
  --hg-bg-end: #0d1018;
  --hg-surface: #1a2231;
  --hg-surface-2: #222d40;
  --hg-text: #f3f6ff;
  --hg-muted: #a8b1c7;
  --hg-accent: #7d93ff;
  --hg-chip: rgba(125, 147, 255, 0.18);
  --hg-good: #36d28a;
  --hg-mid: #f8b84b;
  --hg-bad: #ff6c6c;
  --hg-shadow: 0 14px 30px rgba(6, 10, 22, 0.4);
  --hg-radius: 14px;
  --hg-subtitle-bg-image: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--hg-text);
  background: linear-gradient(180deg, var(--hg-bg-start) 0%, var(--hg-bg-end) 100%);
  min-height: 100vh;
  scrollbar-color: rgba(255, 122, 198, 0.8) rgba(20, 26, 38, 0.85);
  scrollbar-width: thin;
  background-color: #0d1018;
  background-image: url(images/bg-shapes.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/* Custom scrollbar (Chromium/Safari/Edge) */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(20, 26, 38, 0.88);
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff7ac6 0%, #8f68ff 100%);
  border-radius: 999px;
  border: 2px solid rgba(20, 26, 38, 0.88);
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff9fd7 0%, #a485ff 100%);
}

.hg-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.hg-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 60px 28px 42px 50px;
  background-image: linear-gradient(135deg, var(--hero-a), var(--hero-b)), var(--hero-bg-image);
  background-position: center, right center;
  background-size: cover, auto 100%;
  background-repeat: no-repeat, no-repeat;
  box-shadow: var(--hg-shadow);
}

.hg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image);
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.hg-hero-content {
  position: relative;
  z-index: 1;
}

.hg-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin-top: 25px;
  color: #e5e5e5;
}
.hg-title-custom{
  font-size: 52px;
  color: #fff;
}

.hg-subtitle {
  position: absolute;
  right: -70px;
  top: -48px;
  opacity: 0.75;
  width: 500px;
  height: 320px;
  font-size: 49px;
  transform: rotate(-20deg);
  pointer-events: none;
  font-family: "Raleway Dots", cursive;
  font-weight:700;
  background-image: var(--hg-subtitle-bg-image);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: none;
}

.hg-filters-wrap {
  position: sticky;
  top: 56px;
  z-index: 20;
  margin-top: 35px;
}

.hg-filters-title {
  display: none;
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ecf2ff;
}

.hg-filters-wrap.open .hg-filters-title {
  display: block;
}

.hg-share-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease, margin-top 220ms ease;
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 40, 0.9);
  padding: 0 14px;
}

.hg-share-panel.open {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
  padding: 14px;
  margin-top: -10px;
  padding-top: 25px;
  border-radius: 0px 0px 20px 20px;
}

.hg-share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0px;
}

.hg-share-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
}

.hg-share-title small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--hg-muted);
  display: inline-block;
  margin-left: 10px;
  opacity: 0.6;
}

.hg-share-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hg-share-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hg-share-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 calc(50% - 5px);
}

.hg-share-label {
  font-size: 0.75rem;
  color: var(--hg-muted);
  font-weight: bold;
}

.hg-share-input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.hg-share-url-input {
  cursor: copy;
}

.hg-share-clear-hidden {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.hg-share-close {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.hg-share-hidden-count {
  color: var(--hg-muted);
  font-size: 0.8rem;
  display:none;
}

.hg-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 25px;
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(15, 20, 32, 0);
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease, background 220ms ease, border-color 220ms ease;
}

.hg-filters.open {
  max-height: 980px;
  overflow: visible;
  opacity: 1;
  padding: 12px;
  background: rgba(15, 20, 32, 0.9);
  border-color: rgba(255, 255, 255, 0.09);
}

.hg-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hg-control-genre {
  position: relative;
  overflow: visible;
}

.hg-label-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--hg-muted);
}

.hg-filters input,
.hg-filters select,
.hg-filters button {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--hg-surface);
  color: var(--hg-text);
  padding: 9px 10px;
  font-size: 0.88rem;
}

.hg-filters input[type="range"] {
  padding: 0;
  height: 100%;
  accent-color: #7d3a8f;
}

.hg-filters input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hg-filters input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: #7d3a8f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.hg-filters input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hg-filters input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: #7d3a8f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.hg-filters input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.95;
}

.hg-genre-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(16, 23, 36, 0.98);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
  z-index: 60;
  padding: 6px;
}

.hg-genre-option {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eef2ff;
  text-align: left;
  padding: 8px 10px;
  font-size: 0.86rem;
  cursor: pointer;
}

.hg-genre-option:hover,
.hg-genre-option:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.hg-genre-empty {
  padding: 8px 10px;
  color: var(--hg-muted);
  font-size: 0.82rem;
}

.hg-genre-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.95);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 20px;
}

.hg-genre-modal[hidden] {
  display: none;
}

.hg-genre-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hg-genre-modal-title {
  margin: 0;
  font-size: 1rem;
  color: #f1f6ff;
}

.hg-genre-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.hg-genre-modal-search {
  width: 100%;
  margin-bottom: 10px;
}

.hg-genre-modal-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(16, 23, 36, 0.95);
  padding: 8px;
}

.hg-row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.hg-btn {
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.hg-btn:hover {
  transform: translateY(-1px);
}

.hg-btn-primary {
  border-color: transparent;
  background: var(--hg-accent);
  color: #fff;
  font-weight: bold;
  height: 97%;
}

.hg-btn-small {
  padding: 7px 10px;
  font-size: 0.8rem;
  opacity: 0.92;
}

.hg-btn-ghost {
  background: transparent;
}

.hg-hero-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hg-mobile-toggle,
.hg-mobile-share-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(16, 23, 36, 0.92);
  color: #eef2ff;
  font-weight: 700;
  font-size: 0.95rem;
}

.hg-mobile-share-toggle {
  min-width: 44px;
  padding: 12px 12px;
}

.hg-mobile-toggle-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

.hg-mobile-share-icon {
  width: 18px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}
.hg-hero-actions .hg-btn span{
  font-size: 18px;
}
.hg-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.hg-list-card {
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}


.hg-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hg-item-type {
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--hg-chip);
  color: #eef2ff;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hg-item-rank {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f1c85b;
  color: #1c1e20;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-right: 10px;
}

.hg-item-head h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.hg-game-title-link,
.hg-game-title-link:visited,
.hg-game-title-link:hover,
.hg-game-title-link:active {
  color: inherit;
  text-decoration: none;
}

.hg-title-big{
  color: #FFFFFF;
  font-weight: 900;
  font-size: 110px;
  display: block;
  margin-top: 0px;
  opacity: 1;
  font-family: "Bungee", sans-serif;
  line-height: 85%;
}
.hg-title small{
  opacity: 0.8;
  font-weight: 300;
  font-size: 22px;
  display: block;
  margin-top: 0px;
}

.hg-card-box {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  background: linear-gradient(180deg, #1d2535 0%, #171f2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(4, 8, 18,);
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hg-card-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(4, 8, 18, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hg-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.hg-shot img,
.hg-shot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hg-shot video {
  z-index: 2;
}

.hg-shot img:last-child {
  z-index: 1;
  opacity: 0;
  transition: opacity 250ms ease;
}

.hg-list-card:hover .hg-shot img:last-child {
  opacity: 1;
}

.hg-card-body {
  padding: 30px;
}

.hg-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--hg-muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.hg-meta-top,
.hg-meta-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hg-meta-top span{    background-color: #a8b1c7;
  border-radius: 5px;
  color: #252525;
  padding: 2px 5px;
}

.hg-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 28px;
  font-weight: 600;
  color: #091012;
  padding: 1px 15px;
  margin-right: 5px;
}

.hg-badge.good {
  background: var(--hg-good);
}

.hg-badge.mid {
  background: var(--hg-mid);
}

.hg-badge.bad {
  background: var(--hg-bad);
}

.hg-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hg-chip {
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--hg-chip);
  color: #eef2ff;
}

.hg-desc {
  margin: 0 0 10px;
  color: #d7deef;
  font-size: 18px;
  line-height: 1.45;
  min-height: 3.6em;
  margin-top: 20px;
  margin-bottom: 20px;
}

.hg-steam-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 2px solid var(--hg-accent);
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 20px;
  font-weight: 600;
  transition: background 380ms ease, color 380ms ease;
}
.hg-steam-link:hover{
  background: var(--hg-accent);
  transition: background 380ms ease, color 380ms ease;
}

.hg-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.hg-price {
  margin-left: auto;
  color: #e9eefb;
  font-size: 0.92rem;
  font-weight: 700;
}

.hg-curation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: none;
}

.hg-order-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hg-muted);
  font-size: 0.76rem;
}

.hg-order-input {
  width: 58px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 4px 6px;
  font-size: 0.8rem;
}

.hg-hide-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  color: #ffb4b4;
  padding: 6px 9px;
  font-size: 0.76rem;
  cursor: pointer;
}

.hg-card {
  border-radius: var(--hg-radius);
  background: linear-gradient(180deg, #1d2535 0%, #171f2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(4, 8, 18, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(4, 8, 18, 0.48);
}

.hg-status {
  margin-top: 14px;
  color: var(--hg-muted);
  font-size: 0.88rem;
}

[data-hg-status] {
  margin-top: 20px;
  margin-bottom: 28px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 600;
  color: #e7edff;
}

[data-hg-status]:empty {
  display: none;
  margin: 0;
  min-height: 0;
}

[data-hg-status]:not(:empty)::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: hg-spin 700ms linear infinite;
}

.hg-pagination {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hg-page-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8edfa;
  padding: 8px 12px;
  font-size: 0.84rem;
  line-height: 1;
  cursor: pointer;
}

.hg-page-btn.active {
  border-color: var(--hg-accent);
  background: var(--hg-accent);
  color: #fff;
  font-weight: 700;
}

.hg-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.hg-empty {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.hg-skeleton {
  pointer-events: none;
}

.hg-skeleton .hg-shot,
.hg-skeleton .hg-item-head h3,
.hg-skeleton .hg-meta-line,
.hg-skeleton .hg-desc,
.hg-skeleton .hg-steam-link {
  position: relative;
  background: rgba(255, 255, 255, 0.09);
  color: transparent;
  border-radius: 6px;
  overflow: hidden;
}

.hg-skeleton .hg-steam-link {
  width: 88px;
  height: 30px;
}

.hg-skeleton .hg-meta-line,
.hg-skeleton .hg-desc {
  height: 14px;
}

.hg-skeleton .hg-desc {
  height: 48px;
}

.hg-skeleton .hg-shot::after,
.hg-skeleton .hg-item-head h3::after,
.hg-skeleton .hg-meta-line::after,
.hg-skeleton .hg-desc::after,
.hg-skeleton .hg-steam-link::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: hg-shimmer 1.2s infinite;
}



@keyframes hg-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes hg-spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .hg-filters-wrap {
    position: static;
    top: auto;
  }

  .hg-hero {
    padding: 60px 28px 42px 35px;
  }

  .hg-subtitle {
    display: none;
  }

  .hg-share-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hg-share-header-actions {
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .hg-share-row {
    flex-direction: column;
  }

  .hg-share-input-wrap {
    flex: 1 1 100%;
    width: 100%;
  }

  .hg-mobile-toggle {
    width: auto;
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    padding: 8px 12px;
    font-weight: 600;
  }

  .hg-hero-actions {
    position: static;
    margin-top: 20px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .hg-mobile-toggle-icon,
  .hg-mobile-share-icon {
    width: 12px;
    height: 12px;
  }

  .hg-mobile-share-toggle {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .hg-filters {
    grid-template-columns: 1fr 1fr;
  }

  .hg-filters.open {
    max-height: 1200px;
  }

  .hg-genre-dropdown {
    display: none;
  }

  .hg-row-actions {
    grid-column: span 2;
  }

  .hg-item-head h3 {
    font-size: 22px;
  }

  .hg-title-big {
    font-size: 58px;
  }

  .hg-meta-line {
    display: block;
  }

  .hg-meta-bottom {
    display: flex;
    width: 100%;
    margin-top: 10px;
    margin-bottom: -10px;
  }

  .hg-order-label {
    display: none;
  }
}

@media (max-width: 640px) {
  .hg-card-box {
    grid-template-columns: 1fr;
  }
  .hg-desc{
    font-size:16px;
  }

  #nav-hamburger{
    display:none;
  }
  .hg-title-big {
    font-size: 38px;
  }

}



#nav-links a[status="inactive"] {
  opacity: 0.5 !important;
  cursor: not-allowed;
}
#nav-links a[status="inactive"]:hover {
  opacity: 0.5 !important;
  cursor: not-allowed;
}
#nav-links a[status="inactive"]:focus {
  opacity: 0.5 !important;
  cursor: not-allowed;
}