/* ============================================================
   4999 bdt - canvas-compact-501c3d.css
   Mobile-first stylesheet for a 320-430px phone canvas.
   All classes and custom properties use the c01c3d- prefix.
   Palette anchors: #FAFAD2 cream / #8A2BE2 violet /
   #2C3E50 ink / #0000CD blue (dark base, light text).
   Design tone: bold short headings + light body, mixed radii,
   compact square game catalog, list-style info rhythm,
   sliding focus indicators, segmented action buttons.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --c01c3d-cream: #FAFAD2;
  --c01c3d-cream-soft: rgba(250, 250, 210, 0.74);
  --c01c3d-cream-faint: rgba(250, 250, 210, 0.52);
  --c01c3d-violet: #8A2BE2;
  --c01c3d-violet-deep: #5b1a99;
  --c01c3d-violet-soft: rgba(138, 43, 226, 0.34);
  --c01c3d-blue: #0000CD;
  --c01c3d-blue-soft: rgba(0, 0, 205, 0.3);
  --c01c3d-ink: #2C3E50;
  --c01c3d-ink-base: #17222f;
  --c01c3d-ink-deep: #0e1620;
  --c01c3d-panel: #1f2c3c;
  --c01c3d-panel-up: #263548;
  --c01c3d-line: rgba(250, 250, 210, 0.14);
  --c01c3d-line-strong: rgba(250, 250, 210, 0.26);
  --c01c3d-radius-xl: 18px;
  --c01c3d-radius-lg: 14px;
  --c01c3d-radius-md: 10px;
  --c01c3d-radius-sm: 6px;
  --c01c3d-radius-pill: 999px;
  --c01c3d-topbar-h: 98px;
  --c01c3d-bottomnav-h: 66px;
  --c01c3d-font: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    "Kalpurush", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --c01c3d-shadow: 0 10px 26px rgba(6, 10, 16, 0.55);
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--c01c3d-font);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c01c3d-cream);
  background:
    radial-gradient(1200px 500px at 50% -160px, rgba(138, 43, 226, 0.22), transparent 70%),
    var(--c01c3d-ink-deep);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.c01c3d-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1b2736 0%, #151f2c 42%, #121a26 100%);
  overflow-x: hidden;
}

::selection {
  background: var(--c01c3d-violet);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--c01c3d-violet);
  outline-offset: 2px;
  border-radius: var(--c01c3d-radius-sm);
}

.c01c3d-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 130;
  padding: 10px 16px;
  border-radius: var(--c01c3d-radius-pill);
  background: var(--c01c3d-violet);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}

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

/* ---------- fixed tab-style top bar ---------- */
.c01c3d-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 110;
  background: rgba(19, 28, 39, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c01c3d-line);
}

.c01c3d-toprow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
}

.c01c3d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.c01c3d-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--c01c3d-violet-soft);
  box-shadow: 0 3px 10px rgba(0, 0, 205, 0.35);
  flex: 0 0 auto;
}

.c01c3d-sitename {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c01c3d-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* segmented action duo: joined buttons with a hairline divider */
.c01c3d-actions .c01c3d-btn {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c01c3d-btn-cta {
  border-radius: var(--c01c3d-radius-pill) 0 0 var(--c01c3d-radius-pill);
  background: linear-gradient(135deg, var(--c01c3d-violet) 0%, var(--c01c3d-blue) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.45);
}

.c01c3d-btn-ghost {
  border-radius: 0 var(--c01c3d-radius-pill) var(--c01c3d-radius-pill) 0;
  border: 1px solid var(--c01c3d-line-strong);
  border-left: 0;
  color: var(--c01c3d-cream);
  background: rgba(250, 250, 210, 0.05);
}

.c01c3d-btn-cta:active,
.c01c3d-btn-ghost:active {
  transform: scale(0.96);
}

.c01c3d-menubtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c01c3d-line-strong);
  border-radius: var(--c01c3d-radius-md);
  color: var(--c01c3d-cream);
}

.c01c3d-menubtn .c01c3d-ic {
  width: 21px;
  height: 21px;
  transition: transform 0.25s ease;
}

.c01c3d-menubtn[aria-expanded="true"] .c01c3d-ic {
  transform: rotate(90deg);
}

