/* ==========================================================================
   BB8 Casino - mobile shell stylesheet
   File   : css/mobile-ee9e50-shell.css
   Prefix : ce5043-
   Canvas : 320-430px phone frame, centered on wide screens
   Palette: #36454F / #D3D3D3 / #2D2D2D / #FFA500 / #808080
   Voice  : bold condensed headings, light body, small radii, dense rhythm
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ce5043-ink:        #2D2D2D;
  --ce5043-slate:      #36454F;
  --ce5043-slate-hi:   #3b4b56;
  --ce5043-paper:      #D3D3D3;
  --ce5043-bright:     #f2f4f5;
  --ce5043-mute:       #8f99a0;
  --ce5043-steel:      #808080;
  --ce5043-amber:      #FFA500;
  --ce5043-amber-deep: #e09300;
  --ce5043-amber-soft: rgba(255, 165, 0, .12);
  --ce5043-line:       rgba(211, 211, 211, .16);
  --ce5043-line-soft:  rgba(211, 211, 211, .09);
  --ce5043-r:          5px;   /* small radius, high density */
  --ce5043-r-lg:       8px;
  --ce5043-dock-h:     58px;  /* bottom dock height */
  --ce5043-font: -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--ce5043-font);
  background: #17191b;
  color: var(--ce5043-paper);
  font-size: 14px;
  line-height: 1.55;
}

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

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ce5043-amber);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: rgba(255, 165, 0, .35); color: #fff; }

/* --------------------------------------------------------------------------
   3. Phone canvas (kept on wide screens, hard cap 430px)
   -------------------------------------------------------------------------- */
.ce5043-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background:
    radial-gradient(130% 55% at 50% -40px, rgba(255, 165, 0, .07), transparent 60%),
    var(--ce5043-ink);
  box-shadow: 0 0 46px rgba(0, 0, 0, .55);
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   4. Top bar - asymmetric brand header
   -------------------------------------------------------------------------- */
.ce5043-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 7px 8px;
  background: linear-gradient(100deg, #272f36 0%, var(--ce5043-ink) 60%);
  border-bottom: 1px solid var(--ce5043-line);
  transition: box-shadow .25s ease;
}
.ce5043-top.ce5043-scrolled { box-shadow: 0 10px 20px rgba(0, 0, 0, .42); }

.ce5043-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.ce5043-brandmark {
  flex: none;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--ce5043-amber), var(--ce5043-amber-deep));
  border-radius: var(--ce5043-r);
  transform: skewX(-6deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.ce5043-brandmark img {
  width: 33px;
  height: 33px;
  border-radius: 3px;
  object-fit: cover;
  transform: skewX(6deg);
}
.ce5043-brandname {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--ce5043-bright);
}
.ce5043-brandname b { color: var(--ce5043-amber); font-weight: 800; }
@media (min-width: 360px) {
  .ce5043-brandname { font-size: 16.5px; }
}

.ce5043-topacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ce5043-btnGhost,
.ce5043-btnAmber {
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--ce5043-r);
  border: 1px solid;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  transition: transform .15s ease, filter .15s ease;
}
@media (min-width: 360px) {
  .ce5043-btnGhost,
  .ce5043-btnAmber { padding: 0 13px; font-size: 12.5px; }
}
.ce5043-btnGhost {
  background: transparent;
  color: var(--ce5043-bright);
  border-color: rgba(211, 211, 211, .38);
}
.ce5043-btnAmber {
  background: linear-gradient(150deg, var(--ce5043-amber), var(--ce5043-amber-deep));
  color: #241a05;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(255, 165, 0, .26);
}
.ce5043-btnGhost:active,
.ce5043-btnAmber:active {
  transform: translateY(-2px);      /* short vertical lift */
  filter: brightness(1.1);
}

