/* Panda Casino / panda-csno.lol
   Palette: jade green primary + warm gold spot accent on near-black warm-dark.
   Shape: 14px cards + 999px pills.
   Fully distinct DOM naming vs la-login.lol.
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0a1511;
  color: #f5efdf;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #46c47b; text-decoration: none; }
a:hover { color: #6ad693; }

:root {
  --bg: #0a1511;
  --panel: #112019;
  --panel-2: #182e24;
  --panel-3: #223d31;
  --rim: #284b3b;
  --primary: #2fa362;
  --primary-hi: #46c47b;
  --primary-ink: #04140c;
  --accent: #e4b86d;
  --accent-hi: #f1cf8a;
  --text: #f5efdf;
  --mute: #9fb2a8;
  --soft: #cbd6cf;
}

h1, h2, h3, h4 {
  font-family: 'Unbounded', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ================ page shell ================ */
.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ================ header (register + login top) ================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 21, 17, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rim);
}
.topbar-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.markaz { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.markaz-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--primary); overflow: hidden;
}
.markaz-logo img { width: 100%; height: 100%; object-fit: cover; }
.markaz-name { line-height: 1.1; }
.markaz-name b {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.markaz-name i { font-style: normal; display: block; color: var(--mute); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.topnav { display: flex; justify-content: center; gap: 2px; flex-wrap: nowrap; overflow: hidden; }
.topnav a {
  color: var(--soft); font-size: 13.5px; font-weight: 500;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.topnav a:hover { background: var(--panel); color: var(--text); }
.topnav a.cur { background: var(--panel-2); color: var(--primary-hi); }

.gate { display: flex; gap: 8px; }
.gate-login {
  color: var(--text); background: transparent;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--rim);
  font-weight: 600; font-size: 13.5px;
}
.gate-login:hover { background: var(--panel); color: var(--text); }
.gate-reg {
  background: var(--primary); color: var(--primary-ink);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 800; font-size: 13.5px;
  border: 1px solid transparent;
}
.gate-reg:hover { background: var(--primary-hi); color: var(--primary-ink); }

.burg {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--rim); color: var(--text); cursor: pointer;
}
.burg span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

@media (max-width: 980px) {
  .topbar-row { grid-template-columns: auto auto 1fr auto; }
  .topnav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--rim);
    flex-direction: column; align-items: stretch; padding: 10px 14px 16px;
    gap: 2px; display: none; z-index: 50;
  }
  .topnav.open { display: flex; }
  .topnav a { padding: 11px 14px; border-radius: 10px; font-size: 15px; }
  .burg { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .gate-login { display: none; }
  .markaz-name i { display: none; }
}

/* ================ hero (image LEFT, text RIGHT) ================ */
.panda-hero {
  padding: 48px 0 56px;
  background:
    radial-gradient(900px 400px at 0% 20%, rgba(47, 163, 98, 0.14), transparent 60%),
    radial-gradient(600px 300px at 90% 90%, rgba(228, 184, 109, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--rim);
}
.panda-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.panda-frame {
  position: relative;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--rim);
  background: var(--panel);
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.6);
}
.panda-frame img { width: 100%; height: 100%; object-fit: cover; }
.panda-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(170deg, transparent 60%, rgba(10,21,17,0.4));
  pointer-events: none;
}
.panda-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 21, 17, 0.78);
  border: 1px solid var(--rim);
  color: var(--text);
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.panda-badge .ring { width: 7px; height: 7px; border-radius: 999px; background: var(--primary-hi); box-shadow: 0 0 0 4px rgba(70,196,123,0.18); }

.panda-wrap h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  margin: 0 0 18px; line-height: 1.05; font-weight: 700;
}
.panda-wrap h1 em { font-style: normal; color: var(--primary-hi); }
.panda-wrap h1 u { text-decoration: none; color: var(--accent); }
.panda-lead {
  margin: 0 0 26px; color: var(--soft);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 55ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: var(--primary-ink);
  padding: 15px 28px; border-radius: 999px;
  font-weight: 800; font-size: 15.5px;
  border: 1px solid transparent;
  transition: transform .14s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 34px -12px rgba(47, 163, 98, 0.6);
}
.play-btn:hover { background: var(--primary-hi); color: var(--primary-ink); }
.play-btn:active { transform: translateY(1px); }
.lite-btn {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); background: transparent;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--rim);
  font-weight: 600; font-size: 15px;
}
.lite-btn:hover { background: var(--panel); color: var(--text); }

.micro-note { display: block; margin-top: 14px; color: var(--mute); font-size: 12px; }

