:root {
  color-scheme: dark;
  --bg: #050712;
  --bg-soft: #090d1c;
  --panel: rgba(13, 18, 38, 0.78);
  --panel-solid: #0c1125;
  --panel-hover: #111832;
  --line: rgba(134, 153, 205, 0.17);
  --line-strong: rgba(118, 148, 239, 0.34);
  --text: #f5f7ff;
  --muted: #8f9aba;
  --muted-bright: #b9c3de;
  --cyan: #16d9ff;
  --blue: #3b7cff;
  --violet: #8257ff;
  --magenta: #e250ff;
  --green: #37eab1;
  --danger: #ff647c;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shell: min(1560px, calc(100vw - 64px));
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 4%, rgba(74, 56, 220, 0.16), transparent 28rem),
    radial-gradient(circle at 5% 42%, rgba(11, 169, 226, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(126, 145, 196, 0.12);
  background: rgba(5, 7, 18, 0.78);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-inner {
  display: grid;
  width: var(--shell);
  min-height: 78px;
  margin-inline: auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px 4px 12px 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--violet));
  box-shadow: 0 0 28px rgba(35, 128, 255, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-mark::after {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px 2px 8px 2px;
  content: "";
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.brand-copy small {
  color: #75809e;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.2em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 11px 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 16px;
  bottom: 3px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(22, 217, 255, 0.55);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.official-link,
.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.official-link {
  padding: 0 13px;
  color: var(--muted-bright);
}

.official-link:hover {
  color: #fff;
}

.header-cta {
  padding: 0 18px;
  border: 1px solid rgba(79, 167, 255, 0.45);
  background: linear-gradient(135deg, rgba(28, 132, 255, 0.24), rgba(113, 68, 255, 0.26));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.header-cta:hover {
  border-color: rgba(85, 205, 255, 0.72);
  box-shadow: 0 0 24px rgba(38, 128, 255, 0.2), inset 0 1px rgba(255, 255, 255, 0.14);
}

main {
  padding-top: 28px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(112, 137, 205, 0.24);
  border-radius: var(--radius-xl);
  background: #0a0d1c;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.015);
  transition: opacity 360ms ease, transform 900ms ease;
}

.hero:hover .hero-image {
  transform: scale(1.035);
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 18, 0.98) 0%, rgba(6, 9, 24, 0.94) 31%, rgba(6, 9, 23, 0.62) 52%, rgba(5, 7, 17, 0.1) 75%),
    linear-gradient(0deg, rgba(4, 6, 16, 0.76), transparent 43%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 3%, var(--cyan) 25%, var(--violet) 60%, transparent 95%);
  box-shadow: 0 0 28px rgba(64, 138, 255, 0.55);
  content: "";
  opacity: 0.58;
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 126, 207, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 126, 207, 0.065) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 58%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-glow-one {
  top: -150px;
  left: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(20, 221, 255, 0.14);
  box-shadow: 0 0 100px rgba(22, 160, 255, 0.1), inset 0 0 100px rgba(80, 80, 255, 0.06);
}

.hero-glow-two {
  top: 95px;
  left: 41%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(130, 87, 255, 0.18);
  box-shadow: 0 0 80px rgba(130, 87, 255, 0.13);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 58%;
  padding: 68px 48px 58px 72px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: #7be8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
  max-width: 690px;
  margin: 22px 0 20px;
  font-size: clamp(54px, 5.2vw, 82px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.4);
}

.hero h1 em {
  background: linear-gradient(90deg, #fff 0%, #9eeeff 31%, #8c97ff 67%, #d178ff 100%);
  background-clip: text;
  color: transparent;
  font-style: normal;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 520px;
  margin: 0;
  color: #c3cae0;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  margin-top: 32px;
  align-items: center;
  gap: 12px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  gap: 10px;
  padding: 0 25px;
  border: 1px solid rgba(163, 224, 255, 0.62);
  background: linear-gradient(135deg, #139eea 0%, #3c62f5 52%, #764de8 100%);
  box-shadow: 0 14px 36px rgba(41, 110, 246, 0.32), inset 0 1px rgba(255, 255, 255, 0.32);
}

.play-symbol {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  text-indent: 2px;
}

.secondary-button {
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 16, 34, 0.62);
  color: #d9def0;
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 18px 46px rgba(41, 110, 246, 0.46), inset 0 1px rgba(255, 255, 255, 0.4);
}

.secondary-button:hover {
  border-color: rgba(94, 203, 255, 0.52);
}

.hero-facts {
  display: flex;
  margin: 43px 0 0;
  gap: 0;
}

.hero-facts div {
  min-width: 130px;
  padding: 0 25px;
  border-left: 1px solid rgba(159, 175, 215, 0.18);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  margin-bottom: 5px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.hero-facts dd {
  margin: 0;
  color: #7783a4;
  font-size: 11px;
}

.hero-game-card {
  position: absolute;
  z-index: 4;
  right: 32px;
  bottom: 30px;
  width: min(400px, 34%);
  padding: 20px 22px;
  border: 1px solid rgba(210, 220, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(9, 12, 27, 0.78), rgba(14, 13, 35, 0.64));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px) saturate(140%);
}

.hero-game-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aab5d0;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.16em;
}

.live-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(55, 234, 177, 0.85);
}

.hero-game-card h2 {
  margin: 10px 0 6px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.hero-game-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #adb7d0;
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-game-metrics {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-game-metrics span {
  padding: 6px 9px;
  border: 1px solid rgba(142, 160, 210, 0.18);
  border-radius: 8px;
  background: rgba(8, 12, 28, 0.55);
  color: #d9e0f3;
  font-size: 10px;
  font-weight: 650;
}

.recent-section,
.library-section {
  padding-top: 88px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.section-heading > div > p:last-child:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.compact-heading {
  align-items: center;
}

.compact-heading h2 {
  font-size: 32px;
}

.compact-heading > a {
  color: #aab6d2;
  font-size: 13px;
}

.compact-heading > a:hover {
  color: #fff;
}

.recent-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.recent-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-solid);
  cursor: pointer;
  aspect-ratio: 600 / 395;
  isolation: isolate;
}

.recent-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 7, 17, 0.92), transparent 66%);
  content: "";
}

