/* ==========================================================================
   558h calculator - responsive base stylesheet (mobile-first)
   File   : css/responsive-9ec12f-chrome.css
   Canvas : 320-430px phone frame, centered on wide screens
   Palette: #FFB347 (amber) / #212F3D (deep slate) / #FFCC33 (gold)
   Feel   : near-square tool edges, outlined tile cards,
            slide-in stacked menu, floating dock bar
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (all custom properties carry the uiec12f- prefix)
   -------------------------------------------------------------------------- */
:root {
  --uiec12f-bg: #212F3D;
  --uiec12f-bg-deep: #182230;
  --uiec12f-bg-raise: #28394C;
  --uiec12f-bg-hover: #2F4257;
  --uiec12f-ink: #F6F0E4;
  --uiec12f-muted: #AEBDCB;
  --uiec12f-dim: #8C9DAC;
  --uiec12f-amber: #FFB347;
  --uiec12f-gold: #FFCC33;
  --uiec12f-gold-deep: #E8B31E;
  --uiec12f-line: rgba(255, 179, 71, 0.32);
  --uiec12f-hair: rgba(246, 240, 228, 0.13);
  --uiec12f-r: 4px;
  --uiec12f-r-sm: 3px;
  --uiec12f-head-font: "Trebuchet MS", "Avenir Next", "Noto Sans Bengali", "Hind Siliguri", sans-serif;
  --uiec12f-body-font: "Segoe UI", "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, sans-serif;
  --uiec12f-head-h: 114px;
  --uiec12f-shadow: 0 12px 28px rgba(8, 13, 18, 0.5);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #0C141C;
  color: var(--uiec12f-ink);
  font-family: var(--uiec12f-body-font);
  font-size: 14px;
  line-height: 1.6;
}

img,
svg { max-width: 100%; }

img { display: block; }

button {
  font: inherit;
  color: inherit;
  margin: 0;
}

a { color: var(--uiec12f-gold); }

h1, h2, h3, p, ul, ol { margin: 0; }

ul, ol { padding: 0; }

:focus-visible {
  outline: 2px solid var(--uiec12f-gold);
  outline-offset: 2px;
  border-radius: var(--uiec12f-r-sm);
}

::selection {
  background: var(--uiec12f-gold);
  color: #1B2836;
}

/* Body scroll lock while the stacked menu is open */
.uiec12f-noscroll { overflow: hidden; }

/* Skip link */
.uiec12f-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--uiec12f-gold);
  color: #1B2836;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--uiec12f-r-sm);
}
.uiec12f-skip:focus { left: 8px; }

/* --------------------------------------------------------------------------
   3. Phone canvas (centered, capped at 430px on wide screens)
   -------------------------------------------------------------------------- */
.uiec12f-page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.012) 0 2px,
      transparent 2px 6px
    ),
    var(--uiec12f-bg);
  overflow-x: clip;
  isolation: isolate;
}

@media (min-width: 480px) {
  .uiec12f-page {
    box-shadow:
      0 0 0 1px rgba(255, 179, 71, 0.1),
      0 30px 70px rgba(4, 8, 12, 0.65);
  }
}

/* --------------------------------------------------------------------------
   4. Fixed header: brand row on top, action row below
   -------------------------------------------------------------------------- */
.uiec12f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #1D2A38 0%, #182430 100%);
  border-bottom: 1px solid var(--uiec12f-line);
  box-shadow: 0 6px 18px rgba(8, 13, 18, 0.38);
}

.uiec12f-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--uiec12f-hair);
}

.uiec12f-logo {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
  padding: 3px;
  background: #101B26;
  border: 1px solid var(--uiec12f-line);
  border-radius: var(--uiec12f-r);
}

.uiec12f-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--uiec12f-ink);
  min-height: 44px;
}

.uiec12f-brandname {
  font-family: var(--uiec12f-head-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.uiec12f-brandname b { color: var(--uiec12f-gold); font-weight: 700; }

.uiec12f-actionrow {
  display: grid;
  grid-template-columns: 1fr 1fr 56px;
  gap: 8px;
  padding: 8px 12px;
}

/* Square-corner, high-contrast CTA buttons */
.uiec12f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--uiec12f-r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--uiec12f-head-font);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: filter 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

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

.uiec12f-btn-gold {
  background: var(--uiec12f-gold);
  color: #1B2836;
  border-color: var(--uiec12f-gold-deep);
}

.uiec12f-btn-ghost {
  background: rgba(255, 179, 71, 0.08);
  color: var(--uiec12f-amber);
  border-color: var(--uiec12f-line);
}

@media (hover: hover) {
  .uiec12f-btn-gold:hover { filter: brightness(1.08); }
  .uiec12f-btn-ghost:hover { background: rgba(255, 179, 71, 0.16); }
}

/* Hamburger trigger */
.uiec12f-menubtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--uiec12f-r-sm);
  border: 1px solid var(--uiec12f-line);
  background: rgba(255, 179, 71, 0.08);
  color: var(--uiec12f-amber);
  cursor: pointer;
}

