/* ==========================================================================
   888bet casino - native-beb4aa-layers.css
   Mobile-first layers for 888betcasino.homes (bn-BD)
   Palette: #2C3E50 base / #FF9500 accent / #FFEB3B highlight
   Design voice: rounded headings + compact body, low-radius sectioned
   zones, big/small game card mix, intro-led rhythm, menu slide-in with
   light card lift, staggered primary/secondary CTA sizes.
   All classes and variables use the surfaceeb4aa- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --surfaceeb4aa-bg: #2C3E50;
  --surfaceeb4aa-bg-deep: #22303F;
  --surfaceeb4aa-page: #1A2530;
  --surfaceeb4aa-panel: #1C2936;
  --surfaceeb4aa-panel-2: #243446;
  --surfaceeb4aa-line: #3B5068;
  --surfaceeb4aa-line-soft: #33465B;
  --surfaceeb4aa-ink: #F5F8FB;
  --surfaceeb4aa-ink-dim: #BECDDA;
  --surfaceeb4aa-ink-faint: #93A6B7;
  --surfaceeb4aa-accent: #FF9500;
  --surfaceeb4aa-accent-2: #E68600;
  --surfaceeb4aa-glow: #FFEB3B;
  --surfaceeb4aa-good: #7BD88F;
  --surfaceeb4aa-bad: #FF7A6B;
  --surfaceeb4aa-on-accent: #241700;
  --surfaceeb4aa-radius: 6px;
  --surfaceeb4aa-radius-lg: 10px;
  --surfaceeb4aa-pad: 14px;
  --surfaceeb4aa-gap: 10px;
  --surfaceeb4aa-toprow-h: 54px;
  --surfaceeb4aa-tabs-h: 44px;
  --surfaceeb4aa-bnav-h: 60px;
  --surfaceeb4aa-font-head: ui-rounded, "Segoe UI Rounded", "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", system-ui, sans-serif;
  --surfaceeb4aa-font-body: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --surfaceeb4aa-shadow: 0 12px 30px rgba(10, 17, 26, 0.45);
}

/* --------------------------------------------------------------------------
   2. Base + shell (centered phone canvas up to 430px)
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.surfaceeb4aa-noscroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--surfaceeb4aa-page);
  color: var(--surfaceeb4aa-ink);
  font-family: var(--surfaceeb4aa-font-body);
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--surfaceeb4aa-font-head);
  line-height: 1.4;
  color: var(--surfaceeb4aa-ink);
  margin: 0;
}

p { margin: 0 0 10px; }

a { color: var(--surfaceeb4aa-glow); }
a:hover { color: var(--surfaceeb4aa-accent); }

button { font-family: var(--surfaceeb4aa-font-head); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--surfaceeb4aa-glow);
  outline-offset: 2px;
  border-radius: 4px;
}

.surfaceeb4aa-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surfaceeb4aa-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 24px 70px rgba(0, 0, 0, 0.55);
}

@media (min-width: 431px) {
  .surfaceeb4aa-shell {
    border-left: 1px solid #16202B;
    border-right: 1px solid #16202B;
  }
}

.surfaceeb4aa-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  background: var(--surfaceeb4aa-glow);
  color: #231A00;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 var(--surfaceeb4aa-radius) 0;
  text-decoration: none;
}
.surfaceeb4aa-skip:focus { left: 0; }

/* Screen-reader-only helper (used by table captions). */
.surfaceeb4aa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Fixed tabbed top bar (brand left, actions right, category tab row)
   -------------------------------------------------------------------------- */
.surfaceeb4aa-topbar {
  position: fixed;
  top: 0;
  left: 0;
  left: max(0px, calc(50% - 215px));
  right: auto;
  right: max(0px, calc(50% - 215px));
  z-index: 60;
  background: rgba(28, 41, 54, 0.97);
  border-bottom: 2px solid var(--surfaceeb4aa-accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.surfaceeb4aa-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--surfaceeb4aa-toprow-h);
  padding: 6px var(--surfaceeb4aa-pad) 6px 10px;
}

.surfaceeb4aa-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--surfaceeb4aa-ink);
}

.surfaceeb4aa-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--surfaceeb4aa-radius);
  border: 1px solid var(--surfaceeb4aa-line);
  background: var(--surfaceeb4aa-panel-2);
  flex: none;
  display: block;
}

