:root {
  scroll-padding-top: 5.125rem;
}

/* Scale content gently on wide layout viewports, including desktop zoom-out. */
@media (min-width: 1921px) {
  :root { font-size: clamp(100%, calc(100% + (100vw - 1920px) / 205), 200%); }
}

.company-site {
  --bg: #12111b;
  --panel: #1c1928;
  --line: #393249;
  --text: #f3eefb;
  --muted: #bfb6ce;
  --accent: #c8b3ff;
  --accent-hover: #ded0ff;
  --accent-border: #7966a0;
  --accent-surface: #312646;
  --ink: #211532;
  --cyan: var(--accent);
  --purple: #b6abd8;
  --content-width: 80rem;
  --hero-art-width: calc(var(--content-width) * 1.5);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: .9375rem;
  line-height: 1.65;
}

.company-site ::selection { color: var(--ink); background: var(--accent); }
.company-site .container { width: calc(100% - 2 * var(--gutter)); max-width: var(--content-width); margin-inline: auto; }
.company-site :is(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.company-site .skip-link:focus { color: var(--ink); background: var(--accent); }
.company-site main h2, .company-site .contact-row h2 { font-size: clamp(1.625rem, 2.5vw, 2.375rem); line-height: 1.3; font-weight: 700; }

/* Masthead and navigation */
.company-site .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #12111bf5;
  border-bottom: 1px solid #ffffff12;
  backdrop-filter: blur(1rem);
}
.company-site .header-inner { height: 4.25rem; gap: clamp(1.25rem, 3vw, 3.125rem); }
.company-site .brand { gap: .625rem; }
.company-site .logo-box { width: 2.375rem; height: 2.375rem; border-radius: .625rem; padding: 0; }
.company-site .logo-box img { width: 100%; height: 100%; object-fit: cover; }
.company-site .brand-wordmark { color: var(--text); font-size: 1.3125rem; font-weight: 700; letter-spacing: 1px; }
.company-site .desktop-nav { align-self: stretch; align-items: stretch; gap: 1.8125rem; margin: 0 0 0 auto; }
.company-site .nav-link { position: relative; display: flex; align-items: center; color: var(--muted); font-size: .875rem; }
.company-site .nav-link:hover, .company-site .nav-link.is-current { color: var(--accent-hover); }
.company-site .nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.company-site .header-cta { min-height: 2.5rem; padding: .5rem .875rem; border: 1px solid var(--line); border-radius: .4375rem; color: var(--text); font-size: .8125rem; gap: .625rem; }
.company-site .header-cta:hover { background: var(--accent-surface); border-color: var(--accent-border); }
.company-site .header-cta[aria-current], .company-site .mobile-nav a[aria-current] { color: var(--accent); border-color: var(--accent-border); }
.company-site .menu-toggle { display: none; }

