/* ==========================================================================
   bdt.homes - adaptive shell stylesheet
   Class prefix .... cf08cc-
   Canvas .......... mobile-first 320-430px, centered on wide screens
   Palette ......... #2C3E50 deep base / #2E8B57 signal green
   Voice ........... bold short headings over light body text, low-radius
                     sectioned panels, mixed-size game cards, segmented
                     action buttons, containerized icon tiles.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --cf08cc-bg: #2c3e50;
  --cf08cc-bg-deep: #22303f;
  --cf08cc-bg-raise: #34495e;
  --cf08cc-bg-well: #1c2833;
  --cf08cc-green: #2e8b57;
  --cf08cc-green-soft: #357e5c;
  --cf08cc-green-hi: #4dbd82;
  --cf08cc-green-tint: rgba(46, 139, 87, 0.16);
  --cf08cc-ink: #eaf3ed;
  --cf08cc-ink-soft: #c3d3c9;
  --cf08cc-ink-faint: #97a9a0;
  --cf08cc-line: #465b6e;
  --cf08cc-line-soft: rgba(74, 94, 112, 0.55);
  --cf08cc-r-lg: 8px;
  --cf08cc-r: 6px;
  --cf08cc-r-sm: 4px;
  --cf08cc-topbar-h: 56px;
  --cf08cc-dock-h: 66px;
  --cf08cc-pad: 12px;
  --cf08cc-font: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #17222d;
  color: var(--cf08cc-ink);
  font-family: var(--cf08cc-font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--cf08cc-green-hi);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cf08cc-green-hi);
  outline-offset: 2px;
  border-radius: var(--cf08cc-r-sm);
}

/* ---------- 3. Phone canvas ---------- */
.cf08cc-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cf08cc-bg);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
}

.cf08cc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cf08cc-green);
  color: #0d1a12;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--cf08cc-r-sm);
}

.cf08cc-skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- 4. Top bar (edge-aligned functional header) ---------- */
.cf08cc-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: rgba(28, 40, 51, 0.97);
  border-bottom: 1px solid var(--cf08cc-line);
  backdrop-filter: blur(8px);
}

.cf08cc-topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--cf08cc-topbar-h);
  padding: 8px var(--cf08cc-pad) 8px 12px;
}

.cf08cc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cf08cc-ink);
  min-height: 44px;
}

.cf08cc-brand-img {
  width: 34px;
  height: 34px;
  border-radius: var(--cf08cc-r-sm);
  border: 1px solid var(--cf08cc-line-soft);
  object-fit: cover;
}

.cf08cc-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

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

/* Segmented CTA pair: one bordered container, two joined buttons */
.cf08cc-cta-pair {
  display: flex;
  border: 1px solid var(--cf08cc-green);
  border-radius: var(--cf08cc-r);
  overflow: hidden;
}

.cf08cc-cta {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border: 0;
  transition: filter 0.15s ease, transform 0.08s ease;
}

.cf08cc-cta--main {
  background: var(--cf08cc-green);
  color: #0c1912;
}

.cf08cc-cta--ghost {
  background: transparent;
  color: var(--cf08cc-green-hi);
  border-left: 1px solid var(--cf08cc-green-soft);
}

.cf08cc-cta:active {
  transform: translateY(1px);
  filter: brightness(1.12);
}

.cf08cc-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--cf08cc-line);
  border-radius: var(--cf08cc-r);
  transition: background 0.15s ease;
}

.cf08cc-menu-btn:active {
  background: var(--cf08cc-green-tint);
}

.cf08cc-menu-ico {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--cf08cc-ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

.cf08cc-menu-btn[aria-expanded="true"] .cf08cc-menu-ico:nth-child(2) {
  opacity: 0;
}

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

/* ---------- 5. Compact route panel (dropdown menu) ---------- */
.cf08cc-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cf08cc-bg-deep);
  border-bottom: 1px solid var(--cf08cc-line);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.24s ease, visibility 0.24s;
}

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

.cf08cc-menu-group {
  padding: 8px 12px 4px;
}

