/* ==========================================================================
   q880bet.click — base canvas stylesheet
   File   : css/q880bet-canvas-e62e7c.css
   Prefix : ce62e7-
   Palette: #F5DEB3 | #273746 | #48D1CC | #6495ED | #A0522D | #FFFFFF
   Tone   : humanist headings + clear body, small-medium radii,
            grouped cover cards, compact metric-explanation rhythm,
            light press motion, compact icon+text CTAs.
   Canvas : 320-430px phone frame, centered on wide screens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ce62e7-c-sand: #f5deb3;
  --ce62e7-c-slate: #273746;
  --ce62e7-c-teal: #48d1cc;
  --ce62e7-c-blue: #6495ed;
  --ce62e7-c-clay: #a0522d;
  --ce62e7-c-white: #ffffff;

  --ce62e7-bg-page: #1b2530;
  --ce62e7-bg: #273746;
  --ce62e7-surface: #2e4152;
  --ce62e7-surface-2: #354a5e;
  --ce62e7-surface-3: #3d5470;
  --ce62e7-line: rgba(245, 222, 179, 0.14);
  --ce62e7-line-strong: rgba(72, 209, 204, 0.34);

  --ce62e7-ink: #ffffff;
  --ce62e7-ink-soft: rgba(245, 222, 179, 0.8);
  --ce62e7-ink-faint: rgba(245, 222, 179, 0.58);
  --ce62e7-ink-onlight: #273746;

  --ce62e7-font-head: "Noto Serif Bengali", "Bangla MN", "Nirmala UI", Georgia, "Times New Roman", serif;
  --ce62e7-font-body: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ce62e7-r-xs: 6px;
  --ce62e7-r-sm: 10px;
  --ce62e7-r-md: 14px;
  --ce62e7-r-lg: 18px;

  --ce62e7-gap: 12px;
  --ce62e7-pad-x: 14px;

  --ce62e7-header-h: 112px;
  --ce62e7-bottomnav-h: 64px;

  --ce62e7-ease: cubic-bezier(0.33, 0.1, 0.24, 1);
  --ce62e7-t-fast: 0.16s var(--ce62e7-ease);
  --ce62e7-t-mid: 0.26s var(--ce62e7-ease);
}

/* --------------------------------------------------------------------------
   2. Base + reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--ce62e7-bg-page);
  color: var(--ce62e7-ink);
  font-family: var(--ce62e7-font-body);
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

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

a {
  color: var(--ce62e7-c-blue);
  text-decoration: none;
  transition: color var(--ce62e7-t-fast);
}

a:hover {
  color: var(--ce62e7-c-teal);
}

h1, h2, h3, h4 {
  font-family: var(--ce62e7-font-head);
  font-weight: 700;
  color: var(--ce62e7-c-sand);
  line-height: 1.42;
  margin: 0 0 10px;
  text-wrap: balance;
}

h1 { font-size: 21px; letter-spacing: 0.1px; }
h2 { font-size: 18px; }
h3 { font-size: 15.5px; color: var(--ce62e7-ink); }

p { margin: 0 0 12px; }

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

:focus-visible {
  outline: 2px solid var(--ce62e7-c-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--ce62e7-c-teal);
  color: var(--ce62e7-c-slate);
}

/* --------------------------------------------------------------------------
   3. Phone-canvas shell
   -------------------------------------------------------------------------- */
.ce62e7-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--ce62e7-bg);
  min-height: 100vh;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.5);
  overflow-x: clip;
}

.ce62e7-main {
  padding: calc(var(--ce62e7-header-h) + 12px) var(--ce62e7-pad-x) calc(var(--ce62e7-bottomnav-h) + 34px);
}

/* --------------------------------------------------------------------------
   4. Header — centered identity bar + action strip + expandable menu
   -------------------------------------------------------------------------- */
.ce62e7-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #2c3f51 0%, #273746 100%);
  border-bottom: 1px solid var(--ce62e7-line-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ce62e7-brandrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 7px var(--ce62e7-pad-x) 4px;
}

.ce62e7-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ce62e7-c-sand);
}

