/* ==========================================================================
   bj login - mobile-first interface stylesheet
   Palette: #2E4057 base / #CD5C5C accent / #FF0000 hot / #808080 muted
   Style: near-square utility corners, outlined tile cards, mono accents
   All class names and custom properties use the view3b252- prefix.
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --view3b252-bg: #141d2a;
  --view3b252-shell: #1a2436;
  --view3b252-panel: #2E4057;
  --view3b252-panel-deep: #223146;
  --view3b252-line: #42557a;
  --view3b252-line-soft: #33445f;
  --view3b252-text: #eef2f8;
  --view3b252-muted: #a7b3c7;
  --view3b252-gray: #808080;
  --view3b252-accent: #CD5C5C;
  --view3b252-accent-deep: #a34848;
  --view3b252-hot: #FF0000;
  --view3b252-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  --view3b252-body: -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", "Noto Sans", sans-serif;
  --view3b252-r-tiny: 3px;
  --view3b252-r-soft: 5px;
  --view3b252-t-fast: 0.18s;
  --view3b252-nav-h: 60px;
  --view3b252-bottom-h: 64px;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--view3b252-body);
  background: var(--view3b252-bg);
  color: var(--view3b252-text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: var(--view3b252-accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--view3b252-accent);
  outline-offset: 2px;
}

::selection { background: var(--view3b252-accent); color: #fff; }

/* ---------- page shell: stable 320-430px canvas ---------- */
.view3b252-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--view3b252-shell);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 0 1px var(--view3b252-line-soft);
}

/* main content sits close above the footer; the final bottom
   clearance lives on the footer's last row so the fixed bottom
   action bar never covers the copyright line */
.view3b252-main {
  padding-bottom: 24px;
}

.view3b252-skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 200;
  background: var(--view3b252-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--view3b252-r-tiny);
  font-size: 13px;
  transition: top var(--view3b252-t-fast) ease;
}
.view3b252-skip:focus { top: 8px; }

/* ==========================================================================
   Top action band: minimal title + action strip
   ========================================================================== */
.view3b252-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--view3b252-nav-h);
  background: rgba(20, 29, 42, 0.96);
  border-bottom: 1px solid var(--view3b252-line);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  backdrop-filter: blur(6px);
}

.view3b252-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 4px 2px;
}

.view3b252-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--view3b252-r-tiny);
  border: 1px solid var(--view3b252-line);
  flex: 0 0 auto;
}

.view3b252-brand-name {
  font-family: var(--view3b252-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--view3b252-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.view3b252-brand-name:hover { text-decoration: none; }

/* header CTA pair: lightly rounded text buttons */
.view3b252-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.view3b252-btn-register {
  background: var(--view3b252-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--view3b252-r-soft);
  border: 1px solid var(--view3b252-accent-deep);
  min-height: 38px;
  transition: background var(--view3b252-t-fast) ease, transform var(--view3b252-t-fast) ease;
}
.view3b252-btn-register:hover, .view3b252-btn-register:focus-visible {
  background: var(--view3b252-accent-deep);
  text-decoration: none;
}

.view3b252-btn-login {
  background: transparent;
  color: var(--view3b252-text);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--view3b252-r-soft);
  border: 1px solid var(--view3b252-line);
  min-height: 38px;
  transition: border-color var(--view3b252-t-fast) ease, color var(--view3b252-t-fast) ease;
}
.view3b252-btn-login:hover, .view3b252-btn-login:focus-visible {
  border-color: var(--view3b252-accent);
  color: var(--view3b252-accent);
  text-decoration: none;
}

/* burger opens the full-height menu layer */
.view3b252-burger {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--view3b252-line);
  border-radius: var(--view3b252-r-tiny);
  color: var(--view3b252-muted);
  transition: color var(--view3b252-t-fast) ease, border-color var(--view3b252-t-fast) ease;
}
.view3b252-burger:hover, .view3b252-burger:focus-visible { color: var(--view3b252-text); border-color: var(--view3b252-accent); }
.view3b252-burger svg { width: 20px; height: 20px; display: block; }

