/* VidiMaze pages: the app's home-screen look (purple-to-blue backdrop, faint cyan maze,
   rainbow title, smileys in the eight player colors). Shared by index, support and privacy. */
:root {
  color-scheme: dark;
  --bg-top: #3d1166;
  --bg-bottom: #0d1247;
  --panel: rgba(255, 255, 255, .07);
  --panel-strong: rgba(255, 255, 255, .11);
  --line: rgba(100, 210, 255, .22);
  --text: #f6f3ff;
  --muted: #c9c2e6;
  --cyan: #64d2ff;
  --pink: #ff375f;
  --magenta: #ee38c7;
  --yellow: #ffd60a;
  --radius: 26px;
  --max: 1080px;
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  background-color: var(--bg-bottom);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 0h40M40 0v40M80 40h40M120 0v40M0 80v40M40 80h40M80 80v40M120 120h40M40 120v40M80 160h40M0 40h40M120 80h40' stroke='%2364D2FF' stroke-opacity='.13' stroke-width='3' fill='none'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom) 70%);
  background-attachment: fixed;
}
a { color: var(--cyan); }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 18, 71, .62);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.navlinks { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.navlinks a { color: var(--muted); text-decoration: none; font-weight: 700; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--text); }

/* Type */
.title {
  font-size: clamp(56px, 11vw, 112px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.03em;
  display: inline-block;
  padding-right: .06em;
  margin: 0;
  background: linear-gradient(90deg, #ffd60a, #ff9f0a 28%, #ff375f 52%, #bf5af2 76%, #64d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 55, 95, .45));
}
.tagline { color: var(--cyan); font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin: 14px 0 0; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); max-width: 620px; }
h1.page { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 0 0 6px; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: 13px; }

/* Smiley row */
.smileys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.smileys span {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
  position: relative;
}
.smileys span::before {
  content: ""; position: absolute; left: 9px; top: 8px; width: 3px; height: 6px; border-radius: 2px;
  background: rgba(0, 0, 0, .8); box-shadow: 9px 0 0 rgba(0, 0, 0, .8);
}
.smileys span::after {
  content: ""; position: absolute; left: 8px; top: 13px; width: 14px; height: 7px;
  border: 2.5px solid rgba(0, 0, 0, .8); border-top: 0; border-radius: 0 0 14px 14px;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: var(--text);
  background: var(--panel-strong); border: 1px solid var(--line);
}
.button.primary { background: var(--magenta); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(238, 56, 199, .35); }
.button.soon { cursor: default; opacity: .85; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero-art img { width: min(100%, 360px); margin: 0 auto; filter: drop-shadow(0 0 40px rgba(255, 214, 10, .35)); }

/* Sections and cards */
section { padding: 36px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.card li { margin: 4px 0; }
.banner { text-align: center; padding: 36px 22px; }
.banner img { width: 96px; margin: 0 auto 10px; }

/* Long-form pages (support, privacy) */
.doc { max-width: 720px; padding: 48px 0 24px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc h3 { margin: 22px 0 4px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc code { color: var(--text); background: var(--panel-strong); padding: 1px 6px; border-radius: 6px; }
.callout { background: var(--panel-strong); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 30px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (max-width: 760px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
  .cards { grid-template-columns: 1fr; }
  .top .wrap { flex-wrap: wrap; gap: 6px 16px; padding: 10px 0; }
  .navlinks { width: 100%; font-size: 14px; gap: 4px 14px; }
}