.surfaceeb4aa-brandname {
  font-family: var(--surfaceeb4aa-font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surfaceeb4aa-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.surfaceeb4aa-btn-login {
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--surfaceeb4aa-line);
  border-radius: var(--surfaceeb4aa-radius);
  color: var(--surfaceeb4aa-ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.surfaceeb4aa-btn-login:active { transform: scale(0.95); border-color: var(--surfaceeb4aa-glow); }

.surfaceeb4aa-btn-reg {
  min-height: 36px;
  padding: 0 15px;
  background: linear-gradient(180deg, var(--surfaceeb4aa-accent) 0%, var(--surfaceeb4aa-accent-2) 100%);
  border: 0;
  border-radius: 999px;
  color: var(--surfaceeb4aa-on-accent);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 149, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.surfaceeb4aa-btn-reg:active { transform: scale(0.95); box-shadow: 0 1px 5px rgba(255, 149, 0, 0.3); }

.surfaceeb4aa-burger {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--surfaceeb4aa-panel-2);
  border: 1px solid var(--surfaceeb4aa-line);
  border-radius: var(--surfaceeb4aa-radius);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.surfaceeb4aa-burger:active { transform: scale(0.9); }
.surfaceeb4aa-burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--surfaceeb4aa-ink);
}

/* Category tab strip under the main row */
.surfaceeb4aa-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 10px;
  background: var(--surfaceeb4aa-bg-deep);
  border-top: 1px solid var(--surfaceeb4aa-line-soft);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.surfaceeb4aa-tabs::-webkit-scrollbar { display: none; }

.surfaceeb4aa-tab {
  flex: none;
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--surfaceeb4aa-panel-2);
  border: 1px solid var(--surfaceeb4aa-line);
  color: var(--surfaceeb4aa-ink-dim);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.surfaceeb4aa-tab:active {
  color: var(--surfaceeb4aa-glow);
  border-color: var(--surfaceeb4aa-glow);
}

/* --------------------------------------------------------------------------
   4. Full-height slide-in menu layer + scrim
   -------------------------------------------------------------------------- */
.surfaceeb4aa-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(8, 13, 19, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  border: 0;
  padding: 0;
}
.surfaceeb4aa-scrim-on { opacity: 1; visibility: visible; }

.surfaceeb4aa-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  left: max(0px, calc(50% - 215px));
  z-index: 70;
  width: min(84%, 330px);
  display: flex;
  flex-direction: column;
  background: var(--surfaceeb4aa-bg-deep);
  border-right: 1px solid var(--surfaceeb4aa-line);
  box-shadow: var(--surfaceeb4aa-shadow);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1), visibility 0.28s;
}
.surfaceeb4aa-menu-open {
  transform: translateX(0);
  visibility: visible;
}

.surfaceeb4aa-menuhead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 12px 12px 14px;
  border-bottom: 2px solid var(--surfaceeb4aa-accent);
}

.surfaceeb4aa-menuhead img {
  width: 34px;
  height: 34px;
  border-radius: var(--surfaceeb4aa-radius);
  border: 1px solid var(--surfaceeb4aa-line);
  display: block;
}

.surfaceeb4aa-menuhead strong {
  flex: 1;
  min-width: 0;
  font-family: var(--surfaceeb4aa-font-head);
  font-size: 15px;
  color: var(--surfaceeb4aa-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surfaceeb4aa-menuclose {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surfaceeb4aa-panel-2);
  border: 1px solid var(--surfaceeb4aa-line);
  border-radius: var(--surfaceeb4aa-radius);
  color: var(--surfaceeb4aa-ink);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.surfaceeb4aa-menuclose:active { transform: scale(0.9); }
.surfaceeb4aa-menuclose svg { width: 16px; height: 16px; }

.surfaceeb4aa-menulist {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  overflow-y: auto;
  flex: 1;
}

.surfaceeb4aa-menulist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--surfaceeb4aa-radius);
  color: var(--surfaceeb4aa-ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.surfaceeb4aa-menulist a::after {
  content: "\203A";
  color: var(--surfaceeb4aa-accent);
  font-size: 16px;
  font-weight: 800;
}
.surfaceeb4aa-menulist a:active,
.surfaceeb4aa-menulist a[aria-current="page"] {
  background: var(--surfaceeb4aa-panel-2);
  border: 1px solid var(--surfaceeb4aa-line-soft);
  color: var(--surfaceeb4aa-glow);
}

.surfaceeb4aa-menucta { padding: 12px; border-top: 1px solid var(--surfaceeb4aa-line-soft); }
.surfaceeb4aa-menucta button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surfaceeb4aa-accent) 0%, var(--surfaceeb4aa-accent-2) 100%);
  color: var(--surfaceeb4aa-on-accent);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.35);
  transition: transform 0.12s ease;
}
.surfaceeb4aa-menucta button:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   5. Main column: clears fixed top bar and bottom nav
   -------------------------------------------------------------------------- */
