/* ============================================================
   bd baazi interface stylesheet (bdbaazi.click)
   All classes and variables use the shelle5e88- prefix.
   Palette: #E0FFFF frost / #B22222 brick / #F08080 coral
            #1A1A2E ink (base) / #C71585 magenta
   Direction: poster headings + narrow body copy, mixed radii,
   large/small game cards, scenario-branch rhythm, short-distance
   transitions, segmented CTA buttons.
   ============================================================ */

:root {
  --shelle5e88-ink: #1A1A2E;
  --shelle5e88-ink-deep: #12121F;
  --shelle5e88-ink-raised: #232342;
  --shelle5e88-ink-line: rgba(224, 255, 255, 0.10);
  --shelle5e88-frost: #E0FFFF;
  --shelle5e88-frost-dim: rgba(224, 255, 255, 0.72);
  --shelle5e88-brick: #B22222;
  --shelle5e88-coral: #F08080;
  --shelle5e88-magenta: #C71585;
  --shelle5e88-grad-heat: linear-gradient(96deg, var(--shelle5e88-brick), var(--shelle5e88-magenta));
  --shelle5e88-r-lg: 18px;
  --shelle5e88-r-md: 12px;
  --shelle5e88-r-sm: 5px;
  --shelle5e88-topband-h: 54px;
  --shelle5e88-rail-h: 62px;
  --shelle5e88-font: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", "Kalpurush", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--shelle5e88-ink-deep);
  color: var(--shelle5e88-frost);
  font-family: var(--shelle5e88-font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.shelle5e88-noscroll {
  overflow: hidden;
}

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

a {
  color: var(--shelle5e88-coral);
  text-decoration: none;
}

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

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--shelle5e88-frost);
  margin: 0;
}

p {
  margin: 0 0 12px;
}

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

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

:focus-visible {
  outline: 2px dashed var(--shelle5e88-coral);
  outline-offset: 2px;
}

.shelle5e88-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- phone canvas ---------- */

.shelle5e88-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shelle5e88-ink);
  border-left: 1px solid var(--shelle5e88-ink-line);
  border-right: 1px solid var(--shelle5e88-ink-line);
  padding-top: var(--shelle5e88-topband-h);
  /* keep content clear of the fixed bottom rail */
  padding-bottom: calc(var(--shelle5e88-rail-h) + env(safe-area-inset-bottom, 0px) + 34px);
}

.shelle5e88-main {
  padding: 0 12px;
}

/* ---------- top band (minimal title + action strip) ---------- */

.shelle5e88-topband {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--shelle5e88-topband-h);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  height: calc(var(--shelle5e88-topband-h) + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98), rgba(26, 26, 46, 0.92));
  border-bottom: 1px solid var(--shelle5e88-ink-line);
  backdrop-filter: blur(6px);
}

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

.shelle5e88-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--shelle5e88-r-sm) var(--shelle5e88-r-md) var(--shelle5e88-r-sm) var(--shelle5e88-r-md);
  border: 1px solid rgba(240, 128, 128, 0.4);
  object-fit: cover;
}

.shelle5e88-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--shelle5e88-frost);
  white-space: nowrap;
}

.shelle5e88-brand-name em {
  font-style: normal;
  color: var(--shelle5e88-coral);
}

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

/* segmented action buttons */
.shelle5e88-seg {
  display: inline-flex;
  align-items: stretch;
  min-height: 34px;
  border-radius: var(--shelle5e88-r-md) var(--shelle5e88-r-sm) var(--shelle5e88-r-sm) var(--shelle5e88-r-md);
  overflow: hidden;
  border: 1px solid rgba(240, 128, 128, 0.55);
  color: var(--shelle5e88-frost);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shelle5e88-seg:hover {
  text-decoration: none;
}

.shelle5e88-seg:active {
  transform: translateY(1px);
}

.shelle5e88-seg-main {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  min-height: 34px;
  background: var(--shelle5e88-grad-heat);
  color: var(--shelle5e88-frost);
}

.shelle5e88-seg.shelle5e88-is-ghost .shelle5e88-seg-main {
  background: rgba(240, 128, 128, 0.12);
  color: var(--shelle5e88-coral);
}

.shelle5e88-seg-tip {
  display: inline-flex;
  align-items: center;
  padding: 0 8px 0 6px;
  background: rgba(18, 18, 31, 0.55);
  border-left: 1px solid rgba(240, 128, 128, 0.4);
}

.shelle5e88-seg-tip::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* compact header variant of the segmented button */
.shelle5e88-actions .shelle5e88-seg {
  font-size: 11.5px;
}

.shelle5e88-actions .shelle5e88-seg-main {
  padding: 0 9px;
}

/* burger */
.shelle5e88-burger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--shelle5e88-r-sm);
  border: 1px solid var(--shelle5e88-ink-line);
  background: var(--shelle5e88-ink-raised);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 40px;
}

