/* ==========================================================================
   d333.homes - canvas-native stylesheet
   Class prefix : frame411fd-
   Mobile-first phone canvas: 320px - 430px, centered on wide screens
   Palette: #F8F8FF / #D4AF37 / #FFEF94 / #4B0082 / #34495E
   ========================================================================== */

:root {
  --frame411fd-ink: #F8F8FF;            /* light text */
  --frame411fd-gold: #D4AF37;           /* primary accent */
  --frame411fd-goldsoft: #FFEF94;       /* highlight text */
  --frame411fd-indigo: #4B0082;         /* deep panel tone */
  --frame411fd-slate: #34495E;          /* canvas background */
  --frame411fd-line: rgba(212, 175, 55, 0.34);
  --frame411fd-line-soft: rgba(248, 248, 255, 0.14);
  --frame411fd-panel: rgba(75, 0, 130, 0.22);
  --frame411fd-muted: rgba(248, 248, 255, 0.68);
  --frame411fd-font-head: 'Anek Bangla', 'Hind Siliguri', sans-serif;
  --frame411fd-font-body: 'Hind Siliguri', 'Anek Bangla', sans-serif;
}

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

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

body {
  font-family: var(--frame411fd-font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--frame411fd-ink);
  background: #1c2733;
  background-image: radial-gradient(circle at 50% -10%, rgba(75, 0, 130, 0.5), transparent 58%);
  min-height: 100vh;
}

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

a { color: var(--frame411fd-goldsoft); text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible {
  outline: 2px solid var(--frame411fd-goldsoft);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Phone canvas shell (wide screens keep the centered canvas)
   -------------------------------------------------------------------------- */

.frame411fd-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--frame411fd-slate);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

.frame411fd-main {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

/* --------------------------------------------------------------------------
   Top bar: tab-style bar / brand left, segmented actions right
   -------------------------------------------------------------------------- */

.frame411fd-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(44, 62, 82, 0.97);
  border-bottom: 2px solid var(--frame411fd-gold);
  backdrop-filter: blur(6px);
}

.frame411fd-barrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 8px 12px;
}

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

.frame411fd-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  border: 1px solid var(--frame411fd-gold);
  object-fit: cover;
}

.frame411fd-sitename {
  font-family: var(--frame411fd-font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  color: var(--frame411fd-goldsoft);
  white-space: nowrap;
}

.frame411fd-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* segmented action button: label + arrow cap */
.frame411fd-seg {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--frame411fd-gold);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(75, 0, 130, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.frame411fd-seg:active { transform: translateY(-2px); }

.frame411fd-seg-main {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  min-height: 36px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--frame411fd-goldsoft);
  white-space: nowrap;
}

.frame411fd-seg-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 0 6px;
  background: var(--frame411fd-gold);
  color: var(--frame411fd-indigo);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ghost action button */
.frame411fd-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--frame411fd-line-soft);
  border-radius: 8px;
  background: transparent;
  color: var(--frame411fd-ink);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.frame411fd-ghost:active {
  transform: translateY(-2px);
  border-color: var(--frame411fd-gold);
}

/* menu toggle: three bars morph into an X */
.frame411fd-menubtn {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--frame411fd-line);
  border-radius: 8px;
  background: transparent;
}

.frame411fd-menubtn .frame411fd-bar {
  position: absolute;
  left: 9px;
  width: 18px;
  height: 2px;
  background: var(--frame411fd-goldsoft);
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.24s ease, top 0.24s ease;
}

.frame411fd-menubtn .frame411fd-bar:nth-child(1) { top: 12px; }
.frame411fd-menubtn .frame411fd-bar:nth-child(2) { top: 18px; }
.frame411fd-menubtn .frame411fd-bar:nth-child(3) { top: 24px; }

.frame411fd-menubtn[aria-expanded="true"] .frame411fd-bar:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}

