/* ==========================================================================
   3666bet app apk - site chrome stylesheet
   Mobile-first phone canvas (320-430px). Stroke-led design: thin gold and
   ember outlines define every surface, corners stay restrained.
   Palette: #FF4500 flame / #F5DEB3 wheat ink / #DAA520 gold /
            #FF6347 tomato / #2C2C2C graphite base
   ========================================================================== */

:root {
  --framededa8-bg: #2c2c2c;
  --framededa8-bg-deep: #202020;
  --framededa8-bg-page: #171717;
  --framededa8-panel: #31312e;
  --framededa8-panel-soft: #2a2a27;
  --framededa8-line: #4d4636;
  --framededa8-line-soft: #3c3830;
  --framededa8-ink: #f5deb3;
  --framededa8-ink-dim: #cbb98f;
  --framededa8-ink-faint: #a4977a;
  --framededa8-flame: #ff4500;
  --framededa8-tomato: #ff6347;
  --framededa8-gold: #daa520;
  --framededa8-gold-soft: rgba(218, 165, 32, 0.32);
  --framededa8-radius: 6px;
  --framededa8-radius-lg: 10px;
  --framededa8-header-h: 106px;
  --framededa8-dock-h: 60px;
  --framededa8-font-stack: "Noto Sans Bengali", "Hind Siliguri", -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--framededa8-bg-page);
  color: var(--framededa8-ink);
  font-family: var(--framededa8-font-stack);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a {
  color: var(--framededa8-gold);
  text-decoration: none;
}

a:hover {
  color: var(--framededa8-tomato);
}

/* Visible keyboard focus on every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--framededa8-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--framededa8-ink);
}

p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Phone canvas: everything lives inside a 430px column, centered on wide
   screens so desktop keeps the same mobile navigation experience.
   -------------------------------------------------------------------------- */
.framededa8-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--framededa8-bg);
  box-shadow: 0 0 0 1px var(--framededa8-line-soft), 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

.framededa8-main {
  padding: calc(var(--framededa8-header-h) + 14px) 14px
    calc(var(--framededa8-dock-h) + 44px);
}

/* --------------------------------------------------------------------------
   Header: two stacked layers - brand strip on top, action strip below.
   -------------------------------------------------------------------------- */
.framededa8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  background: linear-gradient(180deg, #26251f 0%, #232322 100%);
  border-bottom: 2px solid var(--framededa8-gold);
}

.framededa8-brandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--framededa8-line-soft);
}

.framededa8-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.framededa8-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--framededa8-gold);
  border-radius: var(--framededa8-radius);
  object-fit: cover;
  background: #1c1c1a;
  padding: 2px;
}

.framededa8-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--framededa8-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.framededa8-brand-tag {
  display: none;
}

.framededa8-actionbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
}

/* CTA pair: primary is large and filled, secondary is smaller and outlined */
.framededa8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--framededa8-radius);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.framededa8-btn-register {
  flex: 1;
  padding: 9px 12px;
  font-size: 15px;
  color: #fff6e6;
  background: linear-gradient(180deg, var(--framededa8-flame) 0%, #d63c00 100%);
  border: 1px solid #ff7a3d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.framededa8-btn-register:active {
  transform: translateY(1px);
}

.framededa8-btn-login {
  padding: 9px 16px;
  font-size: 14px;
  color: var(--framededa8-ink);
  background: rgba(245, 222, 179, 0.06);
  border: 1px solid var(--framededa8-gold);
}

.framededa8-menu-btn {
  width: 46px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  color: var(--framededa8-ink-dim);
  background: rgba(255, 255, 255, 0.02);
}

.framededa8-menu-btn svg {
  width: 22px;
  height: 22px;
}

.framededa8-menu-btn[aria-expanded="true"] {
  color: var(--framededa8-flame);
  border-color: var(--framededa8-flame);
}

/* Layered dropdown menu: grouped routes slide under the action strip */
.framededa8-menu {
  display: none;
  border-top: 1px solid var(--framededa8-line-soft);
  background: #232220;
  max-height: calc(100vh - var(--framededa8-header-h));
  overflow-y: auto;
}

.framededa8-menu-open {
  display: block;
  animation: framededa8menuDrop 0.22s ease both;
}

@keyframes framededa8menuDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.framededa8-menu-group {
  padding: 8px 12px 10px;
  border-bottom: 1px dashed var(--framededa8-line-soft);
}

.framededa8-menu-group:last-child {
  border-bottom: 0;
}

.framededa8-menu-group-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--framededa8-gold);
  margin: 4px 0 6px;
}