/* scrollable tab strip */
.c01c3d-tabstrip {
  display: flex;
  gap: 2px;
  align-items: stretch;
  padding: 0 8px;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.c01c3d-tabstrip::-webkit-scrollbar {
  display: none;
}

.c01c3d-tab {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c01c3d-cream-soft);
  white-space: nowrap;
}

.c01c3d-tab::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c01c3d-violet), var(--c01c3d-blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.c01c3d-tab.c01c3d-is-on {
  color: var(--c01c3d-cream);
  font-weight: 800;
}

.c01c3d-tab.c01c3d-is-on::after,
.c01c3d-tab:active::after {
  transform: scaleX(1);
}

.c01c3d-tab-more {
  background: none;
}

/* ---------- layered dropdown menu ---------- */
.c01c3d-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}

.c01c3d-menu.c01c3d-open {
  visibility: visible;
  pointer-events: auto;
}

.c01c3d-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 22, 0.68);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.c01c3d-menu.c01c3d-open .c01c3d-menu-backdrop {
  opacity: 1;
}

.c01c3d-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: 82%;
  overflow-y: auto;
  background: #182432;
  border-bottom: 1px solid var(--c01c3d-line-strong);
  border-radius: 0 0 var(--c01c3d-radius-xl) var(--c01c3d-radius-xl);
  box-shadow: var(--c01c3d-shadow);
  padding: 14px 14px 20px;
  transform: translateY(-104%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0.24, 1);
}

.c01c3d-menu.c01c3d-open .c01c3d-menu-panel {
  transform: translateY(0);
}

.c01c3d-menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--c01c3d-cream-soft);
  text-transform: uppercase;
}

.c01c3d-menu-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--c01c3d-radius-pill);
  border: 1px solid var(--c01c3d-line);
  color: var(--c01c3d-cream);
}

.c01c3d-menu-group {
  border: 1px solid var(--c01c3d-line);
  border-radius: var(--c01c3d-radius-lg);
  margin-bottom: 8px;
  background: rgba(250, 250, 210, 0.03);
  overflow: hidden;
}

.c01c3d-menu-head {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--c01c3d-cream);
  text-align: left;
}

.c01c3d-menu-head .c01c3d-menu-caret {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  color: var(--c01c3d-violet);
  flex: 0 0 auto;
}

.c01c3d-menu-group.c01c3d-open .c01c3d-menu-caret {
  transform: rotate(180deg);
}

.c01c3d-menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 8px;
}

.c01c3d-menu-group.c01c3d-open .c01c3d-menu-list {
  max-height: 320px;
  padding: 0 8px 8px;
}

.c01c3d-menu-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: var(--c01c3d-radius-md);
  font-size: 13px;
  color: var(--c01c3d-cream-soft);
  background: rgba(250, 250, 210, 0.04);
}

.c01c3d-menu-item .c01c3d-ic {
  width: 17px;
  height: 17px;
  color: var(--c01c3d-violet);
  flex: 0 0 auto;
}

.c01c3d-menu-item:active {
  background: var(--c01c3d-violet-soft);
  color: var(--c01c3d-cream);
}

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

/* ---------- hero block ---------- */
.c01c3d-hero {
  padding: 6px 2px 2px;
}

.c01c3d-hero h1 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.34;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.c01c3d-hero h1 .c01c3d-h1-mark {
  color: transparent;
  background: linear-gradient(120deg, #c99bff, #8A2BE2 55%, #6f8bff);
  -webkit-background-clip: text;
  background-clip: text;
}

.c01c3d-lead {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 300;
  color: var(--c01c3d-cream-soft);
}

.c01c3d-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.c01c3d-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c01c3d-cream-soft);
  border: 1px solid var(--c01c3d-line);
  border-radius: var(--c01c3d-radius-pill);
  background: rgba(250, 250, 210, 0.04);
}

.c01c3d-hero-chip .c01c3d-ic {
  width: 14px;
  height: 14px;
  color: var(--c01c3d-violet);
}

/* ---------- promo carousel ---------- */
.c01c3d-caro {
  position: relative;
  margin: 4px 0 16px;
}

