/* ==========================================================================
   gcash online casino - mobile interface stylesheet
   Canvas: 320-430px phone frame, centered as-is on wide screens
   Class prefix: mobile331eb-
   Palette: #2E8B57 / #228B22 / #696969 / #141414 / #ECF0F1
   Voice: humanist serif headings + clear sans body, stroke-led surfaces,
   grouped cover cards, scenario-branch rhythm, short-distance transitions.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --mobile331eb-pine: #2E8B57;
  --mobile331eb-fern: #228B22;
  --mobile331eb-slate: #696969;
  --mobile331eb-ink: #141414;
  --mobile331eb-mist: #ECF0F1;

  --mobile331eb-bg: #141414;
  --mobile331eb-shell: #1a1d1a;
  --mobile331eb-raise: #202420;
  --mobile331eb-well: #101210;

  --mobile331eb-line: rgba(236, 240, 241, 0.15);
  --mobile331eb-line-bold: rgba(46, 139, 87, 0.6);
  --mobile331eb-mist-dim: rgba(236, 240, 241, 0.74);
  --mobile331eb-mist-faint: rgba(236, 240, 241, 0.56);
  --mobile331eb-glow: 0 0 10px rgba(46, 139, 87, 0.38);

  --mobile331eb-font-head: Georgia, "Palatino Linotype", "Times New Roman", serif;
  --mobile331eb-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --mobile331eb-r-soft: 4px;
  --mobile331eb-r-card: 8px;
  --mobile331eb-r-pill: 10px;

  --mobile331eb-top-h: 94px;
  --mobile331eb-dock-h: 62px;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--mobile331eb-font-body);
  font-size: 15px;
  line-height: 1.62;
  color: var(--mobile331eb-mist);
  background: #0c0e0c;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--mobile331eb-mist);
}

/* --------------------------------------------------------------------------
   3. Phone canvas - 430px ceiling, centered on wider viewports
   -------------------------------------------------------------------------- */
.mobile331eb-canvas {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--mobile331eb-bg);
  border-left: 1px solid var(--mobile331eb-line);
  border-right: 1px solid var(--mobile331eb-line);
  position: relative;
}

/* --------------------------------------------------------------------------
   4. Accessibility helpers
   -------------------------------------------------------------------------- */
.mobile331eb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mobile331eb-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--mobile331eb-pine);
  color: #0d1f12;
  font-weight: 700;
  border-radius: var(--mobile331eb-r-soft);
  transition: top 0.18s ease;
  text-decoration: none;
}

.mobile331eb-skip:focus {
  top: 8px;
}

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

/* --------------------------------------------------------------------------
   5. Top bar - asymmetric brand block over an action rail
   -------------------------------------------------------------------------- */
.mobile331eb-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 18, 16, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mobile331eb-line);
}

/* asymmetric underline: thick pine stroke fading out to the right */
.mobile331eb-topbar::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--mobile331eb-pine) 0%,
    var(--mobile331eb-pine) 58%,
    rgba(46, 139, 87, 0.18) 92%,
    transparent 100%
  );
}

.mobile331eb-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 7px;
}

.mobile331eb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  min-width: 0;
}

.mobile331eb-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--mobile331eb-line-bold);
  border-radius: var(--mobile331eb-r-card);
  padding: 2px;
  background: var(--mobile331eb-shell);
}

.mobile331eb-brand-name {
  font-family: var(--mobile331eb-font-head);
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile331eb-menu-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-card);
  background: var(--mobile331eb-shell);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile331eb-menu-toggle:hover,
.mobile331eb-menu-toggle:focus-visible {
  border-color: var(--mobile331eb-line-bold);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mobile331eb-mist);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile331eb-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile331eb-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile331eb-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* action rail: Register dominates, Login supports - staggered sizes */
.mobile331eb-actionrow {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 8px;
  padding: 0 12px 10px;
}

