/* ============================================================
   bed jelly - mobile surface stylesheet
   Class prefix : frame79bde-
   Canvas       : 320-430px phone layout, centered on wide screens
   Palette      : #E65100 / #FFB74D / #E5E5E5 / #2C3E50 (dark base)
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --frame79bde-ink: #2C3E50;
  --frame79bde-ink-deep: #22303f;
  --frame79bde-ink-soft: #354b60;
  --frame79bde-ember: #E65100;
  --frame79bde-ember-hi: #ff8a2b;
  --frame79bde-amber: #FFB74D;
  --frame79bde-mist: #E5E5E5;
  --frame79bde-mist-dim: #c3ccd6;
  --frame79bde-line: rgba(229, 229, 229, 0.16);
  --frame79bde-radius: 6px;
  --frame79bde-topbar-h: 56px;
  --frame79bde-bnav-h: 62px;
  --frame79bde-tap: 44px;
  --frame79bde-font-body: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #17222d;
  color: var(--frame79bde-mist);
  font-family: var(--frame79bde-font-body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: var(--frame79bde-amber);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
}

p {
  margin: 0 0 10px;
}

ul, ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

:focus-visible {
  outline: 2px solid var(--frame79bde-amber);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- centered phone canvas ---------- */
.frame79bde-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #2C3E50 0%, #26374a 55%, #22303f 100%);
  box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.08);
  overflow-x: hidden;
}

/* ---------- fixed compact brand bar ---------- */
.frame79bde-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--frame79bde-topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(34, 48, 63, 0.97);
  border-bottom: 2px solid var(--frame79bde-ember);
  z-index: 60;
}

/* brand area: logo image + site name only */
.frame79bde-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.frame79bde-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--frame79bde-amber);
  object-fit: cover;
  flex: 0 0 auto;
  background: #1a2530;
}

.frame79bde-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--frame79bde-mist);
  white-space: nowrap;
}

.frame79bde-brand-name em {
  font-style: normal;
  color: var(--frame79bde-amber);
}

/* top action area: register / login / menu toggle */
.frame79bde-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.frame79bde-btn-register {
  min-height: var(--frame79bde-tap);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--frame79bde-ember-hi), var(--frame79bde-ember));
  border: none;
  border-radius: var(--frame79bde-radius);
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.35);
}

.frame79bde-btn-login {
  min-height: var(--frame79bde-tap);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--frame79bde-amber);
  background: transparent;
  border: 1px solid var(--frame79bde-amber);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-btn-register:active,
.frame79bde-btn-login:active {
  box-shadow: 0 0 10px rgba(255, 183, 77, 0.55);
  transform: translateY(1px);
}

.frame79bde-menu-btn {
  width: var(--frame79bde-tap);
  height: var(--frame79bde-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--frame79bde-line);
  border-radius: var(--frame79bde-radius);
  color: var(--frame79bde-mist);
  font-size: 18px;
  line-height: 1;
}

/* ---------- compact route panel ---------- */
.frame79bde-menu {
  position: fixed;
  top: var(--frame79bde-topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #1d2a38;
  border-bottom: 2px solid var(--frame79bde-ember);
  z-index: 55;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.frame79bde-menu.is-open {
  max-height: 460px;
  overflow-y: auto;
}

.frame79bde-menu-group {
  padding: 10px 14px 4px;
}

.frame79bde-menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--frame79bde-amber);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.frame79bde-menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.frame79bde-menu-links a {
  display: flex;
  align-items: center;
  min-height: var(--frame79bde-tap);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--frame79bde-mist);
  background: rgba(53, 75, 96, 0.5);
  border: 1px solid var(--frame79bde-line);
  border-left: 3px solid var(--frame79bde-ember);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-menu-links a:hover,
.frame79bde-menu-links a:focus-visible {
  background: rgba(230, 81, 0, 0.22);
  text-decoration: none;
}

/* ---------- main flow ---------- */
.frame79bde-main {
  padding: calc(var(--frame79bde-topbar-h) + 14px) 12px calc(var(--frame79bde-bnav-h) + 24px);
}

/* ---------- hero ---------- */
.frame79bde-hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 4px 10px;
  border-bottom: 1px solid var(--frame79bde-line);
}

.frame79bde-kicker {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1c1206;
  background: var(--frame79bde-amber);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.frame79bde-hero h1 {
  font-size: 21px;
  color: #fff;
}

.frame79bde-hero-lead {
  color: var(--frame79bde-mist-dim);
  font-size: 13.5px;
}

/* quick gauge chips */
.frame79bde-gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.frame79bde-gauge {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--frame79bde-mist);
  background: rgba(53, 75, 96, 0.45);
  border: 1px solid var(--frame79bde-line);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-gauge b {
  color: var(--frame79bde-amber);
}

/* ---------- promo banner carousel ---------- */
.frame79bde-carousel {
  position: relative;
  margin: 14px 0 4px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--frame79bde-line);
}

.frame79bde-ctrack {
  display: flex;
  transition: transform 0.38s ease;
}

.frame79bde-cslide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #1a2530;
}