.ce62e7-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--ce62e7-r-sm);
  border: 1px solid var(--ce62e7-line-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.ce62e7-brandname {
  font-family: var(--ce62e7-font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ce62e7-c-sand);
}

.ce62e7-actionrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 9px;
}

/* Compact icon+text CTA buttons */
.ce62e7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform var(--ce62e7-t-fast), background-color var(--ce62e7-t-fast),
    border-color var(--ce62e7-t-fast), color var(--ce62e7-t-fast), box-shadow var(--ce62e7-t-fast);
}

.ce62e7-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ce62e7-btn:active {
  transform: translateY(-2px);
}

.ce62e7-btn-register {
  background: linear-gradient(135deg, var(--ce62e7-c-teal) 0%, var(--ce62e7-c-blue) 100%);
  color: var(--ce62e7-c-slate);
  box-shadow: 0 4px 14px rgba(72, 209, 204, 0.35);
}

.ce62e7-btn-register:hover {
  box-shadow: 0 6px 18px rgba(72, 209, 204, 0.5);
}

.ce62e7-btn-login {
  background: transparent;
  border-color: var(--ce62e7-line-strong);
  color: var(--ce62e7-c-sand);
}

.ce62e7-btn-login:hover {
  border-color: var(--ce62e7-c-teal);
  color: var(--ce62e7-c-teal);
}

.ce62e7-btn-ghost {
  background: rgba(245, 222, 179, 0.07);
  border-color: var(--ce62e7-line);
  color: var(--ce62e7-ink-soft);
}

.ce62e7-menubtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  background: rgba(245, 222, 179, 0.06);
  border: 1px solid var(--ce62e7-line);
  border-radius: 999px;
  color: var(--ce62e7-ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: color var(--ce62e7-t-fast), border-color var(--ce62e7-t-fast), transform var(--ce62e7-t-fast);
}

.ce62e7-menubtn svg {
  width: 17px;
  height: 17px;
}

.ce62e7-menubtn[aria-expanded="true"] {
  color: var(--ce62e7-c-teal);
  border-color: var(--ce62e7-line-strong);
}

.ce62e7-menubtn:active {
  transform: translateY(-2px);
}

/* Expandable route menu */
.ce62e7-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ce62e7-surface);
  border-bottom: 1px solid var(--ce62e7-line-strong);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.42);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ce62e7-t-mid);
}

.ce62e7-menu.ce62e7-open {
  max-height: 560px;
  overflow-y: auto;
}

.ce62e7-menugroups {
  padding: 12px var(--ce62e7-pad-x) 16px;
}

.ce62e7-menucap {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ce62e7-c-teal);
  font-weight: 700;
  margin: 10px 2px 6px;
}

.ce62e7-menucap:first-child {
  margin-top: 2px;
}

.ce62e7-menulinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ce62e7-menulink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--ce62e7-r-sm);
  background: rgba(245, 222, 179, 0.05);
  border: 1px solid var(--ce62e7-line);
  color: var(--ce62e7-ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--ce62e7-t-fast), color var(--ce62e7-t-fast),
    transform var(--ce62e7-t-fast);
}

.ce62e7-menulink svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--ce62e7-c-blue);
}

.ce62e7-menulink:active {
  transform: translateY(-2px);
}

.ce62e7-menulink:hover {
  background: rgba(72, 209, 204, 0.12);
  color: var(--ce62e7-ink);
}

.ce62e7-menulink .ce62e7-is-here {
  color: var(--ce62e7-c-teal);
}

/* --------------------------------------------------------------------------
   5. Hero carousel
   -------------------------------------------------------------------------- */
.ce62e7-hero {
  margin: 4px 0 16px;
}

.ce62e7-railwrap {
  position: relative;
  border-radius: var(--ce62e7-r-md);
  overflow: hidden;
  border: 1px solid var(--ce62e7-line-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.ce62e7-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ce62e7-rail::-webkit-scrollbar {
  display: none;
}

.ce62e7-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  padding: 0;
  border: 0;
  background: var(--ce62e7-surface);
  display: block;
}

.ce62e7-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1915 / 450;
  object-fit: contain;
}