.recent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease, filter 250ms ease;
}

.recent-card span {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 11px;
  left: 13px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 740;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card:hover {
  border-color: rgba(92, 174, 255, 0.5);
}

.recent-card:hover img {
  filter: brightness(1.1);
  transform: scale(1.055);
}

.library-section {
  padding-bottom: 110px;
}

.sync-mark {
  display: flex;
  padding: 10px 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(55, 234, 177, 0.22);
  border-radius: 11px;
  background: rgba(55, 234, 177, 0.07);
  color: #a9e8d6;
  font-size: 11px;
  font-weight: 700;
}

.sync-mark span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(55, 234, 177, 0.15);
  color: var(--green);
  font-size: 11px;
}

.catalog-controls {
  display: grid;
  margin-top: 34px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 14, 30, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  min-height: 48px;
  padding: 0 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(3, 6, 16, 0.7);
  color: #71809f;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(46, 177, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(41, 117, 255, 0.1);
}

.search-box > span {
  font-size: 24px;
  line-height: 0;
  transform: rotate(-18deg);
}

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

.search-box input::placeholder {
  color: #687493;
}

.search-box kbd {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(144, 160, 199, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #7c88a6;
  font-size: 11px;
  font-family: inherit;
}

.filter-group {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(130, 149, 199, 0.12);
  border-radius: 12px;
  background: rgba(3, 6, 16, 0.48);
  gap: 3px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8590ad;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

.filter-chip:hover {
  color: #dce3f5;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(35, 140, 255, 0.28), rgba(104, 69, 247, 0.28));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
}

.select-control {
  position: relative;
  display: flex;
  min-height: 46px;
  padding: 0 12px 0 15px;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
}

.select-control span {
  color: #75819f;
  font-size: 11px;
}

.select-control select {
  min-width: 112px;
  border: 0;
  outline: 0;
  background: #0b1022;
  color: #dce3f5;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.result-bar {
  display: flex;
  min-height: 50px;
  padding: 0 2px;
  align-items: center;
  justify-content: space-between;
}

.result-bar p {
  margin: 0;
  color: #737f9e;
  font-size: 12px;
}

.result-bar p strong {
  color: #cbd4ea;
  font-weight: 750;
}

.text-button {
  padding: 8px;
  border: 0;
  background: none;
  color: #7fdfff;
  font-size: 12px;
  cursor: pointer;
}

.text-button:hover {
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(15, 21, 44, 0.96), rgba(9, 13, 29, 0.98));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card:hover,
.game-card.is-requested {
  border-color: rgba(81, 170, 255, 0.5);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32), 0 0 32px rgba(67, 91, 242, 0.1);
  transform: translateY(-5px);
}

.game-card.is-requested {
  animation: requested-pulse 1.6s ease 2;
}

.card-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(127, 149, 203, 0.12);
  aspect-ratio: 600 / 395;
  background: #10162d;
}

