/* Homepage themes selected from the admin settings page. */
body.home-page[data-site-theme="minimal"] {
  --theme-page: #f2f4f6;
  --theme-text: #20252c;
  --theme-muted: #68717c;
  --theme-line: #cdd3da;
  --theme-panel: #fff;
  --theme-accent: #315f91;
  --theme-nav: #f7f8f9;
  --theme-hero: #071322;
  --theme-hero-image: 1;
  --theme-hero-filter: saturate(.9) contrast(1.08) brightness(.72);
  --theme-hero-overlay: linear-gradient(90deg, rgba(4,13,24,.5), rgba(12,32,50,.3) 48%, rgba(4,13,24,.1)), linear-gradient(180deg, rgba(0,0,0,.04), transparent 24%, rgba(0,0,0,.25));
  --theme-core: #fff;
  --theme-core-muted: #58616c;
  --theme-contact: #e8ebee;
  --theme-radius: 0;
  --theme-shadow: none;
  --theme-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --theme-product-filter: brightness(.78) saturate(.8);
}

body.home-page[data-site-theme="apple"] {
  --theme-page: #fff;
  --theme-text: #1d1d1f;
  --theme-muted: #6e6e73;
  --theme-line: #e3e3e8;
  --theme-panel: #fff;
  --theme-accent: #0071e3;
  --theme-nav: rgba(251,251,253,.92);
  --theme-hero: #081426;
  --theme-hero-image: 1;
  --theme-hero-filter: saturate(.98) contrast(1.08) brightness(.72);
  --theme-hero-overlay: linear-gradient(90deg, rgba(5,14,28,.5), rgba(17,37,62,.3) 48%, rgba(5,14,28,.1)), linear-gradient(180deg, rgba(0,0,0,.04), transparent 24%, rgba(0,0,0,.25));
  --theme-core: #f5f5f7;
  --theme-core-muted: #55555a;
  --theme-contact: #f5f5f7;
  --theme-radius: 28px;
  --theme-shadow: 0 12px 36px rgba(29,29,31,.055);
  --theme-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  --theme-product-filter: brightness(.9) saturate(.88);
}

