/* ==========================================================================
   responsive-ad4bdd-visuals.css — mcw87.homes mobile-first visual system
   Class contract: every selector uses the "framed4bdd-" prefix.
   Palette: #C71585 / #FF0000 / #B03060 / #FFB347 / #34495E
            (dark slate base, warm light text, rose/amber accents)
   Direction: poster-weight headings + narrow body copy, low-radius sectioned
   panels, mixed large/small game cards, short-list info rhythm, feedback
   motion reserved for key CTAs only.
   Canvas: stable 320-430px phone column, centered on wide screens.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --framed4bdd-deep: #131b23;      /* page surround behind the canvas */
  --framed4bdd-canvas: #1e2b37;    /* phone canvas background          */
  --framed4bdd-panel: #263644;     /* raised panel                     */
  --framed4bdd-panel-2: #22303c;   /* sunken panel                     */
  --framed4bdd-line: #3a5063;      /* hairline separators              */
  --framed4bdd-ink: #f4eae7;       /* primary light text               */
  --framed4bdd-muted: #c8b7bb;     /* secondary text                   */
  --framed4bdd-rose: #c71585;      /* primary accent                   */
  --framed4bdd-red: #ff0000;       /* live / hot signal only           */
  --framed4bdd-wine: #b03060;      /* gradient partner of rose         */
  --framed4bdd-amber: #ffb347;     /* highlight + active marker        */
  --framed4bdd-shadow: 0 10px 26px rgba(5, 10, 15, 0.55);
  --framed4bdd-r: 6px;             /* low corner radius                */
  --framed4bdd-top-h: 56px;        /* fixed topbar height              */
  --framed4bdd-nav-h: 60px;        /* fixed bottom nav height          */
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--framed4bdd-deep);
  color: var(--framed4bdd-ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0.1px;
  min-width: 320px;
}

body.framed4bdd-noscroll { overflow: hidden; }

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

a { color: var(--framed4bdd-amber); text-decoration: none; }
a:hover { text-decoration: underline; }

.framed4bdd-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--framed4bdd-canvas);
  border-left: 1px solid var(--framed4bdd-line);
  border-right: 1px solid var(--framed4bdd-line);
}

/* Visible keyboard focus for every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--framed4bdd-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- topbar */
.framed4bdd-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--framed4bdd-top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px 0 12px;
  background: rgba(24, 34, 44, 0.97);
  border-bottom: 1px solid var(--framed4bdd-line);
  z-index: 70;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Brand block: logo image + site name only, flush to the left edge */
.framed4bdd-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.framed4bdd-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--framed4bdd-r);
  border: 1px solid var(--framed4bdd-line);
  flex: 0 0 auto;
}

.framed4bdd-sitename {
  font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Tahoma, sans-serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.6px;
  color: var(--framed4bdd-ink);
  white-space: nowrap;
}

.framed4bdd-sitename em {
  font-style: normal;
  color: var(--framed4bdd-amber);
}

/* Action cluster: register / login / menu trigger */
.framed4bdd-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------- buttons */
.framed4bdd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--framed4bdd-r);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255, 179, 71, 0.18);
}

.framed4bdd-btn--primary {
  background: linear-gradient(135deg, var(--framed4bdd-rose), var(--framed4bdd-wine));
  color: #ffffff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

/* Motion budget: only key CTAs answer the press */
.framed4bdd-btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.framed4bdd-btn--ghost {
  background: transparent;
  border-color: var(--framed4bdd-amber);
  color: var(--framed4bdd-amber);
}

.framed4bdd-btn--block { width: 100%; }
.framed4bdd-btn--lg { min-height: 50px; font-size: 15px; padding: 0 18px; }

/* Compact topbar variant so three controls share the 320px row */
.framed4bdd-btn--top { min-height: 38px; padding: 0 10px; font-size: 12.5px; }

/* Menu trigger: three stacked bars, 44px touch square */
.framed4bdd-menubtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--framed4bdd-panel-2);
  border: 1px solid var(--framed4bdd-line);
  border-radius: var(--framed4bdd-r);
  cursor: pointer;
}

