/* ===== কতোয়াল পুর কমিউনিস্ট পার্টি — স্টাইল ===== */
:root {
  --red: #c8102e;
  --red-dark: #8f0b20;
  --yellow: #f5c518;
  --yellow-soft: #ffe27a;
  --paper: #f6efe1;
  --paper-2: #efe4cc;
  --ink: #1d1a17;
  --ink-soft: #4a433b;
  --radius: 14px;
  --shadow: 6px 6px 0 var(--ink);
  --font-display: "Galada", "Hind Siliguri", cursive;
  --font-body: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 18px 18px, 31px 31px;
  background-position: 0 0, 9px 13px;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
a { color: inherit; }
button { font-family: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { -webkit-tap-highlight-color: transparent; }

/* মাউস থাকলেই শুধু হোভার (ফোনে ট্যাপের পর আটকে থাকে) */
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .nav-links a:hover { background: rgba(255,255,255,.12); }
  .nav-links .nav-cta:hover { background: var(--yellow-soft); }
  .hero-badge:hover { transform: rotate(2deg) scale(1.04); }
  .leader-avatar:hover { transform: scale(1.08) rotate(-6deg); }
  .quiz-opt:hover { background: var(--yellow-soft); transform: translateX(4px); }
  .chip:hover { transform: translateY(-2px); }
}

/* ---------- বোতাম ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7em 1.4em;
  font-size: 1rem; font-weight: 700;
  border: 3px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
  box-shadow: 4px 4px 0 var(--ink);
  user-select: none;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 4px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.btn-outline-dark { background: #fff; color: var(--ink); }
.btn-big { font-size: 1.25rem; padding: .85em 1.8em; }
.btn-block { width: 100%; }

/* ---------- নেভ ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem clamp(16px, 4vw, 40px);
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: 2px; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.nav-links { display: flex; gap: .3rem; align-items: center; }
.nav-links a {
  text-decoration: none; padding: .35em .8em; border-radius: 999px; font-weight: 600;
  transition: background .2s, color .2s;
}
.nav-links .nav-cta { background: var(--yellow); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 2px solid #fff; color: #fff; font-size: 1.3rem; border-radius: 8px; padding: .1em .55em; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--ink); padding: .5rem 16px 1rem;
    border-bottom: 4px solid var(--red);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6em 1em; text-align: center; }
}

/* ---------- হিরো ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: clamp(48px, 9vw, 96px) 16px clamp(56px, 9vw, 100px);
}
.hero-rays {
  position: absolute; inset: -60%;
  background: repeating-conic-gradient(from 0deg, rgba(245,197,24,.16) 0 10deg, transparent 10deg 20deg);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: block; margin: 0 auto; padding: 0;
  width: clamp(200px, 32vw, 290px); aspect-ratio: 1;
  background: var(--paper); border: 5px solid var(--yellow); border-radius: 50%;
  box-shadow: 8px 8px 0 rgba(0,0,0,.35);
  padding: 2%; box-sizing: border-box; cursor: pointer;
  transform: rotate(-3deg);
  transition: transform .3s;
}
.hero-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-badge:focus-visible { outline: 3px dashed #fff; outline-offset: 6px; }
.hero-badge.wobble { animation: wobble .7s ease; }
@keyframes wobble {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(-18deg) scale(1.1); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-9deg); }
  80% { transform: rotate(5deg); }
}
.hero-kicker {
  display: inline-block; margin: 1rem 0 .4rem;
  background: var(--ink); color: var(--yellow);
  padding: .15em .9em; border-radius: 6px; font-weight: 600; font-size: .95rem;
  transform: rotate(-1.5deg);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  line-height: 1.15;
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 rgba(0,0,0,.25);
  margin: .2em 0 .3em;
}
.hero-slogan { font-size: clamp(1.2rem, 3.6vw, 1.7rem); font-weight: 700; min-height: 2.6em; margin: 0 0 1.2rem; }
#sloganRotator { display: inline-block; transition: opacity .35s, transform .35s; }
#sloganRotator.out { opacity: 0; transform: translateY(10px); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.6rem; font-size: .95rem; opacity: .9; }

/* ---------- টিকার ---------- */
.ticker {
  display: flex; align-items: stretch;
  background: var(--yellow);
  border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  font-weight: 600;
  overflow: hidden;
}
.ticker-label {
  flex: none; background: var(--ink); color: var(--yellow);
  padding: .5em 1em; font-weight: 700; z-index: 1;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { color: #fff; } }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-content { display: inline-flex; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker-content span { padding: 0 2.2em; }
.ticker-content span::before { content: "★ "; color: var(--red); }
.ticker:hover .ticker-content { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- পরিসংখ্যান ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 1100px; margin: 2.5rem auto 0; padding: 0 16px;
}
.stat {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem; text-align: center;
}
.stat-num { display: block; font-size: 2.4rem; font-weight: 700; color: var(--red); line-height: 1.2; }
.stat-label { font-weight: 600; }
.stat-label small { font-weight: 400; color: var(--ink-soft); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- সভা ---------- */
.meeting { max-width: 1100px; margin: 2.5rem auto 0; padding: 0 16px; }
.meeting-box {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 1.6rem; text-align: center;
  box-shadow: 6px 6px 0 var(--red);
}
.meeting-box h2 { color: var(--yellow); font-size: 1.4rem; }
.countdown { display: flex; justify-content: center; gap: .8rem; margin: 1rem 0; flex-wrap: wrap; }
.countdown div {
  background: var(--red); border: 2px solid var(--yellow); border-radius: 10px;
  min-width: 84px; padding: .4rem .6rem;
}
.countdown span { display: block; font-size: 2rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--yellow-soft); }
.meeting-box p { margin: 0; }
.meeting-box p small { opacity: .75; }

/* ---------- সেকশন ---------- */
.section { padding: clamp(56px, 8vw, 88px) 16px; max-width: 1100px; margin: 0 auto; text-align: center; }
.section-red, .section-dark, .section-yellow { max-width: none; }
.section-red { background: var(--red); color: #fff; margin-top: 3rem; }
.section-dark { background: var(--ink); color: #fff; }
.section-yellow { background: var(--yellow); }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--red);
}
.section-red .section-title, .section-dark .section-title { color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.section-yellow .section-title { color: var(--red-dark); }
.section-sub { max-width: 640px; margin: 0 auto 2.2rem; font-size: 1.05rem; }

/* ---------- টাইমলাইন ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 6px; bottom: 6px; width: 4px; background: var(--red); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 1.8rem 64px; }
.timeline li::before {
  content: "★"; position: absolute; left: 6px; top: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%;
  color: var(--red); font-size: 1.05rem;
}
.tl-year { display: inline-block; background: var(--ink); color: var(--yellow); font-size: .85rem; padding: 0 .7em; border-radius: 5px; font-weight: 600; }
.timeline h3 { margin: .3em 0 .2em; font-size: 1.3rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* ---------- ইশতেহার কার্ড ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
.flip { perspective: 1000px; height: 230px; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; text-align: center;
}
.flip-front { background: var(--yellow); color: var(--ink); }
.flip-front .emoji { font-size: 3.2rem; line-height: 1.1; }
.flip-front h3 { font-size: 1.15rem; margin-top: .5rem; }
.flip-front small { opacity: .7; }
.flip-back { background: #fff; color: var(--ink); transform: rotateY(180deg); font-size: .98rem; }
.flip-back b { color: var(--red); display: block; margin-bottom: .3rem; }
.flip:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 6px; border-radius: var(--radius); }

/* ---------- নেতা ---------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; gap: 1.4rem; }
.leader {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1rem 1.1rem; position: relative;
}
.leader-avatar {
  width: 110px; height: 110px; margin: 0 auto .8rem;
  display: grid; place-items: center;
  font-size: 3.6rem; border-radius: 50%;
  background: var(--red); border: 4px solid var(--yellow);
  box-shadow: 0 0 0 3px var(--ink);
  cursor: pointer; transition: transform .2s;
  border-style: solid;
}
.leader-avatar.has-photo { padding: 0; overflow: hidden; background: #fff; }
.leader-avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.leader-avatar:focus-visible { outline: 3px dashed var(--red); outline-offset: 6px; }
.leader h3 { font-size: 1.2rem; margin-bottom: .1rem; }
.leader .role { display: inline-block; background: var(--ink); color: var(--yellow); font-size: .85rem; padding: 0 .7em; border-radius: 5px; font-weight: 600; }
.leader .desc { font-size: .93rem; color: var(--ink-soft); margin: .5rem 0 0; }
.quote-bubble {
  margin-top: .8rem; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 12px;
  padding: .6rem .8rem; font-size: .95rem; font-weight: 600; position: relative; min-height: 3.2em;
  display: flex; align-items: center; justify-content: center;
}
.quote-bubble::before {
  content: ""; position: absolute; top: -11px; left: 50%; margin-left: -10px;
  border: 10px solid transparent; border-top: 0; border-bottom-color: var(--ink);
}
.quote-bubble.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.85); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ---------- বিপ্লব মিটার ---------- */
.meter { display: flex; align-items: center; gap: 1rem; max-width: 640px; margin: 0 auto 1rem; }
.meter-bar { flex: 1; height: 38px; background: #333; border: 3px solid var(--yellow); border-radius: 999px; overflow: hidden; }
.meter-fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(45deg, var(--red) 0 16px, var(--red-dark) 16px 32px);
  background-size: 45px 45px;
  animation: stripes 1s linear infinite;
  transition: width .35s cubic-bezier(.3,1.5,.5,1);
}
@keyframes stripes { to { background-position: 45px 0; } }
.meter-pct { font-size: 1.6rem; font-weight: 700; color: var(--yellow); min-width: 4.2ch; }
.meter-msg { min-height: 1.7em; font-size: 1.1rem; margin-bottom: 1.4rem; }
#revBtn.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px) rotate(-2deg); } 75% { transform: translateX(6px) rotate(2deg); } }

/* ---------- স্লোগান ---------- */
.slogan-box {
  max-width: 720px; margin: 0 auto; background: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem 1.2rem 1.4rem;
}
.slogan-out {
  font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.5rem); color: var(--red);
  min-height: 2.6em; display: flex; align-items: center; justify-content: center; margin: 0 0 1.2rem;
  line-height: 1.3;
}
.slogan-out.pop { animation: pop .4s ease; }
.slogan-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.slogan-count { margin: 1rem 0 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- কুইজ ---------- */
.quiz {
  max-width: 680px; margin: 0 auto; background: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.2rem; text-align: left;
}
.quiz-progress { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; border: 2px solid var(--ink); }
.quiz-progress div { height: 100%; background: var(--red); transition: width .3s; }
.quiz-step { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.quiz h3 { font-size: 1.3rem; margin: .2rem 0 1rem; }
.quiz-options { display: grid; gap: .6rem; }
.quiz-opt {
  text-align: left; font-size: 1rem; font-weight: 600;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px;
  padding: .7rem 1rem; cursor: pointer; transition: background .15s, transform .1s;
  color: var(--ink);
}
.quiz-opt.picked { background: var(--red); color: #fff; transform: scale(1.02); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt:focus-visible { outline: 3px dashed var(--red); outline-offset: 2px; }
.quiz-result { text-align: center; }
.quiz-result .big { font-size: 4rem; line-height: 1.1; }
.quiz-result h3 { font-family: var(--font-display); font-weight: 400; color: var(--red); font-size: 2rem; margin-top: .5rem; }
.quiz-result p { margin: .4rem 0 1.2rem; }
.quiz-result .score { display: inline-block; background: var(--ink); color: var(--yellow); padding: .1em .9em; border-radius: 6px; font-weight: 700; }

/* ---------- সদস্য ফর্ম ---------- */
.join-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.8rem; align-items: start; text-align: left; }
@media (max-width: 860px) { .join-wrap { grid-template-columns: 1fr; } }
.join-form {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem;
}
.join-form > label { display: block; font-weight: 700; margin: .2rem 0 .3rem; }
.join-form input[type="text"] {
  width: 100%; font: inherit; padding: .6rem .8rem; margin-bottom: .9rem;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--paper);
}
.join-form input[type="text"]:focus { outline: 3px solid var(--yellow); background: #fff; }
.join-form fieldset { border: 2px dashed var(--ink-soft); border-radius: 10px; margin: 0 0 1.1rem; padding: .6rem .9rem .8rem; }
.join-form legend { font-weight: 700; padding: 0 .4rem; }
.chk { display: flex; align-items: center; gap: .5rem; padding: .15rem 0; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--red); }
.fine { font-size: .85rem; color: var(--ink-soft); margin: .7rem 0 0; }
.card-preview { display: grid; gap: 1rem; }
#cardCanvas {
  width: 100%; height: auto; aspect-ratio: 900 / 560;
  border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: var(--shadow);
  background: var(--paper-2);
}

/* ---------- চাঁদা ---------- */
.donate-arena {
  position: relative; max-width: 760px; height: 260px; margin: 0 auto;
  border: 3px dashed rgba(255,255,255,.55); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  overflow: hidden;
}
#donateYes { transition: left .18s ease, top .18s ease; }
#donateYes.running { position: absolute; }
.donate-msg { min-height: 1.8em; margin-top: 1.2rem; font-size: 1.15rem; font-weight: 600; }

/* ---------- ফুটার ---------- */
.footer { background: var(--ink); color: #fff; text-align: center; padding: 3rem 16px 2.4rem; border-top: 6px solid var(--yellow); }
.footer-banner {
  display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto 1rem;
}
.footer p { margin: .3rem 0; }
.footer-small { font-size: .85rem; opacity: .7; max-width: 620px; margin: 1rem auto !important; }
.back-top { display: inline-block; margin-top: .6rem; color: var(--yellow); font-weight: 700; text-decoration: none; }

/* ---------- টাইমলাইনের লিংক ---------- */
.timeline a { color: var(--red); font-weight: 700; }

/* ---------- ঘোষণাপত্র ---------- */
.section-paper { max-width: none; background: var(--paper-2); }
.letter {
  position: relative; max-width: 760px; margin: 0 auto 1.6rem;
  background: #fffdf8; color: var(--ink);
  border: 1px solid #d9ccb0; border-radius: 6px;
  box-shadow: 0 2px 0 #d9ccb0, 0 18px 40px rgba(60,40,10,.18);
  padding: clamp(20px, 5vw, 48px);
  text-align: center;
  transform: rotate(-.6deg);
}
.letter-head {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 4px solid var(--ink); text-align: left;
}
.letter-head img { width: 88px; height: 88px; flex: none; }
.letter-head h3 { font-size: clamp(1.3rem, 4.4vw, 2rem); margin: 0; }
.letter-head p { margin: 0; color: var(--ink-soft); }
.letter-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; font-weight: 500; }
.letter-body { margin: 0 0 1.4rem; }
.letter-list { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.nl-row { display: flex; flex-direction: column; align-items: center; }
.nl-post { font-weight: 500; color: var(--ink-soft); font-size: .95rem; }
.nl-names { display: flex; flex-direction: column; }
.nl-names a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 2px dotted transparent; transition: color .15s, border-color .15s; }
.nl-names a:hover, .nl-names a:focus-visible { color: var(--red); border-bottom-color: var(--red); outline: none; }
.nl-main .nl-post { color: var(--red-dark); font-weight: 700; font-size: 1rem; }
.nl-main .nl-names a { font-size: 1.3rem; font-weight: 700; }
.letter-sign { position: relative; display: flex; justify-content: flex-end; min-height: 170px; }
.letter-stamp {
  position: absolute; left: 4%; bottom: -10px;
  width: clamp(130px, 26vw, 190px); height: auto;
  transform: rotate(-12deg); opacity: .9;
}
.sig { text-align: center; color: #2a2aa8; line-height: 1.45; transform: rotate(-8deg); margin-top: 1rem; }
.sig a { color: inherit; text-decoration: none; display: block; }
.sig a:hover { text-decoration: underline; }
.sig-script { display: block; font-family: "Great Vibes", cursive; font-size: 2.4rem; color: var(--ink); line-height: 1; margin-bottom: .2rem; }

/* ---------- মূল ছবির পপআপ ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20,14,10,.82); }
.lightbox img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--yellow); font-size: 1.1rem; font-weight: 700; cursor: pointer;
}

/* ---------- কমিটি ফিল্টার ---------- */
.filters { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: -1rem 0 2rem; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .35em 1em; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  transition: background .15s, transform .1s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.chip:focus-visible { outline: 3px dashed var(--red); outline-offset: 2px; }
.leader .motto {
  margin: .7rem 0 0; padding: .45rem .7rem; border-radius: 10px;
  background: var(--red); color: var(--yellow); font-weight: 700; font-size: 1.02rem;
  transform: rotate(-1.5deg);
}
.leader .motto small { display: block; color: #fff; font-weight: 500; font-size: .75rem; opacity: .85; }
.leader .tag { display: inline-block; margin-left: .3rem; background: var(--red); color: #fff; font-size: .8rem; padding: 0 .6em; border-radius: 5px; font-weight: 600; }
.leader-top { border-color: var(--red); box-shadow: 6px 6px 0 var(--red); }
.leader-top .leader-avatar { background: var(--yellow); border-color: var(--red); }
.leader.highlight { animation: highlight 1.6s ease; }
@keyframes highlight { 0%, 60% { box-shadow: 0 0 0 6px var(--yellow), 6px 6px 0 var(--ink); transform: scale(1.03); } 100% { transform: none; } }
.leader[hidden] { display: none; }

/* ---------- টোস্ট ও কনফেটি ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 30px); opacity: 0; visibility: hidden;
  background: var(--ink); color: #fff; border: 3px solid var(--yellow);
  padding: .7rem 1.2rem; border-radius: 12px; font-weight: 600;
  max-width: calc(100vw - 32px); text-align: center;
  transition: transform .35s cubic-bezier(.3,1.5,.5,1), opacity .25s, visibility .25s;
  box-shadow: 4px 4px 0 var(--red);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- কমিটি স্লাইডার (শুধু ফোনে) ---------- */
.carousel-ctrl, .swipe-hint { display: none; }

/* ---------- আড্ডা জোন ---------- */
.game-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; max-width: 820px; margin: 0 auto 1.4rem; }
.game-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  font: inherit; font-weight: 700; font-size: .9rem; line-height: 1.25; color: var(--ink); cursor: pointer;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: .55rem .3rem;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, background .15s;
}
.game-tabs button span { font-size: 1.6rem; line-height: 1.2; }
.game-tabs button[aria-selected="true"] { background: var(--red); color: var(--yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.game-tabs button:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }
@media (hover: hover) { .game-tabs button:hover { background: var(--yellow-soft); } .game-tabs button[aria-selected="true"]:hover { background: var(--red); } }
.games { max-width: 560px; margin: 0 auto; text-align: center; }
.game[hidden] { display: none; }
.game:not([hidden]) { animation: pop .35s ease; }

.game-hud {
  display: flex; justify-content: space-around; gap: .4rem; font-weight: 700;
  background: var(--ink); color: #fff; border-radius: 10px; padding: .35rem .5rem; margin: 0 0 .9rem;
}
.game-hud b { color: var(--yellow); font-variant-numeric: tabular-nums; }

/* কমরেড জাগাও */
.mole-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto .4rem; }
.hole {
  position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 16px; background: var(--paper-2);
}
.hole::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 22%; border-radius: 50%; background: #4a3424; }
.mole {
  position: absolute; left: 14%; right: 14%; bottom: -90%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--red); overflow: hidden;
  display: grid; place-items: center; font-size: 2rem;
  transition: bottom .14s ease-out;
}
.mole img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.6) brightness(.9); }
.mole.bill { background: var(--yellow); }
.hole.up .mole { bottom: 16%; }
.zz { position: absolute; right: 4%; top: 2%; z-index: 2; font-size: 1.1rem; line-height: 1; pointer-events: none; opacity: 0; }
.hole.up .zz { opacity: 1; animation: zz 1s ease-in-out infinite alternate; }
.hole.hit .mole img { filter: none; }
.hole.hit .mole { transform: scale(1.08); }
.hole.ouch { background: #ffd2d2; animation: shake .3s; }
@keyframes zz { to { transform: translate(3px, -4px) scale(1.15); } }

/* কে বলেছে */
.who-quote {
  margin: 0 0 1rem; padding: 1rem 1rem 1rem 2.4rem; position: relative; min-height: 5.5em;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
  font-size: 1.15rem; font-weight: 600; line-height: 1.5;
}
.who-quote::before { content: "❝"; position: absolute; left: .55rem; top: .2rem; font-size: 2.4rem; color: var(--red); line-height: 1; }
.who-quote.pop { animation: pop .35s ease; }
.who-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.who-opt {
  display: flex; align-items: center; gap: .55rem; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: .45rem .55rem;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, background .15s;
}
.who-opt img, .who-opt .wo-emoji { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.who-opt .wo-emoji { display: grid; place-items: center; background: var(--red); font-size: 1.4rem; }
.who-opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.who-opt.right { background: #c9f2c7; border-color: #1e7a2a; }
.who-opt.wrong { background: #ffd2d2; animation: shake .3s; }
.who-opt:disabled { cursor: default; }
.who-end { grid-column: 1 / -1; }
.who-end .big { font-size: 3rem; line-height: 1.2; }
.who-end h4 { font-family: var(--font-display); font-weight: 400; color: var(--red); font-size: 1.7rem; margin: .2rem 0 .4rem; }

/* সিঙ্গারা ধরো */
.catch-wrap { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
#catchCanvas {
  display: block; width: 100%; height: auto; aspect-ratio: 360 / 440;
  border: 3px solid var(--ink); border-radius: 14px; background: #fff7e3; touch-action: none; cursor: grab;
}
#catchCanvas.shake { animation: shake .3s; }
.catch-start[hidden] { display: none; }
.catch-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.catch-start:active { transform: translate(-50%, -50%) translate(3px, 3px); }
@media (hover: hover) { .catch-start:hover { transform: translate(-50%, -50%) translate(-2px, -2px); } }
.game {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem 1rem 1.2rem;
}
.game h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.game-sub { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1rem; line-height: 1.55; }

.wheel-wrap { position: relative; width: min(calc(100% - 30px), 330px); aspect-ratio: 1; margin: 18px auto 1.1rem; }
#wheel {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 10px var(--yellow), 0 0 0 13px var(--ink), 6px 8px 0 13px rgba(0,0,0,.2);
  transition: transform 5s cubic-bezier(.12,.72,.08,1);
  cursor: pointer; touch-action: manipulation;
}
.wheel-pointer {
  position: absolute; top: -22px; left: 50%; z-index: 2; margin-left: -17px;
  width: 0; height: 0; border-left: 17px solid transparent; border-right: 17px solid transparent; border-top: 38px solid var(--ink);
  filter: drop-shadow(0 3px 0 var(--yellow));
}
.spinning .wheel-pointer { animation: tick .12s ease-in-out infinite alternate; }
@keyframes tick { to { transform: rotate(-14deg); } }
.wheel-hub {
  position: absolute; inset: 0; margin: auto; z-index: 2; width: 24%; height: 24%; border-radius: 50%;
  background: var(--yellow); border: 4px solid var(--ink); color: var(--ink);
  font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 3px 0 var(--ink);
}
.wheel-hub:active { transform: translateY(2px); box-shadow: none; }
.wheel-result { min-height: 5.6rem; margin-top: 1rem; }
.wr {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: .7rem .8rem;
  animation: pop .45s ease;
}
.wr img, .wr .wr-emoji { flex: none; width: 66px; height: 66px; border-radius: 50%; border: 3px solid var(--red); object-fit: cover; background: #fff; }
.wr .wr-emoji { display: grid; place-items: center; font-size: 2rem; background: var(--red); border-color: var(--yellow); }
.wr b { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.wr strong { display: block; font-size: 1.15rem; color: var(--red); line-height: 1.3; }
.wr small { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .15rem; line-height: 1.45; }

.tea-stage { position: relative; height: 230px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: .4rem; }
.kettle { position: absolute; top: 4px; left: 50%; font-size: 3.4rem; line-height: 1; transform: translateX(-82%); transform-origin: 85% 70%; transition: transform .25s ease; }
.pouring .kettle { transform: translateX(-82%) rotate(-38deg); }
.stream { position: absolute; top: 58px; left: 50%; width: 7px; margin-left: -6px; height: 0; background: #a5621f; border-radius: 4px; }
.pouring .stream { height: 150px; animation: flow .2s linear infinite alternate; }
@keyframes flow { to { width: 9px; margin-left: -7px; } }
.cup-wrap { position: relative; width: 120px; height: 120px; margin-bottom: 14px; }
.cup-wrap::after {
  content: ""; position: absolute; right: -30px; top: 22px; width: 30px; height: 46px;
  border: 6px solid var(--ink); border-left: 0; border-radius: 0 26px 26px 0;
}
.cup {
  position: absolute; inset: 0; overflow: hidden; z-index: 1;
  background: #fff; border: 5px solid var(--ink); border-top-width: 3px; border-radius: 6px 6px 44px 44px;
}
.tea { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#c98a45, #8c4c17); }
.tea::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 8px; background: #dca262; border-radius: 50%; }
.cup-wrap.empty .tea::before { display: none; }
.tea-line { position: absolute; left: -10px; right: -10px; z-index: 2; border-top: 3px dashed var(--red); }
.tea-line span { position: absolute; left: 100%; top: -.85em; margin-left: 34px; font-size: .75rem; font-weight: 700; color: var(--red); white-space: nowrap; }
.steam { position: absolute; left: 50%; top: -38px; margin-left: -14px; font-size: 1.8rem; opacity: 0; }
.cup-wrap.perfect .steam { animation: steam 1.6s ease-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
.cup-wrap.spilled { animation: shake .35s 2; }
.puddle { position: absolute; bottom: 4px; left: 50%; width: 0; height: 12px; transform: translateX(-50%); background: #a5621f; border-radius: 50%; opacity: .85; transition: width .5s ease; }
.cup-wrap.spilled + .puddle { width: 220px; }
.tea-msg { min-height: 3.2em; font-weight: 600; margin: 0 0 .8rem; display: flex; align-items: center; justify-content: center; }
.hold-btn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.hold-btn.holding { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); background: var(--yellow-soft); }
.tea-best { margin: .8rem 0 0; font-size: .9rem; color: var(--ink-soft); }

.excuse-out {
  min-height: 9.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: var(--paper); border: 2px dashed var(--ink-soft); border-radius: 12px; padding: 1rem; margin-bottom: 1rem;
}
.excuse-out p { margin: 0; font-size: 1.12rem; font-weight: 600; line-height: 1.55; }
.excuse-out .who { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--red-dark); font-weight: 700; }
.excuse-out .who img, .excuse-out .who span { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); display: grid; place-items: center; background: var(--red); font-size: 1.1rem; }
.excuse-out.pop { animation: pop .4s ease; }

/* ---------- মোবাইলের নিচের মেনু ---------- */
.bottom-nav { display: none; }

/* ---------- গোপন বিপ্লব মোড (প্রতীকে ৫ বার ট্যাপ) ---------- */
body.party .hero { animation: party-hue 1.4s linear infinite; }
body.party .hero-rays { animation-duration: 3s; }
body.party .hero h1 { animation: wobble .7s ease infinite; }
@keyframes party-hue { to { filter: hue-rotate(360deg); } }

/* ---------- ফোন ---------- */
@media (max-width: 820px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); border-top: 3px solid var(--yellow);
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    text-decoration: none; color: #fff; font-size: .74rem; font-weight: 600; line-height: 1.2;
    padding: 4px 0 3px; border-radius: 10px; transition: background .2s, color .2s;
  }
  .bottom-nav a span { font-size: 1.25rem; line-height: 1.1; }
  .bottom-nav a.active { background: var(--red); color: var(--yellow); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 46px 16px; }
  .section-red { margin-top: 2rem; }
  .section-sub { margin-bottom: 1.6rem; font-size: 1rem; }
  .hero { padding: 36px 16px 44px; }
  .hero-badge { width: 150px; }
  .hero-actions { gap: .7rem; }
  .hero-actions .btn { padding: .6em 1.1em; font-size: .95rem; }
  .btn-big { font-size: 1.1rem; padding: .8em 1.4em; }

  .stats { gap: .8rem; margin-top: 1.8rem; }
  .stat { padding: .8rem .5rem; box-shadow: 4px 4px 0 var(--ink); }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: .92rem; line-height: 1.45; display: block; }

  .meeting { margin-top: 1.8rem; }
  .meeting-box { padding: 1.2rem .8rem; }
  .meeting-box h2 { font-size: 1.2rem; }
  .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
  .countdown div { min-width: 0; padding: .35rem .2rem; }
  .countdown span { font-size: 1.55rem; }
  .countdown small { font-size: .78rem; }
  .meeting-box p { font-size: .93rem; }

  .timeline li { padding-left: 54px; }
  .timeline h3 { font-size: 1.15rem; }

  .letter-sign { min-height: 150px; }
  .letter-stamp { width: 118px; left: 0; }
  .sig-script { font-size: 2rem; }

  /* ইশতেহার: দুই কলাম */
  .cards { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .flip { height: 178px; }
  .flip-face { padding: .6rem; box-shadow: 4px 4px 0 var(--ink); }
  .flip-front .emoji { font-size: 2.4rem; }
  .flip-front h3 { font-size: .98rem; margin-top: .35rem; }
  .flip-front small { font-size: .72rem; }
  .flip-back { font-size: .84rem; line-height: 1.45; }

  /* কমিটি: পাশাপাশি সোয়াইপ */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -.6rem -16px 1.2rem; padding: 4px 16px 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .leaders {
    display: flex; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 6px 9vw 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .leaders::-webkit-scrollbar { display: none; }
  .leader { flex: 0 0 82vw; max-width: 340px; scroll-snap-align: center; }
  .carousel-ctrl { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: .2rem; }
  .carousel-ctrl button {
    width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink);
    font-size: 1.6rem; font-weight: 700; line-height: 1; box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  }
  .carousel-ctrl button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
  .carousel-ctrl span { font-weight: 700; min-width: 5ch; font-size: 1.05rem; }
  .swipe-hint { display: block; margin: .5rem 0 0; font-size: .88rem; color: var(--ink-soft); animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(8px); } }

  .meter { gap: .6rem; }
  .meter-bar { height: 32px; }
  .meter-pct { font-size: 1.3rem; }
  .quiz { padding: 1.2rem 1rem; }
  .quiz h3 { font-size: 1.15rem; }
  .join-form { padding: 1.1rem; }
  .donate-arena { height: 230px; }
  .game { padding: 1.1rem .8rem 1rem; }
  .game-tabs { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .game-tabs button { font-size: .82rem; padding: .45rem .2rem; }
  .game-tabs button span { font-size: 1.4rem; }
  .who-quote { font-size: 1.05rem; }
  .who-opt { font-size: .92rem; gap: .4rem; }
  .who-opt img, .who-opt .wo-emoji { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-content { animation: none; white-space: normal; }
}
