/* betpayley24 demo: free-play games site. */

@font-face {
  font-family: "Baloo Da 2";
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(fonts/baloo-da-2-bengali-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Baloo Da 2";
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(fonts/baloo-da-2-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #071317;
  --surface: #10262e;
  --surface-2: #173640;
  --line: rgba(255, 255, 255, .08);
  --text: #ecfbf7;
  --muted: #8fb3b0;
  --mint: #3fe7c0;
  --ink: #052a24;
  --sun: #ffd166;
  --coral: #ff6f6f;
  --violet: #8f7dff;
  --sky: #4fb8ff;
  --font-d: "Baloo Da 2", "Inter", system-ui, sans-serif;
  --font-b: "Inter", "Baloo Da 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 16px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  padding: var(--sat) 0 var(--sab);
}
/* keeps the strip beside the phone's clock and battery solid while the page scrolls under it */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--sat); z-index: 25; background: var(--bg); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  font-size: 16px;
  background: #040b0e;
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 800; line-height: 1.12; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.3; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; color: var(--muted); }

.app {
  position: relative;
  max-width: 480px;
  min-height: calc(100vh - var(--sat) - var(--sab));
  min-height: calc(100dvh - var(--sat) - var(--sab));
  margin: 0 auto;
  overflow-x: clip;
  background:
    radial-gradient(420px 260px at 8% -2%, rgba(63, 231, 192, .16), transparent 70%),
    radial-gradient(420px 420px at 108% 34%, rgba(143, 125, 255, .14), transparent 70%),
    var(--bg);
}
main { padding-bottom: 108px; }
.app.immersive main { padding-bottom: 28px; }

