/* CheatHub visual refinements outside the restored catalog and advantages. */
:root {
  --ch-ink: #08070b;
  --ch-surface: #0d0b10;
  --ch-surface-raised: #121016;
  --ch-line: #302a35;
  --ch-muted: #a59eaa;
  --ch-purple: #b34be6;
  --ch-purple-soft: #d49aef;
}

html,
body { background: var(--ch-ink); }
body { color: #f4f0f7; }

/* Keep the familiar capsule header, with a quieter surface and a clean outline. */
.site-header { background: transparent; }
.site-header .header-inner {
  background: #09080c;
  border-color: #29242e;
  box-shadow: 0 8px 24px #0005;
  backdrop-filter: blur(14px);
}
.desktop-nav a.is-active::after { box-shadow: none; }

/* Replace broad purple fog with a simple dark canvas and clear section breaks. */
.hero {
  background: var(--ch-ink) !important;
  background-image: none !important;
}
.hero::before { opacity: .035 !important; }
.hero-art,
.reference-product-main-image { border-radius: 9px; }
.hero-art { box-shadow: none; }
.reference-home-gameplay,
.reference-home-testimonials {
  background: var(--ch-ink);
  border-top: 1px solid #211d25;
}
.reference-home-gameplay { overflow: visible; }
.reference-home-gameplay .reference-home-section-heading h2 { letter-spacing: -.045em; }

/* A restrained, useful video queue without fake thumbnails or play affordances. */
.reference-home-video-grid { gap: 11px; }
.reference-home-video-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px 18px;
  border: 1px solid var(--ch-line);
  border-radius: 8px;
  background: var(--ch-surface);
  box-shadow: none;
}
.reference-home-video-card::before,
.reference-home-video-card::after { display: none; }
.reference-home-video-card strong { color: #eee9f2; font-size: 1rem; letter-spacing: -.02em; }
.reference-home-video-card span {
  color: #938b99;
  font-size: .75rem;
}

/* Keep commerce controls legible and consistent with the reference hierarchy. */
.reference-plan-option {
  border-radius: 8px;
  background: var(--ch-surface);
  box-shadow: none;
}
.reference-plan-option.is-selected {
  border-color: var(--ch-purple);
  background: #1a1020;
  box-shadow: inset 2px 0 var(--ch-purple);
}
.reference-purchase-panel,
.reference-product-main-image {
  box-shadow: none;
}
.reference-product-main-image { border: 1px solid var(--ch-line); }
.reference-product-gallery .christmas-deadlock-frame { box-shadow: none; }
.reference-purchase-panel > .reference-purchase-notice { border-radius: 7px; }

/* Festive styling stays in the interface trim; no floating ornaments over content. */
html.christmas-season .christmas-atmosphere { display: none !important; }
html.christmas-season .reference-home-video-card {
  box-shadow: none;
}

@media (max-width: 640px) {
  .reference-home-video-grid { grid-template-columns: 1fr; overflow: visible; }
  .reference-home-video-card { min-height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .reference-home-video-card { transition: none; }
}

/* Game catalog carousel */
.cheathub-game-carousel { position: relative; min-width: 0; }
.cheathub-game-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 10px;
}
.cheathub-carousel-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #45334f;
  border-radius: 50%;
  background: #100d13;
  color: #eadcf1;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, opacity .18s ease;
}
.cheathub-carousel-button:hover:not(:disabled) { border-color: #a747e4; background: #1b1220; }
.cheathub-carousel-button:disabled { cursor: default; opacity: .35; }
.cheathub-carousel-button:active:not(:disabled) { transform: scale(.94); }
.cheathub-carousel-button[data-carousel-previous] svg { transform: rotate(180deg); }
.cheathub-game-track {
  --slide-width: 40%;
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 28px calc((100% - var(--slide-width)) / 2) 30px;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: calc((100% - var(--slide-width)) / 2);
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
}
.cheathub-game-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.cheathub-game-track.is-dragging * { user-select: none; }
.cheathub-game-track.is-dragging .reference-game-card { cursor: grabbing; }
.cheathub-game-track::-webkit-scrollbar { display: none; }
.cheathub-game-track > .reference-game-card {
  flex: 0 0 var(--slide-width);
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 16px;
  gap: 0;
  scroll-snap-align: center;
}
.cheathub-game-track .reference-game-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background: #07060a;
}
.cheathub-game-track .reference-game-image > img { object-fit: contain; }
.cheathub-game-track .reference-game-card.is-coming {
  min-height: 0;
  display: flex;
  aspect-ratio: .66;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(150deg, #15101a, #0b0a0e 68%);
}
.cheathub-game-track > .reference-game-card {
  z-index: 1;
  opacity: .78;
  transform: scale(.96);
  transition: transform .24s ease, opacity .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.cheathub-game-track > .reference-game-card.is-centered {
  z-index: 2;
  opacity: 1;
  transform: scale(1.04);
  border-color: #a747e4;
  box-shadow: 0 16px 38px #0008, 0 0 0 1px #a747e433;
}
.cheathub-carousel-button { transition: transform .15s ease, border-color .18s ease, background-color .18s ease, opacity .18s ease; }
.cheathub-game-track .reference-coming-status {
  color: #b486ca;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .12em;
}
.cheathub-game-track .reference-coming-title {
  color: #f1ebf5;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.cheathub-game-track > .reference-game-card:focus-visible,
.cheathub-carousel-button:focus-visible { outline: 2px solid #c974ec; outline-offset: 3px; }

@media (max-width: 900px) {
  .cheathub-game-track { --slide-width: 55%; gap: 14px; }
  .cheathub-game-track .reference-game-card.is-coming { aspect-ratio: .66; }
}
@media (max-width: 640px) {
  .cheathub-game-carousel-controls { margin: 0 0 7px; }
  .cheathub-carousel-button { width: 35px; height: 35px; }
  .cheathub-game-track { --slide-width: 88%; gap: 11px; padding-block: 24px 28px; }
  .cheathub-game-track > .reference-game-card { grid-template-columns: none; align-items: stretch; }
  .cheathub-game-track .reference-game-card.is-coming { padding: 17px; aspect-ratio: .64; }
  .cheathub-game-track .reference-game-meta { min-height: 67px; padding: 10px; }
  .cheathub-game-track .reference-game-title strong { font-size: .82rem; }
  .cheathub-game-track .reference-game-arrow { width: 25px; height: 25px; border: 0; background: transparent; }
  .cheathub-game-track .reference-game-price { margin-top: 4px; font-size: .58rem; }
}
