/* pokerio.ca homepage — same look as the invite page (join/index.html). */
*{ margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:#fff; background:#050304; min-height:100dvh; line-height:1.5;
}
/* The backdrop stays put while the page scrolls (background-attachment:fixed
   is unreliable on iOS). */
body::before{
  content:""; position:fixed; inset:0; z-index:-1;
  background:radial-gradient(120% 90% at 50% 20%, #5a2c39 0%, #371a22 26%, #1a0e11 55%, #0a0608 78%, #050304 100%);
}

/* Show only the chosen language (set on <html> by home.js; English by default). */
html:not([data-lang="zh"]) [lang="zh"], html[data-lang="zh"] [lang="en"]{ display:none; }

a{ color:inherit; }
img{ display:block; }
/* Even line lengths in English, so a short last line doesn't dangle. (Not in
   Chinese: balancing there splits words such as 结算 across lines.) */
html:not([data-lang="zh"]) :is(h1, h2, h3, .lead, .card p, .step p, .note p){ text-wrap:balance; }

/* ---------- Liquid glass ---------- */
.glass{
  position:relative;
  background:rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(34px) saturate(180%);
  backdrop-filter:blur(34px) saturate(180%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:28px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 24px 60px rgba(0,0,0,.45);
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background:rgba(10,6,8,.45);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  backdrop-filter:blur(20px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; font-size:18px; font-weight:700; }
.brand img{ width:32px; height:32px; border-radius:22.5%; }
.nav-right{ display:flex; align-items:center; gap:10px; }
.lang, .nav-cta{
  font:inherit; font-size:14px; font-weight:600; line-height:1.2; color:#fff; text-decoration:none; cursor:pointer;
  padding:7px 14px; border-radius:999px;
  border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06);
}
.nav-cta{ background:#fff; border-color:#fff; color:#1a0e11; }

main{
  width:min(1080px, 100%); margin:0 auto;
  padding:24px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}

/* ---------- Hero ---------- */
.hero{
  max-width:640px; margin:clamp(12px,4vh,40px) auto 0;
  padding:clamp(32px,6vw,56px) 24px; text-align:center; overflow:hidden;
  animation:rise .9s .1s cubic-bezier(.2,.7,.2,1) both;
}
/* bright top-edge highlight */
.hero::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
}
.hero > *{ position:relative; }
.hero-icon{
  width:clamp(96px,26vw,128px); height:auto; margin:0 auto 24px; border-radius:22.5%;
  box-shadow:0 18px 50px rgba(0,0,0,.45), 0 0 60px rgba(255,255,255,.12);
}
h1{ font-size:clamp(34px,8vw,58px); font-weight:800; line-height:1.08; letter-spacing:-.02em; }
.lead{ margin-top:16px; font-size:clamp(17px,4.2vw,21px); color:rgba(255,255,255,.82); }
.platforms{ margin-top:16px; font-size:13px; color:rgba(255,255,255,.55); }

/* glass App Store badge (as on the invite page) */
.badge{
  display:inline-flex; align-items:center; gap:11px; margin-top:28px;
  padding:10px 18px; border-radius:14px; text-decoration:none;
  background:rgba(10,6,8,.42);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 2px rgba(0,0,0,.3), 0 10px 26px rgba(0,0,0,.4);
  transition:transform .15s ease;
}
.badge:active{ transform:scale(.96); }
.badge svg{ width:25px; height:25px; fill:#fff; }
.badge .tx{ text-align:left; line-height:1.1; }
.badge .tx small{ display:block; font-size:11px; font-weight:500; opacity:.92; }
.badge .tx strong{ display:block; margin-top:1px; font-size:20px; font-weight:600; letter-spacing:.2px; }

/* ---------- Sections ---------- */
.section{ margin-top:clamp(48px,9vh,88px); }
h2{ margin-bottom:24px; text-align:center; font-size:clamp(24px,5vw,34px); font-weight:800; letter-spacing:-.01em; }
h3{ font-size:18px; font-weight:700; }
/* 3 × 2 on desktop, 2 columns on tablets, 1 on phones */
.grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(290px, 1fr)); gap:16px; }
.card{ padding:24px; }
.emoji{ margin-bottom:12px; font-size:28px; }
.card p, .step p{ margin-top:6px; font-size:15px; color:rgba(255,255,255,.72); }

.steps{ list-style:none; display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; }
.step{ padding:24px; }
.num{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; margin-bottom:12px; border-radius:50%;
  background:#fff; color:#1a0e11; font-weight:800;
}

.note{ margin-top:clamp(48px,9vh,88px); padding:20px 24px; border-radius:20px; text-align:center; }
.note p{ font-size:14px; color:rgba(255,255,255,.7); }

/* ---------- Footer ---------- */
.footer{
  padding:24px 16px calc(32px + env(safe-area-inset-bottom));
  text-align:center; font-size:13px; color:rgba(255,255,255,.5);
}
.footer nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 20px; margin-bottom:10px; }
.footer a{ text-decoration:none; color:rgba(255,255,255,.75); }
.footer a:hover{ color:#fff; }

a:focus-visible, button:focus-visible{ outline:2px solid #fff; outline-offset:3px; }

@keyframes rise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce){ *{ animation:none !important; } }
