@charset "UTF-8";
/* ============================================================
   V-GAMES shared site theme
   Loaded on every page AFTER each page's own inline <style>, so
   these rules take over the navbar/footer/typography everywhere
   and give every page the same, polished look — without having
   to rewrite each page's unique content by hand.
   ============================================================ */

:root {
  --vg-bg-1: #17181c;
  --vg-bg-2: #4a0f14;
  --vg-bg-3: #17181c;
  --vg-bg-4: #23262b;
  --vg-text: #f4f4f5;
  --vg-text-dim: #b7b8bd;
  --vg-accent: #ff4757;
  --vg-accent-2: #ff8a5c;
  --vg-navbar: rgba(18, 20, 24, 0.96);
  --vg-navbar-border: #30343b;
  --vg-card: #171a1f;
  --vg-card-border: #2c3138;
  --vg-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  /* Default-theme accent text. Dark ink clears WCAG AA on the orange controls. */
  --sk-accent: #e4572e;
  --sk-accent-2: #c94622;
  --sk-accent-ink: #17110f;
  /* Spacing scale, in 4px steps. New shared rules should pick from these rather than invent a size. */
  --vg-space-1: 4px;
  --vg-space-2: 8px;
  --vg-space-3: 12px;
  --vg-space-4: 16px;
  --vg-space-5: 20px;
  --vg-space-6: 24px;
  --vg-space-8: 32px;
  --vg-space-10: 40px;
  --vg-space-12: 48px;
}

html, body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  min-width: 0;
}

img, video, iframe, canvas, svg { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }

/* Each page keeps its own existing background gradient/colors —
   this stylesheet only unifies the navbar, buttons, and type. */

h1, h2, h3, .main-title {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--vg-accent);
  color: #fff;
}

/* ---------- Shared navbar ---------- */
.navbar {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: var(--vg-space-4);
  padding: var(--vg-space-3) var(--vg-space-6) !important;
  box-sizing: border-box !important;
  width: calc(100% - 40px) !important;
  max-width: 1040px !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  line-height: 1.25 !important;
  background: var(--vg-navbar) !important;
  border: 1px solid var(--vg-navbar-border);
  border-radius: 12px !important;
  box-shadow: var(--vg-shadow) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000 !important;
}

