/* ============================================================
   QQ881 (qq881.sbs) - dynamic-d00045-surface.css
   Mobile-first surface for Vietnamese betting audience.
   Palette: #4B0082 | #3A3A3A | #9400D3
   Direction: rounded heading + compact body, round buttons /
   square cards, mixed large/small game cards, question-driven
   rhythm, restrained motion, icon+text compact CTAs.
   All class names share the frame0045b- prefix.
   ============================================================ */

/* ---------- 1. Fonts & tokens ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
  --frame0045b-ink:        #4B0082;
  --frame0045b-ink-2:      #3A3A3A;
  --frame0045b-violet:     #9400D3;
  --frame0045b-violet-2:   #b347ec;
  --frame0045b-night:      #150827;
  --frame0045b-night-2:    #1f0f3a;
  --frame0045b-surface:    #27134a;
  --frame0045b-surface-2:  #311a5c;
  --frame0045b-line:       #43246e;
  --frame0045b-text:       #f6f1ff;
  --frame0045b-text-dim:   #b7a4d8;
  --frame0045b-text-mute:  #8975b3;
  --frame0045b-gold:       #f6c542;
  --frame0045b-gold-2:     #ffe08a;
  --frame0045b-rose:       #ff5d8a;
  --frame0045b-teal:       #38e0c8;
  --frame0045b-shadow:     0 10px 30px rgba(8, 2, 22, .42);
  --frame0045b-shadow-sm:  0 4px 12px rgba(8, 2, 22, .38);
  --frame0045b-radius-lg:  20px;
  --frame0045b-radius-md:  12px;
  --frame0045b-radius-sm:  6px;
  --frame0045b-max:        480px;
  --frame0045b-header-h:   58px;
  --frame0045b-bottomnav-h: 66px;
  --frame0045b-font-head:  'Fredoka', system-ui, 'Segoe UI', sans-serif;
  --frame0045b-font-body:  'Be Vietnam Pro', system-ui, 'Segoe UI', sans-serif;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--frame0045b-font-body);
  background: radial-gradient(1200px 600px at 50% -10%, #2c1257 0%, var(--frame0045b-night) 60%) fixed,
              var(--frame0045b-night);
  color: var(--frame0045b-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--frame0045b-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
button,
input,
select,
textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--frame0045b-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Page shell ---------- */
.frame0045b-page {
  max-width: var(--frame0045b-max);
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(75, 0, 130, .12) 0%, rgba(21, 8, 39, 0) 280px),
    var(--frame0045b-night);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,.35);
}

.frame0045b-main {
  padding-top: calc(var(--frame0045b-header-h) + 6px);
}

/* ---------- 4. Header ---------- */
.frame0045b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(21, 8, 39, .96), rgba(21, 8, 39, .88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--frame0045b-line);
}

.frame0045b-header-inner {
  max-width: var(--frame0045b-max);
  margin: 0 auto;
  height: var(--frame0045b-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.frame0045b-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.frame0045b-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--frame0045b-violet), 0 4px 10px rgba(148, 0, 211, .35);
  flex-shrink: 0;
}

