/* ============================================
   CHEAT.DB — Industrial / Utilitarian
   Simplified provider directory
   ============================================ */

:root {
  --bg-deep: #0a0c0f;
  --bg-surface: #0f1215;
  --bg-elevated: #151a1e;
  --bg-card: #1a1f25;

  --text-primary: #e8eaed;
  --text-secondary: #8a919a;
  --text-dim: #4a5260;

  --accent: #f0b232;
  --accent-dim: rgba(240, 178, 50, 0.3);
  --accent-glow: rgba(240, 178, 50, 0.08);

  --status-online: #34d058;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(240, 178, 50, 0.2);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-mono: 'Fira Mono', monospace;

  --max-width: 1100px;
  --header-height: 56px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- SKIP TO CONTENT --- */
.skip-to-content {
  position: fixed; top: -100%; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 3px;
  padding: 12px 24px;
  background: var(--accent); color: var(--bg-deep);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 8px;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

/* --- PROGRESS BAR --- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
  transition: width 0.15s ease-out;
  pointer-events: none;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--header-height) + 24px); }

body {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.loaded { opacity: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* --- ATMOSPHERE --- */
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

.noise-overlay {
  position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 9998; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

.grid-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 20%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 20%, black 10%, transparent 70%);
}

/* --- HEADER --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo-group { display: flex; align-items: center; gap: 12px; cursor: pointer; transition: filter 0.3s ease; }
.logo-group:hover { filter: drop-shadow(0 0 8px rgba(240, 178, 50, 0.3)); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-primary {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: 3px; color: var(--text-primary);
}

.logo-dot { color: var(--accent); }

.logo-sub {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; color: var(--text-dim); margin-top: 2px;
}

.main-nav { display: flex; gap: 4px; }

.nav-link {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 2px; padding: 6px 14px;
  color: var(--text-secondary); border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover { color: var(--text-primary); border-color: var(--border); }
.nav-link.active {
  color: var(--accent); border-color: var(--border-accent); background: var(--accent-glow);
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 25%; right: 25%;
  height: 2px; background: var(--accent);
}

.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.menu-bar { display: block; width: 20px; height: 2px; background: var(--text-secondary); transition: all 0.3s ease; }
.mobile-menu-btn.open .menu-bar:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.open .menu-bar:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open .menu-bar:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* --- HERO --- */
.hero {
  position: relative; padding: 80px 24px 64px;
  min-height: 50vh; display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-image: linear-gradient(90deg, transparent, var(--accent-dim), transparent) 1;
}

.hero-spotlight {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 178, 50, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.hero:hover .hero-spotlight { opacity: 1; }

.hero::before {
  content: ''; position: absolute; top: -20%; left: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  color: var(--accent); border: 1px solid var(--border-accent);
  padding: 6px 16px; margin-bottom: 28px; background: var(--accent-glow);
  animation: fadeSlideIn 0.6s ease-out both;
}

.badge-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  line-height: 0.95; margin-bottom: 20px;
}

.hero-line { display: block; letter-spacing: 4px; }

.hero-line-1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--text-primary);
  animation: fadeSlideIn 0.6s ease-out 0.1s both;
}

.hero-line-2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--accent);
  animation: fadeSlideIn 0.6s ease-out 0.2s both;
}

.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 14px; color: var(--text-secondary); max-width: 440px;
  line-height: 1.8; margin-bottom: 28px;
  animation: fadeSlideIn 0.6s ease-out 0.3s both;
}

.btn {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 3px; padding: 14px 32px;
  border: 1px solid; transition: all 0.25s ease; display: inline-block;
}

.btn-primary {
  background: var(--accent); color: var(--bg-deep); border-color: var(--accent);
  animation: fadeSlideIn 0.6s ease-out 0.4s both;
}

.btn-primary:hover {
  background: transparent; color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.hero-decoration {
  position: absolute; top: 50%; right: 8%;
  transform: translateY(-50%); opacity: 0.12;
  animation: rotateSlow 30s linear infinite;
  will-change: transform;
}

@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(240, 178, 50, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(240, 178, 50, 0); }
}

/* --- HERO TITLE GLITCH --- */
.hero-title:hover .hero-line-2 {
  animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

/* --- TOAST NOTIFICATION --- */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 2px; color: var(--accent);
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  padding: 10px 24px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- KEYBOARD SHORTCUT OVERLAY --- */
.shortcut-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.shortcut-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.shortcut-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  padding: 32px;
  max-width: 380px; width: 90%;
}

.shortcut-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}

.shortcut-title {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 3px; color: var(--accent);
}

.shortcut-close {
  font-size: 20px; color: var(--text-dim);
  padding: 4px 8px; line-height: 1;
  transition: color 0.2s;
}