.shelle5e88-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--shelle5e88-coral);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.shelle5e88-burger.shelle5e88-is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.shelle5e88-burger.shelle5e88-is-open span:nth-child(2) {
  opacity: 0;
}

.shelle5e88-burger.shelle5e88-is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- slide-up routing sheet ---------- */

.shelle5e88-mask {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 10, 20, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.shelle5e88-mask.shelle5e88-is-open {
  opacity: 1;
  visibility: visible;
}

.shelle5e88-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(var(--shelle5e88-rail-h) + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 112%);
  width: 100%;
  max-width: 430px;
  max-height: 68vh;
  overflow-y: auto;
  z-index: 46;
  padding: 14px 14px 18px;
  background: var(--shelle5e88-ink-raised);
  border-radius: var(--shelle5e88-r-lg) var(--shelle5e88-r-lg) 0 0;
  border: 1px solid var(--shelle5e88-ink-line);
  border-bottom: 0;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.shelle5e88-sheet.shelle5e88-is-open {
  transform: translate(-50%, 0);
}

.shelle5e88-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shelle5e88-sheet-title {
  font-size: 15px;
  font-weight: 800;
}

.shelle5e88-sheet-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--shelle5e88-r-md);
  border: 1px solid var(--shelle5e88-ink-line);
  color: var(--shelle5e88-coral);
  font-size: 16px;
  font-weight: 800;
}

.shelle5e88-sheet-group {
  margin: 10px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shelle5e88-frost-dim);
}

.shelle5e88-sheet-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.shelle5e88-sheet-list li {
  min-width: 0;
}

.shelle5e88-sheet-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--shelle5e88-r-sm) var(--shelle5e88-r-md) var(--shelle5e88-r-md) var(--shelle5e88-r-sm);
  border: 1px solid var(--shelle5e88-ink-line);
  background: rgba(26, 26, 46, 0.85);
  color: var(--shelle5e88-frost);
  font-size: 13px;
  font-weight: 700;
}

.shelle5e88-sheet-link:hover,
.shelle5e88-sheet-link:focus-visible {
  text-decoration: none;
  border-color: rgba(240, 128, 128, 0.6);
}

.shelle5e88-sheet-link.shelle5e88-is-here {
  border-color: var(--shelle5e88-magenta);
  box-shadow: inset 3px 0 0 var(--shelle5e88-magenta);
}

.shelle5e88-sheet-link::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--shelle5e88-grad-heat);
}

/* ---------- hero ---------- */

.shelle5e88-hero {
  padding: 18px 2px 6px;
}

.shelle5e88-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shelle5e88-frost);
  background: rgba(199, 21, 133, 0.24);
  border: 1px solid rgba(199, 21, 133, 0.5);
  border-radius: 3px 10px 3px 10px;
}

.shelle5e88-hero h1 {
  font-size: clamp(24px, 7.2vw, 30px);
  line-height: 1.24;
  margin-bottom: 10px;
}

.shelle5e88-hero h1 b {
  color: var(--shelle5e88-coral);
  font-weight: 800;
}

.shelle5e88-lede {
  color: var(--shelle5e88-frost-dim);
  font-size: 14px;
}

/* ---------- carousel ---------- */

.shelle5e88-carousel {
  position: relative;
  margin: 14px 0 4px;
  border-radius: var(--shelle5e88-r-md) var(--shelle5e88-r-sm) var(--shelle5e88-r-md) var(--shelle5e88-r-sm);
  overflow: hidden;
  border: 1px solid var(--shelle5e88-ink-line);
  background: var(--shelle5e88-ink-raised);
}

.shelle5e88-cs-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.shelle5e88-cs-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.shelle5e88-cs-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  min-height: 430px;
  max-height: 430px;
  color: inherit;
}

@media (max-width: 379px) {
  .shelle5e88-cs-slide {
    min-height: 340px;
    max-height: 340px;
  }
}