.frame0045b-brandname {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .5px;
  background: linear-gradient(90deg, var(--frame0045b-gold-2), var(--frame0045b-gold) 60%, var(--frame0045b-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.frame0045b-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.frame0045b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--frame0045b-font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 36px;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
  line-height: 1;
}

.frame0045b-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.frame0045b-btn:active { transform: scale(.96); }

.frame0045b-btn--register {
  background: linear-gradient(135deg, var(--frame0045b-gold), var(--frame0045b-rose) 110%);
  color: #2a0a3d;
  box-shadow: 0 6px 14px rgba(246, 93, 138, .35);
}

.frame0045b-btn--login {
  background: rgba(148, 0, 211, .12);
  color: var(--frame0045b-text);
  border-color: var(--frame0045b-violet);
}

.frame0045b-btn--ghost {
  background: transparent;
  color: var(--frame0045b-text-dim);
  border-color: var(--frame0045b-line);
}

.frame0045b-btn--block {
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  min-height: 46px;
}

.frame0045b-btn--lg {
  padding: 14px 18px;
  font-size: 15px;
  min-height: 48px;
}

.frame0045b-menubtn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(148, 0, 211, .14);
  border: 1px solid var(--frame0045b-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--frame0045b-text);
  transition: background .15s ease, transform .12s ease;
}

.frame0045b-menubtn:hover { background: rgba(148, 0, 211, .24); }
.frame0045b-menubtn:active { transform: scale(.94); }
.frame0045b-menubtn svg { width: 18px; height: 18px; }
.frame0045b-menubtn[data-open="true"] .frame0045b-ico-bars { display: none; }
.frame0045b-menubtn[data-open="false"] .frame0045b-ico-cross { display: none; }

/* ---------- 5. Drawer menu ---------- */
.frame0045b-menu {
  position: fixed;
  top: var(--frame0045b-header-h);
  left: 0;
  right: 0;
  z-index: 55;
  max-width: var(--frame0045b-max);
  margin: 0 auto;
  background: linear-gradient(180deg, #1f0f3a 0%, #160a2c 100%);
  border-bottom: 1px solid var(--frame0045b-line);
  box-shadow: var(--frame0045b-shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}

.frame0045b-menu[data-open="true"] { max-height: 540px; }

.frame0045b-menu-inner {
  padding: 14px 14px 18px;
  display: grid;
  gap: 12px;
}

.frame0045b-menu-group {
  border: 1px solid var(--frame0045b-line);
  border-radius: var(--frame0045b-radius-md);
  padding: 10px 12px;
  background: rgba(75, 0, 130, .12);
}

.frame0045b-menu-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--frame0045b-text-mute);
  margin-bottom: 6px;
  font-weight: 600;
}

.frame0045b-menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.frame0045b-menu-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--frame0045b-text);
  font-weight: 500;
  transition: background .14s ease, transform .12s ease;
}

.frame0045b-menu-link:hover,
.frame0045b-menu-link:focus-visible {
  background: rgba(148, 0, 211, .22);
}

.frame0045b-menu-link:active { transform: scale(.97); }

.frame0045b-menu-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--frame0045b-violet-2);
  flex-shrink: 0;
}

.frame0045b-menu-link[aria-current="page"] {
  background: rgba(246, 197, 66, .14);
  color: var(--frame0045b-gold-2);
}
.frame0045b-menu-link[aria-current="page"]::before { background: var(--frame0045b-gold); }

.frame0045b-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.frame0045b-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 14, .55);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.frame0045b-scrim[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

/* ---------- 6. Hero carousel ---------- */
.frame0045b-hero {
  position: relative;
  margin: 12px 0 4px;
}

.frame0045b-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.frame0045b-slides::-webkit-scrollbar { display: none; }

.frame0045b-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--frame0045b-radius-lg);
  box-shadow: var(--frame0045b-shadow);
  cursor: pointer;
}

.frame0045b-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.frame0045b-slide[data-active="true"] .frame0045b-slide-img {
  transform: scale(1.1);
}

.frame0045b-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 8, 39, 0) 30%, rgba(21, 8, 39, .85) 100%);
  pointer-events: none;
}

.frame0045b-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 16px;
  z-index: 2;
}

.frame0045b-slide-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(246, 197, 66, .9);
  color: #2a0a3d;
  margin-bottom: 7px;
}

.frame0045b-slide-title {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.frame0045b-slide-text {
  font-size: 12.5px;
  color: var(--frame0045b-text-dim);
  margin-top: 4px;
  max-width: 90%;
}

.frame0045b-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--frame0045b-gold-2);
}

.frame0045b-hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}

.frame0045b-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(246, 241, 255, .25);
  transition: width .2s ease, background .2s ease;
}

.frame0045b-dot[data-active="true"] {
  width: 22px;
  background: linear-gradient(90deg, var(--frame0045b-gold), var(--frame0045b-rose));
}

/* ---------- 7. Sections ---------- */
.frame0045b-section {
  padding: 18px 12px;
  margin-top: 6px;
}

.frame0045b-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--frame0045b-violet-2);
  margin-bottom: 6px;
}

.frame0045b-section-eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--frame0045b-violet-2);
}

