@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --emerald: #0d9b5c;
  --emerald-dark: #07714a;
  --forest: #042e1e;
  --mint: #e8f8f0;
  --white: #ffffff;
  --off-white: #f5faf7;
  --gray-text: #4a6357;
  --gray-light: #afc4b8;
  --card-shadow: rgba(13, 155, 92, 0.12);
  --accent-yellow: #f0c935;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--off-white);
  color: var(--gray-text);
  line-height: 1.7;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--forest);
  color: var(--mint);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px var(--card-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 65px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--emerald);
  letter-spacing: -0.5px;
}

.logo em {
  font-style: normal;
  color: var(--forest);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

nav a {
  text-decoration: none;
  color: var(--gray-text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.25s;
}

nav a:hover { color: var(--emerald); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger svg {
  width: 26px;
  height: 26px;
  stroke: var(--forest);
  stroke-width: 2.5;
  fill: none;
}

/* ===== BANNER ===== */
.banner {
  background: linear-gradient(160deg, var(--emerald), var(--forest));
  padding: 4.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.banner-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.banner-text { flex: 1; }

.banner-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.banner-text p {
  color: var(--mint);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--forest);
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,201,53,0.4);
}

.banner-badges {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 0.4rem 1.2rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ===== WIDE SECTION ===== */
.wide-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.wide-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest);
  text-align: center;
  margin-bottom: 0.5rem;
}

.wide-section .sub {
  text-align: center;
  color: var(--gray-light);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ===== GAME ===== */
.game-frame {
  max-width: 850px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px var(--card-shadow);
  border: 3px solid var(--emerald);
}

.game-frame iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

/* ===== CARDS ROW ===== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: transform 0.25s;
  text-align: center;
}

.card:hover { transform: translateY(-4px); }

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--mint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.card h3 {
  color: var(--forest);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray-light);
}

/* ===== HIGHLIGHT BANNER ===== */
.highlight-bar {
  background: var(--emerald);
  padding: 1.5rem 2rem;
  text-align: center;
}

.highlight-bar p {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== TWO COLUMN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.col-block {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--card-shadow);
  border-left: 5px solid var(--emerald);
}

.col-block h3 {
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.col-block p {
  font-size: 0.93rem;
  color: var(--gray-text);
}

/* ===== TEXT PAGE ===== */
.content-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-page h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin: 2rem 0 0.8rem;
}

.content-page p { margin-bottom: 1rem; }

.content-page ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-page ul li { margin-bottom: 0.5rem; }

/* ===== PLAY PAGE ===== */
.play-intro {
  text-align: center;
  padding: 3rem 2rem 1rem;
}

.play-intro h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--forest);
}

.play-note {
  text-align: center;
  color: var(--gray-light);
  max-width: 620px;
  margin: 0.8rem auto 2rem;
  font-size: 0.93rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--forest);
  padding: 3rem 2rem;
}

.footer-wrap {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer-nav a:hover { color: var(--accent-yellow); }

.footer-responsible {
  color: var(--gray-light);
  font-size: 0.83rem;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ===== AGE GATE ===== */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(4, 46, 30, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-box {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.age-box h2 {
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: 0.8rem;
}

.age-box p {
  color: var(--gray-text);
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

.age-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-age-yes {
  background: var(--emerald);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.25s;
}

.btn-age-yes:hover { background: var(--emerald-dark); }

.btn-age-no {
  background: transparent;
  border: 2px solid var(--gray-light);
  color: var(--gray-text);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.denied-msg {
  display: none;
  color: #d63031;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .banner-content { flex-direction: column; text-align: center; }
  .banner-text p { margin: 0 auto 2rem; }
  .banner-badges { justify-content: center; }
}

@media (max-width: 768px) {
  .burger { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: 0 8px 20px var(--card-shadow);
  }
  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: 0.7rem 0; }
  .banner-text h1 { font-size: 2rem; }
  .two-col { grid-template-columns: 1fr; }
  .game-frame iframe { height: 380px; }
}

@media (max-width: 480px) {
  .cards-row { grid-template-columns: 1fr; }
  .banner-text h1 { font-size: 1.6rem; }
  .game-frame iframe { height: 280px; }
  .header-wrap { padding: 0 1rem; }
}
