/* ==========================================================================
   Modern enhancements layer — purely additive, does not touch the original
   theme files. Safe to delete this file + its <link> tag to fully revert.

   Deliberately conservative: does NOT touch .header.fixed-header (solid bg),
   does NOT add a custom scrollbar, does NOT add a vignette over the hero art.
   Those were tried and looked muddy against the original gothic art direction.
   ========================================================================== */

:root {
  --enh-accent: #d31f30;
}

/* Smooth in-page scrolling for the nav anchor links */
html {
  scroll-behavior: smooth;
}

/* Keyboard-focus visibility (accessibility) without altering mouse styling */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--enh-accent);
  outline-offset: 3px;
}

/* Primary buttons: keep the existing border-reveal effect fully intact,
   just a plain neutral elevation lift on hover — no colored glow */
.btn-primary,
a.btn.btn-primary {
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary:hover,
a.btn.btn-primary:hover,
.btn-primary:focus-visible,
a.btn.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .65);
}

/* Links get a thin animated underline instead of the flat default */
.styled-link {
  position: relative;
  text-decoration: none !important;
  transition: color .25s ease;
}

.styled-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.styled-link:hover {
  color: #fff;
}

.styled-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Form fields: soft focus ring, no layout changes */
.form-control {
  transition: border-color .25s ease, box-shadow .25s ease !important;
}

.form-control:focus {
  border-color: var(--enh-accent) !important;
  box-shadow: 0 0 0 3px rgba(211, 31, 48, .22) !important;
}

/* Screenshot gallery: gentle zoom on hover, nothing else */
.bordered-box {
  overflow: hidden;
  transition: border-color .3s ease;
}

.bordered-box:hover {
  border-color: var(--enh-accent);
}

.bordered-box img {
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.bordered-box:hover img {
  transform: scale(1.05);
}

/* Scroll-reveal utility, applied via modern-enhancements.js.
   Falls back to fully visible content if JS is disabled. */
.enh-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}

.enh-reveal.enh-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back-to-top button, injected by JS — thin outline, matches theme */
.enh-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(211, 31, 48, .6);
  background: rgba(3, 6, 15, .9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}

.enh-back-to-top:hover {
  border-color: var(--enh-accent);
}

.enh-back-to-top.enh-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* These icons relied on a web font that isn't part of this mirror (rendered
   as blank tofu boxes) — redrawn in pure CSS instead */
.icon-menu {
  display: inline-block;
  width: 20px;
  height: 14px;
  vertical-align: middle;
  font-size: 0;
  background-image: linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 50%, 0 100%;
}

.icon-close {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  font-size: 0;
}

.icon-close::before,
.icon-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.icon-close::before {
  transform: rotate(45deg);
}

.icon-close::after {
  transform: rotate(-45deg);
}

/* Fixed "Continue" arrow icon was relying on a web font that isn't part of
   this mirror (rendered as a blank tofu box) — redrawn in pure CSS instead */
.continue-link .icon-arrow-down {
  display: inline-block;
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  font-size: 0;
  animation: enh-bounce 1.6s ease-in-out infinite;
}

.continue-link .icon-arrow-down::before {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes enh-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --- Scroll progress bar, injected by JS --- */
.enh-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: transparent;
  z-index: 10000;
  pointer-events: none;
}

.enh-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7a0f1a, var(--enh-accent));
  box-shadow: 0 0 8px rgba(211, 31, 48, .6);
  transition: width .1s linear;
}

/* --- Active-section indicator on the nav links --- */
.main-menu a.scroll-to {
  position: relative;
  transition: color .25s ease;
}

.main-menu a.scroll-to::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--enh-accent);
  transition: width .3s ease, left .3s ease;
}

.main-menu a.scroll-to.enh-active {
  color: #fff;
}

.main-menu a.scroll-to.enh-active::after {
  left: 0;
  width: 100%;
}

