/* TianMu Official Website — Unified Obsidian-Gold Cinematic HUD Theme
 * Mirrors the Windows Desktop Client (ui-theme-cloud.css Obsidian Gold) */
@font-face {
  font-family: "Smiley Sans";
  src: url("/site-assets/fonts/smiley-sans-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Smiley Sans";
  src: url("/site-assets/fonts/smiley-sans-core.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20-7E, U+B7, U+2014, U+2018-2019, U+201C-201D, U+2026, U+3001-3002, U+300A-300B, U+3010-3011, U+4E00, U+4E0B, U+4E0D, U+4E16, U+4E49, U+4E66, U+4E92, U+4ECA, U+4ECE, U+4F53, U+4F5C, U+4F60, U+5077, U+50F5, U+5143, U+5145, U+5168, U+5173, U+5178, U+51B2, U+5230, U+52A8, U+5373, U+5385, U+53D8, U+53EF-53F0, U+5403, U+54C1, U+54D4, U+54E9, U+56FE, U+573A, U+5757, U+57CE, U+5821, U+586B, U+5927, U+5929, U+597D, U+59CB, U+5B58, U+5B9A, U+5B9D-5B9E, U+5BA2, U+5C0F, U+5C31, U+5C38, U+5DE5, U+5E02, U+5E55, U+5EAD, U+5F00, U+5F39, U+5FEB, U+60F3, U+6155, U+620F-6211, U+6237, U+624B, U+627E, U+628A, U+6296, U+62DF, U+6309, U+6311, U+635E, U+6361, U+63A5, U+64AD, U+64C2, U+653E, U+6574, U+6597, U+65B9, U+65F6, U+660E, U+6620, U+672C, U+677F, U+6781, U+697C, U+6A21, U+6B21, U+6B3E, U+6B62, U+6BCF, U+6C49, U+6CA1, U+6CD5, U+6CE8, U+6D77, U+6E38, U+70B9, U+7248, U+7259, U+7269, U+73A9, U+751F, U+754C, U+7684, U+76D6, U+76F4, U+77E5, U+793C, U+7ACB, U+7AEF, U+7EA2, U+7ECF, U+7EFF, U+805A, U+80FD, U+81EA, U+864E, U+86CA, U+8D21, U+8D5E, U+8F7D, U+8FD8-8FD9, U+8FDE, U+900F, U+9053, U+90E8, U+91CC, U+9488, U+952E, U+9650, U+9762, U+97F3, U+9A8C, U+9C7C, U+FF01, U+FF08-FF09, U+FF0C, U+FF1A-FF1B, U+FF1F, U+FFE5;
}
:root {
  color-scheme: dark;
  --font-ui: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Smiley Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #06070a;
  --bg-elev: #0c0e16;
  --ink: #f4f7ff;
  --sub: #c6d0e4;
  --muted: #8b98b4;
  --gold: #f6c86c;
  --gold-soft: #f5d094;
  --gold-hi: #fde6bd;
  --gold-rgb: 246, 200, 108;
  --live: #34d399;
  --glass: rgba(11, 13, 20, 0.72);
  --glass-strong: rgba(13, 16, 24, 0.90);
  --border: rgba(245, 208, 148, 0.16);
  --border-hi: rgba(245, 208, 148, 0.34);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 248, 235, 0.10);
  --shadow-gold: 0 14px 34px -10px rgba(246, 200, 108, 0.36);
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; line-height: 1.65; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; border: 0; }
button, summary, a, input { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { width: 19px; height: 19px; flex-shrink: 0; }
button svg, a svg { pointer-events: none; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--gold-rgb), 0.28); color: #fff; }
p, h1, h2, h3 { margin: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245, 208, 148, 0.22); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245, 208, 148, 0.42); }

.shell { max-width: 1240px; width: calc(100% - 88px); margin-inline: auto; position: relative; z-index: 2; }
.cloud-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fluid-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.86; }

/* Full-Bleed Cinematic Hero Cover Backdrop (mirrors desktop client cover stage) */
.hero-ambient {
  position: absolute;
  inset: 0 0 auto 0;
  height: 820px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: scale(1.06);
  filter: blur(18px) saturate(1.12) brightness(0.42);
  opacity: 0.62;
  transition: opacity 0.55s var(--ease);
}
.hero-ambient-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 60% at 72% 38%, rgba(246, 200, 108, 0.14), transparent 65%),
    linear-gradient(90deg, rgba(6, 7, 10, 0.88) 0%, rgba(6, 7, 10, 0.48) 52%, rgba(6, 7, 10, 0.65) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.45) 0%, rgba(6, 7, 10, 0.22) 45%, #06070a 96%);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  border-radius: 24px;
}

