﻿/* Custom art pass for Web landing page */
@font-face {
  font-family: "PixelOperator";
  src: url("../fonts/PixelOperator.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "PixelOperator";
  src: url("../fonts/PixelOperator-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --panel-bg: rgba(0, 0, 0, 0.5);
  --text: #f4f4f4;
  --muted: #d8d8d8;
  --accent: #ffe082;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: url("../images/background.png") center center / cover no-repeat fixed;
  color: var(--text);
  font-family: "PixelOperator", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.content-panel {
  background: var(--panel-bg);
  border-radius: 14px;
  padding: 20px;
  box-sizing: border-box;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-logo {
  display: block;
  width: 37.5%;
  max-width: 315px;
  min-width: 160px;
  height: auto;
  margin: 0;
}

.hero-title {
  text-align: right;
}

.hero-title p {
  margin: 0;
}

.hero-title-line1 {
  font-size: clamp(26px, 3.4vw, 40px);
  color: #eaeaea;
  letter-spacing: 1px;
}

.hero-title-line2 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  color: #ffffff;
}

#unity-container {
  position: relative;
}

#unity-container.unity-desktop {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
}

#unity-container.unity-mobile {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
}

#unity-canvas {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  display: block;
}

#unity-container.unity-mobile #unity-canvas {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto;
}

#unity-loading-bar {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#unity-warning {
  background: transparent;
  padding: 0;
}

#unity-logo-title-footer {
  background: #ffffff !important;
  background-image: none !important;
  -webkit-mask: url("../../TemplateData/unity-logo-title-footer.png") no-repeat center / contain;
  mask: url("../../TemplateData/unity-logo-title-footer.png") no-repeat center / contain;
}

#unity-build-title {
  font-family: "PixelOperator", "PixelOperatorMono", "Microsoft YaHei", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.mobile-notice {
  margin: 14px auto 0;
  text-align: center;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
}

.start-gate {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
}

#start-game-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: "PixelOperator", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1b1b1b;
  background: #ffe082;
  cursor: pointer;
}

#start-game-btn:hover {
  filter: brightness(1.06);
}

.section-title {
  margin: 22px 0 10px;
  text-align: center;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 1px;
}

.section-body {
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
}

.section-body-strong {
  margin-top: 8px;
  font-weight: 700;
  color: #ffffff;
}

.overview-media {
  width: 75%;
  margin: 16px auto 0;
  border-radius: 10px;
  display: block;
}

.trailer-media {
  width: 100%;
  max-width: 960px;
  margin: 16px auto 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  padding-top: 0;
}

@supports not (aspect-ratio: 16 / 9) {
  .trailer-media {
    height: 0;
    padding-top: 56.25%;
  }
}

.trailer-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.trailer-loading {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
}

.brand-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.brand-row img {
  width: 100%;
  background: #ffffff;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
  display: block;
}

.intro-stack {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.intro-stack img {
  width: 75%;
  margin: 0 auto;
  border-radius: 10px;
  display: block;
}

.links-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.links-label {
  font-size: 24px;
  color: #ffffff;
  margin-right: 2px;
}

.links-footer a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
}

.links-footer img {
  width: 48px;
  height: 48px;
  display: block;
}

.copyright-text {
  margin: 12px 0 0;
  text-align: left;
  font-size: 18px;
  color: #cfcfcf;
}

@media (max-width: 980px) {
  .content-panel {
    padding: 14px;
  }

  .section-body {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    text-align: left;
  }

  .mobile-notice {
    font-size: 16px;
  }

  body {
    background-attachment: scroll;
  }
}

@media (max-width: 864px) {
  .brand-row {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .overview-media {
    width: 100%;
  }

  .trailer-media {
    width: 100%;
    max-width: none;
  }

  .intro-stack img {
    width: 100%;
  }
}