.frame411fd-menubtn[aria-expanded="true"] .frame411fd-bar:nth-child(2) { opacity: 0; }

.frame411fd-menubtn[aria-expanded="true"] .frame411fd-bar:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Compact route panel (slide-in menu)
   -------------------------------------------------------------------------- */

.frame411fd-routes {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 39;
  background: rgba(38, 54, 72, 0.99);
  border-bottom: 2px solid var(--frame411fd-gold);
  padding: 12px 12px 16px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
}

.frame411fd-routes.frame411fd-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.frame411fd-routegroup + .frame411fd-routegroup {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--frame411fd-line-soft);
}

.frame411fd-routelabel {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frame411fd-gold);
  margin-bottom: 6px;
}

.frame411fd-routelist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.frame411fd-route {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--frame411fd-line);
  border-radius: 7px;
  font-size: 0.78rem;
  color: var(--frame411fd-ink);
  background: rgba(248, 248, 255, 0.04);
  transition: background 0.18s ease, color 0.18s ease;
}

.frame411fd-route:hover {
  background: rgba(212, 175, 55, 0.16);
  text-decoration: none;
}

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

.frame411fd-hero {
  position: relative;
  padding: 12px 12px 0;
}

.frame411fd-track {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--frame411fd-line);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #20303f;
}

.frame411fd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.6s ease;
  pointer-events: none;
}

.frame411fd-slide.frame411fd-on {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.frame411fd-slideimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame411fd-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 12px 10px;
  text-align: left;
  background: linear-gradient(180deg, rgba(27, 20, 45, 0) 0%, rgba(27, 20, 45, 0.88) 78%);
}

.frame411fd-slidetitle {
  font-family: var(--frame411fd-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--frame411fd-goldsoft);
}

.frame411fd-slidesub {
  font-size: 0.72rem;
  color: var(--frame411fd-ink);
}

.frame411fd-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 2px;
}

.frame411fd-dot {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  border: 1px solid var(--frame411fd-line);
  background: transparent;
  transition: background 0.2s ease;
}

.frame411fd-dot.frame411fd-on { background: var(--frame411fd-gold); }

/* --------------------------------------------------------------------------
   Metric strip (compact indicator + short explanation rhythm)
   -------------------------------------------------------------------------- */

.frame411fd-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px 0;
}

.frame411fd-metric {
  border: 1px solid var(--frame411fd-line-soft);
  border-radius: 8px;
  padding: 7px 4px;
  text-align: center;
  background: rgba(248, 248, 255, 0.03);
}

.frame411fd-metricnum {
  display: block;
  font-family: var(--frame411fd-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--frame411fd-goldsoft);
  line-height: 1.2;
}

.frame411fd-metrictxt {
  display: block;
  font-size: 0.62rem;
  color: var(--frame411fd-muted);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Intro + H1
   -------------------------------------------------------------------------- */

.frame411fd-intro { padding: 16px 14px 4px; }

.frame411fd-h1 {
  font-family: var(--frame411fd-font-head);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--frame411fd-ink);
  border-left: 4px solid var(--frame411fd-gold);
  padding-left: 10px;
}

.frame411fd-lede {
  margin-top: 10px;
  color: var(--frame411fd-ink);
}

.frame411fd-lede strong { color: var(--frame411fd-goldsoft); font-weight: 600; }

/* --------------------------------------------------------------------------
   Sections + game strips (horizontal icon-name bars)
   -------------------------------------------------------------------------- */

.frame411fd-section {
  padding: 20px 14px 4px;
}

.frame411fd-seclabel {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frame411fd-gold);
  margin-bottom: 3px;
}

.frame411fd-h2 {
  font-family: var(--frame411fd-font-head);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--frame411fd-goldsoft);
}

.frame411fd-secnote {
  margin: 6px 0 10px;
  font-size: 0.84rem;
  color: var(--frame411fd-muted);
}

.frame411fd-secnote a { border-bottom: 1px dashed var(--frame411fd-gold); }

