:root {
  --bg: #0d0d0f;
  --ink: #f4f1ea;
  --gold: #f0b429;
  --red: #ce1126;
  --green: #006b3f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* soft pixel-grid backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 180, 41, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 180, 41, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
}

/* warm glow behind the title */
body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 18%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(240, 180, 41, 0.18), rgba(206, 17, 38, 0.08) 45%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(48px, 9vw, 110px) 20px 40px;
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(44px, 11vw, 132px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-transform: uppercase;
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.title .pixal {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.title .ghana {
  background: linear-gradient(180deg, var(--gold) 0%, #ffd166 45%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  margin: 0;
  width: min(1080px, 100%);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(240, 180, 41, 0.25);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 6px rgba(13, 13, 15, 0.9);
  background: #141416;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 20px 34px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
}

.flag {
  display: inline-flex;
  gap: 3px;
}

.flag i {
  display: block;
  width: 18px;
  height: 6px;
}

.flag .r { background: var(--red); }
.flag .y { background: var(--gold); }
.flag .g { background: var(--green); }

@media (max-width: 640px) {
  .title { font-size: clamp(38px, 14vw, 64px); }
  .foot { font-size: 10px; letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: no-preference) {
  .title { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}