.cf08cc-menu-group + .cf08cc-menu-group {
  border-top: 1px solid rgba(70, 91, 110, 0.45);
}

.cf08cc-menu-cap {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--cf08cc-green-hi);
  text-transform: uppercase;
}

.cf08cc-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf08cc-menu-grid--solo {
  grid-template-columns: 1fr;
}

.cf08cc-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  background: rgba(52, 73, 94, 0.4);
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r-sm);
  color: var(--cf08cc-ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.08s ease;
}

.cf08cc-menu-link:active {
  background: var(--cf08cc-green-tint);
  transform: translateY(1px);
}

.cf08cc-menu-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cf08cc-green);
}

.cf08cc-menu-link[aria-current="page"] {
  border-color: var(--cf08cc-green);
  background: var(--cf08cc-green-tint);
}

/* ---------- 6. Main column ---------- */
.cf08cc-main {
  padding: calc(var(--cf08cc-topbar-h) + 6px) var(--cf08cc-pad)
    calc(var(--cf08cc-dock-h) + 28px);
}

.cf08cc-section {
  margin: 0 0 26px;
}

.cf08cc-h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--cf08cc-ink);
}

.cf08cc-h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: var(--cf08cc-green);
}

.cf08cc-h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cf08cc-ink);
}

.cf08cc-lead {
  margin: 0 0 12px;
  color: var(--cf08cc-ink-soft);
  font-size: 14px;
}

.cf08cc-panel {
  background: var(--cf08cc-bg-raise);
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r-lg);
  padding: 14px 12px;
}

/* ---------- 7. Hero ---------- */
.cf08cc-hero {
  margin: 6px 0 18px;
}

.cf08cc-h1 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--cf08cc-ink);
}

.cf08cc-h1 b {
  color: var(--cf08cc-green-hi);
}

.cf08cc-hero-lead {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--cf08cc-ink-soft);
}

/* Carousel */
.cf08cc-carousel {
  position: relative;
  border: 1px solid var(--cf08cc-line);
  border-radius: var(--cf08cc-r-lg);
  overflow: hidden;
  background: var(--cf08cc-bg-well);
}

.cf08cc-slide {
  display: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cf08cc-bg-well);
  text-align: left;
}

.cf08cc-slide.cf08cc-is-active {
  display: block;
  animation: cf08cc-fade 0.4s ease both;
}

@keyframes cf08cc-fade {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}

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

.cf08cc-slide-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--cf08cc-line-soft);
  color: var(--cf08cc-ink);
  font-size: 13px;
  font-weight: 700;
}

.cf08cc-slide-cap small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--cf08cc-ink-faint);
}

.cf08cc-slide-go {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #0c1912;
  background: var(--cf08cc-green);
  border-radius: var(--cf08cc-r-sm);
  padding: 4px 9px;
}

.cf08cc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px 0 0;
}

.cf08cc-dot {
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}

.cf08cc-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--cf08cc-line);
  transition: background 0.2s ease, width 0.2s ease;
}

.cf08cc-dot.cf08cc-is-on::after {
  width: 22px;
  background: var(--cf08cc-green-hi);
}

/* Trust strip: segmented fact bar */
.cf08cc-facts {
  display: flex;
  border: 1px solid var(--cf08cc-line);
  border-radius: var(--cf08cc-r);
  overflow: hidden;
  margin: 0 0 18px;
  background: var(--cf08cc-bg-deep);
}

.cf08cc-fact {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 6px;
  text-align: center;
}

.cf08cc-fact + .cf08cc-fact {
  border-left: 1px solid var(--cf08cc-line-soft);
}

.cf08cc-fact b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--cf08cc-green-hi);
}

.cf08cc-fact span {
  display: block;
  font-size: 10.5px;
  color: var(--cf08cc-ink-faint);
}

/* ---------- 8. Game shelves ---------- */
.cf08cc-shelf {
  margin: 0 0 22px;
}

.cf08cc-shelf-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
}

.cf08cc-shelf-count {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--cf08cc-green-hi);
  background: var(--cf08cc-green-tint);
  border: 1px solid rgba(77, 189, 130, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
}