.shelle5e88-cs-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelle5e88-cs-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 14px 16px;
  background: linear-gradient(180deg, rgba(18, 18, 31, 0) 0%, rgba(18, 18, 31, 0.62) 46%, rgba(18, 18, 31, 0.94) 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shelle5e88-cs-copy strong {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--shelle5e88-frost);
}

.shelle5e88-cs-copy span {
  font-size: 12.5px;
  color: var(--shelle5e88-frost-dim);
}

.shelle5e88-cs-copy .shelle5e88-seg {
  align-self: flex-start;
  margin-top: 6px;
}

.shelle5e88-cs-dots {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}

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

.shelle5e88-cs-dot i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: rgba(224, 255, 255, 0.4);
  transition: width 0.2s ease, background 0.2s ease;
}

.shelle5e88-cs-dot.shelle5e88-is-on i {
  width: 20px;
  background: var(--shelle5e88-coral);
}

/* ---------- section shells ---------- */

.shelle5e88-section {
  margin-top: 26px;
}

.shelle5e88-h2 {
  position: relative;
  font-size: 20px;
  line-height: 1.3;
  padding: 0 0 8px;
  margin-bottom: 10px;
}

.shelle5e88-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 3px 12px 3px 12px;
  background: var(--shelle5e88-grad-heat);
}

.shelle5e88-note {
  color: var(--shelle5e88-frost-dim);
  font-size: 13.5px;
}

.shelle5e88-strong {
  color: var(--shelle5e88-frost);
  font-weight: 700;
}

/* ---------- game lobby ---------- */

.shelle5e88-cat {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(224, 255, 255, 0.14);
}

.shelle5e88-cat:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.shelle5e88-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.shelle5e88-cat-head h3 {
  font-size: 16.5px;
}

.shelle5e88-cat-head h3 i {
  font-style: normal;
  color: var(--shelle5e88-magenta);
}

.shelle5e88-cat-count {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--shelle5e88-ink-deep);
  background: var(--shelle5e88-coral);
  padding: 2px 8px;
  border-radius: 8px 2px 8px 2px;
}

.shelle5e88-cat-line {
  font-size: 12.5px;
  color: var(--shelle5e88-frost-dim);
  margin: 2px 0 10px;
}

.shelle5e88-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
  align-items: start;
}

@media (min-width: 400px) {
  .shelle5e88-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.shelle5e88-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--shelle5e88-frost);
  min-width: 0;
}

.shelle5e88-card:hover,
.shelle5e88-card:focus-visible {
  text-decoration: none;
}

.shelle5e88-card-frame {
  display: block;
  padding: 3px;
  background: var(--shelle5e88-ink-raised);
  border: 1px solid var(--shelle5e88-ink-line);
  border-radius: 14px 5px 14px 5px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.shelle5e88-card:hover .shelle5e88-card-frame,
.shelle5e88-card:focus-visible .shelle5e88-card-frame {
  border-color: rgba(240, 128, 128, 0.7);
  transform: translateY(-2px);
}

.shelle5e88-card-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 11px 3px 11px 3px;
}

.shelle5e88-card-name {
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  color: var(--shelle5e88-frost-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* lead (large) card mixes with the small cards */
.shelle5e88-card.shelle5e88-is-lead {
  grid-column: span 2;
  gap: 7px;
}

.shelle5e88-card.shelle5e88-is-lead .shelle5e88-card-frame img {
  aspect-ratio: 16 / 11;
}

.shelle5e88-card.shelle5e88-is-lead .shelle5e88-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--shelle5e88-frost);
}

/* ---------- prose modules ---------- */

.shelle5e88-panel {
  margin-top: 12px;
  padding: 13px 14px;
  background: var(--shelle5e88-ink-raised);
  border: 1px solid var(--shelle5e88-ink-line);
  border-radius: var(--shelle5e88-r-sm) var(--shelle5e88-r-lg) var(--shelle5e88-r-sm) var(--shelle5e88-r-lg);
}

.shelle5e88-panel p:last-child {
  margin-bottom: 0;
}

/* checklist rows */
.shelle5e88-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(224, 255, 255, 0.12);
}

.shelle5e88-check:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.shelle5e88-check b {
  display: block;
  font-size: 13.5px;
  color: var(--shelle5e88-frost);
}

.shelle5e88-check span {
  font-size: 12.5px;
  color: var(--shelle5e88-frost-dim);
}

.shelle5e88-check i {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--shelle5e88-frost);
  background: var(--shelle5e88-grad-heat);
  border-radius: 7px 2px 7px 2px;
}