.framed4bdd-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--framed4bdd-amber);
  border-radius: 1px;
}

/* --------------------------------------------------------- stacked menu */
.framed4bdd-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(19, 27, 35, 0.97);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.framed4bdd-menu--show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.framed4bdd-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--framed4bdd-line);
}

.framed4bdd-menu-title {
  margin: 0;
  font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--framed4bdd-amber);
}

.framed4bdd-menu-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--framed4bdd-line);
  border-radius: var(--framed4bdd-r);
  color: var(--framed4bdd-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.framed4bdd-menu-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  overflow-y: auto;
}

.framed4bdd-menu-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 50px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(58, 80, 99, 0.55);
  color: var(--framed4bdd-ink);
  font-size: 15px;
  font-weight: 600;
}

.framed4bdd-menu-link:hover { text-decoration: none; color: var(--framed4bdd-amber); }

.framed4bdd-menu-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--framed4bdd-rose);
}

/* Current page: label emphasis through weight + amber tint */
.framed4bdd-menu-link--on {
  color: var(--framed4bdd-amber);
  font-weight: 900;
}

.framed4bdd-menu-link--on .framed4bdd-menu-num { color: var(--framed4bdd-amber); }

.framed4bdd-menu-foot {
  margin-top: auto;
  padding-top: 14px;
}

/* ------------------------------------------------------------------ main */
.framed4bdd-main {
  padding: calc(var(--framed4bdd-top-h) + 12px) 12px
           calc(var(--framed4bdd-nav-h) + 26px + env(safe-area-inset-bottom));
}

/* Poster-voice headings */
.framed4bdd-h1,
.framed4bdd-h2,
.framed4bdd-h3 {
  font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Tahoma, sans-serif;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--framed4bdd-ink);
  overflow-wrap: break-word;
}

.framed4bdd-h1 {
  font-size: 25px;
  line-height: 1.22;
  margin: 2px 0 10px;
}

.framed4bdd-h1 b {
  color: var(--framed4bdd-amber);
  font-weight: 900;
}

.framed4bdd-h2 {
  font-size: 18.5px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.framed4bdd-h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--framed4bdd-amber);
}

/* Narrow reading measure for prose blocks */
.framed4bdd-lede,
.framed4bdd-prose {
  max-width: 44ch;
  color: var(--framed4bdd-muted);
  margin: 0 0 10px;
}

.framed4bdd-lede { font-size: 14.5px; color: var(--framed4bdd-ink); }

/* Quick fact strip under the intro */
.framed4bdd-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 18px;
}

.framed4bdd-fact {
  background: var(--framed4bdd-panel-2);
  border: 1px solid var(--framed4bdd-line);
  border-radius: var(--framed4bdd-r);
  padding: 10px 6px;
  text-align: center;
}

.framed4bdd-fact-n {
  display: block;
  font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Tahoma, sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: var(--framed4bdd-amber);
  line-height: 1.1;
}

.framed4bdd-fact-t {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--framed4bdd-muted);
  margin-top: 4px;
}

/* -------------------------------------------------------------- carousel */
.framed4bdd-crsl {
  position: relative;
  margin: 0 0 14px;
  border: 1px solid var(--framed4bdd-line);
  border-radius: var(--framed4bdd-r);
  overflow: hidden;
  background: var(--framed4bdd-panel-2);
}

.framed4bdd-cviewport { overflow: hidden; }

.framed4bdd-ctrack {
  display: flex;
  transition: transform 0.32s ease;
}

.framed4bdd-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  cursor: pointer;
}

.framed4bdd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framed4bdd-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(19, 27, 35, 0) 0%, rgba(19, 27, 35, 0.92) 78%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.framed4bdd-slide-tag {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--framed4bdd-rose);
  color: #ffffff;
}