body.home-page[data-site-theme="ink"] {
  --theme-page: #e9e9e3;
  --theme-text: #292d2a;
  --theme-muted: #676c68;
  --theme-line: #bfc2bc;
  --theme-panel: #f4f4ee;
  --theme-accent: #40564d;
  --theme-nav: rgba(240,240,234,.95);
  --theme-hero: #111c18;
  --theme-hero-image: 1;
  --theme-hero-filter: grayscale(.24) contrast(1.1) brightness(.72);
  --theme-hero-overlay: linear-gradient(90deg, rgba(10,20,17,.52), rgba(20,36,32,.31) 48%, rgba(9,17,14,.1)), linear-gradient(180deg, rgba(0,0,0,.04), transparent 24%, rgba(0,0,0,.25));
  --theme-core: #f0f0ea;
  --theme-core-muted: #555b56;
  --theme-contact: #dedfd8;
  --theme-radius: 3px;
  --theme-shadow: none;
  --theme-font: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --theme-product-filter: grayscale(.82) contrast(.94) brightness(.9);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) {
  color: var(--theme-text);
  background: var(--theme-page);
  font-family: var(--theme-font);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .nav {
  background: var(--theme-nav);
  border-bottom-color: var(--theme-line);
  backdrop-filter: none;
}

body.home-page[data-site-theme="apple"] .nav { backdrop-filter: blur(24px) saturate(180%); }

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-hero {
  color: #fff;
  background: var(--theme-hero);
  border-bottom: 1px solid var(--theme-line);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-hero-media img {
  filter: var(--theme-hero-filter);
  opacity: var(--theme-hero-image);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-hero-overlay {
  background: var(--theme-hero-overlay);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-brand-lockup h1 {
  color: #fff;
  font-family: var(--theme-font);
  text-shadow: 0 18px 48px rgba(0,0,0,.34);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-brand-en,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-recommendation-meta,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-contact-panel .section-kicker,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-game-strip .section-kicker {
  color: var(--theme-accent);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-brand-caption {
  color: rgba(235,247,255,.84);
  text-shadow: 0 6px 24px rgba(0,0,0,.42);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-brand-en {
  color: #a9dcff;
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-carousel,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-recommendation-slide,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-recommendation-slide:nth-child(2) {
  color: var(--theme-text);
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  background: var(--theme-core);
  box-shadow: var(--theme-shadow);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-recommendation-content h3 {
  color: var(--theme-text);
  font-family: var(--theme-font);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-recommendation-content > p,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-recommendation-meta span + span,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-capabilities li {
  color: var(--theme-core-muted);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-recommendation-media:after {
  background: linear-gradient(90deg, rgba(8,20,32,.02), rgba(8,20,32,.14));
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-capabilities li {
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  background: var(--theme-panel);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-capabilities li:before {
  background: var(--theme-accent);
  box-shadow: none;
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-carousel-controls {
  border-color: var(--theme-line);
  border-radius: 0 0 var(--theme-radius) var(--theme-radius);
  background: var(--theme-core);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .core-carousel-arrow {
  color: var(--theme-text);
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  background: var(--theme-panel);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-product-card,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-app-card,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .pricing-card,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .message-board,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .apply-panel {
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  background: var(--theme-panel);
  box-shadow: var(--theme-shadow);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-product-visual img,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-app-card figure img {
  filter: var(--theme-product-filter);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-contact-panel,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-game-strip {
  color: var(--theme-text);
  border: 1px solid var(--theme-line);
  border-radius: var(--theme-radius);
  background: var(--theme-contact);
  box-shadow: var(--theme-shadow);
}

body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-contact-panel p:not(.section-kicker),
body.home-page:is([data-site-theme="minimal"], [data-site-theme="apple"], [data-site-theme="ink"]) .home-game-strip p:not(.section-kicker) {
  color: var(--theme-muted);
}

body.home-page[data-site-theme="minimal"] .home-contact-panel .section-kicker,
body.home-page[data-site-theme="minimal"] .home-game-strip .section-kicker { color: var(--theme-accent); }

body.home-page:is([data-site-theme="minimal"], [data-site-theme="ink"]) input,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="ink"]) textarea,
body.home-page:is([data-site-theme="minimal"], [data-site-theme="ink"]) select,
body.home-page[data-site-theme="minimal"] .button {
  border-radius: var(--theme-radius);
}

.home-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-media [hidden] { display: none !important; }

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-hero {
  color: #1d1d1f;
  background: #f4f6f8;
}

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-hero-media img,
html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-hero-media video {
  filter: none;
  transform: scale(1.02);
}

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-hero-overlay {
  background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(255,255,255,.3) 31%, rgba(255,255,255,.08) 58%, transparent), linear-gradient(180deg, rgba(255,255,255,.04), transparent 78%, rgba(255,255,255,.12));
}

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-brand-lockup h1 {
  color: #1d1d1f;
  text-shadow: 0 2px 18px rgba(255,255,255,.3);
}

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-brand-en {
  color: #0071e3;
}

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-brand-caption {
  color: rgba(29,29,31,.8);
  text-shadow: none;
}

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .matrix-rain {
  opacity: .08;
  mix-blend-mode: multiply;
}

html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .vgs-visual {
  opacity: .2;
  mix-blend-mode: multiply;
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-hero {
  color: #292d2a;
  background: #e9e9e3;
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-hero-media img,
html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-hero-media video {
  filter: none;
  transform: scale(1.02);
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-hero-overlay {
  background: linear-gradient(90deg, rgba(244,244,238,.48), rgba(244,244,238,.32) 33%, rgba(244,244,238,.08) 60%, transparent), linear-gradient(180deg, rgba(244,244,238,.05), transparent 78%, rgba(244,244,238,.14));
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-brand-lockup h1 {
  color: #292d2a;
  text-shadow: 0 2px 18px rgba(244,244,238,.34);
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-brand-en {
  color: #40564d;
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-brand-caption {
  color: rgba(41,45,42,.82);
  text-shadow: none;
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .matrix-rain {
  opacity: .06;
  mix-blend-mode: multiply;
}

html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .vgs-visual {
  opacity: .17;
  mix-blend-mode: multiply;
}

html[data-site-theme="minimal"] body.home-page[data-site-theme="minimal"] .home-hero-media img,
html[data-site-theme="minimal"] body.home-page[data-site-theme="minimal"] .home-hero-media video {
  filter: none;
  transform: scale(1.02);
}

html[data-site-theme="minimal"] body.home-page[data-site-theme="minimal"] .home-hero-overlay {
  background: linear-gradient(90deg, rgba(4,12,24,.3), rgba(4,12,24,.16) 36%, rgba(4,12,24,.02) 66%, transparent), linear-gradient(180deg, transparent 76%, rgba(0,0,0,.16));
}

@media (max-width: 680px) {
  html[data-site-theme]:not([data-site-theme="tech"]) body.home-page .home-hero {
    min-height: min(60vh, 500px);
  }

  html[data-site-theme]:not([data-site-theme="tech"]) body.home-page .home-brand-lockup {
    transform: translateY(-72px);
  }

  html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-hero-media img,
  html[data-site-theme="apple"] body.home-page[data-site-theme="apple"] .home-hero-media video,
  html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-hero-media img,
  html[data-site-theme="ink"] body.home-page[data-site-theme="ink"] .home-hero-media video,
  html[data-site-theme="minimal"] body.home-page[data-site-theme="minimal"] .home-hero-media img,
  html[data-site-theme="minimal"] body.home-page[data-site-theme="minimal"] .home-hero-media video {
    object-position: center center;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  html[data-site-theme]:not([data-site-theme="tech"]) body.home-page .home-brand-lockup {
    transform: translateY(-40px);
  }
}