.frame0045b-section-title {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.22;
  color: var(--frame0045b-text);
}

.frame0045b-section-title em {
  font-style: normal;
  color: var(--frame0045b-gold-2);
}

.frame0045b-section-intro {
  font-size: 13.5px;
  color: var(--frame0045b-text-dim);
  margin-top: 6px;
}

/* ---------- 8. Intro / lead ---------- */
.frame0045b-lead {
  padding: 8px 14px 4px;
}

.frame0045b-lead h1 {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: var(--frame0045b-text);
}

.frame0045b-lead h1 span {
  background: linear-gradient(90deg, var(--frame0045b-gold-2), var(--frame0045b-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.frame0045b-lead p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--frame0045b-text-dim);
}

.frame0045b-lead-cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ---------- 9. Quick stats ---------- */
.frame0045b-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 14px 8px;
}

.frame0045b-stat {
  background: linear-gradient(180deg, var(--frame0045b-surface), var(--frame0045b-surface-2));
  border: 1px solid var(--frame0045b-line);
  border-radius: var(--frame0045b-radius-md);
  padding: 10px 8px;
  text-align: center;
}

.frame0045b-stat-num {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--frame0045b-gold-2);
  line-height: 1;
}

.frame0045b-stat-label {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--frame0045b-text-mute);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ---------- 10. Category section ---------- */
.frame0045b-cat {
  padding: 18px 12px;
}

.frame0045b-cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--frame0045b-line);
}

.frame0045b-cat-eyebrow {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--frame0045b-violet-2);
}

.frame0045b-cat-title {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  margin-top: 3px;
  color: var(--frame0045b-text);
}

.frame0045b-cat-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--frame0045b-gold-2);
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--frame0045b-line);
  flex-shrink: 0;
  transition: background .15s ease;
}

.frame0045b-cat-more:hover { background: rgba(246, 197, 66, .1); }

/* ---------- 11. Featured strip (large cards) ---------- */
.frame0045b-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.frame0045b-featurecard {
  position: relative;
  border-radius: var(--frame0045b-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  cursor: pointer;
  border: 1px solid var(--frame0045b-line);
  background: var(--frame0045b-surface);
  transition: transform .14s ease;
}

.frame0045b-featurecard:active { transform: scale(.98); }

.frame0045b-featurecard:first-child { aspect-ratio: 4 / 5; }

.frame0045b-featurecard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame0045b-featurecard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 8, 39, 0) 40%, rgba(21, 8, 39, .9) 100%);
}

.frame0045b-featurecard-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 10px;
  z-index: 2;
}

.frame0045b-featurecard-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--frame0045b-rose);
  color: #fff;
  margin-bottom: 5px;
}

.frame0045b-featurecard-tag--gold { background: var(--frame0045b-gold); color: #2a0a3d; }
.frame0045b-featurecard-tag--teal { background: var(--frame0045b-teal); color: #08261f; }

.frame0045b-featurecard-name {
  font-family: var(--frame0045b-font-head);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
}

/* ---------- 12. Game grid & cards ---------- */
.frame0045b-grid {
  display: grid;
  gap: 8px 7px;
}

.frame0045b-grid--4 { grid-template-columns: repeat(4, 1fr); }
.frame0045b-grid--5 { grid-template-columns: repeat(5, 1fr); }

.frame0045b-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  cursor: pointer;
  border-radius: var(--frame0045b-radius-sm);
  padding: 4px 3px 6px;
  background: transparent;
  transition: transform .12s ease, background .18s ease;
  min-width: 0;
}

.frame0045b-card:hover {
  background: rgba(148, 0, 211, .14);
}

.frame0045b-card:active { transform: scale(.95); }

.frame0045b-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a1450, #1a0a32);
  border: 1px solid var(--frame0045b-line);
}

.frame0045b-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  box-shadow: inset 0 0 12px rgba(148, 0, 211, .25);
  pointer-events: none;
}

.frame0045b-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame0045b-card-name {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--frame0045b-text);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  word-break: break-word;
}

.frame0045b-card-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(246, 197, 66, .95);
  color: #2a0a3d;
  z-index: 1;
}