.c01c3d-caro-viewport {
  position: relative;
  border-radius: var(--c01c3d-radius-lg);
  overflow: hidden;
  border: 1px solid var(--c01c3d-line-strong);
  box-shadow: var(--c01c3d-shadow);
}

.c01c3d-caro-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.33, 0.68, 0.24, 1);
}

.c01c3d-caro-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 43 / 22;
  margin: 0;
  background: var(--c01c3d-panel);
}

.c01c3d-caro-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c01c3d-caro-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 34px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(14, 22, 32, 0.55) 34%, rgba(14, 22, 32, 0.92));
}

.c01c3d-caro-captext {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.c01c3d-caro-captext small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--c01c3d-cream-soft);
}

.c01c3d-caro-cta {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--c01c3d-radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--c01c3d-violet), var(--c01c3d-blue));
  box-shadow: 0 4px 12px rgba(0, 0, 205, 0.4);
}

.c01c3d-caro-cta:active {
  transform: scale(0.95);
}

.c01c3d-caro-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

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

.c01c3d-caro-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--c01c3d-radius-pill);
  background: rgba(250, 250, 210, 0.45);
  transition: width 0.28s ease, background 0.28s ease;
}

.c01c3d-caro-dot.c01c3d-is-on::before {
  width: 20px;
  background: var(--c01c3d-cream);
}

/* ---------- category quick chips ---------- */
.c01c3d-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 10px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.c01c3d-chips::-webkit-scrollbar {
  display: none;
}

.c01c3d-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c01c3d-cream-soft);
  border: 1px solid var(--c01c3d-line);
  border-radius: var(--c01c3d-radius-pill);
  background: rgba(250, 250, 210, 0.04);
}

.c01c3d-chip .c01c3d-ic {
  width: 15px;
  height: 15px;
  color: var(--c01c3d-violet);
}

.c01c3d-chip:active {
  border-color: var(--c01c3d-violet);
  color: var(--c01c3d-cream);
}

/* ---------- game category sections ---------- */
.c01c3d-cat {
  margin: 18px 0 22px;
  scroll-margin-top: calc(var(--c01c3d-topbar-h) + 8px);
}

.c01c3d-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--c01c3d-line-strong);
}

.c01c3d-cat-head h2 {
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.4;
}

.c01c3d-cat-count {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--c01c3d-radius-pill);
  color: #fff;
  background: var(--c01c3d-blue-soft);
  border: 1px solid var(--c01c3d-line-strong);
}

.c01c3d-cat-intro {
  margin: 8px 0 12px;
  font-size: 12.8px;
  font-weight: 300;
  color: var(--c01c3d-cream-soft);
}

.c01c3d-cat-intro a {
  color: #c9a6ff;
  font-weight: 600;
  border-bottom: 1px dotted var(--c01c3d-violet);
  padding-bottom: 1px;
}

.c01c3d-cat-intro a:active {
  color: #fff;
}

/* compact square game catalog */
.c01c3d-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.c01c3d-gcard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--c01c3d-line);
  border-radius: var(--c01c3d-radius-md);
  background: var(--c01c3d-panel);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.c01c3d-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--c01c3d-radius-sm);
  border: 1px solid rgba(250, 250, 210, 0.08);
  background: var(--c01c3d-ink-base);
}

.c01c3d-gcard span {
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--c01c3d-cream-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.c01c3d-gcard:active,
.c01c3d-gcard:focus-visible {
  border-color: var(--c01c3d-violet);
  background: var(--c01c3d-panel-up);
  transform: translateY(-2px);
}

.c01c3d-cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.c01c3d-cat-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #c9a6ff;
  border: 1px dashed var(--c01c3d-violet-soft);
  border-radius: var(--c01c3d-radius-pill);
}

.c01c3d-cat-links a .c01c3d-ic {
  width: 14px;
  height: 14px;
}

.c01c3d-cat-links a:active {
  background: var(--c01c3d-violet-soft);
  color: #fff;
}

/* ---------- content modules ---------- */
.c01c3d-mod {
  margin: 24px 0;
  padding: 16px 14px;
  border: 1px solid var(--c01c3d-line);
  border-radius: var(--c01c3d-radius-xl);
  background: linear-gradient(180deg, rgba(38, 53, 72, 0.55), rgba(24, 36, 50, 0.55));
  scroll-margin-top: calc(var(--c01c3d-topbar-h) + 8px);
}