/* --- Mouse-reactive fog glow inside the hero banner (desktop only) --- */
.enh-spotlight {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(
    480px circle at var(--enh-x, 50%) var(--enh-y, 40%),
    rgba(211, 31, 48, .16),
    rgba(90, 130, 200, .08) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

.enh-spotlight.enh-active {
  opacity: 1;
}

@media (pointer: coarse) {
  .enh-spotlight {
    display: none;
  }
}

/* --- Cinematic film-grain texture over the whole page, very subtle --- */
.enh-grain {
  position: fixed;
  inset: -100px;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- Marquee ticker strip between the hero and "The Game" section --- */
.enh-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(122, 130, 153, .2);
  border-bottom: 1px solid rgba(122, 130, 153, .2);
  background: #03060f;
  padding: 16px 0;
}

.enh-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 18px;
  white-space: nowrap;
  animation: enh-marquee 28s linear infinite;
  font: 13px font-regular, serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--enh-ink, #7a8299);
}

.enh-marquee-track span {
  display: inline-block;
}

.enh-marquee-track .enh-dot {
  color: var(--enh-accent);
  font-size: 8px;
  transform: translateY(-2px);
}

@keyframes enh-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Subtle 3D tilt on feature illustrations and gallery thumbnails --- */
.img-wrapper,
.gallery .bordered-box {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .2s ease-out;
}

/* --- Glass-panel treatment for the newsletter and contact form cards --- */
.made-with > .container,
#scf-form-contactForm {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.made-with > .container {
  padding: 60px 30px;
}

#scf-form-contactForm {
  padding: 10px 30px 30px;
}

/* --- Hero on-load entrance: staggered, opacity-only so it never fights
   rellax's parallax transform or the button's hover transform --- */
@keyframes enh-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes enh-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner-logo {
  animation: enh-fade-in 1.1s ease .1s both;
}

.banner-content {
  z-index: 5;
}

.banner-content .btn-primary {
  animation: enh-fade-in .7s ease .5s both;
}

.banner-content p {
  animation: enh-fade-up .7s cubic-bezier(.16, 1, .3, 1) .7s both;
}

.continue-link {
  animation: enh-fade-up .7s cubic-bezier(.16, 1, .3, 1) .9s both;
}

/* --- Ember particles canvas inside the hero --- */
.enh-embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* --- Compact CTA button mirrored into the sticky header --- */
.enh-sticky-cta.btn.btn-primary {
  min-width: auto !important;
  height: 34px !important;
  padding: 0 20px !important;
  font-size: 11px !important;
  letter-spacing: 1.5px;
}

/* --- Side scroll-spy dot navigation, large screens only --- */
.enh-side-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1200px) {
  .enh-side-dots {
    display: flex;
  }
}

.enh-side-dots button {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(122, 130, 153, .5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.enh-side-dots button::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--enh-ink, #7a8299);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.enh-side-dots button:hover::before {
  opacity: 1;
}

.enh-side-dots button.enh-active {
  background: var(--enh-accent);
  border-color: var(--enh-accent);
  transform: scale(1.3);
}

/* --- Feature rows: alternate direction + faint numeral for editorial feel --- */
.list-features {
  counter-reset: enh-feature;
}

.list-features > li {
  counter-increment: enh-feature;
}

.list-features > li:nth-child(even) {
  flex-direction: row-reverse;
}

.list-features > li .text-box {
  position: relative;
}

.list-features > li .text-box::before {
  content: "0" counter(enh-feature);
  position: absolute;
  top: -34px;
  left: 0;
  font: 96px font-regular, serif;
  color: rgba(122, 130, 153, .1);
  z-index: -1;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .list-features > li .text-box {
    margin-top: 20px;
  }

  .list-features > li .text-box::before {
    font-size: 52px;
    top: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .enh-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn-primary:hover,
  a.btn.btn-primary:hover,
  .bordered-box:hover img {
    transform: none;
  }

  .continue-link .icon-arrow-down {
    animation: none;
  }

  .banner-logo,
  .banner-content .btn-primary,
  .banner-content p,
  .continue-link {
    animation: none;
    opacity: 1;
  }
}
