@font-face { font-family: "Fredoka"; src: url("/assets/fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --pink: #ff4f7b; --pink-dark: #ba184a; --ink: #23153c; --ink-soft: #5b4a7a; --paper: #fff7ea; --card: #ffffff;
  --green: #2ec27e; --red: #e63946; --yellow: #ffc300; --blue: #3a86ff; --gold: #ffc93c;
  --bg: #fff7ea; --text: #23153c; --muted: #5b4a7a; --line: rgba(35, 21, 60, .12); --shadow: 0 18px 40px rgba(35, 21, 60, .14);
  --radius: 28px;
  color-scheme: light dark;
  scroll-behavior: smooth;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1030; --card: #261a42; --text: #fff4ea; --muted: #cfc2e6; --line: rgba(255, 255, 255, .14); --shadow: 0 18px 40px rgba(0, 0, 0, .4); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Fredoka", "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif; background: var(--bg); color: var(--text);
  font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); font-weight: 600; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }
.bn { font-family: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", "Kalpurush", "Fredoka", sans-serif; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 26px; font-weight: 700; }
.wordmark img { width: 46px; height: 46px; }
.nav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--pink); }
@media (max-width: 720px) { .nav nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 35%, #ff7a9b 0%, var(--pink) 38%, var(--pink-dark) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(45deg, #fff 12%, transparent 12%, transparent 88%, #fff 88%), linear-gradient(-45deg, #fff 12%, transparent 12%, transparent 88%, #fff 88%);
  background-size: 46px 46px; }
.hero .nav, .hero .nav nav a, .hero .wordmark { color: #fff; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 30px 0 80px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; padding-bottom: 56px; } }
.hero h1 { margin: 0 0 12px; font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -.5px; text-shadow: 0 4px 0 rgba(35, 21, 60, .25); }
.hero .bn-title { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 18px; opacity: .95; }
.hero p.lead { font-size: clamp(19px, 2.4vw, 23px); max-width: 560px; margin: 0 0 26px; }
@media (max-width: 860px) { .hero p.lead { margin-inline: auto; } }
.logo-big { width: min(520px, 100%); margin: 0 0 18px; filter: drop-shadow(0 8px 0 rgba(35, 21, 60, .18)); }
@media (max-width: 860px) { .logo-big { margin-inline: auto; } }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .cta { justify-content: center; } }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 19px; text-decoration: none;
  border: 0; cursor: pointer; font-family: inherit; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; box-shadow: 0 6px 0 rgba(35, 21, 60, .25); }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(2px) scale(.97); box-shadow: 0 2px 0 rgba(35, 21, 60, .25); }
.btn-light { background: #fff; color: var(--pink-dark); }
.btn-green { background: var(--green); color: #fff; }
.badge-soon { display: inline-flex; flex-direction: column; padding: 10px 22px; border-radius: 16px; background: var(--ink); color: #fff; line-height: 1.15; border: 2px solid rgba(255, 255, 255, .5); }
.badge-soon small { font-size: 12px; opacity: .8; letter-spacing: .5px; text-transform: uppercase; }
.badge-soon strong { font-size: 20px; }

/* 3D dice stage */
.stage { position: relative; height: 380px; perspective: 900px; }
@media (max-width: 860px) { .stage { height: 300px; } }
.die-wrap { position: absolute; left: 50%; top: 40%; width: 150px; height: 150px; margin: -75px 0 0 -75px; animation: hop 2.6s cubic-bezier(.4, 0, .4, 1) infinite; cursor: pointer; }
.die { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); transition: transform 1.1s cubic-bezier(.2, 1.4, .4, 1); }
.die.idle { animation: tumble 9s linear infinite; }
.face { position: absolute; inset: 0; background: linear-gradient(145deg, #fffdf6, #efe6d2); border-radius: 26px; box-shadow: inset 0 0 0 4px rgba(35, 21, 60, .06), inset -8px -10px 18px rgba(35, 21, 60, .12);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 20px; }
.face span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); place-self: center; box-shadow: inset 2px 3px 4px rgba(0, 0, 0, .5); }
.face.f1 span { background: var(--red); width: 36px; height: 36px; }
.f1 { transform: rotateY(0deg) translateZ(75px); }
.f6 { transform: rotateY(180deg) translateZ(75px); }
.f3 { transform: rotateY(90deg) translateZ(75px); }
.f4 { transform: rotateY(-90deg) translateZ(75px); }
.f5 { transform: rotateX(90deg) translateZ(75px); }
.f2 { transform: rotateX(-90deg) translateZ(75px); }
.p-c { grid-area: 2 / 2; } .p-tl { grid-area: 1 / 1; } .p-tr { grid-area: 1 / 3; } .p-bl { grid-area: 3 / 1; } .p-br { grid-area: 3 / 3; }
.p-ml { grid-area: 2 / 1; } .p-mr { grid-area: 2 / 3; }
.shadow { position: absolute; left: 50%; top: 78%; width: 170px; height: 34px; margin-left: -85px; border-radius: 50%; background: rgba(35, 21, 60, .3); filter: blur(6px); animation: shadow 2.6s cubic-bezier(.4, 0, .4, 1) infinite; }
.guti { position: absolute; width: 74px; height: 74px; border-radius: 50%; top: 66%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), transparent 30%), var(--c);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .18), 0 10px 0 rgba(35, 21, 60, .2); animation: bounce 2.6s ease-in-out infinite; }
.guti.g1 { --c: var(--green); left: 12%; animation-delay: -.4s; }
.guti.g2 { --c: var(--yellow); left: 72%; animation-delay: -1.1s; }
.guti.g3 { --c: var(--blue); left: 30%; top: 80%; width: 58px; height: 58px; animation-delay: -1.8s; }
.guti.g4 { --c: var(--red); left: 64%; top: 82%; width: 52px; height: 52px; animation-delay: -.9s; }
.roll-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-weight: 600; opacity: .9; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.72); opacity: .55; } }
@keyframes tumble { from { transform: rotateX(-24deg) rotateY(38deg); } to { transform: rotateX(336deg) rotateY(398deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-22px) scale(.96, 1.04); } 55% { transform: translateY(-22px); } 92% { transform: translateY(0) scale(1.08, .9); } }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(32px, 4.6vw, 48px); margin: 0 0 8px; line-height: 1.1; }
.section-title p { margin: 0 auto; max-width: 680px; color: var(--muted); font-size: 20px; }
.kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255, 79, 123, .14); color: var(--pink); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }

/* Games grid */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.game { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); border-top: 8px solid var(--accent); }
.game:hover { transform: translateY(-6px) rotate(-.6deg); }
.game .shot { background: linear-gradient(160deg, var(--accent), #23153c); aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.game .body { padding: 18px 20px 22px; }
.game h3 { margin: 0; font-size: 26px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.game h3 .bn { font-size: 20px; color: var(--muted); font-weight: 500; }
.game .meta { color: var(--muted); font-size: 15px; margin: 2px 0 8px; }
.game p { margin: 0; font-size: 17px; }

/* Phones */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .phones { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }
.phone { margin: 0; }
.phone .frame { border-radius: 40px; padding: 12px; background: #120a24; box-shadow: var(--shadow), inset 0 0 0 2px #3b2b5f; }
.phone img { border-radius: 30px; width: 100%; }
.phone figcaption { text-align: center; margin-top: 14px; font-weight: 600; }
.phone figcaption small { display: block; font-weight: 400; color: var(--muted); }

.together { background: linear-gradient(180deg, transparent, rgba(46, 194, 126, .12)); }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 40px; }
.mode { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.mode .icon { font-size: 40px; line-height: 1; }
.mode h3 { margin: 10px 0 6px; font-size: 24px; }
.mode p { margin: 0; color: var(--muted); }

/* Cheer squad */
.cheer { background: linear-gradient(180deg, rgba(255, 201, 60, .16), transparent); }
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px; }
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); border: 5px solid var(--card);
  transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.member:hover img, .member:focus-within img { transform: translateY(-8px) rotate(-4deg) scale(1.05); }
.member figcaption { margin-top: 8px; font-weight: 600; font-size: 16px; }
.member figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

/* Heritage */
.heritage-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.heritage-list article { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); border-left: 8px solid var(--accent); }
.heritage-list h3 { margin: 0 0 6px; }
.heritage-list p { margin: 0; color: var(--muted); font-size: 17px; }
.note { text-align: center; color: var(--muted); max-width: 760px; margin: 28px auto 0; font-size: 16px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 20px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Download band */
.download { text-align: center; color: #fff; background: radial-gradient(circle at 50% 0, #ff7a9b, var(--pink-dark)); border-radius: 40px; padding: 48px 24px; }
.download h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); }
.download p { margin: 0 0 24px; font-size: 20px; }
.download .cta { justify-content: center; }

/* Footer */
footer.site { padding: 36px 0 48px; color: var(--muted); font-size: 16px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 820px; padding: 24px 0 56px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 10px 0 8px; }
.legal h2 { margin-top: 36px; font-size: 26px; }
.legal p, .legal li { font-size: 18px; }
.legal .updated { color: var(--muted); }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.page-head { background: linear-gradient(120deg, var(--pink), var(--pink-dark)); }
.page-head .nav, .page-head .wordmark, .page-head .nav nav a { color: #fff; }
.page-head .nav nav { display: flex; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.reveal.shown { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Per-game accents (CSP forbids inline styles). */
.acc-ludo { --accent: #E63946; } .acc-sholo { --accent: #2A9D8F; } .acc-baroguti { --accent: #B5651D; }
.acc-baghbandi { --accent: #FFB703; } .acc-shapludu { --accent: #8AC926; } .acc-carrom { --accent: #F4A261; }
.acc-charkori { --accent: #C1121F; } .acc-katakuti { --accent: #4361EE; } .acc-chess { --accent: #6D597A; }

@media (min-width: 900px) { .games { grid-template-columns: repeat(3, 1fr); } }
.game .shot { aspect-ratio: 540 / 670; }
@media (max-width: 720px) {
  .page-head .nav { flex-wrap: wrap; justify-content: center; }
  .page-head .nav nav { width: 100%; justify-content: center; gap: 10px 16px; font-size: 16px; }
}