.mobile331eb-btn-register,
.mobile331eb-btn-login {
  min-height: 44px;
  border-radius: var(--mobile331eb-r-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease;
}

.mobile331eb-btn-register {
  background: linear-gradient(135deg, var(--mobile331eb-pine), var(--mobile331eb-fern));
  color: #08130b;
  font-size: 15px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(236, 240, 241, 0.18);
}

.mobile331eb-btn-register:hover,
.mobile331eb-btn-register:focus-visible {
  box-shadow: var(--mobile331eb-glow), inset 0 0 0 1px rgba(236, 240, 241, 0.28);
  transform: translateY(-1px);
}

.mobile331eb-btn-login {
  background: transparent;
  border: 1px solid var(--mobile331eb-line-bold);
  color: var(--mobile331eb-mist);
  font-size: 13px;
  text-transform: uppercase;
}

.mobile331eb-btn-login:hover,
.mobile331eb-btn-login:focus-visible {
  color: #d8f3e2;
  border-color: var(--mobile331eb-pine);
  box-shadow: var(--mobile331eb-glow);
}

/* --------------------------------------------------------------------------
   6. Layered drop menu
   -------------------------------------------------------------------------- */
.mobile331eb-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 39;
  background: var(--mobile331eb-well);
  border-bottom: 1px solid var(--mobile331eb-line-bold);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.26s ease, visibility 0.26s;
}

.mobile331eb-menu-open {
  max-height: 560px;
  visibility: visible;
  overflow-y: auto;
}

.mobile331eb-menu-layer {
  padding: 12px 12px 4px;
  border-bottom: 1px dashed rgba(105, 105, 105, 0.35);
}

.mobile331eb-menu-layer:last-child {
  border-bottom: 0;
  padding-bottom: 14px;
}

.mobile331eb-menu-cap {
  font-family: var(--mobile331eb-font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mobile331eb-pine);
  margin-bottom: 8px;
}

.mobile331eb-menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mobile331eb-menu-item {
  display: block;
  min-height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-shell);
  font-size: 13px;
  text-decoration: none;
  line-height: 1.25;
}

.mobile331eb-menu-item:hover,
.mobile331eb-menu-item:focus-visible {
  border-color: var(--mobile331eb-line-bold);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-menu-item[aria-current="page"] {
  border-color: var(--mobile331eb-pine);
  color: #d8f3e2;
  box-shadow: inset 3px 0 0 var(--mobile331eb-pine);
}

/* --------------------------------------------------------------------------
   7. Main column
   -------------------------------------------------------------------------- */
.mobile331eb-main {
  padding: 4px 0 calc(var(--mobile331eb-dock-h) + 34px + env(safe-area-inset-bottom, 0px));
}

.mobile331eb-sect {
  padding: 26px 14px 6px;
}

.mobile331eb-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mobile331eb-mist-faint);
  margin-bottom: 8px;
}

.mobile331eb-h2 {
  font-family: var(--mobile331eb-font-head);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-left: 10px;
  border-left: 3px solid var(--mobile331eb-pine);
  margin-bottom: 12px;
}

.mobile331eb-lead {
  color: var(--mobile331eb-mist-dim);
  font-size: 14.5px;
}