/* ==========================================================================
   Full-height off-canvas menu layer
   ========================================================================== */
.view3b252-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateX(-100%);
  width: 100%;
  max-width: 430px;
  background: var(--view3b252-panel-deep);
  z-index: 120;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.22s ease;
  border-right: 1px solid var(--view3b252-line);
  display: flex;
  flex-direction: column;
}
.view3b252-menu[data-open="true"] { transform: translateX(-50%) translateX(0); }

.view3b252-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--view3b252-line-soft);
  position: sticky;
  top: 0;
  background: var(--view3b252-panel-deep);
  z-index: 2;
}
.view3b252-menu-title {
  font-family: var(--view3b252-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--view3b252-muted);
  text-transform: uppercase;
}
.view3b252-menu-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--view3b252-line);
  border-radius: var(--view3b252-r-tiny);
  color: var(--view3b252-muted);
  transition: color var(--view3b252-t-fast) ease, border-color var(--view3b252-t-fast) ease;
}
.view3b252-menu-close:hover { color: var(--view3b252-text); border-color: var(--view3b252-accent); }
.view3b252-menu-close svg { width: 18px; height: 18px; }

.view3b252-menu-body { padding: 6px 14px 18px; flex: 1 1 auto; }

.view3b252-menu-group { margin-top: 16px; }
.view3b252-menu-group-label {
  font-family: var(--view3b252-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--view3b252-gray);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--view3b252-line-soft);
  margin-bottom: 4px;
}
.view3b252-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 8px;
  color: var(--view3b252-text);
  font-size: 15px;
  border-bottom: 1px solid rgba(66, 85, 122, 0.35);
  transition: background var(--view3b252-t-fast) ease, padding-left var(--view3b252-t-fast) ease;
}
.view3b252-menu-link:active { background: rgba(205, 92, 92, 0.12); }
.view3b252-menu-link:hover { text-decoration: none; color: var(--view3b252-accent); }
.view3b252-menu-link small {
  font-family: var(--view3b252-mono);
  font-size: 10px;
  color: var(--view3b252-gray);
  border: 1px solid var(--view3b252-line-soft);
  border-radius: var(--view3b252-r-tiny);
  padding: 1px 5px;
  white-space: nowrap;
}

.view3b252-menu-foot {
  padding: 14px;
  border-top: 1px solid var(--view3b252-line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.view3b252-menu-foot .view3b252-btn-register,
.view3b252-menu-foot .view3b252-btn-login { text-align: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.view3b252-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 24, 0.66);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.view3b252-scrim[data-open="true"] { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.view3b252-hero {
  position: relative;
  margin-top: var(--view3b252-nav-h);
  overflow: hidden;
  background: var(--view3b252-panel-deep);
  border-bottom: 1px solid var(--view3b252-line-soft);
}
.view3b252-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}
.view3b252-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  display: block;
  text-align: left;
  padding: 0;
}
.view3b252-slide img {
  width: 100%;
  height: 172px;
  object-fit: cover;
}
.view3b252-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(20, 29, 42, 0) 0%, rgba(20, 29, 42, 0.88) 78%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.view3b252-slide-text { min-width: 0; }
.view3b252-slide-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: #ffffff;
}
.view3b252-slide-text span {
  display: block;
  font-size: 11.5px;
  color: var(--view3b252-muted);
  margin-top: 2px;
}
.view3b252-slide-go {
  flex: 0 0 auto;
  background: var(--view3b252-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--view3b252-r-soft);
  border: 1px solid var(--view3b252-accent-deep);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: background var(--view3b252-t-fast) ease;
}
.view3b252-slide-go:hover { background: var(--view3b252-accent-deep); }

.view3b252-hero-dots {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.view3b252-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--view3b252-t-fast) ease, width var(--view3b252-t-fast) ease;
}
.view3b252-dot[data-active="true"] { background: var(--view3b252-accent); width: 18px; border-color: var(--view3b252-accent-deep); }