.frame0045b-card-badge--hot { background: var(--frame0045b-rose); color: #fff; }
.frame0045b-card-badge--new { background: var(--frame0045b-teal); color: #08261f; }

/* ---------- 13. Mini horizontal scroller ---------- */
.frame0045b-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 12px 6px;
  scrollbar-width: none;
  margin: 0 -12px;
}

.frame0045b-row::-webkit-scrollbar { display: none; }

.frame0045b-row .frame0045b-card {
  flex: 0 0 84px;
  scroll-snap-align: start;
}

/* ---------- 14. Winners ---------- */
.frame0045b-winners {
  background: linear-gradient(180deg, rgba(75, 0, 130, .14), rgba(75, 0, 130, .03));
  border-top: 1px solid var(--frame0045b-line);
  border-bottom: 1px solid var(--frame0045b-line);
}

.frame0045b-winners-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.frame0045b-winner {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--frame0045b-surface);
  border: 1px solid var(--frame0045b-line);
  border-radius: 10px;
}

.frame0045b-winner-ava {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--frame0045b-violet), var(--frame0045b-ink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--frame0045b-gold-2);
}

.frame0045b-winner-main { min-width: 0; }

.frame0045b-winner-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--frame0045b-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame0045b-winner-game {
  font-size: 11px;
  color: var(--frame0045b-text-mute);
  margin-top: 1px;
}

.frame0045b-winner-amount {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--frame0045b-teal);
  text-align: right;
  white-space: nowrap;
}

.frame0045b-winner-amount small {
  display: block;
  font-size: 9.5px;
  color: var(--frame0045b-text-mute);
  font-weight: 500;
  font-family: var(--frame0045b-font-body);
}

/* ---------- 15. Tricks (Q&A driven) ---------- */
.frame0045b-qa {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 11px;
}

.frame0045b-qa-item {
  background: var(--frame0045b-surface);
  border: 1px solid var(--frame0045b-line);
  border-left: 3px solid var(--frame0045b-violet);
  border-radius: 10px;
  padding: 11px 12px;
}

.frame0045b-qa-q {
  font-family: var(--frame0045b-font-head);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: var(--frame0045b-gold-2);
  display: flex;
  gap: 7px;
}

.frame0045b-qa-q::before {
  content: "Q";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(246, 197, 66, .15);
  color: var(--frame0045b-gold);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.frame0045b-qa-a {
  margin-top: 6px;
  font-size: 13px;
  color: var(--frame0045b-text-dim);
  display: flex;
  gap: 7px;
}

.frame0045b-qa-a::before {
  content: "A";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(148, 0, 211, .2);
  color: var(--frame0045b-violet-2);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---------- 16. Entity relationship summary ---------- */
.frame0045b-rel {
  background: linear-gradient(180deg, rgba(148, 0, 211, .12), rgba(75, 0, 130, .05));
  border: 1px solid var(--frame0045b-line);
  border-radius: var(--frame0045b-radius-md);
  padding: 14px;
  margin-top: 12px;
}

.frame0045b-rel-list {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.frame0045b-rel-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
}

.frame0045b-rel-key {
  font-family: var(--frame0045b-font-head);
  font-weight: 600;
  font-size: 12px;
  color: var(--frame0045b-gold-2);
  background: rgba(246, 197, 66, .12);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.frame0045b-rel-val {
  font-size: 12.5px;
  color: var(--frame0045b-text-dim);
  line-height: 1.45;
}

/* ---------- 17. Pros & limitations ---------- */
.frame0045b-pl {
  display: grid;
  gap: 10px;
  margin-top: 11px;
}

.frame0045b-pl-col {
  border-radius: var(--frame0045b-radius-md);
  padding: 12px;
  border: 1px solid var(--frame0045b-line);
}

.frame0045b-pl-col--pro {
  background: linear-gradient(180deg, rgba(56, 224, 200, .1), rgba(56, 224, 200, .02));
  border-color: rgba(56, 224, 200, .35);
}

.frame0045b-pl-col--lim {
  background: linear-gradient(180deg, rgba(255, 93, 138, .1), rgba(255, 93, 138, .02));
  border-color: rgba(255, 93, 138, .35);
}

.frame0045b-pl-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--frame0045b-font-head);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 7px;
}

.frame0045b-pl-col--pro .frame0045b-pl-head { color: var(--frame0045b-teal); }
.frame0045b-pl-col--lim .frame0045b-pl-head { color: var(--frame0045b-rose); }

.frame0045b-pl-list { display: grid; gap: 5px; }

.frame0045b-pl-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--frame0045b-text-dim);
  line-height: 1.45;
}

