/* ============================================================
   ck9999-homes base visuals
   Palette: #9966CC / #2C2C2C / #7FFF00 / #800080 (dark canvas)
   Direction: angular-cut headings + neutral body, small-radius
   high density, outlined tile cards, compact metric rhythm,
   drawer menu slide-in, card lift, square high-contrast CTA.
   All classes and variables use the "frameaba52-" prefix.
   ============================================================ */

:root {
  --frameaba52-ink: #2C2C2C;
  --frameaba52-ink-deep: #201c26;
  --frameaba52-ink-panel: #322c3b;
  --frameaba52-violet: #9966CC;
  --frameaba52-violet-soft: rgba(153, 102, 204, 0.16);
  --frameaba52-punch: #7FFF00;
  --frameaba52-plum: #800080;
  --frameaba52-plum-deep: #5c105c;
  --frameaba52-paper: #f4eff9;
  --frameaba52-mist: #c8b8da;
  --frameaba52-dim: #9d8fb2;
  --frameaba52-line: rgba(153, 102, 204, 0.42);
  --frameaba52-line-faint: rgba(153, 102, 204, 0.22);
  --frameaba52-radius: 4px;
  --frameaba52-head-font: 'Space Grotesk', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  --frameaba52-body-font: 'Noto Sans Bengali', 'Segoe UI', system-ui, sans-serif;
  --frameaba52-topbar-h: 58px;
  --frameaba52-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: #17131c;
  color: var(--frameaba52-paper);
  font-family: var(--frameaba52-body-font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Phone canvas stays centered on wide screens */
.frameaba52-stage {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(128, 0, 128, 0.38) 0%, rgba(44, 44, 44, 0) 62%),
    linear-gradient(180deg, var(--frameaba52-ink-deep) 0%, var(--frameaba52-ink) 42%, #251f2d 100%);
  box-shadow: 0 0 0 1px rgba(153, 102, 204, 0.25);
  overflow-x: hidden;
}

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

a { color: var(--frameaba52-punch); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #b3ff4d; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--frameaba52-punch);
  outline-offset: 2px;
  border-radius: 2px;
}

.frameaba52-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--frameaba52-punch);
  color: #1c2410;
  padding: 8px 14px;
  font-weight: 700;
  z-index: 200;
}
.frameaba52-skip:focus { left: 10px; top: 10px; }

/* ---------- Fixed asymmetric brand header ---------- */
.frameaba52-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(30, 25, 37, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--frameaba52-line);
}

.frameaba52-topbar-in {
  max-width: 430px;
  margin: 0 auto;
  height: var(--frameaba52-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 12px;
}

/* Brand block sits low-left of the asymmetric header */
.frameaba52-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 0;
}

.frameaba52-brand-logo {
  width: 36px;
  height: 36px;
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  overflow: hidden;
  background: var(--frameaba52-violet-soft);
  flex: none;
}
.frameaba52-brand-logo img { width: 100%; height: 100%; object-fit: cover; }

.frameaba52-brand-name {
  font-family: var(--frameaba52-head-font);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--frameaba52-paper);
  line-height: 1.1;
}

/* Action cluster offset higher for the asymmetric rhythm */
.frameaba52-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.frameaba52-register {
  min-height: 40px;
  padding: 8px 14px;
  background: var(--frameaba52-punch);
  color: #1b2a07;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--frameaba52-plum-deep);
  transition: filter 0.2s ease, transform 0.15s ease;
}
.frameaba52-register:hover { filter: brightness(1.08); color: #1b2a07; }
.frameaba52-register:active { transform: translateY(1px); }

.frameaba52-login {
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid var(--frameaba52-punch);
  color: var(--frameaba52-punch);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.frameaba52-login:hover { background: rgba(127, 255, 0, 0.12); color: #b3ff4d; }

.frameaba52-burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  transition: border-color 0.2s ease;
}
.frameaba52-burger:hover { border-color: var(--frameaba52-punch); }
.frameaba52-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--frameaba52-mist);
  transition: background 0.2s ease;
}
.frameaba52-burger:hover span { background: var(--frameaba52-punch); }

/* ---------- Side drawer menu ---------- */
.frameaba52-scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 9, 16, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 95;
}
.frameaba52-scrim-on { opacity: 1; visibility: visible; }

