/* ============================================================
   bajl365.click - mobile-first frame stylesheet
   Prefix contract: every class and variable starts with shelled15d-
   Palette: #262626 base / #FFCCCB #FFB6C1 ink / #66CDAA #228B22 accents
   Design tone: near-square tool feel, light floating game cards,
   fact-summary rhythm, restrained fades, full-width primary CTA.
   ============================================================ */

:root {
  --shelled15d-bg: #262626;
  --shelled15d-bg-deep: #1d1d1c;
  --shelled15d-surface: #2f2f2e;
  --shelled15d-surface-2: #353533;
  --shelled15d-ink: #FFCCCB;
  --shelled15d-ink-soft: #FFB6C1;
  --shelled15d-mint: #66CDAA;
  --shelled15d-forest: #228B22;
  --shelled15d-line: rgba(255, 204, 203, 0.18);
  --shelled15d-shadow: 0 3px 10px rgba(0, 0, 0, 0.38);
  --shelled15d-topbar-h: 58px;
  --shelled15d-bnav-h: 64px;
  --shelled15d-font: -apple-system, "Segoe UI", "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: #171717;
  color: var(--shelled15d-ink);
  font-family: var(--shelled15d-font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.shelled15d-menu-open { overflow: hidden; }

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

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

a { color: var(--shelled15d-mint); text-decoration: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 2px solid var(--shelled15d-mint); outline-offset: 2px; }

/* ---------- skip link ---------- */
.shelled15d-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--shelled15d-mint);
  color: #14332a;
  padding: 10px 16px;
  font-weight: 800;
  z-index: 200;
}
.shelled15d-skip:focus { left: 12px; top: 12px; }

/* ---------- phone canvas: stays centred on wide screens ---------- */
.shelled15d-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shelled15d-bg);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
}

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

.shelled15d-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shelled15d-brand img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--shelled15d-line);
  flex-shrink: 0;
}
.shelled15d-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  white-space: nowrap;
}

.shelled15d-top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.shelled15d-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}
.shelled15d-btn-register { background: var(--shelled15d-mint); color: #152420; }
.shelled15d-btn-register:active { transform: translateY(1px); }
.shelled15d-btn-login { background: transparent; color: var(--shelled15d-ink-soft); border-color: rgba(255, 182, 193, 0.55); }
.shelled15d-btn-login:active { background: rgba(255, 182, 193, 0.1); }

.shelled15d-menu-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--shelled15d-ink);
}
.shelled15d-menu-btn svg { transition: transform 0.2s ease; }
.shelled15d-menu-btn[aria-expanded="true"] svg { transform: rotate(90deg); color: var(--shelled15d-mint); }

/* ---------- sectioned menu panel ---------- */
.shelled15d-menu {
  position: fixed;
  top: var(--shelled15d-topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 58px);
  overflow-y: auto;
  background: var(--shelled15d-bg-deep);
  border-bottom: 2px solid var(--shelled15d-mint);
  z-index: 70;
  padding: 4px 14px 18px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
body.shelled15d-menu-open .shelled15d-menu { visibility: visible; opacity: 1; }

.shelled15d-menu-group { padding: 8px 0 10px; border-bottom: 1px dashed var(--shelled15d-line); }
.shelled15d-menu-group:last-child { border-bottom: 0; }
.shelled15d-menu-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--shelled15d-mint);
  padding: 8px 0 4px;
}
.shelled15d-menu-group a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 3px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}
.shelled15d-menu-group a span { font-weight: 400; font-size: 12px; color: var(--shelled15d-ink-soft); }
.shelled15d-menu-group a:active,
.shelled15d-menu-group a[aria-current="page"] {
  background: rgba(102, 205, 170, 0.12);
  color: var(--shelled15d-mint);
}

/* ---------- main column ---------- */
.shelled15d-main {
  padding: calc(var(--shelled15d-topbar-h) + 14px) 14px 26px;
}

/* ---------- hero ---------- */
.shelled15d-hero { padding: 14px 2px 4px; }
.shelled15d-hero h1 {
  font-size: 23px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
}
.shelled15d-hero-lead { margin-top: 10px; color: var(--shelled15d-ink); font-size: 14px; }

.shelled15d-factrow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.shelled15d-factrow li {
  background: var(--shelled15d-surface);
  border: 1px solid var(--shelled15d-line);
  border-radius: 3px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--shelled15d-ink-soft);
}