.ce62e7-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.ce62e7-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(245, 222, 179, 0.42);
  transition: width var(--ce62e7-t-mid), background-color var(--ce62e7-t-mid);
}

.ce62e7-dot.is-on {
  width: 22px;
  background: var(--ce62e7-c-teal);
}

/* --------------------------------------------------------------------------
   6. Metric chips row (compact metric-explanation rhythm)
   -------------------------------------------------------------------------- */
.ce62e7-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 16px;
}

.ce62e7-chip {
  background: var(--ce62e7-surface);
  border: 1px solid var(--ce62e7-line);
  border-radius: var(--ce62e7-r-sm);
  padding: 8px 4px 7px;
  text-align: center;
}

.ce62e7-chip b {
  display: block;
  font-family: var(--ce62e7-font-head);
  font-size: 15px;
  color: var(--ce62e7-c-teal);
  line-height: 1.25;
}

.ce62e7-chip span {
  display: block;
  font-size: 10.5px;
  color: var(--ce62e7-ink-faint);
  line-height: 1.4;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   7. Generic content panel + prose
   -------------------------------------------------------------------------- */
.ce62e7-panel {
  background: var(--ce62e7-surface);
  border: 1px solid var(--ce62e7-line);
  border-radius: var(--ce62e7-r-md);
  padding: 16px 14px 14px;
  margin: 0 0 18px;
}

.ce62e7-panel > h2,
.ce62e7-panel > h3 {
  padding-left: 10px;
  border-left: 3px solid var(--ce62e7-c-teal);
}

.ce62e7-lede {
  font-size: 15px;
  color: var(--ce62e7-ink-soft);
}

.ce62e7-muted {
  color: var(--ce62e7-ink-faint);
  font-size: 13px;
}

.ce62e7-note {
  border-left: 3px solid var(--ce62e7-c-clay);
  background: rgba(160, 82, 45, 0.12);
  border-radius: 0 var(--ce62e7-r-sm) var(--ce62e7-r-sm) 0;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ce62e7-ink-soft);
  margin: 10px 0 4px;
}

/* H1 block */
.ce62e7-pagehead {
  margin: 2px 0 14px;
}

.ce62e7-pagehead h1 {
  margin-bottom: 6px;
}

.ce62e7-pagehead p {
  color: var(--ce62e7-ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Game groups — grouped cover cards
   -------------------------------------------------------------------------- */
.ce62e7-gamehall {
  margin: 0 0 18px;
}

.ce62e7-grouphd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.ce62e7-grouphd h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ce62e7-catbadge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ce62e7-c-slate);
  background: var(--ce62e7-c-teal);
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1.3;
}

.ce62e7-catbadge.ce62e7-badge-hot {
  background: linear-gradient(135deg, #d97b4a, var(--ce62e7-c-clay));
  color: var(--ce62e7-c-white);
}

.ce62e7-catbadge.ce62e7-badge-live {
  background: var(--ce62e7-c-blue);
  color: var(--ce62e7-c-slate);
}

.ce62e7-catbadge.ce62e7-badge-slot {
  background: var(--ce62e7-c-sand);
  color: var(--ce62e7-c-slate);
}

.ce62e7-catbadge.ce62e7-badge-poker {
  background: var(--ce62e7-c-white);
  color: var(--ce62e7-c-slate);
}

.ce62e7-catbadge.ce62e7-badge-fish {
  background: #7fd8c2;
  color: var(--ce62e7-c-slate);
}

.ce62e7-groupintro {
  font-size: 12.5px;
  color: var(--ce62e7-ink-faint);
  margin: 0 0 9px;
  line-height: 1.6;
}

.ce62e7-grouppanel {
  background: rgba(245, 222, 179, 0.035);
  border: 1px solid var(--ce62e7-line);
  border-radius: var(--ce62e7-r-md);
  padding: 12px 9px 11px;
  margin: 0 0 16px;
}

/* Game cover tiles: 4 columns at 320px, 5 columns on wider phones */
.ce62e7-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 8px;
}

.ce62e7-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--ce62e7-r-sm);
  transition: transform var(--ce62e7-t-fast);
}

.ce62e7-tile:active {
  transform: translateY(-2px);
}