.frameaba52-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  z-index: 99;
  background: linear-gradient(200deg, #33203f 0%, var(--frameaba52-ink-deep) 58%);
  border-left: 1px solid var(--frameaba52-line);
  transform: translateX(102%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
}
.frameaba52-drawer-open { transform: translateX(0); }

.frameaba52-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.frameaba52-drawer-title {
  font-family: var(--frameaba52-head-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--frameaba52-punch);
  letter-spacing: 0.03em;
}
.frameaba52-drawer-close {
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  color: var(--frameaba52-mist);
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.frameaba52-drawer-close:hover { color: var(--frameaba52-punch); border-color: var(--frameaba52-punch); }

.frameaba52-drawer-group {
  margin: 14px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frameaba52-dim);
  border-bottom: 1px dashed var(--frameaba52-line-faint);
  padding-bottom: 5px;
}

.frameaba52-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 8px;
  color: var(--frameaba52-paper);
  font-size: 14.5px;
  border-bottom: 1px solid var(--frameaba52-line-faint);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.frameaba52-drawer a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--frameaba52-violet);
  flex: none;
  transition: background 0.2s ease;
}
.frameaba52-drawer a:hover { color: var(--frameaba52-punch); padding-left: 12px; }
.frameaba52-drawer a:hover::before { background: var(--frameaba52-punch); }
.frameaba52-drawer a.frameaba52-drawer-here {
  color: var(--frameaba52-punch);
  border-bottom: 2px solid var(--frameaba52-punch);
  font-weight: 700;
}

/* ---------- Main flow ---------- */
.frameaba52-main {
  padding: calc(var(--frameaba52-topbar-h) + 12px) 12px calc(var(--frameaba52-bottomnav-h) + 28px);
}

.frameaba52-lede { margin: 4px 0 14px; }

.frameaba52-lede h1 {
  font-family: var(--frameaba52-head-font);
  font-size: 21px;
  line-height: 1.32;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--frameaba52-paper);
}
.frameaba52-lede h1 em {
  font-style: normal;
  color: var(--frameaba52-punch);
}

.frameaba52-lede p {
  margin: 0 0 12px;
  color: var(--frameaba52-mist);
  font-size: 14.5px;
}

.frameaba52-lede-note {
  font-size: 12px;
  color: var(--frameaba52-dim);
  border-left: 3px solid var(--frameaba52-violet);
  padding: 2px 0 2px 10px;
  margin: 0 0 12px;
}

.frameaba52-ctarow {
  display: flex;
  gap: 8px;
  margin: 2px 0 16px;
}

.frameaba52-cta {
  flex: 1;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--frameaba52-punch);
  color: #1b2a07;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--frameaba52-plum-deep);
  transition: filter 0.2s ease, transform 0.15s ease;
}
.frameaba52-cta:hover { filter: brightness(1.08); color: #1b2a07; }
.frameaba52-cta:active { transform: translateY(1px); }

.frameaba52-cta-ghost {
  background: transparent;
  color: var(--frameaba52-punch);
  border: 1px solid var(--frameaba52-punch);
  box-shadow: none;
}
.frameaba52-cta-ghost:hover { background: rgba(127, 255, 0, 0.1); color: #b3ff4d; }

/* ---------- Metric strip (compact metric-explanation rhythm) ---------- */
.frameaba52-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 18px;
}
.frameaba52-metric {
  border: 1px solid var(--frameaba52-line);
  border-left: 3px solid var(--frameaba52-punch);
  border-radius: var(--frameaba52-radius);
  background: rgba(128, 0, 128, 0.12);
  padding: 8px 4px 7px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.frameaba52-metric:hover { border-color: var(--frameaba52-punch); }
.frameaba52-metric b {
  display: block;
  font-family: var(--frameaba52-head-font);
  font-size: 13px;
  color: var(--frameaba52-punch);
  line-height: 1.25;
}
.frameaba52-metric small {
  display: block;
  font-size: 10.5px;
  color: var(--frameaba52-dim);
  line-height: 1.3;
  margin-top: 2px;
}

/* ---------- Banner carousel ---------- */
.frameaba52-carousel {
  position: relative;
  margin: 0 0 18px;
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  overflow: hidden;
  background: var(--frameaba52-ink-panel);
}

.frameaba52-slide {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.frameaba52-slide-on { opacity: 1; visibility: visible; }

.frameaba52-slide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.frameaba52-slide-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(32, 28, 38, 0.86);
  border: 1px solid var(--frameaba52-line);
  color: var(--frameaba52-paper);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
}

.frameaba52-dots {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.frameaba52-dot {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.frameaba52-dot i {
  display: block;
  width: 8px;
  height: 8px;
  background: rgba(244, 239, 249, 0.45);
  transform: rotate(45deg);
  transition: background 0.2s ease, transform 0.2s ease;
}
.frameaba52-dot:hover i { background: var(--frameaba52-paper); }
.frameaba52-dot-on i { background: var(--frameaba52-punch); transform: rotate(45deg) scale(1.2); }

/* ---------- Game shelves ---------- */
.frameaba52-shelf { margin: 0 0 20px; }

.frameaba52-shelf-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  font-family: var(--frameaba52-head-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--frameaba52-paper);
  border-bottom: 2px solid var(--frameaba52-plum);
  padding-bottom: 6px;
}
.frameaba52-shelf-h::before {
  content: "";
  width: 8px;
  height: 8px;
  align-self: center;
  background: var(--frameaba52-punch);
  flex: none;
  transform: rotate(45deg);
}
.frameaba52-shelf-h small {
  font-size: 11px;
  font-weight: 600;
  color: var(--frameaba52-dim);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.frameaba52-shelf-lede {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--frameaba52-mist);
}

/* Outlined tile cards, 4 columns on the phone canvas */
.frameaba52-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.frameaba52-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 96px;
  padding: 9px 3px 7px;
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  background: linear-gradient(180deg, rgba(153, 102, 204, 0.10) 0%, rgba(128, 0, 128, 0.14) 100%);
  transition: transform 0.18s ease, border-color 0.2s ease;
  text-align: center;
}
.frameaba52-tile:hover,
.frameaba52-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--frameaba52-punch);
}
.frameaba52-tile:active { transform: translateY(0); }