/* ---------- full-width primary CTA ---------- */
.shelled15d-cta {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  background: var(--shelled15d-mint);
  color: #14332a;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  border-radius: 3px;
}
.shelled15d-cta:active { transform: translateY(1px); }
.shelled15d-cta--ghost {
  background: transparent;
  color: var(--shelled15d-mint);
  border: 1px solid rgba(102, 205, 170, 0.6);
  min-height: 48px;
  font-size: 14.5px;
  margin-top: 10px;
}

/* ---------- promo carousel ---------- */
.shelled15d-carousel {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--shelled15d-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shelled15d-shadow);
  background: var(--shelled15d-surface);
}
.shelled15d-track { display: flex; transition: transform 0.35s ease; touch-action: pan-y; }
.shelled15d-slide {
  position: relative;
  flex: 0 0 100%;
  border: 0;
  background: #202020;
  padding: 0;
  display: block;
  text-align: left;
}
.shelled15d-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shelled15d-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.94));
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}
.shelled15d-dots {
  position: absolute;
  bottom: 6px;
  right: 8px;
  display: flex;
  gap: 2px;
}
.shelled15d-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
}
.shelled15d-dot i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 204, 203, 0.45);
  border: 1px solid rgba(255, 204, 203, 0.7);
}
.shelled15d-dot[aria-current="true"] i { background: var(--shelled15d-mint); border-color: var(--shelled15d-mint); }

/* ---------- category rails ---------- */
.shelled15d-rail { margin-top: 28px; }
.shelled15d-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-left: 3px solid var(--shelled15d-mint);
  padding-left: 10px;
}
.shelled15d-rail-head h2 { font-size: 18px; line-height: 1.45; color: #ffffff; font-weight: 800; }
.shelled15d-rail-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--shelled15d-ink-soft);
  border: 1px solid var(--shelled15d-line);
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
}
.shelled15d-rail-intro { margin: 10px 0 12px; font-size: 13.5px; color: var(--shelled15d-ink); }

/* game grid: 4 columns at 320px, 5 columns from ~392px up */
.shelled15d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 392px) {
  .shelled15d-grid { grid-template-columns: repeat(5, 1fr); }
}

/* light floating game card */
.shelled15d-card {
  background: var(--shelled15d-surface);
  border: 1px solid var(--shelled15d-line);
  border-radius: 6px;
  padding: 6px 5px 7px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}
.shelled15d-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #222222;
}
.shelled15d-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
  color: var(--shelled15d-ink-soft);
  font-weight: 600;
  margin-top: 5px;
  word-break: break-word;
}
.shelled15d-card:active { transform: translateY(-2px); border-color: var(--shelled15d-mint); }

.shelled15d-rail-more { margin-top: 12px; font-size: 13px; color: var(--shelled15d-ink); }
.shelled15d-rail-more a { border-bottom: 1px dotted rgba(102, 205, 170, 0.7); font-weight: 600; padding: 2px; }