.shortcut-close:hover { color: var(--accent); }

.shortcut-list {
  display: flex; flex-direction: column; gap: 12px;
}

.shortcut-item {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--text-secondary);
}

.shortcut-item kbd {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1px; color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 8px;
  min-width: 32px; text-align: center;
}

/* --- SECTION DIVIDERS --- */
.games-section {
  padding: 64px 24px 80px;
  border-top: 1px solid var(--border);
  position: relative;
}

.games-section::before {
  content: '';
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--accent);
}

.all-providers-section {
  padding: 64px 24px 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  position: relative;
}

.all-providers-section::before {
  content: '';
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--accent);
}

.games-inner {
  max-width: var(--max-width); margin: 0 auto;
}

.section-header { margin-bottom: 32px; }

.section-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 4px; color: var(--text-primary);
}

.section-header::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--accent);
  margin-top: 12px;
}

/* --- SEARCH BAR --- */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--border-accent);
}

.search-icon { color: var(--text-dim); flex-shrink: 0; }

.search-input {
  background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 2px; color: var(--text-primary);
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-dim); letter-spacing: 2px;
}

.search-bar .search-hint {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1px; color: var(--text-dim);
  padding: 2px 6px; border: 1px solid var(--border);
  flex-shrink: 0; line-height: 1;
  opacity: 0.5;
}

.search-clear {
  font-size: 18px; color: var(--text-dim);
  padding: 0 4px; line-height: 1;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.search-clear:hover { color: var(--accent); }

.no-results {
  padding: 40px 20px; text-align: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 3px;
  color: var(--text-dim);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.game-card {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before { opacity: 1; }

/* Corner marks on hover */
.game-card .corner-mark {
  position: absolute;
  width: 8px; height: 8px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card .corner-mark.tl { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.game-card .corner-mark.tr { top: 6px; right: 6px; border-width: 1px 1px 0 0; }
.game-card .corner-mark.bl { bottom: 6px; left: 6px; border-width: 0 0 1px 1px; }
.game-card .corner-mark.br { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

.game-card:hover .corner-mark { opacity: 0.5; }

.game-card::after {
  content: '\2192';
  position: absolute;
  top: 24px; right: 22px;
  font-size: 18px;
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.game-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-accent), 0 0 40px rgba(240, 178, 50, 0.04);
}

.game-card:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}

.game-card-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 20px;
  letter-spacing: 2px; color: var(--text-primary);
  transition: color 0.2s ease;
}

.game-card:hover .game-card-name,
.game-card.active .game-card-name {
  color: var(--accent);
}

.game-card.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: inset 3px 0 0 var(--accent);
  animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
  0%, 100% { box-shadow: inset 3px 0 0 var(--accent), 0 0 0 0 rgba(240, 178, 50, 0.15); }
  50% { box-shadow: inset 3px 0 0 var(--accent), 0 0 12px 2px rgba(240, 178, 50, 0.08); }
}

.game-card.active::after {
  color: var(--accent);
}

.game-card-count {
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-dim);
}

.game-card-tag {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; padding: 2px 8px;
  border: 1px solid; width: fit-content;
}

.game-card-tag.free {
  color: var(--status-online);
  border-color: rgba(52, 208, 88, 0.3);
  background: rgba(52, 208, 88, 0.06);
}

/* --- PROVIDER PANEL (shown for a game) --- */
.provider-panel {
  padding: 48px 24px 64px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0; padding-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.provider-panel.visible {
  max-height: 2000px;
  opacity: 1;
  padding: 48px 24px 64px;
}

.provider-panel-inner {
  max-width: var(--max-width); margin: 0 auto;
}

.panel-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px;
}

.panel-back {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 2px; color: var(--text-secondary);
  padding: 6px 14px; border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.panel-back:hover {
  color: var(--accent); border-color: var(--border-accent);
}

.panel-share {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 2px; color: var(--text-dim);
  padding: 6px 14px; border: 1px solid var(--border);
  margin-left: auto;
  transition: all 0.2s ease;
}

.panel-share:hover {
  color: var(--accent); border-color: var(--border-accent);
}

.panel-share.copied {
  color: var(--status-online); border-color: rgba(52, 208, 88, 0.3);
}

.panel-game-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 24px; letter-spacing: 3px; color: var(--accent);
}

.panel-provider-count {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; color: var(--text-dim);
  padding: 3px 10px;
  border: 1px solid var(--border);
  align-self: center;
}

.provider-list {
  display: flex; flex-direction: column; gap: 10px;
}

.provider-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 20px 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  transition: all 0.2s ease;
  gap: 16px;
  animation: cardSlideIn 0.35s ease-out both;
  text-decoration: none; color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.provider-index {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 2px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.provider-card:hover .provider-index {
  color: var(--accent);
}

.provider-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(240, 178, 50, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.provider-card:hover::before { opacity: 1; }

.provider-card:nth-child(1) { animation-delay: 0s; }
.provider-card:nth-child(2) { animation-delay: 0.06s; }
.provider-card:nth-child(3) { animation-delay: 0.12s; }
.provider-card:nth-child(4) { animation-delay: 0.18s; }
.provider-card:nth-child(5) { animation-delay: 0.24s; }

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.provider-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(240, 178, 50, 0.05);
  transform: translateX(4px);
}

.provider-info {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}

.provider-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: 2px; color: var(--text-primary);
  transition: color 0.2s;
}

.provider-card:hover .provider-name {
  color: var(--accent);
}

.provider-url {
  font-size: 11px; letter-spacing: 1px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.provider-url::after {
  content: ' \2197';
  font-size: 10px; opacity: 0.5;
}

.provider-meta {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}

.provider-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 1px; color: var(--text-primary);
  white-space: nowrap;
}

.provider-price.free {
  color: var(--status-online);
}

.provider-link {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 2px;
  padding: 8px 20px;
  background: var(--accent); color: var(--bg-deep);
  border: 1px solid var(--accent);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.provider-link:hover {
  background: transparent; color: var(--accent);
  box-shadow: 0 0 16px var(--accent-dim);
}

/* --- ALL PROVIDERS SECTION --- ---
   (styles above in SECTION DIVIDERS) */

.all-providers-inner {
  max-width: var(--max-width); margin: 0 auto;
}

.provider-directory {
  display: flex; flex-direction: column; gap: 6px;
}

.directory-entry {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  gap: 16px;
  text-decoration: none; color: inherit;
  cursor: pointer;
}

.directory-entry:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  transform: translateX(3px);
}

.directory-entry:hover .directory-name {
  color: var(--accent);
}

.directory-entry:hover .directory-link {
  background: var(--accent-glow);
}

.directory-info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}