.cf08cc-shelf-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--cf08cc-ink-faint);
}

.cf08cc-shelf-note a {
  color: var(--cf08cc-green-hi);
  font-weight: 600;
}

.cf08cc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf08cc-game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r);
  background: var(--cf08cc-bg-raise);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.08s ease;
}

.cf08cc-game:active {
  border-color: var(--cf08cc-green);
  transform: translateY(1px);
}

.cf08cc-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cf08cc-bg-well);
}

.cf08cc-game-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  padding: 5px 6px 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--cf08cc-ink-soft);
  text-align: center;
  overflow-wrap: break-word;
}

/* Lead tile: the wide half of the mixed large/small card rhythm */
.cf08cc-cell--lead {
  grid-column: span 2;
}

.cf08cc-game--lead .cf08cc-game-img {
  aspect-ratio: 2 / 1;
}

.cf08cc-game--lead .cf08cc-game-name {
  font-size: 12.5px;
  color: var(--cf08cc-ink);
  text-align: left;
}

.cf08cc-game-flag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 6px 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0c1912;
  background: var(--cf08cc-green-hi);
  border-radius: var(--cf08cc-r-sm);
  padding: 1px 6px;
}

/* ---------- 9. Scenario branches (play styles) ---------- */
.cf08cc-branches {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf08cc-branch {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 12px 0;
}

.cf08cc-branch + .cf08cc-branch {
  border-top: 1px dashed var(--cf08cc-line-soft);
}

.cf08cc-branch-ico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cf08cc-r);
  background: var(--cf08cc-green-tint);
  border: 1px solid rgba(77, 189, 130, 0.35);
  color: var(--cf08cc-green-hi);
  font-size: 18px;
  font-weight: 800;
}

.cf08cc-branch h4 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cf08cc-ink);
}

.cf08cc-branch p {
  margin: 0;
  font-size: 12.5px;
  color: var(--cf08cc-ink-soft);
}

.cf08cc-branch p b {
  color: var(--cf08cc-green-hi);
  font-weight: 700;
}

/* ---------- 10. Milestone rail (achievements) ---------- */
.cf08cc-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cf08cc-rail::-webkit-scrollbar {
  display: none;
}

.cf08cc-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  background: var(--cf08cc-bg-well);
  border: 1px solid var(--cf08cc-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cf08cc-ink-soft);
  white-space: nowrap;
}

.cf08cc-chip i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf08cc-green-hi);
  font-style: normal;
}

.cf08cc-prose {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--cf08cc-ink-soft);
}

.cf08cc-prose:last-child {
  margin-bottom: 0;
}

.cf08cc-note {
  border-left: 3px solid var(--cf08cc-green);
  background: var(--cf08cc-green-tint);
  border-radius: 0 var(--cf08cc-r) var(--cf08cc-r) 0;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--cf08cc-ink);
}

/* ---------- 11. Promo offers ---------- */
.cf08cc-offers {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.cf08cc-offer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--cf08cc-bg-raise);
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r-lg);
  padding: 12px;
}

.cf08cc-offer-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf08cc-offer-head h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--cf08cc-ink);
}

.cf08cc-offer-tag {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0c1912;
  background: var(--cf08cc-green-hi);
  border-radius: var(--cf08cc-r-sm);
  padding: 2px 7px;
}

.cf08cc-offer p {
  margin: 0;
  font-size: 12.5px;
  color: var(--cf08cc-ink-soft);
}

/* ---------- 12. Checklist ---------- */
.cf08cc-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf08cc-checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 9px 0;
}

.cf08cc-checklist li + li {
  border-top: 1px dashed var(--cf08cc-line-soft);
}

.cf08cc-check {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cf08cc-r-sm);
  background: var(--cf08cc-green-tint);
  border: 1px solid rgba(77, 189, 130, 0.4);
  color: var(--cf08cc-green-hi);
  font-size: 12px;
  font-weight: 800;
}