.uiec12f-menubtn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   5. Stacked slide-in menu overlay
   -------------------------------------------------------------------------- */
.uiec12f-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 80;
  visibility: hidden;
  transition: visibility 0s linear 0.32s;
}

.uiec12f-menu.uiec12f-open {
  visibility: visible;
  transition-delay: 0s;
}

.uiec12f-menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 19, 0.74);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.uiec12f-menu.uiec12f-open .uiec12f-menu-scrim { opacity: 1; }

.uiec12f-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84%, 340px);
  display: flex;
  flex-direction: column;
  background: #1B2836;
  border-left: 1px solid var(--uiec12f-line);
  box-shadow: -18px 0 40px rgba(6, 10, 15, 0.55);
  transform: translateX(103%);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.uiec12f-menu.uiec12f-open .uiec12f-menu-panel { transform: translateX(0); }

.uiec12f-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--uiec12f-line);
}

.uiec12f-menu-title {
  font-family: var(--uiec12f-head-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--uiec12f-ink);
}

.uiec12f-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--uiec12f-line);
  border-radius: var(--uiec12f-r-sm);
  background: rgba(255, 179, 71, 0.08);
  color: var(--uiec12f-amber);
  cursor: pointer;
}

.uiec12f-menu-close svg { width: 18px; height: 18px; }

.uiec12f-menu-list {
  list-style: none;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px 0;
}

.uiec12f-menu-item { border-bottom: 1px solid var(--uiec12f-hair); }

.uiec12f-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--uiec12f-ink);
  font-size: 14px;
  font-weight: 600;
}

.uiec12f-menu-item a span { flex: 1 1 auto; }

.uiec12f-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--uiec12f-amber);
  flex: none;
}

.uiec12f-menu-item a:active { background: rgba(255, 179, 71, 0.1); }

/* Staggered slide-in of stacked entries */
.uiec12f-menu-item {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.uiec12f-menu.uiec12f-open .uiec12f-menu-item { opacity: 1; transform: none; }

.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(1)  { transition-delay: 0.05s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(2)  { transition-delay: 0.08s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(3)  { transition-delay: 0.11s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(4)  { transition-delay: 0.14s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(5)  { transition-delay: 0.17s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(6)  { transition-delay: 0.2s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(7)  { transition-delay: 0.23s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(8)  { transition-delay: 0.26s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(9)  { transition-delay: 0.29s; }
.uiec12f-menu.uiec12f-open .uiec12f-menu-item:nth-child(10) { transition-delay: 0.32s; }

.uiec12f-menu-foot {
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--uiec12f-line);
}

.uiec12f-menu-foot .uiec12f-btn { width: 100%; }

/* --------------------------------------------------------------------------
   6. Main canvas + intro block
   -------------------------------------------------------------------------- */
.uiec12f-main {
  padding: calc(var(--uiec12f-head-h) + 14px) 12px calc(96px + env(safe-area-inset-bottom, 0px));
}

.uiec12f-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--uiec12f-amber);
  border: 1px solid var(--uiec12f-line);
  border-radius: var(--uiec12f-r-sm);
  padding: 3px 9px;
  background: rgba(255, 179, 71, 0.07);
}

.uiec12f-h1 {
  font-family: var(--uiec12f-head-font);
  font-size: 21px;
  line-height: 1.38;
  font-weight: 700;
  margin-top: 9px;
  color: var(--uiec12f-ink);
}

.uiec12f-h1 .uiec12f-accent { color: var(--uiec12f-gold); }

.uiec12f-h1bar {
  width: 58px;
  height: 4px;
  margin: 11px 0 13px;
  background: linear-gradient(90deg, var(--uiec12f-gold), var(--uiec12f-amber));
  border-radius: 2px;
}

.uiec12f-prose p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--uiec12f-muted);
}

.uiec12f-prose strong { color: var(--uiec12f-ink); font-weight: 600; }

.uiec12f-prose a {
  color: var(--uiec12f-gold);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 204, 51, 0.55);
  padding-bottom: 1px;
}

.uiec12f-prose a:active { color: #FFE08A; }

/* --------------------------------------------------------------------------
   7. Promo hero carousel
   -------------------------------------------------------------------------- */
.uiec12f-hero {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--uiec12f-line);
  border-radius: var(--uiec12f-r);
  background: #101B26;
  overflow: hidden;
  box-shadow: var(--uiec12f-shadow);
}

.uiec12f-heroframe {
  position: relative;
  aspect-ratio: 2 / 1;
}

.uiec12f-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px) scale(1.015);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.uiec12f-slide.uiec12f-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.uiec12f-slidebtn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.uiec12f-slidebtn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uiec12f-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(13, 20, 27, 0.92));
}