/* Shared actions */
.company-site .button {
  min-height: 2.875rem;
  padding: .6875rem 1.25rem;
  border-radius: .4375rem;
  gap: .625rem;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: none;
  transition: background .18s, border-color .18s, color .18s;
}
.company-site .button:hover { transform: none; box-shadow: none; }
.company-site .button svg { width: 1.0625rem; height: 1.0625rem; }
.company-site .button-primary { background: var(--accent); color: var(--ink); border: 1px solid transparent; }
.company-site .button-primary:hover { background: var(--accent-hover); color: var(--ink); }
.company-site .button-secondary { color: var(--text); background: var(--panel); border: 1px solid var(--line); }
.company-site .button-secondary:hover { color: #fff; border-color: var(--accent-border); background: var(--accent-surface); }
#spotlight-play svg, #detail-play svg, .company-site .play-link svg { fill: currentColor; stroke-width: 1; }

/* Brand opening */
.studio {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #090b11;
  border-bottom: 1px solid #aeb8ff28;
}
.studio-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(31.25rem, 40.5vw, 46.25rem);
  padding-block: 2.625rem clamp(6.25rem, 10vw, 9.375rem);
}
.studio-copy h1 {
  margin: 0 0 clamp(1.25rem, 1.75vw, 1.8125rem);
  font-size: clamp(2.625rem, 4.7vw, 4.5625rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.035em;
  color: #f5f6fc;
  white-space: nowrap;
}
.studio-copy h1 span {
  color: #c9bbf8;
  background: linear-gradient(106deg, #cbd5ff, #b6a4f4 65%, #c1b6fb);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.studio-copy p {
  margin: 0;
  color: #b6bdce;
  font-size: .875rem;
  line-height: 2;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem clamp(1.125rem, 2vw, 2.125rem);
  margin-top: clamp(1.5rem, 3vw, 2.4375rem);
}
.company-site .studio-games {
  min-width: 10.5625rem;
  min-height: 3.0625rem;
  justify-content: space-between;
  border: 1px solid #a495e4;
  border-radius: .25rem;
  color: #fff;
  background: #715cc1;
}
.company-site .studio-games:hover { color: #fff; background: #816bd3; }
.studio-about {
  display: inline-flex;
  align-items: center;
  gap: 1.0625rem;
  min-height: 2.75rem;
  color: #d0d4e3;
  font-size: .875rem;
  white-space: nowrap;
}
.studio-about:hover { color: #d4c6ff; }
.studio-about svg { width: .9375rem; height: .9375rem; }
.studio-art {
  position: absolute;
  inset: 0;
  width: min(100%, var(--hero-art-width));
  margin-inline: auto;
  display: block;
  pointer-events: none;
}
.studio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}
.studio-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090b11 0%, #090b11cb 19%, #090b1138 40%, transparent 59%);
}
@media (forced-colors: active) {
  .studio-copy h1 span { -webkit-text-fill-color: CanvasText; }
}

/* Featured games */
.spotlight, .spotlight-cover { --scene-ink: #13243e; --scene-accent: #f4d39b; }
.spotlight {
  padding-top: clamp(2.5rem, 5vw, 4.75rem);
}
:is(.spotlight, .spotlight-cover)[data-scene="wlsdr"] { --scene-ink: #0c282a; --scene-accent: #f4d387; }
:is(.spotlight, .spotlight-cover)[data-scene="clgf"] { --scene-ink: #39261f; --scene-accent: #ffdb9b; }
:is(.spotlight, .spotlight-cover)[data-scene="hpxgfx"] { --scene-ink: #34202b; --scene-accent: #ffd19d; }
:is(.spotlight, .spotlight-cover)[data-scene="qkshd"] { --scene-ink: #102940; --scene-accent: #aeeaf8; }
.spotlight-controls {
  position: absolute; z-index: 1; inset: 0; pointer-events: none;
  --arrow-height: 50%;
}
.spotlight-controls button {
  position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  pointer-events: auto; border: 1px solid #ffffff60; border-radius: 50%;
  background: #121726d9; color: #faf7ff; box-shadow: 0 2px 10px #070b1640;
  transition: transform .16s, background .16s, color .16s, border-color .16s;
}
.spotlight-controls svg { width: 1.125rem; height: 1.125rem; stroke-width: 1.9; }
#spotlight-prev, #spotlight-next { top: var(--arrow-height); translate: 0 -50%; }
#spotlight-prev { left: var(--control-inset); }
#spotlight-next { right: var(--control-inset); }
#spotlight-toggle { top: var(--control-inset); right: var(--control-inset); }
#spotlight-toggle svg { width: 1rem; height: 1rem; }
#spotlight-prev svg { transform: rotate(180deg); }
.spotlight-stage {
  --control-inset: clamp(.75rem, 1.25vw, 1.25rem);
  position: relative; z-index: 1; display: flex; align-items: center;
  min-height: clamp(23rem, 35vw, 31.5rem); padding: clamp(2rem, 4.8vw, 4.75rem);
  padding-inline: max(clamp(2rem, 4.8vw, 4.75rem), calc(var(--control-inset) + 3.5rem));
  touch-action: pan-y pinch-zoom;
}
.spotlight-panel {
  position: absolute; z-index: -1; inset: 0; overflow: hidden;
  border: 1px solid #ffffff26; border-radius: .875rem;
  background: var(--scene-ink);
  box-shadow: 0 1rem 2.6rem -.9rem #03040c99;
}
.spotlight-art { position: absolute; z-index: -2; inset: 0; pointer-events: none; }
.spotlight-cover { position: absolute; inset: 0; isolation: isolate; background: var(--scene-ink); }
.spotlight-cover.is-current { z-index: 1; }
/* Blend the cover, blurred extension, and scene tint as one layer. */
.spotlight-cover::before {
  content: ""; position: absolute; z-index: -1; inset: -1.5rem;
  background: var(--cover-image, url("./art/yhyzl.webp")) center / cover no-repeat;
  filter: blur(1.5rem);
}
.spotlight-cover img {
  position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: 50% 46%;
}
.spotlight-cover[data-scene="clgf"] img { object-position: 50% 59%; }
.spotlight-cover[data-scene="wlsdr"] img { object-position: 50% 40%; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .spotlight-cover img {
    transform-origin: 56% 48%;
    transition: transform .65s cubic-bezier(.2, .65, .25, 1);
  }
  .spotlight-stage:hover .spotlight-cover img { transform: scale(1.045); }
}
.spotlight-cover::after, .spotlight-stage::after { content: ""; position: absolute; pointer-events: none; }
.spotlight-cover::after {
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--scene-ink) 64%, transparent) 14%, var(--scene-ink) 24%, transparent 75%),
              linear-gradient(0deg, #060c1be3, transparent 28%),
              linear-gradient(90deg, #070c16bb 22%, #070c1660 45%, transparent 68%);
}
.spotlight-stage::after {
  inset: 1rem; opacity: .7;
  background: linear-gradient(var(--scene-accent), var(--scene-accent)) left top / 1.6rem 1px no-repeat,
              linear-gradient(var(--scene-accent), var(--scene-accent)) left top / 1px 1.6rem no-repeat,
              linear-gradient(var(--scene-accent), var(--scene-accent)) right bottom / 1.6rem 1px no-repeat,
              linear-gradient(var(--scene-accent), var(--scene-accent)) right bottom / 1px 1.6rem no-repeat;
}
.spotlight-copy { width: min(49%, 34rem); }
.spotlight-genre { display: flex; align-items: center; gap: .75rem; color: var(--scene-accent); font-size: .875rem; font-weight: 650; letter-spacing: .14em; }
.spotlight-genre::before { content: ""; width: 1.9rem; height: 2px; background: currentColor; }
#spotlight-title {
  margin: .875rem 0 1rem; color: #fff9ef; font-family: "Songti SC", "STZhongsong", "Noto Serif CJK SC", SimSun, serif;
  font-size: clamp(3rem, 5vw, 5.1rem); line-height: 1.18; letter-spacing: .025em; font-weight: 700;
  text-shadow: 0 2px 1.25rem #080a1455;
}
#spotlight-description { color: #e8e8ee; max-width: 28em; font-size: clamp(.9375rem, 1.05vw, 1.0625rem); line-height: 1.85; white-space: pre-line; text-shadow: 0 1px 5px #0a0c1870; }
.spotlight-actions, .contact-actions, .company-site .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .625rem; }
.spotlight-actions { margin-top: clamp(1.375rem, 2.2vw, 2rem); }
.spotlight-actions .button { border-radius: .375rem; transition: transform .18s, background .18s, box-shadow .18s, border-color .18s; }
/* The clear fill samples the cover directly beneath the play button at any viewport size. */
#spotlight-play {
  background: transparent; color: #fff; border-color: #ffffff80;
  -webkit-backdrop-filter: blur(.75rem);
  backdrop-filter: blur(.75rem);
}
.spotlight-actions .button-secondary { background: #101623b8; border-color: #ffffff55; color: #fff; }
.spotlight-actions .button svg { transition: transform .18s; }
.spotlight-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.375rem, 1vw, .875rem); margin-top: .875rem; }
.scene-option {
  position: relative; display: flex; align-items: center; gap: clamp(.5rem, 1vw, 1rem); min-width: 0; overflow: hidden;
  padding: .375rem; text-align: left; background: #1b1925; color: #d4cfde; border: 1px solid #373242; border-radius: .5rem;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.scene-image { display: block; width: 34%; height: clamp(3.1rem, 4.5vw, 4rem); overflow: hidden; border-radius: .25rem; flex: none; }
.scene-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.84); transition: filter .2s; }
.scene-label { display: grid; gap: .125rem; }
.scene-label small { color: #b0a8be; font-size: .6875rem; letter-spacing: .03em; }
.scene-label strong { font-size: clamp(.75rem, 1.1vw, 1rem); font-weight: 620; white-space: nowrap; }
.scene-option::after {
  --selection-line: linear-gradient(var(--accent-hover), var(--accent-hover));
  content: "";
  position: absolute; z-index: 1; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--selection-line) left top / 100% 1px no-repeat,
              var(--selection-line) right top / 1px 100% no-repeat,
              var(--selection-line) right bottom / 100% 1px no-repeat,
              var(--selection-line) left bottom / 1px 100% no-repeat;
  opacity: 0; transition: opacity .16s ease-out;
}
.scene-option[aria-pressed="true"] { background: #282532; color: #fff9ef; border-color: var(--accent-border); }
.scene-option[aria-pressed="true"]::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .scene-option[aria-pressed="true"]::after { animation: scene-selection-frame .52s linear both; }
}
@keyframes scene-selection-frame {
  0% { background-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%; }
  36% { background-size: 100% 1px, 1px 0%, 0% 1px, 1px 0%; }
  50% { background-size: 100% 1px, 1px 100%, 0% 1px, 1px 0%; }
  86% { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0%; }
  100% { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; }
}
.scene-option[aria-pressed="true"] .scene-image img { filter: none; }
.scene-meter { position: absolute; inset: auto 0 0; height: 3px; background: var(--scene-accent); transform: scaleX(0); transform-origin: left; }
.spotlight-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) {
  .spotlight-controls button:hover { color: #1e182a; background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
  .spotlight-actions .button:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem #03081266; }
  #spotlight-play:hover { border-color: #fff; }
  .spotlight-actions .button-secondary:hover { background: #273043; border-color: var(--scene-accent); }
  .spotlight-actions .button:hover svg { transform: translateX(3px); }
  .scene-option:hover { background: #292534; border-color: #b5a9c6; box-shadow: 0 .45rem 1rem #08071199; }
  .scene-option:hover .scene-image img { filter: none; }
}
.spotlight .spotlight-controls button:active, .spotlight-actions .button:active { transform: translateY(1px) scale(.97); }
@media (min-width: 701px) and (max-width: 900px) {
  .spotlight-copy { width: 58%; }
  .scene-option { flex-direction: column; align-items: stretch; gap: .25rem; text-align: center; }
  .scene-image { width: 100%; height: 3rem; }
  .scene-label { padding-block: .125rem; }
  .scene-label small { display: none; }
}
@media (max-width: 700px) {
  .spotlight { padding-top: 2rem; }
  /* On phones the illustration sits above the copy. Keep the arrows inside the illustration. */
  .spotlight-controls { --arrow-height: clamp(5.375rem, 23.5vw, 8rem); }
  .spotlight-stage { align-items: flex-end; min-height: 0; padding: clamp(10.75rem, 47vw, 16rem) 1.25rem 1.5rem; }
  .spotlight-cover img {
    inset: 0 0 auto; width: 100%; height: clamp(15.75rem, 67vw, 24rem); object-position: 50% 41%;
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .spotlight-cover::after { background: linear-gradient(0deg, color-mix(in srgb, var(--scene-ink) 75%, transparent), var(--scene-ink) 33%, transparent 82%), linear-gradient(90deg, #070c1633, transparent 72%); }
  .spotlight-copy { width: 100%; }
  .spotlight-genre { gap: .5rem; font-size: .75rem; }
  .spotlight-genre::before { width: 1.25rem; }
  #spotlight-title { font-size: clamp(2.25rem, 8.5vw, 3.5rem); margin: .375rem 0 .625rem; }
  #spotlight-description { min-height: 4.95em; font-size: .875rem; line-height: 1.65; }
  .spotlight-actions { margin-top: 1rem; }
  .spotlight-actions .button { min-height: 2.75rem; padding-inline: .9375rem; font-size: .8125rem; }
  .spotlight-stage::after { inset: .625rem; background-size: 1rem 1px, 1px 1rem, 1rem 1px, 1px 1rem; }
  .spotlight-picker { margin-top: .5rem; }
  .scene-option { display: block; padding: .1875rem; border-radius: .375rem; }
  .scene-image { width: 100%; height: clamp(2.75rem, 12vw, 4.25rem); }
  .scene-label { display: none; }
}

/* Game library */
.catalog { padding-block: clamp(2.375rem, 4.2vw, 4.25rem) clamp(3.25rem, 5vw, 5rem); }
.catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.375rem; }
.file-preview-note {
  margin: 0 0 1rem;
  padding: .625rem .875rem;
  border-inline-start: 2px solid var(--accent);
  background: var(--panel);
  color: var(--muted);
  font-size: .875rem;
}
.company-site .filters {
  display: flex;
  gap: clamp(1.125rem, 1.8vw, 1.875rem);
  width: auto;
  border-bottom: 1px solid var(--line);
}
.company-site .filter {
  min-height: 2.75rem;
  padding: .375rem 3px .5rem;
  color: var(--muted);
  font-size: .875rem;
}
.company-site .filter:hover,
.company-site .filter.active { color: var(--accent); }
.company-site .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.375rem 1.125rem; }
.company-site .game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: none;
  transition: border-color .2s;
}
.company-site .game-card:hover, .company-site .game-card:focus-within { border-color: var(--accent-border); box-shadow: none; transform: none; }
.company-site .game-image-link {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1.66;
  background: var(--accent-surface);
}
.company-site .game-image-link::after { background: linear-gradient(180deg, #130d2320, transparent 40%); }
.company-site .game-image-link img { object-position: center 45%; transition: transform .4s ease-out; }
.company-site .game-card:hover .game-image-link img { transform: scale(1.025); }
.company-site .game-image-link:focus-visible { outline-offset: -3px; }
.company-site .game-image-badge.type-badge {
  top: .625rem;
  left: .625rem;
  right: auto;
  padding: 3px .5rem;
  border: 1px solid #ffffff3b;
  border-radius: .3125rem;
  background: #171122db;
  color: #fff;
  font-size: .6875rem;
  letter-spacing: 0;
}
.company-site .game-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 1.0625rem 1.0625rem .75rem; }
.company-site .game-card h3 { margin: 0; color: var(--text); font-size: clamp(1.1875rem, 1.55vw, 1.5rem); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.company-site .game-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: .5rem 0 .8125rem;
  min-height: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.75;
}
.company-site .game-card-bottom { margin-top: auto; padding-top: .5rem; border-top: 1px solid #ffffff14; gap: .5rem; flex-wrap: nowrap; }
.company-site .details-link, .company-site .play-link {
  min-height: 2.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 550;
  white-space: nowrap;
}
.company-site .details-link { color: var(--text); }
.company-site .details-link:hover { color: var(--accent); }
.company-site .details-link svg { width: .9375rem; height: .9375rem; }
.company-site .play-link { border: 1px solid var(--accent-border); background: var(--accent-surface); color: var(--accent); border-radius: .375rem; padding: .4375rem .6875rem; }
.company-site .play-link:hover { color: var(--ink); background: var(--accent); }
.company-site .play-link svg { width: .875rem; height: .875rem; }
.standalone-games { display: grid; gap: .5rem; padding-inline-start: 1.25rem; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .company-site .game-grid.is-revealing .game-card {
    animation: game-card-reveal 260ms ease-out var(--game-reveal-delay) backwards;
  }
  .company-site .game-grid.is-revealing .game-card h3 {
    width: fit-content;
    animation: game-title-reveal 240ms ease-out calc(var(--game-reveal-delay) + 65ms) backwards;
  }
  .company-site .game-grid.is-revealing .game-card-description {
    animation: game-description-reveal 300ms ease-out calc(var(--game-reveal-delay) + 145ms) backwards;
  }
  .company-site .game-grid.is-revealing .game-card:focus-within { opacity: 1 !important; }
}
@keyframes game-card-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes game-title-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes game-description-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* About and approach */
.about-wrap { padding-top: clamp(2.375rem, 4.2vw, 4.25rem); }
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 4rem);
  margin-bottom: clamp(2.25rem, 4.5vw, 4.125rem);
  padding: clamp(1.4375rem, 3.8vw, 3.25rem);
  border-block: 1px solid #c4bcf42e;
  background: linear-gradient(105deg, #25203b 0%, #1d192b 44%, #181622 100%);
}
.about-intro-heading {
  border-inline-start: 2px solid var(--purple);
  padding-inline-start: clamp(.8125rem, 1.3vw, 1.3125rem);
}
#about-title span { color: #d7cbff; }
.about-company-name {
  margin-top: .5625rem;
  color: #c7c8da;
  font-size: clamp(.875rem, 1.1vw, 1rem);
  font-weight: 550;
}
.about-intro-copy {
  max-width: 41em;
  color: var(--muted);
  font-size: clamp(.875rem, 1.12vw, 1rem);
  line-height: 1.8;
}
.about-intro-lead {
  color: var(--text);
  font-size: clamp(1.0625rem, 1.5vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.55;
}
.about-intro-lead strong { font-weight: 750; color: #dfd3ff; }
.about-intro-copy p + p { margin-top: .6875rem; }
.company-principles p, .contact-row p { color: var(--muted); font-size: .9375rem; line-height: 1.85; }
.approach { padding-bottom: clamp(2.625rem, 5vw, 4.5rem); }
.approach-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8.875rem, 16vw, 14.875rem);
  min-height: clamp(26.25rem, 33vw, 30.625rem);
  padding: clamp(1.5rem, 3.5vw, 3.125rem);
  background: #100e19;
  border: 1px solid #c4bcf433;
  border-radius: .75rem;
}
.section-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.approach-art { object-position: 40% center; }
.footer-art { width: min(100%, var(--hero-art-width)); margin-inline: auto; }
.approach-visual::before,
.company-site .footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.approach-visual::before {
  background: linear-gradient(180deg, #100e193b, #100e1900 43%, #100e197a 70%, #100e19e8),
              linear-gradient(90deg, #100e1945, transparent 58%);
}
.company-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.375rem, 3vw, 3.125rem); }
.company-principles article { border-top: 1px solid #ded0ff42; padding-top: 1.125rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .625rem .75rem; }
.principle-icon { width: 1.625rem; height: 1.625rem; color: var(--accent); stroke-width: 1.6; }
.company-principles h3 { font-size: 1.25rem; font-weight: 650; }
.company-principles p { grid-column: 1 / -1; max-width: 32em; }
/* Contact and footer share a single background */
.contact-row { padding-block: clamp(2.875rem, 5vw, 4.875rem) clamp(2rem, 4.2vw, 3.875rem); display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; }
.contact-row p { margin-top: .625rem; color: var(--muted); }
.contact-options { max-width: 100%; }
.contact-options .share-fallback { max-width: 24.375rem; }
.company-site .footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #130e1c;
  padding: 0 0 clamp(1.375rem, 3vw, 2rem);
  border: 0;
}
.company-site .footer::before {
  background: linear-gradient(180deg, #120e1b1a, #120e1b0a 42%, #120e1b77);
}
.company-site .footer-top { margin: 0; padding: 0 0 1.3125rem; justify-content: space-between; gap: 1.5rem; }
.company-site .footer-top > p { margin: 0 auto 0 0; color: var(--muted); font-size: .8125rem; }
.company-site .footer-links { display: flex; gap: 1.25rem; align-items: center; margin: 0; font-size: .8125rem; color: var(--muted); }
.company-site .footer-links a { min-height: 2.625rem; display: inline-flex; align-items: center; }
.company-site .footer-bottom {
  margin: 0;
  padding-top: 1.0625rem;
  padding-inline-end: max(0px, 4.5rem - var(--gutter));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid #ffffff18;
  color: var(--muted);
  font-size: .75rem;
}
.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .3125rem 1.25rem;
}
.footer-records a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  gap: .375rem;
  white-space: nowrap;
}
.public-security-badge { width: 1rem; height: auto; flex: none; }

/* Section timeline */
.page-timeline {
  position: fixed; z-index: 14; top: 50%; transform: translateY(-50%);
  right: max(clamp(.375rem, 1.1vw, 1.5rem), env(safe-area-inset-right));
}
.timeline-links, .timeline-toggle {
  background: #181423ed; color: #ede6ff; border: 1px solid #b4a0de60;
  box-shadow: 0 .375rem 1rem #07051145;
}
.timeline-links { display: grid; padding: .375rem 0; border-radius: 2rem; }
.timeline-links a {
  position: relative; display: grid; place-items: center;
  width: 1.875rem; height: clamp(1.625rem, 4vh, 2.5rem); border-radius: .375rem;
}
.timeline-links a::before, .timeline-links a::after {
  content: ""; position: absolute; left: 50%; top: 50%;
}
.timeline-links a:not(:last-child)::before {
  width: 1px; height: 100%; background: #5f546e; transform: translateX(-50%);
}
.timeline-links a:has(~ [aria-current="location"])::before { background: #b7a0dc; }
.timeline-links a::after {
  width: .46rem; height: .46rem; transform: translate(-50%, -50%);
  background: #30293c; border: 1px solid #b0a2c7; border-radius: 50%;
  transition: background .16s, box-shadow .16s, transform .16s;
}
.timeline-links a[aria-current="location"]::after {
  background: #e0caff; border-color: #eadcff;
  box-shadow: 0 0 0 3px #776498, 0 0 10px #c9acff70;
}
.timeline-links a:is(:hover, :focus-visible)::after { background: #efe5ff; transform: translate(-50%, -50%) scale(1.2); }
.timeline-toggle { display: none; }
@media (max-width: 700px), (max-height: 470px) {
  .page-timeline { right: env(safe-area-inset-right, 0px); }
  .timeline-toggle {
    display: grid; place-items: center; padding: .6rem .25rem; min-width: 1.625rem; min-height: 3.5rem;
    border-radius: .625rem 0 0 .625rem;
  }
  .timeline-toggle svg { width: 1rem; height: 1.75rem; }
  .timeline-toggle[aria-expanded="true"] { color: #241b30; background: var(--accent); }
  .timeline-toggle:not([hidden]) + .timeline-links {
    position: absolute; top: 50%; right: calc(100% + .375rem); transform: translateY(-50%);
    border-radius: .625rem; max-height: calc(100dvh - 2rem); overflow-y: auto;
  }
  .timeline-toggle:not([hidden])[aria-expanded="false"] + .timeline-links { display: none; }
  .timeline-toggle:not([hidden]) + .timeline-links a {
    width: 2.75rem; height: clamp(1.75rem, 6.8dvh, 2.75rem);
  }
}

.back-to-top {
  position: fixed;
  z-index: 15;
  inset-inline-end: max(clamp(.5rem, (5vw - 2.875rem) / 2, 1.75rem), env(safe-area-inset-right, 0px) + .5rem);
  inset-block-end: max(1rem, env(safe-area-inset-bottom, 0px) + .75rem);
  width: 2.875rem;
  height: 2.875rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-surface);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  box-shadow: 0 .375rem 1.25rem #0006;
  transition: background .18s, color .18s, border-color .18s;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.back-to-top svg { width: 1.25rem; height: 1.25rem; transform: rotate(-90deg); }

/* Work details */
.company-site .details-dialog, .company-site #player { color: var(--text); background: var(--panel); border-color: var(--line); }
.company-site dialog::backdrop { background: #090711de; backdrop-filter: blur(.4375rem); }
.company-site .details-dialog { width: min(68.75rem, 94vw); max-width: 94vw; border-radius: .875rem; }
.company-site .detail-topbar, .company-site .detail-footer, .company-site .player-topbar, .company-site .player-controls { background: #191624; border-color: var(--line); }
.company-site .detail-topbar { height: 3.375rem; padding-inline: 1.125rem; }
.company-site .detail-topbar > span { font-size: .875rem; color: var(--text); gap: .625rem; }
.company-site .detail-topbar > span > svg { color: var(--accent); }
.company-site .icon-button { width: 2.75rem; height: 2.75rem; color: var(--text); }
.company-site .icon-button:hover { background: var(--accent-surface); }
.company-site .detail-body {
  display: grid;
  grid-template-columns: 0.97fr 1.03fr;
  grid-template-areas: "media intro" "media notes";
  grid-template-rows: auto 1fr;
  scrollbar-color: var(--accent-border) #191624;
}
.detail-intro { grid-area: intro; padding: 1.625rem 1.875rem 0; }
#detail-genre { color: var(--accent); font-size: .8125rem; font-weight: 600; }
#detail-title { font-size: clamp(1.6875rem, 2.5vw, 2.3125rem); line-height: 1.32; margin: .375rem 0 .625rem; }
#detail-description { color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.company-site .detail-actions { margin: 1.125rem 0 0; }
.company-site .share-status { min-height: 0; margin: .5625rem 0 0; color: var(--accent); font-size: .8125rem; }
.company-site .share-status:empty { margin: 0; }
.company-site .share-fallback label { font-size: .8125rem; color: var(--muted); }
.company-site .share-fallback input { background: #12101d; border-color: var(--accent-border); color: var(--text); font-size: .875rem; min-width: 0; }
.company-site .detail-visuals { grid-area: media; min-width: 0; padding: 1.5rem; background: #12101b; border-color: var(--line); }
.company-site .detail-visuals img { border: 1px solid #ffffff20; border-radius: .4375rem; }
.company-site .detail-visuals figcaption { color: var(--muted); font-size: .75rem; letter-spacing: 0; margin-top: .5rem; }
.detail-notes { grid-area: notes; min-width: 0; padding: 0 1.875rem 1.5625rem; }
.company-site .detail-subsection { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.company-site .detail-subsection h3 { font-weight: 650; color: var(--text); font-size: 1rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin: .5625rem 0 .6875rem; }
.detail-tags span { padding: 2px .5rem; border-radius: .25rem; color: var(--accent-hover); background: var(--accent-surface); font-size: .75rem; }
.company-site .detail-subsection ul { gap: .3125rem; }
.company-site .detail-subsection li, .company-site .detail-guide p { color: var(--muted); font-size: .875rem; line-height: 1.75; }
.company-site .detail-subsection li::before { background: var(--accent); top: .8em; }
.company-site .detail-save-note { margin-top: .9375rem; font-size: .75rem; color: var(--muted); }
.company-site .detail-footer { min-height: 3.0625rem; height: 3.0625rem; padding-inline: 1.125rem; }
.company-site .detail-footer button { min-height: 2.75rem; font-size: .8125rem; color: var(--text); }
.company-site #detail-index { margin: 0; color: var(--muted); font: .75rem/1.5 system-ui, sans-serif; }

/* Player chrome; screen dimensions follow the native game viewport. */
.company-site .player-stage { background: #100e18; }
.company-site .player-info, .company-site .player-loading, .company-site .player-window:fullscreen { background: var(--panel); }
.company-site .player-info { border-color: var(--line); }
.company-site .player-info > img { margin-top: 0; }
.company-site .player-category { color: var(--accent); font-size: .8125rem; }
.company-site .player-info > p:not(.eyebrow), .company-site .play-guide p { color: var(--muted); font-size: .875rem; }
.company-site .play-guide > span { color: var(--accent); font-size: .8125rem; letter-spacing: 0; }
.company-site .player-info .save-hint { color: var(--muted) !important; font-size: .75rem !important; }
.company-site .player-layout-hint { color: var(--text); background: var(--accent-surface); }
.company-site .player-loading p, .company-site .player-controls > span { color: var(--muted); }
.company-site .control-button { color: var(--text); min-height: 2.25rem; font-size: .75rem; }
.company-site .control-button:hover { color: var(--accent); }
.company-site .loader { border-color: var(--line); border-top-color: var(--accent); }
.company-site .status-dot { background: var(--accent); box-shadow: none; }
#player-progress { width: min(16.25rem, 75%); height: .5rem; accent-color: var(--accent); }
.company-site .toast { background: var(--accent-surface); border-color: var(--accent-border); color: var(--text); z-index: 100; }

@media (min-width: 1921px) {
  .studio-art img { object-position: center 43%; }
  .studio-art::after {
    background: linear-gradient(90deg, #090b11 0%, #090b11cb 19%, #090b1138 40%, transparent 59%, transparent 92%, #090b11);
  }
  .footer-art { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .company-site #player { width: 65.625rem; max-width: 96vw; height: min(57.5rem, 94dvh); }
  .company-site #player.landscape-player { width: 90rem; }
  .company-site .player-topbar { height: 3.75rem; }
  .company-site .player-topbar strong { font-size: .875rem; }
  .company-site .player-controls { height: 3.1875rem; }
  .company-site .player-controls > span { font-size: .625rem; }
  .company-site .player-info { width: 18.4375rem; }
}

@media (max-width: 1099px) {
  .company-site .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-site .game-card-body { padding-inline: .9375rem; }
  .company-site .detail-visuals { padding: 1.25rem 1rem; gap: .625rem; }
  .detail-intro { padding: 1.4375rem 1.375rem 0; }
  .detail-notes { padding: 0 1.375rem 1.375rem; }
}
@media (max-width: 900px) {
  .company-site .desktop-nav { display: none; }
  .company-site .header-inner { gap: 1rem; }
  .company-site .header-cta { margin-left: auto; }
  .company-site .menu-toggle {
    width: 2.75rem; height: 2.75rem; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 0; margin: 0; background: transparent; gap: .375rem;
  }
  .company-site .menu-toggle span { width: 1.375rem; height: 1px; display: block; background: var(--text); }
  .company-site .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .company-site .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .company-site .mobile-nav {
    position: absolute; top: 100%; inset-inline: 0; padding: .4375rem var(--gutter) .75rem;
    background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 .9375rem 1.75rem #0004;
  }
  .company-site .mobile-nav a { min-height: 2.75rem; color: var(--text); padding: .625rem 0; }
  .company-site .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
  .company-site .game-card-bottom { justify-content: flex-start; gap: .625rem; }
  .company-site .footer-top > p { display: none; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .studio-copy { max-width: 48%; }
  .studio-art::after {
    background: linear-gradient(90deg, #090b11, #090b11e8 27%, #090b11ad 44%, transparent 73%);
  }
}

@media (max-width: 700px) {
  :root { scroll-padding-top: 4.375rem; }
  .company-site { --gutter: clamp(1rem, 4.5vw, 1.75rem); }
  .company-site .header-inner { height: 3.625rem; }
  .company-site .brand-wordmark { font-size: 1.1875rem; }
  .company-site .logo-box { width: 2.125rem; height: 2.125rem; }
  .company-site .header-cta { display: none; }
  .company-site .menu-toggle { margin-left: auto; }
  .catalog { padding-block: 1.875rem 2.5rem; }
  .catalog-header { display: block; margin-bottom: .9375rem; }
  .company-site .filters { margin-top: .625rem; width: 100%; gap: .5rem; }
  .company-site .filter { flex: 1; padding-inline: 2px; font-size: .8125rem; }
  .studio-layout { display: block; min-height: 0; padding-block: clamp(2rem, 7vw, 3rem) 0; }
  .studio-copy h1 { font-size: clamp(2.25rem, 10.6vw, 3.4375rem); margin-bottom: 1rem; }
  .studio-copy p { font-size: clamp(.8125rem, 3.5vw, .9375rem); line-height: 1.8; }
  .studio-actions { margin-top: 1.3125rem; }
  .company-site .studio-games { min-width: 0; min-height: 2.75rem; padding-inline: .875rem; gap: .75rem; }
  .studio-about { gap: .5625rem; font-size: .8125rem; }
  .studio-art {
    position: relative;
    inset: auto;
    height: clamp(12.5rem, 61vw, 20rem);
    margin: .5625rem auto 3px;
    mix-blend-mode: lighten;
    mask-image: linear-gradient(0deg, transparent, #000 12%, #000 95%, transparent);
  }
  .studio-art img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .studio-art::after { display: none; }
  .about-intro { grid-template-columns: 1fr; gap: 1.3125rem; }
  .approach-visual {
    gap: clamp(7.3125rem, 39vw, 13.625rem);
    min-height: 0;
  }
  .approach-art,
  .approach-visual::before { height: clamp(15rem, 68vw, 21.875rem); }
  .approach-art { object-position: 57% center; }
  .approach-visual::before { background: linear-gradient(180deg, #100e1980, #100e191a 35%, #100e19 100%); }
  .company-principles { grid-template-columns: 1fr; gap: 1rem; }
  .company-principles article { padding-top: .8125rem; gap: .25rem .625rem; }
  .company-principles p { grid-column: 2; }
  .company-principles h3 { font-size: 1.125rem; }
  .company-principles p, .contact-row p { font-size: .875rem; }
  .principle-icon { width: 1.5rem; height: 1.5rem; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 1.125rem; }
  .contact-actions .button { padding-inline: .875rem; }
  .back-to-top { inset-inline-end: max(.75rem, env(safe-area-inset-right, 0px) + .5rem); }
  .company-site .footer-top { flex-wrap: wrap; gap: .75rem; padding-bottom: .75rem; }
  .company-site .footer-links { width: 100%; justify-content: space-between; gap: .5rem; }
  .company-site .footer-bottom { flex-direction: column; align-items: flex-start; gap: .3125rem; }
  .footer-records { flex-direction: column; align-items: flex-start; gap: 2px; }
  .company-site .details-dialog { width: 100vw; max-width: 100vw; border-radius: 0; }
  .company-site .detail-topbar { padding-inline: .875rem; }
  .company-site .detail-body { display: block; }
  .detail-intro { padding: 1.1875rem var(--gutter) 1.25rem; }
  .company-site .detail-actions { margin-top: .875rem; }
  .company-site .detail-visuals { padding: 1.125rem var(--gutter); gap: .75rem; border-block: 1px solid var(--line); }
  .company-site .detail-visuals figure { max-width: 7.8125rem; }
  .company-site .landscape-details .detail-visuals { flex-direction: column; }
  .company-site .landscape-details .detail-visuals figure { max-width: 28.75rem; }
  .detail-notes { padding: 0 var(--gutter) 1.25rem; }
  .company-site .detail-notes .detail-subsection:first-child { border: 0; padding: 0; }
  .company-site .detail-footer { padding-inline: var(--gutter); }
  .company-site .control-button { font-size: .6875rem; }
}
@media (min-width: 701px) and (max-height: 540px) {
  .studio-layout { min-height: calc(100svh - 4.25rem); padding-block: 2rem; }
  .studio-copy h1 { font-size: clamp(2.625rem, 4.8vw, 4rem); margin-bottom: .875rem; }
  .studio-copy p { font-size: .9375rem; line-height: 1.65; }
  .studio-actions { margin-top: 1rem; }
}
@media (max-width: 599px) {
  .company-site .game-grid { grid-template-columns: 1fr; gap: .75rem; }
  .company-site .game-card { display: grid; grid-template-columns: clamp(5.625rem, 29vw, 9.625rem) minmax(0, 1fr); }
  .company-site .game-image-link { width: 100%; height: 100%; aspect-ratio: auto; }
  .company-site .game-image-link img { position: absolute; inset: 0; }
  .company-site .game-image-badge.type-badge { top: .4375rem; left: .4375rem; padding: 2px .3125rem; font-size: .625rem; }
  .company-site .game-card-body { padding: .75rem .75rem .4375rem; }
  .company-site .game-card h3 { font-size: 1.1875rem; }
  .company-site .game-card-description { font-size: .8125rem; line-height: 1.65; margin: .25rem 0 .4375rem; }
  .company-site .game-card-bottom { padding-top: .25rem; }
  .company-site .details-link, .company-site .play-link { min-height: 2.75rem; font-size: .75rem; gap: .25rem; }
  .company-site .play-link { padding: .375rem .5625rem; }
  .company-site .details-link svg { width: .8125rem; height: .8125rem; }
}
@media (max-width: 370px) {
  .company-site .game-card { grid-template-columns: 5.125rem minmax(0, 1fr); }
  .company-site .game-card-body { padding-inline: .5625rem; }
  .company-site .details-link svg { display: none; }
  .company-site .detail-actions .button { padding-inline: .875rem; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .company-site *, .company-site *::before, .company-site *::after { animation: none !important; transition: none !important; }
}