.frame79bde-cslide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.frame79bde-cdots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.frame79bde-cdot {
  width: 26px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border-radius: 4px;
  border: none;
  background: rgba(229, 229, 229, 0.45);
}

.frame79bde-cdot.is-on {
  background: var(--frame79bde-amber);
  box-shadow: 0 0 8px rgba(255, 183, 77, 0.7);
}

/* ---------- game sections (grouped cover tiles) ---------- */
.frame79bde-gsec {
  margin-top: 18px;
  border: 1px solid var(--frame79bde-line);
  border-radius: 8px;
  background: rgba(34, 48, 63, 0.6);
  overflow: hidden;
}

.frame79bde-gsec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(90deg, rgba(230, 81, 0, 0.35), rgba(53, 75, 96, 0.25));
  border-bottom: 1px solid var(--frame79bde-line);
}

.frame79bde-gsec-head h2 {
  font-size: 15.5px;
  color: #fff;
  margin: 0;
}

.frame79bde-gcount {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #1c1206;
  background: var(--frame79bde-amber);
  border-radius: 10px;
  padding: 2px 9px;
}

.frame79bde-gintro {
  margin: 0;
  padding: 9px 12px 0;
  font-size: 12.5px;
  color: var(--frame79bde-mist-dim);
}

.frame79bde-ggrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
  padding: 10px 10px 12px;
}

.frame79bde-gtile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: #1d2a38;
  border: 1px solid var(--frame79bde-line);
  border-radius: var(--frame79bde-radius);
  overflow: hidden;
  min-height: var(--frame79bde-tap);
  text-align: center;
}

.frame79bde-gtile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.frame79bde-gtile span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
  padding: 3px 4px 4px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--frame79bde-mist);
}

.frame79bde-gtile:active {
  border-color: var(--frame79bde-amber);
  box-shadow: 0 0 10px rgba(255, 183, 77, 0.45);
}

/* wider phones get a 5th column */
@media (min-width: 400px) {
  .frame79bde-ggrid {
    grid-template-columns: repeat(5, 1fr);
  }

  .frame79bde-gtile span {
    font-size: 11px;
  }
}

/* ---------- content modules ---------- */
.frame79bde-mod {
  margin-top: 18px;
  padding: 14px 12px;
  background: rgba(53, 75, 96, 0.28);
  border: 1px solid var(--frame79bde-line);
  border-radius: 8px;
}

.frame79bde-mod > h2 {
  font-size: 16px;
  color: var(--frame79bde-amber);
  border-left: 4px solid var(--frame79bde-ember);
  padding-left: 9px;
}

.frame79bde-mod h3 {
  font-size: 14px;
  color: #fff;
}

.frame79bde-mod p {
  font-size: 13.5px;
  color: var(--frame79bde-mist);
}

.frame79bde-note {
  font-size: 12.5px;
  color: var(--frame79bde-mist-dim);
}

/* two-column highlight cards */
.frame79bde-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 4px;
}

.frame79bde-card {
  padding: 9px 10px;
  background: #1d2a38;
  border: 1px solid var(--frame79bde-line);
  border-top: 3px solid var(--frame79bde-ember);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-card h3 {
  font-size: 13px;
  margin: 0 0 4px;
  color: var(--frame79bde-amber);
}

.frame79bde-card p {
  margin: 0;
  font-size: 12px;
  color: var(--frame79bde-mist-dim);
  line-height: 1.6;
}

/* pros vs limits */
.frame79bde-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.frame79bde-splitcol {
  padding: 10px 11px;
  border-radius: var(--frame79bde-radius);
  border: 1px solid var(--frame79bde-line);
  background: #1d2a38;
}

.frame79bde-splitcol h3 {
  margin: 0 0 6px;
  font-size: 13.5px;
}

.frame79bde-splitcol.is-plus h3 {
  color: #ffd28f;
}

.frame79bde-splitcol.is-minus h3 {
  color: var(--frame79bde-mist-dim);
}

.frame79bde-splitcol ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--frame79bde-mist);
}

@media (min-width: 380px) {
  .frame79bde-split {
    grid-template-columns: 1fr 1fr;
  }
}

/* numbered steps */
.frame79bde-steps {
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: frame79bde-step;
}