.uiec12f-slidekick {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--uiec12f-amber);
  margin-bottom: 3px;
}

.uiec12f-slidetitle {
  display: block;
  font-family: var(--uiec12f-head-font);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--uiec12f-ink);
}

.uiec12f-slidetag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1B2836;
  background: var(--uiec12f-gold);
  border-radius: var(--uiec12f-r-sm);
  padding: 3px 8px;
}

/* Arrow controls (44px square touch zones) */
.uiec12f-heronav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uiec12f-hair);
  border-radius: var(--uiec12f-r-sm);
  background: rgba(15, 24, 34, 0.6);
  color: var(--uiec12f-ink);
  cursor: pointer;
  z-index: 3;
}

.uiec12f-heronav svg { width: 18px; height: 18px; }

.uiec12f-heroprev { left: 6px; }
.uiec12f-heronext { right: 6px; }

.uiec12f-herodots {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.uiec12f-dot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.uiec12f-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgba(246, 240, 228, 0.38);
  border: 1px solid rgba(246, 240, 228, 0.5);
  transition: background-color 0.2s ease, width 0.2s ease;
}

.uiec12f-dot.uiec12f-on::after {
  width: 20px;
  background: var(--uiec12f-gold);
  border-color: var(--uiec12f-gold);
}

/* --------------------------------------------------------------------------
   8. Game categories + outlined tile grid
   -------------------------------------------------------------------------- */
.uiec12f-cat { margin-top: 24px; }

.uiec12f-cathead {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--uiec12f-gold);
  padding-left: 10px;
}

.uiec12f-cathead h2 {
  font-family: var(--uiec12f-head-font);
  font-size: 16.5px;
  line-height: 1.42;
  font-weight: 700;
  color: var(--uiec12f-ink);
  flex: 1 1 auto;
}

.uiec12f-count {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--uiec12f-amber);
  border: 1px solid var(--uiec12f-line);
  border-radius: var(--uiec12f-r-sm);
  padding: 3px 8px;
  background: rgba(255, 179, 71, 0.07);
  white-space: nowrap;
}

.uiec12f-catnote {
  margin: 7px 0 11px;
  padding-left: 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--uiec12f-muted);
}

.uiec12f-catnote a {
  color: var(--uiec12f-gold);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 204, 51, 0.55);
}

/* 4 columns from 320px, 5 columns on the widest phones */
.uiec12f-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

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

.uiec12f-tilebtn {
  display: block;
  width: 100%;
  padding: 0;
  text-align: center;
  background: var(--uiec12f-bg-raise);
  border: 1px solid var(--uiec12f-hair);
  border-radius: var(--uiec12f-r);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.uiec12f-tileimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #101B26;
  border-bottom: 1px solid var(--uiec12f-hair);
}

.uiec12f-tilename {
  display: block;
  min-height: 42px;
  padding: 5px 4px 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #E8EEF3;
  overflow-wrap: break-word;
}

@media (hover: hover) {
  .uiec12f-tilebtn:hover {
    transform: translateY(-3px);
    border-color: var(--uiec12f-amber);
    box-shadow: 0 10px 18px rgba(8, 13, 18, 0.45);
  }
}

.uiec12f-tilebtn:active {
  transform: translateY(-1px);
  border-color: var(--uiec12f-amber);
}

/* --------------------------------------------------------------------------
   9. Content modules (scene-branch rhythm, varied shapes)
   -------------------------------------------------------------------------- */
.uiec12f-sec { margin-top: 28px; }

.uiec12f-sec > h2 {
  font-family: var(--uiec12f-head-font);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--uiec12f-ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--uiec12f-hair);
  margin-bottom: 12px;
}

.uiec12f-sec > h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--uiec12f-gold);
  transform: translateY(-1px);
}

/* Scene cards (single column, left accent) */
.uiec12f-scenes {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.uiec12f-scene {
  border: 1px solid var(--uiec12f-hair);
  border-left: 3px solid var(--uiec12f-amber);
  border-radius: var(--uiec12f-r);
  background: var(--uiec12f-bg-raise);
  padding: 10px 12px;
}

.uiec12f-scene h3 {
  font-family: var(--uiec12f-head-font);
  font-size: 13px;
  color: var(--uiec12f-gold);
  margin-bottom: 4px;
}

.uiec12f-scene p {
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--uiec12f-muted);
}

/* Numbered criteria checklist */
.uiec12f-criteria {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.uiec12f-criteria li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--uiec12f-bg-raise);
  border: 1px solid var(--uiec12f-hair);
  border-radius: var(--uiec12f-r);
  padding: 10px;
}