.frame0045b-pl-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.frame0045b-pl-col--pro .frame0045b-pl-list li::before {
  background: var(--frame0045b-teal);
  box-shadow: 0 0 0 2px rgba(56, 224, 200, .18);
}

.frame0045b-pl-col--lim .frame0045b-pl-list li::before {
  background: var(--frame0045b-rose);
  box-shadow: 0 0 0 2px rgba(255, 93, 138, .18);
}

/* ---------- 18. Mobile App Download ---------- */
.frame0045b-app {
  background: linear-gradient(135deg, var(--frame0045b-ink) 0%, var(--frame0045b-violet) 100%);
  border-radius: var(--frame0045b-radius-lg);
  padding: 16px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.frame0045b-app::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(246, 197, 66, .35), transparent 70%);
  pointer-events: none;
}

.frame0045b-app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.frame0045b-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
}

.frame0045b-app-icon svg { width: 24px; height: 24px; color: var(--frame0045b-gold-2); }

.frame0045b-app-title {
  font-family: var(--frame0045b-font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.frame0045b-app-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .75);
  margin-top: 1px;
}

.frame0045b-app-body {
  margin-top: 11px;
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
  position: relative;
}

.frame0045b-app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
  position: relative;
}

.frame0045b-app-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .12);
  padding: 7px 9px;
  border-radius: 8px;
}

.frame0045b-app-feature svg { width: 13px; height: 13px; color: var(--frame0045b-gold-2); flex-shrink: 0; }

.frame0045b-app-cta {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  position: relative;
  flex-wrap: wrap;
}

.frame0045b-app-cta .frame0045b-btn {
  background: rgba(255, 255, 255, .95);
  color: var(--frame0045b-ink);
  flex: 1;
}

.frame0045b-app-cta .frame0045b-btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

/* ---------- 19. Extended footer ---------- */
.frame0045b-xtfoot {
  margin-top: 16px;
  padding: 18px 14px 8px;
  background: linear-gradient(180deg, var(--frame0045b-night-2), var(--frame0045b-night));
  border-top: 1px solid var(--frame0045b-line);
}

.frame0045b-xtfoot-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--frame0045b-line);
}

.frame0045b-xtfoot-brand .frame0045b-logo { width: 38px; height: 38px; }

.frame0045b-xtfoot-brand-text {
  font-size: 12.5px;
  color: var(--frame0045b-text-dim);
  line-height: 1.5;
}

.frame0045b-xtfoot-brand-text strong {
  font-family: var(--frame0045b-font-head);
  color: var(--frame0045b-gold-2);
  font-weight: 700;
}

.frame0045b-xtfoot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-top: 14px;
}

.frame0045b-xtfoot-col h3 {
  font-family: var(--frame0045b-font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--frame0045b-text);
  margin-bottom: 8px;
}

.frame0045b-xtfoot-col ul { display: grid; gap: 6px; }

.frame0045b-xtfoot-col a {
  font-size: 12.5px;
  color: var(--frame0045b-text-dim);
  transition: color .15s ease;
}

.frame0045b-xtfoot-col a:hover { color: var(--frame0045b-gold-2); }

.frame0045b-xtfoot-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--frame0045b-line);
}

.frame0045b-xtfoot-promos .frame0045b-btn {
  font-size: 12px;
  padding: 10px;
  min-height: 42px;
}

.frame0045b-xtfoot-promos .frame0045b-btn--ghost {
  background: rgba(148, 0, 211, .1);
  color: var(--frame0045b-text);
  border: 1px solid var(--frame0045b-line);
}