.framed4bdd-slide-txt {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--framed4bdd-ink);
}

.framed4bdd-cdots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.framed4bdd-cdot {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.framed4bdd-cdot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgba(244, 234, 231, 0.42);
}

.framed4bdd-cdot--on::before { background: var(--framed4bdd-amber); }

/* ------------------------------------------------------------------ chips */
.framed4bdd-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 0 4px;
  scrollbar-width: none;
}

.framed4bdd-chips::-webkit-scrollbar { display: none; }

.framed4bdd-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--framed4bdd-line);
  border-radius: var(--framed4bdd-r);
  background: var(--framed4bdd-panel-2);
  color: var(--framed4bdd-ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.framed4bdd-chip:hover { text-decoration: none; border-color: var(--framed4bdd-amber); }
.framed4bdd-chip b { color: var(--framed4bdd-amber); font-weight: 800; margin-right: 4px; }

/* --------------------------------------------------------------- sections */
.framed4bdd-sec {
  margin: 0 0 22px;
  padding-top: 6px;
  scroll-margin-top: calc(var(--framed4bdd-top-h) + 10px);
}

.framed4bdd-sec-head {
  border-left: 3px solid var(--framed4bdd-rose);
  padding: 2px 0 2px 10px;
  margin-bottom: 10px;
}

.framed4bdd-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--framed4bdd-muted);
}

.framed4bdd-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--framed4bdd-red);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.18);
}

.framed4bdd-kicker--live .framed4bdd-kicker-dot {
  animation: framed4bddpulse 1.6s ease-in-out infinite;
}

@keyframes framed4bddpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.framed4bdd-sec-note {
  margin: 0;
  font-size: 13px;
  color: var(--framed4bdd-muted);
  max-width: 46ch;
}

.framed4bdd-sec-more {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--framed4bdd-muted);
}

/* ------------------------------------------------------------ game grid */
.framed4bdd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.framed4bdd-gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--framed4bdd-panel-2);
  border: 1px solid var(--framed4bdd-line);
  border-radius: var(--framed4bdd-r);
  padding: 5px 5px 7px;
  color: var(--framed4bdd-ink);
  cursor: pointer;
  min-width: 0;
}

.framed4bdd-gcard:hover { text-decoration: none; border-color: var(--framed4bdd-amber); }

.framed4bdd-gcard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--framed4bdd-panel);
}

.framed4bdd-gcard-name {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  color: var(--framed4bdd-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

/* Mixed card rhythm: each section opens with one 2x2 feature tile */
.framed4bdd-gcard--xl {
  grid-column: span 2;
  grid-row: span 2;
  padding: 8px 8px 10px;
  background: linear-gradient(180deg, var(--framed4bdd-panel), var(--framed4bdd-panel-2));
  border-color: var(--framed4bdd-wine);
}

.framed4bdd-gcard--xl .framed4bdd-gcard-name {
  font-size: 13.5px;
  -webkit-line-clamp: 3;
  min-height: 34px;
  font-weight: 800;
}

.framed4bdd-gtag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--framed4bdd-rose);
  color: #ffffff;
}

.framed4bdd-gtag--hot { background: var(--framed4bdd-red); }

/* --------------------------------------------------------- text modules */
.framed4bdd-mod {
  margin: 0 0 22px;
  background: var(--framed4bdd-panel-2);
  border: 1px solid var(--framed4bdd-line);
  border-radius: var(--framed4bdd-r);
  padding: 14px 12px 12px;
}

.framed4bdd-mod-kicker {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--framed4bdd-rose);
}

/* Q&A pairs */
.framed4bdd-qa { margin: 12px 0 0; padding: 0; border-top: 1px dashed var(--framed4bdd-line); }

.framed4bdd-qa-item { padding: 10px 0 2px; }

.framed4bdd-qa-q {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--framed4bdd-amber);
}

.framed4bdd-qa-a {
  margin: 0;
  font-size: 13px;
  color: var(--framed4bdd-muted);
  max-width: 46ch;
}