.c01c3d-mod h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.c01c3d-mod-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c01c3d-violet);
}

.c01c3d-mod-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c01c3d-violet), transparent);
}

.c01c3d-mod p {
  margin: 8px 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--c01c3d-cream-soft);
}

.c01c3d-mod p a,
.c01c3d-xf-brand a {
  color: #c9a6ff;
  font-weight: 600;
  border-bottom: 1px dotted var(--c01c3d-violet);
}

/* style comparison rows */
.c01c3d-style-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--c01c3d-line);
}

.c01c3d-style-row:last-of-type {
  border-bottom: 0;
}

.c01c3d-style-tag {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  border-radius: var(--c01c3d-radius-sm) var(--c01c3d-radius-lg) var(--c01c3d-radius-lg) var(--c01c3d-radius-sm);
  background: var(--c01c3d-blue-soft);
  border: 1px solid var(--c01c3d-line-strong);
}

.c01c3d-style-body {
  font-size: 12.6px;
  font-weight: 300;
  color: var(--c01c3d-cream-soft);
}

.c01c3d-style-body strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 800;
  color: var(--c01c3d-cream);
}

/* winners ticker */
.c01c3d-win-list {
  margin: 10px 0 6px;
  border: 1px solid var(--c01c3d-line);
  border-radius: var(--c01c3d-radius-md);
  overflow: hidden;
}

.c01c3d-win-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  font-size: 12px;
  border-bottom: 1px solid var(--c01c3d-line);
}

.c01c3d-win-row:nth-child(even) {
  background: rgba(138, 43, 226, 0.08);
}

.c01c3d-win-row:last-child {
  border-bottom: 0;
}

.c01c3d-win-who {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  color: var(--c01c3d-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c01c3d-win-who small {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--c01c3d-cream-faint);
}

.c01c3d-win-game {
  flex: 0 0 auto;
  max-width: 96px;
  font-size: 10.5px;
  color: var(--c01c3d-cream-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c01c3d-win-amount {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 12.5px;
  color: #d9c2ff;
}

.c01c3d-win-note {
  font-size: 11.5px !important;
  color: var(--c01c3d-cream-faint) !important;
}

/* how-to steps */
.c01c3d-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 10px 0;
}

.c01c3d-step + .c01c3d-step {
  border-top: 1px dashed var(--c01c3d-line);
}

.c01c3d-step-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  border-radius: var(--c01c3d-radius-pill);
  background: linear-gradient(140deg, var(--c01c3d-violet), var(--c01c3d-blue));
  box-shadow: 0 3px 10px rgba(138, 43, 226, 0.4);
}

.c01c3d-step-body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 800;
}

.c01c3d-step-body p {
  margin: 0;
}

/* term rows */
.c01c3d-term-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--c01c3d-line);
}

.c01c3d-term-row:last-of-type {
  border-bottom: 0;
}

.c01c3d-term-name {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 11px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: var(--c01c3d-radius-pill);
  border: 1px solid var(--c01c3d-violet-soft);
  color: #d9c2ff;
  background: rgba(138, 43, 226, 0.14);
  white-space: nowrap;
}

.c01c3d-term-row p {
  margin: 0;
  font-size: 12.6px;
}

/* ---------- extended footer (homepage only) ---------- */
.c01c3d-xfooter {
  margin: 26px 0 18px;
  padding: 18px 14px 16px;
  border-radius: var(--c01c3d-radius-xl);
  border: 1px solid var(--c01c3d-line-strong);
  background:
    linear-gradient(180deg, rgba(138, 43, 226, 0.14), rgba(0, 0, 205, 0.08) 55%, transparent),
    var(--c01c3d-panel);
}

.c01c3d-xfooter h2 {
  margin: 0 0 12px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
}

.c01c3d-xf-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.c01c3d-xf-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 84px;
  padding: 10px 11px;
  border: 1px dashed var(--c01c3d-line-strong);
  border-radius: var(--c01c3d-radius-md);
  background: rgba(250, 250, 210, 0.035);
  font-size: 12px;
  font-weight: 700;
  color: var(--c01c3d-cream);
  -webkit-tap-highlight-color: transparent;
}