.frame0045b-xtfoot-disclaimer {
  margin-top: 14px;
  padding: 11px 12px;
  background: rgba(255, 93, 138, .08);
  border: 1px solid rgba(255, 93, 138, .25);
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--frame0045b-text-dim);
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

.frame0045b-xtfoot-disclaimer svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--frame0045b-rose); }

/* ---------- 20. Footer ---------- */
.frame0045b-footer {
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #0e051c;
  border-top: 1px solid var(--frame0045b-line);
}

.frame0045b-footer-copy {
  font-size: 11.5px;
  color: var(--frame0045b-text-mute);
}

.frame0045b-footer-copy strong {
  color: var(--frame0045b-gold-2);
  font-family: var(--frame0045b-font-head);
}

.frame0045b-footer-meta {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--frame0045b-text-mute);
}

/* ---------- 21. Bottom nav ---------- */
.frame0045b-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(31, 15, 58, .98), rgba(14, 5, 28, 1));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--frame0045b-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.frame0045b-bottomnav-inner {
  max-width: var(--frame0045b-max);
  margin: 0 auto;
  height: var(--frame0045b-bottomnav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.frame0045b-bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--frame0045b-text-mute);
  font-size: 10px;
  font-weight: 500;
  transition: color .15s ease;
  padding: 4px 2px;
  min-height: 44px;
}

.frame0045b-bottomnav-item svg {
  width: 20px;
  height: 20px;
  transition: transform .14s ease;
}

.frame0045b-bottomnav-item:active svg { transform: scale(.86); }

.frame0045b-bottomnav-item:hover { color: var(--frame0045b-text); }

.frame0045b-bottomnav-item[aria-current="page"] {
  color: var(--frame0045b-gold-2);
}

.frame0045b-bottomnav-item[aria-current="page"] svg {
  background: rgba(246, 197, 66, .15);
  border-radius: 8px;
  padding: 3px;
  width: 26px;
  height: 26px;
  box-sizing: content-box;
  margin-bottom: -3px;
}

.frame0045b-bottomnav-item--promo {
  color: var(--frame0045b-gold-2);
}

.frame0045b-bottomnav-item--promo svg {
  background: linear-gradient(135deg, var(--frame0045b-gold), var(--frame0045b-rose));
  color: #2a0a3d;
  border-radius: 10px;
  padding: 5px;
  width: 24px;
  height: 24px;
  box-sizing: content-box;
  box-shadow: 0 4px 10px rgba(246, 93, 138, .35);
  margin-top: -8px;
}

/* ---------- 22. Utilities ---------- */
.frame0045b-hide { display: none !important; }

.frame0045b-fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}

.frame0045b-fade[data-in="true"] {
  opacity: 1;
  transform: translateY(0);
}

.frame0045b-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(148, 0, 211, .18);
  color: var(--frame0045b-violet-2);
  border: 1px solid var(--frame0045b-line);
}