.mobile331eb-inlink {
  color: #9fdcb6;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.mobile331eb-inlink:hover,
.mobile331eb-inlink:focus-visible {
  color: #c7f0d5;
  text-decoration-style: solid;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.mobile331eb-hero {
  padding: 22px 14px 10px;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(46, 139, 87, 0.16) 0%, transparent 55%),
    var(--mobile331eb-bg);
}

.mobile331eb-hero-title {
  font-family: var(--mobile331eb-font-head);
  font-size: 27px;
  line-height: 1.22;
  font-weight: 700;
  margin: 6px 0 12px;
}

.mobile331eb-hero-title em {
  font-style: normal;
  color: #9fdcb6;
}

.mobile331eb-hero-lead {
  color: var(--mobile331eb-mist-dim);
  font-size: 14.5px;
  max-width: 40ch;
}

.mobile331eb-hero-cta {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 16px 0 14px;
}

.mobile331eb-cta-main {
  flex: 1.5;
  min-height: 50px;
  padding: 12px 10px;
  background: linear-gradient(135deg, var(--mobile331eb-pine), var(--mobile331eb-fern));
  color: #08130b;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--mobile331eb-r-pill);
  box-shadow: inset 0 0 0 1px rgba(236, 240, 241, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mobile331eb-cta-main:hover,
.mobile331eb-cta-main:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--mobile331eb-glow), inset 0 0 0 1px rgba(236, 240, 241, 0.3);
}

.mobile331eb-cta-alt {
  flex: 1;
  min-height: 50px;
  padding: 12px 8px;
  border: 1px solid var(--mobile331eb-line-bold);
  border-radius: var(--mobile331eb-r-pill);
  font-weight: 600;
  font-size: 13px;
  color: var(--mobile331eb-mist);
  transition: box-shadow 0.18s ease, color 0.18s ease;
}

.mobile331eb-cta-alt:hover,
.mobile331eb-cta-alt:focus-visible {
  box-shadow: var(--mobile331eb-glow);
  color: #d8f3e2;
}

.mobile331eb-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mobile331eb-fact {
  border: 1px solid var(--mobile331eb-line);
  border-top: 2px solid rgba(46, 139, 87, 0.55);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-shell);
  padding: 8px 7px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--mobile331eb-mist-dim);
  text-align: center;
}

.mobile331eb-fact b {
  display: block;
  font-size: 13px;
  color: var(--mobile331eb-mist);
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   9. Banner carousel
   -------------------------------------------------------------------------- */
.mobile331eb-carousel {
  margin: 18px 14px 0;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-card);
  overflow: hidden;
  background: var(--mobile331eb-shell);
  position: relative;
}

.mobile331eb-track {
  display: grid;
}

.mobile331eb-slide {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s;
}

.mobile331eb-slide-on {
  opacity: 1;
  visibility: visible;
}

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

.mobile331eb-slide-cap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--mobile331eb-line);
}

.mobile331eb-slide-cap b {
  font-family: var(--mobile331eb-font-head);
  font-size: 13.5px;
  color: #d8f3e2;
  white-space: nowrap;
}

.mobile331eb-slide-cap span {
  font-size: 11.5px;
  color: var(--mobile331eb-mist-faint);
  line-height: 1.35;
}

.mobile331eb-dots {
  position: absolute;
  right: 10px;
  bottom: 46px;
  display: flex;
  gap: 6px;
  padding: 4px 6px;
  border-radius: var(--mobile331eb-r-pill);
  background: rgba(16, 18, 16, 0.66);
}

.mobile331eb-dot {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile331eb-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(236, 240, 241, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile331eb-dot:hover::before {
  background: var(--mobile331eb-mist);
}

.mobile331eb-dot-on::before {
  background: var(--mobile331eb-pine);
  transform: scale(1.35);
  box-shadow: var(--mobile331eb-glow);
}

/* --------------------------------------------------------------------------
   10. Game lobby - grouped cover cards
   -------------------------------------------------------------------------- */
.mobile331eb-group {
  margin: 20px 14px 0;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-card);
  background: var(--mobile331eb-shell);
  overflow: hidden;
}

.mobile331eb-group-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--mobile331eb-line);
  background: linear-gradient(180deg, rgba(46, 139, 87, 0.1), transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.mobile331eb-group-tag {
  font-family: var(--mobile331eb-font-head);
  font-size: 12px;
  color: #0d1f12;
  background: var(--mobile331eb-pine);
  border-radius: 3px;
  padding: 1px 6px;
  font-weight: 700;
}

.mobile331eb-group-title {
  font-family: var(--mobile331eb-font-head);
  font-size: 18px;
  font-weight: 700;
  color: #d8f3e2;
}

.mobile331eb-group-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--mobile331eb-mist-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile331eb-group-note {
  flex-basis: 100%;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mobile331eb-mist-dim);
  margin-top: 2px;
}

