/* CH Development — sleek monochrome */
:root {
  --bg: #060608;
  --bg-2: #0b0b0f;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.18);
  --text: #f2f2f4;
  --muted: #9a9aa3;
  --faint: #5f5f68;
  --silver: linear-gradient(180deg, #ffffff 0%, #c9c9d1 55%, #8d8d97 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
h1, h2, h3, .hero-sub, .section-sub, .cta p, .notice { text-wrap: balance; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.g1 { width: 720px; height: 720px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); }
.g2 { width: 600px; height: 600px; right: -220px; top: 55%; background: radial-gradient(circle, rgba(170,175,200,.10), transparent 65%); }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}
.bg-grain {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 6, 8, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { width: min(var(--container), 100% - 40px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel-hi); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 24px; }
.nav.open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; font-family: var(--font); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-light { background: #f4f4f6; color: #0a0a0c; box-shadow: 0 8px 30px rgba(255,255,255,.12); }
.btn-light:hover { box-shadow: 0 10px 40px rgba(255,255,255,.22); }
.btn-ghost { background: var(--panel); border-color: var(--line-hi); color: var(--text); }
.btn-ghost:hover { background: var(--panel-hi); border-color: rgba(255,255,255,.3); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* hero */
.hero { min-height: min(100svh, 1100px); display: flex; align-items: center; position: relative; padding: 120px 0 90px; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: 132px; height: 132px; margin-bottom: 26px; position: relative; }
.hero-logo::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 62%); z-index: -1; animation: breathe 6s ease-in-out infinite; }
.hero-logo img { width: 100%; height: 100%; filter: drop-shadow(0 6px 30px rgba(255,255,255,.18)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line-hi); }
.hero-title { font-size: clamp(40px, 7vw, 84px); font-weight: 700; margin: 18px 0 20px; }
.shine { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 600px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 64px; flex-wrap: wrap; justify-content: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 920px; }
.stat { text-align: left; padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.stat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.stat:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.stat:hover::after { transform: translateX(100%); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.stat-value { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 12px; color: var(--faint); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee08f; box-shadow: 0 0 0 0 rgba(94,224,143,.6); animation: pulse 2s infinite; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 1px solid var(--line-hi); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: scroll 2s var(--ease) infinite; }

/* sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; margin-top: 16px; }
.section-sub { color: var(--muted); margin-top: 14px; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.about .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.lead { font-size: clamp(18px, 1.9vw, 22px); color: #cfcfd5; line-height: 1.6; }
.lead strong { color: var(--text); font-weight: 600; }
.lead-2 { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; }
.facts { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.fact { padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid var(--line); transition: background .25s; }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
a.fact:hover { background: var(--panel-hi); }
.fact small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fact b { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fact em { font-style: normal; font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-hi); color: var(--muted); }
.fact-founder { flex-direction: row; align-items: center; gap: 12px; }
.fact-founder img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-hi); }
.fact-founder span { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact:nth-child(odd) { border-right: 0; } .fact:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.pillars { display: grid; gap: 12px; margin-top: 40px; }
.pillar { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: grid; grid-template-columns: auto 1fr; column-gap: 20px; transition: border-color .3s, background .3s; }
.pillar:hover { border-color: var(--line-hi); background: var(--panel-hi); }
.pillar-num { grid-row: span 2; font-family: var(--display); font-size: 14px; color: var(--faint); padding-top: 3px; }
.pillar h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 370px)); gap: 18px; justify-content: center; }
.game { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.game:hover { transform: translateY(-6px); border-color: var(--line-hi); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04); }
.game-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(135deg, #15151b, #0c0c10); }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.game:hover .game-art img { transform: scale(1.05); }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,11,15,.85)); }
.game-art .art-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.3) brightness(.55); transform: scale(1.1); }
.game-art img.art-icon { position: absolute; z-index: 1; left: 50%; top: 50%; width: auto; height: 74%; aspect-ratio: 1; object-fit: cover; transform: translate(-50%, -54%); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
.game:hover .game-art img.art-icon { transform: translate(-50%, -56%) scale(1.04); }
.game-actions { margin-top: auto; display: flex; gap: 8px; }
.game-actions .btn { flex: 1; }
.game-art .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.game-art .ph img { width: 72px; height: 72px; object-fit: contain; opacity: .5; }
.game-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(6,6,8,.65); border: 1px solid var(--line-hi); backdrop-filter: blur(8px); }
.game-live { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(6,6,8,.65); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 7px; backdrop-filter: blur(8px); }
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.game-top { display: flex; align-items: center; gap: 12px; }
.game-icon { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); object-fit: cover; flex: none; }
.game-name { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.game-meta { display: flex; gap: 22px; color: var(--muted); font-size: 13px; }
.game-meta b { display: block; color: var(--text); font-family: var(--display); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.games-more { display: flex; justify-content: center; margin-top: 28px; }
.skeleton { min-height: 360px; background: linear-gradient(100deg, var(--bg-2) 30%, #131318 50%, var(--bg-2) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px; border: 1px dashed var(--line-hi); border-radius: var(--radius); }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 270px)); gap: 14px; justify-content: center; }
.member { padding: 26px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .3s var(--ease), border-color .3s; }
.member:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 14px; background: radial-gradient(circle at 30% 30%, #2a2a33, #111116); border: 1px solid var(--line-hi); display: grid; place-items: center; overflow: hidden; font-family: var(--display); font-weight: 600; font-size: 26px; color: #d9d9df; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.portrait { width: 100%; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-hi); background: #111; }
.portrait img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.member:hover .portrait img { transform: scale(1.03); }
.member:has(.portrait) { padding: 14px 14px 22px; }
.member h3 { font-size: 17px; font-weight: 600; }
.member p { color: var(--muted); font-size: 14px; }
.notice { margin: 36px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: 14px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); }
.notice strong { color: var(--text); }

/* cta */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 90px) 24px; border-radius: 28px; border: 1px solid var(--line-hi); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); display: flex; flex-direction: column; align-items: center; }
.cta-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: -60%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); pointer-events: none; }
.cta-logo { width: 72px; height: 72px; margin-bottom: 22px; position: relative; }
.cta h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 600; position: relative; }
.cta p { color: var(--muted); margin: 14px 0 30px; position: relative; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; position: relative; }
.social { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--panel-hi); border: 1px solid var(--line-hi); font-weight: 600; font-size: 14px; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.social:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.32); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social-count { color: var(--muted); font-weight: 500; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 50px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-inner .brand { color: var(--text); margin-right: auto; }
.footer-inner .brand img { width: 28px; height: 28px; }
.footer-small { color: var(--faint); font-size: 13px; }

/* reveal */
/* (hidden only while the reveal script runs - html.js; the hero animates in on its own) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; } .hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; } .hero .reveal:nth-child(5) { animation-delay: .32s; }
.hero .reveal:nth-child(6) { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,224,143,.55); } 70% { box-shadow: 0 0 0 9px rgba(94,224,143,0); } 100% { box-shadow: 0 0 0 0 rgba(94,224,143,0); } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes shimmer { to { background-position: -300% 0; } }

/* responsive */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about .section-head { position: static; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: 10px; border-radius: var(--radius); background: rgba(10,10,13,.96); border: 1px solid var(--line-hi); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(6,6,8,.9); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr; max-width: 420px; }
  .stat { text-align: center; align-items: center; }
}
@media (max-width: 520px) {
  .container, .nav-inner { width: calc(100% - 32px); }
  .games, .team { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