.view3b252-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 29, 42, 0.72);
  border: 1px solid var(--view3b252-line);
  border-radius: var(--view3b252-r-tiny);
  color: #ffffff;
  z-index: 3;
  transition: background var(--view3b252-t-fast) ease;
}
.view3b252-hero-arrow:hover { background: rgba(205, 92, 92, 0.8); }
.view3b252-hero-arrow svg { width: 16px; height: 16px; }
.view3b252-arrow-prev { left: 4px; }
.view3b252-arrow-next { right: 4px; }

/* ==========================================================================
   Quick access strip
   ========================================================================== */
.view3b252-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 12px 4px;
}
.view3b252-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  background: var(--view3b252-panel-deep);
  border: 1px solid var(--view3b252-line-soft);
  border-radius: var(--view3b252-r-soft);
  color: var(--view3b252-text);
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
  transition: border-color var(--view3b252-t-fast) ease, background var(--view3b252-t-fast) ease;
}
.view3b252-quick-item:hover { border-color: var(--view3b252-accent); text-decoration: none; }
.view3b252-quick-item .view3b252-glyph {
  width: 34px;
  height: 34px;
  border-radius: var(--view3b252-r-tiny);
  border: 1px solid var(--view3b252-line);
  background: var(--view3b252-panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--view3b252-accent);
}
.view3b252-quick-item .view3b252-glyph svg { width: 18px; height: 18px; }
.view3b252-quick-item[data-tone="promo"] { border-color: var(--view3b252-accent-deep); }
.view3b252-quick-item[data-tone="promo"] .view3b252-glyph { color: var(--view3b252-hot); border-color: var(--view3b252-accent-deep); }

/* ==========================================================================
   Sections and headings
   ========================================================================== */
.view3b252-section { padding: 18px 12px 6px; }

.view3b252-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--view3b252-accent);
  padding-left: 9px;
  margin-bottom: 10px;
}
.view3b252-sec-head h2 {
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--view3b252-text);
}
.view3b252-sec-note {
  font-family: var(--view3b252-mono);
  font-size: 10.5px;
  color: var(--view3b252-gray);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.view3b252-intro {
  font-size: 13.5px;
  color: var(--view3b252-muted);
  margin-bottom: 12px;
}
.view3b252-intro a { text-decoration: underline; }

/* unique page heading + lead paragraph */
.view3b252-lead h1 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--view3b252-text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--view3b252-line-soft);
}
.view3b252-lead p {
  font-size: 13.5px;
  color: var(--view3b252-muted);
}
.view3b252-lead p a { text-decoration: underline; }

/* ==========================================================================
   Game grid: outlined tile cards
   ========================================================================== */
.view3b252-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.view3b252-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--view3b252-panel-deep);
  border: 1px solid var(--view3b252-line);
  border-radius: var(--view3b252-r-tiny);
  padding: 5px;
  text-align: center;
  transition: border-color var(--view3b252-t-fast) ease, transform var(--view3b252-t-fast) ease, background var(--view3b252-t-fast) ease;
}
.view3b252-tile:hover, .view3b252-tile:focus-visible {
  border-color: var(--view3b252-accent);
  background: var(--view3b252-panel);
  text-decoration: none;
}
.view3b252-tile:active { transform: scale(0.97); }

.view3b252-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--view3b252-shell);
}

.view3b252-tile-name {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--view3b252-text);
  padding: 5px 2px 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.view3b252-badge {
  position: absolute;
  top: -6px;
  left: -5px;
  z-index: 2;
  font-family: var(--view3b252-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: var(--view3b252-hot);
  border: 1px solid #a30000;
  border-radius: 2px;
  padding: 1px 4px;
  line-height: 1.5;
}

/* section footer link row */
.view3b252-sec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.view3b252-sec-links a {
  font-size: 12.5px;
  color: var(--view3b252-text);
  background: transparent;
  border: 1px solid var(--view3b252-line);
  border-radius: var(--view3b252-r-soft);
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  transition: border-color var(--view3b252-t-fast) ease, color var(--view3b252-t-fast) ease;
}
.view3b252-sec-links a:hover { border-color: var(--view3b252-accent); color: var(--view3b252-accent); text-decoration: none; }
.view3b252-sec-links a::before {
  content: ">";
  font-family: var(--view3b252-mono);
  font-size: 11px;
  color: var(--view3b252-accent);
}

/* ==========================================================================
   Content modules: scenario rows, tables
   ========================================================================== */
.view3b252-module {
  background: var(--view3b252-panel-deep);
  border: 1px solid var(--view3b252-line-soft);
  border-radius: var(--view3b252-r-soft);
  padding: 14px 13px;
  margin: 0 12px 14px;
}
.view3b252-module h2 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--view3b252-text);
}
.view3b252-module p {
  font-size: 13.5px;
  color: var(--view3b252-muted);
  margin-bottom: 10px;
}
.view3b252-module p:last-child { margin-bottom: 0; }
.view3b252-module strong { color: var(--view3b252-text); font-weight: 700; }