.mobile331eb-group-links {
  flex-basis: 100%;
  font-size: 12px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(105, 105, 105, 0.4);
  color: var(--mobile331eb-mist-faint);
}

.mobile331eb-group-links a {
  color: #9fdcb6;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.mobile331eb-group-links a:hover,
.mobile331eb-group-links a:focus-visible {
  color: #c7f0d5;
}

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

.mobile331eb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 5px 7px;
  background: var(--mobile331eb-raise);
  border: 1px solid var(--mobile331eb-line);
  border-radius: 6px;
  min-width: 0;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mobile331eb-card:hover,
.mobile331eb-card:focus-visible {
  border-color: var(--mobile331eb-line-bold);
  transform: translateY(-2px);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--mobile331eb-r-soft);
  border: 1px solid rgba(105, 105, 105, 0.35);
}

.mobile331eb-card-name {
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
  color: var(--mobile331eb-mist-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   11. Content modules
   -------------------------------------------------------------------------- */
.mobile331eb-module {
  margin-top: 28px;
  padding-top: 4px;
}

.mobile331eb-modbody {
  margin-top: 4px;
}

.mobile331eb-modbody + .mobile331eb-modbody {
  margin-top: 12px;
}

/* milestones */
.mobile331eb-milestones {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile331eb-milestone {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--mobile331eb-line);
  border-left: 3px solid var(--mobile331eb-fern);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-shell);
  padding: 10px 10px 10px 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mobile331eb-milestone:hover {
  transform: translateX(2px);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-mile-num {
  font-family: var(--mobile331eb-font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--mobile331eb-pine);
  border: 1px solid var(--mobile331eb-line-bold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile331eb-milestone b {
  display: block;
  font-size: 13.5px;
  color: #d8f3e2;
  margin-bottom: 2px;
}

.mobile331eb-milestone p {
  font-size: 12.5px;
  color: var(--mobile331eb-mist-dim);
  line-height: 1.5;
}

/* numbered steps */
.mobile331eb-steps {
  margin: 12px 0 0;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-card);
  overflow: hidden;
}

.mobile331eb-step {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  background: var(--mobile331eb-shell);
}

.mobile331eb-step + .mobile331eb-step {
  border-top: 1px dashed rgba(105, 105, 105, 0.4);
}

.mobile331eb-step i {
  font-style: normal;
  font-family: var(--mobile331eb-font-head);
  font-weight: 700;
  font-size: 13px;
  color: #0d1f12;
  background: var(--mobile331eb-pine);
  border-radius: 3px;
  padding: 1px 7px;
  flex: 0 0 auto;
}

.mobile331eb-step p {
  font-size: 13px;
  color: var(--mobile331eb-mist-dim);
}

/* offer rows */
.mobile331eb-offers {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile331eb-offer {
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-shell);
  padding: 10px 12px;
}

.mobile331eb-offer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.mobile331eb-offer-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d1f12;
  background: var(--mobile331eb-fern);
  border-radius: 3px;
  padding: 1px 6px;
  font-weight: 700;
}

.mobile331eb-offer b {
  font-family: var(--mobile331eb-font-head);
  font-size: 14.5px;
  color: #d8f3e2;
}

.mobile331eb-offer p {
  font-size: 12.5px;
  color: var(--mobile331eb-mist-dim);
}

/* scenario branches */
.mobile331eb-branches {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile331eb-branch {
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-shell);
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}

.mobile331eb-branch-if {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mobile331eb-pine);
}

.mobile331eb-branch p {
  font-size: 13px;
  color: var(--mobile331eb-mist-dim);
}

/* Q&A block */
.mobile331eb-qa {
  margin-top: 14px;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-card);
  overflow: hidden;
}

.mobile331eb-qa-item {
  padding: 11px 12px;
  background: var(--mobile331eb-shell);
}

.mobile331eb-qa-item + .mobile331eb-qa-item {
  border-top: 1px dashed rgba(105, 105, 105, 0.4);
}

.mobile331eb-qa-item h3 {
  font-family: var(--mobile331eb-font-head);
  font-size: 14px;
  font-weight: 700;
  color: #d8f3e2;
  margin-bottom: 4px;
}

.mobile331eb-qa-item p {
  font-size: 13px;
  color: var(--mobile331eb-mist-dim);
}

/* module CTA pair - staggered sizes */
.mobile331eb-modcta {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
}

.mobile331eb-modcta .mobile331eb-cta-main {
  flex: 1.5;
  min-height: 48px;
  font-size: 14px;
}

.mobile331eb-modcta .mobile331eb-cta-alt {
  flex: 1;
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   12. Extended home footer - sectioned list
   -------------------------------------------------------------------------- */
.mobile331eb-extfoot {
  margin-top: 34px;
  border-top: 2px solid var(--mobile331eb-line-bold);
  background: var(--mobile331eb-well);
  padding: 18px 14px 8px;
}

.mobile331eb-xf-brand {
  font-family: var(--mobile331eb-font-head);
  font-size: 15.5px;
  color: #d8f3e2;
  margin-bottom: 6px;
}

.mobile331eb-xf-brand p {
  font-family: var(--mobile331eb-font-body);
  font-size: 13px;
  color: var(--mobile331eb-mist-dim);
  line-height: 1.55;
}

.mobile331eb-xf-sec {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(105, 105, 105, 0.4);
}

.mobile331eb-xf-cap {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mobile331eb-pine);
  margin-bottom: 9px;
}

/* six promo actions as a sectioned list */
.mobile331eb-xf-promos {
  display: grid;
  gap: 7px;
}

.mobile331eb-xf-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-shell);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mobile331eb-xf-promo:hover,
.mobile331eb-xf-promo:focus-visible {
  border-color: var(--mobile331eb-line-bold);
  box-shadow: var(--mobile331eb-glow);
  transform: translateY(-1px);
}