/* Header */
.header {
  position: sticky;
  top: 18px;
  z-index: 30;
  margin-top: 18px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.74);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.header-inner {
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img {
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(var(--gold-rgb), 0.34));
}
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: 2px; line-height: 1.12; color: var(--ink); }
.brand-en { display: block; font-family: var(--font-ui); font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 1.1px; margin-top: 3px; }
.desktop-nav { display: flex; gap: 32px; font-size: 13px; font-weight: 500; color: var(--sub); }
.desktop-nav a { transition: color 0.2s; }
.desktop-nav a:hover, .footer a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 13px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 680;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.25s, background 0.25s;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, #f8d483 0%, #e4b152 100%);
  color: #090b11;
  border: 1px solid rgba(255, 246, 224, 0.45);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.button-primary:hover {
  background: linear-gradient(135deg, #fde09b 0%, #ecc066 100%);
  box-shadow: 0 18px 38px -10px rgba(246, 200, 108, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.button-ghost:hover {
  background: rgba(245, 208, 148, 0.12);
  border-color: var(--border-hi);
  color: var(--gold-hi);
}
.button-small { font-size: 12.5px; padding: 9px 16px; min-height: 38px; border-radius: 11px; }
.button-small svg { width: 15px; height: 15px; }
.button-large { min-height: 52px; padding: 14px 24px; }

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--sub);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.icon-button:hover {
  background: rgba(var(--gold-rgb), 0.14);
  border-color: var(--border-hi);
  color: var(--gold-hi);
  transform: translateY(-1px);
}
.icon-button svg { width: 17px; height: 17px; }
.menu-toggle { display: none; }
.mobile-nav { display: flex; padding: 10px 24px 18px; gap: 20px; font-size: 13px; color: var(--sub); border-top: 1px solid var(--border-subtle); }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--gold-soft); font-size: 13px; font-weight: 560; transition: color 0.2s; }
.text-link:hover { color: var(--gold-hi); }
.text-link svg { width: 16px; height: 16px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 20px; background: var(--gold); color: #090b11; font-weight: 600; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 16px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 0.96fr 1.14fr;
  align-items: center;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 68px;
  min-height: 640px;
  overflow: clip;
}
.hero-copy { position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 1.2px;
  font-weight: 600;
}
.live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18), 0 0 10px rgba(52, 211, 153, 0.7);
}
.hero .eyebrow {
  background: rgba(14, 16, 24, 0.72);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.16;
  letter-spacing: 0.03em;
  font-weight: 400;
  margin: 24px 0 20px;
  color: var(--ink);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
/* Hero FlipWords kinetic highlight */
.flip-words {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  min-width: 1.66em;
  margin-left: 0.16em;
  vertical-align: baseline;
  white-space: nowrap;
}
.flip-words::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: 0.04em;
  bottom: 0.02em;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(248, 212, 131, 0.8), rgba(246, 200, 108, 0.14));
  pointer-events: none;
}
.flip-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  transform-origin: left center;
  will-change: transform, opacity, filter;
}
.flip-letter {
  display: inline-block;
  padding-right: 0.06em;
  margin-right: -0.06em;
  background: linear-gradient(135deg, #fff6dc 0%, #f8d483 48%, #e4a948 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(246, 200, 108, 0.28));
  will-change: transform, opacity, filter;
}
.flip-word.is-entering .flip-letter {
  opacity: 0;
  animation: tmFlipLetterIn 0.36s cubic-bezier(.22, 1, .36, 1) forwards;
}
.flip-word.is-entering .flip-letter:nth-child(2) { animation-delay: 65ms; }
.flip-word.is-entering .flip-letter:nth-child(3) { animation-delay: 130ms; }
.flip-word.is-entering .flip-letter:nth-child(4) { animation-delay: 195ms; }
.flip-word.is-leaving {
  animation: tmFlipWordOut 0.54s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes tmFlipLetterIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    filter: blur(8px) drop-shadow(0 6px 22px rgba(246, 200, 108, 0.28));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px) drop-shadow(0 6px 22px rgba(246, 200, 108, 0.28));
  }
}
@keyframes tmFlipWordOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(1.75);
    filter: blur(8px);
  }
}
.hero-description { font-size: 15.5px; line-height: 1.85; color: var(--sub); max-width: 440px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.release-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.release-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.14);
  border: 1px solid rgba(var(--gold-rgb), 0.30);
  color: var(--gold-hi);
  font-weight: 650;
  font-size: 11px;
}
.divider { width: 3px; height: 3px; background: rgba(245, 208, 148, 0.35); border-radius: 50%; }
.metadata-state, .catalog-status { font-size: 11.5px; color: var(--gold-soft); }
.metadata-state { position: absolute; margin-top: 8px; max-width: 96%; }