.frameaba52-tile img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--frameaba52-line-faint);
  background: var(--frameaba52-ink-panel);
}

.frameaba52-tile span {
  font-size: 11px;
  line-height: 1.3;
  color: var(--frameaba52-paper);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* ---------- Prose panels ---------- */
.frameaba52-panel {
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  background: linear-gradient(180deg, rgba(128, 0, 128, 0.10), rgba(44, 44, 44, 0.2));
  padding: 14px 13px;
  margin: 0 0 16px;
}

.frameaba52-panel > h2 {
  font-family: var(--frameaba52-head-font);
  font-size: 16.5px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--frameaba52-paper);
}
.frameaba52-panel > h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--frameaba52-punch);
  margin-top: 6px;
}

.frameaba52-panel h3 {
  font-family: var(--frameaba52-head-font);
  font-size: 14.5px;
  margin: 14px 0 6px;
  color: var(--frameaba52-violet);
}

.frameaba52-panel p { margin: 0 0 10px; font-size: 14px; color: var(--frameaba52-mist); }
.frameaba52-panel p:last-child { margin-bottom: 0; }
.frameaba52-panel strong { color: var(--frameaba52-paper); }
.frameaba52-panel em { font-style: normal; color: var(--frameaba52-punch); font-weight: 600; }

.frameaba52-answer {
  font-size: 14px;
  color: var(--frameaba52-paper);
  border-left: 3px solid var(--frameaba52-punch);
  padding-left: 10px;
  margin: 0 0 10px;
}

.frameaba52-steps {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  counter-reset: frameaba52step;
}
.frameaba52-steps li {
  counter-increment: frameaba52step;
  position: relative;
  padding: 0 0 8px 30px;
  font-size: 13.8px;
  color: var(--frameaba52-mist);
}
.frameaba52-steps li::before {
  content: counter(frameaba52step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frameaba52-punch);
  color: var(--frameaba52-punch);
  font-family: var(--frameaba52-head-font);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 2px;
}

.frameaba52-terms { margin: 0; }
.frameaba52-terms dt {
  font-family: var(--frameaba52-head-font);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frameaba52-violet);
  margin-top: 10px;
}
.frameaba52-terms dd {
  margin: 2px 0 0;
  font-size: 13.8px;
  color: var(--frameaba52-mist);
}

.frameaba52-updated {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--frameaba52-punch);
  border: 1px dashed var(--frameaba52-line);
  border-radius: 2px;
  padding: 2px 8px;
  margin-top: 4px;
}

/* FAQ blocks */
.frameaba52-faq {
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  margin: 0 0 10px;
  background: rgba(44, 44, 44, 0.35);
  overflow: hidden;
}
.frameaba52-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  cursor: pointer;
  font-family: var(--frameaba52-head-font);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--frameaba52-paper);
  transition: color 0.2s ease;
}
.frameaba52-faq summary::-webkit-details-marker { display: none; }
.frameaba52-faq summary:hover { color: var(--frameaba52-punch); }
.frameaba52-faq summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frameaba52-punch);
  color: var(--frameaba52-punch);
  font-size: 14px;
  border-radius: 2px;
}
.frameaba52-faq[open] summary::after { content: "\2212"; }
.frameaba52-faq-body {
  padding: 0 12px 12px;
  font-size: 13.8px;
  color: var(--frameaba52-mist);
}
.frameaba52-faq-body p { margin: 0 0 8px; }
.frameaba52-faq-body p:first-child { color: var(--frameaba52-paper); }