/* scenario branch rows */
.view3b252-scenario {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed var(--view3b252-line-soft);
}
.view3b252-scenario:first-of-type { border-top: 0; padding-top: 2px; }
.view3b252-scenario-tag {
  flex: 0 0 auto;
  font-family: var(--view3b252-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--view3b252-accent);
  border: 1px solid var(--view3b252-accent-deep);
  border-radius: 2px;
  padding: 2px 6px;
  margin-top: 3px;
  white-space: nowrap;
}
.view3b252-scenario-body { font-size: 13px; color: var(--view3b252-muted); min-width: 0; }
.view3b252-scenario-body strong { color: var(--view3b252-text); }

/* compact data tables */
.view3b252-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 10px 0 4px;
}
.view3b252-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--view3b252-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--view3b252-gray);
  padding-bottom: 5px;
}
.view3b252-table th {
  text-align: left;
  font-size: 11.5px;
  color: var(--view3b252-text);
  background: var(--view3b252-panel);
  border: 1px solid var(--view3b252-line-soft);
  padding: 6px 8px;
}
.view3b252-table td {
  border: 1px solid var(--view3b252-line-soft);
  padding: 6px 8px;
  color: var(--view3b252-muted);
  vertical-align: top;
}
.view3b252-table td[data-num] {
  font-family: var(--view3b252-mono);
  font-size: 11.5px;
  color: var(--view3b252-text);
  white-space: nowrap;
}

.view3b252-note {
  border-left: 3px solid var(--view3b252-gray);
  background: rgba(128, 128, 128, 0.08);
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--view3b252-muted);
  border-radius: 0 var(--view3b252-r-tiny) var(--view3b252-r-tiny) 0;
  margin-top: 10px;
}

/* ==========================================================================
   Extended footer
   ========================================================================== */
.view3b252-footer {
  margin-top: 20px;
  border-top: 1px solid var(--view3b252-line);
  background: var(--view3b252-bg);
  padding: 18px 12px 0;
}

.view3b252-foot-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--view3b252-line-soft);
}
.view3b252-foot-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--view3b252-r-tiny);
  border: 1px solid var(--view3b252-line);
  flex: 0 0 auto;
}
.view3b252-foot-brand-text { min-width: 0; }
.view3b252-foot-brand-text strong {
  display: block;
  font-family: var(--view3b252-mono);
  font-size: 14px;
  color: var(--view3b252-text);
  margin-bottom: 2px;
}
.view3b252-foot-brand-text p { font-size: 12px; color: var(--view3b252-muted); }

.view3b252-foot-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--view3b252-line-soft);
}
.view3b252-foot-promos .view3b252-btn-register,
.view3b252-foot-promos .view3b252-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 13.5px;
  text-align: center;
}

.view3b252-foot-dir-label {
  font-family: var(--view3b252-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--view3b252-gray);
  padding: 14px 0 8px;
}

/* two-column page directory */
.view3b252-foot-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.view3b252-foot-dir a {
  display: block;
  font-size: 12.5px;
  color: var(--view3b252-muted);
  padding: 7px 8px;
  border: 1px solid var(--view3b252-line-soft);
  border-radius: var(--view3b252-r-tiny);
  background: rgba(34, 49, 70, 0.5);
  min-height: 40px;
  display: -webkit-box;
  display: flex;
  align-items: center;
  line-height: 1.35;
  transition: border-color var(--view3b252-t-fast) ease, color var(--view3b252-t-fast) ease;
}
.view3b252-foot-dir a:hover { border-color: var(--view3b252-accent); color: var(--view3b252-text); text-decoration: none; }