.frame411fd-strips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.frame411fd-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px 8px;
  text-align: left;
  border: 1px solid var(--frame411fd-line);
  border-radius: 8px;
  background: var(--frame411fd-panel);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.frame411fd-strip:hover {
  transform: translateY(-2px);
  border-color: var(--frame411fd-gold);
  background: rgba(75, 0, 130, 0.4);
}

.frame411fd-strip:active { transform: translateY(0); }

.frame411fd-stripicon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--frame411fd-line-soft);
  background: rgba(248, 248, 255, 0.05);
}

.frame411fd-stripname {
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--frame411fd-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frame411fd-seemore {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 4px 10px;
  border: 1px dashed var(--frame411fd-line);
  border-radius: 7px;
  font-size: 0.74rem;
  color: var(--frame411fd-goldsoft);
}

/* --------------------------------------------------------------------------
   Small editorial feature panel
   -------------------------------------------------------------------------- */

.frame411fd-featurebox {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--frame411fd-line);
  border-radius: 8px;
  background: rgba(52, 73, 94, 0.62);
}

.frame411fd-featuretitle {
  font-family: var(--frame411fd-font-head);
  font-size: 0.94rem;
  color: var(--frame411fd-goldsoft);
  margin-bottom: 5px;
}

.frame411fd-featurebox p { font-size: 0.8rem; color: var(--frame411fd-muted); }

/* --------------------------------------------------------------------------
   Category highlight rows
   -------------------------------------------------------------------------- */

.frame411fd-hl { border: 1px solid var(--frame411fd-line-soft); border-radius: 10px; overflow: hidden; }

.frame411fd-hlrow {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  align-items: flex-start;
}

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

.frame411fd-hlkey {
  flex: 0 0 34%;
  font-family: var(--frame411fd-font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--frame411fd-goldsoft);
  line-height: 1.35;
}

.frame411fd-hlval {
  flex: 1;
  font-size: 0.8rem;
  color: var(--frame411fd-muted);
}

.frame411fd-hlval b { color: var(--frame411fd-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Feature rows (key -> explanation)
   -------------------------------------------------------------------------- */

.frame411fd-featrow {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--frame411fd-line-soft);
}

.frame411fd-featrow:last-child { border-bottom: 0; }

.frame411fd-featkey {
  flex: 0 0 38%;
  font-family: var(--frame411fd-font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--frame411fd-goldsoft);
  line-height: 1.4;
}

.frame411fd-featdesc {
  flex: 1;
  font-size: 0.79rem;
  color: var(--frame411fd-muted);
}

/* --------------------------------------------------------------------------
   Mobile access steps + tips
   -------------------------------------------------------------------------- */

.frame411fd-steps { list-style: none; border: 1px solid var(--frame411fd-line-soft); border-radius: 10px; }

.frame411fd-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
}

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

.frame411fd-stepnum {
  flex: 0 0 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame411fd-gold);
  border-radius: 6px;
  font-family: var(--frame411fd-font-head);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--frame411fd-goldsoft);
}

.frame411fd-steptext { font-size: 0.82rem; color: var(--frame411fd-ink); }

.frame411fd-tips {
  margin: 10px 0 0 2px;
  padding-left: 16px;
  font-size: 0.79rem;
  color: var(--frame411fd-muted);
}

.frame411fd-tips li { margin: 4px 0; }

/* --------------------------------------------------------------------------
   Term list
   -------------------------------------------------------------------------- */

.frame411fd-terms dt {
  font-family: var(--frame411fd-font-head);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--frame411fd-goldsoft);
  margin-top: 10px;
}

.frame411fd-terms dd {
  font-size: 0.8rem;
  color: var(--frame411fd-muted);
  margin-top: 2px;
  padding-left: 10px;
  border-left: 2px solid var(--frame411fd-line);
}