/* English micro-answer list */
.frameaba52-engl {
  margin: 0;
  padding: 0;
  list-style: none;
}
.frameaba52-engl li {
  border-top: 1px dashed var(--frameaba52-line-faint);
  padding: 9px 0 2px;
  font-size: 13.5px;
  color: var(--frameaba52-mist);
}
.frameaba52-engl li:first-child { border-top: none; padding-top: 0; }
.frameaba52-engl b {
  display: block;
  color: var(--frameaba52-paper);
  font-size: 13.8px;
  margin-bottom: 2px;
}

/* ---------- Homepage extended footer ---------- */
.frameaba52-extfoot {
  margin: 22px 0 0;
  border-top: 2px solid var(--frameaba52-plum);
  padding-top: 14px;
}

.frameaba52-extfoot-h {
  font-family: var(--frameaba52-head-font);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--frameaba52-paper);
}

.frameaba52-extfoot-brand {
  font-size: 13.5px;
  color: var(--frameaba52-mist);
  margin: 0 0 12px;
}

/* Horizontal shortcut strip: 4 promotion actions */
.frameaba52-shorts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 14px;
}
.frameaba52-short {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 64px;
  justify-content: center;
  padding: 8px 2px;
  border: 1px solid var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  background: linear-gradient(180deg, rgba(127, 255, 0, 0.08), rgba(128, 0, 128, 0.16));
  font-size: 11.5px;
  font-weight: 700;
  color: var(--frameaba52-paper);
  transition: border-color 0.2s ease, transform 0.18s ease;
}
.frameaba52-short svg { width: 20px; height: 20px; stroke: var(--frameaba52-punch); }
.frameaba52-short:hover { border-color: var(--frameaba52-punch); transform: translateY(-2px); color: var(--frameaba52-paper); }

/* Page directory */
.frameaba52-directory {
  border: 1px dashed var(--frameaba52-line);
  border-radius: var(--frameaba52-radius);
  padding: 10px 11px;
  margin: 0 0 12px;
}
.frameaba52-directory-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frameaba52-dim);
  margin: 0 0 8px;
}
.frameaba52-directory ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}
.frameaba52-directory a {
  display: inline-block;
  min-height: 24px;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 3px 0;
  color: var(--frameaba52-violet);
}
.frameaba52-directory a:hover { color: var(--frameaba52-punch); }

.frameaba52-closingline {
  text-align: center;
  font-size: 12.5px;
  color: var(--frameaba52-dim);
  margin: 0 0 4px;
}
.frameaba52-closingline b { color: var(--frameaba52-punch); font-weight: 700; }

/* ---------- Common footer ---------- */
.frameaba52-footer {
  text-align: center;
  padding: 12px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--frameaba52-line-faint);
  font-size: 12px;
  color: var(--frameaba52-dim);
}

/* ---------- Segmented bottom action bar ---------- */
.frameaba52-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 88;
  background: rgba(28, 23, 35, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--frameaba52-line);
  padding-bottom: env(safe-area-inset-bottom);
}

.frameaba52-bottomnav-in {
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--frameaba52-bottomnav-h);
}

.frameaba52-bottomnav a,
.frameaba52-bottomnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--frameaba52-mist);
  border-left: 1px solid rgba(153, 102, 204, 0.14);
  transition: color 0.2s ease, background 0.2s ease;
  padding: 6px 2px 4px;
  position: relative;
}
.frameaba52-bottomnav a:first-child { border-left: none; }

.frameaba52-bottomnav svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.frameaba52-bottomnav a:hover,
.frameaba52-bottomnav button:hover {
  color: var(--frameaba52-punch);
  background: rgba(127, 255, 0, 0.06);
}

/* Active role: underline marker + punch color */
.frameaba52-bottomnav .frameaba52-nav-on { color: var(--frameaba52-punch); }
.frameaba52-bottomnav .frameaba52-nav-on::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--frameaba52-punch);
  border-radius: 2px;
}

/* ---------- Small canvas safety ---------- */
@media (max-width: 339px) {
  .frameaba52-register { padding: 8px 10px; font-size: 12.5px; }
  .frameaba52-login { padding: 7px 9px; font-size: 12.5px; }
  .frameaba52-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 375px) {
  .frameaba52-grid { gap: 7px; }
  .frameaba52-tile img { width: 48px; height: 48px; }
}