.ce62e7-tileimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--ce62e7-r-sm);
  border: 1px solid var(--ce62e7-line);
  background: var(--ce62e7-surface-2);
  transition: border-color var(--ce62e7-t-fast), box-shadow var(--ce62e7-t-fast);
}

.ce62e7-tile:hover .ce62e7-tileimg,
.ce62e7-tile:focus-visible .ce62e7-tileimg {
  border-color: var(--ce62e7-c-teal);
  box-shadow: 0 4px 12px rgba(72, 209, 204, 0.25);
}

.ce62e7-tilename {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ce62e7-ink-soft);
  text-align: center;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   9. Steps, checklist, CTA clusters
   -------------------------------------------------------------------------- */
.ce62e7-steps {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
  counter-reset: ce62e7-step;
}

.ce62e7-steps li {
  counter-increment: ce62e7-step;
  position: relative;
  padding: 0 0 12px 38px;
  font-size: 14px;
  color: var(--ce62e7-ink-soft);
}

.ce62e7-steps li::before {
  content: counter(ce62e7-step, bengali);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(72, 209, 204, 0.16);
  border: 1px solid var(--ce62e7-line-strong);
  color: var(--ce62e7-c-teal);
  font-family: var(--ce62e7-font-head);
  font-size: 13px;
  font-weight: 700;
}

.ce62e7-steps li b {
  color: var(--ce62e7-ink);
}

.ce62e7-checklist {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}

.ce62e7-checklist li {
  position: relative;
  padding: 9px 10px 9px 38px;
  margin-bottom: 8px;
  background: rgba(245, 222, 179, 0.045);
  border: 1px solid var(--ce62e7-line);
  border-radius: var(--ce62e7-r-sm);
  font-size: 13.5px;
  color: var(--ce62e7-ink-soft);
  line-height: 1.62;
}

.ce62e7-checklist li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 2px solid var(--ce62e7-c-teal);
  background: rgba(72, 209, 204, 0.1);
}

.ce62e7-checklist li b {
  color: var(--ce62e7-c-sand);
}

.ce62e7-ctarow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0 4px;
}

.ce62e7-ctarow .ce62e7-btn {
  width: 100%;
  padding: 0 8px;
  font-size: 13.5px;
}

.ce62e7-ctarow-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0 4px;
}

/* Compact metric rows: value on the left, explanation on the right */
.ce62e7-metrics {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.ce62e7-metricrow {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  background: rgba(245, 222, 179, 0.04);
  border: 1px solid var(--ce62e7-line);
  border-radius: var(--ce62e7-r-sm);
}

.ce62e7-metricrow b {
  font-family: var(--ce62e7-font-head);
  color: var(--ce62e7-c-teal);
  font-size: 13.5px;
  line-height: 1.4;
}

.ce62e7-metricrow span {
  font-size: 12.5px;
  color: var(--ce62e7-ink-faint);
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
   10. Extended site footer (page directory > brand > promos > disclaimer)
   -------------------------------------------------------------------------- */
.ce62e7-extended {
  margin: 20px 0 14px;
  border-top: 1px dashed var(--ce62e7-line-strong);
  padding-top: 16px;
}

.ce62e7-extended h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.ce62e7-extcap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ce62e7-c-teal);
  margin: 14px 2px 8px;
}

.ce62e7-extcap svg {
  width: 14px;
  height: 14px;
}

.ce62e7-directory {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ce62e7-directory li {
  border-bottom: 1px solid var(--ce62e7-line);
}

.ce62e7-directory li:last-child {
  border-bottom: 0;
}

.ce62e7-dirlink {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 6px;
  border-radius: var(--ce62e7-r-xs);
  color: var(--ce62e7-ink-soft);
  transition: background-color var(--ce62e7-t-fast), color var(--ce62e7-t-fast);
}

.ce62e7-dirlink:hover {
  background: rgba(72, 209, 204, 0.08);
  color: var(--ce62e7-ink);
}

.ce62e7-dirlink svg {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  flex: none;
  color: var(--ce62e7-c-blue);
}

.ce62e7-dirlink b {
  display: block;
  font-size: 13.5px;
  color: var(--ce62e7-c-sand);
  font-weight: 700;
  line-height: 1.5;
}

.ce62e7-dirlink span {
  display: block;
  font-size: 12px;
  color: var(--ce62e7-ink-faint);
  line-height: 1.55;
}

.ce62e7-brandblurb {
  font-size: 13px;
  color: var(--ce62e7-ink-soft);
  line-height: 1.7;
  margin: 0;
}

.ce62e7-disclaimer {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--ce62e7-r-sm);
  background: rgba(160, 82, 45, 0.1);
  border: 1px dashed rgba(160, 82, 45, 0.45);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ce62e7-ink-faint);
}

