/* Match KeySync desktop app palette / texture */
:root {
  --bg0: #0a0c10;
  --bg1: #12161f;
  --bg2: #1a2030;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f8;
  --muted: #8b97ad;
  --accent: #6cb6ff;
  --accent2: #8b7cff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1a2740 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #2a1f4a 0%, transparent 50%),
    var(--bg0);
  line-height: 1.55;
}

.mist {
  pointer-events: none;
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  z-index: 0;
}
.mist-a {
  top: -12%;
  left: -12%;
  background: rgba(108, 182, 255, 0.22);
}
.mist-b {
  bottom: -18%;
  right: -12%;
  background: rgba(139, 124, 255, 0.2);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 70px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(108, 182, 255, 0.12), rgba(139, 124, 255, 0.08));
  box-shadow: var(--shadow);
}

.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0c10;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(108, 182, 255, 0.28);
}
.brand-name {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text);
}
.tag {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.btn.rune {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #0a0c10;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(108, 182, 255, 0.25);
  transition: transform 0.15s, filter 0.15s;
}
.btn.rune:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.intro {
  text-align: center;
  margin: 32px 0 36px;
}
.sigil {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 1.15rem;
  opacity: 0.9;
}
.intro h1 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #eef2f8, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.05rem;
}

.games { margin-top: 12px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}

.cover-tile {
  position: relative;
  aspect-ratio: 2 / 3;
  max-height: 300px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-color: var(--bg1);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cover-tile:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(108, 182, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.cover-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 0 1px #000,
    0 1px 0 #000,
    1px 0 0 #000,
    -1px 0 0 #000,
    0 -1px 0 #000;
}

.how {
  margin-top: 52px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg1);
  box-shadow: var(--shadow);
}
.how h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--accent);
}
.how ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.how li { margin: 0.5rem 0; }

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