/* Hero Stage Showcase */
.hero-stage { position: relative; min-width: 0; padding: 8px 0; }
.stage-glow {
  position: absolute;
  inset: -24px -18px;
  background: radial-gradient(circle at 55% 45%, rgba(var(--gold-rgb), 0.22), transparent 62%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}
.showcase {
  position: relative;
  z-index: 2;
  padding: 12px;
  border-radius: 24px;
  background: rgba(10, 12, 19, 0.82);
  border: 1px solid rgba(245, 208, 148, 0.24);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 248, 235, 0.14);
  transition: transform 0.5s var(--ease), border-color 0.35s;
}
.showcase:hover { transform: translateY(-3px); border-color: rgba(245, 208, 148, 0.42); }
.showcase-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 12px;
  font-size: 11.5px;
  color: var(--sub);
}
.showcase-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
  font-size: 10.5px;
}
.showcase-pill .live-dot { width: 5px; height: 5px; box-shadow: none; }
.showcase-picture {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #090b12;
  aspect-ratio: 1.68;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.showcase-picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.picture-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 7, 10, 0.78) 100%);
}
.art-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.76);
  border: 1px solid rgba(245, 208, 148, 0.26);
  backdrop-filter: blur(10px);
  font-size: 11px;
  color: var(--gold-hi);
  letter-spacing: 0.8px;
}
.hero-caption { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 6px; }
.caption-kicker { font-size: 10.5px; display: block; color: var(--muted); }
.hero-game-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  padding: 3px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.2s;
}
.hero-game-link:hover { color: var(--gold-hi); }
.hero-game-link svg { width: 17px; color: var(--gold); }
.hero-controls { display: flex; gap: 7px; align-items: center; }
.hero-controls > span { font-size: 11px; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }

.stage-highlights {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.highlight-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 16px;
  background: rgba(12, 14, 22, 0.82);
  border: 1px solid rgba(245, 208, 148, 0.18);
  transition: border-color 0.25s, transform 0.25s;
}
.highlight-pill:hover {
  border-color: rgba(245, 208, 148, 0.36);
  transform: translateY(-2px);
}
.highlight-pill strong { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.highlight-pill div > span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.highlight-pill img { object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 10px rgba(var(--gold-rgb), 0.35)); }
.note-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.14);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 10px;
}

/* Platform Strip */
.platform-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6px;
  border-block: 1px solid var(--border-subtle);
  gap: 20px;
  color: var(--muted);
}
.platform-strip > p { font-size: 12px; flex-shrink: 0; letter-spacing: 0.6px; }
.platform-names {
  display: flex;
  justify-content: space-between;
  gap: 38px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.8px;
  color: var(--sub);
}
.platform-names span { transition: color 0.2s; }
.platform-names span:hover { color: var(--gold-hi); }

/* Sections */
.section { padding-top: 86px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-eyebrow { font-size: 11px; letter-spacing: 2px; margin-bottom: 10px; color: var(--gold); }
.section h2 { font-family: var(--font-display); font-size: 36px; letter-spacing: 0.03em; line-height: 1.28; font-weight: 400; color: var(--ink); }
.section-heading > p { font-size: 13px; color: var(--muted); }

/* Game Library */
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.segments {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 14, 22, 0.72);
  backdrop-filter: blur(18px);
}
.segments button {
  font-size: 12.5px;
  min-height: 36px;
  background: transparent;
  border-radius: 10px;
  padding: 8px 17px;
  color: var(--muted);
  font-weight: 560;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.segments button:hover { color: var(--ink); }
.segments button[aria-selected=true] {
  background: linear-gradient(135deg, rgba(248, 212, 131, 0.20), rgba(228, 177, 82, 0.14));
  border: 1px solid rgba(245, 208, 148, 0.34);
  color: var(--gold-hi);
  font-weight: 660;
}
.segments button span { font-size: 11px; margin-left: 6px; color: var(--gold); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 14, 22, 0.72);
  padding: 9px 14px;
  color: var(--muted);
  width: 240px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--border-hi); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.14); color: var(--gold); }