.view3b252-foot-disclaimer {
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px dashed var(--view3b252-gray);
  border-radius: var(--view3b252-r-tiny);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--view3b252-muted);
}
.view3b252-foot-disclaimer strong { color: var(--view3b252-text); }

.view3b252-copyright {
  margin-top: 14px;
  padding: 12px 0 calc(var(--view3b252-bottom-h) + 14px) 0;
  border-top: 1px solid var(--view3b252-line-soft);
  text-align: center;
  font-family: var(--view3b252-mono);
  font-size: 11px;
  color: var(--view3b252-gray);
  letter-spacing: 0.4px;
}

/* ==========================================================================
   Segmented bottom action bar
   ========================================================================== */
.view3b252-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--view3b252-bottom-h);
  background: rgba(20, 29, 42, 0.97);
  border-top: 1px solid var(--view3b252-line);
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  backdrop-filter: blur(6px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.view3b252-bottomnav a,
.view3b252-bottomnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--view3b252-bottom-h);
  color: var(--view3b252-muted);
  font-size: 10.5px;
  line-height: 1.2;
  border-radius: var(--view3b252-r-tiny);
  transition: color var(--view3b252-t-fast) ease;
}
.view3b252-bottomnav a:hover,
.view3b252-bottomnav button:hover { text-decoration: none; }

/* containerized symbol tile */
.view3b252-bottomnav .view3b252-glyph {
  width: 30px;
  height: 26px;
  border-radius: var(--view3b252-r-tiny);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: var(--view3b252-muted);
  transition: background var(--view3b252-t-fast) ease, color var(--view3b252-t-fast) ease, border-color var(--view3b252-t-fast) ease;
}
.view3b252-bottomnav .view3b252-glyph svg { width: 17px; height: 17px; }

/* active role sits on a background support block */
.view3b252-bottomnav [data-active="true"] { color: #ffffff; }
.view3b252-bottomnav [data-active="true"] .view3b252-glyph {
  background: var(--view3b252-panel);
  border-color: var(--view3b252-line);
  color: var(--view3b252-accent);
}

/* promo roles carry the hot tone */
.view3b252-bottomnav [data-role="promo"] { color: #f3b8b8; }
.view3b252-bottomnav [data-role="promo"] .view3b252-glyph {
  border-color: var(--view3b252-accent-deep);
  color: var(--view3b252-hot);
}
.view3b252-bottomnav [data-role="promo"]:active .view3b252-glyph { background: rgba(205, 92, 92, 0.22); }

/* ==========================================================================
   Utility
   ========================================================================== */
.view3b252-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* five columns once the canvas is wide enough */
@media (min-width: 400px) {
  .view3b252-grid { grid-template-columns: repeat(5, 1fr); }
}

/* literal 430 breakpoint: canvas edge and desktop framing */
@media (min-width: 430px) {
  body { background: #0d1420; }
  .view3b252-shell { box-shadow: 0 0 24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--view3b252-line-soft); }
  .view3b252-slide img { height: 188px; }
}

@media (min-width: 768px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(600px 300px at 20% 0%, rgba(205, 92, 92, 0.08), transparent 70%),
      radial-gradient(600px 300px at 80% 100%, rgba(66, 85, 122, 0.12), transparent 70%);
    pointer-events: none;
  }
  .view3b252-topbar { border-radius: 0; }
}

/* motion budget: short transitions only, respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .view3b252-track { transition: none; }
}

/* very narrow devices: keep 4-column grid readable */
@media (max-width: 340px) {
  .view3b252-grid { gap: 6px; }
  .view3b252-tile-name { font-size: 10.5px; }
  .view3b252-brand-name { font-size: 13.5px; }
  .view3b252-btn-register, .view3b252-btn-login { padding: 8px 8px; font-size: 12px; }
}
