/* venvear.github.io — shared styles (site root + countries/) */
:root {
  --bg: #0c1220;
  --bg-elevated: #121a2b;
  --text: #e8edf7;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --card-border: rgba(255, 255, 255, 0.08);
  --radius: 1rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  /* Display / titles — same family, tighter tracking in components */
  --serif: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

/* Soft radial glows */
.glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 55vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(99, 102, 241, 0.15), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* “Collage” of flag emojis — no external images */
.flag-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.11;
  font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  line-height: 1.1;
  word-break: break-all;
  user-select: none;
  filter: blur(0.2px) saturate(0.9);
  pointer-events: none;
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.12em;
}

.header-bg,
.skip-link,
.site-header,
.wrap,
.site-footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  z-index: 100;
}

.site-header {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0.5rem;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: rgba(56, 189, 248, 0.5);
  outline: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  font-size: 2.25rem;
  line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(56, 189, 248, 0.35));
}

/* App Store icon (PNG in countries/) */
.brand-app-icon {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
}

.brand-name {
  margin: 0.1rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.wrap-wide {
  max-width: 52rem;
}

.landing-hero {
  text-align: center;
}
.landing-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.landing-tagline {
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin: 0 0 1rem;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}

.games-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.game-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.game-card-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.3));
}
.game-card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.game-card-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.game-card-desc {
  margin: 0;
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  align-items: center;
}

.btn-outline {
  display: inline-block;
  padding: 0.52rem 0.95rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.7);
  outline: none;
}
.btn-outline:focus-visible {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(125, 211, 252, 0.35);
}

.muted-center {
  text-align: center;
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card {
  background: linear-gradient(150deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.meta code {
  font-size: 0.8rem;
  padding: 0.2rem 0.45rem;
  background: var(--accent-soft);
  color: #bae6fd;
  border-radius: 0.4rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.action-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.action-ico {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 0.75rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #0c1220;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.6rem;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45);
  outline: none;
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #7dd3fc;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.faq details {
  border: 1px solid var(--card-border);
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.4);
  overflow: hidden;
}

.faq summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: #e2e8f0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0;
  padding: 0 1rem 0.9rem 1rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.fine-print p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal h2 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}
.legal h2:first-of-type,
.legal > h2:first-child {
  margin-top: 0;
}
.legal p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}
.legal p:last-child {
  margin-bottom: 0;
}
.legal a.text-link {
  font-weight: 500;
  word-break: break-word;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.subtle {
  opacity: 0.8;
}
.site-footer p {
  margin: 0;
}

/* Fill flag strip via JS (keeps HTML clean) */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
