:root {
  color-scheme: dark;
  --bg: #050812;
  --bg-elevated: #0a1020;
  --panel: rgba(14, 22, 42, 0.88);
  --panel-strong: #0d1529;
  --line: rgba(134, 163, 220, 0.17);
  --line-bright: rgba(64, 208, 255, 0.48);
  --text: #f4f8ff;
  --text-soft: #b4c0d8;
  --muted: #71809e;
  --blue: #27d8ff;
  --blue-deep: #1583ff;
  --purple: #925cff;
  --magenta: #ec4fff;
  --danger: #ff678f;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-neon: 0 0 28px rgba(39, 216, 255, 0.24), 0 18px 45px rgba(0, 0, 0, 0.45);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(24, 126, 255, 0.19), transparent 32rem),
    radial-gradient(circle at 96% 18%, rgba(146, 92, 255, 0.15), transparent 25rem),
    linear-gradient(180deg, #070b16 0%, #040711 48%, #060914 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(92, 142, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 142, 220, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

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

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 12rem;
  height: 12rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.18;
}

.ambient-one {
  top: 32%;
  left: -8rem;
  background: var(--blue);
}

.ambient-two {
  right: -7rem;
  bottom: 20%;
  background: var(--purple);
}

.app-shell {
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.top-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: env(safe-area-inset-top, 0px) 14px 9px;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.98) 0%, rgba(5, 8, 18, 0.92) 82%, rgba(5, 8, 18, 0) 100%);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 4px 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  font-size: 17px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -1px;
  color: #fff;
  background: linear-gradient(135deg, rgba(39, 216, 255, 0.26), rgba(146, 92, 255, 0.24));
  border: 1px solid rgba(78, 225, 255, 0.66);
  border-radius: 10px 3px 10px 3px;
  box-shadow: inset 0 0 12px rgba(39, 216, 255, 0.16), 0 0 20px rgba(39, 216, 255, 0.18);
}

.brand-mark::after {
  position: absolute;
  right: -8px;
  bottom: 5px;
  width: 30px;
  height: 1px;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  transform: rotate(-38deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
}

.brand-copy small {
  margin-top: 5px;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.23em;
  color: #6bc9ee;
}

.channel-badge {
  max-width: 45%;
  padding: 7px 10px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #bff5ff;
  background: rgba(39, 216, 255, 0.1);
  border: 1px solid rgba(39, 216, 255, 0.27);
  border-radius: 999px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  background: rgba(15, 23, 43, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-box:focus-within {
  background: rgba(16, 28, 50, 0.98);
  border-color: var(--line-bright);
  box-shadow: 0 0 0 3px rgba(39, 216, 255, 0.08), inset 0 1px rgba(255, 255, 255, 0.035);
}

.search-glyph,
.nav-search-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.search-glyph {
  flex: 0 0 auto;
  margin-left: 16px;
  color: #7e8ca7;
}

.search-glyph::after,
.nav-search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 7px;
  height: 1.8px;
  content: "";
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-box input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 44px 0 12px;
  font-size: 14px;
  color: var(--text);
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

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

.search-clear {
  position: absolute;
  right: 5px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: #9aa8c0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.category-strip {
  display: flex;
  gap: 8px;
  padding: 11px 0 3px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #8290aa;
  background: rgba(13, 21, 40, 0.78);
  border: 1px solid rgba(122, 151, 206, 0.12);
  border-radius: 999px;
  scroll-snap-align: start;
  cursor: pointer;
}

.category-chip.is-active {
  color: #eefdff;
  background: linear-gradient(120deg, rgba(20, 157, 255, 0.28), rgba(143, 71, 255, 0.24));
  border-color: rgba(54, 219, 255, 0.5);
  box-shadow: inset 0 0 14px rgba(39, 216, 255, 0.08), 0 0 15px rgba(39, 216, 255, 0.08);
}

main {
  padding: 0 14px;
}

.hero {
  position: relative;
  isolation: isolate;
  height: clamp(390px, 112vw, 510px);
  margin-top: 4px;
  overflow: hidden;
  background: #0c1325;
  border: 1px solid rgba(104, 139, 199, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-neon);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 7, 16, 0.02) 15%, rgba(3, 7, 16, 0.4) 52%, rgba(3, 6, 15, 0.98) 100%),
    linear-gradient(100deg, rgba(7, 10, 26, 0.76), transparent 62%);
}

.hero::after {
  position: absolute;
  right: -15%;
  bottom: 17%;
  z-index: 2;
  width: 58%;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 16px var(--blue);
  transform: rotate(-24deg);
  opacity: 0.72;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: hero-arrive 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 24px 20px 20px;
}

.hero-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  margin: 0 0 10px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  color: #baf6ff;
  background: rgba(10, 20, 39, 0.66);
  border: 1px solid rgba(39, 216, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-kicker::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--blue);
}

