/* ============================================================
   Everett Club — Emerald Club theme (Option E) — prefix e7qm
   border-radius token 8px | headings Playfair Display, body Inter
   section order: Hero -> Games -> Banner -> How It Works -> Reviews -> SEO -> Footer
   Zero CDN: font families declared as stacks with native fallbacks
   ============================================================ */

:root {
  --e7qm-bg:  #020d07;
  --e7qm-c1:  #00C853;   /* primary emerald */
  --e7qm-c2:  #B8860B;   /* accent dark gold */
  --e7qm-c3:  #CFFF00;   /* cta lime */
  --e7qm-ct:  #111111;   /* cta text */
  --e7qm-tx:  #b8d4c0;   /* body text */
  --e7qm-cd:  #051a0e;   /* card / surface */
  --e7qm-br:  rgba(0,200,83,.2);
  --e7qm-r:   8px;
  --e7qm-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --e7qm-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--e7qm-bg);
  color: var(--e7qm-tx);
  font-family: var(--e7qm-body);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 64px;            /* fixed header height */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--e7qm-head); color: #eafff0; line-height: 1.15; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Buttons ---------- */
.e7qm-btn {
  font-family: var(--e7qm-body);
  font-weight: 700;
  font-size: .85rem;
  padding: .6rem 1.2rem;
  border-radius: var(--e7qm-r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.e7qm-btn-cta {
  background: var(--e7qm-c3);
  color: var(--e7qm-ct);
  box-shadow: 0 0 0 rgba(207,255,0,0);
}
.e7qm-btn-cta:hover { box-shadow: 0 0 18px rgba(207,255,0,.45); transform: translateY(-1px); }
.e7qm-btn-ol {
  background: transparent;
  color: var(--e7qm-tx);
  border-color: var(--e7qm-br);
}
.e7qm-btn-ol:hover { border-color: var(--e7qm-c1); color: var(--e7qm-c1); }

/* ---------- Header ---------- */
.e7qm-hdr {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 100;
  background: rgba(2,13,7,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--e7qm-br);
}
.e7qm-hdr-in { display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; height: 100%; }
.e7qm-lg { display: flex; align-items: center; gap: .55rem; font-family: var(--e7qm-head); font-weight: 800; font-size: 1.15rem; color: #eafff0; }
.e7qm-lg svg { width: 30px; height: 30px; flex-shrink: 0; }
.e7qm-lg span b { color: var(--e7qm-c1); }
.e7qm-nav { display: flex; gap: .25rem; margin-left: auto; }
.e7qm-nl { padding: .45rem .7rem; border-radius: var(--e7qm-r); font-size: .85rem; font-weight: 600; color: var(--e7qm-tx); transition: all .2s; }
.e7qm-nl:hover { color: var(--e7qm-c1); background: rgba(0,200,83,.07); }
.e7qm-nl.active { color: var(--e7qm-c1); background: rgba(0,200,83,.1); }

/* ---------- Hamburger (HBG-A: lines -> X, logo left / burger right) ---------- */
.e7qm-hbg {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.e7qm-hbg span {
  display: block; height: 2px; width: 24px; border-radius: 2px;
  background: var(--e7qm-tx);
  transition: transform .3s ease, opacity .2s ease;
}
.e7qm-hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.e7qm-hbg.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.e7qm-hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sidebar (SIDEBAR-A: left standard 220px) ---------- */
.e7qm-sb {
  position: fixed; top: 64px; left: 0; width: 220px;
  height: calc(100vh - 64px);
  background: var(--e7qm-cd);
  border-right: 1px solid var(--e7qm-br);
  overflow-y: auto; z-index: 90;
  display: flex; flex-direction: column;
  transition: transform .3s, width .3s;
}
.e7qm-sb__nav { display: flex; flex-direction: column; padding: .75rem 0; }
.e7qm-sbl {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.25rem; color: var(--e7qm-tx);
  font-weight: 600; font-size: .88rem; transition: all .2s;
  border-left: 3px solid transparent;
}
.e7qm-sbl svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.e7qm-sbl:hover, .e7qm-sbl.active { color: var(--e7qm-c1); background: rgba(0,200,83,.06); border-left-color: var(--e7qm-c1); }
.e7qm-sbf { margin-top: auto; padding: 1rem; border-top: 1px solid var(--e7qm-br); display: flex; flex-direction: column; gap: .4rem; }
.e7qm-sbf a { font-size: .75rem; color: var(--e7qm-tx); opacity: .6; }
.e7qm-sbf a:hover { opacity: 1; color: var(--e7qm-c1); }
.e7qm-sbo { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 190; display: none; }
.e7qm-sbo.show { display: block; }

/* ---------- Main / sections ---------- */
.e7qm-main { margin-left: 220px; min-height: calc(100vh - 64px); }
.e7qm-sec { padding: 3.5rem 2rem; max-width: 1180px; margin: 0 auto; }
.e7qm-sec-h { font-size: 2rem; margin-bottom: .4rem; }
.e7qm-sec-sub { opacity: .65; margin-bottom: 2rem; font-size: .95rem; }

/* ---------- Notice bar ---------- */
.e7qm-nb {
  background: rgba(184,134,11,.1);
  border-bottom: 1px solid var(--e7qm-br);
  color: var(--e7qm-tx);
  text-align: center; font-size: .78rem; font-weight: 600;
  padding: .55rem 1rem; letter-spacing: .02em;
}

/* ---------- Hero (HERO-B: split layout) ---------- */
.e7qm-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  min-height: 80vh; padding: 3rem 2rem; max-width: 1180px; margin: 0 auto;
}
.e7qm-hero-eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--e7qm-c2); margin-bottom: 1rem; }
.e7qm-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.e7qm-hero h1 em { color: var(--e7qm-c1); font-style: normal; }
.e7qm-hero p.lead { font-size: 1.05rem; opacity: .8; max-width: 30rem; margin-bottom: 2rem; }
.e7qm-hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.e7qm-hero-cta .e7qm-btn { padding: .85rem 1.6rem; font-size: .95rem; }
.e7qm-hero-disc { font-size: .72rem; opacity: .5; }
.e7qm-hero-art { display: flex; align-items: center; justify-content: center; }
.e7qm-hero-art svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 0 30px rgba(0,200,83,.25)); }