/* Q&A */
.shelle5e88-qa {
  margin-top: 10px;
  padding: 12px 14px 4px;
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--shelle5e88-ink-line);
  border-left: 3px solid var(--shelle5e88-brick);
  border-radius: 4px 14px 4px 14px;
}

.shelle5e88-qa h3 {
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.shelle5e88-qa p {
  font-size: 13.5px;
  color: var(--shelle5e88-frost-dim);
}

/* scenario branches */
.shelle5e88-branches {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.shelle5e88-branch {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  background: var(--shelle5e88-ink-raised);
  border: 1px solid var(--shelle5e88-ink-line);
  border-radius: var(--shelle5e88-r-md) var(--shelle5e88-r-sm) var(--shelle5e88-r-sm) var(--shelle5e88-r-md);
}

.shelle5e88-branch-tag {
  flex: 0 0 auto;
  max-width: 96px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--shelle5e88-frost);
  background: rgba(178, 34, 34, 0.32);
  border: 1px solid rgba(240, 128, 128, 0.45);
  border-radius: 9px 3px 9px 3px;
}

.shelle5e88-branch p {
  margin: 0;
  font-size: 12.8px;
  color: var(--shelle5e88-frost-dim);
}

/* entity layers */
.shelle5e88-layers {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
  counter-reset: shelle5e88-layer;
}

.shelle5e88-layer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--shelle5e88-ink-line);
  background: linear-gradient(120deg, rgba(35, 35, 66, 0.9), rgba(26, 26, 46, 0.9));
  border-radius: var(--shelle5e88-r-sm) var(--shelle5e88-r-md) var(--shelle5e88-r-md) var(--shelle5e88-r-sm);
  counter-increment: shelle5e88-layer;
}

.shelle5e88-layer::before {
  content: counter(shelle5e88-layer);
  flex: 0 0 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--shelle5e88-ink-deep);
  background: var(--shelle5e88-coral);
  border-radius: 8px 3px 8px 3px;
}

.shelle5e88-layer b {
  display: block;
  font-size: 13.5px;
  color: var(--shelle5e88-frost);
}

.shelle5e88-layer span {
  font-size: 12.5px;
  color: var(--shelle5e88-frost-dim);
}

/* ---------- play-now CTA ---------- */

.shelle5e88-cta {
  margin-top: 22px;
  padding: 16px 14px;
  background: var(--shelle5e88-grad-heat);
  border-radius: var(--shelle5e88-r-md) var(--shelle5e88-r-sm) var(--shelle5e88-r-md) var(--shelle5e88-r-sm);
}

.shelle5e88-cta p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--shelle5e88-frost);
}

.shelle5e88-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.shelle5e88-cta .shelle5e88-seg {
  border-color: rgba(224, 255, 255, 0.75);
  font-size: 13px;
}

.shelle5e88-cta .shelle5e88-seg-main {
  background: var(--shelle5e88-ink);
}

.shelle5e88-cta .shelle5e88-seg.shelle5e88-is-lit .shelle5e88-seg-main {
  background: var(--shelle5e88-frost);
  color: var(--shelle5e88-ink);
}

/* ---------- extended footer ---------- */

.shelle5e88-xf {
  margin-top: 30px;
  padding: 16px 2px 0;
  border-top: 1px solid var(--shelle5e88-ink-line);
}

.shelle5e88-xf-block + .shelle5e88-xf-block {
  margin-top: 16px;
}

.shelle5e88-xf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--shelle5e88-coral);
}

.shelle5e88-xf-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--shelle5e88-grad-heat);
  border-radius: 3px 1px 3px 1px;
}

.shelle5e88-xf-brand p {
  font-size: 12.8px;
  color: var(--shelle5e88-frost-dim);
  margin: 0;
}

/* page directory */
.shelle5e88-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

@media (max-width: 354px) {
  .shelle5e88-dir {
    grid-template-columns: 1fr;
  }
}

.shelle5e88-dir a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--shelle5e88-frost);
  background: rgba(35, 35, 66, 0.75);
  border: 1px solid var(--shelle5e88-ink-line);
  border-radius: 4px 12px 4px 12px;
}

.shelle5e88-dir a::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  background: var(--shelle5e88-magenta);
  border-radius: 50% 50% 0 50%;
}