/* ---------- top bars ---------- */
.topbar, .subbar {
  position: sticky;
  top: var(--sat);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--gut);
  background: rgba(7, 19, 23, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.icon-btn.ghost { background: transparent; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 23px;
  line-height: 1;
  color: #fff;
}
.brand b { color: var(--mint); font-weight: 800; }
.brand > span:last-child { padding-top: 3px; }
.logo {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, #6ff5d6, #2bb3ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.pill {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}
.subbar h1 { flex: 1; text-align: center; font-size: 20px; padding-top: 2px; }
.subbar .spacer { width: 40px; flex: none; }

/* ---------- avatars ---------- */
.av {
  --s: 40px;
  width: var(--s);
  height: var(--s);
  flex: none;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
}
.av svg { width: 100%; height: 100%; }
.av.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--mint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 13px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: #eafff9; }
.btn-mint { background: linear-gradient(160deg, #6ff5d6, #1fc7a0); color: var(--ink); box-shadow: 0 8px 18px -8px rgba(63, 231, 192, .7); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.wide { width: 100%; }

/* ---------- home banner: full width under the top bar, moves to the next picture by itself ---------- */
.banner { position: relative; --bw: min(100vw, 480px); }
.carousel {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.hero {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  min-height: max(150px, calc(var(--bw) / 2.4));
  padding: 10px var(--gut) 20px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  color: var(--ink);
}
.hero-a { background: linear-gradient(135deg, #5df0cf 0%, #35c3f5 100%); }
.hero-b { background: linear-gradient(135deg, #b9a8ff 0%, #ff8fb1 100%); color: #2a1458; }
.hero-c { background: linear-gradient(135deg, #ffe08a 0%, #ffa66b 100%); color: #45230a; }
.hero::before {
  content: "";
  position: absolute;
  right: -56px;
  top: -84px;
  width: 232px;
  height: 232px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.hero::after {
  content: "";
  position: absolute;
  right: 34%;
  bottom: -62px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, .16);
}
.hero-copy { position: relative; z-index: 1; max-width: 62%; }
.eyebrow {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
}
html[lang="bn"] .eyebrow { font-family: var(--font-d); font-size: 11.5px; letter-spacing: 0; }
.hero h2 { margin: 6px 0 9px; font-size: clamp(18px, calc(var(--bw) * .054), 25px); text-wrap: balance; }
html[lang="bn"] .hero h2 { font-size: clamp(17px, calc(var(--bw) * .05), 23px); }
.hero .btn.sm { height: 31px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.hero-art {
  position: absolute;
  z-index: 1;
  right: 8px;
  top: 50%;
  width: clamp(104px, calc(var(--bw) * .31), 142px);
  aspect-ratio: 1;
  transform: translateY(-52%);
}
.hero-art > svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 12px rgba(5, 42, 36, .25)); }
.hero-duo { right: 16px; display: flex; align-items: center; justify-content: center; }
.hero-duo .av { width: 58%; height: auto; aspect-ratio: 1; background: #fff3d6; box-shadow: 0 0 0 3px rgba(255, 255, 255, .7), 0 12px 16px -8px rgba(69, 35, 10, .55); }
.hero-duo .av + .av { margin: 22% 0 0 -16%; }
.hero-duo .av svg { width: 100%; height: 100%; }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots button { position: relative; width: 7px; height: 7px; border-radius: 99px; background: rgba(5, 42, 36, .3); pointer-events: auto; transition: width .25s ease, background-color .25s ease; }
.dots button::after { content: ""; position: absolute; inset: -9px -3px; }
.dots button.on { width: 20px; background: var(--ink); }

/* ---------- news line: the headlines move from right to left, like a news strip ---------- */
.news {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 var(--gut);
  background: #0a1c21;
  border-bottom: 1px solid var(--line);
  color: var(--sun);
}
.news-ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 209, 102, .14); }
.news-view {
  flex: 1;
  min-width: 0;
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.news-track { display: flex; width: max-content; height: 100%; animation: news var(--dur, 30s) linear infinite; will-change: transform; }
.news-run { flex: none; display: flex; align-items: center; gap: 10px; padding-right: 10px; }
.news-run span { font-size: 12.5px; font-weight: 500; color: #f4e6bf; white-space: nowrap; }
html[lang="bn"] .news-run span { font-family: var(--font-d); font-size: 14px; padding-top: 1px; }
.news-run svg { margin: 0 4px; }
@media (hover: hover) { .news:hover .news-track { animation-play-state: paused; } }
.news-view:active .news-track { animation-play-state: paused; }
@keyframes news { to { transform: translateX(-50%); } }

/* ---------- cards / sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.sec { padding: 0 var(--gut); margin-top: 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-head h3 { font-size: 20px; }
.link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--mint); }

/* ---------- daily streak ---------- */
.streak { margin: 14px var(--gut) 0; padding: 14px; }
.streak-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.streak-head h3 { font-size: 18px; display: flex; align-items: center; gap: 6px; }
.streak-head h3 svg { color: var(--coral); }
.streak-head p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
/* seven days always fit in the card: on a narrow phone the circles get a little smaller */
.days { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 13px; }
.days li { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.days .dot {
  width: 100%;
  max-width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}
.days .done .dot { background: rgba(63, 231, 192, .16); border-color: rgba(63, 231, 192, .45); color: var(--mint); }
.days .today .dot { background: var(--sun); border-color: var(--sun); color: #4a3200; box-shadow: 0 0 0 4px rgba(255, 209, 102, .2); }
.days .today { color: var(--sun); }
.days .gift .dot { color: var(--violet); border-color: rgba(143, 125, 255, .45); background: rgba(143, 125, 255, .14); }

/* ---------- category chips ---------- */
.chips { display: flex; gap: 8px; padding: 0 var(--gut); margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.chip {
  flex: none;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: #cfe6e2;
}
.chip svg { color: var(--mint); }
.chip.on { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.chip.on svg { color: var(--ink); }
html[lang="bn"] .chip { font-family: var(--font-d); font-size: 15px; }

/* ---------- game tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
.tile { min-width: 0; }
.art-wrap { position: relative; }
.art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 20px -14px var(--b);
  font-family: var(--font-d);
}
.art::before {
  content: "";
  position: absolute;
  right: -34%;
  top: -34%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.art::after {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -17%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, .15);
}
.art > svg { position: relative; z-index: 1; width: 64%; height: 64%; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .2)); }
.art > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: cover; }   /* the cover picture of a game added in the admin panel */
.tag {
  position: absolute;
  z-index: 2;
  right: 7px;
  top: 7px;
  padding: 4px 6px;
  border-radius: 7px;
  background: #0b1a1f;
  color: var(--sun);
  font: 800 9px/1 var(--font-b);
  letter-spacing: .6px;
}
html[lang="bn"] .tag { font: 700 11px/1.1 var(--font-d); letter-spacing: 0; }
.tag.new { color: var(--mint); }
.fav {
  position: absolute;
  z-index: 2;
  left: 7px;
  top: 7px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(4, 20, 24, .28);
  color: #fff;
}
.fav.on svg { fill: #fff; }
.tname { display: block; margin-top: 8px; font-family: var(--font-d); font-weight: 700; font-size: 14.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmeta { margin-top: 1px; font-size: 11.5px; color: var(--muted); }
html[lang="bn"] .tname { line-height: 1.35; }
html[lang="bn"] .tmeta { font-family: var(--font-d); font-size: 13px; }
.empty { grid-column: 1 / -1; padding: 26px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- top players (home) ---------- */
.board-mini { padding: 6px 14px 14px; }
.prow { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prow:last-of-type { border-bottom: 0; }
.rank { width: 26px; flex: none; text-align: center; font-family: var(--font-d); font-weight: 800; font-size: 17px; color: var(--muted); }
.rank.r1 { color: #ffd166; }
.rank.r2 { color: #cfd9e6; }
.rank.r3 { color: #f0a36b; }
.pname { flex: 1; min-width: 0; }
.pname b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.pname span { font-size: 11.5px; color: var(--muted); }
html[lang="bn"] .pname span { font-family: var(--font-d); font-size: 13px; }
.pts { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; }
.board-mini .btn { margin-top: 8px; }

.foot { margin-top: 26px; padding: 0 20px; text-align: center; }
.foot p { font-size: 12.5px; color: var(--muted); }
.foot .tiny { margin-top: 4px; opacity: .7; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 9px 8px calc(10px + var(--sab));
  background: rgba(8, 22, 27, .975);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
}
.app.immersive .tabbar { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.tab.on { color: var(--mint); }
html[lang="bn"] .tab { font-family: var(--font-d); font-size: 13px; }
.tab .orb {
  width: 58px;
  height: 58px;
  margin-top: -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #6ff5d6, #18b894);
  color: var(--ink);
  box-shadow: 0 0 0 6px var(--bg), 0 14px 24px -8px rgba(63, 231, 192, .6);
}
.tab.main { color: var(--text); }

/* ---------- side menu ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(2, 8, 10, .64); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 240px));
  width: min(84vw, 330px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f262d, #08161a);
  border-right: 1px solid var(--line);
  border-radius: 0 28px 28px 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateX(-104%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s;
}
.app.drawer-open .drawer { visibility: visible; transform: none; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.app.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-head {
  position: relative;
  padding: calc(18px + var(--sat)) 16px 14px;
  background:
    radial-gradient(240px 140px at 0% 0%, rgba(63, 231, 192, .22), transparent 70%),
    radial-gradient(200px 140px at 100% 0%, rgba(143, 125, 255, .2), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.drawer-head .who { display: flex; align-items: center; gap: 12px; }
.drawer-head h2 { font-size: 21px; display: flex; align-items: center; gap: 8px; }
.drawer-head .pts { margin-top: 3px; color: #d8efe9; }
.drawer-head .close { position: absolute; right: 12px; top: calc(12px + var(--sat)); width: 34px; height: 34px; border-radius: 11px; }
.xp { height: 8px; margin-top: 14px; border-radius: 99px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.xp i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3fe7c0, #4fb8ff); }
.xp-note { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
/* the list fades out at the bottom edge, which shows that it can be scrolled when a group is open */
.menu { flex: 1; padding: 8px 10px 20px; overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 24px), transparent); }
.menu::-webkit-scrollbar { display: none; }
.mi { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 14px; font-family: var(--font-d); font-weight: 600; font-size: 16px; color: #dcefeb; }
.mico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); color: var(--mint); }
.grow { flex: 1; min-width: 0; }
.mi .grow { padding-top: 2px; }
.chev { color: #4d6d6c; flex: none; }
.chev.open svg { transform: rotate(180deg); }
.mi.on { background: rgba(63, 231, 192, .1); color: #fff; }
.mi.on .mico { background: var(--mint); color: var(--ink); }
.count { padding: 2px 8px; border-radius: 99px; background: var(--surface-2); font: 700 11.5px/1.5 var(--font-b); color: var(--muted); }
.newdot { padding: 3px 7px; border-radius: 7px; background: var(--coral); color: #fff; font: 800 9px/1 var(--font-b); letter-spacing: .5px; }
.menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }
.lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.lang > span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #cfe6e2; }
.lang > span svg { color: var(--mint); }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px calc(16px + var(--sab)); }
.drawer-foot p { font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* ---------- segmented control ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 36px; border-radius: 11px; font-family: var(--font-d); font-weight: 700; font-size: 14.5px; color: var(--muted); padding: 2px 10px 0; }
.seg button.on { background: var(--mint); color: var(--ink); }
.seg.sm { padding: 3px; border-radius: 12px; background: var(--surface-2); border: 0; }
.seg.sm button { height: 30px; border-radius: 9px; font-size: 13.5px; }

/* ---------- game screen (Memory Match) ---------- */
.game { padding: 14px 16px 0; }
.gstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gstat { padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.gstat span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.gstat b { display: block; margin-top: 2px; font-family: var(--font-d); font-weight: 800; font-size: 22px; line-height: 1.1; }
.gstat.hl b { color: var(--sun); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; perspective: 900px; }
.mcard { display: block; width: 100%; position: relative; aspect-ratio: 1 / 1.2; border-radius: 16px; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.mcard.up, .mcard.done { transform: rotateY(180deg); }
.mface { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mback {
  background:
    radial-gradient(circle at 50% 50%, rgba(63, 231, 192, .2) 0 22%, transparent 23%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .045) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #1d4450, #143039);
  border: 1px solid rgba(63, 231, 192, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.mback svg { opacity: .9; }
.mfront { transform: rotateY(180deg); background: #f3fffb; border: 3px solid #fff; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .6); }
.mfront svg { width: 56%; height: 56%; }
.mcard.up .mfront { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 209, 102, .28), 0 10px 18px -10px rgba(0, 0, 0, .6); }
.mcard.done .mfront { background: #d9fff3; border-color: var(--mint); }
.mfront .ok {
  display: none;
  position: absolute;
  right: -7px;
  top: -7px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052a24' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 0 0 2px var(--bg);
}
.mcard.done .ok { display: block; }
.gprog { margin-top: 18px; }
.gprog-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #cfe6e2; }
.gprog-top b { color: var(--mint); }
.gprog .xp { margin-top: 8px; height: 10px; }
.gactions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.gactions .btn { height: 46px; font-size: 16px; border-radius: 15px; }
.gtip { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(79, 184, 255, .08); border: 1px solid rgba(79, 184, 255, .2); font-size: 12.5px; color: #cfe3f5; display: flex; gap: 10px; align-items: center; }
.gtip svg { color: var(--sky); }
.win { margin-top: 16px; padding: 16px; border-radius: 18px; text-align: center; background: rgba(63, 231, 192, .1); border: 1px solid rgba(63, 231, 192, .35); }
.win h3 { font-size: 21px; color: var(--mint); }
.win p { margin-top: 2px; font-size: 13px; color: #cfe6e2; }

/* ---------- leaderboard ---------- */
.ranks { padding: 14px var(--gut) 0; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; margin-top: 22px; }
.pod { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pod .crown { width: 34px; height: 22px; margin-bottom: 4px; }
.pod .av { --s: 62px; }
.pod.p1 .av { --s: 78px; }
.pod .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c); }
.pod b { margin-top: 10px; font-family: var(--font-d); font-weight: 700; font-size: 16px; line-height: 1.2; }
.pod .pts { margin-top: 1px; font-size: 13px; color: #d8efe9; }
.pod .block {
  width: 100%;
  margin-top: 10px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 34%, #10262e), #10262e 92%);
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--c) 70%, transparent);
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 34px;
  color: var(--c);
}
.pod.p1 { --c: #ffd166; }
.pod.p2 { --c: #cfd9e6; }
.pod.p3 { --c: #f0a36b; }
.pod.p1 .block { height: 104px; font-size: 44px; }
.pod.p2 .block { height: 78px; }
.pod.p3 .block { height: 60px; }
.rlist { padding: 4px 14px; border-radius: 0 0 20px 20px; border-top: 0; }
.you-wrap {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0 calc(-1 * var(--gut)) calc(-108px - var(--sab));
  padding: 14px var(--gut) calc(100px + var(--sab));
  background: linear-gradient(rgba(7, 19, 23, 0), var(--bg) 22px);
}
.you {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #12423e, #123844);
  border: 1px solid rgba(63, 231, 192, .5);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .8);
}
.you .rank { color: var(--mint); width: 34px; }
.up { display: inline-flex; align-items: center; gap: 2px; color: var(--mint); font-weight: 700; }

/* ---------- profile ---------- */
.profile { padding: 14px var(--gut) 0; }
.me { padding: 16px; background:
  radial-gradient(260px 140px at 0% 0%, rgba(63, 231, 192, .18), transparent 70%),
  radial-gradient(240px 160px at 100% 0%, rgba(143, 125, 255, .18), transparent 70%),
  var(--surface); }
.me-top { display: flex; align-items: center; gap: 16px; }
.me-av { position: relative; flex: none; }
.me-av .av { --s: 86px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--ring, var(--mint)); }
.me-av .edit { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: #4a3200; box-shadow: 0 0 0 3px var(--surface); }
.me-info { flex: 1; min-width: 0; }
.me-info h2 { font-size: 26px; }
.me-info .muted { font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { padding: 11px 6px 10px; border-radius: 16px; background: rgba(4, 16, 19, .45); border: 1px solid var(--line); text-align: center; }
.stat svg { margin: 0 auto 4px; }
.stat b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 21px; line-height: 1.1; }
.stat span { font-size: 11px; color: var(--muted); }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; padding: 16px 14px; justify-items: center; }
.av-opt { position: relative; border-radius: 50%; }
.av-opt .av { --s: 64px; }
.av-opt.on .av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--mint); }
.av-opt.on::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052a24' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 3px var(--surface);
}
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: #cfe6e2; }
.medal {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 0 0 4px rgba(255, 255, 255, .16), 0 10px 16px -10px var(--b);
}
.badge.locked { color: #5f7f7e; }
.badge.locked .medal { background: var(--surface-2); color: #5f7f7e; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(112px + var(--sab));
  transform: translate(-50%, 12px);
  max-width: 86vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3fffb;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .7);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.app.immersive .toast { bottom: calc(28px + var(--sab)); }

/* =====================================================================
   Added with the betpayley24 update: pages, forms, pop-ups
   ===================================================================== */
.page { padding: 14px var(--gut) 0; }
.page .streak { margin: 14px 0 0; }
.page .sec { padding: 0; }
.gap { margin-top: 14px; }
.count { padding: 2px 9px; border-radius: 99px; background: var(--surface-2); font: 700 12px/1.6 var(--font-b); color: var(--muted); }
.newdot { flex: none; }
.plus { font-family: var(--font-d); font-weight: 800; font-size: 17px; color: var(--mint); white-space: nowrap; }
.btn.lg { height: 48px; font-size: 16.5px; border-radius: 15px; }
.btn.done { background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: default; }
.sec-head h3.with-ic { display: flex; align-items: center; gap: 7px; }
.sec-head h3.with-ic svg { color: var(--mint); }
button.link { font-family: var(--font-b); }

/* horizontal game rows on the home page */
.hrow { display: flex; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 2px; overflow-x: auto; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .tile { flex: 0 0 104px; }

/* avatar button + unread dot */
.av-btn { position: relative; flex: none; border-radius: 50%; }
.av-btn .dot { position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--bg); }

/* account pop-up under the avatar */
.umenu { position: fixed; z-index: 45; top: 62px; right: max(10px, calc(50% - 230px)); width: 236px; display: none; padding: 8px; border-radius: 18px; background: #11282f; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 44px -14px rgba(0, 0, 0, .85); }
.app.umenu-open .umenu { display: block; }
.umenu-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.umenu-head b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 16px; line-height: 1.2; }
.umenu-head span { font-size: 11.5px; color: var(--muted); }
.umenu > a, .umenu > button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; text-align: left; font-size: 14px; font-weight: 600; color: #dcefeb; }
.umenu > a svg, .umenu > button svg { color: var(--mint); }
html[lang="bn"] .umenu > a, html[lang="bn"] .umenu > button { font-family: var(--font-d); font-size: 15.5px; }

/* floating customer service button */
.fab { position: fixed; z-index: 28; right: max(var(--gut), calc(50% - 224px)); bottom: calc(94px + var(--sab)); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, #6cc8ff, #2f7dff); color: #fff; box-shadow: 0 0 0 4px rgba(7, 19, 23, .55), 0 14px 24px -8px rgba(47, 125, 255, .75); }
.fab i { position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px #0b1c22; }
.app.immersive .fab, .app.no-fab .fab { display: none; }

/* overlays share the dark backdrop */
.app.chat-open .scrim, .app.modal-open .scrim { opacity: 1; pointer-events: auto; }

/* customer service chat */
.sheet { position: fixed; z-index: 55; left: 50%; bottom: 0; width: 100%; max-width: 480px; height: min(72vh, 600px); display: flex; flex-direction: column; background: #0c1e24; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -24px 44px -20px rgba(0, 0, 0, .8); visibility: hidden; transform: translate(-50%, 104%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; }
.app.chat-open .sheet { visibility: visible; transform: translate(-50%, 0); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.agent { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, #6cc8ff, #2f7dff); color: #fff; }
.sheet-head b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.2; }
.sheet-head .grow span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; }
.msg p { padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.msg.bot { align-self: flex-start; }
.msg.bot p { background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.mine { align-self: flex-end; }
.msg.mine p { background: var(--mint); color: var(--ink); font-weight: 500; border-bottom-right-radius: 5px; }
.chat-quick { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid rgba(63, 231, 192, .45); color: var(--mint); font-size: 12.5px; font-weight: 600; }
.chat-form { display: flex; gap: 8px; padding: 10px 14px calc(14px + var(--sab)); border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(4, 16, 19, .55); border: 1px solid var(--line); outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.chat-form input:focus { border-color: var(--mint); }
.chat-form .send { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--ink); }

/* avatar pop-up */
.modal { position: fixed; inset: 0; z-index: 58; display: none; place-items: center; padding: 20px; background: rgba(2, 8, 10, .72); }
.app.modal-open .modal { display: grid; }
.modal-card { position: relative; width: min(100%, 344px); padding: 22px 16px 16px; border-radius: 26px; text-align: center; background: #0f262d; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); }
.modal-card .mx { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 11px; }
.modal-av { display: inline-block; border-radius: 50%; box-shadow: 0 0 0 3px #0f262d, 0 0 0 6px var(--ring, var(--mint)); }
.modal-card h3 { margin-top: 14px; font-size: 21px; }
.modal-card p { margin-top: 2px; font-size: 13px; }
.modal-card .av-grid { padding: 18px 0 20px; gap: 14px 6px; }
.modal-card .av-opt .av { --s: 60px; }
.modal-card .av-opt.on .av { box-shadow: 0 0 0 3px #0f262d, 0 0 0 6px var(--mint); }
.modal-card .av-opt.on::after { box-shadow: 0 0 0 3px #0f262d; }

/* side menu extras */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 4px 8px; }
.qbtn { height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 14px; font-family: var(--font-d); font-weight: 700; font-size: 15px; white-space: nowrap; }
.qbtn.play { background: linear-gradient(160deg, #6ff5d6, #1fc7a0); color: var(--ink); }
.qbtn.gift { background: linear-gradient(160deg, #ffe08a, #ffb347); color: #4a3200; }
.sub { display: grid; gap: 1px; margin: 0 0 4px 62px; padding-left: 10px; border-left: 1px solid var(--line); }
.subi { display: block; width: 100%; padding: 7px 10px; border-radius: 10px; text-align: left; font-size: 14px; font-weight: 500; color: #bcd6d2; }
html[lang="bn"] .subi { font-family: var(--font-d); font-size: 15.5px; }
.who.guest { padding: 4px 0 2px; }
.guest-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* list cards (member, security, history, friends) */
.lcard { margin-top: 14px; padding: 4px 8px; }
.lcard.pad { padding: 4px 14px; }
.li { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--line); font-family: var(--font-d); font-weight: 600; font-size: 16px; line-height: 1.25; color: #e3f3ef; }
.li:last-child { border-bottom: 0; }
.li small { display: block; font-family: var(--font-b); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.chip-txt { padding: 4px 10px; border-radius: 99px; background: rgba(63, 231, 192, .14); color: var(--mint); font: 700 12px/1.3 var(--font-b); }
.hday { margin: 18px 2px 0; font: 700 11.5px/1 var(--font-b); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.hday + .lcard { margin-top: 8px; }

/* points summary */
.ptsum { padding: 16px; background: radial-gradient(260px 140px at 0% 0%, rgba(63, 231, 192, .18), transparent 70%), radial-gradient(240px 160px at 100% 0%, rgba(255, 209, 102, .14), transparent 70%), var(--surface); }
.ptsum-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ptsum-top .muted { display: block; font-size: 12.5px; }
.ptsum-top b { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 800; font-size: 34px; line-height: 1.1; }
.ptsum-top .week { text-align: right; }
.ptsum-top .week b { justify-content: flex-end; font-size: 26px; }

/* missions and badges */
.missions { padding: 2px 14px; }
.mission { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mission:last-child { border-bottom: 0; }
.mission b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mission .bar { height: 6px; margin-top: 7px; border-radius: 99px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.mission .bar i { display: block; height: 100%; border-radius: 99px; background: var(--mint); }
.mission small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.badges-card { padding: 16px 8px; }
.badges-card .badges { gap: 16px 6px; }

/* share with friends */
.invite-hero { position: relative; min-height: 158px; padding: 18px; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #b9a8ff 0%, #ff8fb1 100%); color: #2a1458; }
.invite-hero::before { content: ""; position: absolute; right: -60px; top: -70px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.invite-hero > * { position: relative; }
.invite-hero h2 { max-width: 60%; margin: 9px 0 6px; font-size: 25px; }
.invite-hero p { max-width: 60%; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.duo { position: absolute !important; right: 14px; bottom: 18px; display: flex; }
.duo .av { --s: 68px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .75); }
.duo .av + .av { margin: 28px 0 0 -18px; }
.inv { margin-top: 14px; padding: 14px; }
.lbl { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; margin-bottom: 12px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(4, 16, 19, .5); border: 1px dashed rgba(63, 231, 192, .42); }
.codebox b { padding-top: 3px; font-family: var(--font-d); font-weight: 800; font-size: 23px; letter-spacing: 2.5px; color: var(--mint); }
.codebox span { min-width: 0; font-size: 13px; color: #cfe6e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.step { padding: 12px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: #cfe6e2; }
.step i { width: 26px; height: 26px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); font: 800 14px/1 var(--font-d); padding-top: 2px; }

/* member page */
.me-av { display: block; }

/* mail */
.count-note { margin: 14px 2px 10px; font-size: 12.5px; color: var(--muted); }
.count-note.first { margin-top: 2px; }
.mailitem { display: block; width: 100%; margin-top: 10px; padding: 12px 12px 12px 10px; border-radius: 18px; text-align: left; background: var(--surface); border: 1px solid var(--line); }
.mailitem.unread { border-color: rgba(63, 231, 192, .38); background: linear-gradient(135deg, rgba(63, 231, 192, .1), transparent 60%), var(--surface); }
.mail-top { display: flex; align-items: center; gap: 12px; }
.mail-top b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.mail-top small { font-size: 11.5px; color: var(--muted); }
.mailitem > p { margin: 10px 4px 2px 48px; font-size: 13px; line-height: 1.5; color: #cfe6e2; }
.udot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--coral); }

/* security centre and help */
.shield-card, .contact { display: flex; align-items: center; gap: 14px; padding: 16px; }
.contact { margin-top: 14px; }
.shield { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 18px; background: rgba(63, 231, 192, .14); color: var(--mint); }
.shield-card b, .contact b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 17px; line-height: 1.25; }
.shield-card small, .contact small { display: block; font-size: 12px; color: var(--muted); }
.bar3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 8px 0 7px; }
.bar3 i { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.bar3 i.on { background: var(--mint); }
.passform { padding: 0 6px 14px; border-bottom: 1px solid var(--line); }
.faq { padding: 2px 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 14px; font-size: 13px; line-height: 1.55; color: #cfe6e2; }

/* search. Text boxes are 16px: with smaller text an iPhone zooms the page in when a box is tapped */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search:focus-within { border-color: var(--mint); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.search input::placeholder, .input input::placeholder, .chat-form input::placeholder { color: #5f7f7e; }
.search input::-webkit-search-cancel-button { display: none; }
.chips.flush { margin: 14px calc(-1 * var(--gut)) 0; }

/* forms */
.field { display: block; margin-top: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #cfe6e2; }
.input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: 14px; background: rgba(4, 16, 19, .5); border: 1px solid var(--line); color: var(--muted); }
.input:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(63, 231, 192, .15); }
.input select { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.input select option { background: #0b1a1d; color: var(--text); }
.input input[type="date"] { color-scheme: dark; }
.input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.peek { color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cfe6e2; }
.check input { width: 18px; height: 18px; accent-color: #3fe7c0; }

/* log in and sign up */
.auth { min-height: calc(100vh - var(--sat) - var(--sab)); min-height: calc(100dvh - var(--sat) - var(--sab)); display: flex; flex-direction: column; padding: 12px 20px 22px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-top .brand { margin: 0; }
.auth-top .spacer { width: 40px; }
.auth-faces { display: flex; justify-content: center; margin-top: 26px; }
.auth-faces .av { --s: 54px; margin-left: -10px; box-shadow: 0 0 0 3px var(--bg); }
.auth-faces .av:first-child { margin-left: 0; }
.auth-faces .av:nth-child(3) { --s: 68px; margin-top: -7px; z-index: 1; }
.auth h1 { margin-top: 20px; text-align: center; font-size: 28px; }
.auth .lead { margin-top: 4px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-card { margin-top: 18px; padding: 4px 16px 18px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 16px; }
.auth-alt { margin: 16px 0 12px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-alt .link { font-size: 14px; }
.demo-note { margin-top: auto; padding-top: 16px; text-align: center; font-size: 11.5px; line-height: 1.45; color: #6f9190; }

/* footer links */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.foot-links a { font-size: 12.5px; font-weight: 600; color: #cfe6e2; }
html[lang="bn"] .foot-links a { font-family: var(--font-d); font-size: 14px; }

/* =====================================================================
   VIP levels, game history, events and the latest high scores
   ===================================================================== */
/* level badge: the same Latin "VIP 2" in both languages */
.vtag { flex: none; display: inline-block; padding: 3px 7px 2px; border-radius: 7px; background: linear-gradient(150deg, var(--a), var(--b)); color: #1c1407; font: 800 10.5px/1.2 var(--font-b); letter-spacing: .3px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.av-btn .vtag { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 2px 5px 1px; border-radius: 6px; font-size: 8.5px; box-shadow: 0 0 0 2px var(--bg); }
.drawer-head h2 .vtag { margin-top: -2px; }
.vmedal { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #2a1d06; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 0 0 4px rgba(255, 255, 255, .22), 0 10px 16px -10px var(--b); }
.vmedal.lg { width: 68px; height: 68px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 0 0 5px rgba(255, 255, 255, .22), 0 14px 22px -12px var(--b); }
.xp-note a { color: #cfe6e2; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(207, 230, 226, .4); text-underline-offset: 2px; }
.me-tier { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: #d8efe9; }
.me-tier svg { color: var(--muted); margin-left: -3px; }
html[lang="bn"] .me-tier { font-family: var(--font-d); font-size: 15px; }
html[lang="bn"] .li small { font-family: var(--font-d); font-size: 13px; }

/* VIP levels page */
.vip-hero { padding: 16px; background:
  radial-gradient(260px 150px at 0% 0%, color-mix(in srgb, var(--b) 34%, transparent), transparent 70%),
  radial-gradient(240px 160px at 100% 0%, rgba(143, 125, 255, .16), transparent 70%),
  var(--surface); }
.vip-now { display: flex; align-items: center; gap: 14px; }
.vip-now .muted { font-size: 12.5px; }
.vip-now h2 { display: flex; align-items: center; gap: 9px; margin-top: 1px; font-size: 28px; }
html[lang="bn"] .vip-now .muted { font-family: var(--font-d); font-size: 14px; }
.fine { display: flex; gap: 8px; margin: 12px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.fine svg { color: var(--mint); margin-top: 1px; }
html[lang="bn"] .fine { font-family: var(--font-d); font-size: 14px; }
.tiers { list-style: none; display: grid; gap: 10px; }
.tier { display: flex; gap: 12px; padding: 13px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.tier.here { border-color: rgba(63, 231, 192, .55); background: linear-gradient(135deg, rgba(63, 231, 192, .11), transparent 62%), var(--surface); }
.tier.locked .vmedal { opacity: .5; }
.tier-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.tier-top b { font-family: var(--font-d); font-weight: 700; font-size: 17.5px; line-height: 1.2; }
.tier-st { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tier.done .tier-st { color: var(--mint); }
.tier.here .tier-st { padding: 3px 9px; border-radius: 99px; background: var(--mint); color: var(--ink); }
.tier small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.perks { list-style: none; display: grid; gap: 5px; margin-top: 9px; }
.perks li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.35; color: #cfe6e2; }
.perks svg { color: var(--mint); margin-top: 2px; }
.tier.locked .perks li { color: var(--muted); }
.tier.locked .perks svg { color: #5f7f7e; }
html[lang="bn"] .tier-st, html[lang="bn"] .tier small, html[lang="bn"] .perks li { font-family: var(--font-d); font-size: 13.5px; }

/* game history */
.art.mini { width: 46px; flex: none; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.art.mini::after { border-width: 4px; }
.gsum { padding: 12px; }
.gsum .stats { margin-top: 0; }
.gsum .stat svg { color: var(--mint); }
.gsum .stat span { display: block; line-height: 1.25; }
.play .pname span, .score .pname span { display: block; }
.play .pname span + span { margin-top: 2px; }
.res { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 99px; font: 700 10.5px/1.6 var(--font-b); font-style: normal; }
.res.r-win { background: rgba(63, 231, 192, .16); color: var(--mint); }
.res.r-best { background: rgba(255, 209, 102, .16); color: var(--sun); }
.res.r-done { background: rgba(255, 255, 255, .08); color: #b9d2ce; }
html[lang="bn"] .res { font: 700 12px/1.5 var(--font-d); }
html[lang="bn"] .hday { font: 700 13.5px/1 var(--font-d); letter-spacing: 0; }
html[lang="bn"] .stat span { font-family: var(--font-d); font-size: 12.5px; }
.win .bonus { margin-top: 6px; font-weight: 700; color: var(--sun); }

/* bonus point events */
.lead { margin: 2px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
html[lang="bn"] .lead { font-family: var(--font-d); font-size: 15px; }
.ev { margin-top: 14px; overflow: hidden; }
.ev-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 108px; padding: 14px 16px; overflow: hidden; }
.ev-top::before { content: ""; position: absolute; right: -46px; top: -64px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.ev-top > * { position: relative; }
.ev-top.hero-a { color: var(--ink); }
.ev-top .eyebrow { text-transform: uppercase; }
.ev-top h3 { margin-top: 8px; font-size: 22px; text-wrap: balance; }
.ev-boost { flex: none; min-width: 82px; padding: 9px 10px 8px; border-radius: 18px; background: rgba(255, 255, 255, .42); text-align: center; }
.ev-boost b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 31px; line-height: 1; white-space: nowrap; }
.ev-boost span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
html[lang="bn"] .ev-boost b { font-size: 25px; line-height: 1.25; }
html[lang="bn"] .ev-boost span { font-family: var(--font-d); font-size: 13px; letter-spacing: 0; }
.ev-body { padding: 14px 16px 16px; }
.ev-st { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; }
.spill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font: 700 12px/1.7 var(--font-b); }
.spill.live { background: rgba(74, 222, 128, .16); color: #7cecab; }
.spill.live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: live 1.6s ease-in-out infinite; }
.spill.soon { background: rgba(79, 184, 255, .15); color: #9ad6ff; }
.spill.open { background: rgba(255, 209, 102, .16); color: var(--sun); }
.spill.got { background: rgba(255, 255, 255, .08); color: #b9d2ce; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); opacity: .55; } 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); opacity: 1; } }
html[lang="bn"] .spill, html[lang="bn"] .ev-st { font-family: var(--font-d); font-size: 13.5px; }
.ev-body > p { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: #cfe6e2; }
.ev details { margin-top: 12px; border-top: 1px solid var(--line); }
.ev summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 10px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.ev summary::-webkit-details-marker { display: none; }
.ev summary svg { color: var(--muted); transition: transform .2s; }
.ev details[open] summary svg { transform: rotate(180deg); }
.ev details ol { display: grid; gap: 6px; margin: 0 0 4px 18px; font-size: 13px; line-height: 1.5; color: #cfe6e2; }
.ev .btn { margin-top: 12px; }
html[lang="bn"] .ev-body > p, html[lang="bn"] .ev summary, html[lang="bn"] .ev details ol { font-family: var(--font-d); font-size: 15px; }
.newdot.live { background: #15803d; }
.subi.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* latest high scores on the home page: the list moves up by itself */
.sec-head.mid { justify-content: center; }
.sec-head.mid h3, .sec-head.mid h3 svg { color: var(--sun); }
.scores { padding: 0 12px; overflow: hidden; }
.scores-view { --row: 71px; height: calc(var(--row) * 4); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.scores-track { animation: scores var(--dur, 36s) linear infinite; will-change: transform; }
.score { display: flex; align-items: center; gap: 11px; height: var(--row); border-bottom: 1px solid var(--line); }
.score .art.mini { width: 50px; border-radius: 15px; }
.score .pname b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score .pname .sc { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 700; color: var(--sun); }
.score .btn { min-width: 62px; box-shadow: none; }
@keyframes scores { to { transform: translateY(-50%); } }
@media (hover: hover) { .scores-view:hover .scores-track { animation-play-state: paused; } }
.scores-view.hold .scores-track { animation-play-state: paused; }
/* four scores or fewer fit the box, so the list stands still */
.scores-view.still { height: auto; -webkit-mask-image: none; mask-image: none; }
.scores-view.still .scores-track { animation: none; }
.scores-view.still .score:last-child { border-bottom: 0; }

/* ---------- a game played from its link ---------- */
.app.immersive .subbar h1 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.playing main { display: flex; flex-direction: column; min-height: calc(100vh - var(--sat) - var(--sab)); min-height: calc(100dvh - var(--sat) - var(--sab)); padding-bottom: 0; }
.player { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.player-frame { flex: 1; display: block; width: 100%; min-height: 320px; border: 0; background: #000; }
.player.full { position: fixed; inset: 0; z-index: 35; background: #071317; }
.player.full .player-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.player-note { padding: 9px var(--gut) 11px; text-align: center; font-size: 13px; color: var(--muted); }
.player-note a { color: var(--mint); font-weight: 700; }
.open-card { display: grid; justify-items: center; gap: 10px; margin-top: 8px; padding: 28px 18px 20px; text-align: center; }
.open-card .art { width: 132px; }
.open-card h2 { max-width: 100%; margin-top: 6px; font-size: 22px; overflow-wrap: anywhere; }
.open-card .btn { margin-top: 8px; }
.open-card .demo-note { margin-top: 0; padding-top: 6px; font-size: 12.5px; color: var(--muted); }
html[lang="bn"] .player-note, html[lang="bn"] .open-card > p { font-family: var(--font-d); font-size: 14px; }
html[lang="bn"] .open-card .demo-note { font-size: 13.5px; }
/* with the keyboard the list stands still and can be scrolled, so the button in focus stays in view */
.scores-view:has(:focus-visible) { overflow-y: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
.scores-view:has(:focus-visible) .scores-track { animation: none; }

/* =====================================================================
   Bangla on the inner pages. Bangla letters need a little more size than
   Latin ones to read as easily, so the small text steps up and uses the
   display font, which has the Bangla letters.
   ===================================================================== */
html[lang="bn"] .days li { font-family: var(--font-d); font-size: 12px; }
html[lang="bn"] .xp-note { font-family: var(--font-d); font-size: 12.5px; }
html[lang="bn"] .gstat span,
html[lang="bn"] .mission small,
html[lang="bn"] .badge,
html[lang="bn"] .step,
html[lang="bn"] .mail-top small,
html[lang="bn"] .umenu-head span,
html[lang="bn"] .drawer-foot p,
html[lang="bn"] .demo-note,
html[lang="bn"] .count { font-family: var(--font-d); font-size: 13px; }
html[lang="bn"] .streak-head p,
html[lang="bn"] .sheet-head .grow span,
html[lang="bn"] .foot p,
html[lang="bn"] .chip-txt { font-family: var(--font-d); font-size: 13.5px; }
html[lang="bn"] .ptsum-top .muted,
html[lang="bn"] .lbl,
html[lang="bn"] .count-note,
html[lang="bn"] .shield-card small,
html[lang="bn"] .contact small,
html[lang="bn"] .gtip,
html[lang="bn"] .chat-quick button,
html[lang="bn"] .invite-hero p,
html[lang="bn"] .field > span,
html[lang="bn"] .link { font-family: var(--font-d); font-size: 14px; }
html[lang="bn"] .gprog-top,
html[lang="bn"] .win p,
html[lang="bn"] .modal-card p,
html[lang="bn"] .mailitem > p,
html[lang="bn"] .faq details p,
html[lang="bn"] .check,
html[lang="bn"] .empty,
html[lang="bn"] .toast { font-family: var(--font-d); font-size: 14.5px; }
html[lang="bn"] .msg p,
html[lang="bn"] .auth-alt,
html[lang="bn"] .auth-alt .link,
html[lang="bn"] .lang > span { font-family: var(--font-d); font-size: 15px; }
html[lang="bn"] .mission b,
html[lang="bn"] .faq summary { font-family: var(--font-d); font-size: 15.5px; }
html[lang="bn"] .newdot { font: 700 11.5px/1.25 var(--font-d); letter-spacing: 0; }
html[lang="bn"] .search input,
html[lang="bn"] .input input,
html[lang="bn"] .chat-form input { font-family: var(--font-d); }
html[lang="bn"] .invite-hero h2 { font-size: 22px; }

/* narrow phones: the top bar and the two buttons at the top of the side menu stay on one line */
.brand { white-space: nowrap; }
@media (max-width: 350px) {
  .topbar { gap: 8px; }
  .topbar .brand { gap: 6px; font-size: 20px; }
  .topbar .logo { width: 30px; height: 30px; }
  .topbar .pill { padding: 0 10px 0 8px; gap: 5px; font-size: 13.5px; }
  .qbtn { gap: 5px; font-size: 13.5px; }
  .qbtn svg { width: 15px; height: 15px; }
}

/* ---------- keyboard focus and reduced motion ---------- */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.input input:focus-visible, .search input:focus-visible, .chat-form input:focus-visible { outline: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* the news line stands still and can be moved by hand */
  .news-view { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .news-view::-webkit-scrollbar { display: none; }
  .news-track { animation: none; }
  .news-run[aria-hidden] { display: none; }
  /* the high score list stands still as well */
  .scores-view { overflow-y: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .scores-view::-webkit-scrollbar { display: none; }
  .scores-track { animation: none; }
  .scores-run[aria-hidden] { display: none; }
}

/* ----- Wallet entry point (header pill and home card) ----- */
.wallet-img { width: 28px; height: 28px; border-radius: 50%; flex: none; display: block; }
.topbar .wallet-pill { padding-left: 4px; }
.wallet-card { display: flex; align-items: center; gap: 14px; margin: 14px 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--text); text-decoration: none; }
.wallet-card:hover, .wallet-card:focus-visible { border-color: var(--mint); }
.wallet-card img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.wallet-card > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.wallet-card strong { font-size: 16px; }
.wallet-card .muted { font-size: 13px; }
.wallet-go { font-size: 26px; line-height: 1; color: var(--mint); }

/* ---------- wallet balance on the profile: real money, kept apart from points ---------- */
.bal { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(4, 16, 19, .45); border: 1px solid rgba(63, 231, 192, .28); }
.bal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text); text-decoration: none; }
.bal-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bal-label img { border-radius: 50%; }
.bal-amt { display: block; margin-top: 2px; font-family: var(--font-b); font-weight: 700; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bal-acts { display: flex; gap: 8px; }
.bal-acts .btn { text-decoration: none; }
.bal-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
.bal-out span:last-child { font-weight: 600; color: var(--mint); }
.bal-fail { font-size: 13px; color: var(--coral); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--mint); text-decoration: underline; cursor: pointer; }
@media (max-width: 380px) { .bal-acts { flex: 1 1 100%; } .bal-acts .btn { flex: 1; } }

/* ---------- wallet tab, start-up and the offline notice ---------- */
.tab-wallet { width: 24px; height: 24px; border-radius: 50%; }
.mico img, .umenu a img { border-radius: 50%; }
.app.starting #main, .app.starting #tabbar { visibility: hidden; }
.offline { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: calc(24px + var(--sat)) var(--gut) calc(24px + var(--sab)); background: rgba(4, 12, 15, .94); backdrop-filter: blur(6px); }
.offline[hidden] { display: none; }
.off-card { width: min(380px, 100%); padding: 26px 20px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.off-ic { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 12px; border-radius: 50%; background: rgba(255, 111, 111, .14); color: var(--coral); }
.off-card h2 { font-size: 22px; margin-bottom: 8px; }
.off-card p { margin-bottom: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.app.is-offline { overflow: hidden; }
.tabbar { grid-template-columns: repeat(4, 1fr); }

/* reality check reminder */
.rc-box { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(2, 8, 10, .72); }
.rc-card { max-width: 380px; width: 100%; display: grid; gap: 10px; padding: 22px; text-align: center; }
.rc-card h2 { margin: 0; }
.rc-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
