/* ==========================================================================
   MazaPlay — mazaplay.live
   Brand palette pulled from the MazaPlay logo: deep green, bright gold, cream.
   Fonts: Sora (display/headings) + Manrope (body/UI)
   ========================================================================== */

:root {
  --green-900: #062b16;
  --green-800: #0a3d20;
  --green-700: #0e5a2e;
  --green-600: #12793d;
  --green-500: #17a94f;
  --gold-500: #f5c518;
  --gold-400: #ffd23f;
  --gold-600: #d9a406;
  --cream: #fbf7e9;
  --ink: #0d1a12;
  --muted: #5c6b60;
  --line: #e4e8e2;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(6, 43, 22, 0.08);
  --shadow-md: 0 10px 30px rgba(6, 43, 22, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; color: var(--green-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; }
p { margin-bottom: 1rem; }
a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 40px; border: 2px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--green-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-900); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green-600); color: var(--white); }
.btn-green:hover { background: var(--green-700); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-outline { border-color: var(--green-600); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-600); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900);
  border-bottom: 1px solid rgba(245, 197, 24, .22);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: 46px; border-radius: 10px; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--white); letter-spacing: -.02em; }
.brand-name span { color: var(--gold-500); }
.nav-links { display: flex; align-items: center; gap: 10px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.86); font-weight: 600; font-size: .96rem; padding: 8px 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-500); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--gold-500); border-radius: 3px; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(245,197,24,.18), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  padding: 84px 0 96px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -140px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245,197,24,.16), transparent 70%); border-radius: 50%;
}
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--gold-500); }
.hero .lead { color: rgba(255,255,255,.82); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-500); display: block; }
.hero-stats .stat span { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(245,197,24,.25);
  border-radius: 18px; padding: 10px; backdrop-filter: blur(4px);
}
.hero-card img { border-radius: 12px; width: 100%; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-600), var(--green-500)); color: var(--gold-400);
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

/* Game tiles */
.game-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); background: var(--white);
}
.game-tile img { width: 100%; height: 170px; object-fit: cover; }
.game-tile .meta { padding: 16px 18px; }
.game-tile .meta h3 { font-size: 1.08rem; margin-bottom: 4px; }
.game-tile .meta p { color: var(--muted); font-size: .9rem; margin: 0; }
.tag {
  position: absolute; top: 12px; left: 12px; background: var(--gold-500); color: var(--green-900);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; padding: 4px 11px; border-radius: 30px;
}

/* Panels */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.panel-green {
  background: linear-gradient(160deg, var(--green-800), var(--green-700)); color: var(--white);
  border: 1px solid rgba(245,197,24,.25);
}
.panel-green h2, .panel-green h3 { color: var(--white); }
.panel-green p { color: rgba(255,255,255,.82); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n {
  counter-increment: step; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-500); color: var(--green-900); font-family: var(--font-display); font-weight: 700;
  display: grid; place-items: center;
}
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Tools ---------- */
.tool {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-md);
}
.tool label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--green-800); }
.tool input[type="number"], .tool input[type="text"], .tool select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--cream); color: var(--ink);
}
.tool input:focus, .tool select:focus { outline: none; border-color: var(--green-500); }
.tool input[type="range"] { width: 100%; accent-color: var(--green-600); }
.tool-result {
  margin-top: 22px; padding: 20px; border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--green-800), var(--green-700)); color: var(--white); text-align: center;
}
.tool-result .big { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-500); font-weight: 800; }
.tool-result small { color: rgba(255,255,255,.75); }
.range-val { font-family: var(--font-display); font-weight: 700; color: var(--green-700); }

/* Predictor game tool */
.predict-dots { display: flex; gap: 12px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.predict-dots button {
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1rem; transition: transform .15s ease;
}
.predict-dots button:hover { transform: scale(1.08); }
.predict-dots button.sel { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-400); }
.dot-red { background: #e03e3e; } .dot-green { background: var(--green-500); } .dot-gold { background: var(--gold-500); color: var(--green-900); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green-900);
  padding: 20px 40px 20px 0; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-600); transition: .2s; }
.faq-q.open::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 74px); }
.auth-visual {
  color: var(--white); padding: 60px 54px; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(245,197,24,.2), transparent 60%),
    linear-gradient(165deg, var(--green-900), var(--green-700));
}
.auth-visual h2 { color: var(--white); }
.auth-visual ul { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.auth-visual li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.9); }
.auth-visual li::before { content: "✓"; color: var(--gold-500); font-weight: 800; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 54px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--green-800); }
.form-group input, .form-group select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--white);
}
.form-group input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(23,169,79,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.check-row input { margin-top: 5px; }
.form-note { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 16px; }
.form-msg { display: none; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; }
.form-msg.ok { display: block; background: #e7f6ec; color: var(--green-700); border: 1px solid #b9e6c8; }
.form-msg.err { display: block; background: #fdecec; color: #b02a2a; border: 1px solid #f4c2c2; }
.pw-strength { height: 6px; border-radius: 6px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-strength i { display: block; height: 100%; width: 0; transition: width .3s ease, background .3s ease; }

/* ---------- Content pages ---------- */
.page-head {
  color: var(--white); padding: 60px 0 64px;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(245,197,24,.16), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-700));
}
.page-head h1 { color: var(--white); }
.page-head p { color: rgba(255,255,255,.82); max-width: 680px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-400); }
.prose { max-width: 820px; }
.prose h2 { margin: 34px 0 12px; }
.prose h3 { margin: 24px 0 8px; color: var(--green-800); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose p { color: #364339; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.legal-toc h4 { font-family: var(--font-display); margin-bottom: 10px; }
.legal-toc ul { list-style: none; display: grid; gap: 6px; }
.legal-toc a { font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold-500), var(--gold-400));
  color: var(--green-900); border-radius: 20px; padding: 44px; text-align: center; margin: 10px 0;
}
.cta-band h2 { color: var(--green-900); }
.cta-band p { color: rgba(6,43,22,.78); max-width: 620px; margin: 8px auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 56px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { font-size: .92rem; margin-top: 12px; max-width: 320px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .92rem; }
.site-footer a:hover { color: var(--gold-500); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}
.age-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.4); color: var(--gold-400); padding: 5px 12px; border-radius: 30px; font-weight: 600; font-size: .8rem; }

/* ---------- Utility / misc ---------- */
.notice { background: rgba(245,197,24,.12); border-left: 4px solid var(--gold-500); padding: 16px 18px; border-radius: 8px; margin: 18px 0; font-size: .95rem; color: #4a4327; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { background: rgba(255,255,255,.1); border: 1px solid rgba(245,197,24,.3); color: #fff; padding: 6px 14px; border-radius: 30px; font-size: .85rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .auth-wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-visual { display: none; }
  .hero-card { max-width: 460px; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-links.show {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--green-900); padding: 18px 22px; gap: 16px; border-bottom: 1px solid rgba(245,197,24,.2);
  }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-band, .panel { padding: 28px 22px; }
}