.mobile331eb-xf-promo b {
  font-size: 13.5px;
  color: #d8f3e2;
  display: block;
}

.mobile331eb-xf-promo span {
  font-size: 11.5px;
  color: var(--mobile331eb-mist-faint);
}

.mobile331eb-xf-go {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d1f12;
  background: var(--mobile331eb-pine);
  border-radius: 3px;
  padding: 6px 9px;
}

/* page directory */
.mobile331eb-xf-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mobile331eb-xf-dir a {
  display: block;
  min-height: 44px;
  padding: 10px 9px;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-shell);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.3;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile331eb-xf-dir a:hover,
.mobile331eb-xf-dir a:focus-visible {
  border-color: var(--mobile331eb-line-bold);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-xf-dir b {
  display: block;
  font-size: 12.5px;
  color: #d8f3e2;
}

.mobile331eb-xf-dir span {
  font-size: 10.5px;
  color: var(--mobile331eb-mist-faint);
}

/* disclaimer */
.mobile331eb-xf-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--mobile331eb-slate);
  background: rgba(105, 105, 105, 0.12);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--mobile331eb-mist-faint);
}

/* --------------------------------------------------------------------------
   13. Footer and floating dock
   -------------------------------------------------------------------------- */
.mobile331eb-footer {
  padding: 18px 14px 14px;
  border-top: 1px solid var(--mobile331eb-line);
  background: var(--mobile331eb-well);
}

.mobile331eb-copy {
  font-size: 11.5px;
  color: var(--mobile331eb-mist-faint);
  text-align: center;
  letter-spacing: 0.03em;
}

.mobile331eb-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--mobile331eb-dock-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 15, 13, 0.97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--mobile331eb-line-bold);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
}