.search svg { width: 16px; height: 16px; }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; font-size: 13px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }

.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.catalog-status:not(:empty) { margin-bottom: 15px; }
.game-card {
  min-width: 0;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  padding: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transition: transform 0.36s var(--ease), border-color 0.28s, box-shadow 0.36s var(--ease);
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 26px 52px -18px rgba(0, 0, 0, 0.85), 0 0 28px -12px rgba(var(--gold-rgb), 0.32);
}
.game-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 12px;
  background: #0d1018;
  transition: transform 0.45s var(--ease);
}
.game-card:hover .game-cover { transform: scale(1.03); }
.game-cover.fallback-cover { object-fit: contain; padding: 26px; background: #0c0f18; }
.game-info { position: relative; padding: 13px 8px 9px; }
.game-type { font-size: 10px; color: var(--gold-soft); letter-spacing: 0.4px; }
.game-name { font-family: var(--font-display); font-size: 19px; font-weight: 400; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 4px 22px 8px 0; color: var(--ink); }
.game-info > svg { position: absolute; right: 8px; top: 38px; width: 15px; color: var(--gold); opacity: 0.78; transition: transform 0.2s, opacity 0.2s; }
.game-card:hover .game-info > svg { transform: translate(2px, -2px); opacity: 1; }
.game-meta { display: flex; gap: 12px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.game-desc { display: none; }
.library-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 15px; font-size: 12px; color: var(--muted); }
.library-foot > span { display: flex; align-items: center; gap: 8px; }
.library-foot svg { width: 15px; color: var(--gold); }
.empty-state { text-align: center; padding: 48px; }
.empty-state > svg { margin-inline: auto; margin-bottom: 12px; color: var(--gold); width: 28px; height: 28px; }
.empty-state h3 { font-size: 16px; margin-bottom: 12px; }

/* Capabilities */
.capabilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.capabilities article {
  padding: 26px 24px;
  transition: transform 0.3s var(--ease), border-color 0.25s;
}
.capabilities article:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
  margin-bottom: 20px;
}
.capabilities article:nth-child(2) .feature-icon { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); color: #34d399; }
.capabilities article:nth-child(3) .feature-icon { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.28); color: #38bdf8; }
.capabilities article:nth-child(4) .feature-icon { background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.28); color: #f472b6; }
.capabilities h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.04em; margin-bottom: 10px; font-weight: 400; color: var(--ink); }
.capabilities p { font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* Download Banner */
.download-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 42px 44px;
  gap: 28px;
  overflow: hidden;
  border-color: rgba(245, 208, 148, 0.26);
  background: linear-gradient(135deg, rgba(16, 18, 28, 0.88), rgba(10, 12, 19, 0.92));
}
.download-inner::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -40px;
  top: -210px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22), transparent 68%);
  pointer-events: none;
}
.download-brand { display: flex; align-items: center; gap: 24px; position: relative; z-index: 1; }
.download-logo-wrap {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.16), rgba(14, 17, 26, 0.7));
  border: 1px solid rgba(var(--gold-rgb), 0.26);
  flex-shrink: 0;
}
.download-logo-wrap img { object-fit: contain; filter: drop-shadow(0 8px 20px rgba(var(--gold-rgb), 0.36)); }
.download-brand h2 { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.03em; font-weight: 400; color: var(--ink); }
.download-brand .section-eyebrow { margin-bottom: 6px; }
.download-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.release-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  color: var(--gold-hi);
  font-weight: 600;
}
.release-chip .live-dot { width: 6px; height: 6px; box-shadow: none; }
.download-action { flex-shrink: 0; text-align: center; position: relative; z-index: 1; }
.download-action > p { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: 1fr 1.6fr; gap: 55px; padding-bottom: 84px; }
.faq-heading > p:last-child { font-size: 13px; color: var(--muted); margin-top: 12px; }
.faq-list details { border-bottom: 1px solid var(--border-subtle); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 560;
  color: var(--ink);
  padding: 20px 0;
  transition: color 0.2s;
}
.faq-list summary:hover { color: var(--gold-hi); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 16px; color: var(--gold); transition: transform 0.28s; }
.faq-list details[open] svg { transform: rotate(45deg); }
.faq-list details > p { font-size: 13px; line-height: 1.85; color: var(--muted); padding: 0 28px 20px 0; max-width: 560px; }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); padding-top: 30px; padding-bottom: 28px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-top { padding-bottom: 24px; }
.footer-top nav { display: flex; gap: 26px; font-size: 12.5px; color: var(--muted); }
.footer-top .brand-name { font-size: 17px; }
.footer-top .brand-en { font-size: 10px; letter-spacing: 0.5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; color: var(--muted); font-size: 11.5px; }
.footer-bottom .text-link { font-size: 11.5px; }
.footer-bottom svg { width: 14px; }
.icp-link { white-space: nowrap; }