@media (max-width: 820px) {
  .panda-hero { padding: 20px 0 36px; }
  .panda-grid { grid-template-columns: 1fr; gap: 18px; }
  .panda-frame { aspect-ratio: 16 / 10; max-height: 220px; }
  .panda-wrap h1 { font-size: clamp(1.55rem, 6.4vw, 2rem); line-height: 1.1; margin-bottom: 12px; }
  .panda-lead { font-size: 0.95rem; margin-bottom: 18px; }
  .play-btn, .lite-btn { padding: 12px 20px; font-size: 14.5px; }
  .micro-note { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .panda-frame { aspect-ratio: 16 / 9; max-height: 180px; }
  .shell { width: calc(100% - 24px); }
}

/* ================ ribbon of mini-stats (4-up) ================ */
.ribbon-stats {
  padding: 28px 0; border-bottom: 1px solid var(--rim); background: var(--bg);
}
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-cell b {
  display: block; font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 1.8rem; color: var(--primary-hi); letter-spacing: -0.02em; line-height: 1;
  font-weight: 700;
}
.stat-cell span { display: block; margin-top: 8px; color: var(--mute); font-size: 13px; }
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ================ section (chapter) ================ */
section.chapter { padding: 70px 0; border-bottom: 1px solid var(--rim); }
.chapter h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  margin: 0 0 12px; font-weight: 700;
}
.chapter .intro {
  margin: 0 0 36px; color: var(--soft); max-width: 68ch;
}

/* ================ prose block ================ */
.prose p { margin: 0 0 16px; color: var(--soft); max-width: 72ch; }
.prose h3 {
  font-size: 1.35rem; margin: 32px 0 12px; letter-spacing: -0.015em; color: var(--text);
}
.prose h4 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 20px; color: var(--soft); max-width: 72ch; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--primary-hi); border-bottom: 1px dashed rgba(70,196,123,0.4); }
.prose a:hover { border-bottom-color: var(--primary-hi); }
.prose blockquote {
  margin: 20px 0; padding: 14px 20px;
  border-left: 3px solid var(--primary);
  background: var(--panel); color: var(--soft); border-radius: 0 10px 10px 0;
  font-style: italic;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 14.5px;
}
.prose th, .prose td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rim);
}
.prose th { color: var(--mute); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; background: var(--panel); }
.prose td { color: var(--soft); }
.prose td b { color: var(--text); }

/* ================ feature mesh (bento-like) ================ */
.mesh {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(170px, auto);
  gap: 14px;
}
.cell {
  background: var(--panel);
  border: 1px solid var(--rim);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.cell h3 { margin: 0 0 10px; font-size: 1.1rem; }
.cell p { margin: 0; color: var(--mute); font-size: 14.5px; }
.cell.spanrow { grid-column: span 3; background: var(--panel-2); }
.cell.spanrow .inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center;
}
.cell.span2 { grid-column: span 2; }
.cell.tint {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(47, 163, 98, 0.14), transparent 65%),
    var(--panel-2);
  border-color: var(--panel-3);
}
.cell .big {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 700; color: var(--accent); font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1;
  display: block; margin-bottom: 10px;
}
.cell img.illus {
  position: absolute; right: -20px; bottom: -20px; width: 180px; height: 180px;
  border-radius: 50%; object-fit: cover; opacity: 0.9;
  border: 2px solid var(--primary);
}
@media (max-width: 820px) {
  .mesh { grid-template-columns: 1fr; }
  .cell.spanrow, .cell.span2 { grid-column: auto; }
  .cell.spanrow .inner { grid-template-columns: 1fr; gap: 14px; }
  .cell img.illus { width: 110px; height: 110px; right: -10px; bottom: -10px; }
}

/* ================ pathway (step column, no eyebrow) ================ */
.pathway {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel); border: 1px solid var(--rim); border-radius: 14px;
  overflow: hidden;
}
.pathway .leg {
  padding: 26px 22px; border-right: 1px solid var(--rim);
}
.pathway .leg:last-child { border-right: 0; }
.pathway .leg b {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 2rem; color: var(--primary-hi); font-weight: 700; display: block; margin-bottom: 10px;
  line-height: 1;
}
.pathway .leg h4 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.pathway .leg p { margin: 0; color: var(--mute); font-size: 13.5px; }
@media (max-width: 820px) {
  .pathway { grid-template-columns: 1fr; }
  .pathway .leg { border-right: 0; border-bottom: 1px solid var(--rim); }
  .pathway .leg:last-child { border-bottom: 0; }
}

/* ================ pills row ================ */
.pills-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--rim);
  color: var(--soft); font-size: 13px; font-weight: 500;
}
.chip b { color: var(--primary-hi); font-weight: 800; }

