:root {
  color-scheme: dark;
  --bg: #07101e;
  --panel: #101d31;
  --text: #f4f8ff;
  --muted: #a9b7ca;
  --accent: #4de0b5;
  --line: #26364e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -20%, #17345a 0, #07101e 45%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #07101ee8;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.brand span {
  margin-left: .75rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 56px 0 80px;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: .25em 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.02;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.markets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 44px auto 0;
}

.market {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #15243c, #0d1728);
  box-shadow: 0 20px 50px #0005;
  color: var(--text);
  text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.market:hover,
.market:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 24px 60px #0008, 0 0 0 3px #4de0b52e;
  transform: translateY(-3px);
}

.logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.logo-frame img {
  position: absolute;
  inset: 4%;
  display: block;
  width: 92%;
  height: 92%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.logo-frame.powerball img {
  inset: 14%;
  width: 72%;
  height: 72%;
}
.logo-mark { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 18px; background: linear-gradient(135deg,#4de0b5,#1584d8); color: #06111f; font-size: clamp(1.45rem,4vw,2.6rem); font-weight: 950; letter-spacing: -.04em; }

.market strong { font-size: 1.45rem; }
.market > span:last-child { color: var(--muted); }

.country-card {
  min-height: 205px;
  align-content: center;
  padding: 18px 12px;
}

.flag {
  display: grid;
  place-items: center;
  width: 92px;
  height: 70px;
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 10px 14px #0007);
}

.country-card strong { font-size: 1.15rem; }
.country-card > span:last-child { font-size: .82rem; }
.country-page { text-align: left; }
.country-heading { display: flex; align-items: center; justify-content: center; gap: 24px; max-width: 900px; margin: 0 auto 34px; }
.country-heading h1 { margin: .08em 0; }
.country-heading .lead { margin: 0; }
.flag.large { width: 130px; height: 100px; flex: 0 0 auto; font-size: 6rem; }
.lottery-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; max-width: 920px; margin: 0 auto 32px; }
.lottery-option { text-align: center; }
.lottery-option .logo-frame { aspect-ratio: 4 / 3; }
.lottery-option small { color: var(--accent); font-weight: 800; }
.back-link { display: block; width: fit-content; margin: auto; color: var(--accent); font-weight: 800; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

footer div { display: grid; gap: 4px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text); }

.site-header{gap:20px}.language-picker{display:flex;align-items:center;gap:10px;margin-left:auto}.language-picker label{font-size:.78rem;font-weight:800;color:var(--muted)}.language-picker select{padding:9px 32px 9px 11px;border:1px solid var(--line);border-radius:10px;background:#101e32;color:var(--text);font:inherit;font-size:.88rem;font-weight:750}.language-picker button{padding:8px 10px;border:0;border-radius:8px;background:var(--accent);font-weight:800}

@media (max-width: 720px) {
  .site-header{align-items:flex-start;flex-direction:column}.language-picker{width:100%;margin:0}.language-picker select{flex:1}
  .hero {
    width: min(1120px, calc(100% - 12px));
    padding-top: 42px;
  }

  .brand span { display: none; }
  .markets,.lottery-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }

  .market {
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }

  .logo-frame { border-radius: 10px; }
  .market strong { font-size: clamp(.85rem, 4vw, 1.1rem); }
  .market > span:last-child { font-size: clamp(.68rem, 3vw, .85rem); }
  .country-heading { align-items: flex-start; gap: 12px; }
  .flag.large { width: 80px; height: 62px; font-size: 3.8rem; }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .markets,.lottery-options { grid-template-columns: 1fr; }
  .country-card { min-height: 165px; }
}

/* Compact three-column lottery directories */
.lottery-options{grid-template-columns:repeat(3,minmax(0,1fr))}.lottery-options .logo-frame{height:72px;padding:10px 20px;box-sizing:border-box}.lottery-options .logo-frame img{position:static;width:100%;height:100%;max-height:none}
@media(max-width:850px){.lottery-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.lottery-options{grid-template-columns:1fr}}