/* --------------------------------------------------------------------------
   Extended footer (promotions > brand > directory > disclaimer)
   -------------------------------------------------------------------------- */

.frame411fd-ext {
  margin-top: 24px;
  border-top: 2px solid var(--frame411fd-gold);
  background: rgba(28, 39, 51, 0.85);
  padding: 16px 14px 12px;
}

.frame411fd-exttitle {
  font-family: var(--frame411fd-font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--frame411fd-goldsoft);
  margin-bottom: 8px;
}

.frame411fd-promogroup { display: grid; gap: 8px; }

.frame411fd-promorow {
  display: flex;
  gap: 8px;
}

.frame411fd-promorow .frame411fd-seg { flex: 1; justify-content: center; }
.frame411fd-promorow .frame411fd-ghost { flex: 1; }

.frame411fd-promochips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.frame411fd-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--frame411fd-line);
  border-radius: 999px;
  background: rgba(75, 0, 130, 0.3);
  color: var(--frame411fd-goldsoft);
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease;
}

.frame411fd-chip:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.18);
  text-decoration: none;
}

.frame411fd-brandblurb {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--frame411fd-line-soft);
  font-size: 0.78rem;
  color: var(--frame411fd-muted);
}

.frame411fd-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--frame411fd-line-soft);
}

.frame411fd-dircol span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame411fd-gold);
  margin-bottom: 5px;
}

.frame411fd-dircol ul { list-style: none; }

.frame411fd-dircol li { margin: 5px 0; }

.frame411fd-dirlink {
  font-size: 0.76rem;
  color: var(--frame411fd-ink);
  border-bottom: 1px dotted var(--frame411fd-line);
}

.frame411fd-dirlink:hover { color: var(--frame411fd-goldsoft); }

.frame411fd-disclaimer {
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid var(--frame411fd-line-soft);
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--frame411fd-muted);
}

/* --------------------------------------------------------------------------
   Common footer + bottom dock (5 roles)
   -------------------------------------------------------------------------- */

.frame411fd-common {
  padding: 14px 14px 10px;
  text-align: center;
}

.frame411fd-copy {
  font-size: 0.7rem;
  color: var(--frame411fd-muted);
  letter-spacing: 0.04em;
}

.frame411fd-dock {
  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);
  background: rgba(36, 51, 68, 0.98);
  border-top: 2px solid var(--frame411fd-gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  backdrop-filter: blur(6px);
}

.frame411fd-dockbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 6px 2px 7px;
  background: transparent;
  border: 0;
  color: var(--frame411fd-muted);
  transition: color 0.2s ease;
}

.frame411fd-dockbtn:hover { text-decoration: none; }

.frame411fd-dockicon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.22s ease;
}

.frame411fd-dockicon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.frame411fd-docklabel {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
}

/* active role: color switch + icon state morph */
.frame411fd-dockbtn.frame411fd-on {
  color: var(--frame411fd-gold);
}

.frame411fd-dockbtn.frame411fd-on .frame411fd-dockicon {
  transform: translateY(-2px) scale(1.14);
  color: var(--frame411fd-goldsoft);
}

/* --------------------------------------------------------------------------
   Responsive tuning inside the phone canvas
   -------------------------------------------------------------------------- */

@media (max-width: 340px) {
  .frame411fd-strips { gap: 6px; }
  .frame411fd-stripname { font-size: 0.72rem; }
  .frame411fd-sitename { font-size: 1.05rem; }
  .frame411fd-metrictxt { font-size: 0.58rem; }
}

@media (min-width: 361px) {
  .frame411fd-strips { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 376px) {
  .frame411fd-h1 { font-size: 1.55rem; }
  .frame411fd-h2 { font-size: 1.18rem; }
}

/* Wide screens: keep the phone canvas centered and elevate it */
@media (min-width: 431px) {
  body { padding: 0; }
  .frame411fd-shell {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 18px 60px rgba(0, 0, 0, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
