/* ============================================================
   improved website v2 — override layer (loads AFTER style.css)
   ============================================================
   NOTES FOR FUTURE CODEX AGENTS (written by a previous codex
   agent, not a human):
   - This site is the LIVE website (lonetravellergames.com) as a
     base + a precise mashup requested by the user:
       * Hero: live imagery/scrim/copy, but the 5 button-like
         elements (Discover Eternal Cultivation → In development)
         are omp-website-high's .btn/.chip components + animation.
       * First 2 images (hero bg + game-hero band) = live site's.
       * 4 game cards: text styling = live site's EXACTLY; card
         frame/effects = high's media-card (tilt/glare/
         parallax); images from high EXCEPT bamboo (stays live);
         the studio lantern also swapped to high's lantern.webp.
         (media-glow purple hue REMOVED on user request — 2026-08-30)
       * Multiplayer → Contact sections = high's layout/panels,
         live text content; contact button uses high's Fraunces
         font + gentle quickTo magnetic (not v1's strong pull).
       * Footer = "improved website" (v1) footer: ghost wordmark
         + v1's generous ghost-to-grid spacing.
       * Background = mixed starry sky (v1 cosmos + high's
         shooting star + star-layer rotation + vignette).
       * Scroll progress hairline UNDER the header bar.
       * Mouse effects = v1 exactly (cursor dot + lagging gold
         ring + magnetic). Card effects = high exactly (tilt,
         glare, parallax scrub).
       * Text animations are intentionally TONED DOWN vs high
         (no per-word masks on section headings; single-block
         fade-ups) — user found high overanimated.
       * Section spacing: deliberately more generous than the
         live base (modeled on high's rhythm) — user asked for
         more buffer between sections (2026-08-30).
   - base style.css must stay UNMODIFIED. All changes live here.
   - All content lives in real DOM; #cosmos is decorative only
     (html.no-webgl → .cosmos-fallback). Never move info into it.
   ============================================================ */

/* Fraunces Variable — the display font omp high uses for its contact
   button (self-hosted latin subset, wght axis) */
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
}

/* ---------- lenis compat ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- backdrop stack ---------- */
#cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cosmos-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cosmos-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(233, 235, 244, 0.8), transparent 55%),
    radial-gradient(1px 1px at 34% 8%, rgba(233, 235, 244, 0.55), transparent 55%),
    radial-gradient(1.4px 1.4px at 56% 30%, rgba(169, 156, 255, 0.7), transparent 55%),
    radial-gradient(1px 1px at 71% 14%, rgba(233, 235, 244, 0.6), transparent 55%),
    radial-gradient(1.1px 1.1px at 88% 38%, rgba(233, 235, 244, 0.5), transparent 55%),
    radial-gradient(1px 1px at 22% 52%, rgba(233, 235, 244, 0.45), transparent 55%),
    radial-gradient(1.3px 1.3px at 44% 68%, rgba(87, 201, 155, 0.4), transparent 55%),
    radial-gradient(1px 1px at 78% 60%, rgba(233, 235, 244, 0.5), transparent 55%),
    radial-gradient(1.2px 1.2px at 8% 82%, rgba(169, 156, 255, 0.5), transparent 55%),
    radial-gradient(1px 1px at 63% 88%, rgba(233, 235, 244, 0.4), transparent 55%);
}
html.has-webgl .cosmos-fallback { display: none; }
main, .site-footer { position: relative; z-index: 1; }

/* film grain (kept from both sources) */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: v2-grain 1.4s steps(3) infinite;
}
@keyframes v2-grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* backdrop vignette (from omp high) */
.backdrop-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(3, 4, 10, 0.55) 100%);
}

/* ---------- scroll progress hairline UNDER the header bar ---------- */
.scroll-progress {
  position: fixed;
  top: 65px; /* live header: 64px inner + 1px border */
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(236, 238, 248, 0.05);
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4c3d99, #8b7cf6, #d9b96a);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- custom cursor — v1 EXACT ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 400;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 6px; height: 6px; background: #a99cff; }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(217, 185, 106, 0.7);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover { width: 52px; height: 52px; border-color: #d9b96a; }
html.fine-pointer .cursor-dot, html.fine-pointer .cursor-ring { display: block; }
html.fine-pointer, html.fine-pointer a, html.fine-pointer button, html.fine-pointer summary { cursor: none; }

/* ---------- omp high buttons (the 5 hero elements + coming-soon pill) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, background 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, #7c3aed, #5b21b6 60%, #312e81);
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover {
  box-shadow: 0 0 64px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--ghost {
  border: 1px solid rgba(236, 238, 248, 0.18);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: #a78bfa;
  background: rgba(139, 92, 246, 0.08);
}
.btn--soon {
  color: #a2a8c3;
  border: 1px dashed rgba(236, 238, 248, 0.18);
  cursor: progress;
}
.btn--soon .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0c775;
  box-shadow: 0 0 12px #f0c775;
  animation: v2-pulse 2.2s ease-in-out infinite;
}
@keyframes v2-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* omp high chips — scoped to the hero badges so the live chip
   (kicker "Independent game studio · Germany") stays untouched */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.5rem;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__badges .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(236, 238, 248, 0.09);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 400;
  color: #a2a8c3;
  white-space: nowrap;
}
.hero__badges .chip svg {
  width: 14px;
  height: 14px;
  color: #a78bfa;
  flex: none;
}