/* ---------- content modules ---------- */
.shelled15d-module {
  margin-top: 28px;
  border: 1px solid var(--shelled15d-line);
  border-radius: 6px;
  background: var(--shelled15d-surface);
  padding: 16px 14px;
}
.shelled15d-module > h2 { font-size: 18px; color: #ffffff; font-weight: 800; line-height: 1.45; }
.shelled15d-module > p { margin-top: 10px; font-size: 13.5px; }

.shelled15d-module--cta {
  background: linear-gradient(165deg, #23413a 0%, #262626 70%);
  border-color: rgba(102, 205, 170, 0.4);
}

/* style-finder list (guide) */
.shelled15d-picklist { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.shelled15d-picklist li {
  border-left: 3px solid var(--shelled15d-forest);
  padding: 2px 0 2px 10px;
  font-size: 13.5px;
}
.shelled15d-picklist b { display: block; color: #ffffff; font-size: 14px; }

/* numbered steps (mobile access) */
.shelled15d-steps { list-style: none; counter-reset: shelled15d-step; margin-top: 12px; display: grid; gap: 11px; }
.shelled15d-steps li {
  counter-increment: shelled15d-step;
  position: relative;
  padding-left: 38px;
  min-height: 30px;
  font-size: 13.5px;
}
.shelled15d-steps li::before {
  content: counter(shelled15d-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: var(--shelled15d-forest);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

/* comparison table */
.shelled15d-tablewrap {
  margin-top: 12px;
  border: 1px solid var(--shelled15d-line);
  border-radius: 4px;
  overflow: hidden;
}
.shelled15d-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.shelled15d-table th,
.shelled15d-table td {
  border-bottom: 1px solid var(--shelled15d-line);
  padding: 7px 6px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
.shelled15d-table tr:last-child td { border-bottom: 0; }
.shelled15d-table th { color: var(--shelled15d-mint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; }
.shelled15d-table td { color: var(--shelled15d-ink); }

/* expandable fact blocks */
.shelled15d-facts { margin-top: 12px; display: grid; gap: 8px; }
.shelled15d-facts details {
  border: 1px solid var(--shelled15d-line);
  border-radius: 4px;
  background: var(--shelled15d-bg-deep);
  padding: 0 12px;
}
.shelled15d-facts summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  padding: 10px 0;
}
.shelled15d-facts summary::-webkit-details-marker { display: none; }
.shelled15d-facts summary::after {
  content: "+";
  color: var(--shelled15d-mint);
  font-size: 18px;
  font-weight: 800;
  transition: transform 0.18s ease;
}
.shelled15d-facts details[open] summary::after { transform: rotate(45deg); }
.shelled15d-facts details p { font-size: 13px; padding: 0 0 12px; color: var(--shelled15d-ink); }

/* ---------- footer with extended home area ---------- */
.shelled15d-footer {
  padding-bottom: calc(var(--shelled15d-bnav-h) + 30px);
}
.shelled15d-extfoot {
  margin: 6px 14px 0;
  padding: 20px 0 16px;
  background: var(--shelled15d-bg-deep);
  border-top: 2px solid var(--shelled15d-mint);
}
.shelled15d-extfoot-inner { padding: 0 2px; }
.shelled15d-extfoot h2 { font-size: 17px; color: #ffffff; font-weight: 800; }

.shelled15d-shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.shelled15d-shortcut {
  min-height: 46px;
  border: 1px solid rgba(102, 205, 170, 0.45);
  background: rgba(102, 205, 170, 0.08);
  color: var(--shelled15d-mint);
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
}
.shelled15d-shortcut:active { background: rgba(102, 205, 170, 0.22); }

.shelled15d-about { margin-top: 16px; font-size: 12.5px; color: var(--shelled15d-ink-soft); }
.shelled15d-dirlabel {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--shelled15d-mint);
  text-transform: uppercase;
}
.shelled15d-directory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; margin-top: 8px; list-style: none; }
.shelled15d-directory a {
  font-size: 12.5px;
  border-bottom: 1px dotted rgba(102, 205, 170, 0.55);
  display: inline-block;
  padding: 4px 0;
}
.shelled15d-disclaimer {
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(255, 204, 203, 0.78);
  line-height: 1.65;
  border-top: 1px dashed var(--shelled15d-line);
  padding-top: 10px;
}
.shelled15d-copy { margin: 14px 14px 0; text-align: center; font-size: 11.5px; color: rgba(255, 204, 203, 0.65); }

/* ---------- fixed segmented bottom action bar ---------- */
.shelled15d-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--shelled15d-bnav-h) + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #1f1f1e;
  border-top: 1px solid var(--shelled15d-line);
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.shelled15d-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: 0;
  color: var(--shelled15d-ink-soft);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 700;
  min-height: 44px;
  padding: 2px 1px;
}
.shelled15d-bnav-item svg { width: 22px; height: 22px; transition: transform 0.18s ease; }
.shelled15d-bnav-item:active svg { transform: scale(0.92); }
.shelled15d-bnav-active { color: var(--shelled15d-mint); }
.shelled15d-bnav-active svg { transform: translateY(-1px) scale(1.08); }
.shelled15d-bnav-promo { color: var(--shelled15d-mint); }

/* ---------- restrained reveal motion ---------- */
.shelled15d-reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.shelled15d-reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .shelled15d-reveal { opacity: 1; transform: none; transition: none; }
  .shelled15d-track { transition: none; }
  .shelled15d-bnav-item svg,
  .shelled15d-menu-btn svg { transition: none; }
}

/* Compatible Part1 content and accessibility additions */
.shelled15d-main { font-size: 16px; }
.shelled15d-hero-lead,
.shelled15d-rail-intro,
.shelled15d-module > p,
.shelled15d-picklist li,
.shelled15d-steps li,
.shelled15d-facts details p { font-size: 15px; line-height: 1.85; }
.shelled15d-main p + p { margin-top: 12px; }
.shelled15d-main h2 { scroll-margin-top: 76px; }
.shelled15d-main a:not(.shelled15d-brand) { text-decoration: underline; text-underline-offset: 4px; }
.shelled15d-card-name { display: block; overflow: visible; -webkit-line-clamp: unset; min-height: 3em; font-size: 12px; overflow-wrap: anywhere; }
.shelled15d-card { display: flex; flex-direction: column; justify-content: flex-start; }
.shelled15d-grid { align-items: stretch; }
.shelled15d-dot { width: 44px; height: 44px; }
.shelled15d-dots { position: static; justify-content: flex-end; padding-right: 6px; background: #202020; }
.shelled15d-slide-cap { padding: 24px 12px 10px; }
.shelled15d-slide[aria-hidden="true"] { visibility: hidden; }
.shelled15d-carousel-tools { display: flex; align-items: center; justify-content: space-between; background: #202020; }
.shelled15d-pause { min-height: 44px; border: 0; background: transparent; color: var(--shelled15d-mint); padding: 6px 12px; font-size: 13px; }
.shelled15d-reveal { opacity: 1; transform: none; }
.shelled15d-reveal-in { animation: shelled15d-fade .3s ease-out; }
@keyframes shelled15d-fade { from { opacity: .7; } to { opacity: 1; } }
.shelled15d-footer { padding-bottom: calc(var(--shelled15d-bnav-h) + env(safe-area-inset-bottom, 0px) + 30px); }
.shelled15d-menu { max-height: calc(100dvh - var(--shelled15d-topbar-h) - var(--shelled15d-bnav-h) - env(safe-area-inset-bottom, 0px)); }
.shelled15d-top-actions { gap: 4px; }
.shelled15d-btn { padding: 0 10px; }
.shelled15d-brand { gap: 5px; }
.shelled15d-brand-name { font-size: 18px; }
.shelled15d-shortcuts { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
.shelled15d-shortcut { flex: 0 0 auto; padding: 6px 12px; }
.shelled15d-directory a { display: flex; align-items: center; min-height: 44px; }
.shelled15d-about, .shelled15d-disclaimer { font-size: 14px; color: var(--shelled15d-ink); }
.shelled15d-table { font-size: 14px; }
.shelled15d-table th { font-size: 13px; text-transform: none; letter-spacing: 0; }
.shelled15d-breadcrumb { font-size: 13px; margin: 4px 0 14px; }
.shelled15d-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.shelled15d-answer { border-left: 3px solid var(--shelled15d-mint); padding: 12px; margin-top: 14px; background: #202723; }
.shelled15d-evidence { margin-top: 28px; border-top: 2px solid var(--shelled15d-mint); padding-top: 14px; }
.shelled15d-evidence h2 { font-size: 19px; color: #fff; line-height: 1.5; }
.shelled15d-evidence h3, .shelled15d-module h3 { font-size: 16px; color: #fff; margin: 16px 0 6px; }
.shelled15d-ledger { margin-top: 14px; }
.shelled15d-ledger dt { font-weight: 700; color: #fff; border-left: 2px solid var(--shelled15d-mint); padding: 4px 10px; }
.shelled15d-ledger dd { margin: 6px 0 18px; }
.shelled15d-checklist { list-style: none; margin-top: 14px; }
.shelled15d-checklist li { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--shelled15d-mint); background: #202020; }
.shelled15d-checklist b { display: block; color: #fff; }
.shelled15d-stage { list-style: none; counter-reset: shelled15d-sequence; margin-top: 18px; }
.shelled15d-stage > li { counter-increment: shelled15d-sequence; border-top: 1px solid var(--shelled15d-line); padding: 18px 0; }
.shelled15d-stage h3::before { content: counter(shelled15d-sequence) " / "; color: var(--shelled15d-mint); }
.shelled15d-stage h3 { margin: 0 0 10px; }
.shelled15d-stage p { margin-top: 10px; }
.shelled15d-question { margin-top: 18px; border-top: 1px dashed var(--shelled15d-line); padding-top: 12px; }
.shelled15d-question h3 { margin-top: 0; }
.shelled15d-inline-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.shelled15d-inline-actions button { min-height: 44px; font-size: 14px; padding: 8px; border: 0; color: #142820; background: var(--shelled15d-mint); }
@media (prefers-reduced-motion: reduce) { .shelled15d-reveal-in { animation: none; } }

/* very narrow guards (320px) */
@media (max-width: 339px) {
  .shelled15d-btn { padding: 0 10px; font-size: 12px; }
  .shelled15d-factrow { grid-template-columns: repeat(2, 1fr); }
  .shelled15d-shortcuts { grid-template-columns: 1fr; }
  .shelled15d-directory { grid-template-columns: 1fr; }
}