.c01c3d-xf-promo small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--c01c3d-cream-faint);
}

.c01c3d-xf-promo .c01c3d-ic {
  width: 19px;
  height: 19px;
  color: var(--c01c3d-violet);
}

.c01c3d-xf-promo:active {
  border-color: var(--c01c3d-violet);
  background: var(--c01c3d-violet-soft);
}

.c01c3d-xf-brand {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-left: 3px solid var(--c01c3d-violet);
  border-radius: var(--c01c3d-radius-sm);
  background: rgba(250, 250, 210, 0.04);
  font-size: 12.6px;
  font-weight: 300;
  color: var(--c01c3d-cream-soft);
}

.c01c3d-xf-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.c01c3d-dirlink {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 9px;
  font-size: 11.8px;
  font-weight: 600;
  color: var(--c01c3d-cream-soft);
  border-radius: var(--c01c3d-radius-md);
  background: rgba(250, 250, 210, 0.04);
}

.c01c3d-dirlink .c01c3d-ic {
  width: 14px;
  height: 14px;
  color: var(--c01c3d-violet);
  flex: 0 0 auto;
}

.c01c3d-dirlink:active {
  background: var(--c01c3d-violet-soft);
  color: var(--c01c3d-cream);
}

.c01c3d-xf-disclaim {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--c01c3d-line);
  font-size: 11.4px !important;
  font-weight: 300 !important;
  color: var(--c01c3d-cream-faint) !important;
}

/* ---------- common footer ---------- */
.c01c3d-footer {
  padding: 14px 16px 10px;
  border-top: 1px solid var(--c01c3d-line);
  text-align: center;
  font-size: 11.5px;
  color: var(--c01c3d-cream-faint);
}

.c01c3d-footer strong {
  color: var(--c01c3d-cream-soft);
}

/* ---------- fixed bottom nav (center-raised) ---------- */
.c01c3d-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 115;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: calc(var(--c01c3d-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 4px calc(env(safe-area-inset-bottom, 0px) * 0.5);
  background: rgba(17, 25, 36, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c01c3d-line-strong);
}

.c01c3d-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--c01c3d-bottomnav-h);
  font-size: 10px;
  font-weight: 600;
  color: var(--c01c3d-cream-faint);
  -webkit-tap-highlight-color: transparent;
}

.c01c3d-bn-item .c01c3d-ic {
  width: 22px;
  height: 22px;
  transition: transform 0.22s ease, color 0.22s ease;
}

.c01c3d-bn-item::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--c01c3d-violet), var(--c01c3d-blue));
  transform: scaleX(0);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.c01c3d-bn-item.c01c3d-is-active {
  color: var(--c01c3d-cream);
  font-weight: 800;
}

.c01c3d-bn-item.c01c3d-is-active::after {
  transform: scaleX(1);
}

.c01c3d-bn-item.c01c3d-is-active .c01c3d-ic {
  transform: translateY(-1px);
  color: #d9c2ff;
}

.c01c3d-bn-item:active .c01c3d-ic {
  transform: translateY(-1px) scale(0.92);
}

/* raised center promo button */
.c01c3d-bn-center {
  justify-content: flex-start;
  padding-top: 6px;
}

.c01c3d-bn-center::after {
  display: none;
}

.c01c3d-bn-orb {
  width: 54px;
  height: 54px;
  margin-top: -26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--c01c3d-radius-pill);
  color: #fff;
  background: linear-gradient(140deg, var(--c01c3d-violet) 10%, var(--c01c3d-blue) 90%);
  border: 3px solid #17222f;
  box-shadow: 0 6px 18px rgba(138, 43, 226, 0.55);
  transition: transform 0.2s ease;
}

.c01c3d-bn-orb .c01c3d-ic {
  width: 24px;
  height: 24px;
}

.c01c3d-bn-center:active .c01c3d-bn-orb {
  transform: translateY(-4px) scale(0.94);
}

.c01c3d-bn-center.c01c3d-is-active .c01c3d-bn-orb {
  box-shadow: 0 6px 22px rgba(250, 250, 210, 0.5);
}