/* ---------- omp high media cards (tilt + glare + glow + parallax) ---------- */
.media-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
  border: 1px solid var(--line);
  background: #0a0c18;
  box-shadow: 0 30px 80px -20px rgba(2, 3, 12, 0.9);
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card .glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: overlay;
}
.media-card:hover .glare { opacity: 1; }
.parallax-frame {
  overflow: hidden;
  border-radius: inherit;
}
.parallax-frame img {
  height: 112%;
  width: 100%;
  object-fit: cover;
  will-change: transform;
}

/* live game cards keep their TEXT styling; the frame/effects move to
   high's .media-card. Neutralize the live frame on the outer wrapper. */
.game-row__media { border: 0; background: transparent; box-shadow: none; overflow: visible; border-radius: 0; }
.game-row__media::after, .phoenix-banner > .media-card::after { content: none; }
.game-row__media img, .phoenix-banner .media-card img { transition: none; transform: none; }
.game-row:hover .game-row__media img, .phoenix-banner:hover .media-card img { transform: none; }
.game-row__media .media-card img { aspect-ratio: 16 / 10; }
.phoenix-banner > * { min-width: 0; }

/* contact intro (live contact-card text inside high's contact panel) */
.v2-lead-center { margin-inline: auto; }
.v2-contact__intro h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0.3rem;
  font-size: 1.15rem;
}
.v2-contact__intro p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.93rem;
}
html.js [data-reveal] { opacity: 0; }
html.no-js [data-reveal], html[data-js="false"] [data-reveal] { opacity: 1; }

/* ---------- omp high multiplayer panel (live text, live fonts) ---------- */
.multiplayer { padding: clamp(4rem, 9vw, 7rem) 0; }
.multiplayer__panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(80% 120% at 80% -20%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(70% 100% at 10% 110%, rgba(125, 211, 252, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}
.multiplayer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
}
.mp-tile {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 6, 13, 0.45);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s, background 0.45s;
}
.mp-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% -10%, rgba(139, 92, 246, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s;
}
.mp-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(16, 19, 42, 0.6);
}
.mp-tile:hover::before { opacity: 1; }
.mp-tile svg {
  width: 26px;
  height: 26px;
  color: #a78bfa;
  display: block;
}
.mp-tile h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 44px 0 0;
  color: var(--text);
}

/* ---------- omp high FAQ (live text, live fonts) ---------- */
.v2-faq { padding: clamp(4rem, 9vw, 7rem) 0; }
.v2-faq__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.v2-faq__list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.v2-faq-item { border-bottom: 1px solid var(--line); }
.v2-faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 28px 4px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s;
}
.v2-faq-item__btn:hover { color: var(--violet-bright); }
.v2-faq-item__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s, background 0.3s;
}
.v2-faq-item__icon::before,
.v2-faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}
.v2-faq-item__icon::after { rotate: 90deg; }
.v2-faq-item[data-open='true'] .v2-faq-item__icon {
  transform: rotate(135deg);
  border-color: var(--violet);
  background: rgba(139, 124, 246, 0.14);
}
.v2-faq-item__panel { height: 0; overflow: hidden; }
.v2-faq-item__panel p {
  padding: 0 4px 30px;
  max-width: 62ch;
  color: var(--muted);
}