.ce5043-menuBtn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(211, 211, 211, .38);
  border-radius: var(--ce5043-r);
  color: var(--ce5043-bright);
}
.ce5043-menuBtn:active { transform: translateY(-2px); }
.ce5043-menuBtn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   5. Slide-up route panel + veil
   -------------------------------------------------------------------------- */
.ce5043-veil {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 11, 12, .62);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.ce5043-veil.ce5043-open { opacity: 1; visibility: visible; }

.ce5043-sheet {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--ce5043-dock-h) + 8px);
  width: min(100%, 430px);
  max-height: min(74dvh, 580px);
  overflow-y: auto;
  padding: 12px 12px 16px;
  background: #23282d;
  border: 1px solid var(--ce5043-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translate(-50%, 108%);
  transition: transform .3s cubic-bezier(.22, .9, .3, 1);
}
.ce5043-sheet.ce5043-open { transform: translate(-50%, 0); }

.ce5043-sheetHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ce5043-sheetTitle {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ce5043-bright);
}
.ce5043-sheetClose {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(211, 211, 211, .3);
  border-radius: var(--ce5043-r);
  color: var(--ce5043-amber);
  font-size: 16px;
}
.ce5043-sheetClose:active { transform: translateY(-2px); }

.ce5043-sheetGroup + .ce5043-sheetGroup {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--ce5043-line-soft);
}
.ce5043-sheetGroupTitle {
  margin: 0 0 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ce5043-amber);
}
.ce5043-sheetLink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 2px;
  color: var(--ce5043-paper);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--ce5043-line-soft);
}
.ce5043-sheetLink em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--ce5043-mute);
  font-weight: 500;
}
.ce5043-sheetLink .ce5043-arrow {
  flex: none;
  color: var(--ce5043-amber);
  font-size: 15px;
  line-height: 1;
}
.ce5043-sheetLink.ce5043-here { color: var(--ce5043-amber); }
.ce5043-sheetLink:active .ce5043-arrow { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   6. Main column
   -------------------------------------------------------------------------- */
.ce5043-main { padding: 12px 10px 24px; }

/* 6.1 Hero */
.ce5043-hero {
  padding: 16px 12px 14px;
  border: 1px solid var(--ce5043-line);
  border-radius: var(--ce5043-r-lg);
  background:
    radial-gradient(120% 100% at 88% -20%, rgba(255, 165, 0, .18), transparent 55%),
    linear-gradient(165deg, #343c42, #292e32 70%);
}
.ce5043-heroTitle {
  margin: 0 0 8px;
  font-size: clamp(20px, 6.4vw, 25px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ce5043-bright);
}
.ce5043-heroLead {
  margin: 0 0 10px;
  font-size: 12.8px;
  color: #bac3c9;
}
.ce5043-heroChips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 12px;
}
.ce5043-chip {
  padding: 3px 7px;
  border: 1px solid var(--ce5043-line);
  border-radius: 4px;
  background: rgba(211, 211, 211, .05);
  color: #c7ced3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}
.ce5043-chipA {
  border-color: rgba(255, 165, 0, .45);
  background: var(--ce5043-amber-soft);
  color: var(--ce5043-amber);
}
.ce5043-ctaMain {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--ce5043-r);
  background: linear-gradient(150deg, var(--ce5043-amber), var(--ce5043-amber-deep));
  color: #241a05;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(255, 165, 0, .3);
  transition: transform .15s ease;
}
.ce5043-ctaMain:active { transform: translateY(-2px); }
.ce5043-ctaAlt {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ce5043-mute);
  text-decoration: underline;
}

/* 6.2 Promo carousel */
.ce5043-slideWrap { margin-top: 12px; }
.ce5043-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ce5043-line);
  border-radius: var(--ce5043-r-lg);
  background: #20262b;
  touch-action: pan-y;
}
.ce5043-slide {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #20262b;
  text-align: left;
  opacity: 0;
  transform: translateX(8%);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.ce5043-slide.ce5043-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}