/* ---------- icon helper ---------- */
.c01c3d-ic {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- responsive fine-tuning ---------- */
@media (min-width: 375px) {
  .c01c3d-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .c01c3d-hero h1 {
    font-size: 24.5px;
  }

  .c01c3d-lead {
    font-size: 14.5px;
  }
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(900px 420px at 50% -140px, rgba(138, 43, 226, 0.2), transparent 70%),
      #0b121b;
  }

  .c01c3d-canvas {
    border-left: 1px solid var(--c01c3d-line);
    border-right: 1px solid var(--c01c3d-line);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
  }
}

@media (max-width: 359px) {
  .c01c3d-gcard span {
    font-size: 9.8px;
  }

  .c01c3d-hero h1 {
    font-size: 21px;
  }

  .c01c3d-actions .c01c3d-btn {
    padding: 0 10px;
    font-size: 12px;
  }
}

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

  .c01c3d-caro-track,
  .c01c3d-menu-panel,
  .c01c3d-tab::after,
  .c01c3d-bn-item::after,
  .c01c3d-gcard {
    transition: none;
  }
}

/* ---------- help page reading tools ---------- */
.c01c3d-help-main {
  padding-top: calc(var(--c01c3d-topbar-h) + 14px);
}

.c01c3d-help-hero {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 16px 18px;
  border-left: 4px solid var(--c01c3d-violet);
  border-radius: 4px var(--c01c3d-radius-xl) var(--c01c3d-radius-xl) 4px;
  background: linear-gradient(135deg, rgba(138, 43, 226, .26), rgba(0, 0, 205, .12) 64%, rgba(250, 250, 210, .04));
  box-shadow: var(--c01c3d-shadow);
}

.c01c3d-help-hero::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c01c3d-violet-soft);
  border-radius: 50% 50% 6px 50%;
  transform: rotate(18deg);
  opacity: .7;
}

.c01c3d-help-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 88%;
  margin: 0 0 9px;
  font-size: 23px;
  line-height: 1.32;
  font-weight: 800;
}

.c01c3d-help-hero p {
  margin: 0;
  color: var(--c01c3d-cream-soft);
  font-size: 13.5px;
  font-weight: 300;
}

.c01c3d-help-signal {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 0 1px 3px;
  scrollbar-width: none;
}

.c01c3d-help-signal::-webkit-scrollbar { display: none; }

.c01c3d-help-signal span {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  border-bottom: 2px solid var(--c01c3d-violet);
  color: var(--c01c3d-cream-soft);
  background: rgba(250, 250, 210, .04);
  font-size: 11.5px;
  font-weight: 700;
}

.c01c3d-help-main h2 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
}

.c01c3d-help-main h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.c01c3d-help-main p {
  color: var(--c01c3d-cream-soft);
  font-size: 13px;
  font-weight: 300;
}

.c01c3d-help-main a:not(.c01c3d-btn):not(.c01c3d-bn-item):not(.c01c3d-menu-item) {
  color: #d5b8ff;
  border-bottom: 1px dotted var(--c01c3d-violet);
  font-weight: 650;
}

.c01c3d-feature-board {
  margin: 0 0 18px;
  padding: 15px 13px 12px;
  border: 1px solid var(--c01c3d-line-strong);
  border-radius: var(--c01c3d-radius-md) var(--c01c3d-radius-xl) var(--c01c3d-radius-md) var(--c01c3d-radius-xl);
  background: rgba(31, 44, 60, .82);
}

.c01c3d-feature-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--c01c3d-line);
}

.c01c3d-feature-row:last-child { border-bottom: 0; }

.c01c3d-feature-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 8px 2px;
  color: #fff;
  background: var(--c01c3d-blue);
  font-size: 12px;
  font-weight: 800;
}

.c01c3d-feature-row p { margin: 0; font-size: 12.5px; }
.c01c3d-feature-row strong { display: block; margin-bottom: 2px; color: var(--c01c3d-cream); font-size: 13.3px; }

.c01c3d-action-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 4px;
}

.c01c3d-action-rail a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border-radius: var(--c01c3d-radius-pill);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.c01c3d-action-rail .c01c3d-action-main {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--c01c3d-violet), var(--c01c3d-blue));
}