/* Game Detail Dialog */
.game-dialog {
  padding: 0;
  width: min(820px, 92vw);
  border: 1px solid rgba(245, 208, 148, 0.28);
  border-radius: 24px;
  background: rgba(11, 13, 20, 0.96);
  color: var(--ink);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 248, 235, 0.14);
  overflow: hidden;
  max-height: 88vh;
}
.game-dialog[open] { display: grid; grid-template-columns: 1.05fr 1fr; animation: dialogIn 0.3s var(--ease); }
.game-dialog::backdrop { background: rgba(3, 5, 10, 0.76); backdrop-filter: blur(12px); }
#dialog-cover { height: 100%; min-height: 360px; width: 100%; object-fit: cover; background: #090b12; }
.dialog-content { padding: 36px 28px; overflow-y: auto; }
.dialog-content h2 { font-size: 25px; margin: 12px 0 14px; color: var(--ink); }
.dialog-content > p { font-size: 13px; line-height: 1.85; color: var(--sub); margin-bottom: 12px; }
.dialog-meta { color: var(--gold-soft) !important; font-size: 12px !important; }
.dialog-gate { font-size: 11.5px !important; color: var(--muted) !important; }
.dialog-content .button { margin-top: 14px; }
.dialog-close { position: absolute; right: 14px; top: 14px; margin: 0; }
.dialog-close .icon-button { background: rgba(10, 12, 18, 0.78); border-color: rgba(245, 208, 148, 0.26); color: var(--ink); }
.noscript { position: fixed; bottom: 15px; left: 5%; width: 90%; padding: 18px; background: #141824; border: 1px solid var(--border); color: var(--ink); z-index: 40; border-radius: 12px; font-size: 12.5px; }

@keyframes noteFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-image-enter { animation: dialogIn 0.42s var(--ease); }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 56px); }
  .desktop-nav { gap: 20px; }
  .hero { gap: 24px; min-height: 580px; padding-top: 52px; }
  .hero h1 { font-size: 42px; }
  .floating-note { padding: 10px 13px; }
  .note-two { left: -10px; }
  .platform-names { gap: 22px; font-size: 14px; }
  .games-grid { gap: 16px; }
  .capabilities { gap: 14px; }
  .download-inner { padding: 34px 28px; }
}

@media (max-width: 820px) {
  :root { scroll-padding-top: 96px; }
  .shell { width: calc(100% - 32px); }
  .header { top: 12px; margin-top: 12px; border-radius: 16px; }
  .header-inner { height: 62px; padding: 0 14px; gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
  .desktop-nav { display: none; }
  .header-download { padding: 8px 12px; font-size: 12px; }
  .header-download svg { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 44px; min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .release-line { justify-content: center; }
  .metadata-state { position: static; display: block; margin-top: 8px; }
  .hero-stage { width: min(500px, 100%); margin-inline: auto; padding: 8px 0; }
  .stage-highlights { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .highlight-pill { padding: 10px 13px; border-radius: 14px; }
  .platform-strip { flex-direction: column; gap: 12px; }
  .platform-names { width: 100%; gap: 10px; font-size: 12.5px; }
  .section { padding-top: 56px; }
  .section-heading { gap: 14px; margin-bottom: 20px; }
  .section h2 { font-size: 24px; }
  .section-heading > p { display: none; }
  .library-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .segments { width: max-content; max-width: 100%; }
  .search { width: 100%; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card { padding: 6px; border-radius: 15px; }
  .capabilities { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .capabilities article { padding: 20px 16px; border-radius: 18px; }
  .download-inner { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .download-action .button { width: 100%; }
  .faq-section { grid-template-columns: 1fr; gap: 22px; padding-bottom: 52px; }
  .footer-top, .footer-bottom { flex-wrap: wrap; gap: 14px; }
  .game-dialog[open] { grid-template-columns: 1fr; overflow: auto; }
  #dialog-cover { max-height: 220px; min-height: 0; aspect-ratio: 1.8; }
  .dialog-content { padding: 24px; }
  .dialog-content .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fluid-backdrop { display: none; }
}
html[data-cloud-playing=false] .floating-note { animation-play-state: paused; }
