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

html {
  scroll-behavior: smooth;
}

:root {
  --hero-lock-width: 100vw;
  --hero-lock-height: 100vh;
}

body {
  font-family: Arial, sans-serif;
  background: #0b0d12;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 40px);
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(11, 13, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d9deea;
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.hero {
  width: 100%;
  min-height: var(--hero-lock-height);
  height: var(--hero-lock-height);
  display: flex;
  align-items: center;
  padding: 120px 64px 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-unity {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b0d12;
}

#unity-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--hero-lock-width) !important;
  height: var(--hero-lock-height) !important;
  min-width: var(--hero-lock-width);
  min-height: var(--hero-lock-height);
  max-width: var(--hero-lock-width);
  max-height: var(--hero-lock-height);
  display: block;
  background: transparent;
  touch-action: pan-y;
}

.unity-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9deea;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.unity-loader.is-hidden {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(8, 10, 15, 0.26), rgba(8, 10, 15, 0.70)),
    radial-gradient(circle at 20% 20%, rgba(124, 145, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(89, 193, 255, 0.10), transparent 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-brand {
  margin-bottom: 24px;
  width: min(240px, 42vw);
}

.hero-brand-icon {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
  opacity: 0.98;
}

.tagline {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7ddeb;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.05;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 620px;
  font-size: 1.1rem;
  color: #d6dbea;
}

.section {
  padding: 80px 64px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.section p {
  max-width: 720px;
  color: #b8c2d3;
}

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

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #d7deff;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.games-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  overflow: visible;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.cards-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.cards-track::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 280px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.carousel-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.carousel-button:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.card-image {
  height: 220px;
  border-radius: 14px;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-one {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("assets/images/eclipse-cover.jpg");
}

.image-two {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("assets/images/ember-cover.jpg");
}

.image-three {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("assets/images/vale-cover.jpg");
}

.image-four {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("assets/images/nova-cover.jpg");
}

.image-five {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("assets/images/ashen-cover.jpg");
}

.image-six {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("assets/images/hollow-cover.jpg");
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.project-status,
.project-tag {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
}

.project-status {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-tag {
  background: rgba(124, 145, 255, 0.12);
  color: #d7deff;
  border: 1px solid rgba(124, 145, 255, 0.15);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: #b8c2d3;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card-link {
  display: inline-block;
  color: #ffffff;
  font-weight: bold;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-link:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateX(3px);
}

.about-section,
.contact-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-visual img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partners-showcase {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partners-label {
  margin-bottom: 18px;
  color: #d7deff;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.partners-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.partners-group {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
  padding-right: 22px;
}

.partner-logo {
  flex: 0 0 auto;
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.82;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.partner-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.04);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
}

.contact-text h2 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-button {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  background: #ffffff;
  color: #11131a;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0.98;
}

.contact-info {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.contact-visual img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.project-modal.is-open {
  display: block;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.88);
  backdrop-filter: blur(10px);
}

.project-modal__dialog {
  position: relative;
  width: min(96vw, 1400px);
  height: min(92vh, 860px);
  margin: 4vh auto;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0f14;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}

.project-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.project-modal__title {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-modal__close:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.04);
}

.project-modal__content {
  flex: 1;
  min-height: 0;
  background: #000000;
  position: relative;
}

.project-modal__content video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.project-modal__fallback {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  color: #d7dbe0;
}

.project-modal__fallback a {
  color: #ffffff;
  text-decoration: underline;
}

.footer {
  padding: 30px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8e99ac;
}

@media (max-width: 1100px) {
  .card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 900px) {
  .hero,
  .section,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: var(--hero-lock-height);
    height: var(--hero-lock-height);
    padding-top: 118px;
    padding-bottom: 34px;
  }

  .hero-content {
    max-width: 560px;
  }

  .hero-content h1,
  .about-text h2,
  .contact-text h2 {
    font-size: 2.05rem;
  }

  .hero-text,
  .section p,
  .card p,
  .about-text p,
  .contact-text p,
  .contact-info p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .tagline,
  .section-label,
  .partners-label,
  .project-status,
  .project-tag {
    font-size: 0.72rem;
  }

  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .floating-nav {
    width: calc(100% - 16px);
    top: 8px;
    padding: 10px 12px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    justify-content: center;
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .games-carousel {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
  }

  .carousel-viewport {
    min-width: 0;
    overflow: hidden;
  }

  .carousel-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.45rem;
    line-height: 1;
    flex-shrink: 0;
    z-index: 3;
  }

  .card {
    flex: 0 0 92%;
    min-width: 92%;
    padding: 14px;
  }

  .hero-brand {
    width: min(145px, 42vw);
  }

  .partner-logo {
    width: 132px;
    height: 72px;
    padding: 12px 14px;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-button {
    padding: 11px 18px;
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: var(--hero-lock-height);
    height: var(--hero-lock-height);
    padding-top: 112px;
    padding-bottom: 26px;
  }

  .hero-content h1,
  .about-text h2,
  .contact-text h2 {
    font-size: 1.72rem;
    line-height: 1.08;
  }

  .hero-text,
  .section p,
  .card p,
  .about-text p,
  .contact-text p,
  .contact-info p {
    font-size: 0.88rem;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section h2 {
    font-size: 1.55rem;
  }

  .card-image,
  .about-visual img,
  .contact-visual img {
    min-height: 200px;
    height: 200px;
  }

  .logo {
    gap: 8px;
    font-size: 0.82rem;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .hero-brand {
    width: min(120px, 40vw);
    margin-bottom: 16px;
  }

  .partners-group {
    gap: 12px;
    padding-right: 12px;
  }

  .games-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .carousel-button {
    display: flex !important;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    z-index: 3;
  }

  .card {
    flex: 0 0 90%;
    min-width: 90%;
  }

  .project-modal__dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .project-modal__header {
    padding: 14px 16px;
  }
}