/* ================ TG CTA strip ================ */
.tg-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 26px; border-radius: 14px;
  background:
    radial-gradient(600px 200px at 0% 50%, rgba(70,196,123,0.14), transparent 65%),
    var(--panel-2);
  border: 1px solid var(--panel-3);
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.tg-strip p { margin: 0; color: var(--soft); max-width: 60ch; }
.tg-strip a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--primary-ink);
  padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: 14px;
}
.tg-strip a:hover { background: var(--accent-hi); color: var(--primary-ink); }

/* ================ compare card (new unique block) ================ */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.compare .side {
  padding: 24px; border-radius: 14px; border: 1px solid var(--rim); background: var(--panel);
}
.compare .side h3 {
  margin: 0 0 14px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px;
}
.compare .side.yes h3 { color: var(--primary-hi); }
.compare .side.no  h3 { color: #d08c7a; }
.compare .side ul { list-style: none; padding: 0; margin: 0; }
.compare .side li {
  padding: 10px 0; border-top: 1px solid var(--rim); color: var(--soft); font-size: 14.5px;
}
.compare .side li:first-child { border-top: 0; }
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
}

/* ================ ladder (unique vertical interlink block) ================ */
.ladder { display: grid; gap: 0; }
.rung {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px dashed var(--rim);
}
.rung:last-child { border-bottom: 0; }
.rung .n {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--rim);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 700; color: var(--primary-hi); font-size: 1.4rem;
}
.rung h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.rung p { margin: 0; color: var(--mute); font-size: 14px; }
.rung .go {
  color: var(--primary-hi); font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rim); background: var(--panel);
}
.rung .go:hover { background: var(--panel-2); }

/* ================ FAQ ================ */
.qlist { display: grid; gap: 10px; }
.qlist details {
  background: var(--panel); border: 1px solid var(--rim);
  border-radius: 14px; overflow: hidden;
}
.qlist summary {
  cursor: pointer; padding: 20px 24px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 15.5px; color: var(--text);
}
.qlist summary::-webkit-details-marker { display: none; }
.qlist summary::after {
  content: '+'; color: var(--primary-hi); font-size: 24px; line-height: 1;
  transition: transform .2s ease;
}
.qlist details[open] summary::after { transform: rotate(45deg); }
.qlist .ans { padding: 0 24px 22px; color: var(--soft); font-size: 14.5px; }

/* ================ end CTA ================ */
.landing {
  padding: 70px 0;
  background:
    radial-gradient(1000px 320px at 50% 0%, rgba(47, 163, 98, 0.14), transparent 65%),
    var(--panel);
  border-bottom: 1px solid var(--rim);
}
.landing-row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.landing-row h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 0; max-width: 22ch;
}
.landing-row p { margin: 10px 0 0; color: var(--mute); max-width: 40ch; }

/* ================ footer (interlink grid) ================ */
.foot {
  background: #061009; color: var(--mute);
  padding: 56px 0 24px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px;
  margin-bottom: 32px;
}
.foot-col h5 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 11.5px; color: var(--text); letter-spacing: 0.09em; text-transform: uppercase;
  margin: 0 0 14px; font-weight: 700;
}
.foot-col a { display: block; color: var(--soft); padding: 5px 0; font-size: 13.5px; }
.foot-col a:hover { color: var(--primary-hi); }
.foot-brand p { margin: 0 0 10px; color: var(--mute); font-size: 13px; line-height: 1.65; max-width: 36ch; }
.foot-tiny {
  margin-top: 16px; color: #4e5d55; font-size: 10.5px; line-height: 1.5;
}
.foot-base {
  border-top: 1px solid var(--rim);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--mute);
}
.foot-base a { color: var(--mute); }
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ================ fixed scroll CTA (per brief) ================ */
.floating {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 150%);
  z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: var(--primary-ink);
  padding: 15px 28px; border-radius: 999px;
  font-weight: 800; font-size: 15px;
  border: 1px solid transparent;
  box-shadow: 0 18px 44px -14px rgba(47,163,98,0.65), 0 6px 20px rgba(0,0,0,0.4);
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), background .2s ease;
}
.floating.show { transform: translate(-50%, 0); }
.floating:hover { background: var(--primary-hi); color: var(--primary-ink); }
@media (max-width: 560px) {
  .floating { bottom: 14px; padding: 14px 24px; font-size: 14.5px; width: calc(100% - 32px); justify-content: center; }
}

/* ================ reveal ================ */
.enter { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.enter.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .enter { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .floating { transition: none; }
  .panda-badge .ring { box-shadow: none; }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary-hi); outline-offset: 2px; border-radius: 10px;
}
::selection { background: var(--primary); color: var(--primary-ink); }