.shelle5e88-dir a:hover,
.shelle5e88-dir a:focus-visible {
  text-decoration: none;
  border-color: rgba(240, 128, 128, 0.6);
}

/* promotion group */
.shelle5e88-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shelle5e88-promo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: var(--shelle5e88-r-sm) var(--shelle5e88-r-md) var(--shelle5e88-r-md) var(--shelle5e88-r-sm);
  border: 1px solid rgba(240, 128, 128, 0.5);
  background: linear-gradient(140deg, rgba(178, 34, 34, 0.4), rgba(199, 21, 133, 0.28));
  color: var(--shelle5e88-frost);
}

.shelle5e88-promo:hover,
.shelle5e88-promo:focus-visible {
  text-decoration: none;
  border-color: var(--shelle5e88-coral);
}

.shelle5e88-promo b {
  font-size: 13px;
}

.shelle5e88-promo span {
  font-size: 11px;
  color: var(--shelle5e88-frost-dim);
}

/* conditional disclaimer */
.shelle5e88-disclaimer {
  padding: 11px 13px;
  font-size: 12px;
  color: var(--shelle5e88-frost-dim);
  background: rgba(18, 18, 31, 0.8);
  border: 1px dashed rgba(240, 128, 128, 0.45);
  border-radius: var(--shelle5e88-r-md);
}

.shelle5e88-disclaimer p {
  margin: 0;
}

/* ---------- copyright ---------- */

.shelle5e88-copyband {
  margin-top: 18px;
  padding: 12px 2px 4px;
  border-top: 1px solid var(--shelle5e88-ink-line);
  text-align: center;
  font-size: 11.5px;
  color: var(--shelle5e88-frost-dim);
  letter-spacing: 0.03em;
}

.shelle5e88-copyband b {
  color: var(--shelle5e88-coral);
  font-weight: 700;
}

/* ---------- bottom rail (full-width nav track) ---------- */

.shelle5e88-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--shelle5e88-rail-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.97), rgba(18, 18, 31, 0.99));
  border-top: 1px solid var(--shelle5e88-ink-line);
}

.shelle5e88-rail a,
.shelle5e88-rail button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--shelle5e88-frost-dim);
  -webkit-tap-highlight-color: rgba(240, 128, 128, 0.18);
}

/* top indicator line */
.shelle5e88-rail a::before,
.shelle5e88-rail button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--shelle5e88-grad-heat);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.shelle5e88-rail a.shelle5e88-is-here::before,
.shelle5e88-rail a.shelle5e88-is-here::after,
.shelle5e88-rail button.shelle5e88-is-press::before {
  transform: translateX(-50%) scaleX(1);
}

.shelle5e88-rail a.shelle5e88-is-here {
  color: var(--shelle5e88-coral);
}

.shelle5e88-rail-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.shelle5e88-rail-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* label reveal micro-interaction */
.shelle5e88-rail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.55;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shelle5e88-rail a.shelle5e88-is-here .shelle5e88-rail-label,
.shelle5e88-rail a.shelle5e88-is-press .shelle5e88-rail-label,
.shelle5e88-rail button.shelle5e88-is-press .shelle5e88-rail-label,
.shelle5e88-rail a:hover .shelle5e88-rail-label,
.shelle5e88-rail button:hover .shelle5e88-rail-label {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- motion budget: short, zone-local ---------- */

.shelle5e88-section,
.shelle5e88-cat,
.shelle5e88-branch,
.shelle5e88-panel {
  animation: shelle5e88-rise 0.32s ease both;
}

.shelle5e88-branch:nth-child(2),
.shelle5e88-layer:nth-child(2) {
  animation-delay: 0.05s;
}

.shelle5e88-branch:nth-child(3),
.shelle5e88-layer:nth-child(3) {
  animation-delay: 0.1s;
}

.shelle5e88-branch:nth-child(4),
.shelle5e88-layer:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes shelle5e88-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- wide screens keep the phone canvas ---------- */

@media (min-width: 430px) {
  body {
    background:
      radial-gradient(620px 340px at 50% -60px, rgba(178, 34, 34, 0.16), transparent 70%),
      var(--shelle5e88-ink-deep);
  }

  .shelle5e88-canvas {
    box-shadow: 0 0 0 1px rgba(224, 255, 255, 0.05), 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

@media (min-width: 480px) {
  .shelle5e88-canvas,
  .shelle5e88-topband,
  .shelle5e88-sheet,
  .shelle5e88-rail {
    max-width: 430px;
  }
}
