/* Gize Games public site — shared stylesheet. Inline code lives nowhere, so the CSP needs no hashes. */
:root {
  --navy-0: #030a1c;
  --navy-1: #071536;
  --navy-2: #10307d;
  --gold-0: #fff3c4;
  --gold-1: #f7d77a;
  --gold-2: #e0a93b;
  --gold-3: #a8741d;
  --ink: #f6efdc;
  --muted: #b7c1dd;
  --faint: #7f8bb0;
  --serif: "Trajan Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Ethiopic", "Helvetica Neue", Arial, sans-serif;
  --ethiopic: "Noto Sans Ethiopic", Kefa, Nyala, "Abyssinica SIL", Ebrima, system-ui, sans-serif;
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; background: var(--navy-0); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  background: radial-gradient(120% 70% at 50% 0%, var(--navy-2) 0%, var(--navy-1) 45%, var(--navy-0) 100%) fixed;
}
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  background:
    linear-gradient(90deg, transparent 14%, rgba(247, 215, 122, 0.06) 15%, transparent 17.5%, transparent 82.5%, rgba(247, 215, 122, 0.06) 85%, transparent 86%),
    radial-gradient(40% 32% at 50% 30%, rgba(224, 169, 59, 0.16), transparent 70%);
}
body::after {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, var(--gold-1), transparent),
    radial-gradient(1.5px 1.5px at 84% 16%, var(--gold-1), transparent),
    radial-gradient(2px 2px at 72% 58%, var(--gold-0), transparent),
    radial-gradient(1.5px 1.5px at 22% 70%, var(--gold-1), transparent),
    radial-gradient(1px 1px at 90% 82%, var(--gold-0), transparent),
    radial-gradient(1px 1px at 8% 48%, var(--gold-0), transparent);
  opacity: 0.5;
  animation: twinkle 7s ease-in-out infinite;
}
a { color: var(--gold-1); }
main { position: relative; z-index: 1; flex: 1; width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 10, 28, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 215, 122, 0.18);
}
.header-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-1);
  text-decoration: none;
  font: 700 1.05rem/1 var(--serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(247, 215, 122, 0.35); }
.brand span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a.nav-link:hover { color: var(--ink); background: rgba(247, 215, 122, 0.08); }
.nav a.nav-link:focus-visible { outline: 3px solid var(--gold-0); outline-offset: 3px; }
.nav a.nav-link[aria-current] { color: var(--gold-1); background: rgba(224, 169, 59, 0.14); }
.nav .cta { margin-left: 4px; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(247, 215, 122, 0.35);
  border-radius: 12px;
  background: rgba(224, 169, 59, 0.1);
  color: var(--gold-1);
  cursor: pointer;
}
.nav-toggle svg { display: block; width: 22px; height: 22px; margin: auto; }

/* Buttons */
.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  color: #1c1405;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffe8a3 0%, #f2c45a 48%, #d69a2d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 190, 0.65), 0 10px 30px rgba(214, 154, 45, 0.35), 0 2px 0 #8a5e17;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 5s ease-in-out 1.2s infinite;
}
.cta:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255, 240, 190, 0.8), 0 14px 36px rgba(214, 154, 45, 0.5), 0 2px 0 #8a5e17; }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--gold-0); outline-offset: 3px; }
.cta svg { flex: none; width: 24px; height: 24px; }
.cta--ghost {
  color: var(--gold-1);
  background: rgba(224, 169, 59, 0.08);
  box-shadow: inset 0 0 0 1px rgba(247, 215, 122, 0.45);
}
.cta--ghost:hover { box-shadow: inset 0 0 0 1px rgba(247, 215, 122, 0.8), 0 10px 26px rgba(224, 169, 59, 0.25); }

/* Layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding: 0 20px; }
.section { padding-block: 56px 20px; }
.section-head { text-align: center; max-width: 640px; margin-inline: auto; }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.rule {
  position: relative;
  width: min(260px, 70%);
  height: 1px;
  margin: 16px auto;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-1);
  background: var(--navy-1);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Typography */
h1, h2, h3 { margin: 0; }
h1.display {
  padding-left: 0.08em;
  font: 600 clamp(2.3rem, 9vw, 4rem)/1.05 var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-1);
  background: linear-gradient(180deg, var(--gold-0) 0%, var(--gold-1) 38%, var(--gold-2) 68%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2.title {
  font: 500 clamp(1.6rem, 5vw, 2.2rem)/1.15 var(--serif);
  letter-spacing: 0.04em;
  color: var(--gold-1);
}
h3 { color: var(--gold-1); font-size: 1.12rem; }
.prose { max-width: 720px; margin-inline: auto; color: var(--muted); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--ink); }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-block: 0.35em; }