.hero h2 {
  max-width: 92%;
  margin: 0;
  font-size: clamp(29px, 9vw, 42px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
}

.hero-tagline {
  display: -webkit-box;
  max-width: 96%;
  margin: 10px 0 14px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.65;
  color: #c6d3e9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.hero-stat {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(8, 15, 30, 0.65);
  border: 1px solid rgba(121, 151, 203, 0.18);
  border-radius: 11px;
  backdrop-filter: blur(10px);
}

.hero-stat small,
.hero-stat strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-stat small {
  margin-bottom: 3px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #7d8ba4;
}

.hero-stat strong {
  font-size: 13px;
  font-weight: 800;
  color: #eaf8ff;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 9px;
}

.primary-action,
.secondary-action,
.card-play,
.hero-favorite {
  min-height: 48px;
  border-radius: 13px;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
  color: #03121c;
  background: linear-gradient(100deg, #2be2ff, #61bcff 50%, #9f78ff);
  border: 0;
  box-shadow: 0 7px 24px rgba(39, 216, 255, 0.27), inset 0 1px rgba(255, 255, 255, 0.65);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.hero-favorite {
  display: grid;
  padding: 0;
  place-items: center;
  font-size: 24px;
  color: #e9f2ff;
  background: rgba(16, 25, 45, 0.82);
  border: 1px solid rgba(139, 170, 220, 0.27);
  backdrop-filter: blur(10px);
}

.hero-favorite.is-favorite {
  color: #fb78ff;
  border-color: rgba(236, 79, 255, 0.44);
  box-shadow: inset 0 0 14px rgba(236, 79, 255, 0.12);
}

.hero-skeleton,
.card-skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #0d1528 8%, #14223c 18%, #0d1528 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.hero-skeleton {
  width: 100%;
  height: 100%;
}

.game-section {
  padding-top: 30px;
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 15px;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #53cdec;
}

.section-heading h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.result-count {
  flex: 0 0 auto;
  padding-bottom: 2px;
  font-size: 11px;
  color: #71809b;
}

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

.game-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 26, 48, 0.96), rgba(8, 14, 28, 0.98));
  border: 1px solid rgba(121, 151, 205, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.025);
  animation: card-arrive 420ms ease both;
}

.game-card:nth-child(2n) {
  animation-delay: 45ms;
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 600 / 395;
  background: #10182b;
}

.card-cover::after {
  position: absolute;
  inset: 40% 0 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(5, 8, 18, 0.42));
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 7px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #06121f;
  background: linear-gradient(110deg, #54edff, #a9f7ff);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(39, 216, 255, 0.32);
}

.card-badge.is-hot {
  color: #fff;
  background: linear-gradient(110deg, #ef4fff, #875cff);
  box-shadow: 0 0 12px rgba(236, 79, 255, 0.3);
}

.card-favorite {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: #f5f8ff;
  background: rgba(4, 8, 18, 0.62);
  border: 1px solid rgba(209, 224, 255, 0.22);
  border-radius: 12px;
  backdrop-filter: blur(7px);
  cursor: pointer;
}

.card-favorite.is-favorite {
  color: #fb76ff;
  border-color: rgba(236, 79, 255, 0.48);
}

.card-body {
  padding: 11px 10px 10px;
}

.card-body h2 {
  margin: 0 0 8px;
  overflow: hidden;
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 9px;
  font-size: 9px;
  color: #76849e;
}

.card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta strong {
  font-size: 10px;
  font-weight: 750;
  color: #b7dce8;
}

.card-play {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: #dffbff;
  background: linear-gradient(110deg, rgba(25, 157, 230, 0.2), rgba(125, 81, 236, 0.2));
  border: 1px solid rgba(54, 206, 255, 0.27);
  border-radius: 11px;
}

.card-skeleton {
  min-height: 216px;
  border: 1px solid rgba(121, 151, 205, 0.1);
  border-radius: var(--radius-lg);
}

.empty-state,
.load-error {
  padding: 48px 24px;
  text-align: center;
  background: rgba(12, 19, 36, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.empty-orbit {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  border: 1px solid rgba(39, 216, 255, 0.38);
  border-radius: 50%;
  box-shadow: inset 0 0 16px rgba(39, 216, 255, 0.08);
}

.empty-orbit::before {
  position: absolute;
  top: -3px;
  left: 20px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--blue);
}

.empty-state h2,
.load-error h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-state p,
.load-error p {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-soft);
}

.secondary-action {
  min-height: 44px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 800;
  color: #dffbff;
  background: rgba(39, 216, 255, 0.1);
  border: 1px solid rgba(39, 216, 255, 0.32);
}

.site-footer {
  padding: 46px 12px 30px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #667590;
}

.footer-brand span {
  color: #80deef;
}

.site-footer p {
  max-width: 420px;
  margin: 0 auto 13px;
  font-size: 10px;
  line-height: 1.7;
  color: #65728b;
}

.site-footer a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 40px;
  font-size: 11px;
  color: #77dff2;
  text-decoration: none;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 720px;
  min-height: calc(66px + env(safe-area-inset-bottom, 0px));
  padding: 6px 10px env(safe-area-inset-bottom, 0px);
  background: rgba(7, 11, 23, 0.94);
  border-top: 1px solid rgba(121, 151, 205, 0.18);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transform: translateX(-50%);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 2px 4px;
  font-size: 9px;
  color: #77859e;
  background: none;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
}