.surfaceeb4aa-main {
  padding-top: calc(var(--surfaceeb4aa-toprow-h) + var(--surfaceeb4aa-tabs-h) + 12px);
  padding-bottom: calc(var(--surfaceeb4aa-bnav-h) + 34px + env(safe-area-inset-bottom));
  padding-left: 0;
  padding-right: 0;
}

/* --------------------------------------------------------------------------
   6. Hero (intro-led opening block)
   -------------------------------------------------------------------------- */
.surfaceeb4aa-hero { padding: 6px var(--surfaceeb4aa-pad) 0; }

.surfaceeb4aa-kick {
  margin: 0 0 7px;
  font-family: var(--surfaceeb4aa-font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--surfaceeb4aa-accent);
  text-transform: uppercase;
}

.surfaceeb4aa-h1 {
  font-size: 24px;
  margin: 0 0 10px;
  text-wrap: balance;
}

.surfaceeb4aa-lead {
  margin: 0 0 13px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--surfaceeb4aa-ink-dim);
}
.surfaceeb4aa-lead a,
.surfaceeb4aa-bodytext a {
  color: var(--surfaceeb4aa-glow);
  text-decoration: underline;
  text-decoration-color: rgba(255, 235, 59, 0.45);
  text-underline-offset: 3px;
}

/* Staggered CTA pair: wide filled primary + compact outlined secondary */
.surfaceeb4aa-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 13px;
}

.surfaceeb4aa-cta-big {
  flex: 1 1 165px;
  min-height: 48px;
  border: 0;
  border-radius: var(--surfaceeb4aa-radius-lg);
  background: linear-gradient(180deg, var(--surfaceeb4aa-accent) 0%, var(--surfaceeb4aa-accent-2) 100%);
  color: var(--surfaceeb4aa-on-accent);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(255, 149, 0, 0.38);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.surfaceeb4aa-cta-big:active { transform: scale(0.97); }

.surfaceeb4aa-cta-small {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--surfaceeb4aa-glow);
  border-radius: var(--surfaceeb4aa-radius);
  background: rgba(255, 235, 59, 0.06);
  color: var(--surfaceeb4aa-glow);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.surfaceeb4aa-cta-small:active { transform: scale(0.96); background: rgba(255, 235, 59, 0.14); }

.surfaceeb4aa-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.surfaceeb4aa-stats li {
  background: var(--surfaceeb4aa-panel);
  border: 1px solid var(--surfaceeb4aa-line-soft);
  border-radius: var(--surfaceeb4aa-radius);
  padding: 9px 4px;
  text-align: center;
}
.surfaceeb4aa-stats strong {
  display: block;
  font-family: var(--surfaceeb4aa-font-head);
  font-size: 17px;
  color: var(--surfaceeb4aa-glow);
}
.surfaceeb4aa-stats span { font-size: 10.5px; color: var(--surfaceeb4aa-ink-faint); }

/* --------------------------------------------------------------------------
   7. Promo banner carousel
   -------------------------------------------------------------------------- */
.surfaceeb4aa-carousel {
  position: relative;
  margin: 14px var(--surfaceeb4aa-pad) 0;
  border: 1px solid var(--surfaceeb4aa-line);
  border-radius: var(--surfaceeb4aa-radius-lg);
  overflow: hidden;
  background: var(--surfaceeb4aa-panel-2);
}

.surfaceeb4aa-track {
  display: flex;
  transition: transform 0.4s ease;
}

.surfaceeb4aa-slide {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surfaceeb4aa-panel-2);
  cursor: pointer;
}
.surfaceeb4aa-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.surfaceeb4aa-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  display: flex;
  justify-content: center;
  gap: 2px;
}
.surfaceeb4aa-dot {
  min-width: 44px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.surfaceeb4aa-dotcore {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(245, 248, 251, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}
.surfaceeb4aa-dot-on .surfaceeb4aa-dotcore {
  width: 20px;
  background: var(--surfaceeb4aa-accent);
}

/* --------------------------------------------------------------------------
   8. Game sections (big + small card mix on a stable grid)
   -------------------------------------------------------------------------- */
.surfaceeb4aa-sec { margin: 20px var(--surfaceeb4aa-pad) 0; scroll-margin-top: 108px; }

.surfaceeb4aa-sechead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--surfaceeb4aa-line-soft);
}
.surfaceeb4aa-sechead h2 {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
}
.surfaceeb4aa-count {
  flex: none;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surfaceeb4aa-accent);
  color: var(--surfaceeb4aa-on-accent);
  font-family: var(--surfaceeb4aa-font-head);
  font-size: 10.5px;
  font-weight: 800;
}

