:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #172033;
  --muted: #69758a;
  --faint: #eef1f7;
  --line: #eef0f6;
  --purple: #7c4dff;
  --purple-2: #9b63ff;
  --orange: #ff9f18;
  --green: #25c979;
  --red: #ff5f8a;
  --shadow: 0 8px 28px rgba(35, 41, 62, .045);
  --soft-shadow: 0 10px 24px rgba(35, 41, 62, .06);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcfcfe 0%, #f6f7fb 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

#app {
  min-height: 100vh;
}

#app.route-leave {
  animation: page-leave 120ms ease-in forwards;
  pointer-events: none;
}

#app.route-enter {
  opacity: .001;
  transform: translateY(10px) scale(.992);
  filter: blur(3px);
}

#app.route-enter.route-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 260ms cubic-bezier(.16, 1, .3, 1),
    transform 260ms cubic-bezier(.16, 1, .3, 1),
    filter 260ms cubic-bezier(.16, 1, .3, 1);
}

@keyframes page-leave {
  to {
    opacity: .001;
    transform: translateY(-6px) scale(.996);
    filter: blur(2px);
  }
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15.356px;
}

.shell {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 22px 28px 110px 210px;
}

.side-nav {
  position: fixed;
  left: 28px;
  top: 24px;
  width: 160px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22.523px;
  font-weight: 650;
  color: #151b2b;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 26px;
  color: var(--purple);
  filter: drop-shadow(0 8px 14px rgba(var(--theme-rgb, 124, 77, 255), .22));
}

.brand > svg {
  width: 34px;
  height: 26px;
  color: var(--purple);
  flex: 0 0 auto;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: #747d90;
  border-radius: 10px;
  font-size: 13.309px;
  font-weight: 450;
}

.nav-item svg { width: 18px; height: 18px; }
.nav-item.active { color: var(--purple); background: rgba(var(--theme-rgb, 124, 77, 255), .1); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 24px;
}

button[data-mobile-search] { display: none; }

.mobile-brand { display: none; }

.search-pill {
  width: min(330px, 100%);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px #eceff5, var(--soft-shadow);
  color: #8c95a7;
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13.309px;
}

.search-pill svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.circle-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: #121827;
  box-shadow: var(--soft-shadow);
}

.circle-btn svg { width: 24px; height: 24px; }

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 286px;
  border-radius: 14px;
  padding: 66px 52px;
  text-align: left;
  color: white;
  background:
    linear-gradient(90deg, rgba(16, 42, 82, .72) 0%, rgba(31, 89, 149, .26) 55%, rgba(16, 42, 82, .08) 100%),
    var(--hero-image),
    linear-gradient(135deg, #234d84, #83bee9);
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 40px rgba(29, 72, 122, .18);
}

.hero.store-hero { min-height: 0; height: 400px; padding: 0; justify-content: flex-end; border-radius: 22px; background-image: linear-gradient(180deg, transparent 35%, rgba(15,20,35,.12) 55%, rgba(15,20,35,.76) 100%), var(--hero-image); }
.store-banner-info { display: grid; grid-template-columns: 72px minmax(0, 1fr) 80px; align-items: center; gap: 18px; width: 100%; padding: 26px 30px 36px; }
.store-banner-icon { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; }
.store-banner-text { min-width: 0; }
.hero.store-hero h1 { font-size: 26px; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero.store-hero p { width: 100%; margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-banner-enter { display: grid; place-items: center; width: 80px; height: 36px; padding: 0; font-size: 14px; font-weight: 500; color: white; background: linear-gradient(135deg, var(--purple), var(--purple-2)); border: 0; border-radius: 999px; cursor: pointer; }
.store-banner-enter svg { width: 30px; height: 30px; }
.store-banner-enter:hover { filter: brightness(1.08); }
.hero.store-hero .dots { bottom: 12px; }
@media (max-width: 900px) {
  .hero.store-hero { height: auto; aspect-ratio: 1.55; border-radius: 20px; }
  .store-banner-info { grid-template-columns: 52px minmax(0, 1fr) 68px; gap: 10px; padding: 16px 16px 28px; }
  .store-banner-icon { width: 52px; height: 52px; border-radius: 12px; }
  .hero.store-hero h1 { font-size: 18px; }
  .hero.store-hero p { font-size: 13px; margin-top: 4px; }
  .store-banner-enter { width: 68px; height: 32px; font-size: 13px; }
  .store-banner-enter svg { width: 26px; height: 26px; }
}
.hero h1, .detail-title h1 {
  margin: 0;
  font-size: 30.713px;
  line-height: 1.28;
  font-weight: 650;
}

.hero p {
  width: min(430px, 100%);
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, .86);
  font-size: 14.333px;
  line-height: 1.7;
}

.hero > .primary-btn {
  align-self: flex-start;
  margin-left: 0;
}

.primary-btn, .light-btn, .ghost-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 14.333px;
  font-weight: 520;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 12px 22px rgba(var(--theme-rgb, 124, 77, 255), .24);
}