.cf08cc-checklist b {
  display: block;
  font-size: 13.5px;
  color: var(--cf08cc-ink);
}

.cf08cc-checklist span {
  font-size: 12.5px;
  color: var(--cf08cc-ink-soft);
}

/* ---------- 13. Direct answer block ---------- */
.cf08cc-answer {
  background: var(--cf08cc-bg-well);
  border: 1px solid var(--cf08cc-line);
  border-radius: var(--cf08cc-r-lg);
  padding: 14px 12px;
}

.cf08cc-answer-first {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cf08cc-ink);
  border-left: 3px solid var(--cf08cc-green-hi);
  padding-left: 10px;
}

/* ---------- 14. Extended footer (sectioned list) ---------- */
.cf08cc-foot-ext {
  margin: 26px 0 0;
  border-top: 1px solid var(--cf08cc-line);
  background: var(--cf08cc-bg-deep);
  padding: 16px var(--cf08cc-pad) 14px;
}

.cf08cc-foot-block + .cf08cc-foot-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(70, 91, 110, 0.5);
}

.cf08cc-foot-cap {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--cf08cc-green-hi);
  text-transform: uppercase;
}

.cf08cc-foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
}

.cf08cc-foot-brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--cf08cc-r-sm);
  border: 1px solid var(--cf08cc-line-soft);
  object-fit: cover;
}

.cf08cc-foot-brand b {
  font-size: 15px;
  font-weight: 800;
}

.cf08cc-foot-block p {
  margin: 0;
  font-size: 12.5px;
  color: var(--cf08cc-ink-soft);
}

.cf08cc-foot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cf08cc-foot-actions .cf08cc-cta {
  width: 100%;
  text-align: center;
}

.cf08cc-foot-actions .cf08cc-cta--wide {
  grid-column: 1 / -1;
}

.cf08cc-foot-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf08cc-foot-dir li {
  min-width: 0;
}

.cf08cc-foot-dir a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--cf08cc-green-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cf08cc-ink-soft);
  overflow-wrap: break-word;
}

.cf08cc-foot-dir a:active {
  color: var(--cf08cc-green-hi);
}

.cf08cc-foot-dir small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--cf08cc-ink-faint);
}

.cf08cc-foot-legal {
  font-size: 11.5px;
  color: var(--cf08cc-ink-faint);
  border-left: 3px solid var(--cf08cc-line);
  padding-left: 10px;
}

/* ---------- 15. Common footer ---------- */
.cf08cc-foot-core {
  padding: 10px var(--cf08cc-pad) 12px;
  background: var(--cf08cc-bg-deep);
  border-top: 1px solid var(--cf08cc-line);
  text-align: center;
  font-size: 11.5px;
  color: var(--cf08cc-ink-faint);
}

/* ---------- 16. Bottom dock (segmented action bar) ---------- */
.cf08cc-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 95;
  display: flex;
  background: rgba(24, 35, 46, 0.98);
  border-top: 1px solid var(--cf08cc-line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(8px);
}

.cf08cc-dock-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 4px 2px 2px;
  background: transparent;
  border: 0;
  border-radius: var(--cf08cc-r);
  color: var(--cf08cc-ink-faint);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.08s ease;
}

.cf08cc-dock-item + .cf08cc-dock-item {
  border-left: 1px solid rgba(70, 91, 110, 0.4);
}

.cf08cc-dock-item:active {
  transform: translateY(1px);
  color: var(--cf08cc-ink);
}

.cf08cc-dock-tile {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cf08cc-r-sm);
  background: var(--cf08cc-bg-well);
  border: 1px solid var(--cf08cc-line-soft);
  color: var(--cf08cc-ink-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cf08cc-dock-tile svg {
  width: 17px;
  height: 17px;
  display: block;
}

.cf08cc-dock-item span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.15s ease;
}

/* Active role: label emphasis + tinted icon tile */
.cf08cc-dock-item.cf08cc-is-here span {
  color: var(--cf08cc-green-hi);
  font-weight: 800;
}