.surfaceeb4aa-seclead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--surfaceeb4aa-ink-dim);
}

.surfaceeb4aa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
}

@media (min-width: 400px) {
  .surfaceeb4aa-grid { grid-template-columns: repeat(5, 1fr); }
}

.surfaceeb4aa-gcard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  background: var(--surfaceeb4aa-panel);
  border: 1px solid var(--surfaceeb4aa-line-soft);
  border-radius: var(--surfaceeb4aa-radius);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.surfaceeb4aa-gcard:active {
  transform: translateY(-2px) scale(0.97);
  border-color: var(--surfaceeb4aa-accent);
}
@media (hover: hover) {
  .surfaceeb4aa-gcard:hover {
    transform: translateY(-3px);
    border-color: var(--surfaceeb4aa-accent);
  }
}

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

.surfaceeb4aa-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: var(--surfaceeb4aa-ink-dim);
  min-height: 30px;
}

/* Feature-sized card spans two tracks for the big/small rhythm */
.surfaceeb4aa-gcard-lg {
  grid-column: span 2;
  padding: 6px;
  background: linear-gradient(150deg, var(--surfaceeb4aa-panel-2) 0%, var(--surfaceeb4aa-panel) 70%);
  border-color: var(--surfaceeb4aa-line);
}
.surfaceeb4aa-gcard-lg .surfaceeb4aa-gname {
  font-size: 12px;
  color: var(--surfaceeb4aa-ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. Content modules (winners, promos, RTP, pros/cons, FAQ)
   -------------------------------------------------------------------------- */
.surfaceeb4aa-module {
  margin: 20px var(--surfaceeb4aa-pad) 0;
  scroll-margin-top: 108px;
}

.surfaceeb4aa-module > h2 {
  font-size: 17px;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--surfaceeb4aa-line-soft);
}

.surfaceeb4aa-bodytext {
  font-size: 13px;
  line-height: 1.82;
  color: var(--surfaceeb4aa-ink-dim);
  margin: 0 0 11px;
}
.surfaceeb4aa-bodytext strong { color: var(--surfaceeb4aa-ink); }

/* Winners list */
.surfaceeb4aa-winrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surfaceeb4aa-panel);
  border: 1px solid var(--surfaceeb4aa-line-soft);
  border-radius: var(--surfaceeb4aa-radius);
  margin-bottom: 6px;
}
.surfaceeb4aa-winava {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surfaceeb4aa-panel-2);
  border: 1px solid var(--surfaceeb4aa-line);
  color: var(--surfaceeb4aa-glow);
  font-family: var(--surfaceeb4aa-font-head);
  font-size: 13px;
  font-weight: 800;
}
.surfaceeb4aa-winwho { flex: 1; min-width: 0; }
.surfaceeb4aa-winname {
  font-size: 13px;
  font-weight: 600;
  color: var(--surfaceeb4aa-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.surfaceeb4aa-wingame {
  font-size: 11px;
  color: var(--surfaceeb4aa-ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.surfaceeb4aa-winamt {
  flex: none;
  font-family: var(--surfaceeb4aa-font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--surfaceeb4aa-glow);
}

/* Promotion cards */
.surfaceeb4aa-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--surfaceeb4aa-panel) 0%, var(--surfaceeb4aa-panel-2) 100%);
  border: 1px solid var(--surfaceeb4aa-line-soft);
  border-left: 3px solid var(--surfaceeb4aa-accent);
  border-radius: var(--surfaceeb4aa-radius);
}
.surfaceeb4aa-promotxt { flex: 1; min-width: 0; }
.surfaceeb4aa-promotxt h3 {
  font-size: 13.5px;
  margin: 0 0 3px;
  color: var(--surfaceeb4aa-ink);
}
.surfaceeb4aa-promotxt p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--surfaceeb4aa-ink-faint);
}
.surfaceeb4aa-promobtn {
  flex: none;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--surfaceeb4aa-accent);
  color: var(--surfaceeb4aa-on-accent);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.surfaceeb4aa-promobtn:active { transform: scale(0.94); }

