:root {
    --ink: #0C0E11;
    --ink-2: #14171C;
    --line: rgba(255,255,255,0.10);
    --text: #F2F4F6;
    --muted: rgba(242,244,246,0.66);
    --radius: 28px;
    --side: clamp(16px, 5vw, 64px);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--ink); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--side); }

  /* Display type: the same heavy italic caps as the games */
  .display { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95; margin: 0; }
  .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

  /* Header */
  header.top { position: sticky; top: 0; z-index: 20; background: rgba(12,14,17,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .top .logo img { height: 30px; width: auto; }
  .top nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
  .top nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
  .top nav a:hover { color: var(--text); }

  /* Hero */
  .hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
  .hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; background:
      radial-gradient(40% 50% at 18% 30%, rgba(40,98,245,0.30), transparent 70%),
      radial-gradient(35% 45% at 55% 10%, rgba(52,160,70,0.28), transparent 70%),
      radial-gradient(40% 50% at 90% 40%, rgba(176,120,230,0.26), transparent 70%);
    pointer-events: none; }
  .hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
  .hero h1 { font-size: clamp(44px, 7.4vw, 96px); }
  .hero p.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 520px; margin: 26px 0 32px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.01em; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s; }
  .btn:hover { transform: translateY(-2px); }
  .btn-light { background: #fff; color: var(--ink); }
  .btn-ghost { border: 1.5px solid rgba(255,255,255,0.28); color: var(--text); }
  .hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

  /* Hero tiles: one per game, tilted like a hand of cards */
  .tiles { position: relative; height: 420px; }
  .tile { position: absolute; width: 210px; height: 280px; border-radius: 26px; display: grid; place-items: center; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18); }
  .tile img { max-height: 100%; object-fit: contain; }
  .tile.ff { background: linear-gradient(160deg, #4EA1FF, #1E4FF0); left: 4%; top: 70px; transform: rotate(-11deg); }
  .tile.ff img { width: 150px; border-radius: 30px; box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
  .tile.bj { background: radial-gradient(120% 90% at 50% 20%, #3E8A3E, #1C4A22 70%, #102A14); left: 31%; top: 20px; z-index: 2; transform: rotate(2deg); }
  .tile.ow { background: linear-gradient(170deg, #CDE3FF, #B89AF0 75%); right: 2%; top: 92px; transform: rotate(12deg); }

  /* Games */
  section.games { padding: clamp(40px, 6vw, 80px) 0; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
  .game { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; min-height: 460px; isolation: isolate; }
  .game .copy { padding: clamp(32px, 4.5vw, 64px); position: relative; z-index: 2; }
  .game .copy .logo-img { width: min(320px, 70%); margin-bottom: 22px; }
  .game h3 { font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 14px; }
  .game p { font-size: 17px; line-height: 1.6; margin: 0 0 26px; max-width: 440px; }
  .game .stores { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .game .stores img { height: 46px; width: auto; }
  .game .links { margin-top: 18px; font-size: 13px; font-weight: 600; opacity: 0.75; }
  .game .links a { text-decoration: none; border-bottom: 1px solid currentColor; }
  .game .art { position: relative; height: 100%; display: grid; place-items: center; padding: 32px; }
  .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }

  /* BlackJack Lite: the felt table, lime accent */
  .bj-card { background: radial-gradient(90% 120% at 70% 40%, #3F8C3F 0%, #23592A 45%, #10281A 100%); color: #fff; }
  .bj-card .tag { background: #CCFF33; color: #14200A; }
  .bj-card p { color: rgba(255,255,255,0.82); }
  .phone { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1440 / 672; border-radius: 34px; padding: 10px; background: #050607; box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1.5px rgba(255,255,255,0.12); transform: rotate(-3deg); }
  .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

  /* Oware Lite: lilac sky and clouds */
  .ow-card { background: linear-gradient(160deg, #D9ECFF 0%, #C7B8F6 55%, #A98BE6 100%); color: #3B2A66; }
  .ow-card .tag { background: #fff; color: #7C4CD6; }
  .ow-card p { color: #4A3A78; }
  .ow-card .art img.board { width: 100%; max-width: 560px; filter: drop-shadow(0 30px 40px rgba(60,30,120,0.35)); }
  .ow-card .bit { position: absolute; filter: drop-shadow(0 14px 18px rgba(60,30,120,0.3)); }
  .ow-card .bit.marble { width: 96px; top: 6%; right: 8%; }
  .ow-card .bit.cowrie { width: 70px; bottom: 8%; left: 6%; transform: rotate(-20deg); }
  .ow-card .bit.bean { width: 90px; bottom: 10%; right: 12%; }
  .ow-card .links a { color: #4A3A78; }

  /* FaceOff FM: electric blue */
  .ff-card { background: radial-gradient(90% 120% at 75% 30%, #4EA1FF 0%, #2862F5 50%, #1736B8 100%); color: #fff; }
  .ff-card .tag { background: #fff; color: #2862F5; }
  .ff-card p { color: rgba(255,255,255,0.85); }
  .ff-card .art img { width: min(300px, 70%); border-radius: 22%; box-shadow: 0 30px 60px rgba(0,0,0,0.35); transform: rotate(6deg); }
  .ff-card .btn-light { color: #2862F5; }

  .game.flip { grid-template-columns: 1.1fr 1fr; }
  .game.flip .copy { order: 2; }

  /* About */
  section.about { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
  .about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .about h2 { font-size: clamp(32px, 4.4vw, 56px); }
  .about p { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0 0 22px; }

  /* Footer */
  footer.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 13px; color: var(--muted); }
  .foot .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
  .foot .social { display: flex; gap: 18px; align-items: center; }
  .foot .social img { height: 22px; width: auto; opacity: 0.85; }
  .foot .social a:hover img { opacity: 1; }
  .foot .legal { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
  .foot .legal a { text-decoration: none; color: var(--muted); }
  .foot .legal a:hover { color: var(--text); }
  .foot .small { line-height: 1.6; max-width: 820px; opacity: 0.75; }

  /* Mobile */
  @media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .tiles { height: 300px; max-width: 420px; margin: 8px auto 0; width: 100%; }
    .tile { width: 150px; height: 200px; border-radius: 20px; padding: 16px; }
    .tile.ff img { width: 104px; border-radius: 22px; }
    .tile.ff { top: 60px; } .tile.ow { top: 74px; }
    .game, .game.flip { grid-template-columns: 1fr; min-height: 0; }
    .game.flip .copy { order: 0; }
    .game .art { padding: 0 24px 36px; }
    .about .wrap { grid-template-columns: 1fr; gap: 8px; }
    .section-head { flex-direction: column; align-items: start; }
  }
  @media (max-width: 520px) {
    .top nav { gap: 18px; font-size: 14px; }
    .game .stores img { height: 42px; }
  }

  /* Text pages (About, Blog, policies, 404) */
  .page { padding: clamp(48px, 7vw, 96px) 0; }
  .page .wrap { max-width: 820px; }
  .page h1.display { font-size: clamp(38px, 6vw, 72px); margin-bottom: 28px; }
  .prose p, .prose li { font-size: 17px; line-height: 1.75; color: rgba(242,244,246,0.82); }
  .prose h2, .prose h3 { color: var(--text); }
  .prose a { color: #fff; }
  .post { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); margin-bottom: 28px; }
  .post .post-header h1 { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; margin: 0 0 8px; }
  .post time { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
  .legal-doc { color: rgba(242,244,246,0.82); }
  .legal-doc h1 { display: none; }
  .legal-doc p, .legal-doc li { font-size: 15.5px !important; line-height: 1.7 !important; }
  .legal-doc strong { color: #fff; }