.frame0045b-link {
  color: var(--frame0045b-gold-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(246, 197, 66, .4);
  transition: text-decoration-color .15s ease;
}

.frame0045b-link:hover { text-decoration-color: var(--frame0045b-gold); }

/* ---------- 23. Responsive — larger mobile canvas ---------- */
@media (min-width: 360px) {
  .frame0045b-section-title { font-size: 20px; }
  .frame0045b-lead h1 { font-size: 26px; }
  .frame0045b-card-name { font-size: 11px; }
}

/* 430px breakpoint — widen grids to 5 columns and loosen rhythm */
@media (min-width: 430px) {
  body { font-size: 16px; }
  .frame0045b-grid--4 { grid-template-columns: repeat(5, 1fr); }
  .frame0045b-grid--5 { grid-template-columns: repeat(6, 1fr); }
  .frame0045b-section-title { font-size: 22px; }
  .frame0045b-lead h1 { font-size: 28px; }
  .frame0045b-hero .frame0045b-slide-title { font-size: 22px; }
  .frame0045b-featured { grid-template-columns: 1.5fr 1fr 1fr; }
  .frame0045b-xtfoot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .frame0045b-app-features { grid-template-columns: repeat(3, 1fr); }
  .frame0045b-stats { grid-template-columns: repeat(3, 1fr); }
  .frame0045b-bottomnav-item { font-size: 10.5px; }
}

/* Desktop — keep the phone canvas centered */
@media (min-width: 600px) {
  body { background: #07021a; }
  .frame0045b-page {
    box-shadow: 0 0 60px rgba(0, 0, 0, .6);
  }
}

/* Reduced motion */
/* ---------- 24. Help page compositions ---------- */
.frame0045b-help-hero {
  margin: 12px 12px 0;
  padding: 18px 16px;
  border: 1px solid var(--frame0045b-line);
  border-radius: 22px 8px 22px 8px;
  background: linear-gradient(145deg, rgba(148,0,211,.32), rgba(58,58,58,.18) 58%, rgba(21,8,39,.7));
  box-shadow: var(--frame0045b-shadow-sm);
}
.frame0045b-help-hero h1 { font-family: var(--frame0045b-font-head); font-size: 25px; line-height: 1.13; color: var(--frame0045b-text); }
.frame0045b-help-hero p { margin-top: 9px; color: var(--frame0045b-text-dim); font-size: 13.5px; }
.frame0045b-help-ribbon { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.frame0045b-help-ribbon span { border: 1px solid rgba(246,197,66,.35); border-radius: 5px; padding: 5px 8px; color: var(--frame0045b-gold-2); font-size: 11px; }
.frame0045b-help-board { margin: 12px; padding: 15px 13px; border-left: 4px solid var(--frame0045b-gold); background: rgba(49,26,92,.68); border-radius: 4px 14px 14px 4px; }
.frame0045b-help-board h2, .frame0045b-help-section h2 { font-family: var(--frame0045b-font-head); font-size: 19px; line-height: 1.2; color: var(--frame0045b-text); }
.frame0045b-help-board > p, .frame0045b-help-section > p { margin-top: 7px; color: var(--frame0045b-text-dim); font-size: 13.5px; }
.frame0045b-help-list { display: grid; gap: 9px; margin-top: 12px; counter-reset: helpitem; }
.frame0045b-help-list li { counter-increment: helpitem; display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; padding: 9px; border: 1px solid var(--frame0045b-line); background: rgba(21,8,39,.58); border-radius: 10px; color: var(--frame0045b-text-dim); font-size: 13px; }
.frame0045b-help-list li::before { content: counter(helpitem, decimal-leading-zero); color: var(--frame0045b-gold-2); font-family: var(--frame0045b-font-head); font-size: 14px; }
.frame0045b-help-list strong { display: block; color: var(--frame0045b-text); margin-bottom: 3px; }
.frame0045b-help-section { padding: 18px 12px; }
.frame0045b-help-pairs { display: grid; gap: 8px; margin-top: 11px; }
.frame0045b-help-pair { padding: 11px; border-radius: 10px; border: 1px solid var(--frame0045b-line); background: linear-gradient(90deg, rgba(75,0,130,.22), rgba(58,58,58,.16)); }
.frame0045b-help-pair h3 { font-family: var(--frame0045b-font-head); font-size: 14px; line-height: 1.25; color: var(--frame0045b-gold-2); }
.frame0045b-help-pair p { margin-top: 5px; color: var(--frame0045b-text-dim); font-size: 12.8px; }
.frame0045b-help-callout { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(56,224,200,.08); border: 1px solid rgba(56,224,200,.3); color: var(--frame0045b-text-dim); font-size: 12.8px; }
.frame0045b-help-callout strong { color: var(--frame0045b-teal); }
.frame0045b-action-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.frame0045b-action-rail .frame0045b-btn { min-height: 44px; font-size: 12px; }
.frame0045b-route-table { display: grid; gap: 6px; margin-top: 11px; }
.frame0045b-route-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px; border-bottom: 1px solid var(--frame0045b-line); font-size: 12.5px; }
.frame0045b-route-row strong { color: var(--frame0045b-gold-2); }
.frame0045b-route-row span { color: var(--frame0045b-text-dim); }
@media (min-width: 360px) {
  .frame0045b-help-hero { margin-left: 14px; margin-right: 14px; }
  .frame0045b-help-hero h1 { font-size: 27px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .frame0045b-slide-img { transform: none !important; }
}