.frame79bde-steps li {
  counter-increment: frame79bde-step;
  position: relative;
  padding: 8px 10px 8px 38px;
  margin-bottom: 7px;
  font-size: 13px;
  background: #1d2a38;
  border: 1px solid var(--frame79bde-line);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-steps li::before {
  content: counter(frame79bde-step);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #1c1206;
  background: var(--frame79bde-amber);
  border-radius: 50%;
}

/* scenario branch cards */
.frame79bde-scenes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.frame79bde-scene {
  padding: 10px 11px;
  background: #1d2a38;
  border: 1px solid var(--frame79bde-line);
  border-left: 4px solid var(--frame79bde-amber);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-scene h3 {
  margin: 0 0 5px;
  font-size: 13.5px;
  color: #fff;
}

.frame79bde-scene p {
  margin: 0;
  font-size: 12.5px;
  color: var(--frame79bde-mist-dim);
}

.frame79bde-scene p b {
  color: var(--frame79bde-amber);
  font-weight: 700;
}

/* question blocks */
.frame79bde-qa {
  margin-top: 10px;
  padding: 10px 11px;
  background: #1d2a38;
  border: 1px solid var(--frame79bde-line);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-qa h3 {
  margin: 0 0 5px;
  font-size: 13.5px;
  color: var(--frame79bde-amber);
}

.frame79bde-qa p {
  margin: 0;
  font-size: 12.5px;
  color: var(--frame79bde-mist-dim);
}

/* ---------- full width CTA ---------- */
.frame79bde-cta {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(180deg, var(--frame79bde-ember-hi), var(--frame79bde-ember) 70%, #c24300);
  border: none;
  border-radius: var(--frame79bde-radius);
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.4);
}

.frame79bde-cta:active {
  box-shadow: 0 0 14px rgba(255, 183, 77, 0.65);
  transform: translateY(1px);
}

.frame79bde-cta-line {
  display: inline-block;
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--frame79bde-amber);
  background: none;
  border: none;
  padding: 4px 2px;
  min-height: var(--frame79bde-tap);
}

.frame79bde-cta-line:hover {
  text-decoration: underline;
}

/* ---------- extended footer (home only) ---------- */
.frame79bde-xfoot {
  margin-top: 22px;
  padding: 14px 12px 16px;
  background: #1d2a38;
  border-top: 3px solid var(--frame79bde-ember);
  border-radius: 8px 8px 0 0;
}

.frame79bde-xfoot-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--frame79bde-amber);
  margin: 0 0 8px;
}

.frame79bde-xpromos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 14px;
}

.frame79bde-xpromo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--frame79bde-tap);
  padding: 8px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--frame79bde-ember-hi), var(--frame79bde-ember));
  border: none;
  border-radius: var(--frame79bde-radius);
}

.frame79bde-xpromo.is-wide {
  grid-column: 1 / -1;
}

.frame79bde-xpromo:active {
  box-shadow: 0 0 10px rgba(255, 183, 77, 0.5);
}

.frame79bde-xbrand {
  font-size: 12.5px;
  color: var(--frame79bde-mist-dim);
  border-top: 1px solid var(--frame79bde-line);
  padding-top: 12px;
  margin-bottom: 12px;
}

/* two column page directory */
.frame79bde-xdir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-top: 1px solid var(--frame79bde-line);
  padding-top: 12px;
}

.frame79bde-xdir a {
  display: block;
  min-height: 42px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--frame79bde-mist);
  background: rgba(53, 75, 96, 0.4);
  border: 1px solid var(--frame79bde-line);
  border-radius: var(--frame79bde-radius);
}

.frame79bde-xdir a:hover,
.frame79bde-xdir a:focus-visible {
  border-color: var(--frame79bde-amber);
  text-decoration: none;
}

.frame79bde-xdir a b {
  color: var(--frame79bde-amber);
}

/* short factual disclaimer */
.frame79bde-xnote {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--frame79bde-line);
  font-size: 11.5px;
  color: var(--frame79bde-mist-dim);
}

/* ---------- copyright foot ---------- */
.frame79bde-foot {
  padding: 12px 14px 8px;
  text-align: center;
  font-size: 11.5px;
  color: var(--frame79bde-mist-dim);
  background: #1a2530;
}

/* ---------- fixed bottom brand band nav ---------- */
.frame79bde-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--frame79bde-bnav-h);
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #243447, #1a2530);
  border-top: 3px solid var(--frame79bde-ember);
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.frame79bde-bnav-item {
  position: relative;
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--frame79bde-tap);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--frame79bde-mist-dim);
  background: none;
  border: none;
  text-decoration: none;
  padding: 4px 2px 6px;
}

.frame79bde-bnav-item svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* sliding underline marker for active state */
.frame79bde-bnav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--frame79bde-amber);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.frame79bde-bnav-item.is-active {
  color: var(--frame79bde-amber);
}

.frame79bde-bnav-item.is-active::after {
  width: 26px;
  box-shadow: 0 0 8px rgba(255, 183, 77, 0.8);
}

.frame79bde-bnav-item:hover,
.frame79bde-bnav-item:focus-visible {
  color: var(--frame79bde-amber);
  text-decoration: none;
}

.frame79bde-bnav-item:active svg {
  filter: drop-shadow(0 0 6px rgba(255, 183, 77, 0.8));
}

.frame79bde-bnav-item.is-promo {
  color: #ffd9a3;
}

/* ---------- small screens fine tuning ---------- */
@media (max-width: 359px) {
  .frame79bde-hero {
    min-height: 430px;
  }

  .frame79bde-brand-name {
    font-size: 15px;
  }

  .frame79bde-btn-register,
  .frame79bde-btn-login {
    padding: 0 8px;
    font-size: 12px;
  }

  .frame79bde-gtile span {
    font-size: 10px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .frame79bde-ctrack,
  .frame79bde-bnav-item::after,
  .frame79bde-menu {
    transition: none;
  }
}