/* Home hero */
.hero { max-width: 620px; margin-inline: auto; padding: 56px 0 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.14s; }
.hero > :nth-child(4) { animation-delay: 0.2s; }
.hero > :nth-child(n + 5) { animation-delay: 0.28s; }
.mark { position: relative; display: block; padding-bottom: 18px; }
.mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(140px, 38vw, 200px);
  height: auto;
  border-radius: 15%;
  box-shadow: 0 0 0 1px rgba(247, 215, 122, 0.35), 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 90px rgba(224, 169, 59, 0.28);
  animation: float 6s ease-in-out infinite;
}
.mark::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: 0;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(247, 215, 122, 0.45);
  background: radial-gradient(closest-side, rgba(247, 215, 122, 0.28), transparent);
}
.hero .tagline-en { margin: 18px 0 0; max-width: 24em; text-wrap: balance; color: var(--muted); font-size: 1.05rem; }
.am { margin: 8px 0 0; max-width: 24em; text-wrap: balance; color: var(--ink); font-family: var(--ethiopic); font-size: clamp(1rem, 4.4vw, 1.2rem); line-height: 1.6; }
.hero .cta { margin-top: 30px; width: min(100%, 320px); }
.sub { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
.auto { margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.2em 0.6em; color: var(--faint); font-size: 0.875rem; }
.auto button { padding: 6px 4px; border: 0; background: none; color: var(--gold-1); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hero-scroll { margin-top: 26px; color: var(--faint); font-size: 0.85rem; animation: none !important; text-decoration: none; }

/* Trust bar */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding-block: 8px 16px; }
.trust-item {
  padding: 16px 18px;
  border: 1px solid rgba(247, 215, 122, 0.2);
  border-radius: 14px;
  background: rgba(7, 21, 54, 0.55);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item b { display: block; color: var(--ink); font-size: 1rem; }
.trust-item svg { flex: none; width: 26px; height: 26px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-block: 8px 16px; }
.card {
  padding: 26px 24px;
  border: 1px solid rgba(247, 215, 122, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 48, 125, 0.35), rgba(7, 21, 54, 0.75));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}
.card .num {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-1);
  border-radius: 12px;
  color: var(--gold-1);
  font: 600 1.25rem/1 var(--serif);
  background: rgba(224, 169, 59, 0.1);
}
.card p { margin: 8px 0 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 14px; }
.game-card { align-items: flex-start; }
.game-card .badge { align-self: stretch; text-align: left; }
.badge {
  margin-top: 14px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 215, 122, 0.5);
  color: var(--gold-1);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--soon { border-color: rgba(183, 193, 221, 0.4); color: var(--faint); }
.facts { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 10px 0 0; }
.facts li { color: var(--muted); padding-left: 1.4em; position: relative; }
.facts li::before { content: "◆"; position: absolute; left: 0; top: 0.1em; color: var(--gold-2); font-size: 0.7em; }
.facts li b { color: var(--ink); }

/* CTA band */
.band {
  margin-top: 44px;
  padding: 40px 24px;
  border: 1px solid rgba(247, 215, 122, 0.3);
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(100% 100% at 50% 0%, rgba(224, 169, 59, 0.18), rgba(7, 21, 54, 0.6));
}
.band p { color: var(--muted); margin: 6px 0 0; }
.band .cta { margin-top: 20px; }

/* Sub-pages */
.page-head { text-align: center; max-width: 700px; margin-inline: auto; padding-top: 52px; }
.page-head .lead { color: var(--muted); margin: 14px 0 0; font-size: 1.05rem; }
.steps { padding: 0; list-style: none; display: grid; gap: 18px; margin: 0; }
.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(247, 215, 122, 0.22);
  border-radius: 18px;
  background: rgba(7, 21, 54, 0.6);
}
.steps .step-num {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-1);
  border-radius: 50%;
  color: var(--gold-1);
  font: 600 1.3rem/1 var(--serif);
  background: rgba(224, 169, 59, 0.1);
}
.steps h3 { margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 720px; margin-inline: auto; padding-block: 8px 24px; }
.faq details {
  border: 1px solid rgba(247, 215, 122, 0.2);
  border-radius: 16px;
  background: rgba(7, 21, 54, 0.6);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--gold-1); transition: transform 0.2s ease; flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 3px solid var(--gold-0); outline-offset: -3px; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding-block: 8px 16px; }
.contact-card {
  padding: 26px 24px;
  border: 1px solid rgba(247, 215, 122, 0.22);
  border-radius: 18px;
  background: rgba(7, 21, 54, 0.6);
  text-align: center;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--muted); margin: 0 0 16px; }

/* Footer */
.site-footer { position: relative; z-index: 1; padding-block: 26px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(247, 215, 122, 0.18); }
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--faint); text-decoration: none; }
.footer-links a:hover { color: var(--gold-1); }
.footer-note { text-align: center; width: 100%; color: var(--faint); font-size: 0.8rem; }

/* Keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.7; } }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 820px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px; background: rgba(3, 10, 28, 0.97); border-bottom: 1px solid rgba(247, 215, 122, 0.18); }
  .nav[hidden] { display: none; }
  .nav .cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: block; }
}
@media (max-height: 700px) and (orientation: landscape) { .hero { padding-block: 24px 16px; } .mark img { width: 110px; } .hero .cta { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}