.nav-item::before {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 22px;
  height: 2px;
  content: "";
  background: var(--blue);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 11px var(--blue);
  opacity: 0;
  transform: translateX(-50%);
}

.nav-item.is-active {
  color: #e6fbff;
}

.nav-item.is-active::before {
  opacity: 1;
}

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.nav-search-icon {
  width: 17px;
  height: 17px;
  margin: 4px;
  border-width: 1.6px;
}

.trial-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #03050b;
}

body.trial-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.trial-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: calc(58px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0;
  background: linear-gradient(110deg, #08111f, #0e1025 55%, #12102a);
  border-bottom: 1px solid rgba(73, 199, 255, 0.24);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.4);
}

.trial-back,
.trial-external {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 750;
  color: #d8eff6;
  text-decoration: none;
  background: rgba(33, 58, 88, 0.34);
  border: 1px solid rgba(108, 158, 202, 0.24);
  border-radius: 11px;
}

.trial-back span:first-child {
  margin-top: -2px;
  font-size: 25px;
  font-weight: 350;
  line-height: 0;
}

.trial-identity {
  min-width: 0;
  text-align: center;
}

.trial-identity strong,
.trial-identity time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-identity strong {
  font-size: 12px;
  line-height: 1.25;
}

.trial-identity time {
  margin-top: 3px;
  font-size: 9px;
  color: #69dff5;
}

.trial-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(34, 105, 151, 0.16), transparent 45%),
    #03050b;
}

.trial-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #03050b;
  border: 0;
}

.trial-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(3, 5, 11, 0.97);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.trial-loading.is-ready {
  visibility: hidden;
  opacity: 0;
}

.trial-loading strong {
  margin-top: 4px;
  font-size: 14px;
}

.trial-loading small {
  max-width: 280px;
  font-size: 10px;
  line-height: 1.6;
  color: #7f8da5;
}

.loading-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(39, 216, 255, 0.15);
  border-top-color: var(--blue);
  border-right-color: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(39, 216, 255, 0.14);
  animation: spin 900ms linear infinite;
}

.orientation-tip {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 4;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  color: #c5f6ff;
  pointer-events: none;
  background: rgba(7, 15, 30, 0.78);
  border: 1px solid rgba(39, 216, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  transition: opacity 250ms ease, transform 250ms ease;
}

.orientation-tip.is-hidden {
  opacity: 0;
  transform: translate(-50%, -8px);
}

.toast {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 200;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #e5fbff;
  pointer-events: none;
  background: rgba(14, 29, 48, 0.94);
  border: 1px solid rgba(39, 216, 255, 0.32);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.noscript-note {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 300;
  padding: 16px;
  text-align: center;
  color: #fff;
  background: #111a30;
  border: 1px solid var(--blue);
  border-radius: 14px;
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

@keyframes hero-arrive {
  from { opacity: 0.55; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes card-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (hover: hover) and (pointer: fine) {
  .game-card:hover {
    border-color: rgba(39, 216, 255, 0.34);
  }

  .game-card:hover .card-cover img {
    transform: scale(1.045);
  }

  .primary-action:hover,
  .card-play:hover {
    filter: brightness(1.08);
  }
}

@media (orientation: landscape) {
  .orientation-tip {
    display: none;
  }
}

@media (max-width: 340px) {
  .top-shell,
  main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero-content {
    padding: 20px 15px 16px;
  }

  .hero-stat {
    padding: 8px 7px;
  }

  .game-grid {
    gap: 8px;
  }

  .card-body {
    padding: 9px 8px 8px;
  }

  .trial-back,
  .trial-external {
    padding: 0 8px;
  }
}

@media (min-width: 600px) {
  .top-shell,
  main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    height: 510px;
  }

  .hero-content {
    padding: 30px 28px 26px;
  }

  .game-grid {
    gap: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