/* RTP table */
.surfaceeb4aa-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--surfaceeb4aa-line-soft);
  border-radius: var(--surfaceeb4aa-radius);
  background: var(--surfaceeb4aa-panel);
  margin-bottom: 11px;
}
.surfaceeb4aa-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.surfaceeb4aa-table th,
.surfaceeb4aa-table td {
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--surfaceeb4aa-line-soft);
  color: var(--surfaceeb4aa-ink-dim);
  line-height: 1.6;
}
.surfaceeb4aa-table th {
  background: var(--surfaceeb4aa-panel-2);
  color: var(--surfaceeb4aa-ink);
  font-family: var(--surfaceeb4aa-font-head);
  white-space: nowrap;
}
.surfaceeb4aa-table tr:last-child td { border-bottom: 0; }

/* Pros and limitations duo */
.surfaceeb4aa-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.surfaceeb4aa-duocol {
  background: var(--surfaceeb4aa-panel);
  border: 1px solid var(--surfaceeb4aa-line-soft);
  border-radius: var(--surfaceeb4aa-radius);
  padding: 10px 10px 8px;
}
.surfaceeb4aa-duocol h3 {
  font-size: 13px;
  margin: 0 0 7px;
}
.surfaceeb4aa-duopro h3 { color: var(--surfaceeb4aa-good); }
.surfaceeb4aa-duocon h3 { color: var(--surfaceeb4aa-bad); }
.surfaceeb4aa-duocol ul {
  margin: 0;
  padding-left: 15px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--surfaceeb4aa-ink-dim);
}
.surfaceeb4aa-duocol li { margin-bottom: 5px; }

/* FAQ accordion */
.surfaceeb4aa-faq {
  background: var(--surfaceeb4aa-panel);
  border: 1px solid var(--surfaceeb4aa-line-soft);
  border-radius: var(--surfaceeb4aa-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.surfaceeb4aa-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  font-family: var(--surfaceeb4aa-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--surfaceeb4aa-ink);
}
.surfaceeb4aa-faq summary::-webkit-details-marker { display: none; }
.surfaceeb4aa-faq summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--surfaceeb4aa-line);
  color: var(--surfaceeb4aa-accent);
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.surfaceeb4aa-faq[open] summary::after { transform: rotate(45deg); }
.surfaceeb4aa-faqbody {
  padding: 0 12px 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--surfaceeb4aa-ink-dim);
}
.surfaceeb4aa-faqbody a {
  color: var(--surfaceeb4aa-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   10. Extended footer (brand, directory, promo actions, note)
   -------------------------------------------------------------------------- */
.surfaceeb4aa-xfoot {
  margin-top: 22px;
  padding: 16px var(--surfaceeb4aa-pad) 16px;
  background: var(--surfaceeb4aa-bg-deep);
  border-top: 3px solid var(--surfaceeb4aa-accent);
}

.surfaceeb4aa-xfoot > h2 {
  font-size: 15.5px;
  margin-bottom: 11px;
}

.surfaceeb4aa-xbrand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.surfaceeb4aa-xbrand img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--surfaceeb4aa-radius);
  border: 1px solid var(--surfaceeb4aa-line);
  display: block;
}
.surfaceeb4aa-xbrand p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--surfaceeb4aa-ink-dim);
}