.mobile331eb-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border-radius: var(--mobile331eb-r-soft);
  color: var(--mobile331eb-mist-faint);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.mobile331eb-dock-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.mobile331eb-dock-label {
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* active state: icon fills, marker dot lights up, glow hugs the item */
.mobile331eb-dock-on {
  color: #9fdcb6;
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-dock-on svg {
  fill: rgba(46, 139, 87, 0.85);
  stroke: #c7f0d5;
}

.mobile331eb-dock-on::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--mobile331eb-pine);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-dock-item:hover,
.mobile331eb-dock-item:focus-visible {
  color: var(--mobile331eb-mist);
}

/* --------------------------------------------------------------------------
   14. Reveal-on-scroll (short-distance section transitions)
   -------------------------------------------------------------------------- */
.mobile331eb-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile331eb-reveal-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mobile331eb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile331eb-slide {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   15. Responsive tuning inside the 320-430px band
   -------------------------------------------------------------------------- */
/* keep a comfortable 4-column grid at 320px; widen to 5 columns on roomier phones */
@media (min-width: 393px) {
  .mobile331eb-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .mobile331eb-hero-title {
    font-size: 29px;
  }
}

@media (min-width: 431px) {
  .mobile331eb-canvas {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  }

  .mobile331eb-menu {
    max-width: 430px;
  }
}

/* very narrow devices: keep everything tappable and uncramped */
@media (max-width: 339px) {
  .mobile331eb-hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .mobile331eb-hero-title {
    font-size: 24px;
  }

  .mobile331eb-xf-dir {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   16. Help pages - guide trail and safety lanes (distinct shells)
   -------------------------------------------------------------------------- */
.mobile331eb-help-hero {
  padding: 20px 14px 8px;
  background:
    linear-gradient(160deg, rgba(34, 139, 34, 0.14) 0%, transparent 48%),
    var(--mobile331eb-bg);
}

.mobile331eb-help-hero .mobile331eb-hero-title {
  font-size: 24px;
}

.mobile331eb-trail {
  margin: 14px 0 0;
  border-left: 2px solid rgba(46, 139, 87, 0.45);
  padding-left: 14px;
  display: grid;
  gap: 12px;
}

.mobile331eb-trail-item {
  position: relative;
  background: var(--mobile331eb-shell);
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
  padding: 11px 12px;
}

.mobile331eb-trail-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mobile331eb-pine);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-trail-item b {
  display: block;
  font-family: var(--mobile331eb-font-head);
  font-size: 14px;
  color: #d8f3e2;
  margin-bottom: 3px;
}

.mobile331eb-trail-item p {
  font-size: 13px;
  color: var(--mobile331eb-mist-dim);
}

.mobile331eb-checkgrid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile331eb-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 11px;
  border: 1px dashed rgba(46, 139, 87, 0.45);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-raise);
}

.mobile331eb-check i {
  font-style: normal;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mobile331eb-line-bold);
  border-radius: 4px;
  color: var(--mobile331eb-pine);
  font-weight: 800;
  font-size: 13px;
}

.mobile331eb-check b {
  display: block;
  font-size: 13.5px;
  color: #d8f3e2;
  margin-bottom: 2px;
}

.mobile331eb-check p {
  font-size: 12.5px;
  color: var(--mobile331eb-mist-dim);
}

.mobile331eb-termlist {
  margin-top: 12px;
  display: grid;
  gap: 0;
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-card);
  overflow: hidden;
}

.mobile331eb-term {
  padding: 11px 12px;
  background: var(--mobile331eb-shell);
}

.mobile331eb-term + .mobile331eb-term {
  border-top: 1px solid var(--mobile331eb-line);
}

.mobile331eb-term dt {
  font-family: var(--mobile331eb-font-head);
  font-size: 14px;
  color: var(--mobile331eb-pine);
  margin-bottom: 3px;
}

.mobile331eb-term dd {
  margin: 0;
  font-size: 13px;
  color: var(--mobile331eb-mist-dim);
}

