/* Zmeo — the games family's site. GlassKit's tokens (the same as flytalkie.com: brand cyan, the dark and light
   surfaces, glass), with the games' futuristic layer: a neon grid floor, drifting light, per-game glows. */

:root {
  --radius: 14px;
  --brand: #00bcd4;
  --brand-2: #4dd0e1;
  --brand-deep: #00838f;
  --brand-glow: rgba(0, 188, 212, 0.32);

  --bg: #0d0f12;
  --surface-1: #1a1d21;
  --surface-2: #22262b;
  --surface-3: #2a2d32;
  --fg: #eef2f5;
  --muted: #9aa3ad;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --glass-solid: #1d2125;
  --grid: rgba(77, 208, 225, 0.22);
  --grain-opacity: 0.06;

  /* The games' own light. */
  --gold: #ffcf5c;
  --gold-glow: rgba(255, 207, 92, 0.30);
  --rainbow: linear-gradient(90deg, #ff4d6d, #ff9f1c, #ffd60a, #3ddc84, #4dd0e1, #4d7cff, #b26bff);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fa;
    --surface-1: #f5f7fa;
    --surface-2: #ffffff;
    --surface-3: #ebeef2;
    --fg: #0e1216;
    --muted: #5b6470;
    --border: rgba(14, 18, 22, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(14, 18, 22, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.85);
    --glass-solid: rgba(255, 255, 255, 0.94);
    --grid: rgba(0, 131, 143, 0.16);
    --grain-opacity: 0.03;
    --brand-glow: rgba(0, 188, 212, 0.22);
    --gold: #b7791f;
    --gold-glow: rgba(214, 158, 46, 0.22);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
@media (prefers-color-scheme: light) { a { color: var(--brand-deep); } }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--surface-2); padding: 8px 14px; border-radius: 10px; }

/* ---------- The backdrop: drifting light, a neon floor, film grain ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.orb-1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(0, 188, 212, 0.55), transparent 65%); animation: drift1 22s ease-in-out infinite; }
.orb-2 { width: 38vw; height: 38vw; right: -10vw; top: 10vh; background: radial-gradient(circle, rgba(0, 131, 143, 0.6), transparent 65%); animation: drift2 26s ease-in-out infinite; }
.orb-3 { width: 30vw; height: 30vw; left: 30vw; top: 46vh; background: radial-gradient(circle, rgba(178, 107, 255, 0.28), transparent 65%); animation: drift1 30s ease-in-out infinite reverse; }
@media (prefers-color-scheme: light) { .orb { opacity: 0.35; } }
.floor {
  position: absolute; left: -50%; right: -50%; bottom: -8vh; height: 62vh;
  background-image:
    linear-gradient(var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px);
  background-size: 72px 72px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floorRun 6s linear infinite;
}
.horizon {
  position: absolute; left: 0; right: 0; bottom: 38vh; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.55), transparent);
  box-shadow: 0 0 24px 4px rgba(0, 188, 212, 0.25);
  opacity: 0.45;
}
.floor { height: 44vh; }
.grain::after {
  content: ""; position: absolute; inset: 0; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@keyframes drift1 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, -30px, 0) scale(1.1); } }
@keyframes drift2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-50px, 40px, 0) scale(1.15); } }
@keyframes floorRun { from { background-position: 0 0; } to { background-position: 0 72px; } }

/* ---------- Glass (GlassKit) ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 20px 50px -24px rgba(0, 0, 0, 0.55);
}
.edge { position: relative; }
.edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--brand-2), transparent 40%, transparent 60%, var(--brand-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (hover: none), (pointer: coarse) {
  .glass { background: var(--glass-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .orb, .floor { animation: none; }
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.nav-wrap { position: sticky; top: 0; z-index: 20; padding: 14px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 999px; padding: 8px 10px 8px 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font: 700 21px/1 var(--font-round); letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 18px var(--brand-glow); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: var(--glass-bg); text-decoration: none; }
section { padding: 56px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2); }
@media (prefers-color-scheme: light) { .eyebrow { color: var(--brand-deep); } }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.45em; letter-spacing: -0.02em; line-height: 1.06; }
h1 { font-size: clamp(42px, 7.2vw, 84px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 750; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; }
.text-brand { background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 50%, var(--brand-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-rainbow { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { color: var(--gold); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons and pills ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 16px; padding: 13px 20px; font-weight: 600; font-size: 16px; color: var(--fg); border: 1px solid var(--glass-border); background: var(--glass-bg); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(77, 208, 225, 0.45); }
.btn-brand { color: #071114; border-color: transparent; background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, var(--brand-deep)); box-shadow: 0 10px 30px -8px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-brand:hover { box-shadow: 0 14px 40px -8px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; line-height: 1.1; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.center .pills { justify-content: center; }
.tick::before { content: "✓"; color: var(--brand-2); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.stage { position: relative; height: 560px; perspective: 1400px; }
.stage .phone { position: absolute; width: 240px; }
.stage .phone-a { left: 6%; top: 40px; transform: rotateY(18deg) rotateZ(-5deg); animation: float 7s ease-in-out infinite; }
.stage .phone-b { right: 4%; top: 0; transform: rotateY(-16deg) rotateZ(4deg); animation: float 8s ease-in-out infinite reverse; }
.stage .halo { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(77, 208, 225, 0.35); box-shadow: 0 0 60px rgba(0, 188, 212, 0.25), inset 0 0 60px rgba(0, 188, 212, 0.15); }
.stage .halo::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; border: 1px dashed rgba(77, 208, 225, 0.2); animation: spin 40s linear infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- A phone that holds a real capture ---------- */
.phone { border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #2c3136, #0b0d10); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.phone img, .phone .screen { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 32px; background: #05080b; }
.phone .screen { display: grid; place-items: center; }
.phone .screen img { width: 46%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 0 40px var(--gold-glow); }
.phone.glow-cyan { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -10px var(--brand-glow), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone.glow-gold { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -10px var(--gold-glow), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.game { border-radius: 28px; padding: 30px; display: grid; grid-template-columns: 1fr 150px; gap: 22px; align-items: center; overflow: hidden; color: var(--fg); transition: transform 0.3s ease, box-shadow 0.3s ease; }
a.game:hover { text-decoration: none; transform: translateY(-4px); }
.game .icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px; }
.game p { color: var(--muted); margin: 0 0 14px; }
.game .phone { width: 150px; padding: 6px; border-radius: 26px; }
.game .phone img, .game .phone .screen { border-radius: 21px; }
.game.deckspire { box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 60px -30px var(--gold-glow); }
.game.titirez { box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 60px -30px rgba(178, 107, 255, 0.35); }
.game .rule { height: 3px; width: 64px; border-radius: 3px; margin-bottom: 16px; }
.deckspire .rule { background: linear-gradient(90deg, var(--gold), transparent); }
.titirez .rule { background: var(--rainbow); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.soon { color: var(--gold); }
.status.dev { color: var(--brand-2); }
.more { display: inline-block; margin-top: 12px; font-weight: 600; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 34px; }
.tile { border-radius: 22px; padding: 24px; }
.tile .glyph { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; font-size: 22px; background: rgba(0, 188, 212, 0.12); box-shadow: inset 0 0 0 1px rgba(77, 208, 225, 0.25); }
.tile h3 { font-size: 19px; }
.tile p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- A game's page ---------- */
.game-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 56px 0 24px; }
.game-hero .title { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.game-hero .title img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6); }
.game-hero .title h1 { margin: 0; }
.game-hero .phones { display: flex; justify-content: center; gap: 20px; }
.game-hero .phones .phone { width: 230px; }
.game-hero .phones .phone:nth-child(2) { margin-top: 60px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.feature { border-radius: 18px; padding: 18px 20px; color: var(--muted); }
.feature strong { display: block; color: var(--fg); font-size: 17px; margin-bottom: 2px; }
.panel { border-radius: 24px; padding: 28px 30px; margin-top: 26px; }
.panel p { color: var(--muted); }

/* ---------- Legal and support ---------- */
.prose { max-width: 760px; padding: 48px 0 24px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); }
.updated { color: var(--muted); font-size: 15px; }
.faq { border-radius: 20px; padding: 22px 24px; margin: 14px 0; }
.faq h3 { font-size: 19px; }
.faq p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
footer { margin-top: 48px; padding: 36px 0 54px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* ---------- Entrance (time-based, never tied to scroll) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealIn 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .reveal.d1 { animation-delay: 80ms; } .reveal.d2 { animation-delay: 160ms; } .reveal.d3 { animation-delay: 240ms; }
}
@keyframes revealIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero, .game-hero { grid-template-columns: 1fr; }
  .stage { height: 440px; max-width: 520px; margin: 0 auto; width: 100%; }
  .stage .phone { width: 190px; }
  .stage .halo { width: 320px; height: 320px; }
  .games { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links a { padding: 7px 9px; font-size: 14px; }
  .nav-links .wide { display: none; }
  section { padding: 40px 0; }
  .hero { padding-top: 36px; }
  .stage { height: 380px; }
  .stage .phone { width: 160px; }
  .stage .phone-a { left: 2%; }
  .stage .phone-b { right: 2%; }
  .stage .halo { width: 260px; height: 260px; }
  .game { grid-template-columns: 1fr; padding: 24px; }
  .game .phone { display: none; }
  .game-hero .phones .phone { width: 46%; }
  .panel { padding: 22px; }
}