.surfaceeb4aa-xgroups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0 0 12px;
}
.surfaceeb4aa-xgroup h3 {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--surfaceeb4aa-glow);
  margin: 0 0 4px;
}
.surfaceeb4aa-xgroup a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px dashed var(--surfaceeb4aa-line-soft);
  font-size: 12.5px;
  color: var(--surfaceeb4aa-ink-dim);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
}
.surfaceeb4aa-xgroup a:active { color: var(--surfaceeb4aa-glow); }
@media (hover: hover) {
  .surfaceeb4aa-xgroup a:hover { color: var(--surfaceeb4aa-glow); }
}

.surfaceeb4aa-xgroup--wide { grid-column: 1 / -1; }
.surfaceeb4aa-xgroup--wide ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surfaceeb4aa-xacts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0 0 12px;
}
.surfaceeb4aa-xact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  padding: 8px 3px;
  background: var(--surfaceeb4aa-panel-2);
  border: 1px solid var(--surfaceeb4aa-line);
  border-radius: var(--surfaceeb4aa-radius);
  color: var(--surfaceeb4aa-ink);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.surfaceeb4aa-xact:active {
  transform: scale(0.93);
  border-color: var(--surfaceeb4aa-accent);
}
.surfaceeb4aa-xact svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--surfaceeb4aa-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.surfaceeb4aa-xnote {
  padding: 9px 11px;
  border: 1px dashed var(--surfaceeb4aa-line);
  border-radius: var(--surfaceeb4aa-radius);
  font-size: 11px;
  line-height: 1.7;
  color: var(--surfaceeb4aa-ink-faint);
}

/* --------------------------------------------------------------------------
   11. Common footer + fixed bottom nav
   -------------------------------------------------------------------------- */
.surfaceeb4aa-foot {
  padding: 15px var(--surfaceeb4aa-pad) 16px;
  background: #17222D;
  text-align: center;
}
.surfaceeb4aa-foot p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--surfaceeb4aa-ink-faint);
}
.surfaceeb4aa-foot a { color: var(--surfaceeb4aa-ink-dim); text-decoration: none; }
.surfaceeb4aa-foot a:active,
.surfaceeb4aa-foot a:hover { color: var(--surfaceeb4aa-glow); }

.surfaceeb4aa-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  left: max(0px, calc(50% - 215px));
  right: auto;
  right: max(0px, calc(50% - 215px));
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(23, 32, 43, 0.97);
  border-top: 2px solid var(--surfaceeb4aa-accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
}

.surfaceeb4aa-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--surfaceeb4aa-bnav-h);
  color: var(--surfaceeb4aa-ink-faint);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, color 0.15s ease;
}
.surfaceeb4aa-bnav-item:active { transform: scale(0.88); }
.surfaceeb4aa-bnav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.15s ease;
}
.surfaceeb4aa-bnav-item .surfaceeb4aa-ifill {
  fill: none;
  stroke: currentColor;
}
.surfaceeb4aa-bnav-item.surfaceeb4aa-on { color: var(--surfaceeb4aa-accent); }
.surfaceeb4aa-bnav-item.surfaceeb4aa-on .surfaceeb4aa-ifill {
  fill: var(--surfaceeb4aa-accent);
  stroke: var(--surfaceeb4aa-glow);
  stroke-width: 1.1;
}
.surfaceeb4aa-bnav-item.surfaceeb4aa-on::after {
  content: "";
  position: absolute;
  top: 5px;
  right: calc(50% - 18px);
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--surfaceeb4aa-glow);
}

/* --------------------------------------------------------------------------
   12. Small-screen hardening (320px) and motion preferences
   -------------------------------------------------------------------------- */
@media (max-width: 339px) {
  .surfaceeb4aa-grid { gap: 6px 5px; }
  .surfaceeb4aa-gname { font-size: 10.5px; }
  .surfaceeb4aa-brandname { font-size: 14.5px; max-width: 96px; }
  .surfaceeb4aa-btn-reg { padding: 0 10px; }
  .surfaceeb4aa-xacts { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .surfaceeb4aa-xact { font-size: 9.5px; }
  .surfaceeb4aa-h1 { font-size: 22px; }
  .surfaceeb4aa-sechead h2,
  .surfaceeb4aa-module > h2 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