.framededa8-menu-group-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.framededa8-menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--framededa8-line-soft);
  border-left: 3px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--framededa8-ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.framededa8-menu-link:hover {
  border-left-color: var(--framededa8-gold);
  color: var(--framededa8-tomato);
}

.framededa8-menu-link-current {
  border-left-color: var(--framededa8-flame);
  background: rgba(255, 69, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Hero + carousel
   -------------------------------------------------------------------------- */
.framededa8-hero {
  margin-bottom: 18px;
}

.framededa8-hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--framededa8-gold);
  border: 1px solid var(--framededa8-gold-soft);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.framededa8-hero h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.framededa8-hero-intro {
  font-size: 14px;
  color: var(--framededa8-ink-dim);
  margin-bottom: 14px;
}

.framededa8-carousel {
  position: relative;
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius-lg);
  background: var(--framededa8-bg-deep);
  overflow: hidden;
}

.framededa8-viewport {
  position: relative;
  aspect-ratio: 16 / 8;
  max-height: 215px;
  overflow: hidden;
}

.framededa8-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  text-align: left;
}

.framededa8-slide-active {
  opacity: 1;
  pointer-events: auto;
}

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

.framededa8-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 12px 9px;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 0.92) 78%);
}

.framededa8-slide-cap strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff4dd;
  line-height: 1.35;
}

.framededa8-slide-cap em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--framededa8-flame);
  white-space: nowrap;
}

.framededa8-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff4dd;
  background: rgba(23, 23, 23, 0.55);
  border: 1px solid var(--framededa8-gold-soft);
  z-index: 5;
}

.framededa8-carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.framededa8-arrow-prev {
  left: 0;
  border-radius: 0 var(--framededa8-radius) var(--framededa8-radius) 0;
  border-left: 0;
}

.framededa8-arrow-next {
  right: 0;
  border-radius: var(--framededa8-radius) 0 0 var(--framededa8-radius);
  border-right: 0;
}

.framededa8-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 7px 0 8px;
  border-top: 1px solid var(--framededa8-line-soft);
}

.framededa8-dot {
  width: 26px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.framededa8-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--framededa8-gold);
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.framededa8-dot-active::before {
  background: var(--framededa8-flame);
  border-color: var(--framededa8-flame);
  transform: scale(1.15);
}

/* Category jump chips */
.framededa8-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.framededa8-chip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--framededa8-ink);
  border: 1px solid var(--framededa8-line);
  border-radius: 999px;
  background: rgba(245, 222, 179, 0.04);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.framededa8-chip:hover {
  border-color: var(--framededa8-flame);
  color: var(--framededa8-flame);
}

.framededa8-chip svg {
  width: 15px;
  height: 15px;
  color: var(--framededa8-gold);
}

/* --------------------------------------------------------------------------
   Game sections - compact square-icon catalog on stable grid tracks
   -------------------------------------------------------------------------- */
.framededa8-gsec {
  margin: 26px 0;
  scroll-margin-top: calc(var(--framededa8-header-h) + 10px);
}

.framededa8-gsec-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--framededa8-line-soft);
}

.framededa8-gsec-head h2 {
  font-size: 17.5px;
  margin: 0;
}

.framededa8-gsec-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--framededa8-gold);
  border: 1px solid var(--framededa8-gold-soft);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.framededa8-gsec-note {
  font-size: 12.5px;
  color: var(--framededa8-ink-faint);
  margin: 0 0 12px;
}

/* Per-category head accents */
.framededa8-gsec-fishing .framededa8-gsec-head {
  border-bottom-color: rgba(105, 168, 220, 0.4);
}