/* Play-style comparison rows */
.framed4bdd-style-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 80, 99, 0.5);
}

.framed4bdd-style-row:last-child { border-bottom: 0; }

.framed4bdd-style-name {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--framed4bdd-ink);
  line-height: 1.35;
}

.framed4bdd-style-name span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--framed4bdd-rose);
  letter-spacing: 0.6px;
}

.framed4bdd-style-focus {
  margin: 0;
  font-size: 12.5px;
  color: var(--framed4bdd-muted);
}

/* Checklist */
.framed4bdd-check { list-style: none; margin: 8px 0 0; padding: 0; }

.framed4bdd-check li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 13px;
  color: var(--framed4bdd-muted);
  border-bottom: 1px solid rgba(58, 80, 99, 0.45);
}

.framed4bdd-check li:last-child { border-bottom: 0; }

.framed4bdd-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--framed4bdd-amber);
}

.framed4bdd-check b { color: var(--framed4bdd-ink); font-weight: 800; }

/* Numbered steps */
.framed4bdd-steps { list-style: none; margin: 10px 0 0; padding: 0; }

.framed4bdd-steps li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(58, 80, 99, 0.5);
}

.framed4bdd-steps li:last-child { border-bottom: 0; }

.framed4bdd-step-num {
  flex: 0 0 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--framed4bdd-r);
  background: linear-gradient(135deg, var(--framed4bdd-rose), var(--framed4bdd-wine));
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
}

.framed4bdd-step-body { min-width: 0; }

.framed4bdd-step-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--framed4bdd-ink);
}

.framed4bdd-step-body span {
  font-size: 12.5px;
  color: var(--framed4bdd-muted);
}

/* Achievement milestones */
.framed4bdd-mile { list-style: none; margin: 10px 0 0; padding: 0; }

.framed4bdd-mile li {
  position: relative;
  padding: 0 0 14px 20px;
  border-left: 2px solid var(--framed4bdd-wine);
  margin-left: 6px;
}

.framed4bdd-mile li:last-child { padding-bottom: 2px; }

.framed4bdd-mile li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--framed4bdd-amber);
  border: 2px solid var(--framed4bdd-canvas);
}

.framed4bdd-mile strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--framed4bdd-ink);
}

.framed4bdd-mile span {
  font-size: 12.5px;
  color: var(--framed4bdd-muted);
}

/* CTA band */
.framed4bdd-ctaband {
  margin: 0 0 22px;
  padding: 16px 14px;
  border-radius: var(--framed4bdd-r);
  border: 1px solid var(--framed4bdd-wine);
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(199, 21, 133, 0.32) 0%, rgba(30, 43, 55, 0) 55%),
    var(--framed4bdd-panel-2);
}

.framed4bdd-ctaband-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.framed4bdd-ctaband-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--framed4bdd-muted);
}

/* ------------------------------------------------------- extended footer */
.framed4bdd-xfoot {
  margin: 26px 0 0;
  border-top: 2px solid var(--framed4bdd-rose);
  background: var(--framed4bdd-panel-2);
  border-radius: 0 0 var(--framed4bdd-r) var(--framed4bdd-r);
  padding: 4px 12px 2px;
}

.framed4bdd-xgroup { padding: 12px 0; border-bottom: 1px solid var(--framed4bdd-line); }
.framed4bdd-xgroup:last-child { border-bottom: 0; }

.framed4bdd-xtitle {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--framed4bdd-amber);
}

.framed4bdd-dir { list-style: none; margin: 0; padding: 0; }

.framed4bdd-dir li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(58, 80, 99, 0.4);
}

.framed4bdd-dir li:last-child { border-bottom: 0; }

.framed4bdd-dir li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--framed4bdd-rose);
  align-self: center;
}

.framed4bdd-dir a {
  font-size: 13px;
  font-weight: 700;
  color: var(--framed4bdd-ink);
}