.c01c3d-action-rail .c01c3d-action-alt {
  border: 1px solid var(--c01c3d-line-strong);
  color: var(--c01c3d-cream);
  background: rgba(250, 250, 210, .05);
}

.c01c3d-qa-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.c01c3d-qa-item {
  padding: 12px 12px 10px;
  border-right: 3px solid var(--c01c3d-violet);
  border-radius: var(--c01c3d-radius-sm) var(--c01c3d-radius-md) var(--c01c3d-radius-md) var(--c01c3d-radius-sm);
  background: rgba(250, 250, 210, .045);
}

.c01c3d-qa-item p { margin: 5px 0 0; font-size: 12.6px; }
.c01c3d-qa-item strong { color: var(--c01c3d-cream); }

.c01c3d-checklist {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.c01c3d-checklist li {
  position: relative;
  padding: 9px 8px 9px 28px;
  border-top: 1px dashed var(--c01c3d-line);
  color: var(--c01c3d-cream-soft);
  font-size: 12.7px;
}

.c01c3d-checklist li::before {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 8px;
  color: #d9c2ff;
  font-weight: 900;
}

.c01c3d-term-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.c01c3d-term-band div {
  padding: 10px;
  border-top: 3px solid var(--c01c3d-blue);
  background: rgba(0, 0, 205, .12);
}

.c01c3d-term-band strong { display: block; margin-bottom: 3px; color: var(--c01c3d-cream); font-size: 12px; }
.c01c3d-term-band span { display: block; color: var(--c01c3d-cream-faint); font-size: 11.5px; line-height: 1.5; }

.c01c3d-relation-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--c01c3d-cream-soft);
  font-size: 12.7px;
}

.c01c3d-relation-list li { margin: 7px 0; padding-left: 2px; }

.c01c3d-pro-con {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.c01c3d-pro-con section {
  padding: 11px 12px;
  border-left: 3px solid var(--c01c3d-violet);
  background: rgba(138, 43, 226, .1);
}

.c01c3d-pro-con section:last-child {
  border-left-color: var(--c01c3d-blue);
  background: rgba(0, 0, 205, .1);
}

.c01c3d-pro-con ul { margin: 6px 0 0; padding-left: 17px; color: var(--c01c3d-cream-soft); font-size: 12.5px; }
.c01c3d-pro-con li { margin: 5px 0; }

.c01c3d-play-route {
  margin: 0 0 18px;
  padding: 13px;
  border: 1px solid var(--c01c3d-violet-soft);
  background: linear-gradient(110deg, rgba(138, 43, 226, .17), rgba(250, 250, 210, .035));
}

.c01c3d-play-route p { margin: 0 0 9px; }
.c01c3d-play-route a { color: var(--c01c3d-cream) !important; border-bottom: 0 !important; }

.c01c3d-route-line {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.c01c3d-route-line::-webkit-scrollbar { display: none; }

.c01c3d-route-stop {
  position: relative;
  flex: 0 0 112px;
  min-height: 70px;
  padding: 8px 9px;
  border-top: 2px solid var(--c01c3d-violet);
  border-right: 1px solid var(--c01c3d-line);
  font-size: 11.5px;
  color: var(--c01c3d-cream-soft);
}

.c01c3d-route-stop strong { display: block; margin-bottom: 3px; color: var(--c01c3d-cream); font-size: 12px; }

.c01c3d-support-note {
  padding: 12px;
  border-radius: var(--c01c3d-radius-lg) 3px var(--c01c3d-radius-lg) 3px;
  background: rgba(0, 0, 205, .14);
}

.c01c3d-support-note p { margin: 6px 0 0; }

.c01c3d-scenario {
  margin-top: 10px;
  border-top: 1px solid var(--c01c3d-line-strong);
}

.c01c3d-scenario details { padding: 11px 0; border-bottom: 1px solid var(--c01c3d-line); }
.c01c3d-scenario summary { min-height: 30px; cursor: pointer; color: var(--c01c3d-cream); font-size: 13px; font-weight: 800; }
.c01c3d-scenario p { margin: 6px 0 0; font-size: 12.6px; }

@media (min-width: 375px) {
  .c01c3d-help-hero h1 { font-size: 24.5px; }
  .c01c3d-help-main { padding-left: 14px; padding-right: 14px; }
}