.cf08cc-dock-item.cf08cc-is-here .cf08cc-dock-tile {
  background: var(--cf08cc-green-tint);
  border-color: var(--cf08cc-green);
  color: var(--cf08cc-green-hi);
}

.cf08cc-dock-item--promo .cf08cc-dock-tile {
  color: #0c1912;
  background: var(--cf08cc-green);
  border-color: var(--cf08cc-green);
}

.cf08cc-dock-item--promo span {
  color: var(--cf08cc-green-hi);
}

/* ---------- 17. Help-page content patterns ---------- */
.cf08cc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 12px;
  font-size: 11.5px;
  color: var(--cf08cc-ink-faint);
}

.cf08cc-crumbs a {
  color: var(--cf08cc-green-hi);
  font-weight: 700;
}

.cf08cc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding: 3px 8px;
  border: 1px solid rgba(77, 189, 130, 0.35);
  border-radius: 999px;
  background: var(--cf08cc-green-tint);
  color: var(--cf08cc-green-hi);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.cf08cc-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cf08cc-green-hi);
}

.cf08cc-intro-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.cf08cc-intro-actions .cf08cc-cta {
  width: 100%;
}

.cf08cc-jumps {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 2px 0 8px;
  list-style: none;
  scrollbar-width: none;
}

.cf08cc-jumps::-webkit-scrollbar {
  display: none;
}

.cf08cc-jumps a {
  display: block;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--cf08cc-line);
  border-radius: 999px;
  background: var(--cf08cc-bg-deep);
  color: var(--cf08cc-ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.cf08cc-jumps a:active {
  border-color: var(--cf08cc-green);
  color: var(--cf08cc-green-hi);
}

.cf08cc-qa-stack {
  display: grid;
  gap: 10px;
}

.cf08cc-qa {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r-lg);
  background: var(--cf08cc-bg-raise);
  padding: 13px 12px 12px;
}

.cf08cc-qa::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--cf08cc-green);
}

.cf08cc-q {
  margin: 0 0 7px;
  padding-left: 4px;
  color: var(--cf08cc-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.cf08cc-a {
  margin: 0;
  padding-left: 4px;
  color: var(--cf08cc-ink-soft);
  font-size: 12.8px;
}

.cf08cc-a strong {
  color: var(--cf08cc-green-hi);
}

.cf08cc-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--cf08cc-line-soft);
}

.cf08cc-inline-cta span {
  color: var(--cf08cc-ink-faint);
  font-size: 11px;
}

.cf08cc-inline-cta .cf08cc-cta {
  flex: none;
  min-height: 36px;
  padding: 7px 11px;
}

.cf08cc-paths {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf08cc-path {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r);
  background: rgba(28, 40, 51, 0.42);
}

.cf08cc-path-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--cf08cc-r-sm);
  background: var(--cf08cc-green-tint);
  border: 1px solid rgba(77, 189, 130, 0.35);
  color: var(--cf08cc-green-hi);
  font-weight: 800;
}

.cf08cc-path b {
  display: block;
  margin-bottom: 2px;
  color: var(--cf08cc-ink);
  font-size: 13.5px;
}

.cf08cc-path p {
  margin: 0;
  color: var(--cf08cc-ink-soft);
  font-size: 12.4px;
}

.cf08cc-mistakes {
  display: grid;
  gap: 8px;
}

.cf08cc-mistake {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 11px 12px;
  border-left: 3px solid #d59a45;
  border-radius: 0 var(--cf08cc-r) var(--cf08cc-r) 0;
  background: rgba(213, 154, 69, 0.1);
}

.cf08cc-mistake b {
  color: #f1c47f;
  font-size: 13px;
}

.cf08cc-mistake p {
  margin: 0;
  color: var(--cf08cc-ink-soft);
  font-size: 12.5px;
}

.cf08cc-promo-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(77, 189, 130, 0.38);
  border-radius: var(--cf08cc-r-lg);
  background: linear-gradient(120deg, rgba(46, 139, 87, 0.22), rgba(28, 40, 51, 0.8));
}

.cf08cc-promo-band b {
  display: block;
  color: var(--cf08cc-ink);
  font-size: 13.5px;
}

