/* ==========================================================================
   Goli Card · DS-005 · TheLayoutLoft Parts Line — .gl- prefixed
   ========================================================================== */
.gl {
  position: relative; display: inline-block; cursor: pointer;
  border: none; padding: 0; background: transparent;
  transition: width .38s cubic-bezier(.35,1.1,.35,1),
              height .38s cubic-bezier(.35,1.1,.35,1);
}
.gl:focus-visible { outline: 2px solid #8B84EA; outline-offset: 3px; }
.gl-face {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 ui-sans-serif, system-ui, sans-serif;
  color: #C7CDDC; background: #1E2330; border: 1px solid #3A4152;
  border-radius: 999px; padding: 11px 18px; white-space: nowrap;
  transition: filter .3s, opacity .25s;
}
.gl-open .gl-face { opacity: 0; filter: blur(7px); }
.gl-card {
  display: none; position: absolute; left: 0; top: 0; z-index: 5;
  background: #171C28; border: 1px solid #2A3142; border-radius: 14px;
  padding: 18px; text-align: left; cursor: default;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.94);
  transition: opacity .3s .1s, transform .35s .05s cubic-bezier(.3,1.2,.4,1);
}
.gl-card.gl-in { opacity: 1; transform: none; }
/* card innards — host styles its own content inside .gl-card */
.gl-close {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: #232A3A; color: #9AA3B8; cursor: pointer;
  font: 600 11px/1 ui-sans-serif, sans-serif;
}
.gl-close:hover { background: #2E3A50; color: #E8E6F0; }
@media (prefers-reduced-motion: reduce) {
  .gl, .gl-face, .gl-card { transition: none; }
  .gl-open .gl-face { filter: none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