.ce5043-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ce5043-slideCap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 28px 10px 9px;
  background: linear-gradient(180deg, transparent, rgba(13, 15, 17, .9) 62%);
}
.ce5043-slideKicker {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffd27a;
}
.ce5043-slideLine {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #eef1f2;
}
.ce5043-slideCta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--ce5043-r);
  background: var(--ce5043-amber);
  color: #241a05;
  font-size: 12.5px;
  font-weight: 800;
}
.ce5043-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
}
.ce5043-dot {
  width: 22px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(211, 211, 211, .22);
}
.ce5043-dot.ce5043-on { background: var(--ce5043-amber); }

/* --------------------------------------------------------------------------
   7. Game lobby - category sections with horizontal icon/name bars
   -------------------------------------------------------------------------- */
.ce5043-sec { margin-top: 20px; scroll-margin-top: 72px; }

.ce5043-sechead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding-left: 9px;
  border-left: 3px solid var(--ce5043-amber);
}
.ce5043-sechead h2 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ce5043-bright);
}
.ce5043-count {
  flex: none;
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid var(--ce5043-line);
  border-radius: 4px;
  color: var(--ce5043-mute);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.ce5043-secIntro {
  margin: 0 0 9px;
  font-size: 12.3px;
  color: #aeb7bd;
}
.ce5043-secIntro a { text-decoration: underline; }

.ce5043-ggrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
@media (min-width: 375px) {
  .ce5043-ggrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
}
.ce5043-gbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 6px 7px;
  background: linear-gradient(180deg, #343a40, #2d3237);
  border: 1px solid var(--ce5043-line-soft);
  border-radius: var(--ce5043-r);
  text-align: left;
  transition: border-color .18s ease;
}
.ce5043-gbar img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  object-fit: cover;
  background: #22262a;
  transition: transform .18s ease;   /* icon micro-change on press */
}
.ce5043-gname {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 11px;
  line-height: 1.28;
  font-weight: 600;
  color: #e4e8ea;
}
.ce5043-gbar:active { border-color: var(--ce5043-amber); }
.ce5043-gbar:active img { transform: scale(.92); }

/* --------------------------------------------------------------------------
   8. Editorial blocks (Q&A notes, steps, winners feed, branches, ticks)
   -------------------------------------------------------------------------- */
.ce5043-qa {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 165, 0, .28);
  border-left: 3px solid rgba(255, 165, 0, .55);
  border-radius: var(--ce5043-r);
  background: var(--ce5043-amber-soft);
}
.ce5043-qa h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffcf7d;
}
.ce5043-qa p { margin: 0; font-size: 11.8px; color: #c4ccd2; }

.ce5043-steps {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ce5043-step;
}
.ce5043-steps li {
  position: relative;
  counter-increment: ce5043-step;
  margin-bottom: 6px;
  padding: 9px 10px 9px 40px;
  border: 1px solid var(--ce5043-line-soft);
  border-radius: var(--ce5043-r);
  background: #31363b;
  font-size: 12.2px;
  color: #c3cad0;
}
.ce5043-steps li::before {
  content: counter(ce5043-step);
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--ce5043-amber);
  color: #241a05;
  font-size: 12px;
  font-weight: 800;
}

.ce5043-feed {
  margin-top: 10px;
  border: 1px solid var(--ce5043-line-soft);
  border-radius: var(--ce5043-r);
  overflow: hidden;
}
.ce5043-feedRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: #31363b;
}
.ce5043-feedRow + .ce5043-feedRow { border-top: 1px solid var(--ce5043-line-soft); }
.ce5043-feedWho { flex: 1; min-width: 0; }
.ce5043-feedWho b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
  color: #e8ecee;
}
.ce5043-feedWho span { display: block; font-size: 10.5px; color: var(--ce5043-mute); }
.ce5043-feedAmt { flex: none; text-align: right; }
.ce5043-feedAmt b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ce5043-amber);
}
.ce5043-feedAmt span { display: block; font-size: 10px; color: var(--ce5043-mute); }