.primary-btn:hover, .light-btn:hover, .ghost-btn:hover { transform: translateY(-2px); }

.light-btn {
  color: var(--purple);
  background: white;
  box-shadow: var(--soft-shadow);
}

.ghost-btn {
  color: var(--purple);
  background: rgba(var(--theme-rgb, 124, 77, 255), .08);
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .55);
}

.dots button.active { width: 18px; background: white; }

.quick-card, .section-card, .list-panel, .detail-card {
  background: rgba(255, 255, 255, .92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-card {
  margin: 18px 0 22px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.quick-item, .category-item {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #161d2d;
  font-size: 13.309px;
  font-weight: 480;
}

.quick-icon, .category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--purple);
  background: rgba(var(--theme-rgb, 124, 77, 255), .1);
}

.quick-icon svg, .category-icon svg { width: 25px; height: 25px; }
.quick-item:nth-child(2) .quick-icon, .category-item:nth-child(3n+2) .category-icon { color: #4da1ff; background: rgba(77, 161, 255, .12); }
.quick-item:nth-child(3) .quick-icon, .category-item:nth-child(3n+3) .category-icon { color: #32bf75; background: rgba(50, 191, 117, .13); }
.quick-item:nth-child(4) .quick-icon { color: #ff7f5f; background: rgba(255, 127, 95, .12); }
.quick-item:nth-child(5) .quick-icon { color: #ffad24; background: rgba(255, 173, 36, .13); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 8px 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 18.428px;
  font-weight: 620;
}

.more-link {
  color: #8a93a4;
  font-size: 13.309px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.game-row, .hot-grid {
  display: grid;
  gap: 16px;
}

.hot-grid { grid-template-columns: repeat(4, 1fr); }

.game-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  background: white;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.game-card.compact {
  grid-template-columns: 88px 1fr;
  min-height: 112px;
}

.game-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(35, 41, 62, .1); }

.game-cover {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--fallback);
  display: block;
}

.game-info h3 {
  margin: 0 0 6px;
  font-size: 16.38px;
  font-weight: 620;
}

.game-info p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12.285px;
  line-height: 1.35;
}

.rating {
  color: #717a8e;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.309px;
}

.rating svg { color: var(--orange); fill: currentColor; width: 15px; height: 15px; }

.new-list {
  padding: 8px 16px;
}

.new-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.new-item:last-child { border-bottom: 0; }
.new-item .game-cover { width: 58px; height: 58px; border-radius: 13px; }

.enter-btn {
  min-width: 82px;
  min-height: 34px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  font-size: 13.309px;
  font-weight: 520;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 22px 14px;
  background: rgba(255, 255, 255, .92);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 30px rgba(35, 41, 62, .08);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 3px;
  color: #707889;
  font-size: 12.285px;
}

.bottom-nav a.active { color: var(--purple); }
.bottom-nav svg { width: 24px; height: 24px; }

.library-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32.76px;
  font-weight: 650;
}

.wide-search {
  width: 100%;
  height: 70px;
  margin-bottom: 22px;
  border-radius: 28px;
}

.category-strip {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.category-item { position: relative; }
.category-item.active { color: var(--purple); }
.category-item.active::after {
  content: "";
  position: absolute;
  bottom: -16px;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: var(--purple);
}

.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-btn, .select-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: #697386;
  box-shadow: inset 0 0 0 1px #eef0f6;
  white-space: nowrap;
}

.filter-btn.active, .select-btn.active {
  color: var(--purple);
  box-shadow: inset 0 0 0 2px rgba(var(--theme-rgb, 124, 77, 255), .22);
  background: rgba(var(--theme-rgb, 124, 77, 255), .07);
}

.library-list .game-list-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease;
}