/* --------------------------------------------------------------------------
   11. Common footer
   -------------------------------------------------------------------------- */
.ce62e7-footer {
  text-align: center;
  padding: 10px var(--ce62e7-pad-x) 8px;
  border-top: 1px solid var(--ce62e7-line);
  font-size: 12px;
  color: var(--ce62e7-ink-faint);
}

.ce62e7-footer b {
  color: var(--ce62e7-ink-soft);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Mobile bottom navigation — center-raised five-role bar
   -------------------------------------------------------------------------- */
.ce62e7-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: var(--ce62e7-bottomnav-h);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(31, 44, 57, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--ce62e7-line-strong);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.4);
}

.ce62e7-bnitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  color: var(--ce62e7-ink-faint);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--ce62e7-r-xs);
  transition: color var(--ce62e7-t-fast), transform var(--ce62e7-t-fast);
}

.ce62e7-bnitem svg {
  width: 21px;
  height: 21px;
  /* Icon fill changes between idle and active states */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill var(--ce62e7-t-mid), stroke var(--ce62e7-t-mid);
}

.ce62e7-bnitem:active {
  transform: translateY(-2px);
}

.ce62e7-bnitem:hover {
  color: var(--ce62e7-ink-soft);
}

.ce62e7-bnitem.is-active {
  color: var(--ce62e7-c-teal);
}

/* Active icon: symbol fills with the accent color */
.ce62e7-bnitem.is-active svg {
  fill: rgba(72, 209, 204, 0.9);
  stroke: var(--ce62e7-c-teal);
}

/* Center raised action */
.ce62e7-bncenter {
  position: relative;
  transform: translateY(-16px);
  color: var(--ce62e7-c-slate);
  font-weight: 700;
}

.ce62e7-bncenter svg {
  width: 26px;
  height: 26px;
  margin-top: 24px;
  stroke: var(--ce62e7-c-slate);
}

.ce62e7-bncenter::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ce62e7-c-teal) 0%, var(--ce62e7-c-blue) 100%);
  border: 3px solid #223140;
  box-shadow: 0 6px 16px rgba(72, 209, 204, 0.4);
  transition: box-shadow var(--ce62e7-t-fast), transform var(--ce62e7-t-fast);
}

.ce62e7-bncenter:active {
  transform: translateY(-18px);
}

.ce62e7-bncenter:active::before {
  box-shadow: 0 3px 10px rgba(72, 209, 204, 0.55);
}