.uiec12f-critno {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uiec12f-line);
  border-radius: var(--uiec12f-r-sm);
  color: var(--uiec12f-gold);
  font-family: var(--uiec12f-head-font);
  font-weight: 700;
  font-size: 13px;
}

.uiec12f-criteria h3 {
  font-size: 13px;
  color: var(--uiec12f-ink);
  margin-bottom: 3px;
}

.uiec12f-criteria p {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--uiec12f-muted);
}

/* Comparison table */
.uiec12f-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--uiec12f-hair);
  border-radius: var(--uiec12f-r);
  background: var(--uiec12f-bg-deep);
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
}

.uiec12f-table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  font-size: 12px;
}

.uiec12f-table th {
  font-family: var(--uiec12f-head-font);
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--uiec12f-amber);
  background: rgba(255, 179, 71, 0.07);
  padding: 9px 10px;
  border-bottom: 1px solid var(--uiec12f-line);
  white-space: nowrap;
}

.uiec12f-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--uiec12f-hair);
  color: var(--uiec12f-muted);
  line-height: 1.55;
  vertical-align: top;
}

.uiec12f-table td:first-child {
  color: var(--uiec12f-ink);
  font-weight: 600;
  white-space: nowrap;
}

.uiec12f-table tr:last-child td { border-bottom: 0; }

/* FAQ accordions */
.uiec12f-faq {
  border: 1px solid var(--uiec12f-hair);
  border-radius: var(--uiec12f-r);
  background: var(--uiec12f-bg-raise);
  margin-top: 8px;
  overflow: hidden;
}

.uiec12f-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--uiec12f-head-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--uiec12f-ink);
}

.uiec12f-faq summary::-webkit-details-marker { display: none; }

.uiec12f-faq summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uiec12f-line);
  border-radius: var(--uiec12f-r-sm);
  color: var(--uiec12f-gold);
  font-size: 14px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.uiec12f-faq[open] summary::after {
  content: "\2212";
  background: var(--uiec12f-gold);
  border-color: var(--uiec12f-gold);
  color: #1B2836;
}

.uiec12f-faq .uiec12f-faqa {
  padding: 0 14px 13px;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--uiec12f-muted);
}

/* --------------------------------------------------------------------------
   10. Homepage extended footer (compact groups)
   -------------------------------------------------------------------------- */
.uiec12f-xfoot {
  margin-top: 30px;
  border-top: 1px solid var(--uiec12f-line);
  padding: 16px 12px 4px;
  display: grid;
  gap: 12px;
}

.uiec12f-xgroup {
  border: 1px solid var(--uiec12f-hair);
  border-radius: var(--uiec12f-r);
  background: rgba(24, 34, 48, 0.6);
  padding: 12px;
}

.uiec12f-glabel {
  font-family: var(--uiec12f-head-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--uiec12f-amber);
  margin-bottom: 8px;
}

.uiec12f-promogrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.uiec12f-promogrid .uiec12f-btn { min-height: 46px; width: 100%; }

.uiec12f-brandnote {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--uiec12f-muted);
}

.uiec12f-dirlist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.uiec12f-dirlist a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--uiec12f-muted);
  text-decoration: none;
}

.uiec12f-dirlist a::before {
  content: "\203A";
  color: var(--uiec12f-amber);
  font-weight: 700;
  font-size: 14px;
}

.uiec12f-dirlist a:active { color: var(--uiec12f-gold); }

.uiec12f-disclaimer {
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--uiec12f-hair);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--uiec12f-dim);
}

/* Common footer: copyright only */
.uiec12f-foot {
  text-align: center;
  padding: 14px 12px 16px;
  border-top: 1px solid var(--uiec12f-hair);
  font-size: 12px;
  color: var(--uiec12f-dim);
}

.uiec12f-copy { letter-spacing: 0.3px; }

/* --------------------------------------------------------------------------
   11. Floating dock bottom navigation (5 roles)
   -------------------------------------------------------------------------- */
.uiec12f-dock {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 410px;
  z-index: 70;
  padding: 5px 4px 6px;
  background: rgba(20, 30, 41, 0.96);
  border: 1px solid var(--uiec12f-line);
  border-radius: 8px;
  box-shadow: var(--uiec12f-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.uiec12f-dockrow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.uiec12f-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #9FB0BD;
  cursor: pointer;
  border: 0;
  background: none;
  transition: color 0.18s ease;
}

.uiec12f-dockitem svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.uiec12f-dockitem:active { color: var(--uiec12f-ink); }

.uiec12f-dockitem.uiec12f-on { color: var(--uiec12f-gold); }

/* Sliding active indicator under the current role */
.uiec12f-dockind {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20%;
  height: 3px;
  background: var(--uiec12f-gold);
  border-radius: 2px 2px 0 0;
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.35, 1);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