/* Accessible additions retain the original outlined-tile language. */
.frameaba52-register, .frameaba52-login { min-height: 44px; }
.frameaba52-actions { gap: 5px; }
.frameaba52-brand { gap: 5px; }
.frameaba52-brand-name { font-size: 17px; }
.frameaba52-topbar, .frameaba52-bottomnav { max-width: 430px; margin-inline: auto; }
.frameaba52-menu-open { overflow: hidden; }
.frameaba52-drawer { right: max(0px, calc((100vw - 430px) / 2)); }
html { scroll-padding-top: 72px; }
.frameaba52-main [id] { scroll-margin-top: 72px; }
.frameaba52-ready .frameaba52-drawer:not(.frameaba52-drawer-open) { visibility: hidden; }
html:not(.frameaba52-ready) .frameaba52-drawer { position: relative; transform: none; width: auto; margin-top: 58px; z-index: 1; }
html:not(.frameaba52-ready) .frameaba52-drawer-close,
html:not(.frameaba52-ready) .frameaba52-burger,
html:not(.frameaba52-ready) .frameaba52-carousel-controls { display: none; }
html:not(.frameaba52-ready) .frameaba52-main { padding-top: 14px; }
html:not(.frameaba52-ready) .frameaba52-slide:first-child { opacity: 1; visibility: visible; }
.frameaba52-slide[hidden] { display: none; }
.frameaba52-slide img { aspect-ratio: 1915 / 450; object-fit: contain; }
.frameaba52-carousel-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; background: var(--frameaba52-ink-deep); }
.frameaba52-carousel-controls > button { min-width: 44px; min-height: 44px; padding: 6px 9px; color: var(--frameaba52-punch); }
.frameaba52-dots { position: static; gap: 0; }
.frameaba52-dot { width: 44px; height: 44px; }
.frameaba52-slide-tag { position: static; display: block; border: 0; text-align: left; padding: 6px 9px; }
.frameaba52-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.frameaba52-tile span { display: block; overflow: visible; -webkit-line-clamp: unset; }
.frameaba52-tile { min-width: 0; }
.frameaba52-shelf-h { flex-wrap: wrap; }
.frameaba52-panel h3, .frameaba52-terms dt, .frameaba52-directory a { color: #cba5ed; }
.frameaba52-panel a:not(.frameaba52-cta), .frameaba52-faq-body a { text-decoration: underline; text-underline-offset: 3px; }
.frameaba52-directory a { display: flex; align-items: center; min-height: 44px; }
.frameaba52-prose-link { display: inline-flex; min-height: 44px; align-items: center; }
.frameaba52-main { padding-bottom: 24px; overflow-wrap: anywhere; }
.frameaba52-footer { margin-bottom: calc(var(--frameaba52-bottomnav-h) + 20px + env(safe-area-inset-bottom)); }
.frameaba52-facts { padding-left: 20px; color: var(--frameaba52-mist); font-size: 14px; }
.frameaba52-facts li { margin-bottom: 7px; }
.frameaba52-breadcrumb { font-size: 12px; margin: 0 0 10px; color: var(--frameaba52-mist); }
.frameaba52-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.frameaba52-audit { border-left: 3px solid var(--frameaba52-violet); padding: 0 0 0 13px; margin: 22px 0; }
.frameaba52-audit h2 { font-size: 18px; line-height: 1.5; margin: 0 0 10px; }
.frameaba52-audit p, .frameaba52-audit li { color: var(--frameaba52-mist); font-size: 14px; }
.frameaba52-audit h3 { font-size: 15px; color: #cba5ed; }
.frameaba52-audit ol { padding-left: 22px; }
.frameaba52-audit li { margin-bottom: 12px; padding-left: 3px; }
.frameaba52-table { border-collapse: collapse; width: 100%; font-size: 13px; table-layout: fixed; margin: 12px 0; }
.frameaba52-table th, .frameaba52-table td { border: 1px solid var(--frameaba52-line); padding: 9px 7px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.frameaba52-table th { background: var(--frameaba52-violet-soft); color: var(--frameaba52-paper); }
.frameaba52-table td { color: var(--frameaba52-mist); }
.frameaba52-table caption { text-align: left; color: var(--frameaba52-punch); margin-bottom: 6px; }
.frameaba52-formula { border-block: 1px dashed var(--frameaba52-line); padding: 12px 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
