/* CyberBondhu website — design tokens follow the episode graphics (teal / cyan / white, warm gold accents) */
:root {
  --teal: #0b8a8a; --teal-2: #2bb7b3; --cyan: #5fe3e6; --navy: #062a33; --navy-2: #0b3b47;
  --ink: #12343b; --muted: #5b7479; --bg: #f3f8f8; --card: #fff; --line: #d8e8e7; --gold: #f2c94c; --orange: #ff8a1f; --red: #e5484d;
  --radius: 18px; --shadow: 0 10px 30px rgba(6, 42, 51, .12);
  --font: "Hind Siliguri", "Noto Sans Bengali", "Bangla Sangam MN", "Nirmala UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
button, input, select { font-family: inherit; }
.hidden { display: none !important; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(6, 42, 51, .92); backdrop-filter: blur(8px); color: #fff; }
.nav .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .2px; }
.brand svg { flex-shrink: 0; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--cyan); line-height: 1; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { color: #dff7f6; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.nav-links a:hover { background: rgba(255, 255, 255, .1); }
.player-chip { display: flex; align-items: center; gap: 8px; background: rgba(95, 227, 230, .14); border: 1px solid rgba(95, 227, 230, .35); color: #fff; padding: 5px 6px 5px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.player-chip b { color: var(--gold); }
.player-chip button { background: transparent; border: 0; color: #9fd9d8; cursor: pointer; font-size: 12px; text-decoration: underline; }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } .brand small { display: none; } .player-chip .pname { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 80% -10%, #138f93 0%, transparent 60%), linear-gradient(160deg, #062a33 0%, #0b3b47 55%, #0e5157 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(95, 227, 230, .35) 1px, transparent 1.4px); background-size: 26px 26px; opacity: .25; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: rgba(95, 227, 230, .15); border: 1px solid rgba(95, 227, 230, .4); color: var(--cyan); padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.2; margin: 16px 0 14px; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: #cdeeed; margin: 0 0 26px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { border-radius: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); border: 4px solid rgba(95, 227, 230, .35); }
.hero-art .float { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; animation: bob 4s ease-in-out infinite; }
.hero-art .f1 { left: -18px; bottom: 26px; } .hero-art .f2 { right: -12px; top: 22px; animation-delay: 1.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.stats div b { display: block; font-size: 28px; color: #fff; line-height: 1.1; }
.stats div span { color: #9fd9d8; font-size: 14px; }
@media (max-width: 880px) { .hero .container { grid-template-columns: 1fr; padding-top: 34px; } .hero-art { order: -1; } .hero-art .float { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--teal); background: #fff; color: var(--teal); border-radius: 14px; padding: 10px 20px; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 138, 138, .25); }
.btn.primary { background: linear-gradient(135deg, #12a39f, #0b8a8a); color: #fff; border-color: transparent; }
.btn.gold { background: linear-gradient(135deg, #ffcf4d, #ff9a1f); color: #3b2300; border-color: transparent; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.yt { background: #ff0000; border-color: #ff0000; color: #fff; }
.btn.big { font-size: clamp(17px, 2.2vw, 21px); padding: 13px 26px; border-radius: 16px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn:focus-visible, .opt:focus-visible, input:focus-visible, select:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; line-height: 1.25; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }

/* episode cards */
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ep { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.ep:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6, 42, 51, .18); }
.ep .thumb { position: relative; aspect-ratio: 16/9; background: var(--navy); }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep .thumb .num { position: absolute; left: 14px; top: 14px; background: var(--gold); color: #3b2300; font-weight: 800; border-radius: 12px; padding: 2px 12px; font-size: 15px; }
.ep .thumb .done { position: absolute; right: 14px; top: 14px; background: #2fb36b; color: #fff; font-weight: 700; border-radius: 12px; padding: 2px 10px; font-size: 14px; }
.ep .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .45)); opacity: 0; transition: opacity .2s; }
.ep:hover .thumb .play { opacity: 1; }
.ep .thumb .play span { width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.ep .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ep .topic { color: var(--teal); font-weight: 700; font-size: 14px; }
.ep h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.ep p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ep .meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.ep .actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.soon { border: 2px dashed var(--line); background: transparent; box-shadow: none; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; min-height: 280px; }

/* how it works */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.how .step { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.how .step i { font-style: normal; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #e3f6f5; color: var(--teal); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.how .step h4 { margin: 0 0 4px; font-size: 19px; }
.how .step p { margin: 0; color: var(--muted); }

/* leaderboard */
.board { background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.board table { width: 100%; border-collapse: collapse; }
.board th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #f6fbfb; border-bottom: 1px solid var(--line); }
.board td { padding: 12px 16px; border-bottom: 1px solid #edf4f4; vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.rank { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; background: #eef6f6; }
.rank.r1 { background: #ffe08a; } .rank.r2 { background: #e3e8ee; } .rank.r3 { background: #f6c9a3; }
.board .who b { display: block; font-size: 17px; }
.board .who span { color: var(--muted); font-size: 14px; }
.pts { font-weight: 800; color: var(--teal); font-size: 18px; white-space: nowrap; }
.chip { display: inline-block; background: #fff4d6; color: #7a5200; border-radius: 999px; padding: 1px 10px; font-size: 13px; margin: 2px 4px 2px 0; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .board .col-school { display: none; } .board td, .board th { padding: 10px; } }

/* youtube band */
.ytband { background: linear-gradient(135deg, #2b0a0a, #5a0f12 60%, #8a1a1a); color: #fff; border-radius: 26px; padding: 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; box-shadow: var(--shadow); }
.ytband h3 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.ytband p { margin: 0; color: #ffd9d9; }
@media (max-width: 760px) { .ytband { grid-template-columns: 1fr; text-align: center; } .ytband svg { margin: 0 auto; } }

footer { background: var(--navy); color: #9fd9d8; padding: 34px 0; margin-top: 30px; font-size: 15px; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #dff7f6; }

/* ---------- registration modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 24, 30, .72); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal .box { width: min(520px, 100%); max-height: 94vh; overflow: auto; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: pop .25s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal .head { background: linear-gradient(135deg, #0b3b47, #0e6b6e); color: #fff; padding: 22px 24px; display: flex; gap: 14px; align-items: center; }
.modal .head h3 { margin: 0; font-size: 22px; line-height: 1.3; }
.modal .head p { margin: 2px 0 0; color: #bdeceb; font-size: 15px; }
.modal form { padding: 20px 24px 24px; display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field select { width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; font-size: 17px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--teal-2); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--teal); }
.err { color: var(--red); font-size: 14px; min-height: 1em; }
.modal .note { font-size: 13px; color: var(--muted); margin: 0; }
.x { margin-left: auto; background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }

/* ---------- player page ---------- */
.play-head { background: var(--navy); color: #fff; }
.play-head .container { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.play-head .title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.play-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.points { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 12px; font-weight: 700; white-space: nowrap; }
.points:empty { display: none; }
.chipbtn { background: #fff; color: var(--teal); border: 0; border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; font-weight: 600; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 14px 16px 40px; }
.stage { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; }
.stage video.on { opacity: 1; }
.caption { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); max-width: 88%; text-align: center; font-size: clamp(15px, 2.6vw, 26px); line-height: 1.45; color: #fff; background: rgba(0, 0, 0, .62); padding: 4px 14px; border-radius: 8px; white-space: pre-line; pointer-events: none; }
.caption:empty { display: none; }
.caption .tag { display: block; font-size: .7em; color: var(--gold); font-weight: 700; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.start { background-size: cover; background-position: center; }
.start-card { text-align: center; color: #fff; max-width: 640px; }
.start-card h1 { font-size: clamp(22px, 4vw, 40px); margin: 0 0 10px; line-height: 1.35; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.start-card p { font-size: clamp(14px, 2.2vw, 20px); margin: 0 0 20px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.msg { background: rgba(0, 0, 0, .55); }
.msg .card { background: #fff; border-radius: 16px; padding: 18px 20px; text-align: center; max-width: 480px; }
.transport { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.progress { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--teal-2); transition: width .25s linear; }
.btn.small { font-size: 15px; padding: 6px 14px; }
.panel { margin-top: 14px; background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.q { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin: 0 0 4px; line-height: 1.4; }
.instr { color: var(--muted); margin: 0 0 14px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: #e7f6f5; border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5; color: var(--ink); cursor: pointer; }
.opt:hover:not(:disabled) { border-color: var(--teal-2); }
.opt:disabled { opacity: .65; cursor: default; }
.opt .lab { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.opt .seen { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--muted); background: #fff; border-radius: 999px; padding: 1px 8px; }
.opt.chosen { border-color: var(--teal); }
.fb .who { font-size: 14px; color: var(--teal); font-weight: 700; margin-bottom: 4px; }
.fb p { margin: 0 0 14px; font-size: clamp(17px, 2.3vw, 21px); }
.fb.good { border-left: 6px solid #2fb36b; padding-left: 12px; }
.fb.soft { border-left: 6px solid var(--gold); padding-left: 12px; }
.result { text-align: center; }
.result h2 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 6px; color: var(--teal); }
.result .pts { font-size: clamp(20px, 3vw, 26px); }
.result .bonus, .result .total { color: var(--muted); margin: 2px 0; }
.result .practice { background: #fff8e1; color: #7a5200; border-radius: 12px; padding: 8px 12px; display: inline-block; }
.badge { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px auto; }
.badge img { width: 96px; height: 96px; animation: popb .6s cubic-bezier(.2, 1.6, .4, 1) both .2s; }
@keyframes popb { from { transform: scale(.2); opacity: 0; } }
.rules { text-align: left; max-width: 640px; margin: 14px auto; padding: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; background: #e7f6f5; border-radius: 12px; padding: 10px 12px 10px 52px; margin: 8px 0; position: relative; }
.rules li::before { content: counter(r, bengali); position: absolute; left: 12px; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.yt-card { display: flex; gap: 16px; align-items: center; text-align: left; background: #fff5f5; border: 2px solid #ffd2d2; border-radius: 18px; padding: 16px 18px; margin: 18px auto; max-width: 640px; }
.yt-card b { font-size: 19px; } .yt-card p { margin: 2px 0 10px; color: var(--muted); }
.yt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.result-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
@media (min-width: 900px) { .panel.over { position: absolute; z-index: 5; margin: 0; right: 3%; top: 50%; transform: translateY(-50%); width: min(520px, 46%); max-height: 92%; overflow: auto; animation: fade .35s ease both; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