/* ---------- omp high CTA (rings + soon pill, live text) ---------- */
.v2-cta {
  position: relative;
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  text-align: center;
  overflow: clip;
}
.v2-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 140%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 58, 237, 0.28), transparent 70%);
  pointer-events: none;
}
.v2-cta__rings {
  position: absolute;
  left: 50%;
  bottom: -32%;
  width: 900px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.v2-cta__rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 50%;
}
.v2-cta__rings i:nth-child(2) { inset: 12%; }
.v2-cta__rings i:nth-child(3) { inset: 24%; }
.v2-cta .display { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.v2-cta .lead { margin: 1.4rem auto 0; }
.v2-cta__actions {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- omp high studio (facts + lantern card) ---------- */
.v2-studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.v2-studio__media { position: relative; }
.v2-studio__media .media-card {
  aspect-ratio: 3 / 4;
  max-width: 480px;
  margin-inline: auto;
}
.v2-studio__media .media-card img { aspect-ratio: auto; }
.v2-studio__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 45%, rgba(139, 92, 246, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.v2-studio__facts {
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
}
.v2-studio__fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.v2-studio__fact dt {
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  padding-top: 3px;
}
.v2-studio__fact dd { color: var(--text); margin: 0; font-weight: 600; }

/* ---------- omp high contact ---------- */
.v2-contact { padding-bottom: clamp(3rem, 7vw, 5rem); }
.v2-contact__panel {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.07), rgba(5, 6, 13, 0.4) 55%), rgba(255, 255, 255, 0.035);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
}
.v2-contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: clamp(20px, 3vw, 30px) clamp(28px, 4vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 6, 13, 0.5);
  /* omp high's contact button font + weight (inherits body 400 there) */
  font-family: "Fraunces Variable", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
  overflow-wrap: anywhere;
}
.v2-contact__mail svg {
  width: clamp(20px, 2.4vw, 28px);
  height: auto;
  color: #a78bfa;
  flex: none;
}
.v2-contact__mail:hover {
  border-color: var(--violet);
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
}
.v2-contact__note {
  margin-top: 26px;
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- v1 footer (ghost wordmark + glass) ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.footer-ghost {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: clamp(2.4rem, 7.4vw, 5.6rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(169, 156, 255, 0.16);
  user-select: none;
  pointer-events: none;
  padding: clamp(1.4rem, 4vh, 2.6rem) 0 0;
}
/* ---------- section rhythm + band-to-background transition ----------
   (2026-08-30 corrections: user found the live-base rhythm cramped in
   several places and the game-hero band's bottom edge too abrupt
   against the starfield) */

/* generous section padding, modeled on omp high's rhythm */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

/* dark buffer zone between the game-hero band and the image cards
   (2026-08-30 user request): shortens the hard black stretch and lets
   the starfield show through early — the veil starts near-opaque to
   meet the band's melt, then thins steadily so the background is
   gradually introduced and the transition stays silky. */
.game-hero { overflow: visible; }
.game-hero::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: clamp(200px, 26vh, 340px);
  background: linear-gradient(180deg,
    rgba(6, 6, 9, 0.94) 0%,
    rgba(6, 6, 9, 0.78) 30%,
    rgba(6, 6, 9, 0.5) 52%,
    rgba(6, 6, 9, 0.26) 72%,
    rgba(6, 6, 9, 0.08) 88%,
    rgba(6, 6, 9, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* cards start only once the fade is well underway */
.game .game-row:first-of-type { margin-top: clamp(6rem, 13vw, 10rem); }

/* pre-footer breathing room (v1 had this) */
.site-footer { margin-top: clamp(3rem, 8vh, 5rem); }

/* v1's ghost-wordmark-to-columns spacing */
.site-footer__grid { padding-top: clamp(2.4rem, 5vh, 3.6rem); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .multiplayer__grid { grid-template-columns: repeat(2, 1fr); }
  .v2-studio__grid { grid-template-columns: 1fr; }
  .v2-studio__media { order: -1; }
}
@media (max-width: 880px) {
  .game-row, .phoenix-banner { grid-template-columns: 1fr; }
  .game-row--right .game-row__media { order: 0; }
  .game-row--right .game-row__body { order: 1; }
}
@media (max-width: 720px) {
  .scroll-progress { top: 65px; }
  .feature-row__num { display: none; }
}
@media (max-width: 480px) {
  .multiplayer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .v2-studio__fact { grid-template-columns: 1fr; gap: 4px; }
  .site-header__inner { gap: 0.6rem; }
  .brand__name { font-size: 0.78rem; letter-spacing: 0.1em; }
  .lang-toggle__opt { padding: 0.24rem 0.5rem; font-size: 0.72rem; }
  .nav-burger { width: 38px; height: 38px; }
  .chip--dev { white-space: normal; }
}
/* long German compounds (e.g. "Datenschutzerklärung") must never force a
   horizontal scrollbar — break only when a single word exceeds the line;
   otherwise typography is untouched */
h1.display, h2.display, h3.display { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .footer-ghost { font-size: clamp(1.7rem, 9vw, 2.6rem); }
}
/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hero__badges .chip, .btn, .btn--soon .dot { animation: none; transition: none; }
  html.js [data-reveal] { opacity: 1; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .parallax-frame img { height: 100%; }
}