.ce62e7-bncenter span {
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   13. Utilities + motion preferences
   -------------------------------------------------------------------------- */
.ce62e7-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ce62e7-sectiongap {
  height: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .ce62e7-bncenter {
    transform: translateY(-12px);
  }
}

/* --------------------------------------------------------------------------
   14. Responsive adjustments inside the 320-430px phone canvas
   -------------------------------------------------------------------------- */
@media (min-width: 375px) {
  body {
    font-size: 15.5px;
  }
  h1 { font-size: 22.5px; }
  h2 { font-size: 19px; }
  .ce62e7-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ce62e7-grid {
    gap: 11px 10px;
  }
  .ce62e7-tilename {
    font-size: 11.5px;
  }
  .ce62e7-dirlink b {
    font-size: 14px;
  }
}

/* Wider phones inside the canvas: five game columns */
@media (min-width: 398px) {
  .ce62e7-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ce62e7-chips {
    gap: 9px;
  }
}

/* At and beyond the canvas edge the frame stays centered with side glow */
@media (min-width: 430px) {
  .ce62e7-shell {
    border-radius: 0 0 14px 14px;
  }
  .ce62e7-header,
  .ce62e7-bottomnav {
    border-left: 1px solid rgba(245, 222, 179, 0.06);
    border-right: 1px solid rgba(245, 222, 179, 0.06);
  }
  .ce62e7-header {
    border-radius: 0 0 12px 12px;
  }
}

/* Compatible additions for content, focus and safe navigation. */
a { color: #a9c7ff; }
.ce62e7-muted, .ce62e7-groupintro, .ce62e7-dirlink span,
.ce62e7-disclaimer, .ce62e7-bnitem { color: #e2cfac; }
.ce62e7-main { padding-bottom: 24px; }
.ce62e7-shell { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.ce62e7-authbtns { display: flex; gap: 8px; }
.ce62e7-menu { visibility: hidden; }
.ce62e7-menu.ce62e7-open { visibility: visible; max-height: calc(100dvh - 210px); }
.ce62e7-menulink.is-active { color: #48d1cc; background: #223140; }
.ce62e7-bncenter { color: #f5deb3; }
.ce62e7-bncenter svg { position: relative; z-index: 1; }
.ce62e7-bncenter span { position: relative; z-index: 1; margin-top: 10px; }
.ce62e7-dot { min-width: 44px; min-height: 44px; background: transparent; position: relative; }
.ce62e7-dot::after { content: ''; display: block; width: 8px; height: 8px; margin: auto; border-radius: 9px; background: #f5deb3; }
.ce62e7-dot.ce62e7-on::after { width: 22px; background: #48d1cc; }
.ce62e7-dots { position: static; background: #223140; }
.ce62e7-slide { min-height: 44px; min-width: 0; overflow: hidden; }
.ce62e7-carouseltools { display: flex; justify-content: space-between; align-items: center; }
.ce62e7-carouseltools button { min-height: 44px; padding: 8px 12px; background: #223140; color: #f5deb3; border: 0; border-radius: 6px; }
.ce62e7-tilename { min-height: 34px; color: #f5deb3; }
.ce62e7-tile { min-height: 44px; }
.ce62e7-textentry { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; background: transparent; border: 0; padding: 5px 0; color: #48d1cc; font-weight: 700; text-align: left; }
.ce62e7-textentry::before { content: '↗'; }
.ce62e7-textentry:active { transform: translateY(-2px); }
.ce62e7-panel p:last-child { margin-bottom: 0; }
.ce62e7-reviewlead { padding: 14px; background: #354a5e; border-radius: 10px; margin-bottom: 16px; }
.ce62e7-signal { display: grid; gap: 10px; }
.ce62e7-signal article { padding: 10px; background: #223140; border-radius: 8px; }
.ce62e7-route { border-left: 2px solid #48d1cc; margin-left: 8px; padding-left: 24px; }
.ce62e7-route li { padding: 0 0 14px 0; }
.ce62e7-branch article { padding: 12px 0; border-bottom: 1px solid var(--ce62e7-line); }
.ce62e7-branch h3 { color: #48d1cc; }
.ce62e7-footer { padding-bottom: 16px; }
.ce62e7-dirlink, .ce62e7-main p a { min-height: 44px; }
.ce62e7-main p a, .ce62e7-steps a { display: inline-flex; align-items: center; min-height: 44px; }
.ce62e7-railwrap:focus-within { outline: 2px solid #48d1cc; outline-offset: 3px; }
.ce62e7-chip span, .ce62e7-metricrow span { color: #e2cfac; }
.ce62e7-catbadge.ce62e7-badge-hot { background: #a0522d; }
h1, h2, h3, p { overflow-wrap: break-word; }
:target, a, button { scroll-margin-top: 122px; scroll-margin-bottom: 110px; }

/* Very narrow devices: keep labels readable, tighten chips */
@media (max-width: 340px) {
  .ce62e7-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ce62e7-btn {
    padding: 0 12px;
    font-size: 13px;
  }
  .ce62e7-menulinks {
    grid-template-columns: 1fr;
  }
}