.directory-meta {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}

.directory-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 1px; color: var(--text-secondary);
  white-space: nowrap;
}

.directory-price.free {
  color: var(--status-online);
}

.directory-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 2px; color: var(--text-primary);
}

.directory-games {
  font-size: 11px; letter-spacing: 1px; color: var(--text-dim);
}

.directory-link {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 2px;
  color: var(--accent); padding: 4px 12px;
  border: 1px solid var(--border-accent);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.directory-link:hover {
  background: var(--accent-glow);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--bg-surface);
}

.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-left {
  display: flex; align-items: center; gap: 16px;
}

.footer-updated {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1px; color: var(--text-dim);
  padding: 2px 8px;
  border: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 16px; letter-spacing: 3px;
}

.footer-copy {
  font-size: 10px; letter-spacing: 1px; color: var(--text-dim);
}

.footer-shortcut {
  color: var(--accent-dim);
  transition: color 0.2s;
  cursor: default;
}

.footer-shortcut:hover {
  color: var(--accent);
}

.footer-logo .logo-dot { color: var(--accent); }

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--bg-elevated); color: var(--text-secondary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1; pointer-events: auto;
}

.back-to-top:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* --- FOCUS STATES --- */
.game-card:focus-visible,
.provider-card:focus-visible,
.provider-link:focus-visible,
.directory-entry:focus-visible,
.directory-link:focus-visible,
.panel-back:focus-visible,
.panel-share:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- SELECTION --- */
::selection {
  background: rgba(240, 178, 50, 0.3);
  color: var(--text-primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background: rgba(10, 12, 15, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--border); z-index: 99;
  }

  .main-nav.open { display: flex; }

  .nav-link {
    padding: 12px 16px; font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-child { border-bottom: none; }

  .mobile-menu-btn { display: flex; }

  .hero {
    padding: 56px 16px 48px;
    min-height: auto;
  }

  .hero-decoration { display: none; }

  .games-section,
  .all-providers-section {
    padding: 48px 16px 56px;
  }

  .provider-panel.visible {
    padding: 32px 16px 48px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .search-bar .search-hint { display: none; }

  .panel-header {
    flex-wrap: wrap;
  }

  .provider-card {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 56px;
  }

  .provider-meta {
    width: 100%;
    justify-content: space-between;
  }

  .directory-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .directory-meta {
    width: 100%;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: column; gap: 6px; text-align: center;
  }

  .footer-left {
    justify-content: center;
  }

  .panel-share { margin-left: 0; }
}

/* --- LOADING SKELETON --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.game-grid:empty::before {
  content: '';
  display: block;
  height: 120px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border: 1px solid var(--border);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
