:root {
  color-scheme: dark;
  --page-background: linear-gradient(120deg, #171044 0%, #29185b 45%, #4f288c 100%);
  --text-color: #fff;
  --accent: #e9c36b;
  --header-height: 108px;
  --page-gap: 24px;
  font-family: "Basier Circle", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  background: var(--page-background);
  -webkit-text-size-adjust: 100%;
}

@font-face {
  font-family: "Basier Circle";
  src: url("./_nuxt/fonts/BasierCircle-Regular.d5326df.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Basier Circle";
  src: url("./_nuxt/fonts/BasierCircle-SemiBold.a05b38a.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--page-background); background-attachment: fixed; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, main:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; background: #272321; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-height); background: #272321; }
.header-inner { width: min(80%, 1540px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { flex-shrink: 0; width: min(25%, 379px); }
.brand-artwork { display: block; width: 100%; height: auto; }
.market-navigation { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 32px); white-space: nowrap; }
.market-list { display: flex; align-items: center; gap: inherit; }
.market-link { display: block; padding: 12px 0; font-size: clamp(16px, 1.25vw, 24px); font-weight: 500; transition: color 150ms; }
.market-link:hover, .market-link[aria-current] { color: #fff; }
.menu-toggle, .menu-backdrop { display: none; }

.home-layout { width: min(80%, 1316px); margin: 50px auto 64px; }
.market-heading { margin: 0 0 28px; color: #fff; font-size: 48px; font-weight: 500; line-height: 1.4; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; }
.product-card { min-width: 0; overflow: hidden; aspect-ratio: .97; padding: 10px 6px 6px; background: #0d0827b3; border-radius: 15px; transition: box-shadow 150ms, transform 150ms; }
.product-card:hover { box-shadow: 0 6px 24px #09051d66; transform: translateY(-3px); }
.product-card img { width: 100%; aspect-ratio: 329 / 234; object-fit: cover; }
.product-card h2 { margin: 8px 0 0; color: #fff; font-size: 20px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.empty-state { margin: 24px 0 0; min-height: 240px; display: grid; place-content: center; text-align: center; padding: 24px; background: #0d0827b3; border-radius: 15px; }
.empty-state h1 { font-size: 24px; margin: 0 0 12px; }
.empty-state p { margin: 0; font-size: 16px; }

.detail-layout { width: min(80%, 1316px); margin: 50px auto 64px; }
.product-breadcrumb { margin: 0 0 20px; color: #ded9ea; font-size: 16px; line-height: 1.6; }
.product-breadcrumb a { color: var(--accent); }
.detail-panel { padding: 26px 28px 32px; border-radius: 20px; background: #0d0827b3; }
.detail-panel h1 { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid #e9c36b40; color: var(--accent); font-size: 44px; font-weight: 600; line-height: 1.35; }
.product-description { margin: 0 0 24px; color: #ded9ea; font-size: 24px; font-weight: 400; line-height: 1.65; overflow-wrap: break-word; }
.featured-games, .platform-section { margin: 0 0 32px; }
.platform-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: #ded9ea; font-size: clamp(14px, 1.4vw, 22px); line-height: 1.65; overflow-wrap: anywhere; }
.featured-games__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 36px; margin: 0; padding-left: 1.5em; color: #ded9ea; font-size: clamp(14px, 1.4vw, 22px); line-height: 1.65; overflow-wrap: anywhere; }
.product-experience { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0 0 32px; font-size: 22px; font-weight: 500; line-height: 1.6; }
.product-experience__title { flex-shrink: 0; }
.product-experience__links { flex: 1 1 280px; min-width: 0; }
.product-experience__item { margin: 0; overflow-wrap: anywhere; }
.product-experience__item + .product-experience__item { margin-top: 8px; }
.product-experience a { color: #159fff; }
.product-experience a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-title { display: table; margin: 0 0 24px; padding-bottom: 2px; border-bottom: 5px solid var(--accent); font-size: 38px; font-weight: 500; line-height: 1.25; }
.screenshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 20px; }
.screenshot-button { display: block; min-width: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.screenshot-button--wide { grid-column: 1 / -1; }
.screenshot-button img { width: 100%; height: auto; }
.product-artwork { width: 100%; border-radius: 12px; }
.not-found { margin: 80px auto; padding: 24px; text-align: center; }
.not-found a { display: inline-block; margin-top: 16px; color: var(--accent); }
.noscript-message { padding: 24px; text-align: center; }

.image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px 64px; border: 0; background: #111111ed; color: #fff; overflow: hidden; }
.image-viewer[open] { display: grid; place-items: center; }
.image-viewer::backdrop { background: #000b; }
.viewer-image { max-width: 100%; max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; }
.viewer-close, .viewer-arrow { position: absolute; border: 0; background: #ffffff18; color: #fff; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.viewer-close { top: 12px; right: 16px; font-size: 32px; }
.viewer-arrow { top: calc(50% - 22px); font-size: 36px; }
.viewer-previous { left: 12px; }
.viewer-next { right: 12px; }
.viewer-caption { position: absolute; bottom: 12px; margin: 0; width: 100%; text-align: center; font-size: 14px; }
body.has-overlay { overflow: hidden; }

@media (min-width: 1101px) and (max-width: 1550px) {
  .header-inner { width: 90%; gap: 24px; }
  .product-card h2 { font-size: 16px; }
  .detail-panel h1 { font-size: 38px; }
  .product-description { font-size: 20px; }
}

@media (max-width: 1100px) {
  :root { --header-height: clamp(58px, 11.6vw, 87px); }
  .header-inner { width: 100%; padding-inline: 3.2%; justify-content: flex-start; gap: 0; }
  .brand { width: 43.2%; max-width: 324px; }
  .site-header .menu-toggle { position: absolute; left: auto; right: 3.2%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: 0; background: transparent; }
  .site-header .menu-toggle span { display: block; height: 2px; width: 24px; background: #bdb8b4; transition: transform 150ms; }
  .site-header .menu-toggle span:nth-child(2) { width: 20px; }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .market-navigation { position: fixed; z-index: 42; top: var(--header-height); right: 0; bottom: 0; display: none; width: 50%; padding: 14px 18px 24px 16px; background: #272321; overflow-y: auto; align-items: stretch; }
  .market-navigation.is-open { display: block; }
  .market-list { display: block; overflow: hidden; padding: 6px 0; border-radius: 12px; background: #383230; }
  .market-link { padding: 16px 32px; font-size: 24px; line-height: 1.2; font-weight: 500; }
  .site-header .market-navigation .market-link { color: #c9c2bd; }
  .site-header .market-navigation .market-link[aria-current] { color: #fff; }
  .menu-backdrop:not([hidden]) { position: fixed; z-index: 30; top: var(--header-height); inset-inline: 0; bottom: 0; display: block; width: 100%; border: 0; padding: 0; background: #0009; }
  .home-layout { width: auto; margin: 32px 5% 48px; }
  .market-heading { margin-bottom: 24px; font-size: 36px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
  .product-card { padding: 12px 7px 6px; border-radius: 15px; }
  .product-card h2 { margin-top: 8px; font-size: 24px; }
  .detail-layout { width: auto; margin: 14px 3.2% 40px; }
  .detail-panel { padding: 34px 26px 20px; }
  .detail-panel h1 { margin-bottom: 24px; font-size: clamp(30px, 5.6vw, 42px); }
  .product-description { margin-bottom: 24px; font-size: clamp(18px, 3.2vw, 24px); }
  .featured-games, .platform-section { margin-bottom: 24px; }
  .platform-feature-list { grid-template-columns: 1fr; }
  .featured-games__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .product-experience { margin-bottom: 24px; font-size: clamp(16px, 2.6vw, 22px); }
  .section-title { margin-bottom: 16px; font-size: clamp(26px, 5.07vw, 38px); font-weight: 400; }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-inline: -8px; }
}

@media (max-width: 600px) {
  :root { --header-height: max(48px, 11.6vw); }
  .site-header .menu-toggle { right: 2.4%; width: 32px; height: 32px; padding: 7px; gap: 4px; }
  .site-header .menu-toggle span { width: 16px; height: 1.5px; }
  .site-header .menu-toggle span:nth-child(2) { width: 13px; }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(5.5px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5.5px) rotate(-45deg); }
  .market-navigation { padding: 7px 9px 12px 8px; }
  .market-list { padding-block: 3px; border-radius: 6px; }
  .market-link { padding: 8px 16px; font-size: max(14px, 3.2vw); line-height: 1.2; }
  .home-layout { margin: 28px 5% 40px; }
  .market-heading { margin-bottom: 20px; font-size: 28px; }
  .product-grid { gap: 16px; }
  .product-card { padding: 1.6vw .9333vw .8vw; border-radius: 2vw; }
  .product-card h2 { margin-top: 8px; font-size: 14px; }
  .detail-layout { margin-top: 1.8667vw; }
  .detail-panel { padding: 4.5333vw 3.4667vw 2.6667vw; border-radius: 2.6667vw; }
  .detail-panel h1 { margin-bottom: 20px; padding-bottom: 16px; font-size: clamp(24px, 5.8667vw, 32px); line-height: 1.4; }
  .product-description { margin-bottom: 16px; font-size: clamp(14px, 3.7333vw, 18px); }
  .product-experience { margin-bottom: 20px; font-size: max(14px, 3.7333vw); }
  .section-title { margin-bottom: 2.1333vw; padding-bottom: .2667vw; border-bottom-width: .6667vw; font-size: 5.0667vw; }
  .screenshot-grid { gap: 2.6667vw; margin-inline: -1.0667vw; }
  .image-viewer { padding: 56px 40px; }
  .viewer-arrow { width: 30px; height: 40px; background: transparent; }
  .viewer-previous { left: 2px; }
  .viewer-next { right: 2px; }
  .empty-state { min-height: 160px; }
  .empty-state h1 { font-size: 20px; }
  .empty-state p { font-size: 13px; }
}

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