.framededa8-gsec-fishing .framededa8-gsec-badge {
  color: #8fc1ee;
  border-color: rgba(105, 168, 220, 0.45);
}

.framededa8-gsec-live .framededa8-gsec-head h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--framededa8-flame);
  margin-right: 8px;
  vertical-align: 2px;
  animation: framededa8pulse 1.6s ease-in-out infinite;
}

@keyframes framededa8pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.framededa8-gsec-slot .framededa8-gsec-head {
  border-bottom: 2px solid var(--framededa8-gold);
}

.framededa8-gsec-hot .framededa8-gsec-badge {
  color: var(--framededa8-flame);
  border-color: rgba(255, 69, 0, 0.5);
  background: rgba(255, 69, 0, 0.08);
}

.framededa8-gsec-poker .framededa8-gsec-head {
  border-bottom-style: dashed;
}

/* Square tile grid: 4 columns at 320px, 5 columns from 430px up */
.framededa8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 7px;
}

.framededa8-tile-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.framededa8-tile-frame {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  background: var(--framededa8-panel-soft);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.framededa8-tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.framededa8-tile-btn:hover .framededa8-tile-frame,
.framededa8-tile-btn:active .framededa8-tile-frame {
  border-color: var(--framededa8-gold);
}

.framededa8-tile-btn:hover .framededa8-tile-frame img {
  transform: scale(1.06);
}

.framededa8-tile-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--framededa8-ink-dim);
  min-height: 2.9em;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Editorial modules after the game catalog
   -------------------------------------------------------------------------- */
.framededa8-module {
  margin: 30px 0;
}

.framededa8-module > h2 {
  font-size: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--framededa8-line-soft);
  position: relative;
}

.framededa8-module > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  background: var(--framededa8-flame);
  border-radius: 2px;
}

.framededa8-lead {
  font-size: 14.5px;
  color: var(--framededa8-ink);
}

.framededa8-body-text {
  font-size: 14px;
  color: var(--framededa8-ink-dim);
}

/* Tricks: numbered stroke cards in two narrow columns */
.framededa8-tricks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.framededa8-trick {
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  padding: 10px 10px 8px;
  background: var(--framededa8-panel-soft);
}

.framededa8-trick-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 7px;
  border: 1px solid var(--framededa8-gold);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: var(--framededa8-gold);
}

.framededa8-trick h3 {
  font-size: 13.5px;
  margin: 0 0 5px;
}

.framededa8-trick p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--framededa8-ink-faint);
  margin: 0;
}

/* Site description module: prose with a gold side rule */
.framededa8-prose {
  border-left: 3px solid var(--framededa8-gold);
  padding: 4px 0 4px 12px;
}

/* Mobile access steps: numbered vertical rail */
.framededa8-steps {
  position: relative;
  margin-top: 6px;
}

.framededa8-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 16px 0;
}

.framededa8-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--framededa8-line-soft);
}

.framededa8-step:last-child::before {
  display: none;
}

.framededa8-step-num {
  flex: 0 0 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--framededa8-flame);
  border-radius: var(--framededa8-radius);
  color: var(--framededa8-flame);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 69, 0, 0.07);
}

.framededa8-step h3 {
  font-size: 14px;
  margin: 4px 0 3px;
}

.framededa8-step p {
  font-size: 13px;
  color: var(--framededa8-ink-faint);
  margin: 0;
}

/* Pros vs limits: stacked panels, wheat rail vs tomato dashes */
.framededa8-duo {
  display: grid;
  gap: 10px;
}

.framededa8-duo-panel {
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  padding: 12px;
  background: var(--framededa8-panel-soft);
}

.framededa8-duo-panel h3 {
  font-size: 14.5px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.framededa8-duo-panel h3 svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.framededa8-duo-good {
  border-left: 4px solid var(--framededa8-gold);
}

.framededa8-duo-good h3 {
  color: var(--framededa8-gold);
}

.framededa8-duo-limit {
  border-left: 4px dashed var(--framededa8-tomato);
}

.framededa8-duo-limit h3 {
  color: var(--framededa8-tomato);
}

.framededa8-duo-panel ul {
  display: grid;
  gap: 7px;
}

.framededa8-duo-panel li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--framededa8-ink-dim);
}