.navbar-left a,
.navbar > a:first-child {
  display: flex;
  align-items: center;
  gap: var(--vg-space-2);
  text-decoration: none !important;
  color: var(--vg-text) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex !important;
  align-items: center;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-links li { list-style: none; margin: 0; padding: 0; }

.nav-links a {
  text-decoration: none !important;
  color: var(--vg-text-dim) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--vg-text, #fff) !important;
  background: var(--vg-nav-hover, rgba(255, 255, 255, 0.08));
}

.nav-links a[aria-current="page"] {
  color: var(--vg-text, #fff) !important;
  background: var(--vg-nav-hover, rgba(255, 255, 255, 0.1));
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--vg-text) !important;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle { min-width: 44px; min-height: 44px; }
.navbar .nav-toggle { width: 44px !important; max-width: 44px !important; flex: 0 0 44px !important; }

/* Accessible default-theme controls. Other themes provide their own computed ink colour. */
html:not([data-vg-skin]) .home-search button,
html:not([data-vg-skin]) .whats-new-pill,
html:not([data-vg-skin]) .gchip[aria-pressed="true"],
html:not([data-vg-skin]) .chip[aria-pressed="true"],
html:not([data-vg-skin]) .new-badge,
html:not([data-vg-skin]) #saveButton,
html:not([data-vg-skin]) .vg-jump a[aria-current="true"],
html:not([data-vg-skin]) .button.primary,
html:not([data-vg-skin]) .primary-action,
html:not([data-vg-skin]) .contact-actions a.primary,
html:not([data-vg-skin]) .release-label,
html:not([data-vg-skin]) .submit {
  color: var(--sk-accent-ink) !important;
}
html:not([data-vg-skin]) .gchip[aria-pressed="true"] small,
html:not([data-vg-skin]) .chip[aria-pressed="true"] small {
  color: var(--sk-accent-ink) !important;
  opacity: 1 !important;
}
.gchip, .chip { min-height: 44px; }

@media (max-width: 1080px) {
  .navbar {
    top: max(8px, env(safe-area-inset-top)) !important;
    width: calc(100% - 20px) !important;
    padding: 8px 10px 8px 14px !important;
    border-radius: 11px !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle { display: block !important; }
  .navbar-right { display: none !important; }
  .nav-links {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--vg-space-1) !important;
    background: rgba(18, 19, 23, 0.97) !important;
    border: 1px solid var(--vg-navbar-border);
    border-radius: 14px !important;
    padding: 10px !important;
    display: none !important;
    width: min(280px, calc(100vw - 20px));
    min-width: 0;
    max-height: calc(100dvh - 90px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--vg-shadow);
  }
  .nav-links.open { display: flex !important; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; text-align: left; }
}

@media (max-width: 520px) {
  h1, .main-title { overflow-wrap: anywhere; }
  .navbar-left a,
  .navbar > a:first-child { font-size: 15px !important; }
  input[type="search"], input[type="text"], input[type="url"], select, textarea {
    width: 100%;
    min-height: 44px;
    font-size: 16px !important;
  }
}

@media (max-width: 360px) {
  .navbar { width: calc(100% - 12px) !important; }
  .nav-links { width: calc(100vw - 12px); }
}

/* ---------- Focus & accessibility ---------- */
a:focus-visible, button:focus-visible,
select:focus-visible, summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible,
input[type="range"]:focus-visible, input[type="file"]:focus-visible,
input[type="submit"]:focus-visible, input[type="button"]:focus-visible,
input[type="reset"]:focus-visible {
  outline: 2px solid var(--vg-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Skip-link targets take focus only so the next Tab starts there; they need no ring of their own. */
[data-vg-skip-target]:focus { outline: none; }
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 10px var(--vg-space-4);
  background: #fff;
  color: #000;
  border-radius: 8px;
  z-index: 10000;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.buttons-container a,
.download-btn,
button.download-btn {
  background: #e4572e !important;
  color: #17110f !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

button, input, select, textarea { font: inherit; }
button, [role="button"], .button, .download-btn { touch-action: manipulation; }
.buttons-container a:hover,
.download-btn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.08);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.3) !important;
}
.buttons-container a:active,
.download-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Shared button style for new controls. class="vg-btn" is the accent button; add vg-btn-secondary for the quiet,
   outlined one. Colours come from the theme variables, so it follows every skin, and the focus ring comes from the
   rule above. Buttons that already exist keep their own page's look. */
.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--sk-accent, #e4572e);
  border-radius: 10px;
  background: var(--sk-accent, #e4572e);
  color: var(--sk-accent-ink, #17110f);
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.vg-btn:hover:not(:disabled) { filter: brightness(1.08); }
.vg-btn:active:not(:disabled) { transform: scale(0.98); }
.vg-btn:disabled,
.vg-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.vg-btn-secondary {
  border-color: var(--sk-line, #3a414b);
  background: transparent;
  color: var(--sk-ink, var(--vg-text));
}
.vg-btn-secondary:hover:not(:disabled) { filter: none; border-color: var(--sk-accent, #e4572e); }

/* ---------- Shared footer ---------- */
.vg-footer {
  text-align: center;
  padding: 28px var(--vg-space-4) 22px;
  font-size: 13px;
  color: #b7b8bd;
  border-top: 1px solid var(--vg-navbar-border);
  margin-top: var(--vg-space-10);
}
.vg-footer a { color: var(--vg-accent-2); text-decoration: none; font-weight: 600; }
.vg-footer a:hover { text-decoration: underline; }
/* Site-wide link row at the bottom of the main pages. Theme skins recolor it (see vgames-skin.css). */
.vg-site-footer { position: relative; z-index: 1; margin-top: var(--vg-space-12); border-top-color: var(--sk-line, var(--vg-navbar-border)); }
.vg-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--vg-space-1) var(--vg-space-5); margin: 0 0 10px; }
.vg-footer-links a { display: inline-block; padding: 4px 2px; }
.vg-site-footer p { margin: 0; }

/* ---------- Cards (used by game/movie grids where present) ---------- */
.game-cover, .movie-cover, .card {
  border-radius: 14px !important;
  box-shadow: var(--vg-shadow) !important;
  background: var(--vg-card) !important;
  border: 1px solid var(--vg-card-border);
}

/* Shared card style for new content: class="vg-card". Its colours come from the theme variables, so it follows every
   skin without a rule of its own in vgames-skin.css. Add vg-card-link to a card that is itself a link or button. */
.vg-card {
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--sk-line, var(--vg-card-border));
  border-radius: 14px;
  background: var(--sk-surface, var(--vg-card));
  color: var(--sk-ink, var(--vg-text));
  box-shadow: var(--sk-shadow, var(--vg-shadow));
}
.vg-card > :first-child { margin-top: 0; }
.vg-card > :last-child { margin-bottom: 0; }
.vg-card p { color: var(--sk-ink-dim, var(--vg-text-dim)); }
.vg-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vg-card-link:hover { border-color: var(--sk-accent, #e4572e); transform: translateY(-2px); }
.vg-card-link:active { transform: translateY(0); }

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

@media (min-width: 1081px) {
  .navbar { height: 48px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
}

/* ---------- Screen-reader-only text ---------- */
/* Text for screen readers only (for example a page's h1 when the design shows no visible title). */
.vg-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