.framed4bdd-dir a:hover { color: var(--framed4bdd-amber); }

.framed4bdd-dir small {
  display: block;
  font-size: 11.5px;
  color: var(--framed4bdd-muted);
  font-weight: 400;
}

.framed4bdd-xbrand {
  margin: 0;
  font-size: 12.5px;
  color: var(--framed4bdd-muted);
}

/* Promo cluster inside the extended footer */
.framed4bdd-promos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.framed4bdd-promos button {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  background: var(--framed4bdd-panel);
  border: 1px solid var(--framed4bdd-wine);
  border-radius: var(--framed4bdd-r);
  color: var(--framed4bdd-ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.framed4bdd-promos button small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--framed4bdd-amber);
}

.framed4bdd-promos button:active { border-color: var(--framed4bdd-amber); }

.framed4bdd-xnote {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--framed4bdd-muted);
}

/* --------------------------------------------------------- common footer */
.framed4bdd-foot {
  padding: 14px 12px 10px;
  text-align: center;
  border-top: 1px solid var(--framed4bdd-line);
  font-size: 12px;
  color: var(--framed4bdd-muted);
}

.framed4bdd-foot b { color: var(--framed4bdd-amber); font-weight: 800; }

/* ------------------------------------------------------------ bottom nav */
.framed4bdd-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--framed4bdd-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: stretch;
  background: rgba(22, 32, 43, 0.98);
  border-top: 1px solid var(--framed4bdd-line);
  z-index: 75;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.framed4bdd-bnav-item {
  flex: 1 1 20%;
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  border: 0;
  border-left: 1px solid rgba(58, 80, 99, 0.5);
  background: transparent;
  color: var(--framed4bdd-muted);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255, 179, 71, 0.15);
}

.framed4bdd-bnav-item:first-child { border-left: 0; }
.framed4bdd-bnav-item:hover { text-decoration: none; color: var(--framed4bdd-ink); }

.framed4bdd-bnav-ico {
  width: 22px;
  height: 22px;
  display: block;
}

.framed4bdd-bnav-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Active segment: light top marker + emphasized label */
.framed4bdd-bnav-item--on { color: var(--framed4bdd-amber); }

.framed4bdd-bnav-item--on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26%;
  right: 26%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--framed4bdd-amber);
}

.framed4bdd-bnav-item--on .framed4bdd-bnav-label {
  font-weight: 900;
  color: var(--framed4bdd-amber);
}

/* --------------------------------------------------------- narrow canvas */
/* Refined spacing for the smallest supported phones */
@media (max-width: 430px) {
  .framed4bdd-h1 { font-size: 23px; }
  .framed4bdd-h2 { font-size: 17.5px; }
  .framed4bdd-main { padding-left: 10px; padding-right: 10px; }
  .framed4bdd-grid { gap: 7px; }
  .framed4bdd-gcard-name { font-size: 10.5px; }
  .framed4bdd-btn--top { padding: 0 9px; }
  .framed4bdd-topacts { gap: 4px; }
  .framed4bdd-topbar { padding-left: 8px; padding-right: 8px; }
  .framed4bdd-sitename { font-size: 17px; }
  .framed4bdd-btn--top { padding-left: 7px; padding-right: 7px; font-size: 11.5px; }
}

/* ------------------------------------------------------- wider phones  */
@media (min-width: 390px) {
  .framed4bdd-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
  .framed4bdd-promos button { min-height: 56px; }
}

/* Desktop keeps the same centered phone canvas and bottom bar */
@media (min-width: 431px) {
  .framed4bdd-shell { box-shadow: var(--framed4bdd-shadow); }
  body { font-size: 14.5px; }
}

/* Respect users who prefer calmer interfaces */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .framed4bdd-ctrack { transition: none; }
  .framed4bdd-menu { transition: none; }
  .framed4bdd-kicker--live .framed4bdd-kicker-dot { animation: none; }
  .framed4bdd-btn--primary:active { transform: none; }
}