.framededa8-duo-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1px;
  background: var(--framededa8-ink-faint);
}

/* Key takeaways: check rail list */
.framededa8-takes {
  display: grid;
  gap: 9px;
}

.framededa8-take {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--framededa8-line-soft);
  border-radius: var(--framededa8-radius);
  padding: 10px 11px;
  background: rgba(245, 222, 179, 0.03);
}

.framededa8-take svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--framededa8-flame);
}

.framededa8-take p {
  font-size: 13px;
  margin: 0;
  color: var(--framededa8-ink-dim);
}

/* --------------------------------------------------------------------------
   Extended footer: brand > promotions > directory > disclaimer
   -------------------------------------------------------------------------- */
.framededa8-xfoot {
  margin-top: 34px;
  border-top: 2px solid var(--framededa8-gold);
  background: var(--framededa8-bg-deep);
  margin-left: -14px;
  margin-right: -14px;
  padding: 4px 14px 6px;
}

.framededa8-xfoot h2 {
  font-size: 15.5px;
  margin: 18px 0 8px;
  color: var(--framededa8-ink);
}

.framededa8-xfoot-brand {
  font-size: 13px;
  color: var(--framededa8-ink-dim);
  margin: 0 0 6px;
}

.framededa8-xfoot-block {
  border-top: 1px solid var(--framededa8-line-soft);
  padding-top: 4px;
}

.framededa8-xfoot-promos {
  display: grid;
  gap: 8px;
}

.framededa8-xfoot-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  background: var(--framededa8-panel-soft);
  text-align: left;
  transition: border-color 0.18s ease;
}

.framededa8-xfoot-promo:hover {
  border-color: var(--framededa8-flame);
}

.framededa8-xfoot-promo svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--framededa8-gold);
}

.framededa8-xfoot-promo span {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--framededa8-ink);
  line-height: 1.5;
}

.framededa8-xfoot-promo em {
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  color: var(--framededa8-flame);
}

.framededa8-xfoot-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.framededa8-xfoot-dir a {
  display: block;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--framededa8-line-soft);
  border-radius: var(--framededa8-radius);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--framededa8-ink-dim);
  line-height: 1.4;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.framededa8-xfoot-dir a:hover {
  color: var(--framededa8-tomato);
  border-color: var(--framededa8-gold-soft);
}

.framededa8-xfoot-note {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--framededa8-ink-faint);
  border: 1px dashed var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  padding: 9px 11px;
  margin: 14px 0 10px;
}

/* Common slim copyright bar (shared by every page) */
.framededa8-foot {
  margin: 8px -14px 0;
  padding: 12px 14px 6px;
  border-top: 1px solid var(--framededa8-line-soft);
  text-align: center;
  font-size: 11.5px;
  color: var(--framededa8-ink-faint);
}

/* --------------------------------------------------------------------------
   Mobile bottom dock: full-width 5-slot rail fixed to the canvas bottom
   -------------------------------------------------------------------------- */
.framededa8-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #232220 0%, #1d1d1b 100%);
  border-top: 2px solid var(--framededa8-gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.framededa8-dock-item {
  position: relative;
  min-height: var(--framededa8-dock-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 7px;
  color: #9a8f74;
  transition: color 0.18s ease;
}

.framededa8-dock-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease;
}

.framededa8-dock-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.72;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.framededa8-dock-item:hover .framededa8-dock-label,
.framededa8-dock-item:focus-visible .framededa8-dock-label {
  opacity: 1;
  transform: translateY(-1px);
  color: var(--framededa8-ink);
}

.framededa8-dock-item-active {
  color: var(--framededa8-flame);
}

.framededa8-dock-item-active::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--framededa8-flame);
}

.framededa8-dock-item-active .framededa8-dock-label {
  color: var(--framededa8-flame);
  opacity: 1;
  font-weight: 800;
}