.library-list .game-list-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.library-list .game-list-card:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.library-list .game-list-card:only-child { border-radius: var(--radius); }

.game-list-card .game-cover { width: 116px; height: 116px; border-radius: 16px; }
.tag-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #7e8798;
  background: #f0f2f7;
  font-size: 12.285px;
}

.detail-hero {
  min-height: 430px;
  margin: -22px -28px 0 -210px;
  padding: 40px max(28px, calc((100vw - 1260px) / 2 + 28px)) 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background:
    linear-gradient(180deg, rgba(34, 72, 112, .12) 0%, rgba(246, 247, 251, .96) 100%),
    linear-gradient(90deg, rgba(28, 65, 106, .46), rgba(28, 65, 106, .08)),
    var(--detail-cover),
    linear-gradient(135deg, #68aee0, #dfeeff);
  background-size: cover;
  background-position: center;
}

.detail-actions-top {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.detail-actions-top .side { display: flex; gap: 10px; pointer-events: auto; }

.translucent {
  background: rgba(28, 45, 66, .34);
  color: white;
  backdrop-filter: blur(14px);
}

.detail-summary {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: end;
}

.detail-icon {
  width: 190px;
  height: 190px;
  border-radius: 26px;
  box-shadow: 0 20px 42px rgba(18, 28, 44, .24);
  object-fit: cover;
  background: var(--fallback);
}

.detail-title h1 { font-size: 36.855px; }
.detail-title p { margin: 8px 0 12px; font-size: 18.428px; color: rgba(255, 255, 255, .93); }
.detail-title .tag { color: #364156; background: rgba(255, 255, 255, .8); }
.detail-title .rating { margin-top: 12px; color: white; font-size: 20.475px; }

.detail-body {
  width: min(1180px, 100%);
  margin: -4px auto 0;
  padding: 0 0 110px;
  min-width: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.download-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 24px;
  padding: 18px 22px;
  background: white;
  box-shadow: var(--shadow);
  color: var(--text);
}

.download-card.primary {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}

.download-card svg { width: 30px; height: 30px; }
.download-card strong { display: block; font-size: 19.451px; font-weight: 560; }
.download-card span { color: currentColor; opacity: .78; font-size: 13.309px; }

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 20px 26px;
  margin-bottom: 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 22px;
}

.detail-card {
  padding: 26px 30px;
  margin-bottom: 22px;
  min-width: 0;
  overflow: hidden;
}

.detail-card h2 {
  margin: 0 0 16px;
  font-size: 22.523px;
  font-weight: 620;
}

.detail-card p, .notice-content {
  color: #68748c;
  line-height: 1.8;
  font-size: 15.356px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 280px);
  gap: 14px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

.hot-grid,
.quick-card,
.category-strip,
.filters,
.screenshots {
  scrollbar-width: none;
}

.hot-grid::-webkit-scrollbar,
.quick-card::-webkit-scrollbar,
.category-strip::-webkit-scrollbar,
.filters::-webkit-scrollbar,
.screenshots::-webkit-scrollbar {
  display: none;
}

.screen-img {
  height: 116px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--fallback);
}

.cdk-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.cdk-item > div:nth-child(2) {
  min-width: 0;
}

.cdk-item h3 {
  margin: 0 0 6px;
  font-size: 17.404px;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.cdk-item:last-child { border-bottom: 0; }
.gift-img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--theme-soft, #f4f1ff), var(--theme-soft, #f4f1ff));
  display: grid;
  place-items: center;
  color: var(--purple);
}

.score-big {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
}

.score-num { font-size: 55.283px; font-weight: 560; line-height: 1; }
.star-row { color: var(--orange); margin: 8px 0; }
.bar-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #8790a1;
  font-size: 13.309px;
  margin: 8px 0;
}