.ce5043-branch {
  margin-top: 8px;
  padding: 10px 11px;
  border: 1px solid var(--ce5043-line-soft);
  border-radius: var(--ce5043-r);
  background: #30353a;
}
.ce5043-branchTag {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 165, 0, .4);
  border-radius: 4px;
  color: var(--ce5043-amber);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ce5043-branch p { margin: 0; font-size: 12.1px; color: #c1c8ce; }

.ce5043-ticks {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.ce5043-ticks li {
  position: relative;
  margin-bottom: 6px;
  padding: 8px 10px 8px 32px;
  border: 1px solid var(--ce5043-line-soft);
  border-radius: var(--ce5043-r);
  background: #31363b;
  font-size: 12.2px;
  color: #c3cad0;
}
.ce5043-ticks li::before {
  content: "\2713";
  position: absolute;
  left: 9px;
  top: 9px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  background: rgba(255, 165, 0, .18);
  color: var(--ce5043-amber);
  font-size: 11px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. Homepage extended footer
   (page directory > brand > promotions > disclaimer)
   -------------------------------------------------------------------------- */
.ce5043-xfoot {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--ce5043-line);
}
.ce5043-xfootHead {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ce5043-amber);
}
.ce5043-dir {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 10px;
}
.ce5043-dirCol h3 {
  margin: 0 0 2px;
  font-size: 9.8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ce5043-mute);
}
.ce5043-dirLink {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--ce5043-line-soft);
  color: #ccd3d8;
  font-size: 11.4px;
  font-weight: 600;
  line-height: 1.25;
}
.ce5043-dirLink:active { color: var(--ce5043-amber); }

.ce5043-xbrand {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
}
.ce5043-xbrand img {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ce5043-line);
  border-radius: 5px;
}
.ce5043-xbrand p { margin: 0; font-size: 11.6px; color: #aab3ba; }
.ce5043-xbrand b { color: var(--ce5043-bright); }

.ce5043-xacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.ce5043-xbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 165, 0, .5);
  border-radius: var(--ce5043-r);
  background: transparent;
  color: var(--ce5043-amber);
  font-size: 11.6px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: transform .15s ease;
}
.ce5043-xbtnA {
  background: linear-gradient(150deg, var(--ce5043-amber), var(--ce5043-amber-deep));
  border-color: transparent;
  color: #241a05;
}
.ce5043-xbtn:active { transform: translateY(-2px); }

.ce5043-xnote {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px dashed rgba(211, 211, 211, .25);
  border-radius: var(--ce5043-r);
  font-size: 10.6px;
  line-height: 1.5;
  color: #98a1a8;
}

/* --------------------------------------------------------------------------
   10. Common footer + fixed bottom dock
   -------------------------------------------------------------------------- */
.ce5043-foot {
  padding: 12px 10px 86px;   /* clears the fixed dock */
  text-align: center;
}
.ce5043-foot p { margin: 0; font-size: 10.6px; color: #7f888e; }

.ce5043-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: 430px;
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #262b30, #1e2226);
  border-top: 2px solid var(--ce5043-amber);   /* brand accent band */
}
.ce5043-dockItem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 4px 2px;
  background: none;
  border: 0;
  color: #9aa4ab;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ce5043-dockItem svg {
  width: 21px;
  height: 21px;
  transition: transform .16s ease;
}
.ce5043-dockItem:active svg { transform: translateY(-2px); }
.ce5043-dockItem.ce5043-promo { color: #ffc766; }
.ce5043-dockItem.ce5043-promo svg { color: var(--ce5043-amber); }
.ce5043-dockItem.ce5043-here { color: var(--ce5043-amber); }
.ce5043-dockItem.ce5043-here::before {          /* underline active marker */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--ce5043-amber);
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   11. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation: none !important;
  }
}