/* ---------- Carousel (CAROUSEL-E: editorial numbered) ---------- */
.e7qm-cr-wrap { display: flex; align-items: center; gap: .5rem; }
.e7qm-cr-vp { overflow: hidden; flex: 1; }
.e7qm-cr { display: flex; gap: 16px; transition: transform .4s ease; padding: .5rem 0; }
.e7qm-crb {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--e7qm-cd); border: 1px solid var(--e7qm-br);
  color: var(--e7qm-c1); font-size: 1.3rem; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.e7qm-crb:hover { background: var(--e7qm-c1); color: var(--e7qm-ct); }

/* Game card (CARD-D: transparent border -> emerald glow on hover) — editorial numbered variant */
.e7qm-gc {
  position: relative; flex: 0 0 200px; width: 200px;
  background: var(--e7qm-cd);
  border: 1px solid transparent;
  border-radius: var(--e7qm-r);
  overflow: hidden; cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.e7qm-gc:hover, .e7qm-gc:focus-visible {
  border-color: var(--e7qm-c1);
  box-shadow: 0 0 18px rgba(0,200,83,.35);
  transform: translateY(-4px);
  outline: none;
}
.e7qm-cr-num {
  position: absolute; top: -.4rem; left: .4rem; z-index: 3;
  font-family: var(--e7qm-head); font-size: 3rem; font-weight: 800;
  color: #fff; opacity: .15; pointer-events: none;
}
.e7qm-gct { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #03150b; }
.e7qm-gct img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.e7qm-gc:hover .e7qm-gct img { transform: scale(1.06); }
.e7qm-gco {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(to top, rgba(2,13,7,.85), rgba(2,13,7,.2));
  opacity: 0; transition: opacity .3s;
}
.e7qm-gc:hover .e7qm-gco, .e7qm-gc:focus-visible .e7qm-gco { opacity: 1; }
.e7qm-gcp {
  background: var(--e7qm-c3); color: var(--e7qm-ct);
  border: none; font-weight: 800; font-size: .8rem;
  padding: .55rem 1.1rem; border-radius: 50px; cursor: pointer;
}
.e7qm-gci { padding: .6rem .7rem; }

/* ---------- Games grid (games.html) ---------- */
.e7qm-cts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.e7qm-ct {
  background: var(--e7qm-cd); border: 1px solid var(--e7qm-br);
  color: var(--e7qm-tx); font-weight: 700; font-size: .82rem;
  padding: .5rem 1rem; border-radius: 50px; cursor: pointer; transition: all .2s;
}
.e7qm-ct:hover { border-color: var(--e7qm-c1); color: var(--e7qm-c1); }
.e7qm-ct.active { background: var(--e7qm-c1); color: var(--e7qm-ct); border-color: var(--e7qm-c1); }
.e7qm-search {
  width: 100%; max-width: 420px; margin-bottom: 1.25rem;
  background: var(--e7qm-cd); border: 1px solid var(--e7qm-br);
  border-radius: var(--e7qm-r); padding: .7rem 1rem; color: var(--e7qm-tx); font-size: .9rem;
}
.e7qm-search:focus { outline: none; border-color: var(--e7qm-c1); }
.e7qm-gg { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }
.e7qm-gg .e7qm-gc { flex: none; width: 100%; }

/* ---------- Banner (BANNER-E: stats + CTA) ---------- */
.e7qm-banner {
  margin: 2rem auto; max-width: 1180px;
  background: linear-gradient(135deg, rgba(0,200,83,.1), rgba(184,134,11,.08));
  border: 1px solid var(--e7qm-br); border-radius: var(--e7qm-r);
  padding: 2.5rem 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.e7qm-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.e7qm-stat-n { font-family: var(--e7qm-head); font-size: 2.4rem; font-weight: 800; color: var(--e7qm-c1); }
.e7qm-stat-l { font-size: .8rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- How it works (WORKS-D: big translucent number bg) ---------- */
.e7qm-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.e7qm-work {
  position: relative; overflow: hidden;
  background: var(--e7qm-cd); border: 1px solid var(--e7qm-br);
  border-radius: var(--e7qm-r); padding: 2rem 1.5rem;
}
.e7qm-work-bg {
  position: absolute; top: -1.5rem; right: .5rem;
  font-family: var(--e7qm-head); font-size: 8rem; font-weight: 800;
  color: var(--e7qm-c1); opacity: .08; line-height: 1; pointer-events: none;
}
.e7qm-work h3 { font-size: 1.15rem; margin-bottom: .5rem; position: relative; }
.e7qm-work p { font-size: .9rem; opacity: .8; position: relative; }

/* ---------- Reviews (REVIEWS-B: masonry, CSS columns) ---------- */
.e7qm-reviews { columns: 3; column-gap: 1.25rem; }
.e7qm-rev {
  break-inside: avoid; margin-bottom: 1.25rem;
  background: var(--e7qm-cd); border: 1px solid var(--e7qm-br);
  border-radius: var(--e7qm-r); padding: 1.4rem;
}
.e7qm-rev-stars { color: var(--e7qm-c3); font-size: .9rem; letter-spacing: .1em; margin-bottom: .6rem; }
.e7qm-rev p { font-size: .9rem; margin-bottom: .9rem; opacity: .9; }
.e7qm-rev-who { font-weight: 700; font-size: .85rem; color: var(--e7qm-c1); }
.e7qm-rev-city { font-size: .75rem; opacity: .6; }

/* ---------- SEO block ---------- */
.e7qm-seo { max-width: 1180px; margin: 0 auto; padding: 2rem; }
.e7qm-seo h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.e7qm-seo p { font-size: .9rem; opacity: .8; margin-bottom: 1rem; max-width: 70ch; }

/* ---------- Prose (inner pages) ---------- */
.e7qm-prose { max-width: 820px; }
.e7qm-prose h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.e7qm-prose h2 { font-size: 1.4rem; margin: 1.8rem 0 .7rem; }
.e7qm-prose h3 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.e7qm-prose p, .e7qm-prose li { font-size: .94rem; opacity: .86; margin-bottom: .8rem; }
.e7qm-prose ul { padding-left: 1.2rem; list-style: disc; }
.e7qm-prose li { margin-bottom: .4rem; }
.e7qm-prose a { color: var(--e7qm-c1); text-decoration: underline; }

/* ---------- FAQ ---------- */
.e7qm-faq { max-width: 820px; }
.e7qm-faq-item { border: 1px solid var(--e7qm-br); border-radius: var(--e7qm-r); padding: 1.1rem 1.3rem; margin-bottom: .8rem; background: var(--e7qm-cd); }
.e7qm-faq-item h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--e7qm-c1); font-family: var(--e7qm-body); }
.e7qm-faq-item p { font-size: .9rem; opacity: .82; }

/* ---------- Contact form ---------- */
.e7qm-form { max-width: 640px; display: flex; flex-direction: column; gap: 1rem; }
.e7qm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.e7qm-form label { font-size: .8rem; font-weight: 600; display: block; margin-bottom: .35rem; opacity: .8; }
.e7qm-form input, .e7qm-form select, .e7qm-form textarea {
  width: 100%; background: var(--e7qm-cd); border: 1px solid var(--e7qm-br);
  border-radius: var(--e7qm-r); padding: .75rem 1rem; color: var(--e7qm-tx); font-size: .9rem; font-family: var(--e7qm-body);
}
.e7qm-form input:focus, .e7qm-form select:focus, .e7qm-form textarea:focus { outline: none; border-color: var(--e7qm-c1); }
.e7qm-form textarea { resize: vertical; }
.e7qm-success { display: none; background: rgba(0,200,83,.12); border: 1px solid var(--e7qm-c1); border-radius: var(--e7qm-r); padding: 1rem; color: var(--e7qm-c1); font-weight: 600; font-size: .9rem; }

/* ---------- Footer (FOOTER-B: 3 columns) ---------- */
.e7qm-ftr { margin-left: 220px; border-top: 1px solid var(--e7qm-br); background: var(--e7qm-cd); }
.e7qm-ftr-in { max-width: 1180px; margin: 0 auto; padding: 2.5rem 2rem 1.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.e7qm-ftr-brand .e7qm-lg { margin-bottom: .8rem; }
.e7qm-ftr-brand p { font-size: .82rem; opacity: .65; max-width: 26ch; }
.e7qm-ftr-col h4 { font-family: var(--e7qm-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .5; margin-bottom: .9rem; }
.e7qm-ftr-col a { display: block; font-size: .85rem; opacity: .75; padding: .25rem 0; }
.e7qm-ftr-col a:hover { color: var(--e7qm-c1); opacity: 1; }
.e7qm-ftr-bot { border-top: 1px solid var(--e7qm-br); max-width: 1180px; margin: 0 auto; padding: 1.25rem 2rem; font-size: .72rem; opacity: .55; text-align: center; line-height: 1.7; }

/* ---------- Mobile bottom nav ---------- */
.e7qm-mn { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--e7qm-cd); border-top: 1px solid var(--e7qm-br); z-index: 150; }
.e7qm-mni { flex: 1; background: none; border: none; color: var(--e7qm-tx); font-size: .75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 100%; }
.e7qm-mni:hover { color: var(--e7qm-c1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .e7qm-reviews { columns: 2; }
}

@media (max-width: 1024px) {
  .e7qm-main, .e7qm-ftr { margin-left: 0 !important; margin-right: 0 !important; }
  .e7qm-sb { transform: translateX(-100%); top: 64px; height: calc(100vh - 64px); z-index: 200; }
  .e7qm-sb.open { transform: translateX(0); }
  .e7qm-sbo { top: 64px; z-index: 140; }
  .e7qm-mn { display: flex; align-items: center; justify-content: space-around; }
  body { padding-bottom: 60px; }
  .e7qm-hero { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .e7qm-hero-art { order: -1; }
  .e7qm-hero p.lead { margin-left: auto; margin-right: auto; }
  .e7qm-hero-cta { justify-content: center; }
}

@media (min-width: 1025px) { body { padding-bottom: 0; } }

@media (max-width: 768px) {
  .e7qm-hdr-in { justify-content: space-between; }
  .e7qm-hbg { display: flex; }
  .e7qm-nav { display: none; }
  .e7qm-ftr-in { grid-template-columns: 1fr 1fr; }
  .e7qm-banner { flex-direction: column; align-items: flex-start; }
  .e7qm-sec-h { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .e7qm-reviews { columns: 1; }
  .e7qm-gg { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .e7qm-gg .e7qm-gc { width: 100%; }
  .e7qm-form-row { grid-template-columns: 1fr; }
  .e7qm-ftr-in { grid-template-columns: 1fr; }
  .e7qm-stats { gap: 1.5rem; }
  .e7qm-sec { padding: 2.5rem 1.25rem; }
  .e7qm-form input, .e7qm-form select, .e7qm-form textarea { min-height: 48px; }
}

@media (max-width: 375px) {
  .e7qm-hdr-in { padding: 0 .75rem; }
  .e7qm-gg { gap: .5rem; }
}
