/* Lightweight low-poly visual layer. Content and URLs remain in the HTML/data files. */
:root {
  --bg: #031a17 !important;
  --ink: #031a17;
  --panel: #0a332d;
  --panel-2: #10433a;
  --line: rgba(86, 211, 181, .24);
  --lime: #b7ef4a;
  --sky: #36d2bd;
  --coral: #ff716b;
  --lavender: #c77dff;
  --text: #f7f9ff !important;
  --muted: #b9d8ce !important;
  --neon: #b7ef4a !important;
  --purple: #c77dff !important;
}

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

html { scroll-behavior: smooth; }

body,
body html {
  background: var(--bg) !important;
  color: var(--text) !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  background:
    radial-gradient(circle at 10% 9%, rgba(54, 210, 189, .16), transparent 24%),
    radial-gradient(circle at 88% 17%, rgba(183, 239, 74, .1), transparent 22%),
    linear-gradient(180deg, #052c27 0%, #031a17 56%, #06241f 100%) !important;
}

body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  opacity: .18 !important;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
  mask-image: linear-gradient(to bottom, #000, transparent 74%) !important;
}

/* Remove expensive decorative runtimes while retaining a static game-world feel. */
#particles,
#particles-js,
#particles-js canvas,
.fun-layer,
.cursor-spark,
.confetti-piece,
.scroll-progress,
.sound-toggle { display: none !important; }

::selection { background: rgba(183, 230, 61, .28); color: #fff; }

nav {
  width: 100% !important;
  padding: 16px max(5%, calc((100% - 1180px) / 2)) !important;
  background: rgba(3, 26, 23, .96) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .16) !important;
}

.logo,
header h1,
h1,
.carousel-title,
.about-founder h2,
section.testimonials h2,
section.contact h2 {
  background: none !important;
  color: var(--text) !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
  text-shadow: none !important;
}

.logo {
  color: var(--lime) !important;
  letter-spacing: -.02em;
}

.nav-links a { color: #eafcf6 !important; }
.nav-links a:hover { color: var(--lime) !important; }

.dropdown-content {
  background: #0a332d !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.26) !important;
}

.contact-badge,
.back-btn,
.toggle-btn,
.view-more-btn,
.play-btn,
button.submit-btn {
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  background: var(--coral) !important;
  color: #fff !important;
  box-shadow: 0 7px 0 #b9464a !important;
  transform: translateY(0) !important;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

.contact-badge:hover,
.back-btn:hover,
.toggle-btn:hover,
.view-more-btn:hover,
.play-btn:hover,
button.submit-btn:hover {
  filter: brightness(1.06);
  transform: translateY(2px) !important;
  box-shadow: 0 4px 0 #b9464a !important;
}

.back-btn::after,
.toggle-btn::after,
.view-more-btn::after,
.play-btn::after { display: none !important; }

.hero {
  min-height: 380px;
  padding: 142px 22px 70px !important;
  overflow: hidden;
}

.hero-layout {
  display: grid !important;
  grid-template-columns: minmax(430px, .9fr) minmax(590px, 1.1fr);
  align-items: center !important;
  gap: clamp(34px, 4vw, 68px);
  width: 100%;
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 70px max(7vw, calc((100% - 1500px) / 2)) 34px !important;
  text-align: left !important;
  background-color: #031a17;
  background-image: url("assets/emerald-jungle-background.jpg");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

.hero-copy { position: relative; z-index: 2; }

.featured-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(183, 230, 61, .32);
  border-radius: 9px;
  color: var(--lime);
  background: rgba(183, 230, 61, .08);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 22px;
  padding: 0;
  max-width: 690px;
  font-size: clamp(2.8rem, 4.4vw, 4.8rem) !important;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-align: left;
}

.hero-copy h1 span { display: block; color: #fff; }
.hero-copy h1 { color: var(--lime) !important; }

.hero-copy .subtitle {
  margin: 0 0 32px;
  padding: 0;
  max-width: 590px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.tech-cocos { color: var(--sky); }
.tech-luna { color: var(--lavender); }
.tech-unity { color: #f3d33e; }

.hero-cta { margin-top: 0; }

.featured-showcase {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(240px, 1fr);
  align-items: center;
  gap: 25px;
  min-width: 0;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #07332c;
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
}

.featured-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-details .active-player-title {
  margin: 4px 0 14px;
  color: #fff !important;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.18;
  text-align: left;
}

.featured-details p,
.creative-preview-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(71, 184, 243, .28);
  border-radius: 8px;
  color: #dcfff5;
  background: rgba(54, 210, 189, .09);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-showcase .player-column { max-width: 315px; justify-self: end; }

.featured-quick-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: -8px;
}

.featured-quick-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, .78fr) minmax(0, 1.22fr);
  gap: 16px;
  height: 235px;
  min-height: 0;
  padding: 13px;
  overflow: hidden;
  border: 2px solid var(--quick-color);
  border-radius: 20px;
  background: color-mix(in srgb, var(--quick-color) 12%, #07332c);
  box-shadow: 0 11px 0 rgba(3, 10, 25, .68);
}

.featured-quick-card.quick-miner { --quick-color: #a8d83e; }
.featured-quick-card.quick-idle { --quick-color: #ff716b; }
.featured-quick-card.quick-sniper { --quick-color: #36d2bd; }

.featured-quick-card > img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  border-radius: 15px;
  object-fit: cover;
}

.featured-quick-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.featured-quick-icon {
  position: absolute;
  top: 13px;
  right: 15px;
  color: var(--quick-color);
  font-size: 1.7rem;
}

.featured-quick-card h3 {
  margin: 8px 32px 8px 0;
  color: var(--quick-color);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.15;
}

.featured-quick-card p {
  margin: 0 0 13px;
  color: #d7eee7;
  font-size: .82rem;
  line-height: 1.45;
}

.quick-play-btn {
  min-width: 130px;
  margin-top: auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--quick-color);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--quick-color) 65%, #000);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.quick-play-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 color-mix(in srgb, var(--quick-color) 65%, #000); }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 130px;
  z-index: -1;
  opacity: .9;
  background:
    linear-gradient(145deg, #78b94a 0 38%, #57943c 39% 52%, transparent 53%),
    linear-gradient(35deg, transparent 0 33%, #6c4d48 34% 56%, #3e3542 57% 100%);
  clip-path: polygon(8% 14%, 73% 0, 100% 31%, 76% 80%, 44% 100%, 12% 75%, 0 43%);
}

.hero::before,
.hero::after { display: none; }

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.3rem, 6vw, 4.4rem) !important;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.subtitle,
.carousel-description,
.about-founder p,
.card-note,
.contact-info p { color: var(--muted) !important; }

.active-players-row {
  max-width: 920px !important;
  gap: clamp(28px, 6vw, 72px) !important;
  padding: 38px 28px !important;
  margin-bottom: 70px !important;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #07332c;
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
}

.creative-preview {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: clamp(28px, 5vw, 65px);
  width: min(720px, calc(100% - 20px));
  margin: 22px auto 52px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  text-align: left;
}

.creative-preview .player-column { max-width: 260px; justify-self: end; }
.creative-preview .active-player-title { color: #fff !important; text-align: left; font-size: 1.35rem; }

.active-player-title {
  color: var(--lime) !important;
  text-shadow: none !important;
}

.active-player-wrapper,
.card,
section.testimonials,
section.contact,
.about,
.content {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.active-player-wrapper {
  border-radius: 22px !important;
  border: 4px solid #185047 !important;
  contain: paint;
}

.active-player-wrapper::before,
.card::before { display: none !important; }

.showcase {
  padding: 70px 20px !important;
  background: #052620 !important;
  border-block: 1px solid var(--line);
}

.carousel-title { color: var(--lime) !important; }

.carousel-wrapper {
  max-width: 1120px !important;
  overflow-x: auto !important;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--sky) transparent;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.carousel-track {
  gap: 18px !important;
  animation: none !important;
  will-change: auto !important;
  padding: 5px 2px 16px;
}

.carousel-item {
  width: 144px !important;
  height: 216px !important;
  border-radius: 18px !important;
  border: 3px solid #1c5a4f !important;
  box-shadow: 0 9px 0 #02100e !important;
  transform: none !important;
  transition: border-color .16s ease, transform .16s ease !important;
}

.carousel-item:hover {
  transform: translateY(-3px) !important;
  border-color: var(--lime) !important;
  box-shadow: 0 9px 0 #02100e !important;
}

.carousel-item img { filter: brightness(.82) saturate(.92) !important; }
.carousel-item:hover img { filter: brightness(.45) !important; }

.about-founder,
.about {
  max-width: 980px !important;
  margin: 50px auto !important;
  padding: 54px clamp(24px, 6vw, 70px) !important;
  border-radius: 28px;
  text-align: left !important;
}

.about-founder { background: #07332c; border: 1px solid var(--line); }
.about-founder h2, .about h2 { color: var(--lime) !important; }

footer { background: #020f0d; border-color: var(--line) !important; }

/* Gallery pages */
#particles-js + .container,
body > .container {
  max-width: 1180px !important;
  padding-top: 52px !important;
}

.container > header {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #07332c;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.container > header h1 {
  color: var(--lime) !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
}

.gallery {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)) !important;
  gap: 24px !important;
}

.card {
  max-width: 285px !important;
  border-radius: 20px !important;
  overflow: hidden;
  transform: none !important;
  transition: transform .16s ease, border-color .16s ease !important;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px) !important;
  border-color: var(--lime) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.25) !important;
}

.card:hover .thumb img,
.card:focus-within .thumb img { transform: none !important; }

.play-overlay {
  background: rgba(3, 26, 23, .72) !important;
  backdrop-filter: none !important;
}

.card-content { background: var(--panel); }
.card-title { color: #fff !important; }

.engine-badge {
  color: #031a17 !important;
  background: var(--lime) !important;
  border: 0 !important;
  box-shadow: 0 4px 0 rgba(0,0,0,.25) !important;
  backdrop-filter: none !important;
}
.engine-luna { background: var(--lavender) !important; color: #fff !important; }
.engine-unity { background: var(--sky) !important; color: #031a17 !important; }
.engine-badge::before { box-shadow: none !important; }

section.testimonials,
section.contact {
  border-radius: 26px !important;
}

.testimonial-card {
  background: var(--panel-2) !important;
  border: 1px solid var(--line);
  box-shadow: none !important;
}

.testimonial-author,
section.testimonials h2,
section.contact h2,
.contact-info h2,
.content h2 { color: var(--lime) !important; }

.modal { background: rgba(2, 16, 14, .94) !important; }
.modal-content { border: 4px solid #216558; box-shadow: 0 18px 55px rgba(0,0,0,.5) !important; }
.modal-close { background: var(--coral) !important; box-shadow: 0 5px 0 #9b383d !important; }

/* Privacy page */
.content { border-radius: 24px !important; }
.last-updated { color: #8395b5 !important; }
a { color: var(--sky); }

/* Lightweight cursor vignette: visible only on exposed background areas. */
.background-cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle 230px at var(--glow-x, 50%) var(--glow-y, 35%), rgba(79, 255, 190, .16), rgba(25, 128, 99, .06) 42%, transparent 72%);
  opacity: 0;
  transition: opacity .28s ease;
}

.background-cursor-glow.is-active { opacity: 1; }

.hero-layout > .background-cursor-glow {
  position: absolute;
  z-index: 1;
}

.hero-layout > .hero-copy,
.hero-layout > .featured-showcase,
.hero-layout > .featured-quick-grid {
  position: relative;
  z-index: 2;
}

.hero, .showcase, .about-founder, .about, footer, body > .container {
  position: relative;
  z-index: 4;
}

.reveal-ready,
.reveal-ready.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (max-width: 768px) {
  nav { position: static !important; }
  .hero { padding-top: 74px !important; min-height: 330px; }
  .hero-layout { display: flex !important; width: calc(100% - 28px); min-height: 0; }
  .hero-layout { padding: 54px 18px 38px !important; background-position: center top; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { text-align: center; }
  .hero-copy .subtitle { margin-inline: auto; text-align: center; }
  .hero-kicker { margin-inline: auto; }
  .featured-showcase { grid-template-columns: 1fr; width: 100%; padding: 22px; }
  .featured-details { align-items: center; text-align: center; }
  .featured-details .active-player-title, .featured-details p { text-align: center; }
  .featured-tags { justify-content: center; }
  .featured-showcase .player-column { justify-self: center; max-width: 290px; }
  .featured-quick-grid { grid-template-columns: 1fr; }
  .featured-quick-card { grid-template-columns: 120px 1fr; height: 225px; }
  .hero::before, .hero::after { opacity: .35; }
  .active-players-row { width: calc(100% - 28px) !important; padding: 28px 18px !important; }
  .creative-preview { grid-template-columns: 1fr; text-align: center; }
  .creative-preview-copy { display: flex; flex-direction: column; align-items: center; }
  .creative-preview .active-player-title, .creative-preview-copy p { text-align: center; }
  .creative-preview .player-column { justify-self: center; }
  .about-founder, .about { width: calc(100% - 28px); }
  .container > header { align-items: stretch !important; gap: 18px; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .hero-layout { grid-template-columns: minmax(330px, .8fr) minmax(500px, 1.2fr); padding-inline: 34px !important; }
  .hero-copy h1 { font-size: clamp(3rem, 5vw, 4.3rem) !important; }
  .featured-showcase { grid-template-columns: minmax(160px, .7fr) minmax(230px, 1fr); padding: 22px; }
  .featured-quick-card { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}