.framededa8-dock-item-active svg {
  transform: translateY(-1px) scale(1.08);
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
/* Help pages: evidence-led layouts keep guidance distinct from the catalogue */
.framededa8-help-hero {
  border-left: 3px solid var(--framededa8-flame);
  padding: 10px 12px 8px;
  margin-bottom: 22px;
  background: linear-gradient(110deg, rgba(255, 69, 0, 0.1), rgba(218, 165, 32, 0.03));
}

.framededa8-help-hero h1 {
  font-size: 23px;
  margin-bottom: 8px;
}

.framededa8-help-hero p {
  color: var(--framededa8-ink-dim);
  margin-bottom: 12px;
}

.framededa8-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.framededa8-help-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--framededa8-gold);
  border-radius: var(--framededa8-radius);
  color: var(--framededa8-ink);
  background: rgba(218, 165, 32, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.framededa8-help-action-primary {
  border-color: var(--framededa8-flame);
  color: #fff4dd;
  background: var(--framededa8-flame);
}

.framededa8-help-route {
  display: grid;
  gap: 9px;
  counter-reset: help-route;
}

.framededa8-help-route li {
  counter-increment: help-route;
  position: relative;
  padding: 11px 11px 11px 45px;
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  background: var(--framededa8-panel-soft);
}

.framededa8-help-route li::before {
  content: counter(help-route, decimal-leading-zero);
  position: absolute;
  left: 11px;
  top: 11px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--framededa8-flame);
  border-radius: 50%;
  color: var(--framededa8-flame);
  font-size: 10px;
  font-weight: 800;
}

.framededa8-help-route h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.framededa8-help-route p {
  color: var(--framededa8-ink-faint);
  font-size: 13px;
  margin: 0;
}

.framededa8-help-callout {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-top: 1px dashed var(--framededa8-gold);
  border-bottom: 1px dashed var(--framededa8-gold);
  color: var(--framededa8-ink-dim);
  font-size: 13px;
}

.framededa8-help-ledger {
  display: grid;
  gap: 8px;
}

.framededa8-help-ledger-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--framededa8-line-soft);
  border-left: 3px solid var(--framededa8-gold);
  background: rgba(245, 222, 179, 0.03);
}

.framededa8-help-ledger-row strong {
  color: var(--framededa8-gold);
  font-size: 12px;
}

.framededa8-help-ledger-row span {
  color: var(--framededa8-ink-dim);
  font-size: 13px;
  line-height: 1.6;
}

.framededa8-help-qa {
  display: grid;
  gap: 10px;
}

.framededa8-help-qa details {
  border: 1px solid var(--framededa8-line);
  border-radius: var(--framededa8-radius);
  background: var(--framededa8-panel-soft);
  padding: 10px 11px;
}

.framededa8-help-qa summary {
  cursor: pointer;
  color: var(--framededa8-ink);
  font-weight: 700;
  line-height: 1.5;
}

.framededa8-help-qa details p {
  margin: 8px 0 0;
  color: var(--framededa8-ink-faint);
  font-size: 13px;
}

.framededa8-help-checks {
  display: grid;
  gap: 8px;
}

.framededa8-help-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--framededa8-line-soft);
  border-radius: var(--framededa8-radius);
  color: var(--framededa8-ink-dim);
  font-size: 13px;
}

.framededa8-help-check::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--framededa8-flame);
  font-weight: 800;
}

.framededa8-help-alert {
  border: 1px solid rgba(255, 99, 71, 0.65);
  border-left: 4px solid var(--framededa8-tomato);
  padding: 11px 12px;
  color: var(--framededa8-ink-dim);
  background: rgba(255, 99, 71, 0.06);
  font-size: 13px;
}

@media (min-width: 375px) {
  .framededa8-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .framededa8-xfoot {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .framededa8-foot {
    margin-left: -16px;
    margin-right: -16px;
  }

  .framededa8-hero h1 {
    font-size: 26px;
  }

  .framededa8-grid {
    gap: 12px 8px;
  }

  .framededa8-duo {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wider phones keep the catalog dense: five square tiles per row */
@media (min-width: 430px) {
  .framededa8-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .framededa8-tile-name {
    font-size: 11.5px;
  }
}

/* Respect users who prefer calmer interfaces */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