.bar { height: 7px; border-radius: 999px; background: #eef0f5; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--purple-2)); }

.long-image-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.long-image {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(35, 41, 62, .06);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.notice-card {
  min-height: 144px;
  padding: 22px;
  background: white;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.notice-card.has-cover {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
}

.notice-cover {
  width: 140px;
  height: 100%;
  min-height: 110px;
  border-radius: 14px;
  object-fit: cover;
}

.notice-card h3 { margin: 0 0 8px; font-size: 18.428px; font-weight: 610; }
.notice-card p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; font-size: 14.333px; }
.notice-meta { color: #9aa3b4; font-size: 12.285px; display: flex; gap: 10px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 29, 44, .28);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 70px rgba(18, 28, 44, .22);
}

.modal h3 { margin: 0 0 10px; font-size: 22.523px; font-weight: 620; }
.modal p { color: var(--muted); line-height: 1.7; }
.code-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--theme-soft, #f4f1ff);
  color: var(--purple);
  font-weight: 620;
  letter-spacing: 0;
  word-break: break-all;
}

.modal-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.modal.announcement-modal { position: relative; display: flex; flex-direction: column; width: min(100%, 510px); max-height: calc(100dvh - 48px); padding: 48px 24px 0; overflow: hidden; border-radius: 22px; border-top: 6px solid var(--purple); }
.announcement-scroll { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; -ms-overflow-style: none; }
.announcement-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.announcement-footer { flex-shrink: 0; padding: 12px 0 18px; background: white; }
.announcement-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; font-size: 24.57px; color: var(--muted); }
.announcement-heading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; }
.announcement-heading > svg { width: 30px; height: 30px; color: var(--purple); }
.announcement-heading h3 { margin: 0; font-size: 22.523px; font-weight: 600; overflow-wrap: anywhere; }
.announcement-summary { text-align: center; font-size: 13.309px; margin: 12px 0 20px; }
.announcement-buttons { display: grid; gap: 10px; margin: 20px 0; }
.announcement-button { display: grid; grid-template-columns: 44px minmax(0, 1fr) 12px; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; transition: background-color .2s ease; }
.announcement-button:hover { background: var(--theme-soft, #f4f1ff); }
.announcement-button-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--purple); color: white; border-radius: 12px; }
.announcement-button-icon svg { width: 24px; height: 24px; }
.announcement-button strong { display: block; font-size: 15.356px; font-weight: 550; overflow-wrap: anywhere; }
.announcement-button small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.announcement-copy { background: #f7f8fc; padding: 18px; border-radius: 14px; margin: 18px 0; font-size: 14.333px; overflow-wrap: anywhere; }
.announcement-image { display: block; width: 100%; height: auto; border-radius: 12px; }
.announcement-confirm { width: 100%; margin-top: 4px; border-radius: 14px; }
.announcement-confirm svg { width: 20px; height: 20px; }

.empty {
  padding: 36px;
  border-radius: 18px;
  color: var(--muted);
  background: white;
  text-align: center;
}

@media (max-width: 900px) {
  .shell {
    width: min(100%, 430px);
    padding: 18px 18px 96px;
  }

  .side-nav, .desktop-only { display: none; }
  .mobile-brand, .bottom-nav { display: grid; }
  .mobile-brand { display: flex; }
  .topbar { margin-bottom: 18px; }
  .topbar .search-pill { display: none; }
  button[data-mobile-search] { display: grid; }
  .hero { min-height: 240px; padding: 48px 24px 36px; border-radius: 14px; }
  .hero h1 { font-size: 26.618px; }
  .quick-card { grid-template-columns: repeat(5, minmax(58px, 1fr)); padding: 16px 14px; overflow-x: auto; }
  .quick-icon, .category-icon { width: 48px; height: 48px; border-radius: 17px; }
  .hot-grid { display: flex; overflow-x: auto; padding: 4px 2px 14px; }
  .hot-grid .game-card {
    min-width: 128px;
    display: block;
    padding: 12px;
  }
  .hot-grid .game-cover { width: 100%; height: 92px; }
  .hot-grid .game-info h3 { margin-top: 10px; }
  .new-list { padding: 8px 14px; }
  .new-item { grid-template-columns: 54px 1fr 76px; }

  .library-title { margin-bottom: 16px; }
  .page-title { font-size: 30.713px; }
  .wide-search { display: flex; height: 60px; }
  .category-strip {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 16px 20px;
  }
  .category-item { min-width: 72px; }
  .library-list .game-list-card {
    grid-template-columns: 88px 1fr 76px;
    gap: 14px;
    min-height: 116px;
    padding: 16px;
  }
  .game-list-card .game-cover { width: 78px; height: 78px; }
  .library-list .game-list-card h3 { font-size: 19.451px; }

  .detail-hero {
    margin: -18px -18px 0;
    min-height: 340px;
    padding: 90px 24px 72px;
  }
  .detail-actions-top { top: 26px; left: 20px; right: 20px; }
  .detail-summary {
    grid-template-columns: 116px 1fr;
    gap: 18px;
  }
  .detail-icon { width: 116px; height: 116px; border-radius: 22px; }
  .detail-title h1 { font-size: 30.713px; }
  .detail-title p { font-size: 15.356px; }
  .detail-body { margin-top: -48px; }
  .download-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .download-card {
    min-height: 78px;
    border-radius: 22px;
    padding: 14px;
  }
  .download-card strong { font-size: 16.38px; }
  .download-card svg { width: 26px; height: 26px; }
  .shortcut-grid { grid-template-columns: repeat(5, minmax(58px, 1fr)); overflow-x: auto; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-card { padding: 22px 20px; }
  .score-big {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .score-big > div:last-child {
    max-width: 100%;
    padding-right: 2px;
  }
  .score-num { font-size: 49.14px; }
  .screenshots { grid-auto-columns: minmax(220px, 78%); }
  .cdk-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .cdk-item .primary-btn {
    grid-column: 2;
    justify-self: start;
    min-height: 38px;
    padding: 0 22px;
  }
  .gift-img {
    width: 72px;
    height: 72px;
  }
  .notice-grid { grid-template-columns: 1fr; }
  .notice-card.has-cover { grid-template-columns: 112px 1fr; }
}

@media (max-width: 430px) {
  .shell { width: 100%; }
  .brand { font-size: 20.475px; }
  .hero { min-height: 226px; }
  .hero h1 { font-size: 25.594px; }
  .quick-card { gap: 10px; }
  .quick-item { font-size: 12.285px; }
  .download-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 20px 18px; }
  .screenshots { grid-auto-columns: minmax(210px, 86%); }
  .library-list .game-list-card {
    grid-template-columns: 82px 1fr;
  }
  .library-list .game-list-card .enter-btn {
    grid-column: 2;
    justify-self: start;
  }
  .notice-card.has-cover { grid-template-columns: 1fr; }
  .notice-cover { width: 100%; height: 140px; }
}

/* Shared sizing keeps uploaded content inside its layout track. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 14.333px; line-height: 1.6; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
::selection { color: var(--text); background: var(--theme-soft, #f4f1ff); }
input, textarea { caret-color: var(--purple); }
.shell { width: min(100%, 1440px); padding-bottom: 40px; }
.side-nav { left: max(24px, calc((100vw - 1440px) / 2 + 24px)); }
.game-info, .game-list-card > div, .detail-title, .detail-layout > div,
.notice-card > div, .download-card > span, .new-item > div { min-width: 0; }
h1, h2, h3, p, .download-card, .quick-item, .notice-content { overflow-wrap: anywhere; }
.brand, .page-title { font-weight: 600; }
.page-title { font-size: 26.618px; }
.page-title > svg { width: 32px; height: 32px; color: var(--purple); }
.section-head h2, .detail-card h2 { font-size: 18.428px; font-weight: 600; }
.game-info h3, .game-list-card h3, .cdk-item h3, .notice-card h3 { font-size: 15.356px; font-weight: 550; }
.game-list-card h3 { margin: 0 0 5px; }
.game-list-card p { margin: 0; font-size: 13.309px; color: var(--muted); }
.hot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.game-card, .game-card.compact { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
.game-card .game-cover { width: 64px; height: 64px; }
.game-info p { line-height: 1.6; }
.new-item { grid-template-columns: 58px minmax(0, 1fr) auto; }
.enter-btn { display: inline-grid; place-items: center; min-height: 36px; font-size: 13.309px; padding: 0 18px; }
.category-item { background: transparent; border: 0; padding: 0 0 4px; }
.category-item.active::after { bottom: -12px; }
.wide-search { height: 52px; border-radius: 18px; }
.search-pill input { min-width: 0; }
.filters { gap: 8px; }
.filter-btn, .select-btn { flex-shrink: 0; padding: 0 16px; font-size: 13.309px; }
.library-list .game-list-card { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 22px; min-height: 128px; padding: 22px 26px; }
.game-list-card .game-cover { width: 84px; height: 84px; }
.library-list .game-list-card > div {
  display: grid;
  grid-template-rows: 18px 15px 16px 15px;
  gap: 4px;
  min-width: 0;
}
.library-list .game-list-card h3,
.library-list .game-list-card p {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.library-list .game-list-card h3 { font-size: 15.356px; font-weight: 550; line-height: 18px; }
.library-list .game-list-card p { line-height: 15px; font-size: 12.285px; }
.library-list .game-list-card .tag-line {
  margin: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  gap: 4px;
}
.library-list .game-list-card .tag {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0 6px;
  line-height: 16px;
  font-size: 11.261px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.library-list .game-list-card .rating { font-size: 12.285px; line-height: 15px; }
.library-list .game-list-card .rating svg { width: 12px; height: 12px; }
.tag-line { gap: 5px; }
.tag { padding: 2px 8px; min-height: 22px; line-height: 1.4; }
.detail-shell { width: 100%; padding: 0 0 40px; }
.detail-page .side-nav { display: none; }
.detail-hero { position: relative; margin: 0; min-height: 390px; padding: 100px max(24px, calc((100% - 1080px) / 2)) 82px; }
.detail-actions-top { left: max(24px, calc((100% - 1080px) / 2)); right: max(24px, calc((100% - 1080px) / 2)); }
.detail-actions-top > button { pointer-events: auto; }
.detail-summary { grid-template-columns: 148px minmax(0, 1fr); align-items: center; }
.detail-icon { width: 148px; height: 148px; border-radius: 22px; }
.detail-title { color: #172d47; }
.detail-title h1 { font-size: 28.665px; font-weight: 600; }
.detail-title p { color: #263f59; font-size: 15.356px; }
.detail-title .rating { color: #263f59; font-size: 16.38px; }
.detail-body { position: relative; width: min(1080px, calc(100% - 48px)); margin: -40px auto 0; padding-bottom: 0; }
.detail-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.detail-card { padding: 24px; margin-bottom: 20px; }
.detail-card p { font-size: 14.333px; }
.download-grid { gap: 14px; margin-bottom: 18px; }
.download-card { min-height: 66px; padding: 10px 18px; border-radius: 16px; gap: 12px; }
.download-card strong { font-size: 16.38px; font-weight: 550; }
.download-card > span:first-child { flex-shrink: 0; }
.download-card:only-child { grid-column: 1 / -1; }
.download-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.shortcut-grid { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 12px; }
.screen-img { width: 100%; height: 150px; }
.screenshots { scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.screen-img { scroll-snap-align: start; }
.long-image { height: auto; object-fit: contain; border-radius: 8px; box-shadow: none; }
.cdk-item { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; }
.gift-img, .gift-img .game-cover { width: 54px; height: 54px; }
.gift-img > svg { width: 38px; height: 38px; }
.cdk-item p { font-size: 12.285px; margin: 4px 0; }
.cdk-item .primary-btn { min-height: 36px; padding: 0 16px; font-size: 13.309px; }
.score-big { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
.score-num { font-size: 42.998px; font-variant-numeric: tabular-nums; }
.score-big p { font-size: 12.285px; }
.notice-card { display: block; }
.notice-card.has-cover { grid-template-columns: 100px minmax(0, 1fr); }
.notice-cover { width: 100px; }
.detail-card > .notice-card { box-shadow: none; border-radius: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notice-content img, .notice-content video { max-width: 100%; height: auto; }
.notice-content table { display: block; max-width: 100%; overflow-x: auto; }
.notice-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.article-shell { max-width: 1080px; }
.modal { max-height: calc(100dvh - 48px); overflow-y: auto; }
.modal-actions svg { width: 20px; height: 20px; }
.dots { gap: 0; bottom: 6px; }
.dots button, .dots button.active { width: 28px; height: 28px; background: transparent; display: grid; place-items: center; }
.dots button::after { content: ''; width: 6px; height: 6px; border-radius: 8px; background: #ffffff99; }
.dots button.active::after { width: 16px; background: white; }
.hero { touch-action: pan-y; }
.notice-grid > :only-child { grid-column: 1 / -1; }
.hero { box-shadow: 0 10px 26px rgba(29, 72, 122, .1); }
.nav-item, .bottom-nav a, .download-card, .enter-btn, .filter-btn { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.modal { animation: dialog-in .18s ease-out; }
@keyframes dialog-in { from { transform: translateY(8px); } to { transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .download-card:hover { transform: translateY(-2px); }
  .nav-item:hover { background: var(--theme-soft, #f4f1ff); color: var(--purple); }
  .enter-btn:hover { filter: brightness(1.06); }
}
@media (min-width: 901px) and (max-width: 1190px) {
  .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { width: 100%; padding: 20px 24px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { justify-content: space-between; }
  .bottom-nav { width: 100%; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .bottom-nav a { min-height: 44px; }
  .hero { min-height: 250px; }
  .hot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 0; }
  .hot-grid .game-card { min-width: 0; padding: 12px; }
  .hot-grid .game-info h3 { text-align: center; }
  .hot-grid .game-cover { width: 100%; height: auto; aspect-ratio: 1; }
  .category-strip { gap: 16px; }
  .category-item { min-width: 64px; }
  .detail-shell { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .detail-hero { min-height: 350px; padding: 100px 24px 76px; }
  .detail-body { width: calc(100% - 48px); margin-top: -54px; }
  .detail-body .download-grid { margin-bottom: 12px; }
  .detail-body .shortcut-grid { padding-top: 12px; padding-bottom: 12px; margin-bottom: 12px; }
  .detail-body .detail-card { margin-bottom: 12px; }
  .cdk-item .primary-btn { grid-column: auto; justify-self: end; }
  .score-big { grid-template-columns: 110px minmax(0, 1fr); }
  .search-pill input { font-size: 16.38px; }
}
@media (max-width: 540px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 20.475px; }
  .page-title { font-size: 24.57px; }
  .circle-btn { width: 42px; height: 42px; }
  .hero { min-height: 214px; padding: 32px 22px 38px; }
  .hero h1 { font-size: 24.57px; }
  .hero p { font-size: 13.309px; margin: 10px 0 16px; }
  .quick-card { gap: 8px; padding: 16px 10px; }
  .quick-icon, .category-icon { width: 40px; height: 40px; border-radius: 14px; }
  .quick-item, .category-item { font-size: 12.285px; }
  .hot-grid { gap: 8px; }
  .hot-grid .game-card { padding: 8px; border-radius: 14px; }
  .hot-grid .game-cover { border-radius: 10px; }
  .hot-grid .game-info h3 { font-size: 13.309px; line-height: 1.5; margin: 8px 0 4px; }
  .hot-grid .game-info p { font-size: 11.261px; }
  .new-list { padding: 4px 12px; }
  .new-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .new-item .game-cover { width: 48px; height: 48px; }
  .enter-btn { min-width: 56px; padding: 0 12px; }
  .library-list .game-list-card { grid-template-columns: 76px minmax(0, 1fr) 56px; padding: 16px 12px; gap: 12px; min-height: 108px; }
  .library-list .game-list-card .enter-btn { grid-column: auto; justify-self: end; }
  .game-list-card .game-cover { width: 76px; height: 76px; }
  .library-list .game-list-card > div { grid-template-rows: 18px 16px 16px 16px; gap: 2px; }
  .library-list .game-list-card h3 { font-size: 14.333px; line-height: 18px; }
  .library-list .game-list-card p { font-size: 12.285px; line-height: 16px; }
  .library-list .game-list-card .tag { line-height: 16px; font-size: 11.261px; }
  .library-list .game-list-card .rating { line-height: 16px; font-size: 12.285px; }
  .game-list-card p, .tag { font-size: 11.261px; }
  .detail-shell { padding-left: 0; padding-right: 0; }
  .detail-hero { min-height: 310px; padding: 88px 18px 66px; }
  .detail-summary { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .detail-icon { width: 90px; height: 90px; border-radius: 18px; }
  .detail-summary { align-items: start; }
  .detail-title { height: 90px; display: grid; grid-template-rows: 24px 18px 18px 18px; row-gap: 4px; }
  .detail-title h1 { font-size: 20.475px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .detail-title p { font-size: 12.285px; line-height: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .detail-title .tag-line { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .detail-title .tag-line::-webkit-scrollbar { display: none; }
  .detail-title .tag { flex-shrink: 0; min-height: 18px; padding: 0 6px; line-height: 18px; }
  .detail-title .rating { margin-top: 0; font-size: 13.309px; line-height: 18px; }
  .detail-title .rating svg { width: 16px; height: 16px; }
  .detail-body { width: calc(100% - 32px); margin-top: -48px; }
  .detail-card { padding: 20px 16px; border-radius: 18px; }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .download-card { padding: 8px 10px; gap: 8px; min-height: 60px; border-radius: 14px; }
  .download-card strong { font-size: 14.333px; }
  .download-card svg { width: 22px; height: 22px; }
  .download-card span { font-size: 12.285px; }
  .screenshots { grid-auto-columns: 82%; }
  .screen-img { height: auto; aspect-ratio: 16 / 9; }
  .cdk-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .gift-img, .gift-img .game-cover { width: 44px; height: 44px; }
  .cdk-item h3 { font-size: 14.333px; }
  .cdk-item .primary-btn { padding: 0 12px; }
  .notice-card.has-cover { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .notice-cover { width: 80px; height: 90px; min-height: 90px; }
  .modal-backdrop { padding: 16px; }
  .modal { padding: 22px; }
}
.new-list { padding: 4px 14px; }
.hot-grid .game-card {
  box-shadow: 0 4px 10px rgba(35, 41, 62, .035), 0 10px 22px rgba(35, 41, 62, .065);
}
@media (hover: hover) and (pointer: fine) {
  .hot-grid .game-card:hover {
    box-shadow: 0 6px 14px rgba(35, 41, 62, .045), 0 14px 26px rgba(35, 41, 62, .085);
  }
}
.new-list .new-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 82px;
  padding: 12px 0;
  border-bottom: 0;
}
.new-list .game-cover { width: 58px; height: 58px; border-radius: 12px; }
.new-list .game-info {
  display: grid;
  grid-template-rows: 18px 16px 16px;
  gap: 4px;
  min-width: 0;
}
.new-list .game-info h3 {
  margin: 0;
  font-size: 14.333px;
  font-weight: 550;
  line-height: 18px;
}
.new-list .game-info p { margin: 0; font-size: 12.285px; line-height: 16px; }
.new-list .game-info h3, .new-list .game-info p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.new-list .tag-line { margin: 0; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.new-list .tag {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0 5px;
  line-height: 16px;
  font-size: 11.261px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.new-list .enter-btn { min-width: 68px; min-height: 32px; padding: 0 16px; align-self: center; }
@media (max-width: 360px) {
  .new-list { padding: 4px 12px; }
  .new-list .new-item { gap: 10px; }
  .new-list .enter-btn { min-width: 56px; padding: 0 12px; }
}
@media (hover: none) {
  .game-card:hover, .primary-btn:hover, .light-btn:hover, .ghost-btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