.cf08cc-promo-band p {
  margin: 2px 0 0;
  color: var(--cf08cc-ink-soft);
  font-size: 11.8px;
}

.cf08cc-promo-band .cf08cc-cta {
  min-height: 38px;
  padding: 7px 10px;
}

.cf08cc-guide-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11.8px;
}

.cf08cc-guide-table th,
.cf08cc-guide-table td {
  padding: 9px 7px;
  border: 1px solid var(--cf08cc-line-soft);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.cf08cc-guide-table th {
  background: var(--cf08cc-bg-well);
  color: var(--cf08cc-green-hi);
  text-align: left;
  font-weight: 800;
}

.cf08cc-guide-table td {
  color: var(--cf08cc-ink-soft);
}

.cf08cc-scenario {
  border: 1px solid var(--cf08cc-line);
  border-radius: var(--cf08cc-r-lg);
  overflow: hidden;
}

.cf08cc-scenario-head {
  padding: 11px 12px;
  background: var(--cf08cc-green-tint);
  color: var(--cf08cc-ink);
  font-size: 13.5px;
  font-weight: 800;
}

.cf08cc-scenario-body {
  padding: 12px;
  background: var(--cf08cc-bg-well);
}

.cf08cc-scenario-body p {
  margin: 0 0 9px;
  color: var(--cf08cc-ink-soft);
  font-size: 12.6px;
}

.cf08cc-scenario-body p:last-child {
  margin-bottom: 0;
}

.cf08cc-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cf08cc-risk {
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r);
  background: var(--cf08cc-bg-raise);
}

.cf08cc-risk b {
  display: block;
  margin-bottom: 4px;
  color: var(--cf08cc-ink);
  font-size: 12.8px;
}

.cf08cc-risk p {
  margin: 0;
  color: var(--cf08cc-ink-soft);
  font-size: 11.7px;
}

.cf08cc-risk--high {
  border-top: 3px solid #d56a58;
}

.cf08cc-risk--mid {
  border-top: 3px solid #d59a45;
}

.cf08cc-risk--low {
  border-top: 3px solid var(--cf08cc-green-hi);
}

.cf08cc-evidence {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cf08cc-evidence;
}

.cf08cc-evidence li {
  position: relative;
  padding: 10px 10px 10px 42px;
  border-bottom: 1px dashed var(--cf08cc-line-soft);
  color: var(--cf08cc-ink-soft);
  font-size: 12.5px;
}

.cf08cc-evidence li::before {
  counter-increment: cf08cc-evidence;
  content: counter(cf08cc-evidence);
  position: absolute;
  left: 4px;
  top: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cf08cc-green-tint);
  color: var(--cf08cc-green-hi);
  font-weight: 800;
}

.cf08cc-requirements {
  display: grid;
  gap: 8px;
}

.cf08cc-requirement {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--cf08cc-line-soft);
  border-radius: var(--cf08cc-r);
  background: rgba(28, 40, 51, 0.42);
}

.cf08cc-requirement b {
  color: var(--cf08cc-green-hi);
  font-size: 12px;
}

.cf08cc-requirement span {
  color: var(--cf08cc-ink-soft);
  font-size: 12.2px;
}

/* ---------- 18. Wide-screen behavior ---------- */
/* The phone canvas stays the unit of layout on every width. */
@media (min-width: 431px) {
  body {
    padding: 18px 0;
  }

  .cf08cc-canvas {
    border-radius: 10px;
    min-height: calc(100vh - 36px);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
  }

  .cf08cc-topbar {
    border-radius: 10px 10px 0 0;
  }
}

/* Slightly roomier grids on larger phones; the 2-wide lead tile still
   mixes with single cells inside the 5-track shelf. */
@media (min-width: 400px) {
  .cf08cc-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ---------- 18. Motion & contrast safety ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .cf08cc-cta,
  .cf08cc-menu-link,
  .cf08cc-game,
  .cf08cc-dock-item {
    border: 1px solid ButtonText;
  }
}