.mobile331eb-criteria {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile331eb-criterion {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--mobile331eb-shell);
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
}

.mobile331eb-criterion span {
  flex: 0 0 auto;
  min-width: 54px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0d1f12;
  background: var(--mobile331eb-fern);
  border-radius: 3px;
  padding: 4px 6px;
}

.mobile331eb-criterion p {
  font-size: 13px;
  color: var(--mobile331eb-mist-dim);
}

.mobile331eb-promo-inline {
  color: #9fdcb6;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.mobile331eb-promo-inline:hover,
.mobile331eb-promo-inline:focus-visible {
  color: #c7f0d5;
  text-decoration-style: solid;
}

/* Safety page: split lanes, scenario panel, path cards */
.mobile331eb-scenario {
  margin-top: 12px;
  padding: 14px 12px;
  border: 1px solid var(--mobile331eb-line-bold);
  border-radius: var(--mobile331eb-r-card);
  background:
    linear-gradient(135deg, rgba(46, 139, 87, 0.12), transparent 60%),
    var(--mobile331eb-shell);
}

.mobile331eb-scenario b {
  display: block;
  font-family: var(--mobile331eb-font-head);
  font-size: 15px;
  color: #d8f3e2;
  margin-bottom: 6px;
}

.mobile331eb-scenario p {
  font-size: 13.5px;
  color: var(--mobile331eb-mist-dim);
}

.mobile331eb-lanes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile331eb-lane {
  padding: 12px;
  border-radius: var(--mobile331eb-r-soft);
  border: 1px solid var(--mobile331eb-line);
  background: var(--mobile331eb-shell);
}

.mobile331eb-lane-pro {
  border-top: 3px solid var(--mobile331eb-pine);
}

.mobile331eb-lane-limit {
  border-top: 3px solid var(--mobile331eb-slate);
}

.mobile331eb-lane h3 {
  font-family: var(--mobile331eb-font-head);
  font-size: 14px;
  color: #d8f3e2;
  margin-bottom: 6px;
}

.mobile331eb-lane ul {
  display: grid;
  gap: 6px;
}

.mobile331eb-lane li {
  font-size: 12.5px;
  color: var(--mobile331eb-mist-dim);
  padding-left: 12px;
  position: relative;
}

.mobile331eb-lane li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mobile331eb-pine);
}

.mobile331eb-lane-limit li::before {
  background: var(--mobile331eb-slate);
}

.mobile331eb-paths {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile331eb-path {
  display: block;
  padding: 12px;
  border: 1px solid var(--mobile331eb-line);
  border-left: 3px solid var(--mobile331eb-fern);
  border-radius: var(--mobile331eb-r-soft);
  background: var(--mobile331eb-raise);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile331eb-path:hover,
.mobile331eb-path:focus-visible {
  border-color: var(--mobile331eb-line-bold);
  box-shadow: var(--mobile331eb-glow);
}

.mobile331eb-path b {
  display: block;
  font-size: 14px;
  color: #d8f3e2;
  margin-bottom: 3px;
}

.mobile331eb-path span {
  font-size: 12.5px;
  color: var(--mobile331eb-mist-dim);
}

.mobile331eb-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.mobile331eb-chip {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border: 1px solid var(--mobile331eb-line-bold);
  border-radius: 999px;
  color: #9fdcb6;
  background: rgba(46, 139, 87, 0.1);
}

.mobile331eb-pairgrid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile331eb-pair {
  padding: 11px 12px;
  background: var(--mobile331eb-shell);
  border: 1px solid var(--mobile331eb-line);
  border-radius: var(--mobile331eb-r-soft);
}

.mobile331eb-pair h3 {
  font-size: 13.5px;
  font-family: var(--mobile331eb-font-head);
  color: #d8f3e2;
  margin-bottom: 4px;
}

.mobile331eb-pair p {
  font-size: 12.5px;
  color: var(--mobile331eb-mist-dim);
}