.card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 8, 19, 0.83), transparent 54%);
  content: "";
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 220ms ease;
}

.game-card:hover .card-media img {
  filter: brightness(1.08) saturate(1.06);
  transform: scale(1.065);
}

.card-badges {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-badge {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(5, 8, 20, 0.7);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
  color: #d8e0f1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.card-badge.latest {
  border-color: rgba(39, 205, 255, 0.38);
  background: rgba(14, 130, 193, 0.65);
  color: #ecfcff;
}

.card-badge.popular {
  border-color: rgba(212, 97, 255, 0.4);
  background: rgba(125, 50, 195, 0.7);
  color: #fff1ff;
}

.card-id {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  color: rgba(232, 238, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-content {
  padding: 17px 18px 18px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volatility-tag {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(136, 155, 204, 0.18);
  border-radius: 7px;
  background: rgba(5, 8, 19, 0.45);
  color: #99a6c4;
  font-size: 9px;
  font-weight: 650;
}

.volatility-tag.low {
  color: #92e6c5;
}

.volatility-tag.high {
  color: #ff9cae;
}

.card-tagline {
  display: -webkit-box;
  min-height: 39px;
  margin: 8px 0 14px;
  overflow: hidden;
  color: #7f8aa8;
  font-size: 11px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: grid;
  padding: 11px 0;
  border-top: 1px solid rgba(129, 149, 198, 0.11);
  border-bottom: 1px solid rgba(129, 149, 198, 0.11);
  grid-template-columns: 1fr 1fr;
}

.card-meta div + div {
  padding-left: 14px;
  border-left: 1px solid rgba(129, 149, 198, 0.11);
}

.card-meta span {
  display: block;
  margin-bottom: 3px;
  color: #687594;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-meta strong {
  color: #d9e0f2;
  font-size: 12px;
  font-weight: 720;
}

.card-play {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 15px;
  border: 1px solid rgba(73, 155, 255, 0.25);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(35, 120, 255, 0.12), rgba(113, 69, 237, 0.12));
  color: #cbd8f6;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.card-play span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(93, 150, 255, 0.16);
  color: #8ee8ff;
  font-size: 8px;
  text-indent: 1px;
}

.card-play:hover {
  border-color: rgba(76, 184, 255, 0.5);
  background: linear-gradient(135deg, rgba(35, 142, 255, 0.3), rgba(113, 69, 237, 0.28));
  color: #fff;
}

.loading-state,
.empty-state,
.error-state {
  display: grid;
  min-height: 310px;
  place-items: center;
  grid-column: 1 / -1;
  align-content: center;
  gap: 12px;
  border: 1px dashed rgba(121, 143, 198, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 30, 0.38);
  color: #8b97b6;
  font-size: 13px;
  text-align: center;
}

.empty-state strong,
.error-state strong {
  color: #e5eafa;
  font-size: 17px;
}

.empty-state p,
.error-state p {
  max-width: 420px;
  margin: 0;
  line-height: 1.7;
}

.empty-state button,
.error-state button {
  padding: 10px 16px;
  border: 1px solid rgba(75, 177, 255, 0.36);
  border-radius: 10px;
  background: rgba(36, 115, 230, 0.15);
  color: #d6e9ff;
  cursor: pointer;
}

.loading-orbit {
  width: 27px;
  height: 27px;
  border: 2px solid rgba(103, 129, 196, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #040610;
}

.footer-inner {
  display: grid;
  min-height: 128px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
}

.footer-inner > p {
  margin: 0;
  color: #697591;
  font-size: 11px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #8893af;
  font-size: 11px;
}

.footer-links a:hover {
  color: #fff;
}

.trial-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  background: #03050c;
  grid-template-rows: auto 1fr;
}

.trial-toolbar {
  display: grid;
  min-height: 76px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(117, 141, 200, 0.19);
  background: rgba(8, 12, 26, 0.97);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.trial-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.small-mark {
  width: 37px;
  height: 37px;
  border-radius: 10px 3px 10px 3px;
  font-size: 11px;
}

.trial-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.trial-label {
  display: block;
  margin-bottom: 2px;
  color: #6e7a99;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.trial-identity h2 {
  max-width: 360px;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-status {
  display: flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(102, 130, 190, 0.16);
  border-radius: 12px;
  background: rgba(2, 5, 14, 0.55);
  color: #7f8ba9;
  font-size: 10px;
}

.trial-status strong {
  margin-left: 3px;
  color: #dce7ff;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.trial-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.trial-actions p {
  margin: 0 3px 0 0;
  color: #606c88;
  font-size: 9px;
}

.open-window-button,
.close-trial-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.open-window-button {
  border: 1px solid rgba(101, 132, 202, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: #a6b2ce;
}

.open-window-button:hover {
  border-color: rgba(92, 189, 255, 0.42);
  color: #fff;
}

.close-trial-button {
  display: flex;
  padding-left: 15px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(73, 176, 255, 0.35);
  background: linear-gradient(135deg, rgba(23, 138, 235, 0.2), rgba(101, 61, 231, 0.2));
  color: #ecf7ff;
}

.close-trial-button span {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.trial-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(32, 51, 103, 0.25), transparent 42%),
    #02040a;
}

#trialFrame {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.frame-loading {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #a8b5d2;
  pointer-events: none;
  text-align: center;
}

.frame-loading strong {
  font-size: 14px;
}

.frame-loading small {
  color: #697593;
  font-size: 10px;
}

.large-orbit {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
}

.toast {
  position: fixed;
  z-index: 2000;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 13px 16px;
  border: 1px solid rgba(107, 153, 238, 0.32);
  border-radius: 12px;
  background: rgba(10, 15, 32, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  color: #dce6fa;
  font-size: 12px;
  backdrop-filter: blur(18px);
}

.noscript-message {
  position: fixed;
  z-index: 5000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 100, 124, 0.35);
  border-radius: 12px;
  background: #25101a;
  color: #ffdbe2;
  text-align: center;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes requested-pulse {
  50% {
    border-color: rgba(87, 221, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(45, 148, 255, 0.12), 0 0 52px rgba(62, 99, 255, 0.25);
  }
}

@media (max-width: 1280px) {
  :root {
    --shell: min(1180px, calc(100vw - 48px));
  }

  .header-inner {
    gap: 20px;
  }

  .nav-link {
    padding-inline: 11px;
  }

  .official-link {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

  .hero-copy {
    width: 64%;
    padding-left: 54px;
  }

  .hero-game-card {
    width: 34%;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recent-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .recent-card:nth-child(6) {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: calc(100vw - 36px);
  }

  .header-inner {
    min-height: 70px;
    grid-template-columns: auto 1fr auto;
  }

  .brand-copy {
    display: none;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .header-cta {
    padding-inline: 14px;
  }

  .hero {
    min-height: 660px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 7, 18, 0.97), rgba(5, 8, 20, 0.72) 66%, rgba(5, 7, 17, 0.15)),
      linear-gradient(0deg, rgba(4, 6, 16, 0.94), transparent 60%);
  }

  .hero-copy {
    width: 78%;
    padding: 58px 34px;
  }

  .hero-game-card {
    right: 24px;
    bottom: 24px;
    width: min(400px, 45%);
  }

  .catalog-controls {
    grid-template-columns: 1fr auto;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .select-control {
    justify-content: flex-end;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .recent-card:nth-child(5) {
    display: none;
  }

  .trial-toolbar {
    grid-template-columns: 1fr auto;
  }

  .trial-status {
    display: none;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }

  .footer-links {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 24px);
  }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-inner::after {
    color: #6e7b9a;
    content: "桌面试玩大厅";
    font-size: 10px;
  }

  main {
    padding-top: 12px;
  }

  .hero {
    min-height: 650px;
    border-radius: 22px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero::before {
    background: linear-gradient(0deg, rgba(4, 7, 18, 0.98) 8%, rgba(5, 8, 19, 0.78) 72%, rgba(5, 7, 17, 0.28));
  }

  .hero-copy {
    width: 100%;
    padding: 36px 24px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts div {
    min-width: 0;
    padding: 0 10px;
  }

  .hero-facts dt {
    font-size: 17px;
  }

  .hero-facts dd {
    font-size: 9px;
  }

  .hero-game-card {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .recent-section,
  .library-section {
    padding-top: 60px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sync-mark {
    display: none;
  }

  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-card:nth-child(5) {
    display: block;
  }

  .recent-card:nth-child(6) {
    display: none;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .search-box {
    grid-column: auto;
  }

  .filter-group {
    width: 100%;
  }

  .filter-chip {
    flex: 1;
  }

  .select-control {
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: 160px;
    padding-block: 28px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  .trial-toolbar {
    min-height: 70px;
    padding-inline: 12px;
  }

  .trial-divider,
  .trial-actions p,
  .open-window-button {
    display: none;
  }

  .trial-identity h2 {
    max-width: 130px;
  }

  .close-trial-button {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
